cnhis-design-vue 3.1.37-beta.1 → 3.1.37-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +123 -123
- package/es/components/button-print/src/utils/print.js +1 -6
- package/es/components/fabric-chart/src/FabricChart.vue.js +9 -9
- package/es/components/fabric-chart/src/hooks/useBirthProcess.js +129 -42
- package/es/components/fabric-chart/src/hooks/useBirthProcessChart.js +151 -0
- package/es/components/fabric-chart/src/hooks/useCenter.js +6 -7
- package/es/components/fabric-chart/src/hooks/useOther.js +3 -2
- package/es/components/fabric-chart/src/hooks/useTemperatureChart.js +1 -1
- package/es/components/fabric-chart/src/utils/utils.js +7 -4
- package/es/components/form-config/src/components/FormConfigDragDisplay.vue.js +1 -1
- package/es/components/form-config/src/hooks/useSortalbeConfig.js +2 -2
- package/es/components/form-render/src/hooks/useLowCodeReactions.js +19 -18
- package/es/components/iho-table/style/index.css +1 -1
- package/es/components/index.css +1 -1
- package/es/components/index.js +0 -3
- package/es/shared/assets/img/failure.js +1 -1
- package/es/shared/assets/img/failure.png.js +1 -1
- package/es/shared/assets/img/icon-asc.js +1 -1
- package/es/shared/assets/img/icon-desc.js +1 -1
- package/es/shared/assets/img/no-permission.js +1 -1
- package/es/shared/assets/img/no-permission.png.js +1 -1
- package/es/shared/assets/img/nodata.js +1 -1
- package/es/shared/assets/img/nodata.png.js +1 -1
- package/es/shared/assets/img/notfound.js +1 -1
- package/es/shared/assets/img/notfound.png.js +1 -1
- package/es/shared/assets/img/qr.js +1 -1
- package/es/shared/assets/img/qr.png.js +1 -1
- package/es/shared/assets/img/success.js +1 -1
- package/es/shared/assets/img/success.png.js +1 -1
- package/es/shared/assets/img/video.js +1 -1
- package/es/shared/assets/img/video.png.js +1 -1
- package/es/shared/assets/img/video_default_cover.js +1 -1
- package/es/shared/assets/img/video_default_cover.png.js +1 -1
- package/es/shared/assets/img/video_hover.js +1 -1
- package/es/shared/assets/img/video_play_hover.js +1 -1
- package/es/shared/assets/img/xb_big.js +1 -1
- package/es/shared/assets/img/xb_big.png.js +1 -1
- package/es/shared/assets/img/xb_small.js +1 -1
- package/es/shared/assets/img/xb_small.png.js +1 -1
- package/es/shared/utils/tapable/AsyncParallelBailHook.js +1 -1
- package/es/shared/utils/tapable/AsyncSeriesWaterfallHook.js +2 -3
- package/es/shared/utils/tapable/Hook.js +1 -1
- package/es/shared/utils/tapable/HookCodeFactory.js +3 -6
- package/es/shared/utils/tapable/SyncWaterfallHook.js +1 -2
- package/package.json +2 -2
- package/es/components/annotation-edit/index.d.ts +0 -17
- package/es/components/annotation-edit/src/AnnotationEdit.d.ts +0 -16
- package/es/components/big-table/index.d.ts +0 -1176
- package/es/components/big-table/src/BigTable.vue.d.ts +0 -1181
- package/es/components/big-table/src/bigTableEmits.d.ts +0 -2
- package/es/components/big-table/src/bigTableProps.d.ts +0 -211
- package/es/components/big-table/src/bigTableState.d.ts +0 -58
- package/es/components/big-table/src/components/NoData.vue.d.ts +0 -49
- package/es/components/big-table/src/components/edit-form/edit-date.d.ts +0 -34
- package/es/components/big-table/src/components/edit-form/edit-input.d.ts +0 -43
- package/es/components/big-table/src/components/edit-form/edit-select-table.d.ts +0 -35
- package/es/components/big-table/src/components/edit-form/edit-select.d.ts +0 -35
- package/es/components/big-table/src/components/edit-form/edit-separate.vue.d.ts +0 -134
- package/es/components/big-table/src/components/edit-form/edit-time.d.ts +0 -43
- package/es/components/big-table/src/components/edit-form/useCommon.d.ts +0 -5
- package/es/components/big-table/src/components/input-button.vue.d.ts +0 -10
- package/es/components/big-table/src/components/separate.vue.d.ts +0 -41
- package/es/components/big-table/src/constants/index.d.ts +0 -3
- package/es/components/big-table/src/hooks/index.d.ts +0 -9
- package/es/components/big-table/src/hooks/useAnchor.d.ts +0 -7
- package/es/components/big-table/src/hooks/useAnnotation.d.ts +0 -4
- package/es/components/big-table/src/hooks/useBatchEditing.d.ts +0 -17
- package/es/components/big-table/src/hooks/useEdit.d.ts +0 -339
- package/es/components/big-table/src/hooks/useEvent.d.ts +0 -6
- package/es/components/big-table/src/hooks/useFormat.d.ts +0 -30
- package/es/components/big-table/src/hooks/useNestTable.d.ts +0 -8
- package/es/components/big-table/src/hooks/useSeparateRow.d.ts +0 -40
- package/es/components/big-table/src/hooks/useTableParse.d.ts +0 -6
- package/es/components/big-table/src/utils.d.ts +0 -61
- package/es/components/bpmn-workflow/index.d.ts +0 -72
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/src/BpmnWorkflow.vue.d.ts +0 -75
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/BpmnRenderer.d.ts +0 -75
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/CustomContextPadProvider.d.ts +0 -24
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/CustomPalette.d.ts +0 -19
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/CustomPathMap.d.ts +0 -70
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/CustomRenderer.d.ts +0 -21
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/CustomRules.d.ts +0 -12
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/index.d.ts +0 -16
- package/es/components/bpmn-workflow/src/custom/customModeler/index.d.ts +0 -6
- package/es/components/bpmn-workflow/src/custom/customOtherModule/CustomPopupMenu.d.ts +0 -5
- package/es/components/bpmn-workflow/src/custom/customOtherModule/customViewerRenderer.d.ts +0 -12
- package/es/components/bpmn-workflow/src/custom/customOtherModule/zoomScroll.d.ts +0 -5
- package/es/components/bpmn-workflow/src/custom/customRules/no-task.d.ts +0 -4
- package/es/components/bpmn-workflow/src/custom/customTranslate/customTranslate.d.ts +0 -1
- package/es/components/bpmn-workflow/src/custom/customTranslate/zh.d.ts +0 -226
- 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/button-print/index.d.ts +0 -1904
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +0 -1911
- package/es/components/button-print/src/components/EditFormat.vue.d.ts +0 -1244
- package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +0 -1632
- package/es/components/button-print/src/components/Preview.vue.d.ts +0 -41
- package/es/components/button-print/src/utils/browserPrint.d.ts +0 -2
- package/es/components/button-print/src/utils/dialog.d.ts +0 -12
- package/es/components/button-print/src/utils/index.d.ts +0 -2
- package/es/components/button-print/src/utils/print.d.ts +0 -56
- package/es/components/drag-layout/index.d.ts +0 -606
- package/es/components/drag-layout/index.js +0 -11
- package/es/components/drag-layout/src/DragFormLeftItem.vue.d.ts +0 -21
- package/es/components/drag-layout/src/DragFormLeftItem.vue.js +0 -122
- package/es/components/drag-layout/src/DragFormRightItem.vue.d.ts +0 -125
- package/es/components/drag-layout/src/DragFormRightItem.vue.js +0 -267
- package/es/components/drag-layout/src/DragLayout.vue.d.ts +0 -606
- package/es/components/drag-layout/src/DragLayout.vue.js +0 -662
- package/es/components/drag-layout/style/index.css +0 -1
- package/es/components/editor/index.d.ts +0 -30
- package/es/components/editor/src/Editor.d.ts +0 -30
- package/es/components/fabric-chart/index.d.ts +0 -182
- package/es/components/fabric-chart/src/BirthProcessChart.vue.d.ts +0 -181
- package/es/components/fabric-chart/src/FabricChart.vue.d.ts +0 -184
- package/es/components/fabric-chart/src/components/PopupMenu.d.ts +0 -46
- package/es/components/fabric-chart/src/components/PopupTip.vue.d.ts +0 -64
- package/es/components/fabric-chart/src/components/useStyle.d.ts +0 -7
- package/es/components/fabric-chart/src/hooks/constant.d.ts +0 -54
- package/es/components/fabric-chart/src/hooks/index.d.ts +0 -11
- package/es/components/fabric-chart/src/hooks/useBirthProcess.d.ts +0 -26
- package/es/components/fabric-chart/src/hooks/useBottom.d.ts +0 -4
- package/es/components/fabric-chart/src/hooks/useCenter.d.ts +0 -16
- package/es/components/fabric-chart/src/hooks/useCommon.d.ts +0 -8
- package/es/components/fabric-chart/src/hooks/useCumputedPoint.d.ts +0 -14
- package/es/components/fabric-chart/src/hooks/useDraw.d.ts +0 -44
- package/es/components/fabric-chart/src/hooks/useEvent.d.ts +0 -7
- package/es/components/fabric-chart/src/hooks/useGrid.d.ts +0 -4
- package/es/components/fabric-chart/src/hooks/useLeft.d.ts +0 -7
- package/es/components/fabric-chart/src/hooks/useOther.d.ts +0 -4
- package/es/components/fabric-chart/src/hooks/useRight.d.ts +0 -4
- package/es/components/fabric-chart/src/hooks/useShadow.d.ts +0 -6
- package/es/components/fabric-chart/src/hooks/useTemperatureChart.d.ts +0 -25
- package/es/components/fabric-chart/src/hooks/useTop.d.ts +0 -4
- package/es/components/fabric-chart/src/interface.d.ts +0 -151
- package/es/components/fabric-chart/src/utils/index.d.ts +0 -6823
- package/es/components/fabric-chart/src/utils/utils.d.ts +0 -13
- package/es/components/field-set/index.d.ts +0 -243
- package/es/components/field-set/src/FieldSet.vue.d.ts +0 -197
- package/es/components/form-config/index.d.ts +0 -3343
- package/es/components/form-config/src/FormConfig.vue.d.ts +0 -3344
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +0 -675
- package/es/components/form-config/src/components/FormConfigDragDisplay.vue.d.ts +0 -108
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +0 -2396
- package/es/components/form-config/src/components/FormConfigMaterialItem.d.ts +0 -14
- package/es/components/form-config/src/components/index.d.ts +0 -5
- package/es/components/form-config/src/components/renderer/CloseButton.vue.d.ts +0 -27
- package/es/components/form-config/src/components/renderer/ComplexNode.vue.d.ts +0 -169
- package/es/components/form-config/src/components/renderer/DefaultNode.vue.d.ts +0 -71
- package/es/components/form-config/src/components/renderer/index.d.ts +0 -4
- package/es/components/form-config/src/constants/index.d.ts +0 -65
- package/es/components/form-config/src/hooks/index.d.ts +0 -3
- package/es/components/form-config/src/hooks/useConfigurationField.d.ts +0 -8
- package/es/components/form-config/src/hooks/useDataNormalize.d.ts +0 -5
- package/es/components/form-config/src/hooks/usePresetRenderer.d.ts +0 -4
- package/es/components/form-config/src/hooks/useSortalbeConfig.d.ts +0 -13
- package/es/components/form-config/src/types/index.d.ts +0 -39
- package/es/components/form-config/src/utils/index.d.ts +0 -7
- package/es/components/form-render/index.d.ts +0 -657
- package/es/components/form-render/src/FormRender.vue.d.ts +0 -650
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +0 -654
- package/es/components/form-render/src/components/renderer/checkbox.d.ts +0 -90
- package/es/components/form-render/src/components/renderer/combination.d.ts +0 -51
- package/es/components/form-render/src/components/renderer/complex.d.ts +0 -34
- package/es/components/form-render/src/components/renderer/date.d.ts +0 -52
- package/es/components/form-render/src/components/renderer/formItem.d.ts +0 -15
- package/es/components/form-render/src/components/renderer/index.d.ts +0 -3
- package/es/components/form-render/src/components/renderer/input.d.ts +0 -23
- package/es/components/form-render/src/components/renderer/inputGroup.d.ts +0 -11
- package/es/components/form-render/src/components/renderer/inputNumber.d.ts +0 -31
- package/es/components/form-render/src/components/renderer/jsonCombination/hooks/useDeepValidate.d.ts +0 -5
- package/es/components/form-render/src/components/renderer/jsonCombination/index.d.ts +0 -44
- package/es/components/form-render/src/components/renderer/levelSearchCascader.d.ts +0 -91
- package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.d.ts +0 -69
- package/es/components/form-render/src/components/renderer/lineBar/index.d.ts +0 -68
- package/es/components/form-render/src/components/renderer/radio.d.ts +0 -94
- package/es/components/form-render/src/components/renderer/remoteSearch.d.ts +0 -41
- package/es/components/form-render/src/components/renderer/searchCascade.d.ts +0 -58
- package/es/components/form-render/src/components/renderer/select.d.ts +0 -140
- package/es/components/form-render/src/components/renderer/simpleComponent.d.ts +0 -18
- package/es/components/form-render/src/components/renderer/slider.d.ts +0 -11
- package/es/components/form-render/src/components/renderer/switch.d.ts +0 -23
- package/es/components/form-render/src/components/renderer/textarea.d.ts +0 -11
- package/es/components/form-render/src/components/tooltipMessage.vue.d.ts +0 -13
- package/es/components/form-render/src/constants/index.d.ts +0 -54
- package/es/components/form-render/src/hooks/index.d.ts +0 -15
- package/es/components/form-render/src/hooks/useAnchor.d.ts +0 -16
- package/es/components/form-render/src/hooks/useAsyncQueue.d.ts +0 -47
- package/es/components/form-render/src/hooks/useBusinessBinding.d.ts +0 -27
- package/es/components/form-render/src/hooks/useChangeContext.d.ts +0 -11
- package/es/components/form-render/src/hooks/useCommonInjection.d.ts +0 -15
- package/es/components/form-render/src/hooks/useCommonLog.d.ts +0 -3
- package/es/components/form-render/src/hooks/useFieldListAdaptor.d.ts +0 -64
- package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +0 -5
- package/es/components/form-render/src/hooks/useFieldVisitor.d.ts +0 -4
- package/es/components/form-render/src/hooks/useFormContext.d.ts +0 -11
- package/es/components/form-render/src/hooks/useFormField.d.ts +0 -5
- package/es/components/form-render/src/hooks/useFormItemDeps.d.ts +0 -11
- package/es/components/form-render/src/hooks/useFormRenderLifeCycle.d.ts +0 -13
- package/es/components/form-render/src/hooks/useFormRenderOptions.d.ts +0 -39
- package/es/components/form-render/src/hooks/useFormRequest.d.ts +0 -26
- package/es/components/form-render/src/hooks/useFormValidator.d.ts +0 -6
- package/es/components/form-render/src/hooks/useLowCodeReactions.d.ts +0 -7
- package/es/components/form-render/src/hooks/useNuiThemeOverrides.d.ts +0 -4
- package/es/components/form-render/src/hooks/usePresetScope.d.ts +0 -6
- package/es/components/form-render/src/types/fieldItem.d.ts +0 -265
- package/es/components/form-render/src/types/index.d.ts +0 -101
- package/es/components/form-render/src/utils/business.d.ts +0 -13
- package/es/components/form-render/src/utils/dom.d.ts +0 -13
- package/es/components/form-render/src/utils/index.d.ts +0 -38
- package/es/components/form-render/src/utils/schema.d.ts +0 -83
- package/es/components/grid/index.d.ts +0 -3
- package/es/components/grid/src/Grid.d.ts +0 -2
- package/es/components/grid/src/hooks.d.ts +0 -1
- package/es/components/iho-table/index.d.ts +0 -4647
- package/es/components/iho-table/src/IhoTable.vue.d.ts +0 -4646
- package/es/components/iho-table/src/constants/index.d.ts +0 -80
- package/es/components/iho-table/src/hooks/export.d.ts +0 -2
- package/es/components/iho-table/src/hooks/index.d.ts +0 -2
- package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +0 -93
- package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.d.ts +0 -31
- package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.d.ts +0 -16
- package/es/components/iho-table/src/hooks/tapHooks/useDomInsertHooks.d.ts +0 -15
- package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.d.ts +0 -251
- package/es/components/iho-table/src/hooks/tapHooks/useExposeHooks.d.ts +0 -13
- package/es/components/iho-table/src/hooks/tapHooks/useFieldHooks.d.ts +0 -25
- package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks.d.ts +0 -10
- package/es/components/iho-table/src/hooks/useColumnConfigAdaptor.d.ts +0 -11
- package/es/components/iho-table/src/hooks/useTableContext.d.ts +0 -9
- package/es/components/iho-table/src/hooks/useTablePlugin.d.ts +0 -8
- package/es/components/iho-table/src/plugins/anchorPlugin/index.d.ts +0 -1
- package/es/components/iho-table/src/plugins/anchorPlugin/tableAnchor.d.ts +0 -2
- package/es/components/iho-table/src/plugins/anchorPlugin/useAnchor.d.ts +0 -13
- package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.d.ts +0 -1
- package/es/components/iho-table/src/plugins/filterPlugin/filter.vue.d.ts +0 -169
- package/es/components/iho-table/src/plugins/filterPlugin/index.d.ts +0 -1
- package/es/components/iho-table/src/plugins/filterPlugin/types.d.ts +0 -7
- package/es/components/iho-table/src/plugins/index.d.ts +0 -3
- package/es/components/iho-table/src/plugins/keyboardEventPlugin/index.d.ts +0 -1
- package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.d.ts +0 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +0 -96
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.d.ts +0 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useAutoFocus.d.ts +0 -5
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/inputRendererPlugin.d.ts +0 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.d.ts +0 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.d.ts +0 -43
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.d.ts +0 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.d.ts +0 -2
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue.d.ts +0 -94
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.d.ts +0 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/separateUtils.d.ts +0 -12
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin.d.ts +0 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/checkRendererPlugin.d.ts +0 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/colorRendererPlugin.d.ts +0 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/defaultRendererPlugin.d.ts +0 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/labelRendererPlugin.d.ts +0 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/pictureRendererPlugin.d.ts +0 -2
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/seqRendererPlugin.d.ts +0 -1
- package/es/components/iho-table/src/plugins/rowClickPlugin/index.d.ts +0 -1
- package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/index.d.ts +0 -1
- package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/rowGroupUtils.d.ts +0 -11
- package/es/components/iho-table/src/plugins/virtualTreePlugin/index.d.ts +0 -1
- package/es/components/iho-table/src/types/index.d.ts +0 -108
- package/es/components/iho-table/src/types/pluginType.d.ts +0 -173
- package/es/components/iho-table/src/utils/index.d.ts +0 -49
- package/es/components/index.d.ts +0 -38
- package/es/components/info-header/index.d.ts +0 -415
- package/es/components/info-header/src/HiddenContent.vue.d.ts +0 -86
- package/es/components/info-header/src/InfoEllipsis.vue.d.ts +0 -33
- package/es/components/info-header/src/InfoHeader.vue.d.ts +0 -405
- package/es/components/insurance-sdk/index.d.ts +0 -1
- package/es/components/insurance-sdk/src/constants/index.d.ts +0 -161
- package/es/components/insurance-sdk/src/utils/index.d.ts +0 -1
- package/es/components/insurance-sdk/src/utils/insurance.d.ts +0 -260
- package/es/components/keyboard/index.d.ts +0 -334
- package/es/components/keyboard/src/Keyboard.vue.d.ts +0 -335
- package/es/components/keyboard/src/components/InputNumber.vue.d.ts +0 -64
- package/es/components/keyboard/src/components/NumberPanel.vue.d.ts +0 -191
- package/es/components/keyboard/src/utils/index.d.ts +0 -1
- package/es/components/map/index.d.ts +0 -75
- package/es/components/map/src/Map.vue.d.ts +0 -75
- package/es/components/recommend-search/index.d.ts +0 -815
- package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +0 -817
- package/es/components/recommend-search/src/components/BaseSearch.vue.d.ts +0 -143
- package/es/components/recommend-search/src/components/RecommendInput.vue.d.ts +0 -341
- package/es/components/recommend-search/src/components/RecommendMenu.vue.d.ts +0 -63
- package/es/components/recommend-search/src/components/RecommendSelect.vue.d.ts +0 -300
- package/es/components/recommend-search/src/constant/index.d.ts +0 -4
- package/es/components/recommend-search/src/types/index.d.ts +0 -9
- package/es/components/scale-view/index.d.ts +0 -1400
- package/es/components/scale-view/src/ScaleView.vue.d.ts +0 -1222
- package/es/components/scale-view/src/components/AnswerParse.vue.d.ts +0 -70
- package/es/components/scale-view/src/components/EvaluateCountdown.vue.d.ts +0 -154
- package/es/components/scale-view/src/components/EvaluatePage.vue.d.ts +0 -110
- package/es/components/scale-view/src/components/NoData.vue.d.ts +0 -49
- package/es/components/scale-view/src/components/ScaleScore.d.ts +0 -23
- package/es/components/scale-view/src/components/composables/choose-common.d.ts +0 -11
- package/es/components/scale-view/src/components/formitem/address.d.ts +0 -3992
- package/es/components/scale-view/src/components/formitem/r-address.d.ts +0 -34
- package/es/components/scale-view/src/components/formitem/r-cascader.d.ts +0 -43
- package/es/components/scale-view/src/components/formitem/r-checkbox.d.ts +0 -43
- package/es/components/scale-view/src/components/formitem/r-collection.d.ts +0 -32
- package/es/components/scale-view/src/components/formitem/r-datetime.d.ts +0 -34
- package/es/components/scale-view/src/components/formitem/r-input.d.ts +0 -34
- package/es/components/scale-view/src/components/formitem/r-map.d.ts +0 -52
- package/es/components/scale-view/src/components/formitem/r-radio.d.ts +0 -43
- package/es/components/scale-view/src/components/formitem/r-select.d.ts +0 -61
- package/es/components/scale-view/src/components/formitem/r-sign.d.ts +0 -34
- package/es/components/scale-view/src/components/formitem/r-upload.d.ts +0 -52
- package/es/components/scale-view/src/components/formitem/sign-com.d.ts +0 -63
- package/es/components/scale-view/src/components/formitem/standard-modal.d.ts +0 -80
- package/es/components/scale-view/src/components/formitem/text-over-tooltip/TextOverTooltip.vue.d.ts +0 -87
- package/es/components/scale-view/src/hooks/scaleview-computed.d.ts +0 -43
- package/es/components/scale-view/src/hooks/scaleview-init.d.ts +0 -3
- package/es/components/scale-view/src/hooks/scaleview-props.d.ts +0 -115
- package/es/components/scale-view/src/hooks/scaleview-state.d.ts +0 -34
- package/es/components/scale-view/src/hooks/scaleview-submit.d.ts +0 -3
- package/es/components/scale-view/src/hooks/scaleview-validate.d.ts +0 -3
- package/es/components/scale-view/src/hooks/use-component.d.ts +0 -1814
- package/es/components/scale-view/src/hooks/use-evaluate.d.ts +0 -21
- package/es/components/scale-view/src/hooks/use-event.d.ts +0 -4
- package/es/components/scale-view/src/hooks/use-noData.d.ts +0 -9
- package/es/components/scale-view/src/utils/judge-types.d.ts +0 -5
- package/es/components/search-cascader/index.d.ts +0 -233
- package/es/components/search-cascader/src/SearchCascader.vue.d.ts +0 -235
- package/es/components/search-cascader/src/components/SearchMenu.d.ts +0 -50
- package/es/components/search-cascader/src/components/index.d.ts +0 -1
- package/es/components/search-cascader/src/constants/index.d.ts +0 -5
- package/es/components/search-cascader/src/hooks/index.d.ts +0 -1
- package/es/components/search-cascader/src/hooks/useCssVariable.d.ts +0 -3
- package/es/components/search-cascader/src/utils/index.d.ts +0 -2
- package/es/components/select-label/index.d.ts +0 -988
- package/es/components/select-label/src/LabelFormContent.vue.d.ts +0 -367
- package/es/components/select-label/src/SelectLabel.vue.d.ts +0 -622
- package/es/components/select-label/src/components/label-classify.vue.d.ts +0 -122
- package/es/components/select-person/index.d.ts +0 -251
- package/es/components/select-person/src/SelectPerson.vue.d.ts +0 -250
- package/es/components/select-person/src/utils/index.d.ts +0 -3
- package/es/components/shortcut-provider/index.d.ts +0 -21
- package/es/components/shortcut-provider/src/ShortcutProvider.vue.d.ts +0 -19
- package/es/components/shortcut-provider/src/constants/index.d.ts +0 -7
- package/es/components/shortcut-provider/src/hooks/index.d.ts +0 -2
- package/es/components/shortcut-provider/src/hooks/useShortcutSignature.d.ts +0 -4
- package/es/components/shortcut-provider/src/hooks/useShortcuts.d.ts +0 -33
- package/es/components/shortcut-provider/src/types/index.d.ts +0 -43
- package/es/components/shortcut-provider/src/utils/index.d.ts +0 -10
- package/es/components/shortcut-setter/index.d.ts +0 -2384
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +0 -2386
- package/es/components/shortcut-setter/src/ShortcutSetterItem.vue.d.ts +0 -99
- package/es/components/shortcut-setter/src/types/index.d.ts +0 -6
- package/es/components/steps-wheel/index.d.ts +0 -115
- package/es/components/steps-wheel/src/StepsWheel.vue.d.ts +0 -114
- package/es/components/time-line/index.d.ts +0 -109
- package/es/components/time-line/src/TimeLine.vue.d.ts +0 -85
- package/es/components/vod-chunk-upload/index.d.ts +0 -232
- package/es/components/vod-chunk-upload/src/chunk-upload-new.vue.d.ts +0 -196
- package/es/components/vod-chunk-upload/src/hooks/upload-computed.d.ts +0 -11
- package/es/components/vod-chunk-upload/src/hooks/upload-data.d.ts +0 -63
- package/es/components/vod-chunk-upload/src/hooks/vod-computed.d.ts +0 -10
- package/es/components/vod-chunk-upload/src/hooks/vod-data.d.ts +0 -23
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/index.d.ts +0 -2
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.d.ts +0 -230
- package/es/components/vod-chunk-upload/src/vod-upload-modal.d.ts +0 -25
- package/es/shared/components/SelectPage/SelectPage.vue.d.ts +0 -51
- package/es/shared/components/SelectPage/index.d.ts +0 -2
- package/es/shared/components/SlotRender/SlotRender.d.ts +0 -20
- package/es/shared/components/SlotRender/index.d.ts +0 -2
- package/es/shared/components/SvgIcon/SvgIcon.vue.d.ts +0 -43
- package/es/shared/components/SvgIcon/index.d.ts +0 -2
- package/es/shared/components/TextOverTooltip/TextOverTooltip.vue.d.ts +0 -87
- package/es/shared/components/TextOverTooltip/index.d.ts +0 -2
- package/es/shared/components/VueDraggable/index.d.ts +0 -2
- package/es/shared/components/VueDraggable/src/core/componentBuilderHelper.d.ts +0 -9
- package/es/shared/components/VueDraggable/src/core/componentStructure.d.ts +0 -22
- package/es/shared/components/VueDraggable/src/core/renderHelper.d.ts +0 -7
- package/es/shared/components/VueDraggable/src/core/sortableEvents.d.ts +0 -10
- package/es/shared/components/VueDraggable/src/util/console.d.ts +0 -1
- package/es/shared/components/VueDraggable/src/util/htmlHelper.d.ts +0 -2
- package/es/shared/components/VueDraggable/src/util/string.d.ts +0 -1
- package/es/shared/components/VueDraggable/src/util/tags.d.ts +0 -3
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
- package/es/shared/components/no-data/NoData.vue.d.ts +0 -49
- package/es/shared/components/no-data/index.d.ts +0 -2
- package/es/shared/components/player-vod/index.vue.d.ts +0 -2
- package/es/shared/components/player-vod/player.d.ts +0 -17
- package/es/shared/components/player-vod/video-list.d.ts +0 -32
- package/es/shared/components/player-vod/video-modal.d.ts +0 -54
- package/es/shared/global/variable.d.ts +0 -1
- package/es/shared/index.d.ts +0 -0
- package/es/shared/types/index.d.ts +0 -22
- package/es/shared/utils/anime.d.ts +0 -35
- package/es/shared/utils/colorLog.d.ts +0 -31
- package/es/shared/utils/index.d.ts +0 -16
- package/es/shared/utils/loadViewer.d.ts +0 -2
- package/es/shared/utils/tapable/AsyncParallelBailHook.d.ts +0 -3
- package/es/shared/utils/tapable/AsyncParallelHook.d.ts +0 -3
- package/es/shared/utils/tapable/AsyncSeriesBailHook.d.ts +0 -3
- package/es/shared/utils/tapable/AsyncSeriesHook.d.ts +0 -3
- package/es/shared/utils/tapable/AsyncSeriesLoopHook.d.ts +0 -3
- package/es/shared/utils/tapable/AsyncSeriesWaterfallHook.d.ts +0 -3
- package/es/shared/utils/tapable/Hook.d.ts +0 -50
- package/es/shared/utils/tapable/HookCodeFactory.d.ts +0 -58
- package/es/shared/utils/tapable/HookMap.d.ts +0 -11
- package/es/shared/utils/tapable/MultiHook.d.ts +0 -12
- package/es/shared/utils/tapable/SyncBailHook.d.ts +0 -3
- package/es/shared/utils/tapable/SyncHook.d.ts +0 -3
- package/es/shared/utils/tapable/SyncLoopHook.d.ts +0 -3
- package/es/shared/utils/tapable/SyncWaterfallHook.d.ts +0 -3
- package/es/shared/utils/tapable/index.d.ts +0 -139
- package/es/shared/utils/utilExpand.d.ts +0 -1
- package/es/shared/utils/vexutils.d.ts +0 -10
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { ref, reactive, computed, onMounted, nextTick } from 'vue';
|
|
2
|
+
import { defaultBorderStyle } from './useDraw.js';
|
|
3
|
+
import '../utils/index.js';
|
|
4
|
+
import './useShadow.js';
|
|
5
|
+
import 'lodash-es';
|
|
6
|
+
import { useEvent, useCanvasEvent } from './useEvent.js';
|
|
7
|
+
import { useBirthProcess } from './useBirthProcess.js';
|
|
8
|
+
import { useCommon } from './useCommon.js';
|
|
9
|
+
|
|
10
|
+
function useBirthProcessChart(canvas, props, emits, canvasRef) {
|
|
11
|
+
const select = ref();
|
|
12
|
+
const redrawPoints = ref();
|
|
13
|
+
const clickMenu = ref();
|
|
14
|
+
const pointTipProps = reactive({
|
|
15
|
+
show: false,
|
|
16
|
+
point: { x: 0, y: 0 },
|
|
17
|
+
list: []
|
|
18
|
+
});
|
|
19
|
+
const pointMenuProps = reactive({
|
|
20
|
+
show: false,
|
|
21
|
+
point: { x: 0, y: 0 },
|
|
22
|
+
list: [],
|
|
23
|
+
target: null
|
|
24
|
+
});
|
|
25
|
+
const leftScales = computed(() => props.data.scaleValues.filter((item) => item.layout === "left"));
|
|
26
|
+
const rightScales = computed(() => props.data.scaleValues.filter((item) => item.layout === "right"));
|
|
27
|
+
const leftAddAreaWidth = 30;
|
|
28
|
+
const rightAddAreaWidth = computed(() => {
|
|
29
|
+
var _a;
|
|
30
|
+
return !((_a = rightScales.value) == null ? void 0 : _a.length) ? 0 : 30;
|
|
31
|
+
});
|
|
32
|
+
const originX = computed(() => {
|
|
33
|
+
var _a;
|
|
34
|
+
const leftScalesWidth = (_a = leftScales.value) == null ? void 0 : _a.reduce((width, item) => {
|
|
35
|
+
width += item.width;
|
|
36
|
+
return width;
|
|
37
|
+
}, 0);
|
|
38
|
+
return leftAddAreaWidth + leftScalesWidth;
|
|
39
|
+
});
|
|
40
|
+
const endX = computed(() => {
|
|
41
|
+
var _a;
|
|
42
|
+
const { width } = props.data;
|
|
43
|
+
const rightScalesWidth = (_a = rightScales.value) == null ? void 0 : _a.reduce((width2, item) => {
|
|
44
|
+
width2 += item.width;
|
|
45
|
+
return width2;
|
|
46
|
+
}, 0);
|
|
47
|
+
return width - rightAddAreaWidth.value - rightScalesWidth;
|
|
48
|
+
});
|
|
49
|
+
const gridXNumber = computed(() => props.data.grid.mainXCell);
|
|
50
|
+
const gridYNumber = computed(() => props.data.grid.mainYCell);
|
|
51
|
+
const xCellWidth = computed(() => {
|
|
52
|
+
return (endX.value - originX.value) / gridXNumber.value;
|
|
53
|
+
});
|
|
54
|
+
const yCellHeight = computed(() => {
|
|
55
|
+
const { xAxis, height } = props.data;
|
|
56
|
+
const xAxisNumber = Object.values(xAxis).reduce((num, item) => {
|
|
57
|
+
if (item.show)
|
|
58
|
+
num++;
|
|
59
|
+
return num;
|
|
60
|
+
}, 0);
|
|
61
|
+
return height / (gridYNumber.value + xAxisNumber);
|
|
62
|
+
});
|
|
63
|
+
const originY = computed(() => yCellHeight.value);
|
|
64
|
+
const originYCervix = computed(() => {
|
|
65
|
+
const { scaleValues } = props.data;
|
|
66
|
+
const cervixItem = scaleValues.find((item) => item.key === "cervix");
|
|
67
|
+
const [, max] = (cervixItem == null ? void 0 : cervixItem.range) || [0, 10];
|
|
68
|
+
const spaceValue = (cervixItem == null ? void 0 : cervixItem.spaceValue) || 1;
|
|
69
|
+
return endY.value - max * spaceValue * yCellHeight.value;
|
|
70
|
+
});
|
|
71
|
+
const endY = computed(() => {
|
|
72
|
+
const { height } = props.data;
|
|
73
|
+
return height - yCellHeight.value;
|
|
74
|
+
});
|
|
75
|
+
const startTime = computed(() => new Date(props.data.xAxis.time.startTime).getTime());
|
|
76
|
+
const timeXCell = computed(() => 1 * 60 * 60 * 1e3 / xCellWidth.value);
|
|
77
|
+
const cervixYCell = computed(() => {
|
|
78
|
+
const { scaleValues } = props.data;
|
|
79
|
+
const cervixItem = scaleValues.find((item) => item.key === "cervix");
|
|
80
|
+
return ((cervixItem == null ? void 0 : cervixItem.spaceValue) || 1) / yCellHeight.value;
|
|
81
|
+
});
|
|
82
|
+
const FHRYCell = computed(() => {
|
|
83
|
+
const { scaleValues } = props.data;
|
|
84
|
+
const cervixItem = scaleValues.find((item) => item.key === "FHR");
|
|
85
|
+
return ((cervixItem == null ? void 0 : cervixItem.spaceValue) || 10) / yCellHeight.value;
|
|
86
|
+
});
|
|
87
|
+
const fetalPresentationYCell = computed(() => {
|
|
88
|
+
const { scaleValues } = props.data;
|
|
89
|
+
const cervixItem = scaleValues.find((item) => item.key === "fetalPresentation");
|
|
90
|
+
return ((cervixItem == null ? void 0 : cervixItem.spaceValue) || 1) / yCellHeight.value;
|
|
91
|
+
});
|
|
92
|
+
const event = computed(() => {
|
|
93
|
+
var _a;
|
|
94
|
+
return ((_a = props.data.grid) == null ? void 0 : _a.event) || { selectable: true, evented: true, hovered: true };
|
|
95
|
+
});
|
|
96
|
+
const propItems = reactive({
|
|
97
|
+
canvasWidth: props.data.width,
|
|
98
|
+
canvasHeight: props.data.height,
|
|
99
|
+
borderStyle: { ...defaultBorderStyle, ...props.data.borderStyle },
|
|
100
|
+
selectionStyle: props.data.selectionStyle || {},
|
|
101
|
+
grid: props.data.grid,
|
|
102
|
+
originX: originX.value,
|
|
103
|
+
endX: endX.value,
|
|
104
|
+
originY: originY.value,
|
|
105
|
+
endY: endY.value,
|
|
106
|
+
xCellWidth: xCellWidth.value,
|
|
107
|
+
yCellHeight: yCellHeight.value,
|
|
108
|
+
gridXNumber: gridXNumber.value,
|
|
109
|
+
gridYNumber: gridYNumber.value,
|
|
110
|
+
xAxis: props.data.xAxis,
|
|
111
|
+
leftScales: leftScales.value,
|
|
112
|
+
rightScales: rightScales.value,
|
|
113
|
+
leftAddAreaWidth,
|
|
114
|
+
rightAddAreaWidth: rightAddAreaWidth.value,
|
|
115
|
+
startTime: startTime.value,
|
|
116
|
+
timeXCell: timeXCell.value,
|
|
117
|
+
cervixYCell: cervixYCell.value,
|
|
118
|
+
FHRYCell: FHRYCell.value,
|
|
119
|
+
fetalPresentationYCell: fetalPresentationYCell.value,
|
|
120
|
+
scaleValues: props.data.scaleValues,
|
|
121
|
+
event: event.value,
|
|
122
|
+
originYCervix: originYCervix.value
|
|
123
|
+
});
|
|
124
|
+
const commonFunc = useCommon(canvas);
|
|
125
|
+
onMounted(() => {
|
|
126
|
+
nextTick(() => {
|
|
127
|
+
const { clickMenu: _clickMenu } = useBirthProcess(
|
|
128
|
+
canvas,
|
|
129
|
+
propItems,
|
|
130
|
+
emits,
|
|
131
|
+
pointTipProps,
|
|
132
|
+
pointMenuProps,
|
|
133
|
+
commonFunc
|
|
134
|
+
);
|
|
135
|
+
clickMenu.value = _clickMenu;
|
|
136
|
+
useEvent(canvasRef.value);
|
|
137
|
+
const { select: _select } = useCanvasEvent(canvas, propItems, emits);
|
|
138
|
+
select.value = _select;
|
|
139
|
+
});
|
|
140
|
+
});
|
|
141
|
+
return {
|
|
142
|
+
propItems,
|
|
143
|
+
redrawPoints,
|
|
144
|
+
select,
|
|
145
|
+
pointTipProps,
|
|
146
|
+
pointMenuProps,
|
|
147
|
+
clickMenu
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export { useBirthProcessChart as default };
|
|
@@ -6,9 +6,9 @@ import { TEMPERATURE_MENU, PAIN_MENU, OVERLAP } from './constant.js';
|
|
|
6
6
|
import { cloneDeep } from 'lodash-es';
|
|
7
7
|
import { isOneLine, getType, setOtherType, isEffectiveNode, getIndex, deleteProperty } from '../utils/utils.js';
|
|
8
8
|
|
|
9
|
-
function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, getYValue, addRenderItem, pointTipProps, pointMenuProps,
|
|
9
|
+
function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, getYValue, addRenderItem, pointTipProps, pointMenuProps, commonFunc) {
|
|
10
10
|
useGrid(canvas, propItems);
|
|
11
|
-
const { getEqualXTypes, repeatTip, maxLimitTip, minLimitTip } =
|
|
11
|
+
const { getEqualXTypes, repeatTip, maxLimitTip, minLimitTip } = commonFunc;
|
|
12
12
|
const { createShadowLines } = useShadow();
|
|
13
13
|
const {
|
|
14
14
|
left,
|
|
@@ -662,15 +662,14 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
|
|
|
662
662
|
updateData(params);
|
|
663
663
|
} else {
|
|
664
664
|
const { data, type, dataIndex, index } = target.origin;
|
|
665
|
-
deleteProperty(data, TEMPERATURE_MENU);
|
|
666
|
-
|
|
667
|
-
data[`${item.type}`] = item.value;
|
|
665
|
+
const _data = deleteProperty(data, [...TEMPERATURE_MENU, ...PAIN_MENU]);
|
|
666
|
+
_data[`${item.type}`] = item.value;
|
|
668
667
|
if (isOneLine(type)) {
|
|
669
|
-
|
|
668
|
+
_data["key"] = target.origin.key;
|
|
670
669
|
}
|
|
671
670
|
const params = {
|
|
672
671
|
...target.origin,
|
|
673
|
-
data
|
|
672
|
+
data: _data
|
|
674
673
|
};
|
|
675
674
|
emits("change", params);
|
|
676
675
|
updateData(params, "change");
|
|
@@ -79,14 +79,15 @@ function useOther(canvas, propItems, cumputedX) {
|
|
|
79
79
|
textDiff = (yCellHeight - (text.height || 0)) / 2;
|
|
80
80
|
texts.push(text);
|
|
81
81
|
});
|
|
82
|
-
|
|
82
|
+
const options = {
|
|
83
83
|
originX: "center",
|
|
84
84
|
left: x,
|
|
85
85
|
top: y + textDiff,
|
|
86
86
|
baseTop: (v.baseTop || 0) * yCellHeight,
|
|
87
87
|
trueLeft: x,
|
|
88
88
|
trueHeight: texts.length * yCellHeight
|
|
89
|
-
}
|
|
89
|
+
};
|
|
90
|
+
return new fabric.Group(texts, options);
|
|
90
91
|
}
|
|
91
92
|
drawOther();
|
|
92
93
|
}
|
|
@@ -10,8 +10,8 @@ import { useOther } from './useOther.js';
|
|
|
10
10
|
import { useEvent, useCanvasEvent } from './useEvent.js';
|
|
11
11
|
import '../utils/index.js';
|
|
12
12
|
import { setOtherType } from '../utils/utils.js';
|
|
13
|
-
import { useCommon } from './useCommon.js';
|
|
14
13
|
import 'lodash-es';
|
|
14
|
+
import { useCommon } from './useCommon.js';
|
|
15
15
|
|
|
16
16
|
function useTemperatureChart(canvas, props, emits, canvasRef) {
|
|
17
17
|
const defaultHeight = 15;
|
|
@@ -2,10 +2,13 @@ function isEffectiveNode(node) {
|
|
|
2
2
|
return (node == null ? void 0 : node.time) && ((node == null ? void 0 : node.value) || (node == null ? void 0 : node.value) === 0);
|
|
3
3
|
}
|
|
4
4
|
function deleteProperty(data, list) {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
const _data = {};
|
|
6
|
+
for (const key in data) {
|
|
7
|
+
if (!list.map((v) => v.type).includes(key)) {
|
|
8
|
+
_data[key] = data[key];
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
return _data;
|
|
9
12
|
}
|
|
10
13
|
function getIndex(time, list) {
|
|
11
14
|
const index = list.findIndex((v) => new Date(v.time).getTime() > new Date(time).getTime());
|
|
@@ -20,7 +20,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
20
20
|
const { getRenderer } = usePresetRenderer();
|
|
21
21
|
const { getCommonConfig } = useSortableConfig();
|
|
22
22
|
return (_ctx, _cache) => {
|
|
23
|
-
return openBlock(), createBlock(unref(draggableComponent), mergeProps(unref(getCommonConfig)(), {
|
|
23
|
+
return openBlock(), createBlock(unref(draggableComponent), mergeProps(unref(getCommonConfig)(__props.fieldItem), {
|
|
24
24
|
style: getItemColumnStyle(__props.fieldItem)
|
|
25
25
|
}), {
|
|
26
26
|
item: withCtx(({ element }) => [
|
|
@@ -26,7 +26,7 @@ function useSortableConfig() {
|
|
|
26
26
|
to !== from && from.classList.remove("is-choosing-area");
|
|
27
27
|
to.classList.add("is-choosing-area");
|
|
28
28
|
}
|
|
29
|
-
const getCommonConfig = () => ({
|
|
29
|
+
const getCommonConfig = (formConfig) => ({
|
|
30
30
|
move: onMove,
|
|
31
31
|
onChoose,
|
|
32
32
|
onUnchoose,
|
|
@@ -34,7 +34,7 @@ function useSortableConfig() {
|
|
|
34
34
|
forceFallback: false,
|
|
35
35
|
animation: "150",
|
|
36
36
|
"item-key": "key",
|
|
37
|
-
group: FORM_CONFIG_GROUP
|
|
37
|
+
group: (formConfig == null ? void 0 : formConfig.type) === "COMBINATION" ? formConfig.key : FORM_CONFIG_GROUP
|
|
38
38
|
});
|
|
39
39
|
return { getCommonConfig };
|
|
40
40
|
}
|
|
@@ -43,12 +43,22 @@ function useLowCodeReactions(configListRef, formModel) {
|
|
|
43
43
|
return res;
|
|
44
44
|
}, []);
|
|
45
45
|
});
|
|
46
|
+
function conObjMatcher(field, value, conObj) {
|
|
47
|
+
if (conObj.field_key !== field)
|
|
48
|
+
return;
|
|
49
|
+
const relation = compareMap[conObj.con] || (() => false);
|
|
50
|
+
return relation(value, `${conObj.value}`);
|
|
51
|
+
}
|
|
46
52
|
function lowCodeReactionsHandler(field, value) {
|
|
47
53
|
const configList = unref(configListRef);
|
|
48
54
|
if (!configList || !reactionKeys.value.includes(field))
|
|
49
55
|
return;
|
|
50
|
-
|
|
51
|
-
|
|
56
|
+
configList.forEach((config) => {
|
|
57
|
+
shouldTriggerReactions(field, value, config.conObj) && trigger(config);
|
|
58
|
+
});
|
|
59
|
+
function shouldTriggerReactions(field2, value2, conObjs) {
|
|
60
|
+
return conObjs.every((conObj) => conObjMatcher(field2, value2, conObj));
|
|
61
|
+
}
|
|
52
62
|
}
|
|
53
63
|
function trigger(config) {
|
|
54
64
|
Object.entries(config).forEach(([k, v]) => triggerMap[k] && triggerMap[k](v));
|
|
@@ -57,27 +67,18 @@ function useLowCodeReactions(configListRef, formModel) {
|
|
|
57
67
|
const configList = unref(configListRef);
|
|
58
68
|
if (!configList)
|
|
59
69
|
return;
|
|
60
|
-
const
|
|
70
|
+
const formData = formModel.getFormState().values;
|
|
61
71
|
configList.forEach((config) => {
|
|
72
|
+
shouldTriggerReactions(formData, config) && trigger(config);
|
|
73
|
+
});
|
|
74
|
+
function shouldTriggerReactions(formData2, config) {
|
|
62
75
|
if (!isArray(config.conObj))
|
|
63
76
|
return;
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
});
|
|
68
|
-
function matcher(conObj) {
|
|
69
|
-
return conObjMatcher(conObj.field_key, Path.getIn(values, conObj.field_key), conObj);
|
|
77
|
+
return config.conObj.every(
|
|
78
|
+
(conObj) => conObjMatcher(conObj.field_key, Path.getIn(formData2, conObj.field_key), conObj)
|
|
79
|
+
);
|
|
70
80
|
}
|
|
71
81
|
}
|
|
72
|
-
function reactionMatcher(field, value, conObjs) {
|
|
73
|
-
return conObjs.every((conObj) => conObjMatcher(field, value, conObj));
|
|
74
|
-
}
|
|
75
|
-
function conObjMatcher(field, value, conObj) {
|
|
76
|
-
if (conObj.field_key !== field)
|
|
77
|
-
return;
|
|
78
|
-
const relation = compareMap[conObj.con] || (() => false);
|
|
79
|
-
return relation(value, `${conObj.value}`);
|
|
80
|
-
}
|
|
81
82
|
return { lowCodeReactionsHandler, triggerAllReactionsHandler };
|
|
82
83
|
}
|
|
83
84
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.iho-table__boldCell{font-weight:700}.iho-table .vxe-table--body-wrapper::-webkit-scrollbar,.iho-table .vxe-table--footer-wrapper.body--wrapper::-webkit-scrollbar{background-color:transparent;height:10px;width:10px}.iho-table .vxe-table--body-wrapper::-webkit-scrollbar-thumb,.iho-table .vxe-table--footer-wrapper.body--wrapper::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:#f2f2f2;border:3px dashed transparent;border-radius:5px}.iho-table .vxe-table--body-wrapper::-webkit-scrollbar-thumb:hover,.iho-table .vxe-table--footer-wrapper.body--wrapper::-webkit-scrollbar-thumb:hover{background:#b2b2b2}.iho-table .vxe-table
|
|
1
|
+
.iho-table__boldCell{font-weight:700}.iho-table .vxe-table--body-wrapper::-webkit-scrollbar,.iho-table .vxe-table--footer-wrapper.body--wrapper::-webkit-scrollbar{background-color:transparent;height:10px;width:10px}.iho-table .vxe-table--body-wrapper::-webkit-scrollbar-thumb,.iho-table .vxe-table--footer-wrapper.body--wrapper::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:#f2f2f2;border:3px dashed transparent;border-radius:5px}.iho-table .vxe-table--body-wrapper::-webkit-scrollbar-thumb:hover,.iho-table .vxe-table--footer-wrapper.body--wrapper::-webkit-scrollbar-thumb:hover{background:#b2b2b2}.iho-table .vxe-table--empty-content{height:100%;width:100%}.iho-table .vxe-table--empty-content>div,.iho-table .vxe-tree-cell{height:100%}.iho-table .vxe-table--header{background-color:#f2f2f2}.iho-table .vxe-cell--title{color:#35393c}.iho-table .vxe-footer--row .vxe-footer--column>.vxe-cell .vxe-cell--item{height:30px;line-height:30px}.iho-table .vxe-body--expanded-column,.iho-table .vxe-table--border-line{border-color:#d5d5d599!important}.iho-table .vxe-table--footer-wrapper{border-top-color:#d5d5d599!important}.iho-table .border--default .vxe-body--column,.iho-table .border--default .vxe-footer--column,.iho-table .border--default .vxe-header--column,.iho-table .border--inner .vxe-body--column,.iho-table .border--inner .vxe-footer--column,.iho-table .border--inner .vxe-header--column{background-image:linear-gradient(#d5d5d599,#d5d5d599)!important}.iho-table .border--full .vxe-body--column,.iho-table .border--full .vxe-footer--column,.iho-table .border--full .vxe-header--column{background-image:linear-gradient(#d5d5d599,#d5d5d599),linear-gradient(#d5d5d599,#d5d5d599)!important}.iho-table .border--default .vxe-header--row:last-child .vxe-header--gutter,.iho-table .border--full .vxe-header--row:last-child .vxe-header--gutter,.iho-table .border--inner .vxe-header--row:last-child .vxe-header--gutter,.iho-table .border--outer .vxe-header--row:last-child .vxe-header--gutter{background-image:linear-gradient(#d5d5d599,#d5d5d599)!important}.iho-table .vxe-table--header-border-line{border-bottom-color:#d5d5d599!important}.iho-table .vxe-table--fixed-left-wrapper.scrolling--middle{box-shadow:7px 0 8px -3px rgba(0,0,0,.15)!important}.iho-table .vxe-table--fixed-right-wrapper.scrolling--middle{box-shadow:-7px 0 8px -3px rgba(0,0,0,.15)!important}.iho-table .icon-dot{background:var(--table-icon-color);box-shadow:0 2px 4px 0 var(--table-icon-shadow)}.iho-table .icon-dot,.iho-table .icon-dot-red{border-radius:50%;display:inline-block;height:8px;margin-right:6px;width:8px}.iho-table .icon-dot-red{background:red;box-shadow:0 2px 4px 0 rgba(255,0,0,.5)}.iho-table .icon-dot-blue{background:blue;box-shadow:0 2px 4px 0 rgba(0,0,255,.5)}.iho-table .icon-dot-blue,.iho-table .icon-dot-green{border-radius:50%;display:inline-block;height:8px;margin-right:6px;width:8px}.iho-table .icon-dot-green{background:green;box-shadow:0 2px 4px 0 rgba(0,128,0,.5)}.iho-table .icon-dot-gray{background:gray;box-shadow:0 2px 4px 0 hsla(0,0%,50%,.5)}.iho-table .icon-dot-gray,.iho-table .icon-dot-yellow{border-radius:50%;display:inline-block;height:8px;margin-right:6px;width:8px}.iho-table .icon-dot-yellow{background:#ff0;box-shadow:0 2px 4px 0 rgba(255,255,0,.5)}.iho-table .icon-dot-resolved{background:#36be8c;box-shadow:0 2px 4px 0 rgba(54,190,140,.5)}.iho-table .icon-dot-huifu,.iho-table .icon-dot-resolved{border-radius:50%;display:inline-block;height:8px;margin-right:6px;width:8px}.iho-table .icon-dot-huifu{background:#42d0f6;box-shadow:0 2px 4px 0 rgba(66,208,246,.5)}.iho-table .icon-dot-close{background:#718391;box-shadow:0 2px 4px 0 rgba(113,131,145,.5)}.iho-table .icon-dot-audit,.iho-table .icon-dot-close{border-radius:50%;display:inline-block;height:8px;margin-right:6px;width:8px}.iho-table .icon-dot-audit{background:#f4ba32;box-shadow:0 2px 4px 0 rgba(244,186,50,.5)}.iho-table .icon-dot-design{background:#927ce1;box-shadow:0 2px 4px 0 rgba(146,124,225,.5)}.iho-table .icon-dot-design,.iho-table .icon-dot-develop{border-radius:50%;display:inline-block;height:8px;margin-right:6px;width:8px}.iho-table .icon-dot-develop{background:#4eb0ef;box-shadow:0 2px 4px 0 rgba(78,176,239,.5)}.iho-table .icon-dot-develop-complete{background:#6381f9;border-radius:50%;box-shadow:0 2px 4px 0 rgba(99,129,249,.5);display:inline-block;height:8px;margin-right:6px;width:8px}.iho-table__filterIcon{cursor:pointer;padding:0 4px}.iho-table__filterIcon:hover{opacity:.7}.iho-table__filterIcon.is-active{color:#5585f5}.iho-table__filterWrapper{display:flex;flex-direction:column;gap:8px;width:200px}.iho-table__filterButton{align-items:center;border-radius:4px;cursor:pointer;display:flex;height:30px;padding:0 8px}.iho-table__filterButton--active{color:#5585f5}.iho-table__filterButton:hover{background:rgba(0,0,0,.05)}.iho-table__filterListWrapper{border:1px solid rgba(0,0,0,.05)}.iho-table__filterListItem{align-items:center;border-radius:4px;display:flex;height:32px;padding:0 8px}.iho-table__filterListItem:hover{background:rgba(0,0,0,.05)}.iho-table__filterFooter{display:flex;justify-content:space-between}.iho-table{height:100%}.iho-table .vxe-header--column [annotation-hover-show=true]{visibility:hidden}.iho-table .vxe-header--column:hover [annotation-hover-show=true]{visibility:visible}.iho-table__headerWrapper{display:inline-flex}
|