import React from 'react'; import { RendererProps } from 'amis-core'; import { BaseSchema, SchemaTpl } from '../Schema'; import { BadgeObject } from 'amis-ui'; /** * tpl 渲染器 */ export interface TplSchema extends BaseSchema { /** * 指定为模板渲染器。 * * 文档:https://baidu.gitee.io/amis/docs/concepts/template */ type: 'tpl' | 'html'; tpl?: SchemaTpl; html?: SchemaTpl; text?: SchemaTpl; raw?: string; /** * 是否内联显示? */ inline?: boolean; /** * 自定义样式 */ style?: { [propName: string]: any; }; /** * 角标 */ badge?: BadgeObject; } export interface TplProps extends RendererProps, TplSchema { className?: string; value?: string; wrapperComponent?: any; inline?: boolean; } export declare class Tpl extends React.Component { static defaultProps: Partial; dom: any; constructor(props: TplProps); getContent(): string; render(): JSX.Element; } export declare class TplRenderer extends Tpl { }