bkui-vue 2.0.1-beta.60.fix.1 → 2.0.1-beta.62

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 (324) hide show
  1. package/README.md +15 -0
  2. package/dist/index.cjs.js +57 -57
  3. package/dist/index.esm.js +18238 -17775
  4. package/dist/index.umd.js +58 -58
  5. package/dist/style.css +1 -1
  6. package/dist/style.variable.css +1 -1
  7. package/lib/affix/affix.css +130 -0
  8. package/lib/affix/affix.variable.css +262 -1
  9. package/lib/alert/alert.css +133 -3
  10. package/lib/alert/alert.d.ts +0 -7
  11. package/lib/alert/alert.variable.css +262 -1
  12. package/lib/alert/index.d.ts +0 -15
  13. package/lib/alert/index.js +6 -6
  14. package/lib/backtop/backtop.css +133 -3
  15. package/lib/backtop/backtop.variable.css +395 -4
  16. package/lib/badge/badge.css +156 -26
  17. package/lib/badge/badge.variable.css +262 -1
  18. package/lib/breadcrumb/breadcrumb.css +135 -5
  19. package/lib/breadcrumb/breadcrumb.variable.css +397 -6
  20. package/lib/button/button.css +273 -143
  21. package/lib/button/button.variable.css +262 -1
  22. package/lib/card/card.css +134 -4
  23. package/lib/card/card.variable.css +396 -5
  24. package/lib/cascader/cascader.css +153 -23
  25. package/lib/cascader/cascader.variable.css +415 -24
  26. package/lib/cascader/index.js +7 -6
  27. package/lib/checkbox/checkbox-group.d.ts +0 -16
  28. package/lib/checkbox/checkbox.css +147 -9
  29. package/lib/checkbox/checkbox.d.ts +32 -0
  30. package/lib/checkbox/checkbox.less +12 -0
  31. package/lib/checkbox/checkbox.variable.css +270 -1
  32. package/lib/checkbox/index.d.ts +46 -11
  33. package/lib/checkbox/index.js +9 -4
  34. package/lib/code-diff/code-diff.css +130 -0
  35. package/lib/code-diff/code-diff.variable.css +262 -1
  36. package/lib/collapse/collapse.css +131 -1
  37. package/lib/collapse/collapse.variable.css +262 -1
  38. package/lib/collapse-transition/collapse-transition.css +130 -0
  39. package/lib/collapse-transition/collapse-transition.variable.css +262 -1
  40. package/lib/color-picker/color-picker.css +130 -0
  41. package/lib/color-picker/color-picker.variable.css +262 -1
  42. package/lib/config-provider/config-provider.css +130 -0
  43. package/lib/config-provider/config-provider.variable.css +262 -1
  44. package/lib/container/container.css +130 -0
  45. package/lib/container/container.variable.css +392 -1
  46. package/lib/date-picker/date-picker.css +147 -17
  47. package/lib/date-picker/date-picker.d.ts +0 -9
  48. package/lib/date-picker/date-picker.variable.css +262 -1
  49. package/lib/date-picker/index.d.ts +0 -19
  50. package/lib/date-picker/index.js +29 -17
  51. package/lib/date-picker/panel/time-range.d.ts +0 -9
  52. package/lib/date-picker/panel/time.d.ts +1 -10
  53. package/lib/date-picker/props.d.ts +0 -4
  54. package/lib/date-picker/time-picker.d.ts +0 -9
  55. package/lib/dialog/dialog.css +138 -8
  56. package/lib/dialog/dialog.d.ts +16 -5
  57. package/lib/dialog/dialog.variable.css +400 -9
  58. package/lib/dialog/index.d.ts +34 -11
  59. package/lib/dialog/props.d.ts +7 -2
  60. package/lib/directives/index.js +12 -6
  61. package/lib/divider/divider.css +133 -3
  62. package/lib/divider/divider.variable.css +262 -1
  63. package/lib/dropdown/dropdown-item.d.ts +1 -1
  64. package/lib/dropdown/dropdown-menu.d.ts +1 -1
  65. package/lib/dropdown/dropdown.css +130 -0
  66. package/lib/dropdown/dropdown.variable.css +392 -1
  67. package/lib/dropdown/index.d.ts +2 -2
  68. package/lib/exception/exception.css +130 -0
  69. package/lib/exception/exception.variable.css +262 -1
  70. package/lib/fixed-navbar/fixed-navbar.css +134 -4
  71. package/lib/fixed-navbar/fixed-navbar.variable.css +262 -1
  72. package/lib/form/form-item.d.ts +6 -18
  73. package/lib/form/form.css +130 -0
  74. package/lib/form/form.variable.css +262 -1
  75. package/lib/form/index.d.ts +6 -13
  76. package/lib/form/index.js +8 -6
  77. package/lib/image/image-viewer.css +130 -0
  78. package/lib/image/image-viewer.variable.css +262 -1
  79. package/lib/image/image.css +130 -0
  80. package/lib/image/image.variable.css +392 -1
  81. package/lib/index.js +1 -1
  82. package/lib/info-box/index.js +3 -5
  83. package/lib/info-box/info-box.css +134 -4
  84. package/lib/info-box/info-box.variable.css +262 -1
  85. package/lib/input/index.js +37 -10
  86. package/lib/input/input.css +221 -72
  87. package/lib/input/input.less +26 -0
  88. package/lib/input/input.variable.css +483 -73
  89. package/lib/link/link.css +146 -16
  90. package/lib/link/link.variable.css +262 -1
  91. package/lib/loading/loading.css +146 -16
  92. package/lib/loading/loading.variable.css +408 -17
  93. package/lib/menu/menu.css +148 -18
  94. package/lib/menu/menu.variable.css +410 -19
  95. package/lib/menu/submenu.css +130 -0
  96. package/lib/menu/submenu.variable.css +262 -1
  97. package/lib/message/message.css +153 -22
  98. package/lib/message/message.less +3 -2
  99. package/lib/message/message.variable.css +264 -2
  100. package/lib/modal/index.d.ts +41 -13
  101. package/lib/modal/index.js +33 -18
  102. package/lib/modal/modal.css +134 -4
  103. package/lib/modal/modal.d.ts +16 -5
  104. package/lib/modal/modal.variable.css +396 -5
  105. package/lib/modal/props.mixin.d.ts +7 -2
  106. package/lib/navigation/navigation.css +132 -2
  107. package/lib/navigation/navigation.variable.css +262 -1
  108. package/lib/notify/notify.css +137 -7
  109. package/lib/notify/notify.variable.css +262 -1
  110. package/lib/overflow-title/components/overflow-title.d.ts +0 -7
  111. package/lib/overflow-title/index.d.ts +0 -15
  112. package/lib/overflow-title/index.js +0 -1
  113. package/lib/overflow-title/props.d.ts +0 -3
  114. package/lib/pagination/index.d.ts +0 -19
  115. package/lib/pagination/index.js +47 -9
  116. package/lib/pagination/pagination.css +139 -9
  117. package/lib/pagination/pagination.d.ts +0 -13
  118. package/lib/pagination/pagination.less +14 -13
  119. package/lib/pagination/pagination.variable.css +270 -9
  120. package/lib/pop-confirm/index.d.ts +0 -32
  121. package/lib/pop-confirm/index.js +16 -18
  122. package/lib/pop-confirm/pop-confirm.css +133 -1
  123. package/lib/pop-confirm/pop-confirm.d.ts +0 -14
  124. package/lib/pop-confirm/pop-confirm.less +3 -1
  125. package/lib/pop-confirm/pop-confirm.variable.css +265 -2
  126. package/lib/pop-confirm/props.d.ts +1 -7
  127. package/lib/popover/popover.css +130 -0
  128. package/lib/popover/popover.variable.css +262 -1
  129. package/lib/process/process.css +143 -13
  130. package/lib/process/process.variable.css +262 -1
  131. package/lib/progress/progress.css +134 -4
  132. package/lib/progress/progress.variable.css +396 -5
  133. package/lib/radio/index.d.ts +21 -21
  134. package/lib/radio/radio-button.d.ts +7 -7
  135. package/lib/radio/radio-group.d.ts +7 -7
  136. package/lib/radio/radio.css +172 -42
  137. package/lib/radio/radio.d.ts +7 -7
  138. package/lib/radio/radio.variable.css +262 -1
  139. package/lib/rate/rate.css +130 -0
  140. package/lib/rate/rate.variable.css +262 -1
  141. package/lib/resize-layout/resize-layout.css +130 -0
  142. package/lib/resize-layout/resize-layout.variable.css +262 -1
  143. package/lib/scrollbar/css/scrollbar.css +239 -0
  144. package/lib/scrollbar/css/scrollbar.less +139 -0
  145. package/lib/scrollbar/css/scrollbar.variable.css +499 -0
  146. package/lib/scrollbar/handlers/click-rail.d.ts +2 -0
  147. package/lib/scrollbar/handlers/drag-thumb.d.ts +1 -0
  148. package/lib/scrollbar/handlers/keyboard.d.ts +2 -0
  149. package/lib/scrollbar/handlers/mouse-wheel.d.ts +2 -0
  150. package/lib/scrollbar/handlers/touch.d.ts +4 -0
  151. package/lib/scrollbar/helper/class-names.d.ts +21 -0
  152. package/lib/scrollbar/helper/css.d.ts +3 -0
  153. package/lib/scrollbar/helper/dom.d.ts +4 -0
  154. package/lib/scrollbar/helper/event-manager.d.ts +20 -0
  155. package/lib/scrollbar/helper/util.d.ts +11 -0
  156. package/lib/scrollbar/index.d.ts +133 -13
  157. package/lib/scrollbar/index.js +1332 -18433
  158. package/lib/scrollbar/process-scroll-diff.d.ts +1 -0
  159. package/lib/scrollbar/update-geometry.d.ts +8 -0
  160. package/lib/search-select/index.d.ts +40 -72
  161. package/lib/search-select/index.js +85 -67
  162. package/lib/search-select/input.d.ts +5 -4
  163. package/lib/search-select/search-select.css +163 -33
  164. package/lib/search-select/search-select.d.ts +15 -39
  165. package/lib/search-select/search-select.variable.css +425 -34
  166. package/lib/search-select/selected.d.ts +11 -9
  167. package/lib/search-select/utils.d.ts +3 -3
  168. package/lib/select/common.d.ts +3 -3
  169. package/lib/select/index.d.ts +32 -4
  170. package/lib/select/index.js +128 -66
  171. package/lib/select/option.d.ts +4 -5
  172. package/lib/select/select.css +175 -43
  173. package/lib/select/select.d.ts +12 -0
  174. package/lib/select/select.less +7 -4
  175. package/lib/select/select.variable.css +437 -44
  176. package/lib/select/type.d.ts +9 -10
  177. package/lib/shared/frame-throttle.d.ts +15 -0
  178. package/lib/shared/index.d.ts +1 -0
  179. package/lib/shared/index.js +72 -1
  180. package/lib/sideslider/index.d.ts +34 -11
  181. package/lib/sideslider/index.js +1 -0
  182. package/lib/sideslider/sideslider.css +138 -9
  183. package/lib/sideslider/sideslider.d.ts +16 -5
  184. package/lib/sideslider/sideslider.less +7 -8
  185. package/lib/sideslider/sideslider.variable.css +269 -9
  186. package/lib/slider/slider.css +135 -5
  187. package/lib/slider/slider.variable.css +262 -1
  188. package/lib/steps/index.d.ts +3 -18
  189. package/lib/steps/index.js +0 -1
  190. package/lib/steps/steps.css +168 -38
  191. package/lib/steps/steps.d.ts +1 -11
  192. package/lib/steps/steps.variable.css +262 -1
  193. package/lib/styles/index.d.ts +1 -0
  194. package/lib/styles/mixins/animate.css +130 -0
  195. package/lib/styles/mixins/animate.variable.css +262 -1
  196. package/lib/styles/mixins/mixins.css +130 -0
  197. package/lib/styles/mixins/mixins.variable.css +130 -0
  198. package/lib/styles/mixins/popper.css +130 -0
  199. package/lib/styles/mixins/popper.variable.css +262 -1
  200. package/lib/styles/mixins/scroll.css +130 -0
  201. package/lib/styles/mixins/scroll.variable.css +262 -1
  202. package/lib/styles/reset.css +130 -0
  203. package/lib/styles/reset.variable.css +262 -1
  204. package/lib/{scrollbar/scrollbar.variable.css → styles/themes/themes.css} +2 -76
  205. package/lib/styles/themes/themes.less +299 -129
  206. package/lib/styles/themes/themes.variable.css +130 -0
  207. package/lib/swiper/swiper.css +130 -0
  208. package/lib/swiper/swiper.variable.css +262 -1
  209. package/lib/switcher/switcher.css +147 -17
  210. package/lib/switcher/switcher.variable.css +409 -18
  211. package/lib/tab/index.d.ts +22 -92
  212. package/lib/tab/index.js +33 -24
  213. package/lib/tab/props.d.ts +10 -35
  214. package/lib/tab/tab-nav.d.ts +14 -47
  215. package/lib/tab/tab-panel.d.ts +22 -0
  216. package/lib/tab/tab.css +211 -17
  217. package/lib/tab/tab.d.ts +0 -44
  218. package/lib/tab/tab.less +91 -4
  219. package/lib/tab/tab.variable.css +326 -1
  220. package/lib/table/components/ghost-body.d.ts +2 -0
  221. package/lib/table/components/table-cell.d.ts +22 -0
  222. package/lib/table/components/table-column.d.ts +1 -44
  223. package/lib/table/const.d.ts +15 -2
  224. package/lib/table/events.d.ts +2 -98
  225. package/lib/table/hooks/use-cell.d.ts +20 -0
  226. package/lib/table/hooks/use-column-resize.d.ts +7 -0
  227. package/lib/table/hooks/use-column-template.d.ts +5 -0
  228. package/lib/table/hooks/use-columns.d.ts +69 -0
  229. package/lib/table/{plugins → hooks}/use-draggable.d.ts +2 -2
  230. package/lib/table/hooks/use-fixed-column.d.ts +10 -0
  231. package/lib/table/hooks/use-head.d.ts +16 -0
  232. package/lib/table/hooks/use-layout.d.ts +25 -0
  233. package/lib/table/hooks/use-pagination.d.ts +16 -0
  234. package/lib/table/hooks/use-render.d.ts +21 -0
  235. package/lib/table/hooks/use-rows.d.ts +30 -0
  236. package/lib/table/hooks/use-settings.d.ts +134 -0
  237. package/lib/table/{plugins → hooks}/use-shift-key.d.ts +4 -2
  238. package/lib/table/index.d.ts +89 -561
  239. package/lib/table/index.js +4024 -3539
  240. package/lib/table/plugins/head-filter.css +131 -0
  241. package/lib/table/plugins/head-filter.d.ts +2 -1
  242. package/lib/table/plugins/head-filter.less +1 -0
  243. package/lib/table/plugins/head-filter.variable.css +263 -1
  244. package/lib/table/plugins/head-sort.css +130 -0
  245. package/lib/table/plugins/head-sort.variable.css +262 -1
  246. package/lib/table/plugins/settings.css +131 -0
  247. package/lib/table/plugins/settings.less +1 -0
  248. package/lib/table/plugins/settings.variable.css +263 -1
  249. package/lib/table/props.d.ts +92 -30
  250. package/lib/table/table.css +597 -327
  251. package/lib/table/table.d.ts +47 -181
  252. package/lib/table/table.less +228 -101
  253. package/lib/table/table.variable.css +859 -328
  254. package/lib/table/utils.d.ts +45 -18
  255. package/lib/table-column/index.d.ts +3 -132
  256. package/lib/table-column/index.js +17367 -28
  257. package/lib/tag/index.js +0 -1
  258. package/lib/tag/tag.css +136 -6
  259. package/lib/tag/tag.less +1 -1
  260. package/lib/tag/tag.variable.css +263 -2
  261. package/lib/tag-input/index.js +4 -2
  262. package/lib/tag-input/tag-input.css +148 -18
  263. package/lib/tag-input/tag-input.variable.css +262 -1
  264. package/lib/time-picker/index.d.ts +0 -19
  265. package/lib/time-picker/time-picker.css +130 -0
  266. package/lib/time-picker/time-picker.variable.css +262 -1
  267. package/lib/timeline/timeline.css +149 -19
  268. package/lib/timeline/timeline.variable.css +262 -1
  269. package/lib/transfer/transfer.css +149 -19
  270. package/lib/transfer/transfer.variable.css +262 -1
  271. package/lib/tree/constant.d.ts +3 -1
  272. package/lib/tree/index.d.ts +21 -7
  273. package/lib/tree/index.js +61 -18
  274. package/lib/tree/props.d.ts +12 -5
  275. package/lib/tree/tree.css +242 -78
  276. package/lib/tree/tree.d.ts +9 -3
  277. package/lib/tree/tree.variable.css +504 -79
  278. package/lib/tree/use-node-action.d.ts +10 -9
  279. package/lib/tree/use-node-async.d.ts +2 -1
  280. package/lib/tree/use-node-attribute.d.ts +42 -34
  281. package/lib/tree/use-search.d.ts +1 -1
  282. package/lib/tree/use-tree-init.d.ts +8 -5
  283. package/lib/tree/util.d.ts +21 -21
  284. package/lib/upload/index.d.ts +27 -4
  285. package/lib/upload/index.js +30 -7
  286. package/lib/upload/props.d.ts +7 -2
  287. package/lib/upload/upload.css +157 -27
  288. package/lib/upload/upload.d.ts +13 -2
  289. package/lib/upload/upload.type.d.ts +6 -0
  290. package/lib/upload/upload.variable.css +419 -28
  291. package/lib/virtual-render/index.d.ts +12 -46
  292. package/lib/virtual-render/index.js +17468 -147
  293. package/lib/virtual-render/props.d.ts +2 -9
  294. package/lib/virtual-render/use-fix-top.d.ts +1 -1
  295. package/lib/virtual-render/use-scrollbar.d.ts +4 -17
  296. package/lib/virtual-render/v-virtual-render.d.ts +7 -1
  297. package/lib/virtual-render/virtual-render.css +225 -69
  298. package/lib/virtual-render/virtual-render.d.ts +6 -22
  299. package/lib/virtual-render/virtual-render.less +2 -11
  300. package/lib/virtual-render/virtual-render.variable.css +487 -70
  301. package/lib/volar.components.d.ts +2 -0
  302. package/package.json +1 -1
  303. package/lib/scrollbar/scrollbar-core/can-use-dom.d.ts +0 -2
  304. package/lib/scrollbar/scrollbar-core/helpers.d.ts +0 -5
  305. package/lib/scrollbar/scrollbar-core/index.d.ts +0 -241
  306. package/lib/scrollbar/scrollbar-core/mouse-wheel.d.ts +0 -5
  307. package/lib/scrollbar/scrollbar-core/scrollbar-width.d.ts +0 -1
  308. package/lib/scrollbar/scrollbar.css +0 -75
  309. package/lib/scrollbar/scrollbar.less +0 -94
  310. package/lib/table/plugins/col-group.d.ts +0 -38
  311. package/lib/table/plugins/settings.d.ts +0 -16
  312. package/lib/table/plugins/use-active-columns.d.ts +0 -16
  313. package/lib/table/plugins/use-column-resize.d.ts +0 -35
  314. package/lib/table/plugins/use-column-template.d.ts +0 -7
  315. package/lib/table/plugins/use-fixed-column.d.ts +0 -27
  316. package/lib/table/plugins/use-head-cell.d.ts +0 -7
  317. package/lib/table/plugins/use-pagination.d.ts +0 -23
  318. package/lib/table/use-attributes.d.ts +0 -62
  319. package/lib/table/use-column.d.ts +0 -155
  320. package/lib/table/use-common.d.ts +0 -1679
  321. package/lib/table/use-render.d.ts +0 -11
  322. /package/lib/table/{plugins → components}/body-empty.d.ts +0 -0
  323. /package/lib/table/{plugins → hooks}/use-observer-resize.d.ts +0 -0
  324. /package/lib/table/{plugins → hooks}/use-scroll-loading.d.ts +0 -0
