fix: countdown support dayjs value
parent
13e1db0bc4
commit
5edca6be5a
|
@ -14,7 +14,7 @@ function getTime(value?: countdownValueType) {
|
||||||
export const countdownProps = () => {
|
export const countdownProps = () => {
|
||||||
return {
|
return {
|
||||||
...statisticProps(),
|
...statisticProps(),
|
||||||
value: [Number, String],
|
value: [Number, String, Object] as PropType<countdownValueType>,
|
||||||
format: String,
|
format: String,
|
||||||
onFinish: Function as PropType<() => void>,
|
onFinish: Function as PropType<() => void>,
|
||||||
onChange: Function as PropType<(value?: countdownValueType) => void>,
|
onChange: Function as PropType<(value?: countdownValueType) => void>,
|
||||||
|
|
|
@ -2,7 +2,7 @@ import type { VNodeTypes } from 'vue';
|
||||||
import padStart from 'lodash-es/padStart';
|
import padStart from 'lodash-es/padStart';
|
||||||
|
|
||||||
export type valueType = number | string;
|
export type valueType = number | string;
|
||||||
export type countdownValueType = valueType | string;
|
export type countdownValueType = valueType | Date;
|
||||||
|
|
||||||
export type Formatter =
|
export type Formatter =
|
||||||
| false
|
| false
|
||||||
|
|
Loading…
Reference in New Issue