From d5db4b6b41e479a0f6bc26d7cc69d3a2ee520b0c Mon Sep 17 00:00:00 2001 From: youki Date: Tue, 15 Dec 2020 14:31:27 +0800 Subject: [PATCH] =?UTF-8?q?KERNEL-6465=20refactor:=20=E8=A1=A5=E5=85=85?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- typescript/base/combination/group.virtual.ts | 16 ++++++++++++++++ typescript/core/wrapper/layout/layout.grid.ts | 5 +++++ .../core/wrapper/layout/middle/middle.center.ts | 5 +++++ typescript/index.ts | 9 +++++++++ 4 files changed, 35 insertions(+) create mode 100644 typescript/base/combination/group.virtual.ts create mode 100644 typescript/core/wrapper/layout/layout.grid.ts create mode 100644 typescript/core/wrapper/layout/middle/middle.center.ts diff --git a/typescript/base/combination/group.virtual.ts b/typescript/base/combination/group.virtual.ts new file mode 100644 index 0000000000..c3004e75fe --- /dev/null +++ b/typescript/base/combination/group.virtual.ts @@ -0,0 +1,16 @@ +import { Widget } from '../../core/widget'; + +export declare class VirtualGroup extends Widget { + static xtype: string; + static EVENT_CHANGE: string; + + addItems(items: T[]): void; + + prependItems(items: T[]): void; + + getNotSelectedValue(): T[]; + + getValue(): T[]; + + populate(items?: any, ...args: any[]): void +} \ No newline at end of file diff --git a/typescript/core/wrapper/layout/layout.grid.ts b/typescript/core/wrapper/layout/layout.grid.ts new file mode 100644 index 0000000000..f79671759b --- /dev/null +++ b/typescript/core/wrapper/layout/layout.grid.ts @@ -0,0 +1,5 @@ +import { Layout } from '../layout'; + +export declare class GridLayout extends Layout { + static xtype: string; +} diff --git a/typescript/core/wrapper/layout/middle/middle.center.ts b/typescript/core/wrapper/layout/middle/middle.center.ts new file mode 100644 index 0000000000..017735020b --- /dev/null +++ b/typescript/core/wrapper/layout/middle/middle.center.ts @@ -0,0 +1,5 @@ +import { Layout } from '../../layout'; + +export declare class CenterLayout extends Layout { + static xtype: string; +} diff --git a/typescript/index.ts b/typescript/index.ts index 98d42b701c..a6c94cd918 100644 --- a/typescript/index.ts +++ b/typescript/index.ts @@ -82,6 +82,9 @@ import { TextAreaEditor } from "./base/single/editor/editor.textarea"; import { SingleSelectItem } from "./case/button/item.singleselect"; import { DynamicDateTimeCombo } from "./widget/dynamicdatetime/dynamicdatetime.combo"; import { MultiTreeCombo } from "./widget/multitree/multi.tree.combo"; +import { CenterLayout } from "./core/wrapper/layout/middle/middle.center"; +import { VirtualGroup } from "./base/combination/group.virtual"; +import { GridLayout } from "./core/wrapper/layout/layout.grid"; type ClassConstructor = T & { @@ -177,6 +180,9 @@ export interface BI extends _func, _i18n, _base, _inject { SingleSelectItem: typeof SingleSelectItem; DynamicDateTimeCombo: typeof DynamicDateTimeCombo; MultiTreeCombo: typeof MultiTreeCombo; + CenterLayout: typeof CenterLayout; + VirtualGroup: typeof VirtualGroup; + GridLayout: typeof GridLayout; } export default { @@ -245,4 +251,7 @@ export { SingleSelectItem, DynamicDateTimeCombo, MultiTreeCombo, + CenterLayout, + VirtualGroup, + GridLayout, };