@@ -17,6 +17,7 @@ import "../popover/popover.less";
17
17
  import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_virtual_render_927587a8__ from "../virtual-render";
18
18
  import "../virtual-render/virtual-render.less";
19
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";
20
21
  import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_tag_d74826be__ from "../tag";
21
22
  import "../tag/tag.less";
22
23
  import * as __WEBPACK_EXTERNAL_MODULE_lodash_debounce_3540babe__ from "lodash/debounce";
@@ -507,7 +508,7 @@ const config_provider_namespaceObject = config_provider_x({ ["useLocale"]: () =>
507
508
  ;// CONCATENATED MODULE: external "../icon"
508
509
  var icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
509
510
  var icon_y = x => () => x
510
- 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 });
511
512
  ;// CONCATENATED MODULE: external "lodash/isEqual"
512
513
  var isEqual_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
513
514
  var isEqual_y = x => () => x
@@ -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,
@@ -770,7 +772,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
770
772
  name: 'Option',
771
773
  props: {
772
774
  id: {
773
- type: [String, Number, Object],
775
+ type: [String, Number],
774
776
  require: true
775
777
  },
776
778
  name: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.number, shared_namespaceObject.PropTypes.string]),
@@ -779,6 +781,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
779
781
  },
780
782
  setup: function setup(props, _ref) {
781
783
  var attrs = _ref.attrs;
784
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
782
785
  var _getCurrentInstance = (0,external_vue_namespaceObject.getCurrentInstance)(),
783
786
  proxy = _getCurrentInstance.proxy;
784
787
  var states = (0,external_vue_namespaceObject.reactive)({
@@ -860,8 +863,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
860
863
  group === null || group === void 0 || group.register(optionID.value, proxy);
861
864
  });
862
865
  (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);
866
+ select === null || select === void 0 || select.unregister(optionID.value, proxy);
867
+ group === null || group === void 0 || group.unregister(optionID.value, proxy);
865
868
  });
