feat: rangepicker添加判空
This commit is contained in:
@ -38,7 +38,7 @@
|
||||
watch(
|
||||
() => props.value,
|
||||
(val: any) => {
|
||||
modelValue.value = props.valueType == 'Array' ? val : val.split(',');
|
||||
modelValue.value = props.valueType == 'Array' ? (val || []) : (val ? val.split(',') : '');
|
||||
},
|
||||
{
|
||||
immediate: true,
|
||||
|
||||
Reference in New Issue
Block a user