From b89967547f9dcb1de362b6466a4664a9da9c4f72 Mon Sep 17 00:00:00 2001 From: Guyi Date: Wed, 13 May 2020 19:33:25 +0800 Subject: [PATCH] =?UTF-8?q?KERNEL-4058=20refactor:=20fineui=E4=B8=AD?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0DownListCombo=E6=8E=A7=E4=BB=B6=E7=9A=84?= =?UTF-8?q?=E5=A3=B0=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- typescript/index.ts | 6 ++++-- typescript/widget/downlist/combo.downlist.ts | 15 +++++++++++++++ 2 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 typescript/widget/downlist/combo.downlist.ts diff --git a/typescript/index.ts b/typescript/index.ts index 237316ddc..b5dff7b9c 100644 --- a/typescript/index.ts +++ b/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 & { @@ -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 { diff --git a/typescript/widget/downlist/combo.downlist.ts b/typescript/widget/downlist/combo.downlist.ts new file mode 100644 index 000000000..eec23e9be --- /dev/null +++ b/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; +} \ No newline at end of file