866
869
  var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
867
870
  resolveClassName = _usePrefix.resolveClassName;
@@ -2292,6 +2295,10 @@ if (core.isSupported() && _56l.shouldPatch(core.genToken)) {
2292
2295
 
2293
2296
  /* harmony default export */ const pinyin = (core);
2294
2297
 
2298
+ ;// CONCATENATED MODULE: external "../overflow-title"
2299
+ var overflow_title_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
2300
+ var overflow_title_y = x => () => x
2301
+ const overflow_title_namespaceObject = overflow_title_x({ ["OverflowTitle"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_overflow_title_051a85a5__.OverflowTitle });
2295
2302
  ;// CONCATENATED MODULE: external "../tag"
2296
2303
  var tag_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
2297
2304
  var tag_y = x => () => x
@@ -2340,6 +2347,7 @@ const debounce_namespaceObject = debounce_x({ ["default"]: () => __WEBPACK_EXTER
2340
2347
 
2341
2348
 
2342
2349
 
2350
+
2343
2351
  /* harmony default export */ const selectTagInput = ((0,external_vue_namespaceObject.defineComponent)({
2344
2352
  name: 'SelectTagInput',
2345
2353
  directives: {
@@ -2376,7 +2384,7 @@ const debounce_namespaceObject = debounce_x({ ["default"]: () => __WEBPACK_EXTER
2376
2384
  var overflowTagIndex = (0,external_vue_namespaceObject.ref)(null);
2377
2385
  var overflowContent = (0,external_vue_namespaceObject.computed)(function () {
2378
2386
  return selected.value.slice(overflowTagIndex.value, selected.value.length).map(function (item) {
2379
- return item.label;
2387
+ return select === null || select === void 0 ? void 0 : select.handleGetLabelByValue(item.value);
2380
2388
  }).join(', ');
2381
2389
  });
2382
2390
  (0,external_vue_namespaceObject.watch)(modelValue, function () {
@@ -2481,8 +2489,8 @@ const debounce_namespaceObject = debounce_x({ ["default"]: () => __WEBPACK_EXTER
2481
2489
  _this$$slots$default2,
2482
2490
  _this$$slots3,
2483
2491
  _this = this,
2484
- _this$$slots4,
2485
- _this$$slots4$suffix;
2492
+ _this$$slots5,
2493
+ _this$$slots5$suffix;
2486
2494
  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);
2487
2495
  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'));
2488
2496
  var tagWrapperClass = (0,shared_namespaceObject.classes)(_defineProperty({}, this.resolveClassName('select-tag-wrapper'), true));
@@ -2495,7 +2503,7 @@ const debounce_namespaceObject = debounce_x({ ["default"]: () => __WEBPACK_EXTER
2495
2503
  }, [(_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", {
2496
2504
  "class": tagWrapperClass
2497
2505
  }, [(_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) {
2498
- var _this$select;
2506
+ var _this$$slots$tagRende, _this$$slots$tagRende2, _this$$slots4, _this$select;
2499
2507
  return (0,external_vue_namespaceObject.createVNode)(tag_namespaceObject["default"], {
2500
2508
  "ref": function ref(el) {
2501
2509
  return _this.tagsRefs[index] = el;
@@ -2510,7 +2518,13 @@ const debounce_namespaceObject = debounce_x({ ["default"]: () => __WEBPACK_EXTER
2510
2518
  }
2511
2519
  }, {
2512
2520
  "default": function _default() {
2513
- return [(_this$select = _this.select) === null || _this$select === void 0 ? void 0 : _this$select.handleGetLabelByValue(item.value)];
2521
+ 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, {
2522
+ "type": "tips"
2523
+ }, {
2524
+ "default": function _default() {
2525
+ return [(_this$select = _this.select) === null || _this$select === void 0 ? void 0 : _this$select.handleGetLabelByValue(item.value)];
2526
+ }
2527
+ })];
2514
2528
  }
2515
2529
  });
2516
2530
  }), (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)(tag_namespaceObject["default"], {
@@ -2525,7 +2539,8 @@ const debounce_namespaceObject = debounce_x({ ["default"]: () => __WEBPACK_EXTER
2525
2539
  }
2526
2540
  }), [[(0,external_vue_namespaceObject.resolveDirective)("bk-tooltips"), {
2527
2541
  content: this.overflowContent,
2528
- disabled: !this.overflowTagIndex || !this.collapseTags
2542
+ disabled: !this.overflowTagIndex || !this.collapseTags,
2543
+ extCls: this.resolveClassName('select-tooltips')
2529
2544
  }]]), (0,external_vue_namespaceObject.createVNode)("input", {
2530
2545
  "ref": "inputRef",
2531
2546
  "style": inputStyle,
@@ -2537,7 +2552,7 @@ const debounce_namespaceObject = debounce_x({ ["default"]: () => __WEBPACK_EXTER
2537
2552
  "value": !this.filterable ? '' : this.value,
2538
2553
  "onInput": this.handleInput,
2539
2554
  "onKeydown": this.handleKeydown
2540
- }, 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)]);
2555
+ }, 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)]);
2541
2556
  }
2542
2557
  }));
2543
2558
  ;// CONCATENATED MODULE: ../../packages/select/src/select.tsx
@@ -2649,7 +2664,11 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
2649
2664
  type: Function
2650
2665
  },
2651
2666
  searchWithPinyin: shared_namespaceObject.PropTypes.bool.def(true),
2652
- highlightKeyword: shared_namespaceObject.PropTypes.bool.def(false) // 搜索高亮
2667
+ highlightKeyword: shared_namespaceObject.PropTypes.bool.def(false),
2668
+ trigger: {
2669
+ type: String,
2670
+ "default": 'default'
2671
+ } // content显示和隐藏方式
2653
2672
  },
2654
2673
  emits: ['update:modelValue', 'change', 'toggle', 'clear', 'scroll-end', 'focus', 'blur', 'tag-remove', 'select', 'deselect', 'search-change'],
2655
2674
  setup: function setup(props, _ref) {
@@ -2689,7 +2708,9 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
2689
2708
  filterOption = _toRefs.filterOption,
2690
2709
  searchWithPinyin = _toRefs.searchWithPinyin,
2691
2710
  highlightKeyword = _toRefs.highlightKeyword,
2692
- disableFocusBehavior = _toRefs.disableFocusBehavior;
2711
+ disableFocusBehavior = _toRefs.disableFocusBehavior,
2712
+ trigger = _toRefs.trigger;
2713
+ var virtualRenderRef = (0,external_vue_namespaceObject.ref)(null);
2693
2714
  var localNoDataText = (0,external_vue_namespaceObject.computed)(function () {
2694
2715
  if (props.noDataText === undefined) {
2695
2716
  return t.value.noData;
@@ -2747,6 +2768,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
2747
2768
  return pre;
2748
2769
  }, {});
2749
2770
  });
2771
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2750
2772
  var activeOptionValue = (0,external_vue_namespaceObject.ref)(); // 当前悬浮的option
2751
2773
  var listMap = (0,external_vue_namespaceObject.computed)(function () {
2752
2774
  return list.value.reduce(function (pre, item) {
@@ -2915,6 +2937,14 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
2915
2937
  hidePopover = _usePopover.hidePopover,
2916
2938
  showPopover = _usePopover.showPopover,
2917
2939
  togglePopover = _usePopover.togglePopover;
2940
+ var handleHidePopover = function handleHidePopover() {
2941
+ if (trigger.value === 'manual') return;
2942
+ hidePopover();
2943
+ };
2944
+ var handleShowPopover = function handleShowPopover() {
2945
+ if (trigger.value === 'manual') return;
2946
+ showPopover();
2947
+ };
2918
2948
  // 输入框是否可以输入内容
2919
2949
  var isInput = (0,external_vue_namespaceObject.computed)(function () {
2920
2950
  return (filterable.value && inputSearch.value || allowCreate.value) && isPopoverShow.value;
@@ -2959,6 +2989,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
2959
2989
  }
2960
2990
  };
2961
2991
  // 默认搜索方法
2992
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2962
2993
  var defaultSearchMethod = function defaultSearchMethod(searchValue, optionName) {
2963
2994
  var _toLowerCase2;
2964
2995
  var filterData = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
@@ -3012,7 +3043,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3012
3043
  };
3013
3044
  // 派发toggle事件
3014
3045
  var handleTogglePopover = function handleTogglePopover() {
3015
- if (isDisabled.value) return;
3046
+ if (isDisabled.value || trigger.value === 'manual') return;
3016
3047
  handleFocus();
3017
3048
  togglePopover();
3018
3049
  };
@@ -3053,7 +3084,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3053
3084
  label: value
3054
3085
  }];
3055
3086
  emitChange(value);
3056
- hidePopover();
3087
+ handleHidePopover();
3057
3088
  }
3058
3089
  customOptionName.value = '';
3059
3090
  };
@@ -3097,7 +3128,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3097
3128
  }];
3098
3129
  emitChange(option.optionID);
3099
3130
  emit('select', option.optionID);
3100
- hidePopover();
3131
+ handleHidePopover();
3101
3132
  handleBlur();
3102
3133
  }
3103
3134
  };
@@ -3137,7 +3168,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3137
3168
  selected.value = [];
3138
3169
  emitChange(multiple.value ? [] : '');
3139
3170
  emit('clear', multiple.value ? [] : '');
3140
- hidePopover();
3171
+ handleHidePopover();
3141
3172
  };
