From f3f4645f5677d7c55e691969e135d15a4ec4e447 Mon Sep 17 00:00:00 2001 From: youki Date: Mon, 21 Jun 2021 10:40:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0JIRA=E4=BB=BB=E5=8A=A1=20chore:=20?= =?UTF-8?q?=E8=A1=A5=E5=85=85=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../treevaluechooser/pane.treevaluechooser.ts | 17 +++++++++++++++++ typescript/index.ts | 3 +++ 2 files changed, 20 insertions(+) create mode 100644 typescript/component/treevaluechooser/pane.treevaluechooser.ts diff --git a/typescript/component/treevaluechooser/pane.treevaluechooser.ts b/typescript/component/treevaluechooser/pane.treevaluechooser.ts new file mode 100644 index 0000000000..f7bc398f61 --- /dev/null +++ b/typescript/component/treevaluechooser/pane.treevaluechooser.ts @@ -0,0 +1,17 @@ +import { TreeValue } from '../../base/tree/ztree/treeview'; +import { AbstractTreeValueChooser } from "./abstract.treevaluechooser"; + +export declare class TreeValueChooserPane extends AbstractTreeValueChooser { + static xtype: string; + static EVENT_CHANGE: string; + + setSelectedValue(v: TreeValue): void; + + setValue(v: TreeValue): void; + + getValue(): TreeValue; + + getAllValue(): TreeValue; + + populate(items?: T[]): void; +} diff --git a/typescript/index.ts b/typescript/index.ts index 018d2fafff..cb559f76aa 100644 --- a/typescript/index.ts +++ b/typescript/index.ts @@ -170,6 +170,7 @@ import { DynamicDateTimePane } from './widget/datetimepane/datetimepane'; import { SingleSelectInsertList } from './widget/singleselect/singleselectlist.insert'; import { MultiSelectTree } from './widget/multiselecttree/multiselecttree'; import { HtmlLabel } from "./base/single/label/html.label"; +import { TreeValueChooserPane } from './component/treevaluechooser/pane.treevaluechooser'; export interface BI extends _func, _i18n, _base, _inject, _var, _web, _utils { @@ -347,6 +348,7 @@ export interface BI extends _func, _i18n, _base, _inject, _var, _web, _utils { SingleSelectInsertList: typeof SingleSelectInsertList; MultiSelectTree: typeof MultiSelectTree; HtmlLabel: typeof HtmlLabel; + TreeValueChooserPane: typeof TreeValueChooserPane; } export default { @@ -524,4 +526,5 @@ export { SingleSelectInsertList, MultiSelectTree, HtmlLabel, + TreeValueChooserPane, };