cnhis-design-vue 3.1.45-beta.0 → 3.1.45-beta.10

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 (356) hide show
  1. package/README.md +87 -87
  2. package/es/components/annotation-edit/src/AnnotationEdit.js +1 -1
  3. package/es/components/base-search/src/index.vue.js +1 -1
  4. package/es/components/base-search/src/index.vue2.js +1 -0
  5. package/es/components/big-table/src/BigTable.vue.js +1 -1
  6. package/es/components/big-table/src/components/NoData.vue.js +1 -1
  7. package/es/components/big-table/src/components/NoData.vue2.js +1 -0
  8. package/es/components/big-table/src/components/edit-form/edit-separate.vue.js +1 -1
  9. package/es/components/big-table/src/components/edit-form/edit-separate.vue2.js +1 -0
  10. package/es/components/big-table/src/components/input-button.vue.js +1 -1
  11. package/es/components/big-table/src/components/input-button.vue2.js +1 -0
  12. package/es/components/big-table/src/components/separate.vue.js +1 -1
  13. package/es/components/big-table/src/components/separate.vue2.js +1 -0
  14. package/es/components/bpmn-workflow/src/BpmnWorkflow.vue.js +1 -1
  15. package/es/components/bpmn-workflow/src/BpmnWorkflow.vue2.js +1 -0
  16. package/es/components/button-print/src/ButtonPrint.vue.js +1 -1
  17. package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
  18. package/es/components/button-print/src/components/EditFormat.vue.js +1 -1
  19. package/es/components/button-print/src/components/EditFormat.vue2.js +1 -0
  20. package/es/components/button-print/src/components/IdentityVerification.vue.js +1 -1
  21. package/es/components/button-print/src/components/IdentityVerification.vue2.js +1 -0
  22. package/es/components/button-print/src/components/Preview.vue.js +1 -1
  23. package/es/components/classification/src/components/search-filter/index.vue.js +1 -1
  24. package/es/components/classification/src/components/search-filter/index.vue2.js +1 -0
  25. package/es/components/classification/src/components/set-classification/index.vue.js +1 -1
  26. package/es/components/classification/src/components/set-classification/index.vue2.js +1 -0
  27. package/es/components/classification/src/components/table-modal/index.vue.js +1 -1
  28. package/es/components/classification/src/components/table-modal/index.vue2.js +1 -0
  29. package/es/components/classification/src/index.vue.js +1 -1
  30. package/es/components/classification/src/index.vue2.js +1 -0
  31. package/es/components/date-picker/src/DatePicker.vue.js +1 -1
  32. package/es/components/date-picker/src/DatePicker.vue2.js +1 -0
  33. package/es/components/fabric-chart/index.d.ts +40 -5
  34. package/es/components/fabric-chart/src/FabricChart.vue.d.ts +40 -5
  35. package/es/components/fabric-chart/src/FabricChart.vue.js +1 -1
  36. package/es/components/fabric-chart/src/FabricChart.vue2.js +1 -0
  37. package/es/components/fabric-chart/src/components/PopupTip.vue.js +1 -1
  38. package/es/components/fabric-chart/src/components/PopupTip.vue2.js +1 -0
  39. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
  40. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/index.d.ts +2 -0
  41. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/index.js +1 -0
  42. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.d.ts +4 -0
  43. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +1 -0
  44. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.d.ts +20 -0
  45. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js +1 -1
  46. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.d.ts +4 -0
  47. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +1 -0
  48. package/es/components/fabric-chart/src/hooks/temperature/useLeft.js +1 -1
  49. package/es/components/fabric-chart/src/hooks/temperature/useRight.js +1 -1
  50. package/es/components/fabric-chart/src/hooks/temperature/useTop.js +1 -1
  51. package/es/components/fabric-chart/src/hooks/useDraw.d.ts +1 -1
  52. package/es/components/fabric-chart/src/hooks/useDraw.js +1 -1
  53. package/es/components/fabric-chart/src/hooks/useGrid.d.ts +1 -1
  54. package/es/components/fabric-chart/src/hooks/useGrid.js +1 -1
  55. package/es/components/fabric-chart/src/interface.d.ts +13 -0
  56. package/es/components/fabric-chart/src/utils/index.d.ts +2 -1
  57. package/es/components/fabric-chart/src/utils/index.js +1 -1
  58. package/es/components/field-set/index.d.ts +157 -38
  59. package/es/components/field-set/src/FieldSet.vue.d.ts +160 -23
  60. package/es/components/field-set/src/FieldSet.vue.js +1 -1
  61. package/es/components/field-set/src/FieldSet.vue2.js +1 -0
  62. package/es/components/field-set/src/components/Row.vue.d.ts +132 -0
  63. package/es/components/field-set/src/components/Row.vue.js +1 -0
  64. package/es/components/field-set/src/components/Row.vue2.js +1 -0
  65. package/es/components/field-set/src/types/index.d.ts +1 -0
  66. package/es/components/field-set/src/utils/index.d.ts +7 -0
  67. package/es/components/field-set/src/utils/index.js +1 -0
  68. package/es/components/field-set/style/index.css +1 -1
  69. package/es/components/form-config/index.d.ts +3534 -21
  70. package/es/components/form-config/src/FormConfig.vue.d.ts +3534 -21
  71. package/es/components/form-config/src/FormConfig.vue.js +1 -1
  72. package/es/components/form-config/src/FormConfig.vue2.js +1 -0
  73. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +31 -4
  74. package/es/components/form-config/src/components/FormConfigCreator.vue.js +1 -1
  75. package/es/components/form-config/src/components/FormConfigCreator.vue2.js +1 -0
  76. package/es/components/form-config/src/components/FormConfigDragDisplay.vue.js +1 -1
  77. package/es/components/form-config/src/components/FormConfigDragDisplay.vue2.js +1 -0
  78. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +33 -4
  79. package/es/components/form-config/src/components/FormConfigEdit.vue.js +1 -1
  80. package/es/components/form-config/src/components/FormConfigEdit.vue2.js +1 -0
  81. package/es/components/form-config/src/components/FormConfigMaterialItem.d.ts +11 -1
  82. package/es/components/form-config/src/components/FormConfigMaterialItem.js +1 -1
  83. package/es/components/form-config/src/components/renderer/CloseButton.vue.js +1 -1
  84. package/es/components/form-config/src/components/renderer/CloseButton.vue2.js +1 -0
  85. package/es/components/form-config/src/components/renderer/ComplexNode.vue.js +1 -1
  86. package/es/components/form-config/src/components/renderer/ComplexNode.vue2.js +1 -0
  87. package/es/components/form-config/src/components/renderer/DefaultNode.vue.d.ts +2 -0
  88. package/es/components/form-config/src/components/renderer/DefaultNode.vue.js +1 -1
  89. package/es/components/form-config/src/components/renderer/DefaultNode.vue2.js +1 -0
  90. package/es/components/form-config/src/constants/index.d.ts +1 -0
  91. package/es/components/form-config/src/constants/index.js +1 -1
  92. package/es/components/form-config/src/hooks/useSortalbeConfig.js +1 -1
  93. package/es/components/form-config/src/types/index.d.ts +2 -0
  94. package/es/components/form-config/style/index.css +1 -1
  95. package/es/components/form-render/index.d.ts +31 -4
  96. package/es/components/form-render/src/FormRender.vue.d.ts +31 -4
  97. package/es/components/form-render/src/FormRender.vue.js +1 -1
  98. package/es/components/form-render/src/FormRender.vue2.js +1 -0
  99. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +31 -4
  100. package/es/components/form-render/src/FormRenderWrapper.vue.js +1 -1
  101. package/es/components/form-render/src/FormRenderWrapper.vue2.js +1 -0
  102. package/es/components/form-render/src/components/renderer/combination.d.ts +5 -5
  103. package/es/components/form-render/src/components/renderer/combination.js +1 -1
  104. package/es/components/form-render/src/components/renderer/formItem.js +1 -1
  105. package/es/components/form-render/src/components/renderer/jsonCombination/index.d.ts +5 -5
  106. package/es/components/form-render/src/components/renderer/jsonCombination/index.js +1 -1
  107. package/es/components/form-render/src/components/renderer/levelSearchCascader.js +1 -1
  108. package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.js +1 -1
  109. package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue2.js +1 -0
  110. package/es/components/form-render/src/components/renderer/remoteSearch.js +1 -1
  111. package/es/components/form-render/src/components/renderer/searchCascade.js +1 -1
  112. package/es/components/form-render/src/components/renderer/select.js +1 -1
  113. package/es/components/form-render/src/components/tooltipMessage.vue.js +1 -1
  114. package/es/components/form-render/src/components/tooltipMessage.vue2.js +1 -0
  115. package/es/components/form-render/src/constants/index.d.ts +2 -0
  116. package/es/components/form-render/src/constants/index.js +1 -1
  117. package/es/components/form-render/src/hooks/useComplexOptions.js +1 -1
  118. package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
  119. package/es/components/form-render/src/hooks/useFormAsyncQueue.d.ts +1 -1
  120. package/es/components/form-render/src/hooks/useFormAsyncQueue.js +1 -1
  121. package/es/components/form-render/src/hooks/useFormContext.js +1 -1
  122. package/es/components/form-render/src/hooks/useFormRenderLifeCycle.d.ts +3 -1
  123. package/es/components/form-render/src/hooks/useFormRenderOptions.d.ts +1 -1
  124. package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -1
  125. package/es/components/form-render/src/hooks/useNuiThemeOverrides.js +1 -1
  126. package/es/components/form-render/src/types/index.d.ts +2 -0
  127. package/es/components/guide/src/renderer.js +1 -1
  128. package/es/components/iho-select-label/src/LabelFormContent.vue.js +1 -1
  129. package/es/components/iho-select-label/src/LabelFormContent.vue2.js +1 -0
  130. package/es/components/iho-select-label/src/SelectLabel.vue.js +1 -1
  131. package/es/components/iho-select-label/src/SelectLabel.vue2.js +1 -0
  132. package/es/components/iho-select-label/src/components/label-classify.vue.js +1 -1
  133. package/es/components/iho-select-label/src/components/label-classify.vue2.js +1 -0
  134. package/es/components/iho-table/src/IhoTable.vue.js +1 -1
  135. package/es/components/iho-table/src/IhoTable.vue2.js +1 -0
  136. package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.js +1 -1
  137. package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue2.js +1 -0
  138. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.js +1 -1
  139. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue2.js +1 -0
  140. package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +1 -1
  141. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.js +1 -1
  142. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue2.js +1 -0
  143. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.js +1 -1
  144. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useAutoFocus.js +1 -1
  145. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +1 -1
  146. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue.js +1 -1
  147. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue2.js +1 -0
  148. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.js +1 -1
  149. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue2.js +1 -0
  150. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/pictureRendererPlugin.js +1 -1
  151. package/es/components/iho-table/src/plugins/varialbleHeightPlugin/index.js +1 -1
  152. package/es/components/iho-table/src/utils/index.js +1 -1
  153. package/es/components/index.css +1 -1
  154. package/es/components/info-header/index.d.ts +72 -10
  155. package/es/components/info-header/src/InfoHeader.vue.d.ts +72 -10
  156. package/es/components/info-header/src/InfoHeader.vue.js +1 -1
  157. package/es/components/info-header/src/InfoHeader.vue2.js +1 -0
  158. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.js +1 -1
  159. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue2.js +1 -0
  160. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.js +1 -1
  161. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue2.js +1 -0
  162. package/es/components/info-header/src/components/infoDescription/HiddenContent.vue.js +1 -1
  163. package/es/components/info-header/src/components/infoDescription/HiddenContent.vue2.js +1 -0
  164. package/es/components/info-header/src/components/infoDescription/InfoEllipsis.vue.js +1 -1
  165. package/es/components/info-header/src/components/infoDescription/InfoEllipsis.vue2.js +1 -0
  166. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +31 -4
  167. package/es/components/info-header/src/components/infoDescription/index.vue.js +1 -1
  168. package/es/components/info-header/src/components/infoDescription/index.vue2.js +1 -0
  169. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +31 -4
  170. package/es/components/info-header/src/components/patientInfo/index.vue.js +1 -1
  171. package/es/components/info-header/src/components/patientInfo/index.vue2.js +1 -0
  172. package/es/components/keyboard/index.d.ts +1 -1
  173. package/es/components/keyboard/src/Keyboard.vue.d.ts +1 -1
  174. package/es/components/keyboard/src/Keyboard.vue.js +1 -1
  175. package/es/components/keyboard/src/Keyboard.vue2.js +1 -0
  176. package/es/components/keyboard/src/components/InputNumber.vue.js +1 -1
  177. package/es/components/keyboard/src/components/InputNumber.vue2.js +1 -0
  178. package/es/components/keyboard/src/components/NumberPanel.vue.js +1 -1
  179. package/es/components/keyboard/src/components/NumberPanel.vue2.js +1 -0
  180. package/es/components/map/src/Map.vue.js +1 -1
  181. package/es/components/map/src/Map.vue2.js +1 -0
  182. package/es/components/picture-clipper/src/PictureClipper.vue.js +1 -1
  183. package/es/components/picture-clipper/src/PictureClipper.vue2.js +1 -0
  184. package/es/components/quick-search/src/index.vue.js +1 -1
  185. package/es/components/quick-search/src/index.vue2.js +1 -0
  186. package/es/components/recommend-search/index.d.ts +2 -2
  187. package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +2 -2
  188. package/es/components/recommend-search/src/RecommendSearch.vue.js +1 -1
  189. package/es/components/recommend-search/src/RecommendSearch.vue2.js +1 -0
  190. package/es/components/recommend-search/src/components/BaseSearch.d.ts +1 -1
  191. package/es/components/recommend-search/src/components/RecommendInput.vue.d.ts +1 -1
  192. package/es/components/recommend-search/src/components/RecommendInput.vue.js +1 -1
  193. package/es/components/recommend-search/src/components/RecommendInput.vue2.js +1 -0
  194. package/es/components/recommend-search/src/components/RecommendMenu.vue.js +1 -1
  195. package/es/components/recommend-search/src/components/RecommendMenu.vue2.js +1 -0
  196. package/es/components/recommend-search/src/components/RecommendSelect.vue.d.ts +1 -1
  197. package/es/components/recommend-search/src/components/RecommendSelect.vue.js +1 -1
  198. package/es/components/recommend-search/src/components/RecommendSelect.vue2.js +1 -0
  199. package/es/components/scale-view/src/ScaleView.vue.js +1 -1
  200. package/es/components/scale-view/src/ScaleView.vue2.js +1 -0
  201. package/es/components/scale-view/src/components/AnswerParse.vue.js +1 -1
  202. package/es/components/scale-view/src/components/AnswerParse.vue2.js +1 -0
  203. package/es/components/scale-view/src/components/EvaluateCountdown.vue.js +1 -1
  204. package/es/components/scale-view/src/components/EvaluateCountdown.vue2.js +1 -0
  205. package/es/components/scale-view/src/components/EvaluatePage.vue.js +1 -1
  206. package/es/components/scale-view/src/components/EvaluatePage.vue2.js +1 -0
  207. package/es/components/scale-view/src/components/LoadingCom.vue.js +1 -1
  208. package/es/components/scale-view/src/components/NoData.vue.js +1 -1
  209. package/es/components/scale-view/src/components/NoData.vue2.js +1 -0
  210. package/es/components/search-cascader/index.d.ts +16 -3
  211. package/es/components/search-cascader/src/SearchCascader.vue.d.ts +16 -3
  212. package/es/components/search-cascader/src/SearchCascader.vue.js +1 -1
  213. package/es/components/search-cascader/src/SearchCascader.vue2.js +1 -0
  214. package/es/components/search-cascader/src/components/SearchMenu.js +1 -1
  215. package/es/components/select-label/src/LabelFormContent.vue.js +1 -1
  216. package/es/components/select-label/src/LabelFormContent.vue2.js +1 -0
  217. package/es/components/select-label/src/SelectLabel.vue.js +1 -1
  218. package/es/components/select-label/src/components/label-classify.vue.js +1 -1
  219. package/es/components/select-label/src/components/label-classify.vue2.js +1 -0
  220. package/es/components/select-person/src/SearchMultiple.vue.d.ts +6 -0
  221. package/es/components/select-person/src/SearchMultiple.vue.js +1 -1
  222. package/es/components/select-person/src/SelectPerson.vue.js +1 -1
  223. package/es/components/shortcut-provider/src/ShortcutProvider.vue.js +1 -1
  224. package/es/components/shortcut-provider/src/ShortcutProvider.vue2.js +1 -0
  225. package/es/components/shortcut-setter/index.d.ts +31 -4
  226. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +31 -4
  227. package/es/components/shortcut-setter/src/ShortcutSetter.vue.js +1 -1
  228. package/es/components/shortcut-setter/src/ShortcutSetter.vue2.js +1 -0
  229. package/es/components/shortcut-setter/src/ShortcutSetterItem.vue.js +1 -1
  230. package/es/components/shortcut-setter/src/ShortcutSetterItem.vue2.js +1 -0
  231. package/es/components/steps-wheel/src/StepsWheel.vue.js +1 -1
  232. package/es/components/steps-wheel/src/StepsWheel.vue2.js +1 -0
  233. package/es/components/steps-wheel/style/index.css +1 -1
  234. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.js +1 -1
  235. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue2.js +1 -0
  236. package/es/components/table-filter/src/components/classify-filter/components/Date.vue.js +1 -1
  237. package/es/components/table-filter/src/components/classify-filter/components/Date.vue2.js +1 -0
  238. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.js +1 -1
  239. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +1 -0
  240. package/es/components/table-filter/src/components/classify-filter/components/InputFilter.vue.js +1 -1
  241. package/es/components/table-filter/src/components/classify-filter/components/InputFilter.vue2.js +1 -0
  242. package/es/components/table-filter/src/components/classify-filter/components/InputNumber.vue.js +1 -1
  243. package/es/components/table-filter/src/components/classify-filter/components/InputNumber.vue2.js +1 -0
  244. package/es/components/table-filter/src/components/classify-filter/components/InputNumberGroup.vue.js +1 -1
  245. package/es/components/table-filter/src/components/classify-filter/components/InputNumberGroup.vue2.js +1 -0
  246. package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue.js +1 -1
  247. package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue2.js +1 -0
  248. package/es/components/table-filter/src/components/classify-filter/components/SelectFilter.vue.js +1 -1
  249. package/es/components/table-filter/src/components/classify-filter/components/SelectFilter.vue2.js +1 -0
  250. package/es/components/table-filter/src/components/classify-filter/components/SelectLabel.vue.js +1 -1
  251. package/es/components/table-filter/src/components/classify-filter/components/SelectLabel.vue2.js +1 -0
  252. package/es/components/table-filter/src/components/classify-filter/index.vue.js +1 -1
  253. package/es/components/table-filter/src/components/classify-filter/index.vue2.js +1 -0
  254. package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.js +1 -1
  255. package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue2.js +1 -0
  256. package/es/components/table-filter/src/components/render-widget/components/Date.vue.js +1 -1
  257. package/es/components/table-filter/src/components/render-widget/components/Date.vue2.js +1 -0
  258. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.js +1 -1
  259. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue2.js +1 -0
  260. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.js +1 -1
  261. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue2.js +1 -0
  262. package/es/components/table-filter/src/components/render-widget/components/InputNumberGroup.vue.js +1 -1
  263. package/es/components/table-filter/src/components/render-widget/components/InputNumberGroup.vue2.js +1 -0
  264. package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue.js +1 -1
  265. package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue2.js +1 -0
  266. package/es/components/table-filter/src/components/render-widget/components/LabelOut.vue.js +1 -1
  267. package/es/components/table-filter/src/components/render-widget/components/LabelOut.vue2.js +1 -0
  268. package/es/components/table-filter/src/components/render-widget/components/Select.vue.js +1 -1
  269. package/es/components/table-filter/src/components/render-widget/components/Select.vue2.js +1 -0
  270. package/es/components/table-filter/src/components/render-widget/index.vue.js +1 -1
  271. package/es/components/table-filter/src/directive/resize.js +1 -1
  272. package/es/components/time-line/src/TimeLine.vue.js +1 -1
  273. package/es/components/time-line/src/TimeLine.vue2.js +1 -0
  274. package/es/components/time-picker/src/TimePicker.vue.js +1 -1
  275. package/es/components/time-picker/src/TimePicker.vue2.js +1 -0
  276. package/es/components/vod-chunk-upload/src/chunk-upload-new.vue.js +1 -1
  277. package/es/components/vod-chunk-upload/src/chunk-upload-new.vue2.js +1 -0
  278. package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.js +1 -1
  279. package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue2.js +1 -0
  280. package/es/env.d.ts +25 -25
  281. package/es/shared/assets/img/failure.png.js +1 -1
  282. package/es/shared/assets/img/no-permission.png.js +1 -1
  283. package/es/shared/assets/img/nodata.png.js +1 -1
  284. package/es/shared/assets/img/notfound.png.js +1 -1
  285. package/es/shared/assets/img/qr.png.js +1 -1
  286. package/es/shared/assets/img/success.png.js +1 -1
  287. package/es/shared/assets/img/video.png.js +1 -1
  288. package/es/shared/assets/img/video_default_cover.png.js +1 -1
  289. package/es/shared/assets/img/xb_big.png.js +1 -1
  290. package/es/shared/assets/img/xb_small.png.js +1 -1
  291. package/es/shared/components/SelectPage/SelectPage.vue.js +1 -1
  292. package/es/shared/components/SelectPage/SelectPage.vue2.js +1 -0
  293. package/es/shared/components/SvgIcon/SvgIcon.vue.js +1 -1
  294. package/es/shared/components/SvgIcon/SvgIcon.vue2.js +1 -0
  295. package/es/shared/components/TextOverTooltip/TextOverTooltip.vue.js +1 -1
  296. package/es/shared/components/TextOverTooltip/TextOverTooltip.vue2.js +1 -0
  297. package/es/shared/components/no-data/NoData.vue.js +1 -1
  298. package/es/shared/components/no-data/NoData.vue2.js +1 -0
  299. package/es/shared/hooks/useAsyncQueue.d.ts +3 -1
  300. package/es/shared/hooks/useAsyncQueue.js +1 -1
  301. package/es/shared/package.json.js +1 -1
  302. package/package.json +2 -2
  303. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  304. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
  305. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
  306. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
  307. package/es/components/form-render/src/components/renderer/dist/levelSearchCascader.d.ts +0 -77
  308. package/es/components/form-render/src/components/renderer/dist/searchCascade.d.ts +0 -93
  309. package/es/components/iho-table/src/plugins/dist/highLightSetPlugin.d.ts +0 -3
  310. package/es/components/iho-table/src/plugins/filterRenderPlugin/dist/index.d.ts +0 -3
  311. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/dist/index.d.ts +0 -3
  312. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/dist/defaultRendererPlugin.d.ts +0 -3
  313. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/dist/seqRendererPlugin.d.ts +0 -3
  314. package/es/components/iho-table/src/plugins/varialbleHeightPlugin/dist/index.d.ts +0 -3
  315. package/es/components/iho-table/src/utils/dist/index.d.ts +0 -44
  316. package/es/components/scale-view/src/components/formitem/dist/r-address.d.ts +0 -36
  317. package/es/components/scale-view/src/components/formitem/dist/r-sign.d.ts +0 -36
  318. package/es/components/scale-view/src/components/formitem/dist/standard-modal.d.ts +0 -82
  319. package/es/components/search-cascader/src/components/dist/SearchMenu.d.ts +0 -57
  320. package/es/components/search-cascader/src/components/dist/SearchMenu1.d.ts +0 -57
  321. package/es/components/search-cascader/src/hooks/index.d.ts +0 -1
  322. package/es/components/search-cascader/src/hooks/index.js +0 -1
  323. package/es/components/search-cascader/src/hooks/useCssVariable.d.ts +0 -3
  324. package/es/components/search-cascader/src/hooks/useCssVariable.js +0 -1
  325. package/es/shared/assets/img/failure.d.ts +0 -2
  326. package/es/shared/assets/img/failure.js +0 -1
  327. package/es/shared/assets/img/icon-asc.d.ts +0 -2
  328. package/es/shared/assets/img/icon-asc.js +0 -1
  329. package/es/shared/assets/img/icon-desc.d.ts +0 -2
  330. package/es/shared/assets/img/icon-desc.js +0 -1
  331. package/es/shared/assets/img/no-permission.d.ts +0 -2
  332. package/es/shared/assets/img/no-permission.js +0 -1
  333. package/es/shared/assets/img/nodata.d.ts +0 -2
  334. package/es/shared/assets/img/nodata.js +0 -1
  335. package/es/shared/assets/img/notfound.d.ts +0 -2
  336. package/es/shared/assets/img/notfound.js +0 -1
  337. package/es/shared/assets/img/qr.d.ts +0 -2
  338. package/es/shared/assets/img/qr.js +0 -1
  339. package/es/shared/assets/img/success.d.ts +0 -2
  340. package/es/shared/assets/img/success.js +0 -1
  341. package/es/shared/assets/img/video.d.ts +0 -2
  342. package/es/shared/assets/img/video.js +0 -1
  343. package/es/shared/assets/img/video_default_cover.d.ts +0 -2
  344. package/es/shared/assets/img/video_default_cover.js +0 -1
  345. package/es/shared/assets/img/video_hover.d.ts +0 -2
  346. package/es/shared/assets/img/video_hover.js +0 -1
  347. package/es/shared/assets/img/video_play_hover.d.ts +0 -2
  348. package/es/shared/assets/img/video_play_hover.js +0 -1
  349. package/es/shared/assets/img/xb_big.d.ts +0 -2
  350. package/es/shared/assets/img/xb_big.js +0 -1
  351. package/es/shared/assets/img/xb_small.d.ts +0 -2
  352. package/es/shared/assets/img/xb_small.js +0 -1
  353. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
  354. package/es/shared/utils/fabricjs/index.d.ts +0 -6823
  355. package/es/shared/utils/tapable/index.d.ts +0 -139
  356. /package/es/_virtual/{plugin-vue_export-helper.js → _plugin-vue_export-helper.js} +0 -0
