bkui-vue 2.0.1-beta.3 → 2.0.1-beta.31

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 (405) hide show
  1. package/dist/index.cjs.js +166 -166
  2. package/dist/index.esm.js +31940 -31804
  3. package/dist/index.umd.js +166 -166
  4. package/dist/style.css +1 -1
  5. package/dist/style.variable.css +1 -1
  6. package/lib/affix/affix.css +130 -0
  7. package/lib/affix/affix.variable.css +262 -1
  8. package/lib/affix/index.js +7 -7
  9. package/lib/alert/alert.css +133 -3
  10. package/lib/alert/alert.d.ts +5 -12
  11. package/lib/alert/alert.variable.css +262 -1
  12. package/lib/alert/index.d.ts +11 -26
  13. package/lib/alert/index.js +0 -1
  14. package/lib/backtop/backtop.css +133 -3
  15. package/lib/backtop/backtop.d.ts +1 -1
  16. package/lib/backtop/backtop.variable.css +395 -4
  17. package/lib/backtop/index.d.ts +3 -3
  18. package/lib/backtop/index.js +6 -6
  19. package/lib/badge/badge.css +156 -26
  20. package/lib/badge/badge.variable.css +262 -1
  21. package/lib/badge/index.js +1 -1
  22. package/lib/breadcrumb/breadcrumb.css +135 -5
  23. package/lib/breadcrumb/breadcrumb.variable.css +397 -6
  24. package/lib/button/button.css +273 -143
  25. package/lib/button/button.d.ts +7 -7
  26. package/lib/button/button.variable.css +262 -1
  27. package/lib/button/index.d.ts +8 -8
  28. package/lib/button/index.js +6 -7
  29. package/lib/card/card.css +134 -4
  30. package/lib/card/card.variable.css +396 -5
  31. package/lib/cascader/cascader-panel.d.ts +1 -1
  32. package/lib/cascader/cascader.css +156 -26
  33. package/lib/cascader/cascader.d.ts +1 -1
  34. package/lib/cascader/cascader.less +4 -4
  35. package/lib/cascader/cascader.variable.css +418 -27
  36. package/lib/cascader/index.js +36 -36
  37. package/lib/cascader/interface.d.ts +1 -1
  38. package/lib/checkbox/checkbox-group.d.ts +0 -16
  39. package/lib/checkbox/checkbox.css +139 -9
  40. package/lib/checkbox/checkbox.d.ts +7 -7
  41. package/lib/checkbox/checkbox.variable.css +262 -1
  42. package/lib/checkbox/index.d.ts +11 -22
  43. package/lib/checkbox/index.js +12 -5
  44. package/lib/checkbox/type.d.ts +1 -1
  45. package/lib/code-diff/code-diff.css +130 -0
  46. package/lib/code-diff/code-diff.variable.css +262 -1
  47. package/lib/code-diff/index.js +8 -8
  48. package/lib/collapse/collapse.css +131 -1
  49. package/lib/collapse/collapse.variable.css +262 -1
  50. package/lib/collapse/index.js +2 -2
  51. package/lib/collapse/utils.d.ts +2 -2
  52. package/lib/collapse-transition/collapse-transition.css +130 -0
  53. package/lib/collapse-transition/collapse-transition.variable.css +262 -1
  54. package/lib/color-picker/color-picker.css +133 -3
  55. package/lib/color-picker/color-picker.less +3 -3
  56. package/lib/color-picker/color-picker.variable.css +265 -4
  57. package/lib/color-picker/index.js +45 -45
  58. package/lib/components.d.ts +32 -32
  59. package/lib/components.js +31 -31
  60. package/lib/config-provider/config-provider.css +130 -0
  61. package/lib/config-provider/config-provider.variable.css +262 -1
  62. package/lib/config-provider/index.d.ts +1 -1
  63. package/lib/container/container.css +130 -0
  64. package/lib/container/container.variable.css +392 -1
  65. package/lib/container/index.js +6 -7
  66. package/lib/date-picker/base/date-table.d.ts +1 -1
  67. package/lib/date-picker/base/month-table.d.ts +1 -1
  68. package/lib/date-picker/base/picker-dropdown.d.ts +1 -1
  69. package/lib/date-picker/base/year-table.d.ts +3 -3
  70. package/lib/date-picker/date-picker.css +147 -17
  71. package/lib/date-picker/date-picker.d.ts +0 -10
  72. package/lib/date-picker/date-picker.variable.css +262 -1
  73. package/lib/date-picker/index.d.ts +0 -22
  74. package/lib/date-picker/index.js +320 -223
  75. package/lib/date-picker/interface.d.ts +9 -9
  76. package/lib/date-picker/panel/date-range.d.ts +6 -68
  77. package/lib/date-picker/panel/date.d.ts +1 -1
  78. package/lib/date-picker/panel/time-range.d.ts +1 -10
  79. package/lib/date-picker/panel/time.d.ts +1 -10
  80. package/lib/date-picker/props.d.ts +1 -5
  81. package/lib/date-picker/time-picker.d.ts +0 -9
  82. package/lib/date-picker/utils.d.ts +5 -1
  83. package/lib/dialog/dialog.css +138 -12
  84. package/lib/dialog/dialog.d.ts +36 -20
  85. package/lib/dialog/dialog.variable.css +400 -13
  86. package/lib/dialog/index.d.ts +78 -44
  87. package/lib/dialog/index.js +22 -22
  88. package/lib/dialog/props.d.ts +15 -8
  89. package/lib/directives/index.d.ts +3 -3
  90. package/lib/directives/index.js +166 -166
  91. package/lib/directives/tooltips.d.ts +1 -1
  92. package/lib/dist.index.js +2 -4
  93. package/lib/divider/divider.css +133 -3
  94. package/lib/divider/divider.d.ts +5 -5
  95. package/lib/divider/divider.variable.css +262 -1
  96. package/lib/divider/index.d.ts +11 -11
  97. package/lib/divider/index.js +2 -2
  98. package/lib/divider/props.d.ts +2 -2
  99. package/lib/dropdown/dropdown-item.d.ts +1 -1
  100. package/lib/dropdown/dropdown-menu.d.ts +1 -1
  101. package/lib/dropdown/dropdown.css +130 -0
  102. package/lib/dropdown/dropdown.d.ts +5 -5
  103. package/lib/dropdown/dropdown.variable.css +392 -1
  104. package/lib/dropdown/index.d.ts +13 -13
  105. package/lib/dropdown/index.js +7 -7
  106. package/lib/exception/exception.css +130 -0
  107. package/lib/exception/exception.d.ts +9 -9
  108. package/lib/exception/exception.variable.css +262 -1
  109. package/lib/exception/index.d.ts +11 -11
  110. package/lib/exception/index.js +10 -10
  111. package/lib/exception/typings/index.d.ts +1 -1
  112. package/lib/fixed-navbar/fixed-navbar.css +134 -4
  113. package/lib/fixed-navbar/fixed-navbar.variable.css +262 -1
  114. package/lib/fixed-navbar/index.js +2 -2
  115. package/lib/form/form-item.d.ts +0 -16
  116. package/lib/form/form.css +130 -0
  117. package/lib/form/form.d.ts +2 -2
  118. package/lib/form/form.variable.css +262 -1
  119. package/lib/form/index.d.ts +0 -11
  120. package/lib/form/index.js +14 -16
  121. package/lib/form/type.d.ts +2 -2
  122. package/lib/icon/index.d.ts +11 -11
  123. package/lib/icon/index.js +11 -11
  124. package/lib/image/image-viewer.css +130 -0
  125. package/lib/image/image-viewer.d.ts +1 -1
  126. package/lib/image/image-viewer.variable.css +262 -1
  127. package/lib/image/image.css +130 -0
  128. package/lib/image/image.variable.css +392 -1
  129. package/lib/image/index.js +20 -21
  130. package/lib/index.d.ts +9 -3
  131. package/lib/index.js +5 -29
  132. package/lib/info-box/index.js +13 -13
  133. package/lib/info-box/info-box.css +134 -4
  134. package/lib/info-box/info-box.d.ts +15 -15
  135. package/lib/info-box/info-box.variable.css +262 -1
  136. package/lib/input/index.d.ts +15 -15
  137. package/lib/input/index.js +16 -17
  138. package/lib/input/input.css +202 -72
  139. package/lib/input/input.d.ts +15 -15
  140. package/lib/input/input.variable.css +464 -73
  141. package/lib/link/index.d.ts +11 -11
  142. package/lib/link/index.js +3 -3
  143. package/lib/link/link.css +146 -16
  144. package/lib/link/link.d.ts +5 -5
  145. package/lib/link/link.variable.css +262 -1
  146. package/lib/loading/index.d.ts +4 -4
  147. package/lib/loading/index.js +6 -6
  148. package/lib/loading/loading.css +146 -16
  149. package/lib/loading/loading.d.ts +6 -6
  150. package/lib/loading/loading.variable.css +408 -17
  151. package/lib/locale/index.d.ts +1 -1
  152. package/lib/menu/index.js +0 -1
  153. package/lib/menu/menu.css +148 -18
  154. package/lib/menu/menu.variable.css +410 -19
  155. package/lib/menu/submenu.css +130 -0
  156. package/lib/menu/submenu.variable.css +262 -1
  157. package/lib/menu/utils.d.ts +3 -3
  158. package/lib/message/index.js +18 -18
  159. package/lib/message/message.css +151 -21
  160. package/lib/message/message.variable.css +262 -1
  161. package/lib/message/messageConstructor.d.ts +11 -11
  162. package/lib/modal/index.d.ts +49 -8
  163. package/lib/modal/index.js +46 -25
  164. package/lib/modal/modal.css +134 -8
  165. package/lib/modal/modal.d.ts +19 -3
  166. package/lib/modal/modal.less +0 -5
  167. package/lib/modal/modal.variable.css +396 -9
  168. package/lib/modal/props.mixin.d.ts +8 -1
  169. package/lib/navigation/index.js +20 -20
  170. package/lib/navigation/navigation.css +132 -2
  171. package/lib/navigation/navigation.d.ts +1 -1
  172. package/lib/navigation/navigation.variable.css +262 -1
  173. package/lib/notify/index.js +4 -4
  174. package/lib/notify/notify.css +137 -7
  175. package/lib/notify/notify.variable.css +262 -1
  176. package/lib/overflow-title/components/overflow-title.d.ts +9 -9
  177. package/lib/overflow-title/index.d.ts +19 -19
  178. package/lib/overflow-title/index.js +61 -11
  179. package/lib/overflow-title/props.d.ts +18 -18
  180. package/lib/pagination/index.d.ts +0 -19
  181. package/lib/pagination/index.js +44 -23
  182. package/lib/pagination/pagination.css +139 -9
  183. package/lib/pagination/pagination.d.ts +0 -13
  184. package/lib/pagination/pagination.less +14 -13
  185. package/lib/pagination/pagination.variable.css +270 -9
  186. package/lib/pagination/type.d.ts +1 -1
  187. package/lib/pagination/use-limit.d.ts +1 -1
  188. package/lib/pagination/use-total.d.ts +1 -1
  189. package/lib/plugin-popover/index.js +18 -20
  190. package/lib/pop-confirm/index.d.ts +11 -43
  191. package/lib/pop-confirm/index.js +27 -28
  192. package/lib/pop-confirm/pop-confirm.css +133 -1
  193. package/lib/pop-confirm/pop-confirm.d.ts +5 -19
  194. package/lib/pop-confirm/pop-confirm.less +3 -1
  195. package/lib/pop-confirm/pop-confirm.variable.css +265 -2
  196. package/lib/pop-confirm/props.d.ts +5 -11
  197. package/lib/popover/const.d.ts +3 -3
  198. package/lib/popover/index.d.ts +19 -19
  199. package/lib/popover/index.js +18 -20
  200. package/lib/popover/plugin-popover.d.ts +1 -1
  201. package/lib/popover/popover.css +130 -0
  202. package/lib/popover/popover.d.ts +7 -7
  203. package/lib/popover/popover.variable.css +262 -1
  204. package/lib/popover/props.d.ts +4 -4
  205. package/lib/preset.d.ts +0 -1
  206. package/lib/preset.js +0 -1
  207. package/lib/process/index.js +3 -3
  208. package/lib/process/process.css +143 -13
  209. package/lib/process/process.variable.css +262 -1
  210. package/lib/progress/index.d.ts +11 -11
  211. package/lib/progress/index.js +10 -11
  212. package/lib/progress/progress.css +134 -4
  213. package/lib/progress/progress.d.ts +7 -7
  214. package/lib/progress/progress.variable.css +396 -5
  215. package/lib/radio/index.d.ts +21 -21
  216. package/lib/radio/index.js +28 -17
  217. package/lib/radio/radio-button.d.ts +7 -7
  218. package/lib/radio/radio-group.d.ts +7 -7
  219. package/lib/radio/radio.css +172 -42
  220. package/lib/radio/radio.d.ts +7 -7
  221. package/lib/radio/radio.variable.css +262 -1
  222. package/lib/radio/type.d.ts +1 -1
  223. package/lib/rate/index.js +8 -8
  224. package/lib/rate/rate.css +157 -0
  225. package/lib/rate/rate.less +33 -0
  226. package/lib/rate/rate.variable.css +289 -1
  227. package/lib/resize-layout/index.d.ts +11 -11
  228. package/lib/resize-layout/index.js +7 -8
  229. package/lib/resize-layout/resize-layout.css +130 -0
  230. package/lib/resize-layout/resize-layout.d.ts +5 -5
  231. package/lib/resize-layout/resize-layout.variable.css +262 -1
  232. package/lib/scrollbar/index.js +63 -11
  233. package/lib/scrollbar/scrollbar-core/index.d.ts +21 -20
  234. package/lib/scrollbar/scrollbar.css +157 -8
  235. package/lib/scrollbar/scrollbar.less +35 -10
  236. package/lib/scrollbar/scrollbar.variable.css +289 -9
  237. package/lib/search-select/index.js +66 -66
  238. package/lib/search-select/menu.d.ts +1 -1
  239. package/lib/search-select/search-select.css +163 -33
  240. package/lib/search-select/search-select.variable.css +425 -34
  241. package/lib/search-select/selected.d.ts +1 -1
  242. package/lib/search-select/utils.d.ts +3 -3
  243. package/lib/select/common.d.ts +4 -4
  244. package/lib/select/index.d.ts +94 -70
  245. package/lib/select/index.js +176 -150
  246. package/lib/select/option.d.ts +1 -1
  247. package/lib/select/select.css +172 -43
  248. package/lib/select/select.d.ts +37 -27
  249. package/lib/select/select.less +3 -4
  250. package/lib/select/select.variable.css +434 -44
  251. package/lib/select/selectTagInput.d.ts +6 -6
  252. package/lib/select/type.d.ts +2 -2
  253. package/lib/shared/frame-throttle.d.ts +15 -0
  254. package/lib/shared/index.d.ts +2 -1
  255. package/lib/shared/index.js +110 -47
  256. package/lib/shared/popover.d.ts +3 -3
  257. package/lib/shared/token.d.ts +1 -1
  258. package/lib/shared/vue-types.d.ts +46 -46
  259. package/lib/shared/z-index-manager.d.ts +6 -6
  260. package/lib/sideslider/index.d.ts +41 -7
  261. package/lib/sideslider/index.js +12 -11
  262. package/lib/sideslider/sideslider.css +138 -9
  263. package/lib/sideslider/sideslider.d.ts +19 -3
  264. package/lib/sideslider/sideslider.less +7 -8
  265. package/lib/sideslider/sideslider.variable.css +269 -9
  266. package/lib/slider/index.js +21 -23
  267. package/lib/slider/slider.css +135 -5
  268. package/lib/slider/slider.variable.css +262 -1
  269. package/lib/steps/index.d.ts +14 -29
  270. package/lib/steps/index.js +3 -4
  271. package/lib/steps/steps.css +168 -38
  272. package/lib/steps/steps.d.ts +8 -18
  273. package/lib/steps/steps.variable.css +262 -1
  274. package/lib/styles/index.d.ts +0 -1
  275. package/lib/styles/mixins/animate.css +130 -0
  276. package/lib/styles/mixins/animate.variable.css +262 -1
  277. package/lib/styles/mixins/mixins.css +130 -0
  278. package/lib/styles/mixins/mixins.variable.css +130 -0
  279. package/lib/styles/mixins/popper.css +130 -0
  280. package/lib/styles/mixins/popper.variable.css +262 -1
  281. package/lib/styles/mixins/scroll.css +130 -0
  282. package/lib/styles/mixins/scroll.variable.css +262 -1
  283. package/lib/styles/reset.css +130 -0
  284. package/lib/styles/reset.variable.css +262 -1
  285. package/lib/{rate/star.variable.css → styles/themes/themes.css} +2 -28
  286. package/lib/styles/themes/themes.less +299 -129
  287. package/lib/styles/themes/themes.variable.css +130 -0
  288. package/lib/swiper/index.js +5 -5
  289. package/lib/swiper/swiper.css +130 -0
  290. package/lib/swiper/swiper.variable.css +262 -1
  291. package/lib/switcher/index.js +2 -2
  292. package/lib/switcher/switcher.css +147 -17
  293. package/lib/switcher/switcher.d.ts +2 -2
  294. package/lib/switcher/switcher.variable.css +409 -18
  295. package/lib/tab/index.d.ts +22 -22
  296. package/lib/tab/index.js +15 -15
  297. package/lib/tab/props.d.ts +15 -15
  298. package/lib/tab/tab-nav.d.ts +10 -10
  299. package/lib/tab/tab.css +147 -17
  300. package/lib/tab/tab.d.ts +10 -10
  301. package/lib/tab/tab.variable.css +262 -1
  302. package/lib/table/components/ghost-body.d.ts +2 -0
  303. package/lib/table/components/table-column.d.ts +25 -126
  304. package/lib/table/const.d.ts +22 -10
  305. package/lib/table/events.d.ts +16 -112
  306. package/lib/table/hooks/use-cell.d.ts +20 -0
  307. package/lib/table/hooks/use-column-resize.d.ts +7 -0
  308. package/lib/table/hooks/use-column-template.d.ts +5 -0
  309. package/lib/table/hooks/use-columns.d.ts +66 -0
  310. package/lib/table/{plugins → hooks}/use-draggable.d.ts +2 -2
  311. package/lib/table/hooks/use-fixed-column.d.ts +10 -0
  312. package/lib/table/hooks/use-head.d.ts +16 -0
  313. package/lib/table/hooks/use-layout.d.ts +23 -0
  314. package/lib/table/hooks/use-pagination.d.ts +16 -0
  315. package/lib/table/hooks/use-render.d.ts +23 -0
  316. package/lib/table/hooks/use-rows.d.ts +27 -0
  317. package/lib/table/hooks/use-settings.d.ts +130 -0
  318. package/lib/table/hooks/use-shift-key.d.ts +15 -0
  319. package/lib/table/index.d.ts +72 -634
  320. package/lib/table/index.js +3478 -3408
  321. package/lib/table/plugins/head-filter.css +130 -0
  322. package/lib/table/plugins/head-filter.d.ts +2 -1
  323. package/lib/table/plugins/head-filter.variable.css +262 -1
  324. package/lib/table/plugins/head-sort.css +130 -0
  325. package/lib/table/plugins/head-sort.variable.css +262 -1
  326. package/lib/table/plugins/settings.css +131 -0
  327. package/lib/table/plugins/settings.less +1 -0
  328. package/lib/table/plugins/settings.variable.css +263 -1
  329. package/lib/table/props.d.ts +94 -62
  330. package/lib/table/table.css +433 -260
  331. package/lib/table/table.d.ts +31 -185
  332. package/lib/table/table.less +120 -99
  333. package/lib/table/table.variable.css +695 -261
  334. package/lib/table/utils.d.ts +36 -10
  335. package/lib/table-column/index.d.ts +36 -289
  336. package/lib/table-column/index.js +17335 -45
  337. package/lib/tag/index.d.ts +11 -11
  338. package/lib/tag/index.js +2 -2
  339. package/lib/tag/tag.css +135 -5
  340. package/lib/tag/tag.d.ts +5 -5
  341. package/lib/tag/tag.variable.css +262 -1
  342. package/lib/tag-input/common.d.ts +1 -1
  343. package/lib/tag-input/index.d.ts +8 -8
  344. package/lib/tag-input/index.js +30 -30
  345. package/lib/tag-input/tag-input.css +148 -18
  346. package/lib/tag-input/tag-input.d.ts +4 -4
  347. package/lib/tag-input/tag-input.variable.css +262 -1
  348. package/lib/tag-input/tag-props.d.ts +2 -2
  349. package/lib/time-picker/index.d.ts +0 -19
  350. package/lib/time-picker/time-picker.css +130 -0
  351. package/lib/time-picker/time-picker.variable.css +262 -1
  352. package/lib/timeline/index.js +2 -2
  353. package/lib/timeline/timeline.css +149 -19
  354. package/lib/timeline/timeline.variable.css +262 -1
  355. package/lib/transfer/const.d.ts +2 -2
  356. package/lib/transfer/index.js +19 -19
  357. package/lib/transfer/transfer.css +158 -28
  358. package/lib/transfer/transfer.less +3 -3
  359. package/lib/transfer/transfer.variable.css +271 -10
  360. package/lib/tree/constant.d.ts +20 -20
  361. package/lib/tree/index.d.ts +32 -24
  362. package/lib/tree/index.js +66 -52
  363. package/lib/tree/props.d.ts +18 -11
  364. package/lib/tree/tree.css +166 -17
  365. package/lib/tree/tree.d.ts +14 -16
  366. package/lib/tree/tree.less +1 -1
  367. package/lib/tree/tree.variable.css +428 -18
  368. package/lib/tree/use-empty.d.ts +1 -1
  369. package/lib/tree/use-node-action.d.ts +8 -8
  370. package/lib/tree/use-node-attribute.d.ts +42 -34
  371. package/lib/tree/use-search.d.ts +1 -1
  372. package/lib/tree/util.d.ts +1 -1
  373. package/lib/upload/index.js +41 -35
  374. package/lib/upload/props.d.ts +1 -1
  375. package/lib/upload/upload.css +157 -27
  376. package/lib/upload/upload.type.d.ts +7 -7
  377. package/lib/upload/upload.variable.css +419 -28
  378. package/lib/upload/use-file-handler.d.ts +1 -1
  379. package/lib/virtual-render/index.d.ts +12 -23
  380. package/lib/virtual-render/index.js +17290 -24
  381. package/lib/virtual-render/props.d.ts +2 -3
  382. package/lib/virtual-render/use-fix-top.d.ts +1 -1
  383. package/lib/virtual-render/v-virtual-render.d.ts +1 -1
  384. package/lib/virtual-render/virtual-render.css +157 -8
  385. package/lib/virtual-render/virtual-render.d.ts +6 -11
  386. package/lib/virtual-render/virtual-render.variable.css +419 -9
  387. package/package.json +17 -55
  388. package/lib/rate/star.css +0 -27
  389. package/lib/rate/star.less +0 -34
  390. package/lib/table/plugins/col-group.d.ts +0 -38
  391. package/lib/table/plugins/settings.d.ts +0 -16
  392. package/lib/table/plugins/use-active-columns.d.ts +0 -16
  393. package/lib/table/plugins/use-column-resize.d.ts +0 -35
  394. package/lib/table/plugins/use-column-template.d.ts +0 -7
  395. package/lib/table/plugins/use-fixed-column.d.ts +0 -27
  396. package/lib/table/plugins/use-head-cell.d.ts +0 -7
  397. package/lib/table/plugins/use-pagination.d.ts +0 -23
  398. package/lib/table/plugins/use-shift-key.d.ts +0 -11
  399. package/lib/table/use-attributes.d.ts +0 -62
  400. package/lib/table/use-column.d.ts +0 -275
  401. package/lib/table/use-common.d.ts +0 -1679
  402. package/lib/table/use-render.d.ts +0 -11
  403. /package/lib/table/{plugins → components}/body-empty.d.ts +0 -0
  404. /package/lib/table/{plugins → hooks}/use-observer-resize.d.ts +0 -0
  405. /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,10 @@ 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";
