cnhis-design-vue 3.1.42-beta.8 → 3.1.42-beta.80

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 (289) hide show
  1. package/es/components/annotation-edit/src/AnnotationEdit.js +1 -1
  2. package/es/components/base-search/index.d.ts +2 -2
  3. package/es/components/base-search/src/index.vue.d.ts +2 -2
  4. package/es/components/base-search/style/index.css +1 -1
  5. package/es/components/big-table/index.d.ts +3 -4
  6. package/es/components/big-table/src/BigTable.vue.d.ts +3 -4
  7. package/es/components/big-table/src/BigTable.vue2.js +1 -1
  8. package/es/components/big-table/src/components/edit-form/edit-select-table.d.ts +1 -1
  9. package/es/components/big-table/src/components/edit-form/edit-select.js +1 -1
  10. package/es/components/big-table/src/hooks/useEvent.js +1 -1
  11. package/es/components/big-table/src/hooks/useFormat.js +1 -1
  12. package/es/components/big-table/src/hooks/useNestTable.js +1 -1
  13. package/es/components/big-table/src/hooks/useTableParse.js +1 -1
  14. package/es/components/big-table/src/utils.d.ts +11 -1
  15. package/es/components/big-table/src/utils.js +1 -1
  16. package/es/components/big-table/style/index.css +1 -1
  17. package/es/components/bpmn-workflow/index.d.ts +12 -0
  18. package/es/components/bpmn-workflow/src/BpmnWorkflow.vue.d.ts +12 -0
  19. package/es/components/bpmn-workflow/src/BpmnWorkflow.vue.js +1 -1
  20. package/es/components/button-print/index.d.ts +32 -7
  21. package/es/components/button-print/src/ButtonPrint.vue.d.ts +32 -8
  22. package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
  23. package/es/components/button-print/src/components/EditFormat.vue.d.ts +4 -4
  24. package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +4 -4
  25. package/es/components/button-print/src/utils/print.js +1 -1
  26. package/es/components/classification/index.d.ts +13 -13
  27. package/es/components/classification/src/components/set-classification/index.vue.d.ts +9 -9
  28. package/es/components/classification/src/components/set-classification/index.vue.js +1 -1
  29. package/es/components/classification/src/components/table-modal/index.vue.d.ts +9 -9
  30. package/es/components/classification/src/components/table-modal/index.vue.js +1 -1
  31. package/es/components/classification/src/index.vue.d.ts +14 -14
  32. package/es/components/classification/src/index.vue.js +1 -1
  33. package/es/components/classification/style/index.css +1 -1
  34. package/es/components/config-provider/src/ConfigProvider.js +1 -1
  35. package/es/components/config-provider/src/interface.d.ts +4 -4
  36. package/es/components/date-picker/index.d.ts +4 -0
  37. package/es/components/date-picker/src/DatePicker.vue.d.ts +4 -0
  38. package/es/components/date-picker/src/DatePicker.vue.js +1 -1
  39. package/es/components/fabric-chart/index.d.ts +2 -2
  40. package/es/components/fabric-chart/src/FabricChart.vue.d.ts +2 -2
  41. package/es/components/fabric-chart/src/hooks/useBirthProcess.d.ts +1 -0
  42. package/es/components/fabric-chart/src/hooks/useBirthProcess.js +1 -1
  43. package/es/components/fabric-chart/src/hooks/useBirthProcessChart.js +1 -1
  44. package/es/components/fabric-chart/src/hooks/useCenter.js +1 -1
  45. package/es/components/fabric-chart/src/hooks/useLeft.js +1 -1
  46. package/es/components/fabric-chart/src/hooks/useScaleColumn.d.ts +16 -0
  47. package/es/components/fabric-chart/src/hooks/useScaleColumn.js +1 -0
  48. package/es/components/field-set/index.d.ts +26 -81
  49. package/es/components/field-set/src/FieldSet.vue.d.ts +28 -32
  50. package/es/components/field-set/src/FieldSet.vue.js +1 -1
  51. package/es/components/field-set/style/index.css +1 -1
  52. package/es/components/form-config/index.d.ts +88 -42
  53. package/es/components/form-config/src/FormConfig.vue.d.ts +88 -42
  54. package/es/components/form-config/src/FormConfig.vue.js +1 -1
  55. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +27 -13
  56. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +47 -23
  57. package/es/components/form-config/src/components/FormConfigEdit.vue.js +1 -1
  58. package/es/components/form-config/src/components/renderer/DefaultNode.vue.js +1 -1
  59. package/es/components/form-config/src/constants/index.d.ts +19 -1
  60. package/es/components/form-config/src/constants/index.js +1 -1
  61. package/es/components/form-config/src/hooks/useConfigurationField.js +1 -1
  62. package/es/components/form-config/src/types/index.d.ts +1 -0
  63. package/es/components/form-render/index.d.ts +27 -13
  64. package/es/components/form-render/index.js +1 -1
  65. package/es/components/form-render/src/FormRender.vue.d.ts +27 -13
  66. package/es/components/form-render/src/FormRender.vue.js +1 -1
  67. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +27 -13
  68. package/es/components/form-render/src/components/renderer/combination.js +1 -1
  69. package/es/components/form-render/src/components/renderer/complex.d.ts +1 -1
  70. package/es/components/form-render/src/components/renderer/date.d.ts +4 -0
  71. package/es/components/form-render/src/components/renderer/date.js +1 -1
  72. package/es/components/form-render/src/components/renderer/jsonCombination/index.js +1 -1
  73. package/es/components/form-render/src/components/renderer/levelSearchCascader.d.ts +18 -0
  74. package/es/components/form-render/src/components/renderer/levelSearchCascader.js +1 -1
  75. package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.d.ts +1 -1
  76. package/es/components/form-render/src/components/renderer/lineBar/index.d.ts +1 -1
  77. package/es/components/form-render/src/components/renderer/radio&checkbox.d.ts +56 -2
  78. package/es/components/form-render/src/components/renderer/radio_checkbox.js +1 -1
  79. package/es/components/form-render/src/components/renderer/remoteSearch.d.ts +18 -0
  80. package/es/components/form-render/src/components/renderer/remoteSearch.js +1 -1
  81. package/es/components/form-render/src/components/renderer/searchCascade.d.ts +36 -0
  82. package/es/components/form-render/src/components/renderer/searchCascade.js +1 -1
  83. package/es/components/form-render/src/components/renderer/select.d.ts +32 -5
  84. package/es/components/form-render/src/components/renderer/select.js +1 -1
  85. package/es/components/form-render/src/hooks/index.d.ts +1 -1
  86. package/es/components/form-render/src/hooks/index.js +1 -1
  87. package/es/components/form-render/src/hooks/useBusinessBinding.d.ts +1 -0
  88. package/es/components/form-render/src/hooks/useBusinessBinding.js +1 -1
  89. package/es/components/form-render/src/hooks/useComplexOptions.d.ts +2 -1
  90. package/es/components/form-render/src/hooks/useComplexOptions.js +1 -1
  91. package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
  92. package/es/components/form-render/src/hooks/useFieldNormalize.js +1 -1
  93. package/es/components/form-render/src/hooks/useFormAsyncQueue.d.ts +16 -0
  94. package/es/components/form-render/src/hooks/useFormAsyncQueue.js +1 -0
  95. package/es/components/form-render/src/hooks/useFormContext.js +1 -1
  96. package/es/components/form-render/src/hooks/useFormEvent.d.ts +1 -1
  97. package/es/components/form-render/src/hooks/useFormEvent.js +1 -1
  98. package/es/components/form-render/src/hooks/useFormRenderOptions.d.ts +13 -8
  99. package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -1
  100. package/es/components/form-render/src/types/fieldItem.d.ts +15 -5
  101. package/es/components/form-render/src/types/index.d.ts +4 -3
  102. package/es/components/form-render/style/index.css +1 -1
  103. package/es/components/iho-table/index.d.ts +26 -5
  104. package/es/components/iho-table/src/IhoTable.vue.d.ts +26 -5
  105. package/es/components/iho-table/src/IhoTable.vue.js +1 -1
  106. package/es/components/iho-table/src/constants/index.d.ts +3 -2
  107. package/es/components/iho-table/src/constants/index.js +1 -1
  108. package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +4 -4
  109. package/es/components/iho-table/src/hooks/tapHooks/index.js +1 -1
  110. package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.d.ts +24 -21
  111. package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.js +1 -1
  112. package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.d.ts +60 -237
  113. package/es/components/iho-table/src/hooks/tapHooks/useExposeHooks.d.ts +1 -4
  114. package/es/components/iho-table/src/hooks/tapHooks/useFieldHooks.d.ts +4 -16
  115. package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks.d.ts +2 -2
  116. package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks.js +1 -1
  117. package/es/components/iho-table/src/hooks/useColumnConfigAdaptor.js +1 -1
  118. package/es/components/iho-table/src/plugins/anchorPlugin/tableAnchor.js +1 -1
  119. package/es/components/iho-table/src/plugins/anchorPlugin/useAnchor.js +1 -1
  120. package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.js +1 -1
  121. package/es/components/iho-table/src/plugins/fieldConnectionPlugin/fieldConnectionUtils.d.ts +11 -0
  122. package/es/components/iho-table/src/plugins/fieldConnectionPlugin/fieldConnectionUtils.js +1 -0
  123. package/es/components/iho-table/src/plugins/fieldConnectionPlugin/index.d.ts +1 -0
  124. package/es/components/iho-table/src/plugins/fieldConnectionPlugin/index.js +1 -0
  125. package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.d.ts +48 -0
  126. package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.js +1 -0
  127. package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/index.d.ts +1 -0
  128. package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/index.js +1 -0
  129. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.d.ts +1 -1
  130. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.js +1 -1
  131. package/es/components/iho-table/src/plugins/filterRenderPlugin/index.js +1 -1
  132. package/es/components/iho-table/src/plugins/highLightSetPlugin.d.ts +1 -0
  133. package/es/components/iho-table/src/plugins/highLightSetPlugin.js +1 -0
  134. package/es/components/iho-table/src/plugins/index.js +1 -1
  135. package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +1 -1
  136. package/es/components/iho-table/src/plugins/maxCheckSizePlugin.d.ts +1 -0
  137. package/es/components/iho-table/src/plugins/maxCheckSizePlugin.js +1 -0
  138. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +4 -0
  139. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useTriggerEvent.d.ts +0 -0
  140. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useTriggerEvent.js +1 -0
  141. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.d.ts +25 -3
  142. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
  143. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
  144. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.d.ts +2 -1
  145. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +1 -1
  146. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.d.ts +2 -1
  147. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.js +1 -1
  148. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/defaultRendererPlugin.js +1 -1
  149. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/seqRendererPlugin.js +1 -1
  150. package/es/components/iho-table/src/plugins/rowClickPlugin/index.js +1 -1
  151. package/es/components/iho-table/src/plugins/rowDragPlugin/index.d.ts +1 -0
  152. package/es/components/iho-table/src/plugins/rowDragPlugin/index.js +1 -0
  153. package/es/components/iho-table/src/plugins/varialbleHeightPlugin/index.js +1 -1
  154. package/es/components/iho-table/src/types/index.d.ts +48 -5
  155. package/es/components/iho-table/src/types/pluginType.d.ts +32 -39
  156. package/es/components/iho-table/src/utils/index.d.ts +8 -3
  157. package/es/components/iho-table/src/utils/index.js +1 -1
  158. package/es/components/iho-table/style/iconfont.ttf +0 -0
  159. package/es/components/iho-table/style/index.css +1 -1
  160. package/es/components/index.css +1 -1
  161. package/es/components/index.d.ts +1 -0
  162. package/es/components/index.js +1 -1
  163. package/es/components/info-header/index.d.ts +56 -27
  164. package/es/components/info-header/src/InfoHeader.vue.d.ts +56 -27
  165. package/es/components/info-header/src/InfoHeader.vue.js +1 -1
  166. package/es/components/info-header/src/components/infoDescription/HiddenContent.vue.js +1 -1
  167. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +27 -13
  168. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +28 -13
  169. package/es/components/info-header/src/components/patientInfo/index.vue.js +1 -1
  170. package/es/components/info-header/style/index.css +1 -1
  171. package/es/components/keyboard/index.d.ts +4 -2
  172. package/es/components/keyboard/src/Keyboard.vue.d.ts +4 -2
  173. package/es/components/keyboard/src/Keyboard.vue.js +1 -1
  174. package/es/components/keyboard/src/components/NumberPanel.vue.d.ts +3 -1
  175. package/es/components/keyboard/src/components/NumberPanel.vue.js +1 -1
  176. package/es/components/keyboard/src/constants/index.js +1 -1
  177. package/es/components/keyboard/style/index.css +1 -1
  178. package/es/components/map/index.d.ts +2 -14
  179. package/es/components/map/src/Map.vue.d.ts +1 -14
  180. package/es/components/map/src/types/index.d.ts +19 -0
  181. package/es/components/map/src/types/index.js +1 -0
  182. package/es/components/recommend-search/index.d.ts +13 -128
  183. package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +15 -130
  184. package/es/components/recommend-search/src/RecommendSearch.vue.js +1 -1
  185. package/es/components/recommend-search/src/components/BaseSearch.d.ts +84 -0
  186. package/es/components/recommend-search/src/components/BaseSearch.js +1 -0
  187. package/es/components/recommend-search/src/components/RecommendInput.vue.d.ts +3 -63
  188. package/es/components/recommend-search/src/components/RecommendInput.vue.js +1 -1
  189. package/es/components/recommend-search/src/components/RecommendMenu.vue.d.ts +1 -3
  190. package/es/components/recommend-search/src/components/RecommendMenu.vue.js +1 -1
  191. package/es/components/recommend-search/src/components/RecommendSelect.vue.d.ts +4 -62
  192. package/es/components/recommend-search/src/components/RecommendSelect.vue.js +1 -1
  193. package/es/components/recommend-search/src/constant/index.d.ts +3 -0
  194. package/es/components/recommend-search/src/constant/index.js +1 -1
  195. package/es/components/scale-view/index.d.ts +38 -224
  196. package/es/components/scale-view/index.js +1 -1
  197. package/es/components/scale-view/src/ScaleView.vue.d.ts +37 -224
  198. package/es/components/scale-view/src/ScaleView.vue.js +1 -1
  199. package/es/components/scale-view/src/components/AnswerParse.vue.d.ts +1 -43
  200. package/es/components/scale-view/src/components/AnswerParse.vue.js +1 -1
  201. package/es/components/scale-view/src/components/EvaluateCountdown.vue.d.ts +0 -42
  202. package/es/components/scale-view/src/components/EvaluateCountdown.vue.js +1 -1
  203. package/es/components/scale-view/src/components/formitem/r-address.js +1 -1
  204. package/es/components/scale-view/src/components/formitem/r-checkbox.js +1 -1
  205. package/es/components/scale-view/src/components/formitem/r-datetime.js +1 -1
  206. package/es/components/scale-view/src/components/formitem/r-map.js +1 -1
  207. package/es/components/scale-view/src/components/formitem/r-sign.js +1 -1
  208. package/es/components/scale-view/src/components/formitem/standard-modal.d.ts +8 -8
  209. package/es/components/scale-view/src/components/formitem/standard-modal.js +1 -1
  210. package/es/components/scale-view/src/components/formitem/text-over-tooltip/TextOverTooltip.vue.d.ts +1 -1
  211. package/es/components/scale-view/src/hooks/scaleview-computed.d.ts +1 -1
  212. package/es/components/scale-view/src/hooks/scaleview-computed.js +1 -1
  213. package/es/components/scale-view/src/hooks/scaleview-init.js +1 -1
  214. package/es/components/scale-view/src/hooks/scaleview-submit.d.ts +5 -1
  215. package/es/components/scale-view/src/hooks/scaleview-submit.js +1 -1
  216. package/es/components/scale-view/src/hooks/scaleview-validate.js +1 -1
  217. package/es/components/scale-view/src/hooks/use-component.d.ts +74 -4
  218. package/es/components/scale-view/src/hooks/use-evaluate.js +1 -1
  219. package/es/components/scale-view/src/hooks/use-event.js +1 -1
  220. package/es/components/scale-view/src/types/index.d.ts +7 -0
  221. package/es/components/scale-view/src/types/index.js +1 -0
  222. package/es/components/scale-view/style/index.css +1 -1
  223. package/es/components/scale-view/style/scale-view-iconfont.ttf +0 -0
  224. package/es/components/search-cascader/index.d.ts +12 -1
  225. package/es/components/search-cascader/src/SearchCascader.vue.d.ts +12 -1
  226. package/es/components/search-cascader/src/SearchCascader.vue.js +1 -1
  227. package/es/components/search-cascader/src/components/SearchMenu.d.ts +8 -1
  228. package/es/components/search-cascader/src/components/SearchMenu.js +1 -1
  229. package/es/components/search-cascader/src/constants/index.d.ts +1 -0
  230. package/es/components/search-cascader/src/constants/index.js +1 -1
  231. package/es/components/select-label/index.d.ts +1 -1
  232. package/es/components/select-label/src/LabelFormContent.vue.js +1 -1
  233. package/es/components/select-label/src/SelectLabel.vue.d.ts +1 -1
  234. package/es/components/select-label/src/SelectLabel.vue2.js +1 -1
  235. package/es/components/select-label/style/index.css +1 -1
  236. package/es/components/select-person/index.d.ts +199 -10
  237. package/es/components/select-person/src/SearchMultiple.vue.d.ts +125 -0
  238. package/es/components/select-person/src/SearchMultiple.vue.js +1 -0
  239. package/es/components/select-person/src/SearchMultiple.vue2.js +1 -0
  240. package/es/components/select-person/src/SelectPerson.vue.d.ts +186 -9
  241. package/es/components/select-person/src/SelectPerson.vue2.js +1 -1
  242. package/es/components/select-person/src/utils/index.js +1 -1
  243. package/es/components/select-person/style/index.css +1 -1
  244. package/es/components/shortcut-setter/index.d.ts +33 -16
  245. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +33 -16
  246. package/es/components/steps-wheel/src/StepsWheel.vue.js +1 -1
  247. package/es/components/steps-wheel/src/constants/index.js +1 -1
  248. package/es/components/steps-wheel/style/index.css +1 -1
  249. package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.d.ts +4 -4
  250. package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.js +1 -1
  251. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +5 -5
  252. package/es/components/table-filter/src/types/index.d.ts +11 -2
  253. package/es/components/time-picker/src/TimePicker.vue.js +1 -1
  254. package/es/components/vod-chunk-upload/index.d.ts +73 -3
  255. package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.d.ts +73 -3
  256. package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.js +1 -1
  257. package/es/env.d.ts +1 -0
  258. package/es/shared/components/TextOverTooltip/TextOverTooltip.vue.d.ts +1 -1
  259. package/es/shared/components/TextOverTooltip/TextOverTooltip.vue.js +1 -1
  260. package/es/shared/{mixins → hooks}/index.d.ts +1 -0
  261. package/es/shared/{mixins → hooks}/index.js +1 -1
  262. package/es/{components/form-render/src → shared}/hooks/useAsyncQueue.d.ts +0 -14
  263. package/es/shared/hooks/useAsyncQueue.js +1 -0
  264. package/es/shared/{mixins → hooks}/useDateTime.d.ts +2 -2
  265. package/es/shared/hooks/useDateTime.js +1 -0
  266. package/es/shared/package.json.js +1 -0
  267. package/es/shared/utils/anime.d.ts +1 -1
  268. package/es/shared/utils/anime.js +1 -1
  269. package/es/shared/utils/index.d.ts +3 -14
  270. package/es/shared/utils/index.js +1 -1
  271. package/es/shared/utils/vexutils.d.ts +2 -2
  272. package/es/shared/utils/vexutils.js +1 -1
  273. package/es/shared/utils/vexutilsExpand.d.ts +254 -0
  274. package/es/shared/utils/vexutilsExpand.js +1 -0
  275. package/package.json +2 -2
  276. package/es/components/form-render/src/hooks/useAsyncQueue.js +0 -1
  277. package/es/components/recommend-search/src/components/BaseSearch.vue.d.ts +0 -143
  278. package/es/components/recommend-search/src/components/BaseSearch.vue.js +0 -1
  279. package/es/components/scale-view/src/hooks/scaleview-props.d.ts +0 -115
  280. package/es/components/scale-view/src/hooks/scaleview-props.js +0 -1
  281. package/es/shared/mixins/useDateTime.js +0 -1
  282. package/es/shared/utils/colorLog.d.ts +0 -31
  283. package/es/shared/utils/colorLog.js +0 -1
  284. /package/es/components/base-search/style/{iconfont.ttf → base-search-iconfont.ttf} +0 -0
  285. /package/es/components/classification/style/{iconfont.ttf → classification-iconfont.ttf} +0 -0
  286. /package/es/components/info-header/style/{iconfont.ttf → info-header-font.ttf} +0 -0
  287. /package/es/components/select-label/style/{iconfont.ttf → select-label-iconfont.ttf} +0 -0
  288. /package/es/shared/{mixins → hooks}/useTheme.d.ts +0 -0
  289. /package/es/shared/{mixins → hooks}/useTheme.js +0 -0
