cnhis-design-vue 3.1.31-beta.3 → 3.1.31-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +123 -123
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +1 -0
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +1 -0
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +1 -0
- package/es/components/button-print/index.d.ts +7 -5
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +7 -5
- package/es/components/button-print/src/components/{edit.js → EditFormat.js} +3 -3
- package/es/components/button-print/src/components/{edit.vue.d.ts → EditFormat.vue.d.ts} +3 -2
- package/es/components/button-print/src/components/IdentityVerification.js +2 -2
- package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +7 -5
- package/es/components/button-print/src/components/Preview.js +6 -0
- package/es/components/button-print/src/components/Preview.vue.d.ts +41 -0
- package/es/components/button-print/src/components/Preview.vue_vue_type_script_setup_true_lang.js +67 -0
- package/es/components/button-print/src/utils/browserPrint.d.ts +1 -1
- package/es/components/button-print/src/utils/browserPrint.js +1 -2
- package/es/components/button-print/src/utils/dialog.d.ts +5 -1
- package/es/components/button-print/src/utils/dialog.js +64 -22
- package/es/components/button-print/src/utils/print.d.ts +4 -1
- package/es/components/button-print/src/utils/print.js +11 -2
- package/es/components/button-print/style/index.css +1 -1
- package/es/components/fabric-chart/src/utils/index.d.ts +6823 -0
- package/es/components/iho-table/index.d.ts +124 -66
- package/es/components/iho-table/src/IhoTable.js +2 -1
- package/es/components/iho-table/src/IhoTable.vue.d.ts +124 -66
- package/es/components/iho-table/src/components/IhoTableColumn.js +14 -11
- package/es/components/iho-table/src/constants/index.d.ts +5 -3
- package/es/components/iho-table/src/constants/index.js +5 -3
- package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +64 -5
- package/es/components/iho-table/src/hooks/tapHooks/index.js +17 -9
- package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.d.ts +60 -1
- package/es/components/iho-table/src/hooks/useColumnConfigAdaptor.js +2 -2
- package/es/components/iho-table/src/hooks/useTableContext.d.ts +1 -1
- package/es/components/iho-table/src/plugins/anchorPlugin/useAnchor.js +3 -2
- package/es/components/iho-table/src/plugins/filterPlugin/filter.js +1 -0
- package/es/components/iho-table/src/plugins/filterPlugin/filter.vue.d.ts +1 -1
- package/es/components/iho-table/src/plugins/index.js +14 -12
- package/es/components/iho-table/src/plugins/keyboardEventPlugin/index.d.ts +1 -0
- package/es/components/iho-table/src/plugins/keyboardEventPlugin/index.js +32 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.js +9 -11
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/inputRendererPlugin.js +11 -15
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +17 -24
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +11 -13
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.js +2 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue.d.ts +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +8 -11
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin.js +13 -17
- package/es/components/iho-table/src/types/index.d.ts +6 -6
- package/es/components/iho-table/src/types/pluginType.d.ts +2 -1
- package/es/components/iho-table/src/utils/index.d.ts +12 -2
- package/es/components/iho-table/src/utils/index.js +33 -2
- package/es/components/iho-table/style/index.css +1 -1
- package/es/components/index.css +1 -1
- package/es/components/keyboard/index.d.ts +113 -63
- package/es/components/keyboard/src/Keyboard.js +108 -252
- package/es/components/keyboard/src/Keyboard.vue.d.ts +115 -65
- package/es/components/keyboard/src/components/InputNumber.vue.d.ts +6 -4
- package/es/components/keyboard/src/components/NumberPanel.js +206 -0
- package/es/components/keyboard/src/components/NumberPanel.vue.d.ts +118 -0
- package/es/components/scale-view/index.d.ts +3 -2
- package/es/components/scale-view/src/ScaleView.vue.d.ts +3 -2
- package/es/components/search-cascader/src/components/SearchMenu.js +5 -5
- package/es/shared/assets/img/failure.js +1 -1
- package/es/shared/assets/img/icon-asc.js +1 -1
- package/es/shared/assets/img/icon-desc.js +1 -1
- package/es/shared/assets/img/no-permission.js +1 -1
- package/es/shared/assets/img/nodata.js +1 -1
- package/es/shared/assets/img/notfound.js +1 -1
- package/es/shared/assets/img/qr.js +1 -1
- package/es/shared/assets/img/success.js +1 -1
- package/es/shared/assets/img/video.js +1 -1
- package/es/shared/assets/img/video_default_cover.js +1 -1
- package/es/shared/assets/img/video_hover.js +1 -1
- package/es/shared/assets/img/video_play_hover.js +1 -1
- package/es/shared/assets/img/xb_big.js +1 -1
- package/es/shared/assets/img/xb_small.js +1 -1
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +86 -0
- package/es/shared/utils/index.d.ts +1 -1
- package/es/shared/utils/index.js +3 -3
- package/es/shared/utils/tapable/index.d.ts +139 -0
- package/package.json +2 -2
|
@@ -2,7 +2,7 @@ import { UndefinedAble, UnionToTuple } from '../../../../../es/shared/types';
|
|
|
2
2
|
import { InjectionKey, Ref } from 'vue';
|
|
3
3
|
import { VxeTableInstance } from 'vxe-table';
|
|
4
4
|
import { VxeTableEventProps } from 'vxe-table/types/table';
|
|
5
|
-
import { IhoTableConfig,
|
|
5
|
+
import { IhoTableConfig, IhoTableEmits, IhoTableFieldItem, IhoTableHandler } from '../../../../../es/components/iho-table';
|
|
6
6
|
import { IhoTableEventListener } from '../../../../../es/components/iho-table/src/hooks/tapHooks/useEventHooks';
|
|
7
7
|
export declare enum WIDGET_TYPE {
|
|
8
8
|
DEFAULT = "DEFAULT",
|
|
@@ -38,6 +38,7 @@ export declare enum WIDGET_TYPE {
|
|
|
38
38
|
SEQUENCE = "SEQUENCE"
|
|
39
39
|
}
|
|
40
40
|
export declare const VxeEventListenerNameList: Readonly<UnionToTuple<keyof VxeTableEventProps>>;
|
|
41
|
+
export declare const VxeTableEventNameList: ("toggleRowExpand" | "toggleTreeExpand" | "copy" | "scroll" | "sortChange" | "cut" | "paste" | "keydown" | "keydownStart" | "keydownEnd" | "currentChange" | "radioChange" | "checkboxChange" | "checkboxAll" | "checkboxRangeStart" | "checkboxRangeChange" | "checkboxRangeEnd" | "cellClick" | "cellDblclick" | "cellMenu" | "cellMouseenter" | "cellMouseleave" | "headerCellClick" | "headerCellDblclick" | "headerCellMenu" | "footerCellClick" | "footerCellDblclick" | "footerCellMenu" | "filterChange" | "filterVisible" | "resizableChange" | "menuClick" | "editClosed" | "editActived" | "editDisabled" | "validError" | "custom" | "openFnr" | "fnrChange" | "fnrFind" | "fnrFindAll" | "fnrReplace" | "fnrReplaceAll" | "cellAreaCopy" | "cellAreaCut" | "cellAreaPaste" | "cellAreaMerge" | "clearCellAreaMerge" | "headerCellAreaSelection" | "cellAreaSelectionStart" | "cellAreaSelectionDrag" | "cellAreaSelectionEnd" | "cellAreaExtensionStart" | "cellAreaExtensionDrag" | "cellAreaExtensionEnd" | "cellAreaArrowsStart" | "cellAreaArrowsEnd" | "activeCellChangeStart" | "activeCellChangeEnd")[];
|
|
41
42
|
export declare const IhoTableRowGroupSequence: readonly ["firstRowGroup", "secondRowGroup", "thirdRowGroup", "fourthRowGroup", "fifthRowGroup", "sixthRowGroup", "seventhRowGroup", "eighthRowGroup", "ninthRowGroup", "tenthRowGroup"];
|
|
42
43
|
export declare const HIGHEST_PRIORITY: number;
|
|
43
44
|
export declare enum EDITABLE_WIDGET_TYPE {
|
|
@@ -56,10 +57,11 @@ export declare enum IHO_TABLE_STRING_STATUS {
|
|
|
56
57
|
NEGATIVE = "0",
|
|
57
58
|
POSITIVE = "1"
|
|
58
59
|
}
|
|
59
|
-
export declare const
|
|
60
|
+
export declare const IhoTableCustomEventNameTuple: readonly ["formChange", "settingClick", "formClick", "sortChange", "keyboard"];
|
|
61
|
+
export declare const IhoTableEventNameTuple: readonly ["formChange", "settingClick", "formClick", "sortChange", "keyboard", ...("toggleRowExpand" | "toggleTreeExpand" | "copy" | "scroll" | "sortChange" | "cut" | "paste" | "keydown" | "keydownStart" | "keydownEnd" | "currentChange" | "radioChange" | "checkboxChange" | "checkboxAll" | "checkboxRangeStart" | "checkboxRangeChange" | "checkboxRangeEnd" | "cellClick" | "cellDblclick" | "cellMenu" | "cellMouseenter" | "cellMouseleave" | "headerCellClick" | "headerCellDblclick" | "headerCellMenu" | "footerCellClick" | "footerCellDblclick" | "footerCellMenu" | "filterChange" | "filterVisible" | "resizableChange" | "menuClick" | "editClosed" | "editActived" | "editDisabled" | "validError" | "custom" | "openFnr" | "fnrChange" | "fnrFind" | "fnrFindAll" | "fnrReplace" | "fnrReplaceAll" | "cellAreaCopy" | "cellAreaCut" | "cellAreaPaste" | "cellAreaMerge" | "clearCellAreaMerge" | "headerCellAreaSelection" | "cellAreaSelectionStart" | "cellAreaSelectionDrag" | "cellAreaSelectionEnd" | "cellAreaExtensionStart" | "cellAreaExtensionDrag" | "cellAreaExtensionEnd" | "cellAreaArrowsStart" | "cellAreaArrowsEnd" | "activeCellChangeStart" | "activeCellChangeEnd")[]];
|
|
60
62
|
export declare const InjectionIhoTableConfig: InjectionKey<Ref<IhoTableConfig>>;
|
|
61
63
|
export declare const InjectionIhoTableFieldList: InjectionKey<Ref<IhoTableFieldItem[]>>;
|
|
62
|
-
export declare const InjectionIhoTableEmits: InjectionKey<
|
|
64
|
+
export declare const InjectionIhoTableEmits: InjectionKey<IhoTableEmits>;
|
|
63
65
|
export declare const InjectionIhoTableUUID: InjectionKey<string>;
|
|
64
66
|
export declare const InjectionIhoTableInstance: InjectionKey<Ref<UndefinedAble<VxeTableInstance>>>;
|
|
65
67
|
export declare const InjectionIhoTableHandler: InjectionKey<IhoTableHandler>;
|
|
@@ -95,6 +95,7 @@ const VxeEventListenerNameList = Object.freeze([
|
|
|
95
95
|
"onActiveCellChangeStart",
|
|
96
96
|
"onActiveCellChangeEnd"
|
|
97
97
|
]);
|
|
98
|
+
const VxeTableEventNameList = VxeEventListenerNameList.map(getEventName);
|
|
98
99
|
const IhoTableRowGroupSequence = Object.freeze([
|
|
99
100
|
"firstRowGroup",
|
|
100
101
|
"secondRowGroup",
|
|
@@ -127,13 +128,14 @@ var IHO_TABLE_STRING_STATUS = /* @__PURE__ */ ((IHO_TABLE_STRING_STATUS2) => {
|
|
|
127
128
|
IHO_TABLE_STRING_STATUS2["POSITIVE"] = "1";
|
|
128
129
|
return IHO_TABLE_STRING_STATUS2;
|
|
129
130
|
})(IHO_TABLE_STRING_STATUS || {});
|
|
130
|
-
const
|
|
131
|
+
const IhoTableCustomEventNameTuple = [
|
|
131
132
|
"formChange",
|
|
132
133
|
"settingClick",
|
|
133
134
|
"formClick",
|
|
134
135
|
"sortChange",
|
|
135
|
-
|
|
136
|
+
"keyboard"
|
|
136
137
|
];
|
|
138
|
+
const IhoTableEventNameTuple = [...IhoTableCustomEventNameTuple, ...VxeTableEventNameList];
|
|
137
139
|
const InjectionIhoTableConfig = Symbol("injectionIhoTableConfig");
|
|
138
140
|
const InjectionIhoTableFieldList = Symbol("injectionIhoTableFieldList");
|
|
139
141
|
const InjectionIhoTableEmits = Symbol("InjectionIhoTableEmits");
|
|
@@ -144,4 +146,4 @@ const InjectionIhoTableEventListener = Symbol(
|
|
|
144
146
|
"InjectionIhoTableEventListener"
|
|
145
147
|
);
|
|
146
148
|
|
|
147
|
-
export { EDITABLE_WIDGET_TYPE, HIGHEST_PRIORITY, IHO_TABLE_NUMBER_STATUS, IHO_TABLE_STRING_STATUS, IhoTableEventNameTuple, IhoTableRowGroupSequence, InjectionIhoTableConfig, InjectionIhoTableEmits, InjectionIhoTableEventListener, InjectionIhoTableFieldList, InjectionIhoTableHandler, InjectionIhoTableInstance, InjectionIhoTableUUID, VxeEventListenerNameList, WIDGET_TYPE };
|
|
149
|
+
export { EDITABLE_WIDGET_TYPE, HIGHEST_PRIORITY, IHO_TABLE_NUMBER_STATUS, IHO_TABLE_STRING_STATUS, IhoTableCustomEventNameTuple, IhoTableEventNameTuple, IhoTableRowGroupSequence, InjectionIhoTableConfig, InjectionIhoTableEmits, InjectionIhoTableEventListener, InjectionIhoTableFieldList, InjectionIhoTableHandler, InjectionIhoTableInstance, InjectionIhoTableUUID, VxeEventListenerNameList, VxeTableEventNameList, WIDGET_TYPE };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { AnyObject,
|
|
1
|
+
import { AnyObject, Nullable } from '../../../../../../es/shared/types';
|
|
2
2
|
import { MaybeRef } from '@vueuse/core';
|
|
3
3
|
import { VxeTableInstance } from 'vxe-table';
|
|
4
|
-
import { VxeTableEventProps } from 'vxe-table/types/table';
|
|
5
4
|
import { IhoTableEventListener } from '../../../../../../es/components/iho-table/src/hooks/tapHooks/useEventHooks';
|
|
6
|
-
import { IhoTableConfig, IhoTableFieldItem, IhoTableHandler, TableHooks } from '../../../../../../es/components/iho-table/src/types';
|
|
5
|
+
import { IhoTableConfig, IhoTableEmits, IhoTableFieldItem, IhoTableHandler, TableHooks } from '../../../../../../es/components/iho-table/src/types';
|
|
7
6
|
export declare const createTableHooks: () => Readonly<{
|
|
8
7
|
configHooks: import("../../../../../../es/components/iho-table/src/types").AbstractConfigHooks;
|
|
9
8
|
fieldHooks: import("../../../../../../es/components/iho-table/src/types").AbstractFieldHooks;
|
|
@@ -18,10 +17,70 @@ export declare function createTableEventHandlers({ hooks, config, $table, emits,
|
|
|
18
17
|
hooks: TableHooks;
|
|
19
18
|
config: MaybeRef<IhoTableConfig>;
|
|
20
19
|
$table: MaybeRef<Nullable<VxeTableInstance>>;
|
|
21
|
-
emits:
|
|
20
|
+
emits: IhoTableEmits;
|
|
22
21
|
context: IhoTableHandler;
|
|
23
22
|
eventListener: IhoTableEventListener;
|
|
24
|
-
}):
|
|
23
|
+
}): {
|
|
24
|
+
onCopy: (payload: IhoTableEmitPayload<EventListenerToEventName<K>>) => void;
|
|
25
|
+
onCut: (payload: IhoTableEmitPayload<EventListenerToEventName<K>>) => void;
|
|
26
|
+
onPaste: (payload: IhoTableEmitPayload<EventListenerToEventName<K>>) => void;
|
|
27
|
+
onKeydown: (payload: IhoTableEmitPayload<EventListenerToEventName<K>>) => void;
|
|
28
|
+
onScroll: (payload: IhoTableEmitPayload<EventListenerToEventName<K>>) => void;
|
|
29
|
+
onKeydownStart: (payload: IhoTableEmitPayload<EventListenerToEventName<K>>) => void;
|
|
30
|
+
onKeydownEnd: (payload: IhoTableEmitPayload<EventListenerToEventName<K>>) => void;
|
|
31
|
+
onCurrentChange: (payload: IhoTableEmitPayload<EventListenerToEventName<K>>) => void;
|
|
32
|
+
onRadioChange: (payload: IhoTableEmitPayload<EventListenerToEventName<K>>) => void;
|
|
33
|
+
onCheckboxChange: (payload: IhoTableEmitPayload<EventListenerToEventName<K>>) => void;
|
|
34
|
+
onCheckboxAll: (payload: IhoTableEmitPayload<EventListenerToEventName<K>>) => void;
|
|
35
|
+
onCheckboxRangeStart: (payload: IhoTableEmitPayload<EventListenerToEventName<K>>) => void;
|
|
36
|
+
onCheckboxRangeChange: (payload: IhoTableEmitPayload<EventListenerToEventName<K>>) => void;
|
|
37
|
+
onCheckboxRangeEnd: (payload: IhoTableEmitPayload<EventListenerToEventName<K>>) => void;
|
|
38
|
+
onCellClick: (payload: IhoTableEmitPayload<EventListenerToEventName<K>>) => void;
|
|
39
|
+
onCellDblclick: (payload: IhoTableEmitPayload<EventListenerToEventName<K>>) => void;
|
|
40
|
+
onCellMenu: (payload: IhoTableEmitPayload<EventListenerToEventName<K>>) => void;
|
|
41
|
+
onCellMouseenter: (payload: IhoTableEmitPayload<EventListenerToEventName<K>>) => void;
|
|
42
|
+
onCellMouseleave: (payload: IhoTableEmitPayload<EventListenerToEventName<K>>) => void;
|
|
43
|
+
onHeaderCellClick: (payload: IhoTableEmitPayload<EventListenerToEventName<K>>) => void;
|
|
44
|
+
onHeaderCellDblclick: (payload: IhoTableEmitPayload<EventListenerToEventName<K>>) => void;
|
|
45
|
+
onHeaderCellMenu: (payload: IhoTableEmitPayload<EventListenerToEventName<K>>) => void;
|
|
46
|
+
onFooterCellClick: (payload: IhoTableEmitPayload<EventListenerToEventName<K>>) => void;
|
|
47
|
+
onFooterCellDblclick: (payload: IhoTableEmitPayload<EventListenerToEventName<K>>) => void;
|
|
48
|
+
onFooterCellMenu: (payload: IhoTableEmitPayload<EventListenerToEventName<K>>) => void;
|
|
49
|
+
onSortChange: (payload: IhoTableEmitPayload<EventListenerToEventName<K>>) => void;
|
|
50
|
+
onFilterChange: (payload: IhoTableEmitPayload<EventListenerToEventName<K>>) => void;
|
|
51
|
+
onFilterVisible: (payload: IhoTableEmitPayload<EventListenerToEventName<K>>) => void;
|
|
52
|
+
onResizableChange: (payload: IhoTableEmitPayload<EventListenerToEventName<K>>) => void;
|
|
53
|
+
onToggleRowExpand: (payload: IhoTableEmitPayload<EventListenerToEventName<K>>) => void;
|
|
54
|
+
onToggleTreeExpand: (payload: IhoTableEmitPayload<EventListenerToEventName<K>>) => void;
|
|
55
|
+
onMenuClick: (payload: IhoTableEmitPayload<EventListenerToEventName<K>>) => void;
|
|
56
|
+
onEditClosed: (payload: IhoTableEmitPayload<EventListenerToEventName<K>>) => void;
|
|
57
|
+
onEditActived: (payload: IhoTableEmitPayload<EventListenerToEventName<K>>) => void;
|
|
58
|
+
onEditDisabled: (payload: IhoTableEmitPayload<EventListenerToEventName<K>>) => void;
|
|
59
|
+
onValidError: (payload: IhoTableEmitPayload<EventListenerToEventName<K>>) => void;
|
|
60
|
+
onCustom: (payload: IhoTableEmitPayload<EventListenerToEventName<K>>) => void;
|
|
61
|
+
onOpenFnr: (payload: IhoTableEmitPayload<EventListenerToEventName<K>>) => void;
|
|
62
|
+
onFnrChange: (payload: IhoTableEmitPayload<EventListenerToEventName<K>>) => void;
|
|
63
|
+
onFnrFind: (payload: IhoTableEmitPayload<EventListenerToEventName<K>>) => void;
|
|
64
|
+
onFnrFindAll: (payload: IhoTableEmitPayload<EventListenerToEventName<K>>) => void;
|
|
65
|
+
onFnrReplace: (payload: IhoTableEmitPayload<EventListenerToEventName<K>>) => void;
|
|
66
|
+
onFnrReplaceAll: (payload: IhoTableEmitPayload<EventListenerToEventName<K>>) => void;
|
|
67
|
+
onCellAreaCopy: (payload: IhoTableEmitPayload<EventListenerToEventName<K>>) => void;
|
|
68
|
+
onCellAreaCut: (payload: IhoTableEmitPayload<EventListenerToEventName<K>>) => void;
|
|
69
|
+
onCellAreaPaste: (payload: IhoTableEmitPayload<EventListenerToEventName<K>>) => void;
|
|
70
|
+
onCellAreaMerge: (payload: IhoTableEmitPayload<EventListenerToEventName<K>>) => void;
|
|
71
|
+
onClearCellAreaMerge: (payload: IhoTableEmitPayload<EventListenerToEventName<K>>) => void;
|
|
72
|
+
onHeaderCellAreaSelection: (payload: IhoTableEmitPayload<EventListenerToEventName<K>>) => void;
|
|
73
|
+
onCellAreaSelectionStart: (payload: IhoTableEmitPayload<EventListenerToEventName<K>>) => void;
|
|
74
|
+
onCellAreaSelectionDrag: (payload: IhoTableEmitPayload<EventListenerToEventName<K>>) => void;
|
|
75
|
+
onCellAreaSelectionEnd: (payload: IhoTableEmitPayload<EventListenerToEventName<K>>) => void;
|
|
76
|
+
onCellAreaExtensionStart: (payload: IhoTableEmitPayload<EventListenerToEventName<K>>) => void;
|
|
77
|
+
onCellAreaExtensionDrag: (payload: IhoTableEmitPayload<EventListenerToEventName<K>>) => void;
|
|
78
|
+
onCellAreaExtensionEnd: (payload: IhoTableEmitPayload<EventListenerToEventName<K>>) => void;
|
|
79
|
+
onCellAreaArrowsStart: (payload: IhoTableEmitPayload<EventListenerToEventName<K>>) => void;
|
|
80
|
+
onCellAreaArrowsEnd: (payload: IhoTableEmitPayload<EventListenerToEventName<K>>) => void;
|
|
81
|
+
onActiveCellChangeStart: (payload: IhoTableEmitPayload<EventListenerToEventName<K>>) => void;
|
|
82
|
+
onActiveCellChangeEnd: (payload: IhoTableEmitPayload<EventListenerToEventName<K>>) => void;
|
|
83
|
+
};
|
|
25
84
|
export declare function createDataTransfer(hooks: TableHooks, config: MaybeRef<IhoTableConfig>, $table: MaybeRef<Nullable<VxeTableInstance>>): (data: AnyObject[]) => Promise<AnyObject[]>;
|
|
26
85
|
export declare function createDomInsertComponent(hooks: TableHooks): {
|
|
27
86
|
header: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
@@ -99,20 +99,28 @@ function createTableEventHandlers({
|
|
|
99
99
|
context,
|
|
100
100
|
eventListener
|
|
101
101
|
}) {
|
|
102
|
-
|
|
102
|
+
return VxeEventListenerNameList.reduce(
|
|
103
|
+
(result, eventName) => {
|
|
104
|
+
result[eventName] = (payload) => handler(eventName, payload);
|
|
105
|
+
return result;
|
|
106
|
+
},
|
|
107
|
+
{}
|
|
108
|
+
);
|
|
109
|
+
function handler(eventListenerName, payload) {
|
|
103
110
|
var _a;
|
|
111
|
+
const eventName = getEventName(eventListenerName);
|
|
104
112
|
if (VxeEventListenerNameList.includes(eventListenerName)) {
|
|
105
|
-
emits(
|
|
106
|
-
eventListener.trigger(
|
|
113
|
+
emits(eventName, payload);
|
|
114
|
+
eventListener.trigger(eventName, payload);
|
|
107
115
|
}
|
|
108
116
|
const configEvent = unref(config)[eventListenerName];
|
|
109
117
|
isFunction(configEvent) && configEvent(payload);
|
|
110
|
-
(_a = hooks.eventHooks[eventListenerName]) == null ? void 0 : _a.promise(
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
}
|
|
118
|
+
(_a = hooks.eventHooks[eventListenerName]) == null ? void 0 : _a.promise(
|
|
119
|
+
payload,
|
|
120
|
+
{ $table: unref($table), emits, ...context },
|
|
121
|
+
unref(config)
|
|
122
|
+
);
|
|
123
|
+
}
|
|
116
124
|
}
|
|
117
125
|
function createDataTransfer(hooks, config, $table) {
|
|
118
126
|
return async (data) => await data.reduce(async (res, rowData, index) => {
|
|
@@ -4,187 +4,246 @@ import { AbstractEventHooks, IhoTableEmitPayload, IhoTableEventNameUnion } from
|
|
|
4
4
|
declare class EventHooks extends AbstractEventHooks {
|
|
5
5
|
readonly onKeydownStart: AsyncParallelHook<[import("vxe-table/types/table").VxeTableDefines.KeydownStartEventParams, import("../../../../../../es/components/iho-table/src/types").IhoTableHandler & {
|
|
6
6
|
$table: import("../../../../../../es/shared/types").Nullable<import("vxe-table/types/table").VxeTableInstance>;
|
|
7
|
+
emits: import("../../../../../../es/components/iho-table/src/types").IhoTableEmits;
|
|
7
8
|
}, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
8
9
|
readonly onKeydown: AsyncParallelHook<[import("vxe-table/types/table").VxeTableDefines.KeydownEventParams, import("../../../../../../es/components/iho-table/src/types").IhoTableHandler & {
|
|
9
10
|
$table: import("../../../../../../es/shared/types").Nullable<import("vxe-table/types/table").VxeTableInstance>;
|
|
11
|
+
emits: import("../../../../../../es/components/iho-table/src/types").IhoTableEmits;
|
|
10
12
|
}, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
11
13
|
readonly onKeydownEnd: AsyncParallelHook<[import("vxe-table/types/table").VxeTableDefines.KeydownEndEventParams, import("../../../../../../es/components/iho-table/src/types").IhoTableHandler & {
|
|
12
14
|
$table: import("../../../../../../es/shared/types").Nullable<import("vxe-table/types/table").VxeTableInstance>;
|
|
15
|
+
emits: import("../../../../../../es/components/iho-table/src/types").IhoTableEmits;
|
|
13
16
|
}, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
14
17
|
readonly onPaste: AsyncParallelHook<[import("vxe-table/types/table").VxeTableDefines.PasteEventParams, import("../../../../../../es/components/iho-table/src/types").IhoTableHandler & {
|
|
15
18
|
$table: import("../../../../../../es/shared/types").Nullable<import("vxe-table/types/table").VxeTableInstance>;
|
|
19
|
+
emits: import("../../../../../../es/components/iho-table/src/types").IhoTableEmits;
|
|
16
20
|
}, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
17
21
|
readonly onCopy: AsyncParallelHook<[import("vxe-table/types/table").VxeTableDefines.CopyEventParams, import("../../../../../../es/components/iho-table/src/types").IhoTableHandler & {
|
|
18
22
|
$table: import("../../../../../../es/shared/types").Nullable<import("vxe-table/types/table").VxeTableInstance>;
|
|
23
|
+
emits: import("../../../../../../es/components/iho-table/src/types").IhoTableEmits;
|
|
19
24
|
}, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
20
25
|
readonly onCut: AsyncParallelHook<[import("vxe-table/types/table").VxeTableDefines.CutEventParams, import("../../../../../../es/components/iho-table/src/types").IhoTableHandler & {
|
|
21
26
|
$table: import("../../../../../../es/shared/types").Nullable<import("vxe-table/types/table").VxeTableInstance>;
|
|
27
|
+
emits: import("../../../../../../es/components/iho-table/src/types").IhoTableEmits;
|
|
22
28
|
}, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
23
29
|
readonly onCurrentChange: AsyncParallelHook<[import("vxe-table/types/table").VxeTableDefines.CurrentChangeEventParams, import("../../../../../../es/components/iho-table/src/types").IhoTableHandler & {
|
|
24
30
|
$table: import("../../../../../../es/shared/types").Nullable<import("vxe-table/types/table").VxeTableInstance>;
|
|
31
|
+
emits: import("../../../../../../es/components/iho-table/src/types").IhoTableEmits;
|
|
25
32
|
}, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
26
33
|
readonly onRadioChange: AsyncParallelHook<[import("vxe-table/types/table").VxeTableDefines.RadioChangeEventParams, import("../../../../../../es/components/iho-table/src/types").IhoTableHandler & {
|
|
27
34
|
$table: import("../../../../../../es/shared/types").Nullable<import("vxe-table/types/table").VxeTableInstance>;
|
|
35
|
+
emits: import("../../../../../../es/components/iho-table/src/types").IhoTableEmits;
|
|
28
36
|
}, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
29
37
|
readonly onCheckboxChange: AsyncParallelHook<[import("vxe-table/types/table").VxeTableDefines.CheckboxChangeEventParams, import("../../../../../../es/components/iho-table/src/types").IhoTableHandler & {
|
|
30
38
|
$table: import("../../../../../../es/shared/types").Nullable<import("vxe-table/types/table").VxeTableInstance>;
|
|
39
|
+
emits: import("../../../../../../es/components/iho-table/src/types").IhoTableEmits;
|
|
31
40
|
}, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
32
41
|
readonly onCheckboxAll: AsyncParallelHook<[import("vxe-table/types/table").VxeTableDefines.CheckboxAllEventParams, import("../../../../../../es/components/iho-table/src/types").IhoTableHandler & {
|
|
33
42
|
$table: import("../../../../../../es/shared/types").Nullable<import("vxe-table/types/table").VxeTableInstance>;
|
|
43
|
+
emits: import("../../../../../../es/components/iho-table/src/types").IhoTableEmits;
|
|
34
44
|
}, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
35
45
|
readonly onCheckboxRangeStart: AsyncParallelHook<[import("vxe-table/types/table").VxeTableDefines.CheckboxRangeStartEventParams, import("../../../../../../es/components/iho-table/src/types").IhoTableHandler & {
|
|
36
46
|
$table: import("../../../../../../es/shared/types").Nullable<import("vxe-table/types/table").VxeTableInstance>;
|
|
47
|
+
emits: import("../../../../../../es/components/iho-table/src/types").IhoTableEmits;
|
|
37
48
|
}, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
38
49
|
readonly onCheckboxRangeChange: AsyncParallelHook<[import("vxe-table/types/table").VxeTableDefines.CheckboxRangeChangeEventParams, import("../../../../../../es/components/iho-table/src/types").IhoTableHandler & {
|
|
39
50
|
$table: import("../../../../../../es/shared/types").Nullable<import("vxe-table/types/table").VxeTableInstance>;
|
|
51
|
+
emits: import("../../../../../../es/components/iho-table/src/types").IhoTableEmits;
|
|
40
52
|
}, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
41
53
|
readonly onCheckboxRangeEnd: AsyncParallelHook<[import("vxe-table/types/table").VxeTableDefines.CheckboxRangeEndEventParams, import("../../../../../../es/components/iho-table/src/types").IhoTableHandler & {
|
|
42
54
|
$table: import("../../../../../../es/shared/types").Nullable<import("vxe-table/types/table").VxeTableInstance>;
|
|
55
|
+
emits: import("../../../../../../es/components/iho-table/src/types").IhoTableEmits;
|
|
43
56
|
}, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
44
57
|
readonly onCellClick: AsyncParallelHook<[import("vxe-table/types/table").VxeTableDefines.CellClickEventParams, import("../../../../../../es/components/iho-table/src/types").IhoTableHandler & {
|
|
45
58
|
$table: import("../../../../../../es/shared/types").Nullable<import("vxe-table/types/table").VxeTableInstance>;
|
|
59
|
+
emits: import("../../../../../../es/components/iho-table/src/types").IhoTableEmits;
|
|
46
60
|
}, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
47
61
|
readonly onCellDblclick: AsyncParallelHook<[import("vxe-table/types/table").VxeTableDefines.CellDblclickEventParams, import("../../../../../../es/components/iho-table/src/types").IhoTableHandler & {
|
|
48
62
|
$table: import("../../../../../../es/shared/types").Nullable<import("vxe-table/types/table").VxeTableInstance>;
|
|
63
|
+
emits: import("../../../../../../es/components/iho-table/src/types").IhoTableEmits;
|
|
49
64
|
}, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
50
65
|
readonly onCellMenu: AsyncParallelHook<[import("vxe-table/types/table").VxeTableDefines.CellMenuEventParams, import("../../../../../../es/components/iho-table/src/types").IhoTableHandler & {
|
|
51
66
|
$table: import("../../../../../../es/shared/types").Nullable<import("vxe-table/types/table").VxeTableInstance>;
|
|
67
|
+
emits: import("../../../../../../es/components/iho-table/src/types").IhoTableEmits;
|
|
52
68
|
}, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
53
69
|
readonly onCellMouseenter: AsyncParallelHook<[import("vxe-table/types/table").VxeTableDefines.CellMouseenterEventParams, import("../../../../../../es/components/iho-table/src/types").IhoTableHandler & {
|
|
54
70
|
$table: import("../../../../../../es/shared/types").Nullable<import("vxe-table/types/table").VxeTableInstance>;
|
|
71
|
+
emits: import("../../../../../../es/components/iho-table/src/types").IhoTableEmits;
|
|
55
72
|
}, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
56
73
|
readonly onCellMouseleave: AsyncParallelHook<[import("vxe-table/types/table").VxeTableDefines.CellMouseleaveEventParams, import("../../../../../../es/components/iho-table/src/types").IhoTableHandler & {
|
|
57
74
|
$table: import("../../../../../../es/shared/types").Nullable<import("vxe-table/types/table").VxeTableInstance>;
|
|
75
|
+
emits: import("../../../../../../es/components/iho-table/src/types").IhoTableEmits;
|
|
58
76
|
}, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
59
77
|
readonly onHeaderCellClick: AsyncParallelHook<[import("vxe-table/types/table").VxeTableDefines.HeaderCellClickEventParams, import("../../../../../../es/components/iho-table/src/types").IhoTableHandler & {
|
|
60
78
|
$table: import("../../../../../../es/shared/types").Nullable<import("vxe-table/types/table").VxeTableInstance>;
|
|
79
|
+
emits: import("../../../../../../es/components/iho-table/src/types").IhoTableEmits;
|
|
61
80
|
}, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
62
81
|
readonly onHeaderCellDblclick: AsyncParallelHook<[import("vxe-table/types/table").VxeTableDefines.HeaderCellDblclickEventParams, import("../../../../../../es/components/iho-table/src/types").IhoTableHandler & {
|
|
63
82
|
$table: import("../../../../../../es/shared/types").Nullable<import("vxe-table/types/table").VxeTableInstance>;
|
|
83
|
+
emits: import("../../../../../../es/components/iho-table/src/types").IhoTableEmits;
|
|
64
84
|
}, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
65
85
|
readonly onHeaderCellMenu: AsyncParallelHook<[import("vxe-table/types/table").VxeTableDefines.HeaderCellMenuEventParams, import("../../../../../../es/components/iho-table/src/types").IhoTableHandler & {
|
|
66
86
|
$table: import("../../../../../../es/shared/types").Nullable<import("vxe-table/types/table").VxeTableInstance>;
|
|
87
|
+
emits: import("../../../../../../es/components/iho-table/src/types").IhoTableEmits;
|
|
67
88
|
}, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
68
89
|
readonly onFooterCellClick: AsyncParallelHook<[import("vxe-table/types/table").VxeTableDefines.FooterCellClickEventParams, import("../../../../../../es/components/iho-table/src/types").IhoTableHandler & {
|
|
69
90
|
$table: import("../../../../../../es/shared/types").Nullable<import("vxe-table/types/table").VxeTableInstance>;
|
|
91
|
+
emits: import("../../../../../../es/components/iho-table/src/types").IhoTableEmits;
|
|
70
92
|
}, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
71
93
|
readonly onFooterCellDblclick: AsyncParallelHook<[import("vxe-table/types/table").VxeTableDefines.FooterCellDblclickEventParams, import("../../../../../../es/components/iho-table/src/types").IhoTableHandler & {
|
|
72
94
|
$table: import("../../../../../../es/shared/types").Nullable<import("vxe-table/types/table").VxeTableInstance>;
|
|
95
|
+
emits: import("../../../../../../es/components/iho-table/src/types").IhoTableEmits;
|
|
73
96
|
}, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
74
97
|
readonly onFooterCellMenu: AsyncParallelHook<[import("vxe-table/types/table").VxeTableDefines.FooterCellMenuEventParams, import("../../../../../../es/components/iho-table/src/types").IhoTableHandler & {
|
|
75
98
|
$table: import("../../../../../../es/shared/types").Nullable<import("vxe-table/types/table").VxeTableInstance>;
|
|
99
|
+
emits: import("../../../../../../es/components/iho-table/src/types").IhoTableEmits;
|
|
76
100
|
}, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
77
101
|
readonly onSortChange: AsyncParallelHook<[import("vxe-table/types/table").VxeTableDefines.SortChangeEventParams, import("../../../../../../es/components/iho-table/src/types").IhoTableHandler & {
|
|
78
102
|
$table: import("../../../../../../es/shared/types").Nullable<import("vxe-table/types/table").VxeTableInstance>;
|
|
103
|
+
emits: import("../../../../../../es/components/iho-table/src/types").IhoTableEmits;
|
|
79
104
|
}, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
80
105
|
readonly onFilterChange: AsyncParallelHook<[import("vxe-table/types/table").VxeTableDefines.FilterChangeEventParams, import("../../../../../../es/components/iho-table/src/types").IhoTableHandler & {
|
|
81
106
|
$table: import("../../../../../../es/shared/types").Nullable<import("vxe-table/types/table").VxeTableInstance>;
|
|
107
|
+
emits: import("../../../../../../es/components/iho-table/src/types").IhoTableEmits;
|
|
82
108
|
}, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
83
109
|
readonly onFilterVisible: AsyncParallelHook<[import("vxe-table/types/table").VxeTableDefines.FilterVisibleEventParams, import("../../../../../../es/components/iho-table/src/types").IhoTableHandler & {
|
|
84
110
|
$table: import("../../../../../../es/shared/types").Nullable<import("vxe-table/types/table").VxeTableInstance>;
|
|
111
|
+
emits: import("../../../../../../es/components/iho-table/src/types").IhoTableEmits;
|
|
85
112
|
}, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
86
113
|
readonly onResizableChange: AsyncParallelHook<[import("vxe-table/types/table").VxeTableDefines.ResizableChangeEventParams, import("../../../../../../es/components/iho-table/src/types").IhoTableHandler & {
|
|
87
114
|
$table: import("../../../../../../es/shared/types").Nullable<import("vxe-table/types/table").VxeTableInstance>;
|
|
115
|
+
emits: import("../../../../../../es/components/iho-table/src/types").IhoTableEmits;
|
|
88
116
|
}, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
89
117
|
readonly onToggleRowExpand: AsyncParallelHook<[import("vxe-table/types/table").VxeTableDefines.ToggleRowExpandEventParams, import("../../../../../../es/components/iho-table/src/types").IhoTableHandler & {
|
|
90
118
|
$table: import("../../../../../../es/shared/types").Nullable<import("vxe-table/types/table").VxeTableInstance>;
|
|
119
|
+
emits: import("../../../../../../es/components/iho-table/src/types").IhoTableEmits;
|
|
91
120
|
}, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
92
121
|
readonly onToggleTreeExpand: AsyncParallelHook<[import("vxe-table/types/table").VxeTableDefines.ToggleTreeExpandEventParams, import("../../../../../../es/components/iho-table/src/types").IhoTableHandler & {
|
|
93
122
|
$table: import("../../../../../../es/shared/types").Nullable<import("vxe-table/types/table").VxeTableInstance>;
|
|
123
|
+
emits: import("../../../../../../es/components/iho-table/src/types").IhoTableEmits;
|
|
94
124
|
}, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
95
125
|
readonly onMenuClick: AsyncParallelHook<[import("vxe-table/types/table").VxeTableDefines.MenuClickEventParams, import("../../../../../../es/components/iho-table/src/types").IhoTableHandler & {
|
|
96
126
|
$table: import("../../../../../../es/shared/types").Nullable<import("vxe-table/types/table").VxeTableInstance>;
|
|
127
|
+
emits: import("../../../../../../es/components/iho-table/src/types").IhoTableEmits;
|
|
97
128
|
}, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
98
129
|
readonly onEditClosed: AsyncParallelHook<[import("vxe-table/types/table").VxeTableDefines.EditClosedEventParams, import("../../../../../../es/components/iho-table/src/types").IhoTableHandler & {
|
|
99
130
|
$table: import("../../../../../../es/shared/types").Nullable<import("vxe-table/types/table").VxeTableInstance>;
|
|
131
|
+
emits: import("../../../../../../es/components/iho-table/src/types").IhoTableEmits;
|
|
100
132
|
}, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
101
133
|
readonly onEditActived: AsyncParallelHook<[import("vxe-table/types/table").VxeTableDefines.EditActivedEventParams, import("../../../../../../es/components/iho-table/src/types").IhoTableHandler & {
|
|
102
134
|
$table: import("../../../../../../es/shared/types").Nullable<import("vxe-table/types/table").VxeTableInstance>;
|
|
135
|
+
emits: import("../../../../../../es/components/iho-table/src/types").IhoTableEmits;
|
|
103
136
|
}, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
104
137
|
readonly onEditDisabled: AsyncParallelHook<[import("vxe-table/types/table").VxeTableDefines.EditDisabledEventParams, import("../../../../../../es/components/iho-table/src/types").IhoTableHandler & {
|
|
105
138
|
$table: import("../../../../../../es/shared/types").Nullable<import("vxe-table/types/table").VxeTableInstance>;
|
|
139
|
+
emits: import("../../../../../../es/components/iho-table/src/types").IhoTableEmits;
|
|
106
140
|
}, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
107
141
|
readonly onValidError: AsyncParallelHook<[import("vxe-table/types/table").VxeTableDefines.ValidErrorEventParams, import("../../../../../../es/components/iho-table/src/types").IhoTableHandler & {
|
|
108
142
|
$table: import("../../../../../../es/shared/types").Nullable<import("vxe-table/types/table").VxeTableInstance>;
|
|
143
|
+
emits: import("../../../../../../es/components/iho-table/src/types").IhoTableEmits;
|
|
109
144
|
}, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
110
145
|
readonly onScroll: AsyncParallelHook<[import("vxe-table/types/table").VxeTableDefines.ScrollEventParams, import("../../../../../../es/components/iho-table/src/types").IhoTableHandler & {
|
|
111
146
|
$table: import("../../../../../../es/shared/types").Nullable<import("vxe-table/types/table").VxeTableInstance>;
|
|
147
|
+
emits: import("../../../../../../es/components/iho-table/src/types").IhoTableEmits;
|
|
112
148
|
}, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
113
149
|
readonly onCustom: AsyncParallelHook<[import("vxe-table/types/table").VxeTableDefines.CustomEventParams, import("../../../../../../es/components/iho-table/src/types").IhoTableHandler & {
|
|
114
150
|
$table: import("../../../../../../es/shared/types").Nullable<import("vxe-table/types/table").VxeTableInstance>;
|
|
151
|
+
emits: import("../../../../../../es/components/iho-table/src/types").IhoTableEmits;
|
|
115
152
|
}, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
116
153
|
readonly onOpenFnr: AsyncParallelHook<[import("vxe-table").VxeTableProDefines.OpenFnrParams, import("../../../../../../es/components/iho-table/src/types").IhoTableHandler & {
|
|
117
154
|
$table: import("../../../../../../es/shared/types").Nullable<import("vxe-table/types/table").VxeTableInstance>;
|
|
155
|
+
emits: import("../../../../../../es/components/iho-table/src/types").IhoTableEmits;
|
|
118
156
|
}, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
119
157
|
readonly onFnrChange: AsyncParallelHook<[import("vxe-table").VxeTableProDefines.FnrChangeParams, import("../../../../../../es/components/iho-table/src/types").IhoTableHandler & {
|
|
120
158
|
$table: import("../../../../../../es/shared/types").Nullable<import("vxe-table/types/table").VxeTableInstance>;
|
|
159
|
+
emits: import("../../../../../../es/components/iho-table/src/types").IhoTableEmits;
|
|
121
160
|
}, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
122
161
|
readonly onFnrFind: AsyncParallelHook<[import("vxe-table").VxeTableProDefines.FnrFindParams, import("../../../../../../es/components/iho-table/src/types").IhoTableHandler & {
|
|
123
162
|
$table: import("../../../../../../es/shared/types").Nullable<import("vxe-table/types/table").VxeTableInstance>;
|
|
163
|
+
emits: import("../../../../../../es/components/iho-table/src/types").IhoTableEmits;
|
|
124
164
|
}, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
125
165
|
readonly onFnrFindAll: AsyncParallelHook<[import("vxe-table").VxeTableProDefines.FnrFindAllParams, import("../../../../../../es/components/iho-table/src/types").IhoTableHandler & {
|
|
126
166
|
$table: import("../../../../../../es/shared/types").Nullable<import("vxe-table/types/table").VxeTableInstance>;
|
|
167
|
+
emits: import("../../../../../../es/components/iho-table/src/types").IhoTableEmits;
|
|
127
168
|
}, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
128
169
|
readonly onFnrReplace: AsyncParallelHook<[import("vxe-table").VxeTableProDefines.FnrReplaceParams, import("../../../../../../es/components/iho-table/src/types").IhoTableHandler & {
|
|
129
170
|
$table: import("../../../../../../es/shared/types").Nullable<import("vxe-table/types/table").VxeTableInstance>;
|
|
171
|
+
emits: import("../../../../../../es/components/iho-table/src/types").IhoTableEmits;
|
|
130
172
|
}, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
131
173
|
readonly onFnrReplaceAll: AsyncParallelHook<[import("vxe-table").VxeTableProDefines.FnrReplaceAllParams, import("../../../../../../es/components/iho-table/src/types").IhoTableHandler & {
|
|
132
174
|
$table: import("../../../../../../es/shared/types").Nullable<import("vxe-table/types/table").VxeTableInstance>;
|
|
175
|
+
emits: import("../../../../../../es/components/iho-table/src/types").IhoTableEmits;
|
|
133
176
|
}, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
134
177
|
readonly onCellAreaCopy: AsyncParallelHook<[import("vxe-table").VxeTableProDefines.CellAreaCopyParams, import("../../../../../../es/components/iho-table/src/types").IhoTableHandler & {
|
|
135
178
|
$table: import("../../../../../../es/shared/types").Nullable<import("vxe-table/types/table").VxeTableInstance>;
|
|
179
|
+
emits: import("../../../../../../es/components/iho-table/src/types").IhoTableEmits;
|
|
136
180
|
}, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
137
181
|
readonly onCellAreaCut: AsyncParallelHook<[import("vxe-table").VxeTableProDefines.CellAreaCutParams, import("../../../../../../es/components/iho-table/src/types").IhoTableHandler & {
|
|
138
182
|
$table: import("../../../../../../es/shared/types").Nullable<import("vxe-table/types/table").VxeTableInstance>;
|
|
183
|
+
emits: import("../../../../../../es/components/iho-table/src/types").IhoTableEmits;
|
|
139
184
|
}, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
140
185
|
readonly onCellAreaPaste: AsyncParallelHook<[import("vxe-table").VxeTableProDefines.CellAreaPasteParams, import("../../../../../../es/components/iho-table/src/types").IhoTableHandler & {
|
|
141
186
|
$table: import("../../../../../../es/shared/types").Nullable<import("vxe-table/types/table").VxeTableInstance>;
|
|
187
|
+
emits: import("../../../../../../es/components/iho-table/src/types").IhoTableEmits;
|
|
142
188
|
}, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
143
189
|
readonly onCellAreaMerge: AsyncParallelHook<[import("vxe-table").VxeTableProDefines.CellAreaMergeEventParams, import("../../../../../../es/components/iho-table/src/types").IhoTableHandler & {
|
|
144
190
|
$table: import("../../../../../../es/shared/types").Nullable<import("vxe-table/types/table").VxeTableInstance>;
|
|
191
|
+
emits: import("../../../../../../es/components/iho-table/src/types").IhoTableEmits;
|
|
145
192
|
}, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
146
193
|
readonly onClearCellAreaMerge: AsyncParallelHook<[import("vxe-table").VxeTableProDefines.ClearCellAreaMergeEventParams, import("../../../../../../es/components/iho-table/src/types").IhoTableHandler & {
|
|
147
194
|
$table: import("../../../../../../es/shared/types").Nullable<import("vxe-table/types/table").VxeTableInstance>;
|
|
195
|
+
emits: import("../../../../../../es/components/iho-table/src/types").IhoTableEmits;
|
|
148
196
|
}, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
149
197
|
readonly onHeaderCellAreaSelection: AsyncParallelHook<[import("vxe-table").VxeTableProDefines.HeaderCellAreaSelectionEventParams, import("../../../../../../es/components/iho-table/src/types").IhoTableHandler & {
|
|
150
198
|
$table: import("../../../../../../es/shared/types").Nullable<import("vxe-table/types/table").VxeTableInstance>;
|
|
199
|
+
emits: import("../../../../../../es/components/iho-table/src/types").IhoTableEmits;
|
|
151
200
|
}, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
152
201
|
readonly onCellAreaSelectionStart: AsyncParallelHook<[import("vxe-table").VxeTableProDefines.CellAreaSelectionStartEventParams, import("../../../../../../es/components/iho-table/src/types").IhoTableHandler & {
|
|
153
202
|
$table: import("../../../../../../es/shared/types").Nullable<import("vxe-table/types/table").VxeTableInstance>;
|
|
203
|
+
emits: import("../../../../../../es/components/iho-table/src/types").IhoTableEmits;
|
|
154
204
|
}, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
155
205
|
readonly onCellAreaSelectionDrag: AsyncParallelHook<[import("vxe-table").VxeTableProDefines.CellAreaSelectionDragEventParams, import("../../../../../../es/components/iho-table/src/types").IhoTableHandler & {
|
|
156
206
|
$table: import("../../../../../../es/shared/types").Nullable<import("vxe-table/types/table").VxeTableInstance>;
|
|
207
|
+
emits: import("../../../../../../es/components/iho-table/src/types").IhoTableEmits;
|
|
157
208
|
}, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
158
209
|
readonly onCellAreaSelectionEnd: AsyncParallelHook<[import("vxe-table").VxeTableProDefines.CellAreaSelectionEndEventParams, import("../../../../../../es/components/iho-table/src/types").IhoTableHandler & {
|
|
159
210
|
$table: import("../../../../../../es/shared/types").Nullable<import("vxe-table/types/table").VxeTableInstance>;
|
|
211
|
+
emits: import("../../../../../../es/components/iho-table/src/types").IhoTableEmits;
|
|
160
212
|
}, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
161
213
|
readonly onCellAreaExtensionStart: AsyncParallelHook<[import("vxe-table").VxeTableProDefines.CellAreaExtensionStartEventParams, import("../../../../../../es/components/iho-table/src/types").IhoTableHandler & {
|
|
162
214
|
$table: import("../../../../../../es/shared/types").Nullable<import("vxe-table/types/table").VxeTableInstance>;
|
|
215
|
+
emits: import("../../../../../../es/components/iho-table/src/types").IhoTableEmits;
|
|
163
216
|
}, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
164
217
|
readonly onCellAreaExtensionDrag: AsyncParallelHook<[import("vxe-table").VxeTableProDefines.CellAreaExtensionDragEventParams, import("../../../../../../es/components/iho-table/src/types").IhoTableHandler & {
|
|
165
218
|
$table: import("../../../../../../es/shared/types").Nullable<import("vxe-table/types/table").VxeTableInstance>;
|
|
219
|
+
emits: import("../../../../../../es/components/iho-table/src/types").IhoTableEmits;
|
|
166
220
|
}, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
167
221
|
readonly onCellAreaExtensionEnd: AsyncParallelHook<[import("vxe-table").VxeTableProDefines.CellAreaExtensionEndEventParams, import("../../../../../../es/components/iho-table/src/types").IhoTableHandler & {
|
|
168
222
|
$table: import("../../../../../../es/shared/types").Nullable<import("vxe-table/types/table").VxeTableInstance>;
|
|
223
|
+
emits: import("../../../../../../es/components/iho-table/src/types").IhoTableEmits;
|
|
169
224
|
}, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
170
225
|
readonly onCellAreaArrowsStart: AsyncParallelHook<[import("vxe-table").VxeTableProDefines.CellAreaArrowsStartEventParams, import("../../../../../../es/components/iho-table/src/types").IhoTableHandler & {
|
|
171
226
|
$table: import("../../../../../../es/shared/types").Nullable<import("vxe-table/types/table").VxeTableInstance>;
|
|
227
|
+
emits: import("../../../../../../es/components/iho-table/src/types").IhoTableEmits;
|
|
172
228
|
}, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
173
229
|
readonly onCellAreaArrowsEnd: AsyncParallelHook<[import("vxe-table").VxeTableProDefines.CellAreaArrowsEndEventParams, import("../../../../../../es/components/iho-table/src/types").IhoTableHandler & {
|
|
174
230
|
$table: import("../../../../../../es/shared/types").Nullable<import("vxe-table/types/table").VxeTableInstance>;
|
|
231
|
+
emits: import("../../../../../../es/components/iho-table/src/types").IhoTableEmits;
|
|
175
232
|
}, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
176
233
|
readonly onActiveCellChangeStart: AsyncParallelHook<[import("vxe-table").VxeTableProDefines.ActiveCellChangeStartEventParams, import("../../../../../../es/components/iho-table/src/types").IhoTableHandler & {
|
|
177
234
|
$table: import("../../../../../../es/shared/types").Nullable<import("vxe-table/types/table").VxeTableInstance>;
|
|
235
|
+
emits: import("../../../../../../es/components/iho-table/src/types").IhoTableEmits;
|
|
178
236
|
}, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
179
237
|
readonly onActiveCellChangeEnd: AsyncParallelHook<[import("vxe-table").VxeTableProDefines.ActiveCellChangeEndEventParams, import("../../../../../../es/components/iho-table/src/types").IhoTableHandler & {
|
|
180
238
|
$table: import("../../../../../../es/shared/types").Nullable<import("vxe-table/types/table").VxeTableInstance>;
|
|
239
|
+
emits: import("../../../../../../es/components/iho-table/src/types").IhoTableEmits;
|
|
181
240
|
}, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
182
241
|
}
|
|
183
242
|
export declare function useEventHooks(): {
|
|
184
243
|
create: () => EventHooks;
|
|
185
244
|
};
|
|
186
245
|
export declare class IhoTableEventListener {
|
|
187
|
-
eventMap: Map<"toggleRowExpand" | "toggleTreeExpand" | "copy" | "scroll" | "formChange" | "settingClick" | "formClick" | "cut" | "paste" | "keydown" | "keydownStart" | "keydownEnd" | "currentChange" | "radioChange" | "checkboxChange" | "checkboxAll" | "checkboxRangeStart" | "checkboxRangeChange" | "checkboxRangeEnd" | "cellClick" | "cellDblclick" | "cellMenu" | "cellMouseenter" | "cellMouseleave" | "headerCellClick" | "headerCellDblclick" | "headerCellMenu" | "footerCellClick" | "footerCellDblclick" | "footerCellMenu" | "
|
|
246
|
+
eventMap: Map<"toggleRowExpand" | "toggleTreeExpand" | "copy" | "scroll" | "formChange" | "settingClick" | "formClick" | "sortChange" | "keyboard" | "cut" | "paste" | "keydown" | "keydownStart" | "keydownEnd" | "currentChange" | "radioChange" | "checkboxChange" | "checkboxAll" | "checkboxRangeStart" | "checkboxRangeChange" | "checkboxRangeEnd" | "cellClick" | "cellDblclick" | "cellMenu" | "cellMouseenter" | "cellMouseleave" | "headerCellClick" | "headerCellDblclick" | "headerCellMenu" | "footerCellClick" | "footerCellDblclick" | "footerCellMenu" | "filterChange" | "filterVisible" | "resizableChange" | "menuClick" | "editClosed" | "editActived" | "editDisabled" | "validError" | "custom" | "openFnr" | "fnrChange" | "fnrFind" | "fnrFindAll" | "fnrReplace" | "fnrReplaceAll" | "cellAreaCopy" | "cellAreaCut" | "cellAreaPaste" | "cellAreaMerge" | "clearCellAreaMerge" | "headerCellAreaSelection" | "cellAreaSelectionStart" | "cellAreaSelectionDrag" | "cellAreaSelectionEnd" | "cellAreaExtensionStart" | "cellAreaExtensionDrag" | "cellAreaExtensionEnd" | "cellAreaArrowsStart" | "cellAreaArrowsEnd" | "activeCellChangeStart" | "activeCellChangeEnd", Set<Func<any[], any>>>;
|
|
188
247
|
addEventListener<T extends IhoTableEventNameUnion>(key: T, handler: (...payload: IhoTableEmitPayload<T>) => void): void;
|
|
189
248
|
trigger<T extends IhoTableEventNameUnion>(key: T, payload: IhoTableEmitPayload<T>): void;
|
|
190
249
|
}
|
|
@@ -2,7 +2,7 @@ export declare function useTableContext(): {
|
|
|
2
2
|
configRef: import("vue").Ref<import("../types").IhoTableConfig>;
|
|
3
3
|
fieldListRef: import("vue").Ref<import("../types").IhoTableFieldItem[]>;
|
|
4
4
|
tableHandler: import("../types").IhoTableHandler;
|
|
5
|
-
tableEmit:
|
|
5
|
+
tableEmit: import("../types").IhoTableEmits;
|
|
6
6
|
eventListener: import("./tapHooks/useEventHooks").IhoTableEventListener;
|
|
7
7
|
$table: import("vue").Ref<import("../../../../shared/types").UndefinedAble<import("vxe-table").VxeTableInstance>>;
|
|
8
8
|
uuid: string;
|
|
@@ -21,6 +21,7 @@ function isVisible(field) {
|
|
|
21
21
|
return field.visible || !Reflect.has(field, "visible");
|
|
22
22
|
}
|
|
23
23
|
const useAnchor = (anchorList, $table, fieldListRef) => {
|
|
24
|
+
const TIME = 800;
|
|
24
25
|
const currentAnchorList = ref([]);
|
|
25
26
|
const anchorValue = ref();
|
|
26
27
|
let setAnchorStatus = true;
|
|
@@ -55,7 +56,7 @@ const useAnchor = (anchorList, $table, fieldListRef) => {
|
|
|
55
56
|
await ((_b = $table.value) == null ? void 0 : _b.scrollTo((_a = anchorObj == null ? void 0 : anchorObj.left) != null ? _a : 0));
|
|
56
57
|
setTimeout(() => {
|
|
57
58
|
setAnchorStatus = true;
|
|
58
|
-
});
|
|
59
|
+
}, TIME + 100);
|
|
59
60
|
}
|
|
60
61
|
function setAnchorValue({ scrollLeft }) {
|
|
61
62
|
if (currentAnchorList.value.length && setAnchorStatus) {
|
|
@@ -65,7 +66,7 @@ const useAnchor = (anchorList, $table, fieldListRef) => {
|
|
|
65
66
|
}
|
|
66
67
|
}
|
|
67
68
|
}
|
|
68
|
-
const anchorEvent = useThrottleFn(setAnchorValue,
|
|
69
|
+
const anchorEvent = useThrottleFn(setAnchorValue, TIME);
|
|
69
70
|
function onScroll(...params) {
|
|
70
71
|
anchorEvent(...params);
|
|
71
72
|
}
|
|
@@ -22,7 +22,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
22
22
|
};
|
|
23
23
|
}>> & {}>>;
|
|
24
24
|
uuid: string;
|
|
25
|
-
globEmit:
|
|
25
|
+
globEmit: import("../../types").IhoTableEmits;
|
|
26
26
|
options: import("vue").Ref<import("../../../../../shared/types").AnyObject[]>;
|
|
27
27
|
checked: import("vue").Ref<string[]>;
|
|
28
28
|
sortStatus: import("vue").Ref<IHO_TABLE_FILTER_STATUS>;
|