UNPKG

dtd

Version:

根据数梦工场视觉规范打造的组件库,感谢react-components和ant design

31 lines (30 loc) 1.02 kB
import * as React from 'react'; export interface AlertProps { /** * Type of Alert styles, options:`success`, `info`, `warning`, `error`, `comment` */ type?: 'success' | 'info' | 'warning' | 'error' | 'comment'; /** Whether Alert can be closed */ closable?: boolean; /** Close text to show */ closeText?: React.ReactNode; /** Content of Alert */ message: React.ReactNode; /** Additional content of Alert */ description?: React.ReactNode; /** Callback when close Alert */ onClose?: React.MouseEventHandler<HTMLAnchorElement>; /** Whether to show icon */ showIcon?: boolean; iconType?: string; style?: React.CSSProperties; prefixCls?: string; className?: string; banner?: boolean; } export default class Alert extends React.Component<AlertProps, any> { constructor(props: AlertProps); handleClose: (e: React.MouseEvent<HTMLAnchorElement, MouseEvent>) => void; animationEnd: () => void; render(): JSX.Element | null; }