feat: 初始化项目

This commit is contained in:
dengtongyu committed 2025-05-27 14:55:54 +08:00
commit 40c1dffb79
73 files changed
+11449

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
import { toHump } from "@/lib/util";
const icon = (iconName: string) => {
if (!iconName) return;
const name = toHump(iconName, "-");
if(name === "IconInbox" || name === "IconSendDoc" || name === "IconSetting") {
const svgIcon = () => import(`./svgIcon/${name}.vue`);
return defineAsyncComponent(svgIcon);
}else{
const antdIcons = () => import(`../../node_modules/@ant-design/icons-vue/es/icons/${name}.js`);
return defineAsyncComponent(antdIcons);
}
};
export default icon;