可以先参考:https://blog.csdn.net/weixin_42418774/article/details/90510480
来搭建vue项目
然后再npm 安装组件,引用组件
一、npm i element-ui -S 命令
二、可以在项目中查看一下,是否安装成功(如下图)
在node_modules中:
三、引用组件
在mine.js中导入:
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
Vue.use(ElementUI)
然后再去页面编写组件代码样式就可以了:
最后运行一下项目就好了npm run dev