[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
+11 -7
View File
@@ -1,16 +1,20 @@
## SwitchCell
# SwitchCell
### Intro
`SwitchCell` component is an encapsulation of `Switch` and `Cell`.
### Install
``` javascript
import { SwitchCell } from 'vant';
Vue.use(SwitchCell);
```
### Usage
## Usage
#### Basic Usage
### Basic Usage
```html
<van-cell-group>
@@ -28,8 +32,7 @@ export default {
}
```
#### Disabled
### Disabled
use `disabled` property to disable the component
@@ -39,8 +42,7 @@ use `disabled` property to disable the component
</van-cell-group>
```
#### Loading
### Loading
use `loading` property to keep component in loading state
@@ -50,6 +52,8 @@ use `loading` property to keep component in loading state
</van-cell-group>
```
## API
### Props
| Attribute | Description | Type | Default |
+11 -6
View File
@@ -1,17 +1,20 @@
## SwitchCell 开关单元格
# SwitchCell 开关单元格
### 介绍
`SwitchCell`组件是对`Switch``Cell`组件的封装
### 使用指南
### 引入
``` javascript
import { SwitchCell } from 'vant';
Vue.use(SwitchCell);
```
### 代码演示
## 代码演示
#### 基础用法
### 基础用法
```html
<van-cell-group>
@@ -29,7 +32,7 @@ export default {
}
```
#### 禁用状态
### 禁用状态
通过`disabled`属性可以将组件设置为禁用状态
@@ -39,7 +42,7 @@ export default {
</van-cell-group>
```
#### 加载状态
### 加载状态
通过`loading`属性可以将组件设置为加载状态
@@ -49,6 +52,8 @@ export default {
</van-cell-group>
```
## API
### Props
| 参数 | 说明 | 类型 | 默认值 | 版本 |