fastlion-amis
Version:
一种MIS页面生成工具
50 lines (49 loc) • 1.15 kB
TypeScript
import { RendererProps } from '../factory';
import React from 'react';
import { AlertProps } from '../components/Alert2';
import { BaseSchema, SchemaCollection, SchemaIcon } from '../Schema';
/**
* Alert 提示渲染器。
* 文档:https://baidu.gitee.io/amis/docs/components/alert
*/
export interface AlertSchema extends BaseSchema {
/**
* 指定为提示框类型
*/
type: 'alert';
/**
* 提示框标题
*/
title?: string;
/**
* 内容区域
*/
body: SchemaCollection;
/**
* 提示类型
*/
level?: 'info' | 'warning' | 'success' | 'error' | 'danger';
/**
* 是否显示关闭按钮
*/
showCloseButton?: boolean;
/**
* 关闭按钮CSS类名
*/
closeButtonClassName?: string;
/**
* 是否显示ICON
*/
showIcon?: boolean;
/**
* 左侧图标
*/
icon?: SchemaIcon;
/**
* 图标CSS类名
*/
iconClassName?: string;
}
export declare class TplRenderer extends React.Component<AlertProps & RendererProps> {
render(): JSX.Element;
}