File tree Expand file tree Collapse file tree 3 files changed +17
-7
lines changed
Expand file tree Collapse file tree 3 files changed +17
-7
lines changed Original file line number Diff line number Diff line change 1- PlaygroundPage.vue
2- tableDefaults.ts
1+ *
2+
3+ ! .gitignore
4+
5+ ! configs /
6+ ! configs /** /*
Original file line number Diff line number Diff line change @@ -7,15 +7,16 @@ export CHECKMARK="$(printf '\e[1;32m\xE2\x9C\x94\e[0m')"
77
88# Playground path and template #
99PLAYGROUND_VUE_DIR=src/playground
10- PLAYGROUND_VUE_TEMPLATE=PlaygroundPage.template.vue
10+
1111PLAYGROUND_VUE_FILE=PlaygroundPage.vue
1212
1313
1414# Check if Playground.vue file exists before trying to create it #
1515if [ ! -f " $PLAYGROUND_VUE_DIR /$PLAYGROUND_VUE_FILE " ]; then
16- cp " $PLAYGROUND_VUE_DIR /configs/$PLAYGROUND_VUE_TEMPLATE " " $PLAYGROUND_VUE_DIR /$PLAYGROUND_VUE_FILE "
16+ cp " $PLAYGROUND_VUE_DIR /configs/templates/ $PLAYGROUND_VUE_FILE " " $PLAYGROUND_VUE_DIR /$PLAYGROUND_VUE_FILE "
1717
1818 echo " "
1919 echo " ${BOLD_GREEN}${CHECKMARK}${BOLD_WHITE} $PLAYGROUND_VUE_FILE file has been created.${WHITE} "
2020 echo " "
2121fi
22+
Original file line number Diff line number Diff line change 6464 item-value =" id"
6565 :items =" users"
6666 :label =" componentOptions.label"
67+ :menu =" componentOptions.menu"
6768 name =" active"
6869 :return-object =" true"
6970 :save-button-color =" componentOptions.saveButtonColor"
@@ -225,12 +226,13 @@ const componentOptions = reactive({
225226 emptyText: ' empty' ,
226227 fieldOnly: false ,
227228 hideDetails: true ,
228- hideSelected: true ,
229+ hideSelected: false ,
229230 iconFalse: undefined ,
230231 iconFalseTitle: undefined ,
231232 iconTrue: undefined ,
232233 iconTrueTitle: undefined ,
233234 label: ' ' ,
235+ menu: true ,
234236 rules: {
235237 minLength (value ) {
236238 return value? .length >= 5 || ' Min 5 characters' ;
@@ -305,7 +307,10 @@ function getUsers() {
305307 fetch (' api/users' )
306308 .then ((response ) => response .json ())
307309 .then ((json ) => {
308- users .value = [... json .users ];
310+ users .value = json .users .map ((user ) => ({
311+ id: user .id ,
312+ name: user .name ,
313+ }));
309314 });
310315};
311316
@@ -319,7 +324,7 @@ function getUsers() {
319324// eslint-disable-next-line no-unused-vars, @typescript-eslint/no-unused-vars
320325function updatedValue (val , field ) {
321326 // Save updated values
322- // console.log('updatedValue', val, field);
327+ console .log (' updatedValue' , val, field);
323328}
324329< / script>
325330
You can’t perform that action at this time.
0 commit comments