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 * a
·
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]);
}
更多推荐
已为社区贡献8条内容
所有评论(0)