@@ -2169,6 +2169,10 @@ declare const _default: import("vue").DefineComponent<{
2169
2169
  linebarAutoHidden: {
2170
2170
  type: BooleanConstructor;
2171
2171
  };
2172
+ bordered: {
2173
+ type: BooleanConstructor;
2174
+ default: boolean;
2175
+ };
2172
2176
  }, {
2173
2177
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
2174
2178
  fieldList: {
@@ -2297,12 +2301,17 @@ declare const _default: import("vue").DefineComponent<{
2297
2301
  linebarAutoHidden: {
2298
2302
  type: BooleanConstructor;
2299
2303
  };
2304
+ bordered: {
2305
+ type: BooleanConstructor;
2306
+ default: boolean;
2307
+ };
2300
2308
  }>> & {
2301
2309
  onFormChange?: ((...args: any[]) => any) | undefined;
2302
2310
  onScroll?: ((...args: any[]) => any) | undefined;
2303
2311
  onAnnotationChange?: ((...args: any[]) => any) | undefined;
2304
2312
  }>>;
2305
2313
  emit: (event: "scroll" | "formChange" | "annotationChange", ...args: any[]) => void;
2314
+ cssVars: import("vue").ComputedRef<import("vue").CSSProperties>;
2306
2315
  nuiThemeOverrides: import("naive-ui").GlobalThemeOverrides;
2307
2316
  formRenderRef: import("vue").Ref<HTMLElement | undefined>;
2308
2317
  formHeight: import("vue").ComputedRef<string>;
@@ -2451,39 +2460,39 @@ declare const _default: import("vue").DefineComponent<{
2451
2460
  exposeEvent: {
2452
2461
  validate(path?: string): Promise<void>;
2453
2462
  getFormValues(needCombineExtendKey?: boolean): any;
2454
- setFormValues(values: import("../../../../../../es/shared/types").AnyObject, needSplitExtendKey?: boolean): void;
2463
+ setFormValues(values: import("../../../../../../es/shared/types").AnyObject, needSplitExtendKey?: boolean, overwrite?: boolean): void;
2455
2464
  setFieldState(path: string, handler: (field: Partial<Pick<import("../../../../../../es/components/form-render").Field<any, any, any, any>, import("../../../../../../es/components/form-render").NonFunctionPropertyNames<{
2456
2465
  match: (pattern: import("@formily/path").Pattern) => boolean;
2457
2466
  validate: (triggerType?: import("@formily/validator").ValidatorTriggerType | undefined) => any;
2458
2467
  data: any;
2459
2468
  loading: boolean;
2460
2469
  required: boolean;
2461
- hidden: boolean;
2462
- visible: boolean;
2463
- content: any;
2464
- reset: (options?: import("../../../../../../es/components/form-render").IFieldResetOptions | undefined) => Promise<void>;
2465
- active: boolean;
2466
- disabled: boolean;
2467
- display: import("../../../../../../es/components/form-render").FieldDisplayTypes;
2468
2470
  value: string;
2469
2471
  readonly index: string | number;
2472
+ disabled: boolean;
2470
2473
  onFocus: (...args: any[]) => Promise<void>;
2471
2474
  onBlur: (...args: any[]) => Promise<void>;
2472
2475
  onInput: (...args: any[]) => Promise<void>;
2476
+ reset: (options?: import("../../../../../../es/components/form-render").IFieldResetOptions | undefined) => Promise<void>;
2477
+ title: string;
2478
+ editable: boolean;
2479
+ visible: boolean;
2473
2480
  submit: <T>(onSubmit?: ((values: any) => void | Promise<T>) | undefined) => Promise<T>;
2474
2481
  validator: import("../../../../../../es/components/form-render").FieldValidator;
2475
2482
  pattern: import("../../../../../../es/components/form-render").FieldPatternTypes;
2476
- title: string;
2483
+ content: any;
2484
+ display: import("../../../../../../es/components/form-render").FieldDisplayTypes;
2485
+ hidden: boolean;
2477
2486
  form: import("../../../../../../es/components/form-render").Form<any>;
2478
2487
  componentProps: Record<string, any>;
2479
2488
  decoratorProps: Record<string, any>;
2480
2489
  description: string;
2481
2490
  readOnly: boolean;
2482
- editable: boolean;
2483
2491
  component: import("../../../../../../es/components/form-render").FieldComponent<any, any>;
2484
2492
  decorator: import("../../../../../../es/components/form-render").FieldDecorator<any, any>;
2485
2493
  validating: boolean;
2486
2494
  submitting: boolean;
2495
+ active: boolean;
2487
2496
  visited: boolean;
2488
2497
  selfModified: boolean;
2489
2498
  modified: boolean;
@@ -2570,7 +2579,7 @@ declare const _default: import("vue").DefineComponent<{
2570
2579
  };
2571
2580
  readonly disabled: BooleanConstructor;
2572
2581
  readonly displayDirective: {
2573
- readonly type: import("vue").PropType<"show" | "if" | "show:lazy">;
2582
+ readonly type: import("vue").PropType<"if" | "show" | "show:lazy">;
2574
2583
  readonly default: "if";
2575
2584
  };
2576
2585
  readonly closable: {
@@ -2595,7 +2604,7 @@ declare const _default: import("vue").DefineComponent<{
2595
2604
  };
2596
2605
  readonly disabled: BooleanConstructor;
2597
2606
  readonly displayDirective: {
2598
- readonly type: import("vue").PropType<"show" | "if" | "show:lazy">;
2607
+ readonly type: import("vue").PropType<"if" | "show" | "show:lazy">;
2599
2608
  readonly default: "if";
2600
2609
  };
2601
2610
  readonly closable: {
@@ -2609,7 +2618,7 @@ declare const _default: import("vue").DefineComponent<{
2609
2618
  }>>, {
2610
2619
  readonly disabled: boolean;
2611
2620
  readonly closable: boolean | undefined;
2612
- readonly displayDirective: "show" | "if" | "show:lazy";
2621
+ readonly displayDirective: "if" | "show" | "show:lazy";
2613
2622
  }>;
2614
2623
  NTabs: any;
2615
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<{
@@ -2739,6 +2748,10 @@ declare const _default: import("vue").DefineComponent<{
2739
2748
  linebarAutoHidden: {
2740
2749
  type: BooleanConstructor;
2741
2750
  };
2751
+ bordered: {
2752
+ type: BooleanConstructor;
2753
+ default: boolean;
2754
+ };
2742
2755
  }>> & {
2743
2756
  onFormChange?: ((...args: any[]) => any) | undefined;
2744
2757
  onScroll?: ((...args: any[]) => any) | undefined;
@@ -2754,6 +2767,7 @@ declare const _default: import("vue").DefineComponent<{
2754
2767
  consumer: boolean;
2755
2768
  enterToNextWidget: boolean | ((fieldItem: import("../../../../../../es/components/form-render").FieldItem) => boolean | void);
2756
2769
  linebarAutoHidden: boolean;
2770
+ bordered: boolean;
2757
2771
  }>;
2758
2772
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
2759
2773
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
@@ -36,6 +36,7 @@ declare const _default: import("vue").DefineComponent<{
36
36
  color: string;
37
37
  textColor: string;
38
38
  };
39
+ createSlotRenderer: (value: unknown) => any;
39
40
  show: import("vue").Ref<boolean>;
40
41
  fieldList: import("vue").ComputedRef<FieldItem[]>;
41
42
  formRenderRef: import("vue").Ref<FormRenderExpose | undefined>;
@@ -180,6 +181,10 @@ declare const _default: import("vue").DefineComponent<{
180
181
  linebarAutoHidden: {
181
182
  type: BooleanConstructor;
182
183
  };
184
+ bordered: {
185
+ type: BooleanConstructor;
186
+ default: boolean;
187
+ };
183
188
  }, {
184
189
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
185
190
  fieldList: {
@@ -308,12 +313,17 @@ declare const _default: import("vue").DefineComponent<{
308
313
  linebarAutoHidden: {
309
314
  type: BooleanConstructor;
310
315
  };
316
+ bordered: {
317
+ type: BooleanConstructor;
318
+ default: boolean;
319
+ };
311
320
  }>> & {
312
321
  onFormChange?: ((...args: any[]) => any) | undefined;
313
322
  onScroll?: ((...args: any[]) => any) | undefined;
314
323
  onAnnotationChange?: ((...args: any[]) => any) | undefined;
315
324
  }>>;
316
325
  emit: (event: "scroll" | "formChange" | "annotationChange", ...args: any[]) => void;
326
+ cssVars: import("vue").ComputedRef<import("vue").CSSProperties>;
317
327
  nuiThemeOverrides: import("naive-ui").GlobalThemeOverrides;
318
328
  formRenderRef: import("vue").Ref<HTMLElement | undefined>;
319
329
  formHeight: import("vue").ComputedRef<string>;
@@ -462,39 +472,39 @@ declare const _default: import("vue").DefineComponent<{
462
472
  exposeEvent: {
463
473
  validate(path?: string): Promise<void>;
464
474
  getFormValues(needCombineExtendKey?: boolean): any;
465
- setFormValues(values: import("../../../../../shared/types").AnyObject, needSplitExtendKey?: boolean): void;
475
+ setFormValues(values: import("../../../../../shared/types").AnyObject, needSplitExtendKey?: boolean, overwrite?: boolean): void;
466
476
  setFieldState(path: string, handler: (field: Partial<Pick<import("../../../../../../es/components/form-render").Field<any, any, any, any>, import("../../../../../../es/components/form-render").NonFunctionPropertyNames<{
467
477
  match: (pattern: import("@formily/path").Pattern) => boolean;
468
478
  validate: (triggerType?: import("@formily/validator").ValidatorTriggerType | undefined) => any;
469
479
  data: any;
470
480
  loading: boolean;
471
481
  required: boolean;
472
- hidden: boolean;
473
- visible: boolean;
474
- content: any;
475
- reset: (options?: import("../../../../../../es/components/form-render").IFieldResetOptions | undefined) => Promise<void>;
476
- active: boolean;
477
- disabled: boolean;
478
- display: import("../../../../../../es/components/form-render").FieldDisplayTypes;
479
482
  value: string;
480
483
  readonly index: string | number;
484
+ disabled: boolean;
481
485
  onFocus: (...args: any[]) => Promise<void>;
482
486
  onBlur: (...args: any[]) => Promise<void>;
483
487
  onInput: (...args: any[]) => Promise<void>;
488
+ reset: (options?: import("../../../../../../es/components/form-render").IFieldResetOptions | undefined) => Promise<void>;
489
+ title: string;
490
+ editable: boolean;
491
+ visible: boolean;
484
492
  submit: <T>(onSubmit?: ((values: any) => void | Promise<T>) | undefined) => Promise<T>;
485
493
  validator: import("../../../../../../es/components/form-render").FieldValidator;
486
494
  pattern: import("../../../../../../es/components/form-render").FieldPatternTypes;
487
- title: string;
495
+ content: any;
496
+ display: import("../../../../../../es/components/form-render").FieldDisplayTypes;
497
+ hidden: boolean;
488
498
  form: import("../../../../../../es/components/form-render").Form<any>;
489
499
  componentProps: Record<string, any>;
490
500
  decoratorProps: Record<string, any>;
491
501
  description: string;
492
502
  readOnly: boolean;
493
- editable: boolean;
494
503
  component: import("../../../../../../es/components/form-render").FieldComponent<any, any>;
495
504
  decorator: import("../../../../../../es/components/form-render").FieldDecorator<any, any>;
496
505
  validating: boolean;
497
506
  submitting: boolean;
507
+ active: boolean;
498
508
  visited: boolean;
499
509
  selfModified: boolean;
500
510
  modified: boolean;
@@ -581,7 +591,7 @@ declare const _default: import("vue").DefineComponent<{
581
591
  };
582
592
  readonly disabled: BooleanConstructor;
583
593
  readonly displayDirective: {
584
- readonly type: import("vue").PropType<"show" | "if" | "show:lazy">;
594
+ readonly type: import("vue").PropType<"if" | "show" | "show:lazy">;
585
595
  readonly default: "if";
586
596
  };
587
597
  readonly closable: {
@@ -606,7 +616,7 @@ declare const _default: import("vue").DefineComponent<{
606
616
  };
607
617
  readonly disabled: BooleanConstructor;
608
618
  readonly displayDirective: {
609
- readonly type: import("vue").PropType<"show" | "if" | "show:lazy">;
619
+ readonly type: import("vue").PropType<"if" | "show" | "show:lazy">;
610
620
  readonly default: "if";
611
621
  };
612
622
  readonly closable: {
@@ -620,7 +630,7 @@ declare const _default: import("vue").DefineComponent<{
620
630
  }>>, {
621
631
  readonly disabled: boolean;
622
632
  readonly closable: boolean | undefined;
623
- readonly displayDirective: "show" | "if" | "show:lazy";
633
+ readonly displayDirective: "if" | "show" | "show:lazy";
624
634
  }>;
625
635
  NTabs: any;
626
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<{
@@ -750,6 +760,10 @@ declare const _default: import("vue").DefineComponent<{
750
760
  linebarAutoHidden: {
751
761
  type: BooleanConstructor;
752
762
  };
763
+ bordered: {
764
+ type: BooleanConstructor;
765
+ default: boolean;
766
+ };
753
767
  }>> & {
754
768
  onFormChange?: ((...args: any[]) => any) | undefined;
755
769
  onScroll?: ((...args: any[]) => any) | undefined;
@@ -765,6 +779,7 @@ declare const _default: import("vue").DefineComponent<{
765
779
  consumer: boolean;
766
780
  enterToNextWidget: boolean | ((fieldItem: FieldItem) => boolean | void);
767
781
  linebarAutoHidden: boolean;
782
+ bordered: boolean;
768
783
  }>;
769
784
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
770
785
  }, 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 d,createElementVNode as u,normalizeClass as c,toDisplayString as v,createCommentVNode as _,createTextVNode as m,Fragment as g,renderList as x,createBlock as y,resolveDynamicComponent as I}from"vue";import{isArray as h,isString as w,pick as b}from"lodash-es";import{NPopover as k,NImage as P,NDivider as E,NSpace as U,NButton as C,NTag as L,NEllipsis as H}from"naive-ui";import j from"../../../../form-render/index.js";import z from"../../../../../_virtual/plugin-vue_export-helper.js";const T={class:"c-info-header__patient"},F={class:"c-info-header__patientHeader"},N={key:0,class:"c-info-header__patientHeader--name"},R={key:1,class:"c-info-header__patientHeader--sex"},$={key:2,class:"c-info-header__patientHeader--age"};var B=z(e({__name:"index",props:{patientInfo:{default:()=>({})},patientEditable:{type:Boolean}},setup(e){const z=e,B=t((()=>z.patientInfo&&h(z.patientInfo.tagList)?z.patientInfo.tagList.filter((e=>e.render||w(e.content)&&e.content)):[])),S={warning:"#fcc200",info:"rgba(45, 122, 255, 0.1)"},V={warning:"#fff",info:"#2563F4"};function D({type:e="warning"}){return{color:S[e],textColor:V[e]}}const M=a(!1),O=t((()=>z.patientEditable?[{val_key:"name",is_null:"0",is_empty:"0",alias:"姓名",html_type:"INPUT",...z.patientInfo.nameProps},{val_key:"sex",alias:"性别",html_type:"SELECT",is_null:"0",option:[{text:"未知",value:"未知"},{text:"男",value:"男"},{text:"女",value:"女"}],...z.patientInfo.sexProps},{val_key:"age",alias:"年龄",html_type:"INPUT_NUMBER",is_null:"0",is_empty:"0",decoratorProps:{style:{flex:2}},...z.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:"周"}],...z.patientInfo.ageUnitProps}}]:[])),W=a();async function q(){W.value&&(await W.value.validate(),Object.assign(z.patientInfo,b(W.value.getFormValues(),["name","sex","age","ageUnit"])),M.value=!1)}return n(M,(async e=>{await i(),e&&W.value&&W.value.setFormValues(z.patientInfo||{})})),(t,a)=>(l(),o("section",T,[r(t.$slots,"avatar",{},(()=>[s(p(k),null,{trigger:f((()=>[s(p(P),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(P),d({width:200,"preview-disabled":"",src:e.patientInfo.avatarPreview||e.patientInfo.avatar},e.patientInfo.avatarPreviewProps),null,16,["src"])])),_:1})])),u("section",null,[u("header",F,[s(p(k),{disabled:!e.patientEditable,trigger:"manual",placement:"bottom",show:M.value},{trigger:f((()=>[u("section",{class:c(["c-info-header__patientHeaderWrapper",{"in-edit":M.value}]),onDblclick:a[0]||(a[0]=t=>e.patientEditable&&(M.value=!0))},[e.patientInfo.name?(l(),o("div",N,v(e.patientInfo.name),1)):_("v-if",!0),e.patientInfo.sex?(l(),o("div",R,"/ "+v(e.patientInfo.sex),1)):_("v-if",!0),null!=e.patientInfo.age?(l(),o("div",$," / "+v(e.patientInfo.age)+v(e.patientInfo.ageUnit||"岁"),1)):_("v-if",!0)],34)])),default:f((()=>[s(p(j),{column:"6",size:"small","label-placement":"left",style:{width:"200px",margin:"4px 0 -8px 0"},"field-list":p(O),ref_key:"formRenderRef",ref:W},null,8,["field-list"]),s(p(E),{style:{margin:"8px -14px",width:"calc(100% + 28px)"}}),s(p(U),{justify:"end"},{default:f((()=>[s(p(C),{size:"small",onClick:a[1]||(a[1]=e=>M.value=!1)},{default:f((()=>[m("取消")])),_:1}),s(p(C),{size:"small",type:"info",onClick:q},{default:f((()=>[m("确认")])),_:1})])),_:1})])),_:1},8,["disabled","show"]),r(t.$slots,"tags",{tagList:p(B)},(()=>[(l(!0),o(g,null,x(e.patientInfo.tagList||[],(e=>(l(),y(p(L),d({key:e.content,size:"medium",bordered:!1,color:D(e)},e),{default:f((()=>[e.render?(l(),y(I(e.render),{key:0})):(l(),y(p(H),{key:1,style:{"max-width":"96px"}},{default:f((()=>[m(v(e.content),1)])),_:2},1024))])),_:2},1040,["color"])))),128))]))]),r(t.$slots,"avatarInfo")])]))}}),[["__file","index.vue"]]);export{B as default};
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 +1 @@
1
- .c-info-header{align-items:center;background:#fff;box-shadow:0 2px 4px 0 hsla(0,0%,69%,.46);display:flex;gap:18px;height:calc((var(--row-height)*var(--row-num) + var(--padding-tb)*2)*1px);justify-content:space-between;padding:calc(var(--padding-tb)*1px) 16px}@font-face{font-family:iconfont;src:url(iconfont.ttf) format("truetype")}.c-info-header .iconfont{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:iconfont!important;font-size:16px;font-style:normal}.c-info-header .info-header--icon-a-menzhenyishengzhanxitongtubiaojiantouxia:before{content:"\c1003"}.c-info-header .info-header--icon-a-menzhenyishengzhanxitongtubiaojiantoushang:before{content:"\c1004"}.c-info-header .info-header--icon-a-menzhenyishengzhanxitongtubiaoshezhi:before{content:"\c1005"}.c-info-header .info-header--icon-a-menzhenyishengzhanxitongtubiaobianji:before{content:"\c1006"}.c-info-header .info-header--icon-guanbi-yanjing:before{content:"\c1001"}.c-info-header .info-header--icon-faxian-yanjing:before{content:"\c1002"}.c-info-header__divider{align-self:stretch;background:#d5d5d566;width:1px}.c-info-header__patient{align-items:center;display:flex;flex-wrap:nowrap;gap:12px;margin-right:34px}.c-info-header__patientHeader,.c-info-header__patientHeaderWrapper{align-items:center;display:flex;gap:6px}.c-info-header__patientHeaderWrapper{border-bottom:1px solid transparent}.c-info-header__patientHeaderWrapper.in-edit{border-bottom:1px solid rgba(0,0,0,.6)}.c-info-header__patientHeader--name{font-size:20px;font-weight:700;margin-right:6px}.c-info-header__patientHeader .n-tag{border-radius:2px;height:20px}.c-info-header__patientHeader .n-tag .n-tag__content{font-size:12px}.c-info-header__info{display:flex;flex:1;flex-wrap:wrap;font-size:14px;justify-content:flex-start;width:100%}.c-info-header__infoWrapper{box-sizing:border-box;height:calc((var(--row-height)*var(--row-num))*1px);max-height:calc((var(--row-height)*var(--row-num))*1px)}.c-info-header__info td{text-align:left}.c-info-header__info .n-descriptions-table-content{height:calc(var(--row-height)*1px);max-width:calc(var(--column-width)*1px);overflow-y:hidden;padding:0!important;vertical-align:middle!important}.c-info-header__info .n-descriptions-table-content__label{color:rgba(0,0,0,.6);display:inline-block}.c-info-header__setting{align-self:flex-start;display:flex;gap:8px}.c-info-header__settingIcon{align-items:center;cursor:pointer;display:inline-flex}.c-info-header__setting .iconfont{color:#000;display:inline-block;font-size:20px;transition:all .2s ease-in-out}.c-info-header.is-compact [compact-hidden]{display:none!important}.c-info-header.is-compact .info-header--icon-a-menzhenyishengzhanxitongtubiaojiantouxia{transform:rotate(0deg)}.c-info-header .info-header--icon-a-menzhenyishengzhanxitongtubiaojiantouxia{transform:rotate(180deg)}.c-info-header__hidden{align-items:center;display:inline-flex;font-size:14px;gap:8px;vertical-align:middle}.c-info-header__hidden--icon{color:inherit!important;cursor:pointer;font-size:14px;text-decoration:none!important}.c-info-header__formRender .n-form-item-blank>.n-input .n-input-wrapper{border-bottom:1px solid var(--n-text-color)}.c-info-header__formRender .n-base-selection,.c-info-header__formRender .n-base-selection-label,.c-info-header__formRender .n-date-picker,.c-info-header__formRender .n-input,.c-info-header__formRender .n-input-wrapper{max-height:18px;min-height:18px;vertical-align:top}.c-info-header__formRender .n-base-selection input,.c-info-header__formRender .n-base-selection-label input,.c-info-header__formRender .n-date-picker input,.c-info-header__formRender .n-input input,.c-info-header__formRender .n-input-wrapper input{max-height:18px;min-height:18px}.c-info-header__formRender .n-select{line-height:1}
1
+ .c-info-header{align-items:center;background:#fff;box-shadow:0 2px 4px 0 hsla(0,0%,69%,.46);display:flex;gap:18px;height:calc((var(--row-height)*var(--row-num) + var(--padding-tb)*2)*1px);justify-content:space-between;padding:calc(var(--padding-tb)*1px) 16px;transition:height .2s linear,padding .2s linear}@font-face{font-family:info-header-iconfont;src:url(info-header-font.ttf) format("truetype")}.c-info-header .info-header--iconfont{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:info-header-iconfont!important;font-size:16px;font-style:normal}.c-info-header .info-header--icon-a-menzhenyishengzhanxitongtubiaojiantouxia:before{content:"\c1003"}.c-info-header .info-header--icon-a-menzhenyishengzhanxitongtubiaojiantoushang:before{content:"\c1004"}.c-info-header .info-header--icon-a-menzhenyishengzhanxitongtubiaoshezhi:before{content:"\c1005"}.c-info-header .info-header--icon-a-menzhenyishengzhanxitongtubiaobianji:before{content:"\c1006"}.c-info-header .info-header--icon-guanbi-yanjing:before{content:"\c1001"}.c-info-header .info-header--icon-faxian-yanjing:before{content:"\c1002"}.c-info-header__divider{align-self:stretch;background:#d5d5d566;width:1px}.c-info-header__patient{align-items:center;display:flex;flex-wrap:nowrap;gap:12px;margin-right:34px}.c-info-header__patientHeader,.c-info-header__patientHeaderWrapper{align-items:center;display:flex;gap:6px}.c-info-header__patientHeaderWrapper{border-bottom:1px solid transparent}.c-info-header__patientHeaderWrapper.in-edit{border-bottom:1px solid rgba(0,0,0,.6)}.c-info-header__patientHeader--name{font-size:20px;font-weight:700;margin-right:6px}.c-info-header__patientHeader .n-tag{border-radius:2px;height:20px}.c-info-header__patientHeader .n-tag .n-tag__content{font-size:12px}.c-info-header__info{display:flex;flex:1;flex-wrap:wrap;font-size:14px;justify-content:flex-start;width:100%}.c-info-header__infoWrapper{box-sizing:border-box;height:calc((var(--row-height)*var(--row-num))*1px);max-height:calc((var(--row-height)*var(--row-num))*1px);transition:height .2s linear,max-height .2s linear}.c-info-header__info td{text-align:left}.c-info-header__info .n-descriptions-table-content{height:calc(var(--row-height)*1px);max-width:calc(var(--column-width)*1px);overflow-y:hidden;padding:0!important;vertical-align:middle!important}.c-info-header__info .n-descriptions-table-content__label{color:rgba(0,0,0,.6);display:inline-block}.c-info-header__setting{align-self:flex-start;display:flex;gap:8px}.c-info-header__settingIcon{align-items:center;cursor:pointer;display:inline-flex}.c-info-header__setting .info-header--iconfont{color:#000;display:inline-block;font-size:20px;transition:all .2s linear}.c-info-header [compact-hidden]{max-height:160px;transition:max-height .2s ease-in-out,opacity .2s linear}.c-info-header.is-compact [compact-hidden]{max-height:0!important;opacity:0!important}.c-info-header.is-compact .info-header--icon-a-menzhenyishengzhanxitongtubiaojiantouxia{transform:rotate(0deg)}.c-info-header .info-header--icon-a-menzhenyishengzhanxitongtubiaojiantouxia{transform:rotate(180deg)}.c-info-header__hidden{align-items:center;display:inline-flex;font-size:14px;gap:8px;vertical-align:middle}.c-info-header__hidden--icon{color:inherit!important;cursor:pointer;font-size:14px;text-decoration:none!important}.c-info-header__formRender .n-form-item-blank>.n-input .n-input-wrapper{border-bottom:1px solid var(--n-text-color)}.c-info-header__formRender .n-base-selection,.c-info-header__formRender .n-base-selection-label,.c-info-header__formRender .n-date-picker,.c-info-header__formRender .n-input,.c-info-header__formRender .n-input-wrapper{max-height:18px;min-height:18px;vertical-align:top}.c-info-header__formRender .n-base-selection input,.c-info-header__formRender .n-base-selection-label input,.c-info-header__formRender .n-date-picker input,.c-info-header__formRender .n-input input,.c-info-header__formRender .n-input-wrapper input{max-height:18px;min-height:18px}.c-info-header__formRender .n-select{line-height:1}
@@ -187,7 +187,9 @@ declare const Keyboard: SFCWithInstall<import("vue").DefineComponent<{
187
187
  inputRef: any;
188
188
  style: import("vue").ComputedRef<string> | undefined;
189
189
  init: () => import("vue").ComputedRef<string> | undefined;
190
- keydown: (key: string | number) => Promise<void>;
190
+ setFocus: () => Promise<void>;
191
+ keydown: (key: string | number) => void;
192
+ onKeydown: (event: KeyboardEvent) => void;
191
193
  updateValue: (key: string) => Promise<void>;
192
194
  validator: () => boolean;
193
195
  updateFraction: (value: number) => void;
@@ -332,8 +334,8 @@ declare const Keyboard: SFCWithInstall<import("vue").DefineComponent<{
332
334
  onChange?: ((...args: any[]) => any) | undefined;
333
335
  onKeydown?: ((...args: any[]) => any) | undefined;
334
336
  }, {
335
- drag: boolean;
336
337
  mode: "number" | "day" | "dose" | "english";
338
+ drag: boolean;
337
339
  positionInitialValue: import("@vueuse/core").Position;
338
340
  panel: boolean;
339
341
  moveOffset: import("@vueuse/core").Position;
@@ -188,7 +188,9 @@ declare const _default: import("vue").DefineComponent<{
188
188
  inputRef: any;
189
189
  style: import("vue").ComputedRef<string> | undefined;
190
190
  init: () => import("vue").ComputedRef<string> | undefined;
191
- keydown: (key: string | number) => Promise<void>;
191
+ setFocus: () => Promise<void>;
192
+ keydown: (key: string | number) => void;
193
+ onKeydown: (event: KeyboardEvent) => void;
192
194
  updateValue: (key: string) => Promise<void>;
193
195
  validator: () => boolean;
194
196
  updateFraction: (value: number) => void;
@@ -333,8 +335,8 @@ declare const _default: import("vue").DefineComponent<{
333
335
  onChange?: ((...args: any[]) => any) | undefined;
334
336
  onKeydown?: ((...args: any[]) => any) | undefined;
335
337
  }, {
336
- drag: boolean;
337
338
  mode: "number" | "day" | "dose" | "english";
339
+ drag: boolean;
338
340
  positionInitialValue: Position;
339
341
  panel: boolean;
340
342
  moveOffset: Position;
@@ -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 r,createVNode as s,mergeProps as d,createElementBlock as f,normalizeClass as c,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 b,NSpace as w,NIcon as V}from"naive-ui";import{Close as x,GitCompareOutline as _,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/mixins/useTheme.js";import{defaultCssVars as I}from"./constants/index.js";import D from"../../../_virtual/plugin-vue_export-helper.js";const K=p("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:c(["c-keyboard-english",{isFixed:e.drag}]),ref_key:"englishKeyboardRef",ref:L,style:i(n(A))},[s(n(w),{"wrap-item":!1,align:"center",justify:"space-between",ref_key:"keyboardDragRef",ref:W,style:i({cursor:e.drag?"move":"default"})},{default:r((()=>[K,s(n(V),{onClick:t[1]||(t[1]=e=>Z("close")),component:n(x)},null,8,["component"])])),_:1},8,["style"]),p("div",N,[(a(!0),f(m,null,v(G.value,((e,l)=>(a(),f("span",{key:e,class:c(["key"+l]),onClick:l=>Z(e)},["Switch"===e?(a(),u(n(V),{key:0,component:n(_)},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:r((()=>[s(n(b),{value:X.value,"onUpdate:value":t[0]||(t[0]=e=>X.value=e),"show-button":!1},null,8,["value"])])),default:r((()=>[s(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{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};
@@ -83,7 +83,9 @@ declare const _default: import("vue").DefineComponent<{
83
83
  inputRef: any;
84
84
  style: import("vue").ComputedRef<string> | undefined;
85
85
  init: () => import("vue").ComputedRef<string> | undefined;
86
- keydown: (key: string | number) => Promise<void>;
86
+ setFocus: () => Promise<void>;
87
+ keydown: (key: string | number) => void;
88
+ onKeydown: (event: KeyboardEvent) => void;
87
89
  updateValue: (key: string) => Promise<void>;
88
90
  validator: () => boolean;
89
91
  updateFraction: (value: number) => void;
@@ -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,l,n;e.x+=null!=(u=null==(a=props.moveOffset)?void 0:a.x)?u:0,e.y+=null!=(n=null==(l=props.moveOffset)?void 0:l.y)?n:0}});return a}}async function keydown(key){var _a,_b,_c;switch(key){case"Undo":updateValue(key);break;case"Enter":{if(!validator())return void(inputValueStatus.value="error");emit("change",eval(inputValue.value));const inputRefS=null==(_c=null==(_b=null==(_a=inputRef.value)?void 0:_a.$childrenRefs)?void 0:_b.$refs)?void 0:_c.inputElRef;await nextTick(),inputRefS.focus();break}default:"number"==typeof key?(inputValue.value=key.toString(),setInputValueStatus()):updateValue(key)}}async function updateValue(e){var t,a,u;const l=null==(u=null==(a=null==(t=inputRef.value)?void 0:t.$childrenRefs)?void 0:a.$refs)?void 0:u.inputElRef,{selectionStart:n,selectionEnd:o}=l,r=inputValue.value.split("");if("Undo"===e){const e=n===o?1:o-n,t=n===o?n-1:n;inputValue.value&&t>-1&&r.splice(t,e)}else r.splice(n,o-n,e);inputValue.value=r.join(""),await nextTick(),l.focus();const s="Undo"===e?n?o>n?n:n-1:0:n+1;l.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,l)=>{CALCULATIONSYMBOLS.includes(u)?(e.push(t.join("")),t=[]):(t.push(u),l===a.length-1&&e.push(t.join("")))}));return!!e.every(((e,t)=>0===t&&!e||/^\d*(.\d+)?$/.test(e)))}function updateFraction(e){setInputStatus(inputValue,inputValueStatus)&&(inputValue.value=(Math.round(+inputValue.value*(1/e)*100)/100).toString(),setInputValueStatus())}function calculateFraction(){if(!setInputStatus(inputValue,inputValueStatus)||!setInputStatus(numeratorValue,numeratorValueStatus,!0)||!setInputStatus(denominatorValue,denominatorValueStatus,!0))return;const e=getNumber(integerValue.value)+getNumber(numeratorValue.value)/getNumber(denominatorValue.value);inputValue.value=(Math.round(+inputValue.value*e*100)/100).toString(),setInputValueStatus()}function setInputStatus(e,t,a){if((a||e.value&&"."!==e.value)&&(!a||e.value))return!0;t.value="error"}function setInputValueStatus(){inputValueStatus.value=inputValue.value?"success":"error"}return watch((()=>props.value),(e=>inputValue.value=(e||"").toString()),{immediate:!0}),(e,t)=>(openBlock(),createElementBlock("div",{class:normalizeClass(["c-keyboard",{isFixed:__props.drag}]),ref_key:"keyboardRef",ref:keyboardRef,style:normalizeStyle(unref(style))},[createElementVNode("div",{class:normalizeClass(["left",{isDose:unref(isDose)}])},[createVNode(InputNumber,{ref_key:"inputRef",ref:inputRef,modelValue:inputValue.value,"onUpdate:modelValue":t[0]||(t[0]=e=>inputValue.value=e),status:inputValueStatus.value,"onUpdate:status":t[1]||(t[1]=e=>inputValueStatus.value=e)},null,8,["modelValue","status"]),createElementVNode("div",_hoisted_1,[createVNode(unref(NSpace),{class:"margin-offset","wrap-item":!1},{default:withCtx((()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(numberKeys),(e=>(openBlock(),createElementBlock("span",{key:e,class:normalizeClass("0"===e?"is-0":""),onClick:t=>keydown(e)},toDisplayString(e),11,_hoisted_2)))),128))])),_:1}),createVNode(unref(NSpace),{class:"margin-offset","wrap-item":!1},{default:withCtx((()=>[createElementVNode("span",{class:"opt",onClick:t[2]||(t[2]=e=>keydown("Undo"))},[createVNode(unref(NIcon),{component:unref(ArrowUndoSharp)},null,8,["component"])]),createElementVNode("span",{class:"opt",onClick:t[3]||(t[3]=e=>keydown("Enter"))},"确定")])),_:1})])],2),unref(isDay)?(openBlock(),createBlock(unref(NSpace),{key:0,class:"right-days","wrap-item":!1,justify:"center",vertical:""},{default:withCtx((()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(days.value,(e=>(openBlock(),createElementBlock("span",{class:"btn",key:e,onClick:t=>keydown(e)},toDisplayString(e)+"天",9,_hoisted_3)))),128))])),_:1})):createCommentVNode("v-if",!0),unref(isDose)?(openBlock(),createBlock(unref(NSpace),{key:1,class:"right-dose","wrap-item":!1},{default:withCtx((()=>[createElementVNode("div",_hoisted_4,[(openBlock(!0),createElementBlock(Fragment,null,renderList(doses.value,(e=>(openBlock(),createElementBlock("span",{class:"btn",key:e,onClick:t=>updateFraction(e)},"1/"+toDisplayString(e),9,_hoisted_5)))),128))]),createVNode(unref(NSpace),{justify:"center",vertical:"","wrap-item":!1},{default:withCtx((()=>[createElementVNode("div",_hoisted_6,[createVNode(InputNumber,{integer:"",modelValue:integerValue.value,"onUpdate:modelValue":t[4]||(t[4]=e=>integerValue.value=e)},null,8,["modelValue"]),createElementVNode("div",_hoisted_7,[createVNode(InputNumber,{integer:"",modelValue:numeratorValue.value,"onUpdate:modelValue":t[5]||(t[5]=e=>numeratorValue.value=e),status:numeratorValueStatus.value,"onUpdate:status":t[6]||(t[6]=e=>numeratorValueStatus.value=e)},null,8,["modelValue","status"]),_hoisted_8,createVNode(InputNumber,{integer:"",modelValue:denominatorValue.value,"onUpdate:modelValue":t[7]||(t[7]=e=>denominatorValue.value=e),status:denominatorValueStatus.value,"onUpdate:status":t[8]||(t[8]=e=>denominatorValueStatus.value=e)},null,8,["modelValue","status"])])]),createElementVNode("span",{class:"btn",onClick:calculateFraction},"分子式剂量")])),_:1})])),_:1})):createCommentVNode("v-if",!0)],6))}});var NumberPanel=_export_sfc(_sfc_main,[["__file","NumberPanel.vue"]]);export{NumberPanel as default};
1
+ 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 +1 @@
1
- const o={"--c-color-hover":"#2474ff33","--c-color-pressed":"#2474ff"};export{o as defaultCssVars};
1
+ const r={"--c-primary-color-hover":"#2474ff33","--c-primary-color-pressed":"#2474ff"};export{r as defaultCssVars};
@@ -1 +1 @@
1
- .c-keyboard span,.c-keyboard-english .keys span{cursor:pointer}.c-keyboard{background:#fff;display:flex;height:160px}.c-keyboard.isFixed{position:fixed;z-index:1}.c-keyboard .btn{align-items:center;background:linear-gradient(180deg,#fff,#f2f2f2);border-radius:2px;box-shadow:0 2px 2px #00000036;box-sizing:border-box;display:inline-flex;font-size:14px;justify-content:center;text-align:center}.c-keyboard .btn:hover{background:var(--c-color-hover);border:1px solid var(--c-color-pressed)}.c-keyboard .btn:active{background:var(--c-color-pressed);color:#fff}.c-keyboard .btn:hover{box-shadow:none}.c-keyboard .n-space{gap:unset!important}.c-keyboard .margin-offset{margin:-4px 0 0 -4px}.c-keyboard .left{box-sizing:border-box;padding:6px;width:128px}.c-keyboard .left.isDose{width:158px}.c-keyboard .left .n-input{height:28px;width:100%}.c-keyboard .left .n-input .n-input__input-el{height:28px}.c-keyboard .left .keys{display:flex;margin-top:5px}.c-keyboard .left .keys span{align-items:center;background-color:#e8e8e8;border-radius:2px;box-sizing:border-box;display:inline-flex;font-size:14px;height:26px;justify-content:center;margin:4px 0 0 4px;text-align:center;width:26px}.c-keyboard .left .keys span:hover{background:var(--c-color-hover);border:1px solid var(--c-color-pressed)}.c-keyboard .left .keys span:active{background:var(--c-color-pressed);color:#fff}.c-keyboard .left .keys span.opt{height:56px}.c-keyboard .left .keys span.is-0{width:56px}.c-keyboard .right-days,.c-keyboard .right-dose{border-left:1px solid #d5d5d5}.c-keyboard .right-days{padding:0 12px}.c-keyboard .right-days .btn{height:26px;margin-top:8px;width:56px}.c-keyboard .right-days .btn:first-child{margin-top:0}.c-keyboard .right-dose{padding:5px 12px 5px 5px}.c-keyboard .right-dose .btn{height:32px;width:100px}.c-keyboard .right-dose .btns{display:flex;flex-flow:column nowrap;height:100%;margin-right:8px;overflow-y:scroll;padding-right:6px}.c-keyboard .right-dose .btns .btn{height:20px;margin-top:4px;width:40px}.c-keyboard .right-dose .btns::-webkit-scrollbar{height:1px;width:2px}.c-keyboard .right-dose .btns::-webkit-scrollbar-track{background:#d8d8d8;border-radius:2px;box-shadow:inset 0 0 5px #fff}.c-keyboard .right-dose .btns::-webkit-scrollbar-thumb{background:#535353;border-radius:2px;box-shadow:inset 0 0 5px #fff}.c-keyboard .right-dose .inputs{align-items:center;display:flex;margin-bottom:8px}.c-keyboard .right-dose .inputs .n-input{height:32px;width:46px}.c-keyboard .right-dose .inputs .n-input .n-input__input-el{height:32px}.c-keyboard .right-dose .inputs .inputs-right{margin-left:8px}.c-keyboard .n-input .n-input-wrapper{padding-right:5px}.c-keyboard .n-input .n-input-wrapper .n-input__suffix{line-height:0}.c-keyboard .n-input .n-input-wrapper .n-input__suffix .n-space .n-icon{cursor:pointer}.c-keyboard-english{background:#fff;box-sizing:border-box;padding:10px 6px;width:308px}.c-keyboard-english.isFixed{position:fixed;z-index:1}.c-keyboard-english .n-space span{font-size:12px}.c-keyboard-english .n-space .n-icon{cursor:pointer}.c-keyboard-english .keys{display:flex;flex-flow:row wrap;margin:1px 0 0 -4px}.c-keyboard-english .keys span{align-items:center;background-color:#e8e8e8;border-radius:2px;box-sizing:border-box;display:inline-flex;font-size:14px;height:26px;justify-content:center;margin:4px 0 0 4px;text-align:center;width:26px}.c-keyboard-english .keys span:hover{background:var(--c-color-hover);border:1px solid var(--c-color-pressed)}.c-keyboard-english .keys span:active{background:var(--c-color-pressed);color:#fff}.c-keyboard-english .keys span.key10,.c-keyboard-english .keys span.key27{margin-left:16px}.c-keyboard-english .keys span.key26{margin-right:25px}.c-keyboard-english .keys span.key19{margin-left:31px}.c-keyboard-english .keys span.key28{width:146px}.c-keyboard-english .keys span.key30{width:56px}
1
+ .c-keyboard span,.c-keyboard-english .keys span{cursor:pointer}.c-keyboard{background:#fff;display:flex;height:160px}.c-keyboard.isFixed{position:fixed;z-index:1}.c-keyboard .btn{align-items:center;background:linear-gradient(180deg,#fff,#f2f2f2);border-radius:2px;box-shadow:0 2px 2px #00000036;box-sizing:border-box;display:inline-flex;font-size:14px;justify-content:center;text-align:center}.c-keyboard .btn:hover{background:var(--c-primary-color-hover);border:1px solid var(--c-primary-color-pressed)}.c-keyboard .btn:active{background:var(--c-primary-color-pressed);color:#fff}.c-keyboard .btn:hover{box-shadow:none}.c-keyboard .n-space{gap:unset!important}.c-keyboard .margin-offset{margin:-4px 0 0 -4px}.c-keyboard .left{box-sizing:border-box;padding:6px;width:128px}.c-keyboard .left.isDose{width:158px}.c-keyboard .left .n-input{height:28px;width:100%}.c-keyboard .left .n-input .n-input__input-el{height:28px}.c-keyboard .left .keys{display:flex;margin-top:5px}.c-keyboard .left .keys span{align-items:center;background-color:#e8e8e8;border-radius:2px;box-sizing:border-box;display:inline-flex;font-size:14px;height:26px;justify-content:center;margin:4px 0 0 4px;text-align:center;width:26px}.c-keyboard .left .keys span:hover{background:var(--c-primary-color-hover);border:1px solid var(--c-primary-color-pressed)}.c-keyboard .left .keys span:active{background:var(--c-primary-color-pressed);color:#fff}.c-keyboard .left .keys span.opt{height:56px}.c-keyboard .left .keys span.is-0{width:56px}.c-keyboard .right-days,.c-keyboard .right-dose{border-left:1px solid #d5d5d5}.c-keyboard .right-days{padding:0 12px}.c-keyboard .right-days .btn{height:26px;margin-top:8px;width:56px}.c-keyboard .right-days .btn:first-child{margin-top:0}.c-keyboard .right-dose{padding:5px 12px 5px 5px}.c-keyboard .right-dose .btn{height:32px;width:100px}.c-keyboard .right-dose .btns{display:flex;flex-flow:column nowrap;height:100%;margin-right:8px;overflow-y:scroll;padding-right:6px}.c-keyboard .right-dose .btns .btn{height:20px;margin-top:4px;width:40px}.c-keyboard .right-dose .btns::-webkit-scrollbar{height:1px;width:2px}.c-keyboard .right-dose .btns::-webkit-scrollbar-track{background:#d8d8d8;border-radius:2px;box-shadow:inset 0 0 5px #fff}.c-keyboard .right-dose .btns::-webkit-scrollbar-thumb{background:#535353;border-radius:2px;box-shadow:inset 0 0 5px #fff}.c-keyboard .right-dose .inputs{align-items:center;display:flex;margin-bottom:8px}.c-keyboard .right-dose .inputs .n-input{height:32px;width:46px}.c-keyboard .right-dose .inputs .n-input .n-input__input-el{height:32px}.c-keyboard .right-dose .inputs .inputs-right{margin-left:8px}.c-keyboard .n-input .n-input-wrapper{padding-right:5px}.c-keyboard .n-input .n-input-wrapper .n-input__suffix{line-height:0}.c-keyboard .n-input .n-input-wrapper .n-input__suffix .n-space .n-icon{cursor:pointer}.c-keyboard-english{background:#fff;box-sizing:border-box;padding:10px 6px;width:308px}.c-keyboard-english.isFixed{position:fixed;z-index:1}.c-keyboard-english .n-space span{font-size:12px}.c-keyboard-english .n-space .n-icon{cursor:pointer}.c-keyboard-english .keys{display:flex;flex-flow:row wrap;margin:1px 0 0 -4px}.c-keyboard-english .keys span{align-items:center;background-color:#e8e8e8;border-radius:2px;box-sizing:border-box;display:inline-flex;font-size:14px;height:26px;justify-content:center;margin:4px 0 0 4px;text-align:center;width:26px}.c-keyboard-english .keys span:hover{background:var(--c-primary-color-hover);border:1px solid var(--c-primary-color-pressed)}.c-keyboard-english .keys span:active{background:var(--c-primary-color-pressed);color:#fff}.c-keyboard-english .keys span.key10,.c-keyboard-english .keys span.key27{margin-left:16px}.c-keyboard-english .keys span.key26{margin-right:25px}.c-keyboard-english .keys span.key19{margin-left:31px}.c-keyboard-english .keys span.key28{width:146px}.c-keyboard-english .keys span.key30{width:56px}
@@ -1,4 +1,5 @@
1
1
  import { SFCWithInstall } from '../../../es/shared/types';
2
+ export * from './src/types';
2
3
  declare const Map: SFCWithInstall<import("vue").DefineComponent<{
3
4
  locationProp: {
4
5
  type: StringConstructor;
@@ -21,20 +22,7 @@ declare const Map: SFCWithInstall<import("vue").DefineComponent<{
21
22
  }>> & {
22
23
  onSelectLocation?: ((...args: any[]) => any) | undefined;
23
24
  }>>;
24
- state: {
25
- qq: any;
26
- searchKey: any;
27
- centrePoint: any;
28
- location: any;
29
- localObj: any;
30
- map: any;
31
- ac: any;
32
- addressList: any[];
33
- markers: any[];
34
- timeout: any;
35
- searchService: any;
36
- geocoder: any;
37
- };
25
+ state: import("./src/types").IState;
38
26
  defAdress: import("vue").ComputedRef<any>;
39
27
  emit: (event: "selectLocation", ...args: any[]) => void;
40
28
  calculateLocationProp: import("vue").ComputedRef<any>;
@@ -1,17 +1,4 @@
1
- declare type IState = {
2
- qq: any;
3
- searchKey: any;
4
- centrePoint: any;
5
- location: any;
6
- localObj: any;
7
- map: any;
8
- ac: any;
9
- addressList: any[];
10
- markers: any[];
11
- timeout: any;
12
- searchService: any;
13
- geocoder: any;
14
- };
1
+ import { IState } from '../../../../es/components/map/src/types';
15
2
  declare const _default: import("vue").DefineComponent<{
16
3
  locationProp: {
17
4
  type: StringConstructor;
@@ -0,0 +1,19 @@
1
+ export declare type IState = {
2
+ qq: any;
3
+ searchKey: any;
4
+ centrePoint: any;
5
+ location: any;
6
+ localObj: any;
7
+ map: any;
8
+ ac: any;
9
+ addressList: any[];
10
+ markers: any[];
11
+ timeout: any;
12
+ searchService: any;
13
+ geocoder: any;
14
+ };
15
+ export declare type IMapLocation = Partial<{
16
+ isInit: boolean;
17
+ locationProp: string;
18
+ [key: string]: any;
19
+ }>;