UNPKG

@tplc/wot

Version:

78 lines (77 loc) 1.44 kB
import type { ExtractPropTypes, PropType } from 'vue' export type StrokeLinecapType = 'butt' | 'round' | 'square' export declare const circleProps: { /** * 当前进度 */ modelValue: { type: NumberConstructor default: number } /** * 圆环直径,默认单位为 px */ size: { type: NumberConstructor default: number } /** * 进度条颜色,传入对象格式可以定义渐变色 */ color: { type: PropType<string | Record<string, string>> default: string } /** * 轨道颜色 */ layerColor: { type: PropType<string> default: string } /** * 填充颜色 */ fill: StringConstructor /** * 动画速度(单位为 rate/s) */ speed: { type: NumberConstructor default: number } /** * 文字 */ text: StringConstructor /** * 进度条宽度 单位px */ strokeWidth: { type: NumberConstructor default: number } /** * 进度条端点的形状,可选值为 "butt" | "round" | "square" */ strokeLinecap: { type: PropType<StrokeLinecapType> default: StrokeLinecapType } /** * 是否顺时针增加 */ clockwise: { type: BooleanConstructor default: boolean } customStyle: { type: PropType<string> default: string } customClass: { type: PropType<string> default: string } } export type CircleProps = ExtractPropTypes<typeof circleProps>