UNPKG

fastlion-amis

Version:

一种MIS页面生成工具

43 lines (42 loc) 1.21 kB
import React from 'react'; import { RendererProps } from '../../../../factory'; import { BaseSchema, SchemaTpl } from '../../../../Schema'; import { BadgeSchema } from '../../../../components/Badge'; export interface LionCalcTplSchema extends BaseSchema { type: 'lion-calc-tpl'; tpl?: SchemaTpl; html?: SchemaTpl; text?: SchemaTpl; raw?: string; /** * 是否内联显示? */ inline?: boolean; /** * 自定义样式 */ style?: { [propName: string]: any; }; /** * 角标 */ badge?: BadgeSchema; } export interface LionCalcTplProps extends RendererProps, Omit<LionCalcTplSchema, 'type' | 'className'> { wrapperComponent?: any; } export interface LionCalcTplState { content: any; } export declare class LionCalcTpl extends React.Component<LionCalcTplProps, LionCalcTplState> { static defaultProps: Partial<LionCalcTplProps>; constructor(props: LionCalcTplProps); getContent(): string; componentWillMount(): void; componentDidUpdate(): void; updateValue(): void; render(): JSX.Element; } export declare class LionCalcTplRenderer extends LionCalcTpl { }