Browse Source

KERNEL-7828 补充一下类型定义

es6
Kobi 4 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; 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; setSelect(v: string | number, action?: Action, callback?: Function): void;
removeTab(v: string | number): 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 { export declare class AllValueChooserCombo extends AbstractAllValueChooser {
static xtype: string; static xtype: string;
static EVENT_CONFIRM: string;
getAllValue(): any; getAllValue(): any;
populate(...args: any[]): void; 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 { Broadcasts, Layers } from "./base/base";
import { BroadcastController } from "./core/controller/controller.broadcast"; import { BroadcastController } from "./core/controller/controller.broadcast";
import { Pager } from "./base/pager/pager"; 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 { 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; AdaptiveLayout: typeof AdaptiveLayout;
HexColorChooserPopup: typeof HexColorChooserPopup; HexColorChooserPopup: typeof HexColorChooserPopup;
BlankIconTextItem: typeof BlankIconTextItem; BlankIconTextItem: typeof BlankIconTextItem;
TimeInterval: typeof TimeInterval;
DynamicDateTimePane: typeof TimeInterval;
SingleSelectInsertList: typeof TimeInterval;
MultiSelectTree: typeof TimeInterval;
} }
export default { export default {
@ -506,4 +514,8 @@ export {
AdaptiveLayout, AdaptiveLayout,
HexColorChooserPopup, HexColorChooserPopup,
BlankIconTextItem, BlankIconTextItem,
TimeInterval,
DynamicDateTimePane,
SingleSelectInsertList,
MultiSelectTree,
}; };

Loading…
Cancel
Save