fix: dropdown menu log warning, close #5127

This commit is contained in:
tangjinzhou 2022-01-06 09:54:27 +08:00
parent 81ab68f696
commit 3e8959ad22

View File

@ -61,7 +61,7 @@ export const menuProps = {
onOpenChange: Function as PropType<(keys: Key[]) => void>,
onSelect: Function as PropType<SelectEventHandler>,
onDeselect: Function as PropType<SelectEventHandler>,
onClick: Function as PropType<MenuClickEventHandler>,
onClick: [Function, Array] as PropType<MenuClickEventHandler>,
onFocus: Function as PropType<FocusEventHandler>,
onBlur: Function as PropType<FocusEventHandler>,
'onUpdate:openKeys': Function as PropType<(keys: Key[]) => void>,