vue项目vue-cli
视频链接: https://www.bilibili.com/video/BV1QU4y1E7qo?p=4&spm_id_from=pageDriver
一、框架前期搭建
1、使用脚手架创建项目


2、安装elemen-ui并在项目中引入
参考教程链接:https://www.jianshu.com/p/2181f3c263c2
2.1全部引入(不建议使用,太占内存)
cnpm install element-ui -S --save--dev


import ElementUI from 'element-ui' import 'element-ui/lib/theme-chalk/index.css' Vue.use(ElementUI)
2.2 按需引入
https://element-plus.gitee.io/zh-CN/guide/quickstart.html#%E6%8C%89%E9%9C%80%E5%AF%BC%E5%85%A5
3、Eslint
、
module.exports = { lintonSave: false }

浙公网安备 33010602011771号