Browse Source

KERNEL-4058 refactor: fineui中添加DownListCombo控件的声明

es6
Guyi 5 years ago
parent
commit
b89967547f
  1. 6
      typescript/index.ts
  2. 15
      typescript/widget/downlist/combo.downlist.ts

6
typescript/index.ts

@ -20,6 +20,8 @@ import { _TextValueCombo, _TextValueComboStatic } from "./case/combo/combo.textv
import { _SignEditor, _SignEditorStatic } from "./case/editor/editor.sign";
import { _LoadingPane } from "./case/loading/loading_pane";
import { _AllValueMultiTextValueCombo, _AllValueMultiTextValueComboStatic } from "./component/allvaluemultitextvaluecombo/allvalue.multitextvalue.combo";
import { _AbstractTreeValueChooser } from "./component/treevaluechooser/abstract.treevaluechooser";
import { _AbstractListTreeValueChooser } from "./component/treevaluechooser/abstract.treevaluechooser.list";
import { _Action, _ActionFactory } from "./core/action/action";
import { _ShowAction } from "./core/action/action.show";
import { _base } from "./core/base";
@ -33,8 +35,7 @@ import { _OB } from "./core/ob";
import { _Widget, _WidgetStatic } from "./core/widget";
import { _Layout } from "./core/wrapper/layout";
import { _HTapeLayout, _VTapeLayout } from "./core/wrapper/layout/layout.tape";
import { _AbstractTreeValueChooser } from "./component/treevaluechooser/abstract.treevaluechooser";
import { _AbstractListTreeValueChooser } from "./component/treevaluechooser/abstract.treevaluechooser.list";
import { _DownListCombo, _DownListComboStatic } from "./widget/downlist/combo.downlist";
type ClassConstructor<T extends {}> = T & {
@ -81,6 +82,7 @@ export interface BI extends _func, _i18n, _base {
AbstractTreeValueChooser: ClassConstructor<_AbstractTreeValueChooser>;
AbstractListTreeValueChooser: ClassConstructor<_AbstractListTreeValueChooser>;
Decorators: typeof decorator;
DownListCombo: ClassConstructor<_DownListCombo> & _DownListComboStatic;
}
export default {

15
typescript/widget/downlist/combo.downlist.ts

@ -0,0 +1,15 @@
import { _Widget } from "typescript/core/widget";
export interface _DownListCombo extends _Widget {
hideView: () => void;
showView: (e?: any) => void;
populate: (items?: any) => void;
}
export interface _DownListComboStatic {
EVENT_CHANGE: string;
EVENT_SON_VALUE_CHANGE: string;
EVENT_BEFORE_POPUPVIEW: string;
}
Loading…
Cancel
Save