https://element-plus.gitee.io/#/zh-CN
安装element-plus
安装成功
main.js 中
import { createApp } from "vue"
import App from "./App.vue"
import "./registerServiceWorker"
import router from "./router"
import store from "./store"
import ElementPlus from "element-plus"
import "element-plus/lib/theme-chalk/index.css"
createApp(App).use(store).use(router).use(ElementPlus).mount("#app")
使用el-button
<template>
<div class="hello">
<h1>{{ msg }}</h1>
<p>
For a guide and recipes on how to configure / customize this project,<br />
check out the
<a href="https://cli.vuejs.org" target="_blank" rel="noopener"
>vue-cli documentation</a
>.
</p>
<h3>Installed CLI Plugins</h3>
<el-button>测试</el-button>
<el-button type="success">测试</el-button>
<el-button type="primary">测试</el-button>
</div>
</template>
npm run serve 运行