mirror of
https://github.com/youzan/vant.git
synced 2025-10-19 18:14:13 +00:00
[Doc] add tips of babel-plugin-import
This commit is contained in:
@@ -38,6 +38,7 @@ import 'vant/lib/vant-css/button.css';
|
|||||||
```
|
```
|
||||||
|
|
||||||
#### 3. Import all components
|
#### 3. Import all components
|
||||||
|
If you configured babel-plugin-import, you won't be allowed to import all components.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
import Vue from 'vue';
|
import Vue from 'vue';
|
||||||
|
@@ -38,6 +38,7 @@ import 'vant/lib/vant-css/button.css';
|
|||||||
```
|
```
|
||||||
|
|
||||||
#### 方式三. 导入所有组件
|
#### 方式三. 导入所有组件
|
||||||
|
配置 babel-plugin-import 插件后将不允许导入所有组件的方式
|
||||||
|
|
||||||
```js
|
```js
|
||||||
import Vue from 'vue';
|
import Vue from 'vue';
|
||||||
|
Reference in New Issue
Block a user