Browse Source

Extend MenuItemProps from HTMLAttributes<HTMLLIElement> (#17629)

pull/17656/head
Ivan 5 years ago
committed by zombieJ
parent
commit
9fdf41740d
  1. 6
      components/menu/MenuItem.tsx

6
components/menu/MenuItem.tsx

@ -5,7 +5,11 @@ import { MenuContext, MenuContextProps } from './';
import Tooltip, { TooltipProps } from '../tooltip';
import { SiderContext, SiderContextProps } from '../layout/Sider';
export interface MenuItemProps {
export interface MenuItemProps
extends Omit<
React.HTMLAttributes<HTMLLIElement>,
'title' | 'onClick' | 'onMouseEnter' | 'onMouseLeave'
> {
rootPrefixCls?: string;
disabled?: boolean;
level?: number;

Loading…
Cancel
Save