核心提示:element-ui1.x升2.x的教程package.json 做一下修改dependencies: { element-ui: 2.0.9,vue: 2.5.2,vue-router: 3.0.1...
element-ui1.x升2.x的教程
package.json 做一下修改
"dependencies": { "element-ui": "2.0.9", "vue": "2.5.2", "vue-router": "3.0.1", "vuex": "3.0.0",
"devDependencies": { "vue-class-component": "^6.0.0", "vue-loader": "^13.3.0", "vue-property-decorator": "^6.0.0", "vue-template-compiler": "2.5.2",
main.js修改引用先后 和CSS路径
import Vue from 'vue' import ElementUI from 'element-ui' import 'element-ui/lib/theme-chalk/index.css' import App from './App.vue' //这里要把App的引用顺序放到最后
注意 !先把node_modules 文件删了保险点。