Skip to content

Commit

Permalink
docs: change Element Plus url
Browse files Browse the repository at this point in the history
  • Loading branch information
yiyunwan committed Jun 28, 2022
1 parent 3b02989 commit 7bf1da6
Showing 1 changed file with 1 addition and 39 deletions.
40 changes: 1 addition & 39 deletions docs/guide/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,45 +75,7 @@ $ npm install --save @formily/core @formily/vue @vue/composition-api @formily/el

## 按需打包

`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)

`@formily/element-plus`按需引入需借助 `babel-plugin-import`

#### 安装 `babel-plugin-import`

```shell
npm install babel-plugin-import --save-dev
```

或者

```shell
yarn add babel-plugin-import --dev
```

修改 `.babelrc`

```json
{
"plugins": [
[
"component",
{
"libraryName": "element-plus",
"styleLibraryName": "theme-chalk"
}
],
[
"import",
{
"libraryName": "@formily/element-plus",
"libraryDirectory": "esm",
"style": true
}
]
]
}
```
`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)

## Q/A

Expand Down

0 comments on commit 7bf1da6

Please # to comment.