cnhis-design-vue 3.1.40-beta.11 → 3.1.40-beta.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +87 -87
- package/es/_virtual/plugin-vue_export-helper.js +1 -9
- package/es/components/annotation-edit/index.js +1 -10
- package/es/components/annotation-edit/src/AnnotationEdit.js +1 -164
- package/es/components/big-table/index.js +1 -15
- package/es/components/big-table/src/BigTable.vue.js +1 -6
- package/es/components/big-table/src/BigTable.vue2.js +1 -2498
- package/es/components/big-table/src/bigTableEmits.js +1 -53
- package/es/components/big-table/src/bigTableProps.js +1 -120
- package/es/components/big-table/src/bigTableState.js +1 -62
- package/es/components/big-table/src/components/NoData.vue.js +1 -74
- package/es/components/big-table/src/components/edit-form/edit-date.js +1 -214
- package/es/components/big-table/src/components/edit-form/edit-input.js +1 -95
- package/es/components/big-table/src/components/edit-form/edit-select.js +1 -139
- package/es/components/big-table/src/components/edit-form/edit-separate.vue.js +1 -103
- package/es/components/big-table/src/components/edit-form/edit-time.js +1 -122
- package/es/components/big-table/src/components/edit-form/useCommon.js +1 -23
- package/es/components/big-table/src/components/input-button.vue.js +1 -39
- package/es/components/big-table/src/components/separate.vue.js +1 -30
- package/es/components/big-table/src/constants/index.js +1 -3
- package/es/components/big-table/src/hooks/index.js +1 -9
- package/es/components/big-table/src/hooks/useAnchor.js +1 -49
- package/es/components/big-table/src/hooks/useAnnotation.js +1 -21
- package/es/components/big-table/src/hooks/useBatchEditing.js +1 -301
- package/es/components/big-table/src/hooks/useEdit.js +1 -133
- package/es/components/big-table/src/hooks/useEvent.js +1 -95
- package/es/components/big-table/src/hooks/useFormat.js +1 -507
- package/es/components/big-table/src/hooks/useNestTable.js +1 -86
- package/es/components/big-table/src/hooks/useSeparateRow.js +1 -177
- package/es/components/big-table/src/hooks/useTableParse.js +1 -142
- package/es/components/big-table/src/utils.js +1 -618
- package/es/components/bpmn-workflow/index.js +1 -10
- package/es/components/bpmn-workflow/src/BpmnWorkflow.vue.js +1 -258
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/BpmnRenderer.js +1 -1452
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/CustomPathMap.js +1 -99
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/CustomRenderer.js +1 -114
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/CustomRules.js +1 -40
- package/es/components/bpmn-workflow/src/custom/customOtherModule/customViewerRenderer.js +1 -14
- package/es/components/bpmn-workflow/src/custom/customOtherModule/zoomScroll.js +1 -10
- package/es/components/button-print/index.js +1 -12
- package/es/components/button-print/src/ButtonPrint.vue.js +1 -6
- package/es/components/button-print/src/ButtonPrint.vue2.js +1 -528
- package/es/components/button-print/src/components/EditFormat.vue.js +1 -173
- package/es/components/button-print/src/components/IdentityVerification.vue.js +1 -182
- package/es/components/button-print/src/components/Preview.vue.js +1 -6
- package/es/components/button-print/src/components/Preview.vue2.js +1 -67
- package/es/components/button-print/src/utils/browserPrint.d.ts +2 -1
- package/es/components/button-print/src/utils/browserPrint.js +1 -43
- package/es/components/button-print/src/utils/dialog.js +1 -121
- package/es/components/button-print/src/utils/index.js +1 -2
- package/es/components/button-print/src/utils/print.d.ts +5 -1
- package/es/components/button-print/src/utils/print.js +1 -432
- package/es/components/editor/index.js +1 -10
- package/es/components/editor/src/Editor.js +1 -77
- package/es/components/fabric-chart/index.js +1 -10
- package/es/components/fabric-chart/src/FabricChart.vue.js +1 -71
- package/es/components/fabric-chart/src/components/PopupMenu.js +1 -118
- package/es/components/fabric-chart/src/components/PopupTip.vue.js +1 -34
- package/es/components/fabric-chart/src/components/useStyle.js +1 -36
- package/es/components/fabric-chart/src/hooks/constant.js +1 -78
- package/es/components/fabric-chart/src/hooks/index.js +1 -11
- package/es/components/fabric-chart/src/hooks/useBirthProcess.js +1 -642
- package/es/components/fabric-chart/src/hooks/useBirthProcessChart.js +1 -153
- package/es/components/fabric-chart/src/hooks/useBottom.js +1 -91
- package/es/components/fabric-chart/src/hooks/useCenter.js +1 -734
- package/es/components/fabric-chart/src/hooks/useCommon.js +1 -32
- package/es/components/fabric-chart/src/hooks/useCumputedPoint.js +1 -79
- package/es/components/fabric-chart/src/hooks/useDraw.js +1 -182
- package/es/components/fabric-chart/src/hooks/useEvent.js +1 -146
- package/es/components/fabric-chart/src/hooks/useGrid.js +1 -54
- package/es/components/fabric-chart/src/hooks/useLeft.js +1 -331
- package/es/components/fabric-chart/src/hooks/useOther.js +1 -95
- package/es/components/fabric-chart/src/hooks/useRight.js +1 -22
- package/es/components/fabric-chart/src/hooks/useShadow.js +1 -132
- package/es/components/fabric-chart/src/hooks/useTemperatureChart.js +1 -341
- package/es/components/fabric-chart/src/hooks/useTop.js +1 -154
- package/es/components/fabric-chart/src/utils/index.js +1 -15624
- package/es/components/fabric-chart/src/utils/utils.js +1 -32
- package/es/components/field-set/index.js +1 -10
- package/es/components/field-set/src/FieldSet.vue.js +1 -470
- package/es/components/form-config/index.d.ts +1 -1
- package/es/components/form-config/index.js +1 -10
- package/es/components/form-config/src/FormConfig.vue.d.ts +1 -1
- package/es/components/form-config/src/FormConfig.vue.js +1 -124
- package/es/components/form-config/src/components/FormConfigCreator.vue.js +1 -100
- package/es/components/form-config/src/components/FormConfigDragDisplay.vue.js +1 -45
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +1 -1
- package/es/components/form-config/src/components/FormConfigEdit.vue.js +1 -97
- package/es/components/form-config/src/components/FormConfigMaterialItem.js +1 -28
- package/es/components/form-config/src/components/index.js +1 -6
- package/es/components/form-config/src/components/renderer/CloseButton.vue.js +1 -45
- package/es/components/form-config/src/components/renderer/ComplexNode.vue.js +1 -45
- package/es/components/form-config/src/components/renderer/DefaultNode.vue.js +1 -60
- package/es/components/form-config/src/components/renderer/index.js +1 -3
- package/es/components/form-config/src/constants/index.js +1 -61
- package/es/components/form-config/src/hooks/index.js +1 -3
- package/es/components/form-config/src/hooks/useConfigurationField.js +1 -90
- package/es/components/form-config/src/hooks/useDataNormalize.js +1 -35
- package/es/components/form-config/src/hooks/usePresetRenderer.js +1 -36
- package/es/components/form-config/src/hooks/useSortalbeConfig.js +1 -42
- package/es/components/form-config/src/utils/index.js +1 -26
- package/es/components/form-render/index.js +1 -30
- package/es/components/form-render/src/FormRender.vue.js +1 -239
- package/es/components/form-render/src/FormRenderWrapper.vue.js +1 -49
- package/es/components/form-render/src/components/renderer/combination.js +1 -114
- package/es/components/form-render/src/components/renderer/complex.js +1 -37
- package/es/components/form-render/src/components/renderer/date.js +1 -171
- package/es/components/form-render/src/components/renderer/formItem.js +1 -128
- package/es/components/form-render/src/components/renderer/index.js +1 -43
- package/es/components/form-render/src/components/renderer/input.js +1 -50
- package/es/components/form-render/src/components/renderer/inputGroup.js +1 -11
- package/es/components/form-render/src/components/renderer/inputNumber.js +1 -55
- package/es/components/form-render/src/components/renderer/jsonCombination/hooks/useDeepValidate.js +1 -35
- package/es/components/form-render/src/components/renderer/jsonCombination/index.js +1 -175
- package/es/components/form-render/src/components/renderer/levelSearchCascader.js +1 -274
- package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.js +1 -71
- package/es/components/form-render/src/components/renderer/lineBar/index.js +1 -11
- package/es/components/form-render/src/components/renderer/radio_checkbox.js +1 -111
- package/es/components/form-render/src/components/renderer/remoteSearch.js +1 -139
- package/es/components/form-render/src/components/renderer/searchCascade.js +1 -244
- package/es/components/form-render/src/components/renderer/select.js +1 -176
- package/es/components/form-render/src/components/renderer/simpleComponent.js +1 -57
- package/es/components/form-render/src/components/renderer/slider.js +1 -38
- package/es/components/form-render/src/components/renderer/switch.js +1 -48
- package/es/components/form-render/src/components/renderer/textarea.js +1 -36
- package/es/components/form-render/src/components/tooltipMessage.vue.js +1 -37
- package/es/components/form-render/src/constants/index.js +1 -59
- package/es/components/form-render/src/hooks/index.js +1 -15
- package/es/components/form-render/src/hooks/useAnchor.js +1 -99
- package/es/components/form-render/src/hooks/useAsyncQueue.js +1 -153
- package/es/components/form-render/src/hooks/useAutoHidden.js +1 -43
- package/es/components/form-render/src/hooks/useBusinessBinding.js +1 -119
- package/es/components/form-render/src/hooks/useChangeContext.js +1 -20
- package/es/components/form-render/src/hooks/useCommonInjection.js +1 -43
- package/es/components/form-render/src/hooks/useCommonLog.js +1 -12
- package/es/components/form-render/src/hooks/useComplexOptions.js +1 -225
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -290
- package/es/components/form-render/src/hooks/useFieldNormalize.js +1 -65
- package/es/components/form-render/src/hooks/useFieldVisitor.js +1 -46
- package/es/components/form-render/src/hooks/useFormContext.js +1 -70
- package/es/components/form-render/src/hooks/useFormEvent.js +1 -140
- package/es/components/form-render/src/hooks/useFormField.js +1 -13
- package/es/components/form-render/src/hooks/useFormItemDeps.js +1 -31
- package/es/components/form-render/src/hooks/useFormRenderLifeCycle.js +1 -10
- package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -278
- package/es/components/form-render/src/hooks/useFormRequest.js +1 -42
- package/es/components/form-render/src/hooks/useFormValidator.js +1 -83
- package/es/components/form-render/src/hooks/useLowCodeReactions.js +1 -85
- package/es/components/form-render/src/hooks/useNuiThemeOverrides.js +1 -18
- package/es/components/form-render/src/hooks/usePresetScope.js +1 -22
- package/es/components/form-render/src/types/fieldItem.d.ts +2 -1
- package/es/components/form-render/src/types/fieldItem.js +1 -1
- package/es/components/form-render/src/types/index.js +1 -1
- package/es/components/form-render/src/utils/business.js +1 -114
- package/es/components/form-render/src/utils/dom.js +1 -38
- package/es/components/form-render/src/utils/index.js +1 -241
- package/es/components/form-render/src/utils/schema.js +1 -105
- package/es/components/grid/index.js +1 -11
- package/es/components/grid/src/Grid.js +1 -28
- package/es/components/grid/src/hooks.js +1 -168
- package/es/components/iho-table/index.js +1 -36
- package/es/components/iho-table/src/IhoTable.vue.js +1 -157
- package/es/components/iho-table/src/constants/index.js +1 -157
- package/es/components/iho-table/src/hooks/export.js +1 -2
- package/es/components/iho-table/src/hooks/index.js +1 -2
- package/es/components/iho-table/src/hooks/tapHooks/index.js +1 -159
- package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.js +1 -67
- package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.js +1 -26
- package/es/components/iho-table/src/hooks/tapHooks/useDomInsertHooks.js +1 -27
- package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.js +1 -280
- package/es/components/iho-table/src/hooks/tapHooks/useExposeHooks.js +1 -26
- package/es/components/iho-table/src/hooks/tapHooks/useFieldHooks.js +1 -38
- package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks.js +1 -27
- package/es/components/iho-table/src/hooks/useColumnConfigAdaptor.js +1 -164
- package/es/components/iho-table/src/hooks/useTableContext.js +1 -17
- package/es/components/iho-table/src/hooks/useTablePlugin.js +1 -20
- package/es/components/iho-table/src/plugins/anchorPlugin/index.js +1 -19
- package/es/components/iho-table/src/plugins/anchorPlugin/tableAnchor.js +1 -51
- package/es/components/iho-table/src/plugins/anchorPlugin/useAnchor.js +1 -87
- package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.js +1 -48
- package/es/components/iho-table/src/plugins/filterPlugin/filter.vue.js +1 -230
- package/es/components/iho-table/src/plugins/filterPlugin/index.js +1 -240
- package/es/components/iho-table/src/plugins/index.js +1 -47
- package/es/components/iho-table/src/plugins/keyboardEventPlugin/index.js +1 -30
- package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +1 -127
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.js +1 -203
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.js +1 -41
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useAutoFocus.js +1 -21
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/inputRendererPlugin.js +1 -41
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +1 -79
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -64
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -46
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.js +1 -16
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue.js +1 -108
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +1 -163
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/separateUtils.js +1 -42
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin.js +1 -50
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/checkRendererPlugin.js +1 -30
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/colorRendererPlugin.js +1 -48
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/defaultRendererPlugin.js +1 -62
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/labelRendererPlugin.js +1 -52
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/pictureRendererPlugin.js +1 -92
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/seqRendererPlugin.js +1 -59
- package/es/components/iho-table/src/plugins/rowClickPlugin/index.js +1 -34
- package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/index.js +1 -30
- package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/rowGroupUtils.js +1 -53
- package/es/components/iho-table/src/plugins/virtualTreePlugin/index.js +1 -100
- package/es/components/iho-table/src/types/index.js +1 -1
- package/es/components/iho-table/src/types/pluginType.js +1 -16
- package/es/components/iho-table/src/utils/index.js +1 -169
- package/es/components/index.js +1 -119
- package/es/components/info-header/index.js +1 -10
- package/es/components/info-header/src/HiddenContent.vue.js +1 -70
- package/es/components/info-header/src/InfoEllipsis.vue.js +1 -43
- package/es/components/info-header/src/InfoHeader.vue.js +1 -313
- package/es/components/insurance-sdk/index.js +1 -1
- package/es/components/insurance-sdk/src/constants/index.js +1 -160
- package/es/components/insurance-sdk/src/utils/index.js +1 -1
- package/es/components/insurance-sdk/src/utils/insurance.js +1 -268
- package/es/components/keyboard/index.d.ts +4 -21
- package/es/components/keyboard/index.js +1 -10
- package/es/components/keyboard/src/Keyboard.vue.d.ts +4 -21
- package/es/components/keyboard/src/Keyboard.vue.js +1 -164
- package/es/components/keyboard/src/components/InputNumber.vue.d.ts +2 -19
- package/es/components/keyboard/src/components/InputNumber.vue.js +1 -94
- package/es/components/keyboard/src/components/NumberPanel.vue.d.ts +4 -21
- package/es/components/keyboard/src/components/NumberPanel.vue.js +1 -299
- package/es/components/keyboard/src/utils/index.js +1 -5
- package/es/components/map/index.js +1 -10
- package/es/components/map/src/Map.vue.js +1 -336
- package/es/components/recommend-search/index.js +1 -10
- package/es/components/recommend-search/src/RecommendSearch.vue.js +1 -63
- package/es/components/recommend-search/src/components/BaseSearch.vue.js +1 -157
- package/es/components/recommend-search/src/components/RecommendInput.vue.js +1 -125
- package/es/components/recommend-search/src/components/RecommendMenu.vue.js +1 -104
- package/es/components/recommend-search/src/components/RecommendSelect.vue.js +1 -146
- package/es/components/recommend-search/src/constant/index.js +1 -7
- package/es/components/scale-view/index.js +1 -35
- package/es/components/scale-view/src/ScaleView.vue.d.ts +0 -3
- package/es/components/scale-view/src/ScaleView.vue.js +1 -429
- package/es/components/scale-view/src/components/AnswerParse.vue.js +1 -80
- package/es/components/scale-view/src/components/EvaluateCountdown.vue.js +1 -117
- package/es/components/scale-view/src/components/EvaluatePage.vue.js +1 -141
- package/es/components/scale-view/src/components/LoadingCom.vue.js +1 -19
- package/es/components/scale-view/src/components/NoData.vue.js +1 -74
- package/es/components/scale-view/src/components/ScaleScore.js +1 -63
- package/es/components/scale-view/src/components/composables/choose-common.js +1 -83
- package/es/components/scale-view/src/components/formitem/address.js +1 -3993
- package/es/components/scale-view/src/components/formitem/r-address.js +1 -226
- package/es/components/scale-view/src/components/formitem/r-cascader.js +1 -133
- package/es/components/scale-view/src/components/formitem/r-checkbox.js +1 -281
- package/es/components/scale-view/src/components/formitem/r-collection.js +1 -111
- package/es/components/scale-view/src/components/formitem/r-datetime.js +1 -212
- package/es/components/scale-view/src/components/formitem/r-input.js +1 -86
- package/es/components/scale-view/src/components/formitem/r-map.js +1 -106
- package/es/components/scale-view/src/components/formitem/r-radio.js +1 -240
- package/es/components/scale-view/src/components/formitem/r-select.js +1 -202
- package/es/components/scale-view/src/components/formitem/r-sign.js +1 -177
- package/es/components/scale-view/src/components/formitem/r-upload.js +1 -215
- package/es/components/scale-view/src/components/formitem/sign-com.js +1 -307
- package/es/components/scale-view/src/components/formitem/standard-modal.js +1 -129
- package/es/components/scale-view/src/hooks/scaleview-computed.js +1 -354
- package/es/components/scale-view/src/hooks/scaleview-init.js +1 -437
- package/es/components/scale-view/src/hooks/scaleview-props.js +1 -81
- package/es/components/scale-view/src/hooks/scaleview-state.js +1 -38
- package/es/components/scale-view/src/hooks/scaleview-submit.js +1 -154
- package/es/components/scale-view/src/hooks/scaleview-validate.js +1 -187
- package/es/components/scale-view/src/hooks/use-component.js +1 -86
- package/es/components/scale-view/src/hooks/use-evaluate.js +1 -150
- package/es/components/scale-view/src/hooks/use-event.js +1 -129
- package/es/components/scale-view/src/hooks/use-noData.js +1 -41
- package/es/components/scale-view/src/utils/judge-types.js +1 -36
- package/es/components/search-cascader/index.js +1 -10
- package/es/components/search-cascader/src/SearchCascader.vue.js +1 -194
- package/es/components/search-cascader/src/components/SearchMenu.js +1 -196
- package/es/components/search-cascader/src/components/index.js +1 -1
- package/es/components/search-cascader/src/constants/index.js +1 -11
- package/es/components/search-cascader/src/hooks/index.js +1 -1
- package/es/components/search-cascader/src/hooks/useCssVariable.js +1 -7
- package/es/components/search-cascader/src/utils/index.js +1 -11
- package/es/components/select-label/index.js +1 -15
- package/es/components/select-label/src/LabelFormContent.vue.js +1 -447
- package/es/components/select-label/src/SelectLabel.vue.js +1 -6
- package/es/components/select-label/src/SelectLabel.vue2.js +1 -451
- package/es/components/select-label/src/components/label-classify.vue.js +1 -132
- package/es/components/select-person/index.js +1 -10
- package/es/components/select-person/src/SelectPerson.vue.js +1 -6
- package/es/components/select-person/src/SelectPerson.vue2.js +1 -303
- package/es/components/select-person/src/utils/index.js +1 -58
- package/es/components/shortcut-provider/index.js +1 -12
- package/es/components/shortcut-provider/src/ShortcutProvider.vue.js +1 -42
- package/es/components/shortcut-provider/src/constants/index.js +1 -8
- package/es/components/shortcut-provider/src/hooks/index.js +1 -2
- package/es/components/shortcut-provider/src/hooks/useShortcutSignature.js +1 -12
- package/es/components/shortcut-provider/src/hooks/useShortcuts.js +1 -188
- package/es/components/shortcut-provider/src/utils/index.js +1 -92
- package/es/components/shortcut-setter/index.d.ts +1 -1
- package/es/components/shortcut-setter/index.js +1 -10
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +1 -1
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.js +1 -98
- package/es/components/shortcut-setter/src/ShortcutSetterItem.vue.js +1 -76
- package/es/components/steps-wheel/index.js +1 -10
- package/es/components/steps-wheel/src/StepsWheel.vue.js +1 -376
- package/es/components/table-filter/index.js +1 -21
- package/es/components/table-filter/src/base-search-com/BaseSearch.vue.d.ts +3 -0
- package/es/components/table-filter/src/base-search-com/BaseSearch.vue.js +1 -2272
- package/es/components/table-filter/src/classification/Classification-com.vue.js +1 -1315
- package/es/components/table-filter/src/classification/search-class-name.vue.js +1 -195
- package/es/components/table-filter/src/classification/search-professional-model.vue.js +1 -594
- package/es/components/table-filter/src/components/age-com/index.vue.js +1 -185
- package/es/components/table-filter/src/components/button-group/ButtonGroup.vue.js +1 -86
- package/es/components/table-filter/src/components/button-icon/getBtnIcon.js +1 -30
- package/es/components/table-filter/src/components/c-tree-select/tree-select.vue.js +1 -253
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.js +1 -114
- package/es/components/table-filter/src/components/classify-filter/helpers/options.js +1 -14
- package/es/components/table-filter/src/components/classify-filter/hooks/useDisplayCategory.js +1 -87
- package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.js +1 -147
- package/es/components/table-filter/src/components/classify-filter/index.vue.js +1 -304
- package/es/components/table-filter/src/components/multi-select/multi-select.vue.js +1 -153
- package/es/components/table-filter/src/components/out-quick-search/out-quick-search.vue.js +1 -310
- package/es/components/table-filter/src/components/range-age/index.vue.js +1 -137
- package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.js +1 -64
- package/es/components/table-filter/src/components/render-widget/components/Select.vue.js +1 -45
- package/es/components/table-filter/src/components/render-widget/components/index.js +1 -2
- package/es/components/table-filter/src/components/render-widget/enums.js +1 -27
- package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.js +1 -70
- package/es/components/table-filter/src/components/render-widget/index.vue.js +1 -107
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -152
- package/es/components/table-filter/src/components/search-condition/SearchCondition.vue.js +1 -1520
- package/es/components/table-filter/src/components/search-condition/fieldTypeList.js +1 -171
- package/es/components/table-filter/src/components/search-filter/SearchFilter.vue.js +1 -199
- package/es/components/table-filter/src/components/search-modal/set-classification.vue.js +1 -241
- package/es/components/table-filter/src/components/table-modal/TableModal.vue.js +1 -526
- package/es/components/table-filter/src/const/dataOptions.js +1 -107
- package/es/components/table-filter/src/const/index.js +1 -5
- package/es/components/table-filter/src/directive/flexibleResize.js +1 -157
- package/es/components/table-filter/src/directive/preventReClick.js +1 -14
- package/es/components/table-filter/src/directive/resize.js +1 -12
- package/es/components/table-filter/src/hooks/export.js +1 -1
- package/es/components/table-filter/src/hooks/useAdvanced.js +1 -64
- package/es/components/table-filter/src/hooks/useMixins.js +1 -532
- package/es/components/table-filter/src/hooks/useRenderWidget.js +1 -94
- package/es/components/table-filter/src/hooks/useTableSearchCon.js +1 -131
- package/es/components/table-filter/src/hooks/useWordBookutils.js +1 -91
- package/es/components/table-filter/src/quick-search/QuickSearch.vue.d.ts +4 -3
- package/es/components/table-filter/src/quick-search/QuickSearch.vue.js +1 -2038
- package/es/components/table-filter/src/tool/generateDefOptions.js +1 -65
- package/es/components/table-filter/src/tool/getWidgetType.js +1 -27
- package/es/components/table-filter/src/tool/options.js +1 -200
- package/es/components/table-filter/src/tool/resizeSensor.js +1 -123
- package/es/components/table-filter/src/tool/time-domain.js +1 -100
- package/es/components/table-filter/src/tool/transformData.js +1 -169
- package/es/components/table-filter/src/tool/utils.js +1 -29
- package/es/components/table-filter/src/types/enums.js +1 -67
- package/es/components/time-line/index.js +1 -10
- package/es/components/time-line/src/TimeLine.vue.js +1 -70
- package/es/components/vod-chunk-upload/index.js +1 -14
- package/es/components/vod-chunk-upload/src/chunk-upload-new.vue.js +1 -480
- package/es/components/vod-chunk-upload/src/hooks/upload-computed.js +1 -70
- package/es/components/vod-chunk-upload/src/hooks/upload-data.js +1 -96
- package/es/components/vod-chunk-upload/src/hooks/vod-computed.js +1 -79
- package/es/components/vod-chunk-upload/src/hooks/vod-data.js +1 -28
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/index.js +1 -2
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.js +1 -332
- package/es/components/vod-chunk-upload/src/vod-upload-modal.js +1 -94
- package/es/env.d.ts +24 -24
- package/es/shared/assets/img/failure.png.js +1 -3
- package/es/shared/assets/img/no-permission.png.js +1 -3
- package/es/shared/assets/img/nodata.png.js +1 -3
- package/es/shared/assets/img/notfound.png.js +1 -3
- package/es/shared/assets/img/qr.png.js +1 -3
- package/es/shared/assets/img/success.png.js +1 -3
- package/es/shared/assets/img/video.png.js +1 -3
- package/es/shared/assets/img/video_default_cover.png.js +1 -3
- package/es/shared/assets/img/xb_big.png.js +1 -3
- package/es/shared/assets/img/xb_small.png.js +1 -3
- package/es/shared/components/SelectPage/SelectPage.vue.js +1 -61
- package/es/shared/components/SelectPage/index.js +1 -2
- package/es/shared/components/SlotRender/SlotRender.js +1 -35
- package/es/shared/components/SlotRender/index.js +1 -2
- package/es/shared/components/SvgIcon/SvgIcon.vue.js +1 -36
- package/es/shared/components/SvgIcon/index.js +1 -2
- package/es/shared/components/TextOverTooltip/TextOverTooltip.vue.js +1 -77
- package/es/shared/components/TextOverTooltip/index.js +1 -2
- package/es/shared/components/VueDraggable/index.js +1 -2
- package/es/shared/components/VueDraggable/src/core/componentBuilderHelper.js +1 -35
- package/es/shared/components/VueDraggable/src/core/componentStructure.js +1 -54
- package/es/shared/components/VueDraggable/src/core/renderHelper.js +1 -47
- package/es/shared/components/VueDraggable/src/core/sortableEvents.js +1 -14
- package/es/shared/components/VueDraggable/src/util/console.js +1 -9
- package/es/shared/components/VueDraggable/src/util/htmlHelper.js +1 -11
- package/es/shared/components/VueDraggable/src/util/string.js +1 -11
- package/es/shared/components/VueDraggable/src/util/tags.js +1 -130
- package/es/shared/components/VueDraggable/src/vuedraggable.js +1 -265
- package/es/shared/components/no-data/NoData.vue.js +1 -74
- package/es/shared/components/no-data/index.js +1 -2
- package/es/shared/components/player-vod/player.js +1 -121
- package/es/shared/components/player-vod/video-modal.js +1 -91
- package/es/shared/global/variable.js +1 -3
- package/es/shared/utils/anime.js +1 -129
- package/es/shared/utils/colorLog.js +1 -53
- package/es/shared/utils/index.js +1 -167
- package/es/shared/utils/loadViewer.js +1 -11
- package/es/shared/utils/tapable/AsyncParallelBailHook.js +1 -63
- package/es/shared/utils/tapable/AsyncParallelHook.js +1 -27
- package/es/shared/utils/tapable/AsyncSeriesBailHook.js +1 -18
- package/es/shared/utils/tapable/AsyncSeriesHook.js +1 -27
- package/es/shared/utils/tapable/AsyncSeriesLoopHook.js +1 -12
- package/es/shared/utils/tapable/AsyncSeriesWaterfallHook.js +1 -22
- package/es/shared/utils/tapable/Hook.js +1 -140
- package/es/shared/utils/tapable/HookCodeFactory.js +1 -456
- package/es/shared/utils/tapable/SyncBailHook.js +1 -19
- package/es/shared/utils/tapable/SyncHook.js +1 -34
- package/es/shared/utils/tapable/SyncLoopHook.js +1 -13
- package/es/shared/utils/tapable/SyncWaterfallHook.js +1 -47
- package/es/shared/utils/utilExpand.js +1 -781
- package/es/shared/utils/vexutils.js +1 -59
- package/package.json +2 -2
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
- package/es/components/fabric-chart/src/utils/index.d.ts +0 -6823
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
- package/es/shared/utils/tapable/index.d.ts +0 -139
|
@@ -1,301 +1 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
const useBatchEditing = (props, state, emit, xGrid) => {
|
|
4
|
-
let _batchFieldList = [];
|
|
5
|
-
const allSelectedLength = computed(() => {
|
|
6
|
-
var _a;
|
|
7
|
-
return (_a = state.checkedRows) == null ? void 0 : _a.length;
|
|
8
|
-
});
|
|
9
|
-
watch(
|
|
10
|
-
() => props.isBatchEditing,
|
|
11
|
-
(val) => {
|
|
12
|
-
if (!val || props.isNestTable)
|
|
13
|
-
return false;
|
|
14
|
-
if (state.isTree != 0 || !props.isMatchComponent)
|
|
15
|
-
return false;
|
|
16
|
-
if (!checkOperateCurrentTable()) {
|
|
17
|
-
resetBatchOperationRowStatus();
|
|
18
|
-
return false;
|
|
19
|
-
}
|
|
20
|
-
hideSelectCloumns();
|
|
21
|
-
handleClickBatchEditBtnByInline();
|
|
22
|
-
}
|
|
23
|
-
);
|
|
24
|
-
watch(
|
|
25
|
-
() => props.isBatchSave,
|
|
26
|
-
(val) => {
|
|
27
|
-
if (!val || props.isNestTable)
|
|
28
|
-
return false;
|
|
29
|
-
if (state.isTree != 0 || !props.isMatchComponent)
|
|
30
|
-
return false;
|
|
31
|
-
if (!checkOperateCurrentTable())
|
|
32
|
-
return false;
|
|
33
|
-
handleClickBatchSaveBtnByInline();
|
|
34
|
-
}
|
|
35
|
-
);
|
|
36
|
-
watch(
|
|
37
|
-
() => props.isBatchCancel,
|
|
38
|
-
(val) => {
|
|
39
|
-
if (!val || props.isNestTable)
|
|
40
|
-
return false;
|
|
41
|
-
if (state.isTree != 0 || !props.isMatchComponent)
|
|
42
|
-
return false;
|
|
43
|
-
if (!checkOperateCurrentTable())
|
|
44
|
-
return false;
|
|
45
|
-
handleClickBatchCancelBtnByInline();
|
|
46
|
-
}
|
|
47
|
-
);
|
|
48
|
-
watch(
|
|
49
|
-
() => props.isBatchCancel,
|
|
50
|
-
(val) => {
|
|
51
|
-
if (!val || props.isNestTable)
|
|
52
|
-
return false;
|
|
53
|
-
if (state.isTree != 0 || !props.isMatchComponent)
|
|
54
|
-
return false;
|
|
55
|
-
if (!checkOperateCurrentTable())
|
|
56
|
-
return false;
|
|
57
|
-
handleClickBatchCancelBtnByInline();
|
|
58
|
-
}
|
|
59
|
-
);
|
|
60
|
-
const checkOperateCurrentTable = () => {
|
|
61
|
-
var _a;
|
|
62
|
-
if (props.isNestTable)
|
|
63
|
-
return false;
|
|
64
|
-
let id = props.inlineEditCurrentOperateBtnId;
|
|
65
|
-
let find = (_a = props.btnList) == null ? void 0 : _a.find((item) => {
|
|
66
|
-
var _a2, _b;
|
|
67
|
-
return ((_b = (_a2 = item == null ? void 0 : item.settingObj) == null ? void 0 : _a2[0]) == null ? void 0 : _b.obj_id) === id;
|
|
68
|
-
});
|
|
69
|
-
return !!find;
|
|
70
|
-
};
|
|
71
|
-
const setRowStatus = (vxeTable, rowIndex, value) => {
|
|
72
|
-
if (!vxeTable)
|
|
73
|
-
return false;
|
|
74
|
-
let tableWrap = [
|
|
75
|
-
vxeTable.querySelector(".vxe-table--main-wrapper"),
|
|
76
|
-
vxeTable.querySelector(".vxe-table--fixed-left-wrapper"),
|
|
77
|
-
vxeTable.querySelector(".vxe-table--fixed-right-wrapper"),
|
|
78
|
-
vxeTable.querySelector(".vxe-table--body-wrapper")
|
|
79
|
-
].filter((item) => item);
|
|
80
|
-
let rowWrap = [];
|
|
81
|
-
tableWrap.forEach((table) => {
|
|
82
|
-
let row = [...table.querySelectorAll(".vxe-body--row")];
|
|
83
|
-
rowWrap.push(row[rowIndex]);
|
|
84
|
-
});
|
|
85
|
-
rowWrap = rowWrap.filter((item) => item);
|
|
86
|
-
let height = value ? `${value}px` : value;
|
|
87
|
-
let lineHeight = value ? `${value - 10}px` : value;
|
|
88
|
-
rowWrap.forEach((wrap) => {
|
|
89
|
-
let rowItemWrap = [...wrap.querySelectorAll(".vxe-cell")];
|
|
90
|
-
rowItemWrap.push(...[...wrap.querySelectorAll(".vxe-body--column")]);
|
|
91
|
-
rowItemWrap.forEach((dom) => {
|
|
92
|
-
dom.style.setProperty("height", height, "important");
|
|
93
|
-
dom.style.lineHeight = lineHeight;
|
|
94
|
-
if (height) {
|
|
95
|
-
dom.style.backgroundColor = "#EFF5FF";
|
|
96
|
-
setTimeout(() => {
|
|
97
|
-
dom.title = "";
|
|
98
|
-
}, 1e3);
|
|
99
|
-
} else {
|
|
100
|
-
dom.style.backgroundColor = null;
|
|
101
|
-
}
|
|
102
|
-
});
|
|
103
|
-
});
|
|
104
|
-
};
|
|
105
|
-
const resetBatchOperationRowStatus = () => {
|
|
106
|
-
if (state.isTree != 0)
|
|
107
|
-
return false;
|
|
108
|
-
const vxeTable = xGrid.value;
|
|
109
|
-
let { tableData } = vxeTable.getTableData();
|
|
110
|
-
vxeTable.clearActived();
|
|
111
|
-
vxeTable.resetColumn();
|
|
112
|
-
tableData.forEach((row, index) => {
|
|
113
|
-
setRowStatus(vxeTable.$el, index, null);
|
|
114
|
-
row["__isInlineEditing"] = false;
|
|
115
|
-
row["__isDisableInlineEdit"] = false;
|
|
116
|
-
});
|
|
117
|
-
};
|
|
118
|
-
const hideSelectCloumns = () => {
|
|
119
|
-
var _a;
|
|
120
|
-
const vxeTable = xGrid.value;
|
|
121
|
-
let findSelectCloumns = (_a = vxeTable.getColumns()) == null ? void 0 : _a.find((item) => item.type === state.selectType);
|
|
122
|
-
findSelectCloumns && vxeTable.hideColumn(findSelectCloumns);
|
|
123
|
-
};
|
|
124
|
-
const checkListFormUnionSettingParamsList = () => {
|
|
125
|
-
var _a, _b, _c;
|
|
126
|
-
if (!((_b = (_a = props.listFormUnionSetting) == null ? void 0 : _a.paramsList) == null ? void 0 : _b.length)) {
|
|
127
|
-
window.$message.warning("\u53EF\u7F16\u8F91\u884C\u9700\u8981\u8BBE\u7F6E\u5173\u8054\u8868\u5355\u5B57\u6BB5\uFF0C\u8BBE\u7F6E\u540E\u8BF7\u91CD\u8BD5\uFF01");
|
|
128
|
-
emit("resetInlineEditAll", false);
|
|
129
|
-
emit("triggerSpinning", false);
|
|
130
|
-
return false;
|
|
131
|
-
}
|
|
132
|
-
let find = (_c = props.fieldListOriginal) == null ? void 0 : _c.find((item) => item.isEdit == 1);
|
|
133
|
-
if (!find) {
|
|
134
|
-
window.$message.warning("\u6CA1\u6709\u8BBE\u7F6E\u53EF\u7F16\u8F91\u5B57\u6BB5\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458");
|
|
135
|
-
emit("resetInlineEditAll", false);
|
|
136
|
-
emit("triggerSpinning", false);
|
|
137
|
-
return false;
|
|
138
|
-
}
|
|
139
|
-
return true;
|
|
140
|
-
};
|
|
141
|
-
const resetStoreInlineOperationStatus = () => {
|
|
142
|
-
if (state.isTree != 0)
|
|
143
|
-
return false;
|
|
144
|
-
state.isSaveForm = false;
|
|
145
|
-
};
|
|
146
|
-
const getInlineOpreateRow = () => {
|
|
147
|
-
const vxeTable = xGrid.value;
|
|
148
|
-
if (props.isInlineAdding) {
|
|
149
|
-
let { tableData } = vxeTable.getTableData();
|
|
150
|
-
return {
|
|
151
|
-
row: tableData[0],
|
|
152
|
-
rowIndex: 0
|
|
153
|
-
};
|
|
154
|
-
}
|
|
155
|
-
if (state.showButtonTop == 0) {
|
|
156
|
-
let { row: row2, index: rowIndex } = state.currentClickBtnInfo || {};
|
|
157
|
-
return {
|
|
158
|
-
row: row2,
|
|
159
|
-
rowIndex
|
|
160
|
-
};
|
|
161
|
-
}
|
|
162
|
-
let row = props.clickRowData;
|
|
163
|
-
for (var i = 0; i < props.oldtableData.length; i++) {
|
|
164
|
-
let item = props.oldtableData[i];
|
|
165
|
-
if (item[props.primaryKey] === row[props.primaryKey])
|
|
166
|
-
break;
|
|
167
|
-
}
|
|
168
|
-
return {
|
|
169
|
-
row,
|
|
170
|
-
rowIndex: i
|
|
171
|
-
};
|
|
172
|
-
};
|
|
173
|
-
const setAllRowInlineStatus = (disabled = false) => {
|
|
174
|
-
const vxeTable = xGrid.value;
|
|
175
|
-
let { tableData } = vxeTable.getTableData();
|
|
176
|
-
tableData.forEach((row) => {
|
|
177
|
-
row["__isInlineEditing"] = false;
|
|
178
|
-
row["__isDisableInlineEdit"] = disabled;
|
|
179
|
-
});
|
|
180
|
-
};
|
|
181
|
-
const recordClickBtnInfo = (row, index) => {
|
|
182
|
-
state.currentClickBtnInfo = {
|
|
183
|
-
row,
|
|
184
|
-
index
|
|
185
|
-
};
|
|
186
|
-
};
|
|
187
|
-
const resetOperationRowStatus = () => {
|
|
188
|
-
if (state.isTree != 0)
|
|
189
|
-
return false;
|
|
190
|
-
const vxeTable = xGrid.value;
|
|
191
|
-
let { row, rowIndex } = getInlineOpreateRow();
|
|
192
|
-
if (!row)
|
|
193
|
-
return false;
|
|
194
|
-
if (row == null ? void 0 : row.__isInsertRow) {
|
|
195
|
-
vxeTable.remove(row);
|
|
196
|
-
}
|
|
197
|
-
vxeTable.clearActived().then(() => {
|
|
198
|
-
row && vxeTable.revertData(row);
|
|
199
|
-
setRowStatus(vxeTable.$el, rowIndex, null);
|
|
200
|
-
vxeTable.resetColumn();
|
|
201
|
-
setAllRowInlineStatus();
|
|
202
|
-
recordClickBtnInfo();
|
|
203
|
-
});
|
|
204
|
-
};
|
|
205
|
-
const handleClickCancelBtnByInline = async () => {
|
|
206
|
-
const vxeTable = xGrid.value;
|
|
207
|
-
setRowStatus(vxeTable.$el, 0, null);
|
|
208
|
-
resetStoreInlineOperationStatus();
|
|
209
|
-
await vxeTable.reloadData(state.originFormatList);
|
|
210
|
-
resetOperationRowStatus();
|
|
211
|
-
emit("handleClickBtnByInline", {
|
|
212
|
-
type: "CANCEL"
|
|
213
|
-
});
|
|
214
|
-
};
|
|
215
|
-
const getBatchOpreateRows = () => {
|
|
216
|
-
const vxeTable = xGrid.value;
|
|
217
|
-
let arr = state.checkedRows;
|
|
218
|
-
let { tableData } = vxeTable.getTableData();
|
|
219
|
-
if (props.isEditAllRow) {
|
|
220
|
-
arr = tableData;
|
|
221
|
-
}
|
|
222
|
-
arr.forEach((item, i) => {
|
|
223
|
-
let rowIndex = i;
|
|
224
|
-
if (!props.isEditAllRow) {
|
|
225
|
-
let matchIndex = tableData.findIndex((v) => v[props.primaryKey] == item[props.primaryKey]);
|
|
226
|
-
if (matchIndex > -1) {
|
|
227
|
-
rowIndex = matchIndex;
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
setRowStatus(vxeTable.$el, rowIndex, "66");
|
|
231
|
-
item["__isInlineEditing"] = true;
|
|
232
|
-
});
|
|
233
|
-
};
|
|
234
|
-
const handleClickBatchEditBtnByInline = async () => {
|
|
235
|
-
if (!checkListFormUnionSettingParamsList()) {
|
|
236
|
-
handleClickCancelBtnByInline();
|
|
237
|
-
return false;
|
|
238
|
-
}
|
|
239
|
-
let arr = state.checkedRows;
|
|
240
|
-
const vxeTable = xGrid.value;
|
|
241
|
-
let { tableData } = vxeTable.getTableData();
|
|
242
|
-
if (props.isEditAllRow) {
|
|
243
|
-
arr = tableData;
|
|
244
|
-
}
|
|
245
|
-
await vxeTable.loadData(arr);
|
|
246
|
-
await props.resetInlineBatchEdit();
|
|
247
|
-
setAllRowInlineStatus(true);
|
|
248
|
-
getBatchOpreateRows();
|
|
249
|
-
};
|
|
250
|
-
const handleEditFormLength = () => {
|
|
251
|
-
let fieldLength = _batchFieldList.length;
|
|
252
|
-
if (!fieldLength)
|
|
253
|
-
return;
|
|
254
|
-
if (props.isInlineAdding) {
|
|
255
|
-
return fieldLength;
|
|
256
|
-
}
|
|
257
|
-
let rowLen = allSelectedLength.value;
|
|
258
|
-
const vxeTable = xGrid.value;
|
|
259
|
-
let { tableData } = vxeTable.getTableData();
|
|
260
|
-
if (props.isEditAllRow) {
|
|
261
|
-
rowLen = tableData.length;
|
|
262
|
-
}
|
|
263
|
-
if (!rowLen)
|
|
264
|
-
return;
|
|
265
|
-
return fieldLength * rowLen;
|
|
266
|
-
};
|
|
267
|
-
const handleClickBatchSaveBtnByInline = () => {
|
|
268
|
-
if (props.spinning)
|
|
269
|
-
return false;
|
|
270
|
-
emit("resetBatchEditDoneStatus");
|
|
271
|
-
let formDom = document.querySelectorAll(".js-inlineEditForm");
|
|
272
|
-
let sliceLen = handleEditFormLength();
|
|
273
|
-
formDom = [...formDom].slice(0, sliceLen);
|
|
274
|
-
formDom.forEach((item) => {
|
|
275
|
-
item.__vue__.handleSubmitForm();
|
|
276
|
-
});
|
|
277
|
-
};
|
|
278
|
-
const handleClickBatchCancelBtnByInline = async () => {
|
|
279
|
-
state.isSaveForm = false;
|
|
280
|
-
emit("resetInlineEditAll", false);
|
|
281
|
-
const vxeTable = xGrid.value;
|
|
282
|
-
await vxeTable.reloadData(state.originFormatList);
|
|
283
|
-
resetBatchOperationRowStatus();
|
|
284
|
-
};
|
|
285
|
-
return {
|
|
286
|
-
allSelectedLength,
|
|
287
|
-
checkOperateCurrentTable,
|
|
288
|
-
setRowStatus,
|
|
289
|
-
resetBatchOperationRowStatus,
|
|
290
|
-
checkListFormUnionSettingParamsList,
|
|
291
|
-
handleClickCancelBtnByInline,
|
|
292
|
-
setAllRowInlineStatus,
|
|
293
|
-
hideSelectCloumns,
|
|
294
|
-
handleEditFormLength,
|
|
295
|
-
getInlineOpreateRow,
|
|
296
|
-
resetOperationRowStatus,
|
|
297
|
-
recordClickBtnInfo
|
|
298
|
-
};
|
|
299
|
-
};
|
|
300
|
-
|
|
301
|
-
export { useBatchEditing };
|
|
1
|
+
import{computed as e,watch as t}from"vue";const l=(l,i,n,r)=>{let a=[];const o=e((()=>{var e;return null==(e=i.checkedRows)?void 0:e.length}));t((()=>l.isBatchEditing),(e=>!(!e||l.isNestTable)&&(!(0!=i.isTree||!l.isMatchComponent)&&(s()?(u(),void b()):(c(),!1))))),t((()=>l.isBatchSave),(e=>!(!e||l.isNestTable)&&(!(0!=i.isTree||!l.isMatchComponent)&&(!!s()&&void y())))),t((()=>l.isBatchCancel),(e=>!(!e||l.isNestTable)&&(!(0!=i.isTree||!l.isMatchComponent)&&(!!s()&&void E())))),t((()=>l.isBatchCancel),(e=>!(!e||l.isNestTable)&&(!(0!=i.isTree||!l.isMatchComponent)&&(!!s()&&void E()))));const s=()=>{var e;if(l.isNestTable)return!1;let t=l.inlineEditCurrentOperateBtnId;return!!(null==(e=l.btnList)?void 0:e.find((e=>{var l,i;return(null==(i=null==(l=null==e?void 0:e.settingObj)?void 0:l[0])?void 0:i.obj_id)===t})))},d=(e,t,l)=>{if(!e)return!1;let i=[e.querySelector(".vxe-table--main-wrapper"),e.querySelector(".vxe-table--fixed-left-wrapper"),e.querySelector(".vxe-table--fixed-right-wrapper"),e.querySelector(".vxe-table--body-wrapper")].filter((e=>e)),n=[];i.forEach((e=>{let l=[...e.querySelectorAll(".vxe-body--row")];n.push(l[t])})),n=n.filter((e=>e));let r=l?`${l}px`:l,a=l?l-10+"px":l;n.forEach((e=>{let t=[...e.querySelectorAll(".vxe-cell")];t.push(...e.querySelectorAll(".vxe-body--column")),t.forEach((e=>{e.style.setProperty("height",r,"important"),e.style.lineHeight=a,r?(e.style.backgroundColor="#EFF5FF",setTimeout((()=>{e.title=""}),1e3)):e.style.backgroundColor=null}))}))},c=()=>{if(0!=i.isTree)return!1;const e=r.value;let{tableData:t}=e.getTableData();e.clearActived(),e.resetColumn(),t.forEach(((t,l)=>{d(e.$el,l,null),t.__isInlineEditing=!1,t.__isDisableInlineEdit=!1}))},u=()=>{var e;const t=r.value;let l=null==(e=t.getColumns())?void 0:e.find((e=>e.type===i.selectType));l&&t.hideColumn(l)},v=()=>{var e,t,i;if(!(null==(t=null==(e=l.listFormUnionSetting)?void 0:e.paramsList)?void 0:t.length))return window.$message.warning("可编辑行需要设置关联表单字段,设置后请重试!"),n("resetInlineEditAll",!1),n("triggerSpinning",!1),!1;return!!(null==(i=l.fieldListOriginal)?void 0:i.find((e=>1==e.isEdit)))||(window.$message.warning("没有设置可编辑字段,请联系管理员"),n("resetInlineEditAll",!1),n("triggerSpinning",!1),!1)},h=()=>{const e=r.value;if(l.isInlineAdding){let{tableData:t}=e.getTableData();return{row:t[0],rowIndex:0}}if(0==i.showButtonTop){let{row:e,index:t}=i.currentClickBtnInfo||{};return{row:e,rowIndex:t}}let t=l.clickRowData;for(var n=0;n<l.oldtableData.length;n++){if(l.oldtableData[n][l.primaryKey]===t[l.primaryKey])break}return{row:t,rowIndex:n}},g=(e=!1)=>{const t=r.value;let{tableData:l}=t.getTableData();l.forEach((t=>{t.__isInlineEditing=!1,t.__isDisableInlineEdit=e}))},w=(e,t)=>{i.currentClickBtnInfo={row:e,index:t}},f=()=>{if(0!=i.isTree)return!1;const e=r.value;let{row:t,rowIndex:l}=h();if(!t)return!1;(null==t?void 0:t.__isInsertRow)&&e.remove(t),e.clearActived().then((()=>{t&&e.revertData(t),d(e.$el,l,null),e.resetColumn(),g(),w()}))},p=async()=>{const e=r.value;d(e.$el,0,null),(()=>{if(0!=i.isTree)return!1;i.isSaveForm=!1})(),await e.reloadData(i.originFormatList),f(),n("handleClickBtnByInline",{type:"CANCEL"})},b=async()=>{if(!v())return p(),!1;let e=i.checkedRows;const t=r.value;let{tableData:n}=t.getTableData();l.isEditAllRow&&(e=n),await t.loadData(e),await l.resetInlineBatchEdit(),g(!0),(()=>{const e=r.value;let t=i.checkedRows,{tableData:n}=e.getTableData();l.isEditAllRow&&(t=n),t.forEach(((t,i)=>{let r=i;if(!l.isEditAllRow){let e=n.findIndex((e=>e[l.primaryKey]==t[l.primaryKey]));e>-1&&(r=e)}d(e.$el,r,"66"),t.__isInlineEditing=!0}))})()},m=()=>{let e=a.length;if(!e)return;if(l.isInlineAdding)return e;let t=o.value;const i=r.value;let{tableData:n}=i.getTableData();return l.isEditAllRow&&(t=n.length),t?e*t:void 0},y=()=>{if(l.spinning)return!1;n("resetBatchEditDoneStatus");let e=document.querySelectorAll(".js-inlineEditForm"),t=m();e=[...e].slice(0,t),e.forEach((e=>{e.__vue__.handleSubmitForm()}))},E=async()=>{i.isSaveForm=!1,n("resetInlineEditAll",!1);const e=r.value;await e.reloadData(i.originFormatList),c()};return{allSelectedLength:o,checkOperateCurrentTable:s,setRowStatus:d,resetBatchOperationRowStatus:c,checkListFormUnionSettingParamsList:v,handleClickCancelBtnByInline:p,setAllRowInlineStatus:g,hideSelectCloumns:u,handleEditFormLength:m,getInlineOpreateRow:h,resetOperationRowStatus:f,recordClickBtnInfo:w}};export{l as useBatchEditing};
|
|
@@ -1,133 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import EditInput from '../components/edit-form/edit-input.js';
|
|
3
|
-
import EditSelect from '../components/edit-form/edit-select.js';
|
|
4
|
-
import EditDate from '../components/edit-form/edit-date.js';
|
|
5
|
-
import EditSeparate from '../components/edit-form/edit-separate.vue.js';
|
|
6
|
-
|
|
7
|
-
const comps = {
|
|
8
|
-
input: EditInput,
|
|
9
|
-
number: EditInput,
|
|
10
|
-
select: EditSelect,
|
|
11
|
-
date: EditDate,
|
|
12
|
-
time: EditTime,
|
|
13
|
-
separate: EditSeparate
|
|
14
|
-
};
|
|
15
|
-
const useEdit = (props, state, emit, xGrid, loadData) => {
|
|
16
|
-
const initEditTable = async () => {
|
|
17
|
-
const { isEdit, fieldList = [] } = props.columnConfig;
|
|
18
|
-
if (!isEdit)
|
|
19
|
-
return;
|
|
20
|
-
const hasSelectTable = fieldList.find((v) => v.formType === "selectTable");
|
|
21
|
-
if (!hasSelectTable)
|
|
22
|
-
return;
|
|
23
|
-
const record = {
|
|
24
|
-
initRow: true
|
|
25
|
-
};
|
|
26
|
-
props.columnConfig.fieldList.forEach((col) => {
|
|
27
|
-
if (col.columnName !== "operatorColumn") {
|
|
28
|
-
record[col.columnName] = void 0;
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
await xGrid.value.insertAt(record, -1);
|
|
32
|
-
};
|
|
33
|
-
const deleteRow = (row, col, index) => {
|
|
34
|
-
xGrid.value.remove(row);
|
|
35
|
-
emit("clickBtn", { row, column: col, index });
|
|
36
|
-
};
|
|
37
|
-
const onClickSelectTable = async (row) => {
|
|
38
|
-
emit("clickSelectTable", { row });
|
|
39
|
-
const record = {
|
|
40
|
-
initRow: false,
|
|
41
|
-
row: JSON.parse(JSON.stringify(row))
|
|
42
|
-
};
|
|
43
|
-
props.columnConfig.fieldList.forEach((col) => {
|
|
44
|
-
if (col.columnName !== "operatorColumn") {
|
|
45
|
-
record[col.columnName] = void 0;
|
|
46
|
-
if (Object.keys(row).includes(col.columnName)) {
|
|
47
|
-
record[col.columnName] = row[col.columnName];
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
|
-
const getInsertRecords = xGrid.value.getInsertRecords();
|
|
52
|
-
await xGrid.value.insertAt(record, getInsertRecords.at(-1));
|
|
53
|
-
xGrid.value.clearActived();
|
|
54
|
-
};
|
|
55
|
-
const getLabel = (opts, value) => {
|
|
56
|
-
var _a;
|
|
57
|
-
return ((_a = opts.find((opt) => opt.value === value)) == null ? void 0 : _a.label) || "";
|
|
58
|
-
};
|
|
59
|
-
const onFormChange = ({
|
|
60
|
-
value,
|
|
61
|
-
row,
|
|
62
|
-
column,
|
|
63
|
-
index,
|
|
64
|
-
type
|
|
65
|
-
}) => {
|
|
66
|
-
var _a, _b;
|
|
67
|
-
let oldValue = row[column.columnName];
|
|
68
|
-
if (["input", "number"].includes(column == null ? void 0 : column.formType) && ((_a = props.columnConfig) == null ? void 0 : _a.formValidate)) {
|
|
69
|
-
row[column.columnName] = (_b = props.columnConfig) == null ? void 0 : _b.formValidate({
|
|
70
|
-
row,
|
|
71
|
-
column,
|
|
72
|
-
current: value,
|
|
73
|
-
old: row[column.columnName]
|
|
74
|
-
});
|
|
75
|
-
} else if (column == null ? void 0 : column.formatMap) {
|
|
76
|
-
oldValue = {
|
|
77
|
-
label: row[column.formatMap.label],
|
|
78
|
-
value: row[column.formatMap.value]
|
|
79
|
-
};
|
|
80
|
-
row[column.formatMap.label] = getLabel(row[column.columnName + "_options"] || [], value);
|
|
81
|
-
row[column.formatMap.value] = value;
|
|
82
|
-
} else {
|
|
83
|
-
row[column.columnName] = value;
|
|
84
|
-
}
|
|
85
|
-
if (["date", "time"].includes(column == null ? void 0 : column.formType) && !value) {
|
|
86
|
-
row[column.columnName] = void 0;
|
|
87
|
-
}
|
|
88
|
-
if (["separate"].includes(column == null ? void 0 : column.formType)) {
|
|
89
|
-
loadData(props.data);
|
|
90
|
-
}
|
|
91
|
-
emit("formChange", {
|
|
92
|
-
value,
|
|
93
|
-
row,
|
|
94
|
-
column,
|
|
95
|
-
index,
|
|
96
|
-
oldValue,
|
|
97
|
-
...type ? { type } : {}
|
|
98
|
-
});
|
|
99
|
-
};
|
|
100
|
-
const getDefaultValue = (params, item) => {
|
|
101
|
-
var _a;
|
|
102
|
-
const value = params.row[item.columnName];
|
|
103
|
-
if (item.formType === "select") {
|
|
104
|
-
if (Array.isArray(value)) {
|
|
105
|
-
return (_a = value.map((v) => getValue(v))) == null ? void 0 : _a.join(",");
|
|
106
|
-
}
|
|
107
|
-
return getValue(value);
|
|
108
|
-
}
|
|
109
|
-
return value;
|
|
110
|
-
function getValue(value2) {
|
|
111
|
-
const findValue = (options) => {
|
|
112
|
-
var _a2;
|
|
113
|
-
return ((_a2 = options == null ? void 0 : options.find((v) => v.value == value2)) == null ? void 0 : _a2.label) || value2 || "";
|
|
114
|
-
};
|
|
115
|
-
if (item.formatMap) {
|
|
116
|
-
return params.row[item.formatMap.label];
|
|
117
|
-
}
|
|
118
|
-
if (item.options)
|
|
119
|
-
return findValue(item.options);
|
|
120
|
-
if (item.queryOptions)
|
|
121
|
-
return findValue(params.row[`${item.columnName}_options`]);
|
|
122
|
-
}
|
|
123
|
-
};
|
|
124
|
-
return {
|
|
125
|
-
initEditTable,
|
|
126
|
-
deleteRow,
|
|
127
|
-
onClickSelectTable,
|
|
128
|
-
onFormChange,
|
|
129
|
-
getDefaultValue
|
|
130
|
-
};
|
|
131
|
-
};
|
|
132
|
-
|
|
133
|
-
export { comps, useEdit };
|
|
1
|
+
import e from"../components/edit-form/edit-time.js";import o from"../components/edit-form/edit-input.js";import n from"../components/edit-form/edit-select.js";import l from"../components/edit-form/edit-date.js";import t from"../components/edit-form/edit-separate.vue.js";const a={input:o,number:o,select:n,date:l,time:e,separate:t},i=(e,o,n,l,t)=>({initEditTable:async()=>{const{isEdit:o,fieldList:n=[]}=e.columnConfig;if(!o)return;if(!n.find((e=>"selectTable"===e.formType)))return;const t={initRow:!0};e.columnConfig.fieldList.forEach((e=>{"operatorColumn"!==e.columnName&&(t[e.columnName]=void 0)})),await l.value.insertAt(t,-1)},deleteRow:(e,o,t)=>{l.value.remove(e),n("clickBtn",{row:e,column:o,index:t})},onClickSelectTable:async o=>{n("clickSelectTable",{row:o});const t={initRow:!1,row:JSON.parse(JSON.stringify(o))};e.columnConfig.fieldList.forEach((e=>{"operatorColumn"!==e.columnName&&(t[e.columnName]=void 0,Object.keys(o).includes(e.columnName)&&(t[e.columnName]=o[e.columnName]))}));const a=l.value.getInsertRecords();await l.value.insertAt(t,a.at(-1)),l.value.clearActived()},onFormChange:({value:o,row:l,column:a,index:i,type:m})=>{var r,u;let c=l[a.columnName];["input","number"].includes(null==a?void 0:a.formType)&&(null==(r=e.columnConfig)?void 0:r.formValidate)?l[a.columnName]=null==(u=e.columnConfig)?void 0:u.formValidate({row:l,column:a,current:o,old:l[a.columnName]}):(null==a?void 0:a.formatMap)?(c={label:l[a.formatMap.label],value:l[a.formatMap.value]},l[a.formatMap.label]=((e,o)=>{var n;return(null==(n=e.find((e=>e.value===o)))?void 0:n.label)||""})(l[a.columnName+"_options"]||[],o),l[a.formatMap.value]=o):l[a.columnName]=o,["date","time"].includes(null==a?void 0:a.formType)&&!o&&(l[a.columnName]=void 0),["separate"].includes(null==a?void 0:a.formType)&&t(e.data),n("formChange",{value:o,row:l,column:a,index:i,oldValue:c,...m?{type:m}:{}})},getDefaultValue:(e,o)=>{var n;const l=e.row[o.columnName];return"select"===o.formType?Array.isArray(l)?null==(n=l.map((e=>t(e))))?void 0:n.join(","):t(l):l;function t(n){const l=e=>{var o;return(null==(o=null==e?void 0:e.find((e=>e.value==n)))?void 0:o.label)||n||""};return o.formatMap?e.row[o.formatMap.label]:o.options?l(o.options):o.queryOptions?l(e.row[`${o.columnName}_options`]):void 0}}});export{a as comps,i as useEdit};
|
|
@@ -1,95 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import 'moment';
|
|
3
|
-
import { hideFilterWrap } from '../utils.js';
|
|
4
|
-
|
|
5
|
-
const useEvent = (props, state, emit, xGrid, anchorEvent) => {
|
|
6
|
-
function keyDown({ $event }) {
|
|
7
|
-
var _a, _b, _c, _d, _e;
|
|
8
|
-
const { isArrow, isEnter, isChecked, isTab, isEdit } = ((_a = props.columnConfig) == null ? void 0 : _a.keyboardConfig) || {};
|
|
9
|
-
let activeRow = null;
|
|
10
|
-
let index = 0;
|
|
11
|
-
const xGridRef = xGrid.value;
|
|
12
|
-
if (xGridRef) {
|
|
13
|
-
activeRow = xGridRef.getCurrentRecord();
|
|
14
|
-
index = xGridRef.getRowIndex(activeRow);
|
|
15
|
-
}
|
|
16
|
-
let activeIndex = index || 0;
|
|
17
|
-
if (!activeRow && !isEdit)
|
|
18
|
-
return;
|
|
19
|
-
if (isEdit) {
|
|
20
|
-
const data = xGridRef.getEditRecord() || xGridRef.getSelectedCell() || {};
|
|
21
|
-
const { row, column } = data;
|
|
22
|
-
const { fieldList = [] } = props.columnConfig;
|
|
23
|
-
if ($event.key === "Tab") {
|
|
24
|
-
const fieldItem = fieldList.find((item) => item.columnName === column.field);
|
|
25
|
-
const { formType = "", componentProps } = fieldItem;
|
|
26
|
-
const _index = (_b = row[`${column.field}_filter_options`]) == null ? void 0 : _b.findIndex((item) => item.value === row[column.field]);
|
|
27
|
-
if (formType === "select" && !(componentProps == null ? void 0 : componentProps.multiple) && ((_c = row[`${column.field}_filter_options`]) == null ? void 0 : _c.length) > 0 && (!row[column.field] || !row[`${column.field}_is_key_arrow`] && !~_index)) {
|
|
28
|
-
const oldValue = row[column.field];
|
|
29
|
-
row[column.field] = (_d = row[`${column.field}_filter_options`]) == null ? void 0 : _d[0].value;
|
|
30
|
-
emit("formChange", {
|
|
31
|
-
value: row[column.field],
|
|
32
|
-
row,
|
|
33
|
-
column,
|
|
34
|
-
index: data.rowIndex,
|
|
35
|
-
oldValue
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
emit("keyboard", {
|
|
40
|
-
key: $event.key,
|
|
41
|
-
...data,
|
|
42
|
-
index: data.rowIndex
|
|
43
|
-
});
|
|
44
|
-
return;
|
|
45
|
-
}
|
|
46
|
-
if (isArrow && ["ArrowUp", "ArrowDown"].includes($event.key)) {
|
|
47
|
-
if ($event.key === "ArrowUp" && index > 0) {
|
|
48
|
-
activeIndex = index - 1;
|
|
49
|
-
}
|
|
50
|
-
if ($event.key === "ArrowDown" && index < ((_e = props.data) == null ? void 0 : _e.length) - 1) {
|
|
51
|
-
activeIndex = index + 1;
|
|
52
|
-
}
|
|
53
|
-
const row = xGridRef.getData(activeIndex);
|
|
54
|
-
xGridRef.scrollToRow(row);
|
|
55
|
-
xGridRef.setCurrentRow(row);
|
|
56
|
-
}
|
|
57
|
-
if (isChecked && $event.key === " ") {
|
|
58
|
-
$event.preventDefault();
|
|
59
|
-
xGridRef.scrollToRow(activeRow);
|
|
60
|
-
xGridRef.setCheckboxRow(activeRow, true);
|
|
61
|
-
}
|
|
62
|
-
emitKeyBoard();
|
|
63
|
-
function emitKeyBoard() {
|
|
64
|
-
emit("keyboard", {
|
|
65
|
-
key: $event.key,
|
|
66
|
-
index: activeIndex,
|
|
67
|
-
row: activeRow
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
let scrollEvent = (params) => {
|
|
72
|
-
emit("scroll", params);
|
|
73
|
-
};
|
|
74
|
-
const initScroll = () => {
|
|
75
|
-
var _a;
|
|
76
|
-
const { throttle = false, throttleTime = 800, throttleOptions = {} } = ((_a = props.columnConfig) == null ? void 0 : _a.scrollConfig) || {};
|
|
77
|
-
if (throttle) {
|
|
78
|
-
scrollEvent = XEUtils.throttle(scrollEvent, throttleTime, throttleOptions);
|
|
79
|
-
}
|
|
80
|
-
};
|
|
81
|
-
initScroll();
|
|
82
|
-
const scroll = (params) => {
|
|
83
|
-
if (params.isX) {
|
|
84
|
-
hideFilterWrap(state, props);
|
|
85
|
-
}
|
|
86
|
-
scrollEvent(params);
|
|
87
|
-
anchorEvent(params);
|
|
88
|
-
};
|
|
89
|
-
return {
|
|
90
|
-
keyDown,
|
|
91
|
-
scroll
|
|
92
|
-
};
|
|
93
|
-
};
|
|
94
|
-
|
|
95
|
-
export { useEvent };
|
|
1
|
+
import e from"xe-utils";import"moment";import{hideFilterWrap as o}from"../utils.js";const l=(l,t,i,n,r)=>{let d=e=>{i("scroll",e)};(()=>{var o;const{throttle:t=!1,throttleTime:i=800,throttleOptions:n={}}=(null==(o=l.columnConfig)?void 0:o.scrollConfig)||{};t&&(d=e.throttle(d,i,n))})();return{keyDown:function({$event:e}){var o,t,r,d,s;const{isArrow:f,isEnter:c,isChecked:u,isTab:a,isEdit:m}=(null==(o=l.columnConfig)?void 0:o.keyboardConfig)||{};let w=null,k=0;const p=n.value;p&&(w=p.getCurrentRecord(),k=p.getRowIndex(w));let v=k||0;if(w||m)if(m){const o=p.getEditRecord()||p.getSelectedCell()||{},{row:n,column:s}=o,{fieldList:f=[]}=l.columnConfig;if("Tab"===e.key){const e=f.find((e=>e.columnName===s.field)),{formType:l="",componentProps:c}=e,u=null==(t=n[`${s.field}_filter_options`])?void 0:t.findIndex((e=>e.value===n[s.field]));if("select"===l&&!(null==c?void 0:c.multiple)&&(null==(r=n[`${s.field}_filter_options`])?void 0:r.length)>0&&(!n[s.field]||!n[`${s.field}_is_key_arrow`]&&!~u)){const e=n[s.field];n[s.field]=null==(d=n[`${s.field}_filter_options`])?void 0:d[0].value,i("formChange",{value:n[s.field],row:n,column:s,index:o.rowIndex,oldValue:e})}}i("keyboard",{key:e.key,...o,index:o.rowIndex})}else{if(f&&["ArrowUp","ArrowDown"].includes(e.key)){"ArrowUp"===e.key&&k>0&&(v=k-1),"ArrowDown"===e.key&&k<(null==(s=l.data)?void 0:s.length)-1&&(v=k+1);const o=p.getData(v);p.scrollToRow(o),p.setCurrentRow(o)}u&&" "===e.key&&(e.preventDefault(),p.scrollToRow(w),p.setCheckboxRow(w,!0)),i("keyboard",{key:e.key,index:v,row:w})}},scroll:e=>{e.isX&&o(t,l),d(e),r(e)}}};export{l as useEvent};
|