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
@@ -1,7 +1,7 @@
1
1
  import { SFCWithInstall } from '../../../es/shared/types';
2
2
  declare const RecommendSearch: SFCWithInstall<import("vue").DefineComponent<{
3
3
  mode: {
4
- type: import("vue").PropType<"input" | "select">;
4
+ type: import("vue").PropType<"select" | "input">;
5
5
  default: string;
6
6
  };
7
7
  value: {
@@ -51,7 +51,7 @@ declare const RecommendSearch: SFCWithInstall<import("vue").DefineComponent<{
51
51
  }, {
52
52
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
53
53
  mode: {
54
- type: import("vue").PropType<"input" | "select">;
54
+ type: import("vue").PropType<"select" | "input">;
55
55
  default: string;
56
56
  };
57
57
  value: {
@@ -227,9 +227,7 @@ declare const RecommendSearch: SFCWithInstall<import("vue").DefineComponent<{
227
227
  clickTag: (type: import("./src/constant").RecommendType, value: import("./src/types").RecommendItem) => void;
228
228
  clickCommonTag: (value: import("./src/types").RecommendItem) => void;
229
229
  clickRecentTag: (value: import("./src/types").RecommendItem) => void;
230
- deleteTag: (type: import("./src/constant").RecommendType) => void;
231
- deleteCommonTag: () => void;
232
- deleteRecentTag: () => void;
230
+ deleteTag: () => void;
233
231
  TrashOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
234
232
  NTag: any;
235
233
  NIcon: any;
@@ -295,66 +293,7 @@ declare const RecommendSearch: SFCWithInstall<import("vue").DefineComponent<{
295
293
  type: BooleanConstructor;
296
294
  default: boolean;
297
295
  };
298
- }, {
299
- props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
300
- displayValue: {
301
- type: StringConstructor;
302
- };
303
- valueFormatter: {
304
- type: import("vue").PropType<(value: string | number | any[] | undefined) => string>;
305
- };
306
- show: {
307
- type: BooleanConstructor;
308
- };
309
- loading: {
310
- type: BooleanConstructor;
311
- };
312
- placeholder: {
313
- type: StringConstructor;
314
- default: string;
315
- };
316
- clearable: {
317
- type: BooleanConstructor;
318
- default: boolean;
319
- };
320
- inputProps: {
321
- type: ObjectConstructor;
322
- default: () => {};
323
- };
324
- popProps: {
325
- type: ObjectConstructor;
326
- default: () => {};
327
- };
328
- clearPatternOnOpenMenu: {
329
- type: BooleanConstructor;
330
- default: boolean;
331
- };
332
- }>> & {
333
- "onUpdate:show"?: ((...args: any[]) => any) | undefined;
334
- onClear?: ((...args: any[]) => any) | undefined;
335
- onSearch?: ((...args: any[]) => any) | undefined;
336
- onOpenMenu?: ((...args: any[]) => any) | undefined;
337
- onCloseMenu?: ((...args: any[]) => any) | undefined;
338
- }>>;
339
- uuid: string;
340
- emits: (event: "clear" | "update:show" | "search" | "openMenu" | "closeMenu", ...args: any[]) => void;
341
- search: (content?: any) => void;
342
- popoverRef: import("vue").Ref<{
343
- syncPosition: import("../../../es/shared/types").Func<any[], any>;
344
- } | undefined>;
345
- _show: import("vue").Ref<boolean>;
346
- show: import("vue").WritableComputedRef<boolean>;
347
- inputRef: import("vue").Ref<HTMLElement | undefined>;
348
- patternContent: import("vue").Ref<string>;
349
- displayValueRef: import("vue").WritableComputedRef<string | undefined>;
350
- openMenuAtInput: (evt: PointerEvent) => void;
351
- openMenu: () => void;
352
- closeMenu: () => void;
353
- onClear: () => void;
354
- NInput: any;
355
- NPopover: any;
356
- NSpin: any;
357
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "update:show" | "search" | "openMenu" | "closeMenu")[], "search" | "closeMenu" | "clear" | "update:show" | "openMenu", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
296
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "update:show" | "keydown" | "search" | "openMenu" | "closeMenu")[], "search" | "closeMenu" | "clear" | "update:show" | "keydown" | "openMenu", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
358
297
  displayValue: {
359
298
  type: StringConstructor;
360
299
  };
@@ -388,6 +327,7 @@ declare const RecommendSearch: SFCWithInstall<import("vue").DefineComponent<{
388
327
  default: boolean;
389
328
  };
390
329
  }>> & {
330
+ onKeydown?: ((...args: any[]) => any) | undefined;
391
331
  "onUpdate:show"?: ((...args: any[]) => any) | undefined;
392
332
  onClear?: ((...args: any[]) => any) | undefined;
393
333
  onSearch?: ((...args: any[]) => any) | undefined;
@@ -528,7 +468,7 @@ declare const RecommendSearch: SFCWithInstall<import("vue").DefineComponent<{
528
468
  commonOptions: import("vue").ComputedRef<any[]>;
529
469
  recentOptions: import("vue").ComputedRef<any[]>;
530
470
  optionWithoutRecommend: import("vue").ComputedRef<import("../../../es/shared/types").AnyObject[]>;
531
- getDisplayValue: (item: string | number) => string;
471
+ getDisplayValue: (item: import("../../../es/shared/types").Nullable<string | number>) => string;
532
472
  baseSearchRef: import("vue").Ref<import("./src/types").BaseSearchExpose | undefined>;
533
473
  valueRef: import("vue").Ref<string | number | null | undefined> | import("vue").WritableComputedRef<string | number | null | undefined>;
534
474
  parsedOptions: import("vue").ComputedRef<any[]>;
@@ -585,66 +525,7 @@ declare const RecommendSearch: SFCWithInstall<import("vue").DefineComponent<{
585
525
  type: BooleanConstructor;
586
526
  default: boolean;
587
527
  };
588
- }, {
589
- props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
590
- displayValue: {
591
- type: StringConstructor;
592
- };
593
- valueFormatter: {
594
- type: import("vue").PropType<(value: string | number | any[] | undefined) => string>;
595
- };
596
- show: {
597
- type: BooleanConstructor;
598
- };
599
- loading: {
600
- type: BooleanConstructor;
601
- };
602
- placeholder: {
603
- type: StringConstructor;
604
- default: string;
605
- };
606
- clearable: {
607
- type: BooleanConstructor;
608
- default: boolean;
609
- };
610
- inputProps: {
611
- type: ObjectConstructor;
612
- default: () => {};
613
- };
614
- popProps: {
615
- type: ObjectConstructor;
616
- default: () => {};
617
- };
618
- clearPatternOnOpenMenu: {
619
- type: BooleanConstructor;
620
- default: boolean;
621
- };
622
- }>> & {
623
- "onUpdate:show"?: ((...args: any[]) => any) | undefined;
624
- onClear?: ((...args: any[]) => any) | undefined;
625
- onSearch?: ((...args: any[]) => any) | undefined;
626
- onOpenMenu?: ((...args: any[]) => any) | undefined;
627
- onCloseMenu?: ((...args: any[]) => any) | undefined;
628
- }>>;
629
- uuid: string;
630
- emits: (event: "clear" | "update:show" | "search" | "openMenu" | "closeMenu", ...args: any[]) => void;
631
- search: (content?: any) => void;
632
- popoverRef: import("vue").Ref<{
633
- syncPosition: import("../../../es/shared/types").Func<any[], any>;
634
- } | undefined>;
635
- _show: import("vue").Ref<boolean>;
636
- show: import("vue").WritableComputedRef<boolean>;
637
- inputRef: import("vue").Ref<HTMLElement | undefined>;
638
- patternContent: import("vue").Ref<string>;
639
- displayValueRef: import("vue").WritableComputedRef<string | undefined>;
640
- openMenuAtInput: (evt: PointerEvent) => void;
641
- openMenu: () => void;
642
- closeMenu: () => void;
643
- onClear: () => void;
644
- NInput: any;
645
- NPopover: any;
646
- NSpin: any;
647
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "update:show" | "search" | "openMenu" | "closeMenu")[], "search" | "closeMenu" | "clear" | "update:show" | "openMenu", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
528
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "update:show" | "keydown" | "search" | "openMenu" | "closeMenu")[], "search" | "closeMenu" | "clear" | "update:show" | "keydown" | "openMenu", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
648
529
  displayValue: {
649
530
  type: StringConstructor;
650
531
  };
