fix: countdown support dayjs value

pull/5627/head
tangjinzhou 2022-05-21 10:57:08 +08:00
parent 13e1db0bc4
commit 5edca6be5a
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ function getTime(value?: countdownValueType) {
export const countdownProps = () => {
return {
...statisticProps(),
value: [Number, String],
value: [Number, String, Object] as PropType<countdownValueType>,
format: String,
onFinish: Function as PropType<() => void>,
onChange: Function as PropType<(value?: countdownValueType) => void>,

View File

@ -2,7 +2,7 @@ import type { VNodeTypes } from 'vue';
import padStart from 'lodash-es/padStart';
export type valueType = number | string;
export type countdownValueType = valueType | string;
export type countdownValueType = valueType | Date;
export type Formatter =
| false