[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
+7 -5
View File
@@ -1,15 +1,17 @@
## PullRefresh
# PullRefresh
### Install
``` javascript
import { PullRefresh } from 'vant';
Vue.use(PullRefresh);
```
### Usage
## Usage
### Basic Usage
#### Basic Usage
The `refresh` event will be triggered when pull refresh, you should set `v-model` to `false` to reset loading status after process refresh event.
```html
@@ -39,6 +41,8 @@ export default {
}
```
## API
### Props
| Attribute | Description | Type | Default |
@@ -53,14 +57,12 @@ export default {
| head-height | Height of head | `Number` | `50` |
| disabled | Whether to disable | `Boolean` | `false` |
### Events
| Event | Description | Parameters |
|------|------|------|
| refresh | Triggered when pull refresh | - |
### Slots
| Name | Description |
+7 -4
View File
@@ -1,15 +1,16 @@
## PullRefresh 下拉刷新
# PullRefresh 下拉刷新
### 引入
### 使用指南
``` javascript
import { PullRefresh } from 'vant';
Vue.use(PullRefresh);
```
### 代码演示
## 代码演示
#### 基础用法
### 基础用法
下拉刷新时会触发 `refresh` 事件,在事件的回调函数中可以进行同步或异步操作,操作完成后将 `v-model` 设置为 `false`,表示加载完成。
@@ -40,6 +41,8 @@ export default {
}
```
## API
### Props
| 参数 | 说明 | 类型 | 默认值 | 版本 |