Browse Source

refactor: 更新描述

master
iapyang 4 years ago
parent
commit
0c931ae5b4
  1. 2
      typescript/core/wrapper/layout.ts
  2. 5
      typescript/core/wrapper/layout/adapt/adapt.center.ts
  3. 5
      typescript/core/wrapper/layout/adapt/adapt.horizontal.ts
  4. 5
      typescript/core/wrapper/layout/adapt/adapt.vertical.ts
  5. 6
      typescript/core/wrapper/layout/layout.absolute.ts
  6. 6
      typescript/core/wrapper/layout/layout.default.ts
  7. 5
      typescript/core/wrapper/layout/layout.flow.ts
  8. 9
      typescript/core/wrapper/layout/layout.tape.ts
  9. 6
      typescript/core/wrapper/layout/layout.vertical.ts
  10. 28
      typescript/index.ts

2
typescript/core/wrapper/layout.ts

@ -33,6 +33,8 @@ export interface _Layout extends _Widget {
}
export declare class Layout extends Widget {
static xtype: string;
addItem(item: any): any;
prependItem(item: any): any;

5
typescript/core/wrapper/layout/adapt/adapt.center.ts

@ -0,0 +1,5 @@
import { Layout } from "typescript";
export declare class CenterAdaptLayout extends Layout {
static xtype: string;
}

5
typescript/core/wrapper/layout/adapt/adapt.horizontal.ts

@ -0,0 +1,5 @@
import { Layout } from "../../layout";
export declare class HorizontalAdaptLayout extends Layout {
static xtype: string;
}

5
typescript/core/wrapper/layout/adapt/adapt.vertical.ts

@ -0,0 +1,5 @@
import { Layout } from "typescript";
export declare class VerticalAdaptLayout extends Layout {
static xtype: string;
}

6
typescript/core/wrapper/layout/layout.absolute.ts

@ -1,4 +1,4 @@
import { _Layout } from "../layout";
import { Layout, _Layout } from "../layout";
export interface _AbsoluteLayout extends _Layout {
resize(): void;
@ -7,3 +7,7 @@ export interface _AbsoluteLayout extends _Layout {
populate<T>(items?: T[]): void;
}
export declare class AbsoluteLayout extends Layout {
static xtype: string;
}

6
typescript/core/wrapper/layout/layout.default.ts

@ -1,7 +1,11 @@
import { _Layout } from "../layout";
import { Layout, _Layout } from "../layout";
export interface _DefaultLayout extends _Layout {
resize(): void;
populate<T>(items?: T[]): void;
}
export declare class DefaultLayout extends Layout {
static xtype: string;
}

5
typescript/core/wrapper/layout/layout.flow.ts

@ -0,0 +1,5 @@
import { Layout } from "../layout";
export declare class FloatLeftLayout extends Layout {
static xtype: string;
}

9
typescript/core/wrapper/layout/layout.tape.ts

@ -1,3 +1,4 @@
import { Layout } from "typescript";
import { _Layout } from "../layout";
export interface _HTapeLayout extends _Layout {
@ -19,3 +20,11 @@ export interface _VTapeLayout extends _Layout {
populate<T>(items?: T[]): void;
}
export declare class HTapeLayout extends Layout {
static xtype: string;
}
export declare class VTapeLayout extends Layout {
static xtype: string;
}

6
typescript/core/wrapper/layout/layout.vertical.ts

@ -1,7 +1,11 @@
import { _Layout } from "../layout";
import { Layout, _Layout } from "../layout";
export interface _VerticalLayout extends _Layout {
resize(): void;
populate<T>(items?: T[]): void;
}
export declare class VerticalLayout extends Layout {
static xtype: string;
}

28
typescript/index.ts

@ -39,11 +39,11 @@ import { _Plugin } from "./core/plugin";
import { _OB } from "./core/ob";
import { _Widget, _WidgetStatic, Widget } from "./core/widget";
import { _inject } from "./core/inject";
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 { Layout, _Layout } from "./core/wrapper/layout";
import { AbsoluteLayout, _AbsoluteLayout } from "./core/wrapper/layout/layout.absolute";
import { HTapeLayout, VTapeLayout, _HTapeLayout, _VTapeLayout } from "./core/wrapper/layout/layout.tape";
import { VerticalLayout, _VerticalLayout } from "./core/wrapper/layout/layout.vertical";
import { DefaultLayout, _DefaultLayout } from "./core/wrapper/layout/layout.default";
import { DownListCombo, _DownListCombo, _DownListComboStatic } from "./widget/downlist/combo.downlist";
import { Icon } from "./base/single/icon/icon";
import { _LeftVerticalAdapt } from "./core/wrapper/layout/adapt/adapt.leftvertical";
@ -65,6 +65,10 @@ import { MidTreeLeafItem } from "./case/button/treeitem/item.mid.treeleaf";
import { FirstTreeLeafItem } from "./case/button/treeitem/item.first.treeleaf";
import { LastTreeLeafItem } from "./case/button/treeitem/item.last.treeleaf";
import { AbsoluteCenterLayout } from "./core/wrapper/layout/adapt/absolute.center";
import { HorizontalAdaptLayout } from "./core/wrapper/layout/adapt/adapt.horizontal";
import { FloatLeftLayout } from "./core/wrapper/layout/layout.flow";
import { CenterAdaptLayout } from "./core/wrapper/layout/adapt/adapt.center";
import { VerticalAdaptLayout } from "./core/wrapper/layout/adapt/adapt.vertical";
type ClassConstructor<T extends {}> = T & {
@ -130,6 +134,10 @@ export interface BI extends _func, _i18n, _base, _inject {
RightVerticalAdaptLayout: typeof RightVerticalAdaptLayout;
TableAdaptLayout: typeof TableAdaptLayout;
AbsoluteCenterLayout: typeof AbsoluteCenterLayout;
HorizontalAdaptLayout: typeof HorizontalAdaptLayout;
FloatLeftLayout: typeof FloatLeftLayout;
CenterAdaptLayout: typeof CenterAdaptLayout;
VerticalAdaptLayout: typeof VerticalAdaptLayout;
IconButton: typeof IconButton;
TextEditor: typeof TextEditor;
IconLabel: typeof IconLabel;
@ -155,11 +163,21 @@ export {
Icon,
LeftRightVerticalAdaptLayout,
IconTextIconItem,
Layout,
HorizontalAutoLayout,
InlineVerticalAdaptLayout,
RightVerticalAdaptLayout,
TableAdaptLayout,
AbsoluteCenterLayout,
HorizontalAdaptLayout,
FloatLeftLayout,
VerticalLayout,
AbsoluteLayout,
DefaultLayout,
HTapeLayout,
CenterAdaptLayout,
VTapeLayout,
VerticalAdaptLayout,
IconButton,
AbstractLabel,
Label,

Loading…
Cancel
Save