index.d.ts 806 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
  onViewMore?: (tabProps: INoticeIconProps) => void;
12
  onTabChange?: (tabTile: string) => void;
jim's avatar
jim committed
13
  style?: React.CSSProperties;
14 15
  onPopupVisibleChange?: (visible: boolean) => void;
  popupVisible?: boolean;
何乐's avatar
何乐 committed
16 17 18
  locale?: {
    emptyText: string;
    clear: string;
19 20
    viewMore: string;
    [key: string]: string;
何乐's avatar
何乐 committed
21
  };
wingsico's avatar
wingsico committed
22
  clearClose?: boolean;
23 24
}

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