From 348ef5244d29fc3cc00dda1d7f1f2995abf61757 Mon Sep 17 00:00:00 2001 From: youki Date: Mon, 21 Dec 2020 15:23:25 +0800 Subject: [PATCH] =?UTF-8?q?KERNEL-6540=20refactor:=20=E8=A1=A5=E5=85=85?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E6=8F=8F=E8=BF=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- typescript/base/list/listview.ts | 9 +++++++++ .../case/combo/icontextvaluecombo/combo.icontextvalue.ts | 8 ++++++++ .../core/wrapper/layout/middle/middle.float.center.ts | 5 +++++ typescript/index.ts | 9 +++++++++ 4 files changed, 31 insertions(+) create mode 100644 typescript/base/list/listview.ts create mode 100644 typescript/case/combo/icontextvaluecombo/combo.icontextvalue.ts create mode 100644 typescript/core/wrapper/layout/middle/middle.float.center.ts diff --git a/typescript/base/list/listview.ts b/typescript/base/list/listview.ts new file mode 100644 index 000000000..459623383 --- /dev/null +++ b/typescript/base/list/listview.ts @@ -0,0 +1,9 @@ +import { Widget } from '../../core/widget'; + +export declare class ListView extends Widget { + static xtype: string; + + restore(): void; + + populate(items: T[]): void; +} diff --git a/typescript/case/combo/icontextvaluecombo/combo.icontextvalue.ts b/typescript/case/combo/icontextvaluecombo/combo.icontextvalue.ts new file mode 100644 index 000000000..4e2f80311 --- /dev/null +++ b/typescript/case/combo/icontextvaluecombo/combo.icontextvalue.ts @@ -0,0 +1,8 @@ +import { Widget } from '../../../core/widget'; + +export declare class IconTextValueCombo extends Widget { + static xtype: string; + static EVENT_CHANGE: string; + + populate(items: T[]): void; +} diff --git a/typescript/core/wrapper/layout/middle/middle.float.center.ts b/typescript/core/wrapper/layout/middle/middle.float.center.ts new file mode 100644 index 000000000..3d11897a8 --- /dev/null +++ b/typescript/core/wrapper/layout/middle/middle.float.center.ts @@ -0,0 +1,5 @@ +import { Layout } from '../../layout'; + +export declare class FloatCenterLayout extends Layout { + static xtype: string; +} diff --git a/typescript/index.ts b/typescript/index.ts index a2f9292da..3f5b79a06 100644 --- a/typescript/index.ts +++ b/typescript/index.ts @@ -138,6 +138,9 @@ import { TextValueCheckCombo } from "./case/combo/textvaluecheckcombo/combo.text import { LinearSegment } from "./case/linersegment/linear.segment"; import { Img } from "./base/single/img/img"; import { EditorIconCheckCombo } from "./case/combo/editoriconcheckcombo/combo.editiconcheck"; +import { IconTextValueCombo } from './case/combo/icontextvaluecombo/combo.icontextvalue'; +import { ListView } from './base/list/listview'; +import { FloatCenterLayout } from './core/wrapper/layout/middle/middle.float.center'; type ClassConstructor = T & { @@ -290,6 +293,9 @@ export interface BI extends _func, _i18n, _base, _inject, _var { LinearSegment: typeof LinearSegment; Img: typeof Img; EditorIconCheckCombo: typeof EditorIconCheckCombo; + IconTextValueCombo: typeof IconTextValueCombo; + ListView: typeof ListView; + FloatCenterLayout: typeof FloatCenterLayout; } export default { @@ -436,4 +442,7 @@ export { LinearSegment, Img, EditorIconCheckCombo, + IconTextValueCombo, + ListView, + FloatCenterLayout, };