mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
docs(Cascader): fix install guide
This commit is contained in:
parent
eaabec940b
commit
9f758b981f
@ -3,10 +3,11 @@
|
||||
### Install
|
||||
|
||||
```js
|
||||
import Vue from 'vue';
|
||||
import { createApp } from 'vue';
|
||||
import { Cascader } from 'vant';
|
||||
|
||||
Vue.use(Cascader);
|
||||
const app = createApp();
|
||||
app.use(Cascader);
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
@ -7,10 +7,11 @@
|
||||
### 引入
|
||||
|
||||
```js
|
||||
import Vue from 'vue';
|
||||
import { createApp } from 'vue';
|
||||
import { Cascader } from 'vant';
|
||||
|
||||
Vue.use(Cascader);
|
||||
const app = createApp();
|
||||
app.use(Cascader);
|
||||
```
|
||||
|
||||
## 代码演示
|
||||
|
Loading…
x
Reference in New Issue
Block a user