3142
3173
  var handleSelectedAllOptionMouseEnter = function handleSelectedAllOptionMouseEnter() {
3143
3174
  activeOptionValue.value = '';
@@ -3148,22 +3179,21 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3148
3179
  selected.value = [];
3149
3180
  } else {
3150
3181
  var _list$value;
3151
- var tmpSelected = [];
3182
+ var tmpSelectedMap = new Map();
3152
3183
  options.value.forEach(function (option) {
3153
- if (option.disabled) return;
3154
- tmpSelected.push({
3155
- value: option.optionID,
3156
- label: option.optionName || option.optionID
3157
- });
3184
+ if (option.disabled || tmpSelectedMap.has(option.optionID)) return;
3185
+ tmpSelectedMap.set(option.optionID, option.optionName || option.optionID);
3158
3186
  });
3159
3187
  (_list$value = list.value) === null || _list$value === void 0 || _list$value.forEach(function (item) {
3160
- if (item.disabled) return;
3161
- tmpSelected.push({
3162
- value: item[idKey.value],
3163
- label: item[displayKey.value]
3164
- });
3188
+ if (item.disabled || tmpSelectedMap.has(item[idKey.value])) return;
3189
+ tmpSelectedMap.set(item[idKey.value], item[displayKey.value]);
3190
+ });
3191
+ selected.value = Array.from(tmpSelectedMap.keys()).map(function (key) {
3192
+ return {
3193
+ value: key,
3194
+ label: tmpSelectedMap.get(key)
3195
+ };
3165
3196
  });
3166
- selected.value = tmpSelected;
3167
3197
  }
