From 99c5314499c02b31404f1fcf2d67f2f2f40142ef Mon Sep 17 00:00:00 2001 From: Holiday Date: Fri, 11 Feb 2022 10:28:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0DownListPopup=E5=A3=B0?= =?UTF-8?q?=E6=98=8E=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- typescript/index.ts | 3 +++ typescript/widget/downlist/popup.downlist.ts | 13 +++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 typescript/widget/downlist/popup.downlist.ts diff --git a/typescript/index.ts b/typescript/index.ts index bcb501473..619ab72ce 100644 --- a/typescript/index.ts +++ b/typescript/index.ts @@ -49,6 +49,7 @@ import { VerticalFillLayout } from "./core/wrapper/layout/fill/fill.vertical"; import { VerticalLayout } from "./core/wrapper/layout/layout.vertical"; import { DefaultLayout } from "./core/wrapper/layout/layout.default"; import { DownListCombo } from "./widget/downlist/combo.downlist"; +import { DownListPopup } from "./widget/downlist/popup.downlist"; import { Icon } from "./base/single/icon/icon"; import { LeftVerticalAdaptLayout } from "./core/wrapper/layout/adapt/adapt.leftvertical"; import { LeftRightVerticalAdaptLayout, RightVerticalAdaptLayout } from "./core/wrapper/layout/adapt/adapt.leftrightvertical"; @@ -245,6 +246,7 @@ export interface BI extends _func, _i18n, _base, _inject, _var, _web, _utils { MultiTreeInsertCombo: typeof MultiTreeInsertCombo; Decorators: typeof decorator; DownListCombo: typeof DownListCombo; + DownListPopup: typeof DownListPopup; Iframe: typeof Iframe; AbsoluteLayout: typeof AbsoluteLayout; HorizontalFillLayout: typeof HorizontalFillLayout; @@ -423,6 +425,7 @@ export { Label, TextButton, DownListCombo, + DownListPopup, IconChangeButton, Button, TextEditor, diff --git a/typescript/widget/downlist/popup.downlist.ts b/typescript/widget/downlist/popup.downlist.ts new file mode 100644 index 000000000..e61078d4c --- /dev/null +++ b/typescript/widget/downlist/popup.downlist.ts @@ -0,0 +1,13 @@ +import { Widget } from "../../core/widget"; + +export declare class DownListPopup extends Widget { + static xtype: string; + static EVENT_CHANGE: string; + static EVENT_SON_VALUE_CHANGE: string; + + populate: (items: any) => void; + + setValue: (v: any) => void; + + getValue: () => any; +} \ No newline at end of file