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

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 +328 -442
  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 +328 -442
  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
@@ -2,12 +2,11 @@ import "../styles/reset.css";
2
2
  import "./select.less";
3
3
  import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
4
4
  import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
5
- import * as __WEBPACK_EXTERNAL_MODULE_lodash_isEqual_ce045a54__ from "lodash/isEqual";
6
5
  import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_checkbox_13b1cb4a__ from "../checkbox";
7
6
  import "../checkbox/checkbox.less";
8
7
  import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__ from "../config-provider";
9
8
  import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__ from "../icon";
10
- import * as __WEBPACK_EXTERNAL_MODULE_lodash_merge_cf99375a__ from "lodash/merge";
9
+ import * as __WEBPACK_EXTERNAL_MODULE_lodash_isEqual_ce045a54__ from "lodash/isEqual";
11
10
  import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__ from "../directives";
12
11
  import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_input_d525237e__ from "../input";
13
12
  import "../input/input.less";
@@ -17,9 +16,11 @@ import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_popover_9b03f19d__ from "../p
17
16
  import "../popover/popover.less";
18
17
  import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_virtual_render_927587a8__ from "../virtual-render";
19
18
  import "../virtual-render/virtual-render.less";
20
- import * as __WEBPACK_EXTERNAL_MODULE_lodash_debounce_3540babe__ from "lodash/debounce";
19
+ import * as __WEBPACK_EXTERNAL_MODULE_lodash_merge_cf99375a__ from "lodash/merge";
20
+ import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_overflow_title_051a85a5__ from "../overflow-title";
21
21
  import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_tag_d74826be__ from "../tag";
22
22
  import "../tag/tag.less";
