UNPKG

@redhare/lowcode-types

Version:

Types for Ali lowCode engine

50 lines (49 loc) 1.19 kB
import { InterpretDataSource as DataSource } from '@redhare/lowcode-datasource-types'; import { IPublicTypeJSExpression, IPublicTypeJSFunction, IPublicTypeCompositeObject, IPublicTypeCompositeValue, IPublicTypeNodeSchema } from './'; /** * 容器结构描述 */ export interface IPublicTypeContainerSchema extends IPublicTypeNodeSchema { /** * 'Block' | 'Page' | 'Component'; */ componentName: string; /** * 文件名称 */ fileName: string; /** * @todo 待文档定义 */ meta?: Record<string, unknown>; /** * 容器初始数据 */ state?: { [key: string]: IPublicTypeCompositeValue; }; /** * 自定义方法设置 */ methods?: { [key: string]: IPublicTypeJSExpression | IPublicTypeJSFunction; }; /** * 生命周期对象 */ lifeCycles?: { [key: string]: IPublicTypeJSExpression | IPublicTypeJSFunction; }; /** * 样式文件 */ css?: string; /** * 异步数据源配置 */ dataSource?: DataSource; /** * 低代码业务组件默认属性 */ defaultProps?: IPublicTypeCompositeObject; }