Browse Source

Pull request #1902: 无JIRA任务 类型补充

Merge in VISUAL/fineui from ~TELLER/fineui:master to master

* commit 'bc0eaa0d652fc1727ac99008eef9e67e171a0bd7':
  chore: 类型补充
master
Teller 4 years ago
parent
commit
bf3e28d21d
  1. 7
      typescript/base/base.ts
  2. 9
      typescript/core/controller/controller.broadcast.ts
  3. 6
      typescript/index.ts

7
typescript/base/base.ts

@ -0,0 +1,7 @@
import { LayerController } from "../core/controller/controller.layer";
import { BroadcastController } from "../core/controller/controller.broadcast";
export type Layers = LayerController;
export type Broadcasts = BroadcastController;

9
typescript/core/controller/controller.broadcast.ts

@ -0,0 +1,9 @@
import { Controller } from './controller';
export declare class BroadcastController extends Controller {
on(name: string, fn: Function): Function;
send(name: string, ...args: any[]): void;
remove(name: string, fn: Function): this;
}

6
typescript/index.ts

@ -161,6 +161,8 @@ import { FloatHorizontalLayout } from "./core/wrapper/layout/adapt/float.horizon
import { AdaptiveLayout } from "./core/wrapper/layout/layout.adaptive";
import { HexColorChooserPopup } from './case/colorchooser/colorchooser.popup.hex';
import { BlankIconTextItem } from './base/single/button/listitem/blankicontextitem';
import { Broadcasts, Layers } from "./base/base";
import { BroadcastController } from "./core/controller/controller.broadcast";
export interface BI extends _func, _i18n, _base, _inject, _var, _web, _utils {
@ -179,7 +181,10 @@ export interface BI extends _func, _i18n, _base, _inject, _var, _web, _utils {
ActionFactory: typeof ActionFactory;
ShowAction: typeof ShowAction;
Controller: typeof Controller;
Layers: Layers;
LayerController: typeof LayerController;
Broadcasts: Broadcasts;
BroadcastController: typeof BroadcastController;
Behavior: typeof Behavior;
BehaviorFactory: typeof BehaviorFactory;
HighlightBehavior: typeof HighlightBehavior;
@ -371,6 +376,7 @@ export {
ShowAction,
Controller,
LayerController,
BroadcastController,
Behavior,
BehaviorFactory,
RedMarkBehavior,

Loading…
Cancel
Save