first commit
This commit is contained in:
55
uni_modules/tdesign-uniapp/components/progress/props.ts
Normal file
55
uni_modules/tdesign-uniapp/components/progress/props.ts
Normal file
@@ -0,0 +1,55 @@
|
||||
/* 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: '',
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user