/** * 页面配置声明文件 * @author ligd smk17 */ import { RbTSiderTreeContentConfig, RbTStepContentConfig, RbTPureContentConfig, RbTSimpleDetailsConfig } from "./template"; import { TreeListControlType } from "./big/treeList"; import { DocsControlType } from "./big/docs"; import { FormControlType } from "./big/form"; import { GridEditControlType } from "./big/gridEdit"; import { GridViewControlType } from "./big/gridView"; import { TreeViewControlType } from "./big/treeView"; import { TreeEditControlType } from "./big/treeEdit"; import { GridListControlType } from "./big/gridList"; import { ToolbarControlType } from "./big/toolbar"; import { FindControlType } from "./big/find"; /** * 页面配置 */ export interface PageConfig { /** 页面标题 */ title?: string; template: PageTemplateType; clientEntrance?: PageClientEntranceType; controls?: PageControlsType; } /** * 页面引用模板 */ export interface PageTemplateType { /** * 当前页面是否引用的模板,默认为:true */ isTemplate?: boolean; /** 侧边栏树选择模板 */ SiderTreeContent?: RbTSiderTreeContentConfig; /** 简单详情页模板 */ SimpleDetails?: RbTSimpleDetailsConfig; /** * 步骤条导航模板 * * 通过步骤条指引用户一步步完成操作 * * 经典案例:分步表单 */ StepContent?: RbTStepContentConfig; /** 纯内容模板 ,单纯的输出多个大控件 */ PureContent?: RbTPureContentConfig; [k: string]: any; } /** * 客户端入口信息配置 */ export interface PageClientEntranceType { /** * 主入口脚本地址 */ mainSrc?: string; components?: ComponentsType; } /** * 页面使用的组件集合 */ export interface ComponentsType { [k: string]: CommonComponentType; } /** * 通用组件 */ export interface CommonComponentType { /** * 模板参数 */ [k: string]: any; } /** * 当前页面控件集合 */ export interface PageControlsType { /** * 控件 */ [k: string]: PageControls; } /** * 页面引用控件 */ export interface PageControls { /** 表单控件 */ form?: FormControlType; /** 搜索栏控件 */ find?: FindControlType; /** 表格编辑控件 */ gridEdit?: GridEditControlType; /** 表格视图控件 */ gridView?: GridViewControlType; /** 树表格视图控件 */ treeView?: TreeViewControlType; /** 树表格编辑控件 */ treeEdit?: TreeEditControlType; /** 树列表控件 */ treeList?: TreeListControlType; /** 列表控件 */ gridList?: GridListControlType; /** 工具栏控件 */ toolbar?: ToolbarControlType; /** 文档控件 */ docs?: DocsControlType; /** 页面开发中 */ controlDev?: {}; [k: string]: any; }