bkui-vue 2.0.1-beta.11 → 2.0.1-beta.110

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 (523) hide show
  1. package/README.md +15 -0
  2. package/dist/index.cjs.js +142 -168
  3. package/dist/index.esm.js +29125 -32074
  4. package/dist/index.umd.js +142 -168
  5. package/dist/style.css +1 -1
  6. package/dist/style.variable.css +1 -1
  7. package/lib/affix/affix.variable.css +1 -0
  8. package/lib/affix/index.d.ts +111 -57
  9. package/lib/affix/index.js +24 -24
  10. package/lib/alert/alert.d.ts +5 -12
  11. package/lib/alert/alert.variable.css +1 -0
  12. package/lib/alert/index.d.ts +131 -93
  13. package/lib/alert/index.js +25 -25
  14. package/lib/animate-number/index.d.ts +96 -33
  15. package/lib/animate-number/index.js +7 -8
  16. package/lib/backtop/backtop.d.ts +1 -1
  17. package/lib/backtop/backtop.variable.css +1 -0
  18. package/lib/backtop/index.d.ts +118 -70
  19. package/lib/backtop/index.js +16 -17
  20. package/lib/badge/badge.variable.css +1 -0
  21. package/lib/badge/index.d.ts +152 -119
  22. package/lib/badge/index.js +20 -20
  23. package/lib/breadcrumb/breadcrumb.variable.css +1 -0
  24. package/lib/breadcrumb/index.d.ts +119 -67
  25. package/lib/breadcrumb/index.js +17 -17
  26. package/lib/button/button.css +188 -144
  27. package/lib/button/button.d.ts +10 -10
  28. package/lib/button/button.less +74 -71
  29. package/lib/button/button.variable.css +189 -144
  30. package/lib/button/index.d.ts +160 -124
  31. package/lib/button/index.js +26 -26
  32. package/lib/card/card.variable.css +1 -0
  33. package/lib/card/index.d.ts +157 -128
  34. package/lib/card/index.js +22 -20
  35. package/lib/cascader/cascader-panel.d.ts +6 -1
  36. package/lib/cascader/cascader.css +4 -0
  37. package/lib/cascader/cascader.d.ts +8 -4
  38. package/lib/cascader/cascader.less +5 -0
  39. package/lib/cascader/cascader.variable.css +5 -0
  40. package/lib/cascader/index.d.ts +355 -393
  41. package/lib/cascader/index.js +377 -308
  42. package/lib/cascader/interface.d.ts +1 -1
  43. package/lib/checkbox/checkbox-group.d.ts +0 -16
  44. package/lib/checkbox/checkbox.css +8 -0
  45. package/lib/checkbox/checkbox.d.ts +40 -8
  46. package/lib/checkbox/checkbox.less +12 -0
  47. package/lib/checkbox/checkbox.variable.css +9 -0
  48. package/lib/checkbox/index.d.ts +194 -127
  49. package/lib/checkbox/index.js +65 -52
  50. package/lib/checkbox/type.d.ts +1 -1
  51. package/lib/code-diff/code-diff.variable.css +1 -0
  52. package/lib/code-diff/index.d.ts +82 -65
  53. package/lib/code-diff/index.js +446 -389
  54. package/lib/collapse/collapse-panel.d.ts +5 -5
  55. package/lib/collapse/collapse.variable.css +1 -0
  56. package/lib/collapse/index.d.ts +180 -161
  57. package/lib/collapse/index.js +31 -30
  58. package/lib/collapse/props.d.ts +2 -2
  59. package/lib/collapse/utils.d.ts +2 -2
  60. package/lib/collapse-transition/collapse-transition.variable.css +1 -0
  61. package/lib/collapse-transition/index.d.ts +94 -19
  62. package/lib/collapse-transition/index.js +3 -4
  63. package/lib/color-picker/color-picker.d.ts +17 -1
  64. package/lib/color-picker/color-picker.variable.css +1 -0
  65. package/lib/color-picker/index.d.ts +168 -124
  66. package/lib/color-picker/index.js +93 -88
  67. package/lib/components.d.ts +30 -32
  68. package/lib/components.js +29 -31
  69. package/lib/config-provider/config-provider.variable.css +1 -0
  70. package/lib/config-provider/index.d.ts +228 -161
  71. package/lib/config-provider/index.js +17 -17
  72. package/lib/container/container.d.ts +1 -1
  73. package/lib/container/container.variable.css +1 -0
  74. package/lib/container/index.d.ts +85 -74
  75. package/lib/container/index.js +32 -35
  76. package/lib/date-picker/base/date-table.d.ts +1 -1
  77. package/lib/date-picker/base/month-table.d.ts +1 -1
  78. package/lib/date-picker/base/picker-dropdown.d.ts +2 -2
  79. package/lib/date-picker/base/time-spinner.d.ts +3 -3
  80. package/lib/date-picker/base/year-table.d.ts +1 -1
  81. package/lib/date-picker/date-picker.d.ts +7 -15
  82. package/lib/date-picker/date-picker.variable.css +1 -0
  83. package/lib/date-picker/index.d.ts +356 -399
  84. package/lib/date-picker/index.js +343 -297
  85. package/lib/date-picker/interface.d.ts +9 -9
  86. package/lib/date-picker/panel/date-range.d.ts +6 -6
  87. package/lib/date-picker/panel/date.d.ts +2 -2
  88. package/lib/date-picker/panel/time-range.d.ts +3 -12
  89. package/lib/date-picker/panel/time.d.ts +3 -12
  90. package/lib/date-picker/props.d.ts +1 -5
  91. package/lib/date-picker/time-picker.d.ts +7 -14
  92. package/lib/date-picker/utils.d.ts +1 -1
  93. package/lib/dialog/dialog.d.ts +47 -31
  94. package/lib/dialog/dialog.variable.css +1 -0
  95. package/lib/dialog/index.d.ts +309 -305
  96. package/lib/dialog/index.js +252 -249
  97. package/lib/dialog/props.d.ts +20 -13
  98. package/lib/directives/index.d.ts +4 -3
  99. package/lib/directives/index.js +219 -197
  100. package/lib/directives/tooltips.d.ts +1 -1
  101. package/lib/dist.index.js +2 -4
  102. package/lib/divider/divider.d.ts +5 -5
  103. package/lib/divider/divider.variable.css +1 -0
  104. package/lib/divider/index.d.ts +116 -62
  105. package/lib/divider/index.js +4 -5
  106. package/lib/divider/props.d.ts +2 -2
  107. package/lib/dropdown/dropdown-item.d.ts +1 -1
  108. package/lib/dropdown/dropdown-menu.d.ts +1 -1
  109. package/lib/dropdown/dropdown.d.ts +7 -7
  110. package/lib/dropdown/dropdown.variable.css +1 -0
  111. package/lib/dropdown/index.d.ts +144 -102
  112. package/lib/dropdown/index.js +32 -32
  113. package/lib/exception/exception.d.ts +9 -9
  114. package/lib/exception/exception.variable.css +1 -0
  115. package/lib/exception/index.d.ts +107 -46
  116. package/lib/exception/index.js +31 -31
  117. package/lib/exception/typings/index.d.ts +1 -1
  118. package/lib/fixed-navbar/fixed-navbar.variable.css +1 -0
  119. package/lib/fixed-navbar/index.d.ts +113 -59
  120. package/lib/fixed-navbar/index.js +4 -5
  121. package/lib/form/form-item.d.ts +7 -19
  122. package/lib/form/form.d.ts +3 -3
  123. package/lib/form/form.variable.css +1 -0
  124. package/lib/form/index.d.ts +139 -94
  125. package/lib/form/index.js +44 -42
  126. package/lib/form/type.d.ts +2 -2
  127. package/lib/icon/angle-double-down-line.js +17 -17
  128. package/lib/icon/angle-double-left-line.js +17 -17
  129. package/lib/icon/angle-double-left.js +17 -17
  130. package/lib/icon/angle-double-right-line.js +17 -17
  131. package/lib/icon/angle-double-right.js +17 -17
  132. package/lib/icon/angle-double-up-line.js +17 -17
  133. package/lib/icon/angle-down-fill.js +17 -17
  134. package/lib/icon/angle-down-line.js +17 -17
  135. package/lib/icon/angle-down.js +17 -17
  136. package/lib/icon/angle-left.js +17 -17
  137. package/lib/icon/angle-right.js +17 -17
  138. package/lib/icon/angle-up-fill.js +17 -17
  139. package/lib/icon/angle-up.js +17 -17
  140. package/lib/icon/archive-fill.js +17 -17
  141. package/lib/icon/arrows-left.js +17 -17
  142. package/lib/icon/arrows-right.js +17 -17
  143. package/lib/icon/assistant.js +17 -17
  144. package/lib/icon/audio-fill.js +17 -17
  145. package/lib/icon/bk.js +17 -17
  146. package/lib/icon/circle.js +17 -17
  147. package/lib/icon/close-line.js +17 -17
  148. package/lib/icon/close.js +17 -17
  149. package/lib/icon/code.js +17 -17
  150. package/lib/icon/cog-shape.js +17 -17
  151. package/lib/icon/collapse-left.js +17 -17
  152. package/lib/icon/copy-shape.js +17 -17
  153. package/lib/icon/copy.js +17 -17
  154. package/lib/icon/data-shape.js +17 -17
  155. package/lib/icon/del.js +17 -17
  156. package/lib/icon/doc-fill.js +17 -17
  157. package/lib/icon/done.js +17 -17
  158. package/lib/icon/down-shape.js +17 -17
  159. package/lib/icon/down-small.js +17 -17
  160. package/lib/icon/edit-line.js +17 -17
  161. package/lib/icon/ellipsis.js +17 -17
  162. package/lib/icon/enlarge-line.js +17 -17
  163. package/lib/icon/error.js +17 -17
  164. package/lib/icon/excel-fill.js +17 -17
  165. package/lib/icon/exclamation-circle-shape.js +17 -17
  166. package/lib/icon/eye.js +17 -17
  167. package/lib/icon/filliscreen-line.js +17 -17
  168. package/lib/icon/fix-line.js +17 -17
  169. package/lib/icon/fix-shape.js +17 -17
  170. package/lib/icon/folder-open.js +17 -17
  171. package/lib/icon/folder-shape-open.js +17 -17
  172. package/lib/icon/folder-shape.js +17 -17
  173. package/lib/icon/folder.js +17 -17
  174. package/lib/icon/funnel.js +17 -17
  175. package/lib/icon/grag-fill.js +17 -17
  176. package/lib/icon/help-document-fill.js +17 -17
  177. package/lib/icon/help-fill.js +17 -17
  178. package/lib/icon/help.js +17 -17
  179. package/lib/icon/image-fill.js +17 -17
  180. package/lib/icon/img-error.js +17 -17
  181. package/lib/icon/img-placehoulder.js +17 -17
  182. package/lib/icon/index.d.ts +11 -11
  183. package/lib/icon/index.js +11 -11
  184. package/lib/icon/info-line.js +17 -17
  185. package/lib/icon/info.js +17 -17
  186. package/lib/icon/left-shape.js +17 -17
  187. package/lib/icon/left-turn-line.js +17 -17
  188. package/lib/icon/loading.js +17 -17
  189. package/lib/icon/narrow-line.js +17 -17
  190. package/lib/icon/original.js +17 -17
  191. package/lib/icon/pdf-fill.js +17 -17
  192. package/lib/icon/play-shape.js +17 -17
  193. package/lib/icon/plus.js +17 -17
  194. package/lib/icon/ppt-fill.js +17 -17
  195. package/lib/icon/qq.js +17 -17
  196. package/lib/icon/right-shape.js +17 -17
  197. package/lib/icon/right-turn-line.js +17 -17
  198. package/lib/icon/search.js +17 -17
  199. package/lib/icon/share.js +17 -17
  200. package/lib/icon/spinner.js +17 -17
  201. package/lib/icon/success.js +17 -17
  202. package/lib/icon/switcher-loading.js +17 -17
  203. package/lib/icon/text-all.js +17 -17
  204. package/lib/icon/text-file.js +17 -17
  205. package/lib/icon/text-fill.js +17 -17
  206. package/lib/icon/transfer.js +17 -17
  207. package/lib/icon/tree-application-shape.js +17 -17
  208. package/lib/icon/unfull-screen.js +17 -17
  209. package/lib/icon/unvisible.js +17 -17
  210. package/lib/icon/up-shape.js +17 -17
  211. package/lib/icon/upload.js +17 -17
  212. package/lib/icon/video-fill.js +17 -17
  213. package/lib/icon/warn.js +17 -17
  214. package/lib/icon/weixin-pro.js +17 -17
  215. package/lib/icon/weixin.js +17 -17
  216. package/lib/image/image-viewer.d.ts +1 -1
  217. package/lib/image/image-viewer.variable.css +1 -0
  218. package/lib/image/image.variable.css +1 -0
  219. package/lib/image/index.d.ts +149 -113
  220. package/lib/image/index.js +46 -48
  221. package/lib/index.d.ts +9 -3
  222. package/lib/index.js +5 -29
  223. package/lib/info-box/index.js +250 -250
  224. package/lib/info-box/info-box.d.ts +15 -15
  225. package/lib/info-box/info-box.variable.css +1 -0
  226. package/lib/input/index.d.ts +299 -332
  227. package/lib/input/index.js +110 -561
  228. package/lib/input/input.css +23 -1
  229. package/lib/input/input.d.ts +15 -15
  230. package/lib/input/input.less +30 -1
  231. package/lib/input/input.variable.css +24 -1
  232. package/lib/link/index.d.ts +127 -78
  233. package/lib/link/index.js +5 -5
  234. package/lib/link/link.d.ts +5 -5
  235. package/lib/link/link.variable.css +1 -0
  236. package/lib/loading/index.d.ts +162 -135
  237. package/lib/loading/index.js +43 -40
  238. package/lib/loading/loading.d.ts +9 -9
  239. package/lib/loading/loading.variable.css +1 -0
  240. package/lib/locale/index.d.ts +1 -1
  241. package/lib/menu/index.d.ts +131 -51
  242. package/lib/menu/index.js +46 -27
  243. package/lib/menu/menu-group.d.ts +9 -0
  244. package/lib/menu/menu-item.d.ts +9 -0
  245. package/lib/menu/menu.css +29 -17
  246. package/lib/menu/menu.less +33 -18
  247. package/lib/menu/menu.variable.css +30 -17
  248. package/lib/menu/submenu.d.ts +1 -0
  249. package/lib/menu/submenu.variable.css +1 -0
  250. package/lib/menu/utils.d.ts +3 -3
  251. package/lib/message/index.js +43 -42
  252. package/lib/message/message.css +2 -1
  253. package/lib/message/message.less +3 -2
  254. package/lib/message/message.variable.css +3 -1
  255. package/lib/message/messageConstructor.d.ts +21 -21
  256. package/lib/modal/index.d.ts +214 -159
  257. package/lib/modal/index.js +68 -47
  258. package/lib/modal/modal.d.ts +24 -8
  259. package/lib/modal/modal.variable.css +1 -0
  260. package/lib/modal/props.mixin.d.ts +10 -3
  261. package/lib/navigation/index.d.ts +188 -152
  262. package/lib/navigation/index.js +27 -29
  263. package/lib/navigation/navigation.d.ts +1 -1
  264. package/lib/navigation/navigation.variable.css +1 -0
  265. package/lib/notify/index.js +25 -24
  266. package/lib/notify/notify.variable.css +1 -0
  267. package/lib/notify/notifyConstructor.d.ts +5 -5
  268. package/lib/overflow-title/components/overflow-title.d.ts +45 -16
  269. package/lib/overflow-title/index.d.ts +298 -328
  270. package/lib/overflow-title/index.js +85 -28
  271. package/lib/overflow-title/overflow-title.css +3 -0
  272. package/lib/overflow-title/overflow-title.less +4 -0
  273. package/lib/overflow-title/overflow-title.variable.css +3 -0
  274. package/lib/overflow-title/props.d.ts +36 -21
  275. package/lib/pagination/index.d.ts +198 -203
  276. package/lib/pagination/index.js +128 -68
  277. package/lib/pagination/pagination.css +8 -8
  278. package/lib/pagination/pagination.d.ts +0 -13
  279. package/lib/pagination/pagination.less +14 -13
  280. package/lib/pagination/pagination.variable.css +9 -8
  281. package/lib/pagination/type.d.ts +1 -1
  282. package/lib/pagination/use-limit.d.ts +1 -1
  283. package/lib/pagination/use-total.d.ts +1 -1
  284. package/lib/plugin-popover/index.js +311 -304
  285. package/lib/pop-confirm/index.d.ts +162 -148
  286. package/lib/pop-confirm/index.js +40 -35
  287. package/lib/pop-confirm/pop-confirm.css +3 -1
  288. package/lib/pop-confirm/pop-confirm.d.ts +10 -20
  289. package/lib/pop-confirm/pop-confirm.less +3 -1
  290. package/lib/pop-confirm/pop-confirm.variable.css +4 -1
  291. package/lib/pop-confirm/props.d.ts +8 -11
  292. package/lib/popover/const.d.ts +3 -3
  293. package/lib/popover/content.d.ts +6 -3
  294. package/lib/popover/index.d.ts +411 -380
  295. package/lib/popover/index.js +311 -304
  296. package/lib/popover/plugin-popover.d.ts +1 -1
  297. package/lib/popover/popover.d.ts +51 -8
  298. package/lib/popover/popover.variable.css +1 -0
  299. package/lib/popover/props.d.ts +28 -4
  300. package/lib/popover/use-floating.d.ts +2 -2
  301. package/lib/popover/use-popover-init.d.ts +2 -1
  302. package/lib/popover/utils.d.ts +2 -0
  303. package/lib/popover2/index.d.ts +83 -8
  304. package/lib/popover2/index.js +2 -2
  305. package/lib/preset.d.ts +0 -1
  306. package/lib/preset.js +0 -1
  307. package/lib/process/index.d.ts +137 -93
  308. package/lib/process/index.js +229 -229
  309. package/lib/process/process.variable.css +1 -0
  310. package/lib/progress/index.d.ts +192 -183
  311. package/lib/progress/index.js +31 -33
  312. package/lib/progress/progress.d.ts +9 -9
  313. package/lib/progress/progress.variable.css +1 -0
  314. package/lib/radio/index.d.ts +155 -106
  315. package/lib/radio/index.js +76 -63
  316. package/lib/radio/radio-button.d.ts +7 -7
  317. package/lib/radio/radio-group.d.ts +7 -7
  318. package/lib/radio/radio.d.ts +7 -7
  319. package/lib/radio/radio.variable.css +1 -0
  320. package/lib/radio/type.d.ts +1 -1
  321. package/lib/rate/index.d.ts +112 -55
  322. package/lib/rate/index.js +28 -27
  323. package/lib/rate/rate.variable.css +1 -0
  324. package/lib/resize-layout/index.d.ts +204 -157
  325. package/lib/resize-layout/index.js +54 -34
  326. package/lib/resize-layout/resize-layout.d.ts +18 -7
  327. package/lib/resize-layout/resize-layout.variable.css +1 -0
  328. package/lib/scrollbar/css/scrollbar.css +109 -0
  329. package/lib/scrollbar/css/scrollbar.less +139 -0
  330. package/lib/scrollbar/{scrollbar.variable.css → css/scrollbar.variable.css} +96 -61
  331. package/lib/scrollbar/handlers/click-rail.d.ts +2 -0
  332. package/lib/scrollbar/handlers/drag-thumb.d.ts +1 -0
  333. package/lib/scrollbar/handlers/keyboard.d.ts +2 -0
  334. package/lib/scrollbar/handlers/mouse-wheel.d.ts +2 -0
  335. package/lib/scrollbar/handlers/touch.d.ts +4 -0
  336. package/lib/scrollbar/helper/class-names.d.ts +21 -0
  337. package/lib/scrollbar/helper/css.d.ts +3 -0
  338. package/lib/scrollbar/helper/dom.d.ts +4 -0
  339. package/lib/scrollbar/helper/event-manager.d.ts +20 -0
  340. package/lib/scrollbar/helper/util.d.ts +11 -0
  341. package/lib/scrollbar/index.d.ts +133 -13
  342. package/lib/scrollbar/index.js +1380 -18482
  343. package/lib/scrollbar/process-scroll-diff.d.ts +1 -0
  344. package/lib/scrollbar/update-geometry.d.ts +8 -0
  345. package/lib/search-select/index.d.ts +946 -701
  346. package/lib/search-select/index.js +644 -486
  347. package/lib/search-select/input.d.ts +20 -8
  348. package/lib/search-select/menu.d.ts +13 -1
  349. package/lib/search-select/search-select.css +45 -47
  350. package/lib/search-select/search-select.d.ts +207 -160
  351. package/lib/search-select/search-select.less +41 -41
  352. package/lib/search-select/search-select.variable.css +46 -47
  353. package/lib/search-select/selected.d.ts +209 -127
  354. package/lib/search-select/utils.d.ts +6 -6
  355. package/lib/select/common.d.ts +4 -4
  356. package/lib/select/index.d.ts +1457 -1384
  357. package/lib/select/index.js +603 -477
  358. package/lib/select/option.d.ts +6 -6
  359. package/lib/select/select.css +9 -4
  360. package/lib/select/select.d.ts +285 -148
  361. package/lib/select/select.less +11 -4
  362. package/lib/select/select.variable.css +10 -4
  363. package/lib/select/selectTagInput.d.ts +9 -8
  364. package/lib/select/type.d.ts +10 -11
  365. package/lib/shared/frame-throttle.d.ts +15 -0
  366. package/lib/shared/index.d.ts +2 -1
  367. package/lib/shared/index.js +166 -101
  368. package/lib/shared/popover.d.ts +3 -3
  369. package/lib/shared/token.d.ts +1 -1
  370. package/lib/shared/vue-types.d.ts +50 -50
  371. package/lib/shared/z-index-manager.d.ts +6 -6
  372. package/lib/sideslider/index.d.ts +220 -182
  373. package/lib/sideslider/index.js +239 -237
  374. package/lib/sideslider/sideslider.css +7 -8
  375. package/lib/sideslider/sideslider.d.ts +24 -8
  376. package/lib/sideslider/sideslider.less +7 -8
  377. package/lib/sideslider/sideslider.variable.css +8 -8
  378. package/lib/slider/index.d.ts +210 -214
  379. package/lib/slider/index.js +246 -249
  380. package/lib/slider/slider.variable.css +1 -0
  381. package/lib/steps/index.d.ts +155 -131
  382. package/lib/steps/index.js +234 -234
  383. package/lib/steps/steps.d.ts +8 -18
  384. package/lib/steps/steps.variable.css +1 -0
  385. package/lib/styles/index.d.ts +1 -0
  386. package/lib/styles/mixins/animate.variable.css +1 -0
  387. package/lib/styles/mixins/popper.variable.css +1 -0
  388. package/lib/styles/mixins/scroll.variable.css +1 -0
  389. package/lib/styles/reset.variable.css +1 -0
  390. package/lib/styles/themes/themes.less +1 -0
  391. package/lib/swiper/index.d.ts +127 -81
  392. package/lib/swiper/index.js +23 -23
  393. package/lib/swiper/swiper.variable.css +1 -0
  394. package/lib/switcher/index.d.ts +179 -157
  395. package/lib/switcher/index.js +24 -22
  396. package/lib/switcher/switcher.d.ts +9 -9
  397. package/lib/switcher/switcher.variable.css +1 -0
  398. package/lib/tab/index.d.ts +220 -258
  399. package/lib/tab/index.js +79 -69
  400. package/lib/tab/props.d.ts +27 -52
  401. package/lib/tab/tab-nav.d.ts +26 -66
  402. package/lib/tab/tab-panel.d.ts +27 -5
  403. package/lib/tab/tab.css +64 -0
  404. package/lib/tab/tab.d.ts +10 -54
  405. package/lib/tab/tab.less +91 -4
  406. package/lib/tab/tab.variable.css +65 -0
  407. package/lib/table/components/ghost-body.d.ts +2 -0
  408. package/lib/table/components/table-cell.d.ts +22 -0
  409. package/lib/table/components/table-column.d.ts +24 -127
  410. package/lib/table/const.d.ts +23 -10
  411. package/lib/table/events.d.ts +16 -112
  412. package/lib/table/hooks/use-cell.d.ts +20 -0
  413. package/lib/table/hooks/use-checkbox-tooltip.d.ts +11 -0
  414. package/lib/table/hooks/use-column-resize.d.ts +7 -0
  415. package/lib/table/hooks/use-column-template.d.ts +5 -0
  416. package/lib/table/hooks/use-columns.d.ts +69 -0
  417. package/lib/table/{plugins → hooks}/use-draggable.d.ts +2 -2
  418. package/lib/table/hooks/use-fixed-column.d.ts +10 -0
  419. package/lib/table/hooks/use-head.d.ts +16 -0
  420. package/lib/table/hooks/use-layout.d.ts +25 -0
  421. package/lib/table/hooks/use-pagination.d.ts +16 -0
  422. package/lib/table/hooks/use-render.d.ts +21 -0
  423. package/lib/table/hooks/use-rows.d.ts +30 -0
  424. package/lib/table/hooks/use-settings.d.ts +138 -0
  425. package/lib/table/{plugins → hooks}/use-shift-key.d.ts +4 -2
  426. package/lib/table/index.d.ts +412 -1029
  427. package/lib/table/index.js +4698 -20825
  428. package/lib/table/plugins/head-filter.css +5 -0
  429. package/lib/table/plugins/head-filter.d.ts +2 -1
  430. package/lib/table/plugins/head-filter.less +4 -0
  431. package/lib/table/plugins/head-filter.variable.css +6 -0
  432. package/lib/table/plugins/head-sort.variable.css +1 -0
  433. package/lib/table/plugins/settings.css +11 -1
  434. package/lib/table/plugins/settings.less +12 -1
  435. package/lib/table/plugins/settings.variable.css +12 -1
  436. package/lib/table/props.d.ts +127 -62
  437. package/lib/table/table.css +503 -302
  438. package/lib/table/table.d.ts +51 -185
  439. package/lib/table/table.less +244 -112
  440. package/lib/table/table.variable.css +504 -302
  441. package/lib/table/utils.d.ts +44 -21
  442. package/lib/table-column/index.d.ts +156 -369
  443. package/lib/table-column/index.js +143 -62
  444. package/lib/tag/index.d.ts +147 -100
  445. package/lib/tag/index.js +21 -22
  446. package/lib/tag/tag.css +1 -1
  447. package/lib/tag/tag.d.ts +5 -5
  448. package/lib/tag/tag.less +1 -1
  449. package/lib/tag/tag.variable.css +2 -1
  450. package/lib/tag-input/common.d.ts +2 -2
  451. package/lib/tag-input/index.d.ts +595 -712
  452. package/lib/tag-input/index.js +150 -17391
  453. package/lib/tag-input/tag-input.css +12 -9
  454. package/lib/tag-input/tag-input.d.ts +60 -24
  455. package/lib/tag-input/tag-input.less +13 -9
  456. package/lib/tag-input/tag-input.variable.css +13 -9
  457. package/lib/tag-input/tag-props.d.ts +25 -2
  458. package/lib/time-picker/index.d.ts +391 -455
  459. package/lib/time-picker/time-picker.variable.css +1 -0
  460. package/lib/timeline/index.d.ts +131 -64
  461. package/lib/timeline/index.js +8 -8
  462. package/lib/timeline/timeline.variable.css +1 -0
  463. package/lib/transfer/const.d.ts +2 -2
  464. package/lib/transfer/index.d.ts +206 -191
  465. package/lib/transfer/index.js +3 -5
  466. package/lib/transfer/transfer.variable.css +1 -0
  467. package/lib/tree/constant.d.ts +22 -20
  468. package/lib/tree/index.d.ts +329 -357
  469. package/lib/tree/index.js +176 -17389
  470. package/lib/tree/props.d.ts +18 -11
  471. package/lib/tree/tree.css +103 -69
  472. package/lib/tree/tree.d.ts +16 -10
  473. package/lib/tree/tree.variable.css +104 -69
  474. package/lib/tree/use-empty.d.ts +1 -1
  475. package/lib/tree/use-node-action.d.ts +10 -9
  476. package/lib/tree/use-node-async.d.ts +2 -1
  477. package/lib/tree/use-node-attribute.d.ts +42 -34
  478. package/lib/tree/use-search.d.ts +1 -1
  479. package/lib/tree/use-tree-init.d.ts +8 -5
  480. package/lib/tree/util.d.ts +21 -21
  481. package/lib/upload/index.d.ts +294 -286
  482. package/lib/upload/index.js +398 -316
  483. package/lib/upload/props.d.ts +11 -2
  484. package/lib/upload/upload-list.d.ts +11 -1
  485. package/lib/upload/upload-trigger.d.ts +11 -1
  486. package/lib/upload/upload.d.ts +25 -4
  487. package/lib/upload/upload.type.d.ts +12 -6
  488. package/lib/upload/upload.variable.css +1 -0
  489. package/lib/upload/use-file-handler.d.ts +1 -1
  490. package/lib/virtual-render/index.d.ts +247 -373
  491. package/lib/virtual-render/index.js +223 -162
  492. package/lib/virtual-render/props.d.ts +2 -9
  493. package/lib/virtual-render/use-fix-top.d.ts +1 -1
  494. package/lib/virtual-render/use-scrollbar.d.ts +4 -17
  495. package/lib/virtual-render/v-virtual-render.d.ts +7 -1
  496. package/lib/virtual-render/virtual-render.css +96 -70
  497. package/lib/virtual-render/virtual-render.d.ts +7 -23
  498. package/lib/virtual-render/virtual-render.less +2 -11
  499. package/lib/virtual-render/virtual-render.variable.css +96 -69
  500. package/lib/volar.components.d.ts +2 -0
  501. package/package.json +17 -55
  502. package/lib/scrollbar/scrollbar-core/can-use-dom.d.ts +0 -2
  503. package/lib/scrollbar/scrollbar-core/helpers.d.ts +0 -5
  504. package/lib/scrollbar/scrollbar-core/index.d.ts +0 -241
  505. package/lib/scrollbar/scrollbar-core/mouse-wheel.d.ts +0 -5
  506. package/lib/scrollbar/scrollbar-core/scrollbar-width.d.ts +0 -1
  507. package/lib/scrollbar/scrollbar.css +0 -75
  508. package/lib/scrollbar/scrollbar.less +0 -94
  509. package/lib/table/plugins/col-group.d.ts +0 -38
  510. package/lib/table/plugins/settings.d.ts +0 -16
  511. package/lib/table/plugins/use-active-columns.d.ts +0 -16
  512. package/lib/table/plugins/use-column-resize.d.ts +0 -35
  513. package/lib/table/plugins/use-column-template.d.ts +0 -7
  514. package/lib/table/plugins/use-fixed-column.d.ts +0 -27
  515. package/lib/table/plugins/use-head-cell.d.ts +0 -7
  516. package/lib/table/plugins/use-pagination.d.ts +0 -23
  517. package/lib/table/use-attributes.d.ts +0 -62
  518. package/lib/table/use-column.d.ts +0 -275
  519. package/lib/table/use-common.d.ts +0 -1679
  520. package/lib/table/use-render.d.ts +0 -11
  521. /package/lib/table/{plugins → components}/body-empty.d.ts +0 -0
  522. /package/lib/table/{plugins → hooks}/use-observer-resize.d.ts +0 -0
  523. /package/lib/table/{plugins → hooks}/use-scroll-loading.d.ts +0 -0
