@ramathibodi/nuxt-commons 0.1.32 → 0.1.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/module.json
CHANGED
|
@@ -48,8 +48,8 @@ const props = withDefaults(defineProps<Props>(), {
|
|
|
48
48
|
cols: 12,
|
|
49
49
|
xxl: false,
|
|
50
50
|
xl: false,
|
|
51
|
-
lg:
|
|
52
|
-
md:
|
|
51
|
+
lg: 2,
|
|
52
|
+
md: 4,
|
|
53
53
|
sm: 6,
|
|
54
54
|
itemsPerPage: 12,
|
|
55
55
|
})
|
|
@@ -319,7 +319,7 @@ const operation = ref({ openDialog, createItem, updateItem, deleteItem, moveUpIt
|
|
|
319
319
|
add
|
|
320
320
|
</VBtn>
|
|
321
321
|
<v-row align="center" class="mr-2 ml-2" v-if="viewSwitch">
|
|
322
|
-
<v-btn-toggle v-model="viewType" :multiple="viewSwitchMultiple">
|
|
322
|
+
<v-btn-toggle v-model="viewType" :multiple="viewSwitchMultiple" mandatory>
|
|
323
323
|
<v-btn icon="mdi mdi-view-grid-outline" value="iterator"></v-btn>
|
|
324
324
|
<v-btn icon="mdi mdi-table-large" value="table"></v-btn>
|
|
325
325
|
</v-btn-toggle>
|
|
@@ -28,7 +28,7 @@ function templateItemToString(item) {
|
|
|
28
28
|
}
|
|
29
29
|
if (item.inputType == "VRadio" || item.inputType == "VRadioInline") {
|
|
30
30
|
const choice = optionStringToChoiceObject(item.inputOptions);
|
|
31
|
-
optionString = choice.map((choiceItem) => `<v-radio label="${choiceItem.label}" value="${choiceItem.value}"></v-radio>`).join("");
|
|
31
|
+
optionString = choice.map((choiceItem) => `<v-radio label="${choiceItem.label}" value="${choiceItem.value}" ${item.inputAttributes ? " " + item.inputAttributes : ""}></v-radio>`).join("");
|
|
32
32
|
}
|
|
33
33
|
if (item.inputType == "Header") {
|
|
34
34
|
optionString = item.inputOptions.split(",").join(" ");
|