Commit c9be7d6790c94888f6a89e37b8ef431320b0cac6
1 parent
14290afd
perf(src/packages): 修复时间选择器config.vue,打包TS类型校验错误
Showing
1 changed file
with
2 additions
and
2 deletions
... | ... | @@ -207,7 +207,7 @@ const differUnitName = computed(() => { |
207 | 207 | }) |
208 | 208 | |
209 | 209 | const datePickerTypeUpdate = () => { |
210 | - props.optionData.dataset = isRange.value ? [dayjs().valueOf(), dayjs().valueOf()] : dayjs().valueOf() | |
210 | + props.optionData.dataset = isRange.value ? [dayjs().valueOf(), dayjs().valueOf()] : [dayjs().valueOf()] | |
211 | 211 | } |
212 | 212 | |
213 | 213 | const defaultTypeUpdate = (v: string) => { |
... | ... | @@ -215,7 +215,7 @@ const defaultTypeUpdate = (v: string) => { |
215 | 215 | datePickerTypeUpdate() |
216 | 216 | } else { |
217 | 217 | // DefaultTypeEnum. |
218 | - props.optionData.dataset = null | |
218 | + props.optionData.dataset = [] | |
219 | 219 | } |
220 | 220 | } |
221 | 221 | ... | ... |