@@ -0,0 +1 @@
1
+ import{defineComponent as e,provide as t,ref as n,computed as o,openBlock as i,createElementBlock as a,normalizeClass as s,normalizeStyle as r,unref as c,createElementVNode as p,createCommentVNode as f,renderSlot as l,createVNode as d,withCtx as u,mergeProps as m,Fragment as h,renderList as g,createBlock as v,resolveDynamicComponent as y,h as b,nextTick as I}from"vue";import{isString as _}from"lodash-es";import $ from"./components/infoDescription/index.vue.js";import x from"./components/patientInfo/index.vue.js";import{InjectionInfoHeaderEmit as S,InjectionInfoHeaderFormRef as j}from"./constants/index.js";const z={class:"c-info-header__operation"},w={key:0,class:"c-info-header__divider"},k={class:"c-info-header__setting"},C=["onClick"];var H=e({__name:"InfoHeader",props:{compact:{type:Boolean,required:!0},patientInfo:{type:Object,default:()=>({})},patientEditable:{type:Boolean},separator:{type:String,default:":"},infoList:{type:Array,default:()=>[]},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},minColumnWidth:{type:[String,Number],default:180},rowHeight:{type:[String,Number],default:38},settingIcons:{type:Array,default:()=>["patientInfo","fieldSet","compact"]},formProps:{type:Object}},emits:["openPatientInfo","fieldSet","update:compact","formChange"],setup(e,{expose:H,emit:P}){const A=e;t(S,P);const B=n();function D(){var e;return null==(e=B.value)?void 0:e.updateColumn()}const E=o((()=>({"--row-height":A.rowHeight,"--row-num":A.compact?1:2,"--padding-tb":A.compact?9:4}))),F={patientInfo:{event:function(){P("openPatientInfo")},render:()=>[b("i",{class:"info-header--iconfont info-header--icon-a-menzhenyishengzhanxitongtubiaobianji"})]},fieldSet:{event:function(){P("fieldSet")},render:()=>[b("i",{class:"info-header--iconfont info-header--icon-a-menzhenyishengzhanxitongtubiaoshezhi"})]},compact:{event:async function(){P("update:compact",!A.compact),await I(),await D()},render:()=>[b("i",{class:"info-header--iconfont info-header--icon-a-menzhenyishengzhanxitongtubiaojiantouxia"})]}},N=o((()=>A.settingIcons.map((e=>(_(e)?F[e]:e)||{})))),O=n();return t(j,O),H({update:D,$formRender:O}),(t,n)=>(i(),a("div",{class:s(["c-info-header",{"is-compact":e.compact}]),style:r(c(E))},[p("section",z,[f(" 操作区插槽 "),l(t.$slots,"operation")]),t.$slots.operation?(i(),a("div",w)):f("v-if",!0),f(" 患者信息区插槽,需要自己实现整个患者信息区时使用 "),l(t.$slots,"patientModule",{},(()=>[d(c(x),{"patient-info":e.patientInfo,"patient-editable":e.patientEditable},{avatarInfo:u((()=>[f(" 头像区补充内容插槽 (会插入头像下方) "),l(t.$slots,"avatarInfo")])),avatar:u((()=>[f(" 头像插槽 "),l(t.$slots,"avatar")])),tags:u((()=>[f(" 标签插槽 "),l(t.$slots,"tags")])),_:3},8,["patient-info","patient-editable"])])),d(c($),m({ref_key:"infoDescriptionRef",ref:B,"root-slot":t.$slots},t.$props),{info:u((()=>[f(" 信息描述区插槽 "),l(t.$slots,"info")])),_:3},16,["root-slot"]),p("section",k,[f(" 设置区插槽 "),l(t.$slots,"setting",{},(()=>[(i(!0),a(h,null,g(c(N),(e=>(i(),a("div",{key:e,class:"c-info-header__settingIcon",onClick:e.event},[(i(),v(y(e.render)))],8,C)))),128))]))])],6))}});export{H as default};
@@ -1 +1 @@
1
- import{defineComponent as e,inject as t,computed as o,watch as n,openBlock as l,createElementBlock as i,createBlock as r,unref as m,normalizeStyle as s,Fragment as d,withDirectives as f,createElementVNode as a,vShow as c,createCommentVNode as u}from"vue";import{isField as p}from"@formily/core";import{useForm as v}from"@formily/vue";import{isFunction as y}from"lodash-es";import{pauseTracking as I,enableTracking as h}from"@vue/reactivity";import"../../../../form-render/index.js";import{InjectionSchemaField as F,InjectionBusinessCollector as w}from"../../../../form-render/src/constants/index.js";import{InjectionInfoHeaderFormRef as b}from"../../constants/index.js";import k from"./HiddenContent.vue.js";import P from"./InfoEllipsis.vue.js";import x from"../../../../../shared/components/SlotRender/SlotRender.js";import _ from"../../../../../_virtual/plugin-vue_export-helper.js";import{useFieldListAdaptor as j}from"../../../../form-render/src/hooks/useFieldListAdaptor.js";import{createObjSchema as g}from"../../../../form-render/src/utils/schema.js";const S={key:0};var W=_(e({__name:"DescriptionItem",props:{infoItem:{default:()=>({})},labelField:{default:"label"},valueField:{default:"value"},width:null,rootSlot:null},setup(e){const _=e,W=t(F,{render:()=>null}),B=t(b);async function D(e){var t,o,n;if(!e.formField||e.edit)return;e.edit=!0;const l=await(null==(t=B.value)?void 0:t.queryWidget(e[_.labelField]));l&&(null==(o=l.widgetElement)||o.focus(),null==(n=l.widgetElement)||n.click())}const E=t(w,void 0),{schemaAdaptor:q}=j(E),A=v(),C=o((()=>{var e,t,o;const n=_.infoItem.formField;if(!n)return{};const l=_.infoItem[_.labelField],i={...n,html_type:null!=(e=n.html_type)?e:"INPUT",val_key:l,decoratorProps:{showLabel:!1,...n.decoratorProps,style:{marginBottom:"-12px"}},componentProps:{size:"tiny",clearable:!0,...n.componentProps,style:{fontWeight:(null==(t=_.infoItem)?void 0:t.bold)?700:500,...null==(o=n.componentProps)?void 0:o.style},async onBlur(e){var t;if(A&&A.value)try{const o=A.value.query(l).take();await(o&&p(o)&&o.validate()),_.infoItem.edit=!1,y(null==(t=n.componentProps)?void 0:t.onBlur)&&n.componentProps.onBlur(e)}catch(e){}}}};I(),i.default_val=_.infoItem[_.valueField],h();const r=q([i]);return g(r)}));n((()=>_.width),(e=>{var t;e&&_.infoItem.formField&&(null==(t=B.value)||t.setFieldState(_.infoItem[_.labelField],(t=>{t.componentProps&&(t.componentProps.style={...t.componentProps.style,maxWidth:e+"px"})})))}));const L=o((()=>({fontWeight:_.infoItem.bold?700:500,..._.infoItem.contentStyle}))),R=o((()=>{const{bold:e,contentStyle:t}=_.infoItem,o=_.width+"px";return{width:o,maxWidth:o,fontWeight:e?700:500,...t}})),z=o((()=>["电话","身份证"].some((e=>{var t,o;return null==(o=null==(t=_.infoItem[_.labelField])?void 0:t.includes)?void 0:o.call(t,e)}))));return(t,o)=>(l(),i("section",{onDblclick:o[0]||(o[0]=t=>D(e.infoItem)),onClick:o[1]||(o[1]=t=>async function(e){e.formField&&!e[_.valueField]&&0!==e[_.valueField]&&D(e)}(e.infoItem))},[e.infoItem.slot?(l(),r(m(x),{key:0,renderer:e.infoItem.slot,"root-slots":e.rootSlot,item:e.infoItem,style:s(m(L)),width:e.width},null,8,["renderer","root-slots","item","style","width"])):(l(),i(d,{key:1},[f(a("section",null,[m(z)?(l(),r(k,{key:0,content:e.infoItem[e.valueField],tip:e.infoItem.tip,"content-style":m(L),width:e.width},null,8,["content","tip","content-style","width"])):(l(),r(P,{key:1,"content-style":m(R),content:e.infoItem[e.valueField],tip:e.infoItem.tip},null,8,["content-style","content","tip"]))],512),[[c,!e.infoItem.edit||!e.infoItem.formField]]),e.infoItem.formField?f((l(),i("section",S,[(l(),r(m(W),{schema:m(C),key:e.infoItem[e.labelField]},null,8,["schema"]))],512)),[[c,e.infoItem.edit]]):u("v-if",!0)],64))],32))}}),[["__file","DescriptionItem.vue"]]);export{W as default};
1
+ import e from"./DescriptionItem.vue2.js";import r from"../../../../../_virtual/_plugin-vue_export-helper.js";var t=r(e,[["__file","DescriptionItem.vue"]]);export{t as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,inject as t,computed as o,watch as n,openBlock as l,createElementBlock as i,createBlock as r,unref as m,normalizeStyle as s,Fragment as d,withDirectives as f,createElementVNode as a,vShow as c,createCommentVNode as u}from"vue";import{isField as p}from"@formily/core";import{useForm as v}from"@formily/vue";import{isFunction as y}from"lodash-es";import{pauseTracking as I,enableTracking as h}from"@vue/reactivity";import"../../../../form-render/index.js";import{InjectionSchemaField as F,InjectionBusinessCollector as w}from"../../../../form-render/src/constants/index.js";import{InjectionInfoHeaderFormRef as b}from"../../constants/index.js";import k from"./HiddenContent.vue.js";import P from"./InfoEllipsis.vue.js";import x from"../../../../../shared/components/SlotRender/SlotRender.js";import{useFieldListAdaptor as j}from"../../../../form-render/src/hooks/useFieldListAdaptor.js";import{createObjSchema as g}from"../../../../form-render/src/utils/schema.js";const S={key:0};var W=e({__name:"DescriptionItem",props:{infoItem:{default:()=>({})},labelField:{default:"label"},valueField:{default:"value"},width:null,rootSlot:null},setup(e){const W=e,_=t(F,{render:()=>null}),B=t(b);async function E(e){var t,o,n;if(!e.formField||e.edit)return;e.edit=!0;const l=await(null==(t=B.value)?void 0:t.queryWidget(e[W.labelField]));l&&(null==(o=l.widgetElement)||o.focus(),null==(n=l.widgetElement)||n.click())}const q=t(w,void 0),{schemaAdaptor:A}=j(q),C=v(),D=o((()=>{var e,t,o;const n=W.infoItem.formField;if(!n)return{};const l=W.infoItem[W.labelField],i={...n,html_type:null!=(e=n.html_type)?e:"INPUT",val_key:l,decoratorProps:{showLabel:!1,...n.decoratorProps,style:{marginBottom:"-12px"}},componentProps:{size:"tiny",clearable:!0,...n.componentProps,style:{fontWeight:(null==(t=W.infoItem)?void 0:t.bold)?700:500,...null==(o=n.componentProps)?void 0:o.style},async onBlur(e){var t;if(C&&C.value)try{const o=C.value.query(l).take();await(o&&p(o)&&o.validate()),W.infoItem.edit=!1,y(null==(t=n.componentProps)?void 0:t.onBlur)&&n.componentProps.onBlur(e)}catch(e){}}}};I(),i.default_val=W.infoItem[W.valueField],h();const r=A([i]);return g(r)}));n((()=>W.width),(e=>{var t;e&&W.infoItem.formField&&(null==(t=B.value)||t.setFieldState(W.infoItem[W.labelField],(t=>{t.componentProps&&(t.componentProps.style={...t.componentProps.style,maxWidth:e+"px"})})))}));const L=o((()=>({fontWeight:W.infoItem.bold?700:500,...W.infoItem.contentStyle}))),R=o((()=>{const{bold:e,contentStyle:t}=W.infoItem,o=W.width+"px";return{width:o,maxWidth:o,fontWeight:e?700:500,...t}})),z=o((()=>["电话","身份证"].some((e=>{var t,o;return null==(o=null==(t=W.infoItem[W.labelField])?void 0:t.includes)?void 0:o.call(t,e)}))));return(t,o)=>(l(),i("section",{onDblclick:o[0]||(o[0]=t=>E(e.infoItem)),onClick:o[1]||(o[1]=t=>async function(e){e.formField&&!e[W.valueField]&&0!==e[W.valueField]&&E(e)}(e.infoItem))},[e.infoItem.slot?(l(),r(m(x),{key:0,renderer:e.infoItem.slot,"root-slots":e.rootSlot,item:e.infoItem,style:s(m(L)),width:e.width},null,8,["renderer","root-slots","item","style","width"])):(l(),i(d,{key:1},[f(a("section",null,[m(z)?(l(),r(k,{key:0,content:e.infoItem[e.valueField],tip:e.infoItem.tip,"content-style":m(L),width:e.width},null,8,["content","tip","content-style","width"])):(l(),r(P,{key:1,"content-style":m(R),content:e.infoItem[e.valueField],tip:e.infoItem.tip},null,8,["content-style","content","tip"]))],512),[[c,!e.infoItem.edit||!e.infoItem.formField]]),e.infoItem.formField?f((l(),i("section",S,[(l(),r(m(_),{schema:m(D),key:e.infoItem[e.labelField]},null,8,["schema"]))],512)),[[c,e.infoItem.edit]]):u("v-if",!0)],64))],32))}});export{W as default};
@@ -1 +1 @@
1
- import{defineComponent as l,openBlock as e,createBlock as t,unref as i,withCtx as o,createElementBlock as a,Fragment as n,renderList as u}from"vue";import{NDescriptions as r,NDescriptionsItem as d}from"naive-ui";import s from"./DescriptionItem.vue.js";import f from"../../../../../_virtual/plugin-vue_export-helper.js";var m=f(l({__name:"DescriptionList",props:{infoList:{default:()=>[]},labelField:{default:"label"},valueField:{default:"value"},rootSlot:null,descriptionWidthList:{default:()=>[]},columnNum:{default:3},inForm:{type:Boolean}},setup(l){const f={height:"100%",display:"inline-flex","align-items":"center"};return(m,p)=>(e(),t(i(r),{"label-align":"right","label-placement":"left",separator:":",column:l.columnNum,"label-style":f,"content-style":f},{default:o((()=>[(e(!0),a(n,null,u(l.infoList,((a,n)=>(e(),t(i(d),{key:a[l.labelField],label:a[l.labelField]},{default:o((()=>[(e(),t(s,{key:a[l.labelField],"info-item":a,width:l.descriptionWidthList[n],"root-slot":l.rootSlot,"label-field":l.labelField,"value-field":l.valueField},null,8,["info-item","width","root-slot","label-field","value-field"]))])),_:2},1032,["label"])))),128))])),_:1},8,["column"]))}}),[["__file","DescriptionList.vue"]]);export{m as default};
1
+ import e from"./DescriptionList.vue2.js";import i from"../../../../../_virtual/_plugin-vue_export-helper.js";var r=i(e,[["__file","DescriptionList.vue"]]);export{r as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as l,openBlock as e,createBlock as t,unref as i,withCtx as o,createElementBlock as a,Fragment as n,renderList as u}from"vue";import{NDescriptions as d,NDescriptionsItem as r}from"naive-ui";import f from"./DescriptionItem.vue.js";var s=l({__name:"DescriptionList",props:{infoList:{default:()=>[]},labelField:{default:"label"},valueField:{default:"value"},rootSlot:null,descriptionWidthList:{default:()=>[]},columnNum:{default:3},inForm:{type:Boolean}},setup(l){const s={height:"100%",display:"inline-flex","align-items":"center"};return(m,p)=>(e(),t(i(d),{"label-align":"right","label-placement":"left",separator:":",column:l.columnNum,"label-style":s,"content-style":s},{default:o((()=>[(e(!0),a(n,null,u(l.infoList,((a,n)=>(e(),t(i(r),{key:a[l.labelField],label:a[l.labelField]},{default:o((()=>[(e(),t(f,{key:a[l.labelField],"info-item":a,width:l.descriptionWidthList[n],"root-slot":l.rootSlot,"label-field":l.labelField,"value-field":l.valueField},null,8,["info-item","width","root-slot","label-field","value-field"]))])),_:2},1032,["label"])))),128))])),_:1},8,["column"]))}});export{s as default};
@@ -1 +1 @@
1
- import{defineComponent as t,ref as n,computed as e,openBlock as i,createElementBlock as o,normalizeStyle as r,unref as l,createElementVNode as u,createVNode as a,normalizeClass as c}from"vue";import s from"./InfoEllipsis.vue.js";import d from"../../../../../_virtual/plugin-vue_export-helper.js";const f={class:"c-info-header__hidden--content"};var p=d(t({__name:"HiddenContent",props:{content:{type:String,default:""},tip:String,width:{type:Number},contentStyle:{type:Object,default:()=>({})}},setup(t){const d=t,p=n(!0);function h(){p.value=!p.value}const v=e((()=>{const t=d.width+"px";return{maxWidth:t,width:t}})),_=e((()=>{if(!d.width)return{};const t=d.width-40+"px";return Object.assign({},d.contentStyle,{maxWidth:t})})),g=e((()=>{let{content:t}=d;if(!p.value)return t;if(null==t)return"-";t+="";const n=t.length;if(!n||1===n)return t;const e=Math.floor(n/2),i=Math.floor((n-e)/2);return`${t.substring(0,i)}${"*".repeat(e)}${null==t?void 0:t.substring(i+e)}`}));return(n,e)=>(i(),o("div",{class:"c-info-header__hidden",style:r(l(v))},[u("div",f,[a(s,{"content-style":l(_),content:l(g),tip:t.tip},null,8,["content-style","content","tip"])]),u("i",{onClick:h,class:c(["c-info-header__hidden--icon","info-header--iconfont","info-header--icon-"+(p.value?"guanbi-yanjing":"faxian-yanjing")])},null,2)],4))}}),[["__file","HiddenContent.vue"]]);export{p as default};
1
+ import e from"./HiddenContent.vue2.js";import t from"../../../../../_virtual/_plugin-vue_export-helper.js";var r=t(e,[["__file","HiddenContent.vue"]]);export{r as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as t,ref as n,computed as e,openBlock as i,createElementBlock as o,normalizeStyle as r,unref as l,createElementVNode as a,createVNode as c,normalizeClass as s}from"vue";import u from"./InfoEllipsis.vue.js";const d={class:"c-info-header__hidden--content"};var f=t({__name:"HiddenContent",props:{content:{type:String,default:""},tip:String,width:{type:Number},contentStyle:{type:Object,default:()=>({})}},setup(t){const f=t,h=n(!0);function p(){h.value=!h.value}const v=e((()=>{const t=f.width+"px";return{maxWidth:t,width:t}})),y=e((()=>{if(!f.width)return{};const t=f.width-40+"px";return Object.assign({},f.contentStyle,{maxWidth:t})})),g=e((()=>{let{content:t}=f;if(!h.value)return t;if(null==t)return"-";t+="";const n=t.length;if(!n||1===n)return t;const e=Math.floor(n/2),i=Math.floor((n-e)/2);return`${t.substring(0,i)}${"*".repeat(e)}${null==t?void 0:t.substring(i+e)}`}));return(n,e)=>(i(),o("div",{class:"c-info-header__hidden",style:r(l(v))},[a("div",d,[c(u,{"content-style":l(y),content:l(g),tip:t.tip},null,8,["content-style","content","tip"])]),a("i",{onClick:p,class:s(["c-info-header__hidden--icon","info-header--iconfont","info-header--icon-"+(h.value?"guanbi-yanjing":"faxian-yanjing")])},null,2)],4))}});export{f as default};
@@ -1 +1 @@
1
- import{defineComponent as t,openBlock as e,createBlock as i,unref as l,withCtx as o,createElementVNode as p,createVNode as n,normalizeStyle as r,createTextVNode as a,toDisplayString as s}from"vue";import{NTooltip as u,NEllipsis as f}from"naive-ui";import d from"../../../../../_virtual/plugin-vue_export-helper.js";var m=d(t({__name:"InfoEllipsis",props:{content:{type:String,default:""},tip:{type:String},contentStyle:{type:Object,default:()=>({})}},setup:t=>(d,m)=>(e(),i(l(u),{disabled:!t.tip},{trigger:o((()=>[p("section",null,[n(l(f),{style:r(t.contentStyle),tooltip:{placement:t.tip?"bottom":"top"}},{default:o((()=>[a(s(t.content||"-"),1)])),_:1},8,["style","tooltip"])])])),default:o((()=>[a(" "+s(t.tip),1)])),_:1},8,["disabled"]))}),[["__file","InfoEllipsis.vue"]]);export{m as default};
1
+ import e from"./InfoEllipsis.vue2.js";import i from"../../../../../_virtual/_plugin-vue_export-helper.js";var l=i(e,[["__file","InfoEllipsis.vue"]]);export{l as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as t,openBlock as e,createBlock as o,unref as i,withCtx as l,createElementVNode as p,createVNode as n,normalizeStyle as a,createTextVNode as r,toDisplayString as s}from"vue";import{NTooltip as d,NEllipsis as u}from"naive-ui";var f=t({__name:"InfoEllipsis",props:{content:{type:String,default:""},tip:{type:String},contentStyle:{type:Object,default:()=>({})}},setup:t=>(f,c)=>(e(),o(i(d),{disabled:!t.tip},{trigger:l((()=>[p("section",null,[n(i(u),{style:a(t.contentStyle),tooltip:{placement:t.tip?"bottom":"top"}},{default:l((()=>[r(s(t.content||"-"),1)])),_:1},8,["style","tooltip"])])])),default:l((()=>[r(" "+s(t.tip),1)])),_:1},8,["disabled"]))});export{f as default};
@@ -2154,6 +2154,7 @@ declare const _default: import("vue").DefineComponent<{
2154
2154
  onSetup(): void;
2155
2155
  beforeRequest(fieldKey: string, params?: import("../../../../../../es/shared/types").AnyObject | undefined): void | import("../../../../../../es/shared/types").UndefinedAble<import("../../../../../../es/shared/types").AnyObject>;
2156
2156
  afterRequest(fieldKey: string, payload?: any): import("../../../../../../es/shared/types").AnyObject[];
2157
+ afterOptionInit(fieldKey: string, options: import("../../../../../../es/shared/types").AnyObject[]): void;
2157
2158
  }>>;
