mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-25 03:29:59 +08:00
adjust defaultProps def
This commit is contained in:
parent
8444ad209d
commit
b524e1fe7e
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user