vue安装element

1.npm i element-ui -S

2.在项目main.js引入element相关的文件

import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
Vue.use(ElementUI)

原文地址:https://www.cnblogs.com/zaco/p/13848060.html