element-plus
Version:
A Component Library for Vue 3
56 lines (55 loc) • 2.18 kB
TypeScript
import type { ExtractPublicPropTypes, StyleValue } from 'vue';
import type { Dayjs } from 'dayjs';
import type Countdown from './countdown.vue';
export interface CountdownProps {
/**
* @description Formatting the countdown display
*/
format?: string;
/**
* @description Sets the prefix of a countdown
*/
prefix?: string;
/**
* @description Sets the suffix of a countdown
*/
suffix?: string;
/**
* @description countdown titles
*/
title?: string;
/**
* @description target time
*/
value?: number | Dayjs;
/**
* @description Styles countdown values
*/
valueStyle?: StyleValue;
}
/**
* @deprecated Removed after 3.0.0, Use `CountdownProps` instead.
*/
export declare const countdownProps: {
readonly format: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "HH:mm:ss", boolean>;
readonly prefix: StringConstructor;
readonly suffix: StringConstructor;
readonly title: StringConstructor;
readonly value: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => number | Dayjs) | (() => number | Dayjs) | ((new (...args: any[]) => number | Dayjs) | (() => number | Dayjs))[], unknown, unknown, 0, boolean>;
readonly valueStyle: {
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | false | import("vue").CSSProperties | StyleValue[]) | (() => StyleValue) | ((new (...args: any[]) => string | false | import("vue").CSSProperties | StyleValue[]) | (() => StyleValue))[], unknown, unknown>>;
readonly required: false;
readonly validator: ((val: unknown) => boolean) | undefined;
__epPropKey: true;
};
};
/**
* @deprecated Removed after 3.0.0, Use `CountdownProps` instead.
*/
export type CountdownPropsPublic = ExtractPublicPropTypes<typeof countdownProps>;
export declare const countdownEmits: {
finish: () => boolean;
change: (value: number) => boolean;
};
export type CountdownEmits = typeof countdownEmits;
export type CountdownInstance = InstanceType<typeof Countdown> & unknown;