UNPKG

@tplc/wot

Version:

48 lines (47 loc) 880 B
import type { PropType } from 'vue' export type ProgressStatus = 'success' | 'danger' | 'warning' export type ProgressColor = { color: string percentage: number } export declare const progressProps: { /** * 进度数值,最大值100 */ percentage: { type: NumberConstructor default: number } /** * 是否隐藏进度条上的文字,默认值为false */ hideText: { type: BooleanConstructor default: boolean } /** * 进度条颜色 */ color: { type: PropType<string | string[] | ProgressColor[]> } /** * 进度增加1%所需毫秒数 */ duration: { type: NumberConstructor default: number } /** * 进度条状态 */ status: PropType<ProgressStatus> customStyle: { type: PropType<string> default: string } customClass: { type: PropType<string> default: string } }