UNPKG

jamis

Version:

一种支持通过JSON配置方式生成页面的组件库

28 lines (27 loc) 770 B
import React from 'react'; import type { RendererProps } from 'jamis-core'; import type { TplSchema } from './types'; interface TplProps extends RendererProps, Omit<TplSchema, 'data'> { className?: string; value?: string; wrapperComponent?: any; inline?: boolean; } export declare class Tpl extends React.Component<TplProps, { content: string; }> { static defaultProps: Partial<TplProps>; dom: any; mounted: boolean; constructor(props: TplProps); componentDidMount(): void; componentWillUnmount(): void; componentDidUpdate(prevProps: TplProps): void; updateContent: () => void; getContent(): string; handleClick(): void; render(): JSX.Element; } export declare class TplRenderer extends Tpl { } export {};