Browse Source

KERNEL-6465 refactor: 补充类型

master
youki 4 years ago
parent
commit
d5db4b6b41
  1. 16
      typescript/base/combination/group.virtual.ts
  2. 5
      typescript/core/wrapper/layout/layout.grid.ts
  3. 5
      typescript/core/wrapper/layout/middle/middle.center.ts
  4. 9
      typescript/index.ts

16
typescript/base/combination/group.virtual.ts

@ -0,0 +1,16 @@
import { Widget } from '../../core/widget';
export declare class VirtualGroup extends Widget {
static xtype: string;
static EVENT_CHANGE: string;
addItems<T>(items: T[]): void;
prependItems<T>(items: T[]): void;
getNotSelectedValue<T>(): T[];
getValue<T>(): T[];
populate(items?: any, ...args: any[]): void
}

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

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

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

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

9
typescript/index.ts

@ -82,6 +82,9 @@ import { TextAreaEditor } from "./base/single/editor/editor.textarea";
import { SingleSelectItem } from "./case/button/item.singleselect";
import { DynamicDateTimeCombo } from "./widget/dynamicdatetime/dynamicdatetime.combo";
import { MultiTreeCombo } from "./widget/multitree/multi.tree.combo";
import { CenterLayout } from "./core/wrapper/layout/middle/middle.center";
import { VirtualGroup } from "./base/combination/group.virtual";
import { GridLayout } from "./core/wrapper/layout/layout.grid";
type ClassConstructor<T extends {}> = T & {
@ -177,6 +180,9 @@ export interface BI extends _func, _i18n, _base, _inject {
SingleSelectItem: typeof SingleSelectItem;
DynamicDateTimeCombo: typeof DynamicDateTimeCombo;
MultiTreeCombo: typeof MultiTreeCombo;
CenterLayout: typeof CenterLayout;
VirtualGroup: typeof VirtualGroup;
GridLayout: typeof GridLayout;
}
export default {
@ -245,4 +251,7 @@ export {
SingleSelectItem,
DynamicDateTimeCombo,
MultiTreeCombo,
CenterLayout,
VirtualGroup,
GridLayout,
};

Loading…
Cancel
Save