<script src="//unpkg.com/@element-plus/icons-vue"></script>
const app = Vue.createApp(App);
app.use(ElementPlus);
//重点就是这个循环,一个个注册
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
app.component(key, component)
}
app.mount("#app");