@mythpe/quasar-ui-qui 0.4.100 → 0.4.102
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
|
@@ -14,7 +14,7 @@ import type { ApiInterface, GenericMDtBtn, MDatatableProps, MDtExportOptions } f
|
|
|
14
14
|
import type { InvalidSubmissionHandler, SubmissionHandler } from 'vee-validate'
|
|
15
15
|
import { useForm } from 'vee-validate'
|
|
16
16
|
import { computed, nextTick, onMounted, ref, toValue, useAttrs, watch } from 'vue'
|
|
17
|
-
import { is as quasarHelpers, QCardSection, QTable, useQuasar } from 'quasar'
|
|
17
|
+
import { extend, is as quasarHelpers, QCardSection, QTable, useQuasar } from 'quasar'
|
|
18
18
|
import { useDtHelpers, useMyth } from '../../composable'
|
|
19
19
|
import { useI18n } from 'vue-i18n'
|
|
20
20
|
import MDtImageColumn from './MDtImageColumn.vue'
|
|
@@ -418,7 +418,7 @@ const onSuccess: SubmissionHandler = async (form) => {
|
|
|
418
418
|
if (isUpdateMode.value) {
|
|
419
419
|
if (_data) {
|
|
420
420
|
updateDatatableItem(_data as any, dialogItemIndex.value)
|
|
421
|
-
resetVeeForm(_data)
|
|
421
|
+
await resetVeeForm(extend(!0, {}, defaultItem.value, _data as any))
|
|
422
422
|
}
|
|
423
423
|
emit('update', response)
|
|
424
424
|
if (!props.noUpdateClose && !props.noAutoClose) {
|
|
@@ -774,9 +774,9 @@ defineExpose({
|
|
|
774
774
|
:align="col.align as any"
|
|
775
775
|
:copy="computedCopyColumns.includes(col.name)"
|
|
776
776
|
:copy-value="col.copyValue && typeof col.copyValue === 'function' ? () => col.copyValue(itemProps.row) : itemProps.row[col.copyValue || col.field]"
|
|
777
|
+
:digits="col.digits"
|
|
777
778
|
:string="col.field.includes('_to_string') || col.field.includes('ToString') || col.string === !0"
|
|
778
779
|
:value="col.value"
|
|
779
|
-
:digits="col.digits"
|
|
780
780
|
/>
|
|
781
781
|
</template>
|
|
782
782
|
<template v-else-if="computedDescColumns.indexOf(col.name) !== -1">
|
|
@@ -1486,9 +1486,9 @@ defineExpose({
|
|
|
1486
1486
|
:align="sarCellProps.col.align as any"
|
|
1487
1487
|
:copy="computedCopyColumns.includes(sarCellProps.col.name)"
|
|
1488
1488
|
:copy-value="sarCellProps.col.copyValue && typeof sarCellProps.col.copyValue === 'function' ? () => sarCellProps.col.copyValue(sarCellProps.row) : sarCellProps.row[sarCellProps.col.copyValue || sarCellProps.col.field]"
|
|
1489
|
+
:digits="sarCellProps.col.digits"
|
|
1489
1490
|
:string="sarCellProps.col.field.includes('_to_string') || sarCellProps.col.field.includes('ToString') || sarCellProps.col.string === !0"
|
|
1490
1491
|
:value="sarCellProps.row[sarCellProps.col.field]"
|
|
1491
|
-
:digits="sarCellProps.col.digits"
|
|
1492
1492
|
/>
|
|
1493
1493
|
</q-td>
|
|
1494
1494
|
</template>
|