bkui-vue 2.0.2-beta.7 → 2.0.2-beta.71

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 (320) hide show
  1. package/License.txt +1 -2
  2. package/dist/cli.css +1 -0
  3. package/dist/index.cjs.js +165 -138
  4. package/dist/index.esm.js +24227 -18480
  5. package/dist/index.umd.js +165 -138
  6. package/dist/locale/en.esm.js.map +1 -1
  7. package/dist/locale/en.umd.js.map +1 -1
  8. package/dist/locale/ja-jp.esm.js +2 -0
  9. package/dist/locale/ja-jp.esm.js.map +1 -0
  10. package/dist/locale/ja-jp.umd.js +2 -0
  11. package/dist/locale/ja-jp.umd.js.map +1 -0
  12. package/dist/locale/zh-cn.esm.js.map +1 -1
  13. package/dist/locale/zh-cn.umd.js.map +1 -1
  14. package/dist/style.variable.css +1 -1
  15. package/lib/affix/affix.variable.css +2 -1
  16. package/lib/affix/index.js +2 -2
  17. package/lib/alert/alert.variable.css +2 -1
  18. package/lib/alert/index.js +16 -5
  19. package/lib/animate-number/index.js +2 -2
  20. package/lib/backtop/backtop.variable.css +2 -1
  21. package/lib/backtop/index.js +2 -2
  22. package/lib/badge/badge.variable.css +2 -1
  23. package/lib/badge/index.js +2 -2
  24. package/lib/breadcrumb/breadcrumb.variable.css +2 -1
  25. package/lib/breadcrumb/index.js +3 -3
  26. package/lib/button/button.d.ts +1 -1
  27. package/lib/button/button.variable.css +2 -1
  28. package/lib/button/index.js +3 -3
  29. package/lib/card/card.variable.css +2 -1
  30. package/lib/card/index.js +2 -2
  31. package/lib/cascader/cascader.css +26 -24
  32. package/lib/cascader/cascader.d.ts +311 -0
  33. package/lib/cascader/cascader.less +78 -76
  34. package/lib/cascader/cascader.variable.css +28 -25
  35. package/lib/cascader/index.d.ts +610 -0
  36. package/lib/cascader/index.js +107 -49
  37. package/lib/checkbox/checkbox.variable.css +2 -1
  38. package/lib/checkbox/index.js +5 -5
  39. package/lib/code-diff/code-diff.variable.css +2 -1
  40. package/lib/code-diff/index.js +2 -2
  41. package/lib/collapse/collapse.variable.css +2 -1
  42. package/lib/collapse/index.js +3 -3
  43. package/lib/collapse-transition/collapse-transition.variable.css +2 -1
  44. package/lib/collapse-transition/index.js +2 -2
  45. package/lib/color-picker/color-picker.variable.css +2 -1
  46. package/lib/color-picker/index.js +62 -55
  47. package/lib/components.js +1 -1
  48. package/lib/config-provider/config-provider.variable.css +2 -1
  49. package/lib/config-provider/index.d.ts +1 -1
  50. package/lib/config-provider/index.js +6 -6
  51. package/lib/container/container.variable.css +2 -1
  52. package/lib/container/index.js +5 -5
  53. package/lib/date-picker/date-picker.d.ts +2 -1
  54. package/lib/date-picker/date-picker.variable.css +2 -1
  55. package/lib/date-picker/index.d.ts +6 -2
  56. package/lib/date-picker/index.js +77 -76
  57. package/lib/date-picker/panel/date-range.d.ts +2 -1
  58. package/lib/date-picker/panel/time.d.ts +1 -1
  59. package/lib/date-picker/utils.d.ts +5 -17
  60. package/lib/dialog/dialog.css +20 -1
  61. package/lib/dialog/dialog.variable.css +22 -2
  62. package/lib/dialog/index.js +13 -36
  63. package/lib/directives/index.js +6 -9
  64. package/lib/dist.index.js +1 -1
  65. package/lib/divider/divider.variable.css +2 -1
  66. package/lib/divider/index.js +3 -3
  67. package/lib/dropdown/dropdown.d.ts +1 -0
  68. package/lib/dropdown/dropdown.variable.css +2 -1
  69. package/lib/dropdown/index.d.ts +3 -0
  70. package/lib/dropdown/index.js +15 -10
  71. package/lib/exception/exception.variable.css +2 -1
  72. package/lib/exception/index.js +2 -2
  73. package/lib/fixed-navbar/fixed-navbar.variable.css +2 -1
  74. package/lib/fixed-navbar/index.js +2 -2
  75. package/lib/form/form-item.d.ts +19 -0
  76. package/lib/form/form.css +16 -4
  77. package/lib/form/form.less +24 -6
  78. package/lib/form/form.variable.css +18 -5
  79. package/lib/form/index.d.ts +13 -0
  80. package/lib/form/index.js +41 -50
  81. package/lib/hooks.js +1 -1
  82. package/lib/icon/angle-double-down-line.js +1 -1
  83. package/lib/icon/angle-double-left-line.js +1 -1
  84. package/lib/icon/angle-double-left.js +1 -1
  85. package/lib/icon/angle-double-right-line.js +1 -1
  86. package/lib/icon/angle-double-right.js +1 -1
  87. package/lib/icon/angle-double-up-line.js +1 -1
  88. package/lib/icon/angle-down-fill.js +1 -1
  89. package/lib/icon/angle-down-line.js +1 -1
  90. package/lib/icon/angle-down.js +1 -1
  91. package/lib/icon/angle-left.js +1 -1
  92. package/lib/icon/angle-right.js +1 -1
  93. package/lib/icon/angle-up-fill.js +1 -1
  94. package/lib/icon/angle-up.js +1 -1
  95. package/lib/icon/archive-fill.js +1 -1
  96. package/lib/icon/arrows-left.js +1 -1
  97. package/lib/icon/arrows-right.js +1 -1
  98. package/lib/icon/assistant.js +1 -1
  99. package/lib/icon/audio-fill.js +1 -1
  100. package/lib/icon/bk.js +1 -1
  101. package/lib/icon/circle.js +1 -1
  102. package/lib/icon/close-line.js +1 -1
  103. package/lib/icon/close.js +1 -1
  104. package/lib/icon/code.js +1 -1
  105. package/lib/icon/cog-shape.js +1 -1
  106. package/lib/icon/collapse-left.js +1 -1
  107. package/lib/icon/copy-shape.js +1 -1
  108. package/lib/icon/copy.js +1 -1
  109. package/lib/icon/data-shape.js +1 -1
  110. package/lib/icon/del.js +1 -1
  111. package/lib/icon/doc-fill.js +1 -1
  112. package/lib/icon/done.js +1 -1
  113. package/lib/icon/down-shape.js +1 -1
  114. package/lib/icon/down-small.js +1 -1
  115. package/lib/icon/edit-line.js +1 -1
  116. package/lib/icon/ellipsis.js +1 -1
  117. package/lib/icon/enlarge-line.js +1 -1
  118. package/lib/icon/error.js +1 -1
  119. package/lib/icon/excel-fill.js +1 -1
  120. package/lib/icon/exclamation-circle-shape.js +1 -1
  121. package/lib/icon/eye.js +1 -1
  122. package/lib/icon/filliscreen-line.js +1 -1
  123. package/lib/icon/fix-line.js +1 -1
  124. package/lib/icon/fix-shape.js +1 -1
  125. package/lib/icon/folder-open.js +1 -1
  126. package/lib/icon/folder-shape-open.js +1 -1
  127. package/lib/icon/folder-shape.js +1 -1
  128. package/lib/icon/folder.js +1 -1
  129. package/lib/icon/funnel.js +1 -1
  130. package/lib/icon/grag-fill.js +1 -1
  131. package/lib/icon/help-document-fill.js +1 -1
  132. package/lib/icon/help-fill.js +1 -1
  133. package/lib/icon/help.js +1 -1
  134. package/lib/icon/image-fill.js +1 -1
  135. package/lib/icon/img-error.js +1 -1
  136. package/lib/icon/img-placehoulder.js +1 -1
  137. package/lib/icon/index.js +1 -1
  138. package/lib/icon/info-line.js +1 -1
  139. package/lib/icon/info.js +1 -1
  140. package/lib/icon/left-shape.js +1 -1
  141. package/lib/icon/left-turn-line.js +1 -1
  142. package/lib/icon/loading.js +1 -1
  143. package/lib/icon/narrow-line.js +1 -1
  144. package/lib/icon/original.js +1 -1
  145. package/lib/icon/pdf-fill.js +1 -1
  146. package/lib/icon/play-shape.js +1 -1
  147. package/lib/icon/plus.js +1 -1
  148. package/lib/icon/ppt-fill.js +1 -1
  149. package/lib/icon/qq.js +1 -1
  150. package/lib/icon/right-shape.js +1 -1
  151. package/lib/icon/right-turn-line.js +1 -1
  152. package/lib/icon/search.js +1 -1
  153. package/lib/icon/share.js +1 -1
  154. package/lib/icon/spinner.js +1 -1
  155. package/lib/icon/success.js +1 -1
  156. package/lib/icon/switcher-loading.js +1 -1
  157. package/lib/icon/text-all.js +1 -1
  158. package/lib/icon/text-file.js +1 -1
  159. package/lib/icon/text-fill.js +1 -1
  160. package/lib/icon/transfer.js +1 -1
  161. package/lib/icon/tree-application-shape.js +1 -1
  162. package/lib/icon/unfull-screen.js +1 -1
  163. package/lib/icon/unvisible.js +1 -1
  164. package/lib/icon/up-shape.js +1 -1
  165. package/lib/icon/upload.js +1 -1
  166. package/lib/icon/video-fill.js +1 -1
  167. package/lib/icon/warn.js +1 -1
  168. package/lib/icon/weixin-pro.js +1 -1
  169. package/lib/icon/weixin.js +1 -1
  170. package/lib/image/image-viewer.variable.css +2 -1
  171. package/lib/image/image.variable.css +2 -1
  172. package/lib/image/index.js +9 -12
  173. package/lib/index.js +1 -1
  174. package/lib/info-box/index.js +22 -7
  175. package/lib/info-box/info-box.css +20 -1
  176. package/lib/info-box/info-box.d.ts +1 -0
  177. package/lib/info-box/info-box.less +28 -2
  178. package/lib/info-box/info-box.variable.css +23 -3
  179. package/lib/input/index.d.ts +39 -20
  180. package/lib/input/index.js +44 -27
  181. package/lib/input/input.css +6 -0
  182. package/lib/input/input.d.ts +30 -16
  183. package/lib/input/input.less +7 -0
  184. package/lib/input/input.variable.css +8 -1
  185. package/lib/link/index.js +2 -2
  186. package/lib/link/link.variable.css +2 -1
  187. package/lib/loading/index.js +3 -3
  188. package/lib/loading/loading.variable.css +2 -1
  189. package/lib/locale/index.d.ts +1 -0
  190. package/lib/locale/index.js +172 -4
  191. package/lib/locale/lang/ja-jp.d.ts +3 -0
  192. package/lib/menu/index.js +12 -9
  193. package/lib/menu/menu.css +5 -4
  194. package/lib/menu/menu.less +1 -0
  195. package/lib/menu/menu.variable.css +7 -5
  196. package/lib/menu/submenu.variable.css +2 -1
  197. package/lib/message/index.js +4 -4
  198. package/lib/message/message.variable.css +2 -1
  199. package/lib/modal/index.js +14 -6
  200. package/lib/modal/modal.css +20 -1
  201. package/lib/modal/modal.variable.css +22 -2
  202. package/lib/navigation/index.js +3 -3
  203. package/lib/navigation/navigation.css +29 -29
  204. package/lib/navigation/navigation.less +29 -29
  205. package/lib/navigation/navigation.variable.css +31 -30
  206. package/lib/notify/index.js +3 -3
  207. package/lib/notify/notify.variable.css +2 -1
  208. package/lib/overflow-title/index.js +3 -3
  209. package/lib/pagination/index.js +22 -14
  210. package/lib/pagination/pagination.css +1 -0
  211. package/lib/pagination/pagination.less +1 -0
  212. package/lib/pagination/pagination.variable.css +3 -1
  213. package/lib/pop-confirm/index.d.ts +584 -0
  214. package/lib/pop-confirm/index.js +10 -6
  215. package/lib/pop-confirm/pop-confirm.d.ts +292 -0
  216. package/lib/pop-confirm/pop-confirm.variable.css +2 -1
  217. package/lib/pop-confirm/props.d.ts +146 -0
  218. package/lib/popover/index.js +18 -21
  219. package/lib/popover/popover.variable.css +2 -1
  220. package/lib/popover2/index.js +2 -2
  221. package/lib/preset.js +1 -1
  222. package/lib/process/index.js +2 -2
  223. package/lib/process/process.d.ts +1 -1
  224. package/lib/process/process.variable.css +2 -1
  225. package/lib/progress/index.js +4 -4
  226. package/lib/progress/progress.variable.css +2 -1
  227. package/lib/radio/index.js +5 -5
  228. package/lib/radio/radio.variable.css +2 -1
  229. package/lib/rate/index.js +3 -3
  230. package/lib/rate/rate.variable.css +2 -1
  231. package/lib/resize-layout/index.js +2 -2
  232. package/lib/resize-layout/resize-layout.css +1 -0
  233. package/lib/resize-layout/resize-layout.less +1 -0
  234. package/lib/resize-layout/resize-layout.variable.css +3 -1
  235. package/lib/scrollbar/css/scrollbar.variable.css +2 -1
  236. package/lib/scrollbar/index.js +6 -6
  237. package/lib/search-select/index.d.ts +39 -11
  238. package/lib/search-select/index.js +91 -38
  239. package/lib/search-select/input.d.ts +5 -1
  240. package/lib/search-select/search-select.d.ts +13 -4
  241. package/lib/search-select/search-select.variable.css +2 -1
  242. package/lib/search-select/selected.d.ts +10 -2
  243. package/lib/search-select/utils.d.ts +1 -0
  244. package/lib/select/index.d.ts +22 -3
  245. package/lib/select/index.js +34 -28
  246. package/lib/select/select.d.ts +11 -1
  247. package/lib/select/select.variable.css +2 -1
  248. package/lib/shared/index.d.ts +1 -1
  249. package/lib/shared/index.js +10 -10
  250. package/lib/shared/z-index-manager.d.ts +1 -1
  251. package/lib/sideslider/index.js +5 -3
  252. package/lib/sideslider/sideslider.variable.css +2 -1
  253. package/lib/slider/index.d.ts +1 -1
  254. package/lib/slider/index.js +5 -4
  255. package/lib/slider/slider-button.d.ts +1 -1
  256. package/lib/slider/slider.d.ts +1 -1
  257. package/lib/slider/slider.variable.css +2 -1
  258. package/lib/steps/index.js +2 -2
  259. package/lib/steps/steps.d.ts +1 -1
  260. package/lib/steps/steps.variable.css +2 -1
  261. package/lib/styles/mixins/animate.variable.css +2 -1
  262. package/lib/styles/mixins/popper.variable.css +2 -1
  263. package/lib/styles/mixins/scroll.variable.css +2 -1
  264. package/lib/styles/reset.variable.css +2 -1
  265. package/lib/styles/themes/themes.less +4 -1
  266. package/lib/swiper/index.js +2 -2
  267. package/lib/swiper/swiper.variable.css +2 -1
  268. package/lib/switcher/index.js +2 -2
  269. package/lib/switcher/switcher.variable.css +2 -1
  270. package/lib/tab/index.d.ts +12 -0
  271. package/lib/tab/index.js +20 -17
  272. package/lib/tab/props.d.ts +3 -0
  273. package/lib/tab/tab.d.ts +6 -0
  274. package/lib/tab/tab.variable.css +2 -1
  275. package/lib/table/index.js +33 -36
  276. package/lib/table/plugins/head-filter.variable.css +2 -1
  277. package/lib/table/plugins/head-sort.variable.css +2 -1
  278. package/lib/table/plugins/settings.variable.css +2 -1
  279. package/lib/table/table.css +1 -0
  280. package/lib/table/table.variable.css +3 -1
  281. package/lib/table-column/index.js +1 -1
  282. package/lib/tag/index.js +2 -2
  283. package/lib/tag/tag.variable.css +2 -1
  284. package/lib/tag-input/index.d.ts +9 -0
  285. package/lib/tag-input/index.js +1569 -42
  286. package/lib/tag-input/tag-input.css +16 -0
  287. package/lib/tag-input/tag-input.d.ts +17 -2
  288. package/lib/tag-input/tag-input.less +16 -0
  289. package/lib/tag-input/tag-input.variable.css +18 -1
  290. package/lib/tag-input/tag-render.d.ts +24 -2
  291. package/lib/time-picker/index.js +1 -1
  292. package/lib/time-picker/time-picker.variable.css +2 -1
  293. package/lib/timeline/index.js +1353 -4
  294. package/lib/timeline/timeline.d.ts +1 -1
  295. package/lib/timeline/timeline.variable.css +2 -1
  296. package/lib/transfer/index.d.ts +1 -24
  297. package/lib/transfer/index.js +21 -11
  298. package/lib/transfer/props.d.ts +0 -5
  299. package/lib/transfer/transfer.css +26 -8
  300. package/lib/transfer/transfer.d.ts +1 -12
  301. package/lib/transfer/transfer.less +18 -8
  302. package/lib/transfer/transfer.variable.css +28 -9
  303. package/lib/tree/constant.d.ts +2 -0
  304. package/lib/tree/index.d.ts +48 -11
  305. package/lib/tree/index.js +17650 -106
  306. package/lib/tree/props.d.ts +30 -3
  307. package/lib/tree/tree.css +46 -0
  308. package/lib/tree/tree.d.ts +22 -5
  309. package/lib/tree/tree.less +57 -2
  310. package/lib/tree/tree.variable.css +48 -1
  311. package/lib/tree/use-array-move.d.ts +6 -0
  312. package/lib/tree/use-node-action.d.ts +2 -2
  313. package/lib/tree/use-node-attribute.d.ts +3 -0
  314. package/lib/upload/index.js +8 -8
  315. package/lib/upload/upload.variable.css +2 -1
  316. package/lib/virtual-render/index.js +7 -7
  317. package/lib/virtual-render/virtual-render.variable.css +2 -1
  318. package/lib/volar.components.d.ts +2 -1
  319. package/package.json +13 -2
  320. package/dist/style.css +0 -1
