Browse Source

KERNEL-7828 补充声明

master
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_BEFORE_HIDEVIEW: string;
static EVENT_AFTER_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; populate(...args: any[]): void;
_setEnable(v: boolean): 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 { Radio } from "./base/single/input/radio/radio";
import { MultiLayerSelectTreePopup } from "./widget/multilayerselecttree/multilayerselecttree.popup"; import { MultiLayerSelectTreePopup } from "./widget/multilayerselecttree/multilayerselecttree.popup";
import { MultiLayerSingleTreePopup } from "./widget/multilayersingletree/multilayersingletree.popup"; import { MultiLayerSingleTreePopup } from "./widget/multilayersingletree/multilayersingletree.popup";
import { MultiLayerDownListPopup } from "./widget/multilayerdownlist/multilayerdownlist.popup";
import { TreeView } from "./base/tree/ztree/treeview"; import { TreeView } from "./base/tree/ztree/treeview";
import { MultiTreePopup } from "./widget/multitree/multi.tree.popup"; import { MultiTreePopup } from "./widget/multitree/multi.tree.popup";
import { SingleSelectRadioItem } from "./case/button/item.singleselect.radio"; 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 { AsyncTree } from "./base/tree/ztree/asynctree";
import { MultiLayerSingleTreeCombo } from "./widget/multilayersingletree/multilayersingletree.combo"; import { MultiLayerSingleTreeCombo } from "./widget/multilayersingletree/multilayersingletree.combo";
import { MultiLayerSelectTreeCombo } from "./widget/multilayerselecttree/multilayerselecttree.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 { MultiTreeListCombo } from "./widget/multitree/multi.tree.list.combo";
import { MultiTreeInsertCombo } from "./widget/multitree/multi.tree.insert.combo"; import { MultiTreeInsertCombo } from "./widget/multitree/multi.tree.insert.combo";
import { TextValueDownListCombo } from "./widget/textvaluedownlistcombo/combo.textvaluedownlist"; 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; TreeValueChooserInsertCombo: typeof TreeValueChooserInsertCombo;
MultiLayerSelectTreePopup: typeof MultiLayerSelectTreePopup; MultiLayerSelectTreePopup: typeof MultiLayerSelectTreePopup;
MultiLayerSingleTreePopup: typeof MultiLayerSingleTreePopup; MultiLayerSingleTreePopup: typeof MultiLayerSingleTreePopup;
MultiLayerDownListPopup: typeof MultiLayerDownListPopup;
TreeView: typeof TreeView; TreeView: typeof TreeView;
ListTreeView: typeof ListTreeView; ListTreeView: typeof ListTreeView;
ListAsyncTree: typeof ListAsyncTree; ListAsyncTree: typeof ListAsyncTree;
AsyncTree: typeof AsyncTree; AsyncTree: typeof AsyncTree;
MultiLayerSingleTreeCombo: typeof MultiLayerSingleTreeCombo; MultiLayerSingleTreeCombo: typeof MultiLayerSingleTreeCombo;
MultiLayerSelectTreeCombo: typeof MultiLayerSelectTreeCombo; MultiLayerSelectTreeCombo: typeof MultiLayerSelectTreeCombo;
MultiLayerDownListCombo: typeof MultiLayerDownListCombo;
MultiTreeListCombo: typeof MultiTreeListCombo; MultiTreeListCombo: typeof MultiTreeListCombo;
MultiTreeInsertCombo: typeof MultiTreeInsertCombo; MultiTreeInsertCombo: typeof MultiTreeInsertCombo;
Decorators: typeof decorator; Decorators: typeof decorator;
@ -429,12 +433,14 @@ export {
TreeValueChooserInsertCombo, TreeValueChooserInsertCombo,
MultiLayerSelectTreePopup, MultiLayerSelectTreePopup,
MultiLayerSingleTreePopup, MultiLayerSingleTreePopup,
MultiLayerDownListPopup,
TreeView, TreeView,
ListTreeView, ListTreeView,
ListAsyncTree, ListAsyncTree,
AsyncTree, AsyncTree,
MultiLayerSingleTreeCombo, MultiLayerSingleTreeCombo,
MultiLayerSelectTreeCombo, MultiLayerSelectTreeCombo,
MultiLayerDownListCombo,
MultiTreeListCombo, MultiTreeListCombo,
MultiTreeInsertCombo, MultiTreeInsertCombo,
Combo, 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