cnhis-design-vue 3.1.40-beta.11 → 3.1.40-beta.15

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.
Files changed (425) hide show
  1. package/README.md +87 -87
  2. package/es/_virtual/plugin-vue_export-helper.js +1 -9
  3. package/es/components/annotation-edit/index.js +1 -10
  4. package/es/components/annotation-edit/src/AnnotationEdit.js +1 -164
  5. package/es/components/big-table/index.js +1 -15
  6. package/es/components/big-table/src/BigTable.vue.js +1 -6
  7. package/es/components/big-table/src/BigTable.vue2.js +1 -2498
  8. package/es/components/big-table/src/bigTableEmits.js +1 -53
  9. package/es/components/big-table/src/bigTableProps.js +1 -120
  10. package/es/components/big-table/src/bigTableState.js +1 -62
  11. package/es/components/big-table/src/components/NoData.vue.js +1 -74
  12. package/es/components/big-table/src/components/edit-form/edit-date.js +1 -214
  13. package/es/components/big-table/src/components/edit-form/edit-input.js +1 -95
  14. package/es/components/big-table/src/components/edit-form/edit-select.js +1 -139
  15. package/es/components/big-table/src/components/edit-form/edit-separate.vue.js +1 -103
  16. package/es/components/big-table/src/components/edit-form/edit-time.js +1 -122
  17. package/es/components/big-table/src/components/edit-form/useCommon.js +1 -23
  18. package/es/components/big-table/src/components/input-button.vue.js +1 -39
  19. package/es/components/big-table/src/components/separate.vue.js +1 -30
  20. package/es/components/big-table/src/constants/index.js +1 -3
  21. package/es/components/big-table/src/hooks/index.js +1 -9
  22. package/es/components/big-table/src/hooks/useAnchor.js +1 -49
  23. package/es/components/big-table/src/hooks/useAnnotation.js +1 -21
  24. package/es/components/big-table/src/hooks/useBatchEditing.js +1 -301
  25. package/es/components/big-table/src/hooks/useEdit.js +1 -133
  26. package/es/components/big-table/src/hooks/useEvent.js +1 -95
  27. package/es/components/big-table/src/hooks/useFormat.js +1 -507
  28. package/es/components/big-table/src/hooks/useNestTable.js +1 -86
  29. package/es/components/big-table/src/hooks/useSeparateRow.js +1 -177
  30. package/es/components/big-table/src/hooks/useTableParse.js +1 -142
  31. package/es/components/big-table/src/utils.js +1 -618
  32. package/es/components/bpmn-workflow/index.js +1 -10
  33. package/es/components/bpmn-workflow/src/BpmnWorkflow.vue.js +1 -258
  34. package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/BpmnRenderer.js +1 -1452
  35. package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/CustomPathMap.js +1 -99
  36. package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/CustomRenderer.js +1 -114
  37. package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/CustomRules.js +1 -40
  38. package/es/components/bpmn-workflow/src/custom/customOtherModule/customViewerRenderer.js +1 -14
  39. package/es/components/bpmn-workflow/src/custom/customOtherModule/zoomScroll.js +1 -10
  40. package/es/components/button-print/index.js +1 -12
  41. package/es/components/button-print/src/ButtonPrint.vue.js +1 -6
  42. package/es/components/button-print/src/ButtonPrint.vue2.js +1 -528
  43. package/es/components/button-print/src/components/EditFormat.vue.js +1 -173
  44. package/es/components/button-print/src/components/IdentityVerification.vue.js +1 -182
  45. package/es/components/button-print/src/components/Preview.vue.js +1 -6
  46. package/es/components/button-print/src/components/Preview.vue2.js +1 -67
  47. package/es/components/button-print/src/utils/browserPrint.d.ts +2 -1
  48. package/es/components/button-print/src/utils/browserPrint.js +1 -43
  49. package/es/components/button-print/src/utils/dialog.js +1 -121
  50. package/es/components/button-print/src/utils/index.js +1 -2
  51. package/es/components/button-print/src/utils/print.d.ts +5 -1
  52. package/es/components/button-print/src/utils/print.js +1 -432
  53. package/es/components/editor/index.js +1 -10
  54. package/es/components/editor/src/Editor.js +1 -77
  55. package/es/components/fabric-chart/index.js +1 -10
  56. package/es/components/fabric-chart/src/FabricChart.vue.js +1 -71
  57. package/es/components/fabric-chart/src/components/PopupMenu.js +1 -118
  58. package/es/components/fabric-chart/src/components/PopupTip.vue.js +1 -34
  59. package/es/components/fabric-chart/src/components/useStyle.js +1 -36
  60. package/es/components/fabric-chart/src/hooks/constant.js +1 -78
  61. package/es/components/fabric-chart/src/hooks/index.js +1 -11
  62. package/es/components/fabric-chart/src/hooks/useBirthProcess.js +1 -642
  63. package/es/components/fabric-chart/src/hooks/useBirthProcessChart.js +1 -153
  64. package/es/components/fabric-chart/src/hooks/useBottom.js +1 -91
  65. package/es/components/fabric-chart/src/hooks/useCenter.js +1 -734
  66. package/es/components/fabric-chart/src/hooks/useCommon.js +1 -32
  67. package/es/components/fabric-chart/src/hooks/useCumputedPoint.js +1 -79
  68. package/es/components/fabric-chart/src/hooks/useDraw.js +1 -182
  69. package/es/components/fabric-chart/src/hooks/useEvent.js +1 -146
  70. package/es/components/fabric-chart/src/hooks/useGrid.js +1 -54
  71. package/es/components/fabric-chart/src/hooks/useLeft.js +1 -331
  72. package/es/components/fabric-chart/src/hooks/useOther.js +1 -95
  73. package/es/components/fabric-chart/src/hooks/useRight.js +1 -22
  74. package/es/components/fabric-chart/src/hooks/useShadow.js +1 -132
  75. package/es/components/fabric-chart/src/hooks/useTemperatureChart.js +1 -341
  76. package/es/components/fabric-chart/src/hooks/useTop.js +1 -154
  77. package/es/components/fabric-chart/src/utils/index.js +1 -15624
  78. package/es/components/fabric-chart/src/utils/utils.js +1 -32
  79. package/es/components/field-set/index.js +1 -10
  80. package/es/components/field-set/src/FieldSet.vue.js +1 -470
  81. package/es/components/form-config/index.d.ts +1 -1
  82. package/es/components/form-config/index.js +1 -10
  83. package/es/components/form-config/src/FormConfig.vue.d.ts +1 -1
  84. package/es/components/form-config/src/FormConfig.vue.js +1 -124
  85. package/es/components/form-config/src/components/FormConfigCreator.vue.js +1 -100
  86. package/es/components/form-config/src/components/FormConfigDragDisplay.vue.js +1 -45
  87. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +1 -1
  88. package/es/components/form-config/src/components/FormConfigEdit.vue.js +1 -97
  89. package/es/components/form-config/src/components/FormConfigMaterialItem.js +1 -28
  90. package/es/components/form-config/src/components/index.js +1 -6
  91. package/es/components/form-config/src/components/renderer/CloseButton.vue.js +1 -45
  92. package/es/components/form-config/src/components/renderer/ComplexNode.vue.js +1 -45
  93. package/es/components/form-config/src/components/renderer/DefaultNode.vue.js +1 -60
  94. package/es/components/form-config/src/components/renderer/index.js +1 -3
  95. package/es/components/form-config/src/constants/index.js +1 -61
  96. package/es/components/form-config/src/hooks/index.js +1 -3
  97. package/es/components/form-config/src/hooks/useConfigurationField.js +1 -90
  98. package/es/components/form-config/src/hooks/useDataNormalize.js +1 -35
  99. package/es/components/form-config/src/hooks/usePresetRenderer.js +1 -36
  100. package/es/components/form-config/src/hooks/useSortalbeConfig.js +1 -42
  101. package/es/components/form-config/src/utils/index.js +1 -26
  102. package/es/components/form-render/index.js +1 -30
  103. package/es/components/form-render/src/FormRender.vue.js +1 -239
  104. package/es/components/form-render/src/FormRenderWrapper.vue.js +1 -49
  105. package/es/components/form-render/src/components/renderer/combination.js +1 -114
  106. package/es/components/form-render/src/components/renderer/complex.js +1 -37
  107. package/es/components/form-render/src/components/renderer/date.js +1 -171
  108. package/es/components/form-render/src/components/renderer/formItem.js +1 -128
  109. package/es/components/form-render/src/components/renderer/index.js +1 -43
  110. package/es/components/form-render/src/components/renderer/input.js +1 -50
  111. package/es/components/form-render/src/components/renderer/inputGroup.js +1 -11
  112. package/es/components/form-render/src/components/renderer/inputNumber.js +1 -55
  113. package/es/components/form-render/src/components/renderer/jsonCombination/hooks/useDeepValidate.js +1 -35
  114. package/es/components/form-render/src/components/renderer/jsonCombination/index.js +1 -175
  115. package/es/components/form-render/src/components/renderer/levelSearchCascader.js +1 -274
  116. package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.js +1 -71
  117. package/es/components/form-render/src/components/renderer/lineBar/index.js +1 -11
  118. package/es/components/form-render/src/components/renderer/radio_checkbox.js +1 -111
  119. package/es/components/form-render/src/components/renderer/remoteSearch.js +1 -139
  120. package/es/components/form-render/src/components/renderer/searchCascade.js +1 -244
  121. package/es/components/form-render/src/components/renderer/select.js +1 -176
  122. package/es/components/form-render/src/components/renderer/simpleComponent.js +1 -57
  123. package/es/components/form-render/src/components/renderer/slider.js +1 -38
  124. package/es/components/form-render/src/components/renderer/switch.js +1 -48
  125. package/es/components/form-render/src/components/renderer/textarea.js +1 -36
  126. package/es/components/form-render/src/components/tooltipMessage.vue.js +1 -37
  127. package/es/components/form-render/src/constants/index.js +1 -59
  128. package/es/components/form-render/src/hooks/index.js +1 -15
  129. package/es/components/form-render/src/hooks/useAnchor.js +1 -99
  130. package/es/components/form-render/src/hooks/useAsyncQueue.js +1 -153
  131. package/es/components/form-render/src/hooks/useAutoHidden.js +1 -43
  132. package/es/components/form-render/src/hooks/useBusinessBinding.js +1 -119
  133. package/es/components/form-render/src/hooks/useChangeContext.js +1 -20
  134. package/es/components/form-render/src/hooks/useCommonInjection.js +1 -43
  135. package/es/components/form-render/src/hooks/useCommonLog.js +1 -12
  136. package/es/components/form-render/src/hooks/useComplexOptions.js +1 -225
  137. package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -290
  138. package/es/components/form-render/src/hooks/useFieldNormalize.js +1 -65
  139. package/es/components/form-render/src/hooks/useFieldVisitor.js +1 -46
  140. package/es/components/form-render/src/hooks/useFormContext.js +1 -70
  141. package/es/components/form-render/src/hooks/useFormEvent.js +1 -140
  142. package/es/components/form-render/src/hooks/useFormField.js +1 -13
  143. package/es/components/form-render/src/hooks/useFormItemDeps.js +1 -31
  144. package/es/components/form-render/src/hooks/useFormRenderLifeCycle.js +1 -10
  145. package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -278
  146. package/es/components/form-render/src/hooks/useFormRequest.js +1 -42
  147. package/es/components/form-render/src/hooks/useFormValidator.js +1 -83
  148. package/es/components/form-render/src/hooks/useLowCodeReactions.js +1 -85
  149. package/es/components/form-render/src/hooks/useNuiThemeOverrides.js +1 -18
  150. package/es/components/form-render/src/hooks/usePresetScope.js +1 -22
  151. package/es/components/form-render/src/types/fieldItem.d.ts +2 -1
  152. package/es/components/form-render/src/types/fieldItem.js +1 -1
  153. package/es/components/form-render/src/types/index.js +1 -1
  154. package/es/components/form-render/src/utils/business.js +1 -114
  155. package/es/components/form-render/src/utils/dom.js +1 -38
  156. package/es/components/form-render/src/utils/index.js +1 -241
  157. package/es/components/form-render/src/utils/schema.js +1 -105
  158. package/es/components/grid/index.js +1 -11
  159. package/es/components/grid/src/Grid.js +1 -28
  160. package/es/components/grid/src/hooks.js +1 -168
  161. package/es/components/iho-table/index.js +1 -36
  162. package/es/components/iho-table/src/IhoTable.vue.js +1 -157
  163. package/es/components/iho-table/src/constants/index.js +1 -157
  164. package/es/components/iho-table/src/hooks/export.js +1 -2
  165. package/es/components/iho-table/src/hooks/index.js +1 -2
  166. package/es/components/iho-table/src/hooks/tapHooks/index.js +1 -159
  167. package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.js +1 -67
  168. package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.js +1 -26
  169. package/es/components/iho-table/src/hooks/tapHooks/useDomInsertHooks.js +1 -27
  170. package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.js +1 -280
  171. package/es/components/iho-table/src/hooks/tapHooks/useExposeHooks.js +1 -26
  172. package/es/components/iho-table/src/hooks/tapHooks/useFieldHooks.js +1 -38
  173. package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks.js +1 -27
  174. package/es/components/iho-table/src/hooks/useColumnConfigAdaptor.js +1 -164
  175. package/es/components/iho-table/src/hooks/useTableContext.js +1 -17
  176. package/es/components/iho-table/src/hooks/useTablePlugin.js +1 -20
  177. package/es/components/iho-table/src/plugins/anchorPlugin/index.js +1 -19
  178. package/es/components/iho-table/src/plugins/anchorPlugin/tableAnchor.js +1 -51
  179. package/es/components/iho-table/src/plugins/anchorPlugin/useAnchor.js +1 -87
  180. package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.js +1 -48
  181. package/es/components/iho-table/src/plugins/filterPlugin/filter.vue.js +1 -230
  182. package/es/components/iho-table/src/plugins/filterPlugin/index.js +1 -240
  183. package/es/components/iho-table/src/plugins/index.js +1 -47
  184. package/es/components/iho-table/src/plugins/keyboardEventPlugin/index.js +1 -30
  185. package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +1 -127
  186. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.js +1 -203
  187. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.js +1 -41
  188. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useAutoFocus.js +1 -21
  189. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/inputRendererPlugin.js +1 -41
  190. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +1 -79
  191. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -64
  192. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -46
  193. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.js +1 -16
  194. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue.js +1 -108
  195. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +1 -163
  196. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/separateUtils.js +1 -42
  197. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin.js +1 -50
  198. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/checkRendererPlugin.js +1 -30
  199. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/colorRendererPlugin.js +1 -48
  200. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/defaultRendererPlugin.js +1 -62
  201. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/labelRendererPlugin.js +1 -52
  202. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/pictureRendererPlugin.js +1 -92
  203. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/seqRendererPlugin.js +1 -59
  204. package/es/components/iho-table/src/plugins/rowClickPlugin/index.js +1 -34
  205. package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/index.js +1 -30
  206. package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/rowGroupUtils.js +1 -53
  207. package/es/components/iho-table/src/plugins/virtualTreePlugin/index.js +1 -100
  208. package/es/components/iho-table/src/types/index.js +1 -1
  209. package/es/components/iho-table/src/types/pluginType.js +1 -16
  210. package/es/components/iho-table/src/utils/index.js +1 -169
  211. package/es/components/index.js +1 -119
  212. package/es/components/info-header/index.js +1 -10
  213. package/es/components/info-header/src/HiddenContent.vue.js +1 -70
  214. package/es/components/info-header/src/InfoEllipsis.vue.js +1 -43
  215. package/es/components/info-header/src/InfoHeader.vue.js +1 -313
  216. package/es/components/insurance-sdk/index.js +1 -1
  217. package/es/components/insurance-sdk/src/constants/index.js +1 -160
  218. package/es/components/insurance-sdk/src/utils/index.js +1 -1
  219. package/es/components/insurance-sdk/src/utils/insurance.js +1 -268
  220. package/es/components/keyboard/index.d.ts +4 -21
  221. package/es/components/keyboard/index.js +1 -10
  222. package/es/components/keyboard/src/Keyboard.vue.d.ts +4 -21
  223. package/es/components/keyboard/src/Keyboard.vue.js +1 -164
  224. package/es/components/keyboard/src/components/InputNumber.vue.d.ts +2 -19
  225. package/es/components/keyboard/src/components/InputNumber.vue.js +1 -94
  226. package/es/components/keyboard/src/components/NumberPanel.vue.d.ts +4 -21
  227. package/es/components/keyboard/src/components/NumberPanel.vue.js +1 -299
  228. package/es/components/keyboard/src/utils/index.js +1 -5
  229. package/es/components/map/index.js +1 -10
  230. package/es/components/map/src/Map.vue.js +1 -336
  231. package/es/components/recommend-search/index.js +1 -10
  232. package/es/components/recommend-search/src/RecommendSearch.vue.js +1 -63
  233. package/es/components/recommend-search/src/components/BaseSearch.vue.js +1 -157
  234. package/es/components/recommend-search/src/components/RecommendInput.vue.js +1 -125
  235. package/es/components/recommend-search/src/components/RecommendMenu.vue.js +1 -104
  236. package/es/components/recommend-search/src/components/RecommendSelect.vue.js +1 -146
  237. package/es/components/recommend-search/src/constant/index.js +1 -7
  238. package/es/components/scale-view/index.js +1 -35
  239. package/es/components/scale-view/src/ScaleView.vue.d.ts +0 -3
  240. package/es/components/scale-view/src/ScaleView.vue.js +1 -429
  241. package/es/components/scale-view/src/components/AnswerParse.vue.js +1 -80
  242. package/es/components/scale-view/src/components/EvaluateCountdown.vue.js +1 -117
  243. package/es/components/scale-view/src/components/EvaluatePage.vue.js +1 -141
  244. package/es/components/scale-view/src/components/LoadingCom.vue.js +1 -19
  245. package/es/components/scale-view/src/components/NoData.vue.js +1 -74
  246. package/es/components/scale-view/src/components/ScaleScore.js +1 -63
  247. package/es/components/scale-view/src/components/composables/choose-common.js +1 -83
  248. package/es/components/scale-view/src/components/formitem/address.js +1 -3993
  249. package/es/components/scale-view/src/components/formitem/r-address.js +1 -226
  250. package/es/components/scale-view/src/components/formitem/r-cascader.js +1 -133
  251. package/es/components/scale-view/src/components/formitem/r-checkbox.js +1 -281
  252. package/es/components/scale-view/src/components/formitem/r-collection.js +1 -111
  253. package/es/components/scale-view/src/components/formitem/r-datetime.js +1 -212
  254. package/es/components/scale-view/src/components/formitem/r-input.js +1 -86
  255. package/es/components/scale-view/src/components/formitem/r-map.js +1 -106
  256. package/es/components/scale-view/src/components/formitem/r-radio.js +1 -240
  257. package/es/components/scale-view/src/components/formitem/r-select.js +1 -202
  258. package/es/components/scale-view/src/components/formitem/r-sign.js +1 -177
  259. package/es/components/scale-view/src/components/formitem/r-upload.js +1 -215
  260. package/es/components/scale-view/src/components/formitem/sign-com.js +1 -307
  261. package/es/components/scale-view/src/components/formitem/standard-modal.js +1 -129
  262. package/es/components/scale-view/src/hooks/scaleview-computed.js +1 -354
  263. package/es/components/scale-view/src/hooks/scaleview-init.js +1 -437
  264. package/es/components/scale-view/src/hooks/scaleview-props.js +1 -81
  265. package/es/components/scale-view/src/hooks/scaleview-state.js +1 -38
  266. package/es/components/scale-view/src/hooks/scaleview-submit.js +1 -154
  267. package/es/components/scale-view/src/hooks/scaleview-validate.js +1 -187
  268. package/es/components/scale-view/src/hooks/use-component.js +1 -86
  269. package/es/components/scale-view/src/hooks/use-evaluate.js +1 -150
  270. package/es/components/scale-view/src/hooks/use-event.js +1 -129
  271. package/es/components/scale-view/src/hooks/use-noData.js +1 -41
  272. package/es/components/scale-view/src/utils/judge-types.js +1 -36
  273. package/es/components/search-cascader/index.js +1 -10
  274. package/es/components/search-cascader/src/SearchCascader.vue.js +1 -194
  275. package/es/components/search-cascader/src/components/SearchMenu.js +1 -196
  276. package/es/components/search-cascader/src/components/index.js +1 -1
  277. package/es/components/search-cascader/src/constants/index.js +1 -11
  278. package/es/components/search-cascader/src/hooks/index.js +1 -1
  279. package/es/components/search-cascader/src/hooks/useCssVariable.js +1 -7
  280. package/es/components/search-cascader/src/utils/index.js +1 -11
  281. package/es/components/select-label/index.js +1 -15
  282. package/es/components/select-label/src/LabelFormContent.vue.js +1 -447
  283. package/es/components/select-label/src/SelectLabel.vue.js +1 -6
  284. package/es/components/select-label/src/SelectLabel.vue2.js +1 -451
  285. package/es/components/select-label/src/components/label-classify.vue.js +1 -132
  286. package/es/components/select-person/index.js +1 -10
  287. package/es/components/select-person/src/SelectPerson.vue.js +1 -6
  288. package/es/components/select-person/src/SelectPerson.vue2.js +1 -303
  289. package/es/components/select-person/src/utils/index.js +1 -58
  290. package/es/components/shortcut-provider/index.js +1 -12
  291. package/es/components/shortcut-provider/src/ShortcutProvider.vue.js +1 -42
  292. package/es/components/shortcut-provider/src/constants/index.js +1 -8
  293. package/es/components/shortcut-provider/src/hooks/index.js +1 -2
  294. package/es/components/shortcut-provider/src/hooks/useShortcutSignature.js +1 -12
  295. package/es/components/shortcut-provider/src/hooks/useShortcuts.js +1 -188
  296. package/es/components/shortcut-provider/src/utils/index.js +1 -92
  297. package/es/components/shortcut-setter/index.d.ts +1 -1
  298. package/es/components/shortcut-setter/index.js +1 -10
  299. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +1 -1
  300. package/es/components/shortcut-setter/src/ShortcutSetter.vue.js +1 -98
  301. package/es/components/shortcut-setter/src/ShortcutSetterItem.vue.js +1 -76
  302. package/es/components/steps-wheel/index.js +1 -10
  303. package/es/components/steps-wheel/src/StepsWheel.vue.js +1 -376
  304. package/es/components/table-filter/index.js +1 -21
  305. package/es/components/table-filter/src/base-search-com/BaseSearch.vue.d.ts +3 -0
  306. package/es/components/table-filter/src/base-search-com/BaseSearch.vue.js +1 -2272
  307. package/es/components/table-filter/src/classification/Classification-com.vue.js +1 -1315
  308. package/es/components/table-filter/src/classification/search-class-name.vue.js +1 -195
  309. package/es/components/table-filter/src/classification/search-professional-model.vue.js +1 -594
  310. package/es/components/table-filter/src/components/age-com/index.vue.js +1 -185
  311. package/es/components/table-filter/src/components/button-group/ButtonGroup.vue.js +1 -86
  312. package/es/components/table-filter/src/components/button-icon/getBtnIcon.js +1 -30
  313. package/es/components/table-filter/src/components/c-tree-select/tree-select.vue.js +1 -253
  314. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.js +1 -114
  315. package/es/components/table-filter/src/components/classify-filter/helpers/options.js +1 -14
  316. package/es/components/table-filter/src/components/classify-filter/hooks/useDisplayCategory.js +1 -87
  317. package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.js +1 -147
  318. package/es/components/table-filter/src/components/classify-filter/index.vue.js +1 -304
  319. package/es/components/table-filter/src/components/multi-select/multi-select.vue.js +1 -153
  320. package/es/components/table-filter/src/components/out-quick-search/out-quick-search.vue.js +1 -310
  321. package/es/components/table-filter/src/components/range-age/index.vue.js +1 -137
  322. package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.js +1 -64
  323. package/es/components/table-filter/src/components/render-widget/components/Select.vue.js +1 -45
  324. package/es/components/table-filter/src/components/render-widget/components/index.js +1 -2
  325. package/es/components/table-filter/src/components/render-widget/enums.js +1 -27
  326. package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.js +1 -70
  327. package/es/components/table-filter/src/components/render-widget/index.vue.js +1 -107
  328. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -152
  329. package/es/components/table-filter/src/components/search-condition/SearchCondition.vue.js +1 -1520
  330. package/es/components/table-filter/src/components/search-condition/fieldTypeList.js +1 -171
  331. package/es/components/table-filter/src/components/search-filter/SearchFilter.vue.js +1 -199
  332. package/es/components/table-filter/src/components/search-modal/set-classification.vue.js +1 -241
  333. package/es/components/table-filter/src/components/table-modal/TableModal.vue.js +1 -526
  334. package/es/components/table-filter/src/const/dataOptions.js +1 -107
  335. package/es/components/table-filter/src/const/index.js +1 -5
  336. package/es/components/table-filter/src/directive/flexibleResize.js +1 -157
  337. package/es/components/table-filter/src/directive/preventReClick.js +1 -14
  338. package/es/components/table-filter/src/directive/resize.js +1 -12
  339. package/es/components/table-filter/src/hooks/export.js +1 -1
  340. package/es/components/table-filter/src/hooks/useAdvanced.js +1 -64
  341. package/es/components/table-filter/src/hooks/useMixins.js +1 -532
  342. package/es/components/table-filter/src/hooks/useRenderWidget.js +1 -94
  343. package/es/components/table-filter/src/hooks/useTableSearchCon.js +1 -131
  344. package/es/components/table-filter/src/hooks/useWordBookutils.js +1 -91
  345. package/es/components/table-filter/src/quick-search/QuickSearch.vue.d.ts +4 -3
  346. package/es/components/table-filter/src/quick-search/QuickSearch.vue.js +1 -2038
  347. package/es/components/table-filter/src/tool/generateDefOptions.js +1 -65
  348. package/es/components/table-filter/src/tool/getWidgetType.js +1 -27
  349. package/es/components/table-filter/src/tool/options.js +1 -200
  350. package/es/components/table-filter/src/tool/resizeSensor.js +1 -123
  351. package/es/components/table-filter/src/tool/time-domain.js +1 -100
  352. package/es/components/table-filter/src/tool/transformData.js +1 -169
  353. package/es/components/table-filter/src/tool/utils.js +1 -29
  354. package/es/components/table-filter/src/types/enums.js +1 -67
  355. package/es/components/time-line/index.js +1 -10
  356. package/es/components/time-line/src/TimeLine.vue.js +1 -70
  357. package/es/components/vod-chunk-upload/index.js +1 -14
  358. package/es/components/vod-chunk-upload/src/chunk-upload-new.vue.js +1 -480
  359. package/es/components/vod-chunk-upload/src/hooks/upload-computed.js +1 -70
  360. package/es/components/vod-chunk-upload/src/hooks/upload-data.js +1 -96
  361. package/es/components/vod-chunk-upload/src/hooks/vod-computed.js +1 -79
  362. package/es/components/vod-chunk-upload/src/hooks/vod-data.js +1 -28
  363. package/es/components/vod-chunk-upload/src/vod-chunk-upload/index.js +1 -2
  364. package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.js +1 -332
  365. package/es/components/vod-chunk-upload/src/vod-upload-modal.js +1 -94
  366. package/es/env.d.ts +24 -24
  367. package/es/shared/assets/img/failure.png.js +1 -3
  368. package/es/shared/assets/img/no-permission.png.js +1 -3
  369. package/es/shared/assets/img/nodata.png.js +1 -3
  370. package/es/shared/assets/img/notfound.png.js +1 -3
  371. package/es/shared/assets/img/qr.png.js +1 -3
  372. package/es/shared/assets/img/success.png.js +1 -3
  373. package/es/shared/assets/img/video.png.js +1 -3
  374. package/es/shared/assets/img/video_default_cover.png.js +1 -3
  375. package/es/shared/assets/img/xb_big.png.js +1 -3
  376. package/es/shared/assets/img/xb_small.png.js +1 -3
  377. package/es/shared/components/SelectPage/SelectPage.vue.js +1 -61
  378. package/es/shared/components/SelectPage/index.js +1 -2
  379. package/es/shared/components/SlotRender/SlotRender.js +1 -35
  380. package/es/shared/components/SlotRender/index.js +1 -2
  381. package/es/shared/components/SvgIcon/SvgIcon.vue.js +1 -36
  382. package/es/shared/components/SvgIcon/index.js +1 -2
  383. package/es/shared/components/TextOverTooltip/TextOverTooltip.vue.js +1 -77
  384. package/es/shared/components/TextOverTooltip/index.js +1 -2
  385. package/es/shared/components/VueDraggable/index.js +1 -2
  386. package/es/shared/components/VueDraggable/src/core/componentBuilderHelper.js +1 -35
  387. package/es/shared/components/VueDraggable/src/core/componentStructure.js +1 -54
  388. package/es/shared/components/VueDraggable/src/core/renderHelper.js +1 -47
  389. package/es/shared/components/VueDraggable/src/core/sortableEvents.js +1 -14
  390. package/es/shared/components/VueDraggable/src/util/console.js +1 -9
  391. package/es/shared/components/VueDraggable/src/util/htmlHelper.js +1 -11
  392. package/es/shared/components/VueDraggable/src/util/string.js +1 -11
  393. package/es/shared/components/VueDraggable/src/util/tags.js +1 -130
  394. package/es/shared/components/VueDraggable/src/vuedraggable.js +1 -265
  395. package/es/shared/components/no-data/NoData.vue.js +1 -74
  396. package/es/shared/components/no-data/index.js +1 -2
  397. package/es/shared/components/player-vod/player.js +1 -121
  398. package/es/shared/components/player-vod/video-modal.js +1 -91
  399. package/es/shared/global/variable.js +1 -3
  400. package/es/shared/utils/anime.js +1 -129
  401. package/es/shared/utils/colorLog.js +1 -53
  402. package/es/shared/utils/index.js +1 -167
  403. package/es/shared/utils/loadViewer.js +1 -11
  404. package/es/shared/utils/tapable/AsyncParallelBailHook.js +1 -63
  405. package/es/shared/utils/tapable/AsyncParallelHook.js +1 -27
  406. package/es/shared/utils/tapable/AsyncSeriesBailHook.js +1 -18
  407. package/es/shared/utils/tapable/AsyncSeriesHook.js +1 -27
  408. package/es/shared/utils/tapable/AsyncSeriesLoopHook.js +1 -12
  409. package/es/shared/utils/tapable/AsyncSeriesWaterfallHook.js +1 -22
  410. package/es/shared/utils/tapable/Hook.js +1 -140
  411. package/es/shared/utils/tapable/HookCodeFactory.js +1 -456
  412. package/es/shared/utils/tapable/SyncBailHook.js +1 -19
  413. package/es/shared/utils/tapable/SyncHook.js +1 -34
  414. package/es/shared/utils/tapable/SyncLoopHook.js +1 -13
  415. package/es/shared/utils/tapable/SyncWaterfallHook.js +1 -47
  416. package/es/shared/utils/utilExpand.js +1 -781
  417. package/es/shared/utils/vexutils.js +1 -59
  418. package/package.json +2 -2
  419. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  420. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
  421. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
  422. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
  423. package/es/components/fabric-chart/src/utils/index.d.ts +0 -6823
  424. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
  425. package/es/shared/utils/tapable/index.d.ts +0 -139
