From 7dc4d754e525c831a31a558329ecb893de7e6c00 Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Fri, 18 Dec 2020 15:23:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0JIRA=E4=BB=BB=E5=8A=A1=20=E5=8A=A0?= =?UTF-8?q?=E5=A3=B0=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../combo.textvaluecheck.ts | 16 +++++++++++++ typescript/index.ts | 4 ++++ .../widget/numbereditor/numbereditor.ts | 23 +++++++++++++++++++ 3 files changed, 43 insertions(+) create mode 100644 typescript/case/combo/textvaluecheckcombo/combo.textvaluecheck.ts create mode 100644 typescript/widget/numbereditor/numbereditor.ts diff --git a/typescript/case/combo/textvaluecheckcombo/combo.textvaluecheck.ts b/typescript/case/combo/textvaluecheckcombo/combo.textvaluecheck.ts new file mode 100644 index 0000000000..883df68f3f --- /dev/null +++ b/typescript/case/combo/textvaluecheckcombo/combo.textvaluecheck.ts @@ -0,0 +1,16 @@ +import { Widget } from "../../../core/widget"; + +export declare class TextValueCheckCombo extends Widget { + static xtype: string; + static EVENT_CHANGE: string; + + setTitle (v: string): void; + + setValue (v: string | number): void; + + setWarningTitle(v: string): void; + + getValue(): void; + + populate(items: any[]): string; +} diff --git a/typescript/index.ts b/typescript/index.ts index 07cb902faf..6f2bb94b24 100644 --- a/typescript/index.ts +++ b/typescript/index.ts @@ -126,6 +126,8 @@ import { AllCountPager } from "./case/pager/pager.all.count"; import { PopupView } from "./base/layer/layer.popup"; import { BubblePopupView, BubblePopupBarView, TextBubblePopupBarView } from "./case/combo/bubblecombo/popup.bubble"; import { ArrowTreeGroupNodeCheckbox } from "./case/checkbox/check.arrownode"; +import { NumberEditor } from "./widget/numbereditor/numbereditor"; +import { TextValueCheckCombo } from "./case/combo/textvaluecheckcombo/combo.textvaluecheck"; type ClassConstructor = T & { @@ -402,4 +404,6 @@ export { BubblePopupBarView, TextBubblePopupBarView, ArrowTreeGroupNodeCheckbox, + TextValueCheckCombo, + NumberEditor }; diff --git a/typescript/widget/numbereditor/numbereditor.ts b/typescript/widget/numbereditor/numbereditor.ts new file mode 100644 index 0000000000..5484af1d2b --- /dev/null +++ b/typescript/widget/numbereditor/numbereditor.ts @@ -0,0 +1,23 @@ +import { Widget } from "../../core/widget"; + +export declare class NumberEditor extends Widget { + static xtype: string; + static EVENT_CONFIRM: string; + static EVENT_CHANGE: string; + + focus (): void; + + isEditing(): void; + + setUpEnable(v: boolean): void; + + setDownEnable(v: boolean): void; + + getLastValidValue(): string; + + getLastChangedValue(): string; + + getValue(): string; + + setValue(v: string): void; +}