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

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