UNPKG

fastlion-amis

Version:

一种MIS页面生成工具

48 lines (47 loc) 1.25 kB
import React from 'react'; import { RendererProps } from '../../../../factory'; import { BaseSchema, SchemaTpl } from '../../../../Schema'; /** * tpl 渲染器 */ export interface LionTplSchema extends BaseSchema { /** * 指定为模板渲染器。 * * 文档:https://baidu.gitee.io/amis/docs/concepts/template */ type: 'lion-tpl' | 'lion-html'; tpl?: SchemaTpl; html?: SchemaTpl; text?: SchemaTpl; raw?: string; /** * 是否内联显示? */ inline?: boolean; /** * 自定义样式 */ style?: { [propName: string]: any; }; } export interface TplProps extends RendererProps, LionTplSchema { className?: string; value?: string; wrapperComponent?: any; inline?: boolean; updateAutoFillHeight?: () => void; } export declare class LionTpl extends React.Component<TplProps, object> { static defaultProps: Partial<TplProps>; dom: any; constructor(props: TplProps); componentDidUpdate(prevProps: TplProps): void; htmlRef(dom: any): void; getContent(): string; _render(): void; render(): JSX.Element; } export declare class LionTplRenderer extends LionTpl { }