From 137f70b2b1fa856d8e438be7f7156895a087fdd4 Mon Sep 17 00:00:00 2001 From: alan Date: Wed, 16 Dec 2020 17:09:00 +0800 Subject: [PATCH] =?UTF-8?q?KERNEL-6431=20=E8=A1=A5=E5=85=85=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- typescript/case/button/item.singleselect.radio.ts | 10 ++++++++++ typescript/index.ts | 12 ++++++++++++ typescript/widget/multitree/multi.tree.popup.ts | 15 +++++++++++++++ .../widget/singleselect/singleselect.combo.ts | 11 +++++++++++ .../singleselect/singleselect.insert.combo.ts | 11 +++++++++++ 5 files changed, 59 insertions(+) create mode 100644 typescript/case/button/item.singleselect.radio.ts create mode 100644 typescript/widget/multitree/multi.tree.popup.ts create mode 100644 typescript/widget/singleselect/singleselect.combo.ts create mode 100644 typescript/widget/singleselect/singleselect.insert.combo.ts diff --git a/typescript/case/button/item.singleselect.radio.ts b/typescript/case/button/item.singleselect.radio.ts new file mode 100644 index 0000000000..de0ae3f852 --- /dev/null +++ b/typescript/case/button/item.singleselect.radio.ts @@ -0,0 +1,10 @@ +import { BasicButton } from "../../base/single/button/button.basic"; + +export declare class SingleSelectRadioItem extends BasicButton { + static xtype: string; + static EVENT_CHANGE: string; + + doRedMark(...args: any[]): void; + + unRedMark(...args: any[]): void; +} diff --git a/typescript/index.ts b/typescript/index.ts index e82441f3cc..a0b97af80d 100644 --- a/typescript/index.ts +++ b/typescript/index.ts @@ -98,6 +98,10 @@ import { ListTreeValueChooserInsertCombo } from "./component/treevaluechooser/co import { TreeValueChooserCombo } from "./component/treevaluechooser/combo.treevaluechooser"; import { TreeValueChooserInsertCombo } from "./component/treevaluechooser/combo.treevaluechooser.insert"; import { Radio } from "./base/single/input/radio/radio"; +import { MultiTreePopup } from "./widget/multitree/multi.tree.popup"; +import { SingleSelectRadioItem } from "./case/button/item.singleselect.radio"; +import { SingleSelectInsertCombo } from "./widget/singleselect/singleselect.insert.combo"; +import { SingleSelectCombo } from "./widget/singleselect/singleselect.combo"; type ClassConstructor = T & { @@ -209,6 +213,10 @@ export interface BI extends _func, _i18n, _base, _inject { CenterLayout: typeof CenterLayout; VirtualGroup: typeof VirtualGroup; GridLayout: typeof GridLayout; + MultiTreePopup: typeof MultiTreePopup; + SingleSelectRadioItem: typeof SingleSelectRadioItem; + SingleSelectInsertCombo: typeof SingleSelectInsertCombo; + SingleSelectCombo: typeof SingleSelectCombo; } export default { @@ -297,4 +305,8 @@ export { CenterLayout, VirtualGroup, GridLayout, + MultiTreePopup, + SingleSelectRadioItem, + SingleSelectInsertCombo, + SingleSelectCombo, }; diff --git a/typescript/widget/multitree/multi.tree.popup.ts b/typescript/widget/multitree/multi.tree.popup.ts new file mode 100644 index 0000000000..68f8f65a2c --- /dev/null +++ b/typescript/widget/multitree/multi.tree.popup.ts @@ -0,0 +1,15 @@ +import { Pane } from "../../base/pane"; + +export declare class MultiTreePopup extends Pane { + static xtype: string; + static EVENT_CHANGE: string; + static EVENT_CLICK_CONFIRM: string; + static EVENT_CLICK_CLEAR: string; + static EVENT_AFTERINIT: string; + + hasChecked(): boolean; + + resetHeight(h: number): void; + + resetWidth(w: number): void; +} diff --git a/typescript/widget/singleselect/singleselect.combo.ts b/typescript/widget/singleselect/singleselect.combo.ts new file mode 100644 index 0000000000..2f26988889 --- /dev/null +++ b/typescript/widget/singleselect/singleselect.combo.ts @@ -0,0 +1,11 @@ +import { Single } from "../../base/single/single"; + +export declare class SingleSelectCombo extends Single { + static xtype: string; + static EVENT_BLUR: string; + static EVENT_FOCUS: string; + static EVENT_STOP: string; + static EVENT_SEARCHING: string; + static EVENT_CLICK_ITEM: string; + static EVENT_CONFIRM: string; +} diff --git a/typescript/widget/singleselect/singleselect.insert.combo.ts b/typescript/widget/singleselect/singleselect.insert.combo.ts new file mode 100644 index 0000000000..1924e5e8bc --- /dev/null +++ b/typescript/widget/singleselect/singleselect.insert.combo.ts @@ -0,0 +1,11 @@ +import { Single } from "../../base/single/single"; + +export declare class SingleSelectInsertCombo extends Single { + static xtype: string; + static EVENT_FOCUS: string; + static EVENT_BLUR: string; + static EVENT_STOP: string; + static EVENT_SEARCHING: string; + static EVENT_CLICK_ITEM: string; + static EVENT_CONFIRM: string; +}