UNPKG

@aplus-frontend/antdv

Version:

Vue basic component library maintained based on ant-design-vue

20 lines (19 loc) 711 B
import type { VNodeTypes } from 'vue'; export type valueType = number | string; export type countdownValueType = number | string; export type Formatter = false | 'number' | 'countdown' | (({ value, config }: { value: valueType; config?: FormatConfig; }) => VNodeTypes); export interface FormatConfig { formatter?: Formatter; decimalSeparator?: string; groupSeparator?: string; precision?: number; prefixCls?: string; } export interface CountdownFormatConfig extends FormatConfig { format?: string; } export declare function formatTimeStr(duration: number, format: string): string; export declare function formatCountdown(value: valueType, config: CountdownFormatConfig): string;