diff --git a/es/datePicker/index2.js b/es/datePicker/index2.js index 2da5042..0824ad3 100644 --- a/es/datePicker/index2.js +++ b/es/datePicker/index2.js @@ -1783,6 +1783,7 @@ const _sfc_main = defineComponent({ if (dropdownRef.value) dropdownRef.value.hide(); $emits("update:modelValue", dateValue.value); + $emits("change", dateValue.value); }; provide("datePicker", { currentYear, diff --git a/lib/index.js b/lib/index.js index 2f93c10..ffbbfb7 100644 --- a/lib/index.js +++ b/lib/index.js @@ -45963,6 +45963,7 @@ const _sfc_main$8 = defineComponent({ if (dropdownRef.value) dropdownRef.value.hide(); $emits("update:modelValue", dateValue.value); + $emits("change", dateValue.value); }; provide("datePicker", { currentYear, diff --git a/src/component/datePicker/index.vue b/src/component/datePicker/index.vue index 766e1b9..1cd92ee 100644 --- a/src/component/datePicker/index.vue +++ b/src/component/datePicker/index.vue @@ -396,6 +396,7 @@ const onChange = () => { // @ts-ignore dropdownRef.value.hide(); $emits("update:modelValue", dateValue.value); + $emits("change", dateValue.value); }; provide("datePicker", { diff --git a/src/component/upload/index.vue b/src/component/upload/index.vue index dd2fe97..8cb1556 100644 --- a/src/component/upload/index.vue +++ b/src/component/upload/index.vue @@ -187,7 +187,7 @@ const props = withDefaults(defineProps(), { cut: false, cutOptions: void 0, modelValue: null, - auto: true + auto: true, }); const slot = useSlots(); @@ -294,7 +294,7 @@ const errorF = (errorText: string) => { let errorMsg = errorText ? errorText : defaultErrorMsg; errorMsg = `${errorMsg}`; console.warn(errorMsg); - layer.msg(errorMsg, { icon: 2, time: 1000 }, function (res: unknown) { }); + layer.msg(errorMsg, { icon: 2, time: 1000 }, function (res: unknown) {}); emit("error", Object.assign({ currentTimeStamp, msg: errorMsg })); }; @@ -471,9 +471,22 @@ onUnmounted(() => {