forked from github/dataease
Merge pull request #12955 from dataease/pr@dev-v2@chart-dynamicTimeRangeFiltering
fix(图表): 动态时间区间默认值类型错误
This commit is contained in:
commit
471e226161
@ -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