antd vue3全局引入图标

import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";

import Antd from "ant-design-vue";
import "ant-design-vue/dist/antd.css";
import * as Icons from "@ant-design/icons-vue";

const icons: any = Icons;

const app = createApp(App);
app.use(Antd);
app.use(store);
app.use(router);
app.mount("#app");
for (const i in icons) {
  app.component(i, icons[i]);
}
©️2020 CSDN 皮肤主题: 游动-白 设计师:上身试试 返回首页