[new feature] NoticeBar: support use inner icon (#2305)
This commit is contained in:
@@ -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` | - |
|
||||
|
||||
|
||||
Reference in New Issue
Block a user