动态菜单和动态路由的 antd pro

1234567891011121314151617181920212223242526272829
  1. import React from 'react';
  2. import NoticeIconTab, { INoticeIconData } from './NoticeIconTab';
  3. export interface INoticeIconProps {
  4. count?: number;
  5. className?: string;
  6. loading?: boolean;
  7. onClear?: (tableTile: string) => void;
  8. onItemClick?: (item: INoticeIconData, tabProps: INoticeIconProps) => void;
  9. onTabChange?: (tableTile: string) => void;
  10. popupAlign?: {
  11. points?: [string, string];
  12. offset?: [number, number];
  13. targetOffset?: [number, number];
  14. overflow?: any;
  15. useCssRight?: boolean;
  16. useCssBottom?: boolean;
  17. useCssTransform?: boolean;
  18. };
  19. style?: React.CSSProperties;
  20. onPopupVisibleChange?: (visible: boolean) => void;
  21. popupVisible?: boolean;
  22. locale?: { emptyText: string; clear: string };
  23. }
  24. export default class NoticeIcon extends React.Component<INoticeIconProps, any> {
  25. public static Tab: typeof NoticeIconTab;
  26. }