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
|
@@ -1,432 +1 @@
|
|
|
1
|
-
import axios from
|
|
2
|
-
import { isArray } from 'lodash-es';
|
|
3
|
-
import { IdentityVerificationDialog, PreviewDialog } from './dialog.js';
|
|
4
|
-
import { isIReport, useBrowserPrint } from './browserPrint.js';
|
|
5
|
-
import { getCurrentInstance } from 'vue';
|
|
6
|
-
|
|
7
|
-
const PRINT_ORIGIN = "http://127.0.0.1:11111";
|
|
8
|
-
const EDIT_LOCAL_URL = `${PRINT_ORIGIN}/services/print`;
|
|
9
|
-
const PRINT_URL = `${PRINT_ORIGIN}/PrintLocal`;
|
|
10
|
-
const PDF_URL = `${PRINT_ORIGIN}/download`;
|
|
11
|
-
const PRINT_CMD_ID = "7";
|
|
12
|
-
const PREVIEW_CMD_ID = "8";
|
|
13
|
-
const PRINTER_NAME_DEFAULT = "Default";
|
|
14
|
-
const testHttpFn = axios.create({
|
|
15
|
-
timeout: 1e3,
|
|
16
|
-
withCredentials: false
|
|
17
|
-
});
|
|
18
|
-
const httpFn = axios.create({
|
|
19
|
-
withCredentials: false
|
|
20
|
-
});
|
|
21
|
-
const PROTOCOL = window.location.protocol;
|
|
22
|
-
const HOST = window.location.host;
|
|
23
|
-
const PRINTIREPORT = `${PROTOCOL}//${HOST}/fdp-api/print/assembly/printIReport`;
|
|
24
|
-
const ERRORMSG = "\u83B7\u53D6\u6587\u4EF6\u5931\u8D25\uFF01";
|
|
25
|
-
let printInstance = null;
|
|
26
|
-
class Print {
|
|
27
|
-
constructor() {
|
|
28
|
-
this.webview = null;
|
|
29
|
-
this.dialog = new IdentityVerificationDialog();
|
|
30
|
-
this.dialogPreview = new PreviewDialog();
|
|
31
|
-
this.instance = null;
|
|
32
|
-
this.downloadPath = "";
|
|
33
|
-
this.messageHandlerQueue = [];
|
|
34
|
-
var _a;
|
|
35
|
-
if (printInstance)
|
|
36
|
-
return printInstance;
|
|
37
|
-
printInstance = this;
|
|
38
|
-
const _window = window;
|
|
39
|
-
this.webview = (_a = _window.chrome) == null ? void 0 : _a.webview;
|
|
40
|
-
if (!this.webview)
|
|
41
|
-
return;
|
|
42
|
-
this.currentMessageHandler = this.messageHandler.bind(this);
|
|
43
|
-
this.webview.addEventListener("message", this.currentMessageHandler);
|
|
44
|
-
this.postMessage({ exec: "config", data: "" });
|
|
45
|
-
}
|
|
46
|
-
messageHandler(e) {
|
|
47
|
-
var _a;
|
|
48
|
-
const handler = this.messageHandlerQueue.shift();
|
|
49
|
-
if (!handler)
|
|
50
|
-
return console.log("\u5F53\u524D\u56DE\u6267", e, "\u6CA1\u6709\u53EF\u7528\u7684handler");
|
|
51
|
-
const { resolve, reject } = handler;
|
|
52
|
-
try {
|
|
53
|
-
const { exec } = JSON.parse(e.data);
|
|
54
|
-
if (exec === "config") {
|
|
55
|
-
this.downloadPath = ((_a = JSON.parse(e.data).res) == null ? void 0 : _a.downloadpath) || "";
|
|
56
|
-
}
|
|
57
|
-
console.log(e);
|
|
58
|
-
resolve(JSON.parse(e.data).res);
|
|
59
|
-
} catch (e2) {
|
|
60
|
-
reject(e2);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
async postMessage(data) {
|
|
64
|
-
if (!this.webview)
|
|
65
|
-
return Promise.reject();
|
|
66
|
-
return new Promise((resolve, reject) => {
|
|
67
|
-
this.messageHandlerQueue.push({ resolve, reject });
|
|
68
|
-
this.webview.postMessage(data);
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
destroy() {
|
|
72
|
-
if (this.webview && this.currentMessageHandler) {
|
|
73
|
-
this.webview.removeEventListener("message", this.currentMessageHandler);
|
|
74
|
-
this.currentMessageHandler = void 0;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
show(...args) {
|
|
78
|
-
return this.dialog.show(...args);
|
|
79
|
-
}
|
|
80
|
-
showPreview(...args) {
|
|
81
|
-
return this.dialogPreview.show(...args);
|
|
82
|
-
}
|
|
83
|
-
_testConnection() {
|
|
84
|
-
if (this.webview)
|
|
85
|
-
return Promise.resolve(true);
|
|
86
|
-
return new Promise((resolve) => {
|
|
87
|
-
testHttpFn({
|
|
88
|
-
url: `${PRINT_ORIGIN}/test`,
|
|
89
|
-
method: "get",
|
|
90
|
-
withCredentials: false,
|
|
91
|
-
params: {
|
|
92
|
-
inputdata: {
|
|
93
|
-
result: "success"
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
}).then(({ data }) => {
|
|
97
|
-
if (data.result !== "success") {
|
|
98
|
-
resolve(false);
|
|
99
|
-
return;
|
|
100
|
-
}
|
|
101
|
-
resolve(true);
|
|
102
|
-
}).catch((err) => {
|
|
103
|
-
resolve(false);
|
|
104
|
-
});
|
|
105
|
-
});
|
|
106
|
-
}
|
|
107
|
-
_queryServicesPrint(params) {
|
|
108
|
-
if (this.webview) {
|
|
109
|
-
return this.postMessage({ exec: "print", data: { inputData: params } });
|
|
110
|
-
}
|
|
111
|
-
return httpFn({
|
|
112
|
-
url: EDIT_LOCAL_URL,
|
|
113
|
-
method: "get",
|
|
114
|
-
params: {
|
|
115
|
-
inputData: JSON.stringify(params)
|
|
116
|
-
}
|
|
117
|
-
}).then(({ data }) => {
|
|
118
|
-
return data;
|
|
119
|
-
});
|
|
120
|
-
}
|
|
121
|
-
_callPrintWithFile(queryParams) {
|
|
122
|
-
const defaultQueryParams = {
|
|
123
|
-
cmdid: PRINT_CMD_ID,
|
|
124
|
-
flag: "1"
|
|
125
|
-
};
|
|
126
|
-
const params = {
|
|
127
|
-
inputData: JSON.stringify(Object.assign({}, defaultQueryParams, queryParams))
|
|
128
|
-
};
|
|
129
|
-
if (this.webview) {
|
|
130
|
-
return this.postMessage({ exec: "print", data: transformData(params) });
|
|
131
|
-
}
|
|
132
|
-
return httpFn({
|
|
133
|
-
url: PRINT_URL,
|
|
134
|
-
method: "post",
|
|
135
|
-
data: params,
|
|
136
|
-
transformRequest: [transformData]
|
|
137
|
-
}).then(({ data }) => {
|
|
138
|
-
return data;
|
|
139
|
-
});
|
|
140
|
-
function transformData(oldData) {
|
|
141
|
-
let newStr = "";
|
|
142
|
-
for (const item in oldData) {
|
|
143
|
-
newStr += encodeURIComponent(item) + "=" + encodeURIComponent(oldData[item]) + "&";
|
|
144
|
-
}
|
|
145
|
-
newStr = newStr.slice(0, -1);
|
|
146
|
-
return newStr;
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
_handleResult(data, errorCallbackFn) {
|
|
150
|
-
if (data.result !== "success") {
|
|
151
|
-
const message = data.message || data.Message;
|
|
152
|
-
const errorMsgObj = {
|
|
153
|
-
type: "printError",
|
|
154
|
-
message,
|
|
155
|
-
result: data.result,
|
|
156
|
-
errinfo: data.errinfo
|
|
157
|
-
};
|
|
158
|
-
errorCallbackFn == null ? void 0 : errorCallbackFn(errorMsgObj);
|
|
159
|
-
return false;
|
|
160
|
-
}
|
|
161
|
-
return data;
|
|
162
|
-
}
|
|
163
|
-
_handleResultTest(result, errorCallbackFn) {
|
|
164
|
-
if (!result) {
|
|
165
|
-
console.log("notInstalledApp");
|
|
166
|
-
errorCallbackFn == null ? void 0 : errorCallbackFn({
|
|
167
|
-
type: "notInstalledApp",
|
|
168
|
-
message: "\u8BF7\u6253\u5F00\u6253\u5370\u670D\u52A1\u5668\u63D2\u4EF6"
|
|
169
|
-
});
|
|
170
|
-
return false;
|
|
171
|
-
}
|
|
172
|
-
return true;
|
|
173
|
-
}
|
|
174
|
-
async _handleEventQueryPrintData(templateId, formatId, params, errorCallbackFn) {
|
|
175
|
-
const queryParams = {
|
|
176
|
-
templateId,
|
|
177
|
-
formatId,
|
|
178
|
-
params,
|
|
179
|
-
cmdid: PRINT_CMD_ID
|
|
180
|
-
};
|
|
181
|
-
const printData = await this._queryServicesPrint(queryParams);
|
|
182
|
-
return this._handleQueryPrintDataResult(printData, formatId, errorCallbackFn);
|
|
183
|
-
}
|
|
184
|
-
_handleQueryPrintDataResult(printData, formatId, errorCallbackFn) {
|
|
185
|
-
if (!(printData == null ? void 0 : printData.file)) {
|
|
186
|
-
try {
|
|
187
|
-
const message = printData.message || printData.Message;
|
|
188
|
-
console.log(message);
|
|
189
|
-
errorCallbackFn == null ? void 0 : errorCallbackFn({
|
|
190
|
-
type: "queryPrintDataFailure",
|
|
191
|
-
message
|
|
192
|
-
});
|
|
193
|
-
} catch (err) {
|
|
194
|
-
console.log(err);
|
|
195
|
-
}
|
|
196
|
-
return false;
|
|
197
|
-
}
|
|
198
|
-
return {
|
|
199
|
-
file: printData.file,
|
|
200
|
-
printerName: printData.defprinter,
|
|
201
|
-
pageCount: printData.pagecount,
|
|
202
|
-
formatId
|
|
203
|
-
};
|
|
204
|
-
}
|
|
205
|
-
async _handleEventDirect({
|
|
206
|
-
templateId,
|
|
207
|
-
formatId,
|
|
208
|
-
params,
|
|
209
|
-
cmdid,
|
|
210
|
-
print,
|
|
211
|
-
printdlgshow = "1",
|
|
212
|
-
nobillnode = "1",
|
|
213
|
-
btnprint = "1"
|
|
214
|
-
}) {
|
|
215
|
-
const queryParams = {
|
|
216
|
-
templateId,
|
|
217
|
-
formatId,
|
|
218
|
-
params,
|
|
219
|
-
cmdid,
|
|
220
|
-
nobillnode,
|
|
221
|
-
printdlgshow,
|
|
222
|
-
btnprint
|
|
223
|
-
};
|
|
224
|
-
if (print) {
|
|
225
|
-
try {
|
|
226
|
-
print = JSON.parse(print);
|
|
227
|
-
} catch (error) {
|
|
228
|
-
}
|
|
229
|
-
queryParams.print = print;
|
|
230
|
-
}
|
|
231
|
-
return await this._queryServicesPrint(queryParams);
|
|
232
|
-
}
|
|
233
|
-
async _handleEventEditFormat({ templateId, formatId = "", params = "", token }) {
|
|
234
|
-
const DEFAULT_PARAMS = {};
|
|
235
|
-
let formatParams = {};
|
|
236
|
-
try {
|
|
237
|
-
formatParams = Object.assign({}, DEFAULT_PARAMS, JSON.parse(params));
|
|
238
|
-
} catch (error) {
|
|
239
|
-
formatParams = DEFAULT_PARAMS;
|
|
240
|
-
}
|
|
241
|
-
const queryParams = {
|
|
242
|
-
templateId,
|
|
243
|
-
formatId,
|
|
244
|
-
cmdid: "9",
|
|
245
|
-
token,
|
|
246
|
-
params: JSON.stringify(formatParams)
|
|
247
|
-
};
|
|
248
|
-
return await this._queryServicesPrint(queryParams);
|
|
249
|
-
}
|
|
250
|
-
async _queryPrintFile(formatId, params = "") {
|
|
251
|
-
const { data } = await httpFn({
|
|
252
|
-
method: "post",
|
|
253
|
-
url: PRINTIREPORT,
|
|
254
|
-
responseType: "blob",
|
|
255
|
-
params: {
|
|
256
|
-
formatId: formatId.split("_")[1],
|
|
257
|
-
params
|
|
258
|
-
}
|
|
259
|
-
}) || {};
|
|
260
|
-
return data;
|
|
261
|
-
}
|
|
262
|
-
async preview({ templateId, formatId, params = "", btnprint }, successCallbackFn, errorCallbackFn) {
|
|
263
|
-
if (isIReport(formatId)) {
|
|
264
|
-
const data = await this._queryPrintFile(formatId, params);
|
|
265
|
-
if (!data)
|
|
266
|
-
return errorCallbackFn == null ? void 0 : errorCallbackFn(ERRORMSG);
|
|
267
|
-
const src = useBrowserPrint(data, "preview");
|
|
268
|
-
if (!this.instance)
|
|
269
|
-
this.instance = getCurrentInstance();
|
|
270
|
-
this.showPreview(this.instance, src);
|
|
271
|
-
successCallbackFn == null ? void 0 : successCallbackFn({ file: data });
|
|
272
|
-
return;
|
|
273
|
-
}
|
|
274
|
-
const testResult = await this._testConnection();
|
|
275
|
-
if (!this._handleResultTest(testResult, errorCallbackFn))
|
|
276
|
-
return false;
|
|
277
|
-
const result = await this._handleEventDirect({
|
|
278
|
-
templateId,
|
|
279
|
-
formatId,
|
|
280
|
-
params,
|
|
281
|
-
cmdid: PREVIEW_CMD_ID,
|
|
282
|
-
btnprint
|
|
283
|
-
});
|
|
284
|
-
if (!result)
|
|
285
|
-
return false;
|
|
286
|
-
const handledResult = this._handleResult(result, errorCallbackFn);
|
|
287
|
-
if (!handledResult)
|
|
288
|
-
return false;
|
|
289
|
-
successCallbackFn && successCallbackFn(handledResult);
|
|
290
|
-
}
|
|
291
|
-
async printDirect({ templateId, formatId, params = "", print, printdlgshow, nobillnode }, successCallbackFn, errorCallbackFn, mode = "printDirect") {
|
|
292
|
-
if (isIReport(formatId)) {
|
|
293
|
-
const data = await this._queryPrintFile(formatId, params);
|
|
294
|
-
if (!data)
|
|
295
|
-
return errorCallbackFn == null ? void 0 : errorCallbackFn(ERRORMSG);
|
|
296
|
-
useBrowserPrint(data, mode);
|
|
297
|
-
successCallbackFn == null ? void 0 : successCallbackFn({ file: data });
|
|
298
|
-
return;
|
|
299
|
-
}
|
|
300
|
-
const testResult = await this._testConnection();
|
|
301
|
-
if (!this._handleResultTest(testResult, errorCallbackFn))
|
|
302
|
-
return false;
|
|
303
|
-
const result = await this._handleEventDirect({
|
|
304
|
-
templateId,
|
|
305
|
-
formatId,
|
|
306
|
-
params,
|
|
307
|
-
cmdid: PRINT_CMD_ID,
|
|
308
|
-
print,
|
|
309
|
-
printdlgshow,
|
|
310
|
-
nobillnode
|
|
311
|
-
});
|
|
312
|
-
if (!result)
|
|
313
|
-
return false;
|
|
314
|
-
const handledResult = this._handleResult(result, errorCallbackFn);
|
|
315
|
-
if (!handledResult)
|
|
316
|
-
return false;
|
|
317
|
-
successCallbackFn && successCallbackFn(handledResult);
|
|
318
|
-
}
|
|
319
|
-
_downloadPDF(inputData) {
|
|
320
|
-
if (this.webview) {
|
|
321
|
-
return this.postMessage({ exec: "pdf", data: { file: inputData } });
|
|
322
|
-
}
|
|
323
|
-
return httpFn.get(PDF_URL, { params: { inputData } }).then(({ data }) => data);
|
|
324
|
-
}
|
|
325
|
-
downloadPDF(params, onResolve, onReject) {
|
|
326
|
-
if (this.webview && this.downloadPath) {
|
|
327
|
-
params.print.filename = this.downloadPath.replace(/\\/g, "/");
|
|
328
|
-
}
|
|
329
|
-
this.printDirect(
|
|
330
|
-
params,
|
|
331
|
-
async (res) => {
|
|
332
|
-
if (!res)
|
|
333
|
-
onReject(null);
|
|
334
|
-
if (isIReport(params.formatId))
|
|
335
|
-
return onResolve(res);
|
|
336
|
-
const _this = this;
|
|
337
|
-
const result = await getFiledir(res.filedir);
|
|
338
|
-
onResolve(result);
|
|
339
|
-
async function getFiledir(filedir) {
|
|
340
|
-
const _result = [];
|
|
341
|
-
const result2 = JSON.parse(filedir);
|
|
342
|
-
if (!isArray(result2))
|
|
343
|
-
return await _this._downloadPDF("");
|
|
344
|
-
if (result2.length === 1)
|
|
345
|
-
return await _this._downloadPDF(result2[0] || "");
|
|
346
|
-
for (let i = 0, len = result2.length; i < len; i++) {
|
|
347
|
-
_result.push(await _this._downloadPDF(result2[i] || ""));
|
|
348
|
-
}
|
|
349
|
-
return _result;
|
|
350
|
-
}
|
|
351
|
-
},
|
|
352
|
-
(err) => onReject(err),
|
|
353
|
-
"downloadPDF"
|
|
354
|
-
);
|
|
355
|
-
}
|
|
356
|
-
async print({ templateId, formatId, params = "" }, successCallbackFn, errorCallbackFn) {
|
|
357
|
-
const testResult = await this._testConnection();
|
|
358
|
-
if (!this._handleResultTest(testResult, errorCallbackFn))
|
|
359
|
-
return false;
|
|
360
|
-
const printData = await this.queryPrintData({ templateId, formatId, params }, void 0, errorCallbackFn);
|
|
361
|
-
if (!printData)
|
|
362
|
-
return false;
|
|
363
|
-
const handledResult = this.printFileData(
|
|
364
|
-
{
|
|
365
|
-
formatId,
|
|
366
|
-
file: printData.file,
|
|
367
|
-
printerName: printData.printerName
|
|
368
|
-
},
|
|
369
|
-
void 0,
|
|
370
|
-
errorCallbackFn
|
|
371
|
-
);
|
|
372
|
-
if (!handledResult)
|
|
373
|
-
return false;
|
|
374
|
-
successCallbackFn && successCallbackFn(handledResult);
|
|
375
|
-
}
|
|
376
|
-
async queryPrintData({ templateId, formatId, params = "" }, successCallbackFn, errorCallbackFn) {
|
|
377
|
-
const testResult = await this._testConnection();
|
|
378
|
-
if (!this._handleResultTest(testResult, errorCallbackFn))
|
|
379
|
-
return false;
|
|
380
|
-
const result = await this._handleEventQueryPrintData(templateId, formatId, params, errorCallbackFn);
|
|
381
|
-
if (!result)
|
|
382
|
-
return false;
|
|
383
|
-
successCallbackFn && successCallbackFn(result);
|
|
384
|
-
return result;
|
|
385
|
-
}
|
|
386
|
-
async printFileData({ formatId, file, printerName = PRINTER_NAME_DEFAULT }, successCallbackFn, errorCallbackFn) {
|
|
387
|
-
const testResult = await this._testConnection();
|
|
388
|
-
if (!this._handleResultTest(testResult, errorCallbackFn))
|
|
389
|
-
return false;
|
|
390
|
-
const result = await this._callPrintWithFile({
|
|
391
|
-
formatId,
|
|
392
|
-
printname: printerName,
|
|
393
|
-
file
|
|
394
|
-
});
|
|
395
|
-
const handledResult = this._handleResult(result, errorCallbackFn);
|
|
396
|
-
if (!handledResult)
|
|
397
|
-
return false;
|
|
398
|
-
successCallbackFn && successCallbackFn(handledResult);
|
|
399
|
-
return handledResult;
|
|
400
|
-
}
|
|
401
|
-
async editPrintFormat({ templateId, formatId, params, token }, successCallbackFn, errorCallbackFn) {
|
|
402
|
-
const testResult = await this._testConnection();
|
|
403
|
-
if (!this._handleResultTest(testResult, errorCallbackFn))
|
|
404
|
-
return false;
|
|
405
|
-
const result = await this._handleEventEditFormat({
|
|
406
|
-
templateId,
|
|
407
|
-
formatId,
|
|
408
|
-
params,
|
|
409
|
-
token
|
|
410
|
-
});
|
|
411
|
-
const handledResult = this._handleResult(result, errorCallbackFn);
|
|
412
|
-
if (!handledResult)
|
|
413
|
-
return false;
|
|
414
|
-
successCallbackFn && successCallbackFn(handledResult);
|
|
415
|
-
}
|
|
416
|
-
async addPrintFormat({ templateId, params, token }, successCallbackFn, errorCallbackFn) {
|
|
417
|
-
const testResult = await this._testConnection();
|
|
418
|
-
if (!this._handleResultTest(testResult, errorCallbackFn))
|
|
419
|
-
return false;
|
|
420
|
-
const result = await this._handleEventEditFormat({
|
|
421
|
-
templateId,
|
|
422
|
-
params,
|
|
423
|
-
token
|
|
424
|
-
});
|
|
425
|
-
const handledResult = this._handleResult(result, errorCallbackFn);
|
|
426
|
-
if (!handledResult)
|
|
427
|
-
return false;
|
|
428
|
-
successCallbackFn && successCallbackFn(handledResult);
|
|
429
|
-
}
|
|
430
|
-
}
|
|
431
|
-
|
|
432
|
-
export { Print };
|
|
1
|
+
import t from"axios";import{isArray as e}from"lodash-es";import{IdentityVerificationDialog as i,PreviewDialog as n}from"./dialog.js";import{getFileUrl as r,useBrowserPrint as s,isIReport as a}from"./browserPrint.js";import{getCurrentInstance as o}from"vue";const l=t.create({timeout:1e3,withCredentials:!1}),d=t.create({withCredentials:!1}),h=`${window.location.protocol}//${window.location.host}`,c=`${h}/fdp-api/print/assembly/printIReport`,p=`${h}/bi-api/reprot/print/open/client/getRemote`,u=`${h}/printService/file`;let m=null;class w{constructor(){var t;if(this.webview=null,this.dialog=new i,this.dialogPreview=new n,this.instance=null,this.downloadPath="",this.printOrigin="http://127.0.0.1:11111",this.isRemote=!1,this.messageHandlerQueue=[],m)return m;m=this;const e=window;this.webview=null==(t=e.chrome)?void 0:t.webview,this.webview&&(this.currentMessageHandler=this.messageHandler.bind(this),this.webview.addEventListener("message",this.currentMessageHandler),this.postMessage({exec:"config",data:""}))}messageHandler(t){var e;const i=this.messageHandlerQueue.shift();if(!i)return console.log("当前回执",t,"没有可用的handler");const{resolve:n,reject:r}=i;try{const{exec:i}=JSON.parse(t.data);"config"===i&&(this.downloadPath=(null==(e=JSON.parse(t.data).res)?void 0:e.downloadpath)||""),console.log(t),n(JSON.parse(t.data).res)}catch(t){r(t)}}async postMessage(t){return this.webview?new Promise(((e,i)=>{this.messageHandlerQueue.push({resolve:e,reject:i}),this.webview.postMessage(t)})):Promise.reject()}destroy(){this.webview&&this.currentMessageHandler&&(this.webview.removeEventListener("message",this.currentMessageHandler),this.currentMessageHandler=void 0)}show(...t){return this.dialog.show(...t)}showPreview(...t){return this.dialogPreview.show(...t)}_testConnection(){return this.webview?Promise.resolve(!0):new Promise((t=>{l({url:`${this.printOrigin}/test`,method:"get",withCredentials:!1,params:{inputdata:{result:"success"}}}).then((({data:e})=>{"success"===e.result?t(!0):t(!1)})).catch((e=>{t(!1)}))}))}_queryServicesPrint(t){return this.webview?this.postMessage({exec:"print",data:{inputData:t}}):d({url:this.printOrigin+"/services/print",method:"get",params:{inputData:JSON.stringify(t)}}).then((({data:t})=>t))}_callPrintWithFile(t){const e={cmdid:"7",flag:"1"},i={inputData:JSON.stringify(Object.assign({},e,t))};return this.webview?this.postMessage({exec:"print",data:n(i)}):d({url:this.printOrigin+"/PrintLocal",method:"post",data:i,transformRequest:[n]}).then((({data:t})=>t));function n(t){let e="";for(const i in t)e+=encodeURIComponent(i)+"="+encodeURIComponent(t[i])+"&";return e=e.slice(0,-1),e}}_handleResult(t,e){if("success"!==t.result){const i={type:"printError",message:t.message||t.Message,result:t.result,errinfo:t.errinfo};return null==e||e(i),!1}return t}_handleResultTest(t,e){return!!t||(console.log("notInstalledApp"),null==e||e({type:"notInstalledApp",message:"请打开打印服务器插件"}),!1)}async _handleEventQueryPrintData(t,e,i,n){const r={templateId:t,formatId:e,params:i,cmdid:"7"},s=await this._queryServicesPrint(r);return this._handleQueryPrintDataResult(s,e,n)}_handleQueryPrintDataResult(t,e,i){if(!(null==t?void 0:t.file)){try{const e=t.message||t.Message;console.log(e),null==i||i({type:"queryPrintDataFailure",message:e})}catch(t){console.log(t)}return!1}return{file:t.file,printerName:t.defprinter,pageCount:t.pagecount,formatId:e}}async _handleEventDirect({templateId:t,formatId:e,params:i,cmdid:n,print:r,printdlgshow:s="1",nobillnode:a="1",btnprint:o="1"}){const l={templateId:t,formatId:e,params:i,cmdid:n,nobillnode:a,printdlgshow:s,btnprint:o};if(r){try{r=JSON.parse(r)}catch(t){}l.print=r}return await this._queryServicesPrint(l)}async _handleEventEditFormat({templateId:t,formatId:e="",params:i="",token:n}){const r={};let s={};try{s=Object.assign({},r,JSON.parse(i))}catch(t){s=r}const a={templateId:t,formatId:e,cmdid:"9",token:n,params:JSON.stringify(s)};return await this._queryServicesPrint(a)}async _queryProxyOrigin(){if(this.isRemote)return;const{data:t}=await d({method:"get",url:p})||{},{map:e={}}=t;e.isRemote&&(this.printOrigin=h+"/printService",this.isRemote=!0)}async _queryPrintFile(t,e=""){const{data:i}=await d({method:"post",url:c,responseType:"blob",params:{formatId:t.split("_")[1],params:e}})||{};return i}async _browserPrint(t,e){if(this.isRemote){const{filedir:i}=t,n=JSON.parse(i)[0].replace(/\\/g,"/").split("/"),a=n[n.length-1],o=await r(`${u}/${a}`),l=s(null,e,o);if("preview"===e)return l}}async preview({templateId:t,formatId:e,params:i="",btnprint:n,print:r},l,d){if(a(e)){const t=await this._queryPrintFile(e,i);if(!t)return null==d?void 0:d("获取文件失败!");const n=s(t,"preview");return this.instance||(this.instance=o()),this.showPreview(this.instance,n),void(null==l||l({file:t}))}await this._queryProxyOrigin();const h=await this._testConnection();if(!this._handleResultTest(h,d))return!1;const c=await this._handleEventDirect({templateId:t,formatId:e,params:i,cmdid:this.isRemote?"7":"8",btnprint:n,...this.isRemote?{print:r}:{}});if(!c)return!1;const p=this._handleResult(c,d);if(!p)return!1;const u=await this._browserPrint(p,"preview");this.instance||(this.instance=o()),this.showPreview(this.instance,u),l&&l(p)}async printDirect({templateId:t,formatId:e,params:i="",print:n,printdlgshow:r,nobillnode:o},l,d,h="printDirect"){if(a(e)){const t=await this._queryPrintFile(e,i);return t?(s(t,h),void(null==l||l({file:t}))):null==d?void 0:d("获取文件失败!")}await this._queryProxyOrigin();const c=await this._testConnection();if(!this._handleResultTest(c,d))return!1;const p=await this._handleEventDirect({templateId:t,formatId:e,params:i,cmdid:"7",print:n,printdlgshow:r,nobillnode:o});if(!p)return!1;const u=this._handleResult(p,d);if(!u)return!1;await this._browserPrint(u,h),l&&l(u)}_downloadPDF(t){return this.webview?this.postMessage({exec:"pdf",data:{file:t}}):d.get(this.printOrigin+"/download",{params:{inputData:t}}).then((({data:t})=>t))}downloadPDF(t,i,n){this.webview&&this.downloadPath&&(t.print.filename=this.downloadPath.replace(/\\/g,"/")),this.printDirect(t,(async r=>{if(r||n(null),a(t.formatId))return i(r);const s=this,o=await async function(t){const i=[],n=JSON.parse(t);if(!e(n))return await s._downloadPDF("");if(1===n.length)return await s._downloadPDF(n[0]||"");for(let t=0,e=n.length;t<e;t++)i.push(await s._downloadPDF(n[t]||""));return i}(r.filedir);i(o)}),(t=>n(t)),"downloadPDF")}async print({templateId:t,formatId:e,params:i=""},n,r){const s=await this._testConnection();if(!this._handleResultTest(s,r))return!1;const a=await this.queryPrintData({templateId:t,formatId:e,params:i},void 0,r);if(!a)return!1;const o=this.printFileData({formatId:e,file:a.file,printerName:a.printerName},void 0,r);if(!o)return!1;n&&n(o)}async queryPrintData({templateId:t,formatId:e,params:i=""},n,r){const s=await this._testConnection();if(!this._handleResultTest(s,r))return!1;const a=await this._handleEventQueryPrintData(t,e,i,r);return!!a&&(n&&n(a),a)}async printFileData({formatId:t,file:e,printerName:i="Default"},n,r){const s=await this._testConnection();if(!this._handleResultTest(s,r))return!1;const a=await this._callPrintWithFile({formatId:t,printname:i,file:e}),o=this._handleResult(a,r);return!!o&&(n&&n(o),o)}async editPrintFormat({templateId:t,formatId:e,params:i,token:n},r,s){const a=await this._testConnection();if(!this._handleResultTest(a,s))return!1;const o=await this._handleEventEditFormat({templateId:t,formatId:e,params:i,token:n}),l=this._handleResult(o,s);if(!l)return!1;r&&r(l)}async addPrintFormat({templateId:t,params:e,token:i},n,r){const s=await this._testConnection();if(!this._handleResultTest(s,r))return!1;const a=await this._handleEventEditFormat({templateId:t,params:e,token:i}),o=this._handleResult(a,r);if(!o)return!1;n&&n(o)}}export{w as Print};
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { safeComponentRegister } from '../../shared/utils/index.js';
|
|
3
|
-
import script from './src/Editor.js';
|
|
4
|
-
|
|
5
|
-
const Editor = script;
|
|
6
|
-
Editor.install = function(app) {
|
|
7
|
-
safeComponentRegister(app, Editor, COMPONENT_NAMESPACE + "Editor");
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
export { Editor as default };
|
|
1
|
+
import{COMPONENT_NAMESPACE as r}from"../../shared/global/variable.js";import{safeComponentRegister as o}from"../../shared/utils/index.js";import t from"./src/Editor.js";const i=t;i.install=function(t){o(t,i,r+"Editor")};export{i as default};
|
|
@@ -1,77 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import '@wangeditor/editor/dist/css/style.css';
|
|
3
|
-
import { Editor, Toolbar } from '@wangeditor/editor-for-vue';
|
|
4
|
-
|
|
5
|
-
var script = defineComponent({
|
|
6
|
-
name: "Editor",
|
|
7
|
-
inheritAttrs: false,
|
|
8
|
-
components: {
|
|
9
|
-
Editor,
|
|
10
|
-
Toolbar
|
|
11
|
-
},
|
|
12
|
-
props: {
|
|
13
|
-
editorConfig: {
|
|
14
|
-
type: Object
|
|
15
|
-
},
|
|
16
|
-
uploadImgUrl: {
|
|
17
|
-
type: String
|
|
18
|
-
},
|
|
19
|
-
isDisabled: {
|
|
20
|
-
type: Boolean,
|
|
21
|
-
default: false
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
emits: [],
|
|
25
|
-
setup(props, {
|
|
26
|
-
attrs,
|
|
27
|
-
slots,
|
|
28
|
-
emit
|
|
29
|
-
}) {
|
|
30
|
-
const editorRef = shallowRef();
|
|
31
|
-
const toolbarConfig = {};
|
|
32
|
-
const editorConfig = reactive({
|
|
33
|
-
MENU_CONF: {
|
|
34
|
-
uploadImage: {
|
|
35
|
-
server: props.uploadImgUrl || ""
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
...props.editorConfig
|
|
39
|
-
});
|
|
40
|
-
onBeforeUnmount(() => {
|
|
41
|
-
const editor = editorRef.value;
|
|
42
|
-
if (editor == null)
|
|
43
|
-
return;
|
|
44
|
-
editor.destroy();
|
|
45
|
-
});
|
|
46
|
-
const handleCreated = (editor) => {
|
|
47
|
-
editorRef.value = editor;
|
|
48
|
-
if (props.isDisabled) {
|
|
49
|
-
editor.disable();
|
|
50
|
-
}
|
|
51
|
-
console.log("\u5B9E\u4F8B", editor);
|
|
52
|
-
};
|
|
53
|
-
const renderVN = () => createVNode("div", {
|
|
54
|
-
"style": "border: 1px solid #ccc"
|
|
55
|
-
}, [createVNode(Toolbar, {
|
|
56
|
-
"style": "border-bottom: 1px solid #ccc",
|
|
57
|
-
"editor": editorRef.value,
|
|
58
|
-
"defaultConfig": toolbarConfig,
|
|
59
|
-
"mode": "default"
|
|
60
|
-
}, null), createVNode(Editor, mergeProps({
|
|
61
|
-
"style": "height: 500px; overflow-y: hidden;"
|
|
62
|
-
}, attrs, {
|
|
63
|
-
"defaultConfig": editorConfig,
|
|
64
|
-
"mode": "default",
|
|
65
|
-
"onOnCreated": handleCreated
|
|
66
|
-
}), null)]);
|
|
67
|
-
return {
|
|
68
|
-
editorRef,
|
|
69
|
-
renderVN
|
|
70
|
-
};
|
|
71
|
-
},
|
|
72
|
-
render() {
|
|
73
|
-
return this.renderVN();
|
|
74
|
-
}
|
|
75
|
-
});
|
|
76
|
-
|
|
77
|
-
export { script as default };
|
|
1
|
+
import{defineComponent as e,shallowRef as t,reactive as o,onBeforeUnmount as r,createVNode as d,mergeProps as l}from"vue";import"@wangeditor/editor/dist/css/style.css";import{Editor as i,Toolbar as s}from"@wangeditor/editor-for-vue";var n=e({name:"Editor",inheritAttrs:!1,components:{Editor:i,Toolbar:s},props:{editorConfig:{type:Object},uploadImgUrl:{type:String},isDisabled:{type:Boolean,default:!1}},emits:[],setup(e,{attrs:n,slots:a,emit:u}){const p=t(),f={},m=o({MENU_CONF:{uploadImage:{server:e.uploadImgUrl||""}},...e.editorConfig});r((()=>{const e=p.value;null!=e&&e.destroy()}));const c=t=>{p.value=t,e.isDisabled&&t.disable(),console.log("实例",t)};return{editorRef:p,renderVN:()=>d("div",{style:"border: 1px solid #ccc"},[d(s,{style:"border-bottom: 1px solid #ccc",editor:p.value,defaultConfig:f,mode:"default"},null),d(i,l({style:"height: 500px; overflow-y: hidden;"},n,{defaultConfig:m,mode:"default",onOnCreated:c}),null)])}},render(){return this.renderVN()}});export{n as default};
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { safeComponentRegister } from '../../shared/utils/index.js';
|
|
3
|
-
import script from './src/FabricChart.vue.js';
|
|
4
|
-
|
|
5
|
-
const FabricChart = script;
|
|
6
|
-
FabricChart.install = function(app) {
|
|
7
|
-
safeComponentRegister(app, FabricChart, COMPONENT_NAMESPACE + "FabricChart");
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
export { FabricChart as default };
|
|
1
|
+
import{COMPONENT_NAMESPACE as r}from"../../shared/global/variable.js";import{safeComponentRegister as a}from"../../shared/utils/index.js";import t from"./src/FabricChart.vue.js";const i=t;i.install=function(t){a(t,i,r+"FabricChart")};export{i as default};
|
|
@@ -1,71 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { fabric } from './utils/index.js';
|
|
3
|
-
import PopupTip from './components/PopupTip.vue.js';
|
|
4
|
-
import PopupMenu from './components/PopupMenu.js';
|
|
5
|
-
import useTemperatureChart from './hooks/useTemperatureChart.js';
|
|
6
|
-
import useBirthProcessChart from './hooks/useBirthProcessChart.js';
|
|
7
|
-
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.js';
|
|
8
|
-
|
|
9
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
10
|
-
__name: "FabricChart",
|
|
11
|
-
props: {
|
|
12
|
-
type: { type: String, default: "temperature" },
|
|
13
|
-
data: { type: Object, required: true },
|
|
14
|
-
addRenderItem: { type: Function }
|
|
15
|
-
},
|
|
16
|
-
emits: [
|
|
17
|
-
"change",
|
|
18
|
-
"add",
|
|
19
|
-
"remove",
|
|
20
|
-
"select"
|
|
21
|
-
],
|
|
22
|
-
setup(__props, { expose, emit: emits }) {
|
|
23
|
-
const props = __props;
|
|
24
|
-
const isTemperature = computed(() => props.type === "temperature");
|
|
25
|
-
const canvasRef = ref(null);
|
|
26
|
-
const canvas = ref();
|
|
27
|
-
const { propItems, redrawPoints, select, pointTipProps, pointMenuProps, clickMenu } = init();
|
|
28
|
-
function init() {
|
|
29
|
-
const params = [canvas, props, emits, canvasRef];
|
|
30
|
-
return isTemperature.value ? useTemperatureChart(...params) : useBirthProcessChart(...params);
|
|
31
|
-
}
|
|
32
|
-
onMounted(() => {
|
|
33
|
-
canvas.value = new fabric.Canvas(canvasRef.value, {
|
|
34
|
-
width: propItems.canvasWidth,
|
|
35
|
-
height: propItems.canvasHeight,
|
|
36
|
-
backgroundColor: "#fff",
|
|
37
|
-
selection: false,
|
|
38
|
-
containerClass: "c-fabric-chart",
|
|
39
|
-
fireRightClick: true
|
|
40
|
-
});
|
|
41
|
-
});
|
|
42
|
-
expose({
|
|
43
|
-
redrawPoints,
|
|
44
|
-
select,
|
|
45
|
-
canvas
|
|
46
|
-
});
|
|
47
|
-
return (_ctx, _cache) => {
|
|
48
|
-
return openBlock(), createElementBlock(Fragment, null, [
|
|
49
|
-
createElementVNode("canvas", {
|
|
50
|
-
ref_key: "canvasRef",
|
|
51
|
-
ref: canvasRef
|
|
52
|
-
}, null, 512),
|
|
53
|
-
canvas.value ? (openBlock(), createBlock(PopupTip, mergeProps({
|
|
54
|
-
key: 0,
|
|
55
|
-
propItems: unref(propItems)
|
|
56
|
-
}, unref(pointTipProps)), null, 16, ["propItems"])) : createCommentVNode("v-if", true),
|
|
57
|
-
canvas.value ? (openBlock(), createBlock(unref(PopupMenu), mergeProps({
|
|
58
|
-
key: 1,
|
|
59
|
-
propItems: unref(propItems)
|
|
60
|
-
}, unref(pointMenuProps), {
|
|
61
|
-
show: unref(pointMenuProps).show,
|
|
62
|
-
"onUpdate:show": _cache[0] || (_cache[0] = ($event) => unref(pointMenuProps).show = $event),
|
|
63
|
-
onClickMenu: unref(clickMenu)
|
|
64
|
-
}), null, 16, ["propItems", "show", "onClickMenu"])) : createCommentVNode("v-if", true)
|
|
65
|
-
], 64);
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
});
|
|
69
|
-
var script = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "FabricChart.vue"]]);
|
|
70
|
-
|
|
71
|
-
export { script as default };
|
|
1
|
+
import{defineComponent as e,computed as t,ref as r,onMounted as o,openBlock as s,createElementBlock as n,Fragment as p,createElementVNode as a,createBlock as i,mergeProps as u,unref as l,createCommentVNode as c}from"vue";import{fabric as m}from"./utils/index.js";import f from"./components/PopupTip.vue.js";import h from"./components/PopupMenu.js";import v from"./hooks/useTemperatureChart.js";import d from"./hooks/useBirthProcessChart.js";import k from"../../../_virtual/plugin-vue_export-helper.js";var C=k(e({__name:"FabricChart",props:{type:{type:String,default:"temperature"},data:{type:Object,required:!0},addRenderItem:{type:Function}},emits:["change","add","remove","select"],setup(e,{expose:k,emit:C}){const w=e,y=t((()=>"temperature"===w.type)),g=r(null),j=r(),{propItems:P,redrawPoints:_,select:I,pointTipProps:b,pointMenuProps:M,clickMenu:x}=function(){const e=[j,w,C,g];return y.value?v(...e):d(...e)}();return o((()=>{j.value=new m.Canvas(g.value,{width:P.canvasWidth,height:P.canvasHeight,backgroundColor:"#fff",selection:!1,containerClass:"c-fabric-chart",fireRightClick:!0})})),k({redrawPoints:_,select:I,canvas:j}),(e,t)=>(s(),n(p,null,[a("canvas",{ref_key:"canvasRef",ref:g},null,512),j.value?(s(),i(f,u({key:0,propItems:l(P)},l(b)),null,16,["propItems"])):c("v-if",!0),j.value?(s(),i(l(h),u({key:1,propItems:l(P)},l(M),{show:l(M).show,"onUpdate:show":t[0]||(t[0]=e=>l(M).show=e),onClickMenu:l(x)}),null,16,["propItems","show","onClickMenu"])):c("v-if",!0)],64))}}),[["__file","FabricChart.vue"]]);export{C as default};
|