fix(图表): 动态时间区间默认值类型错误

This commit is contained in:
jianneng-fit2cloud 2024-10-29 10:15:01 +08:00
parent 0266ea1fb4
commit 5f0dfedfbf
2 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ const props = defineProps({
timeGranularityMultiple: {
type: Object as PropType<DatePickType>,
default: () => {
return 'yearrange'
return { type: 'yearrange' } as PropType<DatePickType>
}
}
})

View File

@ -41,7 +41,7 @@ const props = defineProps({
timeGranularityMultiple: {
type: Object as PropType<DatePickType>,
default: () => {
return 'yearrange'
return { type: 'yearrange' } as PropType<DatePickType>
}
}
})