[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 |
|
||||
|
||||
@@ -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
|
||||
|
||||
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
||||
|
||||
Reference in New Issue
Block a user