[Doc] new theme
This commit is contained in:
@@ -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 |
|
||||
|
||||
Reference in New Issue
Block a user