UNPKG

@jdcfe/yep-react

Version:

一套移动端的React组件库

35 lines (34 loc) 912 B
import * as React from 'react'; export interface NotificationProps { prefixCls?: string; style?: React.CSSProperties; icon?: string; message: string | React.ReactNode; bottom?: boolean; duration?: number; onClose: () => void; className?: string; mask?: boolean; } interface State { show: boolean; } export default class Notification extends React.PureComponent<NotificationProps, State> { static defaultProps: { prefixCls: string; style: {}; bottom: boolean; duration: number; mask: boolean; }; private closeTimer; static newInstance: (properties: NotificationProps, callback: any) => void; constructor(props: NotificationProps); close(): void; startCloseTimer(): void; clearCloseTimer(): void; componentDidMount(): void; componentWillUnmount(): void; render(): JSX.Element; } export {};