Commit ea776aa7 by chewenye Committed by GitHub

types: 扩展user-dropdown组件的menus类型,支持iconify (#6283)

Co-authored-by: 车文烨 <chewy@china-lehua.com>
1 parent feb96dc8
...@@ -46,7 +46,11 @@ interface Props { ...@@ -46,7 +46,11 @@ interface Props {
/** /**
* 菜单数组 * 菜单数组
*/ */
menus?: Array<{ handler: AnyFunction; icon?: Component; text: string }>; menus?: Array<{
handler: AnyFunction;
icon?: Component | Function | string;
text: string;
}>;
/** /**
* 标签文本 * 标签文本
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!