feat(GoodsAcitonIcon): add color prop (#5576)
This commit is contained in:
@@ -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* | - |
|
||||
|
||||
Reference in New Issue
Block a user