Merge pull request #12955 from dataease/pr@dev-v2@chart-dynamicTimeRangeFiltering

fix(图表): 动态时间区间默认值类型错误
This commit is contained in:
jianneng-fit2cloud 2024-10-29 10:15:43 +08:00 committed by GitHub
commit 471e226161
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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>
}
}
})