[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 -2
View File
@@ -14,7 +14,7 @@ Vue.use(NoticeBar);
```html
<van-notice-bar
text="足协杯战线连续第2年上演广州德比战,上赛季半决赛上恒大以两回合5-3的总比分淘汰富力。"
left-icon="//img.yzcdn.cn/vant/volume.png"
left-icon="volume-o"
/>
```
@@ -50,7 +50,7 @@ Vue.use(NoticeBar);
| delay | 动画延迟时间 (s) | `Number` | `1` | - |
| speed | 滚动速率 (px/s) | `Number` | `50` | - |
| scrollable | 是否在长度溢出时滚动播放 | `Boolean` | `true` | - |
| left-icon | 左侧图标图片 URL | `String` | - | - |
| left-icon | 左侧图标名称或图片链接,可选值见 Icon 组件 | `String` | - | - |
| color | 文本颜色 | `String` | `#f60` | - |
| background | 滚动条背景 | `String` | `#fff7cc` | - |