index.d.ts 874 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 6 7 8
  count?: number;
  className?: string;
  loading?: boolean;
  onClear?: (tableTile: string) => void;
jim's avatar
jim committed
9
  onItemClick?: (item: INoticeIconData, tabProps: INoticeIconProps) => void;
10 11 12 13 14 15 16 17 18 19
  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
20
  style?: React.CSSProperties;
21 22 23 24 25
  onPopupVisibleChange?: (visible: boolean) => void;
  popupVisible?: boolean;
  locale?: { emptyText: string; clear: string };
}

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