下载依赖
npm i
引入element
npm i element-ui -S
main.js写入
import Vue from ‘vue‘; import ElementUI from ‘element-ui‘;
import ‘element-ui/lib/theme-chalk/index.css‘;
import App from ‘./App.vue‘;
Vue.use(ElementUI);
new Vue({ el: ‘#app‘, render: h => h(App) });
原文:https://www.cnblogs.com/qq-2311024/p/14407493.html