Browse Source

KERNEL-6464 refactor: 补充类型

master
iapyang 4 years ago
parent
commit
d243c83c46
  1. 4
      typescript/core/wrapper/layout/adapt/adapt.leftrightvertical.ts
  2. 7
      typescript/core/wrapper/layout/adapt/adapt.table.ts
  3. 7
      typescript/index.ts

4
typescript/core/wrapper/layout/adapt/adapt.leftrightvertical.ts

@ -3,3 +3,7 @@ import { Layout } from "../../layout";
export declare class LeftRightVerticalAdaptLayout extends Layout { export declare class LeftRightVerticalAdaptLayout extends Layout {
static xtype: string; static xtype: string;
} }
export declare class RightVerticalAdaptLayout extends Layout {
static xtype: string;
}

7
typescript/core/wrapper/layout/adapt/adapt.table.ts

@ -0,0 +1,7 @@
import { Layout } from "../../layout";
export declare class TableAdaptLayout extends Layout {
static xtype: string;
appendFragment(frag: any): void;
}

7
typescript/index.ts

@ -47,10 +47,11 @@ import { _DefaultLayout } from "./core/wrapper/layout/layout.default";
import { _DownListCombo, _DownListComboStatic } from "./widget/downlist/combo.downlist"; import { _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";
import { LeftRightVerticalAdaptLayout } from "./core/wrapper/layout/adapt/adapt.leftrightvertical"; import { LeftRightVerticalAdaptLayout, RightVerticalAdaptLayout } from "./core/wrapper/layout/adapt/adapt.leftrightvertical";
import { IconTextIconItem } from "./base/single/button/listitem/icontexticonitem"; import { IconTextIconItem } from "./base/single/button/listitem/icontexticonitem";
import { HorizontalAutoLayout } from "./core/wrapper/layout/adapt/auto.horizontal"; import { HorizontalAutoLayout } from "./core/wrapper/layout/adapt/auto.horizontal";
import { InlineVerticalAdaptLayout } from "./core/wrapper/layout/adapt/inline.vertical"; import { InlineVerticalAdaptLayout } from "./core/wrapper/layout/adapt/inline.vertical";
import { TableAdaptLayout } from "./core/wrapper/layout/adapt/adapt.table";
type ClassConstructor<T extends {}> = T & { type ClassConstructor<T extends {}> = T & {
@ -113,6 +114,8 @@ export interface BI extends _func, _i18n, _base, _inject {
IconTextIconItem: typeof IconTextIconItem; IconTextIconItem: typeof IconTextIconItem;
HorizontalAutoLayout: typeof HorizontalAutoLayout; HorizontalAutoLayout: typeof HorizontalAutoLayout;
InlineVerticalAdaptLayout: typeof InlineVerticalAdaptLayout; InlineVerticalAdaptLayout: typeof InlineVerticalAdaptLayout;
RightVerticalAdaptLayout: typeof RightVerticalAdaptLayout;
TableAdaptLayout: typeof TableAdaptLayout;
} }
export default { export default {
@ -127,4 +130,6 @@ export {
IconTextIconItem, IconTextIconItem,
HorizontalAutoLayout, HorizontalAutoLayout,
InlineVerticalAdaptLayout, InlineVerticalAdaptLayout,
RightVerticalAdaptLayout,
TableAdaptLayout,
}; };

Loading…
Cancel
Save