import { LEVEL_ENUM, Vertex, WebService, View, ActionOptions } from '..'; /** * 页面(入口页)类,后端路由控制 * @category page */ export declare class Page extends Vertex { /** * 概念类型 */ readonly level: LEVEL_ENUM; /** * 页面 Id */ readonly id: string; /** * 页面名称 */ readonly name: string; /** * 页面标题 */ readonly title: string; /** * 是否接入权限 */ readonly auth: boolean; /** * 是否为首页 */ readonly isIndex: boolean; /** * 根页面视图 */ readonly rootView: View; /** * 所属前端服务 Id */ readonly serviceId: string; /** * 所属前端服务 */ readonly service: WebService; /** * 树组件的子节点字段 */ readonly childrenField: string; /** * 树组件的子节点字段 */ readonly moreChildrenFields: Array; /** * @param source 需要合并的部分参数 */ constructor(source?: Partial); /** * 加载页面详情 * @requires this.id */ load(): Promise; addData(res: any): void; /** * 添加页面 */ importPage(none?: void, actionOptions?: ActionOptions, then?: () => Promise): Promise; /** * 添加页面 */ create(none?: void, actionOptions?: ActionOptions, then?: () => Promise): Promise; /** * 删除页面 */ delete(none?: void, actionOptions?: ActionOptions): Promise; /** * 修改页面 */ update(none?: void, actionOptions?: ActionOptions, then?: () => Promise): Promise; /** * 设为首页 */ setAsIndex(): Promise; /** * 设置是否开启权限控制 */ setAuth(auth: boolean): Promise; /** * 从后端 JSON 生成规范的 Param 对象 */ static from(source: any, service: WebService): Page; } export default Page;