Progress
容器属性
所有组件配置的第一层均支持容器属性
组件属性 componentsProps
| Name | Type | Default | 是否支持 Variable Pattern | Description |
|---|---|---|---|---|
| className | string | ✔️ | 组件的 className | |
| style | object | 组件的 style | ||
| percent | number | string | 进度条的百分比 | ||
| status | 'default' | 'warning' | 'success' | 'error' | ✔️ | 状态 | |
| progressStyle | 'style1' | 'style2' | 'style3' | 'style4' | 'style1' | ✔️ | 外观样式 |
所有其余 componentsProps 将会被传给组件根元素(Progress)。
JS API
通过 formApi.getFieldApi() 获取的接口如下:
| Name | Type | Description |
|---|---|---|
| node | HTML Element | 组件的根 DOM 元素 |