mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-03 04:30:06 +08:00
docs: fix import style error due to duplicated identifier (#4917)
* fix render unuse className when type is undefined * docs: fix import style error due to duplicated identifier
This commit is contained in:
parent
58afe5f729
commit
5ff8723a9f
@ -168,7 +168,7 @@ But, we can import individual components on demand:
|
||||
|
||||
```jsx
|
||||
import Button from 'antd/lib/button';
|
||||
import Button from 'antd/lib/button/style/css'; // import style
|
||||
import 'antd/lib/button/style/css'; // import style
|
||||
```
|
||||
|
||||
We strongly recommend to use [babel-plugin-import](https://github.com/ant-design/babel-plugin-import), which can convert the following code to the 'antd/lib/xxx' way:
|
||||
|
@ -166,7 +166,7 @@ IE8 需要配合使用 [react@0.14.x](https://facebook.github.io/react/blog/2016
|
||||
|
||||
```jsx
|
||||
import Button from 'antd/lib/button';
|
||||
import Button from 'antd/lib/button/style/css'; // 按需引入 css
|
||||
import 'antd/lib/button/style/css'; // 按需引入 css
|
||||
```
|
||||
|
||||
如果你使用了 babel,那么可以使用 [babel-plugin-import](https://github.com/ant-design/babel-plugin-import) 来进行按需加载,加入这个插件后。你可以仍然这么写:
|
||||
|
Loading…
Reference in New Issue
Block a user