@@ -678,6 +559,7 @@ declare const RecommendSearch: SFCWithInstall<import("vue").DefineComponent<{
678
559
  default: boolean;
679
560
  };
680
561
  }>> & {
562
+ onKeydown?: ((...args: any[]) => any) | undefined;
681
563
  "onUpdate:show"?: ((...args: any[]) => any) | undefined;
682
564
  onClear?: ((...args: any[]) => any) | undefined;
683
565
  onSearch?: ((...args: any[]) => any) | undefined;
@@ -744,9 +626,12 @@ declare const RecommendSearch: SFCWithInstall<import("vue").DefineComponent<{
744
626
  }>;
745
627
  };
746
628
  currentComponent: import("vue").ComputedRef<any>;
629
+ inputRef: import("vue").Ref<any>;
630
+ exposeMethods: Record<any, any>;
631
+ instance: import("vue").ComponentInternalInstance | null;
747
632
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("delete" | "clear" | "update:value" | "search" | "choose" | "openMenu" | "closeMenu")[], "search" | "closeMenu" | "delete" | "clear" | "update:value" | "choose" | "openMenu", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
748
633
  mode: {
749
- type: import("vue").PropType<"input" | "select">;
634
+ type: import("vue").PropType<"select" | "input">;
750
635
  default: string;
751
636
  };
