2024-12-01 11:56:54 +00:00
|
|
|
|
import { IBaseProps } from '../_util/base';
|
2024-11-10 07:01:22 +00:00
|
|
|
|
/**
|
|
|
|
|
* @description 弹窗,可在其中加入具体内容,展示更多信息供用户使用。
|
|
|
|
|
*/
|
|
|
|
|
export interface IProgressBarProps extends IBaseProps {
|
2024-12-01 11:56:54 +00:00
|
|
|
|
/**
|
|
|
|
|
* @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;
|
2024-11-10 07:01:22 +00:00
|
|
|
|
}
|
|
|
|
|
export declare const ProgressBarDefaultProps: Partial<IProgressBarProps>;
|