@@ -1,299 +1 @@
1
- import { defineComponent, computed, ref, watch, openBlock, createElementBlock, normalizeClass, normalizeStyle, unref, createElementVNode, createVNode, withCtx, Fragment, renderList, toDisplayString, createBlock, createCommentVNode } from 'vue';
2
- import { NSpace, NIcon } from 'naive-ui';
3
- import { ArrowUndoSharp } from '@vicons/ionicons5';
4
- import InputNumber from './InputNumber.vue.js';
5
- import { useDraggable } from '@vueuse/core';
6
- import { getNumber } from '../utils/index.js';
7
- import _export_sfc from '../../../../_virtual/plugin-vue_export-helper.js';
8
-
9
- const _hoisted_1 = { class: "keys" };
10
- const _hoisted_2 = ["onClick"];
11
- const _hoisted_3 = ["onClick"];
12
- const _hoisted_4 = { class: "btns" };
13
- const _hoisted_5 = ["onClick"];
14
- const _hoisted_6 = { class: "inputs" };
15
- const _hoisted_7 = { class: "inputs-right" };
16
- const _hoisted_8 = /* @__PURE__ */ createElementVNode("hr", null, null, -1);
17
- const _sfc_main = /* @__PURE__ */ defineComponent({
18
- __name: "NumberPanel",
19
- props: {
20
- defaultValue: { type: Number },
21
- value: { type: Number },
22
- mode: { type: String },
23
- positionInitialValue: { type: Object, default: () => ({ x: 0, y: 0 }) },
24
- moveOffset: { type: Object, default: () => ({ x: 0, y: 0 }) },
25
- drag: { type: Boolean, default: false }
26
- },
27
- emits: ["change"],
28
- setup(__props, { emit }) {
29
- const props = __props;
30
- const NUMBERKEYS = "1234567890.";
31
- const DAYS = [3, 7, 14, 30];
32
- const DOSENUMBERKEYS = "123/456*789-0.+";
33
- const CALCULATIONSYMBOLS = ["+", "-", "*", "/"];
34
- const isNumber = computed(() => props.mode === "number");
35
- const isDay = computed(() => props.mode === "day" && !isNumber.value);
36
- const isDose = computed(() => props.mode === "dose" && !isNumber.value);
37
- const numberKeys = computed(() => (isDose.value ? DOSENUMBERKEYS : NUMBERKEYS).split(""));
38
- const days = ref(DAYS);
39
- const doses = ref([2, 3, 4, 5, 6, 7, 8]);
40
- const inputValue = ref("");
41
- const integerValue = ref();
42
- const numeratorValue = ref();
43
- const denominatorValue = ref();
44
- const inputValueStatus = ref("success");
45
- const numeratorValueStatus = ref("success");
46
- const denominatorValueStatus = ref("success");
47
- const inputSelect = ref(false);
48
- const keyboardRef = ref(null);
49
- const style = init();
50
- function init() {
51
- if (props.defaultValue) {
52
- inputValue.value = props.defaultValue.toString();
53
- }
54
- if (props.drag) {
55
- const { x, y, style: style2 } = useDraggable(keyboardRef, {
56
- initialValue: props.positionInitialValue,
57
- onMove: (position, event) => {
58
- var _a, _b, _c, _d;
59
- position.x += (_b = (_a = props.moveOffset) == null ? void 0 : _a.x) != null ? _b : 0;
60
- position.y += (_d = (_c = props.moveOffset) == null ? void 0 : _c.y) != null ? _d : 0;
61
- }
62
- });
63
- return style2;
64
- }
65
- }
66
- function keydown(key) {
67
- var _a, _b;
68
- switch (key) {
69
- case "Undo": {
70
- doDelete();
71
- setInputValueStatus();
72
- break;
73
- }
74
- case "Enter": {
75
- if (!validator()) {
76
- inputValueStatus.value = "error";
77
- return;
78
- }
79
- emit("change", eval(inputValue.value));
80
- break;
81
- }
82
- default:
83
- if (typeof key === "number") {
84
- inputValue.value = key.toString();
85
- } else {
86
- if (CALCULATIONSYMBOLS.includes(key) && CALCULATIONSYMBOLS.includes(inputValue.value[inputValue.value.length - 1])) {
87
- const arr = inputValue.value.split("");
88
- arr.splice(-1, 1, key);
89
- inputValue.value = arr.join("");
90
- } else {
91
- inputValue.value = inputSelect.value ? key.toString() : (((_b = (_a = inputValue.value) == null ? void 0 : _a.toString) == null ? void 0 : _b.call(_a)) || "") + key;
92
- }
93
- }
94
- setInputValueStatus();
95
- break;
96
- }
97
- inputSelect.value = false;
98
- }
99
- function validator() {
100
- if (!inputValue.value)
101
- return false;
102
- if (CALCULATIONSYMBOLS.slice(2).includes(inputValue.value[0])) {
103
- return false;
104
- }
105
- if (CALCULATIONSYMBOLS.includes(inputValue.value[inputValue.value.length - 1])) {
106
- return false;
107
- }
108
- const arr = [];
109
- let _arr = [];
110
- const values = inputValue.value.split("");
111
- values.forEach((str, index) => {
112
- if (CALCULATIONSYMBOLS.includes(str)) {
113
- arr.push(_arr.join(""));
114
- _arr = [];
115
- } else {
116
- _arr.push(str);
117
- if (index === values.length - 1)
118
- arr.push(_arr.join(""));
119
- }
120
- });
121
- const isSuccess = arr.every((value, index) => {
122
- if (index === 0 && !value)
123
- return true;
124
- return /^\d*(.\d+)?$/.test(value);
125
- });
126
- if (!isSuccess)
127
- return false;
128
- return true;
129
- }
130
- function doDelete() {
131
- if (!inputValue.value)
132
- return;
133
- const value = inputValue.value;
134
- inputValue.value = value.slice(0, value.length - 1);
135
- }
136
- function updateFraction(value) {
137
- if (!setInputStatus(inputValue, inputValueStatus))
138
- return;
139
- inputValue.value = (Math.round(+inputValue.value * (1 / value) * 100) / 100).toString();
140
- setInputValueStatus();
141
- }
142
- function calculateFraction() {
143
- if (!setInputStatus(inputValue, inputValueStatus) || !setInputStatus(numeratorValue, numeratorValueStatus, true) || !setInputStatus(denominatorValue, denominatorValueStatus, true))
144
- return;
145
- const value = getNumber(integerValue.value) + getNumber(numeratorValue.value) / getNumber(denominatorValue.value);
146
- inputValue.value = (Math.round(+inputValue.value * value * 100) / 100).toString();
147
- setInputValueStatus();
148
- }
149
- function setInputStatus(valueRef, statusRef, isInteger) {
150
- if (!isInteger && (!valueRef.value || valueRef.value === ".") || isInteger && !valueRef.value) {
151
- statusRef.value = "error";
152
- return;
153
- }
154
- return true;
155
- }
156
- function setInputValueStatus() {
157
- inputValueStatus.value = !inputValue.value ? "error" : "success";
158
- }
159
- watch(
160
- () => props.value,
161
- (value) => inputValue.value = (value || "").toString(),
162
- {
163
- immediate: true
164
- }
165
- );
166
- return (_ctx, _cache) => {
167
- return openBlock(), createElementBlock("div", {
168
- class: normalizeClass(["c-keyboard", { isFixed: __props.drag }]),
169
- ref_key: "keyboardRef",
170
- ref: keyboardRef,
171
- style: normalizeStyle(unref(style))
172
- }, [
173
- createElementVNode("div", {
174
- class: normalizeClass(["left", { isDose: unref(isDose) }])
175
- }, [
176
- createVNode(InputNumber, {
177
- modelValue: inputValue.value,
178
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event),
179
- status: inputValueStatus.value,
180
- "onUpdate:status": _cache[1] || (_cache[1] = ($event) => inputValueStatus.value = $event),
181
- select: inputSelect.value,
182
- "onUpdate:select": _cache[2] || (_cache[2] = ($event) => inputSelect.value = $event)
183
- }, null, 8, ["modelValue", "status", "select"]),
184
- createElementVNode("div", _hoisted_1, [
185
- createVNode(unref(NSpace), {
186
- class: "margin-offset",
187
- "wrap-item": false
188
- }, {
189
- default: withCtx(() => [
190
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(numberKeys), (key2) => {
191
- return openBlock(), createElementBlock("span", {
192
- key: key2,
193
- class: normalizeClass(key2 === "0" ? "is-0" : ""),
194
- onClick: ($event) => keydown(key2)
195
- }, toDisplayString(key2), 11, _hoisted_2);
196
- }), 128))
197
- ]),
198
- _: 1
199
- }),
200
- createVNode(unref(NSpace), {
201
- class: "margin-offset",
202
- "wrap-item": false
203
- }, {
204
- default: withCtx(() => [
205
- createElementVNode("span", {
206
- class: "opt",
207
- onClick: _cache[3] || (_cache[3] = ($event) => keydown("Undo"))
208
- }, [
209
- createVNode(unref(NIcon), { component: unref(ArrowUndoSharp) }, null, 8, ["component"])
210
- ]),
211
- createElementVNode("span", {
212
- class: "opt",
213
- onClick: _cache[4] || (_cache[4] = ($event) => keydown("Enter"))
214
- }, "\u786E\u5B9A")
215
- ]),
216
- _: 1
217
- })
218
- ])
219
- ], 2),
220
- unref(isDay) ? (openBlock(), createBlock(unref(NSpace), {
221
- key: 0,
222
- class: "right-days",
223
- "wrap-item": false,
224
- justify: "center",
225
- vertical: ""
226
- }, {
227
- default: withCtx(() => [
228
- (openBlock(true), createElementBlock(Fragment, null, renderList(days.value, (day) => {
229
- return openBlock(), createElementBlock("span", {
230
- class: "btn",
231
- key: day,
232
- onClick: ($event) => keydown(day)
233
- }, toDisplayString(day) + "\u5929", 9, _hoisted_3);
234
- }), 128))
235
- ]),
236
- _: 1
237
- })) : createCommentVNode("v-if", true),
238
- unref(isDose) ? (openBlock(), createBlock(unref(NSpace), {
239
- key: 1,
240
- class: "right-dose",
241
- "wrap-item": false
242
- }, {
243
- default: withCtx(() => [
244
- createElementVNode("div", _hoisted_4, [
245
- (openBlock(true), createElementBlock(Fragment, null, renderList(doses.value, (dose) => {
246
- return openBlock(), createElementBlock("span", {
247
- class: "btn",
248
- key: dose,
249
- onClick: ($event) => updateFraction(dose)
250
- }, "1/" + toDisplayString(dose), 9, _hoisted_5);
251
- }), 128))
252
- ]),
253
- createVNode(unref(NSpace), {
254
- justify: "center",
255
- vertical: "",
256
- "wrap-item": false
257
- }, {
258
- default: withCtx(() => [
259
- createElementVNode("div", _hoisted_6, [
260
- createVNode(InputNumber, {
261
- integer: "",
262
- modelValue: integerValue.value,
263
- "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => integerValue.value = $event)
264
- }, null, 8, ["modelValue"]),
265
- createElementVNode("div", _hoisted_7, [
266
- createVNode(InputNumber, {
267
- integer: "",
268
- modelValue: numeratorValue.value,
269
- "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => numeratorValue.value = $event),
270
- status: numeratorValueStatus.value,
271
- "onUpdate:status": _cache[7] || (_cache[7] = ($event) => numeratorValueStatus.value = $event)
272
- }, null, 8, ["modelValue", "status"]),
273
- _hoisted_8,
274
- createVNode(InputNumber, {
275
- integer: "",
276
- modelValue: denominatorValue.value,
277
- "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => denominatorValue.value = $event),
278
- status: denominatorValueStatus.value,
279
- "onUpdate:status": _cache[9] || (_cache[9] = ($event) => denominatorValueStatus.value = $event)
280
- }, null, 8, ["modelValue", "status"])
281
- ])
282
- ]),
283
- createElementVNode("span", {
284
- class: "btn",
285
- onClick: calculateFraction
286
- }, "\u5206\u5B50\u5F0F\u5242\u91CF")
287
- ]),
288
- _: 1
289
- })
290
- ]),
291
- _: 1
292
- })) : createCommentVNode("v-if", true)
293
- ], 6);
294
- };
295
- }
296
- });
297
- var NumberPanel = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "NumberPanel.vue"]]);
298
-
299
- export { NumberPanel as default };
1
+ import{defineComponent,computed,ref,watch,openBlock,createElementBlock,normalizeClass,normalizeStyle,unref,createElementVNode,createVNode,withCtx,Fragment,renderList,toDisplayString,createBlock,createCommentVNode,nextTick}from"vue";import{NSpace,NIcon}from"naive-ui";import{ArrowUndoSharp}from"@vicons/ionicons5";import InputNumber from"./InputNumber.vue.js";import{useDraggable}from"@vueuse/core";import{getNumber}from"../utils/index.js";import _export_sfc from"../../../../_virtual/plugin-vue_export-helper.js";const _hoisted_1={class:"keys"},_hoisted_2=["onClick"],_hoisted_3=["onClick"],_hoisted_4={class:"btns"},_hoisted_5=["onClick"],_hoisted_6={class:"inputs"},_hoisted_7={class:"inputs-right"},_hoisted_8=createElementVNode("hr",null,null,-1),_sfc_main=defineComponent({__name:"NumberPanel",props:{defaultValue:{type:Number},value:{type:Number},mode:{type:String},positionInitialValue:{type:Object,default:()=>({x:0,y:0})},moveOffset:{type:Object,default:()=>({x:0,y:0})},drag:{type:Boolean,default:!1}},emits:["change"],setup(__props,{emit:emit}){const props=__props,NUMBERKEYS="1234567890.",DAYS=[3,7,14,30],DOSENUMBERKEYS="123/456*789-0.+",CALCULATIONSYMBOLS=["+","-","*","/"],isNumber=computed((()=>"number"===props.mode)),isDay=computed((()=>"day"===props.mode&&!isNumber.value)),isDose=computed((()=>"dose"===props.mode&&!isNumber.value)),numberKeys=computed((()=>(isDose.value?DOSENUMBERKEYS:NUMBERKEYS).split(""))),days=ref(DAYS),doses=ref([2,3,4,5,6,7,8]),inputValue=ref(""),integerValue=ref(),numeratorValue=ref(),denominatorValue=ref(),inputValueStatus=ref("success"),numeratorValueStatus=ref("success"),denominatorValueStatus=ref("success"),keyboardRef=ref(null),inputRef=ref(null),style=init();function init(){if(props.defaultValue&&(inputValue.value=props.defaultValue.toString()),props.drag){const{x:e,y:t,style:a}=useDraggable(keyboardRef,{initialValue:props.positionInitialValue,onMove:(e,t)=>{var a,u,l,n;e.x+=null!=(u=null==(a=props.moveOffset)?void 0:a.x)?u:0,e.y+=null!=(n=null==(l=props.moveOffset)?void 0:l.y)?n:0}});return a}}async function keydown(key){var _a,_b,_c;switch(key){case"Undo":doDelete(),setInputValueStatus();break;case"Enter":if(!validator())return void(inputValueStatus.value="error");emit("change",eval(inputValue.value));break;default:if("number"==typeof key)inputValue.value=key.toString();else{const e=null==(_c=null==(_b=null==(_a=inputRef.value)?void 0:_a.$childrenRefs)?void 0:_b.$refs)?void 0:_c.inputElRef,{selectionStart:t,selectionEnd:a}=e,u=inputValue.value.split("");u.splice(t,a-t,key),inputValue.value=u.join(""),await nextTick(),e.focus(),e.setSelectionRange(t+1,t+1)}setInputValueStatus()}}function validator(){if(!inputValue.value)return!1;if(CALCULATIONSYMBOLS.slice(2).includes(inputValue.value[0]))return!1;if(CALCULATIONSYMBOLS.includes(inputValue.value[inputValue.value.length-1]))return!1;const e=[];let t=[];const a=inputValue.value.split("");a.forEach(((u,l)=>{CALCULATIONSYMBOLS.includes(u)?(e.push(t.join("")),t=[]):(t.push(u),l===a.length-1&&e.push(t.join("")))}));return!!e.every(((e,t)=>0===t&&!e||/^\d*(.\d+)?$/.test(e)))}function doDelete(){if(!inputValue.value)return;const e=inputValue.value;inputValue.value=e.slice(0,e.length-1)}function updateFraction(e){setInputStatus(inputValue,inputValueStatus)&&(inputValue.value=(Math.round(+inputValue.value*(1/e)*100)/100).toString(),setInputValueStatus())}function calculateFraction(){if(!setInputStatus(inputValue,inputValueStatus)||!setInputStatus(numeratorValue,numeratorValueStatus,!0)||!setInputStatus(denominatorValue,denominatorValueStatus,!0))return;const e=getNumber(integerValue.value)+getNumber(numeratorValue.value)/getNumber(denominatorValue.value);inputValue.value=(Math.round(+inputValue.value*e*100)/100).toString(),setInputValueStatus()}function setInputStatus(e,t,a){if((a||e.value&&"."!==e.value)&&(!a||e.value))return!0;t.value="error"}function setInputValueStatus(){inputValueStatus.value=inputValue.value?"success":"error"}return watch((()=>props.value),(e=>inputValue.value=(e||"").toString()),{immediate:!0}),(e,t)=>(openBlock(),createElementBlock("div",{class:normalizeClass(["c-keyboard",{isFixed:__props.drag}]),ref_key:"keyboardRef",ref:keyboardRef,style:normalizeStyle(unref(style))},[createElementVNode("div",{class:normalizeClass(["left",{isDose:unref(isDose)}])},[createVNode(InputNumber,{ref_key:"inputRef",ref:inputRef,modelValue:inputValue.value,"onUpdate:modelValue":t[0]||(t[0]=e=>inputValue.value=e),status:inputValueStatus.value,"onUpdate:status":t[1]||(t[1]=e=>inputValueStatus.value=e)},null,8,["modelValue","status"]),createElementVNode("div",_hoisted_1,[createVNode(unref(NSpace),{class:"margin-offset","wrap-item":!1},{default:withCtx((()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(numberKeys),(e=>(openBlock(),createElementBlock("span",{key:e,class:normalizeClass("0"===e?"is-0":""),onClick:t=>keydown(e)},toDisplayString(e),11,_hoisted_2)))),128))])),_:1}),createVNode(unref(NSpace),{class:"margin-offset","wrap-item":!1},{default:withCtx((()=>[createElementVNode("span",{class:"opt",onClick:t[2]||(t[2]=e=>keydown("Undo"))},[createVNode(unref(NIcon),{component:unref(ArrowUndoSharp)},null,8,["component"])]),createElementVNode("span",{class:"opt",onClick:t[3]||(t[3]=e=>keydown("Enter"))},"确定")])),_:1})])],2),unref(isDay)?(openBlock(),createBlock(unref(NSpace),{key:0,class:"right-days","wrap-item":!1,justify:"center",vertical:""},{default:withCtx((()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(days.value,(e=>(openBlock(),createElementBlock("span",{class:"btn",key:e,onClick:t=>keydown(e)},toDisplayString(e)+"天",9,_hoisted_3)))),128))])),_:1})):createCommentVNode("v-if",!0),unref(isDose)?(openBlock(),createBlock(unref(NSpace),{key:1,class:"right-dose","wrap-item":!1},{default:withCtx((()=>[createElementVNode("div",_hoisted_4,[(openBlock(!0),createElementBlock(Fragment,null,renderList(doses.value,(e=>(openBlock(),createElementBlock("span",{class:"btn",key:e,onClick:t=>updateFraction(e)},"1/"+toDisplayString(e),9,_hoisted_5)))),128))]),createVNode(unref(NSpace),{justify:"center",vertical:"","wrap-item":!1},{default:withCtx((()=>[createElementVNode("div",_hoisted_6,[createVNode(InputNumber,{integer:"",modelValue:integerValue.value,"onUpdate:modelValue":t[4]||(t[4]=e=>integerValue.value=e)},null,8,["modelValue"]),createElementVNode("div",_hoisted_7,[createVNode(InputNumber,{integer:"",modelValue:numeratorValue.value,"onUpdate:modelValue":t[5]||(t[5]=e=>numeratorValue.value=e),status:numeratorValueStatus.value,"onUpdate:status":t[6]||(t[6]=e=>numeratorValueStatus.value=e)},null,8,["modelValue","status"]),_hoisted_8,createVNode(InputNumber,{integer:"",modelValue:denominatorValue.value,"onUpdate:modelValue":t[7]||(t[7]=e=>denominatorValue.value=e),status:denominatorValueStatus.value,"onUpdate:status":t[8]||(t[8]=e=>denominatorValueStatus.value=e)},null,8,["modelValue","status"])])]),createElementVNode("span",{class:"btn",onClick:calculateFraction},"分子式剂量")])),_:1})])),_:1})):createCommentVNode("v-if",!0)],6))}});var NumberPanel=_export_sfc(_sfc_main,[["__file","NumberPanel.vue"]]);export{NumberPanel as default};
@@ -1,5 +1 @@
1
- function getNumber(value) {
2
- return +(value || 0);
3
- }
4
-
5
- export { getNumber };
1
+ function n(n){return+(n||0)}export{n as getNumber};
@@ -1,10 +1 @@
1
- import { COMPONENT_NAMESPACE } from '../../shared/global/variable.js';
2
- import { safeComponentRegister } from '../../shared/utils/index.js';
3
- import script from './src/Map.vue.js';
4
-
5
- const Map = script;
6
- Map.install = function(app) {
7
- safeComponentRegister(app, Map, COMPONENT_NAMESPACE + "Map");
8
- };
9
-
10
- export { Map as default };
1
+ import{COMPONENT_NAMESPACE as r}from"../../shared/global/variable.js";import{safeComponentRegister as a}from"../../shared/utils/index.js";import o from"./src/Map.vue.js";const s=o;s.install=function(o){a(o,s,r+"Map")};export{s as default};
@@ -1,336 +1 @@
1
- import { defineComponent, reactive, computed, onMounted, openBlock, createElementBlock, createElementVNode, createVNode, unref, withCtx, createTextVNode, toDisplayString, Fragment, renderList, createCommentVNode } from 'vue';
2
- import { useMessage, NInput, NButton } from 'naive-ui';
3
- import _export_sfc from '../../../_virtual/plugin-vue_export-helper.js';
4
-
5
- const _hoisted_1 = { class: "c-map" };
6
- const _hoisted_2 = { class: "search-container" };
7
- const _hoisted_3 = { class: "map-input-search" };
8
- const _hoisted_4 = { class: "input-addon" };
9
- const _hoisted_5 = /* @__PURE__ */ createElementVNode("div", { id: "map-core" }, null, -1);
10
- const _hoisted_6 = {
11
- key: 0,
12
- class: "address-list"
13
- };
14
- const _hoisted_7 = ["onClick"];
15
- const _hoisted_8 = { class: "title" };
16
- const _sfc_main = /* @__PURE__ */ defineComponent({
17
- __name: "Map",
18
- props: {
19
- locationProp: { type: String, default: "" },
20
- ak: {
21
- type: String,
22
- default: "KP3BZ-OAC3W-PY6RY-OJ6DV-JYKN3-H6F72"
23
- }
24
- },
25
- emits: ["selectLocation"],
26
- setup(__props, { emit }) {
27
- const props = __props;
28
- const state = reactive({
29
- qq: null,
30
- searchKey: "",
31
- centrePoint: {},
32
- location: { lng: "", lat: "" },
33
- localObj: {},
34
- map: null,
35
- ac: null,
36
- addressList: [],
37
- markers: [],
38
- timeout: null,
39
- searchService: null,
40
- geocoder: {}
41
- });
42
- const defAdress = computed(() => {
43
- var _a, _b;
44
- return (_b = (_a = state.addressList) == null ? void 0 : _a[0]) == null ? void 0 : _b.name;
45
- });
46
- const calculateLocationProp = computed(() => {
47
- return props.locationProp && JSON.parse(props.locationProp) || null;
48
- });
49
- const message = useMessage();
50
- const showPosition = (r) => {
51
- if (r && r.module == "geolocation") {
52
- state.location.lng = r.lng;
53
- state.location.lat = r.lat;
54
- let qq = state.qq;
55
- const new_opint = new qq.maps.LatLng(r.lat, r.lng);
56
- handleGeocoder({ latLng: new_opint });
57
- hdnelSetMapcenter({ lat: r.lat, lng: r.lng });
58
- } else {
59
- console.log("\u7528\u6237\u4E0D\u5141\u8BB8\u83B7\u53D6\u5730\u7406\u4F4D\u7F6E");
60
- state.location.lng = 113.275;
61
- state.location.lat = 23.117;
62
- }
63
- };
64
- const getLocation = () => {
65
- const qq = state.qq;
66
- const geolocation = new qq.maps.Geolocation(props.ak, "qqmap");
67
- const options = { timeout: 9e3 };
68
- const showErr = function(err) {
69
- console.log(err);
70
- };
71
- geolocation.getLocation(showPosition, showErr, options);
72
- };
73
- const hdnelSetMapcenter = (location) => {
74
- const qq = state.qq;
75
- var new_opint = new qq.maps.LatLng(location.lat, location.lng);
76
- state.centrePoint = new_opint;
77
- state.map.panTo(new_opint);
78
- const mk = new qq.maps.Marker({
79
- position: new_opint,
80
- map: state.map
81
- });
82
- state.markers.push(mk);
83
- };
84
- const initSearch = () => {
85
- const qq = state.qq;
86
- state.searchService = new qq.maps.SearchService({
87
- complete: function(results) {
88
- var pois = results.detail.pois || [];
89
- var latlngBounds = new qq.maps.LatLngBounds();
90
- if (results.type === "CITY_LIST") {
91
- state.searchService.setLocation(results.detail.cities[0].cityName);
92
- state.searchService.search(state.searchKey);
93
- return;
94
- }
95
- state.addressList = pois || [];
96
- handleClearOverLays();
97
- if (results.type === "POI_LIST") {
98
- for (var i = 0, l = pois.length; i < l; i++) {
99
- var poi = pois[i];
100
- latlngBounds.extend(poi.latLng);
101
- (function(n) {
102
- var marker = new qq.maps.Marker({
103
- map: state.map
104
- });
105
- marker.setPosition(pois[n].latLng);
106
- marker.setTitle(i + 1);
107
- state.markers.push(marker);
108
- })(i);
109
- }
110
- }
111
- state.map.fitBounds(latlngBounds);
112
- },
113
- error: function(e) {
114
- console.log(e);
115
- if (e === "NO_RESULTS") {
116
- message.warning("\u67E5\u65E0\u7ED3\u679C\uFF01");
117
- return;
118
- }
119
- message.warning("\u5730\u5740\u68C0\u7D22\u5148\u8F93\u5165\u57CE\u5E02\u540D\u79F0");
120
- },
121
- autoExtend: true
122
- });
123
- };
124
- const clearOverlays = (overlays) => {
125
- var overlay;
126
- while (overlay = overlays.pop()) {
127
- overlay.setMap(null);
128
- }
129
- };
130
- const handleClearOverLays = () => {
131
- if (state.markers && state.markers.length) {
132
- clearOverlays(state.markers);
133
- }
134
- state.markers = [];
135
- };
136
- const handleGeocoder = (config = {}) => {
137
- const qq = state.qq;
138
- const latLng = config.latLng;
139
- const geocoder = new qq.maps.Geocoder();
140
- geocoder.setComplete((result) => {
141
- if (result.type === "GEO_INFO") {
142
- var latlngBounds = new qq.maps.LatLngBounds();
143
- var nearPois = result.detail.nearPois || [];
144
- handleClearOverLays();
145
- state.addressList = nearPois || [];
146
- for (let index = 0; index < nearPois.length; index++) {
147
- const pois = nearPois[index];
148
- var marker = new qq.maps.Marker({
149
- map: state.map
150
- });
151
- marker.setPosition(pois.latLng);
152
- marker.setTitle(index + 1);
153
- state.markers.push(marker);
154
- latlngBounds.extend(pois.latLng);
155
- }
156
- state.map.fitBounds(latlngBounds);
157
- }
158
- var location = result.detail.location || {};
159
- hdnelSetMapcenter(location);
160
- });
161
- geocoder.setError(function() {
162
- alert("\u51FA\u9519\u4E86\uFF0C\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u7ECF\u7EAC\u5EA6\uFF01\uFF01\uFF01");
163
- });
164
- geocoder.getAddress(latLng);
165
- };
166
- const init = () => {
167
- const qq = state.qq;
168
- qq.maps.event.addDomListener(state.map, "click", function(event) {
169
- handleGeocoder({ latLng: event.latLng });
170
- });
171
- };
172
- const searchKeyword = () => {
173
- let value = state.searchKey;
174
- if (!value)
175
- return;
176
- if (state.markers && state.markers.length) {
177
- clearOverlays(state.markers);
178
- }
179
- state.searchService.setLocation("");
180
- state.searchService.setPageCapacity(50);
181
- state.searchService.search(value);
182
- };
183
- const selectLocation = (item, tag) => {
184
- const qq = state.qq;
185
- const { name, address, latLng } = item;
186
- const { lat, lng } = latLng;
187
- const geocoder = new qq.maps.Geocoder();
188
- geocoder.setComplete(function(result) {
189
- if (result.type === "GEO_INFO") {
190
- const {
191
- addressComponents: { province, city, district, country }
192
- } = result.detail;
193
- const emitData = JSON.stringify({
194
- name,
195
- address,
196
- province,
197
- city,
198
- district,
199
- country,
200
- lat,
201
- lng
202
- });
203
- emit("selectLocation", {
204
- locationProp: emitData,
205
- isInit: false
206
- });
207
- }
208
- });
209
- geocoder.setError(function() {
210
- alert("\u51FA\u9519\u4E86\uFF0C\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u7ECF\u7EAC\u5EA6\uFF01\uFF01\uFF01");
211
- });
212
- geocoder.getAddress(latLng);
213
- };
214
- const setMap = (qq) => {
215
- var myLatlng = new qq.maps.LatLng(39.916527, 116.397128);
216
- var myOptions = {
217
- zoom: 12,
218
- center: myLatlng,
219
- mapTypeId: qq.maps.MapTypeId.ROADMAP
220
- };
221
- state.map = new qq.maps.Map(document.getElementById("map-core"), myOptions);
222
- const { lat, lng, address } = calculateLocationProp.value || {};
223
- if (lat && lng) {
224
- const new_opint = new qq.maps.LatLng(lat, lng);
225
- handleGeocoder({ latLng: new_opint });
226
- } else if (address) {
227
- setTimeout(() => {
228
- searchKeyword();
229
- }, 300);
230
- } else {
231
- getLocation();
232
- }
233
- init();
234
- };
235
- const initMap = (qq) => {
236
- state.qq = qq;
237
- setTimeout(() => {
238
- setMap(qq);
239
- initSearch();
240
- }, 0);
241
- };
242
- const getMapScript = () => {
243
- var _a, _b;
244
- let _win = window;
245
- if (!_win.qq) {
246
- const ak = props.ak || ((_b = (_a = _win._qq) == null ? void 0 : _a.call(_win)) == null ? void 0 : _b.ak);
247
- _win.qq = {};
248
- _win.qq._preloader = new Promise((resolve) => {
249
- _win._initBaiduMap = function() {
250
- resolve(_win.qq);
251
- _win.document.body.removeChild($script);
252
- _win.qq._preloader = null;
253
- _win._initBaiduMap = null;
254
- };
255
- const $script = document.createElement("script");
256
- window.document.body.appendChild($script);
257
- $script.src = `https://map.qq.com/api/js?v=2.exp&key=${ak}&callback=_initBaiduMap`;
258
- const $script1 = document.createElement("script");
259
- window.document.body.appendChild($script1);
260
- $script1.src = `https://3gimg.qq.com/lightmap/components/geolocation/geolocation.min.js`;
261
- });
262
- return _win.qq._preloader;
263
- } else if (!_win.qq._preloader) {
264
- return Promise.resolve(_win.qq);
265
- } else {
266
- return _win.qq._preloader;
267
- }
268
- };
269
- const reset = () => {
270
- getMapScript().then(initMap);
271
- };
272
- onMounted(() => {
273
- setTimeout(() => {
274
- reset();
275
- }, 200);
276
- });
277
- return (_ctx, _cache) => {
278
- return openBlock(), createElementBlock("div", _hoisted_1, [
279
- createElementVNode("div", _hoisted_2, [
280
- createElementVNode("div", _hoisted_3, [
281
- createVNode(unref(NInput), {
282
- value: state.searchKey,
283
- "onUpdate:value": _cache[0] || (_cache[0] = ($event) => state.searchKey = $event),
284
- placeholder: "\u8BF7\u8F93\u5165\u5730\u5740",
285
- "enter-button": "\u68C0\u7D22"
286
- }, null, 8, ["value"]),
287
- createElementVNode("span", _hoisted_4, [
288
- createVNode(unref(NButton), {
289
- type: "primary",
290
- size: "small",
291
- onClick: searchKeyword
292
- }, {
293
- default: withCtx(() => [
294
- createTextVNode("\u68C0\u7D22")
295
- ]),
296
- _: 1
297
- })
298
- ])
299
- ])
300
- ]),
301
- _hoisted_5,
302
- state.addressList && state.addressList.length ? (openBlock(), createElementBlock("ul", _hoisted_6, [
303
- createElementVNode("li", null, [
304
- createTextVNode(" \u5730\u5740:" + toDisplayString(unref(defAdress)) + " ", 1),
305
- createVNode(unref(NButton), {
306
- type: "primary",
307
- size: "small",
308
- onClick: _cache[1] || (_cache[1] = ($event) => selectLocation(state.addressList[0]))
309
- }, {
310
- default: withCtx(() => [
311
- createTextVNode("\u786E\u5B9A")
312
- ]),
313
- _: 1
314
- })
315
- ]),
316
- (openBlock(true), createElementBlock(Fragment, null, renderList(state.addressList, (item, index) => {
317
- return openBlock(), createElementBlock("li", {
318
- class: "address-item",
319
- key: index
320
- }, [
321
- createElementVNode("div", {
322
- onClick: ($event) => selectLocation(item)
323
- }, [
324
- createElementVNode("div", _hoisted_8, toDisplayString(item.name), 1),
325
- createElementVNode("span", null, toDisplayString(item.address), 1)
326
- ], 8, _hoisted_7)
327
- ]);
328
- }), 128))
329
- ])) : createCommentVNode("v-if", true)
330
- ]);
331
- };
332
- }
333
- });
334
- var script = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "Map.vue"]]);
335
-
336
- export { script as default };
1
+ import{defineComponent as e,reactive as a,computed as t,onMounted as n,openBlock as s,createElementBlock as o,createElementVNode as r,createVNode as l,unref as i,withCtx as c,createTextVNode as p,toDisplayString as d,Fragment as m,renderList as u,createCommentVNode as g}from"vue";import{useMessage as v,NInput as q,NButton as L}from"naive-ui";import h from"../../../_virtual/plugin-vue_export-helper.js";const f={class:"c-map"},y={class:"search-container"},k={class:"map-input-search"},w={class:"input-addon"},_=r("div",{id:"map-core"},null,-1),S={key:0,class:"address-list"},P=["onClick"],C={class:"title"};var M=h(e({__name:"Map",props:{locationProp:{type:String,default:""},ak:{type:String,default:"KP3BZ-OAC3W-PY6RY-OJ6DV-JYKN3-H6F72"}},emits:["selectLocation"],setup(e,{emit:h}){const M=e,O=a({qq:null,searchKey:"",centrePoint:{},location:{lng:"",lat:""},localObj:{},map:null,ac:null,addressList:[],markers:[],timeout:null,searchService:null,geocoder:{}}),T=t((()=>{var e,a;return null==(a=null==(e=O.addressList)?void 0:e[0])?void 0:a.name})),I=t((()=>M.locationProp&&JSON.parse(M.locationProp)||null)),B=v(),E=e=>{if(e&&"geolocation"==e.module){O.location.lng=e.lng,O.location.lat=e.lat;const a=new O.qq.maps.LatLng(e.lat,e.lng);x({latLng:a}),K({lat:e.lat,lng:e.lng})}else console.log("用户不允许获取地理位置"),O.location.lng=113.275,O.location.lat=23.117},K=e=>{const a=O.qq;var t=new a.maps.LatLng(e.lat,e.lng);O.centrePoint=t,O.map.panTo(t);const n=new a.maps.Marker({position:t,map:O.map});O.markers.push(n)},N=e=>{for(var a;a=e.pop();)a.setMap(null)},b=()=>{O.markers&&O.markers.length&&N(O.markers),O.markers=[]},x=(e={})=>{const a=O.qq,t=e.latLng,n=new a.maps.Geocoder;n.setComplete((e=>{if("GEO_INFO"===e.type){var t=new a.maps.LatLngBounds,n=e.detail.nearPois||[];b(),O.addressList=n||[];for(let e=0;e<n.length;e++){const o=n[e];var s=new a.maps.Marker({map:O.map});s.setPosition(o.latLng),s.setTitle(e+1),O.markers.push(s),t.extend(o.latLng)}O.map.fitBounds(t)}var o=e.detail.location||{};K(o)})),n.setError((function(){alert("出错了,请输入正确的经纬度!!!")})),n.getAddress(t)},A=()=>{let e=O.searchKey;e&&(O.markers&&O.markers.length&&N(O.markers),O.searchService.setLocation(""),O.searchService.setPageCapacity(50),O.searchService.search(e))},G=(e,a)=>{const t=O.qq,{name:n,address:s,latLng:o}=e,{lat:r,lng:l}=o,i=new t.maps.Geocoder;i.setComplete((function(e){if("GEO_INFO"===e.type){const{addressComponents:{province:a,city:t,district:o,country:i}}=e.detail,c=JSON.stringify({name:n,address:s,province:a,city:t,district:o,country:i,lat:r,lng:l});h("selectLocation",{locationProp:c,isInit:!1})}})),i.setError((function(){alert("出错了,请输入正确的经纬度!!!")})),i.getAddress(o)},j=e=>{var a={zoom:12,center:new e.maps.LatLng(39.916527,116.397128),mapTypeId:e.maps.MapTypeId.ROADMAP};O.map=new e.maps.Map(document.getElementById("map-core"),a);const{lat:t,lng:n,address:s}=I.value||{};if(t&&n){const a=new e.maps.LatLng(t,n);x({latLng:a})}else s?setTimeout((()=>{A()}),300):new O.qq.maps.Geolocation(M.ak,"qqmap").getLocation(E,(function(e){console.log(e)}),{timeout:9e3});O.qq.maps.event.addDomListener(O.map,"click",(function(e){x({latLng:e.latLng})}))},J=e=>{O.qq=e,setTimeout((()=>{j(e),(()=>{const e=O.qq;O.searchService=new e.maps.SearchService({complete:function(a){var t,n,s=a.detail.pois||[],o=new e.maps.LatLngBounds;if("CITY_LIST"===a.type)return O.searchService.setLocation(a.detail.cities[0].cityName),void O.searchService.search(O.searchKey);if(O.addressList=s||[],b(),"POI_LIST"===a.type)for(var r=0,l=s.length;r<l;r++){var i=s[r];o.extend(i.latLng),t=r,n=void 0,(n=new e.maps.Marker({map:O.map})).setPosition(s[t].latLng),n.setTitle(r+1),O.markers.push(n)}O.map.fitBounds(o)},error:function(e){console.log(e),"NO_RESULTS"!==e?B.warning("地址检索先输入城市名称"):B.warning("查无结果!")},autoExtend:!0})})()}),0)},Y=()=>{(()=>{var e,a;let t=window;if(t.qq)return t.qq._preloader?t.qq._preloader:Promise.resolve(t.qq);{const n=M.ak||(null==(a=null==(e=t._qq)?void 0:e.call(t))?void 0:a.ak);return t.qq={},t.qq._preloader=new Promise((e=>{t._initBaiduMap=function(){e(t.qq),t.document.body.removeChild(a),t.qq._preloader=null,t._initBaiduMap=null};const a=document.createElement("script");window.document.body.appendChild(a),a.src=`https://map.qq.com/api/js?v=2.exp&key=${n}&callback=_initBaiduMap`;const s=document.createElement("script");window.document.body.appendChild(s),s.src="https://3gimg.qq.com/lightmap/components/geolocation/geolocation.min.js"})),t.qq._preloader}})().then(J)};return n((()=>{setTimeout((()=>{Y()}),200)})),(e,a)=>(s(),o("div",f,[r("div",y,[r("div",k,[l(i(q),{value:O.searchKey,"onUpdate:value":a[0]||(a[0]=e=>O.searchKey=e),placeholder:"请输入地址","enter-button":"检索"},null,8,["value"]),r("span",w,[l(i(L),{type:"primary",size:"small",onClick:A},{default:c((()=>[p("检索")])),_:1})])])]),_,O.addressList&&O.addressList.length?(s(),o("ul",S,[r("li",null,[p(" 地址:"+d(i(T))+" ",1),l(i(L),{type:"primary",size:"small",onClick:a[1]||(a[1]=e=>G(O.addressList[0]))},{default:c((()=>[p("确定")])),_:1})]),(s(!0),o(m,null,u(O.addressList,((e,a)=>(s(),o("li",{class:"address-item",key:a},[r("div",{onClick:a=>G(e)},[r("div",C,d(e.name),1),r("span",null,d(e.address),1)],8,P)])))),128))])):g("v-if",!0)]))}}),[["__file","Map.vue"]]);export{M as default};