752
637
  value: {
@@ -803,7 +688,7 @@ declare const RecommendSearch: SFCWithInstall<import("vue").DefineComponent<{
803
688
  onCloseMenu?: ((...args: any[]) => any) | undefined;
804
689
  }, {
805
690
  options: import("../../../es/shared/types").AnyObject[];
806
- mode: "input" | "select";
691
+ mode: "select" | "input";
807
692
  valueKey: string;
808
693
  clearable: boolean;
809
694
  editPlaceholder: string;
@@ -3,7 +3,7 @@ import { PropType } from 'vue';
3
3
  import { RecommendItem } from '../../../../es/components/recommend-search/src/types';
4
4
  declare const _default: import("vue").DefineComponent<{
5
5
  mode: {
6
- type: PropType<"input" | "select">;
6
+ type: PropType<"select" | "input">;
7
7
  default: string;
8
8
  };
9
9
  value: {
@@ -53,7 +53,7 @@ declare const _default: import("vue").DefineComponent<{
53
53
  }, {
54
54
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
55
55
  mode: {
56
- type: PropType<"input" | "select">;
56
+ type: PropType<"select" | "input">;
57
57
  default: string;
58
58
  };
59
59
  value: {
@@ -187,7 +187,7 @@ declare const _default: import("vue").DefineComponent<{
187
187
  onOpenMenu: () => void;
188
188
  onCloseMenu: () => void;
189
189
  onChoose: ({ type, value }: {
190
- type?: import("./constant").RecommendType | undefined;
190
+ type?: import("../../../../es/components/recommend-search/src/constant").RecommendType | undefined;
191
191
  value: RecommendItem;
192
192
  }) => void;
193
193
  list: import("vue").Ref<import("@vueuse/core").UseVirtualListItem<AnyObject>[]>;
@@ -226,12 +226,10 @@ declare const _default: import("vue").DefineComponent<{
226
226
  };
227
227
  }, {
228
228
  emits: (event: "delete" | "choose", ...args: any[]) => void;
229
- clickTag: (type: import("./constant").RecommendType, value: RecommendItem) => void;
229
+ clickTag: (type: import("../../../../es/components/recommend-search/src/constant").RecommendType, value: RecommendItem) => void;
230
230
  clickCommonTag: (value: RecommendItem) => void;
231
231
  clickRecentTag: (value: RecommendItem) => void;
232
- deleteTag: (type: import("./constant").RecommendType) => void;
233
- deleteCommonTag: () => void;
234
- deleteRecentTag: () => void;
232
+ deleteTag: () => void;
235
233
  TrashOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
236
234
  NTag: any;
237
235
  NIcon: any;
@@ -297,66 +295,7 @@ declare const _default: import("vue").DefineComponent<{
297
295
  type: BooleanConstructor;
298
296
  default: boolean;
299
297
  };
300
- }, {
301
- props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
302
- displayValue: {
303
- type: StringConstructor;
304
- };
305
- valueFormatter: {
306
- type: PropType<(value: string | number | any[] | undefined) => string>;
307
- };
308
- show: {
309
- type: BooleanConstructor;
310
- };
311
- loading: {
312
- type: BooleanConstructor;
313
- };
314
- placeholder: {
315
- type: StringConstructor;
316
- default: string;
317
- };
318
- clearable: {
319
- type: BooleanConstructor;
320
- default: boolean;
321
- };
322
- inputProps: {
323
- type: ObjectConstructor;
324
- default: () => {};
325
- };
326
- popProps: {
327
- type: ObjectConstructor;
328
- default: () => {};
329
- };
330
- clearPatternOnOpenMenu: {
331
- type: BooleanConstructor;
332
- default: boolean;
333
- };
334
- }>> & {
335
- "onUpdate:show"?: ((...args: any[]) => any) | undefined;
336
- onClear?: ((...args: any[]) => any) | undefined;
337
- onSearch?: ((...args: any[]) => any) | undefined;
338
- onOpenMenu?: ((...args: any[]) => any) | undefined;
339
- onCloseMenu?: ((...args: any[]) => any) | undefined;
340
- }>>;
341
- uuid: string;
342
- emits: (event: "clear" | "update:show" | "search" | "openMenu" | "closeMenu", ...args: any[]) => void;
343
- search: (content?: any) => void;
344
- popoverRef: import("vue").Ref<{
345
- syncPosition: import("../../../../es/shared/types").Func<any[], any>;
346
- } | undefined>;
347
- _show: import("vue").Ref<boolean>;
348
- show: import("vue").WritableComputedRef<boolean>;
349
- inputRef: import("vue").Ref<HTMLElement | undefined>;
350
- patternContent: import("vue").Ref<string>;
351
- displayValueRef: import("vue").WritableComputedRef<string | undefined>;
352
- openMenuAtInput: (evt: PointerEvent) => void;
353
- openMenu: () => void;
354
- closeMenu: () => void;
355
- onClear: () => void;
356
- NInput: any;
357
- NPopover: any;
358
- NSpin: any;
359
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "update:show" | "search" | "openMenu" | "closeMenu")[], "search" | "closeMenu" | "clear" | "update:show" | "openMenu", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
298
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "update:show" | "keydown" | "search" | "openMenu" | "closeMenu")[], "search" | "closeMenu" | "clear" | "update:show" | "keydown" | "openMenu", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
360
299
  displayValue: {
361
300
  type: StringConstructor;
362
301
  };
@@ -390,6 +329,7 @@ declare const _default: import("vue").DefineComponent<{
390
329
  default: boolean;
391
330
  };
392
331
  }>> & {
332
+ onKeydown?: ((...args: any[]) => any) | undefined;
393
333
  "onUpdate:show"?: ((...args: any[]) => any) | undefined;
394
334
  onClear?: ((...args: any[]) => any) | undefined;
395
335
  onSearch?: ((...args: any[]) => any) | undefined;
@@ -530,7 +470,7 @@ declare const _default: import("vue").DefineComponent<{
530
470
  commonOptions: import("vue").ComputedRef<any[]>;
531
471
  recentOptions: import("vue").ComputedRef<any[]>;
532
472
  optionWithoutRecommend: import("vue").ComputedRef<AnyObject[]>;
533
- getDisplayValue: (item: string | number) => string;
473
+ getDisplayValue: (item: import("../../../../es/shared/types").Nullable<string | number>) => string;
534
474
  baseSearchRef: import("vue").Ref<import("../../../../es/components/recommend-search/src/types").BaseSearchExpose | undefined>;
535
475
  valueRef: import("vue").Ref<string | number | null | undefined> | import("vue").WritableComputedRef<string | number | null | undefined>;
536
476
  parsedOptions: import("vue").ComputedRef<any[]>;
@@ -587,66 +527,7 @@ declare const _default: import("vue").DefineComponent<{
587
527
  type: BooleanConstructor;
588
528
  default: boolean;
589
529
  };
590
- }, {
591
- props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
592
- displayValue: {
593
- type: StringConstructor;
594
- };
595
- valueFormatter: {
596
- type: PropType<(value: string | number | any[] | undefined) => string>;
597
- };
598
- show: {
599
- type: BooleanConstructor;
600
- };
601
- loading: {
602
- type: BooleanConstructor;
603
- };
604
- placeholder: {
605
- type: StringConstructor;
606
- default: string;
607
- };
608
- clearable: {
609
- type: BooleanConstructor;
610
- default: boolean;
611
- };
612
- inputProps: {
613
- type: ObjectConstructor;
614
- default: () => {};
615
- };
616
- popProps: {
617
- type: ObjectConstructor;
618
- default: () => {};
619
- };
620
- clearPatternOnOpenMenu: {
621
- type: BooleanConstructor;
622
- default: boolean;
623
- };
624
- }>> & {
625
- "onUpdate:show"?: ((...args: any[]) => any) | undefined;
626
- onClear?: ((...args: any[]) => any) | undefined;
627
- onSearch?: ((...args: any[]) => any) | undefined;
628
- onOpenMenu?: ((...args: any[]) => any) | undefined;
629
- onCloseMenu?: ((...args: any[]) => any) | undefined;
630
- }>>;
631
- uuid: string;
632
- emits: (event: "clear" | "update:show" | "search" | "openMenu" | "closeMenu", ...args: any[]) => void;
633
- search: (content?: any) => void;
634
- popoverRef: import("vue").Ref<{
635
- syncPosition: import("../../../../es/shared/types").Func<any[], any>;
636
- } | undefined>;
637
- _show: import("vue").Ref<boolean>;
638
- show: import("vue").WritableComputedRef<boolean>;
639
- inputRef: import("vue").Ref<HTMLElement | undefined>;
640
- patternContent: import("vue").Ref<string>;
641
- displayValueRef: import("vue").WritableComputedRef<string | undefined>;
642
- openMenuAtInput: (evt: PointerEvent) => void;
643
- openMenu: () => void;
644
- closeMenu: () => void;
645
- onClear: () => void;
646
- NInput: any;
647
- NPopover: any;
648
- NSpin: any;
649
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "update:show" | "search" | "openMenu" | "closeMenu")[], "search" | "closeMenu" | "clear" | "update:show" | "openMenu", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
530
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "update:show" | "keydown" | "search" | "openMenu" | "closeMenu")[], "search" | "closeMenu" | "clear" | "update:show" | "keydown" | "openMenu", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
650
531
  displayValue: {
651
532
  type: StringConstructor;
652
533
  };
@@ -680,6 +561,7 @@ declare const _default: import("vue").DefineComponent<{
680
561
  default: boolean;
681
562
  };
682
563
  }>> & {
564
+ onKeydown?: ((...args: any[]) => any) | undefined;
683
565
  "onUpdate:show"?: ((...args: any[]) => any) | undefined;
684
566
  onClear?: ((...args: any[]) => any) | undefined;
685
567
  onSearch?: ((...args: any[]) => any) | undefined;
@@ -746,9 +628,12 @@ declare const _default: import("vue").DefineComponent<{
746
628
  }>;
747
629
  };
748
630
  currentComponent: import("vue").ComputedRef<any>;
631
+ inputRef: import("vue").Ref<any>;
632
+ exposeMethods: Record<any, any>;
633
+ instance: import("vue").ComponentInternalInstance | null;
749
634
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("delete" | "clear" | "update:value" | "search" | "choose" | "openMenu" | "closeMenu")[], "search" | "closeMenu" | "delete" | "clear" | "update:value" | "choose" | "openMenu", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
750
635
  mode: {
751
- type: PropType<"input" | "select">;
636
+ type: PropType<"select" | "input">;
752
637
  default: string;
753
638
  };
754
639
  value: {
@@ -805,7 +690,7 @@ declare const _default: import("vue").DefineComponent<{
805
690
  onCloseMenu?: ((...args: any[]) => any) | undefined;
806
691
  }, {
807
692
  options: AnyObject[];
808
- mode: "input" | "select";
693
+ mode: "select" | "input";
809
694
  valueKey: string;
810
695
  clearable: boolean;
811
696
  editPlaceholder: string;
@@ -1 +1 @@
1
- import{defineComponent as e,computed as t,openBlock as o,createBlock as l,resolveDynamicComponent as p,unref as r,mergeProps as n,isRef as a,withCtx as u,renderSlot as m}from"vue";import{useVModel as c}from"@vueuse/core";import i from"./components/RecommendInput.vue.js";import s from"./components/RecommendSelect.vue.js";import d from"../../../_virtual/plugin-vue_export-helper.js";var y=d(e({__name:"RecommendSearch",props:{mode:{type:String,default:"input"},value:{type:[String,Number]},labelKey:{type:String,default:"label"},valueKey:{type:String,default:"value"},placeholder:{type:String},editPlaceholder:{type:String,default:"请输入关键字进行搜索"},clearable:{type:Boolean,default:!0},options:{type:Array,default:()=>[]},commonList:{type:Array,default:()=>[]},recentList:{type:Array,default:()=>[]},recommendDeletable:{type:Boolean,default:!0},inputProps:{type:Object},popProps:{type:Object}},emits:["update:value","search","delete","choose","clear","openMenu","closeMenu"],setup(e,{emit:d}){const y=e,v=c(y,"value",d),f={input:i,select:s},h=t((()=>f[y.mode]));return(e,t)=>(o(),l(p(r(h)),n(e.$props,{value:r(v),"onUpdate:value":t[0]||(t[0]=e=>a(v)?v.value=e:null),onSearch:t[1]||(t[1]=t=>e.$emit("search",t)),onChoose:t[2]||(t[2]=t=>e.$emit("choose",t)),onOpenMenu:t[3]||(t[3]=t=>e.$emit("openMenu",t)),onCloseMenu:t[4]||(t[4]=t=>e.$emit("closeMenu",t)),onDelete:t[5]||(t[5]=t=>e.$emit("delete",t))}),{empty:u((()=>[m(e.$slots,"empty")])),_:3},16,["value"]))}}),[["__file","RecommendSearch.vue"]]);export{y as default};
1
+ import{defineComponent as e,computed as t,provide as o,useSlots as n,ref as a,getCurrentInstance as p,watch as r,openBlock as l,createBlock as c,resolveDynamicComponent as u,unref as s,mergeProps as m,isRef as i,withCtx as d,renderSlot as f}from"vue";import{useVModel as y}from"@vueuse/core";import{isObject as v}from"lodash-es";import{InjectionRecommendSearchRootSlots as h,InjectionRecommendSearchRef as g}from"./constant/index.js";import b from"./components/RecommendInput.vue.js";import S from"./components/RecommendSelect.vue.js";import j from"../../../_virtual/plugin-vue_export-helper.js";var x=j(e({__name:"RecommendSearch",props:{mode:{type:String,default:"input"},value:{type:[String,Number]},labelKey:{type:String,default:"label"},valueKey:{type:String,default:"value"},placeholder:{type:String},editPlaceholder:{type:String,default:"请输入关键字进行搜索"},clearable:{type:Boolean,default:!0},options:{type:Array,default:()=>[]},commonList:{type:Array,default:()=>[]},recentList:{type:Array,default:()=>[]},recommendDeletable:{type:Boolean,default:!0},inputProps:{type:Object},popProps:{type:Object}},emits:["update:value","search","delete","choose","clear","openMenu","closeMenu"],setup(e,{expose:j,emit:x}){const C=e,$=y(C,"value",x),_={input:b,select:S},M=t((()=>_[C.mode]));o(h,n());const O=a();o(g,O);const R={},P=p();return r(O,(e=>{if(Object.keys(R).forEach((e=>Reflect.deleteProperty(R,e))),v(e))try{if(P&&P.appContext&&v(P.appContext.config)){const t=P.appContext.config.warnHandler;P.appContext.config.warnHandler=()=>1,Object.assign(R,e),P.appContext.config.warnHandler=t}else Object.assign(R,e)}catch(e){}})),j(R),(e,t)=>(l(),c(u(s(M)),m(e.$props,{value:s($),"onUpdate:value":t[0]||(t[0]=e=>i($)?$.value=e:null),onSearch:t[1]||(t[1]=t=>e.$emit("search",t)),onChoose:t[2]||(t[2]=t=>e.$emit("choose",t)),onOpenMenu:t[3]||(t[3]=t=>e.$emit("openMenu",t)),onCloseMenu:t[4]||(t[4]=t=>e.$emit("closeMenu",t)),onDelete:t[5]||(t[5]=t=>e.$emit("delete",t))}),{empty:d((()=>[f(e.$slots,"empty")])),_:3},16,["value"]))}}),[["__file","RecommendSearch.vue"]]);export{x as default};
@@ -0,0 +1,84 @@
1
+ import { PropType } from 'vue';
2
+ declare const _default: import("vue").DefineComponent<{
3
+ displayValue: {
4
+ type: StringConstructor;
5
+ };
6
+ valueFormatter: {
7
+ type: PropType<(value: undefined | number | string | Array<any>) => string>;
8
+ };
9
+ show: {
10
+ type: BooleanConstructor;
11
+ };
12
+ loading: {
13
+ type: BooleanConstructor;
14
+ };
15
+ placeholder: {
16
+ type: StringConstructor;
17
+ default: string;
18
+ };
19
+ clearable: {
20
+ type: BooleanConstructor;
21
+ default: boolean;
22
+ };
23
+ inputProps: {
24
+ type: ObjectConstructor;
25
+ default: () => {};
26
+ };
27
+ popProps: {
28
+ type: ObjectConstructor;
29
+ default: () => {};
30
+ };
31
+ clearPatternOnOpenMenu: {
32
+ type: BooleanConstructor;
33
+ default: boolean;
34
+ };
35
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "update:show" | "keydown" | "search" | "openMenu" | "closeMenu")[], "search" | "closeMenu" | "clear" | "update:show" | "keydown" | "openMenu", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
36
+ displayValue: {
37
+ type: StringConstructor;
38
+ };
39
+ valueFormatter: {
40
+ type: PropType<(value: undefined | number | string | Array<any>) => string>;
41
+ };
42
+ show: {
43
+ type: BooleanConstructor;
44
+ };
45
+ loading: {
46
+ type: BooleanConstructor;
47
+ };
48
+ placeholder: {
49
+ type: StringConstructor;
50
+ default: string;
51
+ };
52
+ clearable: {
53
+ type: BooleanConstructor;
54
+ default: boolean;
55
+ };
56
+ inputProps: {
57
+ type: ObjectConstructor;
58
+ default: () => {};
59
+ };
60
+ popProps: {
61
+ type: ObjectConstructor;
62
+ default: () => {};
63
+ };
64
+ clearPatternOnOpenMenu: {
65
+ type: BooleanConstructor;
66
+ default: boolean;
67
+ };
68
+ }>> & {
69
+ onKeydown?: ((...args: any[]) => any) | undefined;
70
+ "onUpdate:show"?: ((...args: any[]) => any) | undefined;
71
+ onClear?: ((...args: any[]) => any) | undefined;
72
+ onSearch?: ((...args: any[]) => any) | undefined;
73
+ onOpenMenu?: ((...args: any[]) => any) | undefined;
74
+ onCloseMenu?: ((...args: any[]) => any) | undefined;
75
+ }, {
76
+ loading: boolean;
77
+ show: boolean;
78
+ placeholder: string;
79
+ clearable: boolean;
80
+ inputProps: Record<string, any>;
81
+ popProps: Record<string, any>;
82
+ clearPatternOnOpenMenu: boolean;
83
+ }>;
84
+ export default _default;
@@ -0,0 +1 @@
1
+ import{defineComponent as e,inject as a,ref as t,computed as o,createVNode as l,mergeProps as n}from"vue";import{isFunction as r}from"lodash-es";import{uuidGenerator as u}from"../../../../shared/utils/index.js";import{useDebounceFn as s,onClickOutside as p}from"@vueuse/core";import{NPopover as i,NInput as c,NSpin as d}from"naive-ui";import{InjectionRecommendSearchRootSlots as v,InjectionRecommendSearchRef as m}from"../constant/index.js";var f=e({props:{displayValue:{type:String},valueFormatter:{type:Function},show:{type:Boolean},loading:{type:Boolean},placeholder:{type:String,default:"请输入"},clearable:{type:Boolean,default:!0},inputProps:{type:Object,default:()=>({})},popProps:{type:Object,default:()=>({})},clearPatternOnOpenMenu:{type:Boolean,default:!0}},emits:["update:show","keydown","clear","search","openMenu","closeMenu"],setup(e,{expose:f,emit:h,slots:g}){const y=a(v,{}),w=u(),b=s(((e="")=>{h("search",e)}),300),M=t(e.show),P=o({get:()=>M.value||e.show,set(e){h("update:show",e),M.value=e}}),O=a(m,t()),x=t(""),j=o({get:()=>P.value?x.value:e.displayValue,set(e){x.value=e||"",b(e)}});function k(e){var a;"INPUT"===(null==(a=e.target)?void 0:a.tagName)&&B()}function B(){P.value||(P.value=!0,h("openMenu"),e.clearPatternOnOpenMenu&&(x.value=""))}function F(){var e;P.value=!1,null==(e=O.value)||e.blur(),h("closeMenu")}function U(){h("clear")}return p(O,(e=>{var a;if(!P.value)return;const t=e;if(!t.target)return F();!function(e){let a=!1,t=e;for(;t;){if(t.id===w){a=!0;break}t=t.parentElement}return a}(t.target)?F():null==(a=O.value)||a.focus()})),f({setPattern(e){x.value=e},closeMenu:F,openMenu:B}),()=>l(i,n({trigger:"manual",class:"recommend-search",placement:"bottom-start",show:P.value,"onUpdate:show":e=>P.value=e,"show-arrow":!1,width:"trigger"},e.popProps),{trigger:()=>l(c,n(e.inputProps,{placeholder:e.placeholder,clearable:e.clearable,onClear:U,onFocus:k,onClick:k,onKeydown:e=>h("keydown",e),ref:O,value:j.value,"onUpdate:value":e=>j.value=e}),y),default:()=>l(d,{show:e.loading},{default:()=>[l("section",{id:w,class:"base-search__menu",style:"min-height: 100px"},[r(null==g?void 0:g.menu)?g.menu():null])]})})}});export{f as default};
@@ -119,9 +119,7 @@ declare const _default: import("vue").DefineComponent<{
119
119
  clickTag: (type: RecommendType, value: RecommendItem) => void;
120
120
  clickCommonTag: (value: RecommendItem) => void;
121
121
  clickRecentTag: (value: RecommendItem) => void;
122
- deleteTag: (type: RecommendType) => void;
123
- deleteCommonTag: () => void;
124
- deleteRecentTag: () => void;
122
+ deleteTag: () => void;
125
123
  TrashOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
126
124
  NTag: any;
127
125
  NIcon: any;
@@ -187,66 +185,7 @@ declare const _default: import("vue").DefineComponent<{
187
185
  type: BooleanConstructor;
188
186
  default: boolean;
189
187
  };
190
- }, {
191
- props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
192
- displayValue: {
193
- type: StringConstructor;
194
- };
195
- valueFormatter: {
196
- type: PropType<(value: string | number | any[] | undefined) => string>;
197
- };
198
- show: {
199
- type: BooleanConstructor;
200
- };
201
- loading: {
202
- type: BooleanConstructor;
203
- };
204
- placeholder: {
205
- type: StringConstructor;
206
- default: string;
207
- };
208
- clearable: {
209
- type: BooleanConstructor;
210
- default: boolean;
211
- };
212
- inputProps: {
213
- type: ObjectConstructor;
214
- default: () => {};
215
- };
216
- popProps: {
217
- type: ObjectConstructor;
218
- default: () => {};
219
- };
220
- clearPatternOnOpenMenu: {
221
- type: BooleanConstructor;
222
- default: boolean;
223
- };
224
- }>> & {
225
- "onUpdate:show"?: ((...args: any[]) => any) | undefined;
226
- onClear?: ((...args: any[]) => any) | undefined;
227
- onSearch?: ((...args: any[]) => any) | undefined;
228
- onOpenMenu?: ((...args: any[]) => any) | undefined;
229
- onCloseMenu?: ((...args: any[]) => any) | undefined;
230
- }>>;
231
- uuid: string;
232
- emits: (event: "clear" | "update:show" | "search" | "openMenu" | "closeMenu", ...args: any[]) => void;
233
- search: (content?: any) => void;
234
- popoverRef: import("vue").Ref<{
235
- syncPosition: import("../../../../../es/shared/types").Func<any[], any>;
236
- } | undefined>;
237
- _show: import("vue").Ref<boolean>;
238
- show: import("vue").WritableComputedRef<boolean>;
239
- inputRef: import("vue").Ref<HTMLElement | undefined>;
240
- patternContent: import("vue").Ref<string>;
241
- displayValueRef: import("vue").WritableComputedRef<string | undefined>;
242
- openMenuAtInput: (evt: PointerEvent) => void;
243
- openMenu: () => void;
244
- closeMenu: () => void;
245
- onClear: () => void;
246
- NInput: any;
247
- NPopover: any;
248
- NSpin: any;
249
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "update:show" | "search" | "openMenu" | "closeMenu")[], "search" | "closeMenu" | "clear" | "update:show" | "openMenu", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
188
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "update:show" | "keydown" | "search" | "openMenu" | "closeMenu")[], "search" | "closeMenu" | "clear" | "update:show" | "keydown" | "openMenu", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
250
189
  displayValue: {
251
190
  type: StringConstructor;
252
191
  };