23
+ import * as __WEBPACK_EXTERNAL_MODULE_lodash_debounce_3540babe__ from "lodash/debounce";
23
24
  /******/ var __webpack_modules__ = ({
24
25
 
25
26
  /***/ 7609:
@@ -29,304 +30,304 @@ var _typeof = (__webpack_require__(7425)["default"]);
29
30
  function _regeneratorRuntime() {
30
31
  "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
31
32
  module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
32
- return e;
33
+ return exports;
33
34
  }, module.exports.__esModule = true, module.exports["default"] = module.exports;
34
- var t,
35
- e = {},
36
- r = Object.prototype,
37
- n = r.hasOwnProperty,
38
- o = Object.defineProperty || function (t, e, r) {
39
- t[e] = r.value;
35
+ var exports = {},
36
+ Op = Object.prototype,
37
+ hasOwn = Op.hasOwnProperty,
38
+ defineProperty = Object.defineProperty || function (obj, key, desc) {
39
+ obj[key] = desc.value;
40
40
  },
41
- i = "function" == typeof Symbol ? Symbol : {},
42
- a = i.iterator || "@@iterator",
43
- c = i.asyncIterator || "@@asyncIterator",
44
- u = i.toStringTag || "@@toStringTag";
45
- function define(t, e, r) {
46
- return Object.defineProperty(t, e, {
47
- value: r,
41
+ $Symbol = "function" == typeof Symbol ? Symbol : {},
42
+ iteratorSymbol = $Symbol.iterator || "@@iterator",
43
+ asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
44
+ toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
45
+ function define(obj, key, value) {
46
+ return Object.defineProperty(obj, key, {
47
+ value: value,
48
48
  enumerable: !0,
49
49
  configurable: !0,
50
50
  writable: !0
51
- }), t[e];
51
+ }), obj[key];
52
52
  }
53
53
  try {
54
54
  define({}, "");
55
- } catch (t) {
56
- define = function define(t, e, r) {
57
- return t[e] = r;
55
+ } catch (err) {
56
+ define = function define(obj, key, value) {
57
+ return obj[key] = value;
58
58
  };
59
59
  }
60
- function wrap(t, e, r, n) {
61
- var i = e && e.prototype instanceof Generator ? e : Generator,
62
- a = Object.create(i.prototype),
63
- c = new Context(n || []);
64
- return o(a, "_invoke", {
65
- value: makeInvokeMethod(t, r, c)
66
- }), a;
60
+ function wrap(innerFn, outerFn, self, tryLocsList) {
61
+ var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
62
+ generator = Object.create(protoGenerator.prototype),
63
+ context = new Context(tryLocsList || []);
64
+ return defineProperty(generator, "_invoke", {
65
+ value: makeInvokeMethod(innerFn, self, context)
66
+ }), generator;
67
67
  }
68
- function tryCatch(t, e, r) {
68
+ function tryCatch(fn, obj, arg) {
69
69
  try {
70
70
  return {
71
71
  type: "normal",
72
- arg: t.call(e, r)
72
+ arg: fn.call(obj, arg)
73
73
  };
74
- } catch (t) {
74
+ } catch (err) {
75
75
  return {
76
76
  type: "throw",
77
- arg: t
77
+ arg: err
78
78
  };
79
79
  }
80
80
  }
81
- e.wrap = wrap;
82
- var h = "suspendedStart",
83
- l = "suspendedYield",
84
- f = "executing",
85
- s = "completed",
86
- y = {};
81
+ exports.wrap = wrap;
82
+ var ContinueSentinel = {};
87
83
  function Generator() {}
88
84
  function GeneratorFunction() {}
89
85
  function GeneratorFunctionPrototype() {}
90
- var p = {};
91
- define(p, a, function () {
86
+ var IteratorPrototype = {};
87
+ define(IteratorPrototype, iteratorSymbol, function () {
92
88
  return this;
93
89
  });
94
- var d = Object.getPrototypeOf,
95
- v = d && d(d(values([])));
96
- v && v !== r && n.call(v, a) && (p = v);
97
- var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
98
- function defineIteratorMethods(t) {
99
- ["next", "throw", "return"].forEach(function (e) {
100
- define(t, e, function (t) {
101
- return this._invoke(e, t);
90
+ var getProto = Object.getPrototypeOf,
91
+ NativeIteratorPrototype = getProto && getProto(getProto(values([])));
92
+ NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
93
+ var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
94
+ function defineIteratorMethods(prototype) {
95
+ ["next", "throw", "return"].forEach(function (method) {
96
+ define(prototype, method, function (arg) {
97
+ return this._invoke(method, arg);
102
98
  });
103
99
  });
104
100
  }
105
- function AsyncIterator(t, e) {
106
- function invoke(r, o, i, a) {
107
- var c = tryCatch(t[r], t, o);
108
- if ("throw" !== c.type) {
109
- var u = c.arg,
110
- h = u.value;
111
- return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
112
- invoke("next", t, i, a);
113
- }, function (t) {
114
- invoke("throw", t, i, a);
115
- }) : e.resolve(h).then(function (t) {
116
- u.value = t, i(u);
117
- }, function (t) {
118
- return invoke("throw", t, i, a);
101
+ function AsyncIterator(generator, PromiseImpl) {
102
+ function invoke(method, arg, resolve, reject) {
103
+ var record = tryCatch(generator[method], generator, arg);
104
+ if ("throw" !== record.type) {
105
+ var result = record.arg,
106
+ value = result.value;
107
+ return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
108
+ invoke("next", value, resolve, reject);
109
+ }, function (err) {
110
+ invoke("throw", err, resolve, reject);
111
+ }) : PromiseImpl.resolve(value).then(function (unwrapped) {
112
+ result.value = unwrapped, resolve(result);
113
+ }, function (error) {
114
+ return invoke("throw", error, resolve, reject);
119
115
  });
120
116
  }
121
- a(c.arg);
117
+ reject(record.arg);
122
118
  }
123
- var r;
124
- o(this, "_invoke", {
125
- value: function value(t, n) {
119
+ var previousPromise;
120
+ defineProperty(this, "_invoke", {
121
+ value: function value(method, arg) {
126
122
  function callInvokeWithMethodAndArg() {
127
- return new e(function (e, r) {
128
- invoke(t, n, e, r);
123
+ return new PromiseImpl(function (resolve, reject) {
124
+ invoke(method, arg, resolve, reject);
129
125
  });
130
126
  }
131
- return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
127
+ return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
132
128
  }
133
129
  });
134
130
  }
135
- function makeInvokeMethod(e, r, n) {
136
- var o = h;
137
- return function (i, a) {
138
- if (o === f) throw new Error("Generator is already running");
139
- if (o === s) {
140
- if ("throw" === i) throw a;
141
- return {
142
- value: t,
143
- done: !0
144
- };
131
+ function makeInvokeMethod(innerFn, self, context) {
132
+ var state = "suspendedStart";
133
+ return function (method, arg) {
134
+ if ("executing" === state) throw new Error("Generator is already running");
135
+ if ("completed" === state) {
136
+ if ("throw" === method) throw arg;
137
+ return doneResult();
145
138
  }
146
- for (n.method = i, n.arg = a;;) {
147
- var c = n.delegate;
148
- if (c) {
149
- var u = maybeInvokeDelegate(c, n);
150
- if (u) {
151
- if (u === y) continue;
152
- return u;
139
+ for (context.method = method, context.arg = arg;;) {
140
+ var delegate = context.delegate;
141
+ if (delegate) {
142
+ var delegateResult = maybeInvokeDelegate(delegate, context);
143
+ if (delegateResult) {
144
+ if (delegateResult === ContinueSentinel) continue;
145
+ return delegateResult;
153
146
  }
154
147
  }
155
- if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
156
- if (o === h) throw o = s, n.arg;
157
- n.dispatchException(n.arg);
158
- } else "return" === n.method && n.abrupt("return", n.arg);
159
- o = f;
160
- var p = tryCatch(e, r, n);
161
- if ("normal" === p.type) {
162
- if (o = n.done ? s : l, p.arg === y) continue;
148
+ if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
149
+ if ("suspendedStart" === state) throw state = "completed", context.arg;
150
+ context.dispatchException(context.arg);
151
+ } else "return" === context.method && context.abrupt("return", context.arg);
152
+ state = "executing";
153
+ var record = tryCatch(innerFn, self, context);
154
+ if ("normal" === record.type) {
155
+ if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
163
156
  return {
164
- value: p.arg,
165
- done: n.done
157
+ value: record.arg,
158
+ done: context.done
166
159
  };
167
160
  }
168
- "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
161
+ "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
169
162
  }
170
163
  };
171
164
  }
172
- function maybeInvokeDelegate(e, r) {
173
- var n = r.method,
174
- o = e.iterator[n];
175
- 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;
176
- var i = tryCatch(o, e.iterator, r.arg);
177
- if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
178
- var a = i.arg;
179
- 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);
165
+ function maybeInvokeDelegate(delegate, context) {
166
+ var methodName = context.method,
167
+ method = delegate.iterator[methodName];
168
+ 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;
169
+ var record = tryCatch(method, delegate.iterator, context.arg);
170
+ if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
171
+ var info = record.arg;
172
+ 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);
180
173
  }
181
- function pushTryEntry(t) {
182
- var e = {
183
- tryLoc: t[0]
174
+ function pushTryEntry(locs) {
175
+ var entry = {
176
+ tryLoc: locs[0]
184
177
  };
185
- 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
178
+ 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
186
179
  }
187
- function resetTryEntry(t) {
188
- var e = t.completion || {};
189
- e.type = "normal", delete e.arg, t.completion = e;
180
+ function resetTryEntry(entry) {
181
+ var record = entry.completion || {};
182
+ record.type = "normal", delete record.arg, entry.completion = record;
190
183
  }
191
- function Context(t) {
184
+ function Context(tryLocsList) {
192
185
  this.tryEntries = [{
193
186
  tryLoc: "root"
194
- }], t.forEach(pushTryEntry, this), this.reset(!0);
187
+ }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
195
188
  }
196
- function values(e) {
197
- if (e || "" === e) {
198
- var r = e[a];
199
- if (r) return r.call(e);
200
- if ("function" == typeof e.next) return e;
201
- if (!isNaN(e.length)) {
202
- var o = -1,
203
- i = function next() {
204
- for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
205
- return next.value = t, next.done = !0, next;
189
+ function values(iterable) {
190
+ if (iterable) {
191
+ var iteratorMethod = iterable[iteratorSymbol];
192
+ if (iteratorMethod) return iteratorMethod.call(iterable);
193
+ if ("function" == typeof iterable.next) return iterable;
194
+ if (!isNaN(iterable.length)) {
195
+ var i = -1,
196
+ next = function next() {
197
+ for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
198
+ return next.value = undefined, next.done = !0, next;
206
199
  };
207
- return i.next = i;
200
+ return next.next = next;
208
201
  }
209
202
  }
210
- throw new TypeError(_typeof(e) + " is not iterable");
203
+ return {
204
+ next: doneResult
205
+ };
211
206
  }
212
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
207
+ function doneResult() {
208
+ return {
209
+ value: undefined,
210
+ done: !0
211
+ };
212
+ }
213
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
213
214
  value: GeneratorFunctionPrototype,
214
215
  configurable: !0
215
- }), o(GeneratorFunctionPrototype, "constructor", {
216
+ }), defineProperty(GeneratorFunctionPrototype, "constructor", {
216
217
  value: GeneratorFunction,
217
218
  configurable: !0
218
- }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
219
- var e = "function" == typeof t && t.constructor;
220
- return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
221
- }, e.mark = function (t) {
222
- return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
223
- }, e.awrap = function (t) {
219
+ }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
220
+ var ctor = "function" == typeof genFun && genFun.constructor;
221
+ return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
222
+ }, exports.mark = function (genFun) {
223
+ return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
224
+ }, exports.awrap = function (arg) {
224
225
  return {
225
- __await: t
226
+ __await: arg
226
227
  };
227
- }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
228
+ }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
228
229
  return this;
229
- }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
230
- void 0 === i && (i = Promise);
231
- var a = new AsyncIterator(wrap(t, r, n, o), i);
232
- return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
233
- return t.done ? t.value : a.next();
230
+ }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
231
+ void 0 === PromiseImpl && (PromiseImpl = Promise);
232
+ var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
233
+ return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
234
+ return result.done ? result.value : iter.next();
234
235
  });
235
- }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
236
+ }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
236
237
  return this;
237
- }), define(g, "toString", function () {
238
+ }), define(Gp, "toString", function () {
238
239
  return "[object Generator]";
239
- }), e.keys = function (t) {
240
- var e = Object(t),
241
- r = [];
242
- for (var n in e) r.push(n);
243
- return r.reverse(), function next() {
244
- for (; r.length;) {
245
- var t = r.pop();
246
- if (t in e) return next.value = t, next.done = !1, next;
240
+ }), exports.keys = function (val) {
241
+ var object = Object(val),
242
+ keys = [];
243
+ for (var key in object) keys.push(key);
244
+ return keys.reverse(), function next() {
245
+ for (; keys.length;) {
246
+ var key = keys.pop();
247
+ if (key in object) return next.value = key, next.done = !1, next;
247
248
  }
248
249
  return next.done = !0, next;
249
250
  };
250
- }, e.values = values, Context.prototype = {
251
+ }, exports.values = values, Context.prototype = {
251
252
  constructor: Context,
252
- reset: function reset(e) {
253
- 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);
253
+ reset: function reset(skipTempReset) {
254
+ 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);
254
255
  },
255
256
  stop: function stop() {
256
257
  this.done = !0;
257
- var t = this.tryEntries[0].completion;
258
- if ("throw" === t.type) throw t.arg;
258
+ var rootRecord = this.tryEntries[0].completion;
259
+ if ("throw" === rootRecord.type) throw rootRecord.arg;
259
260
  return this.rval;
260
261
  },
261
- dispatchException: function dispatchException(e) {
262
- if (this.done) throw e;
263
- var r = this;
264
- function handle(n, o) {
265
- return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
262
+ dispatchException: function dispatchException(exception) {
263
+ if (this.done) throw exception;
264
+ var context = this;
265
+ function handle(loc, caught) {
266
+ return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
266
267
  }
267
- for (var o = this.tryEntries.length - 1; o >= 0; --o) {
268
- var i = this.tryEntries[o],
269
- a = i.completion;
270
- if ("root" === i.tryLoc) return handle("end");
271
- if (i.tryLoc <= this.prev) {
272
- var c = n.call(i, "catchLoc"),
273
- u = n.call(i, "finallyLoc");
274
- if (c && u) {
275
- if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
276
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
277
- } else if (c) {
278
- if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
268
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
269
+ var entry = this.tryEntries[i],
270
+ record = entry.completion;
271
+ if ("root" === entry.tryLoc) return handle("end");
272
+ if (entry.tryLoc <= this.prev) {
273
+ var hasCatch = hasOwn.call(entry, "catchLoc"),
274
+ hasFinally = hasOwn.call(entry, "finallyLoc");
275
+ if (hasCatch && hasFinally) {
276
+ if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
277
+ if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
278
+ } else if (hasCatch) {
279
+ if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
279
280
  } else {
280
- if (!u) throw new Error("try statement without catch or finally");
281
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
281
+ if (!hasFinally) throw new Error("try statement without catch or finally");
282
+ if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
282
283
  }
283
284
  }
284
285
  }
285
286
  },
286
- abrupt: function abrupt(t, e) {
287
- for (var r = this.tryEntries.length - 1; r >= 0; --r) {
288
- var o = this.tryEntries[r];
289
- if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
290
- var i = o;
287
+ abrupt: function abrupt(type, arg) {
288
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
289
+ var entry = this.tryEntries[i];
290
+ if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
291
+ var finallyEntry = entry;
291
292
  break;
292
293
  }
293
294
  }
294
- i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
295
- var a = i ? i.completion : {};
296
- return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
295
+ finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
296
+ var record = finallyEntry ? finallyEntry.completion : {};
297
+ return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
297
298
  },
298
- complete: function complete(t, e) {
299
- if ("throw" === t.type) throw t.arg;
300
- 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;
299
+ complete: function complete(record, afterLoc) {
300
+ if ("throw" === record.type) throw record.arg;
301
+ 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;
301
302
  },
302
- finish: function finish(t) {
303
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
304
- var r = this.tryEntries[e];
305
- if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
303
+ finish: function finish(finallyLoc) {
304
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
305
+ var entry = this.tryEntries[i];
306
+ if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
306
307
  }
307
308
  },
308
- "catch": function _catch(t) {
309
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
310
- var r = this.tryEntries[e];
311
- if (r.tryLoc === t) {
312
- var n = r.completion;
313
- if ("throw" === n.type) {
314
- var o = n.arg;
315
- resetTryEntry(r);
309
+ "catch": function _catch(tryLoc) {
310
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
311
+ var entry = this.tryEntries[i];
312
+ if (entry.tryLoc === tryLoc) {
313
+ var record = entry.completion;
314
+ if ("throw" === record.type) {
315
+ var thrown = record.arg;
316
+ resetTryEntry(entry);
316
317
  }
317
- return o;
318
+ return thrown;
318
319
  }
319
320
  }
320
321
  throw new Error("illegal catch attempt");
321
322
  },
322
- delegateYield: function delegateYield(e, r, n) {
323
+ delegateYield: function delegateYield(iterable, resultName, nextLoc) {
323
324
  return this.delegate = {
324
- iterator: values(e),
325
- resultName: r,
326
- nextLoc: n
327
- }, "next" === this.method && (this.arg = t), y;
325
+ iterator: values(iterable),
326
+ resultName: resultName,
327
+ nextLoc: nextLoc
328
+ }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
328
329
  }
329
- }, e;
330
+ }, exports;
330
331
  }
331
332
  module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
332
333
 
@@ -335,14 +336,14 @@ module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.e
335
336
  /***/ 7425:
336
337
  /***/ ((module) => {
337
338
 
338
- function _typeof(o) {
339
+ function _typeof(obj) {
339
340
  "@babel/helpers - typeof";
340
341
 
341
- return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
342
- return typeof o;
343
- } : function (o) {
344
- return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
345
- }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(o);
342
+ return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
343
+ return typeof obj;
344
+ } : function (obj) {
345
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
346
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
346
347
  }
347
348
  module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
348
349
 
@@ -444,38 +445,38 @@ var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
444
445
  var y = x => () => x
445
446
  const shared_namespaceObject = x({ ["InputBehaviorType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.InputBehaviorType, ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["RenderType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.RenderType, ["SelectedType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.SelectedType, ["SelectedTypeEnum"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.SelectedTypeEnum, ["SizeEnum"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.SizeEnum, ["TagThemeType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.TagThemeType, ["classes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.classes, ["observerResize"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.observerResize, ["useFormItem"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.useFormItem, ["withInstallProps"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstallProps });
446
447
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
447
- function _typeof(o) {
448
+ function _typeof(obj) {
448
449
  "@babel/helpers - typeof";
449
450
 
450
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
451
- return typeof o;
452
- } : function (o) {
453
- return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
454
- }, _typeof(o);
451
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
452
+ return typeof obj;
453
+ } : function (obj) {
454
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
455
+ }, _typeof(obj);
455
456
  }
456
457
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
457
458
 
458
- function toPrimitive(t, r) {
459
- if ("object" != _typeof(t) || !t) return t;
460
- var e = t[Symbol.toPrimitive];
461
- if (void 0 !== e) {
462
- var i = e.call(t, r || "default");
463
- if ("object" != _typeof(i)) return i;
459
+ function _toPrimitive(input, hint) {
460
+ if (_typeof(input) !== "object" || input === null) return input;
461
+ var prim = input[Symbol.toPrimitive];
462
+ if (prim !== undefined) {
463
+ var res = prim.call(input, hint || "default");
464
+ if (_typeof(res) !== "object") return res;
464
465
  throw new TypeError("@@toPrimitive must return a primitive value.");
465
466
  }
466
- return ("string" === r ? String : Number)(t);
467
+ return (hint === "string" ? String : Number)(input);
467
468
  }
468
469
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
469
470
 
470
471
 
471
- function toPropertyKey(t) {
472
- var i = toPrimitive(t, "string");
473
- return "symbol" == _typeof(i) ? i : String(i);
472
+ function _toPropertyKey(arg) {
473
+ var key = _toPrimitive(arg, "string");
474
+ return _typeof(key) === "symbol" ? key : String(key);
474
475
  }
475
476
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
476
477
 
477
478
  function _defineProperty(obj, key, value) {
478
- key = toPropertyKey(key);
479
+ key = _toPropertyKey(key);
479
480
  if (key in obj) {
480
481
  Object.defineProperty(obj, key, {
481
482
  value: value,
@@ -492,10 +493,6 @@ function _defineProperty(obj, key, value) {
492
493
  var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
493
494
  var external_vue_y = x => () => x
494
495
  const external_vue_namespaceObject = external_vue_x({ ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createTextVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["customRef"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.customRef, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["getCurrentInstance"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.getCurrentInstance, ["inject"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.inject, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["onBeforeMount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeMount, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["provide"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.provide, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["resolveDirective"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective, ["toRef"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRef, ["toRefs"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRefs, ["vModelText"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.vModelText, ["vShow"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.vShow, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
495
- ;// CONCATENATED MODULE: external "lodash/isEqual"
496
- var isEqual_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
497
- var isEqual_y = x => () => x
498
- const isEqual_namespaceObject = isEqual_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_isEqual_ce045a54__["default"] });
499
496
  ;// CONCATENATED MODULE: external "../checkbox"
500
497
  var checkbox_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
501
498
  var checkbox_y = x => () => x
@@ -511,7 +508,11 @@ const config_provider_namespaceObject = config_provider_x({ ["useLocale"]: () =>
511
508
  ;// CONCATENATED MODULE: external "../icon"
512
509
  var icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
513
510
  var icon_y = x => () => x
514
- const icon_namespaceObject = icon_x({ ["AngleUp"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.AngleUp, ["AngleUpFill"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.AngleUpFill, ["Close"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Close, ["Done"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Done, ["Search"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Search, ["TextAll"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.TextAll });
511
+ const icon_namespaceObject = icon_x({ ["AngleDown"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.AngleDown, ["AngleUpFill"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.AngleUpFill, ["Close"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Close, ["Done"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Done, ["Search"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Search, ["TextAll"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.TextAll });
512
+ ;// CONCATENATED MODULE: external "lodash/isEqual"
513
+ var isEqual_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
514
+ var isEqual_y = x => () => x
515
+ const isEqual_namespaceObject = isEqual_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_isEqual_ce045a54__["default"] });
515
516
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
516
517
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
517
518
  try {
@@ -596,15 +597,16 @@ function useRegistry(data) {
596
597
  // 注册item
597
598
  var register = function register(key, item) {
598
599
  if (!item) return;
599
- if (data.value.has(key)) {
600
- // console.warn(`repeat ${key}`, item);
601
- return;
602
- }
603
600
  return data.value.set(key, item);
604
601
  };
605
602
  // 删除item
606
- var unregister = function unregister(key) {
607
- data.value["delete"](key);
603
+ var unregister = function unregister(key, item) {
604
+ if (item) {
605
+ if (data.value.get(key) !== item) return;
606
+ data.value["delete"](key);
607
+ } else {
608
+ data.value["delete"](key);
609
+ }
608
610
  };
609
611
  return {
610
612
  register: register,
@@ -621,6 +623,7 @@ function useDebouncedRef(value) {
621
623
  track();
622
624
  return innerValue;
623
625
  },
626
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
624
627
  set: function set(newValue) {
625
628
  clearTimeout(timeout);
626
629
  if (newValue === undefined || newValue === '') {
@@ -661,7 +664,7 @@ function usePopover(config, triggerRef) {
661
664
  });
662
665
  (0,external_vue_namespaceObject.onBeforeUnmount)(function () {
663
666
  var _observerIns;
664
- (_observerIns = observerIns) === null || _observerIns === void 0 || _observerIns.stop();
667
+ (_observerIns = observerIns) === null || _observerIns === void 0 ? void 0 : _observerIns.stop();
665
668
  observerIns = null;
666
669
  });
667
670
  return {
@@ -679,7 +682,7 @@ function useRemoteSearch(method, callBack) {
679
682
  return searchValue.value || customOptionName.value;
680
683
  });
681
684
  var searchLoading = (0,external_vue_namespaceObject.ref)(false);
682
- (0,external_vue_namespaceObject.watch)(curSearchValue, /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee() {
685
+ (0,external_vue_namespaceObject.watch)(curSearchValue, /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee() {
683
686
  return regenerator_default().wrap(function _callee$(_context) {
684
687
  while (1) switch (_context.prev = _context.next) {
685
688
  case 0:
@@ -697,7 +700,7 @@ function useRemoteSearch(method, callBack) {
697
700
  console.error(_context.t0);
698
701
  case 10:
699
702
  _context.prev = 10;
700
- callBack === null || callBack === void 0 || callBack();
703
+ callBack === null || callBack === void 0 ? void 0 : callBack();
701
704
  return _context.finish(10);
702
705
  case 13:
703
706
  case "end":
@@ -729,10 +732,6 @@ function isInViewPort(el, client) {
729
732
  }
730
733
  ;// CONCATENATED MODULE: ../../packages/select/src/option.tsx
731
734
 
732
-
733
- 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; }
734
- 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; }
735
- /* eslint-disable vue/no-reserved-component-names */
736
735
  /*
737
736
  * Tencent is pleased to support the open source community by making
738
737
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
@@ -759,6 +758,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
759
758
  * IN THE SOFTWARE.
760
759
  */
761
760
 
761
+ 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; }
762
+ 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; }
762
763
 
763
764
 
764
765
 
@@ -766,11 +767,11 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
766
767
 
767
768
 
768
769
 
769
- /* harmony default export */ const src_option = ((0,external_vue_namespaceObject.defineComponent)({
770
+ /* harmony default export */ const src_option = (defineComponent({
770
771
  name: 'Option',
771
772
  props: {
772
773
  id: {
773
- type: [String, Number, Object],
774
+ type: [String, Number],
774
775
  require: true
775
776
  },
776
777
  name: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.number, shared_namespaceObject.PropTypes.string]),
@@ -779,56 +780,60 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
779
780
  },
780
781
  setup: function setup(props, _ref) {
781
782
  var attrs = _ref.attrs;
782
- var _getCurrentInstance = (0,external_vue_namespaceObject.getCurrentInstance)(),
783
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
784
+ var _getCurrentInstance = getCurrentInstance(),
783
785
  proxy = _getCurrentInstance.proxy;
784
- var states = (0,external_vue_namespaceObject.reactive)({
786
+ var states = reactive({
785
787
  visible: true
786
788
  });
787
- var _toRefs = (0,external_vue_namespaceObject.toRefs)(props),
789
+ var _toRefs = toRefs(props),
788
790
  disabled = _toRefs.disabled,
789
791
  id = _toRefs.id,
790
792
  name = _toRefs.name;
791
793
  // 兼容label
792
- var optionName = (0,external_vue_namespaceObject.computed)(function () {
794
+ var optionName = computed(function () {
793
795
  return name.value !== undefined ? name.value : attrs.label;
794
796
  });
795
797
  // 兼容value
796
- var optionID = (0,external_vue_namespaceObject.computed)(function () {
798
+ var optionID = computed(function () {
797
799
  return id.value !== undefined ? id.value : attrs.value;
798
800
  });
799
- var select = (0,external_vue_namespaceObject.inject)(selectKey, null);
800
- var group = (0,external_vue_namespaceObject.inject)(optionGroupKey, null);
801
- var selected = (0,external_vue_namespaceObject.computed)(function () {
801
+ var select = inject(selectKey, null);
802
+ var group = inject(optionGroupKey, null);
803
+ var selected = computed(function () {
802
804
  var _select$selected;
803
805
  return select === null || select === void 0 || (_select$selected = select.selected) === null || _select$selected === void 0 ? void 0 : _select$selected.some(function (item) {
804
806
  return (0,isEqual_namespaceObject["default"])(item.value, optionID.value);
805
807
  });
806
808
  });
807
- var multiple = (0,external_vue_namespaceObject.computed)(function () {
809
+ var multiple = computed(function () {
808
810
  return select === null || select === void 0 ? void 0 : select.multiple;
809
811
  });
810
- var isHover = (0,external_vue_namespaceObject.computed)(function () {
812
+ var isHover = computed(function () {
811
813
  return (select === null || select === void 0 ? void 0 : select.activeOptionValue) === optionID.value;
812
814
  });
813
- var showSelectedIcon = (0,external_vue_namespaceObject.computed)(function () {
815
+ var showSelectedIcon = computed(function () {
814
816
  return (select === null || select === void 0 ? void 0 : select.showSelectedIcon) && multiple.value;
815
817
  });
816
- var selectedStyle = (0,external_vue_namespaceObject.computed)(function () {
818
+ var selectedStyle = computed(function () {
817
819
  return select === null || select === void 0 ? void 0 : select.selectedStyle;
818
820
  });
819
- var searchValue = (0,external_vue_namespaceObject.computed)(function () {
821
+ var searchValue = computed(function () {
820
822
  return select === null || select === void 0 ? void 0 : select.curSearchValue;
821
823
  });
822
- var highlightKeyword = (0,external_vue_namespaceObject.computed)(function () {
824
+ var highlightKeyword = computed(function () {
823
825
  return select === null || select === void 0 ? void 0 : select.highlightKeyword;
824
826
  });
825
827
  var handleOptionClick = function handleOptionClick() {
826
828
  if (disabled.value) return;
827
- select === null || select === void 0 || select.handleOptionSelected(proxy);
829
+ select === null || select === void 0 ? void 0 : select.handleOptionSelected(proxy);
828
830
  };
829
831
  var handleMouseEnter = function handleMouseEnter() {
830
832
  select.activeOptionValue = optionID.value;
831
833
  };
834
+ var handleMouseLeave = function handleMouseLeave() {
835
+ select.activeOptionValue = '';
836
+ };
832
837
  var transformNode = function transformNode(str) {
833
838
  var _keyword;
834
839
  if (!str) return str;
@@ -855,17 +860,17 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
855
860
  }
856
861
  return list.length ? list : str;
857
862
  };
858
- (0,external_vue_namespaceObject.onBeforeMount)(function () {
859
- select === null || select === void 0 || select.register(optionID.value, proxy);
860
- group === null || group === void 0 || group.register(optionID.value, proxy);
863
+ onBeforeMount(function () {
864
+ select === null || select === void 0 ? void 0 : select.register(optionID.value, proxy);
865
+ group === null || group === void 0 ? void 0 : group.register(optionID.value, proxy);
861
866
  });
862
- (0,external_vue_namespaceObject.onBeforeUnmount)(function () {
863
- select === null || select === void 0 || select.unregister(optionID.value);
864
- group === null || group === void 0 || group.unregister(optionID.value);
867
+ onBeforeUnmount(function () {
868
+ select === null || select === void 0 ? void 0 : select.unregister(optionID.value, proxy);
869
+ group === null || group === void 0 ? void 0 : group.unregister(optionID.value, proxy);
865
870
  });
866
871
  var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
867
872
  resolveClassName = _usePrefix.resolveClassName;
868
- return _objectSpread(_objectSpread({}, (0,external_vue_namespaceObject.toRefs)(states)), {}, {
873
+ return _objectSpread(_objectSpread({}, toRefs(states)), {}, {
869
874
  selected: selected,
870
875
  multiple: multiple,
871
876
  isHover: isHover,
@@ -876,6 +881,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
876
881
  highlightKeyword: highlightKeyword,
877
882
  handleOptionClick: handleOptionClick,
878
883
  handleMouseEnter: handleMouseEnter,
884
+ handleMouseLeave: handleMouseLeave,
879
885
  resolveClassName: resolveClassName,
880
886
  transformNode: transformNode
881
887
  });
@@ -892,18 +898,19 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
892
898
  return (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("li", {
893
899
  "class": selectItemClass,
894
900
  "onClick": this.handleOptionClick,
895
- "onMouseenter": this.handleMouseEnter
901
+ "onMouseenter": this.handleMouseEnter,
902
+ "onMouseleave": this.handleMouseLeave
896
903
  }, [this.showSelectedIcon && this.selectedStyle === shared_namespaceObject.SelectedTypeEnum.CHECKBOX && (0,external_vue_namespaceObject.createVNode)(checkbox_namespaceObject["default"], {
897
- "disabled": this.disabled,
898
904
  "class": this.resolveClassName('select-checkbox'),
905
+ "disabled": this.disabled,
899
906
  "modelValue": this.selected
900
907
  }, null), (_this$$slots$default = (_this$$slots$default2 = (_this$$slots = this.$slots)["default"]) === null || _this$$slots$default2 === void 0 ? void 0 : _this$$slots$default2.call(_this$$slots)) !== null && _this$$slots$default !== void 0 ? _this$$slots$default : (0,external_vue_namespaceObject.createVNode)("span", {
901
908
  "class": this.resolveClassName('select-option-item'),
902
909
  "title": String(this.optionName)
903
910
  }, [this.highlightKeyword ? this.transformNode(String(this.optionName)) : this.optionName]), this.showSelectedIcon && this.selected && this.selectedStyle === shared_namespaceObject.SelectedTypeEnum.CHECK && (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Done, {
904
- "class": this.resolveClassName('select-selected-icon'),
905
911
  "width": 22,
906
- "height": 22
912
+ "height": 22,
913
+ "class": this.resolveClassName('select-selected-icon')
907
914
  }, null)]), [[external_vue_namespaceObject.vShow, this.visible]]);
908
915
  }
909
916
  }));
@@ -1017,10 +1024,10 @@ function optionGroup_objectSpread(e) { for (var r = 1; r < arguments.length; r++
1017
1024
  groupCollapse: (0,external_vue_namespaceObject.toRef)(states, 'groupCollapse')
1018
1025
  })));
1019
1026
  (0,external_vue_namespaceObject.onBeforeMount)(function () {
1020
- select === null || select === void 0 || select.registerGroup(instance.uid, proxy);
1027
+ select === null || select === void 0 ? void 0 : select.registerGroup(instance.uid, proxy);
1021
1028
  });
1022
1029
  (0,external_vue_namespaceObject.onBeforeUnmount)(function () {
1023
- select === null || select === void 0 || select.unregisterGroup(instance.uid);
1030
+ select === null || select === void 0 ? void 0 : select.unregisterGroup(instance.uid);
1024
1031
  });
1025
1032
  var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
1026
1033
  resolveClassName = _usePrefix.resolveClassName;
@@ -1031,9 +1038,9 @@ function optionGroup_objectSpread(e) { for (var r = 1; r < arguments.length; r++
1031
1038
  });
1032
1039
  },
1033
1040
  render: function render() {
1034
- var _this$$slots$default, _this$$slots;
1035
- var groupClass = (0,shared_namespaceObject.classes)(_defineProperty(_defineProperty(_defineProperty({}, this.resolveClassName('option-group'), true), "collapsible", this.collapsible), "disabled", this.disabled));
1036
- var groupLabelClass = (0,shared_namespaceObject.classes)(_defineProperty(_defineProperty({}, this.resolveClassName('option-group-label'), true), "collapsible", this.collapsible));
1041
+ var _classes, _classes2, _this$$slots$default, _this$$slots;
1042
+ var groupClass = (0,shared_namespaceObject.classes)((_classes = {}, _defineProperty(_classes, this.resolveClassName('option-group'), true), _defineProperty(_classes, "collapsible", this.collapsible), _defineProperty(_classes, "disabled", this.disabled), _classes));
1043
+ var groupLabelClass = (0,shared_namespaceObject.classes)((_classes2 = {}, _defineProperty(_classes2, this.resolveClassName('option-group-label'), true), _defineProperty(_classes2, "collapsible", this.collapsible), _classes2));
1037
1044
  var groupLabelIconClass = (0,shared_namespaceObject.classes)({
1038
1045
  'default-group-label-icon': true,
1039
1046
  collapse: this.groupCollapse
@@ -1054,10 +1061,6 @@ function optionGroup_objectSpread(e) { for (var r = 1; r < arguments.length; r++
1054
1061
  }, [(_this$$slots$default = (_this$$slots = this.$slots)["default"]) === null || _this$$slots$default === void 0 ? void 0 : _this$$slots$default.call(_this$$slots)]), [[external_vue_namespaceObject.vShow, !this.groupCollapse]])]), [[external_vue_namespaceObject.vShow, this.visible]]);
1055
1062
  }
1056
1063
  }));
1057
- ;// CONCATENATED MODULE: external "lodash/merge"
1058
- var merge_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
1059
- var merge_y = x => () => x
1060
- const merge_namespaceObject = merge_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_merge_cf99375a__["default"] });
1061
1064
  ;// CONCATENATED MODULE: external "../directives"
1062
1065
  var directives_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
1063
1066
  var directives_y = x => () => x
@@ -1094,6 +1097,10 @@ const virtual_render_namespaceObject = virtual_render_x({ ["default"]: () => __W
1094
1097
  var virtual_render_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
1095
1098
  var virtual_render_less_y = x => () => x
1096
1099
  const virtual_render_less_namespaceObject = virtual_render_less_x({ });
1100
+ ;// CONCATENATED MODULE: external "lodash/merge"
1101
+ var merge_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
1102
+ var merge_y = x => () => x
1103
+ const merge_namespaceObject = merge_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_merge_cf99375a__["default"] });
1097
1104
  ;// CONCATENATED MODULE: ../../packages/select/src/pinyin/dict.js
1098
1105
  /*
1099
1106
  * Tencent is pleased to support the open source community by making
@@ -1121,8 +1128,6 @@ const virtual_render_less_namespaceObject = virtual_render_less_x({ });
1121
1128
  * IN THE SOFTWARE.
1122
1129
  */
1123
1130
 
1124
- /* eslint-disable max-len */
1125
-
1126
1131
  /**
1127
1132
  * Source: <https://android.googlesource.com/platform/packages/providers/ContactsProvider/+/0c49720fb3d58e346739c2ccd56ed2b739249e07/src/com/android/providers/contacts/HanziToPinyin.java>
1128
1133
  * Updated by creeper
@@ -2036,7 +2041,6 @@ let COLLATOR;
2036
2041
  function patchDict(patchers) {
2037
2042
  if (!patchers) return;
2038
2043
  if (typeof patchers === 'function') {
2039
- // eslint-disable-next-line no-param-reassign
2040
2044
  patchers = [patchers];
2041
2045
  }
2042
2046
  if (patchers.forEach) {
@@ -2127,7 +2131,6 @@ function genToken(ch) {
2127
2131
  }
2128
2132
 
2129
2133
  if (cmp < 0) {
2130
- // eslint-disable-next-line no-plusplus
2131
2134
  offset--;
2132
2135
  }
2133
2136
 
@@ -2296,10 +2299,10 @@ if (core.isSupported() && _56l.shouldPatch(core.genToken)) {
2296
2299
 
2297
2300
  /* harmony default export */ const pinyin = (core);
2298
2301
 
2299
- ;// CONCATENATED MODULE: external "lodash/debounce"
2300
- var debounce_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
2301
- var debounce_y = x => () => x
2302
- const debounce_namespaceObject = debounce_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_debounce_3540babe__["default"] });
2302
+ ;// CONCATENATED MODULE: external "../overflow-title"
2303
+ var overflow_title_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
2304
+ var overflow_title_y = x => () => x
2305
+ const overflow_title_namespaceObject = overflow_title_x({ ["OverflowTitle"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_overflow_title_051a85a5__.OverflowTitle });
2303
2306
  ;// CONCATENATED MODULE: external "../tag"
2304
2307
  var tag_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
2305
2308
  var tag_y = x => () => x
@@ -2308,6 +2311,10 @@ const tag_namespaceObject = tag_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE
2308
2311
  var tag_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
2309
2312
  var tag_less_y = x => () => x
2310
2313
  const tag_less_namespaceObject = tag_less_x({ });
2314
+ ;// CONCATENATED MODULE: external "lodash/debounce"
2315
+ var debounce_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
2316
+ var debounce_y = x => () => x
2317
+ const debounce_namespaceObject = debounce_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_debounce_3540babe__["default"] });
2311
2318
  ;// CONCATENATED MODULE: ../../packages/select/src/selectTagInput.tsx
2312
2319
 
2313
2320
 
@@ -2344,6 +2351,7 @@ const tag_less_namespaceObject = tag_less_x({ });
2344
2351
 
2345
2352
 
2346
2353
 
2354
+
2347
2355
  /* harmony default export */ const selectTagInput = ((0,external_vue_namespaceObject.defineComponent)({
2348
2356
  name: 'SelectTagInput',
2349
2357
  directives: {
@@ -2380,7 +2388,7 @@ const tag_less_namespaceObject = tag_less_x({ });
2380
2388
  var overflowTagIndex = (0,external_vue_namespaceObject.ref)(null);
2381
2389
  var overflowContent = (0,external_vue_namespaceObject.computed)(function () {
2382
2390
  return selected.value.slice(overflowTagIndex.value, selected.value.length).map(function (item) {
2383
- return item.label;
2391
+ return select === null || select === void 0 ? void 0 : select.handleGetLabelByValue(item.value);
2384
2392
  }).join(', ');
2385
2393
  });
2386
2394
  (0,external_vue_namespaceObject.watch)(modelValue, function () {
@@ -2396,17 +2404,22 @@ const tag_less_namespaceObject = tag_less_x({ });
2396
2404
  };
2397
2405
  var focus = function focus() {
2398
2406
  var _inputRef$value;
2399
- (_inputRef$value = inputRef.value) === null || _inputRef$value === void 0 || _inputRef$value.focus();
2407
+ (_inputRef$value = inputRef.value) === null || _inputRef$value === void 0 ? void 0 : _inputRef$value.focus();
2400
2408
  };
2401
2409
  var blur = function blur() {
2402
2410
  var _inputRef$value2;
2403
- (_inputRef$value2 = inputRef.value) === null || _inputRef$value2 === void 0 || _inputRef$value2.blur();
2411
+ (_inputRef$value2 = inputRef.value) === null || _inputRef$value2 === void 0 ? void 0 : _inputRef$value2.blur();
2412
+ };
2413
+ var updateModelValue = function updateModelValue(data) {
2414
+ emit('update:modelValue', data);
2404
2415
  };
2405
2416
  var handleInput = function handleInput(e) {
2406
2417
  emit('update:modelValue', e.target.value);
2407
2418
  };
2408
2419
  var handleKeydown = function handleKeydown(e) {
2409
2420
  switch (e.code) {
2421
+ // 主键盘及数字小键盘的 Enter
2422
+ case 'NumpadEnter':
2410
2423
  case 'Enter':
2411
2424
  {
2412
2425
  emit('enter', e.target.value, e);
@@ -2471,6 +2484,7 @@ const tag_less_namespaceObject = tag_less_x({ });
2471
2484
  handleRemoveTag: handleRemoveTag,
2472
2485
  focus: focus,
2473
2486
  blur: blur,
2487
+ updateModelValue: updateModelValue,
2474
2488
  handleInput: handleInput,
2475
2489
  handleKeydown: handleKeydown,
2476
2490
  resolveClassName: resolveClassName
@@ -2479,69 +2493,78 @@ const tag_less_namespaceObject = tag_less_x({ });
2479
2493
  render: function render() {
2480
2494
  var _this$$slots,
2481
2495
  _this$$slots$prefix,
2496
+ _classes,
2482
2497
  _this$$slots2,
2483
2498
  _this$$slots2$prefix,
2484
2499
  _this$$slots$default,
2485
2500
  _this$$slots$default2,
2486
2501
  _this$$slots3,
2487
2502
  _this = this,
2488
- _this$$slots4,
2489
- _this$$slots4$suffix;
2503
+ _this$$slots5,
2504
+ _this$$slots5$suffix;
2490
2505
  var prefix = (_this$$slots = this.$slots) === null || _this$$slots === void 0 || (_this$$slots$prefix = _this$$slots.prefix) === null || _this$$slots$prefix === void 0 ? void 0 : _this$$slots$prefix.call(_this$$slots);
2491
- var selectTagClass = (0,shared_namespaceObject.classes)(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, this.resolveClassName('select-tag'), true), this.resolveClassName('select-tag--default'), true), 'is-disabled', this.disabled), 'collapse-tag', this.collapseTags), 'has-prefix', !!prefix), 'is-simplicity', this.behavior === 'simplicity'));
2506
+ var selectTagClass = (0,shared_namespaceObject.classes)((_classes = {}, _defineProperty(_classes, this.resolveClassName('select-tag'), true), _defineProperty(_classes, this.resolveClassName('select-tag--default'), true), _defineProperty(_classes, 'is-disabled', this.disabled), _defineProperty(_classes, 'collapse-tag', this.collapseTags), _defineProperty(_classes, 'has-prefix', !!prefix), _defineProperty(_classes, 'is-simplicity', this.behavior === 'simplicity'), _classes));
2492
2507
  var tagWrapperClass = (0,shared_namespaceObject.classes)(_defineProperty({}, this.resolveClassName('select-tag-wrapper'), true));
2493
2508
  var inputStyle = {
2494
2509
  display: this.selected.length && !this.filterable ? 'none' : ''
2495
2510
  };
2496
2511
  return (0,external_vue_namespaceObject.createVNode)("div", {
2497
- "class": selectTagClass,
2498
- "ref": "tagWrapperRef"
2512
+ "ref": "tagWrapperRef",
2513
+ "class": selectTagClass
2499
2514
  }, [(_this$$slots2 = this.$slots) === null || _this$$slots2 === void 0 || (_this$$slots2$prefix = _this$$slots2.prefix) === null || _this$$slots2$prefix === void 0 ? void 0 : _this$$slots2$prefix.call(_this$$slots2), (0,external_vue_namespaceObject.createVNode)("div", {
2500
2515
  "class": tagWrapperClass
2501
2516
  }, [(_this$$slots$default = (_this$$slots$default2 = (_this$$slots3 = this.$slots)["default"]) === null || _this$$slots$default2 === void 0 ? void 0 : _this$$slots$default2.call(_this$$slots3)) !== null && _this$$slots$default !== void 0 ? _this$$slots$default : this.selected.map(function (item, index) {
2502
- var _this$select;
2517
+ var _this$$slots$tagRende, _this$$slots$tagRende2, _this$$slots4, _this$select;
2503
2518
  return (0,external_vue_namespaceObject.createVNode)(tag_namespaceObject["default"], {
2504
- "closable": true,
2505
- "theme": _this.tagTheme,
2506
- "style": {
2507
- display: _this.collapseTags && _this.overflowTagIndex && index >= _this.overflowTagIndex ? 'none' : ''
2508
- },
2519
+ "key": item.value,
2509
2520
  "ref": function ref(el) {
2510
2521
  return _this.tagsRefs[index] = el;
2511
2522
  },
2523
+ "style": {
2524
+ display: _this.collapseTags && _this.overflowTagIndex && index >= _this.overflowTagIndex ? 'none' : ''
2525
+ },
2526
+ "theme": _this.tagTheme,
2527
+ "closable": true,
2512
2528
  "onClose": function onClose() {
2513
2529
  return _this.handleRemoveTag(item.value);
2514
2530
  }
2515
2531
  }, {
2516
2532
  "default": function _default() {
2517
- return [(_this$select = _this.select) === null || _this$select === void 0 ? void 0 : _this$select.handleGetLabelByValue(item.value)];
2533
+ return [(_this$$slots$tagRende = (_this$$slots$tagRende2 = (_this$$slots4 = _this.$slots).tagRender) === null || _this$$slots$tagRende2 === void 0 ? void 0 : _this$$slots$tagRende2.call(_this$$slots4, item)) !== null && _this$$slots$tagRende !== void 0 ? _this$$slots$tagRende : (0,external_vue_namespaceObject.createVNode)(overflow_title_namespaceObject.OverflowTitle, {
2534
+ "type": "tips"
2535
+ }, {
2536
+ "default": function _default() {
2537
+ return [(_this$select = _this.select) === null || _this$select === void 0 ? void 0 : _this$select.handleGetLabelByValue(item.value)];
2538
+ }
2539
+ })];
2518
2540
  }
2519
2541
  });
2520
2542
  }), (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)(tag_namespaceObject["default"], {
2521
- "class": this.resolveClassName('select-overflow-tag'),
2543
+ "ref": "collapseTagRef",
2522
2544
  "style": {
2523
2545
  display: !!this.overflowTagIndex && this.collapseTags ? '' : 'none'
2524
2546
  },
2525
- "ref": "collapseTagRef"
2547
+ "class": this.resolveClassName('select-overflow-tag')
2526
2548
  }, {
2527
2549
  "default": function _default() {
2528
2550
  return [(0,external_vue_namespaceObject.createTextVNode)("+"), _this.selected.length - _this.overflowTagIndex];
2529
2551
  }
2530
2552
  }), [[(0,external_vue_namespaceObject.resolveDirective)("bk-tooltips"), {
2531
2553
  content: this.overflowContent,
2532
- disabled: !this.overflowTagIndex || !this.collapseTags
2554
+ disabled: !this.overflowTagIndex || !this.collapseTags,
2555
+ extCls: this.resolveClassName('select-tooltips')
2533
2556
  }]]), (0,external_vue_namespaceObject.createVNode)("input", {
2534
- "class": this.resolveClassName('select-tag-input'),
2535
2557
  "ref": "inputRef",
2536
- "type": "text",
2537
2558
  "style": inputStyle,
2559
+ "class": this.resolveClassName('select-tag-input'),
2560
+ "disabled": this.disabled,
2538
2561
  "placeholder": !this.selected.length ? this.placeholder : '',
2539
2562
  "readonly": !this.filterable,
2540
- "disabled": this.disabled,
2563
+ "type": "text",
2541
2564
  "value": !this.filterable ? '' : this.value,
2542
2565
  "onInput": this.handleInput,
2543
2566
  "onKeydown": this.handleKeydown
2544
- }, null)]), (_this$$slots4 = this.$slots) === null || _this$$slots4 === void 0 || (_this$$slots4$suffix = _this$$slots4.suffix) === null || _this$$slots4$suffix === void 0 ? void 0 : _this$$slots4$suffix.call(_this$$slots4)]);
2567
+ }, null)]), (_this$$slots5 = this.$slots) === null || _this$$slots5 === void 0 || (_this$$slots5$suffix = _this$$slots5.suffix) === null || _this$$slots5$suffix === void 0 ? void 0 : _this$$slots5$suffix.call(_this$$slots5)]);
2545
2568
  }
2546
2569
  }));
2547
2570
  ;// CONCATENATED MODULE: ../../packages/select/src/select.tsx
@@ -2549,12 +2572,11 @@ const tag_less_namespaceObject = tag_less_x({ });
2549
2572
 
2550
2573
 
2551
2574
 
2552
- function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = select_unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, 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 normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
2553
- function select_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return select_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return select_arrayLikeToArray(o, minLen); }
2554
- function select_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
2575
+ function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = 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; } } }; }
2576
+ function select_unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return 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) ? select_arrayLikeToArray(r, a) : void 0; } }
2577
+ function 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; }
2555
2578
  function 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; }
2556
2579
  function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? select_ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : select_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
2557
- /* eslint-disable vue/no-reserved-component-names */
2558
2580
  /*
2559
2581
  * Tencent is pleased to support the open source community by making
2560
2582
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
@@ -2613,10 +2635,12 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
2613
2635
  size: shared_namespaceObject.PropTypes.size().def(shared_namespaceObject.SizeEnum.DEFAULT),
2614
2636
  clearable: shared_namespaceObject.PropTypes.bool.def(true),
2615
2637
  loading: shared_namespaceObject.PropTypes.bool.def(false),
2616
- filterable: shared_namespaceObject.PropTypes.bool.def(true),
2638
+ filterable: shared_namespaceObject.PropTypes.bool.def(false),
2617
2639
  remoteMethod: shared_namespaceObject.PropTypes.func,
2618
- scrollHeight: shared_namespaceObject.PropTypes.number.def(200),
2640
+ scrollHeight: shared_namespaceObject.PropTypes.number.def(204),
2641
+ minHeight: shared_namespaceObject.PropTypes.number,
2619
2642
  showAll: shared_namespaceObject.PropTypes.bool.def(false),
2643
+ allOptionText: shared_namespaceObject.PropTypes.string.def(''),
2620
2644
  allOptionId: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.number, shared_namespaceObject.PropTypes.string]),
2621
2645
  showSelectAll: shared_namespaceObject.PropTypes.bool.def(false),
2622
2646
  popoverMinWidth: shared_namespaceObject.PropTypes.number.def(0),
@@ -2653,7 +2677,12 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
2653
2677
  type: Function
2654
2678
  },
2655
2679
  searchWithPinyin: shared_namespaceObject.PropTypes.bool.def(true),
2656
- highlightKeyword: shared_namespaceObject.PropTypes.bool.def(false) // 搜索高亮
2680
+ highlightKeyword: shared_namespaceObject.PropTypes.bool.def(false),
2681
+ trigger: {
2682
+ type: String,
2683
+ "default": 'default'
2684
+ },
2685
+ disableScrollToSelectedOption: shared_namespaceObject.PropTypes.bool.def(false) // 是否禁用滚动到选中option的功能
2657
2686
  },
2658
2687
  emits: ['update:modelValue', 'change', 'toggle', 'clear', 'scroll-end', 'focus', 'blur', 'tag-remove', 'select', 'deselect', 'search-change'],
2659
2688
  setup: function setup(props, _ref) {
@@ -2693,7 +2722,13 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
2693
2722
  filterOption = _toRefs.filterOption,
2694
2723
  searchWithPinyin = _toRefs.searchWithPinyin,
2695
2724
  highlightKeyword = _toRefs.highlightKeyword,
2696
- disableFocusBehavior = _toRefs.disableFocusBehavior;
2725
+ disableFocusBehavior = _toRefs.disableFocusBehavior,
2726
+ trigger = _toRefs.trigger,
2727
+ disableScrollToSelectedOption = _toRefs.disableScrollToSelectedOption;
2728
+ var virtualRenderRef = (0,external_vue_namespaceObject.ref)(null);
2729
+ var displayAllText = (0,external_vue_namespaceObject.computed)(function () {
2730
+ return props.allOptionText;
2731
+ });
2697
2732
  var localNoDataText = (0,external_vue_namespaceObject.computed)(function () {
2698
2733
  if (props.noDataText === undefined) {
2699
2734
  return t.value.noData;
@@ -2726,7 +2761,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
2726
2761
  });
2727
2762
  var localSelectAllText = (0,external_vue_namespaceObject.computed)(function () {
2728
2763
  if (props.selectAllText === undefined) {
2729
- return t.value.all;
2764
+ return t.value.selectAll;
2730
2765
  }
2731
2766
  return props.selectAllText;
2732
2767
  });
@@ -2735,8 +2770,8 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
2735
2770
  var triggerRef = (0,external_vue_namespaceObject.ref)();
2736
2771
  var contentRef = (0,external_vue_namespaceObject.ref)();
2737
2772
  var searchRef = (0,external_vue_namespaceObject.ref)();
2773
+ var scrollContainerRef = (0,external_vue_namespaceObject.ref)();
2738
2774
  var selectTagInputRef = (0,external_vue_namespaceObject.ref)();
2739
- var virtualRenderRef = (0,external_vue_namespaceObject.ref)();
2740
2775
  var popoverRef = (0,external_vue_namespaceObject.ref)();
2741
2776
  var optionsMap = (0,external_vue_namespaceObject.ref)(new Map());
2742
2777
  var options = (0,external_vue_namespaceObject.computed)(function () {
@@ -2746,12 +2781,13 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
2746
2781
  });
2747
2782
  var groupsMap = (0,external_vue_namespaceObject.ref)(new Map());
2748
2783
  var selected = (0,external_vue_namespaceObject.ref)([]);
2749
- var selectedMap = (0,external_vue_namespaceObject.computed)(function () {
2784
+ var selectedCacheMap = (0,external_vue_namespaceObject.computed)(function () {
2750
2785
  return selected.value.reduce(function (pre, item) {
2751
2786
  pre[item.value] = item.label;
2752
2787
  return pre;
2753
- }, {});
2788
+ }, _defineProperty({}, "".concat(allOptionId.value), t.value.all));
2754
2789
  });
2790
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2755
2791
  var activeOptionValue = (0,external_vue_namespaceObject.ref)(); // 当前悬浮的option
2756
2792
  var listMap = (0,external_vue_namespaceObject.computed)(function () {
2757
2793
  return list.value.reduce(function (pre, item) {
@@ -2766,17 +2802,17 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
2766
2802
  handleSetSelectedData();
2767
2803
  if (props.withValidate) {
2768
2804
  var _formItem$validate;
2769
- formItem === null || formItem === void 0 || (_formItem$validate = formItem.validate) === null || _formItem$validate === void 0 || _formItem$validate.call(formItem, 'change');
2805
+ formItem === null || formItem === void 0 || (_formItem$validate = formItem.validate) === null || _formItem$validate === void 0 ? void 0 : _formItem$validate.call(formItem, 'change');
2770
2806
  }
2771
2807
  }, {
2772
2808
  deep: true
2773
2809
  });
2774
2810
  (0,external_vue_namespaceObject.watch)(selected, function () {
2775
2811
  var _popoverRef$value;
2776
- (_popoverRef$value = popoverRef.value) === null || _popoverRef$value === void 0 || _popoverRef$value.updatePopover(null, popoverConfig.value);
2812
+ (_popoverRef$value = popoverRef.value) === null || _popoverRef$value === void 0 ? void 0 : _popoverRef$value.updatePopover(null, popoverConfig.value);
2777
2813
  });
2778
- // 虚拟滚动模式下搜索后的值
2779
- var virtualList = (0,external_vue_namespaceObject.computed)(function () {
2814
+ // list模式下搜索后的值
2815
+ var filterList = (0,external_vue_namespaceObject.computed)(function () {
2780
2816
  return isRemoteSearch.value ? list.value : list.value.filter(function (item) {
2781
2817
  return defaultSearchMethod(curSearchValue.value, String(item[displayKey.value]), item);
2782
2818
  });
@@ -2849,12 +2885,22 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
2849
2885
  var virtualHeight = (0,external_vue_namespaceObject.computed)(function () {
2850
2886
  return scrollHeight.value - 12 - (isShowSelectAll.value ? 32 : 0);
2851
2887
  });
2888
+ var virtualLineHeight = (0,external_vue_namespaceObject.ref)(32);
2889
+ // 是否启用虚拟滚动(如果配置了启用,但是数据小于滚动高度则不开启)
2890
+ var isEnableVirtualRender = (0,external_vue_namespaceObject.computed)(function () {
2891
+ if (enableVirtualRender.value) return filterList.value.length * virtualLineHeight.value > virtualHeight.value;
2892
+ return false;
2893
+ });
2894
+ // 预加载滚动数据
2895
+ var preloadItemCount = (0,external_vue_namespaceObject.computed)(function () {
2896
+ return Math.ceil(virtualHeight.value / virtualLineHeight.value);
2897
+ });
2852
2898
  // 当前空状态时显示文案
2853
2899
  var curContentText = (0,external_vue_namespaceObject.computed)(function () {
2854
2900
  if (searchLoading.value) {
2855
2901
  return localLoadingText.value;
2856
2902
  }
2857
- if (isSearchEmpty.value || list.value.length && !virtualList.value.length) {
2903
+ if (isSearchEmpty.value || list.value.length && !filterList.value.length) {
2858
2904
  return localNoMatchText.value;
2859
2905
  }
2860
2906
  if (isOptionsEmpty.value) {
@@ -2877,7 +2923,8 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
2877
2923
  reference: selectTagInputRef.value,
2878
2924
  offset: 4,
2879
2925
  popoverDelay: 0,
2880
- renderType: shared_namespaceObject.RenderType.AUTO
2926
+ renderType: shared_namespaceObject.RenderType.AUTO,
2927
+ referenceCls: resolveClassName('select-popover-reference')
2881
2928
  }, popoverOptions.value);
2882
2929
  });
2883
2930
  var _useRegistry = useRegistry(optionsMap),
@@ -2910,9 +2957,21 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
2910
2957
  hidePopover = _usePopover.hidePopover,
2911
2958
  showPopover = _usePopover.showPopover,
2912
2959
  togglePopover = _usePopover.togglePopover;
2960
+ var handleHidePopover = function handleHidePopover() {
2961
+ if (trigger.value === 'manual') return;
2962
+ hidePopover();
2963
+ };
2964
+ var handleShowPopover = function handleShowPopover() {
2965
+ if (trigger.value === 'manual') return;
2966
+ showPopover();
2967
+ };
2913
2968
  // 输入框是否可以输入内容
2969
+ // const isInput = computed(
2970
+ // () => ((filterable.value && inputSearch.value) || allowCreate.value) && isPopoverShow.value,
2971
+ // );
2972
+ // 自定义创建失焦后仍保留输入框内的内容
2914
2973
  var isInput = (0,external_vue_namespaceObject.computed)(function () {
2915
- return (filterable.value && inputSearch.value || allowCreate.value) && isPopoverShow.value;
2974
+ return filterable.value && inputSearch.value && isPopoverShow.value || allowCreate.value;
2916
2975
  });
2917
2976
  (0,external_vue_namespaceObject.watch)(isPopoverShow, function (isShow) {
2918
2977
  emit('toggle', isPopoverShow.value);
@@ -2933,10 +2992,10 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
2933
2992
  // 滚动到当前选中的options中
2934
2993
  var scrollActiveOptionIntoView = function scrollActiveOptionIntoView() {
2935
2994
  var _contentRef$value, _contentRef$value$que, _optionsDom$;
2995
+ if (isEnableVirtualRender.value || disableScrollToSelectedOption.value) return;
2936
2996
  var optionsDom = (_contentRef$value = contentRef.value) === null || _contentRef$value === void 0 || (_contentRef$value$que = _contentRef$value.querySelectorAll) === null || _contentRef$value$que === void 0 ? void 0 : _contentRef$value$que.call(_contentRef$value, '.is-selected');
2937
- optionsDom === null || optionsDom === void 0 || (_optionsDom$ = optionsDom[0]) === null || _optionsDom$ === void 0 || _optionsDom$.scrollIntoView({
2997
+ optionsDom === null || optionsDom === void 0 || (_optionsDom$ = optionsDom[0]) === null || _optionsDom$ === void 0 ? void 0 : _optionsDom$.scrollIntoView({
2938
2998
  block: 'center'
2939
- // behavior: 'smooth',
2940
2999
  });
2941
3000
  };
2942
3001
  // 初始化当前悬浮的option项
@@ -2953,14 +3012,17 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
2953
3012
  }
2954
3013
  };
2955
3014
  // 默认搜索方法
3015
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2956
3016
  var defaultSearchMethod = function defaultSearchMethod(searchValue, optionName) {
2957
3017
  var _toLowerCase2;
2958
3018
  var filterData = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
2959
3019
  if (hasFilterOptionFunc.value) {
3020
+ // 是否配置了单个options过滤
2960
3021
  return !!filterOption.value(searchValue, select_objectSpread({}, filterData));
2961
3022
  }
2962
3023
  if (searchWithPinyin.value) {
2963
3024
  var _toLowerCase;
3025
+ // 是否配置了拼音过滤
2964
3026
  var pinyinList = pinyin.parse(optionName).map(function (v) {
2965
3027
  if (v.type === 2) {
2966
3028
  return v.target.toLowerCase();
@@ -2994,6 +3056,8 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
2994
3056
  searchLoading = _useRemoteSearch.searchLoading;
2995
3057
  // 派发search change事件
2996
3058
  (0,external_vue_namespaceObject.watch)(searchValue, function () {
3059
+ scrollContainerRef.value.scrollTop = 0;
3060
+ activeOptionValue.value = '';
2997
3061
  emit('search-change', searchValue.value);
2998
3062
  });
2999
3063
  // 派发change事件
@@ -3001,10 +3065,12 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3001
3065
  if (val === modelValue.value) return;
3002
3066
  emit('update:modelValue', val, modelValue.value);
3003
3067
  emit('change', val, modelValue.value);
3068
+ // 重置Selected 以model-value为主
3069
+ handleSetSelectedData();
3004
3070
  };
3005
3071
  // 派发toggle事件
3006
3072
  var handleTogglePopover = function handleTogglePopover() {
3007
- if (isDisabled.value) return;
3073
+ if (isDisabled.value || trigger.value === 'manual') return;
3008
3074
  handleFocus();
3009
3075
  togglePopover();
3010
3076
  };
@@ -3045,7 +3111,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3045
3111
  label: value
3046
3112
  }];
3047
3113
  emitChange(value);
3048
- hidePopover();
3114
+ handleHidePopover();
3049
3115
  }
3050
3116
  customOptionName.value = '';
3051
3117
  };
@@ -3079,6 +3145,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3079
3145
  return item.value;
3080
3146
  }));
3081
3147
  emit('select', option.optionID);
3148
+ clearMultipleInputValue();
3082
3149
  }
3083
3150
  focusInput();
3084
3151
  } else {
@@ -3087,26 +3154,36 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3087
3154
  label: option.optionName || option.optionID,
3088
3155
  value: option.optionID
3089
3156
  }];
3157
+ if (filterable.value && allowCreate.value) {
3158
+ customOptionName.value = '';
3159
+ }
3090
3160
  emitChange(option.optionID);
3091
3161
  emit('select', option.optionID);
3092
- hidePopover();
3162
+ handleHidePopover();
3093
3163
  handleBlur();
3094
3164
  }
3095
3165
  };
3166
+ // 是否需要清空多选输入框内容
3167
+ var clearMultipleInputValue = function clearMultipleInputValue() {
3168
+ if (['tag'].includes(multipleMode.value) && isInput.value) {
3169
+ var _selectTagInputRef$va;
3170
+ (_selectTagInputRef$va = selectTagInputRef.value) === null || _selectTagInputRef$va === void 0 ? void 0 : _selectTagInputRef$va.updateModelValue('');
3171
+ }
3172
+ };
3096
3173
  // 聚焦输入框
3097
3174
  var focusInput = function focusInput() {
3098
3175
  if (disableFocusBehavior.value) return;
3099
3176
  setTimeout(function () {
3100
3177
  if (!inputSearch.value && !allowCreate.value) {
3101
3178
  var _searchRef$value;
3102
- (_searchRef$value = searchRef.value) === null || _searchRef$value === void 0 || _searchRef$value.focus();
3179
+ (_searchRef$value = searchRef.value) === null || _searchRef$value === void 0 ? void 0 : _searchRef$value.focus();
3103
3180
  } else {
3104
3181
  if (multipleMode.value === 'tag') {
3105
- var _selectTagInputRef$va;
3106
- (_selectTagInputRef$va = selectTagInputRef.value) === null || _selectTagInputRef$va === void 0 || _selectTagInputRef$va.focus();
3182
+ var _selectTagInputRef$va2;
3183
+ (_selectTagInputRef$va2 = selectTagInputRef.value) === null || _selectTagInputRef$va2 === void 0 ? void 0 : _selectTagInputRef$va2.focus();
3107
3184
  } else {
3108
3185
  var _inputRef$value;
3109
- (_inputRef$value = inputRef.value) === null || _inputRef$value === void 0 || _inputRef$value.focus();
3186
+ (_inputRef$value = inputRef.value) === null || _inputRef$value === void 0 ? void 0 : _inputRef$value.focus();
3110
3187
  }
3111
3188
  }
3112
3189
  }, 0);
@@ -3115,11 +3192,11 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3115
3192
  var blurInput = function blurInput() {
3116
3193
  setTimeout(function () {
3117
3194
  if (multipleMode.value === 'tag') {
3118
- var _selectTagInputRef$va2;
3119
- (_selectTagInputRef$va2 = selectTagInputRef.value) === null || _selectTagInputRef$va2 === void 0 || _selectTagInputRef$va2.blur();
3195
+ var _selectTagInputRef$va3;
3196
+ (_selectTagInputRef$va3 = selectTagInputRef.value) === null || _selectTagInputRef$va3 === void 0 ? void 0 : _selectTagInputRef$va3.blur();
3120
3197
  } else {
3121
3198
  var _inputRef$value2;
3122
- (_inputRef$value2 = inputRef.value) === null || _inputRef$value2 === void 0 || _inputRef$value2.blur();
3199
+ (_inputRef$value2 = inputRef.value) === null || _inputRef$value2 === void 0 ? void 0 : _inputRef$value2.blur();
3123
3200
  }
3124
3201
  }, 0);
3125
3202
  };
@@ -3127,9 +3204,10 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3127
3204
  var handleClear = function handleClear(e) {
3128
3205
  e.stopPropagation();
3129
3206
  selected.value = [];
3207
+ clearMultipleInputValue();
3130
3208
  emitChange(multiple.value ? [] : '');
3131
3209
  emit('clear', multiple.value ? [] : '');
3132
- hidePopover();
3210
+ handleHidePopover();
3133
3211
  };
3134
3212
  var handleSelectedAllOptionMouseEnter = function handleSelectedAllOptionMouseEnter() {
3135
3213
  activeOptionValue.value = '';
@@ -3140,22 +3218,21 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3140
3218
  selected.value = [];
3141
3219
  } else {
3142
3220
  var _list$value;
3143
- var tmpSelected = [];
3221
+ var tmpSelectedMap = new Map();
3144
3222
  options.value.forEach(function (option) {
3145
- if (option.disabled) return;
3146
- tmpSelected.push({
3147
- value: option.optionID,
3148
- label: option.optionName || option.optionID
3149
- });
3223
+ if (option.disabled || tmpSelectedMap.has(option.optionID)) return;
3224
+ tmpSelectedMap.set(option.optionID, option.optionName || option.optionID);
3150
3225
  });
3151
- (_list$value = list.value) === null || _list$value === void 0 || _list$value.forEach(function (item) {
3152
- if (item.disabled) return;
3153
- tmpSelected.push({
3154
- value: item[idKey.value],
3155
- label: item[displayKey.value]
3156
- });
3226
+ (_list$value = list.value) === null || _list$value === void 0 ? void 0 : _list$value.forEach(function (item) {
3227
+ if (item.disabled || tmpSelectedMap.has(item[idKey.value])) return;
3228
+ tmpSelectedMap.set(item[idKey.value], item[displayKey.value]);
3229
+ });
3230
+ selected.value = Array.from(tmpSelectedMap.keys()).map(function (key) {
3231
+ return {
3232
+ value: key,
3233
+ label: tmpSelectedMap.get(key)
3234
+ };
3157
3235
  });
3158
- selected.value = tmpSelected;
3159
3236
  }
3160
3237
  emitChange(selected.value.map(function (item) {
3161
3238
  return item.value;
@@ -3205,7 +3282,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3205
3282
  emit('tag-remove', val);
3206
3283
  }
3207
3284
  };
3208
- // options存在 > 上一次选择的label > 当前值
3285
+ // 优先级: option name属性 > list模式 > 上一次选择的label > 当前值
3209
3286
  var handleGetLabelByValue = function handleGetLabelByValue(value) {
3210
3287
  var _optionsMap$value2;
3211
3288
  // 处理options value为对象类型,引用类型变更后,回显不对问题
@@ -3227,7 +3304,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3227
3304
  _iterator.f();
3228
3305
  }
3229
3306
  }
3230
- return ((_optionsMap$value2 = optionsMap.value) === null || _optionsMap$value2 === void 0 || (_optionsMap$value2 = _optionsMap$value2.get(tmpValue)) === null || _optionsMap$value2 === void 0 ? void 0 : _optionsMap$value2.optionName) || listMap.value[tmpValue] || selectedMap.value[tmpValue] || tmpValue;
3307
+ return ((_optionsMap$value2 = optionsMap.value) === null || _optionsMap$value2 === void 0 || (_optionsMap$value2 = _optionsMap$value2.get(tmpValue)) === null || _optionsMap$value2 === void 0 ? void 0 : _optionsMap$value2.optionName) || listMap.value[tmpValue] || selectedCacheMap.value[tmpValue] || tmpValue;
3231
3308
  };
3232
3309
  // 设置selected选项
3233
3310
  var handleSetSelectedData = function handleSetSelectedData() {
@@ -3240,7 +3317,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3240
3317
  };
3241
3318
  }));
3242
3319
  } else {
3243
- if (modelValue.value !== undefined || allowEmptyValues.value.includes(modelValue.value)) {
3320
+ if (modelValue.value || allowEmptyValues.value.includes(modelValue.value)) {
3244
3321
  selected.value = [{
3245
3322
  value: modelValue.value,
3246
3323
  label: handleGetLabelByValue(modelValue.value)
@@ -3250,9 +3327,18 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3250
3327
  }
3251
3328
  }
3252
3329
  };
3330
+ // 手动设置selected值
3331
+ var setSelected = function setSelected(data) {
3332
+ selected.value = data.map(function (item) {
3333
+ return {
3334
+ label: item[displayKey.value],
3335
+ value: item[idKey.value]
3336
+ };
3337
+ });
3338
+ };
3253
3339
  // 处理键盘事件
3254
3340
  var handleDocumentKeydown = function handleDocumentKeydown(e) {
3255
- if (!isPopoverShow.value || enableVirtualRender.value) return;
3341
+ if (!isPopoverShow.value || isEnableVirtualRender.value) return;
3256
3342
  var availableOptions = options.value.filter(function (option) {
3257
3343
  return !option.disabled && option.visible;
3258
3344
  });
@@ -3275,7 +3361,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3275
3361
  }
3276
3362
  if (!isInViewPort((_availableOptions$act = availableOptions[activeIndex]) === null || _availableOptions$act === void 0 ? void 0 : _availableOptions$act.$el, contentRef.value)) {
3277
3363
  var _availableOptions$act2;
3278
- (_availableOptions$act2 = availableOptions[activeIndex]) === null || _availableOptions$act2 === void 0 || (_availableOptions$act2 = _availableOptions$act2.$el) === null || _availableOptions$act2 === void 0 || _availableOptions$act2.scrollIntoView();
3364
+ (_availableOptions$act2 = availableOptions[activeIndex]) === null || _availableOptions$act2 === void 0 || (_availableOptions$act2 = _availableOptions$act2.$el) === null || _availableOptions$act2 === void 0 ? void 0 : _availableOptions$act2.scrollIntoView();
3279
3365
  }
3280
3366
  activeOptionValue.value = (_availableOptions$act3 = availableOptions[activeIndex]) === null || _availableOptions$act3 === void 0 ? void 0 : _availableOptions$act3.optionID;
3281
3367
  break;
@@ -3291,6 +3377,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3291
3377
  break;
3292
3378
  }
3293
3379
  // 选择选项
3380
+ case 'NumpadEnter':
3294
3381
  case 'Enter':
3295
3382
  {
3296
3383
  var value = e.target.value;
@@ -3307,16 +3394,9 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3307
3394
  var event = _ref2.event;
3308
3395
  var target = event.target;
3309
3396
  if ((_triggerRef$value = triggerRef.value) !== null && _triggerRef$value !== void 0 && _triggerRef$value.contains(target) || triggerRef.value === target) return;
3310
- hidePopover();
3397
+ handleHidePopover();
3311
3398
  handleBlur();
3312
3399
  };
3313
- var handlePopoverShow = function handlePopoverShow() {
3314
- setTimeout(function () {
3315
- var _virtualRenderRef$val, _virtualRenderRef$val2;
3316
- // 虚拟滚动首次未更新问题
3317
- enableVirtualRender.value && ((_virtualRenderRef$val = virtualRenderRef.value) === null || _virtualRenderRef$val === void 0 || (_virtualRenderRef$val2 = _virtualRenderRef$val.reset) === null || _virtualRenderRef$val2 === void 0 ? void 0 : _virtualRenderRef$val2.call(_virtualRenderRef$val));
3318
- });
3319
- };
3320
3400
  (0,external_vue_namespaceObject.provide)(selectKey, (0,external_vue_namespaceObject.reactive)({
3321
3401
  multiple: multiple,
3322
3402
  selected: selected,
@@ -3335,10 +3415,14 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3335
3415
  (0,external_vue_namespaceObject.onMounted)(function () {
3336
3416
  handleSetSelectedData();
3337
3417
  setTimeout(function () {
3338
- showOnInit.value && showPopover();
3418
+ showOnInit.value && handleShowPopover();
3339
3419
  autoFocus.value && focusInput();
3340
3420
  });
3341
3421
  });
3422
+ var handlePopoverShown = function handlePopoverShown() {
3423
+ var _virtualRenderRef$val;
3424
+ (_virtualRenderRef$val = virtualRenderRef.value) === null || _virtualRenderRef$val === void 0 ? void 0 : _virtualRenderRef$val.scrollTo(0, 1);
3425
+ };
3342
3426
  return {
3343
3427
  t: t,
3344
3428
  selected: selected,
@@ -3353,8 +3437,8 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3353
3437
  triggerRef: triggerRef,
3354
3438
  contentRef: contentRef,
3355
3439
  searchRef: searchRef,
3440
+ scrollContainerRef: scrollContainerRef,
3356
3441
  selectTagInputRef: selectTagInputRef,
3357
- virtualRenderRef: virtualRenderRef,
3358
3442
  popoverRef: popoverRef,
3359
3443
  searchLoading: searchLoading,
3360
3444
  isOptionsEmpty: isOptionsEmpty,
@@ -3369,11 +3453,12 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3369
3453
  isShowAll: isShowAll,
3370
3454
  isShowSelectAll: isShowSelectAll,
3371
3455
  virtualHeight: virtualHeight,
3372
- virtualList: virtualList,
3456
+ filterList: filterList,
3373
3457
  isCollapseTags: isCollapseTags,
3374
3458
  popoverConfig: popoverConfig,
3375
3459
  isAllSelected: isAllSelected,
3376
3460
  isAll: isAll,
3461
+ displayAllText: displayAllText,
3377
3462
  focusInput: focusInput,
3378
3463
  setHover: setHover,
3379
3464
  cancelHover: cancelHover,
@@ -3391,26 +3476,34 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3391
3476
  handleDeleteTag: handleDeleteTag,
3392
3477
  handleInputChange: handleInputChange,
3393
3478
  handleSelectedAllOptionMouseEnter: handleSelectedAllOptionMouseEnter,
3394
- handlePopoverShow: handlePopoverShow,
3395
3479
  localLoadingText: localLoadingText,
3396
3480
  localPlaceholder: localPlaceholder,
3397
3481
  localSearchPlaceholder: localSearchPlaceholder,
3398
3482
  localSelectAllText: localSelectAllText,
3399
3483
  resolveClassName: resolveClassName,
3400
- handleCreateCustomOption: handleCreateCustomOption
3484
+ handleCreateCustomOption: handleCreateCustomOption,
3485
+ handlePopoverShown: handlePopoverShown,
3486
+ virtualLineHeight: virtualLineHeight,
3487
+ isEnableVirtualRender: isEnableVirtualRender,
3488
+ preloadItemCount: preloadItemCount,
3489
+ virtualRenderRef: virtualRenderRef,
3490
+ setSelected: setSelected
3401
3491
  };
3402
3492
  },
3403
3493
  render: function render() {
3404
- var _this = this;
3405
- var selectClass = (0,shared_namespaceObject.classes)(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(this.resolveClassName('select')), true), 'popover-show', this.isPopoverShow), 'is-disabled', this.isDisabled), 'is-focus', this.isFocus), 'is-filterable', this.filterable), this.size, true), this.behavior, true));
3494
+ var _classes,
3495
+ _this = this;
3496
+ var selectClass = (0,shared_namespaceObject.classes)((_classes = {}, _defineProperty(_classes, "".concat(this.resolveClassName('select')), true), _defineProperty(_classes, 'popover-show', this.isPopoverShow), _defineProperty(_classes, 'is-disabled', this.isDisabled), _defineProperty(_classes, 'is-focus', this.isFocus), _defineProperty(_classes, 'is-filterable', this.filterable), _defineProperty(_classes, this.size, true), _defineProperty(_classes, this.behavior, true), _classes));
3497
+ // 右侧ICON
3406
3498
  var suffixIcon = function suffixIcon() {
3499
+ var _this$$slots, _this$$slots2, _this$$slots2$suffix;
3407
3500
  if (_this.loading) {
3408
3501
  return (0,external_vue_namespaceObject.createVNode)(loading_namespaceObject["default"], {
3409
- "loading": true,
3410
- "theme": "primary",
3411
3502
  "class": "spinner",
3503
+ "loading": true,
3412
3504
  "mode": "spin",
3413
- "size": "mini"
3505
+ "size": "mini",
3506
+ "theme": "primary"
3414
3507
  }, null);
3415
3508
  }
3416
3509
  if (_this.clearable && _this.isHover && _this.selected.length && !_this.isDisabled) {
@@ -3419,12 +3512,14 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3419
3512
  "onClick": _this.handleClear
3420
3513
  }, null);
3421
3514
  }
3422
- return (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.AngleUp, {
3423
- "class": "angle-up"
3515
+ return (_this$$slots = _this.$slots) !== null && _this$$slots !== void 0 && _this$$slots.suffix ? (0,external_vue_namespaceObject.createVNode)("span", {
3516
+ "class": "angle-down"
3517
+ }, [(_this$$slots2 = _this.$slots) === null || _this$$slots2 === void 0 || (_this$$slots2$suffix = _this$$slots2.suffix) === null || _this$$slots2$suffix === void 0 ? void 0 : _this$$slots2$suffix.call(_this$$slots2)]) : (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.AngleDown, {
3518
+ "class": "angle-down"
3424
3519
  }, null);
3425
3520
  };
3426
3521
  var renderPrefix = function renderPrefix() {
3427
- var _this$$slots;
3522
+ var _this$$slots3;
3428
3523
  if (_this.prefix) {
3429
3524
  return function () {
3430
3525
  return (0,external_vue_namespaceObject.createVNode)("div", {
@@ -3432,9 +3527,9 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3432
3527
  }, [(0,external_vue_namespaceObject.createVNode)("span", null, [_this.prefix])]);
3433
3528
  };
3434
3529
  }
3435
- return (_this$$slots = _this.$slots) !== null && _this$$slots !== void 0 && _this$$slots.prefix ? function () {
3436
- var _this$$slots2, _this$$slots2$prefix;
3437
- return (_this$$slots2 = _this.$slots) === null || _this$$slots2 === void 0 || (_this$$slots2$prefix = _this$$slots2.prefix) === null || _this$$slots2$prefix === void 0 ? void 0 : _this$$slots2$prefix.call(_this$$slots2);
3530
+ return (_this$$slots3 = _this.$slots) !== null && _this$$slots3 !== void 0 && _this$$slots3.prefix ? function () {
3531
+ var _this$$slots4, _this$$slots4$prefix;
3532
+ return (_this$$slots4 = _this.$slots) === null || _this$$slots4 === void 0 || (_this$$slots4$prefix = _this$$slots4.prefix) === null || _this$$slots4$prefix === void 0 ? void 0 : _this$$slots4$prefix.call(_this$$slots4);
3438
3533
  } : undefined;
3439
3534
  };
3440
3535
  // 全选
@@ -3442,13 +3537,24 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3442
3537
  if (!_this.isShowSelectAll) return;
3443
3538
  return (0,external_vue_namespaceObject.createVNode)("li", {
3444
3539
  "class": _this.resolveClassName('select-option'),
3445
- "onMouseenter": _this.handleSelectedAllOptionMouseEnter,
3446
- "onClick": _this.toggleSelectAll
3540
+ "onClick": _this.toggleSelectAll,
3541
+ "onMouseenter": _this.handleSelectedAllOptionMouseEnter
3447
3542
  }, [_this.selectedStyle === 'checkbox' && (0,external_vue_namespaceObject.createVNode)(checkbox_namespaceObject["default"], {
3448
3543
  "class": _this.resolveClassName('select-checkbox'),
3449
- "modelValue": _this.isAllSelected,
3450
- "indeterminate": !_this.isAllSelected && !!_this.selected.length && !_this.isAll
3451
- }, null), _this.t.selectAll]);
3544
+ "indeterminate": !_this.isAllSelected && !!_this.selected.length && !_this.isAll,
3545
+ "modelValue": _this.isAllSelected
3546
+ }, null), _this.localSelectAllText]);
3547
+ };
3548
+ // 全部icon支持自定义
3549
+ var renderAllIcon = function renderAllIcon() {
3550
+ var _this$$slots5, _this$$slots5$allOpti;
3551
+ return ((_this$$slots5 = _this.$slots) === null || _this$$slots5 === void 0 || (_this$$slots5$allOpti = _this$$slots5.allOptionIcon) === null || _this$$slots5$allOpti === void 0 ? void 0 : _this$$slots5$allOpti.call(_this$$slots5)) || (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.TextAll, {
3552
+ "class": "select-all-icon"
3553
+ }, null);
3554
+ };
3555
+ // 全部选项文案支持自定义
3556
+ var renderAllText = function renderAllText() {
3557
+ return (0,external_vue_namespaceObject.createVNode)("span", null, [_this.displayAllText || _this.t.all]);
3452
3558
  };
3453
3559
  // 全部
3454
3560
  var renderAll = function renderAll() {
@@ -3459,37 +3565,40 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3459
3565
  }, [(0,external_vue_namespaceObject.createVNode)("div", {
3460
3566
  "class": ['wrapper', _this.selected.length === 1 && ((_this$selected$ = _this.selected[0]) === null || _this$selected$ === void 0 ? void 0 : _this$selected$.value) === _this.allOptionId ? 'active' : ''],
3461
3567
  "onClick": _this.toggleAll
3462
- }, [(0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.TextAll, {
3463
- "class": "select-all-icon"
3464
- }, null), (0,external_vue_namespaceObject.createVNode)("span", null, [_this.t.all])])]);
3568
+ }, [renderAllIcon(), renderAllText()])]);
3465
3569
  };
3570
+ // 默认trigger输入框渲染
3466
3571
  var renderTriggerInput = function renderTriggerInput() {
3467
- var _this$$slots5;
3572
+ var _this$$slots10;
3468
3573
  if (_this.multipleMode === 'tag') {
3469
- var _this$$slots3;
3574
+ var _this$$slots6, _this$$slots8;
3470
3575
  return (0,external_vue_namespaceObject.createVNode)(selectTagInput, {
3471
3576
  "ref": "selectTagInputRef",
3472
3577
  "modelValue": _this.customOptionName,
3473
3578
  "onUpdate:modelValue": function onUpdateModelValue($event) {
3474
3579
  return _this.customOptionName = $event;
3475
3580
  },
3476
- "selected": _this.selected,
3477
- "tagTheme": _this.tagTheme,
3478
- "placeholder": _this.localPlaceholder,
3479
- "filterable": _this.isInput,
3480
- "disabled": _this.isDisabled,
3481
3581
  "behavior": _this.behavior,
3482
- "onRemove": _this.handleDeleteTag,
3483
3582
  "collapseTags": _this.isCollapseTags,
3484
- "onEnter": _this.handleCreateCustomOption
3583
+ "disabled": _this.isDisabled,
3584
+ "filterable": _this.isInput,
3585
+ "placeholder": _this.localPlaceholder,
3586
+ "selected": _this.selected,
3587
+ "tagTheme": _this.tagTheme,
3588
+ "onEnter": _this.handleCreateCustomOption,
3589
+ "onRemove": _this.handleDeleteTag
3485
3590
  }, {
3486
3591
  prefix: renderPrefix(),
3487
- "default": ((_this$$slots3 = _this.$slots) === null || _this$$slots3 === void 0 ? void 0 : _this$$slots3.tag) && function () {
3488
- var _this$$slots4;
3489
- return (_this$$slots4 = _this.$slots) === null || _this$$slots4 === void 0 ? void 0 : _this$$slots4.tag({
3592
+ "default": ((_this$$slots6 = _this.$slots) === null || _this$$slots6 === void 0 ? void 0 : _this$$slots6.tag) && function () {
3593
+ var _this$$slots7;
3594
+ return (_this$$slots7 = _this.$slots) === null || _this$$slots7 === void 0 ? void 0 : _this$$slots7.tag({
3490
3595
  selected: _this.selected
3491
3596
  });
3492
3597
  },
3598
+ tagRender: ((_this$$slots8 = _this.$slots) === null || _this$$slots8 === void 0 ? void 0 : _this$$slots8.tagRender) && function (item) {
3599
+ var _this$$slots9;
3600
+ return (_this$$slots9 = _this.$slots) === null || _this$$slots9 === void 0 ? void 0 : _this$$slots9.tagRender(item);
3601
+ },
3493
3602
  suffix: function suffix() {
3494
3603
  return suffixIcon();
3495
3604
  }
@@ -3497,24 +3606,24 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3497
3606
  }
3498
3607
  return (0,external_vue_namespaceObject.createVNode)(input_namespaceObject["default"], (0,external_vue_namespaceObject.mergeProps)({
3499
3608
  "ref": "inputRef",
3500
- "type": "text",
3609
+ "behavior": _this.behavior,
3610
+ "disabled": _this.isDisabled,
3501
3611
  "modelValue": _this.isInput ? _this.customOptionName : _this.selectedLabel.join(','),
3502
3612
  "placeholder": _this.isInput ? _this.selectedLabel.join(',') || _this.localPlaceholder : _this.localPlaceholder,
3503
3613
  "readonly": !_this.isInput,
3504
3614
  "selectReadonly": true,
3505
- "disabled": _this.isDisabled,
3506
- "behavior": _this.behavior,
3507
3615
  "size": _this.size,
3508
- "withValidate": false,
3509
3616
  "stopPropagation": false,
3510
- "onInput": _this.handleInputChange,
3511
- "onEnter": _this.handleCreateCustomOption
3617
+ "type": "text",
3618
+ "withValidate": false,
3619
+ "onEnter": _this.handleCreateCustomOption,
3620
+ "onInput": _this.handleInputChange
3512
3621
  }, _this.prefix ? {
3513
3622
  prefix: _this.prefix
3514
- } : null), select_objectSpread(select_objectSpread({}, typeof ((_this$$slots5 = _this.$slots) === null || _this$$slots5 === void 0 ? void 0 : _this$$slots5.prefix) === 'function' ? {
3623
+ } : null), select_objectSpread(select_objectSpread({}, typeof ((_this$$slots10 = _this.$slots) === null || _this$$slots10 === void 0 ? void 0 : _this$$slots10.prefix) === 'function' ? {
3515
3624
  prefix: function prefix() {
3516
- var _this$$slots6, _this$$slots6$prefix;
3517
- return (_this$$slots6 = _this.$slots) === null || _this$$slots6 === void 0 || (_this$$slots6$prefix = _this$$slots6.prefix) === null || _this$$slots6$prefix === void 0 ? void 0 : _this$$slots6$prefix.call(_this$$slots6);
3625
+ var _this$$slots11, _this$$slots11$prefix;
3626
+ return (_this$$slots11 = _this.$slots) === null || _this$$slots11 === void 0 || (_this$$slots11$prefix = _this$$slots11.prefix) === null || _this$$slots11$prefix === void 0 ? void 0 : _this$$slots11$prefix.call(_this$$slots11);
3518
3627
  }
3519
3628
  } : null), {}, {
3520
3629
  suffix: function suffix() {
@@ -3522,71 +3631,45 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3522
3631
  }
3523
3632
  }));
3524
3633
  };
3634
+ // 渲染trigger
3525
3635
  var renderSelectTrigger = function renderSelectTrigger() {
3526
- var _this$$slots7, _this$$slots7$trigger;
3636
+ var _this$$slots12, _this$$slots12$trigge;
3527
3637
  return (0,external_vue_namespaceObject.createVNode)("div", {
3528
- "class": _this.resolveClassName('select-trigger'),
3638
+ "ref": "triggerRef",
3529
3639
  "style": {
3530
3640
  height: _this.autoHeight && _this.collapseTags ? '32px' : ''
3531
3641
  },
3532
- "ref": "triggerRef",
3642
+ "class": _this.resolveClassName('select-trigger'),
3533
3643
  "onClick": _this.handleTogglePopover,
3534
3644
  "onMouseenter": _this.setHover,
3535
3645
  "onMouseleave": _this.cancelHover
3536
- }, [((_this$$slots7 = _this.$slots) === null || _this$$slots7 === void 0 || (_this$$slots7$trigger = _this$$slots7.trigger) === null || _this$$slots7$trigger === void 0 ? void 0 : _this$$slots7$trigger.call(_this$$slots7, {
3646
+ }, [((_this$$slots12 = _this.$slots) === null || _this$$slots12 === void 0 || (_this$$slots12$trigge = _this$$slots12.trigger) === null || _this$$slots12$trigge === void 0 ? void 0 : _this$$slots12$trigge.call(_this$$slots12, {
3537
3647
  selected: _this.selected
3538
3648
  })) || renderTriggerInput()]);
3539
3649
  };
3540
- var renderSelectContent = function renderSelectContent() {
3541
- var _this$$slots12, _this$$slots12$defaul, _this$$slots13, _this$$slots14;
3542
- return (0,external_vue_namespaceObject.createVNode)("div", {
3543
- "class": _this.resolveClassName('select-content-wrapper'),
3544
- "ref": "contentRef"
3545
- }, [renderAll(), _this.filterable && !_this.inputSearch && (0,external_vue_namespaceObject.createVNode)("div", {
3546
- "class": _this.resolveClassName('select-search-wrapper')
3547
- }, [(0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Search, {
3548
- "class": "icon-search",
3549
- "width": 16,
3550
- "height": 16
3551
- }, null), (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("input", {
3552
- "ref": "searchRef",
3553
- "class": _this.resolveClassName('select-search-input'),
3554
- "placeholder": _this.localSearchPlaceholder,
3555
- "onUpdate:modelValue": function onUpdateModelValue($event) {
3556
- return _this.searchValue = $event;
3557
- }
3558
- }, null), [[external_vue_namespaceObject.vModelText, _this.searchValue]])]), !_this.isShowSelectContent && (0,external_vue_namespaceObject.createVNode)("div", {
3559
- "class": _this.resolveClassName('select-empty')
3560
- }, [_this.searchLoading && (0,external_vue_namespaceObject.createVNode)(loading_namespaceObject["default"], {
3561
- "class": "mr5",
3562
- "theme": "primary",
3563
- "loading": true,
3564
- "mode": "spin",
3565
- "size": "mini"
3566
- }, null), (0,external_vue_namespaceObject.createVNode)("span", null, [_this.curContentText])]), (0,external_vue_namespaceObject.createVNode)("div", {
3567
- "class": _this.resolveClassName('select-content')
3568
- }, [(0,external_vue_namespaceObject.createVNode)("div", {
3569
- "class": _this.enableVirtualRender ? '' : _this.resolveClassName('select-dropdown'),
3570
- "style": {
3571
- maxHeight: "".concat(_this.scrollHeight, "px")
3572
- },
3573
- "onScroll": _this.handleScroll
3574
- }, [(0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("ul", {
3575
- "class": _this.resolveClassName('select-options')
3576
- }, [renderSelectAll(), _this.enableVirtualRender ? (0,external_vue_namespaceObject.createVNode)(virtual_render_namespaceObject["default"], {
3577
- "list": _this.virtualList,
3650
+ // 渲染列表模式
3651
+ var renderList = function renderList() {
3652
+ return _this.isEnableVirtualRender ? (0,external_vue_namespaceObject.createVNode)(virtual_render_namespaceObject["default"], {
3653
+ "ref": "virtualRenderRef",
3578
3654
  "height": _this.virtualHeight,
3579
- "lineHeight": 32,
3580
- "ref": "virtualRenderRef"
3655
+ "lineHeight": _this.virtualLineHeight,
3656
+ "list": _this.filterList,
3657
+ "preloadItemCount": _this.preloadItemCount,
3658
+ "scrollbar": {
3659
+ enabled: true,
3660
+ size: 'small'
3661
+ }
3581
3662
  }, {
3582
3663
  "default": function _default(_ref3) {
3583
- var _this$$slots8, _this$$slots9;
3664
+ var _this$$slots13, _this$$slots14;
3584
3665
  var data = _ref3.data;
3585
- var optionRender = ((_this$$slots8 = _this.$slots) === null || _this$$slots8 === void 0 ? void 0 : _this$$slots8.optionRender) || ((_this$$slots9 = _this.$slots) === null || _this$$slots9 === void 0 ? void 0 : _this$$slots9.virtualScrollRender);
3666
+ // 兼容以前slots
3667
+ var optionRender = ((_this$$slots13 = _this.$slots) === null || _this$$slots13 === void 0 ? void 0 : _this$$slots13.optionRender) || ((_this$$slots14 = _this.$slots) === null || _this$$slots14 === void 0 ? void 0 : _this$$slots14.virtualScrollRender);
3586
3668
  return data.map(function (item) {
3587
3669
  return (0,external_vue_namespaceObject.createVNode)(src_option, {
3588
- "key": item[_this.idKey],
3589
3670
  "id": item[_this.idKey],
3671
+ "key": item[_this.idKey],
3672
+ "disabled": !!item.disabled,
3590
3673
  "name": item[_this.displayKey]
3591
3674
  }, typeof optionRender === 'function' ? {
3592
3675
  "default": function _default() {
@@ -3597,38 +3680,81 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3597
3680
  } : null);
3598
3681
  });
3599
3682
  }
3600
- }) : _this.list.map(function (item) {
3601
- var _this$$slots10;
3683
+ }) : _this.filterList.map(function (item) {
3684
+ var _this$$slots15, _this$$slots16;
3685
+ // 兼容以前slots
3686
+ var optionRender = ((_this$$slots15 = _this.$slots) === null || _this$$slots15 === void 0 ? void 0 : _this$$slots15.optionRender) || ((_this$$slots16 = _this.$slots) === null || _this$$slots16 === void 0 ? void 0 : _this$$slots16.virtualScrollRender);
3602
3687
  return (0,external_vue_namespaceObject.createVNode)(src_option, {
3603
- "key": item[_this.idKey],
3604
3688
  "id": item[_this.idKey],
3689
+ "key": item[_this.idKey],
3690
+ "disabled": !!item.disabled,
3605
3691
  "name": item[_this.displayKey]
3606
- }, (_this$$slots10 = _this.$slots) !== null && _this$$slots10 !== void 0 && _this$$slots10.optionRender ? {
3692
+ }, typeof optionRender === 'function' ? {
3607
3693
  "default": function _default() {
3608
- var _this$$slots11, _this$$slots11$option;
3609
- return (_this$$slots11 = _this.$slots) === null || _this$$slots11 === void 0 || (_this$$slots11$option = _this$$slots11.optionRender) === null || _this$$slots11$option === void 0 ? void 0 : _this$$slots11$option.call(_this$$slots11, {
3694
+ return optionRender({
3610
3695
  item: item
3611
3696
  });
3612
3697
  }
3613
3698
  } : null);
3614
- }), (_this$$slots12 = _this.$slots) === null || _this$$slots12 === void 0 || (_this$$slots12$defaul = _this$$slots12["default"]) === null || _this$$slots12$defaul === void 0 ? void 0 : _this$$slots12$defaul.call(_this$$slots12), _this.scrollLoading && (0,external_vue_namespaceObject.createVNode)("li", {
3699
+ });
3700
+ };
3701
+ // 渲染内容
3702
+ var renderSelectContent = function renderSelectContent() {
3703
+ var _this$$slots17, _this$$slots17$defaul, _this$$slots18, _this$$slots19;
3704
+ return (0,external_vue_namespaceObject.createVNode)("div", {
3705
+ "ref": "contentRef",
3706
+ "class": _this.resolveClassName('select-content-wrapper')
3707
+ }, [renderAll(), _this.filterable && !_this.inputSearch && (0,external_vue_namespaceObject.createVNode)("div", {
3708
+ "class": _this.resolveClassName('select-search-wrapper')
3709
+ }, [(0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Search, {
3710
+ "width": 16,
3711
+ "height": 16,
3712
+ "class": "icon-search"
3713
+ }, null), (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("input", {
3714
+ "ref": "searchRef",
3715
+ "class": _this.resolveClassName('select-search-input'),
3716
+ "onUpdate:modelValue": function onUpdateModelValue($event) {
3717
+ return _this.searchValue = $event;
3718
+ },
3719
+ "placeholder": _this.localSearchPlaceholder
3720
+ }, null), [[external_vue_namespaceObject.vModelText, _this.searchValue]])]), !_this.isShowSelectContent && (0,external_vue_namespaceObject.createVNode)("div", {
3721
+ "class": _this.resolveClassName('select-empty')
3722
+ }, [_this.searchLoading && (0,external_vue_namespaceObject.createVNode)(loading_namespaceObject["default"], {
3723
+ "class": "mr5",
3724
+ "loading": true,
3725
+ "mode": "spin",
3726
+ "size": "mini",
3727
+ "theme": "primary"
3728
+ }, null), (0,external_vue_namespaceObject.createVNode)("span", null, [_this.curContentText])]), (0,external_vue_namespaceObject.createVNode)("div", {
3729
+ "class": _this.resolveClassName('select-content')
3730
+ }, [(0,external_vue_namespaceObject.createVNode)("div", {
3731
+ "ref": "scrollContainerRef",
3732
+ "style": {
3733
+ maxHeight: "".concat(_this.scrollHeight, "px"),
3734
+ minHeight: "".concat(_this.minHeight, "px")
3735
+ },
3736
+ "class": _this.isEnableVirtualRender ? '' : _this.resolveClassName('select-dropdown'),
3737
+ "onScroll": _this.handleScroll
3738
+ }, [(0,external_vue_namespaceObject.createVNode)("ul", {
3739
+ "class": _this.resolveClassName('select-options')
3740
+ }, [renderSelectAll(), renderList(), (_this$$slots17 = _this.$slots) === null || _this$$slots17 === void 0 || (_this$$slots17$defaul = _this$$slots17["default"]) === null || _this$$slots17$defaul === void 0 ? void 0 : _this$$slots17$defaul.call(_this$$slots17), _this.scrollLoading && (0,external_vue_namespaceObject.createVNode)("li", {
3615
3741
  "class": _this.resolveClassName('select-options-loading')
3616
3742
  }, [(0,external_vue_namespaceObject.createVNode)(loading_namespaceObject["default"], {
3617
3743
  "class": "spinner mr5",
3618
- "theme": "primary",
3619
3744
  "loading": true,
3620
3745
  "mode": "spin",
3621
- "size": "mini"
3622
- }, null), (0,external_vue_namespaceObject.createVNode)("span", null, [_this.localLoadingText])])]), [[external_vue_namespaceObject.vShow, _this.isShowSelectContent]])]), ((_this$$slots13 = _this.$slots) === null || _this$$slots13 === void 0 ? void 0 : _this$$slots13.extension) && (0,external_vue_namespaceObject.createVNode)("div", {
3746
+ "size": "mini",
3747
+ "theme": "primary"
3748
+ }, null), (0,external_vue_namespaceObject.createVNode)("span", null, [_this.localLoadingText])])])]), ((_this$$slots18 = _this.$slots) === null || _this$$slots18 === void 0 ? void 0 : _this$$slots18.extension) && (0,external_vue_namespaceObject.createVNode)("div", {
3623
3749
  "class": _this.resolveClassName('select-extension')
3624
- }, [(_this$$slots14 = _this.$slots) === null || _this$$slots14 === void 0 ? void 0 : _this$$slots14.extension()])])]);
3750
+ }, [(_this$$slots19 = _this.$slots) === null || _this$$slots19 === void 0 ? void 0 : _this$$slots19.extension()])])]);
3625
3751
  };
3626
3752
  return (0,external_vue_namespaceObject.createVNode)("div", {
3627
3753
  "class": selectClass
3628
3754
  }, [(0,external_vue_namespaceObject.createVNode)(popover_namespaceObject["default"], (0,external_vue_namespaceObject.mergeProps)(this.popoverConfig, {
3629
- "onClickoutside": this.handleClickOutside,
3630
- "onAfterShow": this.handlePopoverShow,
3631
- "ref": "popoverRef"
3755
+ "ref": "popoverRef",
3756
+ "onAfterShow": this.handlePopoverShown,
3757
+ "onClickoutside": this.handleClickOutside
3632
3758
  }), {
3633
3759
  "default": function _default() {
3634
3760
  return renderSelectTrigger();