perf: 更干净整洁的项目配置右侧弹出面板 (#841)

This commit is contained in:
xiaoming
2024-01-01 12:55:39 +08:00
committed by GitHub
parent e7d55ff67e
commit 7acdf03f87
15 changed files with 309 additions and 319 deletions

View File

@@ -33,7 +33,7 @@ export function useRenderIcon(icon: any, attrs?: iconType): Component {
});
} else if (typeof icon === "function" || typeof icon?.render === "function") {
// svg
return icon;
return h(icon, { ...attrs });
} else if (typeof icon === "object") {
return defineComponent({
name: "OfflineIcon",

View File

@@ -13,7 +13,8 @@ export interface iconType {
align?: string;
onLoad?: Function;
includes?: Function;
// all icon
// svg 需要什么SVG属性自行添加
fill?: string;
// all icon
style?: object;
}