Browse Source

KERNEL-7828 补充声明

es6
Kobi 3 years ago
parent
commit
a8cd5318f7
  1. 27
      typescript/base/combination/combo.ts
  2. 6
      typescript/index.ts
  3. 32
      typescript/widget/multilayerdownlist/multilayerdownlist.combo.ts
  4. 20
      typescript/widget/multilayerdownlist/multilayerdownlist.popup.ts

27
typescript/base/combination/combo.ts

@ -12,6 +12,33 @@ export declare class Combo extends Widget {
static EVENT_BEFORE_HIDEVIEW: string;
static EVENT_AFTER_HIDEVIEW: string;
props: {
trigger: 'click' | 'hover' | 'click-hover' | '';
toggle: boolean;
direction: 'top' | 'bottom' | 'left' | 'right' | 'top,left' | 'top,right' | 'bottom,left' | 'bottom,right' | 'right,innerRight' | 'right,innerLeft' | 'innerRight' | 'innerLeft';
logic: {
dynamic: boolean;
},
container: any; // popupview放置的容器,默认为this.element
isDefaultInit: boolean;
destroyWhenHide: boolean;
hideWhenAnotherComboOpen: boolean;
isNeedAdjustHeight: boolean; // 是否需要高度调整
isNeedAdjustWidth: boolean;
stopEvent: boolean;
stopPropagation: boolean;
adjustLength: number; // 调整的距离
adjustXOffset: number;
adjustYOffset: number;
hideChecker: Function;
offsetStyle: 'left' | 'right' | 'center';
el: any;
popup: any;
comboClass: string;
hoverClass: string;
belowMouse: boolean;
}
populate(...args: any[]): void;
_setEnable(v: boolean): void;

6
typescript/index.ts

@ -104,6 +104,7 @@ import { TreeValueChooserInsertCombo } from "./component/treevaluechooser/combo.
import { Radio } from "./base/single/input/radio/radio";
import { MultiLayerSelectTreePopup } from "./widget/multilayerselecttree/multilayerselecttree.popup";
import { MultiLayerSingleTreePopup } from "./widget/multilayersingletree/multilayersingletree.popup";
import { MultiLayerDownListPopup } from "./widget/multilayerdownlist/multilayerdownlist.popup";
import { TreeView } from "./base/tree/ztree/treeview";
import { MultiTreePopup } from "./widget/multitree/multi.tree.popup";
import { SingleSelectRadioItem } from "./case/button/item.singleselect.radio";
@ -117,6 +118,7 @@ import { ListAsyncTree } from "./base/tree/ztree/list/listasynctree";
import { AsyncTree } from "./base/tree/ztree/asynctree";
import { MultiLayerSingleTreeCombo } from "./widget/multilayersingletree/multilayersingletree.combo";
import { MultiLayerSelectTreeCombo } from "./widget/multilayerselecttree/multilayerselecttree.combo";
import { MultiLayerDownListCombo } from "./widget/multilayerdownlist/multilayerdownlist.combo";
import { MultiTreeListCombo } from "./widget/multitree/multi.tree.list.combo";
import { MultiTreeInsertCombo } from "./widget/multitree/multi.tree.insert.combo";
import { TextValueDownListCombo } from "./widget/textvaluedownlistcombo/combo.textvaluedownlist";
@ -224,12 +226,14 @@ export interface BI extends _func, _i18n, _base, _inject, _var, _web, _utils {
TreeValueChooserInsertCombo: typeof TreeValueChooserInsertCombo;
MultiLayerSelectTreePopup: typeof MultiLayerSelectTreePopup;
MultiLayerSingleTreePopup: typeof MultiLayerSingleTreePopup;
MultiLayerDownListPopup: typeof MultiLayerDownListPopup;
TreeView: typeof TreeView;
ListTreeView: typeof ListTreeView;
ListAsyncTree: typeof ListAsyncTree;
AsyncTree: typeof AsyncTree;
MultiLayerSingleTreeCombo: typeof MultiLayerSingleTreeCombo;
MultiLayerSelectTreeCombo: typeof MultiLayerSelectTreeCombo;
MultiLayerDownListCombo: typeof MultiLayerDownListCombo;
MultiTreeListCombo: typeof MultiTreeListCombo;
MultiTreeInsertCombo: typeof MultiTreeInsertCombo;
Decorators: typeof decorator;
@ -429,12 +433,14 @@ export {
TreeValueChooserInsertCombo,
MultiLayerSelectTreePopup,
MultiLayerSingleTreePopup,
MultiLayerDownListPopup,
TreeView,
ListTreeView,
ListAsyncTree,
AsyncTree,
MultiLayerSingleTreeCombo,
MultiLayerSelectTreeCombo,
MultiLayerDownListCombo,
MultiTreeListCombo,
MultiTreeInsertCombo,
Combo,

32
typescript/widget/multilayerdownlist/multilayerdownlist.combo.ts

@ -0,0 +1,32 @@
import { Widget } from "../../core/widget";
import { Combo } from "../../base/combination/combo";
export declare class MultiLayerDownListCombo extends Widget {
static xtype: string;
static EVENT_CHANGE: string;
static EVENT_SON_VALUE_CHANGE: string;
static EVENT_BEFORE_POPUPVIEW: string;
props: {
adjustLength: Combo['props']['adjustLength'];
direction: Combo['props']['direction'];
trigger: Combo['props']['trigger'];
container: Combo['props']['container'];
stopPropagation: Combo['props']['stopPropagation'];
el: Combo['props']['el'];
chooseType: number;
value: any;
iconCls: string;
}
hideView(): void;
showView(e?: Event): void;
setValue(v: any): void;
getValue<T>(): T;
populate<T>(items: T[]): void;
}

20
typescript/widget/multilayerdownlist/multilayerdownlist.popup.ts

@ -0,0 +1,20 @@
import { Widget } from "../../core/widget";
export declare class MultiLayerDownListPopup extends Widget {
static xtype: string;
static EVENT_CHANGE: string;
static EVENT_SON_VALUE_CHANGE: string;
props: {
items: any[];
chooseType: number;
value: any;
}
getValue<T>(): T;
setValue(v: any): void;
populate<T>(items: T[]): void;
}
Loading…
Cancel
Save