adjust defaultProps def

This commit is contained in:
zombiej 2018-06-06 21:05:32 +08:00 committed by 偏右
parent 8444ad209d
commit b524e1fe7e

View File

@ -52,6 +52,7 @@ export interface MenuProps {
subMenuCloseDelay?: number;
subMenuOpenDelay?: number;
getPopupContainer?: (triggerNode: Element) => HTMLElement;
focusable?: boolean;
}
export interface MenuState {
@ -63,10 +64,10 @@ export default class Menu extends React.Component<MenuProps, MenuState> {
static Item = Item;
static SubMenu = SubMenu;
static ItemGroup = ItemGroup;
static defaultProps = {
static defaultProps: Partial<MenuProps> = {
prefixCls: 'ant-menu',
className: '',
theme: 'light' as MenuTheme, // or dark
theme: 'light', // or dark
focusable: false,
};
static childContextTypes = {