Result 结果
用于对用户的操作结果或者异常状态做反馈。
基础用法
primary 已被添加到2.9.11。
Primary Tip
Please follow the instructions
Success Tip
Please follow the instructions
Warning Tip
Please follow the instructions
Error Tip
Please follow the instructions
Info Tip
Using slot as subtitle
自定义内容
404
Sorry, request error
Result API
Result Attributes
| 属性名 | 说明 | 类型 | 默认值 |
|---|---|---|---|
| icon | 图标类型 | enum | info |
| title | 标题 | string / ReactNode | — |
| sub-title | 副标题 | string / ReactNode | — |
Result Slots
| 插槽名 | 说明 | React 写法 |
|---|---|---|
| icon | 自定义图标 | customIcon |
| title | 自定义标题 | title |
| sub-title | 自定义副标题 | subTitle |
| extra | 操作区 | extra |