mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-23 09:52:57 +08:00
[Doc] add tips of babel-plugin-import
This commit is contained in:
parent
11f9715793
commit
05dd8fec0e
@ -38,6 +38,7 @@ import 'vant/lib/vant-css/button.css';
|
||||
```
|
||||
|
||||
#### 3. Import all components
|
||||
If you configured babel-plugin-import, you won't be allowed to import all components.
|
||||
|
||||
```js
|
||||
import Vue from 'vue';
|
||||
|
@ -38,6 +38,7 @@ import 'vant/lib/vant-css/button.css';
|
||||
```
|
||||
|
||||
#### 方式三. 导入所有组件
|
||||
配置 babel-plugin-import 插件后将不允许导入所有组件的方式
|
||||
|
||||
```js
|
||||
import Vue from 'vue';
|
||||
|
Loading…
x
Reference in New Issue
Block a user