cnhis-design-vue 3.2.5-beta.53 → 3.2.5-beta.55
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/annotation-edit/src/type.d.ts +1 -1
- package/es/components/audio-sdk/src/components/recordingDialog.vue.d.ts +1 -1
- package/es/components/big-table/index.d.ts +7 -57
- package/es/components/big-table/src/BigTable.vue.d.ts +7 -57
- package/es/components/big-table/src/components/edit-form/edit-select.d.ts +1 -1
- package/es/components/big-table/src/components/edit-form/edit-separate.vue.d.ts +4 -4
- package/es/components/big-table/src/hooks/useEdit.d.ts +27 -27
- package/es/components/big-table/src/hooks/useSeparateRow.d.ts +1 -1
- package/es/components/biunique-chat/index.d.ts +13 -1027
- package/es/components/biunique-chat/src/Index.vue.d.ts +13 -1027
- package/es/components/biunique-chat/src/components/ChatFile.vue.d.ts +2 -201
- package/es/components/biunique-chat/src/components/ChatFooter.vue.d.ts +1 -9
- package/es/components/biunique-chat/src/components/ChatHeader.vue.d.ts +7 -408
- package/es/components/biunique-chat/src/components/ChatMain.vue.d.ts +2 -208
- package/es/components/biunique-chat/src/components/ChatRecord.vue.d.ts +1 -11
- package/es/components/biunique-chat/src/components/ChatSearch.vue.d.ts +2 -2
- package/es/components/biunique-chat/src/components/ChatSet.vue.d.ts +2 -187
- package/es/components/biunique-chat/src/components/PersonProfile.vue.d.ts +1 -9
- package/es/components/biunique-chat/src/types/index.d.ts +1 -1
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/BpmnRenderer.d.ts +1 -1
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/CustomContextPadProvider.d.ts +1 -1
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/CustomPalette.d.ts +1 -1
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/CustomRenderer.d.ts +1 -1
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/CustomRules.d.ts +1 -1
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/index.d.ts +13 -13
- package/es/components/bpmn-workflow/src/custom/customOtherModule/CustomPopupMenu.d.ts +2 -2
- package/es/components/bpmn-workflow/src/custom/customOtherModule/customViewerRenderer.d.ts +9 -9
- package/es/components/bpmn-workflow/src/custom/customOtherModule/zoomScroll.d.ts +2 -2
- package/es/components/button-print/index.d.ts +13 -2917
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +13 -2917
- package/es/components/button-print/src/components/EditFormat.vue.d.ts +4 -1162
- package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +6 -1458
- package/es/components/button-print/src/components/NewPrintComponent.vue.d.ts +5 -1457
- package/es/components/button-print/src/components/OldPrintComponent.vue.d.ts +5 -1457
- package/es/components/calendar/index.d.ts +4 -4
- package/es/components/calendar/src/Calendar.vue.d.ts +4 -4
- package/es/components/calendar/src/types/index.d.ts +1 -1
- package/es/components/callback/src/components/dialog/drawer.vue.d.ts +2 -179
- package/es/components/callback/src/components/dialog/modal.vue.d.ts +1 -1
- package/es/components/callback/src/components/render/popupMaps.d.ts +120 -1701
- package/es/components/callback/src/types/index.d.ts +1 -1
- package/es/components/card-reader-sdk/src/components/readCardDialog.vue.d.ts +2 -2
- package/es/components/card-reader-sdk/src/constants/index.d.ts +56 -56
- package/es/components/card-reader-sdk/src/utils/ensureUID2IdCard.d.ts +1 -1
- package/es/components/classification/index.d.ts +4 -14
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +24 -34
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +26 -36
- package/es/components/classification/src/components/table-modal/index.vue.d.ts +1 -1
- package/es/components/classification/src/index.vue.d.ts +4 -14
- package/es/components/config-provider/src/interface.d.ts +2 -2
- package/es/components/date-picker/src/DatePicker.vue.d.ts +1 -1
- package/es/components/drag-scroll/src/types.d.ts +2 -2
- package/es/components/expand-field/index.d.ts +41 -575
- package/es/components/expand-field/src/components/FormItemPerson.vue.d.ts +56 -198
- package/es/components/expand-field/src/components/PersonModal.vue.d.ts +36 -168
- package/es/components/expand-field/src/components/form.vue.d.ts +41 -526
- package/es/components/expand-field/src/index.vue.d.ts +41 -575
- package/es/components/expand-field/src/types/index.d.ts +1 -1
- package/es/components/fabric-chart/index.d.ts +10 -10
- package/es/components/fabric-chart/src/FabricChart.vue.d.ts +10 -10
- package/es/components/fabric-chart/src/components/PopupMenu.d.ts +3 -3
- package/es/components/fabric-chart/src/components/PopupTip.vue.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/electrocardiogram/hooks/useDetailEvent.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useShadow.d.ts +1 -1
- package/es/components/fabric-chart/src/interface.d.ts +9 -9
- package/es/components/field-set/index.d.ts +5 -52
- package/es/components/field-set/src/FieldColor.vue.d.ts +14 -606
- package/es/components/field-set/src/FieldColor.vue2.js +1 -1
- package/es/components/field-set/src/FieldFilter.vue.d.ts +6 -19
- package/es/components/field-set/src/FieldFilter.vue2.js +1 -1
- package/es/components/field-set/src/FieldSet.vue.d.ts +8 -9
- package/es/components/field-set/src/FieldSet.vue2.js +1 -1
- package/es/components/field-set/src/Index.vue.d.ts +6 -53
- package/es/components/field-set/src/Index.vue2.js +1 -1
- package/es/components/field-set/src/components/Row.vue.d.ts +1 -1
- package/es/components/field-set/src/components/condition.vue.d.ts +2 -2
- package/es/components/field-set/src/components/edit-dialog.vue.d.ts +12 -590
- package/es/components/field-set/src/components/edit-filter.vue.d.ts +3 -3
- package/es/components/field-set/src/constants/index.d.ts +1 -1
- package/es/components/field-set/src/types/index.d.ts +8 -8
- package/es/components/field-set/style/index.css +1 -1
- package/es/components/form-config/index.d.ts +62 -4785
- package/es/components/form-config/src/FormConfig.vue.d.ts +41 -4764
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +37 -98
- package/es/components/form-config/src/components/FormConfigDragDisplay.vue.d.ts +2 -2
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +22 -4651
- package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +3 -36
- package/es/components/form-config/src/components/renderer/ComplexNode.vue.d.ts +3 -3
- package/es/components/form-config/src/components/renderer/DefaultNode.vue.d.ts +1 -1
- package/es/components/form-config/src/hooks/usePresetRenderer.d.ts +1 -1
- package/es/components/form-config/src/types/index.d.ts +8 -8
- package/es/components/form-render/index.d.ts +15 -75
- package/es/components/form-render/src/FormRender.vue.d.ts +10 -70
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +15 -75
- package/es/components/form-render/src/components/renderer/combination/combination.d.ts +2 -2
- package/es/components/form-render/src/components/renderer/combination/jsonCombination.d.ts +2 -2
- package/es/components/form-render/src/components/renderer/combination/tableCombination.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/complex.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/date.d.ts +2 -2
- package/es/components/form-render/src/components/renderer/index.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/inputGroup.d.ts +1 -11
- package/es/components/form-render/src/components/renderer/inputNumber.d.ts +4 -4
- package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.d.ts +10 -10
- package/es/components/form-render/src/components/renderer/lineBar/index.d.ts +15 -15
- package/es/components/form-render/src/components/renderer/radio&checkbox.d.ts +2 -2
- package/es/components/form-render/src/components/renderer/searchCascade.d.ts +2 -2
- package/es/components/form-render/src/components/renderer/select.d.ts +3 -3
- package/es/components/form-render/src/hooks/useChangeContext.d.ts +1 -1
- package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +4 -4
- package/es/components/form-render/src/hooks/useFormContext.d.ts +1 -11
- package/es/components/form-render/src/hooks/useFormRenderLifeCycle.d.ts +1 -19
- package/es/components/form-render/src/hooks/useFormRenderOptions.d.ts +1 -1
- package/es/components/form-render/src/types/fieldItem.d.ts +10 -10
- package/es/components/form-render/src/types/index.d.ts +13 -13
- package/es/components/form-render/src/utils/index.d.ts +1 -1
- package/es/components/iho-table/index.d.ts +46 -1567
- package/es/components/iho-table/src/IhoTable.vue.d.ts +40 -1561
- package/es/components/iho-table/src/constants/index.d.ts +2 -2
- package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +4 -4
- package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.d.ts +18 -18
- package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.d.ts +61 -61
- package/es/components/iho-table/src/hooks/tapHooks/useExposeHooks.d.ts +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks.d.ts +1 -1
- package/es/components/iho-table/src/hooks/useColumnConfigAdaptor.d.ts +1 -1
- package/es/components/iho-table/src/hooks/useTableContext.d.ts +1 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.d.ts +2 -335
- package/es/components/iho-table/src/plugins/pagerScrollPlugin/types.d.ts +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/levelSearchCascadePlugin/levelSearchCascade.vue.d.ts +16 -16
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.d.ts +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue.d.ts +2 -2
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/separateUtils.d.ts +1 -1
- package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/rowGroupUtils.d.ts +1 -1
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/index.d.ts +1 -1
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/types.d.ts +1 -1
- package/es/components/iho-table/src/types/index.d.ts +17 -17
- package/es/components/iho-table/src/types/pluginType.d.ts +13 -13
- package/es/components/index.css +1 -1
- package/es/components/info-header/index.d.ts +65 -1723
- package/es/components/info-header/src/InfoHeader.vue.d.ts +42 -1700
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +27 -1547
- package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +16 -1554
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +31 -1629
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +59 -119
- package/es/components/info-header/src/types/index.d.ts +4 -3
- package/es/components/keyboard/index.d.ts +1 -1
- package/es/components/keyboard/src/Keyboard.vue.d.ts +1 -1
- package/es/components/map/src/types/index.d.ts +2 -2
- package/es/components/quick-search/index.d.ts +1 -295
- package/es/components/quick-search/src/index.vue.d.ts +1 -295
- package/es/components/recommend-search/index.d.ts +28 -28
- package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +28 -28
- package/es/components/recommend-search/src/components/BaseSearch.d.ts +4 -4
- package/es/components/recommend-search/src/components/RecommendInput.vue.d.ts +10 -10
- package/es/components/recommend-search/src/components/RecommendSelect.vue.d.ts +11 -11
- package/es/components/recommend-search/src/types/index.d.ts +2 -2
- package/es/components/scale-view/index.d.ts +6 -300
- package/es/components/scale-view/src/ScaleView.vue.d.ts +6 -300
- package/es/components/scale-view/src/components/EvaluatePage.vue.d.ts +2 -2
- package/es/components/scale-view/src/components/formitem/standard-modal.d.ts +2 -2
- package/es/components/scale-view/src/hooks/use-component.d.ts +3 -15
- package/es/components/scale-view/src/types/index.d.ts +1 -1
- package/es/components/search-cascader/index.d.ts +14 -14
- package/es/components/search-cascader/src/SearchCascader.vue.d.ts +15 -15
- package/es/components/search-cascader/src/components/SearchMenu.d.ts +3 -3
- package/es/components/select-label/index.d.ts +3 -21
- package/es/components/select-label/src/LabelFormContent.vue.d.ts +1 -7
- package/es/components/select-label/src/SelectLabel.vue.d.ts +1 -7
- package/es/components/select-label/src/ihoLabel/IhoLabelFormContent.vue.d.ts +1 -7
- package/es/components/select-label/src/ihoLabel/IhoSelectLabel.vue.d.ts +1 -7
- package/es/components/select-label/src/index.vue.d.ts +2 -14
- package/es/components/select-label/src/types/index.d.ts +3 -3
- package/es/components/select-person/index.d.ts +36 -168
- package/es/components/select-person/src/SearchMultiple.vue.d.ts +3 -52
- package/es/components/select-person/src/SearchOrgAndStaff.vue.d.ts +2 -2
- package/es/components/select-person/src/SelectPerson.vue.d.ts +9 -117
- package/es/components/shortcut-provider/index.d.ts +1 -1
- package/es/components/shortcut-provider/src/types/index.d.ts +1 -1
- package/es/components/shortcut-setter/index.d.ts +23 -1606
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +14 -1597
- package/es/components/step-notice/index.d.ts +94 -1615
- package/es/components/step-notice/src/StepNotice.vue.d.ts +79 -1600
- package/es/components/step-notice/src/components/NoticeItem.vue.d.ts +22 -22
- package/es/components/step-notice/src/components/NoticeItemAside.vue.d.ts +2 -2
- package/es/components/step-notice/src/components/NoticeOperationList.vue.d.ts +16 -16
- package/es/components/step-notice/src/hooks/useTheme.d.ts +1 -1
- package/es/components/step-notice/src/utils.d.ts +1 -1
- package/es/components/steps-wheel/index.d.ts +1 -1
- package/es/components/steps-wheel/src/StepsWheel.vue.d.ts +1 -1
- package/es/components/table-export-field/index.d.ts +3 -630
- package/es/components/table-export-field/src/components/ExportModal.vue.d.ts +2 -51
- package/es/components/table-export-field/src/components/SaveProjectModal.vue.d.ts +3 -581
- package/es/components/table-export-field/src/index.vue.d.ts +5 -632
- package/es/components/table-export-field/src/types/index.d.ts +1 -1
- package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.d.ts +2 -2
- package/es/components/table-filter/src/components/bi-filter/components/Date.vue.d.ts +2 -2
- package/es/components/table-filter/src/components/bi-filter/components/index.d.ts +2 -2
- package/es/components/table-filter/src/components/bi-filter/index.vue.d.ts +2 -2
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +22 -32
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +2 -2
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +2 -2
- package/es/components/table-filter/src/components/classify-filter/components/InputNumberGroup.vue.d.ts +1 -11
- package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue.d.ts +15 -15
- package/es/components/table-filter/src/components/classify-filter/components/SelectLabel.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +22 -32
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +22 -32
- package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.d.ts +1 -50
- package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +3 -3
- package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +4 -4
- package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/render-widget/components/InputCustom.vue.d.ts +2 -2
- package/es/components/table-filter/src/components/render-widget/components/InputNumberGroup.vue.d.ts +1 -11
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue.d.ts +16 -16
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/render-widget/components/index.d.ts +60 -119
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +59 -108
- package/es/components/table-filter/src/types/index.d.ts +25 -25
- package/es/components/time-line/index.d.ts +1 -48
- package/es/components/time-line/src/TimeLine.vue.d.ts +4 -51
- package/es/components/tooth-bitmap/index.d.ts +3 -3
- package/es/components/tooth-bitmap/src/ToothBitmap.vue.d.ts +1 -1
- package/es/shared/components/InputNumberSlash/InputNumberSlash.d.ts +3 -3
- package/es/shared/components/SlotRender/SlotRender.d.ts +4 -4
- package/es/shared/components/VueDraggable/src/core/renderHelper.d.ts +1 -1
- package/es/shared/hooks/useTheme.d.ts +2 -2
- package/es/shared/package.json.js +1 -1
- package/es/shared/types/business.d.ts +1 -1
- package/es/shared/types/index.d.ts +15 -15
- package/es/shared/utils/tapable/AsyncParallelBailHook.d.ts +1 -1
- package/es/shared/utils/tapable/AsyncParallelHook.d.ts +1 -1
- package/es/shared/utils/tapable/AsyncSeriesBailHook.d.ts +1 -1
- package/es/shared/utils/tapable/AsyncSeriesHook.d.ts +1 -1
- package/es/shared/utils/tapable/AsyncSeriesLoopHook.d.ts +1 -1
- package/es/shared/utils/tapable/AsyncSeriesWaterfallHook.d.ts +1 -1
- package/es/shared/utils/tapable/SyncBailHook.d.ts +1 -1
- package/es/shared/utils/tapable/SyncHook.d.ts +1 -1
- package/es/shared/utils/tapable/SyncLoopHook.d.ts +1 -1
- package/es/shared/utils/tapable/SyncWaterfallHook.d.ts +1 -1
- package/es/shared/utils/vexutils.d.ts +2 -2
- package/package.json +5 -5
|
@@ -7,13 +7,13 @@ import { DragScrollConfig } from '../../../../components/drag-scroll';
|
|
|
7
7
|
import { IHO_TABLE_STRING_STATUS, IhoTableEventNameTuple, IhoTableRowGroupSequence } from '../../../../components/iho-table/src/constants';
|
|
8
8
|
import Sortable from 'sortablejs';
|
|
9
9
|
export * from './pluginType';
|
|
10
|
-
export
|
|
10
|
+
export type $VxeTable = VxeTableConstructor & VxeTableMethods & VxeTablePrivateMethods;
|
|
11
11
|
export interface IhoTableRowGroupItem {
|
|
12
12
|
groupName?: string;
|
|
13
13
|
title: string;
|
|
14
14
|
list: string[];
|
|
15
15
|
}
|
|
16
|
-
export
|
|
16
|
+
export type IhoTableConfig = VxeTableProps & Partial<{
|
|
17
17
|
uuid: string;
|
|
18
18
|
isTree: MaybeString<0 | 1 | 2 | 3>;
|
|
19
19
|
isBatchSelect: MaybeString<0 | 1>;
|
|
@@ -106,7 +106,7 @@ export declare type IhoTableConfig = VxeTableProps & Partial<{
|
|
|
106
106
|
Partial<{
|
|
107
107
|
[K in EventNameToEventListener<typeof IhoTableEventNameTuple[number]>]: (...payload: IhoTableEmitPayload<EventListenerToEventName<K>>) => void;
|
|
108
108
|
}>;
|
|
109
|
-
export
|
|
109
|
+
export type IhoTableFieldItem = {
|
|
110
110
|
[K in keyof VxeTableDefines.ColumnInfo]?: K extends 'children' ? IhoTableFieldItem[] : K extends keyof VxeTableDefines.ColumnInfo ? VxeTableDefines.ColumnInfo[K] : never;
|
|
111
111
|
} & Partial<{
|
|
112
112
|
annotation: boolean;
|
|
@@ -154,7 +154,7 @@ export declare namespace IhoTableLowCodeField {
|
|
|
154
154
|
connectColumn?: VxeTableDefines.ColumnInfo;
|
|
155
155
|
}) => Promise<AnyObject[]>;
|
|
156
156
|
}
|
|
157
|
-
export
|
|
157
|
+
export type LowCodeTableFieldItem = {
|
|
158
158
|
columnName: string;
|
|
159
159
|
[K: string]: any;
|
|
160
160
|
} & Partial<{
|
|
@@ -221,7 +221,7 @@ export declare type LowCodeTableFieldItem = {
|
|
|
221
221
|
lazyRequest: boolean;
|
|
222
222
|
labelToValue: boolean;
|
|
223
223
|
}> & Partial<VxeTableDefines.ColumnInfo>;
|
|
224
|
-
export
|
|
224
|
+
export type IhoTableFormChangePayload = {
|
|
225
225
|
column: IhoTableFieldItem;
|
|
226
226
|
row: AnyObject;
|
|
227
227
|
value: unknown;
|
|
@@ -231,22 +231,22 @@ export declare type IhoTableFormChangePayload = {
|
|
|
231
231
|
option?: null | AnyObject;
|
|
232
232
|
$table: VxeTableConstructor & VxeTablePrivateMethods;
|
|
233
233
|
};
|
|
234
|
-
export
|
|
235
|
-
export
|
|
236
|
-
export
|
|
237
|
-
export
|
|
238
|
-
export
|
|
239
|
-
export
|
|
234
|
+
export type IhoTableEmits = <T extends typeof IhoTableEventNameTuple[number]>(event: T, ...args: IhoTableEmitPayload<T>) => void;
|
|
235
|
+
export type EventListenerToEventName<T extends string> = T extends `on${infer R}` ? R extends `${infer F}${infer L}` ? `${Lowercase<F>}${L}` : never : never;
|
|
236
|
+
export type EventNameToEventListener<T extends string> = T extends `${infer L}${infer R}` ? `on${Uppercase<L>}${R}` : never;
|
|
237
|
+
export type IhoTableHandler = Record<'updateConfigRef' | 'updateFieldListRef' | 'updateTableDataRef', () => void>;
|
|
238
|
+
export type IhoTableEventNameUnion = TupleToUnion<typeof IhoTableEventNameTuple>;
|
|
239
|
+
export type IHoTableKeyboardPayload = IhoTableFormChangePayload & {
|
|
240
240
|
key: string;
|
|
241
241
|
};
|
|
242
|
-
export
|
|
243
|
-
export
|
|
242
|
+
export type IhoTableEmitPayload<T extends typeof IhoTableEventNameTuple[number]> = T extends 'formChange' | 'formClick' ? [IhoTableFormChangePayload] : T extends 'keyboard' ? [IHoTableKeyboardPayload] : T extends 'settingClick' ? [] : T extends 'rowDrag' ? [Sortable.SortableEvent] : T extends keyof VxeTableListeners ? Parameters<NonNullable<VxeTableListeners[T]>> : [];
|
|
243
|
+
export type IhoTableAnchorItem = {
|
|
244
244
|
field: string;
|
|
245
245
|
title: string;
|
|
246
246
|
left: number;
|
|
247
247
|
};
|
|
248
|
-
export
|
|
249
|
-
export
|
|
248
|
+
export type IhoTableEventTypes = VxeTableEventProps & VxePagerEventProps;
|
|
249
|
+
export type IhoTableExpose = {
|
|
250
250
|
$table: VxeTableInstance;
|
|
251
251
|
loadData(data: AnyObject[]): void;
|
|
252
252
|
setSort(field: string, value: 'asc' | 'desc' | null): void;
|
|
@@ -257,7 +257,7 @@ export declare type IhoTableExpose = {
|
|
|
257
257
|
};
|
|
258
258
|
tableDataResolved(): Promise<void>;
|
|
259
259
|
};
|
|
260
|
-
export
|
|
260
|
+
export type IhoTableSeparateInfo = {
|
|
261
261
|
index: number;
|
|
262
262
|
isOriginRow: boolean;
|
|
263
263
|
isLastRow: boolean;
|
|
@@ -267,7 +267,7 @@ export declare type IhoTableSeparateInfo = {
|
|
|
267
267
|
separateLength: number;
|
|
268
268
|
ihoTableHandler?: IhoTableHandler;
|
|
269
269
|
};
|
|
270
|
-
export
|
|
270
|
+
export type IhoTableProps = Partial<{
|
|
271
271
|
tableConfig: IhoTableConfig;
|
|
272
272
|
fieldList: IhoTableFieldItem[];
|
|
273
273
|
tableData: AnyObject[];
|
|
@@ -7,7 +7,7 @@ import { VxeTableEvents } from 'vxe-table/types/table';
|
|
|
7
7
|
import { VxePagerEvents } from 'vxe-table/types/pager';
|
|
8
8
|
import { VxeGlobalInterceptor } from 'vxe-table/types/v-x-e-table';
|
|
9
9
|
import { $VxeTable, IhoTableConfig, IhoTableEmits, IhoTableEventTypes, IhoTableFieldItem, IhoTableHandler, IhoTableProps } from '.';
|
|
10
|
-
export
|
|
10
|
+
export type IhoTableInstance = {
|
|
11
11
|
interceptor: VxeGlobalInterceptor;
|
|
12
12
|
renderer: VxeGlobalRenderer;
|
|
13
13
|
commands: VxeGlobalCommands;
|
|
@@ -16,19 +16,19 @@ export declare type IhoTableInstance = {
|
|
|
16
16
|
hooks: VxeGlobalHooks;
|
|
17
17
|
setup: (option: VXETableSetupOptions) => void;
|
|
18
18
|
};
|
|
19
|
-
export
|
|
19
|
+
export type TablePlugin = {
|
|
20
20
|
name: string;
|
|
21
21
|
vxe?(vxeTable: IhoTableInstance): void;
|
|
22
22
|
apply?(hooks: TableHooks): void;
|
|
23
23
|
};
|
|
24
|
-
export
|
|
24
|
+
export type IhoTableHandlerContext<isRef extends boolean = true> = {
|
|
25
25
|
$table: isRef extends true ? Ref<Nullable<VxeTableInstance>> : Nullable<VxeTableInstance>;
|
|
26
26
|
emits: IhoTableEmits;
|
|
27
27
|
globProps: IhoTableProps;
|
|
28
28
|
loading: Ref<boolean>;
|
|
29
29
|
$xeTable: Ref<$VxeTable | undefined>;
|
|
30
30
|
};
|
|
31
|
-
export
|
|
31
|
+
export type TableHooks = Readonly<{
|
|
32
32
|
configHooks: AbstractConfigHooks;
|
|
33
33
|
fieldHooks: AbstractFieldHooks;
|
|
34
34
|
eventHooks: AbstractEventHooks;
|
|
@@ -37,8 +37,8 @@ export declare type TableHooks = Readonly<{
|
|
|
37
37
|
domInsertHooks: AbstractDomInsertHooks;
|
|
38
38
|
exposeHooks: AbstractExposeHooks;
|
|
39
39
|
}>;
|
|
40
|
-
export
|
|
41
|
-
|
|
40
|
+
export type WithTableConfig<T = []> = T extends any[] ? [...T, IhoTableConfig] : [T, IhoTableConfig];
|
|
41
|
+
type ConfigHookType<T> = SyncWaterfallHook<[...WithTableConfig<[T]>, IhoTableHandlerContext]>;
|
|
42
42
|
export declare abstract class AbstractConfigHooks {
|
|
43
43
|
abstract readonly config: SyncWaterfallHook<[IhoTableConfig, IhoTableHandlerContext]>;
|
|
44
44
|
abstract readonly rowConfig: ConfigHookType<IhoTableConfig['rowConfig']>;
|
|
@@ -65,16 +65,16 @@ export interface FieldHookContext {
|
|
|
65
65
|
insertBefore(field: ArrayAble<IhoTableFieldItem>): void;
|
|
66
66
|
insertAfter(field: ArrayAble<IhoTableFieldItem>): void;
|
|
67
67
|
}
|
|
68
|
-
export
|
|
68
|
+
export type WithFieldHookContext<T = []> = [...WithTableConfig<T>, IhoTableHandlerContext];
|
|
69
69
|
export declare abstract class AbstractFieldHooks {
|
|
70
70
|
abstract readonly fieldStart: AsyncParallelHook<WithFieldHookContext>;
|
|
71
71
|
abstract readonly field: SyncWaterfallHook<WithFieldHookContext<[IhoTableFieldItem, FieldHookContext]>>;
|
|
72
72
|
abstract readonly fieldList: SyncWaterfallHook<WithFieldHookContext<[IhoTableFieldItem[]]>>;
|
|
73
73
|
abstract readonly fieldEnd: AsyncParallelHook<WithFieldHookContext>;
|
|
74
74
|
}
|
|
75
|
-
export
|
|
76
|
-
|
|
77
|
-
|
|
75
|
+
export type WithIhoEventContext<T> = [...WithTableConfig<T>, IhoTableHandler & IhoTableHandlerContext<false>];
|
|
76
|
+
type EventHookType<T extends AnyFn> = AsyncParallelHook<WithIhoEventContext<Parameters<T>>>;
|
|
77
|
+
type VxeEventTypes = Required<{
|
|
78
78
|
readonly [K in keyof IhoTableEventTypes]: EventHookType<NonNullable<IhoTableEventTypes[K]>>;
|
|
79
79
|
}>;
|
|
80
80
|
export declare abstract class AbstractEventHooks implements VxeEventTypes {
|
|
@@ -142,14 +142,14 @@ export declare abstract class AbstractEventHooks implements VxeEventTypes {
|
|
|
142
142
|
abstract readonly onCellAreaSelectionAllEnd: EventHookType<(payload: any) => void>;
|
|
143
143
|
abstract readonly onPageChange: EventHookType<VxePagerEvents.PageChange>;
|
|
144
144
|
}
|
|
145
|
-
|
|
145
|
+
type DataHookContext = {
|
|
146
146
|
remove(): void;
|
|
147
147
|
$table: MaybeRef<Nullable<VxeTableInstance>>;
|
|
148
148
|
index: number;
|
|
149
149
|
insertBefore(data: ArrayAble<AnyObject>): void;
|
|
150
150
|
insertAfter(data: ArrayAble<AnyObject>): void;
|
|
151
151
|
};
|
|
152
|
-
export
|
|
152
|
+
export type WithTableDataContext<T> = [...WithTableConfig<T>, DataHookContext];
|
|
153
153
|
export declare abstract class AbstractDataHooks {
|
|
154
154
|
abstract readonly dataStart: AsyncParallelHook<WithTableConfig>;
|
|
155
155
|
abstract readonly data: AsyncSeriesHook<WithTableDataContext<[AnyObject]>>;
|
|
@@ -163,7 +163,7 @@ export declare abstract class AbstractDomInsertHooks {
|
|
|
163
163
|
abstract readonly header: SyncWaterfallHook<[VNode[]]>;
|
|
164
164
|
abstract readonly footer: SyncWaterfallHook<[VNode[]]>;
|
|
165
165
|
}
|
|
166
|
-
export
|
|
166
|
+
export type WithExposeHookConfig<T = []> = [
|
|
167
167
|
...(T extends any[] ? T : [T]),
|
|
168
168
|
Ref<IhoTableConfig>,
|
|
169
169
|
IhoTableHandler & IhoTableHandlerContext
|