Files
lingxiao865 c5af079d8c first commit
2026-02-10 08:05:03 +08:00

56 lines
1.7 KiB
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/* eslint-disable */
/**
* 该文件为脚本自动生成文件,请勿随意修改。如需修改请联系 PMC
* */
import type { TdProgressProps } from './type';
export default {
/** 进度条颜色。示例:'#ED7B2F' 或 'orange' 或 `['#f00', '#0ff', '#f0f']` 或 `{ '0%': '#f00', '100%': '#0ff' }` 或 `{ from: '#000', to: '#000' }` 等 */
color: {
type: [String, Object, Array],
default: '' as TdProgressProps['color'],
},
/** 进度百分比,可自定义 */
label: {
type: [String, Boolean],
default: true as TdProgressProps['label'],
},
/** 进度条百分比 */
percentage: {
type: Number,
default: 0,
},
/** 进度条尺寸仅对环形进度条有效。可选值default/micro。default 值为 112 micro 值为 24 */
size: {
type: [String, Number],
default: 'default' as TdProgressProps['size'],
},
/** 进度条状态 */
status: {
type: String,
validator(val: TdProgressProps['status']): boolean {
if (!val) return true;
return ['success', 'error', 'warning', 'active'].includes(val);
},
},
/** 进度条线宽,默认单位 `px` */
strokeWidth: {
type: [String, Number],
},
/** 进度条风格。值为 line标签label显示在进度条右侧值为 plump标签label显示在进度条里面值为 circle标签label显示在进度条正中间 */
theme: {
type: String,
default: 'line' as TdProgressProps['theme'],
validator(val: TdProgressProps['theme']): boolean {
if (!val) return true;
return ['line', 'plump', 'circle'].includes(val);
},
},
/** 进度条未完成部分颜色 */
trackColor: {
type: String,
default: '',
},
};