mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-28 05:05:48 +08:00
site: fix image
This commit is contained in:
parent
452aa84d9d
commit
765ae70cf5
@ -162,7 +162,7 @@ There are some [scaffolds](https://github.com/ant-design/ant-design/issues/129)
|
||||
|
||||
If you see a log like below screenshot, you might import all components by writing `import { Button } from 'antd';`, this will affect your app's network perfermance.
|
||||
|
||||
> ![](https://zos.alipayobjects.com/rmsportal/vgcHJRVZFmPjAawwVoXK.png
|
||||
![](https://zos.alipayobjects.com/rmsportal/vgcHJRVZFmPjAawwVoXK.png
|
||||
|
||||
But, we can import component on demand:
|
||||
|
||||
|
@ -160,7 +160,7 @@ IE8 需要配合使用 [react@0.14.x](https://facebook.github.io/react/blog/2016
|
||||
|
||||
如果你在控制台看到下面的提示,则你可能使用了 `import { Button } from 'antd';` 的写法引入了 antd 下所有的模块,这会影响应用的网络性能。
|
||||
|
||||
> ![](https://zos.alipayobjects.com/rmsportal/vgcHJRVZFmPjAawwVoXK.png
|
||||
![](https://zos.alipayobjects.com/rmsportal/vgcHJRVZFmPjAawwVoXK.png
|
||||
|
||||
可以通过以下的写法来按需加载组件。
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user