1 | import * as React from 'react';
|
2 | export interface NoticeConfig {
|
3 | content?: React.ReactNode;
|
4 | duration?: number | null;
|
5 | closeIcon?: React.ReactNode;
|
6 | closable?: boolean;
|
7 | className?: string;
|
8 | style?: React.CSSProperties;
|
9 |
|
10 | props?: React.HTMLAttributes<HTMLDivElement> & Record<string, any>;
|
11 | onClose?: VoidFunction;
|
12 | onClick?: React.MouseEventHandler<HTMLDivElement>;
|
13 | }
|
14 | export interface NoticeProps extends Omit<NoticeConfig, 'onClose'> {
|
15 | prefixCls: string;
|
16 | className?: string;
|
17 | style?: React.CSSProperties;
|
18 | eventKey: React.Key;
|
19 | onClick?: React.MouseEventHandler<HTMLDivElement>;
|
20 | onNoticeClose?: (key: React.Key) => void;
|
21 | }
|
22 | declare const Notify: React.ForwardRefExoticComponent<NoticeProps & {
|
23 | times?: number;
|
24 | } & React.RefAttributes<HTMLDivElement>>;
|
25 | export default Notify;
|