Browse Source

Pull request #1653: KERNEL-6464 补充类型

Merge in VISUAL/fineui from ~TELLER/fineui:bugfix to master

* commit '0c931ae5b4d5c5f36da62af315d8507a34883a62':
  refactor: 更新描述
  refactor: 补充
es6
Teller 4 years ago
parent
commit
1897145c81
  1. 2
      typescript/core/wrapper/layout.ts
  2. 5
      typescript/core/wrapper/layout/adapt/absolute.center.ts
  3. 5
      typescript/core/wrapper/layout/adapt/adapt.center.ts
  4. 5
      typescript/core/wrapper/layout/adapt/adapt.horizontal.ts
  5. 5
      typescript/core/wrapper/layout/adapt/adapt.vertical.ts
  6. 6
      typescript/core/wrapper/layout/layout.absolute.ts
  7. 6
      typescript/core/wrapper/layout/layout.default.ts
  8. 5
      typescript/core/wrapper/layout/layout.flow.ts
  9. 9
      typescript/core/wrapper/layout/layout.tape.ts
  10. 6
      typescript/core/wrapper/layout/layout.vertical.ts
  11. 31
      typescript/index.ts

2
typescript/core/wrapper/layout.ts

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

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

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

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 { export interface _AbsoluteLayout extends _Layout {
resize(): void; resize(): void;
@ -7,3 +7,7 @@ export interface _AbsoluteLayout extends _Layout {
populate<T>(items?: T[]): void; 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 { export interface _DefaultLayout extends _Layout {
resize(): void; resize(): void;
populate<T>(items?: T[]): 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"; import { _Layout } from "../layout";
export interface _HTapeLayout extends _Layout { export interface _HTapeLayout extends _Layout {
@ -19,3 +20,11 @@ export interface _VTapeLayout extends _Layout {
populate<T>(items?: T[]): void; 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 { export interface _VerticalLayout extends _Layout {
resize(): void; resize(): void;
populate<T>(items?: T[]): void; populate<T>(items?: T[]): void;
} }
export declare class VerticalLayout extends Layout {
static xtype: string;
}

31
typescript/index.ts

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

Loading…
Cancel
Save