cnhis-design-vue 3.1.44-beta.12 → 3.1.44-beta.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/components/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.vue.js +1 -1
- package/es/components/bpmn-workflow/src/BpmnWorkflow.vue2.js +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/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/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/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/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.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/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/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/package.json +2 -2
- 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
|
@@ -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};
|
|
@@ -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;
|
|
@@ -485,9 +485,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
485
485
|
modelValue: {
|
|
486
486
|
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
487
487
|
};
|
|
488
|
-
filterApiConfig: {
|
|
489
|
-
type: ObjectConstructor;
|
|
490
|
-
};
|
|
491
488
|
}, any, {
|
|
492
489
|
initialProps: {};
|
|
493
490
|
}, {
|
|
@@ -511,9 +508,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
511
508
|
modelValue: {
|
|
512
509
|
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
513
510
|
};
|
|
514
|
-
filterApiConfig: {
|
|
515
|
-
type: ObjectConstructor;
|
|
516
|
-
};
|
|
517
511
|
}>> & {
|
|
518
512
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
519
513
|
onOutFilterChange?: ((...args: any[]) => any) | undefined;
|
|
@@ -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,ref as l,provide as a,computed as t,watch as i,onMounted as n,openBlock as o,createElementBlock as s,createElementVNode as r,Fragment as c,renderList as u,unref as d,normalizeClass as v,createCommentVNode as f,createVNode as m,withCtx as p,createTextVNode as h,toDisplayString as g,createBlock as k,withDirectives as b,vShow as y,isRef as C}from"vue";import{useMessage as S,NPopover as x,NModal as _,NCard as A,NIcon as q,NButton as w,NForm as F,NFormItem as j,NInput as I}from"naive-ui";import{CloseOutline as E,AddOutline as L}from"@vicons/ionicons5";import R from"../../table-filter/src/hooks/useMixins.js";import U from"../../table-filter/src/hooks/useRenderWidget.js";import V from"../../table-filter/src/hooks/useAdvanced.js";import z from"../../table-filter/src/components/render-widget/index.vue.js";import"moment/locale/zh-cn";import{cloneDeep as D}from"lodash-es";import{InjectionFilterApiConfig as T}from"../../table-filter/src/constants/index.js";const B={class:"quick-search-block quick-search-table"},N={class:"quick-row"},O={class:"quick-item-title"},P={class:"quick-item-col"},Q={class:"svg-wrap"},M={class:"flex_right"},W={class:"class-filter-content"},G={class:"quickSearch-content"},J=r("span",{class:"label"},"父类名称:",-1),H=["onDblclick","onClick"],K={key:0,class:"s-content"};var X=e({__name:"index",props:{searchFieldList:{type:Array,default:()=>[]},quickSearchConfig:{type:Array,default:()=>[]},tableId:{type:String,default:""},filterApiConfig:{type:Object}},emits:["getFilterParam","onFilterSearch","clearQuickSearchConfig"],setup(e,{expose:X,emit:Y}){const Z=e,$={classname:{required:!0,message:"请输入分类名称",trigger:["input","blur"]}},ee=S(),{handleGetConfigApi:le,outQuickSearchFn:ae}=R(),{getRenderSearchConObj:te,resetRenderWidgetValue:ie,isRender:ne}=U(),{transformData:oe,getCacheDef:se,transformParams:re}=V(),ce=l(null),ue=l({classname:""});let de=l(!1),ve=l([]),fe=l([]),me=l(!1),pe=l("");a(T,Z.filterApiConfig);let he=t((()=>!!fe.value.length&&fe.value.some((e=>e.isAdd)))),ge=t((()=>(e,l="name")=>e.alias||e[l]));function ke(){return function(e){if(!Array.isArray(e))return[];let l=[];for(let a=0;a<e.length;a++){let t=e[a];const i=te(t);!l.find((e=>e.field_key===i.field_key))&&i&&l.push(i)}return l.filter((e=>e.value))}(ve.value)||[]}function be(){var e;null==(e=ce.value)||e.validate((e=>{var l;if(e)return;let a=ke();a.length||(a=[]);let t=null==(l=fe.value.filter((e=>e.selected))[0])?void 0:l.value;!async function(e){var l;try{if(!await le(e,"requestSaveTableCondiTion",{},Z.filterApiConfig))return;de.value=!1,null==(l=ce.value)||l.restoreValidation(),ue.value.classname="",fe.value=[],_e()}catch(e){console.log(e)}}({tableId:Z.tableId||"",setting:JSON.stringify({displayCategory:t,name:ue.value.classname,conObj:a}),conditionList:"[]"})}))}function ye(e){var l;const a=null==(l=null==e?void 0:e.target)?void 0:l.nextElementSibling;setTimeout((()=>{a&&a.focus()})),me.value=!0}function Ce(){me.value=!1,pe.value&&(fe.value.forEach((e=>e.selected=!1)),fe.value.push({disabled:!0,value:pe.value,selected:!0,isAdd:!0}),pe.value="")}function Se(e){!function(e){fe.value.splice(e,1)}(e)}function xe(){de.value=!1}function _e(){Ae(ve.value),Y("clearQuickSearchConfig")}function Ae(e){Array.isArray(e)&&(e.forEach((e=>{ie(e)})),ae.handlerInitSearchItem(ve.value))}return i((()=>Z.searchFieldList),(e=>{e&&e.length>0&&function(){let e=D(oe(Z.searchFieldList)).filter((e=>1==e.isShowSearch&&1!=e.filterExplicit))||[];ve.value=e||[],ae.handlerInitSearchItem(ve.value)}()}),{immediate:!0,deep:!0}),i((()=>ve),(()=>{const e=ke()||[],l=re(e);Y("getFilterParam",e,l)}),{deep:!0}),n((()=>{const e=Z.quickSearchConfig;if(e&&e.length>0)return l=e,void ve.value.forEach((e=>{var a;if(ne(e)){const t=l.find((l=>l.field_key===e.columnName));t&&(null==(a=t.value)?void 0:a.length)>0&&(e.value=se(e,t.value))}}));var l;Ae(ve.value)})),X({openSaveToCalss:function(){let e=ke();e&&(e.length>0?de.value=!0:ee.warning("请设置搜索条件"))},clearData:_e,onFilterSearch:function(){let e=ke()||[];const l=re(e);return Y("onFilterSearch",e,l,!1),ve.value}}),(e,l)=>(o(),s("div",null,[r("div",B,[(o(!0),s(c,null,u(d(ve),(e=>(o(),s("div",{class:v(["quick-item",{"quick-block":e._isBlock}]),key:e.sid||e.columnName},[r("div",N,[f(" title "),r("div",O,[m(d(x),{trigger:"hover"},{trigger:p((()=>[h(g(d(ge)(e,"title")),1)])),default:p((()=>[r("span",null,g(d(ge)(e,"title")),1)])),_:2},1024)]),f(" content "),r("div",P,[f(" 直接渲染组件 "),e.isRender?(o(),k(z,{key:0,cfg:e,modelValue:e.value,"onUpdate:modelValue":l=>e.value=l},null,8,["cfg","modelValue","onUpdate:modelValue"])):f("v-if",!0)])])],2)))),128))]),f(" 保存到分类的弹窗 "),m(d(_),{show:d(de),maskClosable:!1,"positive-text":"确认","negative-text":"取消",onPositiveClick:be,onNegativeClick:xe,class:"classification-modal-block"},{default:p((()=>[m(d(A),{title:"设置筛选分类",style:{width:"520px"},bordered:!1,size:"huge",role:"dialog","aria-modal":"true"},{"header-extra":p((()=>[r("div",Q,[m(d(q),{component:d(E),size:"24",onClick:xe},null,8,["component"])])])),footer:p((()=>[r("div",M,[m(d(w),{onClick:xe},{default:p((()=>[h("取消")])),_:1}),m(d(w),{type:"info",onClick:be},{default:p((()=>[h("确认")])),_:1})])])),default:p((()=>[r("div",W,[m(d(F),{ref_key:"formRef",ref:ce,"label-placement":"left",rules:$,model:ue.value},{default:p((()=>[m(d(j),{label:"筛选集名称",path:"classname"},{default:p((()=>[m(d(I),{value:ue.value.classname,"onUpdate:value":l[0]||(l[0]=e=>ue.value.classname=e),placeholder:"请输入分类名称",clearable:""},null,8,["value"])])),_:1})])),_:1},8,["model"]),r("div",G,[J,(o(!0),s(c,null,u(d(fe),((e,l)=>(o(),s("div",{class:v(["edit-tag",{"edit-tag-select":e.selected&&e.disabled}]),key:l,onDblclick:l=>function(e,l){l.disabled=!1,setTimeout((()=>{var l;null==(l=e.target)||l.focus()}),0)}(l,e),onClick:a=>function(e,l){e.disabled&&(fe.value.forEach(((e,a)=>{a!==l&&(e.selected=!1)})),e.selected=!e.selected)}(e,l)},[e.disabled?(o(),s("div",K,[r("span",null,g(e.value),1)])):(o(),k(d(I),{key:1,style:{width:"100px"},value:e.value,"onUpdate:value":l=>e.value=l,disabled:e.disabled,onBlur:()=>e.disabled=!0,maxLength:10},null,8,["value","onUpdate:value","disabled","onBlur"])),m(d(q),{component:d(E),class:"anticon-close",size:"20",onClick:e=>Se(l)},null,8,["component","onClick"])],42,H)))),128)),d(he)?f("v-if",!0):(o(),s(c,{key:0},[b(m(d(w),{dashed:"",icon:"plus",class:"ant-btn",onClick:ye},{default:p((()=>[m(d(q),{component:d(L),size:"20"},null,8,["component"]),h("添加分类 ")])),_:1},512),[[y,!d(me)]]),b(m(d(I),{style:{width:"100px"},class:"edit-tag",value:d(pe),"onUpdate:value":l[1]||(l[1]=e=>C(pe)?pe.value=e:pe=e),valueModifiers:{trim:!0},onBlur:Ce,maxLength:10},null,8,["value"]),[[y,d(me)]])],64))])])])),_:1})])),_:1},8,["show"])]))}});export{X as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.classification-modal-block .n-card-header .svg-wrap .iconfont-table-filter{cursor:pointer;font-size:18px}.classification-modal-block .n-card-header .svg-wrap .iconfont-table-filter:last-child{margin-left:16px}.classification-modal-block .n-card-header .svg-wrap .n-icon{cursor:pointer}.classification-modal-block .n-card__content{overflow-y:auto}.classification-modal-block .n-card__content .table-modal-list .list-title{background-color:#f2f2f4;border:1px solid #e1dfdf;display:flex;height:52px;line-height:52px}.classification-modal-block .n-card__content .table-modal-list .list-title .list-title-item{font-weight:700;width:25%}.classification-modal-block .n-card__content .table-modal-list .list-content{padding:0}.classification-modal-block .n-card__content .table-modal-list .list-content li{display:flex;height:52px;line-height:52px}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-item{align-items:center;display:flex;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap;width:25%}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-item .n-icon{cursor:pointer;margin-right:8px}.classification-modal-block .n-card__content .table-modal-list .list-content li.checked,.classification-modal-block .n-card__content .table-modal-list .list-content li.checked .text{background-color:#f2f2f2}.classification-modal-block .n-card__content .table-modal-list .list-content li .text{background-color:#fff;display:inline-block;padding:0 10px;position:relative}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-line{position:relative;text-align:center;width:75%}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-line:before{border:1px solid #e8e8e8;content:"";left:0;margin-top:20px;position:absolute;width:100%}.classification-modal-block .n-card__content .table-modal-list .list-title-item{margin-left:-1px;padding:0 10px}.classification-modal-block .n-card__content .table-modal-list .list-content-item{border-bottom:1px solid #e1dfdf;margin-left:-1px;margin-top:-1px;padding:0 10px}.classification-modal-block .n-card__content .table-modal-list .list-content-item .ant-switch{height:16px;min-width:28px;width:28px}.classification-modal-block .n-card__content .table-modal-list .list-content-item .ant-switch:after{height:12px;width:12px}.classification-modal-block .n-card__content .table-modal-list .list-content-radio,.classification-modal-block .n-card__content .table-modal-list .list-content-switch{text-align:center}.classification-modal-block .n-card__content .table-modal-list .anticon+.anticon{margin-left:8px}.classification-modal-block .n-card__content .class-filter-content .item-name{display:flex;height:32px;line-height:32px;margin-bottom:10px}.classification-modal-block .n-card__content .class-filter-content .item-name .label{text-align:right;width:120px}.classification-modal-block .n-card__content .class-filter-content .item-name .addAction{align-items:center;cursor:pointer;display:flex}.classification-modal-block .n-card__content .class-filter-content .item-name .blue{color:#2d7aff;margin-right:8px}.classification-modal-block .n-card__content .class-filter-content .n-form-item-label{width:120px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content{align-items:center;display:flex;flex-wrap:wrap;line-height:32px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .label{display:inline-block;height:32px;line-height:32px;margin-bottom:10px;text-align:right;width:120px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .ant-btn-dashed{border-color:#a6a6a6;color:#a6a6a6}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag{margin-bottom:10px;margin-right:10px;position:relative}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag .anticon-close{color:#2d7aff;cursor:pointer;line-height:36px;position:absolute;right:5px;top:2px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag .s-content{align-items:center;background-color:rgba(45,122,255,.1);border:1px solid #2d7aff;border-radius:3px;box-sizing:border-box;color:#2d7aff;cursor:pointer;display:flex;justify-content:center;opacity:1;padding:0 10px;width:100px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag .s-content span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag.edit-tag-select .ant-input-disabled,.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag.edit-tag-select .s-content{background-color:#2d7aff;color:#fff}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag.edit-tag-select .anticon-close{color:#fff}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .ant-btn{margin-bottom:10px}.classification-modal-block .n-card__content .class-filter-content .select-item-list{border-top:1px solid #e6e6e6;margin-bottom:6px;margin-top:16px;padding-top:12px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li{align-items:center;display:flex;list-style:none;margin-bottom:10px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .index-span{display:inline-block;width:30px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .form-item{margin-right:10px;width:120px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .form-item.n-date-picker{width:auto}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .value-cfg_wrapper{display:flex
|
|
1
|
+
.classification-modal-block .n-card-header .svg-wrap .iconfont-table-filter{cursor:pointer;font-size:18px}.classification-modal-block .n-card-header .svg-wrap .iconfont-table-filter:last-child{margin-left:16px}.classification-modal-block .n-card-header .svg-wrap .n-icon{cursor:pointer}.classification-modal-block .n-card__content{overflow-y:auto}.classification-modal-block .n-card__content .table-modal-list .list-title{background-color:#f2f2f4;border:1px solid #e1dfdf;display:flex;height:52px;line-height:52px}.classification-modal-block .n-card__content .table-modal-list .list-title .list-title-item{font-weight:700;width:25%}.classification-modal-block .n-card__content .table-modal-list .list-content{padding:0}.classification-modal-block .n-card__content .table-modal-list .list-content li{display:flex;height:52px;line-height:52px}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-item{align-items:center;display:flex;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap;width:25%}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-item .n-icon{cursor:pointer;margin-right:8px}.classification-modal-block .n-card__content .table-modal-list .list-content li.checked,.classification-modal-block .n-card__content .table-modal-list .list-content li.checked .text{background-color:#f2f2f2}.classification-modal-block .n-card__content .table-modal-list .list-content li .text{background-color:#fff;display:inline-block;padding:0 10px;position:relative}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-line{position:relative;text-align:center;width:75%}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-line:before{border:1px solid #e8e8e8;content:"";left:0;margin-top:20px;position:absolute;width:100%}.classification-modal-block .n-card__content .table-modal-list .list-title-item{margin-left:-1px;padding:0 10px}.classification-modal-block .n-card__content .table-modal-list .list-content-item{border-bottom:1px solid #e1dfdf;margin-left:-1px;margin-top:-1px;padding:0 10px}.classification-modal-block .n-card__content .table-modal-list .list-content-item .ant-switch{height:16px;min-width:28px;width:28px}.classification-modal-block .n-card__content .table-modal-list .list-content-item .ant-switch:after{height:12px;width:12px}.classification-modal-block .n-card__content .table-modal-list .list-content-radio,.classification-modal-block .n-card__content .table-modal-list .list-content-switch{text-align:center}.classification-modal-block .n-card__content .table-modal-list .anticon+.anticon{margin-left:8px}.classification-modal-block .n-card__content .class-filter-content .item-name{display:flex;height:32px;line-height:32px;margin-bottom:10px}.classification-modal-block .n-card__content .class-filter-content .item-name .label{text-align:right;width:120px}.classification-modal-block .n-card__content .class-filter-content .item-name .addAction{align-items:center;cursor:pointer;display:flex}.classification-modal-block .n-card__content .class-filter-content .item-name .blue{color:#2d7aff;margin-right:8px}.classification-modal-block .n-card__content .class-filter-content .n-form-item-label{width:120px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content{align-items:center;display:flex;flex-wrap:wrap;line-height:32px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .label{display:inline-block;height:32px;line-height:32px;margin-bottom:10px;text-align:right;width:120px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .ant-btn-dashed{border-color:#a6a6a6;color:#a6a6a6}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag{margin-bottom:10px;margin-right:10px;position:relative}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag .anticon-close{color:#2d7aff;cursor:pointer;line-height:36px;position:absolute;right:5px;top:2px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag .s-content{align-items:center;background-color:rgba(45,122,255,.1);border:1px solid #2d7aff;border-radius:3px;box-sizing:border-box;color:#2d7aff;cursor:pointer;display:flex;justify-content:center;opacity:1;padding:0 10px;width:100px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag .s-content span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag.edit-tag-select .ant-input-disabled,.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag.edit-tag-select .s-content{background-color:#2d7aff;color:#fff}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag.edit-tag-select .anticon-close{color:#fff}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .ant-btn{margin-bottom:10px}.classification-modal-block .n-card__content .class-filter-content .select-item-list{border-top:1px solid #e6e6e6;margin-bottom:6px;margin-top:16px;padding-top:12px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li{align-items:center;display:flex;list-style:none;margin-bottom:10px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .index-span{display:inline-block;width:30px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .form-item{margin-right:10px;width:120px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .form-item.n-date-picker{width:auto}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .value-cfg_wrapper{display:flex}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .value-cfg_wrapper .form-item{margin-right:10px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .delete-item-icon{color:red;cursor:pointer;font-size:18px;margin-left:8px}.classification-modal-block .n-card__footer{padding-top:10px}.classification-modal-block .n-card__footer .flex_between{display:flex;justify-content:space-between}.classification-modal-block .n-card__footer .flex_right{display:flex;justify-content:right}.classification-modal-block .n-card__footer .n-button{margin-left:8px}.render-widget-input-number-group{align-items:center;display:flex}.render-widget-input-number-group .divider{text-align:center;width:24px}.n-base-select-option__content{width:100%}.n-base-select-option__content .select-widget-dynamic-option{display:flex;flex-wrap:nowrap;width:100%}.n-base-select-option__content .select-widget-dynamic-option .select-widget-dynamic-item{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.render-widget-date-range{align-items:center;display:flex;flex-wrap:nowrap;width:100%}.render-widget-date-range .radio-date-group{border:1px solid #d9d9d9;display:flex;min-width:720px}.render-widget-date-range .radio-date-group .radio-date-item{border-left:1px solid #d9d9d9;cursor:pointer;height:30px;line-height:30px;padding:0 8px}.render-widget-date-range .radio-date-group .radio-date-item:first-child{border:none}.render-widget-date-range .radio-date-group .radio-date-item.radio-date-item-active{background:#3e65cf;border-color:#3e65cf;color:#fff}.render-widget-date-range .select-date-left{margin-left:16px}.render-widget-date-range .select-date-right{margin-right:16px}.render-widget-date-range .date-detail-range{display:flex;flex-wrap:nowrap}.render-widget-date-range .date-detail-range .divider{text-align:center;width:10px}.label-attr-filter-container .edit-f-label{font-size:14px;line-height:32px;padding-left:0}.label-attr-filter-container .edit-f-content.label-select-height{flex:none;height:74px;overflow:hidden}.label-attr-filter-container .edit-f-content .label-f-content{display:flex;flex-wrap:wrap}.label-attr-filter-container .edit-f-content .label-f-content .n-tag{border:1px solid #e0e0e6;height:32px;margin:0 8px 8px 0;max-width:108px;text-align:center}.label-attr-filter-container .edit-f-content .label-f-content .n-tag .n-tag__content{align-items:center;display:inline-flex}.label-attr-filter-container .edit-f-content .label-f-content .n-tag .n-tag__content span{display:inline-block;height:100%;line-height:30px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:80px}.label-attr-filter-container .label-f-unfold-btn{margin:8px 0}.label-attr-filter-container .label-f-unfold-btn .operate-btn{align-items:center;cursor:pointer;display:flex}.label-attr-filter-container .label-f-unfold-btn .operate-btn .n-icon{margin-left:6px}.quick-search-block .quick-item{margin-bottom:10px;min-width:32px;width:20%}.quick-search-block .quick-item .quick-row{display:flex}.quick-search-block .quick-item .quick-row .quick-item-title{box-sizing:border-box;flex-basis:134px;line-height:32px;min-width:130px;overflow:hidden;padding-left:4px;padding-right:4px;text-align:right;text-overflow:ellipsis;white-space:nowrap}.quick-search-block .quick-item .quick-row .quick-item-col{align-items:center;display:flex;padding:0 4px;width:calc(100% - 134px)}.quick-search-block .quick-item .quick-row .quick-item-title-default{width:25%}.quick-search-block .quick-item .quick-row .quick-item-col-default{width:75%}.quick-search-block.quick-search-table .quick-item{display:inline-block}.quick-search-block.quick-search-table .quick-item.quick-block{display:block;width:100%}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from"./RecommendSearch.vue2.js";import r from"../../../_virtual/_plugin-vue_export-helper.js";var m=r(e,[["__file","RecommendSearch.vue"]]);export{m as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{defineComponent as e,computed as t,provide as o,useSlots as n,ref as a,getCurrentInstance as p,watch as r,openBlock as l,createBlock as c,resolveDynamicComponent as s,unref as u,mergeProps as m,isRef as i,withCtx as d,renderSlot as f}from"vue";import{useVModel as y}from"@vueuse/core";import{isObject as v}from"lodash-es";import{InjectionRecommendSearchRootSlots as g,InjectionRecommendSearchRef as h}from"./constant/index.js";import b from"./components/RecommendInput.vue.js";import S from"./components/RecommendSelect.vue.js";var j=e({__name:"RecommendSearch",props:{mode:{type:String,default:"input"},value:{type:[String,Number]},labelKey:{type:String,default:"label"},valueKey:{type:String,default:"value"},placeholder:{type:String},editPlaceholder:{type:String,default:"请输入关键字进行搜索"},clearable:{type:Boolean,default:!0},options:{type:Array,default:()=>[]},commonList:{type:Array,default:()=>[]},recentList:{type:Array,default:()=>[]},recommendDeletable:{type:Boolean,default:!0},inputProps:{type:Object},popProps:{type:Object}},emits:["update:value","search","delete","choose","clear","openMenu","closeMenu"],setup(e,{expose:j,emit:x}){const C=e,$=y(C,"value",x),M={input:b,select:S},O=t((()=>M[C.mode]));o(g,n());const P=a();o(h,P);const R={},w=p();return r(P,(e=>{if(Object.keys(R).forEach((e=>Reflect.deleteProperty(R,e))),v(e))try{if(w&&w.appContext&&v(w.appContext.config)){const t=w.appContext.config.warnHandler;w.appContext.config.warnHandler=()=>1,Object.assign(R,e),w.appContext.config.warnHandler=t}else Object.assign(R,e)}catch(e){}})),j(R),(e,t)=>(l(),c(s(u(O)),m(e.$props,{value:u($),"onUpdate:value":t[0]||(t[0]=e=>i($)?$.value=e:null),onSearch:t[1]||(t[1]=t=>e.$emit("search",t)),onChoose:t[2]||(t[2]=t=>e.$emit("choose",t)),onOpenMenu:t[3]||(t[3]=t=>e.$emit("openMenu",t)),onCloseMenu:t[4]||(t[4]=t=>e.$emit("closeMenu",t)),onDelete:t[5]||(t[5]=t=>e.$emit("delete",t))}),{empty:d((()=>[f(e.$slots,"empty")])),_:3},16,["value"]))}});export{j as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from"./RecommendInput.vue2.js";import r from"../../../../_virtual/_plugin-vue_export-helper.js";var m=r(e,[["__file","RecommendInput.vue"]]);export{m as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{defineComponent as e,ref as t,watch as o,onMounted as n,computed as l,openBlock as a,createElementBlock as r,createVNode as c,unref as s,mergeProps as i,withCtx as m,Fragment as u,renderSlot as p,createCommentVNode as d,createElementVNode as y,renderList as v,toDisplayString as h}from"vue";import{useVModel as f,useVirtualList as b}from"@vueuse/core";import _ from"./RecommendMenu.vue.js";import k from"./BaseSearch.js";const j={class:"recommend-search"},L=y("section",{class:"recommend-search__empty"},"暂无数据",-1),g=["onClick"],M=["title"],O=y("section",{class:"recommend-search__empty"},"暂无数据",-1);var w=e({__name:"RecommendInput",props:{value:{type:String},options:{type:Array,default:()=>[]},placeholder:{type:String,default:"请输入"},clearable:{type:Boolean,default:!0},commonList:{type:Array,default:()=>[]},recentList:{type:Array,default:()=>[]},recommendDeletable:{type:Boolean,default:!0}},emits:["update:value","search","delete","choose","clear","openMenu","closeMenu"],setup(e,{emit:w}){const A=e,C=t();function S(e=""){var t;null==(t=C.value)||t.setPattern(e)}const D=f(A,"value",w);o(D,S),n((()=>S(D.value)));const $=l((()=>D.value?A.options:A.options.filter((e=>{return A.commonList.every(t)&&A.recentList.every(t);function t(t){return t.itemObj!==e.itemObj}}))));function x(e){D.value=e,w("search",e)}function B(){w("openMenu")}function P(){w("closeMenu")}function R({type:e,value:t}){var o;D.value=t.itemObj,null==(o=C.value)||o.closeMenu(),w("choose",{type:e,value:t.itemObj})}const{list:E,wrapperProps:H,containerProps:I}=b($,{itemHeight:32,overscan:3});function K(e){["ArrowUp","ArrowDown","Enter"].includes(e.key)&&console.log(e)}return(t,o)=>(a(),r("section",j,[c(s(k),i({ref_key:"baseSearchRef",ref:C,"display-value":s(D),"clear-pattern-on-open-menu":!1,placeholder:e.placeholder,clearable:e.clearable,onKeydown:K,onSearch:x,onOpenMenu:B,onCloseMenu:P},t.$attrs),{menu:m((()=>[s(D)?(a(),r(u,{key:1},[s($).length?(a(),r("section",i({key:0,class:"recommend-search__optionContainer"},s(I),{style:{height:"256px"}}),[y("section",i({class:"recommend-search__optionList"},s(H)),[(a(!0),r(u,null,v(s(E),(e=>(a(),r("div",{onClick:t=>R({value:e.data}),key:e.data.itemObj,class:"recommend-search__option"},[y("div",{class:"recommend-search__optionText",title:e.data.itemObj},h(e.data.itemObj),9,M)],8,g)))),128))],16)],16)):p(t.$slots,"empty",{key:1},(()=>[O]))],64)):(a(),r(u,{key:0},[c(_,{"common-list":e.commonList,"recent-list":e.recentList,deletable:e.recommendDeletable,onDelete:o[0]||(o[0]=e=>t.$emit("delete",e)),onChoose:R},null,8,["common-list","recent-list","deletable"]),e.commonList.length||e.recentList.length?d("v-if",!0):p(t.$slots,"empty",{key:0},(()=>[L]))],64))])),_:3},16,["display-value","placeholder","clearable"])]))}});export{w as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from"./RecommendMenu.vue2.js";import r from"../../../../_virtual/_plugin-vue_export-helper.js";var m=r(e,[["__file","RecommendMenu.vue"]]);export{m as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{defineComponent as e,openBlock as n,createElementBlock as o,createElementVNode as t,createTextVNode as m,createBlock as c,unref as i,createCommentVNode as l,Fragment as s,renderList as a,withCtx as r,toDisplayString as d}from"vue";import{TrashOutline as u}from"@vicons/ionicons5";import{NIcon as p,NTag as f}from"naive-ui";import{RecommendType as y}from"../constant/index.js";const v={class:"recommend-search__menuRecommend"},_={key:0,class:"recommend-search__commonRecommend"},h={class:"recommend-search__menuRecommendList"},k={key:1,class:"recommend-search__recentRecommend"},L=t("header",null,"常用搜索",-1),C={class:"recommend-search__menuRecommendList"};var R=e({__name:"RecommendMenu",props:{getDisplayValue:{type:Function,default:e=>e.itemObj},commonList:{default:()=>[]},recentList:{default:()=>[]},deletable:{type:Boolean}},emits:["delete","choose"],setup(e,{emit:R}){function b(e,n){R("choose",{type:e,value:n})}function g(){R("delete")}return(R,O)=>(n(),o("section",v,[e.recentList.length?(n(),o("section",_,[t("header",null,[m(" 最近搜索 "),e.deletable?(n(),c(i(p),{key:0,component:i(u),onClick:g},null,8,["component"])):l("v-if",!0)]),t("div",h,[(n(!0),o(s,null,a(e.recentList,(o=>(n(),c(i(f),{size:"small",onClick:e=>{return n=o,void b(y.RECENTLY,n);var n},type:"primary",key:o.itemObj},{default:r((()=>[m(d(e.getDisplayValue(o)),1)])),_:2},1032,["onClick"])))),128))])])):l("v-if",!0),e.commonList.length?(n(),o("section",k,[L,t("div",C,[(n(!0),o(s,null,a(e.commonList,(o=>(n(),c(i(f),{size:"small",onClick:e=>{return n=o,void b(y.COMMONLY,n);var n},type:"primary",key:o.itemObj},{default:r((()=>[m(d(e.getDisplayValue(o)),1)])),_:2},1032,["onClick"])))),128))])])):l("v-if",!0)]))}});export{R as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from"./RecommendSelect.vue2.js";import r from"../../../../_virtual/_plugin-vue_export-helper.js";var m=r(e,[["__file","RecommendSelect.vue"]]);export{m as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{defineComponent as e,ref as a,computed as t,openBlock as l,createElementBlock as o,createVNode as n,unref as r,mergeProps as u,isRef as i,withCtx as s,createElementVNode as c,normalizeProps as p,guardReactiveProps as v,Fragment as m,renderList as d,normalizeClass as y,toDisplayString as f,createBlock as h,createCommentVNode as K,renderSlot as _}from"vue";import{jsonParse as S}from"../../../../shared/utils/index.js";import{Checkmark as b}from"@vicons/ionicons5";import{useVModel as g,useVirtualList as k}from"@vueuse/core";import{isObject as M}from"lodash-es";import C from"./BaseSearch.js";import{NIcon as j}from"naive-ui";const w={class:"recommend-search"},x=["onClick"],L=["title"],P=c("section",{class:"recommend-search__empty"},"暂无数据",-1);var A=e({__name:"RecommendSelect",props:{value:{type:[String,Number]},labelKey:{type:String,default:"label"},valueKey:{type:String,default:"value"},placeholder:{type:String,default:"请选择"},editPlaceholder:{type:String,default:"请输入关键字进行搜索"},options:{type:Array,default:()=>[]},commonList:{type:Array,default:()=>[]},recentList:{type:Array,default:()=>[]}},emits:["update:value","search","delete","choose","clear","openMenu","closeMenu"],setup(e,{emit:A}){const O=e,R=a(!1),U=t((()=>R.value?O.editPlaceholder:O.placeholder)),$=a();function B(e){return S(e.itemObj)}const H=t((()=>O.commonList.map(B))),N=t((()=>O.recentList.map(B))),T=t((()=>O.options.filter((e=>{return H.value.every(a)&&N.value.every(a);function a(a){return a[O.valueKey]!==e[O.valueKey]}}))));function q(e){let a="";return[...E.value,$.value].find((t=>{if(M(t)&&t[O.valueKey]===e)return a=t[O.labelKey],!0})),a}const z=a(),D=g(O,"value",A),E=t((()=>[...H.value,...N.value,...T.value]));function F(e=""){A("search",e)}function G(){F(),A("openMenu")}function I(){A("closeMenu")}function J(){D.value=null,A("clear")}function Q(e){var a,t;M(e)&&(D.value=e[O.valueKey],null==(a=z.value)||a.closeMenu(),$.value=e,t=e[O.valueKey],A("choose",{value:t,option:{...$.value}}))}const{list:V,wrapperProps:W,containerProps:X}=k(E,{itemHeight:32,overscan:5});return(a,t)=>(l(),o("section",w,[n(r(C),u({ref_key:"baseSearchRef",ref:z,value:r(D),"onUpdate:value":t[0]||(t[0]=e=>i(D)?D.value=e:null),show:R.value,"onUpdate:show":t[1]||(t[1]=e=>R.value=e),"display-value":q(r(D)),placeholder:r(U),onOpenMenu:G,onCloseMenu:I,onSearch:F,onClear:J},a.$attrs),{menu:s((()=>[r(E).length?(l(),o("section",u({key:0,class:"recommend-search__optionContainer",style:{height:"256px"}},r(X)),[c("section",p(v(r(W))),[(l(!0),o(m,null,d(r(V),(a=>(l(),o("div",{onClick:e=>Q(a.data),key:a.data[e.valueKey],class:y(["recommend-search__option",{"is-active":a.data[e.valueKey]===r(D)}])},[c("div",{class:"recommend-search__optionText",title:a.data.itemObj},f(a.data[e.labelKey]),9,L),a.data[e.valueKey]===r(D)?(l(),h(r(j),{key:0,component:r(b)},null,8,["component"])):K("v-if",!0)],10,x)))),128))],16)],16)):_(a.$slots,"empty",{key:1},(()=>[P]))])),_:3},16,["value","show","display-value","placeholder"])]))}});export{A as default};
|