amis
Version:
一种MIS页面生成工具
30 lines (29 loc) • 757 B
TypeScript
import { RendererProps } from '../factory';
import React from 'react';
import { AlertProps } from '../components/Alert2';
import { BaseSchema, SchemaCollection } from '../Schema';
/**
* Alert 提示渲染器。
* 文档:https://baidu.gitee.io/amis/docs/components/alert
*/
export interface AlertSchema extends BaseSchema {
/**
* 指定为提示框类型
*/
type: 'alert';
/**
* 内容区域
*/
body: SchemaCollection;
/**
* 提示类型
*/
level?: 'info' | 'warning' | 'success' | 'error' | 'danger';
/**
* 是否显示关闭按钮
*/
showCloseButton?: boolean;
}
export declare class TplRenderer extends React.Component<AlertProps & RendererProps> {
render(): JSX.Element;
}