cnhis-design-vue 3.1.31-beta.0 → 3.1.31-beta.10
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/es/components/big-table/index.js +1 -1
- package/es/components/big-table/src/{BigTable.js → BigTable.vue.js} +1 -1
- package/es/components/big-table/src/{BigTable.vue_vue_type_script_setup_true_lang.js → BigTable.vue2.js} +6 -6
- package/es/components/{scale-view/src/components/NoData.js → big-table/src/components/NoData.vue.js} +4 -4
- package/es/components/big-table/src/components/edit-form/{edit-separate.js → edit-separate.vue.js} +1 -1
- package/es/components/big-table/src/components/{input-button.js → input-button.vue.js} +0 -0
- package/es/components/big-table/src/components/{separate.js → separate.vue.js} +0 -0
- package/es/components/big-table/src/hooks/useEdit.js +1 -1
- package/es/components/big-table/src/utils.js +1 -1
- package/es/components/bpmn-workflow/index.js +1 -1
- package/es/components/bpmn-workflow/src/{BpmnWorkflow.js → BpmnWorkflow.vue.js} +0 -0
- package/es/components/button-print/index.d.ts +76 -79
- package/es/components/button-print/index.js +2 -2
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +76 -79
- package/es/components/button-print/src/{ButtonPrint.js → ButtonPrint.vue.js} +1 -1
- package/es/components/button-print/src/{ButtonPrint.vue_vue_type_script_setup_true_lang.js → ButtonPrint.vue2.js} +47 -85
- package/es/components/button-print/src/components/{edit.vue.d.ts → EditFormat.vue.d.ts} +61 -54
- package/es/components/button-print/src/components/EditFormat.vue.js +173 -0
- package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +76 -64
- package/es/components/button-print/src/components/{IdentityVerification.js → IdentityVerification.vue.js} +22 -10
- package/es/components/button-print/src/components/Preview.vue.d.ts +41 -0
- package/es/components/button-print/src/components/Preview.vue.js +6 -0
- package/es/components/button-print/src/components/Preview.vue2.js +67 -0
- package/es/components/button-print/src/utils/browserPrint.d.ts +2 -1
- package/es/components/button-print/src/utils/browserPrint.js +6 -3
- package/es/components/button-print/src/utils/dialog.d.ts +6 -2
- package/es/components/button-print/src/utils/dialog.js +69 -25
- package/es/components/button-print/src/utils/index.js +1 -1
- package/es/components/button-print/src/utils/print.d.ts +7 -3
- package/es/components/button-print/src/utils/print.js +51 -4
- package/es/components/button-print/style/index.css +1 -1
- package/es/components/drag-layout/index.js +1 -1
- package/es/components/drag-layout/src/{DragFormLeftItem.js → DragFormLeftItem.vue.js} +0 -0
- package/es/components/drag-layout/src/{DragFormRightItem.js → DragFormRightItem.vue.js} +0 -0
- package/es/components/drag-layout/src/{DragLayout.js → DragLayout.vue.js} +2 -2
- package/es/components/fabric-chart/index.js +1 -1
- package/es/components/fabric-chart/src/{FabricChart.js → FabricChart.vue.js} +1 -1
- package/es/components/fabric-chart/src/components/{PopupTip.js → PopupTip.vue.js} +0 -0
- package/es/components/fabric-chart/src/hooks/useCenter.js +5 -6
- package/es/components/fabric-chart/src/hooks/useGrid.js +3 -3
- package/es/components/fabric-chart/src/interface.d.ts +1 -1
- package/es/components/fabric-chart/src/utils/index.js +0 -1
- package/es/components/field-set/index.js +1 -1
- package/es/components/field-set/src/{FieldSet.js → FieldSet.vue.js} +0 -0
- package/es/components/form-config/index.js +1 -1
- package/es/components/form-config/src/{FormConfig.js → FormConfig.vue.js} +3 -3
- package/es/components/form-config/src/components/{FormConfigCreator.js → FormConfigCreator.vue.js} +0 -0
- package/es/components/form-config/src/components/{FormConfigDragDisplay.js → FormConfigDragDisplay.vue.js} +0 -0
- package/es/components/form-config/src/components/{FormConfigEdit.js → FormConfigEdit.vue.js} +0 -0
- package/es/components/form-config/src/components/index.js +6 -6
- package/es/components/form-config/src/components/renderer/{CloseButton.js → CloseButton.vue.js} +0 -0
- package/es/components/form-config/src/components/renderer/{ComplexNode.js → ComplexNode.vue.js} +2 -2
- package/es/components/form-config/src/components/renderer/{DefaultNode.js → DefaultNode.vue.js} +1 -1
- package/es/components/form-config/src/components/renderer/index.js +3 -3
- package/es/components/form-config/src/hooks/usePresetRenderer.js +2 -2
- package/es/components/form-render/index.js +2 -2
- package/es/components/form-render/src/{FormRender.js → FormRender.vue.js} +0 -0
- package/es/components/form-render/src/{FormRenderWrapper.js → FormRenderWrapper.vue.js} +1 -1
- package/es/components/form-render/src/components/renderer/checkbox.js +3 -5
- package/es/components/form-render/src/components/renderer/index.js +2 -0
- package/es/components/form-render/src/components/renderer/jsonCombination/index.js +1 -1
- package/es/components/form-render/src/components/renderer/levelSearchCascader.js +1 -1
- package/es/components/form-render/src/components/renderer/lineBar/{FormCollapse.js → FormCollapse.vue.js} +0 -0
- package/es/components/form-render/src/components/renderer/lineBar/index.js +1 -1
- package/es/components/form-render/src/components/renderer/recommendSelect.d.ts +131 -0
- package/es/components/form-render/src/components/renderer/recommendSelect.js +213 -0
- package/es/components/form-render/src/components/renderer/remoteSearch.js +0 -1
- package/es/components/form-render/src/components/renderer/select.js +3 -5
- package/es/components/form-render/src/hooks/useAsyncQueue.js +2 -1
- package/es/components/form-render/src/hooks/useAutographOptions.js +5 -7
- package/es/components/form-render/src/hooks/useBusinessBinding.d.ts +3 -2
- package/es/components/form-render/src/hooks/useBusinessBinding.js +20 -17
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +7 -0
- package/es/components/form-render/src/hooks/useFormRequest.d.ts +8 -1
- package/es/components/form-render/src/hooks/useFormRequest.js +24 -1
- package/es/components/form-render/src/utils/index.d.ts +2 -2
- package/es/components/form-render/src/utils/index.js +27 -3
- package/es/components/form-render/style/index.css +1 -1
- package/es/components/iho-table/index.d.ts +160 -102
- package/es/components/iho-table/index.js +1 -2
- package/es/components/iho-table/src/IhoTable.vue.d.ts +160 -102
- package/es/components/iho-table/src/{IhoTable.js → IhoTable.vue.js} +2 -1
- 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 +5 -3
- 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.vue.d.ts +1 -1
- package/es/components/iho-table/src/plugins/filterPlugin/{filter.js → filter.vue.js} +1 -0
- package/es/components/iho-table/src/plugins/filterPlugin/index.js +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/{editDate.js → editDate.vue.js} +0 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.js +10 -12
- 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.vue.d.ts +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/{editSeparate.js → editSeparate.vue.js} +2 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +9 -12
- 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/index.d.ts +2 -1
- package/es/components/index.js +6 -3
- package/es/components/info-header/index.js +1 -1
- package/es/components/info-header/src/{HiddenContent.js → HiddenContent.vue.js} +1 -1
- package/es/components/info-header/src/{InfoEllipsis.js → InfoEllipsis.vue.js} +0 -0
- package/es/components/info-header/src/{InfoHeader.js → InfoHeader.vue.js} +2 -2
- package/es/components/keyboard/index.d.ts +146 -78
- package/es/components/keyboard/index.js +1 -1
- package/es/components/keyboard/src/Keyboard.vue.d.ts +155 -78
- package/es/components/keyboard/src/Keyboard.vue.js +149 -0
- package/es/components/keyboard/src/components/InputNumber.vue.d.ts +6 -4
- package/es/components/keyboard/src/components/{InputNumber.js → InputNumber.vue.js} +0 -0
- package/es/components/keyboard/src/components/NumberPanel.vue.d.ts +118 -0
- package/es/components/keyboard/src/components/NumberPanel.vue.js +206 -0
- package/es/components/map/index.js +1 -1
- package/es/components/map/src/{Map.js → Map.vue.js} +0 -0
- package/es/components/recommend-search/index.d.ts +813 -0
- package/es/components/recommend-search/index.js +10 -0
- package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +815 -0
- package/es/components/recommend-search/src/RecommendSearch.vue.js +62 -0
- package/es/components/recommend-search/src/components/BaseSearch.vue.d.ts +119 -0
- package/es/components/recommend-search/src/components/BaseSearch.vue.js +148 -0
- package/es/components/recommend-search/src/components/RecommendInput.vue.d.ts +303 -0
- package/es/components/recommend-search/src/components/RecommendInput.vue.js +103 -0
- package/es/components/recommend-search/src/components/RecommendMenu.vue.d.ts +63 -0
- package/es/components/recommend-search/src/components/RecommendMenu.vue.js +104 -0
- package/es/components/recommend-search/src/components/RecommendSelect.vue.d.ts +350 -0
- package/es/components/recommend-search/src/components/RecommendSelect.vue.js +156 -0
- package/es/components/recommend-search/src/constant/index.d.ts +4 -0
- package/es/components/recommend-search/src/constant/index.js +7 -0
- package/es/components/recommend-search/src/types/index.d.ts +9 -0
- package/es/components/recommend-search/src/types/index.js +1 -0
- package/es/components/recommend-search/style/index.css +1 -0
- package/es/components/scale-view/index.js +1 -1
- package/es/components/scale-view/src/{ScaleView.js → ScaleView.vue.js} +5 -5
- package/es/components/scale-view/src/components/{AnswerParse.js → AnswerParse.vue.js} +1 -1
- package/es/components/scale-view/src/components/{EvaluateCountdown.js → EvaluateCountdown.vue.js} +1 -1
- package/es/components/scale-view/src/components/{EvaluatePage.js → EvaluatePage.vue.js} +0 -0
- package/es/components/scale-view/src/components/{LoadingCom.js → LoadingCom.vue.js} +0 -0
- package/es/components/{big-table/src/components/NoData.js → scale-view/src/components/NoData.vue.js} +4 -4
- package/es/components/scale-view/src/components/formitem/r-cascader.js +1 -1
- package/es/components/scale-view/src/components/formitem/r-select.js +1 -1
- package/es/components/scale-view/src/hooks/use-component.js +1 -1
- package/es/components/search-cascader/index.js +1 -1
- package/es/components/search-cascader/src/{SearchCascader.js → SearchCascader.vue.js} +0 -0
- package/es/components/search-cascader/src/components/SearchMenu.js +3 -3
- package/es/components/select-label/index.js +2 -2
- package/es/components/select-label/src/{LabelFormContent.js → LabelFormContent.vue.js} +1 -1
- package/es/components/select-label/src/{SelectLabel.js → SelectLabel.vue.js} +1 -1
- package/es/components/select-label/src/{SelectLabel.vue_vue_type_script_setup_true_lang.js → SelectLabel.vue2.js} +2 -2
- package/es/components/select-label/src/components/{label-classify.js → label-classify.vue.js} +0 -0
- package/es/components/select-person/index.js +1 -1
- package/es/components/select-person/src/{SelectPerson.js → SelectPerson.vue.js} +1 -1
- package/es/components/select-person/src/{SelectPerson.vue_vue_type_script_setup_true_lang.js → SelectPerson.vue2.js} +0 -0
- package/es/components/shortcut-provider/index.js +1 -1
- package/es/components/shortcut-provider/src/{ShortcutProvider.js → ShortcutProvider.vue.js} +0 -0
- package/es/components/shortcut-setter/index.js +1 -1
- package/es/components/shortcut-setter/src/{ShortcutSetter.js → ShortcutSetter.vue.js} +1 -1
- package/es/components/shortcut-setter/src/{ShortcutSetterItem.js → ShortcutSetterItem.vue.js} +0 -0
- package/es/components/steps-wheel/index.d.ts +3 -0
- package/es/components/steps-wheel/index.js +1 -1
- package/es/components/steps-wheel/src/StepsWheel.vue.d.ts +3 -0
- package/es/components/steps-wheel/src/{StepsWheel.js → StepsWheel.vue.js} +38 -9
- package/es/components/steps-wheel/style/index.css +1 -1
- package/es/components/time-line/index.js +1 -1
- package/es/components/time-line/src/{TimeLine.js → TimeLine.vue.js} +0 -0
- package/es/components/vod-chunk-upload/index.js +1 -1
- package/es/components/vod-chunk-upload/src/{chunk-upload-new.js → chunk-upload-new.vue.js} +0 -0
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/index.js +2 -2
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/{vod-chunk-upload.js → vod-chunk-upload.vue.js} +3 -3
- package/es/components/vod-chunk-upload/src/vod-upload-modal.js +1 -1
- package/es/shared/assets/img/failure.js +1 -3
- package/es/shared/assets/img/failure.png.js +3 -0
- package/es/shared/assets/img/no-permission.js +1 -3
- package/es/shared/assets/img/no-permission.png.js +3 -0
- package/es/shared/assets/img/nodata.js +1 -3
- package/es/shared/assets/img/nodata.png.js +3 -0
- package/es/shared/assets/img/notfound.js +1 -3
- package/es/shared/assets/img/notfound.png.js +3 -0
- package/es/shared/assets/img/qr.js +1 -3
- package/es/shared/assets/img/qr.png.js +3 -0
- package/es/shared/assets/img/success.js +1 -3
- package/es/shared/assets/img/success.png.js +3 -0
- package/es/shared/assets/img/video.js +1 -3
- package/es/shared/assets/img/video.png.js +3 -0
- package/es/shared/assets/img/video_default_cover.js +1 -3
- package/es/shared/assets/img/video_default_cover.png.js +3 -0
- package/es/shared/assets/img/xb_big.js +1 -3
- package/es/shared/assets/img/xb_big.png.js +3 -0
- package/es/shared/assets/img/xb_small.js +1 -3
- package/es/shared/assets/img/xb_small.png.js +3 -0
- package/es/shared/components/SelectPage/{SelectPage.js → SelectPage.vue.js} +0 -0
- package/es/shared/components/SelectPage/index.js +2 -2
- package/es/shared/components/SvgIcon/{SvgIcon.js → SvgIcon.vue.js} +0 -0
- package/es/shared/components/SvgIcon/index.js +2 -2
- package/es/shared/components/TextOverTooltip/{TextOverTooltip.js → TextOverTooltip.vue.js} +0 -0
- package/es/shared/components/TextOverTooltip/index.js +2 -2
- package/es/shared/components/no-data/{NoData.js → NoData.vue.js} +4 -4
- package/es/shared/components/no-data/index.js +2 -2
- package/es/shared/utils/index.d.ts +1 -1
- package/es/shared/utils/index.js +3 -3
- package/package.json +2 -2
- package/es/components/button-print/src/components/edit.js +0 -142
- package/es/components/fabric-chart/index.d.ts +0 -207
- package/es/components/fabric-chart/src/FabricChart.vue.d.ts +0 -208
- package/es/components/keyboard/src/Keyboard.js +0 -285
|
@@ -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
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { cloneDeep, isString, isFunction, isArray } from 'lodash-es';
|
|
1
|
+
import { cloneDeep, isString, isFunction, pick, isArray } from 'lodash-es';
|
|
2
2
|
import { isObject } from '@vue/shared';
|
|
3
3
|
|
|
4
4
|
const REMOVE_PROPERTY = Symbol("remove property");
|
|
@@ -16,8 +16,8 @@ function useColumnConfigAdaptor() {
|
|
|
16
16
|
["RIGHT", 2]
|
|
17
17
|
]);
|
|
18
18
|
const multipleValueMap = /* @__PURE__ */ new Map([
|
|
19
|
-
["0",
|
|
20
|
-
["1",
|
|
19
|
+
["0", true],
|
|
20
|
+
["1", false]
|
|
21
21
|
]);
|
|
22
22
|
const isEditValueMap = /* @__PURE__ */ new Map([
|
|
23
23
|
["0", 0],
|
|
@@ -113,6 +113,7 @@ function useColumnConfigAdaptor() {
|
|
|
113
113
|
["elementId", "columnName"],
|
|
114
114
|
["columnWidth", "colWidth"],
|
|
115
115
|
["fixedWayEnum", { property: "isFixed", valueMap: fixedWayEnumValueMap }],
|
|
116
|
+
["multi_select_value", { property: "multiple", valueMap: multipleValueMap }],
|
|
116
117
|
["setting", { fieldMap: settingMap, assign: true }]
|
|
117
118
|
]);
|
|
118
119
|
return fieldList2.map((fieldItem) => transfer(fieldItem, editRules, fieldMap));
|
|
@@ -138,6 +139,7 @@ function useColumnConfigAdaptor() {
|
|
|
138
139
|
}
|
|
139
140
|
}
|
|
140
141
|
});
|
|
142
|
+
result.componentProps = pick(result, ["options", "multiple", "isDateDisabled"]);
|
|
141
143
|
return result;
|
|
142
144
|
function valueTransfer(value, rule) {
|
|
143
145
|
var _a, _b;
|
|
@@ -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>;
|
|
@@ -4,7 +4,7 @@ import '../../../index.js';
|
|
|
4
4
|
import { IHO_TABLE_NUMBER_STATUS, IHO_TABLE_STRING_STATUS } from '../../constants/index.js';
|
|
5
5
|
import { IHO_TABLE_FILTER_STATUS } from './types.js';
|
|
6
6
|
import { useUUIDMap, IhoTableUtils } from '../../utils/index.js';
|
|
7
|
-
import FilterComponent from './filter.js';
|
|
7
|
+
import FilterComponent from './filter.vue.js';
|
|
8
8
|
import { defineTablePlugin } from '../../hooks/useTablePlugin.js';
|
|
9
9
|
|
|
10
10
|
function filterPlugin() {
|