🐛(component): 修复datePicker 改变modelValue后视图不更新问题
This commit is contained in:
parent
a2967fb2cb
commit
0c0ea1cc2c
@ -353,6 +353,7 @@ onMounted(() => {
|
||||
|
||||
// 计算结果日期
|
||||
const dateValue = computed<string>(() => {
|
||||
currentDay.value = new Date(props.modelValue).getTime();
|
||||
if (currentDay.value === -1) {
|
||||
$emits("update:modelValue", "");
|
||||
return "";
|
||||
|
Loading…
Reference in New Issue
Block a user