[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 |