From 164e3e39e095ea14dbd849a05d382ae635c862b7 Mon Sep 17 00:00:00 2001 From: Guyi Date: Wed, 27 May 2020 14:04:40 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=97=A0jira=E4=BB=BB=E5=8A=A1=EF=BC=8C?= =?UTF-8?q?=E8=A1=A5=E5=85=85=E5=A3=B0=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- typescript/base/single/iframe/iframe.ts | 11 +++++++++++ typescript/core/wrapper/layout/layout.absolute.ts | 9 +++++++++ typescript/core/wrapper/layout/layout.vertical.ts | 7 +++++++ typescript/index.ts | 6 ++++++ 4 files changed, 33 insertions(+) create mode 100644 typescript/base/single/iframe/iframe.ts create mode 100644 typescript/core/wrapper/layout/layout.absolute.ts create mode 100644 typescript/core/wrapper/layout/layout.vertical.ts diff --git a/typescript/base/single/iframe/iframe.ts b/typescript/base/single/iframe/iframe.ts new file mode 100644 index 000000000..86d80ca9d --- /dev/null +++ b/typescript/base/single/iframe/iframe.ts @@ -0,0 +1,11 @@ +import { _Single } from "../single"; + +export interface _Iframe extends _Single { + setSrc: (v: string) => void; + + getSrc: () => string; + + setName: (v: string) => void; + + getName: () => string; +} diff --git a/typescript/core/wrapper/layout/layout.absolute.ts b/typescript/core/wrapper/layout/layout.absolute.ts new file mode 100644 index 000000000..04f625750 --- /dev/null +++ b/typescript/core/wrapper/layout/layout.absolute.ts @@ -0,0 +1,9 @@ +import { _Layout } from "../layout"; + +export interface _AbsoluteLayout extends _Layout { + resize: () => void; + + stroke: (items: T[]) => void; + + populate: (items?: T[]) => void; +} diff --git a/typescript/core/wrapper/layout/layout.vertical.ts b/typescript/core/wrapper/layout/layout.vertical.ts new file mode 100644 index 000000000..e5df71933 --- /dev/null +++ b/typescript/core/wrapper/layout/layout.vertical.ts @@ -0,0 +1,7 @@ +import { _Layout } from "../layout"; + +export interface _VerticalLayout extends _Layout { + resize: () => void; + + populate: (items?: T[]) => void; +} diff --git a/typescript/index.ts b/typescript/index.ts index 533b2e1ff..79c7605d6 100644 --- a/typescript/index.ts +++ b/typescript/index.ts @@ -8,6 +8,7 @@ import { _Button, _ButtonStatic } from "./base/single/button/buttons/button"; import { _TextButton, _TextButtonStatic } from "./base/single/button/buttons/button.text"; import { _IconTextItem, _IconTextItemStatic } from "./base/single/button/listitem/icontextitem"; import { _Editor, _EditorStatic } from "./base/single/editor/editor"; +import { _Iframe } from "./base/single/iframe/iframe"; import { _Checkbox, _CheckboxStatic } from "./base/single/input/checkbox"; import { _AbstractLabel } from "./base/single/label/abstract.label"; import { _Label } from "./base/single/label/label"; @@ -35,7 +36,9 @@ import { _i18n } from "./core/i18n"; import { _OB } from "./core/ob"; import { _Widget, _WidgetStatic } from "./core/widget"; 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 { _DownListCombo, _DownListComboStatic } from "./widget/downlist/combo.downlist"; @@ -85,6 +88,9 @@ export interface BI extends _func, _i18n, _base { AbstractListTreeValueChooser: ClassConstructor<_AbstractListTreeValueChooser>; Decorators: typeof decorator; DownListCombo: ClassConstructor<_DownListCombo> & _DownListComboStatic; + Iframe: ClassConstructor<_Iframe>; + AbsoluteLayout: ClassConstructor<_AbsoluteLayout>; + VerticalLayout: ClassConstructor<_VerticalLayout>; } export default { From 925e44eb0d85bd33e5287e5b0d50552924268ceb Mon Sep 17 00:00:00 2001 From: Guyi Date: Wed, 27 May 2020 15:10:18 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=97=A0jira=E4=BB=BB=E5=8A=A1=EF=BC=8C?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- typescript/base/single/iframe/iframe.ts | 8 ++++---- typescript/core/wrapper/layout/layout.absolute.ts | 6 +++--- typescript/core/wrapper/layout/layout.vertical.ts | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/typescript/base/single/iframe/iframe.ts b/typescript/base/single/iframe/iframe.ts index 86d80ca9d..2873ac4af 100644 --- a/typescript/base/single/iframe/iframe.ts +++ b/typescript/base/single/iframe/iframe.ts @@ -1,11 +1,11 @@ import { _Single } from "../single"; export interface _Iframe extends _Single { - setSrc: (v: string) => void; + setSrc(v: string): void; - getSrc: () => string; + getSrc(): string; - setName: (v: string) => void; + setNam(v: string): void; - getName: () => string; + getName(): string; } diff --git a/typescript/core/wrapper/layout/layout.absolute.ts b/typescript/core/wrapper/layout/layout.absolute.ts index 04f625750..d848647cb 100644 --- a/typescript/core/wrapper/layout/layout.absolute.ts +++ b/typescript/core/wrapper/layout/layout.absolute.ts @@ -1,9 +1,9 @@ import { _Layout } from "../layout"; export interface _AbsoluteLayout extends _Layout { - resize: () => void; + resize(): void; - stroke: (items: T[]) => void; + stroke(items: T[]): void; - populate: (items?: T[]) => void; + populate(items?: T[]): void; } diff --git a/typescript/core/wrapper/layout/layout.vertical.ts b/typescript/core/wrapper/layout/layout.vertical.ts index e5df71933..6fe104181 100644 --- a/typescript/core/wrapper/layout/layout.vertical.ts +++ b/typescript/core/wrapper/layout/layout.vertical.ts @@ -1,7 +1,7 @@ import { _Layout } from "../layout"; export interface _VerticalLayout extends _Layout { - resize: () => void; + resize(): void; - populate: (items?: T[]) => void; + populate(items?: T[]): void; }