Skip to content

Commit 9dc0cc5

Browse files
author
hocgin
committed
dev
1 parent a75dc2b commit 9dc0cc5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/_utils/kit.ui.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ export default class UIKit {
2929
* 获取图标
3030
* @param name
3131
*/
32-
public static getIcon(name?: string): JSX.Element {
33-
if (!name) return;
32+
public static getIcon(name?: string | JSX.Element): JSX.Element {
33+
if (!name || typeof name === 'object') return name as any;
3434
const IconMap: Record<string, any> = {
3535
default: ICONS['BuildOutlined'],
3636
};

0 commit comments

Comments
 (0)