docs: update component registration guide
This commit is contained in:
+3
-2
@@ -7,10 +7,11 @@ A list component to show items and control loading status.
|
||||
### Install
|
||||
|
||||
```js
|
||||
import Vue from 'vue';
|
||||
import { createApp } from 'vue';
|
||||
import { List } from 'vant';
|
||||
|
||||
Vue.use(List);
|
||||
const app = createApp();
|
||||
app.use(List);
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
@@ -7,10 +7,11 @@
|
||||
### 引入
|
||||
|
||||
```js
|
||||
import Vue from 'vue';
|
||||
import { createApp } from 'vue';
|
||||
import { List } from 'vant';
|
||||
|
||||
Vue.use(List);
|
||||
const app = createApp();
|
||||
app.use(List);
|
||||
```
|
||||
|
||||
## 代码演示
|
||||
|
||||
Reference in New Issue
Block a user