bkui-vue 2.0.1-beta.7 → 2.0.1-beta.70

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 (438) hide show
  1. package/README.md +15 -0
  2. package/dist/index.cjs.js +167 -167
  3. package/dist/index.esm.js +32248 -31698
  4. package/dist/index.umd.js +167 -167
  5. package/dist/style.css +1 -1
  6. package/dist/style.variable.css +1 -1
  7. package/lib/affix/affix.css +130 -0
  8. package/lib/affix/affix.variable.css +262 -1
  9. package/lib/affix/index.js +7 -7
  10. package/lib/alert/alert.css +133 -3
  11. package/lib/alert/alert.d.ts +5 -12
  12. package/lib/alert/alert.variable.css +262 -1
  13. package/lib/alert/index.d.ts +11 -26
  14. package/lib/alert/index.js +6 -6
  15. package/lib/backtop/backtop.css +133 -3
  16. package/lib/backtop/backtop.d.ts +1 -1
  17. package/lib/backtop/backtop.variable.css +395 -4
  18. package/lib/backtop/index.d.ts +3 -3
  19. package/lib/backtop/index.js +6 -6
  20. package/lib/badge/badge.css +156 -26
  21. package/lib/badge/badge.variable.css +262 -1
  22. package/lib/badge/index.js +1 -1
  23. package/lib/breadcrumb/breadcrumb.css +135 -5
  24. package/lib/breadcrumb/breadcrumb.variable.css +397 -6
  25. package/lib/button/button.css +273 -143
  26. package/lib/button/button.d.ts +7 -7
  27. package/lib/button/button.variable.css +262 -1
  28. package/lib/button/index.d.ts +8 -8
  29. package/lib/button/index.js +6 -7
  30. package/lib/card/card.css +134 -4
  31. package/lib/card/card.variable.css +396 -5
  32. package/lib/cascader/cascader-panel.d.ts +1 -1
  33. package/lib/cascader/cascader.css +153 -23
  34. package/lib/cascader/cascader.d.ts +1 -1
  35. package/lib/cascader/cascader.less +1 -1
  36. package/lib/cascader/cascader.variable.css +415 -24
  37. package/lib/cascader/index.js +39 -38
  38. package/lib/cascader/interface.d.ts +1 -1
  39. package/lib/checkbox/checkbox-group.d.ts +0 -16
  40. package/lib/checkbox/checkbox.css +147 -9
  41. package/lib/checkbox/checkbox.d.ts +39 -7
  42. package/lib/checkbox/checkbox.less +12 -0
  43. package/lib/checkbox/checkbox.variable.css +270 -1
  44. package/lib/checkbox/index.d.ts +57 -22
  45. package/lib/checkbox/index.js +21 -8
  46. package/lib/checkbox/type.d.ts +1 -1
  47. package/lib/code-diff/code-diff.css +130 -0
  48. package/lib/code-diff/code-diff.variable.css +262 -1
  49. package/lib/code-diff/index.js +8 -8
  50. package/lib/collapse/collapse.css +131 -1
  51. package/lib/collapse/collapse.variable.css +262 -1
  52. package/lib/collapse/index.js +2 -2
  53. package/lib/collapse/utils.d.ts +2 -2
  54. package/lib/collapse-transition/collapse-transition.css +130 -0
  55. package/lib/collapse-transition/collapse-transition.variable.css +262 -1
  56. package/lib/color-picker/color-picker.css +130 -0
  57. package/lib/color-picker/color-picker.d.ts +16 -0
  58. package/lib/color-picker/color-picker.variable.css +262 -1
  59. package/lib/color-picker/index.d.ts +23 -0
  60. package/lib/color-picker/index.js +52 -45
  61. package/lib/components.d.ts +32 -32
  62. package/lib/components.js +31 -31
  63. package/lib/config-provider/config-provider.css +130 -0
  64. package/lib/config-provider/config-provider.variable.css +262 -1
  65. package/lib/config-provider/index.d.ts +1 -1
  66. package/lib/container/container.css +130 -0
  67. package/lib/container/container.variable.css +392 -1
  68. package/lib/container/index.js +6 -7
  69. package/lib/date-picker/base/date-table.d.ts +1 -1
  70. package/lib/date-picker/base/month-table.d.ts +1 -1
  71. package/lib/date-picker/base/picker-dropdown.d.ts +1 -1
  72. package/lib/date-picker/base/year-table.d.ts +1 -1
  73. package/lib/date-picker/date-picker.css +147 -17
  74. package/lib/date-picker/date-picker.d.ts +0 -10
  75. package/lib/date-picker/date-picker.variable.css +262 -1
  76. package/lib/date-picker/index.d.ts +0 -22
  77. package/lib/date-picker/index.js +256 -219
  78. package/lib/date-picker/interface.d.ts +9 -9
  79. package/lib/date-picker/panel/date-range.d.ts +5 -5
  80. package/lib/date-picker/panel/date.d.ts +1 -1
  81. package/lib/date-picker/panel/time-range.d.ts +1 -10
  82. package/lib/date-picker/panel/time.d.ts +2 -11
  83. package/lib/date-picker/props.d.ts +1 -5
  84. package/lib/date-picker/time-picker.d.ts +0 -9
  85. package/lib/date-picker/utils.d.ts +1 -1
  86. package/lib/dialog/dialog.css +138 -8
  87. package/lib/dialog/dialog.d.ts +42 -26
  88. package/lib/dialog/dialog.variable.css +400 -9
  89. package/lib/dialog/index.d.ts +90 -56
  90. package/lib/dialog/index.js +25 -23
  91. package/lib/dialog/props.d.ts +18 -11
  92. package/lib/directives/index.d.ts +3 -3
  93. package/lib/directives/index.js +178 -172
  94. package/lib/directives/tooltips.d.ts +1 -1
  95. package/lib/dist.index.js +2 -4
  96. package/lib/divider/divider.css +133 -3
  97. package/lib/divider/divider.d.ts +5 -5
  98. package/lib/divider/divider.variable.css +262 -1
  99. package/lib/divider/index.d.ts +11 -11
  100. package/lib/divider/index.js +2 -2
  101. package/lib/divider/props.d.ts +2 -2
  102. package/lib/dropdown/dropdown-item.d.ts +1 -1
  103. package/lib/dropdown/dropdown-menu.d.ts +1 -1
  104. package/lib/dropdown/dropdown.css +130 -0
  105. package/lib/dropdown/dropdown.d.ts +5 -5
  106. package/lib/dropdown/dropdown.variable.css +392 -1
  107. package/lib/dropdown/index.d.ts +13 -13
  108. package/lib/dropdown/index.js +7 -7
  109. package/lib/exception/exception.css +130 -0
  110. package/lib/exception/exception.d.ts +9 -9
  111. package/lib/exception/exception.variable.css +262 -1
  112. package/lib/exception/index.d.ts +11 -11
  113. package/lib/exception/index.js +10 -10
  114. package/lib/exception/typings/index.d.ts +1 -1
  115. package/lib/fixed-navbar/fixed-navbar.css +134 -4
  116. package/lib/fixed-navbar/fixed-navbar.variable.css +262 -1
  117. package/lib/fixed-navbar/index.js +2 -2
  118. package/lib/form/form-item.d.ts +6 -18
  119. package/lib/form/form.css +130 -0
  120. package/lib/form/form.d.ts +2 -2
  121. package/lib/form/form.variable.css +262 -1
  122. package/lib/form/index.d.ts +6 -13
  123. package/lib/form/index.js +22 -21
  124. package/lib/form/type.d.ts +2 -2
  125. package/lib/icon/index.d.ts +11 -11
  126. package/lib/icon/index.js +11 -11
  127. package/lib/image/image-viewer.css +130 -0
  128. package/lib/image/image-viewer.d.ts +1 -1
  129. package/lib/image/image-viewer.variable.css +262 -1
  130. package/lib/image/image.css +130 -0
  131. package/lib/image/image.variable.css +392 -1
  132. package/lib/image/index.js +20 -21
  133. package/lib/index.d.ts +9 -3
  134. package/lib/index.js +5 -29
  135. package/lib/info-box/index.js +16 -18
  136. package/lib/info-box/info-box.css +134 -4
  137. package/lib/info-box/info-box.d.ts +15 -15
  138. package/lib/info-box/info-box.variable.css +262 -1
  139. package/lib/input/index.d.ts +15 -15
  140. package/lib/input/index.js +63 -516
  141. package/lib/input/input.css +225 -73
  142. package/lib/input/input.d.ts +15 -15
  143. package/lib/input/input.less +30 -1
  144. package/lib/input/input.variable.css +487 -74
  145. package/lib/link/index.d.ts +11 -11
  146. package/lib/link/index.js +3 -3
  147. package/lib/link/link.css +146 -16
  148. package/lib/link/link.d.ts +5 -5
  149. package/lib/link/link.variable.css +262 -1
  150. package/lib/loading/index.d.ts +4 -4
  151. package/lib/loading/index.js +6 -6
  152. package/lib/loading/loading.css +146 -16
  153. package/lib/loading/loading.d.ts +6 -6
  154. package/lib/loading/loading.variable.css +408 -17
  155. package/lib/locale/index.d.ts +1 -1
  156. package/lib/menu/index.js +0 -1
  157. package/lib/menu/menu.css +148 -18
  158. package/lib/menu/menu.variable.css +410 -19
  159. package/lib/menu/submenu.css +130 -0
  160. package/lib/menu/submenu.variable.css +262 -1
  161. package/lib/menu/utils.d.ts +3 -3
  162. package/lib/message/index.js +18 -18
  163. package/lib/message/message.css +153 -22
  164. package/lib/message/message.less +3 -2
  165. package/lib/message/message.variable.css +264 -2
  166. package/lib/message/messageConstructor.d.ts +11 -11
  167. package/lib/modal/index.d.ts +49 -8
  168. package/lib/modal/index.js +95 -41
  169. package/lib/modal/modal.css +134 -4
  170. package/lib/modal/modal.d.ts +19 -3
  171. package/lib/modal/modal.variable.css +396 -5
  172. package/lib/modal/props.mixin.d.ts +8 -1
  173. package/lib/navigation/index.js +20 -20
  174. package/lib/navigation/navigation.css +132 -2
  175. package/lib/navigation/navigation.d.ts +1 -1
  176. package/lib/navigation/navigation.variable.css +262 -1
  177. package/lib/notify/index.js +4 -4
  178. package/lib/notify/notify.css +137 -7
  179. package/lib/notify/notify.variable.css +262 -1
  180. package/lib/overflow-title/components/overflow-title.d.ts +9 -16
  181. package/lib/overflow-title/index.d.ts +19 -34
  182. package/lib/overflow-title/index.js +61 -12
  183. package/lib/overflow-title/props.d.ts +18 -21
  184. package/lib/pagination/index.d.ts +0 -19
  185. package/lib/pagination/index.js +61 -23
  186. package/lib/pagination/pagination.css +139 -9
  187. package/lib/pagination/pagination.d.ts +0 -13
  188. package/lib/pagination/pagination.less +14 -13
  189. package/lib/pagination/pagination.variable.css +270 -9
  190. package/lib/pagination/type.d.ts +1 -1
  191. package/lib/pagination/use-limit.d.ts +1 -1
  192. package/lib/pagination/use-total.d.ts +1 -1
  193. package/lib/plugin-popover/index.js +20 -21
  194. package/lib/pop-confirm/index.d.ts +11 -43
  195. package/lib/pop-confirm/index.js +27 -28
  196. package/lib/pop-confirm/pop-confirm.css +133 -1
  197. package/lib/pop-confirm/pop-confirm.d.ts +5 -19
  198. package/lib/pop-confirm/pop-confirm.less +3 -1
  199. package/lib/pop-confirm/pop-confirm.variable.css +265 -2
  200. package/lib/pop-confirm/props.d.ts +5 -11
  201. package/lib/popover/const.d.ts +3 -3
  202. package/lib/popover/index.d.ts +19 -19
  203. package/lib/popover/index.js +20 -21
  204. package/lib/popover/plugin-popover.d.ts +1 -1
  205. package/lib/popover/popover.css +130 -0
  206. package/lib/popover/popover.d.ts +7 -7
  207. package/lib/popover/popover.variable.css +262 -1
  208. package/lib/popover/props.d.ts +4 -4
  209. package/lib/preset.d.ts +0 -1
  210. package/lib/preset.js +0 -1
  211. package/lib/process/index.js +3 -3
  212. package/lib/process/process.css +143 -13
  213. package/lib/process/process.variable.css +262 -1
  214. package/lib/progress/index.d.ts +11 -11
  215. package/lib/progress/index.js +10 -11
  216. package/lib/progress/progress.css +134 -4
  217. package/lib/progress/progress.d.ts +7 -7
  218. package/lib/progress/progress.variable.css +396 -5
  219. package/lib/radio/index.d.ts +21 -21
  220. package/lib/radio/index.js +28 -17
  221. package/lib/radio/radio-button.d.ts +7 -7
  222. package/lib/radio/radio-group.d.ts +7 -7
  223. package/lib/radio/radio.css +172 -42
  224. package/lib/radio/radio.d.ts +7 -7
  225. package/lib/radio/radio.variable.css +262 -1
  226. package/lib/radio/type.d.ts +1 -1
  227. package/lib/rate/index.js +8 -8
  228. package/lib/rate/rate.css +130 -0
  229. package/lib/rate/rate.variable.css +262 -1
  230. package/lib/resize-layout/index.d.ts +34 -11
  231. package/lib/resize-layout/index.js +33 -14
  232. package/lib/resize-layout/resize-layout.css +130 -0
  233. package/lib/resize-layout/resize-layout.d.ts +16 -5
  234. package/lib/resize-layout/resize-layout.variable.css +262 -1
  235. package/lib/scrollbar/css/scrollbar.css +239 -0
  236. package/lib/scrollbar/css/scrollbar.less +139 -0
  237. package/lib/scrollbar/css/scrollbar.variable.css +499 -0
  238. package/lib/scrollbar/handlers/click-rail.d.ts +2 -0
  239. package/lib/scrollbar/handlers/drag-thumb.d.ts +1 -0
  240. package/lib/scrollbar/handlers/keyboard.d.ts +2 -0
  241. package/lib/scrollbar/handlers/mouse-wheel.d.ts +2 -0
  242. package/lib/scrollbar/handlers/touch.d.ts +4 -0
  243. package/lib/scrollbar/helper/class-names.d.ts +21 -0
  244. package/lib/scrollbar/helper/css.d.ts +3 -0
  245. package/lib/scrollbar/helper/dom.d.ts +4 -0
  246. package/lib/scrollbar/helper/event-manager.d.ts +20 -0
  247. package/lib/scrollbar/helper/util.d.ts +11 -0
  248. package/lib/scrollbar/index.d.ts +133 -13
  249. package/lib/scrollbar/index.js +1332 -18434
  250. package/lib/scrollbar/process-scroll-diff.d.ts +1 -0
  251. package/lib/scrollbar/update-geometry.d.ts +8 -0
  252. package/lib/search-select/index.d.ts +82 -72
  253. package/lib/search-select/index.js +181 -132
  254. package/lib/search-select/input.d.ts +14 -4
  255. package/lib/search-select/menu.d.ts +13 -1
  256. package/lib/search-select/search-select.css +163 -34
  257. package/lib/search-select/search-select.d.ts +29 -39
  258. package/lib/search-select/search-select.less +1 -1
  259. package/lib/search-select/search-select.variable.css +425 -35
  260. package/lib/search-select/selected.d.ts +35 -10
  261. package/lib/search-select/utils.d.ts +6 -6
  262. package/lib/select/common.d.ts +4 -4
  263. package/lib/select/index.d.ts +126 -74
  264. package/lib/select/index.js +283 -191
  265. package/lib/select/option.d.ts +5 -6
  266. package/lib/select/select.css +175 -43
  267. package/lib/select/select.d.ts +49 -27
  268. package/lib/select/select.less +7 -4
  269. package/lib/select/select.variable.css +437 -44
  270. package/lib/select/selectTagInput.d.ts +7 -6
  271. package/lib/select/type.d.ts +10 -11
  272. package/lib/shared/frame-throttle.d.ts +15 -0
  273. package/lib/shared/index.d.ts +2 -1
  274. package/lib/shared/index.js +110 -47
  275. package/lib/shared/popover.d.ts +3 -3
  276. package/lib/shared/token.d.ts +1 -1
  277. package/lib/shared/vue-types.d.ts +46 -46
  278. package/lib/shared/z-index-manager.d.ts +6 -6
  279. package/lib/sideslider/index.d.ts +41 -7
  280. package/lib/sideslider/index.js +12 -11
  281. package/lib/sideslider/sideslider.css +138 -9
  282. package/lib/sideslider/sideslider.d.ts +19 -3
  283. package/lib/sideslider/sideslider.less +7 -8
  284. package/lib/sideslider/sideslider.variable.css +269 -9
  285. package/lib/slider/index.js +21 -23
  286. package/lib/slider/slider.css +135 -5
  287. package/lib/slider/slider.variable.css +262 -1
  288. package/lib/steps/index.d.ts +14 -29
  289. package/lib/steps/index.js +3 -4
  290. package/lib/steps/steps.css +168 -38
  291. package/lib/steps/steps.d.ts +8 -18
  292. package/lib/steps/steps.variable.css +262 -1
  293. package/lib/styles/index.d.ts +1 -0
  294. package/lib/styles/mixins/animate.css +130 -0
  295. package/lib/styles/mixins/animate.variable.css +262 -1
  296. package/lib/styles/mixins/mixins.css +130 -0
  297. package/lib/styles/mixins/mixins.variable.css +130 -0
  298. package/lib/styles/mixins/popper.css +130 -0
  299. package/lib/styles/mixins/popper.variable.css +262 -1
  300. package/lib/styles/mixins/scroll.css +130 -0
  301. package/lib/styles/mixins/scroll.variable.css +262 -1
  302. package/lib/styles/reset.css +130 -0
  303. package/lib/styles/reset.variable.css +262 -1
  304. package/lib/{scrollbar/scrollbar.variable.css → styles/themes/themes.css} +2 -76
  305. package/lib/styles/themes/themes.less +299 -129
  306. package/lib/styles/themes/themes.variable.css +130 -0
  307. package/lib/swiper/index.js +5 -5
  308. package/lib/swiper/swiper.css +130 -0
  309. package/lib/swiper/swiper.variable.css +262 -1
  310. package/lib/switcher/index.js +2 -2
  311. package/lib/switcher/switcher.css +147 -17
  312. package/lib/switcher/switcher.d.ts +2 -2
  313. package/lib/switcher/switcher.variable.css +409 -18
  314. package/lib/tab/index.d.ts +44 -114
  315. package/lib/tab/index.js +47 -38
  316. package/lib/tab/props.d.ts +25 -50
  317. package/lib/tab/tab-nav.d.ts +24 -57
  318. package/lib/tab/tab-panel.d.ts +22 -0
  319. package/lib/tab/tab.css +211 -17
  320. package/lib/tab/tab.d.ts +10 -54
  321. package/lib/tab/tab.less +91 -4
  322. package/lib/tab/tab.variable.css +326 -1
  323. package/lib/table/components/ghost-body.d.ts +2 -0
  324. package/lib/table/components/table-cell.d.ts +22 -0
  325. package/lib/table/components/table-column.d.ts +23 -126
  326. package/lib/table/const.d.ts +23 -10
  327. package/lib/table/events.d.ts +16 -112
  328. package/lib/table/hooks/use-cell.d.ts +20 -0
  329. package/lib/table/hooks/use-column-resize.d.ts +7 -0
  330. package/lib/table/hooks/use-column-template.d.ts +5 -0
  331. package/lib/table/hooks/use-columns.d.ts +69 -0
  332. package/lib/table/{plugins → hooks}/use-draggable.d.ts +2 -2
  333. package/lib/table/hooks/use-fixed-column.d.ts +10 -0
  334. package/lib/table/hooks/use-head.d.ts +16 -0
  335. package/lib/table/hooks/use-layout.d.ts +25 -0
  336. package/lib/table/hooks/use-pagination.d.ts +16 -0
  337. package/lib/table/hooks/use-render.d.ts +21 -0
  338. package/lib/table/hooks/use-rows.d.ts +30 -0
  339. package/lib/table/hooks/use-settings.d.ts +136 -0
  340. package/lib/table/{plugins → hooks}/use-shift-key.d.ts +4 -2
  341. package/lib/table/index.d.ts +112 -634
  342. package/lib/table/index.js +3820 -3286
  343. package/lib/table/plugins/head-filter.css +131 -0
  344. package/lib/table/plugins/head-filter.d.ts +2 -1
  345. package/lib/table/plugins/head-filter.less +1 -0
  346. package/lib/table/plugins/head-filter.variable.css +263 -1
  347. package/lib/table/plugins/head-sort.css +130 -0
  348. package/lib/table/plugins/head-sort.variable.css +262 -1
  349. package/lib/table/plugins/settings.css +131 -0
  350. package/lib/table/plugins/settings.less +1 -0
  351. package/lib/table/plugins/settings.variable.css +263 -1
  352. package/lib/table/props.d.ts +125 -62
  353. package/lib/table/table.css +606 -331
  354. package/lib/table/table.d.ts +51 -185
  355. package/lib/table/table.less +245 -112
  356. package/lib/table/table.variable.css +869 -333
  357. package/lib/table/utils.d.ts +49 -21
  358. package/lib/table-column/index.d.ts +30 -289
  359. package/lib/table-column/index.js +17385 -46
  360. package/lib/tag/index.d.ts +11 -11
  361. package/lib/tag/index.js +2 -3
  362. package/lib/tag/tag.css +136 -6
  363. package/lib/tag/tag.d.ts +5 -5
  364. package/lib/tag/tag.less +1 -1
  365. package/lib/tag/tag.variable.css +263 -2
  366. package/lib/tag-input/common.d.ts +1 -1
  367. package/lib/tag-input/index.d.ts +8 -8
  368. package/lib/tag-input/index.js +37 -33
  369. package/lib/tag-input/tag-input.css +148 -18
  370. package/lib/tag-input/tag-input.d.ts +4 -4
  371. package/lib/tag-input/tag-input.variable.css +262 -1
  372. package/lib/tag-input/tag-props.d.ts +2 -2
  373. package/lib/time-picker/index.d.ts +0 -19
  374. package/lib/time-picker/time-picker.css +130 -0
  375. package/lib/time-picker/time-picker.variable.css +262 -1
  376. package/lib/timeline/index.js +2 -2
  377. package/lib/timeline/timeline.css +149 -19
  378. package/lib/timeline/timeline.variable.css +262 -1
  379. package/lib/transfer/const.d.ts +2 -2
  380. package/lib/transfer/index.js +3 -5
  381. package/lib/transfer/transfer.css +149 -19
  382. package/lib/transfer/transfer.variable.css +262 -1
  383. package/lib/tree/constant.d.ts +22 -20
  384. package/lib/tree/index.d.ts +41 -27
  385. package/lib/tree/index.js +109 -58
  386. package/lib/tree/props.d.ts +18 -11
  387. package/lib/tree/tree.css +242 -78
  388. package/lib/tree/tree.d.ts +17 -17
  389. package/lib/tree/tree.variable.css +504 -79
  390. package/lib/tree/use-empty.d.ts +1 -1
  391. package/lib/tree/use-node-action.d.ts +10 -9
  392. package/lib/tree/use-node-async.d.ts +2 -1
  393. package/lib/tree/use-node-attribute.d.ts +42 -34
  394. package/lib/tree/use-search.d.ts +1 -1
  395. package/lib/tree/use-tree-init.d.ts +8 -5
  396. package/lib/tree/util.d.ts +21 -21
  397. package/lib/upload/index.d.ts +27 -4
  398. package/lib/upload/index.js +86 -42
  399. package/lib/upload/props.d.ts +7 -2
  400. package/lib/upload/upload.css +157 -27
  401. package/lib/upload/upload.d.ts +13 -2
  402. package/lib/upload/upload.type.d.ts +12 -6
  403. package/lib/upload/upload.variable.css +419 -28
  404. package/lib/upload/use-file-handler.d.ts +1 -1
  405. package/lib/virtual-render/index.d.ts +12 -46
  406. package/lib/virtual-render/index.js +17468 -148
  407. package/lib/virtual-render/props.d.ts +2 -9
  408. package/lib/virtual-render/use-fix-top.d.ts +1 -1
  409. package/lib/virtual-render/use-scrollbar.d.ts +4 -17
  410. package/lib/virtual-render/v-virtual-render.d.ts +7 -1
  411. package/lib/virtual-render/virtual-render.css +225 -69
  412. package/lib/virtual-render/virtual-render.d.ts +6 -22
  413. package/lib/virtual-render/virtual-render.less +2 -11
  414. package/lib/virtual-render/virtual-render.variable.css +487 -70
  415. package/lib/volar.components.d.ts +2 -0
  416. package/package.json +17 -55
  417. package/lib/scrollbar/scrollbar-core/can-use-dom.d.ts +0 -2
  418. package/lib/scrollbar/scrollbar-core/helpers.d.ts +0 -5
  419. package/lib/scrollbar/scrollbar-core/index.d.ts +0 -241
  420. package/lib/scrollbar/scrollbar-core/mouse-wheel.d.ts +0 -5
  421. package/lib/scrollbar/scrollbar-core/scrollbar-width.d.ts +0 -1
  422. package/lib/scrollbar/scrollbar.css +0 -75
  423. package/lib/scrollbar/scrollbar.less +0 -94
  424. package/lib/table/plugins/col-group.d.ts +0 -38
  425. package/lib/table/plugins/settings.d.ts +0 -16
  426. package/lib/table/plugins/use-active-columns.d.ts +0 -16
  427. package/lib/table/plugins/use-column-resize.d.ts +0 -35
  428. package/lib/table/plugins/use-column-template.d.ts +0 -7
  429. package/lib/table/plugins/use-fixed-column.d.ts +0 -27
  430. package/lib/table/plugins/use-head-cell.d.ts +0 -7
  431. package/lib/table/plugins/use-pagination.d.ts +0 -23
  432. package/lib/table/use-attributes.d.ts +0 -62
  433. package/lib/table/use-column.d.ts +0 -275
  434. package/lib/table/use-common.d.ts +0 -1679
  435. package/lib/table/use-render.d.ts +0 -11
  436. /package/lib/table/{plugins → components}/body-empty.d.ts +0 -0
  437. /package/lib/table/{plugins → hooks}/use-observer-resize.d.ts +0 -0
  438. /package/lib/table/{plugins → hooks}/use-scroll-loading.d.ts +0 -0
