[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 -4
View File
@@ -1,15 +1,16 @@
## Popup
# Popup
### Install
``` javascript
import { Popup } from 'vant';
Vue.use(Popup);
```
### Usage
## Usage
#### Basic Usage
### Basic Usage
Popup is located in the middle of the screen by default
@@ -27,7 +28,7 @@ export default {
};
```
#### Position
### Position
Use `position` prop to set popup display position
@@ -37,6 +38,8 @@ Use `position` prop to set popup display position
</van-popup>
```
## API
### Props
| Attribute | Description | Type | Default |
+8 -5
View File
@@ -1,15 +1,16 @@
## Popup 弹出层
# Popup 弹出层
### 引入
### 使用指南
``` javascript
import { Popup } from 'vant';
Vue.use(Popup);
```
### 代码演示
## 代码演示
#### 基础用法
### 基础用法
`Popup`默认从中间弹出
@@ -27,7 +28,7 @@ export default {
};
```
#### 弹出位置
### 弹出位置
通过`position`属性设置`Popup`弹出位置
@@ -37,6 +38,8 @@ export default {
</van-popup>
```
## API
### Props
| 参数 | 说明 | 类型 | 默认值 | 版本 |