diff --git a/src/date-time-picker/date-time-picker.vue b/src/date-time-picker/date-time-picker.vue index 429592395..51c46fe42 100644 --- a/src/date-time-picker/date-time-picker.vue +++ b/src/date-time-picker/date-time-picker.vue @@ -50,8 +50,13 @@ export default defineComponent({ setup(props: any, context) { const emitEvent = useEmitEvent(props, context.emit); const className = computed(() => [`${name}`]); - const { value, modelValue } = toRefs(props); - const [innerValue, setDateTimePickerValue] = useVModel(value, modelValue, props.defaultValue, props.onChange); + const { value } = toRefs(props); + const [innerValue, setDateTimePickerValue] = useVModel( + value, + ref(props.modelValue), + props.defaultValue, + props.onChange, + ); const title = computed(() => { return props.title || '选择时间'; });