Skip to content

Commit ea776aa

Browse files
chewenye车文烨
and
车文烨
authored
types: 扩展user-dropdown组件的menus类型,支持iconify (#6283)
Co-authored-by: 车文烨 <[email protected]>
1 parent feb96dc commit ea776aa

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/effects/layouts/src/widgets/user-dropdown/user-dropdown.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,11 @@ interface Props {
4646
/**
4747
* 菜单数组
4848
*/
49-
menus?: Array<{ handler: AnyFunction; icon?: Component; text: string }>;
49+
menus?: Array<{
50+
handler: AnyFunction;
51+
icon?: Component | Function | string;
52+
text: string;
53+
}>;
5054
5155
/**
5256
* 标签文本

0 commit comments

Comments
 (0)