|
@@ -1,19 +1,12 @@
|
|
|
-import * as React from 'react';
|
|
|
|
|
-export interface NoticeIconData {
|
|
|
|
|
- avatar?: string;
|
|
|
|
|
- title?: React.ReactNode;
|
|
|
|
|
- description?: React.ReactNode;
|
|
|
|
|
- datetime?: React.ReactNode;
|
|
|
|
|
- extra?: React.ReactNode;
|
|
|
|
|
- style?: React.CSSProperties;
|
|
|
|
|
-}
|
|
|
|
|
|
|
+import React from 'react';
|
|
|
|
|
+import NoticeIconTab, { INoticeIconData } from './NoticeIconTab';
|
|
|
|
|
|
|
|
-export interface NoticeIconProps {
|
|
|
|
|
|
|
+export interface INoticeIconProps {
|
|
|
count?: number;
|
|
count?: number;
|
|
|
className?: string;
|
|
className?: string;
|
|
|
loading?: boolean;
|
|
loading?: boolean;
|
|
|
onClear?: (tableTile: string) => void;
|
|
onClear?: (tableTile: string) => void;
|
|
|
- onItemClick?: (item: NoticeIconData, tabProps: NoticeIconProps) => void;
|
|
|
|
|
|
|
+ onItemClick?: (item: INoticeIconData, tabProps: INoticeIconProps) => void;
|
|
|
onTabChange?: (tableTile: string) => void;
|
|
onTabChange?: (tableTile: string) => void;
|
|
|
popupAlign?: {
|
|
popupAlign?: {
|
|
|
points?: [string, string];
|
|
points?: [string, string];
|
|
@@ -30,16 +23,6 @@ export interface NoticeIconProps {
|
|
|
locale?: { emptyText: string; clear: string };
|
|
locale?: { emptyText: string; clear: string };
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export interface NoticeIconTabProps {
|
|
|
|
|
- list?: Array<NoticeIconData>;
|
|
|
|
|
- title?: string;
|
|
|
|
|
- emptyText?: React.ReactNode;
|
|
|
|
|
- emptyImage?: string;
|
|
|
|
|
- style?: React.CSSProperties;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export class NoticeIconTab extends React.Component<NoticeIconTabProps, any> {}
|
|
|
|
|
-
|
|
|
|
|
-export default class NoticeIcon extends React.Component<NoticeIconProps, any> {
|
|
|
|
|
- static Tab: typeof NoticeIconTab;
|
|
|
|
|
|
|
+export default class NoticeIcon extends React.Component<INoticeIconProps, any> {
|
|
|
|
|
+ public static Tab: typeof NoticeIconTab;
|
|
|
}
|
|
}
|