有个需求,引入了vant组件,但是只有内网,所以需要本地引入
局部组件引入的解决方案:
1.import { RadioGroup, Radio, CellGroup, Cell, CheckboxGroup, Checkbox, Rate, DatetimePicker, Popup, Uploader, Button, Icon, Slider, Toast } from 'vant';
2.样式里设置,把字体库从包里拷贝出来放到静态资源文件里即可