Browse Source

KERNEL-6537 fineui中非标准写法补齐

es6
alan 4 years ago
parent
commit
b436d67576
  1. 9
      typescript/base/single/input/checkbox.ts
  2. 10
      typescript/base/single/trigger/trigger.ts
  3. 6
      typescript/case/loading/loading_pane.ts
  4. 5
      typescript/core/action/action.show.ts
  5. 12
      typescript/core/action/action.ts
  6. 6
      typescript/core/behavior/behavior.highlight.ts
  7. 6
      typescript/core/behavior/behavior.redmark.ts
  8. 10
      typescript/core/behavior/behavior.ts
  9. 29
      typescript/index.ts

9
typescript/base/single/input/checkbox.ts

@ -1,4 +1,4 @@
import { _BasicButton } from "../button/button.basic";
import { BasicButton, _BasicButton } from "../button/button.basic";
export interface _Checkbox extends _BasicButton {
_setEnable(enable: boolean): void;
@ -7,3 +7,10 @@ export interface _Checkbox extends _BasicButton {
export interface _CheckboxStatic {
EVENT_CHANGE: string;
}
export declare class Checkbox extends BasicButton {
static xtype: string;
static EVENT_CHANGE: string;
_setEnable(enable: boolean): void;
}

10
typescript/base/single/trigger/trigger.ts

@ -1,7 +1,15 @@
import { _Single } from "../single";
import { Single, _Single } from "../single";
export interface _Trigger extends _Single {
setKey(..._args: any[]): void;
getKey(): string;
}
export declare class Trigger extends Single {
static xtype: string;
setKey(..._args: any[]): void;
getKey(): string;
}

6
typescript/case/loading/loading_pane.ts

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

5
typescript/core/action/action.show.ts

@ -1,5 +1,8 @@
import { _Action } from "./action";
import { _Action, Action } from "./action";
export interface _ShowAction extends _Action {
}
export declare class ShowAction extends Action {
}

12
typescript/core/action/action.ts

@ -1,4 +1,4 @@
import { _OB } from "../ob";
import { _OB, OB } from "../ob";
export interface _Action extends _OB {
actionPerformed(src: any, tar: any, callback: Function): void;
@ -9,3 +9,13 @@ export interface _Action extends _OB {
export interface _ActionFactory {
createAction(key: string, options: any): _Action;
}
export declare class Action extends OB {
actionPerformed(src: any, tar: any, callback: Function): void;
actionBack(tar: any, src: any, callback: Function): void;
}
export declare class ActionFactory {
createAction(key: string, options: any): Action;
}

6
typescript/core/behavior/behavior.highlight.ts

@ -1,4 +1,8 @@
import { _Behavior } from "./behavior";
import { _Behavior, Behavior } from "./behavior";
export interface _HighlightBehavior extends _Behavior {
}
export declare class HighlightBehavior extends Behavior {
}

6
typescript/core/behavior/behavior.redmark.ts

@ -1,4 +1,8 @@
import { _Behavior } from "./behavior";
import { _Behavior, Behavior } from "./behavior";
export interface _RedMarkBehavior extends _Behavior {
}
export declare class RedMarkBehavior extends Behavior {
}

10
typescript/core/behavior/behavior.ts

@ -1,4 +1,4 @@
import { _OB } from "../ob";
import { _OB, OB } from "../ob";
export interface _Behavior extends _OB {
doBehavior(items: any[]): void;
@ -7,3 +7,11 @@ export interface _Behavior extends _OB {
export interface _BehaviorFactory {
createBehavior(key: string, options: any): _Behavior;
}
export declare class Behavior extends OB {
doBehavior(items: any[]): void;
}
export declare class BehaviorFactory {
createBehavior(key: string, options: any): Behavior;
}

29
typescript/index.ts

@ -9,34 +9,34 @@ import { TextButton, _TextButton, _TextButtonStatic } from "./base/single/button
import { _IconTextItem, _IconTextItemStatic } from "./base/single/button/listitem/icontextitem";
import { _Editor, _EditorStatic, Editor } from "./base/single/editor/editor";
import { Iframe, _Iframe } from "./base/single/iframe/iframe";
import { _Checkbox, _CheckboxStatic } from "./base/single/input/checkbox";
import { Checkbox, _Checkbox, _CheckboxStatic } from "./base/single/input/checkbox";
import { _Input, _InputStatic } from "./base/single/input/input";
import { _AbstractLabel, AbstractLabel } from "./base/single/label/abstract.label";
import { _Label, Label } from "./base/single/label/label";
import { _Single, Single } from "./base/single/single";
import { _Text, Text } from "./base/single/text";
import { _Trigger } from "./base/single/trigger/trigger";
import { Trigger, _Trigger } from "./base/single/trigger/trigger";
import { IconChangeButton, _IconChangeButton, _IconChangeButtonStatic } from "./case/button/icon/icon.change";
import { _MultiSelectItem, _MultiSelectItemStatic, MultiSelectItem } from "./case/button/item.multiselect";
import { BubbleCombo, _BubbleCombo, _BubbleComboStatic } from "./case/combo/bubblecombo/combo.bubble";
import { _TextValueCombo, _TextValueComboStatic, TextValueCombo } from "./case/combo/combo.textvalue";
import { _SearchTextValueCombo, _SearchTextValueComboStatic } from "./case/combo/searchtextvaluecombo/combo.searchtextvalue";
import { _SignEditor, _SignEditorStatic, SignEditor } from "./case/editor/editor.sign";
import { _LoadingPane } from "./case/loading/loading_pane";
import { LoadingPane, _LoadingPane } from "./case/loading/loading_pane";
import { _AllValueMultiTextValueCombo, _AllValueMultiTextValueComboStatic } from "./component/allvaluemultitextvaluecombo/allvalue.multitextvalue.combo";
import { _AbstractTreeValueChooser, AbstractTreeValueChooser } from "./component/treevaluechooser/abstract.treevaluechooser";
import { _AbstractListTreeValueChooser, AbstractListTreeValueChooser } from "./component/treevaluechooser/abstract.treevaluechooser.list";
import { _Action, _ActionFactory } from "./core/action/action";
import { _ShowAction } from "./core/action/action.show";
import { Action, ActionFactory, _Action, _ActionFactory } from "./core/action/action";
import { ShowAction, _ShowAction } from "./core/action/action.show";
import { _base } from "./core/base";
import { _Behavior, _BehaviorFactory } from "./core/behavior/behavior";
import { _HighlightBehavior } from "./core/behavior/behavior.highlight";
import { _RedMarkBehavior } from "./core/behavior/behavior.redmark";
import { Behavior, BehaviorFactory, _Behavior, _BehaviorFactory } from "./core/behavior/behavior";
import { HighlightBehavior, _HighlightBehavior } from "./core/behavior/behavior.highlight";
import { RedMarkBehavior, _RedMarkBehavior } from "./core/behavior/behavior.redmark";
import * as decorator from "./core/decorator/decorator";
import { _func } from "./core/func";
import { _i18n } from "./core/i18n";
import { _Plugin } from "./core/plugin";
import { _OB } from "./core/ob";
import { OB, _OB } from "./core/ob";
import { _Widget, _WidgetStatic, Widget } from "./core/widget";
import { _inject } from "./core/inject";
import { Layout, _Layout } from "./core/wrapper/layout";
@ -249,9 +249,11 @@ export default {
Decorators: decorator,
};
export {
OB,
Widget,
Single,
BasicButton,
Checkbox,
Icon,
LeftRightVerticalAdaptLayout,
IconTextIconItem,
@ -271,7 +273,16 @@ export {
VTapeLayout,
VerticalAdaptLayout,
IconButton,
Trigger,
TriggerIconButton,
Action,
ActionFactory,
ShowAction,
Behavior,
BehaviorFactory,
RedMarkBehavior,
HighlightBehavior,
LoadingPane,
Searcher,
AbstractLabel,
Label,

Loading…
Cancel
Save