File tree Expand file tree Collapse file tree 1 file changed +1
-39
lines changed Expand file tree Collapse file tree 1 file changed +1
-39
lines changed Original file line number Diff line number Diff line change @@ -75,45 +75,7 @@ $ npm install --save @formily/core @formily/vue @vue/composition-api @formily/el
75
75
76
76
## 按需打包
77
77
78
- ` Element-UI ` 按需引入参见 [ https://element.eleme.io/#/zh-CN/component/quickstart#an-xu-yin-ru ] ( https://element.eleme.io/#/zh-CN/component/quickstart#an-xu-yin-ru )
79
-
80
- ` @formily/element-plus ` 按需引入需借助 ` babel-plugin-import `
81
-
82
- #### 安装 ` babel-plugin-import `
83
-
84
- ``` shell
85
- npm install babel-plugin-import --save-dev
86
- ```
87
-
88
- 或者
89
-
90
- ``` shell
91
- yarn add babel-plugin-import --dev
92
- ```
93
-
94
- 修改 ` .babelrc `
95
-
96
- ``` json
97
- {
98
- "plugins" : [
99
- [
100
- " component" ,
101
- {
102
- "libraryName" : " element-plus" ,
103
- "styleLibraryName" : " theme-chalk"
104
- }
105
- ],
106
- [
107
- " import" ,
108
- {
109
- "libraryName" : " @formily/element-plus" ,
110
- "libraryDirectory" : " esm" ,
111
- "style" : true
112
- }
113
- ]
114
- ]
115
- }
116
- ```
78
+ ` Element Plus ` 按需引入参见 [ https://element-plus.gitee.io/zh-CN/guide/quickstart.html#%E6%8C%89%E9%9C%80%E5%AF%BC%E5%85%A5 ] ( https://element-plus.gitee.io/zh-CN/guide/quickstart.html#%E6%8C%89%E9%9C%80%E5%AF%BC%E5%85%A5 )
117
79
118
80
## Q/A
119
81
You can’t perform that action at this time.
0 commit comments