-
第一步:安装 npm install element-plus --save
-
第二步:在main.js文件夹上引入
import { createApp } from 'vue'
import './style.css'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import App from './App.vue'const app = createApp(App)app.use(ElementPlus)
app.mount('#app')
第三步:测试
<el-button type="primary">Primary</el-button>