qt-public-ui
Version:
新设计规范下业务组件库
23 lines (18 loc) • 1.65 kB
Markdown
## StepBar
| 参数 | 说明 | 类型 | 默认值 |
| ------------ | ----------------------------------------- | --------------------- | ------ |
| content | 步骤内容 | StepBarConfig[] | - |
| style | css 样式 | CSSProperties | - |
| value | 当前步骤 | string \| number | - |
| defaultValue | 默认步骤 | string \| number | - |
| type | 步骤条模式或者选中模式,step 为步骤条模式 | string | '' |
| onClick | 点击某个步骤项时调用的函数 | (key: string) => void | - |
#### StepBarConfig
单个步骤设置格式
| 参数 | 说明 | 类型 | 默认值 |
| -------- | --------------------------------------------------------------------- | ------- | ------ |
| key | 识别步骤项的键 | string | - |
| icon | 图标 | string | - |
| title | 标题 | string | - |
| tips | 文字提示内容 | string | - |
| disabled | 是否禁用,禁用时不会调用 onClick 函数,且选中模式下点击不会选中该步骤 | boolean | - |