fix(图表): 动态时间区间默认值类型错误
This commit is contained in:
parent
0266ea1fb4
commit
5f0dfedfbf
@ -32,7 +32,7 @@ const props = defineProps({
|
||||
timeGranularityMultiple: {
|
||||
type: Object as PropType<DatePickType>,
|
||||
default: () => {
|
||||
return 'yearrange'
|
||||
return { type: 'yearrange' } as PropType<DatePickType>
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
@ -41,7 +41,7 @@ const props = defineProps({
|
||||
timeGranularityMultiple: {
|
||||
type: Object as PropType<DatePickType>,
|
||||
default: () => {
|
||||
return 'yearrange'
|
||||
return { type: 'yearrange' } as PropType<DatePickType>
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Loading…
Reference in New Issue
Block a user