@@ -1100,7 +1100,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
1100
1100
  * Tencent is pleased to support the open source community by making
1101
1101
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1102
1102
  *
1103
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1103
+ * Copyright (C) 2025 Tencent. All rights reserved.
1104
1104
  *
1105
1105
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1106
1106
  *
@@ -1228,7 +1228,7 @@ const popover_namespaceObject = popover_x({ ["$bkPopover"]: () => __WEBPACK_EXTE
1228
1228
  * Tencent is pleased to support the open source community by making
1229
1229
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1230
1230
  *
1231
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1231
+ * Copyright (C) 2025 Tencent. All rights reserved.
1232
1232
  *
1233
1233
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1234
1234
  *
@@ -1340,7 +1340,7 @@ var normalize_wheel_default = /*#__PURE__*/__webpack_require__.n(normalize_wheel
1340
1340
  * Tencent is pleased to support the open source community by making
1341
1341
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1342
1342
  *
1343
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1343
+ * Copyright (C) 2025 Tencent. All rights reserved.
1344
1344
  *
1345
1345
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1346
1346
  *
@@ -1428,7 +1428,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
1428
1428
  * Tencent is pleased to support the open source community by making
1429
1429
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1430
1430
  *
1431
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1431
+ * Copyright (C) 2025 Tencent. All rights reserved.
1432
1432
  *
1433
1433
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1434
1434
  *
@@ -1483,9 +1483,6 @@ var tooltips = {
1483
1483
  hide(el);
1484
1484
  }, 100);
1485
1485
  });
