## GoodsAction ### Install ``` javascript import { GoodsAction, GoodsActionBigBtn, GoodsActionMiniBtn } from 'vant'; Vue .use(GoodsAction) .use(GoodsActionBigBtn) .use(GoodsActionMiniBtn); ``` ### Usage #### Basic Usage ```html ``` ```javascript export default { methods: { onClickMiniBtn() { Toast('Click Icon'); }, onClickBigBtn() { Toast('Click Button'); } } } ``` #### Icon info Use `info` prop to show messages in upper right corner of icon ```html ``` ### API #### GoodsActionMiniBtn | Attribute | Description | Type | Default | Accepted Values | |-----------|-----------|-----------|-------------|-------------| | text | Button text | `String` | - | - | | icon | Icon | `String` | - | - | | icon-class | Icon class name | `String` | `''` | - | | info | Info message | `String` | - | - | | url | Link | `String` | - | - | | to | Target route of the link, same as to of `vue-router` | `String | Object` | - | - | | replace | If true, the navigation will not leave a history record | `String` | `false` | - | #### GoodsActionBigBtn | Attribute | Description | Type | Default | Accepted Values | |-----------|-----------|-----------|-------------|-------------| | text | Button text | `String` | - | - | | primary | Is primary button (red color) | `Boolean` | `false` | - | | url | Link | `String` | - | - | | to | Target route of the link, same as to of `vue-router` | `String | Object` | - | - | | replace | If true, the navigation will not leave a history record | `String` | `false` | - |