Browse Source

feat: 增加两个类的说明

es6
iapyang 5 years ago
parent
commit
0cdd8a7692
  1. 12
      typescript/base/pane.ts
  2. 5
      typescript/case/loading/loading_pane.ts
  3. 4
      typescript/index.ts

12
typescript/base/pane.ts

@ -0,0 +1,12 @@
import { _Widget } from "../core/widget";
export interface _Pane extends _Widget {
_assertTip: (..._args: any[]) => void;
loading: (..._args: any[]) => void;
loaded: (..._args: any[]) => void;
check: (..._args: any[]) => void;
}
export interface _PaneStatic {
EVENT_LOADED: "EVENT_LOADED";
}

5
typescript/case/loading/loading_pane.ts

@ -0,0 +1,5 @@
import { _Pane } from "../../base/pane";
export interface _LoadingPane extends _Pane {
__loaded: (...args: any[]) => void;
}

4
typescript/index.ts

@ -11,6 +11,8 @@ import { _ShowAction } from "./core/action/action.show";
import { _Behavior, _BehaviorFactory } from "./core/behavior/behavior";
import { _HighlightBehavior } from "./core/behavior/behavior.highlight";
import { _RedMarkBehavior } from "./core/behavior/behavior.redmark";
import { _Pane, _PaneStatic } from "./base/pane";
import { _LoadingPane } from "./case/loading/loading_pane";
type ClassConstructor<T extends {}> = T & {
@ -32,4 +34,6 @@ export interface _BI extends _func, _i18n, _base {
BehaviorFactory: ClassConstructor<_BehaviorFactory>;
HighlightBehavior: ClassConstructor<_HighlightBehavior>;
RedMarkBehavior: ClassConstructor<_RedMarkBehavior>;
Pane: ClassConstructor<_Pane> & _PaneStatic;
LoadingPane: ClassConstructor<_LoadingPane>;
}

Loading…
Cancel
Save