@farris/command-services-vue
Version:
Render schema to web page with farris ui.
68 lines (67 loc) • 1.85 kB
TypeScript
import { RuntimeFrameworkService } from './rtf.service';
import { QuerystringService } from './querystring.service';
import { NavigationHistoryService } from './navigation-history.service';
export declare class NavigationEventService {
private runtimeFrameworkService;
private querystringService;
private navigationHistoryService;
/**
* 关闭后事件处理器
*/
private onClosedListeners;
/**
* 关闭前处理器
*/
private onClosingListeners;
/**
* 框架页签切换事件
*/
private onTabSwitchListeners;
private get querystrings();
constructor(runtimeFrameworkService: RuntimeFrameworkService, querystringService: QuerystringService, navigationHistoryService: NavigationHistoryService);
registerEvent(): void;
private handleTabSwitchEvent;
/**
* 触发tab切换事件
* @param e e
*/
private fireTabSwitchEvent;
/**
* 标签页关闭前事件
*/
private handleTabClosingEvent;
/**
* 触发关闭前事件
*/
private fireTabClosingEvent;
/**
* 标签页关闭后事件
*/
private handleTabClosedEvent;
/**
* 触发关闭后事件
* @param e event
*/
private fireTabClosedEvent;
/**
* 注册事件监听器
* @param eventType 事件类型 onTabClosed
* @param handler 处理器
*/
addEventListener(eventType: string, handler: (options: any) => any): string | null;
/**
* 移除事件监听器
* @param eventType 事件类型
* @param key 事件标识
*/
removeEventListener(eventType: string, key: string): boolean;
/**
* 清空事件监听器
* @param eventType 事件类型
*/
clearEventListener(eventType: string): void;
/**
* 刷新数据
*/
private refresh;
}