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