index.d.ts 795 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
import React from 'react';
import { SiderTheme, CollapseType } from 'antd/es/Layout/Sider';
import { MenuMode } from 'antd/es/menu';

export interface TopNavHeaderProps {
  theme: SiderTheme;
  contentWidth?: string;
  menuData?: any[];
  logo?: string;
  mode?: MenuMode;
  flatMenuKeys?: any[];
  onCollapse?: (collapsed: boolean, type?: CollapseType) => void;
  isMobile?: boolean;
  openKeys?: any;
  className?: string;
  collapsed?: boolean;
  handleOpenChange?: (openKeys: any[]) => void;
  style?: React.CSSProperties;
  onOpenChange?: (openKeys: string[]) => void;
  onNoticeClear?: (type: string) => void;
  onMenuClick?: ({ key: string }) => void;
  onNoticeVisibleChange?: (b: boolean) => void;
}

export default class TopNavHeader extends React.Component<TopNavHeaderProps, any> {}