@mythpe/quasar-ui-qui 0.3.23 → 0.3.24
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/package.json
CHANGED
|
@@ -665,7 +665,7 @@ defineExpose({
|
|
|
665
665
|
<MDtCopyColumn
|
|
666
666
|
v-if="col.value !== undefined && col.value !== null"
|
|
667
667
|
:label="col.value"
|
|
668
|
-
:value="col.value"
|
|
668
|
+
:value="col.copyValue && typeof col.copyValue === 'function' ? col.copyValue(iTempProps.row) : col.value"
|
|
669
669
|
/>
|
|
670
670
|
</template>
|
|
671
671
|
<template v-else-if="descColumnsProp.indexOf(col.name) !== -1">
|
|
@@ -1377,7 +1377,7 @@ defineExpose({
|
|
|
1377
1377
|
<MDtCopyColumn
|
|
1378
1378
|
v-if="copyColumnProps.row[copyColumnProps.col.field] !== undefined && copyColumnProps.row[copyColumnProps.col.field] !== null"
|
|
1379
1379
|
:label="copyColumnProps.row[copyColumnProps.col.field]"
|
|
1380
|
-
:value="copyColumnProps.row[copyColumnProps.col.field]"
|
|
1380
|
+
:value="copyColumnProps.col.copyValue && typeof copyColumnProps.col.copyValue === 'function' ? copyColumnProps.col.copyValue(copyColumnProps.row) : copyColumnProps.row[copyColumnProps.col.copyValue || copyColumnProps.col.field]"
|
|
1381
1381
|
/>
|
|
1382
1382
|
</q-td>
|
|
1383
1383
|
</template>
|
|
@@ -149,6 +149,9 @@ const customViewModeValue = computed(() => {
|
|
|
149
149
|
}
|
|
150
150
|
const opt = options.value?.find((e) => {
|
|
151
151
|
const k = props.optionValue === undefined ? 'value' : (typeof props.optionValue === 'function' ? props.optionValue(e) : props.optionValue)
|
|
152
|
+
if (props.type === 'checkbox') {
|
|
153
|
+
return value.value?.includes?.(e[k]) || e[k] === value.value
|
|
154
|
+
}
|
|
152
155
|
return e[k] === value.value
|
|
153
156
|
})
|
|
154
157
|
if (opt) {
|