mirror of
https://github.com/youzan/vant.git
synced 2026-04-03 02:06:24 +08:00
Doc: add usage guide
This commit is contained in:
@@ -43,6 +43,13 @@ export default {
|
||||
|
||||
## Switch 开关
|
||||
|
||||
### 使用指南
|
||||
``` javascript
|
||||
import { Switch } from 'vant';
|
||||
|
||||
Vue.component(Switch.name, Switch);
|
||||
```
|
||||
|
||||
### 代码演示
|
||||
|
||||
#### 基础用法
|
||||
|
||||
Reference in New Issue
Block a user