import Vue from 'vue'; import { Subscription } from 'rxjs'; import { AppModelService, ControlInterface } from '@ibizstudio/runtime'; import { PluginService } from '../app-service'; /** * 部件基类 * * @export * @class ControlBase * @extends {Vue} */ export declare class ControlBase extends Vue implements ControlInterface { /** * 部件静态参数 * * @memberof AppDefaultNotSupportedControl */ staticProps: any; /** * 部件动态参数 * * @memberof AppDefaultNotSupportedControl */ dynamicProps: any; /** * 监听动态参数变化 * * @param {*} newVal * @param {*} oldVal * @memberof AppDefaultNotSupportedControl */ watchDynamicPropsChange(newVal: any, oldVal: any): void; /** * 监听静态参数变化 * * @param {*} newVal * @param {*} oldVal * @memberof AppDefaultNotSupportedControl */ watchStaticPropsChange(newVal: any, oldVal: any): void; /** * 环境文件 * * @type {any} * @protected * @memberof ControlBase */ protected Environment: any; /** * 部件UI是否存在权限 * * @type {boolean} * @memberof ControlBase */ enableControlUIAuth: boolean; /** * 原生引用控件名称 * * @memberof ControlBase */ realCtrlRefName: string; /** * 视图标识 * * @type {*} * @memberof ControlBase */ viewtag: any; /** * 插件工厂 * * @type {*} * @memberof ControlBase */ PluginFactory: PluginService; /** * 显示处理提示 * * @type {boolean} * @memberof ControlBase */ showBusyIndicator: boolean; /** * 是否启用动态模式 * * @type {boolean} * @memberof ControlBase */ enableDynamicMode: boolean; /** * 部件模型实例对象 * * @type {*} * @memberof ControlBase */ controlInstance: any; /** * 名称 * * @type {string} * @memberof ControlBase */ name: string; /** * 视图通讯对象 * * @type {*} * @memberof ControlBase */ viewState: any; /** * 应用上下文 * * @type {*} * @memberof ControlBase */ context: any; /** * 视图参数 * * @type {*} * @memberof ControlBase */ viewparams: any; /** * 拷贝应用上下文 * * @type {*} * @memberof ControlBase */ copyContext: any; /** * 拷贝视图参数 * * @type {*} * @memberof ControlBase */ copyViewparams: any; /** * 模型数据是否加载完成 * * @memberof ControlBase */ controlIsLoaded: boolean; /** * 绘制参数 * * @type {*} * @memberof AppDefaultSearchForm */ renderOptions: any; /** * 部件服务对象 * * @type {*} * @memberof ControlBase */ service: any; /** * 实体服务对象 * * @type {*} * @memberof ControlBase */ appEntityService: any; /** * 订阅视图状态事件 * * @public * @type {(Subscription | undefined)} * @memberof ControlBase */ viewStateEvent: Subscription | undefined; /** * 计数器服务对象集合 * * @type {Array<*>} * @memberof ControlBase */ counterServiceArray: Array; /** * 模型服务 * * @type {AppModelService} * @memberof ControlBase */ modelService: AppModelService; /** * 部件是否加载完成(判断是否加载中) * * @readonly * @memberof ControlBase */ isControlLoaded: boolean; /** * 部件ID * * @memberof ControlBase */ controlId: string; /** * 外部传入数据对象 * * @type {*} * @memberof ControlBase */ navdatas?: any; /** * 视图操作参数集合 * * @type {*} * @memberof ControlBase */ viewCtx?: any; /** * 视图默认使用(路由:true,非路由:false) * * @type {boolean} * @memberof ControlBase */ viewDefaultUsage: boolean; /** * 界面触发逻辑Map * * @memberof ControlBase */ ctrlTriggerLogicMap: Map; /** * 原生界面触发逻辑集合 * * @memberof ControlBase */ realCtrlTriggerLogicArray: Array; /** * 原生界面触发逻辑分隔符 * * @memberof ControlBase */ realCtrlSeparator: string; /** * 注册事件逻辑分隔符 * * @memberof ControlBase */ registerEventSeparator: string; /** * 部件事件抛出方法 * * @param {{ controlname: string; action: string; data: any }} { controlname, action, data } * @memberof ControlBase */ ctrlEvent({ controlname, action, data }: { controlname: string; action: string; data: any; }): void; /** * 部件销毁 * * @author chitanda * @date 2022-06-20 12:06:50 */ destroyed(): void; /** * 部件事件 * @param ctrl 部件 * @param action 行为 * @param data 数据 * * @memberof ViewBase */ onCtrlEvent(controlname: string, action: string, data: any): void; /** * 初始化部件的绘制参数 * * @type {Array<*>} * @memberof ViewBase */ initRenderOptions(opts?: any): void; /** * 计算目标部件所需参数 * * @param {*} controlInstance 要绘制的部件实例 * @param {*} [otherParam] 其他参数 * @returns * @memberof ControlBase */ computeTargetCtrlData(controlInstance: any): { targetCtrlName: string; targetCtrlParam: any; targetCtrlEvent: any; }; /** * 获取部件类型 * * @returns {string} * @memberof ControlBase */ getControlType(): string; /** * 获取多项数据 * * @returns {any[]} * @memberof ControlBase */ getDatas(): any[]; /** * 获取单项数据 * * @returns {*} * @memberof ControlBase */ getData(): any; /** * 监听动态参数变化 * * @param {*} newVal * @param {*} oldVal * @memberof ControlBase */ onDynamicPropsChange(newVal: any, oldVal: any): void; /** * 监听导航数据参数变化 * * @param {*} newVal * @param {*} oldVal * @memberof ControlBase */ setNavdatas(args: any): void; /** * 挂载状态集合 * * @type {Map} * @memberof ControlBase */ mountedMap: Map; /** * 是否部件已经完成ctrlMounted * * @type {boolean} * @memberof ControlBase */ hasCtrlMounted: boolean; /** * 初始化挂载状态集合 * * @memberof ControlBase */ initMountedMap(): void; /** * 设置已经绘制完成状态 * * @memberof ControlBase */ setIsMounted(name?: string): void; /** * 监听静态参数变化 * * @param {*} newVal * @param {*} oldVal * @memberof ControlBase */ onStaticPropsChange(newVal: any, oldVal: any): void; /** * 初始化模型服务 * * @memberof ControlBase */ initModelService(): Promise; /** * 部件模型数据加载 * * @memberof ControlBase */ ctrlModelLoad(): Promise; /** * 处理部件UI请求 * * @memberof ControlBase */ onControlRequset(action: string, context: any, viewparam: any): void; /** * 处理部件UI响应 * * @memberof ControlBase */ onControlResponse(action: string, response: any): void; /** * 部件模型数据初始化实例 * * @memberof ControlBase */ ctrlModelInit(args?: any): Promise; /** * 部件初始化 * * @memberof ControlBase */ ctrlInit(args?: any): void; /** * @description 视图状态触发行为 * @param {string} tag 标识 * @param {string} action 行为 * @param {*} data 行为数据 * @memberof ControlBase */ viewStateAction(tag: string, action: string, data: any): void; /** * 部件挂载 * * @memberof ControlBase */ ctrlMounted(args?: any): void; /** * 部件销毁 * * @memberof ControlBase */ ctrlDestroyed(args?: any): void; /** * 计数器刷新 * * @memberof ControlBase */ counterRefresh(arg?: any): void; /** * 关闭视图 * * @param {any} args * @memberof ControlBase */ closeView(args: any): void; /** * 初始化计数器服务 * * @memberof ControlBase */ initCounterService(param: any): Promise; /** * 初始化部件逻辑 * * @memberof ControlBase */ initControlLogic(opts: any): Promise; /** * 处理自定义部件导航数据 * * @memberof ControlBase */ handleCustomCtrlData(): void; /** * 处理部件自定义导航参数逻辑 * * @memberof ControlBase */ handleCustomDataLogic(curNavData: any, tempData: any, item: string): void; /** * 重置 * * @memberof ControlBase */ onReset(): void; /** * 执行部件事件逻辑 * * @memberof ControlBase */ executeCtrlEventLogic(name: string, args: any): Promise; /** * 调用控件逻辑 * * @memberof ControlBase */ invoke(methodName: string, args: any): void; /** * 处理原生控件事件 * * @memberof ControlBase */ handleRealCtrlEvent(name: string, data: any, args: any): void; /** * 处理控件自定义事件 * * @memberof ControlBase */ handleCtrlCustomEvent(name: string, data: any, args: any): void; /** * 处理部件定时器逻辑 * * @memberof ControlBase */ handleTimerLogic(): void; /** * 销毁部件定时器逻辑 * * @memberof ControlBase */ destroyLogicTimer(): void; } //# sourceMappingURL=control-base.d.ts.map