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

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