npm i element-ui -S
main.js文件下添加如下
import ElementUI from 'element-ui' //新添加
import 'element-ui/lib/theme-chalk/index.css' //新添加,避免后期打包样式不同,要放在import App from './App';之前
Vue.use(ElementUI) //新添加
npm i element-ui -S
main.js文件下添加如下
import ElementUI from 'element-ui' //新添加
import 'element-ui/lib/theme-chalk/index.css' //新添加,避免后期打包样式不同,要放在import App from './App';之前
Vue.use(ElementUI) //新添加