antd vue实现组件的按需引入

import {Layout,Button,Icon,Carousel,Input} from "ant-design-vue";
import 'ant-design-vue/lib/button/style/css';
import 'ant-design-vue/lib/input/style/css';
import 'ant-design-vue/lib/icon/style/css';
import 'ant-design-vue/lib/carousel/style/css';
import 'ant-design-vue/lib/layout/style/css';

Vue.config.productionTip = false;
Vue.use(Button);
Vue.use(Input);
Vue.use(Layout);
Vue.use(Icon);
Vue.use(Carousel);

antd vue实现组件的按需引入_第1张图片

 

你可能感兴趣的:(开发小技巧总结,vue.js,javascript,前端)