feat(GoodsActionIcon): add dot prop
This commit is contained in:
@@ -45,7 +45,7 @@ Use `info` prop to show badge in icon
|
||||
|
||||
```html
|
||||
<van-goods-action>
|
||||
<van-goods-action-icon icon="chat-o" text="Icon1" />
|
||||
<van-goods-action-icon icon="chat-o" text="Icon1" dot />
|
||||
<van-goods-action-icon icon="cart-o" text="Icon2" info="5" />
|
||||
<van-goods-action-icon icon="shop-o" text="Icon3" info="12" />
|
||||
<van-goods-action-button type="warning" text="Button1" />
|
||||
@@ -92,6 +92,7 @@ Use `info` prop to show badge in icon
|
||||
| icon | Icon | *string* | - |
|
||||
| color `v2.4.2` | Icon color | *string* | `#323233` |
|
||||
| icon-class | Icon class name | *any* | `''` |
|
||||
| dot `2.5.5` | Whether to show red dot | *boolean* | - |
|
||||
| info | Content of the badge | *number \| string* | - |
|
||||
| url | Link | *string* | - |
|
||||
| to | Target route of the link, same as to of vue-router | *string \| object* | - |
|
||||
|
||||
Reference in New Issue
Block a user