mirror of
https://github.com/youzan/vant.git
synced 2025-10-18 17:51:54 +00:00
docs: update component registration guide
This commit is contained in:
@@ -3,10 +3,11 @@
|
||||
### Install
|
||||
|
||||
```js
|
||||
import Vue from 'vue';
|
||||
import { createApp } from 'vue';
|
||||
import { Button } from 'vant';
|
||||
|
||||
Vue.use(Button);
|
||||
const app = createApp();
|
||||
app.use(Button);
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
@@ -3,10 +3,11 @@
|
||||
### 引入
|
||||
|
||||
```js
|
||||
import Vue from 'vue';
|
||||
import { createApp } from 'vue';
|
||||
import { Button } from 'vant';
|
||||
|
||||
Vue.use(Button);
|
||||
const app = createApp();
|
||||
app.use(Button);
|
||||
```
|
||||
|
||||
## 代码演示
|
||||
|
Reference in New Issue
Block a user