import React from 'react'; import { RendererProps } from 'fabos-amis-core'; import type { AlertProps } from 'fabos-amis-ui/lib/components/Alert2'; import type { BaseSchema, SchemaCollection, SchemaIcon } from '../Schema'; /** * Alert 提示渲染器。 * 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/alert */ export interface AlertSchema extends BaseSchema { /** * 指定为提示框类型 */ type: 'alert'; /** * 提示框标题 */ title?: string; /** * 内容区域 */ body: SchemaCollection; /** * 提示类型 */ level?: 'info' | 'warning' | 'success' | 'danger'; /** * 是否显示关闭按钮 */ showCloseButton?: boolean; /** * 关闭按钮CSS类名 */ closeButtonClassName?: string; /** * 是否显示ICON */ showIcon?: boolean; /** * 左侧图标 */ icon?: SchemaIcon; /** * 图标CSS类名 */ iconClassName?: string; /** * 操作区域 */ actions?: SchemaCollection; } export declare class AlertRenderer extends React.Component & RendererProps> { render(): React.JSX.Element; }