import { OnInit } from '@angular/core'; import { Fcapp } from 'fccore2'; import { Sysapplinks, Sysappfldgroup } from 'fccore2'; import { Fcomponent } from './f'; export declare abstract class GrandComponent extends Fcomponent implements OnInit { moduleId: string; /** 路由参数 */ routerParam: any; /** 用户信息 */ userInfo: any; /** 当前主应用id */ appId: string; /** 当前主应用 */ mainApp: Fcapp; /** 关系 */ mainLinks: Sysapplinks[]; /** 字段分组 */ mainFldGroups: Sysappfldgroup[]; /** 当前主对象获取方式,默认为 */ getMainObjWay: number; /** * 当模型及产品id存在时,则初始化相关的内容,包含模型描述,模型对应的属性及事件 * @param pid 产品id * @param aid 模型id */ constructor(pid?: string, aid?: string); /** * 初始化存在 */ abstract _init(): void; /** * 当界面显示的时候 * */ ngOnInit(): void; /** * 自定义事件名称,所有自定义事件的入口 * @param eventName 事件名称 * @param param 参数 */ abstract event(eventName: string, param: any): void; /** * 获取路由导航 * @param exp List:列表;Edit:编辑:Detail:详情 */ getRouteUrl(exp: string): string; /** * 获取路由导航 * @param exp List:列表;Edit:编辑:Detail:详情 */ getUrl(moduleId: string, appId: string, exp: string): string; /** * 跳转路由值其它页面 * @param router 路由目录 * @param param 路由参数 * @returns 返回promise */ navigate(url: string, param?: any): Promise; /** * 获取确认弹窗,需要传点ok后的回调函数及点取消后的回调函数 * @param content 提示内容 * @param title 标题 * @param ok 确认方法 * @param cancel 取消的方法 */ confirm(content: string, title: string, ok: () => {}, cancel: () => {}): void; /** * 阻止冒泡 */ stopPropagation(event: any): void; } /** * 修改对象的获取策略,默认为cache方式获取数据,async为从远程获取数据方式 */ export declare enum GetMainObjWay { 'cache' = 0, 'async' = 1 }