From cb2609c795ac94a5a75db258ba0035f49c529aa3 Mon Sep 17 00:00:00 2001 From: alan Date: Thu, 31 Dec 2020 14:30:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0=20JIRA=20=E4=BB=BB=E5=8A=A1=EF=BC=8C?= =?UTF-8?q?=E4=BF=AE=E5=A4=8Dfineui=E6=89=93=E5=8C=85=E5=A4=B1=E8=B4=A5?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../core/controller/controller.layer.ts | 24 ++++++++++++++++--- typescript/core/controller/controller.ts | 5 ++++ typescript/index.ts | 6 +++++ 3 files changed, 32 insertions(+), 3 deletions(-) create mode 100644 typescript/core/controller/controller.ts diff --git a/typescript/core/controller/controller.layer.ts b/typescript/core/controller/controller.layer.ts index 9353a41b0..53d762918 100644 --- a/typescript/core/controller/controller.layer.ts +++ b/typescript/core/controller/controller.layer.ts @@ -1,5 +1,23 @@ -import { Controller } from '../controller'; +import { Controller } from './controller'; export declare class LayerController extends Controller { - make(name: string, container: , op, context) -} \ No newline at end of file + make(name: string, container: any, op: any, context: any): T; + + create(name: string, from: any, op: any, context: any): T; + + hide(name: string, callback: boolean): LayerController; + + show(name: string, callback: boolean): LayerController; + + isVisible(name: string): boolean; + + add(name: string, layer: any, layout: any): LayerController; + + get(name: string): T; + + has(name: string): boolean; + + remove(name: string): LayerController; + + removeAll(): LayerController; +} diff --git a/typescript/core/controller/controller.ts b/typescript/core/controller/controller.ts new file mode 100644 index 000000000..3a2384f45 --- /dev/null +++ b/typescript/core/controller/controller.ts @@ -0,0 +1,5 @@ +import { OB } from "../ob"; + +export declare class Controller extends OB { + static EVENT_CHANGE: string; +} diff --git a/typescript/index.ts b/typescript/index.ts index 83b60c4cc..1367b7ab2 100644 --- a/typescript/index.ts +++ b/typescript/index.ts @@ -145,6 +145,8 @@ import { _msg } from './base/foundation/message'; import { _web } from './core/platform/web'; import { DynamicYearMonthPopup } from './widget/yearmonth/popup.yearmonth'; import { _utils } from './core/utils'; +import { Controller } from "./core/controller/controller"; +import { LayerController } from "./core/controller/controller.layer"; export interface BI extends _func, _i18n, _base, _inject, _var, _web, _utils { @@ -162,6 +164,8 @@ export interface BI extends _func, _i18n, _base, _inject, _var, _web, _utils { Action: typeof Action; ActionFactory: typeof ActionFactory; ShowAction: typeof ShowAction; + Controller: typeof Controller; + LayerController: typeof LayerController; Behavior: typeof Behavior; BehaviorFactory: typeof BehaviorFactory; HighlightBehavior: typeof HighlightBehavior; @@ -337,6 +341,8 @@ export { Action, ActionFactory, ShowAction, + Controller, + LayerController, Behavior, BehaviorFactory, RedMarkBehavior,