cnhis-design-vue 3.1.40-beta.12 → 3.1.40-beta.16
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/_virtual/plugin-vue_export-helper.js +1 -9
- package/es/components/annotation-edit/index.js +1 -10
- package/es/components/annotation-edit/src/AnnotationEdit.js +1 -164
- package/es/components/big-table/index.js +1 -15
- package/es/components/big-table/src/BigTable.vue.js +1 -6
- package/es/components/big-table/src/BigTable.vue2.js +1 -2498
- package/es/components/big-table/src/bigTableEmits.js +1 -53
- package/es/components/big-table/src/bigTableProps.js +1 -120
- package/es/components/big-table/src/bigTableState.js +1 -62
- package/es/components/big-table/src/components/NoData.vue.js +1 -74
- package/es/components/big-table/src/components/edit-form/edit-date.js +1 -214
- package/es/components/big-table/src/components/edit-form/edit-input.js +1 -95
- package/es/components/big-table/src/components/edit-form/edit-select.js +1 -139
- package/es/components/big-table/src/components/edit-form/edit-separate.vue.js +1 -103
- package/es/components/big-table/src/components/edit-form/edit-time.js +1 -122
- package/es/components/big-table/src/components/edit-form/useCommon.js +1 -23
- package/es/components/big-table/src/components/input-button.vue.js +1 -39
- package/es/components/big-table/src/components/separate.vue.js +1 -30
- package/es/components/big-table/src/constants/index.js +1 -3
- package/es/components/big-table/src/hooks/index.js +1 -9
- package/es/components/big-table/src/hooks/useAnchor.js +1 -49
- package/es/components/big-table/src/hooks/useAnnotation.js +1 -21
- package/es/components/big-table/src/hooks/useBatchEditing.js +1 -301
- package/es/components/big-table/src/hooks/useEdit.js +1 -133
- package/es/components/big-table/src/hooks/useEvent.js +1 -95
- package/es/components/big-table/src/hooks/useFormat.js +1 -507
- package/es/components/big-table/src/hooks/useNestTable.js +1 -86
- package/es/components/big-table/src/hooks/useSeparateRow.js +1 -177
- package/es/components/big-table/src/hooks/useTableParse.js +1 -142
- package/es/components/big-table/src/utils.js +1 -618
- package/es/components/bpmn-workflow/index.js +1 -10
- package/es/components/bpmn-workflow/src/BpmnWorkflow.vue.js +1 -258
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/BpmnRenderer.js +1 -1452
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/CustomPathMap.js +1 -99
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/CustomRenderer.js +1 -114
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/CustomRules.js +1 -40
- package/es/components/bpmn-workflow/src/custom/customOtherModule/customViewerRenderer.js +1 -14
- package/es/components/bpmn-workflow/src/custom/customOtherModule/zoomScroll.js +1 -10
- package/es/components/button-print/index.js +1 -12
- package/es/components/button-print/src/ButtonPrint.vue.js +1 -6
- package/es/components/button-print/src/ButtonPrint.vue2.js +1 -528
- package/es/components/button-print/src/components/EditFormat.vue.js +1 -173
- package/es/components/button-print/src/components/IdentityVerification.vue.js +1 -182
- package/es/components/button-print/src/components/Preview.vue.js +1 -6
- package/es/components/button-print/src/components/Preview.vue2.js +1 -67
- package/es/components/button-print/src/utils/browserPrint.d.ts +2 -1
- package/es/components/button-print/src/utils/browserPrint.js +1 -43
- package/es/components/button-print/src/utils/dialog.js +1 -121
- package/es/components/button-print/src/utils/index.js +1 -2
- package/es/components/button-print/src/utils/print.d.ts +5 -1
- package/es/components/button-print/src/utils/print.js +1 -432
- package/es/components/editor/index.js +1 -10
- package/es/components/editor/src/Editor.js +1 -77
- package/es/components/fabric-chart/index.js +1 -10
- package/es/components/fabric-chart/src/FabricChart.vue.js +1 -71
- package/es/components/fabric-chart/src/components/PopupMenu.js +1 -118
- package/es/components/fabric-chart/src/components/PopupTip.vue.js +1 -34
- package/es/components/fabric-chart/src/components/useStyle.js +1 -36
- package/es/components/fabric-chart/src/hooks/constant.js +1 -78
- package/es/components/fabric-chart/src/hooks/index.js +1 -11
- package/es/components/fabric-chart/src/hooks/useBirthProcess.js +1 -642
- package/es/components/fabric-chart/src/hooks/useBirthProcessChart.js +1 -153
- package/es/components/fabric-chart/src/hooks/useBottom.js +1 -91
- package/es/components/fabric-chart/src/hooks/useCenter.js +1 -734
- package/es/components/fabric-chart/src/hooks/useCommon.js +1 -32
- package/es/components/fabric-chart/src/hooks/useCumputedPoint.js +1 -79
- package/es/components/fabric-chart/src/hooks/useDraw.js +1 -182
- package/es/components/fabric-chart/src/hooks/useEvent.js +1 -146
- package/es/components/fabric-chart/src/hooks/useGrid.js +1 -54
- package/es/components/fabric-chart/src/hooks/useLeft.js +1 -331
- package/es/components/fabric-chart/src/hooks/useOther.js +1 -95
- package/es/components/fabric-chart/src/hooks/useRight.js +1 -22
- package/es/components/fabric-chart/src/hooks/useShadow.js +1 -132
- package/es/components/fabric-chart/src/hooks/useTemperatureChart.js +1 -341
- package/es/components/fabric-chart/src/hooks/useTop.js +1 -154
- package/es/components/fabric-chart/src/utils/index.js +1 -15624
- package/es/components/fabric-chart/src/utils/utils.js +1 -32
- package/es/components/field-set/index.js +1 -10
- package/es/components/field-set/src/FieldSet.vue.js +1 -470
- package/es/components/form-config/index.js +1 -10
- package/es/components/form-config/src/FormConfig.vue.js +1 -124
- package/es/components/form-config/src/components/FormConfigCreator.vue.js +1 -100
- package/es/components/form-config/src/components/FormConfigDragDisplay.vue.js +1 -45
- package/es/components/form-config/src/components/FormConfigEdit.vue.js +1 -97
- package/es/components/form-config/src/components/FormConfigMaterialItem.js +1 -28
- package/es/components/form-config/src/components/index.js +1 -6
- package/es/components/form-config/src/components/renderer/CloseButton.vue.js +1 -45
- package/es/components/form-config/src/components/renderer/ComplexNode.vue.js +1 -45
- package/es/components/form-config/src/components/renderer/DefaultNode.vue.js +1 -60
- package/es/components/form-config/src/components/renderer/index.js +1 -3
- package/es/components/form-config/src/constants/index.js +1 -61
- package/es/components/form-config/src/hooks/index.js +1 -3
- package/es/components/form-config/src/hooks/useConfigurationField.js +1 -90
- package/es/components/form-config/src/hooks/useDataNormalize.js +1 -35
- package/es/components/form-config/src/hooks/usePresetRenderer.js +1 -36
- package/es/components/form-config/src/hooks/useSortalbeConfig.js +1 -42
- package/es/components/form-config/src/utils/index.js +1 -26
- package/es/components/form-render/index.js +1 -30
- package/es/components/form-render/src/FormRender.vue.js +1 -239
- package/es/components/form-render/src/FormRenderWrapper.vue.js +1 -49
- package/es/components/form-render/src/components/renderer/combination.js +1 -114
- package/es/components/form-render/src/components/renderer/complex.js +1 -37
- package/es/components/form-render/src/components/renderer/date.js +1 -171
- package/es/components/form-render/src/components/renderer/formItem.js +1 -128
- package/es/components/form-render/src/components/renderer/index.js +1 -43
- package/es/components/form-render/src/components/renderer/input.js +1 -50
- package/es/components/form-render/src/components/renderer/inputGroup.js +1 -11
- package/es/components/form-render/src/components/renderer/inputNumber.js +1 -55
- package/es/components/form-render/src/components/renderer/jsonCombination/hooks/useDeepValidate.js +1 -35
- package/es/components/form-render/src/components/renderer/jsonCombination/index.js +1 -175
- package/es/components/form-render/src/components/renderer/levelSearchCascader.js +1 -274
- package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.js +1 -71
- package/es/components/form-render/src/components/renderer/lineBar/index.js +1 -11
- package/es/components/form-render/src/components/renderer/radio_checkbox.js +1 -111
- package/es/components/form-render/src/components/renderer/remoteSearch.js +1 -139
- package/es/components/form-render/src/components/renderer/searchCascade.js +1 -244
- package/es/components/form-render/src/components/renderer/select.js +1 -176
- package/es/components/form-render/src/components/renderer/simpleComponent.js +1 -57
- package/es/components/form-render/src/components/renderer/slider.js +1 -38
- package/es/components/form-render/src/components/renderer/switch.js +1 -48
- package/es/components/form-render/src/components/renderer/textarea.js +1 -36
- package/es/components/form-render/src/components/tooltipMessage.vue.js +1 -37
- package/es/components/form-render/src/constants/index.js +1 -59
- package/es/components/form-render/src/hooks/index.js +1 -15
- package/es/components/form-render/src/hooks/useAnchor.js +1 -99
- package/es/components/form-render/src/hooks/useAsyncQueue.js +1 -153
- package/es/components/form-render/src/hooks/useAutoHidden.js +1 -43
- package/es/components/form-render/src/hooks/useBusinessBinding.js +1 -119
- package/es/components/form-render/src/hooks/useChangeContext.js +1 -20
- package/es/components/form-render/src/hooks/useCommonInjection.js +1 -43
- package/es/components/form-render/src/hooks/useCommonLog.js +1 -12
- package/es/components/form-render/src/hooks/useComplexOptions.js +1 -225
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -290
- package/es/components/form-render/src/hooks/useFieldNormalize.js +1 -65
- package/es/components/form-render/src/hooks/useFieldVisitor.js +1 -46
- package/es/components/form-render/src/hooks/useFormContext.js +1 -70
- package/es/components/form-render/src/hooks/useFormEvent.js +1 -140
- package/es/components/form-render/src/hooks/useFormField.js +1 -13
- package/es/components/form-render/src/hooks/useFormItemDeps.js +1 -31
- package/es/components/form-render/src/hooks/useFormRenderLifeCycle.js +1 -10
- package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -278
- package/es/components/form-render/src/hooks/useFormRequest.js +1 -42
- package/es/components/form-render/src/hooks/useFormValidator.js +1 -83
- package/es/components/form-render/src/hooks/useLowCodeReactions.js +1 -85
- package/es/components/form-render/src/hooks/useNuiThemeOverrides.js +1 -18
- package/es/components/form-render/src/hooks/usePresetScope.js +1 -22
- package/es/components/form-render/src/types/fieldItem.js +1 -1
- package/es/components/form-render/src/types/index.js +1 -1
- package/es/components/form-render/src/utils/business.js +1 -114
- package/es/components/form-render/src/utils/dom.js +1 -38
- package/es/components/form-render/src/utils/index.js +1 -241
- package/es/components/form-render/src/utils/schema.js +1 -105
- package/es/components/grid/index.js +1 -11
- package/es/components/grid/src/Grid.js +1 -28
- package/es/components/grid/src/hooks.js +1 -168
- package/es/components/iho-table/index.js +1 -36
- package/es/components/iho-table/src/IhoTable.vue.js +1 -157
- package/es/components/iho-table/src/constants/index.js +1 -157
- package/es/components/iho-table/src/hooks/export.js +1 -2
- package/es/components/iho-table/src/hooks/index.js +1 -2
- package/es/components/iho-table/src/hooks/tapHooks/index.js +1 -159
- package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.js +1 -67
- package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.js +1 -26
- package/es/components/iho-table/src/hooks/tapHooks/useDomInsertHooks.js +1 -27
- package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.js +1 -280
- package/es/components/iho-table/src/hooks/tapHooks/useExposeHooks.js +1 -26
- package/es/components/iho-table/src/hooks/tapHooks/useFieldHooks.js +1 -38
- package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks.js +1 -27
- package/es/components/iho-table/src/hooks/useColumnConfigAdaptor.js +1 -164
- package/es/components/iho-table/src/hooks/useTableContext.js +1 -17
- package/es/components/iho-table/src/hooks/useTablePlugin.js +1 -20
- package/es/components/iho-table/src/plugins/anchorPlugin/index.js +1 -19
- package/es/components/iho-table/src/plugins/anchorPlugin/tableAnchor.js +1 -51
- package/es/components/iho-table/src/plugins/anchorPlugin/useAnchor.js +1 -87
- package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.js +1 -48
- package/es/components/iho-table/src/plugins/filterPlugin/filter.vue.js +1 -230
- package/es/components/iho-table/src/plugins/filterPlugin/index.js +1 -240
- package/es/components/iho-table/src/plugins/index.js +1 -47
- package/es/components/iho-table/src/plugins/keyboardEventPlugin/index.js +1 -30
- package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +1 -127
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.js +1 -203
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.js +1 -41
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useAutoFocus.js +1 -21
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/inputRendererPlugin.js +1 -41
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +1 -79
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -64
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -46
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.js +1 -16
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue.js +1 -108
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +1 -163
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/separateUtils.js +1 -42
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin.js +1 -50
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/checkRendererPlugin.js +1 -30
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/colorRendererPlugin.js +1 -48
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/defaultRendererPlugin.js +1 -62
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/labelRendererPlugin.js +1 -52
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/pictureRendererPlugin.js +1 -92
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/seqRendererPlugin.js +1 -59
- package/es/components/iho-table/src/plugins/rowClickPlugin/index.js +1 -34
- package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/index.js +1 -30
- package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/rowGroupUtils.js +1 -53
- package/es/components/iho-table/src/plugins/virtualTreePlugin/index.js +1 -100
- package/es/components/iho-table/src/types/index.js +1 -1
- package/es/components/iho-table/src/types/pluginType.js +1 -16
- package/es/components/iho-table/src/utils/index.js +1 -169
- package/es/components/index.js +1 -119
- package/es/components/info-header/index.js +1 -10
- package/es/components/info-header/src/HiddenContent.vue.js +1 -70
- package/es/components/info-header/src/InfoEllipsis.vue.js +1 -43
- package/es/components/info-header/src/InfoHeader.vue.js +1 -313
- package/es/components/insurance-sdk/index.js +1 -1
- package/es/components/insurance-sdk/src/constants/index.js +1 -160
- package/es/components/insurance-sdk/src/utils/index.js +1 -1
- package/es/components/insurance-sdk/src/utils/insurance.js +1 -268
- package/es/components/keyboard/index.d.ts +1 -1
- package/es/components/keyboard/index.js +1 -10
- package/es/components/keyboard/src/Keyboard.vue.d.ts +1 -1
- package/es/components/keyboard/src/Keyboard.vue.js +1 -164
- package/es/components/keyboard/src/components/InputNumber.vue.js +1 -86
- package/es/components/keyboard/src/components/NumberPanel.vue.d.ts +1 -1
- package/es/components/keyboard/src/components/NumberPanel.vue.js +1 -299
- package/es/components/keyboard/src/utils/index.js +1 -5
- package/es/components/map/index.js +1 -10
- package/es/components/map/src/Map.vue.js +1 -336
- package/es/components/recommend-search/index.js +1 -10
- package/es/components/recommend-search/src/RecommendSearch.vue.js +1 -63
- package/es/components/recommend-search/src/components/BaseSearch.vue.js +1 -157
- package/es/components/recommend-search/src/components/RecommendInput.vue.js +1 -125
- package/es/components/recommend-search/src/components/RecommendMenu.vue.js +1 -104
- package/es/components/recommend-search/src/components/RecommendSelect.vue.js +1 -146
- package/es/components/recommend-search/src/constant/index.js +1 -7
- package/es/components/scale-view/index.js +1 -35
- package/es/components/scale-view/src/ScaleView.vue.js +1 -429
- package/es/components/scale-view/src/components/AnswerParse.vue.js +1 -80
- package/es/components/scale-view/src/components/EvaluateCountdown.vue.js +1 -117
- package/es/components/scale-view/src/components/EvaluatePage.vue.js +1 -141
- package/es/components/scale-view/src/components/LoadingCom.vue.js +1 -19
- package/es/components/scale-view/src/components/NoData.vue.js +1 -74
- package/es/components/scale-view/src/components/ScaleScore.js +1 -63
- package/es/components/scale-view/src/components/composables/choose-common.js +1 -83
- package/es/components/scale-view/src/components/formitem/address.js +1 -3993
- package/es/components/scale-view/src/components/formitem/r-address.js +1 -226
- package/es/components/scale-view/src/components/formitem/r-cascader.js +1 -133
- package/es/components/scale-view/src/components/formitem/r-checkbox.js +1 -281
- package/es/components/scale-view/src/components/formitem/r-collection.js +1 -111
- package/es/components/scale-view/src/components/formitem/r-datetime.js +1 -212
- package/es/components/scale-view/src/components/formitem/r-input.js +1 -86
- package/es/components/scale-view/src/components/formitem/r-map.js +1 -106
- package/es/components/scale-view/src/components/formitem/r-radio.js +1 -240
- package/es/components/scale-view/src/components/formitem/r-select.js +1 -202
- package/es/components/scale-view/src/components/formitem/r-sign.js +1 -177
- package/es/components/scale-view/src/components/formitem/r-upload.js +1 -215
- package/es/components/scale-view/src/components/formitem/sign-com.js +1 -307
- package/es/components/scale-view/src/components/formitem/standard-modal.js +1 -129
- package/es/components/scale-view/src/hooks/scaleview-computed.js +1 -354
- package/es/components/scale-view/src/hooks/scaleview-init.js +1 -437
- package/es/components/scale-view/src/hooks/scaleview-props.js +1 -81
- package/es/components/scale-view/src/hooks/scaleview-state.js +1 -38
- package/es/components/scale-view/src/hooks/scaleview-submit.js +1 -154
- package/es/components/scale-view/src/hooks/scaleview-validate.js +1 -187
- package/es/components/scale-view/src/hooks/use-component.js +1 -86
- package/es/components/scale-view/src/hooks/use-evaluate.js +1 -150
- package/es/components/scale-view/src/hooks/use-event.js +1 -129
- package/es/components/scale-view/src/hooks/use-noData.js +1 -41
- package/es/components/scale-view/src/utils/judge-types.js +1 -36
- package/es/components/search-cascader/index.js +1 -10
- package/es/components/search-cascader/src/SearchCascader.vue.js +1 -194
- package/es/components/search-cascader/src/components/SearchMenu.js +1 -196
- package/es/components/search-cascader/src/components/index.js +1 -1
- package/es/components/search-cascader/src/constants/index.js +1 -11
- package/es/components/search-cascader/src/hooks/index.js +1 -1
- package/es/components/search-cascader/src/hooks/useCssVariable.js +1 -7
- package/es/components/search-cascader/src/utils/index.js +1 -11
- package/es/components/select-label/index.js +1 -15
- package/es/components/select-label/src/LabelFormContent.vue.js +1 -447
- package/es/components/select-label/src/SelectLabel.vue.js +1 -6
- package/es/components/select-label/src/SelectLabel.vue2.js +1 -451
- package/es/components/select-label/src/components/label-classify.vue.js +1 -132
- package/es/components/select-person/index.js +1 -10
- package/es/components/select-person/src/SelectPerson.vue.js +1 -6
- package/es/components/select-person/src/SelectPerson.vue2.js +1 -303
- package/es/components/select-person/src/utils/index.js +1 -58
- package/es/components/shortcut-provider/index.js +1 -12
- package/es/components/shortcut-provider/src/ShortcutProvider.vue.js +1 -42
- package/es/components/shortcut-provider/src/constants/index.js +1 -8
- package/es/components/shortcut-provider/src/hooks/index.js +1 -2
- package/es/components/shortcut-provider/src/hooks/useShortcutSignature.js +1 -12
- package/es/components/shortcut-provider/src/hooks/useShortcuts.js +1 -188
- package/es/components/shortcut-provider/src/utils/index.js +1 -92
- package/es/components/shortcut-setter/index.js +1 -10
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.js +1 -98
- package/es/components/shortcut-setter/src/ShortcutSetterItem.vue.js +1 -76
- package/es/components/steps-wheel/index.js +1 -10
- package/es/components/steps-wheel/src/StepsWheel.vue.js +1 -376
- package/es/components/table-filter/index.js +1 -21
- package/es/components/table-filter/src/base-search-com/BaseSearch.vue.js +1 -2272
- package/es/components/table-filter/src/classification/Classification-com.vue.js +1 -1315
- package/es/components/table-filter/src/classification/search-class-name.vue.js +1 -195
- package/es/components/table-filter/src/classification/search-professional-model.vue.js +1 -594
- package/es/components/table-filter/src/components/age-com/index.vue.js +1 -185
- package/es/components/table-filter/src/components/button-group/ButtonGroup.vue.js +1 -86
- package/es/components/table-filter/src/components/button-icon/getBtnIcon.js +1 -30
- package/es/components/table-filter/src/components/c-tree-select/tree-select.vue.js +1 -253
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.js +1 -114
- package/es/components/table-filter/src/components/classify-filter/helpers/options.js +1 -14
- package/es/components/table-filter/src/components/classify-filter/hooks/useDisplayCategory.js +1 -87
- package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.js +1 -147
- package/es/components/table-filter/src/components/classify-filter/index.vue.js +1 -304
- package/es/components/table-filter/src/components/multi-select/multi-select.vue.js +1 -153
- package/es/components/table-filter/src/components/out-quick-search/out-quick-search.vue.js +1 -310
- package/es/components/table-filter/src/components/range-age/index.vue.js +1 -137
- package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.js +1 -64
- package/es/components/table-filter/src/components/render-widget/components/Select.vue.js +1 -45
- package/es/components/table-filter/src/components/render-widget/components/index.js +1 -2
- package/es/components/table-filter/src/components/render-widget/enums.js +1 -27
- package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.js +1 -70
- package/es/components/table-filter/src/components/render-widget/index.vue.js +1 -107
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -152
- package/es/components/table-filter/src/components/search-condition/SearchCondition.vue.js +1 -1520
- package/es/components/table-filter/src/components/search-condition/fieldTypeList.js +1 -171
- package/es/components/table-filter/src/components/search-filter/SearchFilter.vue.js +1 -199
- package/es/components/table-filter/src/components/search-modal/set-classification.vue.js +1 -241
- package/es/components/table-filter/src/components/table-modal/TableModal.vue.js +1 -526
- package/es/components/table-filter/src/const/dataOptions.js +1 -107
- package/es/components/table-filter/src/const/index.js +1 -5
- package/es/components/table-filter/src/directive/flexibleResize.js +1 -157
- package/es/components/table-filter/src/directive/preventReClick.js +1 -14
- package/es/components/table-filter/src/directive/resize.js +1 -12
- package/es/components/table-filter/src/hooks/export.js +1 -1
- package/es/components/table-filter/src/hooks/useAdvanced.js +1 -64
- package/es/components/table-filter/src/hooks/useMixins.js +1 -532
- package/es/components/table-filter/src/hooks/useRenderWidget.js +1 -94
- package/es/components/table-filter/src/hooks/useTableSearchCon.js +1 -131
- package/es/components/table-filter/src/hooks/useWordBookutils.js +1 -91
- package/es/components/table-filter/src/quick-search/QuickSearch.vue.js +1 -2038
- package/es/components/table-filter/src/tool/generateDefOptions.js +1 -65
- package/es/components/table-filter/src/tool/getWidgetType.js +1 -27
- package/es/components/table-filter/src/tool/options.js +1 -200
- package/es/components/table-filter/src/tool/resizeSensor.js +1 -123
- package/es/components/table-filter/src/tool/time-domain.js +1 -100
- package/es/components/table-filter/src/tool/transformData.js +1 -169
- package/es/components/table-filter/src/tool/utils.js +1 -29
- package/es/components/table-filter/src/types/enums.js +1 -67
- package/es/components/time-line/index.js +1 -10
- package/es/components/time-line/src/TimeLine.vue.js +1 -70
- package/es/components/vod-chunk-upload/index.js +1 -14
- package/es/components/vod-chunk-upload/src/chunk-upload-new.vue.js +1 -480
- package/es/components/vod-chunk-upload/src/hooks/upload-computed.js +1 -70
- package/es/components/vod-chunk-upload/src/hooks/upload-data.js +1 -96
- package/es/components/vod-chunk-upload/src/hooks/vod-computed.js +1 -79
- package/es/components/vod-chunk-upload/src/hooks/vod-data.js +1 -28
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/index.js +1 -2
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.js +1 -332
- package/es/components/vod-chunk-upload/src/vod-upload-modal.js +1 -94
- package/es/shared/assets/img/failure.png.js +1 -3
- package/es/shared/assets/img/no-permission.png.js +1 -3
- package/es/shared/assets/img/nodata.png.js +1 -3
- package/es/shared/assets/img/notfound.png.js +1 -3
- package/es/shared/assets/img/qr.png.js +1 -3
- package/es/shared/assets/img/success.png.js +1 -3
- package/es/shared/assets/img/video.png.js +1 -3
- package/es/shared/assets/img/video_default_cover.png.js +1 -3
- package/es/shared/assets/img/xb_big.png.js +1 -3
- package/es/shared/assets/img/xb_small.png.js +1 -3
- package/es/shared/components/SelectPage/SelectPage.vue.js +1 -61
- package/es/shared/components/SelectPage/index.js +1 -2
- package/es/shared/components/SlotRender/SlotRender.js +1 -35
- package/es/shared/components/SlotRender/index.js +1 -2
- package/es/shared/components/SvgIcon/SvgIcon.vue.js +1 -36
- package/es/shared/components/SvgIcon/index.js +1 -2
- package/es/shared/components/TextOverTooltip/TextOverTooltip.vue.js +1 -77
- package/es/shared/components/TextOverTooltip/index.js +1 -2
- package/es/shared/components/VueDraggable/index.js +1 -2
- package/es/shared/components/VueDraggable/src/core/componentBuilderHelper.js +1 -35
- package/es/shared/components/VueDraggable/src/core/componentStructure.js +1 -54
- package/es/shared/components/VueDraggable/src/core/renderHelper.js +1 -47
- package/es/shared/components/VueDraggable/src/core/sortableEvents.js +1 -14
- package/es/shared/components/VueDraggable/src/util/console.js +1 -9
- package/es/shared/components/VueDraggable/src/util/htmlHelper.js +1 -11
- package/es/shared/components/VueDraggable/src/util/string.js +1 -11
- package/es/shared/components/VueDraggable/src/util/tags.js +1 -130
- package/es/shared/components/VueDraggable/src/vuedraggable.js +1 -265
- package/es/shared/components/no-data/NoData.vue.js +1 -74
- package/es/shared/components/no-data/index.js +1 -2
- package/es/shared/components/player-vod/player.js +1 -121
- package/es/shared/components/player-vod/video-modal.js +1 -91
- package/es/shared/global/variable.js +1 -3
- package/es/shared/utils/anime.js +1 -129
- package/es/shared/utils/colorLog.js +1 -53
- package/es/shared/utils/index.js +1 -167
- package/es/shared/utils/loadViewer.js +1 -11
- package/es/shared/utils/tapable/AsyncParallelBailHook.js +1 -63
- package/es/shared/utils/tapable/AsyncParallelHook.js +1 -27
- package/es/shared/utils/tapable/AsyncSeriesBailHook.js +1 -18
- package/es/shared/utils/tapable/AsyncSeriesHook.js +1 -27
- package/es/shared/utils/tapable/AsyncSeriesLoopHook.js +1 -12
- package/es/shared/utils/tapable/AsyncSeriesWaterfallHook.js +1 -22
- package/es/shared/utils/tapable/Hook.js +1 -140
- package/es/shared/utils/tapable/HookCodeFactory.js +1 -456
- package/es/shared/utils/tapable/SyncBailHook.js +1 -19
- package/es/shared/utils/tapable/SyncHook.js +1 -34
- package/es/shared/utils/tapable/SyncLoopHook.js +1 -13
- package/es/shared/utils/tapable/SyncWaterfallHook.js +1 -47
- package/es/shared/utils/utilExpand.js +1 -781
- package/es/shared/utils/vexutils.js +1 -59
- package/package.json +2 -2
package/es/components/index.js
CHANGED
|
@@ -1,119 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
export { default as CGrid } from './grid/index.js';
|
|
3
|
-
import BigTable from './big-table/index.js';
|
|
4
|
-
export { default as CBigTable } from './big-table/index.js';
|
|
5
|
-
import FieldSet from './field-set/index.js';
|
|
6
|
-
export { default as CFieldSet } from './field-set/index.js';
|
|
7
|
-
import ButtonPrint from './button-print/index.js';
|
|
8
|
-
export { default as CButtonPrint } from './button-print/index.js';
|
|
9
|
-
import SelectPerson from './select-person/index.js';
|
|
10
|
-
export { default as CSelectPerson } from './select-person/index.js';
|
|
11
|
-
import SelectLabel, { CLabelFormContent as LabelFormContent } from './select-label/index.js';
|
|
12
|
-
export { CLabelFormContent, default as CSelectLabel } from './select-label/index.js';
|
|
13
|
-
import Map from './map/index.js';
|
|
14
|
-
export { default as CMap } from './map/index.js';
|
|
15
|
-
import VodChunkUpload from './vod-chunk-upload/index.js';
|
|
16
|
-
export { default as CVodChunkUpload } from './vod-chunk-upload/index.js';
|
|
17
|
-
import { CScaleView, CRadio, CCheckbox, CSelect, CDatetime } from './scale-view/index.js';
|
|
18
|
-
export { CCheckbox, CDatetime, CRadio, CScaleView, CSelect } from './scale-view/index.js';
|
|
19
|
-
import InfoHeader from './info-header/index.js';
|
|
20
|
-
export { default as CInfoHeader } from './info-header/index.js';
|
|
21
|
-
import TimeLine from './time-line/index.js';
|
|
22
|
-
export { default as CTimeLine } from './time-line/index.js';
|
|
23
|
-
import { CBaseSearch, CQuickSearch, CClassification } from './table-filter/index.js';
|
|
24
|
-
export { CBaseSearch, CClassification, CQuickSearch } from './table-filter/index.js';
|
|
25
|
-
import BpmnWorkflow from './bpmn-workflow/index.js';
|
|
26
|
-
export { default as CBpmnWorkflow } from './bpmn-workflow/index.js';
|
|
27
|
-
import StepsWheel from './steps-wheel/index.js';
|
|
28
|
-
export { default as CStepsWheel } from './steps-wheel/index.js';
|
|
29
|
-
import Editor from './editor/index.js';
|
|
30
|
-
export { default as CEditor } from './editor/index.js';
|
|
31
|
-
import FormRender from './form-render/index.js';
|
|
32
|
-
export { default as CFormRender } from './form-render/index.js';
|
|
33
|
-
import FabricChart from './fabric-chart/index.js';
|
|
34
|
-
export { default as CFabricChart } from './fabric-chart/index.js';
|
|
35
|
-
import ShortcutProvider from './shortcut-provider/index.js';
|
|
36
|
-
export { default as CShortcutProvider } from './shortcut-provider/index.js';
|
|
37
|
-
import ShortcutSetter from './shortcut-setter/index.js';
|
|
38
|
-
export { default as CShortcutSetter } from './shortcut-setter/index.js';
|
|
39
|
-
import FormConfig from './form-config/index.js';
|
|
40
|
-
export { default as CFormConfig } from './form-config/index.js';
|
|
41
|
-
import IhoTable from './iho-table/index.js';
|
|
42
|
-
export { default as CIhoTable, useIhoTablePresetPlugins } from './iho-table/index.js';
|
|
43
|
-
import Keyboard from './keyboard/index.js';
|
|
44
|
-
export { default as CKeyboard } from './keyboard/index.js';
|
|
45
|
-
import SearchCascader from './search-cascader/index.js';
|
|
46
|
-
export { default as CSearchCascader } from './search-cascader/index.js';
|
|
47
|
-
import RecommendSearch from './recommend-search/index.js';
|
|
48
|
-
export { default as CRecommendSearch } from './recommend-search/index.js';
|
|
49
|
-
export { Insurance } from './insurance-sdk/src/utils/insurance.js';
|
|
50
|
-
export { useFieldListAdaptor } from './form-render/src/hooks/useFieldListAdaptor.js';
|
|
51
|
-
export { useFormRequest } from './form-render/src/hooks/useFormRequest.js';
|
|
52
|
-
export { useCommonLog } from './form-render/src/hooks/useCommonLog.js';
|
|
53
|
-
export { useFormField } from './form-render/src/hooks/useFormField.js';
|
|
54
|
-
export { AsyncQueue, useAsyncQueue } from './form-render/src/hooks/useAsyncQueue.js';
|
|
55
|
-
export { useFieldVisitor } from './form-render/src/hooks/useFieldVisitor.js';
|
|
56
|
-
export { useFieldNormalize } from './form-render/src/hooks/useFieldNormalize.js';
|
|
57
|
-
export { useFormValidator, validateMessageLocale } from './form-render/src/hooks/useFormValidator.js';
|
|
58
|
-
export { BusinessCollector, useBusinessBinding } from './form-render/src/hooks/useBusinessBinding.js';
|
|
59
|
-
export { ContextCollector, useChangeContext } from './form-render/src/hooks/useChangeContext.js';
|
|
60
|
-
export { FormItemDepsCollector, useFormItemDeps } from './form-render/src/hooks/useFormItemDeps.js';
|
|
61
|
-
export { useAnchor } from './form-render/src/hooks/useAnchor.js';
|
|
62
|
-
export { useFormContext } from './form-render/src/hooks/useFormContext.js';
|
|
63
|
-
export { useCommonInjection, useSelectOptionProps } from './form-render/src/hooks/useCommonInjection.js';
|
|
64
|
-
export { searchContentMatcher, useAutographOptions, useRecommendOptions, useUrlConfigOptions } from './form-render/src/hooks/useFormRenderOptions.js';
|
|
65
|
-
export { businessDateParser, isIdCard, isMobile, parseAge2Birthday, parseAgeFromContext, parseBirthday, parseIdCard, transformDateFormat } from './form-render/src/utils/business.js';
|
|
66
|
-
export { findNextWidget, queryDecorator, queryInput } from './form-render/src/utils/dom.js';
|
|
67
|
-
export { assignClearBindVisited, assignUpdateValue, assignValueBindKey, createLinebarId, createObjSchema, createVisitedSetter, dotEscape, fieldKeyEscape, getParentLinebar, traverseDependKey, traverseSchema } from './form-render/src/utils/schema.js';
|
|
68
|
-
export { combineExtendKey, createInputSlot, createSlot, createUrlConfigParams, formRenderLog, injectOrProvide, isNestedFieldType, isNestedType, keywordMatcher, mergeDeepProperties, parseNumberFromMaybeString, presetRequestHandler, splitExtendKey, validateMessageParser } from './form-render/src/utils/index.js';
|
|
69
|
-
export * from '@formily/core';
|
|
70
|
-
export { GlobalShortcutProvider, ShortcutManager, useShortcuts } from './shortcut-provider/src/hooks/useShortcuts.js';
|
|
71
|
-
export { useShortcutSignature } from './shortcut-provider/src/hooks/useShortcutSignature.js';
|
|
72
|
-
export { defineTablePlugin, useTablePlugin } from './iho-table/src/hooks/useTablePlugin.js';
|
|
73
|
-
export { useColumnConfigAdaptor } from './iho-table/src/hooks/useColumnConfigAdaptor.js';
|
|
74
|
-
export { AbstractConfigHooks, AbstractDataHooks, AbstractDomInsertHooks, AbstractEventHooks, AbstractExposeHooks, AbstractFieldHooks, AbstractSetupHooks } from './iho-table/src/types/pluginType.js';
|
|
75
|
-
export { Print } from './button-print/src/utils/print.js';
|
|
76
|
-
export { isIReport, useBrowserPrint } from './button-print/src/utils/browserPrint.js';
|
|
77
|
-
export { useAdvanced } from './table-filter/src/hooks/useAdvanced.js';
|
|
78
|
-
|
|
79
|
-
const components = {
|
|
80
|
-
CGrid: Grid,
|
|
81
|
-
CBigTable: BigTable,
|
|
82
|
-
CFieldSet: FieldSet,
|
|
83
|
-
CButtonPrint: ButtonPrint,
|
|
84
|
-
CSelectPerson: SelectPerson,
|
|
85
|
-
CSelectLabel: SelectLabel,
|
|
86
|
-
CLabelFormContent: LabelFormContent,
|
|
87
|
-
CScaleView,
|
|
88
|
-
CMap: Map,
|
|
89
|
-
CVodChunkUpload: VodChunkUpload,
|
|
90
|
-
CRadio,
|
|
91
|
-
CCheckbox,
|
|
92
|
-
CSelect,
|
|
93
|
-
CDatetime,
|
|
94
|
-
CInfoHeader: InfoHeader,
|
|
95
|
-
CTimeLine: TimeLine,
|
|
96
|
-
CBaseSearch,
|
|
97
|
-
CQuickSearch,
|
|
98
|
-
CClassification,
|
|
99
|
-
CBpmnWorkflow: BpmnWorkflow,
|
|
100
|
-
CStepsWheel: StepsWheel,
|
|
101
|
-
CEditor: Editor,
|
|
102
|
-
CFormRender: FormRender,
|
|
103
|
-
CFabricChart: FabricChart,
|
|
104
|
-
CShortcutProvider: ShortcutProvider,
|
|
105
|
-
CShortcutSetter: ShortcutSetter,
|
|
106
|
-
CFormConfig: FormConfig,
|
|
107
|
-
CIhoTable: IhoTable,
|
|
108
|
-
CKeyboard: Keyboard,
|
|
109
|
-
CSearchCascader: SearchCascader,
|
|
110
|
-
CRecommendSearch: RecommendSearch
|
|
111
|
-
};
|
|
112
|
-
function install(app) {
|
|
113
|
-
Object.values(components).forEach((component) => {
|
|
114
|
-
component.install(app);
|
|
115
|
-
});
|
|
116
|
-
}
|
|
117
|
-
var index = { install, ...components };
|
|
118
|
-
|
|
119
|
-
export { index as default };
|
|
1
|
+
import e from"./grid/index.js";export{default as CGrid}from"./grid/index.js";import r from"./big-table/index.js";export{default as CBigTable}from"./big-table/index.js";import o from"./field-set/index.js";export{default as CFieldSet}from"./field-set/index.js";import s from"./button-print/index.js";export{default as CButtonPrint}from"./button-print/index.js";import t from"./select-person/index.js";export{default as CSelectPerson}from"./select-person/index.js";import i,{CLabelFormContent as a}from"./select-label/index.js";export{CLabelFormContent,default as CSelectLabel}from"./select-label/index.js";import n from"./map/index.js";export{default as CMap}from"./map/index.js";import m from"./vod-chunk-upload/index.js";export{default as CVodChunkUpload}from"./vod-chunk-upload/index.js";import{CScaleView as d,CRadio as f,CCheckbox as l,CSelect as c,CDatetime as p}from"./scale-view/index.js";export{CCheckbox,CDatetime,CRadio,CScaleView,CSelect}from"./scale-view/index.js";import u from"./info-header/index.js";export{default as CInfoHeader}from"./info-header/index.js";import x from"./time-line/index.js";export{default as CTimeLine}from"./time-line/index.js";import{CBaseSearch as C,CQuickSearch as h,CClassification as j}from"./table-filter/index.js";export{CBaseSearch,CClassification,CQuickSearch}from"./table-filter/index.js";import b from"./bpmn-workflow/index.js";export{default as CBpmnWorkflow}from"./bpmn-workflow/index.js";import g from"./steps-wheel/index.js";export{default as CStepsWheel}from"./steps-wheel/index.js";import k from"./editor/index.js";export{default as CEditor}from"./editor/index.js";import S from"./form-render/index.js";export{default as CFormRender}from"./form-render/index.js";import F from"./fabric-chart/index.js";export{default as CFabricChart}from"./fabric-chart/index.js";import y from"./shortcut-provider/index.js";export{default as CShortcutProvider}from"./shortcut-provider/index.js";import P from"./shortcut-setter/index.js";export{default as CShortcutSetter}from"./shortcut-setter/index.js";import v from"./form-config/index.js";export{default as CFormConfig}from"./form-config/index.js";import A from"./iho-table/index.js";export{default as CIhoTable,useIhoTablePresetPlugins}from"./iho-table/index.js";import B from"./keyboard/index.js";export{default as CKeyboard}from"./keyboard/index.js";import I from"./search-cascader/index.js";export{default as CSearchCascader}from"./search-cascader/index.js";import w from"./recommend-search/index.js";export{default as CRecommendSearch}from"./recommend-search/index.js";export{Insurance}from"./insurance-sdk/src/utils/insurance.js";export{useFieldListAdaptor}from"./form-render/src/hooks/useFieldListAdaptor.js";export{useFormRequest}from"./form-render/src/hooks/useFormRequest.js";export{useCommonLog}from"./form-render/src/hooks/useCommonLog.js";export{useFormField}from"./form-render/src/hooks/useFormField.js";export{AsyncQueue,useAsyncQueue}from"./form-render/src/hooks/useAsyncQueue.js";export{useFieldVisitor}from"./form-render/src/hooks/useFieldVisitor.js";export{useFieldNormalize}from"./form-render/src/hooks/useFieldNormalize.js";export{useFormValidator,validateMessageLocale}from"./form-render/src/hooks/useFormValidator.js";export{BusinessCollector,useBusinessBinding}from"./form-render/src/hooks/useBusinessBinding.js";export{ContextCollector,useChangeContext}from"./form-render/src/hooks/useChangeContext.js";export{FormItemDepsCollector,useFormItemDeps}from"./form-render/src/hooks/useFormItemDeps.js";export{useAnchor}from"./form-render/src/hooks/useAnchor.js";export{useFormContext}from"./form-render/src/hooks/useFormContext.js";export{useCommonInjection,useSelectOptionProps}from"./form-render/src/hooks/useCommonInjection.js";export{searchContentMatcher,useAutographOptions,useRecommendOptions,useUrlConfigOptions}from"./form-render/src/hooks/useFormRenderOptions.js";export{businessDateParser,isIdCard,isMobile,parseAge2Birthday,parseAgeFromContext,parseBirthday,parseIdCard,transformDateFormat}from"./form-render/src/utils/business.js";export{findNextWidget,queryDecorator,queryInput}from"./form-render/src/utils/dom.js";export{assignClearBindVisited,assignUpdateValue,assignValueBindKey,createLinebarId,createObjSchema,createVisitedSetter,dotEscape,fieldKeyEscape,getParentLinebar,traverseDependKey,traverseSchema}from"./form-render/src/utils/schema.js";export{combineExtendKey,createInputSlot,createSlot,createUrlConfigParams,formRenderLog,injectOrProvide,isNestedFieldType,isNestedType,keywordMatcher,mergeDeepProperties,parseNumberFromMaybeString,presetRequestHandler,splitExtendKey,validateMessageParser}from"./form-render/src/utils/index.js";export*from"@formily/core";export{GlobalShortcutProvider,ShortcutManager,useShortcuts}from"./shortcut-provider/src/hooks/useShortcuts.js";export{useShortcutSignature}from"./shortcut-provider/src/hooks/useShortcutSignature.js";export{defineTablePlugin,useTablePlugin}from"./iho-table/src/hooks/useTablePlugin.js";export{useColumnConfigAdaptor}from"./iho-table/src/hooks/useColumnConfigAdaptor.js";export{AbstractConfigHooks,AbstractDataHooks,AbstractDomInsertHooks,AbstractEventHooks,AbstractExposeHooks,AbstractFieldHooks,AbstractSetupHooks}from"./iho-table/src/types/pluginType.js";export{Print}from"./button-print/src/utils/print.js";export{getFileUrl,isIReport,useBrowserPrint}from"./button-print/src/utils/browserPrint.js";export{useAdvanced}from"./table-filter/src/hooks/useAdvanced.js";const L={CGrid:e,CBigTable:r,CFieldSet:o,CButtonPrint:s,CSelectPerson:t,CSelectLabel:i,CLabelFormContent:a,CScaleView:d,CMap:n,CVodChunkUpload:m,CRadio:f,CCheckbox:l,CSelect:c,CDatetime:p,CInfoHeader:u,CTimeLine:x,CBaseSearch:C,CQuickSearch:h,CClassification:j,CBpmnWorkflow:b,CStepsWheel:g,CEditor:k,CFormRender:S,CFabricChart:F,CShortcutProvider:y,CShortcutSetter:P,CFormConfig:v,CIhoTable:A,CKeyboard:B,CSearchCascader:I,CRecommendSearch:w};var R={install:function(e){Object.values(L).forEach((r=>{r.install(e)}))},...L};export{R as default};
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { safeComponentRegister } from '../../shared/utils/index.js';
|
|
3
|
-
import script from './src/InfoHeader.vue.js';
|
|
4
|
-
|
|
5
|
-
const InfoHeader = script;
|
|
6
|
-
InfoHeader.install = function(app) {
|
|
7
|
-
safeComponentRegister(app, InfoHeader, COMPONENT_NAMESPACE + "InfoHeader");
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
export { InfoHeader as default };
|
|
1
|
+
import{COMPONENT_NAMESPACE as r}from"../../shared/global/variable.js";import{safeComponentRegister as o}from"../../shared/utils/index.js";import e from"./src/InfoHeader.vue.js";const a=e;a.install=function(e){o(e,a,r+"InfoHeader")};export{a as default};
|
|
@@ -1,70 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import InfoEllipsis from './InfoEllipsis.vue.js';
|
|
3
|
-
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.js';
|
|
4
|
-
|
|
5
|
-
const _hoisted_1 = { class: "c-info-header__hidden--content" };
|
|
6
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
-
__name: "HiddenContent",
|
|
8
|
-
props: {
|
|
9
|
-
content: { type: String, default: "" },
|
|
10
|
-
tip: String,
|
|
11
|
-
width: { type: Number },
|
|
12
|
-
contentStyle: { type: Object, default: () => ({}) }
|
|
13
|
-
},
|
|
14
|
-
setup(__props) {
|
|
15
|
-
const props = __props;
|
|
16
|
-
const hidden = ref(true);
|
|
17
|
-
function toggleHidden() {
|
|
18
|
-
hidden.value = !hidden.value;
|
|
19
|
-
}
|
|
20
|
-
const wrapperStyle = computed(() => {
|
|
21
|
-
const width = props.width + "px";
|
|
22
|
-
return { maxWidth: width, width };
|
|
23
|
-
});
|
|
24
|
-
const parsedContentStyle = computed(() => {
|
|
25
|
-
if (!props.width)
|
|
26
|
-
return {};
|
|
27
|
-
const maxWidth = props.width - 40 + "px";
|
|
28
|
-
return Object.assign({}, props.contentStyle, { maxWidth });
|
|
29
|
-
});
|
|
30
|
-
const displayContent = computed(() => {
|
|
31
|
-
let { content } = props;
|
|
32
|
-
content += "";
|
|
33
|
-
if (!hidden.value)
|
|
34
|
-
return content;
|
|
35
|
-
if (!content)
|
|
36
|
-
return "-";
|
|
37
|
-
const length = content.length;
|
|
38
|
-
if (!length || length === 1)
|
|
39
|
-
return content;
|
|
40
|
-
const hiddenNum = Math.floor(length / 2);
|
|
41
|
-
const prefixNum = Math.floor((length - hiddenNum) / 2);
|
|
42
|
-
return `${content.substring(0, prefixNum)}${"*".repeat(hiddenNum)}${content == null ? void 0 : content.substring(prefixNum + hiddenNum)}`;
|
|
43
|
-
});
|
|
44
|
-
return (_ctx, _cache) => {
|
|
45
|
-
return openBlock(), createElementBlock("div", {
|
|
46
|
-
class: "c-info-header__hidden",
|
|
47
|
-
style: normalizeStyle(unref(wrapperStyle))
|
|
48
|
-
}, [
|
|
49
|
-
createElementVNode("div", _hoisted_1, [
|
|
50
|
-
createVNode(InfoEllipsis, {
|
|
51
|
-
"content-style": unref(parsedContentStyle),
|
|
52
|
-
content: unref(displayContent),
|
|
53
|
-
tip: __props.tip
|
|
54
|
-
}, null, 8, ["content-style", "content", "tip"])
|
|
55
|
-
]),
|
|
56
|
-
createElementVNode("i", {
|
|
57
|
-
onClick: toggleHidden,
|
|
58
|
-
class: normalizeClass([
|
|
59
|
-
"c-info-header__hidden--icon",
|
|
60
|
-
"iconfont",
|
|
61
|
-
`info-header--icon-${hidden.value ? "guanbi-yanjing" : "faxian-yanjing"}`
|
|
62
|
-
])
|
|
63
|
-
}, null, 2)
|
|
64
|
-
], 4);
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
});
|
|
68
|
-
var HiddenContent = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "HiddenContent.vue"]]);
|
|
69
|
-
|
|
70
|
-
export { HiddenContent as default };
|
|
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 u,createVNode as a,normalizeClass as c}from"vue";import s from"./InfoEllipsis.vue.js";import d from"../../../_virtual/plugin-vue_export-helper.js";const f={class:"c-info-header__hidden--content"};var p=d(t({__name:"HiddenContent",props:{content:{type:String,default:""},tip:String,width:{type:Number},contentStyle:{type:Object,default:()=>({})}},setup(t){const d=t,p=n(!0);function h(){p.value=!p.value}const v=e((()=>{const t=d.width+"px";return{maxWidth:t,width:t}})),_=e((()=>{if(!d.width)return{};const t=d.width-40+"px";return Object.assign({},d.contentStyle,{maxWidth:t})})),g=e((()=>{let{content:t}=d;if(t+="",!p.value)return t;if(!t)return"-";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))},[u("div",f,[a(s,{"content-style":l(_),content:l(g),tip:t.tip},null,8,["content-style","content","tip"])]),u("i",{onClick:h,class:c(["c-info-header__hidden--icon","iconfont","info-header--icon-"+(p.value?"guanbi-yanjing":"faxian-yanjing")])},null,2)],4))}}),[["__file","HiddenContent.vue"]]);export{p as default};
|
|
@@ -1,43 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { NTooltip, NEllipsis } from 'naive-ui';
|
|
3
|
-
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.js';
|
|
4
|
-
|
|
5
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
|
-
__name: "InfoEllipsis",
|
|
7
|
-
props: {
|
|
8
|
-
content: { type: String, default: "" },
|
|
9
|
-
tip: { type: String },
|
|
10
|
-
contentStyle: { type: Object, default: () => ({}) }
|
|
11
|
-
},
|
|
12
|
-
setup(__props) {
|
|
13
|
-
return (_ctx, _cache) => {
|
|
14
|
-
return openBlock(), createBlock(unref(NTooltip), {
|
|
15
|
-
disabled: !__props.tip
|
|
16
|
-
}, {
|
|
17
|
-
trigger: withCtx(() => [
|
|
18
|
-
createElementVNode("section", null, [
|
|
19
|
-
createVNode(unref(NEllipsis), {
|
|
20
|
-
style: normalizeStyle(__props.contentStyle),
|
|
21
|
-
tooltip: { placement: __props.tip ? "bottom" : "top" }
|
|
22
|
-
}, {
|
|
23
|
-
default: withCtx(() => {
|
|
24
|
-
var _a;
|
|
25
|
-
return [
|
|
26
|
-
createTextVNode(toDisplayString((_a = __props.content) != null ? _a : "-"), 1)
|
|
27
|
-
];
|
|
28
|
-
}),
|
|
29
|
-
_: 1
|
|
30
|
-
}, 8, ["style", "tooltip"])
|
|
31
|
-
])
|
|
32
|
-
]),
|
|
33
|
-
default: withCtx(() => [
|
|
34
|
-
createTextVNode(" " + toDisplayString(__props.tip), 1)
|
|
35
|
-
]),
|
|
36
|
-
_: 1
|
|
37
|
-
}, 8, ["disabled"]);
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
});
|
|
41
|
-
var InfoEllipsis = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "InfoEllipsis.vue"]]);
|
|
42
|
-
|
|
43
|
-
export { InfoEllipsis as default };
|
|
1
|
+
import{defineComponent as t,openBlock as e,createBlock as l,unref as i,withCtx as o,createElementVNode as p,createVNode as n,normalizeStyle as r,createTextVNode as u,toDisplayString as a}from"vue";import{NTooltip as s,NEllipsis as f}from"naive-ui";import d from"../../../_virtual/plugin-vue_export-helper.js";var m=d(t({__name:"InfoEllipsis",props:{content:{type:String,default:""},tip:{type:String},contentStyle:{type:Object,default:()=>({})}},setup:t=>(d,m)=>(e(),l(i(s),{disabled:!t.tip},{trigger:o((()=>[p("section",null,[n(i(f),{style:r(t.contentStyle),tooltip:{placement:t.tip?"bottom":"top"}},{default:o((()=>{var e;return[u(a(null!=(e=t.content)?e:"-"),1)]})),_:1},8,["style","tooltip"])])])),default:o((()=>[u(" "+a(t.tip),1)])),_:1},8,["disabled"]))}),[["__file","InfoEllipsis.vue"]]);export{m as default};
|
|
@@ -1,313 +1 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { isString, isArray } from 'lodash-es';
|
|
3
|
-
import { NPopover, NImage, NTag, NEllipsis, NScrollbar, NDescriptions, NDescriptionsItem } from 'naive-ui';
|
|
4
|
-
import { useThrottleFn, useEventListener } from '@vueuse/core';
|
|
5
|
-
import script$1 from '../../../shared/components/SlotRender/SlotRender.js';
|
|
6
|
-
import InfoEllipsis from './InfoEllipsis.vue.js';
|
|
7
|
-
import HiddenContent from './HiddenContent.vue.js';
|
|
8
|
-
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.js';
|
|
9
|
-
|
|
10
|
-
const _hoisted_1 = { class: "c-info-header__operation" };
|
|
11
|
-
const _hoisted_2 = {
|
|
12
|
-
key: 0,
|
|
13
|
-
class: "c-info-header__divider"
|
|
14
|
-
};
|
|
15
|
-
const _hoisted_3 = { class: "c-info-header__patient" };
|
|
16
|
-
const _hoisted_4 = { class: "c-info-header__patientHeader" };
|
|
17
|
-
const _hoisted_5 = {
|
|
18
|
-
key: 0,
|
|
19
|
-
class: "c-info-header__patientHeader--name"
|
|
20
|
-
};
|
|
21
|
-
const _hoisted_6 = {
|
|
22
|
-
key: 1,
|
|
23
|
-
class: "c-info-header__patientHeader--sex"
|
|
24
|
-
};
|
|
25
|
-
const _hoisted_7 = {
|
|
26
|
-
key: 2,
|
|
27
|
-
class: "c-info-header__patientHeader--age"
|
|
28
|
-
};
|
|
29
|
-
const _hoisted_8 = /* @__PURE__ */ createElementVNode("section", { style: { "height": "10px" } }, null, -1);
|
|
30
|
-
const _hoisted_9 = /* @__PURE__ */ createElementVNode("section", { style: { "height": "12px" } }, null, -1);
|
|
31
|
-
const _hoisted_10 = { class: "c-info-header__setting" };
|
|
32
|
-
const _hoisted_11 = ["onClick"];
|
|
33
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
34
|
-
__name: "InfoHeader",
|
|
35
|
-
props: {
|
|
36
|
-
compact: { type: Boolean, required: true },
|
|
37
|
-
separator: { type: String, default: ":" },
|
|
38
|
-
patientInfo: { type: Object, default: () => ({}) },
|
|
39
|
-
infoList: { type: Array, required: true },
|
|
40
|
-
labelField: { type: String, default: "label" },
|
|
41
|
-
valueField: { type: String, default: "value" },
|
|
42
|
-
minColumnWidth: { type: [String, Number], default: 180 },
|
|
43
|
-
rowHeight: { type: [String, Number], default: 32 },
|
|
44
|
-
settingIcons: {
|
|
45
|
-
type: Array,
|
|
46
|
-
default: () => ["patientInfo", "fieldSet", "compact"]
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
emits: [
|
|
50
|
-
"openPatientInfo",
|
|
51
|
-
"fieldSet",
|
|
52
|
-
"update:compact"
|
|
53
|
-
],
|
|
54
|
-
setup(__props, { expose, emit }) {
|
|
55
|
-
const props = __props;
|
|
56
|
-
async function toggleCompact() {
|
|
57
|
-
emit("update:compact", !props.compact);
|
|
58
|
-
await nextTick();
|
|
59
|
-
await updateColumn();
|
|
60
|
-
}
|
|
61
|
-
function openPatientInfo() {
|
|
62
|
-
emit("openPatientInfo");
|
|
63
|
-
}
|
|
64
|
-
function fieldSet() {
|
|
65
|
-
emit("fieldSet");
|
|
66
|
-
}
|
|
67
|
-
const settingIconMap = {
|
|
68
|
-
patientInfo: {
|
|
69
|
-
event: openPatientInfo,
|
|
70
|
-
render() {
|
|
71
|
-
return [h("i", { class: "iconfont info-header--icon-a-menzhenyishengzhanxitongtubiaobianji" })];
|
|
72
|
-
}
|
|
73
|
-
},
|
|
74
|
-
fieldSet: {
|
|
75
|
-
event: fieldSet,
|
|
76
|
-
render() {
|
|
77
|
-
return [h("i", { class: "iconfont info-header--icon-a-menzhenyishengzhanxitongtubiaoshezhi" })];
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
compact: {
|
|
81
|
-
event: toggleCompact,
|
|
82
|
-
render() {
|
|
83
|
-
return [h("i", { class: "iconfont info-header--icon-a-menzhenyishengzhanxitongtubiaojiantouxia" })];
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
};
|
|
87
|
-
const settingIconList = computed(() => {
|
|
88
|
-
return props.settingIcons.map((setting) => {
|
|
89
|
-
return (isString(setting) ? settingIconMap[setting] : setting) || {};
|
|
90
|
-
});
|
|
91
|
-
});
|
|
92
|
-
function getTagColor({ type = "warning" }) {
|
|
93
|
-
const colorMap = { warning: "#fcc200", info: "rgba(45, 122, 255, 0.1)" };
|
|
94
|
-
const textColorMap = { warning: "#fff", info: "#2563F4" };
|
|
95
|
-
return { color: colorMap[type], textColor: textColorMap[type] };
|
|
96
|
-
}
|
|
97
|
-
const tagListExcludeEmpty = computed(() => {
|
|
98
|
-
if (!props.patientInfo || !isArray(props.patientInfo.tagList))
|
|
99
|
-
return [];
|
|
100
|
-
return props.patientInfo.tagList.filter((tag) => tag.render || isString(tag.content) && tag.content);
|
|
101
|
-
});
|
|
102
|
-
function getDescriptionItemStyle({ bold = true, contentStyle = {} } = {}) {
|
|
103
|
-
return { fontWeight: bold ? 700 : 500, ...contentStyle };
|
|
104
|
-
}
|
|
105
|
-
function getEllipsisStyle(index, { bold = true, contentStyle = {} } = {}) {
|
|
106
|
-
const width = descriptionWidthList.value[index] + "px";
|
|
107
|
-
return { width, maxWidth: width, fontWeight: bold ? 700 : 500, ...contentStyle };
|
|
108
|
-
}
|
|
109
|
-
function needHidden(item) {
|
|
110
|
-
return ["\u7535\u8BDD", "\u8EAB\u4EFD\u8BC1"].some((key) => {
|
|
111
|
-
var _a, _b;
|
|
112
|
-
return (_b = (_a = item[props.labelField]) == null ? void 0 : _a.includes) == null ? void 0 : _b.call(_a, key);
|
|
113
|
-
});
|
|
114
|
-
}
|
|
115
|
-
const infoRef = ref();
|
|
116
|
-
const columnNum = ref(3);
|
|
117
|
-
const maxColumnWidth = ref(0);
|
|
118
|
-
const descriptionWidthList = ref([]);
|
|
119
|
-
const updateColumn = useThrottleFn(
|
|
120
|
-
async function() {
|
|
121
|
-
await nextTick();
|
|
122
|
-
const infoWrapper = infoRef.value;
|
|
123
|
-
if (!infoWrapper)
|
|
124
|
-
return;
|
|
125
|
-
const { clientWidth } = infoWrapper;
|
|
126
|
-
columnNum.value = Math.floor(clientWidth / +props.minColumnWidth);
|
|
127
|
-
maxColumnWidth.value = Math.floor(clientWidth / columnNum.value);
|
|
128
|
-
await nextTick();
|
|
129
|
-
const labels = infoWrapper.querySelectorAll(".n-descriptions-table-content__label");
|
|
130
|
-
if (!labels)
|
|
131
|
-
return;
|
|
132
|
-
descriptionWidthList.value = Array.from(labels).map((label) => {
|
|
133
|
-
return maxColumnWidth.value - label.clientWidth - 8;
|
|
134
|
-
});
|
|
135
|
-
},
|
|
136
|
-
200,
|
|
137
|
-
true,
|
|
138
|
-
false
|
|
139
|
-
);
|
|
140
|
-
onMounted(updateColumn);
|
|
141
|
-
watch([() => props.minColumnWidth, () => props.infoList], updateColumn, {
|
|
142
|
-
flush: "post",
|
|
143
|
-
deep: true
|
|
144
|
-
});
|
|
145
|
-
expose({
|
|
146
|
-
update: updateColumn
|
|
147
|
-
});
|
|
148
|
-
useEventListener(window, "resize", updateColumn);
|
|
149
|
-
let timer;
|
|
150
|
-
function stopInterval() {
|
|
151
|
-
clearInterval(timer);
|
|
152
|
-
}
|
|
153
|
-
function startInterval() {
|
|
154
|
-
stopInterval();
|
|
155
|
-
timer = setInterval(updateColumn, 700);
|
|
156
|
-
}
|
|
157
|
-
onBeforeUnmount(stopInterval);
|
|
158
|
-
onDeactivated(stopInterval);
|
|
159
|
-
onActivated(startInterval);
|
|
160
|
-
onMounted(startInterval);
|
|
161
|
-
return (_ctx, _cache) => {
|
|
162
|
-
return openBlock(), createElementBlock("div", {
|
|
163
|
-
class: normalizeClass(["c-info-header", { "is-compact": __props.compact }]),
|
|
164
|
-
style: normalizeStyle({ "--row-height": __props.rowHeight, "--column-width": maxColumnWidth.value })
|
|
165
|
-
}, [
|
|
166
|
-
createElementVNode("section", _hoisted_1, [
|
|
167
|
-
createCommentVNode(" \u64CD\u4F5C\u533A\u63D2\u69FD "),
|
|
168
|
-
renderSlot(_ctx.$slots, "operation")
|
|
169
|
-
]),
|
|
170
|
-
_ctx.$slots.operation ? (openBlock(), createElementBlock("div", _hoisted_2)) : createCommentVNode("v-if", true),
|
|
171
|
-
createElementVNode("section", _hoisted_3, [
|
|
172
|
-
createCommentVNode(" \u60A3\u8005\u4FE1\u606F\u533A\u63D2\u69FD "),
|
|
173
|
-
renderSlot(_ctx.$slots, "patientModule"),
|
|
174
|
-
createCommentVNode(" \u5934\u50CF\u533A\u63D2\u69FD "),
|
|
175
|
-
renderSlot(_ctx.$slots, "avatarModule", {}, () => [
|
|
176
|
-
!_ctx.$slots.avatarModule ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
177
|
-
createCommentVNode(" \u5934\u50CF\u63D2\u69FD "),
|
|
178
|
-
renderSlot(_ctx.$slots, "avatar", {}, () => [
|
|
179
|
-
createVNode(unref(NPopover), null, {
|
|
180
|
-
trigger: withCtx(() => [
|
|
181
|
-
createVNode(unref(NImage), mergeProps({
|
|
182
|
-
style: { "border-radius": "50%" },
|
|
183
|
-
width: 40,
|
|
184
|
-
height: 40,
|
|
185
|
-
"preview-disabled": "",
|
|
186
|
-
src: __props.patientInfo.avatar
|
|
187
|
-
}, __props.patientInfo.avatarProps), null, 16, ["src"])
|
|
188
|
-
]),
|
|
189
|
-
default: withCtx(() => [
|
|
190
|
-
createVNode(unref(NImage), mergeProps({
|
|
191
|
-
width: 200,
|
|
192
|
-
"preview-disabled": "",
|
|
193
|
-
src: __props.patientInfo.avatarPreview || __props.patientInfo.avatar
|
|
194
|
-
}, __props.patientInfo.avatarPreviewProps), null, 16, ["src"])
|
|
195
|
-
]),
|
|
196
|
-
_: 1
|
|
197
|
-
})
|
|
198
|
-
]),
|
|
199
|
-
createElementVNode("section", null, [
|
|
200
|
-
createElementVNode("header", _hoisted_4, [
|
|
201
|
-
__props.patientInfo.name ? (openBlock(), createElementBlock("div", _hoisted_5, toDisplayString(__props.patientInfo.name), 1)) : createCommentVNode("v-if", true),
|
|
202
|
-
__props.patientInfo.sex ? (openBlock(), createElementBlock("div", _hoisted_6, "/ " + toDisplayString(__props.patientInfo.sex), 1)) : createCommentVNode("v-if", true),
|
|
203
|
-
__props.patientInfo.age ? (openBlock(), createElementBlock("div", _hoisted_7, " / " + toDisplayString(__props.patientInfo.age) + toDisplayString(__props.patientInfo.ageUnit || "\u5C81"), 1)) : createCommentVNode("v-if", true),
|
|
204
|
-
createCommentVNode(" tag\u533A\u63D2\u69FD "),
|
|
205
|
-
renderSlot(_ctx.$slots, "tags", { tagList: unref(tagListExcludeEmpty) }, () => [
|
|
206
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.patientInfo.tagList || [], (tag) => {
|
|
207
|
-
return openBlock(), createBlock(unref(NTag), mergeProps({
|
|
208
|
-
key: tag.content,
|
|
209
|
-
size: "medium",
|
|
210
|
-
bordered: false,
|
|
211
|
-
color: getTagColor(tag)
|
|
212
|
-
}, tag), {
|
|
213
|
-
default: withCtx(() => [
|
|
214
|
-
tag.render ? (openBlock(), createBlock(resolveDynamicComponent(tag.render), { key: 0 })) : (openBlock(), createBlock(unref(NEllipsis), {
|
|
215
|
-
key: 1,
|
|
216
|
-
style: { "max-width": "96px" }
|
|
217
|
-
}, {
|
|
218
|
-
default: withCtx(() => [
|
|
219
|
-
createTextVNode(toDisplayString(tag.content), 1)
|
|
220
|
-
]),
|
|
221
|
-
_: 2
|
|
222
|
-
}, 1024))
|
|
223
|
-
]),
|
|
224
|
-
_: 2
|
|
225
|
-
}, 1040, ["color"]);
|
|
226
|
-
}), 128))
|
|
227
|
-
])
|
|
228
|
-
]),
|
|
229
|
-
createCommentVNode(" \u5934\u50CF\u4FE1\u606F\u533A\u63D2\u69FD "),
|
|
230
|
-
renderSlot(_ctx.$slots, "avatarInfo")
|
|
231
|
-
])
|
|
232
|
-
], 64)) : createCommentVNode("v-if", true)
|
|
233
|
-
])
|
|
234
|
-
]),
|
|
235
|
-
createElementVNode("section", {
|
|
236
|
-
class: "c-info-header__info",
|
|
237
|
-
ref_key: "infoRef",
|
|
238
|
-
ref: infoRef
|
|
239
|
-
}, [
|
|
240
|
-
createVNode(unref(NScrollbar), {
|
|
241
|
-
class: "c-info-header__infoWrapper",
|
|
242
|
-
style: normalizeStyle({ "--row-num": __props.compact ? 1 : 2 })
|
|
243
|
-
}, {
|
|
244
|
-
default: withCtx(() => [
|
|
245
|
-
createCommentVNode(" \u63CF\u8FF0\u4FE1\u606F\u533A\u63D2\u69FD "),
|
|
246
|
-
renderSlot(_ctx.$slots, "info", {}, () => [
|
|
247
|
-
_hoisted_8,
|
|
248
|
-
createVNode(unref(NDescriptions), {
|
|
249
|
-
"label-align": "right",
|
|
250
|
-
style: { width: "100%" },
|
|
251
|
-
"label-placement": "left",
|
|
252
|
-
separator: ":",
|
|
253
|
-
column: columnNum.value
|
|
254
|
-
}, {
|
|
255
|
-
default: withCtx(() => [
|
|
256
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.infoList, (item, index) => {
|
|
257
|
-
return openBlock(), createBlock(unref(NDescriptionsItem), {
|
|
258
|
-
key: item[__props.labelField],
|
|
259
|
-
label: item[__props.labelField]
|
|
260
|
-
}, {
|
|
261
|
-
default: withCtx(() => [
|
|
262
|
-
item.slot ? (openBlock(), createBlock(unref(script$1), {
|
|
263
|
-
key: 0,
|
|
264
|
-
renderer: item.slot,
|
|
265
|
-
"root-slots": _ctx.$slots,
|
|
266
|
-
item,
|
|
267
|
-
style: normalizeStyle(getDescriptionItemStyle(item)),
|
|
268
|
-
width: descriptionWidthList.value[index]
|
|
269
|
-
}, null, 8, ["renderer", "root-slots", "item", "style", "width"])) : needHidden(item) ? (openBlock(), createBlock(HiddenContent, {
|
|
270
|
-
key: 1,
|
|
271
|
-
content: item[__props.valueField],
|
|
272
|
-
tip: item.tip,
|
|
273
|
-
"content-style": getDescriptionItemStyle(item),
|
|
274
|
-
width: descriptionWidthList.value[index]
|
|
275
|
-
}, null, 8, ["content", "tip", "content-style", "width"])) : (openBlock(), createBlock(InfoEllipsis, {
|
|
276
|
-
key: 2,
|
|
277
|
-
"content-style": getEllipsisStyle(index, item),
|
|
278
|
-
content: item[__props.valueField],
|
|
279
|
-
tip: item.tip
|
|
280
|
-
}, null, 8, ["content-style", "content", "tip"]))
|
|
281
|
-
]),
|
|
282
|
-
_: 2
|
|
283
|
-
}, 1032, ["label"]);
|
|
284
|
-
}), 128))
|
|
285
|
-
]),
|
|
286
|
-
_: 1
|
|
287
|
-
}, 8, ["column"]),
|
|
288
|
-
_hoisted_9
|
|
289
|
-
])
|
|
290
|
-
]),
|
|
291
|
-
_: 3
|
|
292
|
-
}, 8, ["style"])
|
|
293
|
-
], 512),
|
|
294
|
-
createElementVNode("section", _hoisted_10, [
|
|
295
|
-
createCommentVNode(" \u8BBE\u7F6E\u533A\u63D2\u69FD "),
|
|
296
|
-
renderSlot(_ctx.$slots, "setting"),
|
|
297
|
-
!_ctx.$slots.setting ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(unref(settingIconList), (item) => {
|
|
298
|
-
return openBlock(), createElementBlock("div", {
|
|
299
|
-
key: item,
|
|
300
|
-
class: "c-info-header__settingIcon",
|
|
301
|
-
onClick: item.event
|
|
302
|
-
}, [
|
|
303
|
-
(openBlock(), createBlock(resolveDynamicComponent(item.render)))
|
|
304
|
-
], 8, _hoisted_11);
|
|
305
|
-
}), 128)) : createCommentVNode("v-if", true)
|
|
306
|
-
])
|
|
307
|
-
], 6);
|
|
308
|
-
};
|
|
309
|
-
}
|
|
310
|
-
});
|
|
311
|
-
var script = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "InfoHeader.vue"]]);
|
|
312
|
-
|
|
313
|
-
export { script as default };
|
|
1
|
+
import{defineComponent as e,computed as t,ref as n,nextTick as i,onMounted as o,watch as a,onBeforeUnmount as l,onDeactivated as r,onActivated as s,openBlock as c,createElementBlock as d,normalizeClass as f,normalizeStyle as u,createElementVNode as p,createCommentVNode as h,renderSlot as v,Fragment as m,createVNode as y,unref as g,withCtx as _,mergeProps as I,toDisplayString as w,renderList as b,createBlock as k,resolveDynamicComponent as x,createTextVNode as S,h as $}from"vue";import{isString as z,isArray as H}from"lodash-es";import{NPopover as W,NImage as F,NTag as j,NEllipsis as C,NScrollbar as L,NDescriptions as P,NDescriptionsItem as M}from"naive-ui";import{useThrottleFn as A,useEventListener as q}from"@vueuse/core";import R from"../../../shared/components/SlotRender/SlotRender.js";import N from"./InfoEllipsis.vue.js";import B from"./HiddenContent.vue.js";import E from"../../../_virtual/plugin-vue_export-helper.js";const O={class:"c-info-header__operation"},U={key:0,class:"c-info-header__divider"},D={class:"c-info-header__patient"},G={class:"c-info-header__patientHeader"},J={key:0,class:"c-info-header__patientHeader--name"},K={key:1,class:"c-info-header__patientHeader--sex"},Q={key:2,class:"c-info-header__patientHeader--age"},T=p("section",{style:{height:"10px"}},null,-1),V=p("section",{style:{height:"12px"}},null,-1),X={class:"c-info-header__setting"},Y=["onClick"];var Z=E(e({__name:"InfoHeader",props:{compact:{type:Boolean,required:!0},separator:{type:String,default:":"},patientInfo:{type:Object,default:()=>({})},infoList:{type:Array,required:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},minColumnWidth:{type:[String,Number],default:180},rowHeight:{type:[String,Number],default:32},settingIcons:{type:Array,default:()=>["patientInfo","fieldSet","compact"]}},emits:["openPatientInfo","fieldSet","update:compact"],setup(e,{expose:E,emit:Z}){const ee=e;const te={patientInfo:{event:function(){Z("openPatientInfo")},render:()=>[$("i",{class:"iconfont info-header--icon-a-menzhenyishengzhanxitongtubiaobianji"})]},fieldSet:{event:function(){Z("fieldSet")},render:()=>[$("i",{class:"iconfont info-header--icon-a-menzhenyishengzhanxitongtubiaoshezhi"})]},compact:{event:async function(){Z("update:compact",!ee.compact),await i(),await ue()},render:()=>[$("i",{class:"iconfont info-header--icon-a-menzhenyishengzhanxitongtubiaojiantouxia"})]}},ne=t((()=>ee.settingIcons.map((e=>(z(e)?te[e]:e)||{}))));function ie({type:e="warning"}){return{color:{warning:"#fcc200",info:"rgba(45, 122, 255, 0.1)"}[e],textColor:{warning:"#fff",info:"#2563F4"}[e]}}const oe=t((()=>ee.patientInfo&&H(ee.patientInfo.tagList)?ee.patientInfo.tagList.filter((e=>e.render||z(e.content)&&e.content)):[]));function ae({bold:e=!0,contentStyle:t={}}={}){return{fontWeight:e?700:500,...t}}function le(e,{bold:t=!0,contentStyle:n={}}={}){const i=fe.value[e]+"px";return{width:i,maxWidth:i,fontWeight:t?700:500,...n}}function re(e){return["电话","身份证"].some((t=>{var n,i;return null==(i=null==(n=e[ee.labelField])?void 0:n.includes)?void 0:i.call(n,t)}))}const se=n(),ce=n(3),de=n(0),fe=n([]),ue=A((async function(){await i();const e=se.value;if(!e)return;const{clientWidth:t}=e;ce.value=Math.floor(t/+ee.minColumnWidth),de.value=Math.floor(t/ce.value),await i();const n=e.querySelectorAll(".n-descriptions-table-content__label");n&&(fe.value=Array.from(n).map((e=>de.value-e.clientWidth-8)))}),200,!0,!1);let pe;function he(){clearInterval(pe)}function ve(){he(),pe=setInterval(ue,700)}return o(ue),a([()=>ee.minColumnWidth,()=>ee.infoList],ue,{flush:"post",deep:!0}),E({update:ue}),q(window,"resize",ue),l(he),r(he),s(ve),o(ve),(t,n)=>(c(),d("div",{class:f(["c-info-header",{"is-compact":e.compact}]),style:u({"--row-height":e.rowHeight,"--column-width":de.value})},[p("section",O,[h(" 操作区插槽 "),v(t.$slots,"operation")]),t.$slots.operation?(c(),d("div",U)):h("v-if",!0),p("section",D,[h(" 患者信息区插槽 "),v(t.$slots,"patientModule"),h(" 头像区插槽 "),v(t.$slots,"avatarModule",{},(()=>[t.$slots.avatarModule?h("v-if",!0):(c(),d(m,{key:0},[h(" 头像插槽 "),v(t.$slots,"avatar",{},(()=>[y(g(W),null,{trigger:_((()=>[y(g(F),I({style:{"border-radius":"50%"},width:40,height:40,"preview-disabled":"",src:e.patientInfo.avatar},e.patientInfo.avatarProps),null,16,["src"])])),default:_((()=>[y(g(F),I({width:200,"preview-disabled":"",src:e.patientInfo.avatarPreview||e.patientInfo.avatar},e.patientInfo.avatarPreviewProps),null,16,["src"])])),_:1})])),p("section",null,[p("header",G,[e.patientInfo.name?(c(),d("div",J,w(e.patientInfo.name),1)):h("v-if",!0),e.patientInfo.sex?(c(),d("div",K,"/ "+w(e.patientInfo.sex),1)):h("v-if",!0),e.patientInfo.age?(c(),d("div",Q," / "+w(e.patientInfo.age)+w(e.patientInfo.ageUnit||"岁"),1)):h("v-if",!0),h(" tag区插槽 "),v(t.$slots,"tags",{tagList:g(oe)},(()=>[(c(!0),d(m,null,b(e.patientInfo.tagList||[],(e=>(c(),k(g(j),I({key:e.content,size:"medium",bordered:!1,color:ie(e)},e),{default:_((()=>[e.render?(c(),k(x(e.render),{key:0})):(c(),k(g(C),{key:1,style:{"max-width":"96px"}},{default:_((()=>[S(w(e.content),1)])),_:2},1024))])),_:2},1040,["color"])))),128))]))]),h(" 头像信息区插槽 "),v(t.$slots,"avatarInfo")])],64))]))]),p("section",{class:"c-info-header__info",ref_key:"infoRef",ref:se},[y(g(L),{class:"c-info-header__infoWrapper",style:u({"--row-num":e.compact?1:2})},{default:_((()=>[h(" 描述信息区插槽 "),v(t.$slots,"info",{},(()=>[T,y(g(P),{"label-align":"right",style:{width:"100%"},"label-placement":"left",separator:":",column:ce.value},{default:_((()=>[(c(!0),d(m,null,b(e.infoList,((n,i)=>(c(),k(g(M),{key:n[e.labelField],label:n[e.labelField]},{default:_((()=>[n.slot?(c(),k(g(R),{key:0,renderer:n.slot,"root-slots":t.$slots,item:n,style:u(ae(n)),width:fe.value[i]},null,8,["renderer","root-slots","item","style","width"])):re(n)?(c(),k(B,{key:1,content:n[e.valueField],tip:n.tip,"content-style":ae(n),width:fe.value[i]},null,8,["content","tip","content-style","width"])):(c(),k(N,{key:2,"content-style":le(i,n),content:n[e.valueField],tip:n.tip},null,8,["content-style","content","tip"]))])),_:2},1032,["label"])))),128))])),_:1},8,["column"]),V]))])),_:3},8,["style"])],512),p("section",X,[h(" 设置区插槽 "),v(t.$slots,"setting"),t.$slots.setting?h("v-if",!0):(c(!0),d(m,{key:0},b(g(ne),(e=>(c(),d("div",{key:e,class:"c-info-header__settingIcon",onClick:e.event},[(c(),k(x(e.render)))],8,Y)))),128))])],6))}}),[["__file","InfoHeader.vue"]]);export{Z as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{Insurance}from"./src/utils/insurance.js";
|