index.d.ts 802 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;
何乐's avatar
何乐 committed
11
  onLoadMore?: (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 19 20 21
  locale?: {
    emptyText: string;
    clear: string;
    loadedAll: string;
    loadMore: string;
  };
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
}