[Doc] new theme

This commit is contained in:
陈嘉涵
2019-05-15 20:53:04 +08:00
parent 3cae4288f2
commit d0f4169c86
130 changed files with 1460 additions and 1147 deletions
+9 -6
View File
@@ -1,15 +1,16 @@
## NoticeBar
# NoticeBar
### Install
``` javascript
import { NoticeBar } from 'vant';
Vue.use(NoticeBar);
```
### Usage
## Usage
#### Basic Usage
### Basic Usage
```html
<van-notice-bar
@@ -18,7 +19,7 @@ Vue.use(NoticeBar);
/>
```
#### Disable scroll
### Disable scroll
```html
<van-notice-bar :scrollable="false">
@@ -26,7 +27,7 @@ Vue.use(NoticeBar);
</van-notice-bar>
```
#### Wrapable
### Wrapable
```html
<van-notice-bar wrapable :scrollable="false">
@@ -34,7 +35,7 @@ Vue.use(NoticeBar);
</van-notice-bar>
```
#### Mode
### Mode
```html
<van-notice-bar mode="closeable">
@@ -58,6 +59,8 @@ Vue.use(NoticeBar);
</van-notice-bar>
```
## API
### Props
| Attribute | Description | Type | Default |