NoticeIconTab.d.ts 770 Bytes
Newer Older
何乐's avatar
何乐 committed
1
import { SkeletonProps } from 'antd/lib/skeleton';
2
import React from 'react';
何乐's avatar
何乐 committed
3

4
export interface NoticeIconData {
Rayron Victor's avatar
Rayron Victor committed
5
  avatar?: string | React.ReactNode;
jim's avatar
jim committed
6 7 8 9 10 11 12
  title?: React.ReactNode;
  description?: React.ReactNode;
  datetime?: React.ReactNode;
  extra?: React.ReactNode;
  style?: React.CSSProperties;
}

13
export interface NoticeIconTabProps {
14
  count?: number;
jim's avatar
jim committed
15 16
  emptyText?: React.ReactNode;
  emptyImage?: string;
17
  list?: NoticeIconData[];
何乐's avatar
何乐 committed
18
  name?: string;
jim's avatar
jim committed
19
  showClear?: boolean;
20
  showViewMore?: boolean;
何乐's avatar
何乐 committed
21 22
  style?: React.CSSProperties;
  title?: string;
23 24 25 26 27
  data?: any[];
  onClick: (item: any) => void;
  onClear: (item: any) => void;
  locale: any;
  onViewMore: (e: any) => void;
jim's avatar
jim committed
28 29
}

30
export default class NoticeIconTab extends React.Component<NoticeIconTabProps, any> {}