@@ -20,304 +20,304 @@ var _typeof = (__webpack_require__(7425)["default"]);
20
20
  function _regeneratorRuntime() {
21
21
  "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
22
22
  module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
23
- return e;
23
+ return exports;
24
24
  }, module.exports.__esModule = true, module.exports["default"] = module.exports;
25
- var t,
26
- e = {},
27
- r = Object.prototype,
28
- n = r.hasOwnProperty,
29
- o = Object.defineProperty || function (t, e, r) {
30
- t[e] = r.value;
25
+ var exports = {},
26
+ Op = Object.prototype,
27
+ hasOwn = Op.hasOwnProperty,
28
+ defineProperty = Object.defineProperty || function (obj, key, desc) {
29
+ obj[key] = desc.value;
31
30
  },
32
- i = "function" == typeof Symbol ? Symbol : {},
33
- a = i.iterator || "@@iterator",
34
- c = i.asyncIterator || "@@asyncIterator",
35
- u = i.toStringTag || "@@toStringTag";
36
- function define(t, e, r) {
37
- return Object.defineProperty(t, e, {
38
- value: r,
31
+ $Symbol = "function" == typeof Symbol ? Symbol : {},
32
+ iteratorSymbol = $Symbol.iterator || "@@iterator",
33
+ asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
34
+ toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
35
+ function define(obj, key, value) {
36
+ return Object.defineProperty(obj, key, {
37
+ value: value,
39
38
  enumerable: !0,
40
39
  configurable: !0,
41
40
  writable: !0
42
- }), t[e];
41
+ }), obj[key];
43
42
  }
44
43
  try {
45
44
  define({}, "");
46
- } catch (t) {
47
- define = function define(t, e, r) {
48
- return t[e] = r;
45
+ } catch (err) {
46
+ define = function define(obj, key, value) {
47
+ return obj[key] = value;
49
48
  };
50
49
  }
51
- function wrap(t, e, r, n) {
52
- var i = e && e.prototype instanceof Generator ? e : Generator,
53
- a = Object.create(i.prototype),
54
- c = new Context(n || []);
55
- return o(a, "_invoke", {
56
- value: makeInvokeMethod(t, r, c)
57
- }), a;
50
+ function wrap(innerFn, outerFn, self, tryLocsList) {
51
+ var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
52
+ generator = Object.create(protoGenerator.prototype),
53
+ context = new Context(tryLocsList || []);
54
+ return defineProperty(generator, "_invoke", {
55
+ value: makeInvokeMethod(innerFn, self, context)
56
+ }), generator;
58
57
  }
59
- function tryCatch(t, e, r) {
58
+ function tryCatch(fn, obj, arg) {
60
59
  try {
61
60
  return {
62
61
  type: "normal",
63
- arg: t.call(e, r)
62
+ arg: fn.call(obj, arg)
64
63
  };
65
- } catch (t) {
64
+ } catch (err) {
66
65
  return {
67
66
  type: "throw",
68
- arg: t
67
+ arg: err
69
68
  };
70
69
  }
71
70
  }
72
- e.wrap = wrap;
73
- var h = "suspendedStart",
74
- l = "suspendedYield",
75
- f = "executing",
76
- s = "completed",
77
- y = {};
71
+ exports.wrap = wrap;
72
+ var ContinueSentinel = {};
78
73
  function Generator() {}
79
74
  function GeneratorFunction() {}
80
75
  function GeneratorFunctionPrototype() {}
81
- var p = {};
82
- define(p, a, function () {
76
+ var IteratorPrototype = {};
77
+ define(IteratorPrototype, iteratorSymbol, function () {
83
78
  return this;
84
79
  });
85
- var d = Object.getPrototypeOf,
86
- v = d && d(d(values([])));
87
- v && v !== r && n.call(v, a) && (p = v);
88
- var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
89
- function defineIteratorMethods(t) {
90
- ["next", "throw", "return"].forEach(function (e) {
91
- define(t, e, function (t) {
92
- return this._invoke(e, t);
80
+ var getProto = Object.getPrototypeOf,
81
+ NativeIteratorPrototype = getProto && getProto(getProto(values([])));
82
+ NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
83
+ var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
84
+ function defineIteratorMethods(prototype) {
85
+ ["next", "throw", "return"].forEach(function (method) {
86
+ define(prototype, method, function (arg) {
87
+ return this._invoke(method, arg);
93
88
  });
94
89
  });
95
90
  }
96
- function AsyncIterator(t, e) {
97
- function invoke(r, o, i, a) {
98
- var c = tryCatch(t[r], t, o);
99
- if ("throw" !== c.type) {
100
- var u = c.arg,
101
- h = u.value;
102
- return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
103
- invoke("next", t, i, a);
104
- }, function (t) {
105
- invoke("throw", t, i, a);
106
- }) : e.resolve(h).then(function (t) {
107
- u.value = t, i(u);
108
- }, function (t) {
109
- return invoke("throw", t, i, a);
91
+ function AsyncIterator(generator, PromiseImpl) {
92
+ function invoke(method, arg, resolve, reject) {
93
+ var record = tryCatch(generator[method], generator, arg);
94
+ if ("throw" !== record.type) {
95
+ var result = record.arg,
96
+ value = result.value;
97
+ return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
98
+ invoke("next", value, resolve, reject);
99
+ }, function (err) {
100
+ invoke("throw", err, resolve, reject);
101
+ }) : PromiseImpl.resolve(value).then(function (unwrapped) {
102
+ result.value = unwrapped, resolve(result);
103
+ }, function (error) {
104
+ return invoke("throw", error, resolve, reject);
110
105
  });
111
106
  }
112
- a(c.arg);
107
+ reject(record.arg);
113
108
  }
114
- var r;
115
- o(this, "_invoke", {
116
- value: function value(t, n) {
109
+ var previousPromise;
110
+ defineProperty(this, "_invoke", {
111
+ value: function value(method, arg) {
117
112
  function callInvokeWithMethodAndArg() {
118
- return new e(function (e, r) {
119
- invoke(t, n, e, r);
113
+ return new PromiseImpl(function (resolve, reject) {
114
+ invoke(method, arg, resolve, reject);
120
115
  });
121
116
  }
122
- return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
117
+ return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
123
118
  }
124
119
  });
125
120
  }
126
- function makeInvokeMethod(e, r, n) {
127
- var o = h;
128
- return function (i, a) {
129
- if (o === f) throw new Error("Generator is already running");
130
- if (o === s) {
131
- if ("throw" === i) throw a;
132
- return {
133
- value: t,
134
- done: !0
135
- };
121
+ function makeInvokeMethod(innerFn, self, context) {
122
+ var state = "suspendedStart";
123
+ return function (method, arg) {
124
+ if ("executing" === state) throw new Error("Generator is already running");
125
+ if ("completed" === state) {
126
+ if ("throw" === method) throw arg;
127
+ return doneResult();
136
128
  }
137
- for (n.method = i, n.arg = a;;) {
138
- var c = n.delegate;
139
- if (c) {
140
- var u = maybeInvokeDelegate(c, n);
141
- if (u) {
142
- if (u === y) continue;
143
- return u;
129
+ for (context.method = method, context.arg = arg;;) {
130
+ var delegate = context.delegate;
131
+ if (delegate) {
132
+ var delegateResult = maybeInvokeDelegate(delegate, context);
133
+ if (delegateResult) {
134
+ if (delegateResult === ContinueSentinel) continue;
135
+ return delegateResult;
144
136
  }
145
137
  }
146
- if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
147
- if (o === h) throw o = s, n.arg;
148
- n.dispatchException(n.arg);
149
- } else "return" === n.method && n.abrupt("return", n.arg);
150
- o = f;
151
- var p = tryCatch(e, r, n);
152
- if ("normal" === p.type) {
153
- if (o = n.done ? s : l, p.arg === y) continue;
138
+ if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
139
+ if ("suspendedStart" === state) throw state = "completed", context.arg;
140
+ context.dispatchException(context.arg);
141
+ } else "return" === context.method && context.abrupt("return", context.arg);
142
+ state = "executing";
143
+ var record = tryCatch(innerFn, self, context);
144
+ if ("normal" === record.type) {
145
+ if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
154
146
  return {
155
- value: p.arg,
156
- done: n.done
147
+ value: record.arg,
148
+ done: context.done
157
149
  };
158
150
  }
159
- "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
151
+ "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
160
152
  }
161
153
  };
162
154
  }
163
- function maybeInvokeDelegate(e, r) {
164
- var n = r.method,
165
- o = e.iterator[n];
166
- if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
167
- var i = tryCatch(o, e.iterator, r.arg);
168
- if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
169
- var a = i.arg;
170
- return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
155
+ function maybeInvokeDelegate(delegate, context) {
156
+ var methodName = context.method,
157
+ method = delegate.iterator[methodName];
158
+ if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
159
+ var record = tryCatch(method, delegate.iterator, context.arg);
160
+ if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
161
+ var info = record.arg;
162
+ return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
171
163
  }
172
- function pushTryEntry(t) {
173
- var e = {
174
- tryLoc: t[0]
164
+ function pushTryEntry(locs) {
165
+ var entry = {
166
+ tryLoc: locs[0]
175
167
  };
176
- 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
168
+ 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
177
169
  }
178
- function resetTryEntry(t) {
179
- var e = t.completion || {};
180
- e.type = "normal", delete e.arg, t.completion = e;
170
+ function resetTryEntry(entry) {
171
+ var record = entry.completion || {};
172
+ record.type = "normal", delete record.arg, entry.completion = record;
181
173
  }
182
- function Context(t) {
174
+ function Context(tryLocsList) {
183
175
  this.tryEntries = [{
184
176
  tryLoc: "root"
185
- }], t.forEach(pushTryEntry, this), this.reset(!0);
177
+ }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
186
178
  }
187
- function values(e) {
188
- if (e || "" === e) {
189
- var r = e[a];
190
- if (r) return r.call(e);
191
- if ("function" == typeof e.next) return e;
192
- if (!isNaN(e.length)) {
193
- var o = -1,
194
- i = function next() {
195
- for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
196
- return next.value = t, next.done = !0, next;
179
+ function values(iterable) {
180
+ if (iterable) {
181
+ var iteratorMethod = iterable[iteratorSymbol];
182
+ if (iteratorMethod) return iteratorMethod.call(iterable);
183
+ if ("function" == typeof iterable.next) return iterable;
184
+ if (!isNaN(iterable.length)) {
185
+ var i = -1,
186
+ next = function next() {
187
+ for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
188
+ return next.value = undefined, next.done = !0, next;
197
189
  };
198
- return i.next = i;
190
+ return next.next = next;
199
191
  }
200
192
  }
201
- throw new TypeError(_typeof(e) + " is not iterable");
193
+ return {
194
+ next: doneResult
195
+ };
202
196
  }
203
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
197
+ function doneResult() {
198
+ return {
199
+ value: undefined,
200
+ done: !0
201
+ };
202
+ }
203
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
204
204
  value: GeneratorFunctionPrototype,
205
205
  configurable: !0
206
- }), o(GeneratorFunctionPrototype, "constructor", {
206
+ }), defineProperty(GeneratorFunctionPrototype, "constructor", {
207
207
  value: GeneratorFunction,
208
208
  configurable: !0
209
- }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
210
- var e = "function" == typeof t && t.constructor;
211
- return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
212
- }, e.mark = function (t) {
213
- return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
214
- }, e.awrap = function (t) {
209
+ }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
210
+ var ctor = "function" == typeof genFun && genFun.constructor;
211
+ return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
212
+ }, exports.mark = function (genFun) {
213
+ return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
214
+ }, exports.awrap = function (arg) {
215
215
  return {
216
- __await: t
216
+ __await: arg
217
217
  };
218
- }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
218
+ }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
219
219
  return this;
220
- }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
221
- void 0 === i && (i = Promise);
222
- var a = new AsyncIterator(wrap(t, r, n, o), i);
223
- return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
224
- return t.done ? t.value : a.next();
220
+ }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
221
+ void 0 === PromiseImpl && (PromiseImpl = Promise);
222
+ var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
223
+ return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
224
+ return result.done ? result.value : iter.next();
225
225
  });
226
- }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
226
+ }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
227
227
  return this;
228
- }), define(g, "toString", function () {
228
+ }), define(Gp, "toString", function () {
229
229
  return "[object Generator]";
230
- }), e.keys = function (t) {
231
- var e = Object(t),
232
- r = [];
233
- for (var n in e) r.push(n);
234
- return r.reverse(), function next() {
235
- for (; r.length;) {
236
- var t = r.pop();
237
- if (t in e) return next.value = t, next.done = !1, next;
230
+ }), exports.keys = function (val) {
231
+ var object = Object(val),
232
+ keys = [];
233
+ for (var key in object) keys.push(key);
234
+ return keys.reverse(), function next() {
235
+ for (; keys.length;) {
236
+ var key = keys.pop();
237
+ if (key in object) return next.value = key, next.done = !1, next;
238
238
  }
239
239
  return next.done = !0, next;
240
240
  };
241
- }, e.values = values, Context.prototype = {
241
+ }, exports.values = values, Context.prototype = {
242
242
  constructor: Context,
243
- reset: function reset(e) {
244
- if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
243
+ reset: function reset(skipTempReset) {
244
+ if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
245
245
  },
246
246
  stop: function stop() {
247
247
  this.done = !0;
248
- var t = this.tryEntries[0].completion;
249
- if ("throw" === t.type) throw t.arg;
248
+ var rootRecord = this.tryEntries[0].completion;
249
+ if ("throw" === rootRecord.type) throw rootRecord.arg;
250
250
  return this.rval;
251
251
  },
252
- dispatchException: function dispatchException(e) {
253
- if (this.done) throw e;
254
- var r = this;
255
- function handle(n, o) {
256
- return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
257
- }
258
- for (var o = this.tryEntries.length - 1; o >= 0; --o) {
259
- var i = this.tryEntries[o],
260
- a = i.completion;
261
- if ("root" === i.tryLoc) return handle("end");
262
- if (i.tryLoc <= this.prev) {
263
- var c = n.call(i, "catchLoc"),
264
- u = n.call(i, "finallyLoc");
265
- if (c && u) {
266
- if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
267
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
268
- } else if (c) {
269
- if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
252
+ dispatchException: function dispatchException(exception) {
253
+ if (this.done) throw exception;
254
+ var context = this;
255
+ function handle(loc, caught) {
256
+ return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
257
+ }
258
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
259
+ var entry = this.tryEntries[i],
260
+ record = entry.completion;
261
+ if ("root" === entry.tryLoc) return handle("end");
262
+ if (entry.tryLoc <= this.prev) {
263
+ var hasCatch = hasOwn.call(entry, "catchLoc"),
264
+ hasFinally = hasOwn.call(entry, "finallyLoc");
265
+ if (hasCatch && hasFinally) {
266
+ if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
267
+ if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
268
+ } else if (hasCatch) {
269
+ if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
270
270
  } else {
271
- if (!u) throw new Error("try statement without catch or finally");
272
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
271
+ if (!hasFinally) throw new Error("try statement without catch or finally");
272
+ if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
273
273
  }
274
274
  }
275
275
  }
276
276
  },
277
- abrupt: function abrupt(t, e) {
278
- for (var r = this.tryEntries.length - 1; r >= 0; --r) {
279
- var o = this.tryEntries[r];
280
- if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
281
- var i = o;
277
+ abrupt: function abrupt(type, arg) {
278
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
279
+ var entry = this.tryEntries[i];
280
+ if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
281
+ var finallyEntry = entry;
282
282
  break;
283
283
  }
284
284
  }
285
- i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
286
- var a = i ? i.completion : {};
287
- return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
285
+ finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
286
+ var record = finallyEntry ? finallyEntry.completion : {};
287
+ return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
288
288
  },
289
- complete: function complete(t, e) {
290
- if ("throw" === t.type) throw t.arg;
291
- return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
289
+ complete: function complete(record, afterLoc) {
290
+ if ("throw" === record.type) throw record.arg;
291
+ return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
292
292
  },
293
- finish: function finish(t) {
294
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
295
- var r = this.tryEntries[e];
296
- if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
293
+ finish: function finish(finallyLoc) {
294
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
295
+ var entry = this.tryEntries[i];
296
+ if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
297
297
  }
298
298
  },
299
- "catch": function _catch(t) {
300
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
301
- var r = this.tryEntries[e];
302
- if (r.tryLoc === t) {
303
- var n = r.completion;
304
- if ("throw" === n.type) {
305
- var o = n.arg;
306
- resetTryEntry(r);
299
+ "catch": function _catch(tryLoc) {
300
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
301
+ var entry = this.tryEntries[i];
302
+ if (entry.tryLoc === tryLoc) {
303
+ var record = entry.completion;
304
+ if ("throw" === record.type) {
305
+ var thrown = record.arg;
306
+ resetTryEntry(entry);
307
307
  }
308
- return o;
308
+ return thrown;
309
309
  }
310
310
  }
311
311
  throw new Error("illegal catch attempt");
312
312
  },
313
- delegateYield: function delegateYield(e, r, n) {
313
+ delegateYield: function delegateYield(iterable, resultName, nextLoc) {
314
314
  return this.delegate = {
315
- iterator: values(e),
316
- resultName: r,
317
- nextLoc: n
318
- }, "next" === this.method && (this.arg = t), y;
315
+ iterator: values(iterable),
316
+ resultName: resultName,
317
+ nextLoc: nextLoc
318
+ }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
319
319
  }
320
- }, e;
320
+ }, exports;
321
321
  }
322
322
  module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
323
323
 
@@ -326,14 +326,14 @@ module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.e
326
326
  /***/ 7425:
327
327
  /***/ ((module) => {
328
328
 
329
- function _typeof(o) {
329
+ function _typeof(obj) {
330
330
  "@babel/helpers - typeof";
331
331
 
332
- return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
333
- return typeof o;
334
- } : function (o) {
335
- return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
336
- }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(o);
332
+ return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
333
+ return typeof obj;
334
+ } : function (obj) {
335
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
336
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
337
337
  }
338
338
  module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
339
339
 
@@ -433,38 +433,38 @@ var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
433
433
  var y = x => () => x
434
434
  const shared_namespaceObject = x({ ["debounce"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.debounce, ["random"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.random, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstall });
435
435
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
436
- function _typeof(o) {
436
+ function _typeof(obj) {
437
437
  "@babel/helpers - typeof";
438
438
 
439
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
440
- return typeof o;
441
- } : function (o) {
442
- return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
443
- }, _typeof(o);
439
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
440
+ return typeof obj;
441
+ } : function (obj) {
442
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
443
+ }, _typeof(obj);
444
444
  }
445
445
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
446
446
 
447
- function toPrimitive(t, r) {
448
- if ("object" != _typeof(t) || !t) return t;
449
- var e = t[Symbol.toPrimitive];
450
- if (void 0 !== e) {
451
- var i = e.call(t, r || "default");
452
- if ("object" != _typeof(i)) return i;
447
+ function _toPrimitive(input, hint) {
448
+ if (_typeof(input) !== "object" || input === null) return input;
449
+ var prim = input[Symbol.toPrimitive];
450
+ if (prim !== undefined) {
451
+ var res = prim.call(input, hint || "default");
452
+ if (_typeof(res) !== "object") return res;
453
453
  throw new TypeError("@@toPrimitive must return a primitive value.");
454
454
  }
455
- return ("string" === r ? String : Number)(t);
455
+ return (hint === "string" ? String : Number)(input);
456
456
  }
457
457
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
458
458
 
459
459
 
460
- function toPropertyKey(t) {
461
- var i = toPrimitive(t, "string");
462
- return "symbol" == _typeof(i) ? i : String(i);
460
+ function _toPropertyKey(arg) {
461
+ var key = _toPrimitive(arg, "string");
462
+ return _typeof(key) === "symbol" ? key : String(key);
463
463
  }
464
464
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
465
465
 
466
466
  function _defineProperty(obj, key, value) {
467
- key = toPropertyKey(key);
467
+ key = _toPropertyKey(key);
468
468
  if (key in obj) {
469
469
  Object.defineProperty(obj, key, {
470
470
  value: value,
@@ -481,7 +481,19 @@ 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: ../../node_modules/resize-detector/esm/index.js
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 });
496
+ ;// CONCATENATED MODULE: ../../node_modules/@blueking/fork-resize-detector/esm/index.js
485
497
  var raf = null;
486
498
  function requestAnimationFrame (callback) {
487
499
  if (!raf) {
@@ -547,7 +559,7 @@ function getComputedStyle (elem, prop, pseudo) {
547
559
  }
548
560
 
549
561
  function getRenderInfo (elem) {
550
- if (!document.documentElement.contains(elem)) {
562
+ if (!elem || !document.documentElement.contains(elem)) {
551
563
  return {
552
564
  detached: true,
553
565
  rendered: false
@@ -555,7 +567,7 @@ function getRenderInfo (elem) {
555
567
  }
556
568
 
557
569
  var current = elem;
558
- while (current !== document) {
570
+ while (current && current !== document) {
559
571
  if (getComputedStyle(current, 'display') === 'none') {
560
572
  return {
561
573
  detached: false,
@@ -797,48 +809,36 @@ 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;
815
815
  }
816
816
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
817
- function _iterableToArrayLimit(r, l) {
818
- var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
819
- if (null != t) {
820
- var e,
821
- n,
822
- i,
823
- u,
824
- a = [],
825
- f = !0,
826
- o = !1;
817
+ function _iterableToArrayLimit(arr, i) {
818
+ var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
819
+ if (null != _i) {
820
+ var _s,
821
+ _e,
822
+ _x,
823
+ _r,
824
+ _arr = [],
825
+ _n = !0,
826
+ _d = !1;
827
827
  try {
828
- if (i = (t = t.call(r)).next, 0 === l) {
829
- if (Object(t) !== t) return;
830
- f = !1;
831
- } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
832
- } catch (r) {
833
- o = !0, n = r;
828
+ if (_x = (_i = _i.call(arr)).next, 0 === i) {
829
+ if (Object(_i) !== _i) return;
830
+ _n = !1;
831
+ } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
832
+ } catch (err) {
833
+ _d = !0, _e = err;
834
834
  } finally {
835
835
  try {
836
- if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
836
+ if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
837
837
  } finally {
838
- if (o) throw n;
838
+ if (_d) throw _e;
839
839
  }
840
840
  }
841
- return a;
841
+ return _arr;
842
842
  }
843
843
  }
844
844
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
@@ -962,7 +962,7 @@ function _defineProperties(target, props) {
962
962
  descriptor.enumerable = descriptor.enumerable || false;
963
963
  descriptor.configurable = true;
964
964
  if ("value" in descriptor) descriptor.writable = true;
965
- Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);
965
+ Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
966
966
  }
967
967
  }
968
968
  function _createClass(Constructor, protoProps, staticProps) {
@@ -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;
@@ -1268,10 +1268,9 @@ var SelectedItem = /*#__PURE__*/function () {
1268
1268
 
1269
1269
 
1270
1270
 
1271
-
1272
1271
  // import { Done } from '@bkui-vue/icon';
1273
1272
 
1274
- /* harmony default export */ const menu = ((0,external_vue_namespaceObject.defineComponent)({
1273
+ /* harmony default export */ const menu = (defineComponent({
1275
1274
  name: 'SearchSelectMenu',
1276
1275
  props: {
1277
1276
  list: {
@@ -1308,6 +1307,12 @@ var SelectedItem = /*#__PURE__*/function () {
1308
1307
  logical: {
1309
1308
  type: String,
1310
1309
  "default": SearchLogical.OR
1310
+ },
1311
+ maxHeight: {
1312
+ type: Number,
1313
+ "default": function _default() {
1314
+ return 392;
1315
+ }
1311
1316
  }
1312
1317
  },
1313
1318
  emits: ['selectItem', 'selectCondition', 'footerClick', 'update:logical'],
@@ -1316,7 +1321,7 @@ var SelectedItem = /*#__PURE__*/function () {
1316
1321
  var t = (0,config_provider_namespaceObject.useLocale)('searchSelect');
1317
1322
  var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
1318
1323
  resolveClassName = _usePrefix.resolveClassName;
1319
- var localFooterBtns = (0,external_vue_namespaceObject.computed)(function () {
1324
+ var localFooterBtns = computed(function () {
1320
1325
  if (props.footerBtns === undefined || props.footerBtns.length === 0) {
1321
1326
  return [{
1322
1327
  id: 'confirm',
@@ -1329,6 +1334,11 @@ var SelectedItem = /*#__PURE__*/function () {
1329
1334
  }
1330
1335
  return props.footerBtns;
1331
1336
  });
1337
+ var resolveContentStyles = computed(function () {
1338
+ return {
1339
+ maxHeight: "".concat(props.maxHeight, "px")
1340
+ };
1341
+ });
1332
1342
  // events
1333
1343
  function handleClick(item) {
1334
1344
  emit('selectItem', item);
@@ -1339,7 +1349,7 @@ var SelectedItem = /*#__PURE__*/function () {
1339
1349
  function handleClickFooterBtn(item) {
1340
1350
  emit('footerClick', item);
1341
1351
  }
1342
- var filterList = (0,external_vue_namespaceObject.computed)(function () {
1352
+ var filterList = computed(function () {
1343
1353
  var _props$list, _props$keyword;
1344
1354
  if (!((_props$list = props.list) !== null && _props$list !== void 0 && _props$list.length)) return [];
1345
1355
  if (!((_props$keyword = props.keyword) !== null && _props$keyword !== void 0 && _props$keyword.length)) return props.list;
@@ -1398,6 +1408,7 @@ var SelectedItem = /*#__PURE__*/function () {
1398
1408
  getSearchNode: getSearchNode,
1399
1409
  localFooterBtns: localFooterBtns,
1400
1410
  resolveClassName: resolveClassName,
1411
+ resolveContentStyles: resolveContentStyles,
1401
1412
  t: t
1402
1413
  };
1403
1414
  },
@@ -1409,9 +1420,9 @@ var SelectedItem = /*#__PURE__*/function () {
1409
1420
  "class": "menu-content"
1410
1421
  }, [(_this$list = this.list) === null || _this$list === void 0 ? void 0 : _this$list.map(function (item) {
1411
1422
  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
1423
  "id": item.id,
1424
+ "key": item.id,
1425
+ "class": "menu-item ".concat(item.disabled ? 'is-disabled' : '', " ").concat(_this.hoverId === item.id && !item.disabled ? 'is-hover' : ''),
1415
1426
  "tabindex": "-1",
1416
1427
  "onClick": function onClick() {
1417
1428
  return !item.disabled && _this.handleClick(item);
@@ -1421,8 +1432,8 @@ var SelectedItem = /*#__PURE__*/function () {
1421
1432
  return _this.handleSelectedChange(e, item);
1422
1433
  }
1423
1434
  }, [(0,external_vue_namespaceObject.createVNode)(checkbox_namespaceObject["default"], {
1424
- "modelValue": _this.selected.includes(item.id),
1425
- "class": "is-selected"
1435
+ "class": "is-selected",
1436
+ "modelValue": _this.selected.includes(item.id)
1426
1437
  }, null)]), _this.getSearchNode(item)])]);
1427
1438
  })]);
1428
1439
  var getListMenu = function getListMenu() {
@@ -1434,17 +1445,17 @@ var SelectedItem = /*#__PURE__*/function () {
1434
1445
  }, [(0,external_vue_namespaceObject.createVNode)("div", {
1435
1446
  "class": "menu-condition-title"
1436
1447
  }, [_this.t.logical]), (0,external_vue_namespaceObject.createVNode)(radio_namespaceObject["default"], {
1448
+ "label": "|",
1437
1449
  "modelValue": _this.logical,
1438
- "onChange": _this.handleLogicalChange,
1439
- "label": "|"
1450
+ "onChange": _this.handleLogicalChange
1440
1451
  }, {
1441
1452
  "default": function _default() {
1442
1453
  return [_this.t.or, (0,external_vue_namespaceObject.createTextVNode)(" |")];
1443
1454
  }
1444
1455
  }), (0,external_vue_namespaceObject.createVNode)(radio_namespaceObject["default"], {
1456
+ "label": "&",
1445
1457
  "modelValue": _this.logical,
1446
- "onChange": _this.handleLogicalChange,
1447
- "label": "&"
1458
+ "onChange": _this.handleLogicalChange
1448
1459
  }, {
1449
1460
  "default": function _default() {
1450
1461
  return [_this.t.and, (0,external_vue_namespaceObject.createTextVNode)(" &")];
@@ -1452,6 +1463,7 @@ var SelectedItem = /*#__PURE__*/function () {
1452
1463
  })])]);
1453
1464
  };
1454
1465
  return (0,external_vue_namespaceObject.createVNode)("div", {
1466
+ "style": this.resolveContentStyles,
1455
1467
  "class": this.resolveClassName('search-select-menu')
1456
1468
  }, [!!((_this$conditions = this.conditions) !== null && _this$conditions !== void 0 && _this$conditions.length) && (0,external_vue_namespaceObject.createVNode)("ul", {
1457
1469
  "class": "menu-header"
@@ -1471,6 +1483,9 @@ var SelectedItem = /*#__PURE__*/function () {
1471
1483
 
1472
1484
 
1473
1485
 
1486
+ function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = input_unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
1487
+ function input_unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return input_arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? input_arrayLikeToArray(r, a) : void 0; } }
1488
+ function input_arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
1474
1489
 
1475
1490
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
1476
1491
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -1527,11 +1542,17 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
1527
1542
  return [];
1528
1543
  }
1529
1544
  },
1530
- defautUsingItem: Object,
1545
+ defaultUsingItem: Object,
1531
1546
  mode: {
1532
1547
  type: String,
1533
1548
  "default": SearchInputMode.DEFAULT
1534
1549
  },
1550
+ maxHeight: {
1551
+ type: Number,
1552
+ "default": function _default() {
1553
+ return 392;
1554
+ }
1555
+ },
1535
1556
  getMenuList: Function,
1536
1557
  validateValues: Function,
1537
1558
  valueBehavior: String
@@ -1550,10 +1571,10 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
1550
1571
  var showNoSelectValueError = (0,external_vue_namespaceObject.ref)(false);
1551
1572
  var isFocus = (0,external_vue_namespaceObject.ref)(false);
1552
1573
  var showPopover = (0,external_vue_namespaceObject.ref)(false);
1553
- var usingItem = (0,external_vue_namespaceObject.ref)(props.defautUsingItem);
1574
+ var usingItem = (0,external_vue_namespaceObject.ref)(props.defaultUsingItem);
1554
1575
  var menuHoverId = (0,external_vue_namespaceObject.ref)('');
1555
1576
  var loading = (0,external_vue_namespaceObject.ref)(false);
1556
- var debounceSetMenuList = (0,shared_namespaceObject.debounce)(300, setMenuList);
1577
+ var debounceSetMenuList = (0,shared_namespaceObject.debounce)(100, setMenuList);
1557
1578
  // const selectMenuList = ref<ICommonItem[]>([]);
1558
1579
  var isBindEvent = false;
1559
1580
  var remoteMenuList = (0,external_vue_namespaceObject.ref)([]);
@@ -1562,10 +1583,11 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
1562
1583
  editKey = _useSearchSelectInjec.editKey,
1563
1584
  onValidate = _useSearchSelectInjec.onValidate,
1564
1585
  searchData = _useSearchSelectInjec.searchData;
1565
- var valueLoagic = (0,external_vue_namespaceObject.computed)(function () {
1586
+ var valueLogic = (0,external_vue_namespaceObject.computed)(function () {
1566
1587
  var _usingItem$value;
1567
1588
  return ((_usingItem$value = usingItem.value) === null || _usingItem$value === void 0 ? void 0 : _usingItem$value.logical) || SearchLogical.OR;
1568
1589
  });
1590
+ var inputKey = (0,external_vue_namespaceObject.ref)((0,shared_namespaceObject.random)(10));
1569
1591
  (0,external_vue_namespaceObject.watch)(editKey, function () {
1570
1592
  if (props.mode === SearchInputMode.DEFAULT && editKey.value) {
1571
1593
  showPopover.value = false;
@@ -1588,7 +1610,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
1588
1610
  if (shouldBindEvent) {
1589
1611
  if (!isBindEvent) {
1590
1612
  var _menuList$value$find;
1591
- menuHoverId.value = props.valueBehavior === ValueBehavior.NEEDKEY ? ((_menuList$value$find = menuList.value.find(function (item) {
1613
+ menuHoverId.value = props.valueBehavior === ValueBehavior.NEED_KEY ? ((_menuList$value$find = menuList.value.find(function (item) {
1592
1614
  return !item.disabled;
1593
1615
  })) === null || _menuList$value$find === void 0 ? void 0 : _menuList$value$find.id) || '' : '';
1594
1616
  isBindEvent = true;
@@ -1597,7 +1619,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
1597
1619
  } else {
1598
1620
  document.removeEventListener('keydown', handleDocumentKeydown);
1599
1621
  isBindEvent = false;
1600
- if (props.valueBehavior !== ValueBehavior.NEEDKEY) {
1622
+ if (props.valueBehavior !== ValueBehavior.NEED_KEY) {
1601
1623
  menuHoverId.value = '';
1602
1624
  }
1603
1625
  }
@@ -1618,7 +1640,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
1618
1640
  function documentArrowEvent(e) {
1619
1641
  var _inputRef$value;
1620
1642
  e.preventDefault();
1621
- (_inputRef$value = inputRef.value) === null || _inputRef$value === void 0 || _inputRef$value.blur();
1643
+ (_inputRef$value = inputRef.value) === null || _inputRef$value === void 0 ? void 0 : _inputRef$value.blur();
1622
1644
  var len = menuList.value.length;
1623
1645
  var index = menuList.value.findIndex(function (set) {
1624
1646
  return set.id === menuHoverId.value;
@@ -1628,16 +1650,17 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
1628
1650
  var item = menuList.value[index];
1629
1651
  if (item && !item.disabled) {
1630
1652
  var dom = document.getElementById(item.id);
1631
- dom === null || dom === void 0 || dom.focus();
1653
+ dom === null || dom === void 0 ? void 0 : dom.focus();
1632
1654
  menuHoverId.value = item.id;
1633
1655
  break;
1634
1656
  }
1635
1657
  }
1636
1658
  }
1637
1659
  function documentEnterEvent(e) {
1660
+ var _menuList$value2;
1638
1661
  if (!isBindEvent) return;
1639
1662
  e.preventDefault();
1640
- var item = menuList.value.find(function (item) {
1663
+ var item = (_menuList$value2 = menuList.value) === null || _menuList$value2 === void 0 ? void 0 : _menuList$value2.find(function (item) {
1641
1664
  return item.id === menuHoverId.value;
1642
1665
  });
1643
1666
  item && handleSelectItem(item);
@@ -1669,16 +1692,23 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
1669
1692
  showPopover.value = false;
1670
1693
  emit('focus', isFocus.value);
1671
1694
  }
1672
- function handleInputFocus() {
1695
+ var isOriginFocus = false;
1696
+ function handleInputFocus(event) {
1697
+ if (isOriginFocus) return;
1673
1698
  showNoSelectValueError.value = false;
1674
1699
  if (props.mode === SearchInputMode.EDIT && usingItem.value && !isFocus.value) {
1675
1700
  var nodeList = Array.from(inputRef.value.querySelectorAll("[data-type=\"".concat(usingItem.value.values.length ? 'value' : usingItem.value.type, "\"]")));
1676
1701
  if (!nodeList.length) return;
1702
+ event === null || event === void 0 ? void 0 : event.preventDefault();
1677
1703
  var range = document.createRange();
1678
1704
  var selection = window.getSelection();
1679
1705
  range.selectNodeContents(nodeList.at(-1));
1680
- selection === null || selection === void 0 || selection.removeAllRanges();
1681
- selection.addRange(range); // 注意这里会触发focu事件
1706
+ selection === null || selection === void 0 ? void 0 : selection.removeAllRanges();
1707
+ isOriginFocus = true;
1708
+ setTimeout(function () {
1709
+ isOriginFocus = false;
1710
+ }, 200);
1711
+ selection.addRange(range); // 注意这里会触发focus事件
1682
1712
  setInputFocus(true, false);
1683
1713
  return;
1684
1714
  }
@@ -1689,7 +1719,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
1689
1719
  event.preventDefault();
1690
1720
  var formattedText = event.clipboardData.getData('text').trim();
1691
1721
  if (!usingItem.value) {
1692
- var formateItem = str2SeletedItem(formattedText);
1722
+ var formateItem = str2SelectedItem(formattedText);
1693
1723
  if (formateItem) {
1694
1724
  usingItem.value = formateItem;
1695
1725
  setInputFocus(true, true);
@@ -1697,7 +1727,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
1697
1727
  }
1698
1728
  keyword.value = formattedText.split(ValueSplitRegex).filter(function (v) {
1699
1729
  return v.trim() && !ValueSplitTestRegex.test(v);
1700
- }).join(" ".concat(valueLoagic.value, " "));
1730
+ }).join(" ".concat(valueLogic.value, " "));
1701
1731
  inputRef.value.innerText = keyword.value;
1702
1732
  setInputFocus();
1703
1733
  debounceSetMenuList();
@@ -1712,17 +1742,45 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
1712
1742
  keyword.value = text;
1713
1743
  debounceSetMenuList();
1714
1744
  return;
1745
+ } else {
1746
+ // command + a 全选删除特殊逻辑
1747
+ if (usingItem.value && !text) {
1748
+ inputKey.value = (0,shared_namespaceObject.random)(10);
1749
+ menuHoverId.value = '';
1750
+ usingItem.value = null;
1751
+ keyword.value = '';
1752
+ setTimeout(function () {
1753
+ setInputFocus(true, true);
1754
+ (0,external_vue_namespaceObject.nextTick)(setCursorToEnd);
1755
+ }, 200);
1756
+ return;
1757
+ }
1715
1758
  }
1716
1759
  keyword.value = usingItem.value.isSpecialType() ? text : text.replace(usingItem.value.name, '').replace(':', '').trim();
1717
1760
  debounceSetMenuList();
1718
1761
  }
1719
1762
  function handleInputKeyup(event) {
1763
+ // if ((event.ctrlKey || event.metaKey) && event.key === 'a') {
1764
+ // const selection = window.getSelection();
1765
+ // const range = selection.getRangeAt(0);
1766
+ // const startContainer = range.startContainer;
1767
+ // if (startContainer === inputRef.value) {
1768
+ // event?.preventDefault();
1769
+ // }
1770
+ // return;
1771
+ // }
1720
1772
  switch (event.code) {
1721
1773
  case 'Enter':
1722
1774
  case 'NumpadEnter':
1723
- if (props.valueBehavior === ValueBehavior.NEEDKEY && menuList.value.some(function (item) {
1775
+ if (props.valueBehavior === ValueBehavior.NEED_KEY && menuList.value.some(function (item) {
1724
1776
  return item.id === menuHoverId.value;
1725
- })) return;
1777
+ })) {
1778
+ var _keyword$value;
1779
+ if (!usingItem.value && (_keyword$value = keyword.value) !== null && _keyword$value !== void 0 && _keyword$value.length) {
1780
+ event.preventDefault();
1781
+ }
1782
+ return;
1783
+ }
1726
1784
  handleKeyEnter(event).then(function (v) {
1727
1785
  return v && clearInput();
1728
1786
  });
@@ -1738,13 +1796,13 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
1738
1796
  return _handleKeyEnter.apply(this, arguments);
1739
1797
  }
1740
1798
  function _handleKeyEnter() {
1741
- _handleKeyEnter = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(event) {
1799
+ _handleKeyEnter = _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee(event) {
1742
1800
  var _usingItem$value6, _usingItem$value7, _usingItem$value8;
1743
1801
  var isValid;
1744
1802
  return regenerator_default().wrap(function _callee$(_context) {
1745
1803
  while (1) switch (_context.prev = _context.next) {
1746
1804
  case 0:
1747
- event === null || event === void 0 || event.preventDefault();
1805
+ event === null || event === void 0 ? void 0 : event.preventDefault();
1748
1806
  // 异步延迟解决确保响应时机问题
1749
1807
  _context.next = 3;
1750
1808
  return new Promise(function (resolve) {
@@ -1755,7 +1813,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
1755
1813
  _context.next = 9;
1756
1814
  break;
1757
1815
  }
1758
- if (!(!keyword.value || props.valueBehavior === ValueBehavior.NEEDKEY)) {
1816
+ if (!(!keyword.value || props.valueBehavior === ValueBehavior.NEED_KEY)) {
1759
1817
  _context.next = 6;
1760
1818
  break;
1761
1819
  }
@@ -1809,7 +1867,9 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
1809
1867
  var _usingItem$value3;
1810
1868
  // 删除已选择项
1811
1869
  if (!usingItem.value && !keyword.value) {
1870
+ menuHoverId.value = '';
1812
1871
  emit('delete');
1872
+ // eslint-disable-next-line @typescript-eslint/no-misused-promises
1813
1873
  setTimeout(setMenuList, 16);
1814
1874
  return;
1815
1875
  }
@@ -1843,7 +1903,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
1843
1903
  return _handleSelectItem.apply(this, arguments);
1844
1904
  }
1845
1905
  function _handleSelectItem() {
1846
- _handleSelectItem = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee2(item, type) {
1906
+ _handleSelectItem = _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee2(item, type) {
1847
1907
  var _item$value, _usingItem$value9, _usingItem$value12;
1848
1908
  var _item$realId, selectedItem, _usingItem$value10, _usingItem$value11, isCondition;
1849
1909
  return regenerator_default().wrap(function _callee2$(_context2) {
@@ -1857,7 +1917,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
1857
1917
  id: (_item$realId = item.realId) !== null && _item$realId !== void 0 ? _item$realId : item.id
1858
1918
  }), type);
1859
1919
  selectedItem.addValues(item.value.name, false);
1860
- if (!(props.valueBehavior === ValueBehavior.NEEDKEY && menuHoverId.value)) {
1920
+ if (!(props.valueBehavior === ValueBehavior.NEED_KEY && menuHoverId.value)) {
1861
1921
  _context2.next = 8;
1862
1922
  break;
1863
1923
  }
@@ -1883,7 +1943,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
1883
1943
  return _context2.abrupt("return");
1884
1944
  case 18:
1885
1945
  if (!(!usingItem.value || ((_usingItem$value9 = usingItem.value) === null || _usingItem$value9 === void 0 ? void 0 : _usingItem$value9.type) === 'condition')) {
1886
- _context2.next = 27;
1946
+ _context2.next = 28;
1887
1947
  break;
1888
1948
  }
1889
1949
  usingItem.value = new SelectedItem(item, type !== null && type !== void 0 ? type : (_usingItem$value10 = usingItem.value) === null || _usingItem$value10 === void 0 ? void 0 : _usingItem$value10.type);
@@ -1900,29 +1960,30 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
1900
1960
  setSelectedItem();
1901
1961
  }
1902
1962
  showPopover.value = isCondition || !!usingItem.value.children.length;
1903
- setInputFocus(props.valueBehavior === ValueBehavior.NEEDKEY && !!menuHoverId.value);
1963
+ setInputFocus(props.valueBehavior === ValueBehavior.NEED_KEY && !!menuHoverId.value);
1964
+ typeof props.getMenuList === 'function' && (0,external_vue_namespaceObject.nextTick)(setCursorToEnd);
1904
1965
  return _context2.abrupt("return");
1905
- case 27:
1966
+ case 28:
1906
1967
  if (usingItem.value) {
1907
1968
  usingItem.value.addValue(item);
1908
1969
  (0,external_vue_namespaceObject.nextTick)(deleteInputTextNode);
1909
1970
  }
1910
- _context2.next = 30;
1971
+ _context2.next = 31;
1911
1972
  return validateUsingItemValues(usingItem.value.values);
1912
- case 30:
1973
+ case 31:
1913
1974
  if (_context2.sent) {
1914
- _context2.next = 32;
1975
+ _context2.next = 33;
1915
1976
  break;
1916
1977
  }
1917
1978
  return _context2.abrupt("return");
1918
- case 32:
1979
+ case 33:
1919
1980
  if (!usingItem.value.multiple) {
1920
1981
  setSelectedItem();
1921
1982
  }
1922
- if (props.valueBehavior === ValueBehavior.NEEDKEY && (_usingItem$value12 = usingItem.value) !== null && _usingItem$value12 !== void 0 && _usingItem$value12.multiple) {
1983
+ if (props.valueBehavior === ValueBehavior.NEED_KEY && (_usingItem$value12 = usingItem.value) !== null && _usingItem$value12 !== void 0 && _usingItem$value12.multiple) {
1923
1984
  setInputFocus();
1924
1985
  }
1925
- case 34:
1986
+ case 35:
1926
1987
  case "end":
1927
1988
  return _context2.stop();
1928
1989
  }
@@ -1930,7 +1991,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
1930
1991
  }));
1931
1992
  return _handleSelectItem.apply(this, arguments);
1932
1993
  }
1933
- function handleSelectCondtionItem(item) {
1994
+ function handleSelectConditionItem(item) {
1934
1995
  handleSelectItem(item, 'condition');
1935
1996
  }
1936
1997
  function handleMenuFooterClick(item) {
@@ -1956,7 +2017,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
1956
2017
  return _validateValues.apply(this, arguments);
1957
2018
  }
1958
2019
  function _validateValues() {
1959
- _validateValues = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee3(searchItem, value) {
2020
+ _validateValues = _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee3(searchItem, value) {
1960
2021
  var validateStr;
1961
2022
  return regenerator_default().wrap(function _callee3$(_context3) {
1962
2023
  while (1) switch (_context3.prev = _context3.next) {
@@ -1999,7 +2060,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
1999
2060
  return _validateUsingItemValues.apply(this, arguments);
2000
2061
  }
2001
2062
  function _validateUsingItemValues() {
2002
- _validateUsingItemValues = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee4(preValues) {
2063
+ _validateUsingItemValues = _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee4(preValues) {
2003
2064
  var _usingItem$value13, searchItem, validate, values;
2004
2065
  return regenerator_default().wrap(function _callee4$(_context4) {
2005
2066
  while (1) switch (_context4.prev = _context4.next) {
@@ -2037,9 +2098,9 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
2037
2098
  return _setMenuList.apply(this, arguments);
2038
2099
  }
2039
2100
  function _setMenuList() {
2040
- _setMenuList = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee5() {
2101
+ _setMenuList = _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee5() {
2041
2102
  var _props$data, _usingItem$value$sear, _usingItem$value$valu;
2042
- var list, _usingItem$value14, _keyword$value2, hoverItem;
2103
+ var list, _usingItem$value14, _keyword$value3, _iterator, _step, item, isMatched, _list, filterList, _iterator2, _step2, child, _list2, _filterList, _iterator3, _step3, _child, hoverItem;
2043
2104
  return regenerator_default().wrap(function _callee5$(_context5) {
2044
2105
  while (1) switch (_context5.prev = _context5.next) {
2045
2106
  case 0:
@@ -2060,55 +2121,83 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
2060
2121
  break;
2061
2122
  case 9:
2062
2123
  if (!(usingItem !== null && usingItem !== void 0 && usingItem.value)) {
2063
- if (!((_keyword$value2 = keyword.value) !== null && _keyword$value2 !== void 0 && _keyword$value2.length)) {
2124
+ if (!((_keyword$value3 = keyword.value) !== null && _keyword$value3 !== void 0 && _keyword$value3.length)) {
2064
2125
  list = props.data.filter(function (item) {
2065
2126
  return !item.isSelected;
2066
2127
  }).slice();
2067
- } else props.data.filter(function (item) {
2068
- return !item.isSelected;
2069
- }).forEach(function (item) {
2070
- var isMatched = item.name.toLocaleLowerCase().includes(keyword.value.toLocaleLowerCase());
2071
- if (isMatched) {
2072
- var _item$children, _list;
2073
- list.push(item);
2074
- var filterList = [];
2075
- (_item$children = item.children) === null || _item$children === void 0 || _item$children.forEach(function (child) {
2076
- filterList.push(_objectSpread(_objectSpread({}, item), {}, {
2077
- realId: item.id,
2078
- id: (0,shared_namespaceObject.random)(10),
2079
- value: child
2080
- }));
2081
- });
2082
- !filterList.length && !item.onlyRecommendChildren && filterList.push(_objectSpread(_objectSpread({}, item), {}, {
2083
- realId: item.id,
2084
- id: (0,shared_namespaceObject.random)(10),
2085
- value: {
2086
- id: keyword.value,
2087
- name: keyword.value
2088
- }
2089
- }));
2090
- (_list = list).push.apply(_list, filterList);
2091
- } else {
2092
- var _item$children2, _list2;
2093
- var _filterList = [];
2094
- (_item$children2 = item.children) === null || _item$children2 === void 0 || _item$children2.forEach(function (child) {
2095
- if (child.name.toLocaleLowerCase().includes(keyword.value.toLocaleLowerCase())) {
2096
- _filterList.push(_objectSpread(_objectSpread({}, item), {}, {
2097
- realId: item.id,
2098
- id: (0,shared_namespaceObject.random)(10),
2099
- value: child
2100
- }));
2101
- }
2102
- });
2103
- !_filterList.length && !item.onlyRecommendChildren && _filterList.push(_objectSpread(_objectSpread({}, item), {}, {
2104
- value: {
2105
- id: keyword.value,
2106
- name: keyword.value
2128
+ } else {
2129
+ _iterator = _createForOfIteratorHelper(props.data.filter(function (item) {
2130
+ return !item.isSelected;
2131
+ }));
2132
+ try {
2133
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
2134
+ item = _step.value;
2135
+ isMatched = item.name.toLocaleLowerCase().includes(keyword.value.toLocaleLowerCase());
2136
+ if (isMatched) {
2137
+ list.push(item);
2138
+ filterList = [];
2139
+ _iterator2 = _createForOfIteratorHelper(item.children || []);
2140
+ try {
2141
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
2142
+ child = _step2.value;
2143
+ filterList.push(_objectSpread(_objectSpread({}, item), {}, {
2144
+ realId: item.id,
2145
+ id: (0,shared_namespaceObject.random)(10),
2146
+ value: child
2147
+ }));
2148
+ }
2149
+ } catch (err) {
2150
+ _iterator2.e(err);
2151
+ } finally {
2152
+ _iterator2.f();
2153
+ }
2154
+ if (!filterList.length && !item.onlyRecommendChildren) {
2155
+ filterList.push(_objectSpread(_objectSpread({}, item), {}, {
2156
+ realId: item.id,
2157
+ id: (0,shared_namespaceObject.random)(10),
2158
+ value: {
2159
+ id: keyword.value,
2160
+ name: keyword.value
2161
+ }
2162
+ }));
2163
+ }
2164
+ (_list = list).push.apply(_list, filterList);
2165
+ } else {
2166
+ _filterList = [];
2167
+ _iterator3 = _createForOfIteratorHelper(item.children || []);
2168
+ try {
2169
+ for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
2170
+ _child = _step3.value;
2171
+ if (_child.name.toLocaleLowerCase().includes(keyword.value.toLocaleLowerCase())) {
2172
+ _filterList.push(_objectSpread(_objectSpread({}, item), {}, {
2173
+ realId: item.id,
2174
+ id: (0,shared_namespaceObject.random)(10),
2175
+ value: _child
2176
+ }));
2177
+ }
2178
+ }
2179
+ } catch (err) {
2180
+ _iterator3.e(err);
2181
+ } finally {
2182
+ _iterator3.f();
2183
+ }
2184
+ if (!_filterList.length && !item.onlyRecommendChildren) {
2185
+ _filterList.push(_objectSpread(_objectSpread({}, item), {}, {
2186
+ value: {
2187
+ id: keyword.value,
2188
+ name: keyword.value
2189
+ }
2190
+ }));
2191
+ }
2192
+ (_list2 = list).push.apply(_list2, _filterList);
2107
2193
  }
2108
- }));
2109
- (_list2 = list).push.apply(_list2, _filterList);
2194
+ }
2195
+ } catch (err) {
2196
+ _iterator.e(err);
2197
+ } finally {
2198
+ _iterator.f();
2110
2199
  }
2111
- });
2200
+ }
2112
2201
  } else if (usingItem.value.type === 'condition') {
2113
2202
  list = props.conditions;
2114
2203
  } else if (!((_usingItem$value$valu = usingItem.value.values) !== null && _usingItem$value$valu !== void 0 && _usingItem$value$valu.length) || usingItem.value.multiple || props.mode === SearchInputMode.EDIT) {
@@ -2118,7 +2207,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
2118
2207
  }
2119
2208
  case 10:
2120
2209
  menuList.value = list;
2121
- if (props.valueBehavior === ValueBehavior.NEEDKEY) {
2210
+ if (props.valueBehavior === ValueBehavior.NEED_KEY) {
2122
2211
  hoverItem = list.find(function (item) {
2123
2212
  return !item.disabled;
2124
2213
  });
@@ -2140,12 +2229,12 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
2140
2229
  return _enterNewItemSelected.apply(this, arguments);
2141
2230
  }
2142
2231
  function _enterNewItemSelected() {
2143
- _enterNewItemSelected = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee6() {
2232
+ _enterNewItemSelected = _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee6() {
2144
2233
  var formatItem, valueList, res;
2145
2234
  return regenerator_default().wrap(function _callee6$(_context6) {
2146
2235
  while (1) switch (_context6.prev = _context6.next) {
2147
2236
  case 0:
2148
- formatItem = str2SeletedItem(keyword.value);
2237
+ formatItem = str2SelectedItem(keyword.value);
2149
2238
  valueList = (formatItem === null || formatItem === void 0 ? void 0 : formatItem.values) || [{
2150
2239
  id: keyword.value,
2151
2240
  name: keyword.value
@@ -2176,14 +2265,14 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
2176
2265
  return _enterExistingItemSelected.apply(this, arguments);
2177
2266
  }
2178
2267
  function _enterExistingItemSelected() {
2179
- _enterExistingItemSelected = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee7() {
2268
+ _enterExistingItemSelected = _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee7() {
2180
2269
  var valueList, formatItem, isValid;
2181
2270
  return regenerator_default().wrap(function _callee7$(_context7) {
2182
2271
  while (1) switch (_context7.prev = _context7.next) {
2183
2272
  case 0:
2184
2273
  valueList = [];
2185
2274
  if (usingItem.value.isSpecialType()) {
2186
- formatItem = str2SeletedItem(keyword.value);
2275
+ formatItem = str2SelectedItem(keyword.value);
2187
2276
  if (formatItem) {
2188
2277
  usingItem.value = formatItem;
2189
2278
  valueList = formatItem.values;
@@ -2229,15 +2318,16 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
2229
2318
  selection.addRange(range);
2230
2319
  }
2231
2320
  function setInputFocus() {
2232
- var refleshMenuList = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
2321
+ var refreshMenuList = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
2233
2322
  var needCursorToEnd = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
2234
- if (refleshMenuList) {
2323
+ if (refreshMenuList) {
2324
+ // eslint-disable-next-line @typescript-eslint/no-misused-promises
2235
2325
  setTimeout(setMenuList, 16);
2236
2326
  }
2237
2327
  isFocus.value = true;
2238
2328
  showPopover.value = true;
2239
2329
  showNoSelectValueError.value = false;
2240
- needCursorToEnd && (0,external_vue_namespaceObject.nextTick)(setCursorToEnd);
2330
+ !props.getMenuList && needCursorToEnd && (0,external_vue_namespaceObject.nextTick)(setCursorToEnd);
2241
2331
  emit('focus', isFocus.value);
2242
2332
  }
2243
2333
  function setSelectedItem(item) {
@@ -2258,7 +2348,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
2258
2348
  return inputRef.value.innerText = '';
2259
2349
  });
2260
2350
  }
2261
- function str2SeletedItem(str) {
2351
+ function str2SelectedItem(str) {
2262
2352
  var _str$split = str.split(':'),
2263
2353
  _str$split2 = _slicedToArray(_str$split, 2),
2264
2354
  key = _str$split2[0],
@@ -2276,8 +2366,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
2276
2366
  return undefined;
2277
2367
  }
2278
2368
  function deleteInputTextNode() {
2279
- var _keyword$value;
2280
- if ((_keyword$value = keyword.value) !== null && _keyword$value !== void 0 && _keyword$value.length) {
2369
+ var _keyword$value2;
2370
+ if ((_keyword$value2 = keyword.value) !== null && _keyword$value2 !== void 0 && _keyword$value2.length) {
2281
2371
  keyword.value = '';
2282
2372
  var nodes = Array.from(inputRef.value.childNodes);
2283
2373
  nodes.forEach(function (node) {
@@ -2290,13 +2380,13 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
2290
2380
  }
2291
2381
  function inputFocusForWrapper() {
2292
2382
  var _inputRef$value2;
2293
- (_inputRef$value2 = inputRef.value) === null || _inputRef$value2 === void 0 || _inputRef$value2.focus();
2383
+ (_inputRef$value2 = inputRef.value) === null || _inputRef$value2 === void 0 ? void 0 : _inputRef$value2.focus();
2294
2384
  }
2295
2385
  function inputEnterForWrapper() {
2296
2386
  return _inputEnterForWrapper.apply(this, arguments);
2297
2387
  }
2298
2388
  function _inputEnterForWrapper() {
2299
- _inputEnterForWrapper = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee8() {
2389
+ _inputEnterForWrapper = _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee8() {
2300
2390
  return regenerator_default().wrap(function _callee8$(_context8) {
2301
2391
  while (1) switch (_context8.prev = _context8.next) {
2302
2392
  case 0:
@@ -2331,13 +2421,19 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
2331
2421
  return v && clearInput();
2332
2422
  });
2333
2423
  }
2424
+ function refleshMenuHover() {
2425
+ if (!usingItem.value) {
2426
+ menuHoverId.value = '';
2427
+ }
2428
+ }
2334
2429
  // expose
2335
2430
  expose({
2336
2431
  inputFocusForWrapper: inputFocusForWrapper,
2337
2432
  inputEnterForWrapper: inputEnterForWrapper,
2338
2433
  inputClearForWrapper: inputClearForWrapper,
2339
2434
  handleInputFocus: handleInputFocus,
2340
- isFocus: isFocus
2435
+ isFocus: isFocus,
2436
+ refleshMenuHover: refleshMenuHover
2341
2437
  });
2342
2438
  return {
2343
2439
  popoverRef: popoverRef,
@@ -2360,7 +2456,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
2360
2456
  handleLogicalChange: handleLogicalChange,
2361
2457
  handleInputKeyup: handleInputKeyup,
2362
2458
  handleSelectItem: handleSelectItem,
2363
- handleSelectCondtionItem: handleSelectCondtionItem,
2459
+ handleSelectConditionItem: handleSelectConditionItem,
2364
2460
  handleMenuFooterClick: handleMenuFooterClick,
2365
2461
  resolveClassName: resolveClassName,
2366
2462
  inputFocusForWrapper: inputFocusForWrapper,
@@ -2368,7 +2464,9 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
2368
2464
  inputClearForWrapper: inputClearForWrapper,
2369
2465
  deleteInputTextNode: deleteInputTextNode,
2370
2466
  customPanelSubmit: customPanelSubmit,
2371
- t: t
2467
+ refleshMenuHover: refleshMenuHover,
2468
+ t: t,
2469
+ inputKey: inputKey
2372
2470
  };
2373
2471
  },
2374
2472
  render: function render() {
@@ -2387,6 +2485,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
2387
2485
  var inputContent = function inputContent() {
2388
2486
  var _this$keyword2, _this$usingItem, _this$usingItem2;
2389
2487
  return (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("div", {
2488
+ "key": _this.inputKey,
2390
2489
  "ref": "inputRef",
2391
2490
  "class": {
2392
2491
  'div-input': true,
@@ -2397,32 +2496,32 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
2397
2496
  "data-placeholder": !inputInnerHtml && !_this.keyword ? _this.placeholder : '',
2398
2497
  "data-tips": placeholder || '',
2399
2498
  "spellcheck": "false",
2400
- "onPaste": _this.handleInputPaste,
2401
2499
  "onFocus": _this.handleInputFocus,
2402
2500
  "onInput": _this.handleInputChange,
2403
- "onKeydown": _this.handleInputKeyup
2501
+ "onKeydown": _this.handleInputKeyup,
2502
+ "onPaste": _this.handleInputPaste
2404
2503
  }, [((_this$usingItem = _this.usingItem) === null || _this$usingItem === void 0 ? void 0 : _this$usingItem.name) && (!_this.usingItem.isSpecialType() ? (0,external_vue_namespaceObject.createVNode)("span", {
2504
+ "key": _this.usingItem.nameRenderKey,
2505
+ "style": {
2506
+ color: '#979BA5'
2507
+ },
2508
+ "contenteditable": false,
2405
2509
  "data-key": _this.usingItem.name,
2406
2510
  "data-type": _this.usingItem.type,
2407
- "key": _this.usingItem.nameRenderkey,
2408
2511
  "onMousedown": function onMousedown(e) {
2409
2512
  return e.preventDefault();
2410
- },
2411
- "contenteditable": false,
2412
- "style": {
2413
- color: '#979BA5'
2414
2513
  }
2415
2514
  }, [_this.usingItem.name, (0,external_vue_namespaceObject.createTextVNode)(":\xA0")]) : (0,external_vue_namespaceObject.createVNode)("span", {
2515
+ "key": _this.usingItem.nameRenderKey,
2416
2516
  "data-key": _this.usingItem.name,
2417
- "data-type": _this.usingItem.type,
2418
- "key": _this.usingItem.nameRenderkey
2517
+ "data-type": _this.usingItem.type
2419
2518
  }, [_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
2519
  return (0,external_vue_namespaceObject.createVNode)("span", {
2421
2520
  "key": index,
2422
- "data-key": item.name,
2423
- "data-type": "value",
2424
2521
  "data-id": item.id,
2425
- "data-index": index
2522
+ "data-index": index,
2523
+ "data-key": item.name,
2524
+ "data-type": "value"
2426
2525
  }, [item.name, index < _this.usingItem.values.length - 1 ? " ".concat(_this.usingItem.logical, " ") : '']);
2427
2526
  })]), [[(0,external_vue_namespaceObject.resolveDirective)("clickoutside"), _this.handleClickOutside]]);
2428
2527
  };
@@ -2450,29 +2549,31 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
2450
2549
  "ref": "popoverRef",
2451
2550
  "class": _this.resolveClassName('search-select-popover')
2452
2551
  }, [(0,external_vue_namespaceObject.createVNode)(menu, {
2453
- "list": _this.menuList,
2552
+ "conditions": showCondition ? _this.conditions : [],
2553
+ "hoverId": _this.menuHoverId,
2454
2554
  "keyword": _this.keyword,
2555
+ "list": _this.menuList,
2556
+ "logical": (_this$usingItem4 = _this.usingItem) === null || _this$usingItem4 === void 0 ? void 0 : _this$usingItem4.logical,
2557
+ "maxHeight": _this.maxHeight,
2455
2558
  "multiple": !!multiple,
2456
- "hoverId": _this.menuHoverId,
2457
2559
  "selected": (values === null || values === void 0 ? void 0 : values.map(function (item) {
2458
2560
  return item.id;
2459
2561
  })) || [],
2460
- "conditions": showCondition ? _this.conditions : [],
2461
- "logical": (_this$usingItem4 = _this.usingItem) === null || _this$usingItem4 === void 0 ? void 0 : _this$usingItem4.logical,
2462
2562
  "showLogical": (_this$usingItem5 = _this.usingItem) === null || _this$usingItem5 === void 0 ? void 0 : _this$usingItem5.showLogical,
2463
- "onUpdate:logical": _this.handleLogicalChange,
2563
+ "onFooterClick": _this.handleMenuFooterClick,
2564
+ "onSelectCondition": _this.handleSelectConditionItem,
2464
2565
  "onSelectItem": _this.handleSelectItem,
2465
- "onSelectCondition": _this.handleSelectCondtionItem,
2466
- "onFooterClick": _this.handleMenuFooterClick
2566
+ "onUpdate:logical": _this.handleLogicalChange
2467
2567
  }, null)]) : undefined;
2468
2568
  };
2469
2569
  return (0,external_vue_namespaceObject.createVNode)(popover_namespaceObject["default"], {
2470
- "trigger": "manual",
2471
- "theme": "light",
2472
- "placement": "bottom-start",
2570
+ "key": this.inputKey,
2473
2571
  "arrow": false,
2474
2572
  "disableOutsideClick": true,
2475
- "isShow": showPopover
2573
+ "isShow": showPopover,
2574
+ "placement": "bottom-start",
2575
+ "theme": "light",
2576
+ "trigger": "manual"
2476
2577
  }, {
2477
2578
  "default": inputContent,
2478
2579
  content: popoverContent
@@ -2528,6 +2629,12 @@ function selected_objectSpread(e) { for (var r = 1; r < arguments.length; r++) {
2528
2629
  type: Number,
2529
2630
  "default": -1
2530
2631
  },
2632
+ maxHeight: {
2633
+ type: Number,
2634
+ "default": function _default() {
2635
+ return 392;
2636
+ }
2637
+ },
2531
2638
  conditions: {
2532
2639
  type: Array,
2533
2640
  "default": function _default() {
@@ -2551,7 +2658,7 @@ function selected_objectSpread(e) { for (var r = 1; r < arguments.length; r++) {
2551
2658
  function handleDeleteSelected(index) {
2552
2659
  emit('delete', index);
2553
2660
  }
2554
- function handleEditSeleted(e, item, index) {
2661
+ function handleEditSelected(e, item, index) {
2555
2662
  e.preventDefault();
2556
2663
  e.stopPropagation();
2557
2664
  onEditClick(item, index);
@@ -2576,7 +2683,7 @@ function selected_objectSpread(e) { for (var r = 1; r < arguments.length; r++) {
2576
2683
  var _selectedInputRef$val;
2577
2684
  return !((_selectedInputRef$val = selectedInputRef.value) !== null && _selectedInputRef$val !== void 0 && _selectedInputRef$val.contains(target));
2578
2685
  }
2579
- function copySeletedItem(item) {
2686
+ function copySelectedItem(item) {
2580
2687
  var newItem = new SelectedItem(item.searchItem, item.type);
2581
2688
  newItem.values = item.values.slice();
2582
2689
  newItem.logical = item.logical || SearchLogical.OR;
@@ -2586,9 +2693,9 @@ function selected_objectSpread(e) { for (var r = 1; r < arguments.length; r++) {
2586
2693
  inputRef: inputRef,
2587
2694
  selectedInputRef: selectedInputRef,
2588
2695
  editKey: editKey,
2589
- copySeletedItem: copySeletedItem,
2696
+ copySelectedItem: copySelectedItem,
2590
2697
  handleDeleteSelected: handleDeleteSelected,
2591
- handleEditSeleted: handleEditSeleted,
2698
+ handleEditSelected: handleEditSelected,
2592
2699
  handleInputOutside: handleInputOutside,
2593
2700
  handleAddSelected: handleAddSelected,
2594
2701
  handleInputFocus: handleInputFocus
@@ -2598,19 +2705,20 @@ function selected_objectSpread(e) { for (var r = 1; r < arguments.length; r++) {
2598
2705
  var _this = this;
2599
2706
  var contentComponent = function contentComponent(item, index) {
2600
2707
  return _this.editKey === "".concat(item.id, "_").concat(index) ? (0,external_vue_namespaceObject.createVNode)("div", {
2601
- "class": "selected-input",
2602
2708
  "key": _this.editKey.toString(),
2603
- "ref": "selectedInputRef"
2709
+ "ref": "selectedInputRef",
2710
+ "class": "selected-input"
2604
2711
  }, [(0,external_vue_namespaceObject.createVNode)(input, {
2605
- "ref": "inputRef",
2606
2712
  "key": _this.editKey.toString(),
2607
- "mode": SearchInputMode.EDIT,
2608
- "data": _this.data,
2609
- "showCondition": false,
2610
- "conditions": _this.conditions,
2611
- "defautUsingItem": _this.copySeletedItem(item),
2713
+ "ref": "inputRef",
2612
2714
  "clickOutside": _this.handleInputOutside,
2715
+ "conditions": _this.conditions,
2716
+ "data": _this.data,
2717
+ "defaultUsingItem": _this.copySelectedItem(item),
2613
2718
  "getMenuList": _this.getMenuList,
2719
+ "maxHeight": _this.maxHeight,
2720
+ "mode": SearchInputMode.EDIT,
2721
+ "showCondition": false,
2614
2722
  "validateValues": _this.validateValues,
2615
2723
  "valueBehavior": _this.valueBehavior,
2616
2724
  "onAdd": function onAdd(v) {
@@ -2618,12 +2726,12 @@ function selected_objectSpread(e) { for (var r = 1; r < arguments.length; r++) {
2618
2726
  },
2619
2727
  "onFocus": _this.handleInputFocus
2620
2728
  }, 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)
2729
+ "key": "".concat(item.id, "_").concat(index),
2730
+ "class": "search-container-selected ".concat(!(_this.overflowIndex >= 0 ? index < _this.overflowIndex : index >= 0) ? 'hidden-selected' : '')
2623
2731
  }, [(0,external_vue_namespaceObject.createVNode)("span", {
2624
2732
  "class": "selected-name",
2625
2733
  "onClick": function onClick(e) {
2626
- return _this.handleEditSeleted(e, item, index);
2734
+ return _this.handleEditSelected(e, item, index);
2627
2735
  }
2628
2736
  }, [item.inputInnerText]), (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Error, {
2629
2737
  "class": "selected-clear",
@@ -2644,6 +2752,9 @@ function selected_objectSpread(e) { for (var r = 1; r < arguments.length; r++) {
2644
2752
 
2645
2753
  function search_select_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
2646
2754
  function search_select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? search_select_ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : search_select_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
2755
+ function search_select_createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = search_select_unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
2756
+ function search_select_unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return search_select_arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? search_select_arrayLikeToArray(r, a) : void 0; } }
2757
+ function search_select_arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
2647
2758
  /*
2648
2759
  * Tencent is pleased to support the open source community by making
2649
2760
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
@@ -2679,7 +2790,9 @@ function search_select_objectSpread(e) { for (var r = 1; r < arguments.length; r
2679
2790
 
2680
2791
 
2681
2792
  var INPUT_PADDING_WIDTH = 40;
2682
- var SELETED_MARGING_RIGHT = 6;
2793
+ var SELECTED_MARGIN_RIGHT = 6;
2794
+ var INPUT_MIN_HEIGHT = 26;
2795
+ var MENU_ITEM_MIN_HEIGHT = 32;
2683
2796
  var SearchSelectProps = {
2684
2797
  data: {
2685
2798
  type: Array,
@@ -2693,17 +2806,10 @@ var SearchSelectProps = {
2693
2806
  return [];
2694
2807
  }
2695
2808
  },
2696
- shrink: {
2697
- type: Boolean,
2698
- "default": true
2699
- },
2700
2809
  maxHeight: {
2701
2810
  type: Number,
2702
- "default": 120
2703
- },
2704
- minHeight: {
2705
- type: Number,
2706
- "default": 26
2811
+ // 默认展示12条,加上列表8px的padding
2812
+ "default": MENU_ITEM_MIN_HEIGHT * 12 + 8
2707
2813
  },
2708
2814
  conditions: {
2709
2815
  type: Array,
@@ -2726,7 +2832,7 @@ var SearchSelectProps = {
2726
2832
  type: String,
2727
2833
  "default": ValueBehavior.ALL,
2728
2834
  validator: function validator(v) {
2729
- return [ValueBehavior.ALL, ValueBehavior.NEEDKEY].includes(v);
2835
+ return [ValueBehavior.ALL, ValueBehavior.NEED_KEY].includes(v);
2730
2836
  }
2731
2837
  }
2732
2838
  // deleteBehavior: {
@@ -2776,13 +2882,24 @@ var SearchSelectProps = {
2776
2882
  (0,external_vue_namespaceObject.watch)(function () {
2777
2883
  return props.data;
2778
2884
  }, function () {
2779
- var _copyData$value;
2780
2885
  copyData.value = JSON.parse(JSON.stringify(props.data));
2781
- (_copyData$value = copyData.value) === null || _copyData$value === void 0 || _copyData$value.forEach(function (item) {
2782
- item.isSelected = props.uniqueSelect && !!props.modelValue.some(function (set) {
2783
- return set.id === item.id;
2784
- });
2785
- });
2886
+ var _iterator = search_select_createForOfIteratorHelper(copyData.value || []),
2887
+ _step;
2888
+ try {
2889
+ var _loop = function _loop() {
2890
+ var item = _step.value;
2891
+ item.isSelected = props.uniqueSelect && props.modelValue.some(function (set) {
2892
+ return set.id === item.id;
2893
+ });
2894
+ };
2895
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
2896
+ _loop();
2897
+ }
2898
+ } catch (err) {
2899
+ _iterator.e(err);
2900
+ } finally {
2901
+ _iterator.f();
2902
+ }
2786
2903
  }, {
2787
2904
  immediate: true
2788
2905
  });
@@ -2791,50 +2908,84 @@ var SearchSelectProps = {
2791
2908
  return props.modelValue;
2792
2909
  }, function (v) {
2793
2910
  if (!(v !== null && v !== void 0 && v.length)) {
2794
- var _copyData$value2;
2795
2911
  selectedList.value = [];
2796
- (_copyData$value2 = copyData.value) === null || _copyData$value2 === void 0 || _copyData$value2.forEach(function (item) {
2797
- item.isSelected = false;
2798
- });
2912
+ var _iterator2 = search_select_createForOfIteratorHelper(copyData.value || []),
2913
+ _step2;
2914
+ try {
2915
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
2916
+ var item = _step2.value;
2917
+ item.isSelected = false;
2918
+ }
2919
+ } catch (err) {
2920
+ _iterator2.e(err);
2921
+ } finally {
2922
+ _iterator2.f();
2923
+ }
2799
2924
  return;
2800
2925
  }
2801
2926
  var list = [];
2802
- v.forEach(function (item) {
2803
- var seleted = selectedList.value.find(function (set) {
2804
- return set.id === item.id && set.name === item.name;
2805
- });
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);
2810
- } else {
2811
- var _item$values;
2812
- var searchItem = props.data.find(function (set) {
2813
- return set.id === item.id;
2927
+ var _iterator3 = search_select_createForOfIteratorHelper(v),
2928
+ _step3;
2929
+ try {
2930
+ var _loop2 = function _loop2() {
2931
+ var item = _step3.value;
2932
+ var selected = selectedList.value.find(function (set) {
2933
+ return set.id === item.id && set.name === item.name;
2814
2934
  });
2815
- var searchType = 'default';
2816
- if (!searchItem) {
2817
- searchItem = props.conditions.find(function (set) {
2935
+ if ((selected === null || selected === void 0 ? void 0 : selected.toValueKey()) === JSON.stringify(item)) {
2936
+ selected.values = item.values || [];
2937
+ selected.logical = item.logical || SearchLogical.OR;
2938
+ list.push(selected);
2939
+ } else {
2940
+ var _item$values;
2941
+ var searchItem = props.data.find(function (set) {
2818
2942
  return set.id === item.id;
2819
2943
  });
2820
- searchItem && (searchType = 'condition');
2821
- }
2822
- if (!searchItem && !((_item$values = item.values) !== null && _item$values !== void 0 && _item$values.length)) {
2823
- searchType = 'text';
2944
+ var searchType = 'default';
2945
+ if (!searchItem) {
2946
+ searchItem = props.conditions.find(function (set) {
2947
+ return set.id === item.id;
2948
+ });
2949
+ if (searchItem) {
2950
+ searchType = 'condition';
2951
+ }
2952
+ }
2953
+ if (!searchItem && !((_item$values = item.values) !== null && _item$values !== void 0 && _item$values.length)) {
2954
+ searchType = 'text';
2955
+ }
2956
+ var newSelected = new SelectedItem(searchItem || item, searchType);
2957
+ newSelected.values = item.values || [];
2958
+ newSelected.logical = item.logical || SearchLogical.OR;
2959
+ list.push(newSelected);
2824
2960
  }
2825
- var newSelected = new SelectedItem(searchItem || item, searchType);
2826
- newSelected.values = item.values || [];
2827
- newSelected.logical = item.logical || SearchLogical.OR;
2828
- list.push(newSelected);
2961
+ };
2962
+ for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
2963
+ _loop2();
2829
2964
  }
2830
- });
2965
+ } catch (err) {
2966
+ _iterator3.e(err);
2967
+ } finally {
2968
+ _iterator3.f();
2969
+ }
2831
2970
  selectedList.value = list;
2832
2971
  copyData.value = JSON.parse(JSON.stringify(props.data || []));
2833
- copyData.value.forEach(function (item) {
2834
- item.isSelected = props.uniqueSelect && !!list.some(function (set) {
2835
- return set.id === item.id;
2836
- });
2837
- });
2972
+ var _iterator4 = search_select_createForOfIteratorHelper(copyData.value),
2973
+ _step4;
2974
+ try {
2975
+ var _loop3 = function _loop3() {
2976
+ var item = _step4.value;
2977
+ item.isSelected = props.uniqueSelect && !!list.some(function (set) {
2978
+ return set.id === item.id;
2979
+ });
2980
+ };
2981
+ for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
2982
+ _loop3();
2983
+ }
2984
+ } catch (err) {
2985
+ _iterator4.e(err);
2986
+ } finally {
2987
+ _iterator4.f();
2988
+ }
2838
2989
  }, {
2839
2990
  immediate: true,
2840
2991
  deep: true
@@ -2842,6 +2993,7 @@ var SearchSelectProps = {
2842
2993
  // life hooks
2843
2994
  (0,external_vue_namespaceObject.onMounted)(function () {
2844
2995
  addListener(wrapRef.value.querySelector(".".concat(resolveClassName('search-select-container'))), debounceResize);
2996
+ debounceResize();
2845
2997
  });
2846
2998
  (0,external_vue_namespaceObject.onBeforeUnmount)(function () {
2847
2999
  removeListener(wrapRef.value.querySelector(".".concat(resolveClassName('search-select-container'))), debounceResize);
@@ -2883,18 +3035,18 @@ var SearchSelectProps = {
2883
3035
  return;
2884
3036
  }
2885
3037
  var inputEl = wrapRef.value.querySelector(".".concat(resolveClassName('search-select-container')));
2886
- var maxWidth = wrapRef.value.querySelector('.search-container').clientWidth - SELETED_MARGING_RIGHT - 2;
3038
+ var maxWidth = wrapRef.value.querySelector('.search-container').clientWidth - SELECTED_MARGIN_RIGHT - 2;
2887
3039
  var tagList = inputEl.querySelectorAll('.search-container-selected:not(.overflow-selected)');
2888
3040
  var width = 0;
2889
3041
  var index = 0;
2890
3042
  var i = 0;
2891
3043
  while (index === 0 && width <= maxWidth - INPUT_PADDING_WIDTH && i <= tagList.length - 1) {
2892
3044
  var el = tagList[i];
2893
- if (el.clientHeight > props.minHeight) {
3045
+ if (el.clientHeight > INPUT_MIN_HEIGHT) {
2894
3046
  overflowIndex.value = i;
2895
3047
  return;
2896
3048
  }
2897
- width += el ? el.clientWidth + SELETED_MARGING_RIGHT : 0;
3049
+ width += el ? el.clientWidth + SELECTED_MARGIN_RIGHT : 0;
2898
3050
  if (width >= maxWidth - INPUT_PADDING_WIDTH) {
2899
3051
  index = i;
2900
3052
  }
@@ -2933,15 +3085,18 @@ var SearchSelectProps = {
2933
3085
  var list = selectedList.value.slice();
2934
3086
  list.splice(typeof index === 'number' ? index : selectedList.value.length - 1, 1);
2935
3087
  onValidate('');
3088
+ inputRef.value.refleshMenuHover();
2936
3089
  emit('update:modelValue', list.map(function (item) {
2937
3090
  return item.toValue();
2938
3091
  }));
2939
3092
  }
2940
3093
  function handleInputFocus(v) {
2941
- v && (overflowIndex.value = -1);
3094
+ if (v) {
3095
+ overflowIndex.value = -1;
3096
+ }
2942
3097
  if (v === false) {
2943
3098
  var _wrapRef$value$queryS;
2944
- (_wrapRef$value$queryS = wrapRef.value.querySelector(".".concat(resolveClassName('search-select-container')))) === null || _wrapRef$value$queryS === void 0 || _wrapRef$value$queryS.scrollTo(0, 0);
3099
+ (_wrapRef$value$queryS = wrapRef.value.querySelector(".".concat(resolveClassName('search-select-container')))) === null || _wrapRef$value$queryS === void 0 ? void 0 : _wrapRef$value$queryS.scrollTo(0, 0);
2945
3100
  }
2946
3101
  isFocus.value = v;
2947
3102
  }
@@ -2978,9 +3133,10 @@ var SearchSelectProps = {
2978
3133
  },
2979
3134
  render: function render() {
2980
3135
  var _this = this,
3136
+ _ref2,
2981
3137
  _this$$slots$prepend,
2982
3138
  _this$$slots2;
2983
- var maxHeight = "".concat(!this.shrink || this.isFocus ? this.maxHeight : this.minHeight, "px");
3139
+ var maxHeight = "".concat(this.isFocus ? this.maxHeight : INPUT_MIN_HEIGHT).replace('px', '');
2984
3140
  var showCondition = !!this.selectedList.length && this.selectedList.slice(-1)[0].type !== 'condition';
2985
3141
  var menuSlots = Object.assign({}, this.$slots.menu ? {
2986
3142
  menu: function menu(data) {
@@ -2990,24 +3146,25 @@ var SearchSelectProps = {
2990
3146
  } : {});
2991
3147
  // render
2992
3148
  return (0,external_vue_namespaceObject.createVNode)("div", {
2993
- "class": this.resolveClassName('search-select'),
2994
- "ref": "wrapRef"
3149
+ "ref": "wrapRef",
3150
+ "class": this.resolveClassName('search-select')
2995
3151
  }, [(0,external_vue_namespaceObject.createVNode)("div", {
2996
- "class": _defineProperty(_defineProperty({}, this.resolveClassName('search-select-container'), true), 'is-focus', this.isFocus),
3152
+ "class": (_ref2 = {}, _defineProperty(_ref2, this.resolveClassName('search-select-container'), true), _defineProperty(_ref2, 'is-focus', this.isFocus), _ref2),
2997
3153
  "onClick": this.handleWrapClick
2998
3154
  }, [(0,external_vue_namespaceObject.createVNode)("div", {
2999
3155
  "class": "search-prefix"
3000
3156
  }, [(_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
3157
  "style": {
3003
- maxHeight: maxHeight
3004
- }
3158
+ 'max-height': "".concat(maxHeight, "px")
3159
+ },
3160
+ "class": "search-container"
3005
3161
  }, [(0,external_vue_namespaceObject.createVNode)(selected, {
3006
- "data": this.copyData,
3007
3162
  "conditions": this.localConditions,
3008
- "selectedList": this.selectedList,
3009
- "overflowIndex": this.overflowIndex,
3163
+ "data": this.copyData,
3010
3164
  "getMenuList": this.getMenuList,
3165
+ "maxHeight": this.maxHeight,
3166
+ "overflowIndex": this.overflowIndex,
3167
+ "selectedList": this.selectedList,
3011
3168
  "validateValues": this.validateValues,
3012
3169
  "valueBehavior": this.valueBehavior,
3013
3170
  "onDelete": this.handleDeleteSelected,
@@ -3016,13 +3173,14 @@ var SearchSelectProps = {
3016
3173
  "class": "search-container-input"
3017
3174
  }, [(0,external_vue_namespaceObject.createVNode)(input, {
3018
3175
  "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
3176
  "clickOutside": this.handleInputOutside,
3177
+ "conditions": this.localConditions,
3178
+ "data": this.copyData,
3025
3179
  "getMenuList": this.getMenuList,
3180
+ "maxHeight": this.maxHeight,
3181
+ "placeholder": this.placeholder || this.t.pleaseSelect,
3182
+ "showCondition": showCondition,
3183
+ "showInputBefore": !this.selectedList.length,
3026
3184
  "validateValues": this.validateValues,
3027
3185
  "valueBehavior": this.valueBehavior,
3028
3186
  "onAdd": this.handleAddSelected,
@@ -3035,8 +3193,8 @@ var SearchSelectProps = {
3035
3193
  "class": "search-clear",
3036
3194
  "onClick": this.handleClearAll
3037
3195
  }, 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' : '')
3196
+ "class": "search-nextfix-icon ".concat(this.isFocus ? 'is-focus' : ''),
3197
+ "onClick": this.handleClickSearch
3040
3198
  }, null)])]), !!this.validateStr.length && (0,external_vue_namespaceObject.createVNode)("div", {
3041
3199
  "class": this.resolveClassName('search-select-tips')
3042
3200
  }, [this.$slots.validate ? this.$slots.validate() : (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [(0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.ExclamationCircleShape, {