From c3c0ec6e120e861b4676642bb31f68f0c7d5bc5b Mon Sep 17 00:00:00 2001 From: imp Date: Thu, 10 Dec 2020 16:21:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0jira=E4=BB=BB=E5=8A=A1=20=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E6=8F=8F=E8=BF=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- typescript/core/wrapper/layout/layout.default.ts | 7 +++++++ typescript/index.ts | 2 ++ 2 files changed, 9 insertions(+) create mode 100644 typescript/core/wrapper/layout/layout.default.ts diff --git a/typescript/core/wrapper/layout/layout.default.ts b/typescript/core/wrapper/layout/layout.default.ts new file mode 100644 index 0000000000..b8d2f7632f --- /dev/null +++ b/typescript/core/wrapper/layout/layout.default.ts @@ -0,0 +1,7 @@ +import { _Layout } from "../layout"; + +export interface _DefaultLayout extends _Layout { + resize(): void; + + populate(items?: T[]): void; +} diff --git a/typescript/index.ts b/typescript/index.ts index a8a7328a0c..7dfc8d837d 100644 --- a/typescript/index.ts +++ b/typescript/index.ts @@ -43,6 +43,7 @@ import { _Layout } from "./core/wrapper/layout"; import { _AbsoluteLayout } from "./core/wrapper/layout/layout.absolute"; import { _HTapeLayout, _VTapeLayout } from "./core/wrapper/layout/layout.tape"; import { _VerticalLayout } from "./core/wrapper/layout/layout.vertical"; +import { _DefaultLayout } from "./core/wrapper/layout/layout.default"; import { _DownListCombo, _DownListComboStatic } from "./widget/downlist/combo.downlist"; @@ -97,6 +98,7 @@ export interface BI extends _func, _i18n, _base, _inject { Iframe: ClassConstructor<_Iframe>; AbsoluteLayout: ClassConstructor<_AbsoluteLayout>; VerticalLayout: ClassConstructor<_VerticalLayout>; + DefaultLayout: ClassConstructor<_DefaultLayout>; Input: ClassConstructor<_Input> & _InputStatic; SearchTextValueCombo: ClassConstructor<_SearchTextValueCombo> & _SearchTextValueComboStatic; }