## NoticeBar ### Install ``` javascript import { NoticeBar } from 'vant'; Vue.use(NoticeBar); ``` ### Usage #### Basic Usage ```html ``` #### Mode ```html Only those who have the patience to do simple things perfectly ever acquire the skill to do difficult things easily. Only those who have the patience to do simple things perfectly ever acquire the skill to do difficult things easily. ``` #### Disable scroll ```html Only those who have the patience to do simple things perfectly ever acquire the skill to do difficult things easily. ``` #### Wrapable ```html Only those who have the patience to do simple things perfectly ever acquire the skill to do difficult things easily. ``` ### Props | Attribute | Description | Type | Default | |------|------|------|------| | mode | Mode, can be set to `closeable` `link` | `String` | `''` | | text | Notice text content | `String` | `''` | - | | delay | Animation delay (s) | `Number` | `1` | | speed | Scroll speed (px/s) | `Number` | `50` | | scrollable | Whether to scroll content | `Boolean` | `true` | | wrapable | Whether to enable text wrap | `Boolean` | `false` | - | | left-icon | Left Icon | `String` | - | | color | Text color | `String` | `#f60` | | background | Background color | `String` | `#fff7cc` | ### Events | Event | Description | Arguments | |------|------|------| | click | Triggered when click NoticeBar | - | | close | Triggered when closed | - | ### Slots | Name | Description | |------|------| | default | Notice text content | | left-icon | Custom left icon | | right-icon | Custom right icon |