@winchsa/ui 0.1.29 → 0.1.31
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.
|
@@ -77,13 +77,14 @@ function getItemOnChange() {
|
|
|
77
77
|
<VCol
|
|
78
78
|
v-for="(item, key) in data.model"
|
|
79
79
|
:key="key"
|
|
80
|
-
|
|
80
|
+
xl="3"
|
|
81
|
+
lg="4"
|
|
82
|
+
md="6"
|
|
83
|
+
sm="12"
|
|
81
84
|
class="py-0"
|
|
82
85
|
>
|
|
83
86
|
<div class="d-flex justify-space-between align-center border pa-3 my-3 rounded">
|
|
84
87
|
<span>{{ item.label }}</span>
|
|
85
|
-
|
|
86
|
-
<!-- item checkbox -->
|
|
87
88
|
<VCheckbox v-model="item.selected" />
|
|
88
89
|
</div>
|
|
89
90
|
</VCol>
|
|
@@ -98,7 +99,6 @@ function getItemOnChange() {
|
|
|
98
99
|
class="d-flex justify-space-between mb-2"
|
|
99
100
|
>
|
|
100
101
|
<span>{{ item.label }}</span>
|
|
101
|
-
<!-- item checkbox -->
|
|
102
102
|
<VCheckbox v-model="item.selected" />
|
|
103
103
|
</div>
|
|
104
104
|
</vcarditem>
|
|
@@ -81,9 +81,10 @@ const moduleIdentifier = computed(() => props.module ?? "rows");
|
|
|
81
81
|
:key="`row.${index}.${header.key}`"
|
|
82
82
|
class="px-2 d-flex align-center justify-center h-100 app-border-silver"
|
|
83
83
|
>
|
|
84
|
-
{{ item
|
|
84
|
+
{{ item[header.key] }}
|
|
85
85
|
</span>
|
|
86
86
|
|
|
87
|
+
<!-- eslint-disable vue/no-mutating-props -->
|
|
87
88
|
<template v-if="header?.fields && header?.fields?.length > 0">
|
|
88
89
|
<div
|
|
89
90
|
style="display: grid; grid-template-columns: 1fr 1fr;"
|
|
@@ -94,7 +95,7 @@ const moduleIdentifier = computed(() => props.module ?? "rows");
|
|
|
94
95
|
>
|
|
95
96
|
<template v-for="(field) in header.fields" :key="`row.${index}.${field.key}`">
|
|
96
97
|
<EditableDataTableRow
|
|
97
|
-
v-model="
|
|
98
|
+
v-model="items[index]"
|
|
98
99
|
:header="field"
|
|
99
100
|
:index="index"
|
|
100
101
|
:module-identifier="moduleIdentifier"
|
|
@@ -108,7 +109,7 @@ const moduleIdentifier = computed(() => props.module ?? "rows");
|
|
|
108
109
|
<template v-else>
|
|
109
110
|
<EditableDataTableRow
|
|
110
111
|
:key="`row.${index}.${header.key}.row2`"
|
|
111
|
-
v-model="
|
|
112
|
+
v-model="items[index]"
|
|
112
113
|
:header="header"
|
|
113
114
|
:index="index"
|
|
114
115
|
:module-identifier="moduleIdentifier"
|
|
@@ -116,6 +117,7 @@ const moduleIdentifier = computed(() => props.module ?? "rows");
|
|
|
116
117
|
:errors="errors"
|
|
117
118
|
/>
|
|
118
119
|
</template>
|
|
120
|
+
<!-- eslint-enable vue/no-mutating-props -->
|
|
119
121
|
</template>
|
|
120
122
|
|
|
121
123
|
<template v-for="(_, name) in $slots" #[name]="slotProps">
|