@farris/renderer
Version:
Render schema to web page with farris ui.
69 lines (68 loc) • 1.5 kB
TypeScript
/**
* 包装后的实体描述
*/
interface WrappedEntitySchema {
bindingPath: string;
entitySchema: any;
parentWrappedEntitySchema: WrappedEntitySchema;
}
/**
* 包装后的字段描述
*/
interface WrappedFieldSchema {
bindingPath: string;
fieldSchema: any;
}
/**
* EntitySchema查询服务
*/
declare class EntitySchemaQuery {
/**
* 表单Schema
*/
private rootEntitySchema;
/**
* 实体标签和实体描述Map
*/
private labelAndEntitySchemaMap;
/**
* 字段ID和字段描述Map
*/
private idAndFieldSchemaMap;
/**
* 实体Schema查询服务
*/
constructor(formModule: any);
/**
* 根据Label获取WrappedEntitySchema
*/
getWrappedEntitySchemaByLabel(label: string): WrappedEntitySchema;
/**
* 根据ID获取WrappedFieldSchema
*/
getWrappedFieldSchemaById(id: string): WrappedFieldSchema;
private collectBaEntitySchema;
private collectBaFieldSchemas;
private collectBaFieldSchema;
/**
* 搜集所有实体信息
*/
private collectEntitySchema;
/**
* 搜集所有字段信息
*/
private collectFieldSchemas;
/**
* 搜集字段信息
*/
private collectFieldSchema;
/**
* 获取实体绑定路径
*/
private getEntityBindingPath;
/**
* 获取字段绑定路径
*/
private getFieldBindingPath;
}
export { WrappedEntitySchema, WrappedFieldSchema, EntitySchemaQuery };