From d4d48a14063672d51c70eb80faa4cc87944e25de Mon Sep 17 00:00:00 2001 From: zhengyiming <540361168@qq.com> Date: 星期五, 15 八月 2025 15:14:39 +0800 Subject: [PATCH] fix: bug --- packages/components/src/Input/ChooseInputWithDatePicker.vue | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/packages/components/src/Input/ChooseInputWithDatePicker.vue b/packages/components/src/Input/ChooseInputWithDatePicker.vue index f14b604..ca4897c 100644 --- a/packages/components/src/Input/ChooseInputWithDatePicker.vue +++ b/packages/components/src/Input/ChooseInputWithDatePicker.vue @@ -15,6 +15,9 @@ type Props = { modelValue: string | number; + minDate?: Date; + maxDate?: Date; + type?: string; }; const props = withDefaults(defineProps<Props>(), {}); @@ -43,10 +46,13 @@ h(DatePicker, { modelValue: _modelValue, onCancel: onClose, + type: props.type, + maxDate: props.maxDate, onConfirm: ({ selectedValue }) => { - emit('update:modelValue', dayjs(selectedValue).format('YYYY-MM-DD')); + emit('update:modelValue', dayjs(selectedValue.join('-')).format('YYYY-MM-DD')); onClose(); }, + minDate: props.minDate, }), } ), -- Gitblit v1.9.1