antd-mini
Version:
antd-mini 是支付宝小程序 UI 组件库,遵循 Ant Design 规范。
48 lines (47 loc) • 1.15 kB
TypeScript
import { IBaseProps } from '../_util/base';
/**
* @description 弹窗,可在其中加入具体内容,展示更多信息供用户使用。
*/
export interface IProgressBarProps extends IBaseProps {
/**
* @description 当前进度,范围 0-100
* @default 0
*/
percent: number | string;
/**
* @description 模式
* @default 'line'
*/
type: 'line' | 'circle';
/**
* @description 圆形进度条画布宽度,单位 px
*/
width: number;
/**
* @description 进度条宽度,单位px
*/
strokeWidth: number | string;
/**
* @description 状态,仅限 line
*/
status: 'success' | 'exception';
/**
* @description 进度条颜色
*/
strokeColor: string;
/**
* @description 轨道颜色
*/
trailColor: string;
/**
* @description 每次绘制进度条推进的角度,默认6deg
* @default 6
*/
speed: number;
/**
* @description 是否开启过渡动画
* @default true
*/
animation: boolean;
}
export declare const ProgressBarDefaultProps: Partial<IProgressBarProps>;