[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 @@
## Panel
# Panel
### Install
``` javascript
import { Panel } from 'vant';
Vue.use(Panel);
```
### Usage
## Usage
#### Basic Usage
### Basic Usage
```html
<van-panel title="Title" desc="Description" status="Status">
@@ -17,7 +18,7 @@ Vue.use(Panel);
</van-panel>
```
#### Advanced Usage
### Advanced Usage
```html
<van-panel title="Title" desc="Description" status="Status">
@@ -29,6 +30,8 @@ Vue.use(Panel);
</van-panel>
```
## API
### Props
| Attribute | Description | Type | Default |
+10 -5
View File
@@ -1,15 +1,17 @@
## Panel 面板
# Panel 面板
### 引入
### 使用指南
``` javascript
import { Panel } from 'vant';
Vue.use(Panel);
```
### 代码演示
## 代码演示
### 基础用法
#### 基础用法
面板只是一个容器,里面可以放入自定义的内容
```html
@@ -18,7 +20,8 @@ Vue.use(Panel);
</van-panel>
```
#### 高级用法
### 高级用法
使用`slot`自定义内容
```html
@@ -31,6 +34,8 @@ Vue.use(Panel);
</van-panel>
```
## API
### Props
| 参数 | 说明 | 类型 | 默认值 | 版本 |