[new feature] NoticeBar: support use inner icon (#2305)

This commit is contained in:
neverland
2018-12-16 16:07:40 +08:00
committed by GitHub
parent c100b045d1
commit ce225ea18b
6 changed files with 16 additions and 22 deletions
+2 -3
View File
@@ -14,7 +14,7 @@ Vue.use(NoticeBar);
```html
<van-notice-bar
text="Only those who have the patience to do simple things perfectly ever acquire the skill to do difficult things easily."
left-icon="//img.yzcdn.cn/vant/volume.png"
left-icon="volume-o"
/>
```
@@ -46,11 +46,10 @@ Vue.use(NoticeBar);
| delay | Animation delay (s) | `Number` | `1` |
| speed | Scroll speed (px/s) | `Number` | `50` |
| scrollable | Whether to scroll content | `Boolean` | `true` |
| left-icon | Image url of left icon | `String` | - |
| left-icon | Left Icon | `String` | - |
| color | Text color | `String` | `#f60` |
| background | Background color | `String` | `#fff7cc` |
### Event
| Event | Description | Arguments |