index.d.ts 693 Bytes
Newer Older
陈帅's avatar
陈帅 committed
1
import * as React from 'react';
jim's avatar
jim committed
2
import NoticeIconTab, { INoticeIconData } from './NoticeIconTab';
3

jim's avatar
jim committed
4
export interface INoticeIconProps {
5
  count?: number;
6
  bell?: React.ReactNode;
7 8
  className?: string;
  loading?: boolean;
9
  onClear?: (tabName: string) => void;
jim's avatar
jim committed
10
  onItemClick?: (item: INoticeIconData, tabProps: INoticeIconProps) => void;
11
  onTabChange?: (tabTile: string) => void;
jim's avatar
jim committed
12
  style?: React.CSSProperties;
13 14 15
  onPopupVisibleChange?: (visible: boolean) => void;
  popupVisible?: boolean;
  locale?: { emptyText: string; clear: string };
wingsico's avatar
wingsico committed
16
  clearClose?: boolean;
17 18
}

jim's avatar
jim committed
19 20
export default class NoticeIcon extends React.Component<INoticeIconProps, any> {
  public static Tab: typeof NoticeIconTab;
21
}