15
15
:validating =" validating"
16
16
:columnError =" columnError"
17
17
:setCurrentValue =" setCurrentValue"
18
- @update:customComponentsInValidity =" (data) => customComponentsInValidity.value = { ...customComponentsInValidity.value , ...data }"
19
- @update:customComponentsEmptiness =" (data) => customComponentsEmptiness.value = { ...customComponentsEmptiness.value , ...data }"
18
+ @update:customComponentsInValidity =" (data) => customComponentsInValidity = { ...customComponentsInValidity, ...data }"
19
+ @update:customComponentsEmptiness =" (data) => customComponentsEmptiness = { ...customComponentsEmptiness, ...data }"
20
20
/>
21
21
</div >
22
22
<div v-else class =" flex flex-col gap-4" >
32
32
:validating =" validating"
33
33
:columnError =" columnError"
34
34
:setCurrentValue =" setCurrentValue"
35
- @update:customComponentsInValidity =" (data) => customComponentsInValidity.value = { ...customComponentsInValidity.value , ...data }"
36
- @update:customComponentsEmptiness =" (data) => customComponentsEmptiness.value = { ...customComponentsEmptiness.value , ...data }"
35
+ @update:customComponentsInValidity =" (data) => customComponentsInValidity = { ...customComponentsInValidity, ...data }"
36
+ @update:customComponentsEmptiness =" (data) => customComponentsEmptiness = { ...customComponentsEmptiness, ...data }"
37
37
/>
38
38
</template >
39
39
<div v-if =" otherColumns.length > 0" >
48
48
:validating =" validating"
49
49
:columnError =" columnError"
50
50
:setCurrentValue =" setCurrentValue"
51
- @update:customComponentsInValidity =" (data) => customComponentsInValidity.value = { ...customComponentsInValidity.value , ...data }"
52
- @update:customComponentsEmptiness =" (data) => customComponentsEmptiness.value = { ...customComponentsEmptiness.value , ...data }"
51
+ @update:customComponentsInValidity =" (data) => customComponentsInValidity = { ...customComponentsInValidity, ...data }"
52
+ @update:customComponentsEmptiness =" (data) => customComponentsEmptiness = { ...customComponentsEmptiness, ...data }"
53
53
/>
54
54
</div >
55
55
</div >
@@ -95,8 +95,8 @@ const columnError = (column) => {
95
95
if (! currentValues .value ) {
96
96
return null ;
97
97
}
98
- if (customComponentsInValidity .value ? .value ? . [column .name ]) {
99
- return customComponentsInValidity .value ? .value ? . [column .name ];
98
+ if (customComponentsInValidity .value ? .[column .name ]) {
99
+ return customComponentsInValidity .value ? .[column .name ];
100
100
}
101
101
102
102
if ( column .required [mode .value ] ) {
@@ -105,7 +105,7 @@ const columnError = (column) => {
105
105
currentValues .value [column .name ] === ' ' ||
106
106
(column .isArray ? .enabled && ! currentValues .value [column .name ].length );
107
107
108
- const emitedEmptiness = customComponentsEmptiness .value ? .value ? . [column .name ];
108
+ const emitedEmptiness = customComponentsEmptiness .value ? .[column .name ];
109
109
// if component is custum it might tell other criteria for emptiness by emitting 'update:emptiness'
110
110
// components which do not emit 'update:emptiness' will have undefined value in customComponentsEmptiness
111
111
let actualEmptiness;
0 commit comments