21
20
  import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_tag_d74826be__ from "../tag";
22
21
  import "../tag/tag.less";
22
+ import * as __WEBPACK_EXTERNAL_MODULE_lodash_debounce_3540babe__ from "lodash/debounce";
23
23
  /******/ var __webpack_modules__ = ({
24
24
 
25
25
  /***/ 7609:
@@ -492,10 +492,6 @@ function _defineProperty(obj, key, value) {
492
492
  var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
493
493
  var external_vue_y = x => () => x
494
494
  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
495
  ;// CONCATENATED MODULE: external "../checkbox"
500
496
  var checkbox_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
501
497
  var checkbox_y = x => () => x
@@ -511,7 +507,11 @@ const config_provider_namespaceObject = config_provider_x({ ["useLocale"]: () =>
511
507
  ;// CONCATENATED MODULE: external "../icon"
512
508
  var icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
513
509
  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 });
510
+ 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 });
511
+ ;// CONCATENATED MODULE: external "lodash/isEqual"
512
+ var isEqual_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
513
+ var isEqual_y = x => () => x
514
+ const isEqual_namespaceObject = isEqual_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_isEqual_ce045a54__["default"] });
515
515
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
516
516
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
517
517
  try {
@@ -621,6 +621,7 @@ function useDebouncedRef(value) {
621
621
  track();
622
622
  return innerValue;
623
623
  },
624
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
624
625
  set: function set(newValue) {
625
626
  clearTimeout(timeout);
626
627
  if (newValue === undefined || newValue === '') {
@@ -732,7 +733,6 @@ function isInViewPort(el, client) {
732
733
 
733
734
  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
735
  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
736
  /*
737
737
  * Tencent is pleased to support the open source community by making
738
738
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
@@ -894,16 +894,16 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
894
894
  "onClick": this.handleOptionClick,
895
895
  "onMouseenter": this.handleMouseEnter
896
896
  }, [this.showSelectedIcon && this.selectedStyle === shared_namespaceObject.SelectedTypeEnum.CHECKBOX && (0,external_vue_namespaceObject.createVNode)(checkbox_namespaceObject["default"], {
897
- "disabled": this.disabled,
898
897
  "class": this.resolveClassName('select-checkbox'),
898
+ "disabled": this.disabled,
899
899
  "modelValue": this.selected
900
900
  }, 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
901
  "class": this.resolveClassName('select-option-item'),
902
902
  "title": String(this.optionName)
903
903
  }, [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
904
  "width": 22,
906
- "height": 22
905
+ "height": 22,
906
+ "class": this.resolveClassName('select-selected-icon')
907
907
  }, null)]), [[external_vue_namespaceObject.vShow, this.visible]]);
908
908
  }
909
909
  }));
@@ -1054,10 +1054,6 @@ function optionGroup_objectSpread(e) { for (var r = 1; r < arguments.length; r++
1054
1054
  }, [(_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
1055
  }
1056
1056
  }));
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
1057
  ;// CONCATENATED MODULE: external "../directives"
1062
1058
  var directives_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
1063
1059
  var directives_y = x => () => x
@@ -1094,6 +1090,10 @@ const virtual_render_namespaceObject = virtual_render_x({ ["default"]: () => __W
1094
1090
  var virtual_render_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
1095
1091
  var virtual_render_less_y = x => () => x
1096
1092
  const virtual_render_less_namespaceObject = virtual_render_less_x({ });
1093
+ ;// CONCATENATED MODULE: external "lodash/merge"
1094
+ var merge_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
1095
+ var merge_y = x => () => x
1096
+ const merge_namespaceObject = merge_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_merge_cf99375a__["default"] });
1097
1097
  ;// CONCATENATED MODULE: ../../packages/select/src/pinyin/dict.js
1098
1098
  /*
1099
1099
  * Tencent is pleased to support the open source community by making
@@ -1121,8 +1121,6 @@ const virtual_render_less_namespaceObject = virtual_render_less_x({ });
1121
1121
  * IN THE SOFTWARE.
1122
1122
  */
1123
1123
 
1124
- /* eslint-disable max-len */
1125
-
1126
1124
  /**
1127
1125
  * Source: <https://android.googlesource.com/platform/packages/providers/ContactsProvider/+/0c49720fb3d58e346739c2ccd56ed2b739249e07/src/com/android/providers/contacts/HanziToPinyin.java>
1128
1126
  * Updated by creeper
@@ -2036,7 +2034,6 @@ let COLLATOR;
2036
2034
  function patchDict(patchers) {
2037
2035
  if (!patchers) return;
2038
2036
  if (typeof patchers === 'function') {
2039
- // eslint-disable-next-line no-param-reassign
2040
2037
  patchers = [patchers];
2041
2038
  }
2042
2039
  if (patchers.forEach) {
@@ -2127,7 +2124,6 @@ function genToken(ch) {
2127
2124
  }
2128
2125
 
2129
2126
  if (cmp < 0) {
2130
- // eslint-disable-next-line no-plusplus
2131
2127
  offset--;
2132
2128
  }
2133
2129
 
@@ -2296,10 +2292,6 @@ if (core.isSupported() && _56l.shouldPatch(core.genToken)) {
2296
2292
 
2297
2293
  /* harmony default export */ const pinyin = (core);
2298
2294
 
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"] });
2303
2295
  ;// CONCATENATED MODULE: external "../tag"
2304
2296
  var tag_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
2305
2297
  var tag_y = x => () => x
@@ -2308,6 +2300,10 @@ const tag_namespaceObject = tag_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE
2308
2300
  var tag_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
2309
2301
  var tag_less_y = x => () => x
2310
2302
  const tag_less_namespaceObject = tag_less_x({ });
2303
+ ;// CONCATENATED MODULE: external "lodash/debounce"
2304
+ var debounce_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
2305
+ var debounce_y = x => () => x
2306
+ const debounce_namespaceObject = debounce_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_debounce_3540babe__["default"] });
2311
2307
  ;// CONCATENATED MODULE: ../../packages/select/src/selectTagInput.tsx
2312
2308
 
2313
2309
 
@@ -2494,21 +2490,21 @@ const tag_less_namespaceObject = tag_less_x({ });
2494
2490
  display: this.selected.length && !this.filterable ? 'none' : ''
2495
2491
  };
2496
2492
  return (0,external_vue_namespaceObject.createVNode)("div", {
2497
- "class": selectTagClass,
2498
- "ref": "tagWrapperRef"
2493
+ "ref": "tagWrapperRef",
2494
+ "class": selectTagClass
2499
2495
  }, [(_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
2496
  "class": tagWrapperClass
2501
2497
  }, [(_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
2498
  var _this$select;
2503
2499
  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
- },
2509
2500
  "ref": function ref(el) {
2510
2501
  return _this.tagsRefs[index] = el;
2511
2502
  },
2503
+ "style": {
2504
+ display: _this.collapseTags && _this.overflowTagIndex && index >= _this.overflowTagIndex ? 'none' : ''
2505
+ },
2506
+ "theme": _this.tagTheme,
2507
+ "closable": true,
2512
2508
  "onClose": function onClose() {
2513
2509
  return _this.handleRemoveTag(item.value);
2514
2510
  }
@@ -2518,11 +2514,11 @@ const tag_less_namespaceObject = tag_less_x({ });
2518
2514
  }
2519
2515
  });
2520
2516
  }), (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)(tag_namespaceObject["default"], {
2521
- "class": this.resolveClassName('select-overflow-tag'),
2517
+ "ref": "collapseTagRef",
2522
2518
  "style": {
2523
2519
  display: !!this.overflowTagIndex && this.collapseTags ? '' : 'none'
2524
2520
  },
2525
- "ref": "collapseTagRef"
2521
+ "class": this.resolveClassName('select-overflow-tag')
2526
2522
  }, {
2527
2523
  "default": function _default() {
2528
2524
  return [(0,external_vue_namespaceObject.createTextVNode)("+"), _this.selected.length - _this.overflowTagIndex];
@@ -2531,13 +2527,13 @@ const tag_less_namespaceObject = tag_less_x({ });
2531
2527
  content: this.overflowContent,
2532
2528
  disabled: !this.overflowTagIndex || !this.collapseTags
2533
2529
  }]]), (0,external_vue_namespaceObject.createVNode)("input", {
2534
- "class": this.resolveClassName('select-tag-input'),
2535
2530
  "ref": "inputRef",
2536
- "type": "text",
2537
2531
  "style": inputStyle,
2532
+ "class": this.resolveClassName('select-tag-input'),
2533
+ "disabled": this.disabled,
2538
2534
  "placeholder": !this.selected.length ? this.placeholder : '',
2539
2535
  "readonly": !this.filterable,
2540
- "disabled": this.disabled,
2536
+ "type": "text",
2541
2537
  "value": !this.filterable ? '' : this.value,
2542
2538
  "onInput": this.handleInput,
2543
2539
  "onKeydown": this.handleKeydown
@@ -2554,7 +2550,6 @@ function select_unsupportedIterableToArray(o, minLen) { if (!o) return; if (type
2554
2550
  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; }
2555
2551
  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
2552
  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
2553
  /*
2559
2554
  * Tencent is pleased to support the open source community by making
2560
2555
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
@@ -2615,7 +2610,8 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
2615
2610
  loading: shared_namespaceObject.PropTypes.bool.def(false),
2616
2611
  filterable: shared_namespaceObject.PropTypes.bool.def(true),
2617
2612
  remoteMethod: shared_namespaceObject.PropTypes.func,
2618
- scrollHeight: shared_namespaceObject.PropTypes.number.def(200),
2613
+ scrollHeight: shared_namespaceObject.PropTypes.number.def(204),
2614
+ minHeight: shared_namespaceObject.PropTypes.number,
2619
2615
  showAll: shared_namespaceObject.PropTypes.bool.def(false),
2620
2616
  allOptionId: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.number, shared_namespaceObject.PropTypes.string]),
2621
2617
  showSelectAll: shared_namespaceObject.PropTypes.bool.def(false),
@@ -2694,6 +2690,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
2694
2690
  searchWithPinyin = _toRefs.searchWithPinyin,
2695
2691
  highlightKeyword = _toRefs.highlightKeyword,
2696
2692
  disableFocusBehavior = _toRefs.disableFocusBehavior;
2693
+ var virtualRenderRef = (0,external_vue_namespaceObject.ref)(null);
2697
2694
  var localNoDataText = (0,external_vue_namespaceObject.computed)(function () {
2698
2695
  if (props.noDataText === undefined) {
2699
2696
  return t.value.noData;
@@ -2736,7 +2733,6 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
2736
2733
  var contentRef = (0,external_vue_namespaceObject.ref)();
2737
2734
  var searchRef = (0,external_vue_namespaceObject.ref)();
2738
2735
  var selectTagInputRef = (0,external_vue_namespaceObject.ref)();
2739
- var virtualRenderRef = (0,external_vue_namespaceObject.ref)();
2740
2736
  var popoverRef = (0,external_vue_namespaceObject.ref)();
2741
2737
  var optionsMap = (0,external_vue_namespaceObject.ref)(new Map());
2742
2738
  var options = (0,external_vue_namespaceObject.computed)(function () {
@@ -2775,8 +2771,8 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
2775
2771
  var _popoverRef$value;
2776
2772
  (_popoverRef$value = popoverRef.value) === null || _popoverRef$value === void 0 || _popoverRef$value.updatePopover(null, popoverConfig.value);
2777
2773
  });
2778
- // 虚拟滚动模式下搜索后的值
2779
- var virtualList = (0,external_vue_namespaceObject.computed)(function () {
2774
+ // list模式下搜索后的值
2775
+ var filterList = (0,external_vue_namespaceObject.computed)(function () {
2780
2776
  return isRemoteSearch.value ? list.value : list.value.filter(function (item) {
2781
2777
  return defaultSearchMethod(curSearchValue.value, String(item[displayKey.value]), item);
2782
2778
  });
@@ -2849,12 +2845,22 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
2849
2845
  var virtualHeight = (0,external_vue_namespaceObject.computed)(function () {
2850
2846
  return scrollHeight.value - 12 - (isShowSelectAll.value ? 32 : 0);
2851
2847
  });
2848
+ var virtualLineHeight = (0,external_vue_namespaceObject.ref)(32);
2849
+ // 是否启用虚拟滚动(如果配置了启用,但是数据小于滚动高度则不开启)
2850
+ var isEnableVirtualRender = (0,external_vue_namespaceObject.computed)(function () {
2851
+ if (enableVirtualRender.value) return filterList.value.length * virtualLineHeight.value > virtualHeight.value;
2852
+ return false;
2853
+ });
2854
+ // 预加载滚动数据
2855
+ var preloadItemCount = (0,external_vue_namespaceObject.computed)(function () {
2856
+ return Math.ceil(virtualHeight.value / virtualLineHeight.value);
2857
+ });
2852
2858
  // 当前空状态时显示文案
2853
2859
  var curContentText = (0,external_vue_namespaceObject.computed)(function () {
2854
2860
  if (searchLoading.value) {
2855
2861
  return localLoadingText.value;
2856
2862
  }
2857
- if (isSearchEmpty.value || list.value.length && !virtualList.value.length) {
2863
+ if (isSearchEmpty.value || list.value.length && !filterList.value.length) {
2858
2864
  return localNoMatchText.value;
2859
2865
  }
2860
2866
  if (isOptionsEmpty.value) {
@@ -2933,6 +2939,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
2933
2939
  // 滚动到当前选中的options中
2934
2940
  var scrollActiveOptionIntoView = function scrollActiveOptionIntoView() {
2935
2941
  var _contentRef$value, _contentRef$value$que, _optionsDom$;
2942
+ if (isEnableVirtualRender.value) return;
2936
2943
  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
2944
  optionsDom === null || optionsDom === void 0 || (_optionsDom$ = optionsDom[0]) === null || _optionsDom$ === void 0 || _optionsDom$.scrollIntoView({
2938
2945
  block: 'center'
@@ -2957,10 +2964,12 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
2957
2964
  var _toLowerCase2;
2958
2965
  var filterData = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
2959
2966
  if (hasFilterOptionFunc.value) {
2967
+ // 是否配置了单个options过滤
2960
2968
  return !!filterOption.value(searchValue, select_objectSpread({}, filterData));
2961
2969
  }
2962
2970
  if (searchWithPinyin.value) {
2963
2971
  var _toLowerCase;
2972
+ // 是否配置了拼音过滤
2964
2973
  var pinyinList = pinyin.parse(optionName).map(function (v) {
2965
2974
  if (v.type === 2) {
2966
2975
  return v.target.toLowerCase();
@@ -3240,7 +3249,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3240
3249
  };
3241
3250
  }));
3242
3251
  } else {
3243
- if (modelValue.value !== undefined || allowEmptyValues.value.includes(modelValue.value)) {
3252
+ if (modelValue.value || allowEmptyValues.value.includes(modelValue.value)) {
3244
3253
  selected.value = [{
3245
3254
  value: modelValue.value,
3246
3255
  label: handleGetLabelByValue(modelValue.value)
@@ -3252,7 +3261,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3252
3261
  };
3253
3262
  // 处理键盘事件
3254
3263
  var handleDocumentKeydown = function handleDocumentKeydown(e) {
3255
- if (!isPopoverShow.value || enableVirtualRender.value) return;
3264
+ if (!isPopoverShow.value || isEnableVirtualRender.value) return;
3256
3265
  var availableOptions = options.value.filter(function (option) {
3257
3266
  return !option.disabled && option.visible;
3258
3267
  });
@@ -3310,13 +3319,6 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3310
3319
  hidePopover();
3311
3320
  handleBlur();
3312
3321
  };
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
3322
  (0,external_vue_namespaceObject.provide)(selectKey, (0,external_vue_namespaceObject.reactive)({
3321
3323
  multiple: multiple,
3322
3324
  selected: selected,
@@ -3339,6 +3341,10 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3339
3341
  autoFocus.value && focusInput();
3340
3342
  });
3341
3343
  });
3344
+ var handlePopoverShown = function handlePopoverShown() {
3345
+ var _virtualRenderRef$val;
3346
+ (_virtualRenderRef$val = virtualRenderRef.value) === null || _virtualRenderRef$val === void 0 || _virtualRenderRef$val.scrollTo(0, 1);
3347
+ };
3342
3348
  return {
3343
3349
  t: t,
3344
3350
  selected: selected,
@@ -3354,7 +3360,6 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3354
3360
  contentRef: contentRef,
3355
3361
  searchRef: searchRef,
3356
3362
  selectTagInputRef: selectTagInputRef,
3357
- virtualRenderRef: virtualRenderRef,
3358
3363
  popoverRef: popoverRef,
3359
3364
  searchLoading: searchLoading,
3360
3365
  isOptionsEmpty: isOptionsEmpty,
@@ -3369,7 +3374,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3369
3374
  isShowAll: isShowAll,
3370
3375
  isShowSelectAll: isShowSelectAll,
3371
3376
  virtualHeight: virtualHeight,
3372
- virtualList: virtualList,
3377
+ filterList: filterList,
3373
3378
  isCollapseTags: isCollapseTags,
3374
3379
  popoverConfig: popoverConfig,
3375
3380
  isAllSelected: isAllSelected,
@@ -3391,26 +3396,32 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3391
3396
  handleDeleteTag: handleDeleteTag,
3392
3397
  handleInputChange: handleInputChange,
3393
3398
  handleSelectedAllOptionMouseEnter: handleSelectedAllOptionMouseEnter,
3394
- handlePopoverShow: handlePopoverShow,
3395
3399
  localLoadingText: localLoadingText,
3396
3400
  localPlaceholder: localPlaceholder,
3397
3401
  localSearchPlaceholder: localSearchPlaceholder,
3398
3402
  localSelectAllText: localSelectAllText,
3399
3403
  resolveClassName: resolveClassName,
3400
- handleCreateCustomOption: handleCreateCustomOption
3404
+ handleCreateCustomOption: handleCreateCustomOption,
3405
+ handlePopoverShown: handlePopoverShown,
3406
+ virtualLineHeight: virtualLineHeight,
3407
+ isEnableVirtualRender: isEnableVirtualRender,
3408
+ preloadItemCount: preloadItemCount,
3409
+ virtualRenderRef: virtualRenderRef
3401
3410
  };
3402
3411
  },
3403
3412
  render: function render() {
3404
3413
  var _this = this;
3405
3414
  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));
3415
+ // 右侧ICON
3406
3416
  var suffixIcon = function suffixIcon() {
3417
+ var _this$$slots, _this$$slots2, _this$$slots2$suffix;
3407
3418
  if (_this.loading) {
3408
3419
  return (0,external_vue_namespaceObject.createVNode)(loading_namespaceObject["default"], {
3409
- "loading": true,
3410
- "theme": "primary",
3411
3420
  "class": "spinner",
3421
+ "loading": true,
3412
3422
  "mode": "spin",
3413
- "size": "mini"
3423
+ "size": "mini",
3424
+ "theme": "primary"
3414
3425
  }, null);
3415
3426
  }
3416
3427
  if (_this.clearable && _this.isHover && _this.selected.length && !_this.isDisabled) {
@@ -3419,12 +3430,14 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3419
3430
  "onClick": _this.handleClear
3420
3431
  }, null);
3421
3432
  }
3422
- return (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.AngleUp, {
3423
- "class": "angle-up"
3433
+ return (_this$$slots = _this.$slots) !== null && _this$$slots !== void 0 && _this$$slots.suffix ? (0,external_vue_namespaceObject.createVNode)("span", {
3434
+ "class": "angle-down"
3435
+ }, [(_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, {
3436
+ "class": "angle-down"
3424
3437
  }, null);
3425
3438
  };
3426
3439
  var renderPrefix = function renderPrefix() {
3427
- var _this$$slots;
3440
+ var _this$$slots3;
3428
3441
  if (_this.prefix) {
3429
3442
  return function () {
3430
3443
  return (0,external_vue_namespaceObject.createVNode)("div", {
@@ -3432,9 +3445,9 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3432
3445
  }, [(0,external_vue_namespaceObject.createVNode)("span", null, [_this.prefix])]);
3433
3446
  };
3434
3447
  }
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);
3448
+ return (_this$$slots3 = _this.$slots) !== null && _this$$slots3 !== void 0 && _this$$slots3.prefix ? function () {
3449
+ var _this$$slots4, _this$$slots4$prefix;
3450
+ 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
3451
  } : undefined;
3439
3452
  };
3440
3453
  // 全选
@@ -3442,12 +3455,12 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3442
3455
  if (!_this.isShowSelectAll) return;
3443
3456
  return (0,external_vue_namespaceObject.createVNode)("li", {
3444
3457
  "class": _this.resolveClassName('select-option'),
3445
- "onMouseenter": _this.handleSelectedAllOptionMouseEnter,
3446
- "onClick": _this.toggleSelectAll
3458
+ "onClick": _this.toggleSelectAll,
3459
+ "onMouseenter": _this.handleSelectedAllOptionMouseEnter
3447
3460
  }, [_this.selectedStyle === 'checkbox' && (0,external_vue_namespaceObject.createVNode)(checkbox_namespaceObject["default"], {
3448
3461
  "class": _this.resolveClassName('select-checkbox'),
3449
- "modelValue": _this.isAllSelected,
3450
- "indeterminate": !_this.isAllSelected && !!_this.selected.length && !_this.isAll
3462
+ "indeterminate": !_this.isAllSelected && !!_this.selected.length && !_this.isAll,
3463
+ "modelValue": _this.isAllSelected
3451
3464
  }, null), _this.t.selectAll]);
3452
3465
  };
3453
3466
  // 全部
@@ -3463,30 +3476,31 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3463
3476
  "class": "select-all-icon"
3464
3477
  }, null), (0,external_vue_namespaceObject.createVNode)("span", null, [_this.t.all])])]);
3465
3478
  };
3479
+ // 默认trigger输入框渲染
3466
3480
  var renderTriggerInput = function renderTriggerInput() {
3467
- var _this$$slots5;
3481
+ var _this$$slots7;
3468
3482
  if (_this.multipleMode === 'tag') {
3469
- var _this$$slots3;
3483
+ var _this$$slots5;
3470
3484
  return (0,external_vue_namespaceObject.createVNode)(selectTagInput, {
3471
3485
  "ref": "selectTagInputRef",
3472
3486
  "modelValue": _this.customOptionName,
3473
3487
  "onUpdate:modelValue": function onUpdateModelValue($event) {
3474
3488
  return _this.customOptionName = $event;
3475
3489
  },
3476
- "selected": _this.selected,
3477
- "tagTheme": _this.tagTheme,
3478
- "placeholder": _this.localPlaceholder,
3479
- "filterable": _this.isInput,
3480
- "disabled": _this.isDisabled,
3481
3490
  "behavior": _this.behavior,
3482
- "onRemove": _this.handleDeleteTag,
3483
3491
  "collapseTags": _this.isCollapseTags,
3484
- "onEnter": _this.handleCreateCustomOption
3492
+ "disabled": _this.isDisabled,
3493
+ "filterable": _this.isInput,
3494
+ "placeholder": _this.localPlaceholder,
3495
+ "selected": _this.selected,
3496
+ "tagTheme": _this.tagTheme,
3497
+ "onEnter": _this.handleCreateCustomOption,
3498
+ "onRemove": _this.handleDeleteTag
3485
3499
  }, {
3486
3500
  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({
3501
+ "default": ((_this$$slots5 = _this.$slots) === null || _this$$slots5 === void 0 ? void 0 : _this$$slots5.tag) && function () {
3502
+ var _this$$slots6;
3503
+ return (_this$$slots6 = _this.$slots) === null || _this$$slots6 === void 0 ? void 0 : _this$$slots6.tag({
3490
3504
  selected: _this.selected
3491
3505
  });
3492
3506
  },
@@ -3497,24 +3511,24 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3497
3511
  }
3498
3512
  return (0,external_vue_namespaceObject.createVNode)(input_namespaceObject["default"], (0,external_vue_namespaceObject.mergeProps)({
3499
3513
  "ref": "inputRef",
3500
- "type": "text",
3514
+ "behavior": _this.behavior,
3515
+ "disabled": _this.isDisabled,
3501
3516
  "modelValue": _this.isInput ? _this.customOptionName : _this.selectedLabel.join(','),
3502
3517
  "placeholder": _this.isInput ? _this.selectedLabel.join(',') || _this.localPlaceholder : _this.localPlaceholder,
3503
3518
  "readonly": !_this.isInput,
3504
3519
  "selectReadonly": true,
3505
- "disabled": _this.isDisabled,
3506
- "behavior": _this.behavior,
3507
3520
  "size": _this.size,
3508
- "withValidate": false,
3509
3521
  "stopPropagation": false,
3510
- "onInput": _this.handleInputChange,
3511
- "onEnter": _this.handleCreateCustomOption
3522
+ "type": "text",
3523
+ "withValidate": false,
3524
+ "onEnter": _this.handleCreateCustomOption,
3525
+ "onInput": _this.handleInputChange
3512
3526
  }, _this.prefix ? {
3513
3527
  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' ? {
3528
+ } : null), select_objectSpread(select_objectSpread({}, typeof ((_this$$slots7 = _this.$slots) === null || _this$$slots7 === void 0 ? void 0 : _this$$slots7.prefix) === 'function' ? {
3515
3529
  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);
3530
+ var _this$$slots8, _this$$slots8$prefix;
3531
+ return (_this$$slots8 = _this.$slots) === null || _this$$slots8 === void 0 || (_this$$slots8$prefix = _this$$slots8.prefix) === null || _this$$slots8$prefix === void 0 ? void 0 : _this$$slots8$prefix.call(_this$$slots8);
3518
3532
  }
3519
3533
  } : null), {}, {
3520
3534
  suffix: function suffix() {
@@ -3522,71 +3536,43 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3522
3536
  }
3523
3537
  }));
3524
3538
  };
3539
+ // 渲染trigger
3525
3540
  var renderSelectTrigger = function renderSelectTrigger() {
3526
- var _this$$slots7, _this$$slots7$trigger;
3541
+ var _this$$slots9, _this$$slots9$trigger;
3527
3542
  return (0,external_vue_namespaceObject.createVNode)("div", {
3528
- "class": _this.resolveClassName('select-trigger'),
3543
+ "ref": "triggerRef",
3529
3544
  "style": {
3530
3545
  height: _this.autoHeight && _this.collapseTags ? '32px' : ''
3531
3546
  },
3532
- "ref": "triggerRef",
3547
+ "class": _this.resolveClassName('select-trigger'),
3533
3548
  "onClick": _this.handleTogglePopover,
3534
3549
  "onMouseenter": _this.setHover,
3535
3550
  "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, {
3551
+ }, [((_this$$slots9 = _this.$slots) === null || _this$$slots9 === void 0 || (_this$$slots9$trigger = _this$$slots9.trigger) === null || _this$$slots9$trigger === void 0 ? void 0 : _this$$slots9$trigger.call(_this$$slots9, {
3537
3552
  selected: _this.selected
3538
3553
  })) || renderTriggerInput()]);
3539
3554
  };
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,
3555
+ // 渲染列表模式
3556
+ var renderList = function renderList() {
3557
+ return _this.isEnableVirtualRender ? (0,external_vue_namespaceObject.createVNode)(virtual_render_namespaceObject["default"], {
3558
+ "ref": "virtualRenderRef",
3578
3559
  "height": _this.virtualHeight,
3579
- "lineHeight": 32,
3580
- "ref": "virtualRenderRef"
3560
+ "lineHeight": _this.virtualLineHeight,
3561
+ "list": _this.filterList,
3562
+ "preloadItemCount": _this.preloadItemCount,
3563
+ "scrollbar": {
3564
+ enabled: true,
3565
+ size: 'small'
3566
+ }
3581
3567
  }, {
3582
3568
  "default": function _default(_ref3) {
3583
- var _this$$slots8, _this$$slots9;
3569
+ var _this$$slots10, _this$$slots11;
3584
3570
  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);
3571
+ var optionRender = ((_this$$slots10 = _this.$slots) === null || _this$$slots10 === void 0 ? void 0 : _this$$slots10.optionRender) || ((_this$$slots11 = _this.$slots) === null || _this$$slots11 === void 0 ? void 0 : _this$$slots11.virtualScrollRender);
3586
3572
  return data.map(function (item) {
3587
3573
  return (0,external_vue_namespaceObject.createVNode)(src_option, {
3588
- "key": item[_this.idKey],
3589
3574
  "id": item[_this.idKey],
3575
+ "key": item[_this.idKey],
3590
3576
  "name": item[_this.displayKey]
3591
3577
  }, typeof optionRender === 'function' ? {
3592
3578
  "default": function _default() {
@@ -3597,38 +3583,78 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3597
3583
  } : null);
3598
3584
  });
3599
3585
  }
3600
- }) : _this.list.map(function (item) {
3601
- var _this$$slots10;
3586
+ }) : _this.filterList.map(function (item) {
3587
+ var _this$$slots12;
3602
3588
  return (0,external_vue_namespaceObject.createVNode)(src_option, {
3603
- "key": item[_this.idKey],
3604
3589
  "id": item[_this.idKey],
3590
+ "key": item[_this.idKey],
3605
3591
  "name": item[_this.displayKey]
3606
- }, (_this$$slots10 = _this.$slots) !== null && _this$$slots10 !== void 0 && _this$$slots10.optionRender ? {
3592
+ }, (_this$$slots12 = _this.$slots) !== null && _this$$slots12 !== void 0 && _this$$slots12.optionRender ? {
3607
3593
  "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, {
3594
+ var _this$$slots13, _this$$slots13$option;
3595
+ return (_this$$slots13 = _this.$slots) === null || _this$$slots13 === void 0 || (_this$$slots13$option = _this$$slots13.optionRender) === null || _this$$slots13$option === void 0 ? void 0 : _this$$slots13$option.call(_this$$slots13, {
3610
3596
  item: item
3611
3597
  });
3612
3598
  }
3613
3599
  } : 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", {
3600
+ });
3601
+ };
3602
+ // 渲染内容
3603
+ var renderSelectContent = function renderSelectContent() {
3604
+ var _this$$slots14, _this$$slots14$defaul, _this$$slots15, _this$$slots16;
3605
+ return (0,external_vue_namespaceObject.createVNode)("div", {
3606
+ "ref": "contentRef",
3607
+ "class": _this.resolveClassName('select-content-wrapper')
3608
+ }, [renderAll(), _this.filterable && !_this.inputSearch && (0,external_vue_namespaceObject.createVNode)("div", {
3609
+ "class": _this.resolveClassName('select-search-wrapper')
3610
+ }, [(0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Search, {
3611
+ "width": 16,
3612
+ "height": 16,
3613
+ "class": "icon-search"
3614
+ }, null), (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("input", {
3615
+ "ref": "searchRef",
3616
+ "class": _this.resolveClassName('select-search-input'),
3617
+ "onUpdate:modelValue": function onUpdateModelValue($event) {
3618
+ return _this.searchValue = $event;
3619
+ },
3620
+ "placeholder": _this.localSearchPlaceholder
3621
+ }, null), [[external_vue_namespaceObject.vModelText, _this.searchValue]])]), !_this.isShowSelectContent && (0,external_vue_namespaceObject.createVNode)("div", {
3622
+ "class": _this.resolveClassName('select-empty')
3623
+ }, [_this.searchLoading && (0,external_vue_namespaceObject.createVNode)(loading_namespaceObject["default"], {
3624
+ "class": "mr5",
3625
+ "loading": true,
3626
+ "mode": "spin",
3627
+ "size": "mini",
3628
+ "theme": "primary"
3629
+ }, null), (0,external_vue_namespaceObject.createVNode)("span", null, [_this.curContentText])]), (0,external_vue_namespaceObject.createVNode)("div", {
3630
+ "class": _this.resolveClassName('select-content')
3631
+ }, [(0,external_vue_namespaceObject.createVNode)("div", {
3632
+ "style": {
3633
+ maxHeight: "".concat(_this.scrollHeight, "px"),
3634
+ minHeight: "".concat(_this.minHeight, "px")
3635
+ },
3636
+ "class": _this.isEnableVirtualRender ? '' : _this.resolveClassName('select-dropdown'),
3637
+ "onScroll": _this.handleScroll
3638
+ }, [(0,external_vue_namespaceObject.createVNode)("ul", {
3639
+ "class": _this.resolveClassName('select-options')
3640
+ }, [renderSelectAll(), renderList(), (_this$$slots14 = _this.$slots) === null || _this$$slots14 === void 0 || (_this$$slots14$defaul = _this$$slots14["default"]) === null || _this$$slots14$defaul === void 0 ? void 0 : _this$$slots14$defaul.call(_this$$slots14), _this.scrollLoading && (0,external_vue_namespaceObject.createVNode)("li", {
3615
3641
  "class": _this.resolveClassName('select-options-loading')
3616
3642
  }, [(0,external_vue_namespaceObject.createVNode)(loading_namespaceObject["default"], {
3617
3643
  "class": "spinner mr5",
3618
- "theme": "primary",
3619
3644
  "loading": true,
3620
3645
  "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", {
3646
+ "size": "mini",
3647
+ "theme": "primary"
3648
+ }, null), (0,external_vue_namespaceObject.createVNode)("span", null, [_this.localLoadingText])])])]), ((_this$$slots15 = _this.$slots) === null || _this$$slots15 === void 0 ? void 0 : _this$$slots15.extension) && (0,external_vue_namespaceObject.createVNode)("div", {
3623
3649
  "class": _this.resolveClassName('select-extension')
3624
- }, [(_this$$slots14 = _this.$slots) === null || _this$$slots14 === void 0 ? void 0 : _this$$slots14.extension()])])]);
3650
+ }, [(_this$$slots16 = _this.$slots) === null || _this$$slots16 === void 0 ? void 0 : _this$$slots16.extension()])])]);
3625
3651
  };
3626
3652
  return (0,external_vue_namespaceObject.createVNode)("div", {
3627
3653
  "class": selectClass
3628
3654
  }, [(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"
3655
+ "ref": "popoverRef",
3656
+ "onAfterShow": this.handlePopoverShown,
3657
+ "onClickoutside": this.handleClickOutside
3632
3658
  }), {
3633
3659
  "default": function _default() {
3634
3660
  return renderSelectTrigger();