Merge branch '2.x' into dev
This commit is contained in:
@@ -34,15 +34,15 @@ app.use(NoticeBar);
|
||||
### Wrapable
|
||||
|
||||
```html
|
||||
<van-notice-bar wrapable :scrollable="false"> Notice Content </van-notice-bar>
|
||||
<van-notice-bar wrapable :scrollable="false">Notice Content</van-notice-bar>
|
||||
```
|
||||
|
||||
### Mode
|
||||
|
||||
```html
|
||||
<van-notice-bar mode="closeable"> Notice Content </van-notice-bar>
|
||||
<van-notice-bar mode="closeable">Notice Content</van-notice-bar>
|
||||
|
||||
<van-notice-bar mode="link"> Notice Content </van-notice-bar>
|
||||
<van-notice-bar mode="link">Notice Content</van-notice-bar>
|
||||
```
|
||||
|
||||
### Custom Style
|
||||
@@ -82,7 +82,7 @@ app.use(NoticeBar);
|
||||
### Props
|
||||
|
||||
| Attribute | Description | Type | Default |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| --- | --- | --- | --- |
|
||||
| mode | Mode, can be set to `closeable` `link` | _string_ | `''` |
|
||||
| text | Notice text content | _string_ | `''` | - |
|
||||
| color | Text color | _string_ | `#f60` |
|
||||
|
||||
@@ -60,10 +60,10 @@ app.use(NoticeBar);
|
||||
|
||||
```html
|
||||
<!-- closeable 模式,在右侧显示关闭按钮 -->
|
||||
<van-notice-bar mode="closeable"> 技术是开发它的人的共同灵魂。 </van-notice-bar>
|
||||
<van-notice-bar mode="closeable">技术是开发它的人的共同灵魂。</van-notice-bar>
|
||||
|
||||
<!-- link 模式,在右侧显示链接箭头 -->
|
||||
<van-notice-bar mode="link"> 技术是开发它的人的共同灵魂。 </van-notice-bar>
|
||||
<van-notice-bar mode="link">技术是开发它的人的共同灵魂。</van-notice-bar>
|
||||
```
|
||||
|
||||
### 自定义样式
|
||||
|
||||
Reference in New Issue
Block a user