feat(GoodsActionIcon): add dot prop

This commit is contained in:
chenjiahan
2020-03-10 20:38:11 +08:00
parent f2e9e1931b
commit b983ac0891
7 changed files with 35 additions and 6 deletions
+2 -1
View File
@@ -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* | - |