2158
2159
  };
2159
2160
  requestInstance: {
@@ -2173,6 +2174,10 @@ declare const _default: import("vue").DefineComponent<{
2173
2174
  type: (BooleanConstructor | StringConstructor)[];
2174
2175
  default: boolean;
2175
2176
  };
2177
+ uniqueCacheData: {
2178
+ type: BooleanConstructor;
2179
+ default: boolean;
2180
+ };
2176
2181
  }, {
2177
2182
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
2178
2183
  fieldList: {
@@ -2286,6 +2291,7 @@ declare const _default: import("vue").DefineComponent<{
2286
2291
  onSetup(): void;
2287
2292
  beforeRequest(fieldKey: string, params?: import("../../../../../../es/shared/types").AnyObject | undefined): void | import("../../../../../../es/shared/types").UndefinedAble<import("../../../../../../es/shared/types").AnyObject>;
2288
2293
  afterRequest(fieldKey: string, payload?: any): import("../../../../../../es/shared/types").AnyObject[];
2294
+ afterOptionInit(fieldKey: string, options: import("../../../../../../es/shared/types").AnyObject[]): void;
2289
2295
  }>>;
2290
2296
  };
2291
2297
  requestInstance: {
@@ -2305,12 +2311,16 @@ declare const _default: import("vue").DefineComponent<{
2305
2311
  type: (BooleanConstructor | StringConstructor)[];
2306
2312
  default: boolean;
2307
2313
  };
2314
+ uniqueCacheData: {
2315
+ type: BooleanConstructor;
2316
+ default: boolean;
2317
+ };
2308
2318
  }>> & {
2309
2319
  onFormChange?: ((...args: any[]) => any) | undefined;
2310
2320
  onScroll?: ((...args: any[]) => any) | undefined;
2311
2321
  onAnnotationChange?: ((...args: any[]) => any) | undefined;
2312
2322
  }>>;
2313
- emit: (event: "scroll" | "formChange" | "annotationChange", ...args: any[]) => void;
2323
+ emit: (event: "formChange" | "scroll" | "annotationChange", ...args: any[]) => void;
2314
2324
  cssVars: import("vue").ComputedRef<import("vue").CSSProperties>;
2315
2325
  nuiThemeOverrides: import("naive-ui").GlobalThemeOverrides;
2316
2326
  formRenderRef: import("vue").Ref<HTMLElement | undefined>;
@@ -2330,6 +2340,17 @@ declare const _default: import("vue").DefineComponent<{
2330
2340
  title: string;
2331
2341
  }[]>;
2332
2342
  onScroll: (scrollEvent: Event) => void;
2343
+ callLifeCycle: <T extends "onSetup" | "beforeRequest" | "afterRequest" | "afterOptionInit">(lifeCycleName: T, payload?: Parameters<Required<Partial<{
2344
+ onSetup(): void;
2345
+ beforeRequest(fieldKey: string, params?: import("../../../../../../es/shared/types").AnyObject | undefined): void | import("../../../../../../es/shared/types").UndefinedAble<import("../../../../../../es/shared/types").AnyObject>;
2346
+ afterRequest(fieldKey: string, payload?: any): import("../../../../../../es/shared/types").AnyObject[];
2347
+ afterOptionInit(fieldKey: string, options: import("../../../../../../es/shared/types").AnyObject[]): void;
2348
+ }>>[T]> | undefined) => import("../../../../../../es/shared/types").UndefinedAble<ReturnType<Required<Partial<{
2349
+ onSetup(): void;
2350
+ beforeRequest(fieldKey: string, params?: import("../../../../../../es/shared/types").AnyObject | undefined): void | import("../../../../../../es/shared/types").UndefinedAble<import("../../../../../../es/shared/types").AnyObject>;
2351
+ afterRequest(fieldKey: string, payload?: any): import("../../../../../../es/shared/types").AnyObject[];
2352
+ afterOptionInit(fieldKey: string, options: import("../../../../../../es/shared/types").AnyObject[]): void;
2353
+ }>>[T]>>;
2333
2354
  triggerAutoHidden: (field: import("../../../../../../es/components/form-render").GeneralField) => Promise<void>;
2334
2355
  observeFormGraph: Record<string, import("../../../../../../es/components/form-render").GeneralField>;
2335
2356
  setGraph: (field: import("../../../../../../es/components/form-render").GeneralField) => void;
@@ -2473,11 +2494,11 @@ declare const _default: import("vue").DefineComponent<{
2473
2494
  onFocus: (...args: any[]) => Promise<void>;
2474
2495
  onBlur: (...args: any[]) => Promise<void>;
2475
2496
  onInput: (...args: any[]) => Promise<void>;
2497
+ editable: boolean;
2476
2498
  reset: (options?: import("../../../../../../es/components/form-render").IFieldResetOptions | undefined) => Promise<void>;
2477
2499
  title: string;
2478
- editable: boolean;
2479
2500
  visible: boolean;
2480
- submit: <T>(onSubmit?: ((values: any) => void | Promise<T>) | undefined) => Promise<T>;
2501
+ submit: <T_1>(onSubmit?: ((values: any) => void | Promise<T_1>) | undefined) => Promise<T_1>;
2481
2502
  validator: import("../../../../../../es/components/form-render").FieldValidator;
2482
2503
  pattern: import("../../../../../../es/components/form-render").FieldPatternTypes;
2483
2504
  content: any;
@@ -2621,7 +2642,7 @@ declare const _default: import("vue").DefineComponent<{
2621
2642
  readonly displayDirective: "if" | "show" | "show:lazy";
2622
2643
  }>;
2623
2644
  NTabs: any;
2624
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("scroll" | "formChange" | "annotationChange")[], "scroll" | "formChange" | "annotationChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
2645
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("formChange" | "scroll" | "annotationChange")[], "scroll" | "formChange" | "annotationChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
2625
2646
  fieldList: {
2626
2647
  type: import("vue").PropType<import("../../../../../../es/components/form-render").FieldItem[]>;
2627
2648
  };
@@ -2733,6 +2754,7 @@ declare const _default: import("vue").DefineComponent<{
2733
2754
  onSetup(): void;
2734
2755
  beforeRequest(fieldKey: string, params?: import("../../../../../../es/shared/types").AnyObject | undefined): void | import("../../../../../../es/shared/types").UndefinedAble<import("../../../../../../es/shared/types").AnyObject>;
2735
2756
  afterRequest(fieldKey: string, payload?: any): import("../../../../../../es/shared/types").AnyObject[];
2757
+ afterOptionInit(fieldKey: string, options: import("../../../../../../es/shared/types").AnyObject[]): void;
2736
2758
  }>>;
2737
2759
  };
2738
2760
  requestInstance: {
@@ -2752,6 +2774,10 @@ declare const _default: import("vue").DefineComponent<{
2752
2774
  type: (BooleanConstructor | StringConstructor)[];
2753
2775
  default: boolean;
2754
2776
  };
2777
+ uniqueCacheData: {
2778
+ type: BooleanConstructor;
2779
+ default: boolean;
2780
+ };
2755
2781
  }>> & {
2756
2782
  onFormChange?: ((...args: any[]) => any) | undefined;
2757
2783
  onScroll?: ((...args: any[]) => any) | undefined;
@@ -2768,6 +2794,7 @@ declare const _default: import("vue").DefineComponent<{
2768
2794
  enterToNextWidget: boolean | ((fieldItem: import("../../../../../../es/components/form-render").FieldItem) => boolean | void);
2769
2795
  linebarAutoHidden: boolean;
2770
2796
  bordered: string | boolean;
2797
+ uniqueCacheData: boolean;
2771
2798
  }>;
2772
2799
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
2773
2800
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
@@ -1 +1 @@
1
- import{defineComponent as e,inject as i,computed as o,ref as l,nextTick as t,onMounted as n,watch as r,onBeforeUnmount as a,onDeactivated as s,onActivated as u,openBlock as f,createElementBlock as d,normalizeStyle as m,createVNode as c,unref as p,withCtx as v,createCommentVNode as h,renderSlot as _,createElementVNode as y,createBlock as w,mergeProps as F}from"vue";import{useThrottleFn as L,useEventListener as x}from"@vueuse/core";import{isArray as b}from"lodash-es";import{NScrollbar as C,NConfigProvider as W}from"naive-ui";import j from"./DescriptionList.vue.js";import{InjectionInfoHeaderEmit as k,InjectionInfoHeaderFormRef as g}from"../../constants/index.js";import{useThemeOverrides as R}from"../../hooks/useThemeOverrides.js";import $ from"../../../../form-render/index.js";import A from"../../../../../_virtual/plugin-vue_export-helper.js";var I=A(e({__name:"index",props:{infoList:{default:()=>[]},labelField:{default:"label"},valueField:{default:"value"},minColumnWidth:{default:180},rootSlot:null,formProps:{default:()=>({})}},setup(e,{expose:A}){const I=e,{themeOverrides:M}=R(),O=i(k),P=o((()=>b(I.infoList)&&I.infoList.some((e=>e.formField)))),S=o((()=>b(I.infoList)?I.infoList.reduce(((e,i)=>(i.formField&&(e[i[I.labelField]]=i[I.valueField]),e)),{}):{}));function q(e){var i;const{fieldKey:o,value:l}=e,t=null==(i=I.infoList)?void 0:i.find((e=>e[I.labelField]===o));t&&(t[I.valueField]=l,O&&O("formChange",e))}const z=i(g),D=l(3),K=l(),T=l(0),B=l([]),E=L((async function(){await t();const e=K.value;if(!e)return;const{clientWidth:i}=e;D.value=Math.floor(i/+I.minColumnWidth),T.value=Math.floor(i/D.value),await t();const o=e.querySelectorAll(".n-descriptions-table-content__label");o&&(B.value=Array.from(o).map((e=>T.value-e.clientWidth-8)))}),200,!0,!1);let G;function H(){clearInterval(G)}function J(){H(),G=setInterval(E,700)}return n(E),r([()=>I.minColumnWidth,()=>I.infoList],E,{flush:"post",deep:!0}),x(window,"resize",E),a(H),s(H),u(J),n(J),A({updateColumn:E}),(i,o)=>(f(),d("section",{class:"c-info-header__info",ref_key:"infoRef",ref:K,style:m({"--column-width":T.value})},[c(p(C),{class:"c-info-header__infoWrapper"},{default:v((()=>[h(" 描述信息区插槽 "),_(i.$slots,"info",{},(()=>[y("section",null,[p(P)?(f(),w(p($),F({key:1},e.formProps,{onFormChange:q,"initial-data":p(S),ref_key:"formRenderRef",ref:z,class:"c-info-header__formRender"}),{default:v((()=>[c(p(W),{"theme-overrides":p(M),style:m({"grid-column":"span min(var(--column), 999) / span min(var(--column), 999)"})},{default:v((()=>[c(j,F(i.$props,{"description-width-list":B.value,"column-num":D.value,"in-form":""}),null,16,["description-width-list","column-num"])])),_:1},8,["theme-overrides","style"])])),_:1},16,["initial-data"])):(f(),w(j,F({key:0},i.$props,{"description-width-list":B.value,"column-num":D.value}),null,16,["description-width-list","column-num"]))])]))])),_:3})],4))}}),[["__file","index.vue"]]);export{I as default};
1
+ import e from"./index.vue2.js";import r from"../../../../../_virtual/_plugin-vue_export-helper.js";var i=r(e,[["__file","index.vue"]]);export{i as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,inject as i,computed as o,ref as l,nextTick as n,onMounted as t,watch as r,onBeforeUnmount as a,onDeactivated as s,onActivated as u,openBlock as f,createElementBlock as d,normalizeStyle as m,createVNode as c,unref as p,withCtx as v,createCommentVNode as h,renderSlot as _,createElementVNode as y,createBlock as w,mergeProps as F}from"vue";import{useThrottleFn as L,useEventListener as b}from"@vueuse/core";import{isArray as C}from"lodash-es";import{NScrollbar as W,NConfigProvider as k}from"naive-ui";import x from"./DescriptionList.vue.js";import{InjectionInfoHeaderEmit as j,InjectionInfoHeaderFormRef as R}from"../../constants/index.js";import{useThemeOverrides as g}from"../../hooks/useThemeOverrides.js";import $ from"../../../../form-render/index.js";var A=e({__name:"index",props:{infoList:{default:()=>[]},labelField:{default:"label"},valueField:{default:"value"},minColumnWidth:{default:180},rootSlot:null,formProps:{default:()=>({})}},setup(e,{expose:A}){const I=e,{themeOverrides:M}=g(),O=i(j),P=o((()=>C(I.infoList)&&I.infoList.some((e=>e.formField)))),S=o((()=>C(I.infoList)?I.infoList.reduce(((e,i)=>(i.formField&&(e[i[I.labelField]]=i[I.valueField]),e)),{}):{}));function q(e){var i;const{fieldKey:o,value:l}=e,n=null==(i=I.infoList)?void 0:i.find((e=>e[I.labelField]===o));n&&(n[I.valueField]=l,O&&O("formChange",e))}const z=i(R),D=l(3),K=l(),T=l(0),B=l([]),E=L((async function(){await n();const e=K.value;if(!e)return;const{clientWidth:i}=e;D.value=Math.floor(i/+I.minColumnWidth),T.value=Math.floor(i/D.value),await n();const o=e.querySelectorAll(".n-descriptions-table-content__label");o&&(B.value=Array.from(o).map((e=>T.value-e.clientWidth-8)))}),200,!0,!1);let G;function H(){clearInterval(G)}function J(){H(),G=setInterval(E,700)}return t(E),r([()=>I.minColumnWidth,()=>I.infoList],E,{flush:"post",deep:!0}),b(window,"resize",E),a(H),s(H),u(J),t(J),A({updateColumn:E}),(i,o)=>(f(),d("section",{class:"c-info-header__info",ref_key:"infoRef",ref:K,style:m({"--column-width":T.value})},[c(p(W),{class:"c-info-header__infoWrapper"},{default:v((()=>[h(" 描述信息区插槽 "),_(i.$slots,"info",{},(()=>[y("section",null,[p(P)?(f(),w(p($),F({key:1},e.formProps,{onFormChange:q,"initial-data":p(S),ref_key:"formRenderRef",ref:z,class:"c-info-header__formRender"}),{default:v((()=>[c(p(k),{"theme-overrides":p(M),style:m({"grid-column":"span min(var(--column), 999) / span min(var(--column), 999)"})},{default:v((()=>[c(x,F(i.$props,{"description-width-list":B.value,"column-num":D.value,"in-form":""}),null,16,["description-width-list","column-num"])])),_:1},8,["theme-overrides","style"])])),_:1},16,["initial-data"])):(f(),w(x,F({key:0},i.$props,{"description-width-list":B.value,"column-num":D.value}),null,16,["description-width-list","column-num"]))])]))])),_:3})],4))}});export{A as default};
@@ -166,6 +166,7 @@ declare const _default: import("vue").DefineComponent<{
166
166
  onSetup(): void;
167
167
  beforeRequest(fieldKey: string, params?: import("../../../..").AnyObject | undefined): void | import("../../../..").UndefinedAble<import("../../../..").AnyObject>;
168
168
  afterRequest(fieldKey: string, payload?: any): import("../../../..").AnyObject[];
169
+ afterOptionInit(fieldKey: string, options: import("../../../..").AnyObject[]): void;
169
170
  }>>;
170
171
  };
171
172
  requestInstance: {
@@ -185,6 +186,10 @@ declare const _default: import("vue").DefineComponent<{
185
186
  type: (BooleanConstructor | StringConstructor)[];
186
187
  default: boolean;
187
188
  };
189
+ uniqueCacheData: {
190
+ type: BooleanConstructor;
191
+ default: boolean;
192
+ };
188
193
  }, {
189
194
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
190
195
  fieldList: {
@@ -298,6 +303,7 @@ declare const _default: import("vue").DefineComponent<{
298
303
  onSetup(): void;
299
304
  beforeRequest(fieldKey: string, params?: import("../../../..").AnyObject | undefined): void | import("../../../..").UndefinedAble<import("../../../..").AnyObject>;
300
305
  afterRequest(fieldKey: string, payload?: any): import("../../../..").AnyObject[];
306
+ afterOptionInit(fieldKey: string, options: import("../../../..").AnyObject[]): void;
301
307
  }>>;
302
308
  };
303
309
  requestInstance: {
@@ -317,12 +323,16 @@ declare const _default: import("vue").DefineComponent<{
317
323
  type: (BooleanConstructor | StringConstructor)[];
318
324
  default: boolean;
319
325
  };
326
+ uniqueCacheData: {
327
+ type: BooleanConstructor;
328
+ default: boolean;
329
+ };
320
330
  }>> & {
321
331
  onFormChange?: ((...args: any[]) => any) | undefined;
322
332
  onScroll?: ((...args: any[]) => any) | undefined;
323
333
  onAnnotationChange?: ((...args: any[]) => any) | undefined;
324
334
  }>>;
325
- emit: (event: "scroll" | "formChange" | "annotationChange", ...args: any[]) => void;
335
+ emit: (event: "formChange" | "scroll" | "annotationChange", ...args: any[]) => void;
326
336
  cssVars: import("vue").ComputedRef<import("vue").CSSProperties>;
327
337
  nuiThemeOverrides: import("naive-ui").GlobalThemeOverrides;
328
338
  formRenderRef: import("vue").Ref<HTMLElement | undefined>;
@@ -342,6 +352,17 @@ declare const _default: import("vue").DefineComponent<{
342
352
  title: string;
343
353
  }[]>;
344
354
  onScroll: (scrollEvent: Event) => void;
355
+ callLifeCycle: <T extends "onSetup" | "beforeRequest" | "afterRequest" | "afterOptionInit">(lifeCycleName: T, payload?: Parameters<Required<Partial<{
356
+ onSetup(): void;
357
+ beforeRequest(fieldKey: string, params?: import("../../../..").AnyObject | undefined): void | import("../../../..").UndefinedAble<import("../../../..").AnyObject>;
358
+ afterRequest(fieldKey: string, payload?: any): import("../../../..").AnyObject[];
359
+ afterOptionInit(fieldKey: string, options: import("../../../..").AnyObject[]): void;
360
+ }>>[T]> | undefined) => import("../../../..").UndefinedAble<ReturnType<Required<Partial<{
361
+ onSetup(): void;
362
+ beforeRequest(fieldKey: string, params?: import("../../../..").AnyObject | undefined): void | import("../../../..").UndefinedAble<import("../../../..").AnyObject>;
363
+ afterRequest(fieldKey: string, payload?: any): import("../../../..").AnyObject[];
364
+ afterOptionInit(fieldKey: string, options: import("../../../..").AnyObject[]): void;
365
+ }>>[T]>>;
345
366
  triggerAutoHidden: (field: import("../../../../../../es/components/form-render").GeneralField) => Promise<void>;
346
367
  observeFormGraph: Record<string, import("../../../../../../es/components/form-render").GeneralField>;
347
368
  setGraph: (field: import("../../../../../../es/components/form-render").GeneralField) => void;
@@ -485,11 +506,11 @@ declare const _default: import("vue").DefineComponent<{
485
506
  onFocus: (...args: any[]) => Promise<void>;
486
507
  onBlur: (...args: any[]) => Promise<void>;
487
508
  onInput: (...args: any[]) => Promise<void>;
509
+ editable: boolean;
488
510
  reset: (options?: import("../../../../../../es/components/form-render").IFieldResetOptions | undefined) => Promise<void>;
489
511
  title: string;
490
- editable: boolean;
491
512
  visible: boolean;
492
- submit: <T>(onSubmit?: ((values: any) => void | Promise<T>) | undefined) => Promise<T>;
513
+ submit: <T_1>(onSubmit?: ((values: any) => void | Promise<T_1>) | undefined) => Promise<T_1>;
493
514
  validator: import("../../../../../../es/components/form-render").FieldValidator;
494
515
  pattern: import("../../../../../../es/components/form-render").FieldPatternTypes;
495
516
  content: any;
@@ -633,7 +654,7 @@ declare const _default: import("vue").DefineComponent<{
633
654
  readonly displayDirective: "if" | "show" | "show:lazy";
634
655
  }>;
635
656
  NTabs: any;
636
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("scroll" | "formChange" | "annotationChange")[], "scroll" | "formChange" | "annotationChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
657
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("formChange" | "scroll" | "annotationChange")[], "scroll" | "formChange" | "annotationChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
637
658
  fieldList: {
638
659
  type: import("vue").PropType<FieldItem[]>;
639
660
  };
@@ -745,6 +766,7 @@ declare const _default: import("vue").DefineComponent<{
745
766
  onSetup(): void;
746
767
  beforeRequest(fieldKey: string, params?: import("../../../..").AnyObject | undefined): void | import("../../../..").UndefinedAble<import("../../../..").AnyObject>;
747
768
  afterRequest(fieldKey: string, payload?: any): import("../../../..").AnyObject[];
769
+ afterOptionInit(fieldKey: string, options: import("../../../..").AnyObject[]): void;
748
770
  }>>;
749
771
  };
750
772
  requestInstance: {
@@ -764,6 +786,10 @@ declare const _default: import("vue").DefineComponent<{
764
786
  type: (BooleanConstructor | StringConstructor)[];
765
787
  default: boolean;
766
788
  };
789
+ uniqueCacheData: {
790
+ type: BooleanConstructor;
791
+ default: boolean;
792
+ };
767
793
  }>> & {
768
794
  onFormChange?: ((...args: any[]) => any) | undefined;
769
795
  onScroll?: ((...args: any[]) => any) | undefined;
@@ -780,6 +806,7 @@ declare const _default: import("vue").DefineComponent<{
780
806
  enterToNextWidget: boolean | ((fieldItem: FieldItem) => boolean | void);
781
807
  linebarAutoHidden: boolean;
782
808
  bordered: string | boolean;
809
+ uniqueCacheData: boolean;
783
810
  }>;
784
811
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
785
812
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
@@ -1 +1 @@
1
- import{defineComponent as e,computed as t,ref as a,watch as n,nextTick as i,openBlock as l,createElementBlock as o,renderSlot as r,createVNode as s,unref as p,withCtx as f,mergeProps as u,createElementVNode as d,normalizeClass as c,createBlock as v,resolveDynamicComponent as _,createCommentVNode as m,createTextVNode as g,Fragment as x,renderList as y,toDisplayString as I,h}from"vue";import{isArray as w,isString as b,isNumber as k,isFunction as P,isObject as E,pick as U}from"lodash-es";import{NPopover as C,NImage as L,NDivider as H,NSpace as j,NButton as z,NTag as T,NEllipsis as F}from"naive-ui";import N from"../../../../form-render/index.js";import R from"../../../../../_virtual/plugin-vue_export-helper.js";const $={class:"c-info-header__patient"},B={class:"c-info-header__patientHeader"},S={key:0,class:"c-info-header__patientHeader--name"},V={key:1,class:"c-info-header__patientHeader--sex"},D={key:2,class:"c-info-header__patientHeader--age"};var M=R(e({__name:"index",props:{patientInfo:{default:()=>({})},patientEditable:{type:Boolean}},setup(e){const R=e,M=t((()=>R.patientInfo&&w(R.patientInfo.tagList)?R.patientInfo.tagList.filter((e=>e.render||b(e.content)&&e.content)):[])),O={warning:"#fcc200",info:"rgba(45, 122, 255, 0.1)"},W={warning:"#fff",info:"#2563F4"};function q({type:e="warning"}){return{color:O[e],textColor:W[e]}}function A(e){return()=>b(e)||k(e)?e:P(e)?e():E(e)?h(e):null}const G=a(!1),J=t((()=>R.patientEditable?[{val_key:"name",is_null:"0",is_empty:"0",alias:"姓名",html_type:"INPUT",...R.patientInfo.nameProps},{val_key:"sex",alias:"性别",html_type:"SELECT",is_null:"0",option:[{text:"未知",value:"未知"},{text:"男",value:"男"},{text:"女",value:"女"}],...R.patientInfo.sexProps},{val_key:"age",alias:"年龄",html_type:"INPUT_NUMBER",is_null:"0",is_empty:"0",decoratorProps:{style:{flex:2}},...R.patientInfo.ageProps,suffixConfig:{alias:"年龄单位",is_null:"0",val_key:"ageUnit",html_type:"SELECT",decoratorProps:{style:{flex:1}},option:[{value:"天",text:"天"},{value:"月",text:"月"},{value:"岁",text:"岁"},{value:"小时",text:"小时"},{value:"分",text:"分"},{value:"周",text:"周"}],...R.patientInfo.ageUnitProps}}]:[])),K=a();async function Q(){K.value&&(await K.value.validate(),Object.assign(R.patientInfo,U(K.value.getFormValues(),["name","sex","age","ageUnit"])),G.value=!1)}return n(G,(async e=>{await i(),e&&K.value&&K.value.setFormValues(R.patientInfo||{})})),(t,a)=>(l(),o("section",$,[r(t.$slots,"avatar",{},(()=>[s(p(C),null,{trigger:f((()=>[s(p(L),u({style:{"border-radius":"50%"},width:40,height:40,"preview-disabled":"",src:e.patientInfo.avatar},e.patientInfo.avatarProps),null,16,["src"])])),default:f((()=>[s(p(L),u({width:200,"preview-disabled":"",src:e.patientInfo.avatarPreview||e.patientInfo.avatar},e.patientInfo.avatarPreviewProps),null,16,["src"])])),_:1})])),d("section",null,[d("header",B,[s(p(C),{disabled:!e.patientEditable,trigger:"manual",placement:"bottom",show:G.value},{trigger:f((()=>{var t;return[d("section",{class:c(["c-info-header__patientHeaderWrapper",{"in-edit":G.value}]),onDblclick:a[0]||(a[0]=t=>e.patientEditable&&(G.value=!0))},[e.patientInfo.name?(l(),o("div",S,[(l(),v(_(A(e.patientInfo.name))))])):m("v-if",!0),e.patientInfo.sex?(l(),o("div",V,[g(" / "),(l(),v(_(A(e.patientInfo.sex))))])):m("v-if",!0),null!=e.patientInfo.age?(l(),o("div",D,[g(" / "),(l(),v(_(A(e.patientInfo.age)))),(l(),v(_(A(null!=(t=e.patientInfo.ageUnit)?t:"岁"))))])):m("v-if",!0)],34)]})),default:f((()=>[s(p(N),{column:"6",size:"small","label-placement":"left",style:{width:"200px",margin:"4px 0 -8px 0"},"field-list":p(J),ref_key:"formRenderRef",ref:K},null,8,["field-list"]),s(p(H),{style:{margin:"8px -14px",width:"calc(100% + 28px)"}}),s(p(j),{justify:"end"},{default:f((()=>[s(p(z),{size:"small",onClick:a[1]||(a[1]=e=>G.value=!1)},{default:f((()=>[g("取消")])),_:1}),s(p(z),{size:"small",type:"info",onClick:Q},{default:f((()=>[g("确认")])),_:1})])),_:1})])),_:1},8,["disabled","show"]),r(t.$slots,"tags",{tagList:p(M)},(()=>[(l(!0),o(x,null,y(e.patientInfo.tagList||[],(e=>(l(),v(p(T),u({key:e.content,size:"medium",bordered:!1,color:q(e)},e),{default:f((()=>[e.render?(l(),v(_(e.render),{key:0})):(l(),v(p(F),{key:1,style:{"max-width":"96px"}},{default:f((()=>[g(I(e.content),1)])),_:2},1024))])),_:2},1040,["color"])))),128))]))]),r(t.$slots,"avatarInfo")])]))}}),[["__file","index.vue"]]);export{M as default};
1
+ import e from"./index.vue2.js";import r from"../../../../../_virtual/_plugin-vue_export-helper.js";var i=r(e,[["__file","index.vue"]]);export{i as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,computed as t,ref as a,watch as n,nextTick as i,openBlock as l,createElementBlock as o,renderSlot as r,createVNode as s,unref as p,withCtx as f,mergeProps as d,createElementVNode as u,normalizeClass as c,createBlock as v,resolveDynamicComponent as m,createCommentVNode as _,createTextVNode as g,Fragment as x,renderList as y,toDisplayString as I,h}from"vue";import{isArray as w,isString as b,isNumber as k,isFunction as P,isObject as E,pick as U}from"lodash-es";import{NPopover as C,NImage as L,NDivider as H,NSpace as z,NButton as T,NTag as j,NEllipsis as F}from"naive-ui";import N from"../../../../form-render/index.js";const R={class:"c-info-header__patient"},$={class:"c-info-header__patientHeader"},B={key:0,class:"c-info-header__patientHeader--name"},S={key:1,class:"c-info-header__patientHeader--sex"},V={key:2,class:"c-info-header__patientHeader--age"};var D=e({__name:"index",props:{patientInfo:{default:()=>({})},patientEditable:{type:Boolean}},setup(e){const D=e,M=t((()=>D.patientInfo&&w(D.patientInfo.tagList)?D.patientInfo.tagList.filter((e=>e.render||b(e.content)&&e.content)):[])),O={warning:"#fcc200",info:"rgba(45, 122, 255, 0.1)"},W={warning:"#fff",info:"#2563F4"};function q({type:e="warning"}){return{color:O[e],textColor:W[e]}}function A(e){return()=>b(e)||k(e)?e:P(e)?e():E(e)?h(e):null}const G=a(!1),J=t((()=>D.patientEditable?[{val_key:"name",is_null:"0",is_empty:"0",alias:"姓名",html_type:"INPUT",...D.patientInfo.nameProps},{val_key:"sex",alias:"性别",html_type:"SELECT",is_null:"0",option:[{text:"未知",value:"未知"},{text:"男",value:"男"},{text:"女",value:"女"}],...D.patientInfo.sexProps},{val_key:"age",alias:"年龄",html_type:"INPUT_NUMBER",is_null:"0",is_empty:"0",decoratorProps:{style:{flex:2}},...D.patientInfo.ageProps,suffixConfig:{alias:"年龄单位",is_null:"0",val_key:"ageUnit",html_type:"SELECT",decoratorProps:{style:{flex:1}},option:[{value:"天",text:"天"},{value:"月",text:"月"},{value:"岁",text:"岁"},{value:"小时",text:"小时"},{value:"分",text:"分"},{value:"周",text:"周"}],...D.patientInfo.ageUnitProps}}]:[])),K=a();async function Q(){K.value&&(await K.value.validate(),Object.assign(D.patientInfo,U(K.value.getFormValues(),["name","sex","age","ageUnit"])),G.value=!1)}return n(G,(async e=>{await i(),e&&K.value&&K.value.setFormValues(D.patientInfo||{})})),(t,a)=>(l(),o("section",R,[r(t.$slots,"avatar",{},(()=>[s(p(C),null,{trigger:f((()=>[s(p(L),d({style:{"border-radius":"50%"},width:40,height:40,"preview-disabled":"",src:e.patientInfo.avatar},e.patientInfo.avatarProps),null,16,["src"])])),default:f((()=>[s(p(L),d({width:200,"preview-disabled":"",src:e.patientInfo.avatarPreview||e.patientInfo.avatar},e.patientInfo.avatarPreviewProps),null,16,["src"])])),_:1})])),u("section",null,[u("header",$,[s(p(C),{disabled:!e.patientEditable,trigger:"manual",placement:"bottom",show:G.value},{trigger:f((()=>{var t;return[u("section",{class:c(["c-info-header__patientHeaderWrapper",{"in-edit":G.value}]),onDblclick:a[0]||(a[0]=t=>e.patientEditable&&(G.value=!0))},[e.patientInfo.name?(l(),o("div",B,[(l(),v(m(A(e.patientInfo.name))))])):_("v-if",!0),e.patientInfo.sex?(l(),o("div",S,[g(" / "),(l(),v(m(A(e.patientInfo.sex))))])):_("v-if",!0),null!=e.patientInfo.age?(l(),o("div",V,[g(" / "),(l(),v(m(A(e.patientInfo.age)))),(l(),v(m(A(null!=(t=e.patientInfo.ageUnit)?t:"岁"))))])):_("v-if",!0)],34)]})),default:f((()=>[s(p(N),{column:"6",size:"small","label-placement":"left",style:{width:"200px",margin:"4px 0 -8px 0"},"field-list":p(J),ref_key:"formRenderRef",ref:K},null,8,["field-list"]),s(p(H),{style:{margin:"8px -14px",width:"calc(100% + 28px)"}}),s(p(z),{justify:"end"},{default:f((()=>[s(p(T),{size:"small",onClick:a[1]||(a[1]=e=>G.value=!1)},{default:f((()=>[g("取消")])),_:1}),s(p(T),{size:"small",type:"info",onClick:Q},{default:f((()=>[g("确认")])),_:1})])),_:1})])),_:1},8,["disabled","show"]),r(t.$slots,"tags",{tagList:p(M)},(()=>[(l(!0),o(x,null,y(e.patientInfo.tagList||[],(e=>(l(),v(p(j),d({key:e.content,size:"medium",bordered:!1,color:q(e)},e),{default:f((()=>[e.render?(l(),v(m(e.render),{key:0})):(l(),v(p(F),{key:1,style:{"max-width":"96px"}},{default:f((()=>[g(I(e.content),1)])),_:2},1024))])),_:2},1040,["color"])))),128))]))]),r(t.$slots,"avatarInfo")])]))}});export{D as default};
@@ -297,7 +297,7 @@ declare const Keyboard: SFCWithInstall<import("vue").DefineComponent<{
297
297
  positionInitialValue: import("@vueuse/core").Position;
298
298
  moveOffset: import("@vueuse/core").Position;
299
299
  }>;
300
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "keydown")[], "change" | "keydown", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
300
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "keydown")[], "keydown" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
301
301
  mode: {
302
302
  type: import("vue").PropType<"number" | "day" | "dose" | "english">;
303
303
  default: string;
@@ -298,7 +298,7 @@ declare const _default: import("vue").DefineComponent<{
298
298
  positionInitialValue: Position;
299
299
  moveOffset: Position;
300
300
  }>;
301
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "keydown")[], "change" | "keydown", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
301
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "keydown")[], "keydown" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
302
302
  mode: {
303
303
  type: PropType<"number" | "day" | "dose" | "english">;
304
304
  default: string;
@@ -1 +1 @@
1
- import{defineComponent as e,ref as l,provide as t,computed as o,unref as n,openBlock as a,createBlock as u,normalizeStyle as i,withCtx as s,createVNode as r,mergeProps as d,createElementBlock as f,normalizeClass as p,createElementVNode as c,Fragment as m,renderList as v,createCommentVNode as y,createTextVNode as g,toDisplayString as h}from"vue";import{NPopover as k,NInputNumber as b,NSpace as w,NIcon as V}from"naive-ui";import{Close as _,GitCompareOutline as x,ArrowUndoSharp as O}from"@vicons/ionicons5";import S from"./components/NumberPanel.vue.js";import{useDraggable as j}from"@vueuse/core";import{useTheme as C}from"../../../shared/hooks/useTheme.js";import"date-fns";import"lodash-es";import{defaultCssVars as I}from"./constants/index.js";import D from"../../../_virtual/plugin-vue_export-helper.js";const K=c("span",null,"键盘",-1),N={class:"keys"},R=["onClick"];var U=D(e({__name:"Keyboard",props:{mode:{type:String,default:"english"},drag:{type:Boolean,default:!1},positionInitialValue:{type:Object,default:()=>({x:0,y:0})},defaultValue:{type:Number},value:{type:Number},panel:{type:Boolean,default:!0},moveOffset:{type:Object,default:()=>({x:0,y:0})}},emits:["change","keydown"],setup(e,{expose:D,emit:U}){const B=e,E="QWERTYUIOPASDFGHJKLZXCVBNM.",F=["Switch"," ","Undo","Enter"],J=E.split("").concat(F),M=E.split(".")[0].split("").sort().concat(["."],F),P=C(I,"Keyboard");let Q=l(Date.now());t("toSelectInputContent",Q);const T=o((()=>"english"===B.mode)),$=o((()=>({mode:B.mode,defaultValue:B.defaultValue,value:B.value,positionInitialValue:B.positionInitialValue,moveOffset:B.moveOffset,drag:B.drag,onChange:q}))),A=o((()=>`${JSON.stringify(P.value).replace(/\{|\}|\"/g,"").replace(/,/g,";")};${(null==Y?void 0:Y.value)||""}`)),G=l(J.slice()),H=l(null),L=l(null),W=l(null),X=l(),Y=function(){B.defaultValue&&(X.value=B.defaultValue);if(T.value&&B.drag){const{x:e,y:l,style:t}=j(L,{initialValue:B.positionInitialValue,preventDefault:!0,handle:W,onMove:(e,l)=>{var t,o,n,a;e.x+=null!=(o=null==(t=B.moveOffset)?void 0:t.x)?o:0,e.y+=null!=(a=null==(n=B.moveOffset)?void 0:n.y)?a:0}});return t}}();function Z(e){"Switch"!==e?U("keydown",e):G.value="Q"===G.value[0]?M.slice():J.slice()}function q(e){var l,t;null==(t=null==(l=H.value)?void 0:l.setShow)||t.call(l,!1),X.value=e,U("change",e)}return D({select:function(){Q.value=Date.now()}}),(l,t)=>n(T)||e.panel?!n(T)&&e.panel?(a(),u(S,d({key:1},n($),{style:n(P)}),null,16,["style"])):(a(),f("div",{key:2,class:p(["c-keyboard-english",{isFixed:e.drag}]),ref_key:"englishKeyboardRef",ref:L,style:i(n(A))},[r(n(w),{"wrap-item":!1,align:"center",justify:"space-between",ref_key:"keyboardDragRef",ref:W,style:i({cursor:e.drag?"move":"default"})},{default:s((()=>[K,r(n(V),{onClick:t[1]||(t[1]=e=>Z("close")),component:n(_)},null,8,["component"])])),_:1},8,["style"]),c("div",N,[(a(!0),f(m,null,v(G.value,((e,l)=>(a(),f("span",{key:e,class:p(["key"+l]),onClick:l=>Z(e)},["Switch"===e?(a(),u(n(V),{key:0,component:n(x)},null,8,["component"])):y("v-if",!0),"Undo"===e?(a(),u(n(V),{key:1,component:n(O)},null,8,["component"])):y("v-if",!0),g(" "+h(F.includes(e)&&"Enter"!==e?""===e?"空格":"":e),1)],10,R)))),128))])],6)):(a(),u(n(k),{key:0,ref_key:"popoverRef",ref:H,trigger:"click","show-arrow":!1,placement:"bottom-start",style:i([{padding:"0"},n(P)]),"display-directive":"show"},{trigger:s((()=>[r(n(b),{value:X.value,"onUpdate:value":t[0]||(t[0]=e=>X.value=e),"show-button":!1},null,8,["value"])])),default:s((()=>[r(S,{mode:e.mode,defaultValue:e.defaultValue,onChange:q},null,8,["mode","defaultValue"])])),_:1},8,["style"]))}}),[["__file","Keyboard.vue"]]);export{U as default};
1
+ import e from"./Keyboard.vue2.js";import r from"../../../_virtual/_plugin-vue_export-helper.js";var o=r(e,[["__file","Keyboard.vue"]]);export{o as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,ref as l,provide as t,computed as o,unref as n,openBlock as a,createBlock as u,normalizeStyle as i,withCtx as s,createVNode as r,mergeProps as d,createElementBlock as c,normalizeClass as f,createElementVNode as p,Fragment as m,renderList as v,createCommentVNode as y,createTextVNode as g,toDisplayString as h}from"vue";import{NPopover as k,NInputNumber as w,NSpace as V,NIcon as b}from"naive-ui";import{Close as x,GitCompareOutline as O,ArrowUndoSharp as S}from"@vicons/ionicons5";import C from"./components/NumberPanel.vue.js";import{useDraggable as _}from"@vueuse/core";import{useTheme as j}from"../../../shared/hooks/useTheme.js";import"date-fns";import"lodash-es";import{defaultCssVars as I}from"./constants/index.js";const D=p("span",null,"键盘",-1),N={class:"keys"},K=["onClick"];var R=e({__name:"Keyboard",props:{mode:{type:String,default:"english"},drag:{type:Boolean,default:!1},positionInitialValue:{type:Object,default:()=>({x:0,y:0})},defaultValue:{type:Number},value:{type:Number},panel:{type:Boolean,default:!0},moveOffset:{type:Object,default:()=>({x:0,y:0})}},emits:["change","keydown"],setup(e,{expose:R,emit:U}){const B=e,E="QWERTYUIOPASDFGHJKLZXCVBNM.",F=["Switch"," ","Undo","Enter"],J=E.split("").concat(F),M=E.split(".")[0].split("").sort().concat(["."],F),P=j(I,"Keyboard");let Q=l(Date.now());t("toSelectInputContent",Q);const T=o((()=>"english"===B.mode)),$=o((()=>({mode:B.mode,defaultValue:B.defaultValue,value:B.value,positionInitialValue:B.positionInitialValue,moveOffset:B.moveOffset,drag:B.drag,onChange:q}))),A=o((()=>`${JSON.stringify(P.value).replace(/\{|\}|\"/g,"").replace(/,/g,";")};${(null==Y?void 0:Y.value)||""}`)),G=l(J.slice()),H=l(null),L=l(null),W=l(null),X=l(),Y=function(){B.defaultValue&&(X.value=B.defaultValue);if(T.value&&B.drag){const{x:e,y:l,style:t}=_(L,{initialValue:B.positionInitialValue,preventDefault:!0,handle:W,onMove:(e,l)=>{var t,o,n,a;e.x+=null!=(o=null==(t=B.moveOffset)?void 0:t.x)?o:0,e.y+=null!=(a=null==(n=B.moveOffset)?void 0:n.y)?a:0}});return t}}();function Z(e){"Switch"!==e?U("keydown",e):G.value="Q"===G.value[0]?M.slice():J.slice()}function q(e){var l,t;null==(t=null==(l=H.value)?void 0:l.setShow)||t.call(l,!1),X.value=e,U("change",e)}return R({select:function(){Q.value=Date.now()}}),(l,t)=>n(T)||e.panel?!n(T)&&e.panel?(a(),u(C,d({key:1},n($),{style:n(P)}),null,16,["style"])):(a(),c("div",{key:2,class:f(["c-keyboard-english",{isFixed:e.drag}]),ref_key:"englishKeyboardRef",ref:L,style:i(n(A))},[r(n(V),{"wrap-item":!1,align:"center",justify:"space-between",ref_key:"keyboardDragRef",ref:W,style:i({cursor:e.drag?"move":"default"})},{default:s((()=>[D,r(n(b),{onClick:t[1]||(t[1]=e=>Z("close")),component:n(x)},null,8,["component"])])),_:1},8,["style"]),p("div",N,[(a(!0),c(m,null,v(G.value,((e,l)=>(a(),c("span",{key:e,class:f(["key"+l]),onClick:l=>Z(e)},["Switch"===e?(a(),u(n(b),{key:0,component:n(O)},null,8,["component"])):y("v-if",!0),"Undo"===e?(a(),u(n(b),{key:1,component:n(S)},null,8,["component"])):y("v-if",!0),g(" "+h(F.includes(e)&&"Enter"!==e?""===e?"空格":"":e),1)],10,K)))),128))])],6)):(a(),u(n(k),{key:0,ref_key:"popoverRef",ref:H,trigger:"click","show-arrow":!1,placement:"bottom-start",style:i([{padding:"0"},n(P)]),"display-directive":"show"},{trigger:s((()=>[r(n(w),{value:X.value,"onUpdate:value":t[0]||(t[0]=e=>X.value=e),"show-button":!1},null,8,["value"])])),default:s((()=>[r(C,{mode:e.mode,defaultValue:e.defaultValue,onChange:q},null,8,["mode","defaultValue"])])),_:1},8,["style"]))}});export{R as default};
@@ -1 +1 @@
1
- import{defineComponent as e,ref as t,inject as u,watch as l,openBlock as n,createBlock as o,unref as a,withCtx as s,createVNode as r}from"vue";import{NInput as i,NSpace as p,NIcon as c}from"naive-ui";import{CaretUp as d,CaretDown as m}from"@vicons/ionicons5";import{getNumber as f}from"../utils/index.js";import v from"../../../../_virtual/plugin-vue_export-helper.js";var g=v(e({__name:"InputNumber",props:{modelValue:{type:String,default:""},integer:{type:Boolean,default:!1},status:{type:String,default:"success"}},emits:["update:modelValue","update:status"],setup(e,{expose:v,emit:g}){const _=e,y=t(null),V=u("toSelectInputContent");function x(e){const t="string"==typeof e?e:e.join("");g("update:modelValue",t),g("update:status",t?"success":"error")}function b(e){return _.integer?/(^[1-9]\d*$)/.test(e)||!e:/^\d*\.?\d*$/.test(e)||!e}function j(e){const t=f(_.modelValue);let u="+"===e?t+1:t-1;(u<=0||isNaN(u))&&(u=1),g("update:modelValue",u.toString()),g("update:status","success")}return l((()=>V.value),(e=>{var t,u;!_.integer&&(null==(u=null==(t=y.value)?void 0:t.select)||u.call(t))})),v({$childrenRefs:y}),(t,u)=>(n(),o(a(i),{ref_key:"inputRef",ref:y,value:e.modelValue,"onUpdate:value":x,"allow-input":b,placeholder:"",status:e.status,clearable:!e.integer},{suffix:s((()=>[r(a(p),{justify:"center",vertical:""},{default:s((()=>[r(a(c),{size:"13",component:a(d),onClick:u[0]||(u[0]=e=>j("+"))},null,8,["component"]),r(a(c),{size:"13",component:a(m),onClick:u[1]||(u[1]=e=>j("-"))},null,8,["component"])])),_:1})])),_:1},8,["value","status","clearable"]))}}),[["__file","InputNumber.vue"]]);export{g as default};
1
+ import e from"./InputNumber.vue2.js";import r from"../../../../_virtual/_plugin-vue_export-helper.js";var u=r(e,[["__file","InputNumber.vue"]]);export{u as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,ref as t,inject as u,watch as l,openBlock as n,createBlock as o,unref as a,withCtx as s,createVNode as i}from"vue";import{NInput as r,NSpace as c,NIcon as p}from"naive-ui";import{CaretUp as d,CaretDown as m}from"@vicons/ionicons5";import{getNumber as f}from"../utils/index.js";var v=e({__name:"InputNumber",props:{modelValue:{type:String,default:""},integer:{type:Boolean,default:!1},status:{type:String,default:"success"}},emits:["update:modelValue","update:status"],setup(e,{expose:v,emit:g}){const y=e,V=t(null),_=u("toSelectInputContent");function x(e){const t="string"==typeof e?e:e.join("");g("update:modelValue",t),g("update:status",t?"success":"error")}function S(e){return y.integer?/(^[1-9]\d*$)/.test(e)||!e:/^\d*\.?\d*$/.test(e)||!e}function b(e){const t=f(y.modelValue);let u="+"===e?t+1:t-1;(u<=0||isNaN(u))&&(u=1),g("update:modelValue",u.toString()),g("update:status","success")}return l((()=>_.value),(e=>{var t,u;!y.integer&&(null==(u=null==(t=V.value)?void 0:t.select)||u.call(t))})),v({$childrenRefs:V}),(t,u)=>(n(),o(a(r),{ref_key:"inputRef",ref:V,value:e.modelValue,"onUpdate:value":x,"allow-input":S,placeholder:"",status:e.status,clearable:!e.integer},{suffix:s((()=>[i(a(c),{justify:"center",vertical:""},{default:s((()=>[i(a(p),{size:"13",component:a(d),onClick:u[0]||(u[0]=e=>b("+"))},null,8,["component"]),i(a(p),{size:"13",component:a(m),onClick:u[1]||(u[1]=e=>b("-"))},null,8,["component"])])),_:1})])),_:1},8,["value","status","clearable"]))}});export{v as default};
@@ -1 +1 @@
1
- import{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,n,l;e.x+=null!=(u=null==(a=props.moveOffset)?void 0:a.x)?u:0,e.y+=null!=(l=null==(n=props.moveOffset)?void 0:n.y)?l:0}});return a}}async function setFocus(){var e,t,a;const u=null==(a=null==(t=null==(e=inputRef.value)?void 0:e.$childrenRefs)?void 0:t.$refs)?void 0:a.inputElRef;await nextTick(),u.focus()}function keydown(key){switch(key){case"Undo":updateValue(key);break;case"Enter":if(!validator())return void(inputValueStatus.value="error");emit("change",eval(inputValue.value)),setFocus();break;default:"number"==typeof key?(inputValue.value=key.toString(),setInputValueStatus(),setFocus()):updateValue(key)}}function onKeydown(e){["Enter"].includes(e.key)&&keydown("Enter")}async function updateValue(e){var t,a,u;const n=null==(u=null==(a=null==(t=inputRef.value)?void 0:t.$childrenRefs)?void 0:a.$refs)?void 0:u.inputElRef,{selectionStart:l,selectionEnd:o}=n,r=inputValue.value.split("");if("Undo"===e){const e=l===o?1:o-l,t=l===o?l-1:l;inputValue.value&&t>-1&&r.splice(t,e)}else r.splice(l,o-l,e);inputValue.value=r.join(""),await nextTick(),n.focus();const s="Undo"===e?l?o>l?l:l-1:0:l+1;n.setSelectionRange(s,s),setInputValueStatus()}function validator(){if(!inputValue.value)return!1;if(CALCULATIONSYMBOLS.slice(2).includes(inputValue.value[0]))return!1;if(CALCULATIONSYMBOLS.includes(inputValue.value[inputValue.value.length-1]))return!1;const e=[];let t=[];const a=inputValue.value.split("");a.forEach(((u,n)=>{CALCULATIONSYMBOLS.includes(u)?(e.push(t.join("")),t=[]):(t.push(u),n===a.length-1&&e.push(t.join("")))}));return!!e.every(((e,t)=>0===t&&!e||/^\d*(.\d+)?$/.test(e)))}function updateFraction(e){setInputStatus(inputValue,inputValueStatus)&&(inputValue.value=(Math.round(+inputValue.value*(1/e)*100)/100).toString(),setInputValueStatus())}function calculateFraction(){if(!setInputStatus(inputValue,inputValueStatus)||!setInputStatus(numeratorValue,numeratorValueStatus,!0)||!setInputStatus(denominatorValue,denominatorValueStatus,!0))return;const e=getNumber(integerValue.value)+getNumber(numeratorValue.value)/getNumber(denominatorValue.value);inputValue.value=(Math.round(+inputValue.value*e*100)/100).toString(),setInputValueStatus()}function setInputStatus(e,t,a){if((a||e.value&&"."!==e.value)&&(!a||e.value))return!0;t.value="error"}function setInputValueStatus(){inputValueStatus.value=inputValue.value?"success":"error"}return watch((()=>props.value),(e=>inputValue.value=(e||"").toString()),{immediate:!0}),(e,t)=>(openBlock(),createElementBlock("div",{class:normalizeClass(["c-keyboard",{isFixed:__props.drag}]),ref_key:"keyboardRef",ref:keyboardRef,style:normalizeStyle(unref(style)),onKeydown:onKeydown},[createElementVNode("div",{class:normalizeClass(["left",{isDose:unref(isDose)}])},[createVNode(InputNumber,{ref_key:"inputRef",ref:inputRef,modelValue:inputValue.value,"onUpdate:modelValue":t[0]||(t[0]=e=>inputValue.value=e),status:inputValueStatus.value,"onUpdate:status":t[1]||(t[1]=e=>inputValueStatus.value=e)},null,8,["modelValue","status"]),createElementVNode("div",_hoisted_1,[createVNode(unref(NSpace),{class:"margin-offset","wrap-item":!1},{default:withCtx((()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(numberKeys),(e=>(openBlock(),createElementBlock("span",{key:e,class:normalizeClass("0"===e?"is-0":""),onClick:t=>keydown(e)},toDisplayString(e),11,_hoisted_2)))),128))])),_:1}),createVNode(unref(NSpace),{class:"margin-offset","wrap-item":!1},{default:withCtx((()=>[createElementVNode("span",{class:"opt",onClick:t[2]||(t[2]=e=>keydown("Undo"))},[createVNode(unref(NIcon),{component:unref(ArrowUndoSharp)},null,8,["component"])]),createElementVNode("span",{class:"opt",onClick:t[3]||(t[3]=e=>keydown("Enter"))},"确定")])),_:1})])],2),unref(isDay)?(openBlock(),createBlock(unref(NSpace),{key:0,class:"right-days","wrap-item":!1,justify:"center",vertical:""},{default:withCtx((()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(days.value,(e=>(openBlock(),createElementBlock("span",{class:"btn",key:e,onClick:t=>keydown(e)},toDisplayString(e)+"天",9,_hoisted_3)))),128))])),_:1})):createCommentVNode("v-if",!0),unref(isDose)?(openBlock(),createBlock(unref(NSpace),{key:1,class:"right-dose","wrap-item":!1},{default:withCtx((()=>[createElementVNode("div",_hoisted_4,[(openBlock(!0),createElementBlock(Fragment,null,renderList(doses.value,(e=>(openBlock(),createElementBlock("span",{class:"btn",key:e,onClick:t=>updateFraction(e)},"1/"+toDisplayString(e),9,_hoisted_5)))),128))]),createVNode(unref(NSpace),{justify:"center",vertical:"","wrap-item":!1},{default:withCtx((()=>[createElementVNode("div",_hoisted_6,[createVNode(InputNumber,{integer:"",modelValue:integerValue.value,"onUpdate:modelValue":t[4]||(t[4]=e=>integerValue.value=e)},null,8,["modelValue"]),createElementVNode("div",_hoisted_7,[createVNode(InputNumber,{integer:"",modelValue:numeratorValue.value,"onUpdate:modelValue":t[5]||(t[5]=e=>numeratorValue.value=e),status:numeratorValueStatus.value,"onUpdate:status":t[6]||(t[6]=e=>numeratorValueStatus.value=e)},null,8,["modelValue","status"]),_hoisted_8,createVNode(InputNumber,{integer:"",modelValue:denominatorValue.value,"onUpdate:modelValue":t[7]||(t[7]=e=>denominatorValue.value=e),status:denominatorValueStatus.value,"onUpdate:status":t[8]||(t[8]=e=>denominatorValueStatus.value=e)},null,8,["modelValue","status"])])]),createElementVNode("span",{class:"btn",onClick:calculateFraction},"分子式剂量")])),_:1})])),_:1})):createCommentVNode("v-if",!0)],38))}});var NumberPanel=_export_sfc(_sfc_main,[["__file","NumberPanel.vue"]]);export{NumberPanel as default};
1
+ import e from"./NumberPanel.vue2.js";import r from"../../../../_virtual/_plugin-vue_export-helper.js";var u=r(e,[["__file","NumberPanel.vue"]]);export{u as default};
@@ -0,0 +1 @@
1
+ import{defineComponent,computed,ref,watch,openBlock,createElementBlock,normalizeClass,normalizeStyle,unref,createElementVNode,createVNode,withCtx,Fragment,renderList,toDisplayString,createBlock,createCommentVNode,nextTick}from"vue";import{NSpace,NIcon}from"naive-ui";import{ArrowUndoSharp}from"@vicons/ionicons5";import InputNumber from"./InputNumber.vue.js";import{useDraggable}from"@vueuse/core";import{getNumber}from"../utils/index.js";const _hoisted_1={class:"keys"},_hoisted_2=["onClick"],_hoisted_3=["onClick"],_hoisted_4={class:"btns"},_hoisted_5=["onClick"],_hoisted_6={class:"inputs"},_hoisted_7={class:"inputs-right"},_hoisted_8=createElementVNode("hr",null,null,-1);var _sfc_main=defineComponent({__name:"NumberPanel",props:{defaultValue:{type:Number},value:{type:Number},mode:{type:String},positionInitialValue:{type:Object,default:()=>({x:0,y:0})},moveOffset:{type:Object,default:()=>({x:0,y:0})},drag:{type:Boolean,default:!1}},emits:["change"],setup(__props,{emit:emit}){const props=__props,NUMBERKEYS="1234567890.",DAYS=[3,7,14,30],DOSENUMBERKEYS="123/456*789-0.+",CALCULATIONSYMBOLS=["+","-","*","/"],isNumber=computed((()=>"number"===props.mode)),isDay=computed((()=>"day"===props.mode&&!isNumber.value)),isDose=computed((()=>"dose"===props.mode&&!isNumber.value)),numberKeys=computed((()=>(isDose.value?DOSENUMBERKEYS:NUMBERKEYS).split(""))),days=ref(DAYS),doses=ref([2,3,4,5,6,7,8]),inputValue=ref(""),integerValue=ref(),numeratorValue=ref(),denominatorValue=ref(),inputValueStatus=ref("success"),numeratorValueStatus=ref("success"),denominatorValueStatus=ref("success"),keyboardRef=ref(null),inputRef=ref(null),style=init();function init(){if(props.defaultValue&&(inputValue.value=props.defaultValue.toString()),props.drag){const{x:e,y:t,style:a}=useDraggable(keyboardRef,{initialValue:props.positionInitialValue,onMove:(e,t)=>{var a,u,n,l;e.x+=null!=(u=null==(a=props.moveOffset)?void 0:a.x)?u:0,e.y+=null!=(l=null==(n=props.moveOffset)?void 0:n.y)?l:0}});return a}}async function setFocus(){var e,t,a;const u=null==(a=null==(t=null==(e=inputRef.value)?void 0:e.$childrenRefs)?void 0:t.$refs)?void 0:a.inputElRef;await nextTick(),u.focus()}function keydown(key){switch(key){case"Undo":updateValue(key);break;case"Enter":if(!validator())return void(inputValueStatus.value="error");emit("change",eval(inputValue.value)),setFocus();break;default:"number"==typeof key?(inputValue.value=key.toString(),setInputValueStatus(),setFocus()):updateValue(key)}}function onKeydown(e){["Enter"].includes(e.key)&&keydown("Enter")}async function updateValue(e){var t,a,u;const n=null==(u=null==(a=null==(t=inputRef.value)?void 0:t.$childrenRefs)?void 0:a.$refs)?void 0:u.inputElRef,{selectionStart:l,selectionEnd:o}=n,r=inputValue.value.split("");if("Undo"===e){const e=l===o?1:o-l,t=l===o?l-1:l;inputValue.value&&t>-1&&r.splice(t,e)}else r.splice(l,o-l,e);inputValue.value=r.join(""),await nextTick(),n.focus();const s="Undo"===e?l?o>l?l:l-1:0:l+1;n.setSelectionRange(s,s),setInputValueStatus()}function validator(){if(!inputValue.value)return!1;if(CALCULATIONSYMBOLS.slice(2).includes(inputValue.value[0]))return!1;if(CALCULATIONSYMBOLS.includes(inputValue.value[inputValue.value.length-1]))return!1;const e=[];let t=[];const a=inputValue.value.split("");a.forEach(((u,n)=>{CALCULATIONSYMBOLS.includes(u)?(e.push(t.join("")),t=[]):(t.push(u),n===a.length-1&&e.push(t.join("")))}));return!!e.every(((e,t)=>0===t&&!e||/^\d*(.\d+)?$/.test(e)))}function updateFraction(e){setInputStatus(inputValue,inputValueStatus)&&(inputValue.value=(Math.round(+inputValue.value*(1/e)*100)/100).toString(),setInputValueStatus())}function calculateFraction(){if(!setInputStatus(inputValue,inputValueStatus)||!setInputStatus(numeratorValue,numeratorValueStatus,!0)||!setInputStatus(denominatorValue,denominatorValueStatus,!0))return;const e=getNumber(integerValue.value)+getNumber(numeratorValue.value)/getNumber(denominatorValue.value);inputValue.value=(Math.round(+inputValue.value*e*100)/100).toString(),setInputValueStatus()}function setInputStatus(e,t,a){if((a||e.value&&"."!==e.value)&&(!a||e.value))return!0;t.value="error"}function setInputValueStatus(){inputValueStatus.value=inputValue.value?"success":"error"}return watch((()=>props.value),(e=>inputValue.value=(e||"").toString()),{immediate:!0}),(e,t)=>(openBlock(),createElementBlock("div",{class:normalizeClass(["c-keyboard",{isFixed:__props.drag}]),ref_key:"keyboardRef",ref:keyboardRef,style:normalizeStyle(unref(style)),onKeydown:onKeydown},[createElementVNode("div",{class:normalizeClass(["left",{isDose:unref(isDose)}])},[createVNode(InputNumber,{ref_key:"inputRef",ref:inputRef,modelValue:inputValue.value,"onUpdate:modelValue":t[0]||(t[0]=e=>inputValue.value=e),status:inputValueStatus.value,"onUpdate:status":t[1]||(t[1]=e=>inputValueStatus.value=e)},null,8,["modelValue","status"]),createElementVNode("div",_hoisted_1,[createVNode(unref(NSpace),{class:"margin-offset","wrap-item":!1},{default:withCtx((()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(numberKeys),(e=>(openBlock(),createElementBlock("span",{key:e,class:normalizeClass("0"===e?"is-0":""),onClick:t=>keydown(e)},toDisplayString(e),11,_hoisted_2)))),128))])),_:1}),createVNode(unref(NSpace),{class:"margin-offset","wrap-item":!1},{default:withCtx((()=>[createElementVNode("span",{class:"opt",onClick:t[2]||(t[2]=e=>keydown("Undo"))},[createVNode(unref(NIcon),{component:unref(ArrowUndoSharp)},null,8,["component"])]),createElementVNode("span",{class:"opt",onClick:t[3]||(t[3]=e=>keydown("Enter"))},"确定")])),_:1})])],2),unref(isDay)?(openBlock(),createBlock(unref(NSpace),{key:0,class:"right-days","wrap-item":!1,justify:"center",vertical:""},{default:withCtx((()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(days.value,(e=>(openBlock(),createElementBlock("span",{class:"btn",key:e,onClick:t=>keydown(e)},toDisplayString(e)+"天",9,_hoisted_3)))),128))])),_:1})):createCommentVNode("v-if",!0),unref(isDose)?(openBlock(),createBlock(unref(NSpace),{key:1,class:"right-dose","wrap-item":!1},{default:withCtx((()=>[createElementVNode("div",_hoisted_4,[(openBlock(!0),createElementBlock(Fragment,null,renderList(doses.value,(e=>(openBlock(),createElementBlock("span",{class:"btn",key:e,onClick:t=>updateFraction(e)},"1/"+toDisplayString(e),9,_hoisted_5)))),128))]),createVNode(unref(NSpace),{justify:"center",vertical:"","wrap-item":!1},{default:withCtx((()=>[createElementVNode("div",_hoisted_6,[createVNode(InputNumber,{integer:"",modelValue:integerValue.value,"onUpdate:modelValue":t[4]||(t[4]=e=>integerValue.value=e)},null,8,["modelValue"]),createElementVNode("div",_hoisted_7,[createVNode(InputNumber,{integer:"",modelValue:numeratorValue.value,"onUpdate:modelValue":t[5]||(t[5]=e=>numeratorValue.value=e),status:numeratorValueStatus.value,"onUpdate:status":t[6]||(t[6]=e=>numeratorValueStatus.value=e)},null,8,["modelValue","status"]),_hoisted_8,createVNode(InputNumber,{integer:"",modelValue:denominatorValue.value,"onUpdate:modelValue":t[7]||(t[7]=e=>denominatorValue.value=e),status:denominatorValueStatus.value,"onUpdate:status":t[8]||(t[8]=e=>denominatorValueStatus.value=e)},null,8,["modelValue","status"])])]),createElementVNode("span",{class:"btn",onClick:calculateFraction},"分子式剂量")])),_:1})])),_:1})):createCommentVNode("v-if",!0)],38))}});export{_sfc_main as default};
@@ -1 +1 @@
1
- import{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};
1
+ import e from"./Map.vue2.js";import r from"../../../_virtual/_plugin-vue_export-helper.js";var p=r(e,[["__file","Map.vue"]]);export{p as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,reactive as a,computed as t,onMounted as n,openBlock as s,createElementBlock as o,createElementVNode as r,createVNode as l,unref as i,withCtx as c,createTextVNode as d,toDisplayString as p,Fragment as m,renderList as u,createCommentVNode as g}from"vue";import{useMessage as v,NInput as q,NButton as L}from"naive-ui";const h={class:"c-map"},y={class:"search-container"},f={class:"map-input-search"},k={class:"input-addon"},w=r("div",{id:"map-core"},null,-1),_={key:0,class:"address-list"},S=["onClick"],P={class:"title"};var C=e({__name:"Map",props:{locationProp:{type:String,default:""},ak:{type:String,default:"KP3BZ-OAC3W-PY6RY-OJ6DV-JYKN3-H6F72"}},emits:["selectLocation"],setup(e,{emit:C}){const O=e,T=a({qq:null,searchKey:"",centrePoint:{},location:{lng:"",lat:""},localObj:{},map:null,ac:null,addressList:[],markers:[],timeout:null,searchService:null,geocoder:{}}),M=t((()=>{var e,a;return null==(a=null==(e=T.addressList)?void 0:e[0])?void 0:a.name})),I=t((()=>O.locationProp&&JSON.parse(O.locationProp)||null)),B=v(),E=e=>{if(e&&"geolocation"==e.module){T.location.lng=e.lng,T.location.lat=e.lat;const a=new T.qq.maps.LatLng(e.lat,e.lng);x({latLng:a}),K({lat:e.lat,lng:e.lng})}else console.log("用户不允许获取地理位置"),T.location.lng=113.275,T.location.lat=23.117},K=e=>{const a=T.qq;var t=new a.maps.LatLng(e.lat,e.lng);T.centrePoint=t,T.map.panTo(t);const n=new a.maps.Marker({position:t,map:T.map});T.markers.push(n)},N=e=>{for(var a;a=e.pop();)a.setMap(null)},b=()=>{T.markers&&T.markers.length&&N(T.markers),T.markers=[]},x=(e={})=>{const a=T.qq,t=e.latLng,n=new a.maps.Geocoder;n.setComplete((e=>{if("GEO_INFO"===e.type){var t=new a.maps.LatLngBounds,n=e.detail.nearPois||[];b(),T.addressList=n||[];for(let e=0;e<n.length;e++){const o=n[e];var s=new a.maps.Marker({map:T.map});s.setPosition(o.latLng),s.setTitle(e+1),T.markers.push(s),t.extend(o.latLng)}T.map.fitBounds(t)}var o=e.detail.location||{};K(o)})),n.setError((function(){alert("出错了,请输入正确的经纬度!!!")})),n.getAddress(t)},A=()=>{let e=T.searchKey;e&&(T.markers&&T.markers.length&&N(T.markers),T.searchService.setLocation(""),T.searchService.setPageCapacity(50),T.searchService.search(e))},G=(e,a)=>{const t=T.qq,{name:n,address:s,latLng:o}=e,{lat:r,lng:l}=o,i=new t.maps.Geocoder;i.setComplete((function(e){if("GEO_INFO"===e.type){const{addressComponents:{province:a,city:t,district:o,country:i}}=e.detail,c=JSON.stringify({name:n,address:s,province:a,city:t,district:o,country:i,lat:r,lng:l});C("selectLocation",{locationProp:c,isInit:!1})}})),i.setError((function(){alert("出错了,请输入正确的经纬度!!!")})),i.getAddress(o)},J=e=>{var a={zoom:12,center:new e.maps.LatLng(39.916527,116.397128),mapTypeId:e.maps.MapTypeId.ROADMAP};T.map=new e.maps.Map(document.getElementById("map-core"),a);const{lat:t,lng:n,address:s}=I.value||{};if(t&&n){const a=new e.maps.LatLng(t,n);x({latLng:a})}else s?setTimeout((()=>{A()}),300):new T.qq.maps.Geolocation(O.ak,"qqmap").getLocation(E,(function(e){console.log(e)}),{timeout:9e3});T.qq.maps.event.addDomListener(T.map,"click",(function(e){x({latLng:e.latLng})}))},Y=e=>{T.qq=e,setTimeout((()=>{J(e),(()=>{const e=T.qq;T.searchService=new e.maps.SearchService({complete:function(a){var t,n,s=a.detail.pois||[],o=new e.maps.LatLngBounds;if("CITY_LIST"===a.type)return T.searchService.setLocation(a.detail.cities[0].cityName),void T.searchService.search(T.searchKey);if(T.addressList=s||[],b(),"POI_LIST"===a.type)for(var r=0,l=s.length;r<l;r++){var i=s[r];o.extend(i.latLng),t=r,n=void 0,(n=new e.maps.Marker({map:T.map})).setPosition(s[t].latLng),n.setTitle(r+1),T.markers.push(n)}T.map.fitBounds(o)},error:function(e){console.log(e),"NO_RESULTS"!==e?B.warning("地址检索先输入城市名称"):B.warning("查无结果!")},autoExtend:!0})})()}),0)},j=()=>{(()=>{var e,a;let t=window;if(t.qq)return t.qq._preloader?t.qq._preloader:Promise.resolve(t.qq);{const n=O.ak||(null==(a=null==(e=t._qq)?void 0:e.call(t))?void 0:a.ak);return t.qq={},t.qq._preloader=new Promise((e=>{t._initBaiduMap=function(){e(t.qq),t.document.body.removeChild(a),t.qq._preloader=null,t._initBaiduMap=null};const a=document.createElement("script");window.document.body.appendChild(a),a.src=`https://map.qq.com/api/js?v=2.exp&key=${n}&callback=_initBaiduMap`;const s=document.createElement("script");window.document.body.appendChild(s),s.src="https://3gimg.qq.com/lightmap/components/geolocation/geolocation.min.js"})),t.qq._preloader}})().then(Y)};return n((()=>{setTimeout((()=>{j()}),200)})),(e,a)=>(s(),o("div",h,[r("div",y,[r("div",f,[l(i(q),{value:T.searchKey,"onUpdate:value":a[0]||(a[0]=e=>T.searchKey=e),placeholder:"请输入地址","enter-button":"检索"},null,8,["value"]),r("span",k,[l(i(L),{type:"primary",size:"small",onClick:A},{default:c((()=>[d("检索")])),_:1})])])]),w,T.addressList&&T.addressList.length?(s(),o("ul",_,[r("li",null,[d(" 地址:"+p(i(M))+" ",1),l(i(L),{type:"primary",size:"small",onClick:a[1]||(a[1]=e=>G(T.addressList[0]))},{default:c((()=>[d("确定")])),_:1})]),(s(!0),o(m,null,u(T.addressList,((e,a)=>(s(),o("li",{class:"address-item",key:a},[r("div",{onClick:a=>G(e)},[r("div",P,p(e.name),1),r("span",null,p(e.address),1)],8,S)])))),128))])):g("v-if",!0)]))}});export{C as default};
@@ -1 +1 @@
1
- import{defineComponent as e,ref as a,watch as t,nextTick as n,onBeforeUnmount as c,openBlock as i,createElementBlock as r,createElementVNode as s,createVNode as l,unref as o,withCtx as u,createTextVNode as v}from"vue";import{fabric as p}from"../../../shared/utils/fabricjs/index.js";import{NButton as f}from"naive-ui";import{isString as h}from"lodash-es";import d from"../../../_virtual/plugin-vue_export-helper.js";const m={class:"c-picture-clipper"},g={class:"canvas-right"},w={key:0,class:"preview-border"},y=["src"],C={class:"btns"};var P=d(e({__name:"PictureClipper",props:{source:{type:[String,File]}},emits:["save"],setup(e,{emit:d}){const P=e,_=500,b={x:250,y:270},k={originX:"center",originY:"center",left:b.x,top:b.y},R=a(null),j=a(),x={canvas:null,img:null,clipPath:null};function L(){var e;if(!x.canvas)return;const{width:a=0,height:t=0,left:n=0,top:c=0,scaleX:i=1,scaleY:r=1}=x.clipPath,s=a*i,l=t*r;j.value=null==(e=x.canvas)?void 0:e.toDataURL({left:n-s/2,top:c-l/2,width:s,height:l})}function S(){x.canvas&&d("save",j.value)}function U(e){var a;x.canvas&&(null==(a=x.clipPath)||a.setCoords().set({...k,...e,scaleX:1,scaleY:1}),F(),j.value="")}function F(){const{canvas:e,clipPath:a}=x;e&&a&&(x.canvas.discardActiveObject(),x.clipPath.bringToFront(),x.canvas.setActiveObject(x.clipPath))}return t((()=>P.source),(async e=>{e&&(await n(),async function(){const{minLength:e,sourceScale:a,sourceUrl:t}=await function(){return new Promise(((a,t)=>{if(h(P.source))e(P.source).then((e=>a(e)));else if(Object.prototype.toString.call(P.source).includes("File")){const t=new FileReader;t.onload=n=>{e(t.result).then((e=>a(e)))},t.readAsDataURL(P.source)}}));function e(e){return new Promise(((a,t)=>{const n=p.util.createImage();n.src=e,n.onload=t=>{const{width:c,height:i}=n;a({sourceScale:c>=i?_/c:_/i,minLength:Math.min(c,i),sourceUrl:e})}}))}}();x.canvas||(x.canvas=new p.Canvas(R.value,{width:_,height:_,backgroundColor:"#fff",selection:!1,containerClass:"c-picture-clipper__canvas",fireRightClick:!0}));x.img&&x.canvas.remove(x.img),p.Image.fromURL(t,(function(e){e.scale(a).set({...k,evented:!1,selectable:!1}),x.canvas.add(e),x.img=e,F()}));const n=e*a;x.clipPath?U({width:n,height:n}):(x.clipPath=new p.Rect({...k,width:n,height:n,fill:"transparent",lockRotation:!0,borderColor:"#5585f5",cornerColor:"#5585f5",cornerSize:10,transparentCorners:!1}),x.canvas.add(x.clipPath),F(),x.canvas.on("mouse:down",(e=>{F()})))}())}),{immediate:!0}),c((()=>{var e,a;null==(e=x.canvas)||e.off(),null==(a=x.canvas)||a.clear()})),(e,a)=>(i(),r("div",m,[s("canvas",{ref_key:"canvasRef",ref:R},null,512),s("div",g,[j.value?(i(),r("img",{key:1,src:j.value,alt:""},null,8,y)):(i(),r("span",w)),s("div",C,[l(o(f),{onClick:a[0]||(a[0]=()=>U())},{default:u((()=>[v("撤销")])),_:1}),l(o(f),{type:"primary",onClick:L},{default:u((()=>[v("预览")])),_:1}),l(o(f),{type:"primary",onClick:S},{default:u((()=>[v("保存")])),_:1})])])]))}}),[["__file","PictureClipper.vue"]]);export{P as default};
1
+ import e from"./PictureClipper.vue2.js";import r from"../../../_virtual/_plugin-vue_export-helper.js";var p=r(e,[["__file","PictureClipper.vue"]]);export{p as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,ref as a,watch as t,nextTick as n,onBeforeUnmount as c,openBlock as i,createElementBlock as r,createElementVNode as s,createVNode as l,unref as o,withCtx as u,createTextVNode as v}from"vue";import{fabric as p}from"../../../shared/utils/fabricjs/index.js";import{NButton as f}from"naive-ui";import{isString as h}from"lodash-es";const d={class:"c-picture-clipper"},m={class:"canvas-right"},g={key:0,class:"preview-border"},w=["src"],y={class:"btns"};var C=e({__name:"PictureClipper",props:{source:{type:[String,File]}},emits:["save"],setup(e,{emit:C}){const P=e,b=500,k={x:250,y:270},R={originX:"center",originY:"center",left:k.x,top:k.y},_=a(null),j=a(),L={canvas:null,img:null,clipPath:null};function S(){var e;if(!L.canvas)return;const{width:a=0,height:t=0,left:n=0,top:c=0,scaleX:i=1,scaleY:r=1}=L.clipPath,s=a*i,l=t*r;j.value=null==(e=L.canvas)?void 0:e.toDataURL({left:n-s/2,top:c-l/2,width:s,height:l})}function U(){L.canvas&&C("save",j.value)}function x(e){var a;L.canvas&&(null==(a=L.clipPath)||a.setCoords().set({...R,...e,scaleX:1,scaleY:1}),F(),j.value="")}function F(){const{canvas:e,clipPath:a}=L;e&&a&&(L.canvas.discardActiveObject(),L.clipPath.bringToFront(),L.canvas.setActiveObject(L.clipPath))}return t((()=>P.source),(async e=>{e&&(await n(),async function(){const{minLength:e,sourceScale:a,sourceUrl:t}=await function(){return new Promise(((a,t)=>{if(h(P.source))e(P.source).then((e=>a(e)));else if(Object.prototype.toString.call(P.source).includes("File")){const t=new FileReader;t.onload=n=>{e(t.result).then((e=>a(e)))},t.readAsDataURL(P.source)}}));function e(e){return new Promise(((a,t)=>{const n=p.util.createImage();n.src=e,n.onload=t=>{const{width:c,height:i}=n;a({sourceScale:c>=i?b/c:b/i,minLength:Math.min(c,i),sourceUrl:e})}}))}}();L.canvas||(L.canvas=new p.Canvas(_.value,{width:b,height:b,backgroundColor:"#fff",selection:!1,containerClass:"c-picture-clipper__canvas",fireRightClick:!0}));L.img&&L.canvas.remove(L.img),p.Image.fromURL(t,(function(e){e.scale(a).set({...R,evented:!1,selectable:!1}),L.canvas.add(e),L.img=e,F()}));const n=e*a;L.clipPath?x({width:n,height:n}):(L.clipPath=new p.Rect({...R,width:n,height:n,fill:"transparent",lockRotation:!0,borderColor:"#5585f5",cornerColor:"#5585f5",cornerSize:10,transparentCorners:!1}),L.canvas.add(L.clipPath),F(),L.canvas.on("mouse:down",(e=>{F()})))}())}),{immediate:!0}),c((()=>{var e,a;null==(e=L.canvas)||e.off(),null==(a=L.canvas)||a.clear()})),(e,a)=>(i(),r("div",d,[s("canvas",{ref_key:"canvasRef",ref:_},null,512),s("div",m,[j.value?(i(),r("img",{key:1,src:j.value,alt:""},null,8,w)):(i(),r("span",g)),s("div",y,[l(o(f),{onClick:a[0]||(a[0]=()=>x())},{default:u((()=>[v("撤销")])),_:1}),l(o(f),{type:"primary",onClick:S},{default:u((()=>[v("预览")])),_:1}),l(o(f),{type:"primary",onClick:U},{default:u((()=>[v("保存")])),_:1})])])]))}});export{C as default};
@@ -1 +1 @@
1
- import{defineComponent as e,ref as l,provide as a,computed as t,watch as i,onMounted as n,openBlock as o,createElementBlock as r,createElementVNode as s,Fragment as c,renderList as u,unref as d,normalizeClass as v,createCommentVNode as f,createVNode as m,withCtx as p,createTextVNode as h,toDisplayString as g,createBlock as k,withDirectives as b,vShow as y,isRef as C}from"vue";import{useMessage as _,NPopover as x,NModal as S,NCard as A,NIcon as q,NButton as w,NForm as j,NFormItem as F,NInput as I}from"naive-ui";import{CloseOutline as E,AddOutline as L}from"@vicons/ionicons5";import R from"../../table-filter/src/hooks/useMixins.js";import U from"../../table-filter/src/hooks/useRenderWidget.js";import V from"../../table-filter/src/hooks/useAdvanced.js";import z from"../../table-filter/src/components/render-widget/index.vue.js";import"moment/locale/zh-cn";import{cloneDeep as D}from"lodash-es";import{InjectionFilterApiConfig as T}from"../../table-filter/src/constants/index.js";import B from"../../../_virtual/plugin-vue_export-helper.js";const N={class:"quick-search-block quick-search-table"},O={class:"quick-row"},P={class:"quick-item-title"},Q={class:"quick-item-col"},M={class:"svg-wrap"},W={class:"flex_right"},G={class:"class-filter-content"},J={class:"quickSearch-content"},H=s("span",{class:"label"},"父类名称:",-1),K=["onDblclick","onClick"],X={key:0,class:"s-content"};var Y=B(e({__name:"index",props:{searchFieldList:{type:Array,default:()=>[]},quickSearchConfig:{type:Array,default:()=>[]},tableId:{type:String,default:""},filterApiConfig:{type:Object}},emits:["getFilterParam","onFilterSearch","clearQuickSearchConfig"],setup(e,{expose:B,emit:Y}){const Z=e,$={classname:{required:!0,message:"请输入分类名称",trigger:["input","blur"]}},ee=_(),{handleGetConfigApi:le,outQuickSearchFn:ae}=R(),{getRenderSearchConObj:te,resetRenderWidgetValue:ie,isRender:ne}=U(),{transformData:oe,getCacheDef:re,transformParams:se}=V(),ce=l(null),ue=l({classname:""});let de=l(!1),ve=l([]),fe=l([]),me=l(!1),pe=l("");a(T,Z.filterApiConfig);let he=t((()=>!!fe.value.length&&fe.value.some((e=>e.isAdd)))),ge=t((()=>(e,l="name")=>e.alias||e[l]));function ke(){return function(e){if(!Array.isArray(e))return[];let l=[];for(let a=0;a<e.length;a++){let t=e[a];const i=te(t);!l.find((e=>e.field_key===i.field_key))&&i&&l.push(i)}return l.filter((e=>e.value))}(ve.value)||[]}function be(){var e;null==(e=ce.value)||e.validate((e=>{var l;if(e)return;let a=ke();a.length||(a=[]);let t=null==(l=fe.value.filter((e=>e.selected))[0])?void 0:l.value;!async function(e){var l;try{if(!await le(e,"requestSaveTableCondiTion",{},Z.filterApiConfig))return;de.value=!1,null==(l=ce.value)||l.restoreValidation(),ue.value.classname="",fe.value=[],Se()}catch(e){console.log(e)}}({tableId:Z.tableId||"",setting:JSON.stringify({displayCategory:t,name:ue.value.classname,conObj:a}),conditionList:"[]"})}))}function ye(e){var l;const a=null==(l=null==e?void 0:e.target)?void 0:l.nextElementSibling;setTimeout((()=>{a&&a.focus()})),me.value=!0}function Ce(){me.value=!1,pe.value&&(fe.value.forEach((e=>e.selected=!1)),fe.value.push({disabled:!0,value:pe.value,selected:!0,isAdd:!0}),pe.value="")}function _e(e){!function(e){fe.value.splice(e,1)}(e)}function xe(){de.value=!1}function Se(){Ae(ve.value),Y("clearQuickSearchConfig")}function Ae(e){Array.isArray(e)&&(e.forEach((e=>{ie(e)})),ae.handlerInitSearchItem(ve.value))}return i((()=>Z.searchFieldList),(e=>{e&&e.length>0&&function(){let e=D(oe(Z.searchFieldList)).filter((e=>1==e.isShowSearch&&1!=e.filterExplicit))||[];ve.value=e||[],ae.handlerInitSearchItem(ve.value)}()}),{immediate:!0,deep:!0}),i((()=>ve),(()=>{const e=ke()||[],l=se(e);Y("getFilterParam",e,l)}),{deep:!0}),n((()=>{const e=Z.quickSearchConfig;if(e&&e.length>0)return l=e,void ve.value.forEach((e=>{var a;if(ne(e)){const t=l.find((l=>l.field_key===e.columnName));t&&(null==(a=t.value)?void 0:a.length)>0&&(e.value=re(e,t.value))}}));var l;Ae(ve.value)})),B({openSaveToCalss:function(){let e=ke();e&&(e.length>0?de.value=!0:ee.warning("请设置搜索条件"))},clearData:Se,onFilterSearch:function(){let e=ke()||[];const l=se(e);return Y("onFilterSearch",e,l,!1),ve.value}}),(e,l)=>(o(),r("div",null,[s("div",N,[(o(!0),r(c,null,u(d(ve),(e=>(o(),r("div",{class:v(["quick-item",{"quick-block":e._isBlock}]),key:e.sid||e.columnName},[s("div",O,[f(" title "),s("div",P,[m(d(x),{trigger:"hover"},{trigger:p((()=>[h(g(d(ge)(e,"title")),1)])),default:p((()=>[s("span",null,g(d(ge)(e,"title")),1)])),_:2},1024)]),f(" content "),s("div",Q,[f(" 直接渲染组件 "),e.isRender?(o(),k(z,{key:0,cfg:e,modelValue:e.value,"onUpdate:modelValue":l=>e.value=l},null,8,["cfg","modelValue","onUpdate:modelValue"])):f("v-if",!0)])])],2)))),128))]),f(" 保存到分类的弹窗 "),m(d(S),{show:d(de),maskClosable:!1,"positive-text":"确认","negative-text":"取消",onPositiveClick:be,onNegativeClick:xe,class:"classification-modal-block"},{default:p((()=>[m(d(A),{title:"设置筛选分类",style:{width:"520px"},bordered:!1,size:"huge",role:"dialog","aria-modal":"true"},{"header-extra":p((()=>[s("div",M,[m(d(q),{component:d(E),size:"24",onClick:xe},null,8,["component"])])])),footer:p((()=>[s("div",W,[m(d(w),{onClick:xe},{default:p((()=>[h("取消")])),_:1}),m(d(w),{type:"info",onClick:be},{default:p((()=>[h("确认")])),_:1})])])),default:p((()=>[s("div",G,[m(d(j),{ref_key:"formRef",ref:ce,"label-placement":"left",rules:$,model:ue.value},{default:p((()=>[m(d(F),{label:"筛选集名称",path:"classname"},{default:p((()=>[m(d(I),{value:ue.value.classname,"onUpdate:value":l[0]||(l[0]=e=>ue.value.classname=e),placeholder:"请输入分类名称",clearable:""},null,8,["value"])])),_:1})])),_:1},8,["model"]),s("div",J,[H,(o(!0),r(c,null,u(d(fe),((e,l)=>(o(),r("div",{class:v(["edit-tag",{"edit-tag-select":e.selected&&e.disabled}]),key:l,onDblclick:l=>function(e,l){l.disabled=!1,setTimeout((()=>{var l;null==(l=e.target)||l.focus()}),0)}(l,e),onClick:a=>function(e,l){e.disabled&&(fe.value.forEach(((e,a)=>{a!==l&&(e.selected=!1)})),e.selected=!e.selected)}(e,l)},[e.disabled?(o(),r("div",X,[s("span",null,g(e.value),1)])):(o(),k(d(I),{key:1,style:{width:"100px"},value:e.value,"onUpdate:value":l=>e.value=l,disabled:e.disabled,onBlur:()=>e.disabled=!0,maxLength:10},null,8,["value","onUpdate:value","disabled","onBlur"])),m(d(q),{component:d(E),class:"anticon-close",size:"20",onClick:e=>_e(l)},null,8,["component","onClick"])],42,K)))),128)),d(he)?f("v-if",!0):(o(),r(c,{key:0},[b(m(d(w),{dashed:"",icon:"plus",class:"ant-btn",onClick:ye},{default:p((()=>[m(d(q),{component:d(L),size:"20"},null,8,["component"]),h("添加分类 ")])),_:1},512),[[y,!d(me)]]),b(m(d(I),{style:{width:"100px"},class:"edit-tag",value:d(pe),"onUpdate:value":l[1]||(l[1]=e=>C(pe)?pe.value=e:pe=e),valueModifiers:{trim:!0},onBlur:Ce,maxLength:10},null,8,["value"]),[[y,d(me)]])],64))])])])),_:1})])),_:1},8,["show"])]))}}),[["__file","index.vue"]]);export{Y as default};
1
+ import e from"./index.vue2.js";import r from"../../../_virtual/_plugin-vue_export-helper.js";var i=r(e,[["__file","index.vue"]]);export{i as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,ref as l,provide as a,computed as t,watch as i,onMounted as n,openBlock as o,createElementBlock as s,createElementVNode as r,Fragment as c,renderList as u,unref as d,normalizeClass as v,createCommentVNode as f,createVNode as m,withCtx as p,createTextVNode as h,toDisplayString as g,createBlock as k,withDirectives as b,vShow as y,isRef as C}from"vue";import{useMessage as S,NPopover as x,NModal as _,NCard as A,NIcon as q,NButton as w,NForm as F,NFormItem as j,NInput as I}from"naive-ui";import{CloseOutline as E,AddOutline as L}from"@vicons/ionicons5";import R from"../../table-filter/src/hooks/useMixins.js";import U from"../../table-filter/src/hooks/useRenderWidget.js";import V from"../../table-filter/src/hooks/useAdvanced.js";import z from"../../table-filter/src/components/render-widget/index.vue.js";import"moment/locale/zh-cn";import{cloneDeep as D}from"lodash-es";import{InjectionFilterApiConfig as T}from"../../table-filter/src/constants/index.js";const B={class:"quick-search-block quick-search-table"},N={class:"quick-row"},O={class:"quick-item-title"},P={class:"quick-item-col"},Q={class:"svg-wrap"},M={class:"flex_right"},W={class:"class-filter-content"},G={class:"quickSearch-content"},J=r("span",{class:"label"},"父类名称:",-1),H=["onDblclick","onClick"],K={key:0,class:"s-content"};var X=e({__name:"index",props:{searchFieldList:{type:Array,default:()=>[]},quickSearchConfig:{type:Array,default:()=>[]},tableId:{type:String,default:""},filterApiConfig:{type:Object}},emits:["getFilterParam","onFilterSearch","clearQuickSearchConfig"],setup(e,{expose:X,emit:Y}){const Z=e,$={classname:{required:!0,message:"请输入分类名称",trigger:["input","blur"]}},ee=S(),{handleGetConfigApi:le,outQuickSearchFn:ae}=R(),{getRenderSearchConObj:te,resetRenderWidgetValue:ie,isRender:ne}=U(),{transformData:oe,getCacheDef:se,transformParams:re}=V(),ce=l(null),ue=l({classname:""});let de=l(!1),ve=l([]),fe=l([]),me=l(!1),pe=l("");a(T,Z.filterApiConfig);let he=t((()=>!!fe.value.length&&fe.value.some((e=>e.isAdd)))),ge=t((()=>(e,l="name")=>e.alias||e[l]));function ke(){return function(e){if(!Array.isArray(e))return[];let l=[];for(let a=0;a<e.length;a++){let t=e[a];const i=te(t);!l.find((e=>e.field_key===i.field_key))&&i&&l.push(i)}return l.filter((e=>e.value))}(ve.value)||[]}function be(){var e;null==(e=ce.value)||e.validate((e=>{var l;if(e)return;let a=ke();a.length||(a=[]);let t=null==(l=fe.value.filter((e=>e.selected))[0])?void 0:l.value;!async function(e){var l;try{if(!await le(e,"requestSaveTableCondiTion",{},Z.filterApiConfig))return;de.value=!1,null==(l=ce.value)||l.restoreValidation(),ue.value.classname="",fe.value=[],_e()}catch(e){console.log(e)}}({tableId:Z.tableId||"",setting:JSON.stringify({displayCategory:t,name:ue.value.classname,conObj:a}),conditionList:"[]"})}))}function ye(e){var l;const a=null==(l=null==e?void 0:e.target)?void 0:l.nextElementSibling;setTimeout((()=>{a&&a.focus()})),me.value=!0}function Ce(){me.value=!1,pe.value&&(fe.value.forEach((e=>e.selected=!1)),fe.value.push({disabled:!0,value:pe.value,selected:!0,isAdd:!0}),pe.value="")}function Se(e){!function(e){fe.value.splice(e,1)}(e)}function xe(){de.value=!1}function _e(){Ae(ve.value),Y("clearQuickSearchConfig")}function Ae(e){Array.isArray(e)&&(e.forEach((e=>{ie(e)})),ae.handlerInitSearchItem(ve.value))}return i((()=>Z.searchFieldList),(e=>{e&&e.length>0&&function(){let e=D(oe(Z.searchFieldList)).filter((e=>1==e.isShowSearch&&1!=e.filterExplicit))||[];ve.value=e||[],ae.handlerInitSearchItem(ve.value)}()}),{immediate:!0,deep:!0}),i((()=>ve),(()=>{const e=ke()||[],l=re(e);Y("getFilterParam",e,l)}),{deep:!0}),n((()=>{const e=Z.quickSearchConfig;if(e&&e.length>0)return l=e,void ve.value.forEach((e=>{var a;if(ne(e)){const t=l.find((l=>l.field_key===e.columnName));t&&(null==(a=t.value)?void 0:a.length)>0&&(e.value=se(e,t.value))}}));var l;Ae(ve.value)})),X({openSaveToCalss:function(){let e=ke();e&&(e.length>0?de.value=!0:ee.warning("请设置搜索条件"))},clearData:_e,onFilterSearch:function(){let e=ke()||[];const l=re(e);return Y("onFilterSearch",e,l,!1),ve.value}}),(e,l)=>(o(),s("div",null,[r("div",B,[(o(!0),s(c,null,u(d(ve),(e=>(o(),s("div",{class:v(["quick-item",{"quick-block":e._isBlock}]),key:e.sid||e.columnName},[r("div",N,[f(" title "),r("div",O,[m(d(x),{trigger:"hover"},{trigger:p((()=>[h(g(d(ge)(e,"title")),1)])),default:p((()=>[r("span",null,g(d(ge)(e,"title")),1)])),_:2},1024)]),f(" content "),r("div",P,[f(" 直接渲染组件 "),e.isRender?(o(),k(z,{key:0,cfg:e,modelValue:e.value,"onUpdate:modelValue":l=>e.value=l},null,8,["cfg","modelValue","onUpdate:modelValue"])):f("v-if",!0)])])],2)))),128))]),f(" 保存到分类的弹窗 "),m(d(_),{show:d(de),maskClosable:!1,"positive-text":"确认","negative-text":"取消",onPositiveClick:be,onNegativeClick:xe,class:"classification-modal-block"},{default:p((()=>[m(d(A),{title:"设置筛选分类",style:{width:"520px"},bordered:!1,size:"huge",role:"dialog","aria-modal":"true"},{"header-extra":p((()=>[r("div",Q,[m(d(q),{component:d(E),size:"24",onClick:xe},null,8,["component"])])])),footer:p((()=>[r("div",M,[m(d(w),{onClick:xe},{default:p((()=>[h("取消")])),_:1}),m(d(w),{type:"info",onClick:be},{default:p((()=>[h("确认")])),_:1})])])),default:p((()=>[r("div",W,[m(d(F),{ref_key:"formRef",ref:ce,"label-placement":"left",rules:$,model:ue.value},{default:p((()=>[m(d(j),{label:"筛选集名称",path:"classname"},{default:p((()=>[m(d(I),{value:ue.value.classname,"onUpdate:value":l[0]||(l[0]=e=>ue.value.classname=e),placeholder:"请输入分类名称",clearable:""},null,8,["value"])])),_:1})])),_:1},8,["model"]),r("div",G,[J,(o(!0),s(c,null,u(d(fe),((e,l)=>(o(),s("div",{class:v(["edit-tag",{"edit-tag-select":e.selected&&e.disabled}]),key:l,onDblclick:l=>function(e,l){l.disabled=!1,setTimeout((()=>{var l;null==(l=e.target)||l.focus()}),0)}(l,e),onClick:a=>function(e,l){e.disabled&&(fe.value.forEach(((e,a)=>{a!==l&&(e.selected=!1)})),e.selected=!e.selected)}(e,l)},[e.disabled?(o(),s("div",K,[r("span",null,g(e.value),1)])):(o(),k(d(I),{key:1,style:{width:"100px"},value:e.value,"onUpdate:value":l=>e.value=l,disabled:e.disabled,onBlur:()=>e.disabled=!0,maxLength:10},null,8,["value","onUpdate:value","disabled","onBlur"])),m(d(q),{component:d(E),class:"anticon-close",size:"20",onClick:e=>Se(l)},null,8,["component","onClick"])],42,H)))),128)),d(he)?f("v-if",!0):(o(),s(c,{key:0},[b(m(d(w),{dashed:"",icon:"plus",class:"ant-btn",onClick:ye},{default:p((()=>[m(d(q),{component:d(L),size:"20"},null,8,["component"]),h("添加分类 ")])),_:1},512),[[y,!d(me)]]),b(m(d(I),{style:{width:"100px"},class:"edit-tag",value:d(pe),"onUpdate:value":l[1]||(l[1]=e=>C(pe)?pe.value=e:pe=e),valueModifiers:{trim:!0},onBlur:Ce,maxLength:10},null,8,["value"]),[[y,d(me)]])],64))])])])),_:1})])),_:1},8,["show"])]))}});export{X as default};