Browse Source

KERNEL-7828 补充一下类型定义

es6
Kobi 3 years ago
parent
commit
0695b98966
  1. 9
      typescript/base/combination/tab.ts
  2. 2
      typescript/component/allvaluechooser/combo.allvaluechooser.ts
  3. 12
      typescript/index.ts

9
typescript/base/combination/tab.ts

@ -6,6 +6,15 @@ export declare class Tab extends Widget {
static EVENT_CHANGE: string;
props: {
showIndex: any;
cardCreator: Function;
direction?: string; // top, bottom, left, right, custom
single?: boolean; // 是不是单页面
logic?: any;
tab?: boolean;
}
setSelect(v: string | number, action?: Action, callback?: Function): void;
removeTab(v: string | number): void;

2
typescript/component/allvaluechooser/combo.allvaluechooser.ts

@ -3,6 +3,8 @@ import { AbstractAllValueChooser } from "./abstract.allvaluechooser";
export declare class AllValueChooserCombo extends AbstractAllValueChooser {
static xtype: string;
static EVENT_CONFIRM: string;
getAllValue(): any;
populate(...args: any[]): void;

12
typescript/index.ts

@ -164,6 +164,10 @@ import { BlankIconTextItem } from './base/single/button/listitem/blankicontextit
import { Broadcasts, Layers } from "./base/base";
import { BroadcastController } from "./core/controller/controller.broadcast";
import { Pager } from "./base/pager/pager";
import { TimeInterval } from './widget/timeinterval/timeinterval';
import { DynamicDateTimePane } from './widget/datetimepane/datetimepane';
import { SingleSelectInsertList } from './widget/singleselect/singleselectlist.insert';
import { MultiSelectTree } from './widget/multiselecttree/multiselecttree';
export interface BI extends _func, _i18n, _base, _inject, _var, _web, _utils {
@ -335,6 +339,10 @@ export interface BI extends _func, _i18n, _base, _inject, _var, _web, _utils {
AdaptiveLayout: typeof AdaptiveLayout;
HexColorChooserPopup: typeof HexColorChooserPopup;
BlankIconTextItem: typeof BlankIconTextItem;
TimeInterval: typeof TimeInterval;
DynamicDateTimePane: typeof TimeInterval;
SingleSelectInsertList: typeof TimeInterval;
MultiSelectTree: typeof TimeInterval;
}
export default {
@ -506,4 +514,8 @@ export {
AdaptiveLayout,
HexColorChooserPopup,
BlankIconTextItem,
TimeInterval,
DynamicDateTimePane,
SingleSelectInsertList,
MultiSelectTree,
};

Loading…
Cancel
Save