antd按需加载

如:import { Button } from ‘antd’; 的写法是引入了 antd 下全部的模块,这会影响应用的网络性能。javascript 一,能够经过如下的写法来按需加载组件。css import Button from 'antd/es/button'; import 'antd/es/button/style'; // 或者 antd/es/button/style/css 加载
相关文章
相关标签/搜索