cnhis-design-vue 3.1.44-beta.12 → 3.1.44-beta.14
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/components/base-search/index.d.ts +0 -6
- package/es/components/base-search/src/index.vue.d.ts +0 -6
- package/es/components/base-search/src/index.vue.js +1 -1
- package/es/components/base-search/src/index.vue2.js +1 -0
- package/es/components/big-table/src/BigTable.vue.js +1 -1
- package/es/components/big-table/src/components/NoData.vue.js +1 -1
- package/es/components/big-table/src/components/NoData.vue2.js +1 -0
- package/es/components/big-table/src/components/edit-form/edit-separate.vue.js +1 -1
- package/es/components/big-table/src/components/edit-form/edit-separate.vue2.js +1 -0
- package/es/components/big-table/src/components/input-button.vue.js +1 -1
- package/es/components/big-table/src/components/input-button.vue2.js +1 -0
- package/es/components/big-table/src/components/separate.vue.js +1 -1
- package/es/components/big-table/src/components/separate.vue2.js +1 -0
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/src/BpmnWorkflow.vue.js +1 -1
- package/es/components/bpmn-workflow/src/BpmnWorkflow.vue2.js +1 -0
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +1 -0
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +1 -0
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +1 -0
- package/es/components/button-print/src/ButtonPrint.vue.js +1 -1
- package/es/components/button-print/src/components/EditFormat.vue.js +1 -1
- package/es/components/button-print/src/components/EditFormat.vue2.js +1 -0
- package/es/components/button-print/src/components/IdentityVerification.vue.js +1 -1
- package/es/components/button-print/src/components/IdentityVerification.vue2.js +1 -0
- package/es/components/button-print/src/components/Preview.vue.js +1 -1
- package/es/components/classification/index.d.ts +553 -75
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +551 -61
- package/es/components/classification/src/components/search-filter/index.vue.js +1 -1
- package/es/components/classification/src/components/search-filter/index.vue2.js +1 -0
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +553 -75
- package/es/components/classification/src/components/set-classification/index.vue.js +1 -1
- package/es/components/classification/src/components/set-classification/index.vue2.js +1 -0
- package/es/components/classification/src/components/table-modal/index.vue.d.ts +1 -1
- package/es/components/classification/src/components/table-modal/index.vue.js +1 -1
- package/es/components/classification/src/components/table-modal/index.vue2.js +1 -0
- package/es/components/classification/src/const/index.d.ts +2 -2
- package/es/components/classification/src/index.vue.d.ts +553 -75
- package/es/components/classification/src/index.vue.js +1 -1
- package/es/components/classification/src/index.vue2.js +1 -0
- package/es/components/classification/style/index.css +1 -1
- package/es/components/date-picker/src/DatePicker.vue.js +1 -1
- package/es/components/date-picker/src/DatePicker.vue2.js +1 -0
- package/es/components/fabric-chart/src/FabricChart.vue.js +1 -1
- package/es/components/fabric-chart/src/FabricChart.vue2.js +1 -0
- package/es/components/fabric-chart/src/components/PopupTip.vue.js +1 -1
- package/es/components/fabric-chart/src/components/PopupTip.vue2.js +1 -0
- package/es/components/fabric-chart/src/hooks/useBirthProcess.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/useBirthProcess.js +1 -1
- package/es/components/fabric-chart/src/hooks/useBirthProcessChart.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/useBirthProcessChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/useBottom.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/useBottom.js +1 -1
- package/es/components/fabric-chart/src/hooks/useCenter.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/useCenter.js +1 -1
- package/es/components/fabric-chart/src/hooks/useCommon.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/useCumputedPoint.js +1 -1
- package/es/components/fabric-chart/src/hooks/useDraw.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/useDraw.js +1 -1
- package/es/components/fabric-chart/src/hooks/useEvent.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/useEvent.js +1 -1
- package/es/components/fabric-chart/src/hooks/useGrid.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/useGrid.js +1 -1
- package/es/components/fabric-chart/src/hooks/useLeft.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/useLeft.js +1 -1
- package/es/components/fabric-chart/src/hooks/useOther.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/useOther.js +1 -1
- package/es/components/fabric-chart/src/hooks/useRight.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/useRight.js +1 -1
- package/es/components/fabric-chart/src/hooks/useScaleColumn.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/useScaleColumn.js +1 -1
- package/es/components/fabric-chart/src/hooks/useShadow.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/useShadow.js +1 -1
- package/es/components/fabric-chart/src/hooks/useTemperatureChart.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/useTemperatureChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/useTop.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/useTop.js +1 -1
- package/es/components/fabric-chart/src/interface.d.ts +2 -2
- package/es/components/fabric-chart/src/utils/index.js +1 -1
- package/es/components/field-set/src/FieldSet.vue.js +1 -1
- package/es/components/field-set/src/FieldSet.vue2.js +1 -0
- package/es/components/form-config/index.d.ts +0 -2
- package/es/components/form-config/src/FormConfig.vue.d.ts +0 -2
- package/es/components/form-config/src/FormConfig.vue.js +1 -1
- package/es/components/form-config/src/FormConfig.vue2.js +1 -0
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +0 -1
- package/es/components/form-config/src/components/FormConfigCreator.vue.js +1 -1
- package/es/components/form-config/src/components/FormConfigCreator.vue2.js +1 -0
- package/es/components/form-config/src/components/FormConfigDragDisplay.vue.js +1 -1
- package/es/components/form-config/src/components/FormConfigDragDisplay.vue2.js +1 -0
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +0 -1
- package/es/components/form-config/src/components/FormConfigEdit.vue.js +1 -1
- package/es/components/form-config/src/components/FormConfigEdit.vue2.js +1 -0
- package/es/components/form-config/src/components/renderer/CloseButton.vue.js +1 -1
- package/es/components/form-config/src/components/renderer/CloseButton.vue2.js +1 -0
- package/es/components/form-config/src/components/renderer/ComplexNode.vue.js +1 -1
- package/es/components/form-config/src/components/renderer/ComplexNode.vue2.js +1 -0
- package/es/components/form-config/src/components/renderer/DefaultNode.vue.js +1 -1
- package/es/components/form-config/src/components/renderer/DefaultNode.vue2.js +1 -0
- package/es/components/form-render/index.d.ts +0 -1
- package/es/components/form-render/src/FormRender.vue.d.ts +0 -1
- package/es/components/form-render/src/FormRender.vue.js +1 -1
- package/es/components/form-render/src/FormRender.vue2.js +1 -0
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +0 -1
- package/es/components/form-render/src/FormRenderWrapper.vue.js +1 -1
- package/es/components/form-render/src/FormRenderWrapper.vue2.js +1 -0
- package/es/components/form-render/src/components/renderer/combination.js +1 -1
- package/es/components/form-render/src/components/renderer/formItem.js +1 -1
- package/es/components/form-render/src/components/renderer/input.d.ts +4 -4
- package/es/components/form-render/src/components/renderer/input.js +1 -1
- package/es/components/form-render/src/components/renderer/inputNumber.d.ts +4 -4
- package/es/components/form-render/src/components/renderer/inputNumber.js +1 -1
- package/es/components/form-render/src/components/renderer/levelSearchCascader.js +1 -1
- package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.js +1 -1
- package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue2.js +1 -0
- package/es/components/form-render/src/components/renderer/remoteSearch.js +1 -1
- package/es/components/form-render/src/components/renderer/searchCascade.js +1 -1
- package/es/components/form-render/src/components/renderer/select.js +1 -1
- package/es/components/form-render/src/components/tooltipMessage.vue.js +1 -1
- package/es/components/form-render/src/components/tooltipMessage.vue2.js +1 -0
- package/es/components/form-render/src/hooks/useComplexOptions.js +1 -1
- package/es/components/form-render/src/types/index.d.ts +2 -0
- package/es/components/guide/src/renderer.js +1 -1
- package/es/components/iho-select-label/src/LabelFormContent.vue.js +1 -1
- package/es/components/iho-select-label/src/LabelFormContent.vue2.js +1 -0
- package/es/components/iho-select-label/src/SelectLabel.vue.js +1 -1
- package/es/components/iho-select-label/src/SelectLabel.vue2.js +1 -0
- package/es/components/iho-select-label/src/components/label-classify.vue.js +1 -1
- package/es/components/iho-select-label/src/components/label-classify.vue2.js +1 -0
- package/es/components/iho-table/index.d.ts +2 -0
- package/es/components/iho-table/src/IhoTable.vue.d.ts +2 -0
- package/es/components/iho-table/src/IhoTable.vue.js +1 -1
- package/es/components/iho-table/src/IhoTable.vue2.js +1 -0
- package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.d.ts +1 -0
- package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.js +1 -1
- package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue2.js +1 -0
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.js +1 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue2.js +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue2.js +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue2.js +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue2.js +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/checkRendererPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/pictureRendererPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/varialbleHeightPlugin/index.js +1 -1
- package/es/components/iho-table/src/types/index.d.ts +1 -0
- package/es/components/iho-table/src/utils/index.js +1 -1
- package/es/components/iho-table/style/index.css +1 -1
- package/es/components/index.css +1 -1
- package/es/components/index.d.ts +2 -1
- package/es/components/index.js +1 -1
- package/es/components/info-header/index.d.ts +8 -2
- package/es/components/info-header/src/InfoHeader.vue.d.ts +8 -2
- package/es/components/info-header/src/InfoHeader.vue.js +1 -1
- package/es/components/info-header/src/InfoHeader.vue2.js +1 -0
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.js +1 -1
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue2.js +1 -0
- package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.js +1 -1
- package/es/components/info-header/src/components/infoDescription/DescriptionList.vue2.js +1 -0
- package/es/components/info-header/src/components/infoDescription/HiddenContent.vue.js +1 -1
- package/es/components/info-header/src/components/infoDescription/HiddenContent.vue2.js +1 -0
- package/es/components/info-header/src/components/infoDescription/InfoEllipsis.vue.js +1 -1
- package/es/components/info-header/src/components/infoDescription/InfoEllipsis.vue2.js +1 -0
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +0 -1
- package/es/components/info-header/src/components/infoDescription/index.vue.js +1 -1
- package/es/components/info-header/src/components/infoDescription/index.vue2.js +1 -0
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +0 -1
- package/es/components/info-header/src/components/patientInfo/index.vue.js +1 -1
- package/es/components/info-header/src/components/patientInfo/index.vue2.js +1 -0
- package/es/components/keyboard/src/Keyboard.vue.js +1 -1
- package/es/components/keyboard/src/Keyboard.vue2.js +1 -0
- package/es/components/keyboard/src/components/InputNumber.vue.js +1 -1
- package/es/components/keyboard/src/components/InputNumber.vue2.js +1 -0
- package/es/components/keyboard/src/components/NumberPanel.vue.js +1 -1
- package/es/components/keyboard/src/components/NumberPanel.vue2.js +1 -0
- package/es/components/map/src/Map.vue.js +1 -1
- package/es/components/map/src/Map.vue2.js +1 -0
- package/es/components/picture-clipper/index.d.ts +53 -0
- package/es/components/picture-clipper/index.js +1 -0
- package/es/components/picture-clipper/src/PictureClipper.vue.d.ts +53 -0
- package/es/components/picture-clipper/src/PictureClipper.vue.js +1 -0
- package/es/components/picture-clipper/src/PictureClipper.vue2.js +1 -0
- package/es/components/picture-clipper/style/index.css +1 -0
- package/es/components/quick-search/index.d.ts +0 -6
- package/es/components/quick-search/src/index.vue.d.ts +0 -6
- package/es/components/quick-search/src/index.vue.js +1 -1
- package/es/components/quick-search/src/index.vue2.js +1 -0
- package/es/components/quick-search/style/index.css +1 -1
- package/es/components/recommend-search/src/RecommendSearch.vue.js +1 -1
- package/es/components/recommend-search/src/RecommendSearch.vue2.js +1 -0
- package/es/components/recommend-search/src/components/RecommendInput.vue.js +1 -1
- package/es/components/recommend-search/src/components/RecommendInput.vue2.js +1 -0
- package/es/components/recommend-search/src/components/RecommendMenu.vue.js +1 -1
- package/es/components/recommend-search/src/components/RecommendMenu.vue2.js +1 -0
- package/es/components/recommend-search/src/components/RecommendSelect.vue.js +1 -1
- package/es/components/recommend-search/src/components/RecommendSelect.vue2.js +1 -0
- package/es/components/scale-view/src/ScaleView.vue.js +1 -1
- package/es/components/scale-view/src/ScaleView.vue2.js +1 -0
- package/es/components/scale-view/src/components/AnswerParse.vue.js +1 -1
- package/es/components/scale-view/src/components/AnswerParse.vue2.js +1 -0
- package/es/components/scale-view/src/components/EvaluateCountdown.vue.js +1 -1
- package/es/components/scale-view/src/components/EvaluateCountdown.vue2.js +1 -0
- package/es/components/scale-view/src/components/EvaluatePage.vue.js +1 -1
- package/es/components/scale-view/src/components/EvaluatePage.vue2.js +1 -0
- package/es/components/scale-view/src/components/LoadingCom.vue.js +1 -1
- package/es/components/scale-view/src/components/NoData.vue.js +1 -1
- package/es/components/scale-view/src/components/NoData.vue2.js +1 -0
- package/es/components/search-cascader/src/SearchCascader.vue.js +1 -1
- package/es/components/search-cascader/src/SearchCascader.vue2.js +1 -0
- package/es/components/search-cascader/src/components/SearchMenu.js +1 -1
- package/es/components/select-label/src/LabelFormContent.vue.js +1 -1
- package/es/components/select-label/src/LabelFormContent.vue2.js +1 -0
- package/es/components/select-label/src/SelectLabel.vue.js +1 -1
- package/es/components/select-label/src/components/label-classify.vue.js +1 -1
- package/es/components/select-label/src/components/label-classify.vue2.js +1 -0
- package/es/components/select-person/src/SearchMultiple.vue.d.ts +0 -6
- package/es/components/select-person/src/SearchMultiple.vue.js +1 -1
- package/es/components/select-person/src/SelectPerson.vue.js +1 -1
- package/es/components/shortcut-provider/src/ShortcutProvider.vue.js +1 -1
- package/es/components/shortcut-provider/src/ShortcutProvider.vue2.js +1 -0
- package/es/components/shortcut-setter/index.d.ts +0 -1
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +0 -1
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.js +1 -1
- package/es/components/shortcut-setter/src/ShortcutSetter.vue2.js +1 -0
- package/es/components/shortcut-setter/src/ShortcutSetterItem.vue.js +1 -1
- package/es/components/shortcut-setter/src/ShortcutSetterItem.vue2.js +1 -0
- package/es/components/steps-wheel/src/StepsWheel.vue.js +1 -1
- package/es/components/steps-wheel/src/StepsWheel.vue2.js +1 -0
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +551 -48
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue2.js +1 -0
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +134 -0
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue.js +1 -0
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue2.js +1 -0
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +140 -0
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.js +1 -0
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +1 -0
- package/es/components/table-filter/src/components/classify-filter/components/InputFilter.vue.d.ts +28 -0
- package/es/components/table-filter/src/components/classify-filter/components/InputFilter.vue.js +1 -0
- package/es/components/table-filter/src/components/classify-filter/components/InputFilter.vue2.js +1 -0
- package/es/components/table-filter/src/components/classify-filter/components/InputNumber.vue.d.ts +28 -0
- package/es/components/table-filter/src/components/classify-filter/components/InputNumber.vue.js +1 -0
- package/es/components/table-filter/src/components/classify-filter/components/InputNumber.vue2.js +1 -0
- package/es/components/table-filter/src/components/classify-filter/components/InputNumberGroup.vue.d.ts +54 -0
- package/es/components/table-filter/src/components/classify-filter/components/InputNumberGroup.vue.js +1 -0
- package/es/components/table-filter/src/components/classify-filter/components/InputNumberGroup.vue2.js +1 -0
- package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue.d.ts +61 -0
- package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue.js +1 -0
- package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue2.js +1 -0
- package/es/components/table-filter/src/components/classify-filter/components/SelectFilter.vue.d.ts +68 -0
- package/es/components/table-filter/src/components/classify-filter/components/SelectFilter.vue.js +1 -0
- package/es/components/table-filter/src/components/classify-filter/components/SelectFilter.vue2.js +1 -0
- package/es/components/table-filter/src/components/classify-filter/components/SelectLabel.vue.d.ts +47 -0
- package/es/components/table-filter/src/components/classify-filter/components/SelectLabel.vue.js +1 -0
- package/es/components/table-filter/src/components/classify-filter/components/SelectLabel.vue2.js +1 -0
- package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +551 -0
- package/es/components/table-filter/src/components/classify-filter/components/index.js +1 -0
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +551 -48
- package/es/components/table-filter/src/components/classify-filter/index.vue.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/index.vue2.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue2.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/Date.vue.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/Date.vue2.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue2.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue2.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/InputNumberGroup.vue.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/InputNumberGroup.vue2.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/{Label.vue.d.ts → LabelInner.vue.d.ts} +1 -9
- package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue2.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/{SelectLabel.vue.d.ts → LabelOut.vue.d.ts} +1 -9
- package/es/components/table-filter/src/components/render-widget/components/LabelOut.vue.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/LabelOut.vue2.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/Select.vue.d.ts +1 -9
- package/es/components/table-filter/src/components/render-widget/components/Select.vue.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/Select.vue2.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/index.d.ts +713 -8
- package/es/components/table-filter/src/components/render-widget/components/index.js +1 -1
- package/es/components/table-filter/src/components/render-widget/index.vue.d.ts +0 -6
- package/es/components/table-filter/src/components/render-widget/index.vue.js +1 -1
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +3 -27
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
- package/es/components/table-filter/src/constants/index.d.ts +3 -0
- package/es/components/table-filter/src/constants/index.js +1 -0
- package/es/components/table-filter/src/directive/resize.js +1 -1
- package/es/components/table-filter/src/tool/baseOptions.d.ts +4 -0
- package/es/components/table-filter/src/tool/baseOptions.js +1 -1
- package/es/components/table-filter/src/tool/transformData.d.ts +1 -0
- package/es/components/table-filter/src/tool/transformData.js +1 -1
- package/es/components/table-filter/src/types/enums.d.ts +1 -0
- package/es/components/table-filter/src/types/enums.js +1 -1
- package/es/components/time-line/src/TimeLine.vue.js +1 -1
- package/es/components/time-line/src/TimeLine.vue2.js +1 -0
- package/es/components/time-picker/src/TimePicker.vue.js +1 -1
- package/es/components/time-picker/src/TimePicker.vue2.js +1 -0
- package/es/components/vod-chunk-upload/src/chunk-upload-new.vue.js +1 -1
- package/es/components/vod-chunk-upload/src/chunk-upload-new.vue2.js +1 -0
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.js +1 -1
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue2.js +1 -0
- package/es/env.d.ts +25 -25
- package/es/shared/components/SelectPage/SelectPage.vue.js +1 -1
- package/es/shared/components/SelectPage/SelectPage.vue2.js +1 -0
- package/es/shared/components/SvgIcon/SvgIcon.vue.js +1 -1
- package/es/shared/components/SvgIcon/SvgIcon.vue2.js +1 -0
- package/es/shared/components/TextOverTooltip/TextOverTooltip.vue.js +1 -1
- package/es/shared/components/TextOverTooltip/TextOverTooltip.vue2.js +1 -0
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +86 -0
- package/es/shared/components/no-data/NoData.vue.js +1 -1
- package/es/shared/components/no-data/NoData.vue2.js +1 -0
- package/es/shared/package.json.js +1 -1
- package/es/shared/utils/fabricjs/index.d.ts +6823 -0
- package/es/shared/utils/fabricjs/index.js +1 -0
- package/es/shared/utils/tapable/index.d.ts +139 -0
- package/package.json +2 -2
- package/es/components/fabric-chart/src/utils/utils.js +0 -1
- package/es/components/table-filter/src/components/render-widget/components/Label.vue.js +0 -1
- package/es/components/table-filter/src/components/render-widget/components/SelectLabel.vue.js +0 -1
- /package/es/_virtual/{plugin-vue_export-helper.js → _plugin-vue_export-helper.js} +0 -0
- /package/es/components/fabric-chart/src/utils/{utils.d.ts → index.d.ts} +0 -0
package/es/components/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"./grid/index.js";export{default as CGrid}from"./grid/index.js";import r from"./big-table/index.js";export{default as CBigTable}from"./big-table/index.js";import o from"./field-set/index.js";export{default as CFieldSet}from"./field-set/index.js";import s from"./button-print/index.js";export{default as CButtonPrint}from"./button-print/index.js";import t from"./select-person/index.js";export{default as CSelectPerson}from"./select-person/index.js";import i,{CLabelFormContent as a}from"./select-label/index.js";export{CLabelFormContent,default as CSelectLabel}from"./select-label/index.js";import n from"./iho-select-label/index.js";export{CIhoLabelFormContent,default as CIhoSelectLabel}from"./iho-select-label/index.js";import d from"./map/index.js";export{default as CMap}from"./map/index.js";import m from"./vod-chunk-upload/index.js";export{default as CVodChunkUpload}from"./vod-chunk-upload/index.js";import{CScaleView as f,CRadio as
|
|
1
|
+
import e from"./grid/index.js";export{default as CGrid}from"./grid/index.js";import r from"./big-table/index.js";export{default as CBigTable}from"./big-table/index.js";import o from"./field-set/index.js";export{default as CFieldSet}from"./field-set/index.js";import s from"./button-print/index.js";export{default as CButtonPrint}from"./button-print/index.js";import t from"./select-person/index.js";export{default as CSelectPerson}from"./select-person/index.js";import i,{CLabelFormContent as a}from"./select-label/index.js";export{CLabelFormContent,default as CSelectLabel}from"./select-label/index.js";import n from"./iho-select-label/index.js";export{CIhoLabelFormContent,default as CIhoSelectLabel}from"./iho-select-label/index.js";import d from"./map/index.js";export{default as CMap}from"./map/index.js";import m from"./vod-chunk-upload/index.js";export{default as CVodChunkUpload}from"./vod-chunk-upload/index.js";import{CScaleView as f,CRadio as p,CCheckbox as c,CSelect as l,CDatetime as u}from"./scale-view/index.js";export{CCheckbox,CDatetime,CRadio,CScaleView,CSelect}from"./scale-view/index.js";import x from"./info-header/index.js";export{default as CInfoHeader}from"./info-header/index.js";import C from"./time-line/index.js";export{default as CTimeLine}from"./time-line/index.js";import j from"./base-search/index.js";export{default as CBaseSearch}from"./base-search/index.js";import h from"./quick-search/index.js";export{default as CQuickSearch}from"./quick-search/index.js";import b from"./classification/index.js";export{default as CClassification}from"./classification/index.js";import k from"./bpmn-workflow/index.js";export{default as CBpmnWorkflow}from"./bpmn-workflow/index.js";import g from"./steps-wheel/index.js";export{default as CStepsWheel}from"./steps-wheel/index.js";import S from"./editor/index.js";export{default as CEditor}from"./editor/index.js";import F from"./form-render/index.js";export{default as CFormRender}from"./form-render/index.js";import P from"./fabric-chart/index.js";export{default as CFabricChart}from"./fabric-chart/index.js";import y from"./shortcut-provider/index.js";export{default as CShortcutProvider}from"./shortcut-provider/index.js";import v from"./shortcut-setter/index.js";export{default as CShortcutSetter}from"./shortcut-setter/index.js";import I from"./form-config/index.js";export{default as CFormConfig}from"./form-config/index.js";import B from"./iho-table/index.js";export{default as CIhoTable,useIhoTablePresetPlugins}from"./iho-table/index.js";import A from"./keyboard/index.js";export{default as CKeyboard}from"./keyboard/index.js";import L from"./search-cascader/index.js";export{default as CSearchCascader}from"./search-cascader/index.js";import w from"./recommend-search/index.js";export{default as CRecommendSearch}from"./recommend-search/index.js";import D from"./date-picker/index.js";export{default as CDatePicker}from"./date-picker/index.js";import T from"./time-picker/index.js";export{default as CTimePicker}from"./time-picker/index.js";import R from"./config-provider/index.js";export{default as CConfigProvider}from"./config-provider/index.js";import V from"./picture-clipper/index.js";export{default as CPictureClipper}from"./picture-clipper/index.js";export{Insurance}from"./insurance-sdk/src/utils/insurance.js";export{useGuide}from"./guide/src/useGuide.js";export{useFieldListAdaptor}from"./form-render/src/hooks/useFieldListAdaptor.js";export{useFormRequest}from"./form-render/src/hooks/useFormRequest.js";export{useCommonLog}from"./form-render/src/hooks/useCommonLog.js";export{useFormField}from"./form-render/src/hooks/useFormField.js";export{useFormAsyncQueue}from"./form-render/src/hooks/useFormAsyncQueue.js";export{useFieldVisitor}from"./form-render/src/hooks/useFieldVisitor.js";export{useFieldNormalize}from"./form-render/src/hooks/useFieldNormalize.js";export{useFormValidator,validateMessageLocale}from"./form-render/src/hooks/useFormValidator.js";export{BusinessCollector,useBusinessBinding}from"./form-render/src/hooks/useBusinessBinding.js";export{ContextCollector,useChangeContext}from"./form-render/src/hooks/useChangeContext.js";export{FormItemDepsCollector,useFormItemDeps}from"./form-render/src/hooks/useFormItemDeps.js";export{useAnchor}from"./form-render/src/hooks/useAnchor.js";export{useFormContext}from"./form-render/src/hooks/useFormContext.js";export{useCommonInjection,useSelectOptionProps}from"./form-render/src/hooks/useCommonInjection.js";export{searchContentMatcher,useAutographOptions,useRecommendOptions,useUrlConfigOptions}from"./form-render/src/hooks/useFormRenderOptions.js";export{businessDateParser,isIdCard,isMobile,parseAge2Birthday,parseAgeFromContext,parseBirthday,parseIdCard,transformDateFormat}from"./form-render/src/utils/business.js";export{findNextWidget,queryDecoratorByAddress,queryDecoratorByFieldKey,queryInput}from"./form-render/src/utils/dom.js";export{assignClearBindVisited,assignUpdateValue,assignValueBindKey,createLinebarId,createObjSchema,createVisitedSetter,dotEscape,fieldKeyEscape,getParentLinebar,traverseDependKey,traverseSchema}from"./form-render/src/utils/schema.js";export{combineExtendKey,createInputSlot,createSlot,createUrlConfigParams,formRenderLog,injectOrProvide,isNestedFieldType,isNestedType,keywordMatcher,mergeDeepProperties,parseNumberFromMaybeString,presetRequestHandler,splitExtendKey,validateMessageParser}from"./form-render/src/utils/index.js";export*from"@formily/core";export{GlobalShortcutProvider,ShortcutManager,useShortcuts}from"./shortcut-provider/src/hooks/useShortcuts.js";export{useShortcutSignature}from"./shortcut-provider/src/hooks/useShortcutSignature.js";export{defineTablePlugin,useTablePlugin}from"./iho-table/src/hooks/useTablePlugin.js";export{useColumnConfigAdaptor}from"./iho-table/src/hooks/useColumnConfigAdaptor.js";export{AbstractConfigHooks,AbstractDataHooks,AbstractDomInsertHooks,AbstractEventHooks,AbstractExposeHooks,AbstractFieldHooks,AbstractSetupHooks}from"./iho-table/src/types/pluginType.js";export{Print}from"./button-print/src/utils/print.js";export{getFileUrl,isIReport,useBrowserPrint}from"./button-print/src/utils/browserPrint.js";const H={CGrid:e,CBigTable:r,CFieldSet:o,CButtonPrint:s,CSelectPerson:t,CSelectLabel:i,CLabelFormContent:a,CIhoSelectLabel:n,CScaleView:f,CMap:d,CVodChunkUpload:m,CRadio:p,CCheckbox:c,CSelect:l,CDatetime:u,CInfoHeader:x,CTimeLine:C,CBaseSearch:j,CQuickSearch:h,CClassification:b,CBpmnWorkflow:k,CStepsWheel:g,CEditor:S,CFormRender:F,CFabricChart:P,CShortcutProvider:y,CShortcutSetter:v,CFormConfig:I,CIhoTable:B,CKeyboard:A,CSearchCascader:L,CRecommendSearch:w,CDatePicker:D,CTimePicker:T,CConfigProvider:R,CPictureClipper:V};var E={install:function(e){Object.values(H).forEach((r=>{r.install(e)}))},...H};export{E as default};
|
|
@@ -146,6 +146,8 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
146
146
|
requestInstance: import("..").RequestInstance;
|
|
147
147
|
enterToNextWidget: boolean | ((fieldItem: import("..").FieldItem) => boolean | void);
|
|
148
148
|
lowCodeReactions: import("..").FormLowCodeReactions.Config[];
|
|
149
|
+
linebarAutoHidden: boolean;
|
|
150
|
+
bordered: string | boolean;
|
|
149
151
|
}>>>;
|
|
150
152
|
};
|
|
151
153
|
}, {
|
|
@@ -296,6 +298,8 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
296
298
|
requestInstance: import("..").RequestInstance;
|
|
297
299
|
enterToNextWidget: boolean | ((fieldItem: import("..").FieldItem) => boolean | void);
|
|
298
300
|
lowCodeReactions: import("..").FormLowCodeReactions.Config[];
|
|
301
|
+
linebarAutoHidden: boolean;
|
|
302
|
+
bordered: string | boolean;
|
|
299
303
|
}>>>;
|
|
300
304
|
};
|
|
301
305
|
}>> & {
|
|
@@ -456,6 +460,8 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
456
460
|
requestInstance: import("..").RequestInstance;
|
|
457
461
|
enterToNextWidget: boolean | ((fieldItem: import("..").FieldItem) => boolean | void);
|
|
458
462
|
lowCodeReactions: import("..").FormLowCodeReactions.Config[];
|
|
463
|
+
linebarAutoHidden: boolean;
|
|
464
|
+
bordered: string | boolean;
|
|
459
465
|
}>>;
|
|
460
466
|
};
|
|
461
467
|
themeOverrides: import("naive-ui").GlobalThemeOverrides;
|
|
@@ -2742,7 +2748,6 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2742
2748
|
syncBarPosition: import("../../../es/shared/types").Func<any[], any>;
|
|
2743
2749
|
} | undefined>;
|
|
2744
2750
|
currentAnchor: import("vue").WritableComputedRef<string>;
|
|
2745
|
-
generateAnchorList: (formModel: import("@formily/core").Form<any>) => Promise<void>;
|
|
2746
2751
|
updateAnchorList: (field: import("@formily/core").GeneralField) => void;
|
|
2747
2752
|
anchorIdList: import("vue").Ref<{
|
|
2748
2753
|
name: string;
|
|
@@ -3592,7 +3597,6 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
3592
3597
|
syncBarPosition: import("../../../es/shared/types").Func<any[], any>;
|
|
3593
3598
|
} | undefined>;
|
|
3594
3599
|
currentAnchor: import("vue").WritableComputedRef<string>;
|
|
3595
|
-
generateAnchorList: (formModel: import("@formily/core").Form<any>) => Promise<void>;
|
|
3596
3600
|
updateAnchorList: (field: import("@formily/core").GeneralField) => void;
|
|
3597
3601
|
anchorIdList: import("vue").Ref<{
|
|
3598
3602
|
name: string;
|
|
@@ -4199,6 +4203,8 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
4199
4203
|
requestInstance: import("..").RequestInstance;
|
|
4200
4204
|
enterToNextWidget: boolean | ((fieldItem: import("..").FieldItem) => boolean | void);
|
|
4201
4205
|
lowCodeReactions: import("..").FormLowCodeReactions.Config[];
|
|
4206
|
+
linebarAutoHidden: boolean;
|
|
4207
|
+
bordered: string | boolean;
|
|
4202
4208
|
}>>>;
|
|
4203
4209
|
};
|
|
4204
4210
|
}>> & {
|
|
@@ -146,6 +146,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
146
146
|
requestInstance: import("../../../../es/components/form-render").RequestInstance;
|
|
147
147
|
enterToNextWidget: boolean | ((fieldItem: import("../../../../es/components/form-render").FieldItem) => boolean | void);
|
|
148
148
|
lowCodeReactions: import("../../../../es/components/form-render").FormLowCodeReactions.Config[];
|
|
149
|
+
linebarAutoHidden: boolean;
|
|
150
|
+
bordered: string | boolean;
|
|
149
151
|
}>>>;
|
|
150
152
|
};
|
|
151
153
|
}, {
|
|
@@ -294,6 +296,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
294
296
|
requestInstance: import("../../../../es/components/form-render").RequestInstance;
|
|
295
297
|
enterToNextWidget: boolean | ((fieldItem: import("../../../../es/components/form-render").FieldItem) => boolean | void);
|
|
296
298
|
lowCodeReactions: import("../../../../es/components/form-render").FormLowCodeReactions.Config[];
|
|
299
|
+
linebarAutoHidden: boolean;
|
|
300
|
+
bordered: string | boolean;
|
|
297
301
|
}>>>;
|
|
298
302
|
};
|
|
299
303
|
}>> & {
|
|
@@ -450,6 +454,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
450
454
|
requestInstance: import("../../../../es/components/form-render").RequestInstance;
|
|
451
455
|
enterToNextWidget: boolean | ((fieldItem: import("../../../../es/components/form-render").FieldItem) => boolean | void);
|
|
452
456
|
lowCodeReactions: import("../../../../es/components/form-render").FormLowCodeReactions.Config[];
|
|
457
|
+
linebarAutoHidden: boolean;
|
|
458
|
+
bordered: string | boolean;
|
|
453
459
|
}>>;
|
|
454
460
|
};
|
|
455
461
|
themeOverrides: import("naive-ui").GlobalThemeOverrides;
|
|
@@ -2736,7 +2742,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2736
2742
|
syncBarPosition: Func<any[], any>;
|
|
2737
2743
|
} | undefined>;
|
|
2738
2744
|
currentAnchor: import("vue").WritableComputedRef<string>;
|
|
2739
|
-
generateAnchorList: (formModel: import("../../../../es/components/form-render").Form<any>) => Promise<void>;
|
|
2740
2745
|
updateAnchorList: (field: import("../../../../es/components/form-render").GeneralField) => void;
|
|
2741
2746
|
anchorIdList: import("vue").Ref<{
|
|
2742
2747
|
name: string;
|
|
@@ -3586,7 +3591,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3586
3591
|
syncBarPosition: Func<any[], any>;
|
|
3587
3592
|
} | undefined>;
|
|
3588
3593
|
currentAnchor: import("vue").WritableComputedRef<string>;
|
|
3589
|
-
generateAnchorList: (formModel: import("../../../../es/components/form-render").Form<any>) => Promise<void>;
|
|
3590
3594
|
updateAnchorList: (field: import("../../../../es/components/form-render").GeneralField) => void;
|
|
3591
3595
|
anchorIdList: import("vue").Ref<{
|
|
3592
3596
|
name: string;
|
|
@@ -4191,6 +4195,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4191
4195
|
requestInstance: import("../../../../es/components/form-render").RequestInstance;
|
|
4192
4196
|
enterToNextWidget: boolean | ((fieldItem: import("../../../../es/components/form-render").FieldItem) => boolean | void);
|
|
4193
4197
|
lowCodeReactions: import("../../../../es/components/form-render").FormLowCodeReactions.Config[];
|
|
4198
|
+
linebarAutoHidden: boolean;
|
|
4199
|
+
bordered: string | boolean;
|
|
4194
4200
|
}>>>;
|
|
4195
4201
|
};
|
|
4196
4202
|
}>> & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from"./InfoHeader.vue2.js";import r from"../../../_virtual/_plugin-vue_export-helper.js";var o=r(e,[["__file","InfoHeader.vue"]]);export{o as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{defineComponent as e,provide as t,ref as n,computed as o,openBlock as i,createElementBlock as a,normalizeClass as s,normalizeStyle as r,unref as c,createElementVNode as p,createCommentVNode as f,renderSlot as l,createVNode as d,withCtx as u,mergeProps as m,Fragment as h,renderList as g,createBlock as v,resolveDynamicComponent as y,h as b,nextTick as I}from"vue";import{isString as _}from"lodash-es";import $ from"./components/infoDescription/index.vue.js";import x from"./components/patientInfo/index.vue.js";import{InjectionInfoHeaderEmit as S,InjectionInfoHeaderFormRef as j}from"./constants/index.js";const z={class:"c-info-header__operation"},w={key:0,class:"c-info-header__divider"},k={class:"c-info-header__setting"},C=["onClick"];var H=e({__name:"InfoHeader",props:{compact:{type:Boolean,required:!0},patientInfo:{type:Object,default:()=>({})},patientEditable:{type:Boolean},separator:{type:String,default:":"},infoList:{type:Array,default:()=>[]},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},minColumnWidth:{type:[String,Number],default:180},rowHeight:{type:[String,Number],default:38},settingIcons:{type:Array,default:()=>["patientInfo","fieldSet","compact"]},formProps:{type:Object}},emits:["openPatientInfo","fieldSet","update:compact","formChange"],setup(e,{expose:H,emit:P}){const A=e;t(S,P);const B=n();function D(){var e;return null==(e=B.value)?void 0:e.updateColumn()}const E=o((()=>({"--row-height":A.rowHeight,"--row-num":A.compact?1:2,"--padding-tb":A.compact?9:4}))),F={patientInfo:{event:function(){P("openPatientInfo")},render:()=>[b("i",{class:"info-header--iconfont info-header--icon-a-menzhenyishengzhanxitongtubiaobianji"})]},fieldSet:{event:function(){P("fieldSet")},render:()=>[b("i",{class:"info-header--iconfont info-header--icon-a-menzhenyishengzhanxitongtubiaoshezhi"})]},compact:{event:async function(){P("update:compact",!A.compact),await I(),await D()},render:()=>[b("i",{class:"info-header--iconfont info-header--icon-a-menzhenyishengzhanxitongtubiaojiantouxia"})]}},N=o((()=>A.settingIcons.map((e=>(_(e)?F[e]:e)||{})))),O=n();return t(j,O),H({update:D,$formRender:O}),(t,n)=>(i(),a("div",{class:s(["c-info-header",{"is-compact":e.compact}]),style:r(c(E))},[p("section",z,[f(" 操作区插槽 "),l(t.$slots,"operation")]),t.$slots.operation?(i(),a("div",w)):f("v-if",!0),f(" 患者信息区插槽,需要自己实现整个患者信息区时使用 "),l(t.$slots,"patientModule",{},(()=>[d(c(x),{"patient-info":e.patientInfo,"patient-editable":e.patientEditable},{avatarInfo:u((()=>[f(" 头像区补充内容插槽 (会插入头像下方) "),l(t.$slots,"avatarInfo")])),avatar:u((()=>[f(" 头像插槽 "),l(t.$slots,"avatar")])),tags:u((()=>[f(" 标签插槽 "),l(t.$slots,"tags")])),_:3},8,["patient-info","patient-editable"])])),d(c($),m({ref_key:"infoDescriptionRef",ref:B,"root-slot":t.$slots},t.$props),{info:u((()=>[f(" 信息描述区插槽 "),l(t.$slots,"info")])),_:3},16,["root-slot"]),p("section",k,[f(" 设置区插槽 "),l(t.$slots,"setting",{},(()=>[(i(!0),a(h,null,g(c(N),(e=>(i(),a("div",{key:e,class:"c-info-header__settingIcon",onClick:e.event},[(i(),v(y(e.render)))],8,C)))),128))]))])],6))}});export{H as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from"./DescriptionItem.vue2.js";import r from"../../../../../_virtual/_plugin-vue_export-helper.js";var t=r(e,[["__file","DescriptionItem.vue"]]);export{t as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{defineComponent as e,inject as t,computed as o,watch as n,openBlock as l,createElementBlock as i,createBlock as r,unref as m,normalizeStyle as s,Fragment as d,withDirectives as f,createElementVNode as a,vShow as c,createCommentVNode as u}from"vue";import{isField as p}from"@formily/core";import{useForm as v}from"@formily/vue";import{isFunction as y}from"lodash-es";import{pauseTracking as I,enableTracking as h}from"@vue/reactivity";import"../../../../form-render/index.js";import{InjectionSchemaField as F,InjectionBusinessCollector as w}from"../../../../form-render/src/constants/index.js";import{InjectionInfoHeaderFormRef as b}from"../../constants/index.js";import k from"./HiddenContent.vue.js";import P from"./InfoEllipsis.vue.js";import x from"../../../../../shared/components/SlotRender/SlotRender.js";import{useFieldListAdaptor as j}from"../../../../form-render/src/hooks/useFieldListAdaptor.js";import{createObjSchema as g}from"../../../../form-render/src/utils/schema.js";const S={key:0};var W=e({__name:"DescriptionItem",props:{infoItem:{default:()=>({})},labelField:{default:"label"},valueField:{default:"value"},width:null,rootSlot:null},setup(e){const W=e,_=t(F,{render:()=>null}),B=t(b);async function E(e){var t,o,n;if(!e.formField||e.edit)return;e.edit=!0;const l=await(null==(t=B.value)?void 0:t.queryWidget(e[W.labelField]));l&&(null==(o=l.widgetElement)||o.focus(),null==(n=l.widgetElement)||n.click())}const q=t(w,void 0),{schemaAdaptor:A}=j(q),C=v(),D=o((()=>{var e,t,o;const n=W.infoItem.formField;if(!n)return{};const l=W.infoItem[W.labelField],i={...n,html_type:null!=(e=n.html_type)?e:"INPUT",val_key:l,decoratorProps:{showLabel:!1,...n.decoratorProps,style:{marginBottom:"-12px"}},componentProps:{size:"tiny",clearable:!0,...n.componentProps,style:{fontWeight:(null==(t=W.infoItem)?void 0:t.bold)?700:500,...null==(o=n.componentProps)?void 0:o.style},async onBlur(e){var t;if(C&&C.value)try{const o=C.value.query(l).take();await(o&&p(o)&&o.validate()),W.infoItem.edit=!1,y(null==(t=n.componentProps)?void 0:t.onBlur)&&n.componentProps.onBlur(e)}catch(e){}}}};I(),i.default_val=W.infoItem[W.valueField],h();const r=A([i]);return g(r)}));n((()=>W.width),(e=>{var t;e&&W.infoItem.formField&&(null==(t=B.value)||t.setFieldState(W.infoItem[W.labelField],(t=>{t.componentProps&&(t.componentProps.style={...t.componentProps.style,maxWidth:e+"px"})})))}));const L=o((()=>({fontWeight:W.infoItem.bold?700:500,...W.infoItem.contentStyle}))),R=o((()=>{const{bold:e,contentStyle:t}=W.infoItem,o=W.width+"px";return{width:o,maxWidth:o,fontWeight:e?700:500,...t}})),z=o((()=>["电话","身份证"].some((e=>{var t,o;return null==(o=null==(t=W.infoItem[W.labelField])?void 0:t.includes)?void 0:o.call(t,e)}))));return(t,o)=>(l(),i("section",{onDblclick:o[0]||(o[0]=t=>E(e.infoItem)),onClick:o[1]||(o[1]=t=>async function(e){e.formField&&!e[W.valueField]&&0!==e[W.valueField]&&E(e)}(e.infoItem))},[e.infoItem.slot?(l(),r(m(x),{key:0,renderer:e.infoItem.slot,"root-slots":e.rootSlot,item:e.infoItem,style:s(m(L)),width:e.width},null,8,["renderer","root-slots","item","style","width"])):(l(),i(d,{key:1},[f(a("section",null,[m(z)?(l(),r(k,{key:0,content:e.infoItem[e.valueField],tip:e.infoItem.tip,"content-style":m(L),width:e.width},null,8,["content","tip","content-style","width"])):(l(),r(P,{key:1,"content-style":m(R),content:e.infoItem[e.valueField],tip:e.infoItem.tip},null,8,["content-style","content","tip"]))],512),[[c,!e.infoItem.edit||!e.infoItem.formField]]),e.infoItem.formField?f((l(),i("section",S,[(l(),r(m(_),{schema:m(D),key:e.infoItem[e.labelField]},null,8,["schema"]))],512)),[[c,e.infoItem.edit]]):u("v-if",!0)],64))],32))}});export{W as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from"./DescriptionList.vue2.js";import i from"../../../../../_virtual/_plugin-vue_export-helper.js";var r=i(e,[["__file","DescriptionList.vue"]]);export{r as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{defineComponent as l,openBlock as e,createBlock as t,unref as i,withCtx as o,createElementBlock as a,Fragment as n,renderList as u}from"vue";import{NDescriptions as d,NDescriptionsItem as r}from"naive-ui";import f from"./DescriptionItem.vue.js";var s=l({__name:"DescriptionList",props:{infoList:{default:()=>[]},labelField:{default:"label"},valueField:{default:"value"},rootSlot:null,descriptionWidthList:{default:()=>[]},columnNum:{default:3},inForm:{type:Boolean}},setup(l){const s={height:"100%",display:"inline-flex","align-items":"center"};return(m,p)=>(e(),t(i(d),{"label-align":"right","label-placement":"left",separator:":",column:l.columnNum,"label-style":s,"content-style":s},{default:o((()=>[(e(!0),a(n,null,u(l.infoList,((a,n)=>(e(),t(i(r),{key:a[l.labelField],label:a[l.labelField]},{default:o((()=>[(e(),t(f,{key:a[l.labelField],"info-item":a,width:l.descriptionWidthList[n],"root-slot":l.rootSlot,"label-field":l.labelField,"value-field":l.valueField},null,8,["info-item","width","root-slot","label-field","value-field"]))])),_:2},1032,["label"])))),128))])),_:1},8,["column"]))}});export{s as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from"./HiddenContent.vue2.js";import t from"../../../../../_virtual/_plugin-vue_export-helper.js";var r=t(e,[["__file","HiddenContent.vue"]]);export{r as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{defineComponent as t,ref as n,computed as e,openBlock as i,createElementBlock as o,normalizeStyle as r,unref as l,createElementVNode as a,createVNode as c,normalizeClass as s}from"vue";import u from"./InfoEllipsis.vue.js";const d={class:"c-info-header__hidden--content"};var f=t({__name:"HiddenContent",props:{content:{type:String,default:""},tip:String,width:{type:Number},contentStyle:{type:Object,default:()=>({})}},setup(t){const f=t,h=n(!0);function p(){h.value=!h.value}const v=e((()=>{const t=f.width+"px";return{maxWidth:t,width:t}})),y=e((()=>{if(!f.width)return{};const t=f.width-40+"px";return Object.assign({},f.contentStyle,{maxWidth:t})})),g=e((()=>{let{content:t}=f;if(!h.value)return t;if(null==t)return"-";t+="";const n=t.length;if(!n||1===n)return t;const e=Math.floor(n/2),i=Math.floor((n-e)/2);return`${t.substring(0,i)}${"*".repeat(e)}${null==t?void 0:t.substring(i+e)}`}));return(n,e)=>(i(),o("div",{class:"c-info-header__hidden",style:r(l(v))},[a("div",d,[c(u,{"content-style":l(y),content:l(g),tip:t.tip},null,8,["content-style","content","tip"])]),a("i",{onClick:p,class:s(["c-info-header__hidden--icon","info-header--iconfont","info-header--icon-"+(h.value?"guanbi-yanjing":"faxian-yanjing")])},null,2)],4))}});export{f as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from"./InfoEllipsis.vue2.js";import i from"../../../../../_virtual/_plugin-vue_export-helper.js";var l=i(e,[["__file","InfoEllipsis.vue"]]);export{l as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{defineComponent as t,openBlock as e,createBlock as o,unref as i,withCtx as l,createElementVNode as p,createVNode as n,normalizeStyle as a,createTextVNode as r,toDisplayString as s}from"vue";import{NTooltip as d,NEllipsis as u}from"naive-ui";var f=t({__name:"InfoEllipsis",props:{content:{type:String,default:""},tip:{type:String},contentStyle:{type:Object,default:()=>({})}},setup:t=>(f,c)=>(e(),o(i(d),{disabled:!t.tip},{trigger:l((()=>[p("section",null,[n(i(u),{style:a(t.contentStyle),tooltip:{placement:t.tip?"bottom":"top"}},{default:l((()=>[r(s(t.content||"-"),1)])),_:1},8,["style","tooltip"])])])),default:l((()=>[r(" "+s(t.tip),1)])),_:1},8,["disabled"]))});export{f as default};
|
|
@@ -2324,7 +2324,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2324
2324
|
syncBarPosition: Func<any[], any>;
|
|
2325
2325
|
} | undefined>;
|
|
2326
2326
|
currentAnchor: import("vue").WritableComputedRef<string>;
|
|
2327
|
-
generateAnchorList: (formModel: import("../../../../../../es/components/form-render").Form<any>) => Promise<void>;
|
|
2328
2327
|
updateAnchorList: (field: import("../../../../../../es/components/form-render").GeneralField) => void;
|
|
2329
2328
|
anchorIdList: import("vue").Ref<{
|
|
2330
2329
|
name: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from"./index.vue2.js";import r from"../../../../../_virtual/_plugin-vue_export-helper.js";var i=r(e,[["__file","index.vue"]]);export{i as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{defineComponent as e,inject as i,computed as o,ref as l,nextTick as n,onMounted as t,watch as r,onBeforeUnmount as a,onDeactivated as s,onActivated as u,openBlock as f,createElementBlock as d,normalizeStyle as m,createVNode as c,unref as p,withCtx as v,createCommentVNode as h,renderSlot as _,createElementVNode as y,createBlock as w,mergeProps as F}from"vue";import{useThrottleFn as L,useEventListener as b}from"@vueuse/core";import{isArray as C}from"lodash-es";import{NScrollbar as W,NConfigProvider as k}from"naive-ui";import x from"./DescriptionList.vue.js";import{InjectionInfoHeaderEmit as j,InjectionInfoHeaderFormRef as R}from"../../constants/index.js";import{useThemeOverrides as g}from"../../hooks/useThemeOverrides.js";import $ from"../../../../form-render/index.js";var A=e({__name:"index",props:{infoList:{default:()=>[]},labelField:{default:"label"},valueField:{default:"value"},minColumnWidth:{default:180},rootSlot:null,formProps:{default:()=>({})}},setup(e,{expose:A}){const I=e,{themeOverrides:M}=g(),O=i(j),P=o((()=>C(I.infoList)&&I.infoList.some((e=>e.formField)))),S=o((()=>C(I.infoList)?I.infoList.reduce(((e,i)=>(i.formField&&(e[i[I.labelField]]=i[I.valueField]),e)),{}):{}));function q(e){var i;const{fieldKey:o,value:l}=e,n=null==(i=I.infoList)?void 0:i.find((e=>e[I.labelField]===o));n&&(n[I.valueField]=l,O&&O("formChange",e))}const z=i(R),D=l(3),K=l(),T=l(0),B=l([]),E=L((async function(){await n();const e=K.value;if(!e)return;const{clientWidth:i}=e;D.value=Math.floor(i/+I.minColumnWidth),T.value=Math.floor(i/D.value),await n();const o=e.querySelectorAll(".n-descriptions-table-content__label");o&&(B.value=Array.from(o).map((e=>T.value-e.clientWidth-8)))}),200,!0,!1);let G;function H(){clearInterval(G)}function J(){H(),G=setInterval(E,700)}return t(E),r([()=>I.minColumnWidth,()=>I.infoList],E,{flush:"post",deep:!0}),b(window,"resize",E),a(H),s(H),u(J),t(J),A({updateColumn:E}),(i,o)=>(f(),d("section",{class:"c-info-header__info",ref_key:"infoRef",ref:K,style:m({"--column-width":T.value})},[c(p(W),{class:"c-info-header__infoWrapper"},{default:v((()=>[h(" 描述信息区插槽 "),_(i.$slots,"info",{},(()=>[y("section",null,[p(P)?(f(),w(p($),F({key:1},e.formProps,{onFormChange:q,"initial-data":p(S),ref_key:"formRenderRef",ref:z,class:"c-info-header__formRender"}),{default:v((()=>[c(p(k),{"theme-overrides":p(M),style:m({"grid-column":"span min(var(--column), 999) / span min(var(--column), 999)"})},{default:v((()=>[c(x,F(i.$props,{"description-width-list":B.value,"column-num":D.value,"in-form":""}),null,16,["description-width-list","column-num"])])),_:1},8,["theme-overrides","style"])])),_:1},16,["initial-data"])):(f(),w(x,F({key:0},i.$props,{"description-width-list":B.value,"column-num":D.value}),null,16,["description-width-list","column-num"]))])]))])),_:3})],4))}});export{A as default};
|
|
@@ -336,7 +336,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
336
336
|
syncBarPosition: import("../../../..").Func<any[], any>;
|
|
337
337
|
} | undefined>;
|
|
338
338
|
currentAnchor: import("vue").WritableComputedRef<string>;
|
|
339
|
-
generateAnchorList: (formModel: import("../../../../../../es/components/form-render").Form<any>) => Promise<void>;
|
|
340
339
|
updateAnchorList: (field: import("../../../../../../es/components/form-render").GeneralField) => void;
|
|
341
340
|
anchorIdList: import("vue").Ref<{
|
|
342
341
|
name: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from"./index.vue2.js";import r from"../../../../../_virtual/_plugin-vue_export-helper.js";var i=r(e,[["__file","index.vue"]]);export{i as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{defineComponent as e,computed as t,ref as a,watch as n,nextTick as i,openBlock as l,createElementBlock as o,renderSlot as r,createVNode as s,unref as p,withCtx as f,mergeProps as d,createElementVNode as u,normalizeClass as c,createBlock as v,resolveDynamicComponent as m,createCommentVNode as _,createTextVNode as g,Fragment as x,renderList as y,toDisplayString as I,h}from"vue";import{isArray as w,isString as b,isNumber as k,isFunction as P,isObject as E,pick as U}from"lodash-es";import{NPopover as C,NImage as L,NDivider as H,NSpace as z,NButton as T,NTag as j,NEllipsis as F}from"naive-ui";import N from"../../../../form-render/index.js";const R={class:"c-info-header__patient"},$={class:"c-info-header__patientHeader"},B={key:0,class:"c-info-header__patientHeader--name"},S={key:1,class:"c-info-header__patientHeader--sex"},V={key:2,class:"c-info-header__patientHeader--age"};var D=e({__name:"index",props:{patientInfo:{default:()=>({})},patientEditable:{type:Boolean}},setup(e){const D=e,M=t((()=>D.patientInfo&&w(D.patientInfo.tagList)?D.patientInfo.tagList.filter((e=>e.render||b(e.content)&&e.content)):[])),O={warning:"#fcc200",info:"rgba(45, 122, 255, 0.1)"},W={warning:"#fff",info:"#2563F4"};function q({type:e="warning"}){return{color:O[e],textColor:W[e]}}function A(e){return()=>b(e)||k(e)?e:P(e)?e():E(e)?h(e):null}const G=a(!1),J=t((()=>D.patientEditable?[{val_key:"name",is_null:"0",is_empty:"0",alias:"姓名",html_type:"INPUT",...D.patientInfo.nameProps},{val_key:"sex",alias:"性别",html_type:"SELECT",is_null:"0",option:[{text:"未知",value:"未知"},{text:"男",value:"男"},{text:"女",value:"女"}],...D.patientInfo.sexProps},{val_key:"age",alias:"年龄",html_type:"INPUT_NUMBER",is_null:"0",is_empty:"0",decoratorProps:{style:{flex:2}},...D.patientInfo.ageProps,suffixConfig:{alias:"年龄单位",is_null:"0",val_key:"ageUnit",html_type:"SELECT",decoratorProps:{style:{flex:1}},option:[{value:"天",text:"天"},{value:"月",text:"月"},{value:"岁",text:"岁"},{value:"小时",text:"小时"},{value:"分",text:"分"},{value:"周",text:"周"}],...D.patientInfo.ageUnitProps}}]:[])),K=a();async function Q(){K.value&&(await K.value.validate(),Object.assign(D.patientInfo,U(K.value.getFormValues(),["name","sex","age","ageUnit"])),G.value=!1)}return n(G,(async e=>{await i(),e&&K.value&&K.value.setFormValues(D.patientInfo||{})})),(t,a)=>(l(),o("section",R,[r(t.$slots,"avatar",{},(()=>[s(p(C),null,{trigger:f((()=>[s(p(L),d({style:{"border-radius":"50%"},width:40,height:40,"preview-disabled":"",src:e.patientInfo.avatar},e.patientInfo.avatarProps),null,16,["src"])])),default:f((()=>[s(p(L),d({width:200,"preview-disabled":"",src:e.patientInfo.avatarPreview||e.patientInfo.avatar},e.patientInfo.avatarPreviewProps),null,16,["src"])])),_:1})])),u("section",null,[u("header",$,[s(p(C),{disabled:!e.patientEditable,trigger:"manual",placement:"bottom",show:G.value},{trigger:f((()=>{var t;return[u("section",{class:c(["c-info-header__patientHeaderWrapper",{"in-edit":G.value}]),onDblclick:a[0]||(a[0]=t=>e.patientEditable&&(G.value=!0))},[e.patientInfo.name?(l(),o("div",B,[(l(),v(m(A(e.patientInfo.name))))])):_("v-if",!0),e.patientInfo.sex?(l(),o("div",S,[g(" / "),(l(),v(m(A(e.patientInfo.sex))))])):_("v-if",!0),null!=e.patientInfo.age?(l(),o("div",V,[g(" / "),(l(),v(m(A(e.patientInfo.age)))),(l(),v(m(A(null!=(t=e.patientInfo.ageUnit)?t:"岁"))))])):_("v-if",!0)],34)]})),default:f((()=>[s(p(N),{column:"6",size:"small","label-placement":"left",style:{width:"200px",margin:"4px 0 -8px 0"},"field-list":p(J),ref_key:"formRenderRef",ref:K},null,8,["field-list"]),s(p(H),{style:{margin:"8px -14px",width:"calc(100% + 28px)"}}),s(p(z),{justify:"end"},{default:f((()=>[s(p(T),{size:"small",onClick:a[1]||(a[1]=e=>G.value=!1)},{default:f((()=>[g("取消")])),_:1}),s(p(T),{size:"small",type:"info",onClick:Q},{default:f((()=>[g("确认")])),_:1})])),_:1})])),_:1},8,["disabled","show"]),r(t.$slots,"tags",{tagList:p(M)},(()=>[(l(!0),o(x,null,y(e.patientInfo.tagList||[],(e=>(l(),v(p(j),d({key:e.content,size:"medium",bordered:!1,color:q(e)},e),{default:f((()=>[e.render?(l(),v(m(e.render),{key:0})):(l(),v(p(F),{key:1,style:{"max-width":"96px"}},{default:f((()=>[g(I(e.content),1)])),_:2},1024))])),_:2},1040,["color"])))),128))]))]),r(t.$slots,"avatarInfo")])]))}});export{D as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from"./Keyboard.vue2.js";import r from"../../../_virtual/_plugin-vue_export-helper.js";var o=r(e,[["__file","Keyboard.vue"]]);export{o as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{defineComponent as e,ref as l,provide as t,computed as o,unref as n,openBlock as a,createBlock as u,normalizeStyle as i,withCtx as s,createVNode as r,mergeProps as d,createElementBlock as c,normalizeClass as f,createElementVNode as p,Fragment as m,renderList as v,createCommentVNode as y,createTextVNode as g,toDisplayString as h}from"vue";import{NPopover as k,NInputNumber as w,NSpace as V,NIcon as b}from"naive-ui";import{Close as x,GitCompareOutline as O,ArrowUndoSharp as S}from"@vicons/ionicons5";import C from"./components/NumberPanel.vue.js";import{useDraggable as _}from"@vueuse/core";import{useTheme as j}from"../../../shared/hooks/useTheme.js";import"date-fns";import"lodash-es";import{defaultCssVars as I}from"./constants/index.js";const D=p("span",null,"键盘",-1),N={class:"keys"},K=["onClick"];var R=e({__name:"Keyboard",props:{mode:{type:String,default:"english"},drag:{type:Boolean,default:!1},positionInitialValue:{type:Object,default:()=>({x:0,y:0})},defaultValue:{type:Number},value:{type:Number},panel:{type:Boolean,default:!0},moveOffset:{type:Object,default:()=>({x:0,y:0})}},emits:["change","keydown"],setup(e,{expose:R,emit:U}){const B=e,E="QWERTYUIOPASDFGHJKLZXCVBNM.",F=["Switch"," ","Undo","Enter"],J=E.split("").concat(F),M=E.split(".")[0].split("").sort().concat(["."],F),P=j(I,"Keyboard");let Q=l(Date.now());t("toSelectInputContent",Q);const T=o((()=>"english"===B.mode)),$=o((()=>({mode:B.mode,defaultValue:B.defaultValue,value:B.value,positionInitialValue:B.positionInitialValue,moveOffset:B.moveOffset,drag:B.drag,onChange:q}))),A=o((()=>`${JSON.stringify(P.value).replace(/\{|\}|\"/g,"").replace(/,/g,";")};${(null==Y?void 0:Y.value)||""}`)),G=l(J.slice()),H=l(null),L=l(null),W=l(null),X=l(),Y=function(){B.defaultValue&&(X.value=B.defaultValue);if(T.value&&B.drag){const{x:e,y:l,style:t}=_(L,{initialValue:B.positionInitialValue,preventDefault:!0,handle:W,onMove:(e,l)=>{var t,o,n,a;e.x+=null!=(o=null==(t=B.moveOffset)?void 0:t.x)?o:0,e.y+=null!=(a=null==(n=B.moveOffset)?void 0:n.y)?a:0}});return t}}();function Z(e){"Switch"!==e?U("keydown",e):G.value="Q"===G.value[0]?M.slice():J.slice()}function q(e){var l,t;null==(t=null==(l=H.value)?void 0:l.setShow)||t.call(l,!1),X.value=e,U("change",e)}return R({select:function(){Q.value=Date.now()}}),(l,t)=>n(T)||e.panel?!n(T)&&e.panel?(a(),u(C,d({key:1},n($),{style:n(P)}),null,16,["style"])):(a(),c("div",{key:2,class:f(["c-keyboard-english",{isFixed:e.drag}]),ref_key:"englishKeyboardRef",ref:L,style:i(n(A))},[r(n(V),{"wrap-item":!1,align:"center",justify:"space-between",ref_key:"keyboardDragRef",ref:W,style:i({cursor:e.drag?"move":"default"})},{default:s((()=>[D,r(n(b),{onClick:t[1]||(t[1]=e=>Z("close")),component:n(x)},null,8,["component"])])),_:1},8,["style"]),p("div",N,[(a(!0),c(m,null,v(G.value,((e,l)=>(a(),c("span",{key:e,class:f(["key"+l]),onClick:l=>Z(e)},["Switch"===e?(a(),u(n(b),{key:0,component:n(O)},null,8,["component"])):y("v-if",!0),"Undo"===e?(a(),u(n(b),{key:1,component:n(S)},null,8,["component"])):y("v-if",!0),g(" "+h(F.includes(e)&&"Enter"!==e?""===e?"空格":"":e),1)],10,K)))),128))])],6)):(a(),u(n(k),{key:0,ref_key:"popoverRef",ref:H,trigger:"click","show-arrow":!1,placement:"bottom-start",style:i([{padding:"0"},n(P)]),"display-directive":"show"},{trigger:s((()=>[r(n(w),{value:X.value,"onUpdate:value":t[0]||(t[0]=e=>X.value=e),"show-button":!1},null,8,["value"])])),default:s((()=>[r(C,{mode:e.mode,defaultValue:e.defaultValue,onChange:q},null,8,["mode","defaultValue"])])),_:1},8,["style"]))}});export{R as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from"./InputNumber.vue2.js";import r from"../../../../_virtual/_plugin-vue_export-helper.js";var u=r(e,[["__file","InputNumber.vue"]]);export{u as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{defineComponent as e,ref as t,inject as u,watch as l,openBlock as n,createBlock as o,unref as a,withCtx as s,createVNode as i}from"vue";import{NInput as r,NSpace as c,NIcon as p}from"naive-ui";import{CaretUp as d,CaretDown as m}from"@vicons/ionicons5";import{getNumber as f}from"../utils/index.js";var v=e({__name:"InputNumber",props:{modelValue:{type:String,default:""},integer:{type:Boolean,default:!1},status:{type:String,default:"success"}},emits:["update:modelValue","update:status"],setup(e,{expose:v,emit:g}){const y=e,V=t(null),_=u("toSelectInputContent");function x(e){const t="string"==typeof e?e:e.join("");g("update:modelValue",t),g("update:status",t?"success":"error")}function S(e){return y.integer?/(^[1-9]\d*$)/.test(e)||!e:/^\d*\.?\d*$/.test(e)||!e}function b(e){const t=f(y.modelValue);let u="+"===e?t+1:t-1;(u<=0||isNaN(u))&&(u=1),g("update:modelValue",u.toString()),g("update:status","success")}return l((()=>_.value),(e=>{var t,u;!y.integer&&(null==(u=null==(t=V.value)?void 0:t.select)||u.call(t))})),v({$childrenRefs:V}),(t,u)=>(n(),o(a(r),{ref_key:"inputRef",ref:V,value:e.modelValue,"onUpdate:value":x,"allow-input":S,placeholder:"",status:e.status,clearable:!e.integer},{suffix:s((()=>[i(a(c),{justify:"center",vertical:""},{default:s((()=>[i(a(p),{size:"13",component:a(d),onClick:u[0]||(u[0]=e=>b("+"))},null,8,["component"]),i(a(p),{size:"13",component:a(m),onClick:u[1]||(u[1]=e=>b("-"))},null,8,["component"])])),_:1})])),_:1},8,["value","status","clearable"]))}});export{v as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from"./NumberPanel.vue2.js";import r from"../../../../_virtual/_plugin-vue_export-helper.js";var u=r(e,[["__file","NumberPanel.vue"]]);export{u as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{defineComponent,computed,ref,watch,openBlock,createElementBlock,normalizeClass,normalizeStyle,unref,createElementVNode,createVNode,withCtx,Fragment,renderList,toDisplayString,createBlock,createCommentVNode,nextTick}from"vue";import{NSpace,NIcon}from"naive-ui";import{ArrowUndoSharp}from"@vicons/ionicons5";import InputNumber from"./InputNumber.vue.js";import{useDraggable}from"@vueuse/core";import{getNumber}from"../utils/index.js";const _hoisted_1={class:"keys"},_hoisted_2=["onClick"],_hoisted_3=["onClick"],_hoisted_4={class:"btns"},_hoisted_5=["onClick"],_hoisted_6={class:"inputs"},_hoisted_7={class:"inputs-right"},_hoisted_8=createElementVNode("hr",null,null,-1);var _sfc_main=defineComponent({__name:"NumberPanel",props:{defaultValue:{type:Number},value:{type:Number},mode:{type:String},positionInitialValue:{type:Object,default:()=>({x:0,y:0})},moveOffset:{type:Object,default:()=>({x:0,y:0})},drag:{type:Boolean,default:!1}},emits:["change"],setup(__props,{emit:emit}){const props=__props,NUMBERKEYS="1234567890.",DAYS=[3,7,14,30],DOSENUMBERKEYS="123/456*789-0.+",CALCULATIONSYMBOLS=["+","-","*","/"],isNumber=computed((()=>"number"===props.mode)),isDay=computed((()=>"day"===props.mode&&!isNumber.value)),isDose=computed((()=>"dose"===props.mode&&!isNumber.value)),numberKeys=computed((()=>(isDose.value?DOSENUMBERKEYS:NUMBERKEYS).split(""))),days=ref(DAYS),doses=ref([2,3,4,5,6,7,8]),inputValue=ref(""),integerValue=ref(),numeratorValue=ref(),denominatorValue=ref(),inputValueStatus=ref("success"),numeratorValueStatus=ref("success"),denominatorValueStatus=ref("success"),keyboardRef=ref(null),inputRef=ref(null),style=init();function init(){if(props.defaultValue&&(inputValue.value=props.defaultValue.toString()),props.drag){const{x:e,y:t,style:a}=useDraggable(keyboardRef,{initialValue:props.positionInitialValue,onMove:(e,t)=>{var a,u,n,l;e.x+=null!=(u=null==(a=props.moveOffset)?void 0:a.x)?u:0,e.y+=null!=(l=null==(n=props.moveOffset)?void 0:n.y)?l:0}});return a}}async function setFocus(){var e,t,a;const u=null==(a=null==(t=null==(e=inputRef.value)?void 0:e.$childrenRefs)?void 0:t.$refs)?void 0:a.inputElRef;await nextTick(),u.focus()}function keydown(key){switch(key){case"Undo":updateValue(key);break;case"Enter":if(!validator())return void(inputValueStatus.value="error");emit("change",eval(inputValue.value)),setFocus();break;default:"number"==typeof key?(inputValue.value=key.toString(),setInputValueStatus(),setFocus()):updateValue(key)}}function onKeydown(e){["Enter"].includes(e.key)&&keydown("Enter")}async function updateValue(e){var t,a,u;const n=null==(u=null==(a=null==(t=inputRef.value)?void 0:t.$childrenRefs)?void 0:a.$refs)?void 0:u.inputElRef,{selectionStart:l,selectionEnd:o}=n,r=inputValue.value.split("");if("Undo"===e){const e=l===o?1:o-l,t=l===o?l-1:l;inputValue.value&&t>-1&&r.splice(t,e)}else r.splice(l,o-l,e);inputValue.value=r.join(""),await nextTick(),n.focus();const s="Undo"===e?l?o>l?l:l-1:0:l+1;n.setSelectionRange(s,s),setInputValueStatus()}function validator(){if(!inputValue.value)return!1;if(CALCULATIONSYMBOLS.slice(2).includes(inputValue.value[0]))return!1;if(CALCULATIONSYMBOLS.includes(inputValue.value[inputValue.value.length-1]))return!1;const e=[];let t=[];const a=inputValue.value.split("");a.forEach(((u,n)=>{CALCULATIONSYMBOLS.includes(u)?(e.push(t.join("")),t=[]):(t.push(u),n===a.length-1&&e.push(t.join("")))}));return!!e.every(((e,t)=>0===t&&!e||/^\d*(.\d+)?$/.test(e)))}function updateFraction(e){setInputStatus(inputValue,inputValueStatus)&&(inputValue.value=(Math.round(+inputValue.value*(1/e)*100)/100).toString(),setInputValueStatus())}function calculateFraction(){if(!setInputStatus(inputValue,inputValueStatus)||!setInputStatus(numeratorValue,numeratorValueStatus,!0)||!setInputStatus(denominatorValue,denominatorValueStatus,!0))return;const e=getNumber(integerValue.value)+getNumber(numeratorValue.value)/getNumber(denominatorValue.value);inputValue.value=(Math.round(+inputValue.value*e*100)/100).toString(),setInputValueStatus()}function setInputStatus(e,t,a){if((a||e.value&&"."!==e.value)&&(!a||e.value))return!0;t.value="error"}function setInputValueStatus(){inputValueStatus.value=inputValue.value?"success":"error"}return watch((()=>props.value),(e=>inputValue.value=(e||"").toString()),{immediate:!0}),(e,t)=>(openBlock(),createElementBlock("div",{class:normalizeClass(["c-keyboard",{isFixed:__props.drag}]),ref_key:"keyboardRef",ref:keyboardRef,style:normalizeStyle(unref(style)),onKeydown:onKeydown},[createElementVNode("div",{class:normalizeClass(["left",{isDose:unref(isDose)}])},[createVNode(InputNumber,{ref_key:"inputRef",ref:inputRef,modelValue:inputValue.value,"onUpdate:modelValue":t[0]||(t[0]=e=>inputValue.value=e),status:inputValueStatus.value,"onUpdate:status":t[1]||(t[1]=e=>inputValueStatus.value=e)},null,8,["modelValue","status"]),createElementVNode("div",_hoisted_1,[createVNode(unref(NSpace),{class:"margin-offset","wrap-item":!1},{default:withCtx((()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(numberKeys),(e=>(openBlock(),createElementBlock("span",{key:e,class:normalizeClass("0"===e?"is-0":""),onClick:t=>keydown(e)},toDisplayString(e),11,_hoisted_2)))),128))])),_:1}),createVNode(unref(NSpace),{class:"margin-offset","wrap-item":!1},{default:withCtx((()=>[createElementVNode("span",{class:"opt",onClick:t[2]||(t[2]=e=>keydown("Undo"))},[createVNode(unref(NIcon),{component:unref(ArrowUndoSharp)},null,8,["component"])]),createElementVNode("span",{class:"opt",onClick:t[3]||(t[3]=e=>keydown("Enter"))},"确定")])),_:1})])],2),unref(isDay)?(openBlock(),createBlock(unref(NSpace),{key:0,class:"right-days","wrap-item":!1,justify:"center",vertical:""},{default:withCtx((()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(days.value,(e=>(openBlock(),createElementBlock("span",{class:"btn",key:e,onClick:t=>keydown(e)},toDisplayString(e)+"天",9,_hoisted_3)))),128))])),_:1})):createCommentVNode("v-if",!0),unref(isDose)?(openBlock(),createBlock(unref(NSpace),{key:1,class:"right-dose","wrap-item":!1},{default:withCtx((()=>[createElementVNode("div",_hoisted_4,[(openBlock(!0),createElementBlock(Fragment,null,renderList(doses.value,(e=>(openBlock(),createElementBlock("span",{class:"btn",key:e,onClick:t=>updateFraction(e)},"1/"+toDisplayString(e),9,_hoisted_5)))),128))]),createVNode(unref(NSpace),{justify:"center",vertical:"","wrap-item":!1},{default:withCtx((()=>[createElementVNode("div",_hoisted_6,[createVNode(InputNumber,{integer:"",modelValue:integerValue.value,"onUpdate:modelValue":t[4]||(t[4]=e=>integerValue.value=e)},null,8,["modelValue"]),createElementVNode("div",_hoisted_7,[createVNode(InputNumber,{integer:"",modelValue:numeratorValue.value,"onUpdate:modelValue":t[5]||(t[5]=e=>numeratorValue.value=e),status:numeratorValueStatus.value,"onUpdate:status":t[6]||(t[6]=e=>numeratorValueStatus.value=e)},null,8,["modelValue","status"]),_hoisted_8,createVNode(InputNumber,{integer:"",modelValue:denominatorValue.value,"onUpdate:modelValue":t[7]||(t[7]=e=>denominatorValue.value=e),status:denominatorValueStatus.value,"onUpdate:status":t[8]||(t[8]=e=>denominatorValueStatus.value=e)},null,8,["modelValue","status"])])]),createElementVNode("span",{class:"btn",onClick:calculateFraction},"分子式剂量")])),_:1})])),_:1})):createCommentVNode("v-if",!0)],38))}});export{_sfc_main as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from"./Map.vue2.js";import r from"../../../_virtual/_plugin-vue_export-helper.js";var p=r(e,[["__file","Map.vue"]]);export{p as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{defineComponent as e,reactive as a,computed as t,onMounted as n,openBlock as s,createElementBlock as o,createElementVNode as r,createVNode as l,unref as i,withCtx as c,createTextVNode as d,toDisplayString as p,Fragment as m,renderList as u,createCommentVNode as g}from"vue";import{useMessage as v,NInput as q,NButton as L}from"naive-ui";const h={class:"c-map"},y={class:"search-container"},f={class:"map-input-search"},k={class:"input-addon"},w=r("div",{id:"map-core"},null,-1),_={key:0,class:"address-list"},S=["onClick"],P={class:"title"};var C=e({__name:"Map",props:{locationProp:{type:String,default:""},ak:{type:String,default:"KP3BZ-OAC3W-PY6RY-OJ6DV-JYKN3-H6F72"}},emits:["selectLocation"],setup(e,{emit:C}){const O=e,T=a({qq:null,searchKey:"",centrePoint:{},location:{lng:"",lat:""},localObj:{},map:null,ac:null,addressList:[],markers:[],timeout:null,searchService:null,geocoder:{}}),M=t((()=>{var e,a;return null==(a=null==(e=T.addressList)?void 0:e[0])?void 0:a.name})),I=t((()=>O.locationProp&&JSON.parse(O.locationProp)||null)),B=v(),E=e=>{if(e&&"geolocation"==e.module){T.location.lng=e.lng,T.location.lat=e.lat;const a=new T.qq.maps.LatLng(e.lat,e.lng);x({latLng:a}),K({lat:e.lat,lng:e.lng})}else console.log("用户不允许获取地理位置"),T.location.lng=113.275,T.location.lat=23.117},K=e=>{const a=T.qq;var t=new a.maps.LatLng(e.lat,e.lng);T.centrePoint=t,T.map.panTo(t);const n=new a.maps.Marker({position:t,map:T.map});T.markers.push(n)},N=e=>{for(var a;a=e.pop();)a.setMap(null)},b=()=>{T.markers&&T.markers.length&&N(T.markers),T.markers=[]},x=(e={})=>{const a=T.qq,t=e.latLng,n=new a.maps.Geocoder;n.setComplete((e=>{if("GEO_INFO"===e.type){var t=new a.maps.LatLngBounds,n=e.detail.nearPois||[];b(),T.addressList=n||[];for(let e=0;e<n.length;e++){const o=n[e];var s=new a.maps.Marker({map:T.map});s.setPosition(o.latLng),s.setTitle(e+1),T.markers.push(s),t.extend(o.latLng)}T.map.fitBounds(t)}var o=e.detail.location||{};K(o)})),n.setError((function(){alert("出错了,请输入正确的经纬度!!!")})),n.getAddress(t)},A=()=>{let e=T.searchKey;e&&(T.markers&&T.markers.length&&N(T.markers),T.searchService.setLocation(""),T.searchService.setPageCapacity(50),T.searchService.search(e))},G=(e,a)=>{const t=T.qq,{name:n,address:s,latLng:o}=e,{lat:r,lng:l}=o,i=new t.maps.Geocoder;i.setComplete((function(e){if("GEO_INFO"===e.type){const{addressComponents:{province:a,city:t,district:o,country:i}}=e.detail,c=JSON.stringify({name:n,address:s,province:a,city:t,district:o,country:i,lat:r,lng:l});C("selectLocation",{locationProp:c,isInit:!1})}})),i.setError((function(){alert("出错了,请输入正确的经纬度!!!")})),i.getAddress(o)},J=e=>{var a={zoom:12,center:new e.maps.LatLng(39.916527,116.397128),mapTypeId:e.maps.MapTypeId.ROADMAP};T.map=new e.maps.Map(document.getElementById("map-core"),a);const{lat:t,lng:n,address:s}=I.value||{};if(t&&n){const a=new e.maps.LatLng(t,n);x({latLng:a})}else s?setTimeout((()=>{A()}),300):new T.qq.maps.Geolocation(O.ak,"qqmap").getLocation(E,(function(e){console.log(e)}),{timeout:9e3});T.qq.maps.event.addDomListener(T.map,"click",(function(e){x({latLng:e.latLng})}))},Y=e=>{T.qq=e,setTimeout((()=>{J(e),(()=>{const e=T.qq;T.searchService=new e.maps.SearchService({complete:function(a){var t,n,s=a.detail.pois||[],o=new e.maps.LatLngBounds;if("CITY_LIST"===a.type)return T.searchService.setLocation(a.detail.cities[0].cityName),void T.searchService.search(T.searchKey);if(T.addressList=s||[],b(),"POI_LIST"===a.type)for(var r=0,l=s.length;r<l;r++){var i=s[r];o.extend(i.latLng),t=r,n=void 0,(n=new e.maps.Marker({map:T.map})).setPosition(s[t].latLng),n.setTitle(r+1),T.markers.push(n)}T.map.fitBounds(o)},error:function(e){console.log(e),"NO_RESULTS"!==e?B.warning("地址检索先输入城市名称"):B.warning("查无结果!")},autoExtend:!0})})()}),0)},j=()=>{(()=>{var e,a;let t=window;if(t.qq)return t.qq._preloader?t.qq._preloader:Promise.resolve(t.qq);{const n=O.ak||(null==(a=null==(e=t._qq)?void 0:e.call(t))?void 0:a.ak);return t.qq={},t.qq._preloader=new Promise((e=>{t._initBaiduMap=function(){e(t.qq),t.document.body.removeChild(a),t.qq._preloader=null,t._initBaiduMap=null};const a=document.createElement("script");window.document.body.appendChild(a),a.src=`https://map.qq.com/api/js?v=2.exp&key=${n}&callback=_initBaiduMap`;const s=document.createElement("script");window.document.body.appendChild(s),s.src="https://3gimg.qq.com/lightmap/components/geolocation/geolocation.min.js"})),t.qq._preloader}})().then(Y)};return n((()=>{setTimeout((()=>{j()}),200)})),(e,a)=>(s(),o("div",h,[r("div",y,[r("div",f,[l(i(q),{value:T.searchKey,"onUpdate:value":a[0]||(a[0]=e=>T.searchKey=e),placeholder:"请输入地址","enter-button":"检索"},null,8,["value"]),r("span",k,[l(i(L),{type:"primary",size:"small",onClick:A},{default:c((()=>[d("检索")])),_:1})])])]),w,T.addressList&&T.addressList.length?(s(),o("ul",_,[r("li",null,[d(" 地址:"+p(i(M))+" ",1),l(i(L),{type:"primary",size:"small",onClick:a[1]||(a[1]=e=>G(T.addressList[0]))},{default:c((()=>[d("确定")])),_:1})]),(s(!0),o(m,null,u(T.addressList,((e,a)=>(s(),o("li",{class:"address-item",key:a},[r("div",{onClick:a=>G(e)},[r("div",P,p(e.name),1),r("span",null,p(e.address),1)],8,S)])))),128))])):g("v-if",!0)]))}});export{C as default};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { SFCWithInstall } from '../../../es/shared/types';
|
|
2
|
+
declare const PictureClipper: SFCWithInstall<import("vue").DefineComponent<{
|
|
3
|
+
sourceUrl: {
|
|
4
|
+
type: StringConstructor;
|
|
5
|
+
requred: boolean;
|
|
6
|
+
};
|
|
7
|
+
}, {
|
|
8
|
+
canvasWidth: number;
|
|
9
|
+
centerPointer: {
|
|
10
|
+
x: number;
|
|
11
|
+
y: number;
|
|
12
|
+
};
|
|
13
|
+
commonOptions: {
|
|
14
|
+
originX: string;
|
|
15
|
+
originY: string;
|
|
16
|
+
left: number;
|
|
17
|
+
top: number;
|
|
18
|
+
};
|
|
19
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
20
|
+
sourceUrl: {
|
|
21
|
+
type: StringConstructor;
|
|
22
|
+
requred: boolean;
|
|
23
|
+
};
|
|
24
|
+
}>> & {
|
|
25
|
+
onSave?: ((...args: any[]) => any) | undefined;
|
|
26
|
+
}>>;
|
|
27
|
+
emits: (event: "save", ...args: any[]) => void;
|
|
28
|
+
canvasRef: import("vue").Ref<HTMLCanvasElement | null>;
|
|
29
|
+
targetUrl: import("vue").Ref<any>;
|
|
30
|
+
state: {
|
|
31
|
+
canvas: import("../../shared/utils/fabricjs").fabric.Canvas | null;
|
|
32
|
+
img: import("../../shared/utils/fabricjs").fabric.Image | null;
|
|
33
|
+
clipPath: import("../../shared/utils/fabricjs").fabric.Rect | null;
|
|
34
|
+
};
|
|
35
|
+
initCanvasData: () => void;
|
|
36
|
+
preview: () => void;
|
|
37
|
+
save: () => void;
|
|
38
|
+
undo: () => void;
|
|
39
|
+
getSourceData: () => {
|
|
40
|
+
sourceScale: number;
|
|
41
|
+
minLength: number;
|
|
42
|
+
};
|
|
43
|
+
setClipActiveObject: () => void;
|
|
44
|
+
NButton: any;
|
|
45
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "save"[], "save", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
46
|
+
sourceUrl: {
|
|
47
|
+
type: StringConstructor;
|
|
48
|
+
requred: boolean;
|
|
49
|
+
};
|
|
50
|
+
}>> & {
|
|
51
|
+
onSave?: ((...args: any[]) => any) | undefined;
|
|
52
|
+
}, {}>>;
|
|
53
|
+
export default PictureClipper;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{COMPONENT_NAMESPACE as r}from"../../shared/global/variable.js";import{safeComponentRegister as i}from"../../shared/utils/index.js";import e from"./src/PictureClipper.vue.js";const t=e;t.install=function(e){i(e,t,r+"PictureClipper")};export{t as default};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { fabric } from '../../../../es/shared/utils/fabricjs';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
|
3
|
+
sourceUrl: {
|
|
4
|
+
type: StringConstructor;
|
|
5
|
+
requred: boolean;
|
|
6
|
+
};
|
|
7
|
+
}, {
|
|
8
|
+
canvasWidth: number;
|
|
9
|
+
centerPointer: {
|
|
10
|
+
x: number;
|
|
11
|
+
y: number;
|
|
12
|
+
};
|
|
13
|
+
commonOptions: {
|
|
14
|
+
originX: string;
|
|
15
|
+
originY: string;
|
|
16
|
+
left: number;
|
|
17
|
+
top: number;
|
|
18
|
+
};
|
|
19
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
20
|
+
sourceUrl: {
|
|
21
|
+
type: StringConstructor;
|
|
22
|
+
requred: boolean;
|
|
23
|
+
};
|
|
24
|
+
}>> & {
|
|
25
|
+
onSave?: ((...args: any[]) => any) | undefined;
|
|
26
|
+
}>>;
|
|
27
|
+
emits: (event: "save", ...args: any[]) => void;
|
|
28
|
+
canvasRef: import("vue").Ref<HTMLCanvasElement | null>;
|
|
29
|
+
targetUrl: import("vue").Ref<any>;
|
|
30
|
+
state: {
|
|
31
|
+
canvas: fabric.Canvas | null;
|
|
32
|
+
img: fabric.Image | null;
|
|
33
|
+
clipPath: fabric.Rect | null;
|
|
34
|
+
};
|
|
35
|
+
initCanvasData: () => void;
|
|
36
|
+
preview: () => void;
|
|
37
|
+
save: () => void;
|
|
38
|
+
undo: () => void;
|
|
39
|
+
getSourceData: () => {
|
|
40
|
+
sourceScale: number;
|
|
41
|
+
minLength: number;
|
|
42
|
+
};
|
|
43
|
+
setClipActiveObject: () => void;
|
|
44
|
+
NButton: any;
|
|
45
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "save"[], "save", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
46
|
+
sourceUrl: {
|
|
47
|
+
type: StringConstructor;
|
|
48
|
+
requred: boolean;
|
|
49
|
+
};
|
|
50
|
+
}>> & {
|
|
51
|
+
onSave?: ((...args: any[]) => any) | undefined;
|
|
52
|
+
}, {}>;
|
|
53
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"./PictureClipper.vue2.js";import r from"../../../_virtual/_plugin-vue_export-helper.js";var p=r(e,[["__file","PictureClipper.vue"]]);export{p as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{defineComponent as e,ref as a,onMounted as t,onBeforeUnmount as n,openBlock as c,createElementBlock as r,createElementVNode as i,createVNode as l,unref as s,withCtx as o,createTextVNode as u}from"vue";import{fabric as v}from"../../../shared/utils/fabricjs/index.js";import{NButton as p}from"naive-ui";const f={class:"c-picture-clipper"},d={class:"canvas-right"},h={key:0,class:"preview-border"},m=["src"],g={class:"btns"};var C=e({__name:"PictureClipper",props:{sourceUrl:{type:String,requred:!0}},emits:["save"],setup(e,{emit:C}){const y=e,b=500,k={x:250,y:270},w={originX:"center",originY:"center",left:k.x,top:k.y},P=a(null),_=a(),R={canvas:null,img:null,clipPath:null};function U(){var e;const{width:a=0,height:t=0,left:n=0,top:c=0,scaleX:r=1,scaleY:i=1}=R.clipPath,l=a*r,s=t*i;_.value=null==(e=R.canvas)?void 0:e.toDataURL({left:n-l/2,top:c-s/2,width:l,height:s})}function j(){C("save",_.value)}function x(){var e;null==(e=R.clipPath)||e.setCoords().set({...w,scaleX:1,scaleY:1}),L()}function L(){R.canvas.discardActiveObject(),R.canvas.setActiveObject(R.clipPath),R.clipPath.bringToFront()}return t((()=>{!function(){const{minLength:e,sourceScale:a}=function(){const e=v.util.createImage();e.src=y.sourceUrl;const{width:a,height:t}=e;return{sourceScale:a>=t?b/a:b/t,minLength:Math.min(a,t)}}();R.canvas=new v.Canvas(P.value,{width:b,height:b,backgroundColor:"#fff",selection:!1,containerClass:"c-picture-clipper__canvas",fireRightClick:!0}),v.Image.fromURL(y.sourceUrl,(function(e){e.scale(a).set({...w,evented:!1,selectable:!1}),R.canvas.add(e),R.img=e})),R.clipPath=new v.Rect({...w,width:e*a,height:e*a,fill:"transparent",lockRotation:!0,borderColor:"#5585f5",cornerColor:"#5585f5",cornerSize:10,transparentCorners:!1}),R.canvas.add(R.clipPath),L(),R.canvas.on("mouse:down",(e=>{L()}))}()})),n((()=>{var e,a;null==(e=R.canvas)||e.off(),null==(a=R.canvas)||a.clear()})),(e,a)=>(c(),r("div",f,[i("canvas",{ref_key:"canvasRef",ref:P},null,512),i("div",d,[_.value?(c(),r("img",{key:1,src:_.value,alt:""},null,8,m)):(c(),r("span",h)),i("div",g,[l(s(p),{onClick:x},{default:o((()=>[u("撤销")])),_:1}),l(s(p),{type:"primary",onClick:U},{default:o((()=>[u("预览")])),_:1}),l(s(p),{type:"primary",onClick:j},{default:o((()=>[u("保存")])),_:1})])])]))}});export{C as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.c-picture-clipper{display:flex;width:100%}.c-picture-clipper__canvas{border:1px solid #e5e5e5;height:502px!important;width:502px!important}.c-picture-clipper .canvas-right{display:flex;flex:1;flex-flow:column nowrap;margin-left:20px}.c-picture-clipper .canvas-right .preview-border{border:1px solid #e5e5e5;flex:1}.c-picture-clipper .canvas-right img{border:2px solid #e5e5e5;margin:auto;width:100%}.c-picture-clipper .canvas-right .btns{display:flex;justify-content:space-around;margin-top:20px}
|
|
@@ -483,9 +483,6 @@ declare const CQuickSearch: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
483
483
|
modelValue: {
|
|
484
484
|
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
485
485
|
};
|
|
486
|
-
filterApiConfig: {
|
|
487
|
-
type: ObjectConstructor;
|
|
488
|
-
};
|
|
489
486
|
}, any, {
|
|
490
487
|
initialProps: {};
|
|
491
488
|
}, {
|
|
@@ -509,9 +506,6 @@ declare const CQuickSearch: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
509
506
|
modelValue: {
|
|
510
507
|
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
511
508
|
};
|
|
512
|
-
filterApiConfig: {
|
|
513
|
-
type: ObjectConstructor;
|
|
514
|
-
};
|
|
515
509
|
}>> & {
|
|
516
510
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
517
511
|
onOutFilterChange?: ((...args: any[]) => any) | undefined;
|