index.d.ts 810 Bytes
Newer Older
1 2
import React from 'react';
import NoticeIconTab, { NoticeIconData } from './NoticeIconTab';
3

4
export interface NoticeIconProps {
5
  count?: number;
6
  bell?: React.ReactNode;
7 8
  className?: string;
  loading?: boolean;
9
  onClear?: (tabName: string) => void;
10 11
  onItemClick?: (item: NoticeIconData, tabProps: NoticeIconProps) => void;
  onViewMore?: (tabProps: NoticeIconProps, e: MouseEvent) => 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
}

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