import { AppMenu } from "../app"; import { AppTheme } from "../typeDefinition"; /** 纯内容模板 ,单纯的输出多个大控件 */ export interface RbTPureContentConfig { /** 内容区域对应的控件Id数组 */ Content: string[]; /** * 控件之间是否以隔断符分割,默认为`false`,表示不显示隔断符 */ showSeparate?: boolean; /** 外框是否呈现,一般当纯内容模板为子页面时不需要,默认`false` */ showCard?: boolean; } /** 简单详情页模板 */ export interface RbTSimpleDetailsConfig { /** 工具栏对应的控件Id */ ToolBar: string; /** 内容区域对应的控件Id */ Content: string; } /** 侧边栏菜单导航模板 */ export interface RbTSiderMenuContentConfig { /** 侧边栏主题 */ theme?: AppTheme; /** 侧边栏宽度,默认200 */ width?: number; /** 菜单集合 */ menus: AppMenu[]; } /** 侧边栏树选择模板 */ export interface RbTSiderTreeContentConfig { /** 是否显示搜索输入框,默认为true */ isShowSearch?: boolean; theme?: AppTheme; width?: number | string; /** 没找到控件Id时显示的文本内容 */ notFindControl?: string; /** 标题对应的控件Id */ Title: string; /** 工具栏对应的控件Id */ ToolBar: string; /** 输入框对应的控件Id */ Search: string; /** 树选择对应的控件Id */ Tree: string; /** 内容区域对应的控件Id */ Content: string; } export interface IStepItem extends AppMenu { /** 标题 */ name: string; /** 步骤的详情描述 */ description?: string; } export interface IBackBtnProperty { /** 按钮名称,默认值为`返回` */ name?: string; /** 自定义显示的图标类型 */ icon?: string; } /** * 步骤条导航模板 */ export interface RbTStepContentConfig { /** 点击完成按钮时返回的路径 */ forward: { moduleId: string; pageId?: string; }; /** 返回按钮设置,若未定义则不呈现 */ backBtn?: IBackBtnProperty; /** * 步骤集合 */ steps: IStepItem[]; }