index.d.ts 810 B

123456789101112131415161718192021222324252627
  1. import React from 'react';
  2. import NoticeIconTab, { NoticeIconData } from './NoticeIconTab';
  3. export interface NoticeIconProps {
  4. count?: number;
  5. bell?: React.ReactNode;
  6. className?: string;
  7. loading?: boolean;
  8. onClear?: (tabName: string) => void;
  9. onItemClick?: (item: NoticeIconData, tabProps: NoticeIconProps) => void;
  10. onViewMore?: (tabProps: NoticeIconProps, e: MouseEvent) => void;
  11. onTabChange?: (tabTile: string) => void;
  12. style?: React.CSSProperties;
  13. onPopupVisibleChange?: (visible: boolean) => void;
  14. popupVisible?: boolean;
  15. locale?: {
  16. emptyText: string;
  17. clear: string;
  18. viewMore: string;
  19. [key: string]: string;
  20. };
  21. clearClose?: boolean;
  22. }
  23. export default class NoticeIcon extends React.Component<NoticeIconProps, any> {
  24. public static Tab: typeof NoticeIconTab;
  25. }