jamis
Version:
一种支持通过JSON配置方式生成页面的组件库
34 lines (33 loc) • 728 B
TypeScript
import React from 'react';
import type { RendererProps } from 'jamis-core';
import type { BaseSchema, SchemaCollection } from '../types';
/**
* WebComponent 容器组件。
*
*/
export interface WebComponentSchema extends BaseSchema {
/**
* 指定为 web-component 类型
*/
type: 'web-component';
/**
* 标签
*/
tag: string;
/**
* 子节点
*/
body: SchemaCollection;
/**
* 组件属性
*/
props?: {
[propName: string]: any;
};
}
export default class WebComponent extends React.Component<RendererProps> {
renderBody(): JSX.Element | null;
render(): JSX.Element;
}
export declare class WebComponentRenderer extends WebComponent {
}