1.安裝note.jscss
2.安裝vue-cli: npm install --global vue-clihtml
第一步確保 npm 和vue-cli 已經安裝執行命令:vue
執行項目git
npm run dev
打開package.json,找到devDependencies並在最後加上"element-ui": 「^2.2.1」github
打開命令行中止服務,再經過npm install
進行安裝,安裝完成後npm run dev
啓動vue-cli
打開main.js 添加三行代碼npm
import ElementUI from 'element-ui' //新添加 import 'element-ui/lib/theme-chalk/index.css' //新添加, Vue.use(ElementUI) //新添加
參考:https://blog.csdn.net/csdnear/article/details/79426915element-ui
https://www.cnblogs.com/zhoulifeng/p/9900564.htmljson
https://blog.csdn.net/snowbeatrain/article/details/80776180ui
https://www.cnblogs.com/zhaoyongblog/p/10103237.html
https://www.cnblogs.com/zhaoyongblog/p/10103237.html
https://www.cnblogs.com/yeziTesting/p/7189779.html
https://github.com/WebCodeFarmer/houtai
https://github.com/loveRandy/vue-cli3.0-vueadmin