@mythpe/quasar-ui-qui 0.3.22 → 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">
|
|
@@ -918,6 +918,7 @@ defineExpose({
|
|
|
918
918
|
<!-- Export PDF-->
|
|
919
919
|
<MDtBtn
|
|
920
920
|
v-if="pdf && getRows.length > 0"
|
|
921
|
+
:disable="loading"
|
|
921
922
|
icon="fa-solid fa-file-pdf"
|
|
922
923
|
v-bind="{...defaultTopBtnProps,...pluginOptions.dt?.buttons?.filter as any, textColor: 'red'}"
|
|
923
924
|
@click="exportData('pdf')"
|
|
@@ -930,6 +931,7 @@ defineExpose({
|
|
|
930
931
|
<MDtBtn
|
|
931
932
|
v-if="excel && getRows.length > 0"
|
|
932
933
|
icon="fa-solid fa-file-excel"
|
|
934
|
+
:disable="loading"
|
|
933
935
|
v-bind="{...defaultTopBtnProps,...pluginOptions.dt?.buttons?.filter as any, textColor: 'green'}"
|
|
934
936
|
@click="exportData('excel')"
|
|
935
937
|
>
|
|
@@ -945,6 +947,7 @@ defineExpose({
|
|
|
945
947
|
icon="ion-ios-options"
|
|
946
948
|
label="myth.datatable.hints.filter"
|
|
947
949
|
text-color="on-brand"
|
|
950
|
+
:disable="loading"
|
|
948
951
|
v-bind="{...pluginOptions.dt?.buttons?.filter as any}"
|
|
949
952
|
>
|
|
950
953
|
<MModalMenu
|
|
@@ -1374,7 +1377,7 @@ defineExpose({
|
|
|
1374
1377
|
<MDtCopyColumn
|
|
1375
1378
|
v-if="copyColumnProps.row[copyColumnProps.col.field] !== undefined && copyColumnProps.row[copyColumnProps.col.field] !== null"
|
|
1376
1379
|
:label="copyColumnProps.row[copyColumnProps.col.field]"
|
|
1377
|
-
: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]"
|
|
1378
1381
|
/>
|
|
1379
1382
|
</q-td>
|
|
1380
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) {
|