1486
- el.addEventListener('click', function () {
1487
- hide(el);
1488
- });
1489
1486
  popper.addEventListener('mouseleave', function () {
1490
1487
  clearTimeout(delayTimeout);
1491
1488
  hideTimeout = setTimeout(function () {
@@ -1499,7 +1496,7 @@ var tooltips = {
1499
1496
  show(el);
1500
1497
  clearTimeout(delayTimeout);
1501
1498
  }, opts.delay);
1502
- } else if (popper.hasAttribute('data-show')) {
1499
+ } else if (!el.contains(event.target) && popper.hasAttribute('data-show')) {
1503
1500
  hide(el);
1504
1501
  }
1505
1502
  });
@@ -1723,7 +1720,7 @@ const external_overflow_title_namespaceObject = external_overflow_title_x({ });
1723
1720
  * Tencent is pleased to support the open source community by making
1724
1721
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1725
1722
  *
1726
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1723
+ * Copyright (C) 2025 Tencent. All rights reserved.
1727
1724
  *
1728
1725
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1729
1726
  *
@@ -2203,7 +2200,7 @@ function _createClass(Constructor, protoProps, staticProps) {
2203
2200
  * Tencent is pleased to support the open source community by making
2204
2201
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
2205
2202
  *
2206
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
2203
+ * Copyright (C) 2025 Tencent. All rights reserved.
2207
2204
  *
2208
2205
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
2209
2206
  *
@@ -2464,7 +2461,7 @@ var SelectedItem = /*#__PURE__*/function () {
2464
2461
  * Tencent is pleased to support the open source community by making
2465
2462
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
2466
2463
  *
2467
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
2464
+ * Copyright (C) 2025 Tencent. All rights reserved.
2468
2465
  *
2469
2466
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
2470
2467
  *
@@ -2583,11 +2580,11 @@ var SelectedItem = /*#__PURE__*/function () {
2583
2580
  var _keyword;
2584
2581
  if (!str) return str;
2585
2582
  var keyword = props.keyword;
2586
- var len = keyword.length;
2587
- if (!((_keyword = keyword) !== null && _keyword !== void 0 && _keyword.trim().length) || !str.toLocaleLowerCase().includes(keyword.toLocaleLowerCase())) return str;
2583
+ if (!((_keyword = keyword) !== null && _keyword !== void 0 && _keyword.trim().length) || !str.toLocaleLowerCase().includes(keyword.toLocaleLowerCase().trim())) return str;
2584
+ var len = keyword.trim().length;
2588
2585
  var list = [];
2589
2586
  var lastIndex = -1;
2590
- keyword = keyword.replace(/([.*/]{1})/gim, '\\$1');
2587
+ keyword = keyword.replace(/([.*/]{1})/gim, '\\$1').trim();
2591
2588
  str.replace(new RegExp("".concat(keyword), 'igm'), function (key, index) {
2592
2589
  if (list.length === 0 && index !== 0) {
2593
2590
  list.push(str.slice(0, index));
@@ -2715,7 +2712,7 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
2715
2712
  * Tencent is pleased to support the open source community by making
2716
2713
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
2717
2714
  *
2718
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
2715
+ * Copyright (C) 2025 Tencent. All rights reserved.
2719
2716
  *
2720
2717
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
2721
2718
  *
@@ -2804,12 +2801,14 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
2804
2801
  var _useSearchSelectInjec = useSearchSelectInject(),
2805
2802
  editKey = _useSearchSelectInjec.editKey,
2806
2803
  onValidate = _useSearchSelectInjec.onValidate,
2807
- searchData = _useSearchSelectInjec.searchData;
2804
+ searchData = _useSearchSelectInjec.searchData,
2805
+ onCopy = _useSearchSelectInjec.onCopy;
2808
2806
  var valueLogic = (0,external_vue_namespaceObject.computed)(function () {
2809
2807
  var _usingItem$value;
2810
2808
  return ((_usingItem$value = usingItem.value) === null || _usingItem$value === void 0 ? void 0 : _usingItem$value.logical) || SearchLogical.OR;
2811
2809
  });
2812
2810
  var inputKey = (0,external_vue_namespaceObject.ref)((0,shared_namespaceObject.random)(10));
2811
+ var isComposition = (0,external_vue_namespaceObject.ref)(false);
2813
2812
  (0,external_vue_namespaceObject.watch)(editKey, function () {
2814
2813
  if (props.mode === SearchInputMode.DEFAULT && editKey.value) {
2815
2814
  showPopover.value = false;
@@ -2880,8 +2879,9 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
2880
2879
  }
2881
2880
  function documentEnterEvent(e) {
2882
2881
  var _menuList$value2;
2883
- if (!isBindEvent) return;
2882
+ if (!isBindEvent || isComposition.value) return;
2884
2883
  e.preventDefault();
2884
+ console.log('documentEnterEvent', e);
2885
2885
  var item = (_menuList$value2 = menuList.value) === null || _menuList$value2 === void 0 ? void 0 : _menuList$value2.find(function (item) {
2886
2886
  return item.id === menuHoverId.value;
2887
2887
  });
@@ -2959,7 +2959,9 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
2959
2959
  debounceSetMenuList();
2960
2960
  }
2961
2961
  function handleInputChange(event) {
2962
- var text = event.target.innerText.trim();
2962
+ if (isComposition.value) return;
2963
+ clearInputBr();
2964
+ var text = event.target.innerText;
2963
2965
  if (!usingItem.value) {
2964
2966
  keyword.value = text;
2965
2967
  debounceSetMenuList();
@@ -2978,7 +2980,7 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
2978
2980
  return;
2979
2981
  }
2980
2982
  }
2981
- keyword.value = usingItem.value.isSpecialType() ? text : text.replace(usingItem.value.name, '').replace(':', '').trim();
2983
+ keyword.value = usingItem.value.isSpecialType() ? text : text.replace(usingItem.value.name, '').replace(':', '');
2982
2984
  debounceSetMenuList();
2983
2985
  }
2984
2986
  function handleInputKeyup(event) {
@@ -2991,9 +2993,12 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
2991
2993
  // }
2992
2994
  // return;
2993
2995
  // }
2996
+ if (isComposition.value) return;
2994
2997
  switch (event.code) {
2995
2998
  case 'Enter':
2996
2999
  case 'NumpadEnter':
3000
+ console.log('handleInputKeyup', event);
3001
+ event.preventDefault();
2997
3002
  if (props.valueBehavior === ValueBehavior.NEED_KEY && menuList.value.some(function (item) {
2998
3003
  return item.id === menuHoverId.value;
2999
3004
  })) {
@@ -3008,12 +3013,20 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
3008
3013
  });
3009
3014
  break;
3010
3015
  case 'Backspace':
3016
+ case 'Delete':
3011
3017
  handleKeyBackspace(event);
3018
+ break;
3012
3019
  default:
3013
3020
  showNoSelectValueError.value = false;
3014
3021
  break;
3015
3022
  }
3016
3023
  }
3024
+ var handleInputCopy = function handleInputCopy(event) {
3025
+ var copyText = window.getSelection().toString();
3026
+ if (copyText) {
3027
+ onCopy(event, copyText, usingItem.value.toValue());
3028
+ }
3029
+ };
3017
3030
  function handleKeyEnter(_x) {
3018
3031
  return _handleKeyEnter.apply(this, arguments);
3019
3032
  }
@@ -3114,7 +3127,7 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
3114
3127
  setInputFocus(false, false);
3115
3128
  return;
3116
3129
  }
3117
- } else if (!keyword.value) {
3130
+ } else if (!keyword.value || keyword.value.length === 1) {
3118
3131
  usingItem.value = null;
3119
3132
  keyword.value = '';
3120
3133
  setMenuList();
@@ -3322,7 +3335,7 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
3322
3335
  function _setMenuList() {
3323
3336
  _setMenuList = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee5() {
3324
3337
  var _props$data, _usingItem$value$sear, _usingItem$value$valu;
3325
- var list, _usingItem$value14, _keyword$value3, _iterator, _step, item, isMatched, _list, filterList, _iterator2, _step2, child, _list2, _filterList, _iterator3, _step3, _child, hoverItem;
3338
+ var list, _usingItem$value14, _usingItem$value15, _keyword$value3, _iterator, _step, item, isMatched, _list, filterList, _iterator2, _step2, child, _list2, _filterList, _iterator3, _step3, _child, hoverItem;
3326
3339
  return regenerator_default().wrap(function _callee5$(_context5) {
3327
3340
  while (1) switch (_context5.prev = _context5.next) {
3328
3341
  case 0:
@@ -3333,7 +3346,7 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
3333
3346
  }
3334
3347
  loading.value = true;
3335
3348
  _context5.next = 5;
3336
- return props.getMenuList((_usingItem$value14 = usingItem.value) === null || _usingItem$value14 === void 0 ? void 0 : _usingItem$value14.searchItem, keyword.value)["catch"](function () {
3349
+ return props.getMenuList((_usingItem$value14 = usingItem.value) === null || _usingItem$value14 === void 0 ? void 0 : _usingItem$value14.searchItem, keyword.value.trim() || ((_usingItem$value15 = usingItem.value) === null || _usingItem$value15 === void 0 || (_usingItem$value15 = _usingItem$value15.values) === null || _usingItem$value15 === void 0 || (_usingItem$value15 = _usingItem$value15[0]) === null || _usingItem$value15 === void 0 ? void 0 : _usingItem$value15.name) || '')["catch"](function () {
3337
3350
  return [];
3338
3351
  });
3339
3352
  case 5:
@@ -3390,7 +3403,7 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
3390
3403
  try {
3391
3404
  for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
3392
3405
  _child = _step3.value;
3393
- if (_child.name.toLocaleLowerCase().includes(keyword.value.toLocaleLowerCase())) {
3406
+ if (_child.name.toLocaleLowerCase().includes(keyword.value.toLocaleLowerCase().trim())) {
3394
3407
  _filterList.push(input_objectSpread(input_objectSpread({}, item), {}, {
3395
3408
  realId: item.id,
3396
3409
  id: (0,shared_namespaceObject.random)(10),
@@ -3424,7 +3437,7 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
3424
3437
  list = props.conditions;
3425
3438
  } else if (!((_usingItem$value$valu = usingItem.value.values) !== null && _usingItem$value$valu !== void 0 && _usingItem$value$valu.length) || usingItem.value.multiple || props.mode === SearchInputMode.EDIT) {
3426
3439
  list = usingItem.value.children.filter(function (item) {
3427
- return item.name.toLocaleLowerCase().includes(keyword.value.toLocaleLowerCase());
3440
+ return item.name.toLocaleLowerCase().includes(keyword.value.toLocaleLowerCase().trim());
3428
3441
  });
3429
3442
  }
3430
3443
  case 10:
@@ -3563,11 +3576,29 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
3563
3576
  (0,external_vue_namespaceObject.nextTick)(clearInput);
3564
3577
  }
3565
3578
  }
3579
+ function clearInputBr() {
3580
+ if (!inputRef.value) return;
3581
+ var brs = inputRef.value.querySelectorAll('br');
3582
+ brs === null || brs === void 0 || brs.forEach(function (br) {
3583
+ return br.remove();
3584
+ });
3585
+ }
3566
3586
  function clearInput() {
3567
3587
  if (!inputRef.value) return;
3588
+ // magic code 判断是否是 windows 系统
3589
+ // const isWindows = navigator.userAgent.includes('Windows');
3590
+ // if (isWindows) {
3591
+ // setTimeout(() => {
3592
+ // keyword.value = '';
3593
+ // inputRef.value.innerText = '';
3594
+ // clearInputBr();
3595
+ // }, 32);
3596
+ // return;
3597
+ // }
3568
3598
  keyword.value = '';
3569
3599
  (0,external_vue_namespaceObject.nextTick)(function () {
3570
- return inputRef.value.innerText = '';
3600
+ inputRef.value.innerText = '';
3601
+ clearInputBr();
3571
3602
  });
3572
3603
  }
3573
3604
  function str2SelectedItem(str) {
@@ -3643,11 +3674,21 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
3643
3674
  return v && clearInput();
3644
3675
  });
3645
3676
  }
3646
- function refleshMenuHover() {
3677
+ function refreshMenuHover() {
3647
3678
  if (!usingItem.value) {
3648
3679
  menuHoverId.value = '';
3649
3680
  }
3650
3681
  }
3682
+ function handleCompositionEnd(event) {
3683
+ isComposition.value = false;
3684
+ console.log('handleCompositionEnd', event);
3685
+ keyword.value = event.data;
3686
+ handleInputChange(event);
3687
+ }
3688
+ function handleCompositionStart(event) {
3689
+ isComposition.value = true;
3690
+ console.log('handleCompositionStart', event);
3691
+ }
3651
3692
  // expose
3652
3693
  expose({
3653
3694
  inputFocusForWrapper: inputFocusForWrapper,
@@ -3655,7 +3696,7 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
3655
3696
  inputClearForWrapper: inputClearForWrapper,
3656
3697
  handleInputFocus: handleInputFocus,
3657
3698
  isFocus: isFocus,
3658
- refleshMenuHover: refleshMenuHover
3699
+ refreshMenuHover: refreshMenuHover
3659
3700
  });
3660
3701
  return {
3661
3702
  popoverRef: popoverRef,
@@ -3666,6 +3707,7 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
3666
3707
  menuList: menuList,
3667
3708
  menuHoverId: menuHoverId,
3668
3709
  isFocus: isFocus,
3710
+ isComposition: isComposition,
3669
3711
  usingItem: usingItem,
3670
3712
  showPopover: showPopover,
3671
3713
  showNoSelectValueError: showNoSelectValueError,
@@ -3686,9 +3728,12 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
3686
3728
  inputClearForWrapper: inputClearForWrapper,
3687
3729
  deleteInputTextNode: deleteInputTextNode,
3688
3730
  customPanelSubmit: customPanelSubmit,
3689
- refleshMenuHover: refleshMenuHover,
3731
+ refreshMenuHover: refreshMenuHover,
3690
3732
  t: t,
3691
- inputKey: inputKey
3733
+ inputKey: inputKey,
3734
+ handleCompositionEnd: handleCompositionEnd,
3735
+ handleCompositionStart: handleCompositionStart,
3736
+ handleInputCopy: handleInputCopy
3692
3737
  };
3693
3738
  },
3694
3739
  render: function render() {
@@ -3715,9 +3760,12 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
3715
3760
  'input-after': showInputAfter
3716
3761
  },
3717
3762
  "contenteditable": true,
3718
- "data-placeholder": !inputInnerHtml && !_this.keyword ? _this.placeholder : '',
3719
- "data-tips": placeholder || '',
3763
+ "data-placeholder": !_this.isComposition && !inputInnerHtml && !_this.keyword ? _this.placeholder : '',
3764
+ "data-tips": !_this.isComposition ? placeholder || '' : '',
3720
3765
  "spellcheck": "false",
3766
+ "onCompositionend": _this.handleCompositionEnd,
3767
+ "onCompositionstart": _this.handleCompositionStart,
3768
+ "onCopy": _this.handleInputCopy,
3721
3769
  "onFocus": _this.handleInputFocus,
3722
3770
  "onInput": _this.handleInputChange,
3723
3771
  "onKeydown": _this.handleInputKeyup,
@@ -3811,7 +3859,7 @@ function selected_objectSpread(e) { for (var r = 1; r < arguments.length; r++) {
3811
3859
  * Tencent is pleased to support the open source community by making
3812
3860
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
3813
3861
  *
3814
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
3862
+ * Copyright (C) 2025 Tencent. All rights reserved.
3815
3863
  *
3816
3864
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
3817
3865
  *
@@ -3981,7 +4029,7 @@ function search_select_arrayLikeToArray(arr, len) { if (len == null || len > arr
3981
4029
  * Tencent is pleased to support the open source community by making
3982
4030
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
3983
4031
  *
3984
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
4032
+ * Copyright (C) 2025 Tencent. All rights reserved.
3985
4033
  *
3986
4034
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
3987
4035
  *
@@ -4071,7 +4119,7 @@ var SearchSelectProps = {
4071
4119
  clickoutside: clickoutside
4072
4120
  },
4073
4121
  props: SearchSelectProps,
4074
- emits: ['update:modelValue', 'search', 'selectKey'],
4122
+ emits: ['update:modelValue', 'search', 'selectKey', 'copy'],
4075
4123
  slots: Object,
4076
4124
  setup: function setup(props, _ref) {
4077
4125
  var emit = _ref.emit;
@@ -4220,6 +4268,9 @@ var SearchSelectProps = {
4220
4268
  (0,external_vue_namespaceObject.onBeforeUnmount)(function () {
4221
4269
  removeListener(wrapRef.value.querySelector(".".concat(resolveClassName('search-select-container'))), debounceResize);
4222
4270
  });
4271
+ var onCopy = function onCopy(event, text, item) {
4272
+ emit('copy', event, text, item);
4273
+ };
4223
4274
  // edit item
4224
4275
  useSearchSelectProvider({
4225
4276
  onEditClick: onEditClick,
@@ -4230,7 +4281,8 @@ var SearchSelectProps = {
4230
4281
  searchData: (0,external_vue_namespaceObject.computed)(function () {
4231
4282
  return props.data;
4232
4283
  }),
4233
- isClickOutside: handleInputOutside
4284
+ isClickOutside: handleInputOutside,
4285
+ onCopy: onCopy
4234
4286
  });
4235
4287
  function onEditClick(item, index) {
4236
4288
  editKey.value = "".concat(item.id, "_").concat(index);
@@ -4285,7 +4337,8 @@ var SearchSelectProps = {
4285
4337
  inputRef.value.inputFocusForWrapper();
4286
4338
  }
4287
4339
  }
4288
- function handleClearAll() {
4340
+ function handleClearAll(e) {
4341
+ e.stopPropagation();
4289
4342
  selectedList.value = [];
4290
4343
  overflowIndex.value = -1;
4291
4344
  inputRef.value.inputClearForWrapper();
@@ -4307,7 +4360,7 @@ var SearchSelectProps = {
4307
4360
  var list = selectedList.value.slice();
4308
4361
  list.splice(typeof index === 'number' ? index : selectedList.value.length - 1, 1);
4309
4362
  onValidate('');
4310
- inputRef.value.refleshMenuHover();
4363
+ inputRef.value.refreshMenuHover();
4311
4364
  emit('update:modelValue', list.map(function (item) {
4312
4365
  return item.toValue();
4313
4366
  }));
@@ -4428,7 +4481,7 @@ var SearchSelectProps = {
4428
4481
  * Tencent is pleased to support the open source community by making
4429
4482
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
4430
4483
  *
4431
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
4484
+ * Copyright (C) 2025 Tencent. All rights reserved.
4432
4485
  *
4433
4486
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
4434
4487
  *
@@ -49,6 +49,7 @@ declare const _default: import("vue").DefineComponent<{
49
49
  menuList: Ref<ISearchItem[]>;
50
50
  menuHoverId: Ref<string>;
51
51
  isFocus: Ref<boolean>;
52
+ isComposition: Ref<boolean>;
52
53
  usingItem: Ref<SelectedItem>;
53
54
  showPopover: Ref<boolean>;
54
55
  showNoSelectValueError: Ref<boolean>;
@@ -72,7 +73,7 @@ declare const _default: import("vue").DefineComponent<{
72
73
  inputClearForWrapper: () => void;
73
74
  deleteInputTextNode: () => void;
74
75
  customPanelSubmit: (value: string) => void;
75
- refleshMenuHover: () => void;
76
+ refreshMenuHover: () => void;
76
77
  t: import("vue").ComputedRef<{
77
78
  pleaseSelect: string;
78
79
  loading: string;
@@ -84,6 +85,9 @@ declare const _default: import("vue").DefineComponent<{
84
85
  logical: string;
85
86
  }>;
86
87
  inputKey: Ref<string>;
88
+ handleCompositionEnd: (event: CompositionEvent) => void;
89
+ handleCompositionStart: (event: CompositionEvent) => void;
90
+ handleInputCopy: (event: ClipboardEvent) => void;
87
91
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "delete" | "add" | "selectKey")[], "focus" | "delete" | "add" | "selectKey", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
88
92
  data: {
89
93
  type: PropType<ISearchItem[]>;
@@ -122,6 +122,7 @@ declare const _default: import("vue").DefineComponent<{
122
122
  menuList: import("vue").Ref<ISearchItem[]>;
123
123
  menuHoverId: import("vue").Ref<string>;
124
124
  isFocus: import("vue").Ref<boolean>;
125
+ isComposition: import("vue").Ref<boolean>;
125
126
  usingItem: import("vue").Ref<SelectedItem>;
126
127
  showPopover: import("vue").Ref<boolean>;
127
128
  showNoSelectValueError: import("vue").Ref<boolean>;
@@ -145,7 +146,7 @@ declare const _default: import("vue").DefineComponent<{
145
146
  inputClearForWrapper: () => void;
146
147
  deleteInputTextNode: () => void;
147
148
  customPanelSubmit: (value: string) => void;
148
- refleshMenuHover: () => void;
149
+ refreshMenuHover: () => void;
149
150
  t: import("vue").ComputedRef<{
150
151
  pleaseSelect: string;
151
152
  loading: string;
@@ -157,6 +158,9 @@ declare const _default: import("vue").DefineComponent<{
157
158
  logical: string;
158
159
  }>;
159
160
  inputKey: import("vue").Ref<string>;
161
+ handleCompositionEnd: (event: CompositionEvent) => void;
162
+ handleCompositionStart: (event: CompositionEvent) => void;
163
+ handleInputCopy: (event: ClipboardEvent) => void;
160
164
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "delete" | "add" | "selectKey")[], import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
161
165
  data: {
162
166
  type: PropType<ISearchItem[]>;
@@ -255,6 +259,7 @@ declare const _default: import("vue").DefineComponent<{
255
259
  menuList: import("vue").Ref<ISearchItem[]>;
256
260
  menuHoverId: import("vue").Ref<string>;
257
261
  isFocus: import("vue").Ref<boolean>;
262
+ isComposition: import("vue").Ref<boolean>;
258
263
  usingItem: import("vue").Ref<SelectedItem>;
259
264
  showPopover: import("vue").Ref<boolean>;
260
265
  showNoSelectValueError: import("vue").Ref<boolean>;
@@ -278,7 +283,7 @@ declare const _default: import("vue").DefineComponent<{
278
283
  inputClearForWrapper: () => void;
279
284
  deleteInputTextNode: () => void;
280
285
  customPanelSubmit: (value: string) => void;
281
- refleshMenuHover: () => void;
286
+ refreshMenuHover: () => void;
282
287
  t: import("vue").ComputedRef<{
283
288
  pleaseSelect: string;
284
289
  loading: string;
@@ -290,6 +295,9 @@ declare const _default: import("vue").DefineComponent<{
290
295
  logical: string;
291
296
  }>;
292
297
  inputKey: import("vue").Ref<string>;
298
+ handleCompositionEnd: (event: CompositionEvent) => void;
299
+ handleCompositionStart: (event: CompositionEvent) => void;
300
+ handleInputCopy: (event: ClipboardEvent) => void;
293
301
  }, {}, {}, {}, {
294
302
  maxHeight: number;
295
303
  mode: import("./utils").SearchInputMode;
@@ -406,7 +414,7 @@ declare const _default: import("vue").DefineComponent<{
406
414
  handleWrapClick: () => void;
407
415
  handleInputFocus: (v: boolean) => void;
408
416
  handleResize: () => void;
409
- handleClearAll: () => void;
417
+ handleClearAll: (e: MouseEvent) => void;
410
418
  handleInputOutside: (target: Node) => boolean;
411
419
  handleAddSelected: (item: SelectedItem) => void;
412
420
  handleDeleteSelected: (index?: number) => void;
@@ -424,7 +432,7 @@ declare const _default: import("vue").DefineComponent<{
424
432
  and: string;
425
433
  logical: string;
426
434
  }>;
427
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("search" | "update:modelValue" | "selectKey")[], "search" | "update:modelValue" | "selectKey", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
435
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("copy" | "search" | "update:modelValue" | "selectKey")[], "copy" | "search" | "update:modelValue" | "selectKey", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
428
436
  data: {
429
437
  type: PropType<Omit<ISearchItem, "value" | "isSelected">[]>;
430
438
  default: () => any[];
@@ -458,6 +466,7 @@ declare const _default: import("vue").DefineComponent<{
458
466
  validator(v: ValueBehavior): boolean;
459
467
  };
460
468
  }>> & {
469
+ onCopy?: (...args: any[]) => any;
461
470
  "onUpdate:modelValue"?: (...args: any[]) => any;
462
471
  onSelectKey?: (...args: any[]) => any;
463
472
  onSearch?: (...args: any[]) => any;
@@ -99,7 +99,7 @@
99
99
  --submenu-bg-color: #151d2c;
100
100
  --menu-active-bg-color: linear-gradient(90deg, #3f87ff 0%, #3a84ff 100%);
101
101
  --menu-color: #96a2b9;
102
- --menu-group-color: var(--default-color);
102
+ --menu-group-color: #6E788B;
103
103
  --menu-width: 260px;
104
104
  --menu-collapse-width: 60px;
105
105
  --menu-active-color: white;
@@ -128,6 +128,7 @@
128
128
  --search-select-menu-border-color: var(--disable-color);
129
129
  --select-active-color: #e1ecff;
130
130
  --select-hover-color: #f5f7fa;
131
+ --sub-title-bg-color: #f5f6fa;
131
132
  }
132
133
  @keyframes loading-scale-animate {
133
134
  0% {
@@ -78,6 +78,7 @@ declare const _default: import("vue").DefineComponent<{
78
78
  menuList: import("vue").Ref<ISearchItem[]>;
79
79
  menuHoverId: import("vue").Ref<string>;
80
80
  isFocus: import("vue").Ref<boolean>;
81
+ isComposition: import("vue").Ref<boolean>;
81
82
  usingItem: import("vue").Ref<SelectedItem>;
82
83
  showPopover: import("vue").Ref<boolean>;
83
84
  showNoSelectValueError: import("vue").Ref<boolean>;
@@ -101,7 +102,7 @@ declare const _default: import("vue").DefineComponent<{
101
102
  inputClearForWrapper: () => void;
102
103
  deleteInputTextNode: () => void;
103
104
  customPanelSubmit: (value: string) => void;
104
- refleshMenuHover: () => void;
105
+ refreshMenuHover: () => void;
105
106
  t: import("vue").ComputedRef<{
106
107
  pleaseSelect: string;
107
108
  loading: string;
@@ -113,6 +114,9 @@ declare const _default: import("vue").DefineComponent<{
113
114
  logical: string;
114
115
  }>;
115
116
  inputKey: import("vue").Ref<string>;
117
+ handleCompositionEnd: (event: CompositionEvent) => void;
118
+ handleCompositionStart: (event: CompositionEvent) => void;
119
+ handleInputCopy: (event: ClipboardEvent) => void;
116
120
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "delete" | "add" | "selectKey")[], import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
117
121
  data: {
118
122
  type: PropType<ISearchItem[]>;
@@ -211,6 +215,7 @@ declare const _default: import("vue").DefineComponent<{
211
215
  menuList: import("vue").Ref<ISearchItem[]>;
212
216
  menuHoverId: import("vue").Ref<string>;
213
217
  isFocus: import("vue").Ref<boolean>;
218
+ isComposition: import("vue").Ref<boolean>;
214
219
  usingItem: import("vue").Ref<SelectedItem>;
215
220
  showPopover: import("vue").Ref<boolean>;
216
221
  showNoSelectValueError: import("vue").Ref<boolean>;
@@ -234,7 +239,7 @@ declare const _default: import("vue").DefineComponent<{
234
239
  inputClearForWrapper: () => void;
235
240
  deleteInputTextNode: () => void;
236
241
  customPanelSubmit: (value: string) => void;
237
- refleshMenuHover: () => void;
242
+ refreshMenuHover: () => void;
238
243
  t: import("vue").ComputedRef<{
239
244
  pleaseSelect: string;
240
245
  loading: string;
@@ -246,6 +251,9 @@ declare const _default: import("vue").DefineComponent<{
246
251
  logical: string;
247
252
  }>;
248
253
  inputKey: import("vue").Ref<string>;
254
+ handleCompositionEnd: (event: CompositionEvent) => void;
255
+ handleCompositionStart: (event: CompositionEvent) => void;
256
+ handleInputCopy: (event: ClipboardEvent) => void;
249
257
  }, {}, {}, {}, {
250
258
  maxHeight: number;
251
259
  mode: SearchInputMode;
@@ -26,6 +26,7 @@ export interface ISearchSelectProvider {
26
26
  onEditEnter: (item: SelectedItem, index: number) => void;
27
27
  onEditBlur: () => void;
28
28
  onValidate: (str: string) => void;
29
+ onCopy: (event: ClipboardEvent, text: string, item: ISearchValue) => void;
29
30
  editKey: Ref<string>;
30
31
  searchData: ComputedRef<ISearchItem[]>;
31
32
  isClickOutside: (target: Node) => boolean;