packages/components/src/Input/ChooseInputWithDatePicker.vue
@@ -30,7 +30,7 @@ }>(); function handleOpen() { const _modelValue = [props.modelValue]; const _modelValue = dayjs(props.modelValue).toDate(); Portal.add((key) => { return h( Portal.Container, @@ -52,6 +52,7 @@ type: props.type, maxDate: props.maxDate, onConfirm: ({ selectedValue }) => { console.log('selectedValue: ', selectedValue); emit('update:modelValue', dayjs(selectedValue.join('-')).format(props.format)); onClose(); },