3168
3198
  emitChange(selected.value.map(function (item) {
3169
3199
  return item.value;
@@ -3248,7 +3278,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3248
3278
  };
3249
3279
  }));
3250
3280
  } else {
3251
- if (modelValue.value !== undefined || allowEmptyValues.value.includes(modelValue.value)) {
3281
+ if (modelValue.value || allowEmptyValues.value.includes(modelValue.value)) {
3252
3282
  selected.value = [{
3253
3283
  value: modelValue.value,
3254
3284
  label: handleGetLabelByValue(modelValue.value)
@@ -3258,6 +3288,15 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3258
3288
  }
3259
3289
  }
3260
3290
  };
3291
+ // 手动设置selected值
3292
+ var setSelected = function setSelected(data) {
3293
+ selected.value = data.map(function (item) {
3294
+ return {
3295
+ label: item[displayKey.value],
3296
+ value: item[idKey.value]
3297
+ };
3298
+ });
3299
+ };
3261
3300
  // 处理键盘事件
3262
3301
  var handleDocumentKeydown = function handleDocumentKeydown(e) {
3263
3302
  if (!isPopoverShow.value || isEnableVirtualRender.value) return;
@@ -3315,7 +3354,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3315
3354
  var event = _ref2.event;
3316
3355
  var target = event.target;
3317
3356
  if ((_triggerRef$value = triggerRef.value) !== null && _triggerRef$value !== void 0 && _triggerRef$value.contains(target) || triggerRef.value === target) return;
3318
- hidePopover();
3357
+ handleHidePopover();
3319
3358
  handleBlur();
3320
3359
  };
3321
3360
  (0,external_vue_namespaceObject.provide)(selectKey, (0,external_vue_namespaceObject.reactive)({
@@ -3336,10 +3375,14 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3336
3375
  (0,external_vue_namespaceObject.onMounted)(function () {
3337
3376
  handleSetSelectedData();
3338
3377
  setTimeout(function () {
3339
- showOnInit.value && showPopover();
3378
+ showOnInit.value && handleShowPopover();
3340
3379
  autoFocus.value && focusInput();
3341
3380
  });
3342
3381
  });
3382
+ var handlePopoverShown = function handlePopoverShown() {
3383
+ var _virtualRenderRef$val;
3384
+ (_virtualRenderRef$val = virtualRenderRef.value) === null || _virtualRenderRef$val === void 0 || _virtualRenderRef$val.scrollTo(0, 1);
3385
+ };
3343
3386
  return {
3344
3387
  t: t,
3345
3388
  selected: selected,
@@ -3397,15 +3440,20 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3397
3440
  localSelectAllText: localSelectAllText,
3398
3441
  resolveClassName: resolveClassName,
3399
3442
  handleCreateCustomOption: handleCreateCustomOption,
3443
+ handlePopoverShown: handlePopoverShown,
3400
3444
  virtualLineHeight: virtualLineHeight,
3401
3445
  isEnableVirtualRender: isEnableVirtualRender,
3402
- preloadItemCount: preloadItemCount
3446
+ preloadItemCount: preloadItemCount,
3447
+ virtualRenderRef: virtualRenderRef,
3448
+ setSelected: setSelected
3403
3449
  };
3404
3450
  },
3405
3451
  render: function render() {
3406
3452
  var _this = this;
3407
3453
  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));
3454
+ // 右侧ICON
3408
3455
  var suffixIcon = function suffixIcon() {
3456
+ var _this$$slots, _this$$slots2, _this$$slots2$suffix;
3409
3457
  if (_this.loading) {
3410
3458
  return (0,external_vue_namespaceObject.createVNode)(loading_namespaceObject["default"], {
3411
3459
  "class": "spinner",
@@ -3421,12 +3469,14 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3421
3469
  "onClick": _this.handleClear
3422
3470
  }, null);
3423
3471
  }
3424
- return (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.AngleUp, {
3425
- "class": "angle-up"
3472
+ return (_this$$slots = _this.$slots) !== null && _this$$slots !== void 0 && _this$$slots.suffix ? (0,external_vue_namespaceObject.createVNode)("span", {
3473
+ "class": "angle-down"
3474
+ }, [(_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, {
3475
+ "class": "angle-down"
3426
3476
  }, null);
3427
3477
  };
3428
3478
  var renderPrefix = function renderPrefix() {
3429
- var _this$$slots;
3479
+ var _this$$slots3;
3430
3480
  if (_this.prefix) {
3431
3481
  return function () {
3432
3482
  return (0,external_vue_namespaceObject.createVNode)("div", {
@@ -3434,9 +3484,9 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3434
3484
  }, [(0,external_vue_namespaceObject.createVNode)("span", null, [_this.prefix])]);
3435
3485
  };
3436
3486
  }
3437
- return (_this$$slots = _this.$slots) !== null && _this$$slots !== void 0 && _this$$slots.prefix ? function () {
3438
- var _this$$slots2, _this$$slots2$prefix;
3439
- 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);
3487
+ return (_this$$slots3 = _this.$slots) !== null && _this$$slots3 !== void 0 && _this$$slots3.prefix ? function () {
3488
+ var _this$$slots4, _this$$slots4$prefix;
3489
+ 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);
3440
3490
  } : undefined;
3441
3491
  };
3442
3492
  // 全选
@@ -3467,9 +3517,9 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3467
3517
  };
3468
3518
  // 默认trigger输入框渲染
3469
3519
  var renderTriggerInput = function renderTriggerInput() {
3470
- var _this$$slots5;
3520
+ var _this$$slots9;
3471
3521
  if (_this.multipleMode === 'tag') {
3472
- var _this$$slots3;
3522
+ var _this$$slots5, _this$$slots7;
3473
3523
  return (0,external_vue_namespaceObject.createVNode)(selectTagInput, {
3474
3524
  "ref": "selectTagInputRef",
3475
3525
  "modelValue": _this.customOptionName,
@@ -3487,12 +3537,16 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3487
3537
  "onRemove": _this.handleDeleteTag
3488
3538
  }, {
3489
3539
  prefix: renderPrefix(),
3490
- "default": ((_this$$slots3 = _this.$slots) === null || _this$$slots3 === void 0 ? void 0 : _this$$slots3.tag) && function () {
3491
- var _this$$slots4;
3492
- return (_this$$slots4 = _this.$slots) === null || _this$$slots4 === void 0 ? void 0 : _this$$slots4.tag({
3540
+ "default": ((_this$$slots5 = _this.$slots) === null || _this$$slots5 === void 0 ? void 0 : _this$$slots5.tag) && function () {
3541
+ var _this$$slots6;
3542
+ return (_this$$slots6 = _this.$slots) === null || _this$$slots6 === void 0 ? void 0 : _this$$slots6.tag({
3493
3543
  selected: _this.selected
3494
3544
  });
3495
3545
  },
3546
+ tagRender: ((_this$$slots7 = _this.$slots) === null || _this$$slots7 === void 0 ? void 0 : _this$$slots7.tagRender) && function (item) {
3547
+ var _this$$slots8;
3548
+ return (_this$$slots8 = _this.$slots) === null || _this$$slots8 === void 0 ? void 0 : _this$$slots8.tagRender(item);
3549
+ },
3496
3550
  suffix: function suffix() {
3497
3551
  return suffixIcon();
3498
3552
  }
@@ -3514,10 +3568,10 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3514
3568
  "onInput": _this.handleInputChange
3515
3569
  }, _this.prefix ? {
3516
3570
  prefix: _this.prefix
3517
- } : null), select_objectSpread(select_objectSpread({}, typeof ((_this$$slots5 = _this.$slots) === null || _this$$slots5 === void 0 ? void 0 : _this$$slots5.prefix) === 'function' ? {
3571
+ } : null), select_objectSpread(select_objectSpread({}, typeof ((_this$$slots9 = _this.$slots) === null || _this$$slots9 === void 0 ? void 0 : _this$$slots9.prefix) === 'function' ? {
3518
3572
  prefix: function prefix() {
3519
- var _this$$slots6, _this$$slots6$prefix;
3520
- 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);
3573
+ var _this$$slots10, _this$$slots10$prefix;
3574
+ return (_this$$slots10 = _this.$slots) === null || _this$$slots10 === void 0 || (_this$$slots10$prefix = _this$$slots10.prefix) === null || _this$$slots10$prefix === void 0 ? void 0 : _this$$slots10$prefix.call(_this$$slots10);
3521
3575
  }
3522
3576
  } : null), {}, {
3523
3577
  suffix: function suffix() {
@@ -3527,7 +3581,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3527
3581
  };
3528
3582
  // 渲染trigger
3529
3583
  var renderSelectTrigger = function renderSelectTrigger() {
3530
- var _this$$slots7, _this$$slots7$trigger;
3584
+ var _this$$slots11, _this$$slots11$trigge;
3531
3585
  return (0,external_vue_namespaceObject.createVNode)("div", {
3532
3586
  "ref": "triggerRef",
3533
3587
  "style": {
@@ -3537,22 +3591,28 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3537
3591
  "onClick": _this.handleTogglePopover,
3538
3592
  "onMouseenter": _this.setHover,
3539
3593
  "onMouseleave": _this.cancelHover
3540
- }, [((_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, {
3594
+ }, [((_this$$slots11 = _this.$slots) === null || _this$$slots11 === void 0 || (_this$$slots11$trigge = _this$$slots11.trigger) === null || _this$$slots11$trigge === void 0 ? void 0 : _this$$slots11$trigge.call(_this$$slots11, {
3541
3595
  selected: _this.selected
3542
3596
  })) || renderTriggerInput()]);
3543
3597
  };
3544
3598
  // 渲染列表模式
3545
3599
  var renderList = function renderList() {
3546
3600
  return _this.isEnableVirtualRender ? (0,external_vue_namespaceObject.createVNode)(virtual_render_namespaceObject["default"], {
3601
+ "ref": "virtualRenderRef",
3547
3602
  "height": _this.virtualHeight,
3548
3603
  "lineHeight": _this.virtualLineHeight,
3549
3604
  "list": _this.filterList,
3550
- "preloadItemCount": _this.preloadItemCount
3605
+ "preloadItemCount": _this.preloadItemCount,
3606
+ "scrollbar": {
3607
+ enabled: true,
3608
+ size: 'small'
3609
+ }
3551
3610
  }, {
3552
3611
  "default": function _default(_ref3) {
3553
- var _this$$slots8, _this$$slots9;
3612
+ var _this$$slots12, _this$$slots13;
3554
3613
  var data = _ref3.data;
3555
- 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);
3614
+ // 兼容以前slots
3615
+ var optionRender = ((_this$$slots12 = _this.$slots) === null || _this$$slots12 === void 0 ? void 0 : _this$$slots12.optionRender) || ((_this$$slots13 = _this.$slots) === null || _this$$slots13 === void 0 ? void 0 : _this$$slots13.virtualScrollRender);
3556
3616
  return data.map(function (item) {
3557
3617
  return (0,external_vue_namespaceObject.createVNode)(src_option, {
3558
3618
  "id": item[_this.idKey],
@@ -3568,15 +3628,16 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3568
3628
  });
3569
3629
  }
3570
3630
  }) : _this.filterList.map(function (item) {
3571
- var _this$$slots10;
3631
+ var _this$$slots14, _this$$slots15;
3632
+ // 兼容以前slots
3633
+ var optionRender = ((_this$$slots14 = _this.$slots) === null || _this$$slots14 === void 0 ? void 0 : _this$$slots14.optionRender) || ((_this$$slots15 = _this.$slots) === null || _this$$slots15 === void 0 ? void 0 : _this$$slots15.virtualScrollRender);
3572
3634
  return (0,external_vue_namespaceObject.createVNode)(src_option, {
3573
3635
  "id": item[_this.idKey],
3574
3636
  "key": item[_this.idKey],
3575
3637
  "name": item[_this.displayKey]
3576
- }, (_this$$slots10 = _this.$slots) !== null && _this$$slots10 !== void 0 && _this$$slots10.optionRender ? {
3638
+ }, typeof optionRender === 'function' ? {
3577
3639
  "default": function _default() {
3578
- var _this$$slots11, _this$$slots11$option;
3579
- 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, {
3640
+ return optionRender({
3580
3641
  item: item
3581
3642
  });
3582
3643
  }
@@ -3585,7 +3646,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3585
3646
  };
3586
3647
  // 渲染内容
3587
3648
  var renderSelectContent = function renderSelectContent() {
3588
- var _this$$slots12, _this$$slots12$defaul, _this$$slots13, _this$$slots14;
3649
+ var _this$$slots16, _this$$slots16$defaul, _this$$slots17, _this$$slots18;
3589
3650
  return (0,external_vue_namespaceObject.createVNode)("div", {
3590
3651
  "ref": "contentRef",
3591
3652
  "class": _this.resolveClassName('select-content-wrapper')
@@ -3621,7 +3682,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3621
3682
  "onScroll": _this.handleScroll
3622
3683
  }, [(0,external_vue_namespaceObject.createVNode)("ul", {
3623
3684
  "class": _this.resolveClassName('select-options')
3624
- }, [renderSelectAll(), renderList(), (_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", {
3685
+ }, [renderSelectAll(), renderList(), (_this$$slots16 = _this.$slots) === null || _this$$slots16 === void 0 || (_this$$slots16$defaul = _this$$slots16["default"]) === null || _this$$slots16$defaul === void 0 ? void 0 : _this$$slots16$defaul.call(_this$$slots16), _this.scrollLoading && (0,external_vue_namespaceObject.createVNode)("li", {
3625
3686
  "class": _this.resolveClassName('select-options-loading')
3626
3687
  }, [(0,external_vue_namespaceObject.createVNode)(loading_namespaceObject["default"], {
3627
3688
  "class": "spinner mr5",
@@ -3629,14 +3690,15 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3629
3690
  "mode": "spin",
3630
3691
  "size": "mini",
3631
3692
  "theme": "primary"
3632
- }, null), (0,external_vue_namespaceObject.createVNode)("span", null, [_this.localLoadingText])])])]), ((_this$$slots13 = _this.$slots) === null || _this$$slots13 === void 0 ? void 0 : _this$$slots13.extension) && (0,external_vue_namespaceObject.createVNode)("div", {
3693
+ }, null), (0,external_vue_namespaceObject.createVNode)("span", null, [_this.localLoadingText])])])]), ((_this$$slots17 = _this.$slots) === null || _this$$slots17 === void 0 ? void 0 : _this$$slots17.extension) && (0,external_vue_namespaceObject.createVNode)("div", {
3633
3694
  "class": _this.resolveClassName('select-extension')
3634
- }, [(_this$$slots14 = _this.$slots) === null || _this$$slots14 === void 0 ? void 0 : _this$$slots14.extension()])])]);
3695
+ }, [(_this$$slots18 = _this.$slots) === null || _this$$slots18 === void 0 ? void 0 : _this$$slots18.extension()])])]);
3635
3696
  };
3636
3697
  return (0,external_vue_namespaceObject.createVNode)("div", {
3637
3698
  "class": selectClass
3638
3699
  }, [(0,external_vue_namespaceObject.createVNode)(popover_namespaceObject["default"], (0,external_vue_namespaceObject.mergeProps)(this.popoverConfig, {
3639
3700
  "ref": "popoverRef",
3701
+ "onAfterShow": this.handlePopoverShown,
3640
3702
  "onClickoutside": this.handleClickOutside
3641
3703
  }), {
3642
3704
  "default": function _default() {
@@ -1,8 +1,7 @@
1
1
  import { VNode } from 'vue';
2
- import { SelectedTypeEnum } from '../shared';
3
2
  declare const _default: import("vue").DefineComponent<{
4
3
  id: {
5
- type: (ObjectConstructor | NumberConstructor | StringConstructor)[];
4
+ type: (NumberConstructor | StringConstructor)[];
6
5
  require: boolean;
7
6
  };
8
7
  name: import("vue-types").VueTypeDef<string | number>;
@@ -21,9 +20,9 @@ declare const _default: import("vue").DefineComponent<{
21
20
  multiple: import("vue").ComputedRef<boolean>;
22
21
  isHover: import("vue").ComputedRef<boolean>;
23
22
  showSelectedIcon: import("vue").ComputedRef<boolean>;
24
- selectedStyle: import("vue").ComputedRef<SelectedTypeEnum>;
23
+ selectedStyle: import("vue").ComputedRef<"checkbox" | "check">;
25
24
  optionName: import("vue").ComputedRef<string | number>;
26
- optionID: import("vue").ComputedRef<unknown>;
25
+ optionID: import("vue").ComputedRef<string | number>;
27
26
  highlightKeyword: import("vue").ComputedRef<boolean>;
28
27
  handleOptionClick: () => void;
29
28
  handleMouseEnter: () => void;
@@ -32,7 +31,7 @@ declare const _default: import("vue").DefineComponent<{
32
31
  visible: import("vue").Ref<boolean>;
33
32
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
34
33
  id: {
35
- type: (ObjectConstructor | NumberConstructor | StringConstructor)[];
34
+ type: (NumberConstructor | StringConstructor)[];
36
35
  require: boolean;
37
36
  };
38
37
  name: import("vue-types").VueTypeDef<string | number>;