feat(GoodsAcitonIcon): add color prop (#5576)

This commit is contained in:
neverland
2020-01-14 15:19:21 +08:00
committed by GitHub
parent 70bfb65242
commit 0223258a01
5 changed files with 89 additions and 18 deletions
+13
View File
@@ -56,6 +56,18 @@ Use `info` prop to show badge in icon
</van-goods-action>
```
### Custom Icon Color
```html
<van-goods-action>
<van-goods-action-icon icon="chat-o" text="Icon1" color="#07c160" />
<van-goods-action-icon icon="cart-o" text="Icon2" />
<van-goods-action-icon icon="star" text="Collected" color="#ff5000" />
<van-goods-action-button type="warning" text="Button1" />
<van-goods-action-button type="danger" text="Button2" />
</van-goods-action>
```
### Custom Button Color
```html
@@ -81,6 +93,7 @@ Use `info` prop to show badge in icon
|------|------|------|------|
| text | Button text | *string* | - |
| icon | Icon | *string* | - |
| color `v2.4.2` | Icon color | *string* | `#323233` |
| icon-class | Icon class name | *any* | `''` |
| info | Content of the badge | *string \| number* | - |
| url | Link | *string* | - |