import { IRuntimeDataSource } from './IRuntimeDataSource'; /** 运行时上下文 */ export interface IRuntimeContext< TState = Record > { /** 数据源, key 是数据源的 ID */ dataSourceMap: Record; /** 当前容器的状态 */ readonly state: TState; /** 设置状态(浅合并) */ setState(state: Partial): void; /** 重新加载所有的数据源 */ reloadDataSource(): Promise; /** 页面容器 */ readonly page: IRuntimeContext & { props: Record }; /** 低代码业务组件容器 */ readonly component: IRuntimeContext & { props: Record }; }