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