TimeControl微调

This commit is contained in:
sjl
2024-11-07 11:29:28 +08:00
parent 9de2c874f0
commit 4fc0781e05
5 changed files with 36 additions and 23 deletions

View File

@@ -94,7 +94,7 @@ const emit = defineEmits<{
(e: 'update-dates', startDate: string, endDate: string): void;
}>()
const timeUnit = ref<string>(props.default) // 默认选择
const startDate = ref<Date>(new Date(0)) // 起始日期
const startDate = ref<Date>(new Date()) // 起始日期
const endDate = ref<Date>(new Date()) // 结束日期
const isNextDisabled = ref<boolean>(false) // 控制下一周期按钮的禁用状态
const today = ref<Date>(new Date()) // 当前日期