feat(GoodsActionButton): add icon prop

This commit is contained in:
陈嘉涵
2020-01-22 21:59:32 +08:00
parent 2b82dcc3dd
commit b83bed3b6c
4 changed files with 5 additions and 1 deletions
+1
View File
@@ -104,6 +104,7 @@ Use `info` prop to show badge in icon
| text | Button text | *string* | - |
| type | Button type, Can be set to `primary` `info` `warning` `danger` | *string* | `default` |
| color `v2.1.8` | Button color, support linear-gradient | *string* | - |
| icon `2.4.4` | Left Icon | *string* | - |
| primary | Is primary button (red color) | *boolean* | `false` |
| disabled | Whether to disable button | *boolean* | `false` |
| loading | Whether show loading status | *boolean* | `false` |
+1
View File
@@ -108,6 +108,7 @@ export default {
| text | 按钮文字 | *string* | - |
| type | 按钮类型,可选值为 `primary` `info` `warning` `danger` | *string* | `default` |
| color `v2.1.8` | 按钮颜色,支持传入`linear-gradient`渐变色 | *string* | - |
| icon `2.4.4` | 左侧图标名称或图片链接,可选值见 [Icon 组件](#/zh-CN/icon) | *string* | - |
| disabled | 是否禁用按钮 | *boolean* | `false` | - |
| loading | 是否显示为加载状态 | *boolean* | `false` | - |
| url | 点击后跳转的链接地址 | *string* | - |