Merge pull request #7885 from dataease/pr@dev-v2_dzz

fix(查询组件): 时间范围年月不显示
This commit is contained in:
dataeaseShu 2024-01-29 18:05:23 +08:00 committed by GitHub
commit 33371d5eec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -45,6 +45,7 @@ const props = defineProps({
}
})
const selectValue = ref<[Date, Date]>([new Date(), new Date()])
const rendering = ref(true)
const { config } = toRefs(props)
@ -80,7 +81,11 @@ const timeConfig = computed(() => {
watch(
() => timeConfig.value,
() => {
init()
rendering.value = false
nextTick(() => {
init()
rendering.value = true
})
},
{
deep: true
@ -106,8 +111,6 @@ watch(
}
)
const rendering = ref(true)
const init = () => {
const {
timeNum,