feat: 初始化项目
This commit is contained in:
commit
40c1dffb79
73 files changed
+11449
No files matched your search
@@ -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;
|
||||
Reference in new issue
Block a user