vue2项目引入3.2.14版ant-design-vue会报1600多个编译错误,纯属版本问题,但3.2.14版本卸载会出错,需要删除项目重建,重建后搜索依赖ant-design-vue-fixed-table,这版其实就是ant-design-vue的1.7.8版本,引入方式如下:
import Vue from 'vue' import App from './App.vue' import store from './store' import Antd from 'ant-design-vue-fixed-table' import 'ant-design-vue-fixed-table/dist/antd.css' Vue.config.productionTip = false Vue.use(Antd) new Vue({ store, render: h => h(App) }).$mount('#app')
标签:vue,ant,Vue,design,vue2,import,报错 From: https://www.cnblogs.com/niuyj/p/16878991.html