@@ -481,6 +481,18 @@ function _defineProperty(obj, key, value) {
481
481
  var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
482
482
  var external_vue_y = x => () => x
483
483
  const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createTextVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["inject"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.inject, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["provide"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.provide, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["resolveDirective"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective, ["shallowRef"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.shallowRef, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
484
+ ;// CONCATENATED MODULE: external "../config-provider"
485
+ var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
486
+ var config_provider_y = x => () => x
487
+ const config_provider_namespaceObject = config_provider_x({ ["useLocale"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.useLocale, ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix });
488
+ ;// CONCATENATED MODULE: external "../directives"
489
+ var directives_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
490
+ var directives_y = x => () => x
491
+ const directives_namespaceObject = directives_x({ ["clickoutside"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__.clickoutside });
492
+ ;// CONCATENATED MODULE: external "../icon"
493
+ var icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
494
+ var icon_y = x => () => x
495
+ const icon_namespaceObject = icon_x({ ["Close"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Close, ["Error"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Error, ["ExclamationCircleShape"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.ExclamationCircleShape, ["Search"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Search });
484
496
  ;// CONCATENATED MODULE: ../../node_modules/resize-detector/esm/index.js
485
497
  var raf = null;
486
498
  function requestAnimationFrame (callback) {
@@ -797,18 +809,6 @@ function resetTriggers (elem) {
797
809
 
798
810
 
799
811
 
800
- ;// CONCATENATED MODULE: external "../config-provider"
801
- var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
802
- var config_provider_y = x => () => x
803
- const config_provider_namespaceObject = config_provider_x({ ["useLocale"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.useLocale, ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix });
804
- ;// CONCATENATED MODULE: external "../directives"
805
- var directives_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
806
- var directives_y = x => () => x
807
- const directives_namespaceObject = directives_x({ ["clickoutside"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__.clickoutside });
808
- ;// CONCATENATED MODULE: external "../icon"
809
- var icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
810
- var icon_y = x => () => x
811
- const icon_namespaceObject = icon_x({ ["Close"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Close, ["Error"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Error, ["ExclamationCircleShape"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.ExclamationCircleShape, ["Search"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Search });
812
812
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
813
813
  function _arrayWithHoles(arr) {
814
814
  if (Array.isArray(arr)) return arr;
@@ -1014,27 +1014,27 @@ function _createClass(Constructor, protoProps, staticProps) {
1014
1014
  var ValueBehavior;
1015
1015
  (function (ValueBehavior) {
1016
1016
  ValueBehavior["ALL"] = "all";
1017
- ValueBehavior["NEEDKEY"] = "need-key";
1017
+ ValueBehavior["NEED_KEY"] = "need-key";
1018
1018
  })(ValueBehavior || (ValueBehavior = {}));
1019
1019
  var DeleteBehavior;
1020
1020
  (function (DeleteBehavior) {
1021
1021
  DeleteBehavior["CHAR"] = "delete-char";
1022
1022
  DeleteBehavior["VALUE"] = "delete-value";
1023
1023
  })(DeleteBehavior || (DeleteBehavior = {}));
1024
- var SEARCH_SLECT_PROVIDER_KEY = Symbol('SEARCH_SLECT_PROVIDER_KEY');
1024
+ var SEARCH_SELECT_PROVIDER_KEY = Symbol('SEARCH_SELECT_PROVIDER_KEY');
1025
1025
  var useSearchSelectProvider = function useSearchSelectProvider(data) {
1026
- (0,external_vue_namespaceObject.provide)(SEARCH_SLECT_PROVIDER_KEY, data);
1026
+ (0,external_vue_namespaceObject.provide)(SEARCH_SELECT_PROVIDER_KEY, data);
1027
1027
  };
1028
1028
  var useSearchSelectInject = function useSearchSelectInject() {
1029
- return (0,external_vue_namespaceObject.inject)(SEARCH_SLECT_PROVIDER_KEY);
1029
+ return (0,external_vue_namespaceObject.inject)(SEARCH_SELECT_PROVIDER_KEY);
1030
1030
  };
1031
1031
  var SearchInputMode;
1032
1032
  (function (SearchInputMode) {
1033
1033
  SearchInputMode["DEFAULT"] = "default";
1034
1034
  SearchInputMode["EDIT"] = "edit";
1035
1035
  })(SearchInputMode || (SearchInputMode = {}));
1036
- var ValueSplitRegex = /(\||,|、|\/|\r\n|\n)/gm;
1037
- var ValueSplitTestRegex = /^(\||,|、|\/|\r\n|\n)$/;
1036
+ var ValueSplitRegex = /(\||,|、|\r\n|\n)/gm;
1037
+ var ValueSplitTestRegex = /^(\||,|、|\r\n|\n)$/;
1038
1038
  var SearchLogical;
1039
1039
  (function (SearchLogical) {
1040
1040
  SearchLogical["AND"] = "&";
@@ -1045,7 +1045,7 @@ var SelectedItem = /*#__PURE__*/function () {
1045
1045
  var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'default';
1046
1046
  _classCallCheck(this, SelectedItem);
1047
1047
  _defineProperty(this, "values", []);
1048
- _defineProperty(this, "nameRenderkey", (0,shared_namespaceObject.random)(4));
1048
+ _defineProperty(this, "nameRenderKey", (0,shared_namespaceObject.random)(4));
1049
1049
  this.searchItem = searchItem;
1050
1050
  this.type = type;
1051
1051
  this.id = searchItem.id;
@@ -1121,7 +1121,7 @@ var SelectedItem = /*#__PURE__*/function () {
1121
1121
  }, {
1122
1122
  key: "addValue",
1123
1123
  value: function addValue(item) {
1124
- this.nameRenderkey = (0,shared_namespaceObject.random)(4);
1124
+ this.nameRenderKey = (0,shared_namespaceObject.random)(4);
1125
1125
  if (this.multiple) {
1126
1126
  var index = this.values.findIndex(function (val) {
1127
1127
  return val.id === item.id;
@@ -1308,6 +1308,12 @@ var SelectedItem = /*#__PURE__*/function () {
1308
1308
  logical: {
1309
1309
  type: String,
1310
1310
  "default": SearchLogical.OR
1311
+ },
1312
+ maxHeight: {
1313
+ type: Number,
1314
+ "default": function _default() {
1315
+ return 392;
1316
+ }
1311
1317
  }
1312
1318
  },
1313
1319
  emits: ['selectItem', 'selectCondition', 'footerClick', 'update:logical'],
@@ -1329,6 +1335,11 @@ var SelectedItem = /*#__PURE__*/function () {
1329
1335
  }
1330
1336
  return props.footerBtns;
1331
1337
  });
1338
+ var resolveContentStyles = (0,external_vue_namespaceObject.computed)(function () {
1339
+ return {
1340
+ maxHeight: "".concat(props.maxHeight, "px")
1341
+ };
1342
+ });
1332
1343
  // events
1333
1344
  function handleClick(item) {
1334
1345
  emit('selectItem', item);
@@ -1398,6 +1409,7 @@ var SelectedItem = /*#__PURE__*/function () {
1398
1409
  getSearchNode: getSearchNode,
1399
1410
  localFooterBtns: localFooterBtns,
1400
1411
  resolveClassName: resolveClassName,
1412
+ resolveContentStyles: resolveContentStyles,
1401
1413
  t: t
1402
1414
  };
1403
1415
  },
@@ -1409,9 +1421,9 @@ var SelectedItem = /*#__PURE__*/function () {
1409
1421
  "class": "menu-content"
1410
1422
  }, [(_this$list = this.list) === null || _this$list === void 0 ? void 0 : _this$list.map(function (item) {
1411
1423
  return (0,external_vue_namespaceObject.createVNode)("li", {
1412
- "class": "menu-item ".concat(item.disabled ? 'is-disabled' : '', " ").concat(_this.hoverId === item.id && !item.disabled ? 'is-hover' : ''),
1413
- "key": item.id,
1414
1424
  "id": item.id,
1425
+ "key": item.id,
1426
+ "class": "menu-item ".concat(item.disabled ? 'is-disabled' : '', " ").concat(_this.hoverId === item.id && !item.disabled ? 'is-hover' : ''),
1415
1427
  "tabindex": "-1",
1416
1428
  "onClick": function onClick() {
1417
1429
  return !item.disabled && _this.handleClick(item);
@@ -1421,8 +1433,8 @@ var SelectedItem = /*#__PURE__*/function () {
1421
1433
  return _this.handleSelectedChange(e, item);
1422
1434
  }
1423
1435
  }, [(0,external_vue_namespaceObject.createVNode)(checkbox_namespaceObject["default"], {
1424
- "modelValue": _this.selected.includes(item.id),
1425
- "class": "is-selected"
1436
+ "class": "is-selected",
1437
+ "modelValue": _this.selected.includes(item.id)
1426
1438
  }, null)]), _this.getSearchNode(item)])]);
1427
1439
  })]);
1428
1440
  var getListMenu = function getListMenu() {
@@ -1434,17 +1446,17 @@ var SelectedItem = /*#__PURE__*/function () {
1434
1446
  }, [(0,external_vue_namespaceObject.createVNode)("div", {
1435
1447
  "class": "menu-condition-title"
1436
1448
  }, [_this.t.logical]), (0,external_vue_namespaceObject.createVNode)(radio_namespaceObject["default"], {
1449
+ "label": "|",
1437
1450
  "modelValue": _this.logical,
1438
- "onChange": _this.handleLogicalChange,
1439
- "label": "|"
1451
+ "onChange": _this.handleLogicalChange
1440
1452
  }, {
1441
1453
  "default": function _default() {
1442
1454
  return [_this.t.or, (0,external_vue_namespaceObject.createTextVNode)(" |")];
1443
1455
  }
1444
1456
  }), (0,external_vue_namespaceObject.createVNode)(radio_namespaceObject["default"], {
1457
+ "label": "&",
1445
1458
  "modelValue": _this.logical,
1446
- "onChange": _this.handleLogicalChange,
1447
- "label": "&"
1459
+ "onChange": _this.handleLogicalChange
1448
1460
  }, {
1449
1461
  "default": function _default() {
1450
1462
  return [_this.t.and, (0,external_vue_namespaceObject.createTextVNode)(" &")];
@@ -1452,6 +1464,7 @@ var SelectedItem = /*#__PURE__*/function () {
1452
1464
  })])]);
1453
1465
  };
1454
1466
  return (0,external_vue_namespaceObject.createVNode)("div", {
1467
+ "style": this.resolveContentStyles,
1455
1468
  "class": this.resolveClassName('search-select-menu')
1456
1469
  }, [!!((_this$conditions = this.conditions) !== null && _this$conditions !== void 0 && _this$conditions.length) && (0,external_vue_namespaceObject.createVNode)("ul", {
1457
1470
  "class": "menu-header"
@@ -1527,11 +1540,17 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
1527
1540
  return [];
1528
1541
  }
1529
1542
  },
1530
- defautUsingItem: Object,
1543
+ defaultUsingItem: Object,
1531
1544
  mode: {
1532
1545
  type: String,
1533
1546
  "default": SearchInputMode.DEFAULT
1534
1547
  },
1548
+ maxHeight: {
1549
+ type: Number,
1550
+ "default": function _default() {
1551
+ return 392;
1552
+ }
1553
+ },
1535
1554
  getMenuList: Function,
1536
1555
  validateValues: Function,
1537
1556
  valueBehavior: String
@@ -1550,10 +1569,10 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
1550
1569
  var showNoSelectValueError = (0,external_vue_namespaceObject.ref)(false);
1551
1570
  var isFocus = (0,external_vue_namespaceObject.ref)(false);
1552
1571
  var showPopover = (0,external_vue_namespaceObject.ref)(false);
1553
- var usingItem = (0,external_vue_namespaceObject.ref)(props.defautUsingItem);
1572
+ var usingItem = (0,external_vue_namespaceObject.ref)(props.defaultUsingItem);
1554
1573
  var menuHoverId = (0,external_vue_namespaceObject.ref)('');
1555
1574
  var loading = (0,external_vue_namespaceObject.ref)(false);
1556
- var debounceSetMenuList = (0,shared_namespaceObject.debounce)(300, setMenuList);
1575
+ var debounceSetMenuList = (0,shared_namespaceObject.debounce)(100, setMenuList);
1557
1576
  // const selectMenuList = ref<ICommonItem[]>([]);
1558
1577
  var isBindEvent = false;
1559
1578
  var remoteMenuList = (0,external_vue_namespaceObject.ref)([]);
@@ -1562,7 +1581,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
1562
1581
  editKey = _useSearchSelectInjec.editKey,
1563
1582
  onValidate = _useSearchSelectInjec.onValidate,
1564
1583
  searchData = _useSearchSelectInjec.searchData;
1565
- var valueLoagic = (0,external_vue_namespaceObject.computed)(function () {
1584
+ var valueLogic = (0,external_vue_namespaceObject.computed)(function () {
1566
1585
  var _usingItem$value;
1567
1586
  return ((_usingItem$value = usingItem.value) === null || _usingItem$value === void 0 ? void 0 : _usingItem$value.logical) || SearchLogical.OR;
1568
1587
  });
@@ -1588,7 +1607,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
1588
1607
  if (shouldBindEvent) {
1589
1608
  if (!isBindEvent) {
1590
1609
  var _menuList$value$find;
1591
- menuHoverId.value = props.valueBehavior === ValueBehavior.NEEDKEY ? ((_menuList$value$find = menuList.value.find(function (item) {
1610
+ menuHoverId.value = props.valueBehavior === ValueBehavior.NEED_KEY ? ((_menuList$value$find = menuList.value.find(function (item) {
1592
1611
  return !item.disabled;
1593
1612
  })) === null || _menuList$value$find === void 0 ? void 0 : _menuList$value$find.id) || '' : '';
1594
1613
  isBindEvent = true;
@@ -1597,7 +1616,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
1597
1616
  } else {
1598
1617
  document.removeEventListener('keydown', handleDocumentKeydown);
1599
1618
  isBindEvent = false;
1600
- if (props.valueBehavior !== ValueBehavior.NEEDKEY) {
1619
+ if (props.valueBehavior !== ValueBehavior.NEED_KEY) {
1601
1620
  menuHoverId.value = '';
1602
1621
  }
1603
1622
  }
@@ -1635,9 +1654,10 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
1635
1654
  }
1636
1655
  }
1637
1656
  function documentEnterEvent(e) {
1657
+ var _menuList$value2;
1638
1658
  if (!isBindEvent) return;
1639
1659
  e.preventDefault();
1640
- var item = menuList.value.find(function (item) {
1660
+ var item = (_menuList$value2 = menuList.value) === null || _menuList$value2 === void 0 ? void 0 : _menuList$value2.find(function (item) {
1641
1661
  return item.id === menuHoverId.value;
1642
1662
  });
1643
1663
  item && handleSelectItem(item);
@@ -1669,16 +1689,23 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
1669
1689
  showPopover.value = false;
1670
1690
  emit('focus', isFocus.value);
1671
1691
  }
1672
- function handleInputFocus() {
1692
+ var isOriginFocus = false;
1693
+ function handleInputFocus(event) {
1694
+ if (isOriginFocus) return;
1673
1695
  showNoSelectValueError.value = false;
1674
1696
  if (props.mode === SearchInputMode.EDIT && usingItem.value && !isFocus.value) {
1675
1697
  var nodeList = Array.from(inputRef.value.querySelectorAll("[data-type=\"".concat(usingItem.value.values.length ? 'value' : usingItem.value.type, "\"]")));
1676
1698
  if (!nodeList.length) return;
1699
+ event === null || event === void 0 || event.preventDefault();
1677
1700
  var range = document.createRange();
1678
1701
  var selection = window.getSelection();
1679
1702
  range.selectNodeContents(nodeList.at(-1));
1680
1703
  selection === null || selection === void 0 || selection.removeAllRanges();
1681
- selection.addRange(range); // 注意这里会触发focu事件
1704
+ isOriginFocus = true;
1705
+ setTimeout(function () {
1706
+ isOriginFocus = false;
1707
+ }, 200);
1708
+ selection.addRange(range); // 注意这里会触发focus事件
1682
1709
  setInputFocus(true, false);
1683
1710
  return;
1684
1711
  }
@@ -1689,7 +1716,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
1689
1716
  event.preventDefault();
1690
1717
  var formattedText = event.clipboardData.getData('text').trim();
1691
1718
  if (!usingItem.value) {
1692
- var formateItem = str2SeletedItem(formattedText);
1719
+ var formateItem = str2SelectedItem(formattedText);
1693
1720
  if (formateItem) {
1694
1721
  usingItem.value = formateItem;
1695
1722
  setInputFocus(true, true);
@@ -1697,7 +1724,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
1697
1724
  }
1698
1725
  keyword.value = formattedText.split(ValueSplitRegex).filter(function (v) {
1699
1726
  return v.trim() && !ValueSplitTestRegex.test(v);
1700
- }).join(" ".concat(valueLoagic.value, " "));
1727
+ }).join(" ".concat(valueLogic.value, " "));
1701
1728
  inputRef.value.innerText = keyword.value;
1702
1729
  setInputFocus();
1703
1730
  debounceSetMenuList();
@@ -1720,9 +1747,15 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
1720
1747
  switch (event.code) {
1721
1748
  case 'Enter':
1722
1749
  case 'NumpadEnter':
1723
- if (props.valueBehavior === ValueBehavior.NEEDKEY && menuList.value.some(function (item) {
1750
+ if (props.valueBehavior === ValueBehavior.NEED_KEY && menuList.value.some(function (item) {
1724
1751
  return item.id === menuHoverId.value;
1725
- })) return;
1752
+ })) {
1753
+ var _keyword$value;
1754
+ if (!usingItem.value && (_keyword$value = keyword.value) !== null && _keyword$value !== void 0 && _keyword$value.length) {
1755
+ event.preventDefault();
1756
+ }
1757
+ return;
1758
+ }
1726
1759
  handleKeyEnter(event).then(function (v) {
1727
1760
  return v && clearInput();
1728
1761
  });
@@ -1755,7 +1788,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
1755
1788
  _context.next = 9;
1756
1789
  break;
1757
1790
  }
1758
- if (!(!keyword.value || props.valueBehavior === ValueBehavior.NEEDKEY)) {
1791
+ if (!(!keyword.value || props.valueBehavior === ValueBehavior.NEED_KEY)) {
1759
1792
  _context.next = 6;
1760
1793
  break;
1761
1794
  }
@@ -1809,7 +1842,9 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
1809
1842
  var _usingItem$value3;
1810
1843
  // 删除已选择项
1811
1844
  if (!usingItem.value && !keyword.value) {
1845
+ menuHoverId.value = '';
1812
1846
  emit('delete');
1847
+ // eslint-disable-next-line @typescript-eslint/no-misused-promises
1813
1848
  setTimeout(setMenuList, 16);
1814
1849
  return;
1815
1850
  }
@@ -1857,7 +1892,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
1857
1892
  id: (_item$realId = item.realId) !== null && _item$realId !== void 0 ? _item$realId : item.id
1858
1893
  }), type);
1859
1894
  selectedItem.addValues(item.value.name, false);
1860
- if (!(props.valueBehavior === ValueBehavior.NEEDKEY && menuHoverId.value)) {
1895
+ if (!(props.valueBehavior === ValueBehavior.NEED_KEY && menuHoverId.value)) {
1861
1896
  _context2.next = 8;
1862
1897
  break;
1863
1898
  }
@@ -1900,7 +1935,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
1900
1935
  setSelectedItem();
1901
1936
  }
1902
1937
  showPopover.value = isCondition || !!usingItem.value.children.length;
1903
- setInputFocus(props.valueBehavior === ValueBehavior.NEEDKEY && !!menuHoverId.value);
1938
+ setInputFocus(props.valueBehavior === ValueBehavior.NEED_KEY && !!menuHoverId.value);
1904
1939
  return _context2.abrupt("return");
1905
1940
  case 27:
1906
1941
  if (usingItem.value) {
@@ -1919,7 +1954,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
1919
1954
  if (!usingItem.value.multiple) {
1920
1955
  setSelectedItem();
1921
1956
  }
1922
- if (props.valueBehavior === ValueBehavior.NEEDKEY && (_usingItem$value12 = usingItem.value) !== null && _usingItem$value12 !== void 0 && _usingItem$value12.multiple) {
1957
+ if (props.valueBehavior === ValueBehavior.NEED_KEY && (_usingItem$value12 = usingItem.value) !== null && _usingItem$value12 !== void 0 && _usingItem$value12.multiple) {
1923
1958
  setInputFocus();
1924
1959
  }
1925
1960
  case 34:
@@ -1930,7 +1965,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
1930
1965
  }));
1931
1966
  return _handleSelectItem.apply(this, arguments);
1932
1967
  }
1933
- function handleSelectCondtionItem(item) {
1968
+ function handleSelectConditionItem(item) {
1934
1969
  handleSelectItem(item, 'condition');
1935
1970
  }
1936
1971
  function handleMenuFooterClick(item) {
@@ -2039,7 +2074,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
2039
2074
  function _setMenuList() {
2040
2075
  _setMenuList = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee5() {
2041
2076
  var _props$data, _usingItem$value$sear, _usingItem$value$valu;
2042
- var list, _usingItem$value14, _keyword$value2, hoverItem;
2077
+ var list, _usingItem$value14, _keyword$value3, hoverItem;
2043
2078
  return regenerator_default().wrap(function _callee5$(_context5) {
2044
2079
  while (1) switch (_context5.prev = _context5.next) {
2045
2080
  case 0:
@@ -2060,7 +2095,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
2060
2095
  break;
2061
2096
  case 9:
2062
2097
  if (!(usingItem !== null && usingItem !== void 0 && usingItem.value)) {
2063
- if (!((_keyword$value2 = keyword.value) !== null && _keyword$value2 !== void 0 && _keyword$value2.length)) {
2098
+ if (!((_keyword$value3 = keyword.value) !== null && _keyword$value3 !== void 0 && _keyword$value3.length)) {
2064
2099
  list = props.data.filter(function (item) {
2065
2100
  return !item.isSelected;
2066
2101
  }).slice();
@@ -2118,7 +2153,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
2118
2153
  }
2119
2154
  case 10:
2120
2155
  menuList.value = list;
2121
- if (props.valueBehavior === ValueBehavior.NEEDKEY) {
2156
+ if (props.valueBehavior === ValueBehavior.NEED_KEY) {
2122
2157
  hoverItem = list.find(function (item) {
2123
2158
  return !item.disabled;
2124
2159
  });
@@ -2145,7 +2180,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
2145
2180
  return regenerator_default().wrap(function _callee6$(_context6) {
2146
2181
  while (1) switch (_context6.prev = _context6.next) {
2147
2182
  case 0:
2148
- formatItem = str2SeletedItem(keyword.value);
2183
+ formatItem = str2SelectedItem(keyword.value);
2149
2184
  valueList = (formatItem === null || formatItem === void 0 ? void 0 : formatItem.values) || [{
2150
2185
  id: keyword.value,
2151
2186
  name: keyword.value
@@ -2183,7 +2218,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
2183
2218
  case 0:
2184
2219
  valueList = [];
2185
2220
  if (usingItem.value.isSpecialType()) {
2186
- formatItem = str2SeletedItem(keyword.value);
2221
+ formatItem = str2SelectedItem(keyword.value);
2187
2222
  if (formatItem) {
2188
2223
  usingItem.value = formatItem;
2189
2224
  valueList = formatItem.values;
@@ -2229,15 +2264,16 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
2229
2264
  selection.addRange(range);
2230
2265
  }
2231
2266
  function setInputFocus() {
2232
- var refleshMenuList = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
2267
+ var refreshMenuList = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
2233
2268
  var needCursorToEnd = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
2234
- if (refleshMenuList) {
2269
+ if (refreshMenuList) {
2270
+ // eslint-disable-next-line @typescript-eslint/no-misused-promises
2235
2271
  setTimeout(setMenuList, 16);
2236
2272
  }
2237
2273
  isFocus.value = true;
2238
2274
  showPopover.value = true;
2239
2275
  showNoSelectValueError.value = false;
2240
- needCursorToEnd && (0,external_vue_namespaceObject.nextTick)(setCursorToEnd);
2276
+ !props.getMenuList && needCursorToEnd && (0,external_vue_namespaceObject.nextTick)(setCursorToEnd);
2241
2277
  emit('focus', isFocus.value);
2242
2278
  }
2243
2279
  function setSelectedItem(item) {
@@ -2258,7 +2294,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
2258
2294
  return inputRef.value.innerText = '';
2259
2295
  });
2260
2296
  }
2261
- function str2SeletedItem(str) {
2297
+ function str2SelectedItem(str) {
2262
2298
  var _str$split = str.split(':'),
2263
2299
  _str$split2 = _slicedToArray(_str$split, 2),
2264
2300
  key = _str$split2[0],
@@ -2276,8 +2312,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
2276
2312
  return undefined;
2277
2313
  }
2278
2314
  function deleteInputTextNode() {
2279
- var _keyword$value;
2280
- if ((_keyword$value = keyword.value) !== null && _keyword$value !== void 0 && _keyword$value.length) {
2315
+ var _keyword$value2;
2316
+ if ((_keyword$value2 = keyword.value) !== null && _keyword$value2 !== void 0 && _keyword$value2.length) {
2281
2317
  keyword.value = '';
2282
2318
  var nodes = Array.from(inputRef.value.childNodes);
2283
2319
  nodes.forEach(function (node) {
@@ -2331,13 +2367,19 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
2331
2367
  return v && clearInput();
2332
2368
  });
2333
2369
  }
2370
+ function refleshMenuHover() {
2371
+ if (!usingItem.value) {
2372
+ menuHoverId.value = '';
2373
+ }
2374
+ }
2334
2375
  // expose
2335
2376
  expose({
2336
2377
  inputFocusForWrapper: inputFocusForWrapper,
2337
2378
  inputEnterForWrapper: inputEnterForWrapper,
2338
2379
  inputClearForWrapper: inputClearForWrapper,
2339
2380
  handleInputFocus: handleInputFocus,
2340
- isFocus: isFocus
2381
+ isFocus: isFocus,
2382
+ refleshMenuHover: refleshMenuHover
2341
2383
  });
2342
2384
  return {
2343
2385
  popoverRef: popoverRef,
@@ -2360,7 +2402,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
2360
2402
  handleLogicalChange: handleLogicalChange,
2361
2403
  handleInputKeyup: handleInputKeyup,
2362
2404
  handleSelectItem: handleSelectItem,
2363
- handleSelectCondtionItem: handleSelectCondtionItem,
2405
+ handleSelectConditionItem: handleSelectConditionItem,
2364
2406
  handleMenuFooterClick: handleMenuFooterClick,
2365
2407
  resolveClassName: resolveClassName,
2366
2408
  inputFocusForWrapper: inputFocusForWrapper,
@@ -2368,6 +2410,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
2368
2410
  inputClearForWrapper: inputClearForWrapper,
2369
2411
  deleteInputTextNode: deleteInputTextNode,
2370
2412
  customPanelSubmit: customPanelSubmit,
2413
+ refleshMenuHover: refleshMenuHover,
2371
2414
  t: t
2372
2415
  };
2373
2416
  },
@@ -2397,32 +2440,32 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
2397
2440
  "data-placeholder": !inputInnerHtml && !_this.keyword ? _this.placeholder : '',
2398
2441
  "data-tips": placeholder || '',
2399
2442
  "spellcheck": "false",
2400
- "onPaste": _this.handleInputPaste,
2401
2443
  "onFocus": _this.handleInputFocus,
2402
2444
  "onInput": _this.handleInputChange,
2403
- "onKeydown": _this.handleInputKeyup
2445
+ "onKeydown": _this.handleInputKeyup,
2446
+ "onPaste": _this.handleInputPaste
2404
2447
  }, [((_this$usingItem = _this.usingItem) === null || _this$usingItem === void 0 ? void 0 : _this$usingItem.name) && (!_this.usingItem.isSpecialType() ? (0,external_vue_namespaceObject.createVNode)("span", {
2448
+ "key": _this.usingItem.nameRenderKey,
2449
+ "style": {
2450
+ color: '#979BA5'
2451
+ },
2452
+ "contenteditable": false,
2405
2453
  "data-key": _this.usingItem.name,
2406
2454
  "data-type": _this.usingItem.type,
2407
- "key": _this.usingItem.nameRenderkey,
2408
2455
  "onMousedown": function onMousedown(e) {
2409
2456
  return e.preventDefault();
2410
- },
2411
- "contenteditable": false,
2412
- "style": {
2413
- color: '#979BA5'
2414
2457
  }
2415
2458
  }, [_this.usingItem.name, (0,external_vue_namespaceObject.createTextVNode)(":\xA0")]) : (0,external_vue_namespaceObject.createVNode)("span", {
2459
+ "key": _this.usingItem.nameRenderKey,
2416
2460
  "data-key": _this.usingItem.name,
2417
- "data-type": _this.usingItem.type,
2418
- "key": _this.usingItem.nameRenderkey
2461
+ "data-type": _this.usingItem.type
2419
2462
  }, [_this.usingItem.name])), (_this$usingItem2 = _this.usingItem) === null || _this$usingItem2 === void 0 || (_this$usingItem2 = _this$usingItem2.values) === null || _this$usingItem2 === void 0 ? void 0 : _this$usingItem2.map(function (item, index) {
2420
2463
  return (0,external_vue_namespaceObject.createVNode)("span", {
2421
2464
  "key": index,
2422
- "data-key": item.name,
2423
- "data-type": "value",
2424
2465
  "data-id": item.id,
2425
- "data-index": index
2466
+ "data-index": index,
2467
+ "data-key": item.name,
2468
+ "data-type": "value"
2426
2469
  }, [item.name, index < _this.usingItem.values.length - 1 ? " ".concat(_this.usingItem.logical, " ") : '']);
2427
2470
  })]), [[(0,external_vue_namespaceObject.resolveDirective)("clickoutside"), _this.handleClickOutside]]);
2428
2471
  };
@@ -2450,29 +2493,30 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
2450
2493
  "ref": "popoverRef",
2451
2494
  "class": _this.resolveClassName('search-select-popover')
2452
2495
  }, [(0,external_vue_namespaceObject.createVNode)(menu, {
2453
- "list": _this.menuList,
2496
+ "conditions": showCondition ? _this.conditions : [],
2497
+ "hoverId": _this.menuHoverId,
2454
2498
  "keyword": _this.keyword,
2499
+ "list": _this.menuList,
2500
+ "logical": (_this$usingItem4 = _this.usingItem) === null || _this$usingItem4 === void 0 ? void 0 : _this$usingItem4.logical,
2501
+ "maxHeight": _this.maxHeight,
2455
2502
  "multiple": !!multiple,
2456
- "hoverId": _this.menuHoverId,
2457
2503
  "selected": (values === null || values === void 0 ? void 0 : values.map(function (item) {
2458
2504
  return item.id;
2459
2505
  })) || [],
2460
- "conditions": showCondition ? _this.conditions : [],
2461
- "logical": (_this$usingItem4 = _this.usingItem) === null || _this$usingItem4 === void 0 ? void 0 : _this$usingItem4.logical,
2462
2506
  "showLogical": (_this$usingItem5 = _this.usingItem) === null || _this$usingItem5 === void 0 ? void 0 : _this$usingItem5.showLogical,
2463
- "onUpdate:logical": _this.handleLogicalChange,
2507
+ "onFooterClick": _this.handleMenuFooterClick,
2508
+ "onSelectCondition": _this.handleSelectConditionItem,
2464
2509
  "onSelectItem": _this.handleSelectItem,
2465
- "onSelectCondition": _this.handleSelectCondtionItem,
2466
- "onFooterClick": _this.handleMenuFooterClick
2510
+ "onUpdate:logical": _this.handleLogicalChange
2467
2511
  }, null)]) : undefined;
2468
2512
  };
2469
2513
  return (0,external_vue_namespaceObject.createVNode)(popover_namespaceObject["default"], {
2470
- "trigger": "manual",
2471
- "theme": "light",
2472
- "placement": "bottom-start",
2473
2514
  "arrow": false,
2474
2515
  "disableOutsideClick": true,
2475
- "isShow": showPopover
2516
+ "isShow": showPopover,
2517
+ "placement": "bottom-start",
2518
+ "theme": "light",
2519
+ "trigger": "manual"
2476
2520
  }, {
2477
2521
  "default": inputContent,
2478
2522
  content: popoverContent
@@ -2528,6 +2572,12 @@ function selected_objectSpread(e) { for (var r = 1; r < arguments.length; r++) {
2528
2572
  type: Number,
2529
2573
  "default": -1
2530
2574
  },
2575
+ maxHeight: {
2576
+ type: Number,
2577
+ "default": function _default() {
2578
+ return 392;
2579
+ }
2580
+ },
2531
2581
  conditions: {
2532
2582
  type: Array,
2533
2583
  "default": function _default() {
@@ -2551,7 +2601,7 @@ function selected_objectSpread(e) { for (var r = 1; r < arguments.length; r++) {
2551
2601
  function handleDeleteSelected(index) {
2552
2602
  emit('delete', index);
2553
2603
  }
2554
- function handleEditSeleted(e, item, index) {
2604
+ function handleEditSelected(e, item, index) {
2555
2605
  e.preventDefault();
2556
2606
  e.stopPropagation();
2557
2607
  onEditClick(item, index);
@@ -2576,7 +2626,7 @@ function selected_objectSpread(e) { for (var r = 1; r < arguments.length; r++) {
2576
2626
  var _selectedInputRef$val;
2577
2627
  return !((_selectedInputRef$val = selectedInputRef.value) !== null && _selectedInputRef$val !== void 0 && _selectedInputRef$val.contains(target));
2578
2628
  }
2579
- function copySeletedItem(item) {
2629
+ function copySelectedItem(item) {
2580
2630
  var newItem = new SelectedItem(item.searchItem, item.type);
2581
2631
  newItem.values = item.values.slice();
2582
2632
  newItem.logical = item.logical || SearchLogical.OR;
@@ -2586,9 +2636,9 @@ function selected_objectSpread(e) { for (var r = 1; r < arguments.length; r++) {
2586
2636
  inputRef: inputRef,
2587
2637
  selectedInputRef: selectedInputRef,
2588
2638
  editKey: editKey,
2589
- copySeletedItem: copySeletedItem,
2639
+ copySelectedItem: copySelectedItem,
2590
2640
  handleDeleteSelected: handleDeleteSelected,
2591
- handleEditSeleted: handleEditSeleted,
2641
+ handleEditSelected: handleEditSelected,
2592
2642
  handleInputOutside: handleInputOutside,
2593
2643
  handleAddSelected: handleAddSelected,
2594
2644
  handleInputFocus: handleInputFocus
@@ -2598,19 +2648,20 @@ function selected_objectSpread(e) { for (var r = 1; r < arguments.length; r++) {
2598
2648
  var _this = this;
2599
2649
  var contentComponent = function contentComponent(item, index) {
2600
2650
  return _this.editKey === "".concat(item.id, "_").concat(index) ? (0,external_vue_namespaceObject.createVNode)("div", {
2601
- "class": "selected-input",
2602
2651
  "key": _this.editKey.toString(),
2603
- "ref": "selectedInputRef"
2652
+ "ref": "selectedInputRef",
2653
+ "class": "selected-input"
2604
2654
  }, [(0,external_vue_namespaceObject.createVNode)(input, {
2605
- "ref": "inputRef",
2606
2655
  "key": _this.editKey.toString(),
2607
- "mode": SearchInputMode.EDIT,
2608
- "data": _this.data,
2609
- "showCondition": false,
2610
- "conditions": _this.conditions,
2611
- "defautUsingItem": _this.copySeletedItem(item),
2656
+ "ref": "inputRef",
2612
2657
  "clickOutside": _this.handleInputOutside,
2658
+ "conditions": _this.conditions,
2659
+ "data": _this.data,
2660
+ "defaultUsingItem": _this.copySelectedItem(item),
2613
2661
  "getMenuList": _this.getMenuList,
2662
+ "maxHeight": _this.maxHeight,
2663
+ "mode": SearchInputMode.EDIT,
2664
+ "showCondition": false,
2614
2665
  "validateValues": _this.validateValues,
2615
2666
  "valueBehavior": _this.valueBehavior,
2616
2667
  "onAdd": function onAdd(v) {
@@ -2618,12 +2669,12 @@ function selected_objectSpread(e) { for (var r = 1; r < arguments.length; r++) {
2618
2669
  },
2619
2670
  "onFocus": _this.handleInputFocus
2620
2671
  }, selected_objectSpread({}, _this.$slots))]) : (0,external_vue_namespaceObject.createVNode)("li", {
2621
- "class": "search-container-selected ".concat(!(_this.overflowIndex >= 0 ? index < _this.overflowIndex : index >= 0) ? 'hidden-selected' : ''),
2622
- "key": "".concat(item.id, "_").concat(index)
2672
+ "key": "".concat(item.id, "_").concat(index),
2673
+ "class": "search-container-selected ".concat(!(_this.overflowIndex >= 0 ? index < _this.overflowIndex : index >= 0) ? 'hidden-selected' : '')
2623
2674
  }, [(0,external_vue_namespaceObject.createVNode)("span", {
2624
2675
  "class": "selected-name",
2625
2676
  "onClick": function onClick(e) {
2626
- return _this.handleEditSeleted(e, item, index);
2677
+ return _this.handleEditSelected(e, item, index);
2627
2678
  }
2628
2679
  }, [item.inputInnerText]), (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Error, {
2629
2680
  "class": "selected-clear",
@@ -2679,7 +2730,9 @@ function search_select_objectSpread(e) { for (var r = 1; r < arguments.length; r
2679
2730
 
2680
2731
 
2681
2732
  var INPUT_PADDING_WIDTH = 40;
2682
- var SELETED_MARGING_RIGHT = 6;
2733
+ var SELECTED_MARGIN_RIGHT = 6;
2734
+ var INPUT_MIN_HEIGHT = 26;
2735
+ var MENU_ITEM_MIN_HEIGHT = 32;
2683
2736
  var SearchSelectProps = {
2684
2737
  data: {
2685
2738
  type: Array,
@@ -2693,17 +2746,10 @@ var SearchSelectProps = {
2693
2746
  return [];
2694
2747
  }
2695
2748
  },
2696
- shrink: {
2697
- type: Boolean,
2698
- "default": true
2699
- },
2700
2749
  maxHeight: {
2701
2750
  type: Number,
2702
- "default": 120
2703
- },
2704
- minHeight: {
2705
- type: Number,
2706
- "default": 26
2751
+ // 默认展示12条,加上列表8px的padding
2752
+ "default": MENU_ITEM_MIN_HEIGHT * 12 + 8
2707
2753
  },
2708
2754
  conditions: {
2709
2755
  type: Array,
@@ -2726,7 +2772,7 @@ var SearchSelectProps = {
2726
2772
  type: String,
2727
2773
  "default": ValueBehavior.ALL,
2728
2774
  validator: function validator(v) {
2729
- return [ValueBehavior.ALL, ValueBehavior.NEEDKEY].includes(v);
2775
+ return [ValueBehavior.ALL, ValueBehavior.NEED_KEY].includes(v);
2730
2776
  }
2731
2777
  }
2732
2778
  // deleteBehavior: {
@@ -2800,13 +2846,13 @@ var SearchSelectProps = {
2800
2846
  }
2801
2847
  var list = [];
2802
2848
  v.forEach(function (item) {
2803
- var seleted = selectedList.value.find(function (set) {
2849
+ var selected = selectedList.value.find(function (set) {
2804
2850
  return set.id === item.id && set.name === item.name;
2805
2851
  });
2806
- if ((seleted === null || seleted === void 0 ? void 0 : seleted.toValueKey()) === JSON.stringify(item)) {
2807
- seleted.values = item.values || [];
2808
- seleted.logical = item.logical || SearchLogical.OR;
2809
- list.push(seleted);
2852
+ if ((selected === null || selected === void 0 ? void 0 : selected.toValueKey()) === JSON.stringify(item)) {
2853
+ selected.values = item.values || [];
2854
+ selected.logical = item.logical || SearchLogical.OR;
2855
+ list.push(selected);
2810
2856
  } else {
2811
2857
  var _item$values;
2812
2858
  var searchItem = props.data.find(function (set) {
@@ -2883,18 +2929,18 @@ var SearchSelectProps = {
2883
2929
  return;
2884
2930
  }
2885
2931
  var inputEl = wrapRef.value.querySelector(".".concat(resolveClassName('search-select-container')));
2886
- var maxWidth = wrapRef.value.querySelector('.search-container').clientWidth - SELETED_MARGING_RIGHT - 2;
2932
+ var maxWidth = wrapRef.value.querySelector('.search-container').clientWidth - SELECTED_MARGIN_RIGHT - 2;
2887
2933
  var tagList = inputEl.querySelectorAll('.search-container-selected:not(.overflow-selected)');
2888
2934
  var width = 0;
2889
2935
  var index = 0;
2890
2936
  var i = 0;
2891
2937
  while (index === 0 && width <= maxWidth - INPUT_PADDING_WIDTH && i <= tagList.length - 1) {
2892
2938
  var el = tagList[i];
2893
- if (el.clientHeight > props.minHeight) {
2939
+ if (el.clientHeight > INPUT_MIN_HEIGHT) {
2894
2940
  overflowIndex.value = i;
2895
2941
  return;
2896
2942
  }
2897
- width += el ? el.clientWidth + SELETED_MARGING_RIGHT : 0;
2943
+ width += el ? el.clientWidth + SELECTED_MARGIN_RIGHT : 0;
2898
2944
  if (width >= maxWidth - INPUT_PADDING_WIDTH) {
2899
2945
  index = i;
2900
2946
  }
@@ -2933,6 +2979,7 @@ var SearchSelectProps = {
2933
2979
  var list = selectedList.value.slice();
2934
2980
  list.splice(typeof index === 'number' ? index : selectedList.value.length - 1, 1);
2935
2981
  onValidate('');
2982
+ inputRef.value.refleshMenuHover();
2936
2983
  emit('update:modelValue', list.map(function (item) {
2937
2984
  return item.toValue();
2938
2985
  }));
@@ -2980,7 +3027,7 @@ var SearchSelectProps = {
2980
3027
  var _this = this,
2981
3028
  _this$$slots$prepend,
2982
3029
  _this$$slots2;
2983
- var maxHeight = "".concat(!this.shrink || this.isFocus ? this.maxHeight : this.minHeight, "px");
3030
+ var maxHeight = "".concat(this.isFocus ? this.maxHeight : INPUT_MIN_HEIGHT, "px");
2984
3031
  var showCondition = !!this.selectedList.length && this.selectedList.slice(-1)[0].type !== 'condition';
2985
3032
  var menuSlots = Object.assign({}, this.$slots.menu ? {
2986
3033
  menu: function menu(data) {
@@ -2990,24 +3037,25 @@ var SearchSelectProps = {
2990
3037
  } : {});
2991
3038
  // render
2992
3039
  return (0,external_vue_namespaceObject.createVNode)("div", {
2993
- "class": this.resolveClassName('search-select'),
2994
- "ref": "wrapRef"
3040
+ "ref": "wrapRef",
3041
+ "class": this.resolveClassName('search-select')
2995
3042
  }, [(0,external_vue_namespaceObject.createVNode)("div", {
2996
3043
  "class": _defineProperty(_defineProperty({}, this.resolveClassName('search-select-container'), true), 'is-focus', this.isFocus),
2997
3044
  "onClick": this.handleWrapClick
2998
3045
  }, [(0,external_vue_namespaceObject.createVNode)("div", {
2999
3046
  "class": "search-prefix"
3000
3047
  }, [(_this$$slots$prepend = (_this$$slots2 = this.$slots).prepend) === null || _this$$slots$prepend === void 0 ? void 0 : _this$$slots$prepend.call(_this$$slots2)]), (0,external_vue_namespaceObject.createVNode)("div", {
3001
- "class": "search-container",
3002
3048
  "style": {
3003
- maxHeight: maxHeight
3004
- }
3049
+ 'max-height': "".concat(maxHeight, "px")
3050
+ },
3051
+ "class": "search-container"
3005
3052
  }, [(0,external_vue_namespaceObject.createVNode)(selected, {
3006
- "data": this.copyData,
3007
3053
  "conditions": this.localConditions,
3008
- "selectedList": this.selectedList,
3009
- "overflowIndex": this.overflowIndex,
3054
+ "data": this.copyData,
3010
3055
  "getMenuList": this.getMenuList,
3056
+ "maxHeight": this.maxHeight,
3057
+ "overflowIndex": this.overflowIndex,
3058
+ "selectedList": this.selectedList,
3011
3059
  "validateValues": this.validateValues,
3012
3060
  "valueBehavior": this.valueBehavior,
3013
3061
  "onDelete": this.handleDeleteSelected,
@@ -3016,13 +3064,14 @@ var SearchSelectProps = {
3016
3064
  "class": "search-container-input"
3017
3065
  }, [(0,external_vue_namespaceObject.createVNode)(input, {
3018
3066
  "ref": "inputRef",
3019
- "data": this.copyData,
3020
- "showInputBefore": !this.selectedList.length,
3021
- "showCondition": showCondition,
3022
- "conditions": this.localConditions,
3023
- "placeholder": this.placeholder || this.t.pleaseSelect,
3024
3067
  "clickOutside": this.handleInputOutside,
3068
+ "conditions": this.localConditions,
3069
+ "data": this.copyData,
3025
3070
  "getMenuList": this.getMenuList,
3071
+ "maxHeight": this.maxHeight,
3072
+ "placeholder": this.placeholder || this.t.pleaseSelect,
3073
+ "showCondition": showCondition,
3074
+ "showInputBefore": !this.selectedList.length,
3026
3075
  "validateValues": this.validateValues,
3027
3076
  "valueBehavior": this.valueBehavior,
3028
3077
  "onAdd": this.handleAddSelected,
@@ -3035,8 +3084,8 @@ var SearchSelectProps = {
3035
3084
  "class": "search-clear",
3036
3085
  "onClick": this.handleClearAll
3037
3086
  }, null), this.$slots.append ? this.$slots.append() : (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Search, {
3038
- "onClick": this.handleClickSearch,
3039
- "class": "search-nextfix-icon ".concat(this.isFocus ? 'is-focus' : '')
3087
+ "class": "search-nextfix-icon ".concat(this.isFocus ? 'is-focus' : ''),
3088
+ "onClick": this.handleClickSearch
3040
3089
  }, null)])]), !!this.validateStr.length && (0,external_vue_namespaceObject.createVNode)("div", {
3041
3090
  "class": this.resolveClassName('search-select-tips')
3042
3091
  }, [this.$slots.validate ? this.$slots.validate() : (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [(0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.ExclamationCircleShape, {