docs: update install guide

This commit is contained in:
chenjiahan
2020-08-21 11:42:40 +08:00
parent 17379286c8
commit 435c6ee794
4 changed files with 10 additions and 6 deletions

View File

@@ -82,11 +82,12 @@ import 'vant/lib/button/style';
### 3. Import all components
```js
import Vue from 'vue';
import { createApp } from 'vue';
import Vant from 'vant';
import 'vant/lib/index.css';
Vue.use(Vant);
const app = createApp();
app.use(Vant);
```
> If you configured babel-plugin-import, you won't be allowed to import all components.