Browse Source

Pull request #1923: KERNEL-7828 补充一下类型定义

Merge in VISUAL/fineui from ~KOBI/fineui:master to master

* commit 'ca851d37e5994d3245e266aea4c925a8a1a378f2':
  KERNEL-7828 补充一下类型定义
  KERNEL-7828 补充一下类型定义
  KERNEL-7828 补充一下类型定义
es6
Kobi 4 years ago
parent
commit
df2760144d
  1. 11
      typescript/base/combination/tab.ts
  2. 2
      typescript/component/allvaluechooser/combo.allvaluechooser.ts
  3. 12
      typescript/index.ts

11
typescript/base/combination/tab.ts

@ -6,6 +6,17 @@ export declare class Tab extends Widget {
static EVENT_CHANGE: string; static EVENT_CHANGE: string;
props: {
showIndex: any;
cardCreator: (v: any) => Obj;
direction?: 'top' | 'bottom' | 'left' | 'right' | 'custom'; // top, bottom, left, right, custom
single?: boolean; // 是不是单页面
logic?: {
dynamic: boolean;
};
tab?: any[];
}
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 DynamicDateTimePane;
SingleSelectInsertList: typeof SingleSelectInsertList;
MultiSelectTree: typeof MultiSelectTree;
} }
export default { export default {
@ -506,4 +514,8 @@ export {
AdaptiveLayout, AdaptiveLayout,
HexColorChooserPopup, HexColorChooserPopup,
BlankIconTextItem, BlankIconTextItem,
TimeInterval,
DynamicDateTimePane,
SingleSelectInsertList,
MultiSelectTree,
}; };

Loading…
Cancel
Save