From d243c83c46e5edf4b9457dfb15a45a5ae119c87d Mon Sep 17 00:00:00 2001 From: iapyang Date: Fri, 11 Dec 2020 17:53:00 +0800 Subject: [PATCH] =?UTF-8?q?KERNEL-6464=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 --- .../core/wrapper/layout/adapt/adapt.leftrightvertical.ts | 4 ++++ typescript/core/wrapper/layout/adapt/adapt.table.ts | 7 +++++++ typescript/index.ts | 7 ++++++- 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 typescript/core/wrapper/layout/adapt/adapt.table.ts diff --git a/typescript/core/wrapper/layout/adapt/adapt.leftrightvertical.ts b/typescript/core/wrapper/layout/adapt/adapt.leftrightvertical.ts index 5f285568b1..ff0e5f0dc6 100644 --- a/typescript/core/wrapper/layout/adapt/adapt.leftrightvertical.ts +++ b/typescript/core/wrapper/layout/adapt/adapt.leftrightvertical.ts @@ -3,3 +3,7 @@ import { Layout } from "../../layout"; export declare class LeftRightVerticalAdaptLayout extends Layout { static xtype: string; } + +export declare class RightVerticalAdaptLayout extends Layout { + static xtype: string; +} diff --git a/typescript/core/wrapper/layout/adapt/adapt.table.ts b/typescript/core/wrapper/layout/adapt/adapt.table.ts new file mode 100644 index 0000000000..c12a48a4a0 --- /dev/null +++ b/typescript/core/wrapper/layout/adapt/adapt.table.ts @@ -0,0 +1,7 @@ +import { Layout } from "../../layout"; + +export declare class TableAdaptLayout extends Layout { + static xtype: string; + + appendFragment(frag: any): void; +} diff --git a/typescript/index.ts b/typescript/index.ts index 760f01675c..99a278ff70 100644 --- a/typescript/index.ts +++ b/typescript/index.ts @@ -47,10 +47,11 @@ import { _DefaultLayout } from "./core/wrapper/layout/layout.default"; import { _DownListCombo, _DownListComboStatic } from "./widget/downlist/combo.downlist"; import { Icon } from "./base/single/icon/icon"; import { _LeftVerticalAdapt } from "./core/wrapper/layout/adapt/adapt.leftvertical"; -import { LeftRightVerticalAdaptLayout } from "./core/wrapper/layout/adapt/adapt.leftrightvertical"; +import { LeftRightVerticalAdaptLayout, RightVerticalAdaptLayout } from "./core/wrapper/layout/adapt/adapt.leftrightvertical"; import { IconTextIconItem } from "./base/single/button/listitem/icontexticonitem"; import { HorizontalAutoLayout } from "./core/wrapper/layout/adapt/auto.horizontal"; import { InlineVerticalAdaptLayout } from "./core/wrapper/layout/adapt/inline.vertical"; +import { TableAdaptLayout } from "./core/wrapper/layout/adapt/adapt.table"; type ClassConstructor = T & { @@ -113,6 +114,8 @@ export interface BI extends _func, _i18n, _base, _inject { IconTextIconItem: typeof IconTextIconItem; HorizontalAutoLayout: typeof HorizontalAutoLayout; InlineVerticalAdaptLayout: typeof InlineVerticalAdaptLayout; + RightVerticalAdaptLayout: typeof RightVerticalAdaptLayout; + TableAdaptLayout: typeof TableAdaptLayout; } export default { @@ -127,4 +130,6 @@ export { IconTextIconItem, HorizontalAutoLayout, InlineVerticalAdaptLayout, + RightVerticalAdaptLayout, + TableAdaptLayout, };