@@ -280,6 +219,7 @@ declare const _default: import("vue").DefineComponent<{
280
219
  default: boolean;
281
220
  };
282
221
  }>> & {
222
+ onKeydown?: ((...args: any[]) => any) | undefined;
283
223
  "onUpdate:show"?: ((...args: any[]) => any) | undefined;
284
224
  onClear?: ((...args: any[]) => any) | undefined;
285
225
  onSearch?: ((...args: any[]) => any) | undefined;
@@ -1 +1 @@
1
- import{defineComponent as e,ref as t,watch as o,onMounted as n,computed as l,openBlock as r,createElementBlock as a,createVNode as c,mergeProps as s,unref as i,withCtx as m,Fragment as u,renderSlot as p,createCommentVNode as d,createElementVNode as v,renderList as y,toDisplayString as h}from"vue";import{useVModel as f,useVirtualList as _}from"@vueuse/core";import b from"./RecommendMenu.vue.js";import j from"./BaseSearch.vue.js";import k from"../../../../_virtual/plugin-vue_export-helper.js";const g={class:"recommend-search"},L=v("section",{class:"recommend-search__empty"},"暂无数据",-1),M=["onClick"],O=["title"],w=v("section",{class:"recommend-search__empty"},"暂无数据",-1);var A=k(e({__name:"RecommendInput",props:{value:{type:String},options:{type:Array,default:()=>[]},placeholder:{type:String,default:"请输入"},clearable:{type:Boolean,default:!0},commonList:{type:Array,default:()=>[]},recentList:{type:Array,default:()=>[]},recommendDeletable:{type:Boolean,default:!0}},emits:["update:value","search","delete","choose","clear","openMenu","closeMenu"],setup(e,{emit:k}){const A=e,C=t();function S(e=""){var t;null==(t=C.value)||t.setPattern(e)}const x=f(A,"value",k);o(x,S),n((()=>S(x.value)));const D=l((()=>x.value?A.options:A.options.filter((e=>{return A.commonList.every(t)&&A.recentList.every(t);function t(t){return t.itemObj!==e.itemObj}}))));function R(e){x.value=e,k("search",e)}function $(){k("openMenu")}function B(){k("closeMenu")}function P({type:e,value:t}){var o;x.value=t.itemObj,null==(o=C.value)||o.closeMenu(),k("choose",{type:e,value:t.itemObj})}const{list:I,wrapperProps:E,containerProps:H}=_(D,{itemHeight:32,overscan:3});function K(e){["ArrowUp","ArrowDown","Enter"].includes(e.key)&&console.log(e)}return(t,o)=>(r(),a("section",g,[c(j,s({ref_key:"baseSearchRef",ref:C,"display-value":i(x),"clear-pattern-on-open-menu":!1,placeholder:e.placeholder,clearable:e.clearable,onKeydown:K,onSearch:R,onOpenMenu:$,onCloseMenu:B},t.$attrs),{menu:m((()=>[i(x)?(r(),a(u,{key:1},[i(D).length?(r(),a("section",s({key:0,class:"recommend-search__optionContainer"},i(H),{style:{height:"256px"}}),[v("section",s({class:"recommend-search__optionList"},i(E)),[(r(!0),a(u,null,y(i(I),(e=>(r(),a("div",{onClick:t=>P({value:e.data}),key:e.data.itemObj,class:"recommend-search__option"},[v("div",{class:"recommend-search__optionText",title:e.data.itemObj},h(e.data.itemObj),9,O)],8,M)))),128))],16)],16)):p(t.$slots,"empty",{key:1},(()=>[w]))],64)):(r(),a(u,{key:0},[c(b,{"common-list":e.commonList,"recent-list":e.recentList,deletable:e.recommendDeletable,onDelete:o[0]||(o[0]=e=>t.$emit("delete",e)),onChoose:P},null,8,["common-list","recent-list","deletable"]),e.commonList.length||e.recentList.length?d("v-if",!0):p(t.$slots,"empty",{key:0},(()=>[L]))],64))])),_:3},16,["display-value","placeholder","clearable"])]))}}),[["__file","RecommendInput.vue"]]);export{A as default};
1
+ import{defineComponent as e,ref as t,watch as o,onMounted as n,computed as l,openBlock as r,createElementBlock as a,createVNode as c,unref as s,mergeProps as i,withCtx as m,Fragment as u,renderSlot as p,createCommentVNode as d,createElementVNode as y,renderList as v,toDisplayString as h}from"vue";import{useVModel as f,useVirtualList as _}from"@vueuse/core";import b from"./RecommendMenu.vue.js";import j from"./BaseSearch.js";import k from"../../../../_virtual/plugin-vue_export-helper.js";const g={class:"recommend-search"},L=y("section",{class:"recommend-search__empty"},"暂无数据",-1),M=["onClick"],O=["title"],w=y("section",{class:"recommend-search__empty"},"暂无数据",-1);var A=k(e({__name:"RecommendInput",props:{value:{type:String},options:{type:Array,default:()=>[]},placeholder:{type:String,default:"请输入"},clearable:{type:Boolean,default:!0},commonList:{type:Array,default:()=>[]},recentList:{type:Array,default:()=>[]},recommendDeletable:{type:Boolean,default:!0}},emits:["update:value","search","delete","choose","clear","openMenu","closeMenu"],setup(e,{emit:k}){const A=e,C=t();function S(e=""){var t;null==(t=C.value)||t.setPattern(e)}const x=f(A,"value",k);o(x,S),n((()=>S(x.value)));const D=l((()=>x.value?A.options:A.options.filter((e=>{return A.commonList.every(t)&&A.recentList.every(t);function t(t){return t.itemObj!==e.itemObj}}))));function R(e){x.value=e,k("search",e)}function $(){k("openMenu")}function B(){k("closeMenu")}function P({type:e,value:t}){var o;x.value=t.itemObj,null==(o=C.value)||o.closeMenu(),k("choose",{type:e,value:t.itemObj})}const{list:I,wrapperProps:E,containerProps:H}=_(D,{itemHeight:32,overscan:3});function K(e){["ArrowUp","ArrowDown","Enter"].includes(e.key)&&console.log(e)}return(t,o)=>(r(),a("section",g,[c(s(j),i({ref_key:"baseSearchRef",ref:C,"display-value":s(x),"clear-pattern-on-open-menu":!1,placeholder:e.placeholder,clearable:e.clearable,onKeydown:K,onSearch:R,onOpenMenu:$,onCloseMenu:B},t.$attrs),{menu:m((()=>[s(x)?(r(),a(u,{key:1},[s(D).length?(r(),a("section",i({key:0,class:"recommend-search__optionContainer"},s(H),{style:{height:"256px"}}),[y("section",i({class:"recommend-search__optionList"},s(E)),[(r(!0),a(u,null,v(s(I),(e=>(r(),a("div",{onClick:t=>P({value:e.data}),key:e.data.itemObj,class:"recommend-search__option"},[y("div",{class:"recommend-search__optionText",title:e.data.itemObj},h(e.data.itemObj),9,O)],8,M)))),128))],16)],16)):p(t.$slots,"empty",{key:1},(()=>[w]))],64)):(r(),a(u,{key:0},[c(b,{"common-list":e.commonList,"recent-list":e.recentList,deletable:e.recommendDeletable,onDelete:o[0]||(o[0]=e=>t.$emit("delete",e)),onChoose:P},null,8,["common-list","recent-list","deletable"]),e.commonList.length||e.recentList.length?d("v-if",!0):p(t.$slots,"empty",{key:0},(()=>[L]))],64))])),_:3},16,["display-value","placeholder","clearable"])]))}}),[["__file","RecommendInput.vue"]]);export{A as default};