You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
InternshipProject/node_modules/rc-notification/es/Notice.d.ts

41 lines
1.3 KiB

import * as React from 'react';
import { Component } from 'react';
interface DivProps extends React.HTMLProps<HTMLDivElement> {
'data-testid'?: string;
}
export interface NoticeProps {
prefixCls: string;
style?: React.CSSProperties;
className?: string;
duration?: number | null;
children?: React.ReactNode;
updateMark?: string;
/** Mark as final key since set maxCount may keep the key but user pass key is different */
noticeKey: React.Key;
closeIcon?: React.ReactNode;
closable?: boolean;
props?: DivProps;
onClick?: React.MouseEventHandler<HTMLDivElement>;
onClose?: (key: React.Key) => void;
/** @private Only for internal usage. We don't promise that we will refactor this */
holder?: HTMLDivElement;
/** @private Provided by CSSMotionList */
visible?: boolean;
}
export default class Notice extends Component<NoticeProps> {
static defaultProps: {
onClose(): void;
duration: number;
};
closeTimer: number | null;
componentDidMount(): void;
componentDidUpdate(prevProps: NoticeProps): void;
componentWillUnmount(): void;
close: (e?: React.MouseEvent<HTMLAnchorElement>) => void;
startCloseTimer: () => void;
clearCloseTimer: () => void;
restartCloseTimer(): void;
render(): JSX.Element;
}
export {};