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

jim's avatar
jim committed
4
export interface INoticeIconProps {
5
  count?: number;
6
  bell?: React.ReactNode;
7 8 9
  className?: string;
  loading?: boolean;
  onClear?: (tableTile: string) => void;
jim's avatar
jim committed
10
  onItemClick?: (item: INoticeIconData, tabProps: INoticeIconProps) => void;
11 12 13 14 15 16 17 18 19 20
  onTabChange?: (tableTile: string) => void;
  popupAlign?: {
    points?: [string, string];
    offset?: [number, number];
    targetOffset?: [number, number];
    overflow?: any;
    useCssRight?: boolean;
    useCssBottom?: boolean;
    useCssTransform?: boolean;
  };
jim's avatar
jim committed
21
  style?: React.CSSProperties;
22 23 24 25 26
  onPopupVisibleChange?: (visible: boolean) => void;
  popupVisible?: boolean;
  locale?: { emptyText: string; clear: string };
}

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