UNPKG

zilly-ui

Version:

Zilly web react ui components

39 lines (34 loc) 857 B
export interface IMenuItemProps { value: any; disabled?: boolean; className?: string; } export interface ISubMenuProps { title?: string | React.ReactNode; disabled?: boolean; onTitleClickHandle?: React.MouseEventHandler<HTMLElement>; value: any; className?: string; } export interface IContext { active: string; classes: any; multipleKeys: Array<string>; initKeys: (key: string) => void; handleSubMenuTitleClickHandle: ( ev: React.MouseEvent<any>, multipleKeys: [string, number] ) => void; handlMenuItemClick: (ev: React.MouseEvent<any>, cuurentKey: string) => void; hanldeClick?: React.MouseEventHandler<any>; } export interface IMenuState { active: string; keys: Array<string>; multipleKeys: Array<string>; } export interface IMenuProps { multiple?: boolean; className?: string; hanldeClick?: React.MouseEventHandler<any>; }