bkui-vue 2.0.2-beta.9 → 2.0.2-beta.90

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 (343) hide show
  1. package/License.txt +1 -2
  2. package/dist/cli.css +1 -0
  3. package/dist/index.cjs.js +166 -138
  4. package/dist/index.esm.js +24631 -18441
  5. package/dist/index.umd.js +166 -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 +52 -25
  32. package/lib/cascader/cascader.d.ts +309 -0
  33. package/lib/cascader/cascader.less +109 -75
  34. package/lib/cascader/cascader.variable.css +54 -26
  35. package/lib/cascader/index.d.ts +618 -0
  36. package/lib/cascader/index.js +147 -65
  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 +64 -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 +79 -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 +8 -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 +17 -4
  77. package/lib/form/form.less +25 -6
  78. package/lib/form/form.variable.css +19 -5
  79. package/lib/form/index.d.ts +13 -0
  80. package/lib/form/index.js +43 -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 +11 -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 +45 -20
  180. package/lib/input/index.js +57 -29
  181. package/lib/input/input.css +6 -0
  182. package/lib/input/input.d.ts +35 -17
  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 +15 -7
  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 +62 -28
  198. package/lib/message/message.variable.css +2 -1
  199. package/lib/message/messageConstructor.d.ts +1 -1
  200. package/lib/modal/index.js +19 -8
  201. package/lib/modal/modal.css +20 -1
  202. package/lib/modal/modal.variable.css +22 -2
  203. package/lib/navigation/index.js +3 -3
  204. package/lib/navigation/navigation.css +29 -29
  205. package/lib/navigation/navigation.less +29 -29
  206. package/lib/navigation/navigation.variable.css +31 -30
  207. package/lib/notify/index.js +43 -24
  208. package/lib/notify/notify.variable.css +2 -1
  209. package/lib/overflow-title/components/overflow-title.d.ts +6 -2
  210. package/lib/overflow-title/index.d.ts +12 -4
  211. package/lib/overflow-title/index.js +3 -3
  212. package/lib/overflow-title/props.d.ts +3 -1
  213. package/lib/pagination/index.js +22 -14
  214. package/lib/pagination/pagination.css +1 -0
  215. package/lib/pagination/pagination.less +1 -0
  216. package/lib/pagination/pagination.variable.css +3 -1
  217. package/lib/pop-confirm/index.d.ts +592 -0
  218. package/lib/pop-confirm/index.js +10 -6
  219. package/lib/pop-confirm/pop-confirm.d.ts +296 -0
  220. package/lib/pop-confirm/pop-confirm.variable.css +2 -1
  221. package/lib/pop-confirm/props.d.ts +148 -0
  222. package/lib/popover/index.d.ts +18 -10
  223. package/lib/popover/index.js +281 -76
  224. package/lib/popover/popover.d.ts +8 -4
  225. package/lib/popover/popover.variable.css +2 -1
  226. package/lib/popover/props.d.ts +3 -1
  227. package/lib/popover/use-floating.d.ts +2 -2
  228. package/lib/popover/use-popover-init.d.ts +2 -2
  229. package/lib/popover/use-popper-id.d.ts +3 -1
  230. package/lib/popover2/index.js +2 -2
  231. package/lib/preset.js +1 -1
  232. package/lib/process/index.js +2 -2
  233. package/lib/process/process.d.ts +1 -1
  234. package/lib/process/process.variable.css +2 -1
  235. package/lib/progress/index.js +4 -4
  236. package/lib/progress/progress.variable.css +2 -1
  237. package/lib/radio/index.js +5 -5
  238. package/lib/radio/radio.variable.css +2 -1
  239. package/lib/rate/index.js +3 -3
  240. package/lib/rate/rate.variable.css +2 -1
  241. package/lib/resize-layout/index.js +2 -2
  242. package/lib/resize-layout/resize-layout.css +1 -0
  243. package/lib/resize-layout/resize-layout.less +1 -0
  244. package/lib/resize-layout/resize-layout.variable.css +3 -1
  245. package/lib/scrollbar/css/scrollbar.variable.css +2 -1
  246. package/lib/scrollbar/index.js +6 -6
  247. package/lib/search-select/index.d.ts +43 -15
  248. package/lib/search-select/index.js +88 -37
  249. package/lib/search-select/input.d.ts +5 -1
  250. package/lib/search-select/search-select.d.ts +14 -5
  251. package/lib/search-select/search-select.variable.css +2 -1
  252. package/lib/search-select/selected.d.ts +10 -2
  253. package/lib/search-select/utils.d.ts +1 -0
  254. package/lib/select/common.d.ts +0 -1
  255. package/lib/select/index.d.ts +58 -11
  256. package/lib/select/index.js +68 -66
  257. package/lib/select/optionGroup.d.ts +12 -1
  258. package/lib/select/select.d.ts +21 -4
  259. package/lib/select/select.variable.css +2 -1
  260. package/lib/select/type.d.ts +1 -0
  261. package/lib/shared/index.d.ts +1 -1
  262. package/lib/shared/index.js +10 -10
  263. package/lib/shared/z-index-manager.d.ts +1 -1
  264. package/lib/sideslider/index.d.ts +129 -2
  265. package/lib/sideslider/index.js +149 -11
  266. package/lib/sideslider/sideslider.css +62 -0
  267. package/lib/sideslider/sideslider.d.ts +59 -1
  268. package/lib/sideslider/sideslider.less +83 -0
  269. package/lib/sideslider/sideslider.variable.css +64 -1
  270. package/lib/slider/index.d.ts +1 -1
  271. package/lib/slider/index.js +5 -4
  272. package/lib/slider/slider-button.d.ts +1 -1
  273. package/lib/slider/slider.d.ts +1 -1
  274. package/lib/slider/slider.variable.css +2 -1
  275. package/lib/steps/index.js +13 -14
  276. package/lib/steps/steps.css +24 -11
  277. package/lib/steps/steps.d.ts +1 -1
  278. package/lib/steps/steps.less +28 -10
  279. package/lib/steps/steps.variable.css +26 -12
  280. package/lib/styles/mixins/animate.variable.css +2 -1
  281. package/lib/styles/mixins/popper.variable.css +2 -1
  282. package/lib/styles/mixins/scroll.variable.css +2 -1
  283. package/lib/styles/reset.variable.css +2 -1
  284. package/lib/styles/themes/themes.less +4 -1
  285. package/lib/swiper/index.js +2 -2
  286. package/lib/swiper/swiper.variable.css +2 -1
  287. package/lib/switcher/index.js +2 -2
  288. package/lib/switcher/switcher.variable.css +2 -1
  289. package/lib/tab/index.d.ts +12 -0
  290. package/lib/tab/index.js +22 -17
  291. package/lib/tab/props.d.ts +3 -0
  292. package/lib/tab/tab.d.ts +6 -0
  293. package/lib/tab/tab.variable.css +2 -1
  294. package/lib/table/index.js +35 -36
  295. package/lib/table/plugins/head-filter.variable.css +2 -1
  296. package/lib/table/plugins/head-sort.variable.css +2 -1
  297. package/lib/table/plugins/settings.variable.css +2 -1
  298. package/lib/table/table.css +1 -0
  299. package/lib/table/table.variable.css +3 -1
  300. package/lib/table-column/index.js +1 -1
  301. package/lib/tag/index.d.ts +23 -0
  302. package/lib/tag/index.js +10 -5
  303. package/lib/tag/tag.d.ts +11 -0
  304. package/lib/tag/tag.variable.css +2 -1
  305. package/lib/tag-input/index.d.ts +82 -9
  306. package/lib/tag-input/index.js +1639 -54
  307. package/lib/tag-input/tag-input.css +31 -0
  308. package/lib/tag-input/tag-input.d.ts +36 -4
  309. package/lib/tag-input/tag-input.less +36 -0
  310. package/lib/tag-input/tag-input.variable.css +33 -1
  311. package/lib/tag-input/tag-props.d.ts +13 -1
  312. package/lib/tag-input/tag-render.d.ts +24 -2
  313. package/lib/time-picker/index.js +1 -1
  314. package/lib/time-picker/time-picker.variable.css +2 -1
  315. package/lib/timeline/index.d.ts +7 -7
  316. package/lib/timeline/index.js +1375 -9
  317. package/lib/timeline/timeline.d.ts +5 -5
  318. package/lib/timeline/timeline.variable.css +2 -1
  319. package/lib/transfer/index.d.ts +1 -24
  320. package/lib/transfer/index.js +21 -11
  321. package/lib/transfer/props.d.ts +0 -5
  322. package/lib/transfer/transfer.css +26 -8
  323. package/lib/transfer/transfer.d.ts +1 -12
  324. package/lib/transfer/transfer.less +18 -8
  325. package/lib/transfer/transfer.variable.css +28 -9
  326. package/lib/tree/constant.d.ts +2 -0
  327. package/lib/tree/index.d.ts +67 -11
  328. package/lib/tree/index.js +17694 -103
  329. package/lib/tree/props.d.ts +37 -3
  330. package/lib/tree/tree.css +34 -0
  331. package/lib/tree/tree.d.ts +31 -5
  332. package/lib/tree/tree.less +41 -2
  333. package/lib/tree/tree.variable.css +36 -1
  334. package/lib/tree/use-array-move.d.ts +6 -0
  335. package/lib/tree/use-node-action.d.ts +3 -1
  336. package/lib/tree/use-node-attribute.d.ts +3 -0
  337. package/lib/upload/index.js +8 -8
  338. package/lib/upload/upload.variable.css +2 -1
  339. package/lib/virtual-render/index.js +7 -7
  340. package/lib/virtual-render/virtual-render.variable.css +2 -1
  341. package/lib/volar.components.d.ts +2 -1
  342. package/package.json +13 -2
  343. package/dist/style.css +0 -1
@@ -692,7 +692,7 @@ const shared_namespaceObject = x({ ["PlacementEnum"]: () => __WEBPACK_EXTERNAL_M
692
692
  ;// CONCATENATED MODULE: external "vue"
693
693
  var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
694
694
  var external_vue_y = x => () => x
695
- const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["Teleport"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Teleport, ["Text"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Text, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createApp"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createApp, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["h"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.h, ["isVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.isVNode, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["render"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.render, ["resolveDirective"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective, ["toRefs"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRefs, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
695
+ const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["Teleport"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Teleport, ["Text"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Text, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createApp"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createApp, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["h"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.h, ["isVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.isVNode, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["render"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.render, ["toRefs"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRefs, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch });
696
696
  ;// CONCATENATED MODULE: ../../packages/directives/src/clickoutside.ts
697
697
  function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
698
698
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
@@ -701,7 +701,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
701
701
  * Tencent is pleased to support the open source community by making
702
702
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
703
703
  *
704
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
704
+ * Copyright (C) 2025 Tencent. All rights reserved.
705
705
  *
706
706
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
707
707
  *
@@ -839,7 +839,7 @@ const popover_namespaceObject = popover_x({ ["$bkPopover"]: () => __WEBPACK_EXTE
839
839
  * Tencent is pleased to support the open source community by making
840
840
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
841
841
  *
842
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
842
+ * Copyright (C) 2025 Tencent. All rights reserved.
843
843
  *
844
844
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
845
845
  *
@@ -951,7 +951,7 @@ var normalize_wheel_default = /*#__PURE__*/__webpack_require__.n(normalize_wheel
951
951
  * Tencent is pleased to support the open source community by making
952
952
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
953
953
  *
954
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
954
+ * Copyright (C) 2025 Tencent. All rights reserved.
955
955
  *
956
956
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
957
957
  *
@@ -1074,7 +1074,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
1074
1074
  * Tencent is pleased to support the open source community by making
1075
1075
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1076
1076
  *
1077
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1077
+ * Copyright (C) 2025 Tencent. All rights reserved.
1078
1078
  *
1079
1079
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1080
1080
  *
@@ -1129,9 +1129,6 @@ var tooltips = {
1129
1129
  hide(el);
1130
1130
  }, 100);
1131
1131
  });
1132
- el.addEventListener('click', function () {
1133
- hide(el);
1134
- });
1135
1132
  popper.addEventListener('mouseleave', function () {
1136
1133
  clearTimeout(delayTimeout);
1137
1134
  hideTimeout = setTimeout(function () {
@@ -1145,7 +1142,7 @@ var tooltips = {
1145
1142
  show(el);
1146
1143
  clearTimeout(delayTimeout);
1147
1144
  }, opts.delay);
1148
- } else if (popper.hasAttribute('data-show')) {
1145
+ } else if (!el.contains(event.target) && popper.hasAttribute('data-show')) {
1149
1146
  hide(el);
1150
1147
  }
1151
1148
  });
@@ -1254,6 +1251,7 @@ function renderArrow() {
1254
1251
  * @returns popper实例
1255
1252
  */
1256
1253
  function createPopperInstance(el, popper) {
1254
+ if (!tooltips_nodeList.get(el)) return;
1257
1255
  var _nodeList$get = tooltips_nodeList.get(el),
1258
1256
  opts = _nodeList$get.opts;
1259
1257
  var placement = opts.placement,
@@ -1294,6 +1292,7 @@ function createPopperInstance(el, popper) {
1294
1292
  * @param el
1295
1293
  */
1296
1294
  function show(el) {
1295
+ if (!tooltips_nodeList.get(el)) return;
1297
1296
  var _nodeList$get2 = tooltips_nodeList.get(el),
1298
1297
  popper = _nodeList$get2.popper,
1299
1298
  opts = _nodeList$get2.opts;
@@ -1369,7 +1368,7 @@ const external_overflow_title_namespaceObject = external_overflow_title_x({ });
1369
1368
  * Tencent is pleased to support the open source community by making
1370
1369
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1371
1370
  *
1372
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1371
+ * Copyright (C) 2025 Tencent. All rights reserved.
1373
1372
  *
1374
1373
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1375
1374
  *
@@ -1407,7 +1406,7 @@ const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () =>
1407
1406
  * Tencent is pleased to support the open source community by making
1408
1407
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1409
1408
  *
1410
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1409
+ * Copyright (C) 2025 Tencent. All rights reserved.
1411
1410
  *
1412
1411
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1413
1412
  *
@@ -1448,7 +1447,7 @@ const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () =>
1448
1447
  * Tencent is pleased to support the open source community by making
1449
1448
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1450
1449
  *
1451
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1450
+ * Copyright (C) 2025 Tencent. All rights reserved.
1452
1451
  *
1453
1452
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1454
1453
  *
@@ -1493,7 +1492,7 @@ var EMIT_EVENT_TYPES = _defineProperty(_defineProperty(_defineProperty(_definePr
1493
1492
  * Tencent is pleased to support the open source community by making
1494
1493
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1495
1494
  *
1496
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1495
+ * Copyright (C) 2025 Tencent. All rights reserved.
1497
1496
  *
1498
1497
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1499
1498
  *
@@ -1548,7 +1547,7 @@ var EMIT_EVENT_TYPES = _defineProperty(_defineProperty(_defineProperty(_definePr
1548
1547
  var refContent = (0,external_vue_namespaceObject.ref)(null);
1549
1548
  var refTimer = (0,external_vue_namespaceObject.ref)(null);
1550
1549
  var handleClick = function handleClick(evt) {
1551
- evt.stopPropagation();
1550
+ // evt.stopPropagation();
1552
1551
  emit('click', evt);
1553
1552
  };
1554
1553
  var resetPointerEvent = function resetPointerEvent() {
@@ -1663,7 +1662,7 @@ var PopoverProps = {
1663
1662
  /**
1664
1663
  * 弹出内容绑定元素
1665
1664
  */
1666
- boundary: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string.def('parent'), shared_namespaceObject.PropTypes.instanceOf(HTMLElement)]),
1665
+ boundary: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string.def('parent'), shared_namespaceObject.PropTypes.instanceOf(HTMLElement)]).def('body'),
1667
1666
  zIndex: shared_namespaceObject.PropTypes.number.def(undefined),
1668
1667
  disableTeleport: shared_namespaceObject.PropTypes.bool.def(false),
1669
1668
  /**
@@ -1723,7 +1722,7 @@ var PopoverProps = {
1723
1722
  * Tencent is pleased to support the open source community by making
1724
1723
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1725
1724
  *
1726
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1725
+ * Copyright (C) 2025 Tencent. All rights reserved.
1727
1726
  *
1728
1727
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1729
1728
  *
@@ -1758,7 +1757,7 @@ var PopoverProps = {
1758
1757
  * Tencent is pleased to support the open source community by making
1759
1758
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1760
1759
  *
1761
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1760
+ * Copyright (C) 2025 Tencent. All rights reserved.
1762
1761
  *
1763
1762
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1764
1763
  *
@@ -3886,7 +3885,7 @@ function v4(options, buf, offset) {
3886
3885
  * Tencent is pleased to support the open source community by making
3887
3886
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
3888
3887
  *
3889
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
3888
+ * Copyright (C) 2025 Tencent. All rights reserved.
3890
3889
  *
3891
3890
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
3892
3891
  *
@@ -3960,7 +3959,7 @@ function use_floating_objectSpread(e) { for (var r = 1; r < arguments.length; r+
3960
3959
  * Tencent is pleased to support the open source community by making
3961
3960
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
3962
3961
  *
3963
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
3962
+ * Copyright (C) 2025 Tencent. All rights reserved.
3964
3963
  *
3965
3964
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
3966
3965
  *
@@ -4177,6 +4176,25 @@ function use_floating_objectSpread(e) { for (var r = 1; r < arguments.length; r+
4177
4176
  }, {});
4178
4177
  var contentClass = "".concat(customThemeCls);
4179
4178
  var cleanup = null;
4179
+ // 清理所有定时器的函数
4180
+ var clearAllTimers = function clearAllTimers() {
4181
+ if (popHideTimerId) {
4182
+ clearTimeout(popHideTimerId);
4183
+ popHideTimerId = undefined;
4184
+ }
4185
+ if (popShowTimerId) {
4186
+ clearTimeout(popShowTimerId);
4187
+ popShowTimerId = undefined;
4188
+ }
4189
+ };
4190
+ // 包装 cleanup 函数,确保在清理时也清理定时器
4191
+ var wrappedCleanup = function wrappedCleanup() {
4192
+ clearAllTimers();
4193
+ if (cleanup) {
4194
+ cleanup();
4195
+ cleanup = null;
4196
+ }
4197
+ };
4180
4198
  var getRoundPixelVal = function getRoundPixelVal(val) {
4181
4199
  var dpr = window.devicePixelRatio || 1;
4182
4200
  return Math.round(val * dpr) / dpr || 0;
@@ -4227,9 +4245,35 @@ function use_floating_objectSpread(e) { for (var r = 1; r < arguments.length; r+
4227
4245
  }
4228
4246
  };
4229
4247
  var createPopInstance = function createPopInstance() {
4248
+ var retryCount = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
4230
4249
  var _resolvePopElements = resolvePopElements(),
4231
4250
  elReference = _resolvePopElements.elReference,
4232
4251
  elContent = _resolvePopElements.elContent;
4252
+ // 检查元素是否存在,如果不存在则延迟创建实例
4253
+ // 这通常发生在 renderDirective = 'show' 时,Content 通过 Teleport 渲染,可能还未完全挂载
4254
+ if (!elReference || !elContent) {
4255
+ // 限制重试次数,避免无限循环
4256
+ if (retryCount >= 10) {
4257
+ console.warn('[Popover] Failed to create popover instance: elements not found after retries');
4258
+ return;
4259
+ }
4260
+ // 使用 nextTick 等待 DOM 更新完成,特别是等待 Teleport 完成
4261
+ (0,external_vue_namespaceObject.nextTick)(function () {
4262
+ createPopInstance(retryCount + 1);
4263
+ });
4264
+ return;
4265
+ }
4266
+ // 确保元素已经挂载到 DOM 中(对于 Teleport 渲染的元素很重要)
4267
+ if (!elReference.isConnected || !elContent.isConnected) {
4268
+ if (retryCount >= 10) {
4269
+ console.warn('[Popover] Failed to create popover instance: elements not connected to DOM after retries');
4270
+ return;
4271
+ }
4272
+ (0,external_vue_namespaceObject.nextTick)(function () {
4273
+ createPopInstance(retryCount + 1);
4274
+ });
4275
+ return;
4276
+ }
4233
4277
  cleanup = autoUpdate(elReference, elContent, function () {
4234
4278
  if (localIsShow.value) {
4235
4279
  updatePopover(null, props);
@@ -4282,6 +4326,10 @@ function use_floating_objectSpread(e) { for (var r = 1; r < arguments.length; r+
4282
4326
  var delay = resolvePopoverDelay()[0];
4283
4327
  // 设置settimeout避免hidePopover导致显示问题
4284
4328
  popShowTimerId = setTimeout(function () {
4329
+ // 检查组件是否仍然存在,避免在组件卸载后更新状态
4330
+ if (!refContent.value) {
4331
+ return;
4332
+ }
4285
4333
  // if (popHideTimerId) {
4286
4334
  // clearTimeout(popHideTimerId);
4287
4335
  // }
@@ -4293,6 +4341,10 @@ function use_floating_objectSpread(e) { for (var r = 1; r < arguments.length; r+
4293
4341
  var hidePopover = function hidePopover() {
4294
4342
  var delay = resolvePopoverDelay()[1];
4295
4343
  popHideTimerId = setTimeout(function () {
4344
+ // 检查组件是否仍然存在,避免在组件卸载后更新状态
4345
+ if (!refContent.value) {
4346
+ return;
4347
+ }
4296
4348
  popShowTimerId && clearTimeout(popShowTimerId);
4297
4349
  isMouseenter = false;
4298
4350
  localIsShow.value = false;
@@ -4301,20 +4353,34 @@ function use_floating_objectSpread(e) { for (var r = 1; r < arguments.length; r+
4301
4353
  var handlePopoverShow = function handlePopoverShow() {
4302
4354
  var _refContent$value2;
4303
4355
  var elContent = resolveTargetElement((_refContent$value2 = refContent.value) === null || _refContent$value2 === void 0 ? void 0 : _refContent$value2.$el);
4356
+ // 检查元素是否存在,避免在 null 上访问 style 属性
4357
+ if (!elContent) {
4358
+ return;
4359
+ }
4304
4360
  elContent.style.setProperty('display', 'block');
4305
4361
  elContent.style.setProperty('z-index', "".concat(props.zIndex ? props.zIndex : shared_namespaceObject.bkZIndexManager.getPopperIndex()));
4306
4362
  updatePopover();
4307
- ctx.emit(EMIT_EVENTS.CONTENT_AfterShow, {
4308
- isShow: true
4309
- });
4363
+ // 检查 ctx 是否存在,避免在 null 上调用 emit
4364
+ if (ctx !== null && ctx !== void 0 && ctx.emit) {
4365
+ ctx.emit(EMIT_EVENTS.CONTENT_AfterShow, {
4366
+ isShow: true
4367
+ });
4368
+ }
4310
4369
  };
4311
4370
  var handlePopoverHide = function handlePopoverHide() {
4312
4371
  var _refContent$value3;
4313
4372
  var elContent = resolveTargetElement((_refContent$value3 = refContent.value) === null || _refContent$value3 === void 0 ? void 0 : _refContent$value3.$el);
4373
+ // 检查元素是否存在,避免在 null 上访问 style 属性
4374
+ if (!elContent) {
4375
+ return;
4376
+ }
4314
4377
  elContent.style.setProperty('display', 'none');
4315
- ctx.emit(EMIT_EVENTS.CONTENT_AfterHidden, {
4316
- isShow: false
4317
- });
4378
+ // 检查 ctx 是否存在,避免在 null 上调用 emit
4379
+ if (ctx !== null && ctx !== void 0 && ctx.emit) {
4380
+ ctx.emit(EMIT_EVENTS.CONTENT_AfterHidden, {
4381
+ isShow: false
4382
+ });
4383
+ }
4318
4384
  };
4319
4385
  var triggerPopover = function triggerPopover() {
4320
4386
  if (!localIsShow.value) {
@@ -4353,13 +4419,17 @@ function use_floating_objectSpread(e) { for (var r = 1; r < arguments.length; r+
4353
4419
  * 例如:鼠标移入内容区域,则取消弹出内容隐藏操作
4354
4420
  */
4355
4421
  var emitPopContentMouseEnter = function emitPopContentMouseEnter(e) {
4356
- ctx.emit(EMIT_EVENTS.CONTENT_MOUSEENTER, e);
4422
+ if (ctx !== null && ctx !== void 0 && ctx.emit) {
4423
+ ctx.emit(EMIT_EVENTS.CONTENT_MOUSEENTER, e);
4424
+ }
4357
4425
  };
4358
4426
  /**
4359
4427
  * 弹出内容鼠标移出事件
4360
4428
  */
4361
4429
  var emitPopContentMouseLeave = function emitPopContentMouseLeave(e) {
4362
- ctx.emit(EMIT_EVENTS.CONTENT_MOUSELEAVE, e);
4430
+ if (ctx !== null && ctx !== void 0 && ctx.emit) {
4431
+ ctx.emit(EMIT_EVENTS.CONTENT_MOUSELEAVE, e);
4432
+ }
4363
4433
  };
4364
4434
  var resolveTriggerEvents = function resolveTriggerEvents() {
4365
4435
  var _triggerEvents$props$;
@@ -4412,7 +4482,7 @@ function use_floating_objectSpread(e) { for (var r = 1; r < arguments.length; r+
4412
4482
  getFullscreenRoot: getFullscreenRoot,
4413
4483
  stopHide: stopHide,
4414
4484
  localIsShow: localIsShow,
4415
- cleanup: cleanup
4485
+ cleanup: wrappedCleanup
4416
4486
  };
4417
4487
  });
4418
4488
  ;// CONCATENATED MODULE: ../../packages/popover/src/use-popper-id.ts
@@ -4420,7 +4490,7 @@ function use_floating_objectSpread(e) { for (var r = 1; r < arguments.length; r+
4420
4490
  * Tencent is pleased to support the open source community by making
4421
4491
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
4422
4492
  *
4423
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
4493
+ * Copyright (C) 2025 Tencent. All rights reserved.
4424
4494
  *
4425
4495
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
4426
4496
  *
@@ -4443,10 +4513,11 @@ function use_floating_objectSpread(e) { for (var r = 1; r < arguments.length; r+
4443
4513
  */
4444
4514
 
4445
4515
 
4446
- var popContainerId = null;
4447
- var parentNodeReferId = null;
4516
+ var popContainerId = "id_".concat(esm_browser_v4());
4448
4517
  /* harmony default export */ const use_popper_id = (function (props) {
4449
4518
  var prefix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '#';
4519
+ // 为每个 popover 实例生成独立的 parentNodeReferId,避免嵌套时 ID 冲突
4520
+ var parentNodeReferId = "id_".concat(esm_browser_v4());
4450
4521
  var getPrefixId = function getPrefixId(root) {
4451
4522
  var resolvedBoundary = null;
4452
4523
  var resolveBoundary = function resolveBoundary(fn) {
@@ -4455,8 +4526,7 @@ var parentNodeReferId = null;
4455
4526
  }
4456
4527
  };
4457
4528
  var resolveParentBoundary = function resolveParentBoundary() {
4458
- if (/^parent$/i.test(props.boundary)) {
4459
- resolvedBoundary = "".concat(prefix).concat(popContainerId);
4529
+ if (/^parent$/i.test(props.boundary) || !props.boundary) {
4460
4530
  var _ref = root || {},
4461
4531
  parentNode = _ref.parentNode;
4462
4532
  if (parentNode !== null && parentNode !== void 0 && parentNode.parentNode) {
@@ -4466,43 +4536,62 @@ var parentNodeReferId = null;
4466
4536
  }
4467
4537
  };
4468
4538
  var resolveCommonBoundary = function resolveCommonBoundary() {
4469
- if (!/^body$/i.test(props.boundary)) {
4470
- if (typeof props.boundary === 'string') {
4471
- if (!isAvailableId(props.boundary)) {
4472
- // console.error('props.boundary is not available selector');
4473
- resolvedBoundary = 'body';
4474
- return;
4475
- }
4476
- resolvedBoundary = props.boundary;
4477
- return;
4478
- }
4479
- if (utils_isElement(props.boundary)) {
4480
- resolvedBoundary = props.boundary;
4481
- return;
4482
- }
4539
+ // 如果 boundary 是字符串 'body',使用动态创建的 popContainer
4540
+ if (typeof props.boundary === 'string' && /^body$/i.test(props.boundary)) {
4541
+ resolvedBoundary = "".concat(prefix).concat(popContainerId);
4542
+ return;
4543
+ }
4544
+ // 如果 boundary 是 document.body 对象,使用动态创建的 popContainer
4545
+ if (props.boundary === document.body) {
4546
+ resolvedBoundary = "".concat(prefix).concat(popContainerId);
4547
+ return;
4548
+ }
4549
+ // 处理其他字符串选择器,直接使用
4550
+ if (typeof props.boundary === 'string') {
4551
+ resolvedBoundary = props.boundary;
4552
+ return;
4553
+ }
4554
+ // 处理其他 HTMLElement 对象,直接使用
4555
+ if (utils_isElement(props.boundary)) {
4556
+ resolvedBoundary = props.boundary;
4557
+ return;
4483
4558
  }
4484
4559
  };
4485
4560
  resolveBoundary(resolveParentBoundary);
4486
4561
  resolveBoundary(resolveCommonBoundary);
4562
+ // 默认降级逻辑
4487
4563
  resolveBoundary(function () {
4488
- resolvedBoundary = typeof props.boundary === 'string' ? props.boundary : "".concat(prefix).concat(popContainerId);
4564
+ resolvedBoundary = "".concat(prefix).concat(popContainerId);
4489
4565
  });
4490
4566
  return resolvedBoundary;
4491
4567
  };
4492
- if (popContainerId === null || !isAvailableId("#".concat(popContainerId))) {
4493
- popContainerId = "id_".concat(esm_browser_v4());
4568
+ // 确保全局 popContainer 容器存在
4569
+ if (!isAvailableId("#".concat(popContainerId))) {
4494
4570
  var popContainer = document.createElement('div');
4495
4571
  popContainer.setAttribute('id', popContainerId);
4496
4572
  popContainer.setAttribute('data-popper-id', popContainerId);
4497
4573
  document.body.append(popContainer);
4498
4574
  }
4499
- if (parentNodeReferId === null) {
4500
- parentNodeReferId = "id_".concat(esm_browser_v4());
4501
- }
4575
+ // 清理父节点上的 data-pnode-id 属性
4576
+ var clearParentNodeId = function clearParentNodeId(root) {
4577
+ if (/^parent$/i.test(props.boundary)) {
4578
+ var _ref2 = root || {},
4579
+ parentNode = _ref2.parentNode;
4580
+ if (parentNode !== null && parentNode !== void 0 && parentNode.parentNode) {
4581
+ var attr = parentNode.parentNode.getAttribute('data-pnode-id');
4582
+ // 只清理当前实例设置的属性
4583
+ if (attr === parentNodeReferId) {
4584
+ parentNode.parentNode.removeAttribute('data-pnode-id');
4585
+ }
4586
+ }
4587
+ }
4588
+ };
4502
4589
  return {
4503
4590
  popContainerId: popContainerId,
4504
4591
  prefixId: getPrefixId(),
4505
- getPrefixId: getPrefixId
4592
+ getPrefixId: getPrefixId,
4593
+ parentNodeReferId: parentNodeReferId,
4594
+ clearParentNodeId: clearParentNodeId
4506
4595
  };
4507
4596
  });
4508
4597
  ;// CONCATENATED MODULE: ../../packages/popover/src/use-popover-init.ts
@@ -4511,7 +4600,7 @@ var parentNodeReferId = null;
4511
4600
  * Tencent is pleased to support the open source community by making
4512
4601
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
4513
4602
  *
4514
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
4603
+ * Copyright (C) 2025 Tencent. All rights reserved.
4515
4604
  *
4516
4605
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
4517
4606
  *
@@ -4584,9 +4673,23 @@ var parentNodeReferId = null;
4584
4673
  }
4585
4674
  };
4586
4675
  var addEventToPopTargetEl = function addEventToPopTargetEl() {
4676
+ var retryCount = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
4587
4677
  var _resolvePopElements = resolvePopElements(),
4588
4678
  elReference = _resolvePopElements.elReference,
4589
4679
  elContent = _resolvePopElements.elContent;
4680
+ // 检查元素是否存在,如果不存在则延迟执行
4681
+ // 这通常发生在 renderDirective = 'show' 时,Content 通过 Teleport 渲染,可能还未完全挂载
4682
+ if (!elReference) {
4683
+ if (retryCount >= 10) {
4684
+ console.warn('[Popover] Failed to add events: reference element not found after retries');
4685
+ return;
4686
+ }
4687
+ // 使用 nextTick 等待 DOM 更新完成
4688
+ (0,external_vue_namespaceObject.nextTick)(function () {
4689
+ addEventToPopTargetEl(retryCount + 1);
4690
+ });
4691
+ return;
4692
+ }
4590
4693
  storeEvents = resolveTriggerEvents();
4591
4694
  storeEvents.forEach(function (storeEvent) {
4592
4695
  if (Array.isArray(storeEvent)) {
@@ -4595,11 +4698,18 @@ var parentNodeReferId = null;
4595
4698
  var content = storeEvent.content,
4596
4699
  reference = storeEvent.reference;
4597
4700
  addEventToTargetEl(elReference, reference);
4598
- addEventToTargetEl(elContent, content);
4701
+ // elContent 可能为 null(当 renderDirective = 'show' 且 Content 还未挂载时)
4702
+ if (elContent) {
4703
+ addEventToTargetEl(elContent, content);
4704
+ }
4599
4705
  }
4600
4706
  });
4601
4707
  };
4602
4708
  var addEventToTargetEl = function addEventToTargetEl(target, evets) {
4709
+ // 检查 target 是否存在,避免在 null 上调用 addEventListener
4710
+ if (!target) {
4711
+ return;
4712
+ }
4603
4713
  evets.forEach(function (_ref2) {
4604
4714
  var _ref3 = _slicedToArray(_ref2, 2),
4605
4715
  event = _ref3[0],
@@ -4665,13 +4775,18 @@ var parentNodeReferId = null;
4665
4775
  var _fullScreenTarget$val;
4666
4776
  var _ref10 = elReference || root || {},
4667
4777
  parentNode = _ref10.parentNode;
4668
- boundary.value = (_fullScreenTarget$val = fullScreenTarget === null || fullScreenTarget === void 0 ? void 0 : fullScreenTarget.value) !== null && _fullScreenTarget$val !== void 0 ? _fullScreenTarget$val : getClosestFullscreenElement(parentNode);
4778
+ var fullscreenBoundary = (_fullScreenTarget$val = fullScreenTarget === null || fullScreenTarget === void 0 ? void 0 : fullScreenTarget.value) !== null && _fullScreenTarget$val !== void 0 ? _fullScreenTarget$val : getClosestFullscreenElement(parentNode);
4779
+ // 确保 boundary 始终有一个有效值,避免 Teleport 的 to 属性为 undefined
4780
+ boundary.value = fullscreenBoundary || 'body';
4669
4781
  return;
4670
4782
  }
4671
- boundary.value = getPrefixId(root || elReference);
4783
+ var resolvedBoundary = getPrefixId(root || elReference);
4784
+ // 确保 boundary 始终有一个有效值,避免 Teleport 的 to 属性为 undefined
4785
+ boundary.value = resolvedBoundary || 'body';
4672
4786
  };
4673
4787
  var _usePopperId = use_popper_id(props, '#'),
4674
- getPrefixId = _usePopperId.getPrefixId;
4788
+ getPrefixId = _usePopperId.getPrefixId,
4789
+ clearParentNodeId = _usePopperId.clearParentNodeId;
4675
4790
  var setFullscreenTag = function setFullscreenTag() {
4676
4791
  var _fullScreenTarget$val2;
4677
4792
  fullScreenTarget === null || fullScreenTarget === void 0 || (_fullScreenTarget$val2 = fullScreenTarget.value) === null || _fullScreenTarget$val2 === void 0 || _fullScreenTarget$val2.setAttribute('data-fllsrn-id', fullscreenReferId);
@@ -4683,7 +4798,8 @@ var parentNodeReferId = null;
4683
4798
  element === null || element === void 0 || element.removeAttribute('data-fllsrn-id');
4684
4799
  });
4685
4800
  };
4686
- var boundary = (0,external_vue_namespaceObject.ref)();
4801
+ // 初始化 boundary 'body',避免 Teleport 的 to 属性为 undefined
4802
+ var boundary = (0,external_vue_namespaceObject.ref)('body');
4687
4803
  var beforeInstanceUnmount = function beforeInstanceUnmount() {
4688
4804
  removeEventListener();
4689
4805
  };
@@ -4701,29 +4817,119 @@ var parentNodeReferId = null;
4701
4817
  updateBoundary();
4702
4818
  updatePopover(null, props);
4703
4819
  };
4820
+ // 监听父元素(Modal/Dialog)的可见性变化
4821
+ var parentVisibilityObserver = null;
4704
4822
  var onMountedFn = function onMountedFn() {
4705
4823
  if (props.disabled) {
4706
4824
  return;
4707
4825
  }
4708
- initPopInstance();
4709
4826
  if (isElementFullScreen()) {
4710
4827
  var query = "[data-fllsrn-id=".concat(fullscreenReferId, "]");
4711
4828
  var target = getFullscreenRoot(query);
4712
4829
  updateFullscreen(target);
4713
4830
  }
4831
+ // 先更新 boundary,确保在初始化 popover 实例之前 boundary 已正确设置
4714
4832
  updateBoundary();
4833
+ initPopInstance();
4715
4834
  document.body.addEventListener('fullscreenchange', handleFullscreenChange);
4835
+ document.addEventListener('click', handleClickOutside);
4836
+ // 监听父元素的可见性变化
4837
+ var _resolvePopElements4 = resolvePopElements(),
4838
+ elReference = _resolvePopElements4.elReference,
4839
+ root = _resolvePopElements4.root;
4840
+ var element = elReference || root;
4841
+ if (element) {
4842
+ var targetNode = element.closest('.bk-modal, .bk-dialog');
4843
+ if (targetNode) {
4844
+ parentVisibilityObserver = new MutationObserver(function () {
4845
+ if (checkParentVisibility() && localIsShow.value) {
4846
+ hideFn();
4847
+ }
4848
+ });
4849
+ parentVisibilityObserver.observe(targetNode, {
4850
+ attributes: true,
4851
+ attributeFilter: ['style', 'class'],
4852
+ subtree: true
4853
+ });
4854
+ }
4855
+ }
4716
4856
  };
4717
4857
  var onUnmountedFn = function onUnmountedFn() {
4718
4858
  beforeInstanceUnmount();
4859
+ // 清理父节点上的 data-pnode-id 属性
4860
+ var _resolvePopElements5 = resolvePopElements(),
4861
+ root = _resolvePopElements5.root;
4862
+ clearParentNodeId(root);
4719
4863
  document.body.removeEventListener('fullscreenchange', handleFullscreenChange);
4864
+ document.removeEventListener('click', handleClickOutside);
4865
+ // 清理父元素可见性监听器
4866
+ if (parentVisibilityObserver) {
4867
+ parentVisibilityObserver.disconnect();
4868
+ parentVisibilityObserver = null;
4869
+ }
4870
+ };
4871
+ var isClickInside = function isClickInside(target) {
4872
+ var _refContent$value$$el, _refContent$value, _refContent$value$con;
4873
+ return (_refContent$value$$el = (_refContent$value = refContent.value) === null || _refContent$value === void 0 || (_refContent$value = _refContent$value.$el) === null || _refContent$value === void 0 || (_refContent$value$con = _refContent$value.contains) === null || _refContent$value$con === void 0 ? void 0 : _refContent$value$con.call(_refContent$value, target)) !== null && _refContent$value$$el !== void 0 ? _refContent$value$$el : false;
4874
+ };
4875
+ /**
4876
+ * 检查父元素(Modal/Dialog)是否被隐藏
4877
+ * 如果父元素被隐藏,应该关闭 Popover
4878
+ */
4879
+ var checkParentVisibility = function checkParentVisibility() {
4880
+ if (!localIsShow.value) return false;
4881
+ var _resolvePopElements6 = resolvePopElements(),
4882
+ elReference = _resolvePopElements6.elReference,
4883
+ root = _resolvePopElements6.root;
4884
+ var element = elReference || root;
4885
+ if (!element) return false;
4886
+ // 查找最近的 Modal 或 Dialog 父元素
4887
+ var parent = element.parentElement;
4888
+ while (parent && parent !== document.body) {
4889
+ if (parent.classList.contains('bk-modal') || parent.classList.contains('bk-dialog')) {
4890
+ // 检查 Modal wrapper 是否被隐藏(Dialog 关闭时 wrapper 会被 v-show 隐藏)
4891
+ var wrapper = parent.querySelector('.bk-modal-wrapper');
4892
+ if (wrapper) {
4893
+ var wrapperStyle = window.getComputedStyle(wrapper);
4894
+ if (wrapperStyle.display === 'none' || wrapperStyle.visibility === 'hidden') {
4895
+ return true; // 父元素被隐藏
4896
+ }
4897
+ }
4898
+ // 检查父元素本身是否被隐藏
4899
+ var style = window.getComputedStyle(parent);
4900
+ if (style.display === 'none' || style.visibility === 'hidden') {
4901
+ return true; // 父元素被隐藏
4902
+ }
4903
+ }
4904
+ parent = parent.parentElement;
4905
+ }
4906
+ return false;
4720
4907
  };
4721
- var handleClickOutside = function handleClickOutside(_e) {
4722
- var hideIgnoreReference = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
4908
+ /**
4909
+ * 处理点击外部区域的事件
4910
+ * @param e - 事件对象
4911
+ * @param hideIgnoreReference - 是否忽略隐藏参考元素
4912
+ * @returns
4913
+ */
4914
+ var handleClickOutside = function handleClickOutside(e) {
4915
+ var target = e.target;
4916
+ if (isClickInside(target)) {
4917
+ e.preventDefault();
4918
+ e.stopPropagation();
4919
+ e.stopImmediatePropagation();
4920
+ return;
4921
+ }
4922
+ // 检查父元素(Modal/Dialog)是否被隐藏,如果隐藏则关闭 Popover
4923
+ if (checkParentVisibility()) {
4924
+ if (localIsShow.value) {
4925
+ hideFn();
4926
+ }
4927
+ return;
4928
+ }
4723
4929
  var commonFunc = function commonFunc() {
4724
4930
  ctx.emit(EMIT_EVENTS.CLICK_OUTSIDE, {
4725
4931
  isShow: localIsShow.value,
4726
- event: _e
4932
+ event: e
4727
4933
  });
4728
4934
  var needExec = props.disableOutsideClick || props.always || props.disabled || props.trigger === 'manual';
4729
4935
  if (!props.forceClickoutside && needExec) {
@@ -4733,7 +4939,12 @@ var parentNodeReferId = null;
4733
4939
  hideFn();
4734
4940
  }
4735
4941
  };
4736
- if (hideIgnoreReference) {
4942
+ /**
4943
+ * 如果需要忽略隐藏参考元素,则设置一个定时器,在定时器结束后检查是否需要隐藏 popover
4944
+ * @param hideIgnoreReference - 是否忽略隐藏参考元素
4945
+ * @returns
4946
+ */
4947
+ if (props.hideIgnoreReference) {
4737
4948
  setTimeout(function () {
4738
4949
  if (ReferenceClickSharedState[uniqKey]) {
4739
4950
  ReferenceClickSharedState[uniqKey] = false;
@@ -4771,7 +4982,7 @@ var parentNodeReferId = null;
4771
4982
  * Tencent is pleased to support the open source community by making
4772
4983
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
4773
4984
  *
4774
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
4985
+ * Copyright (C) 2025 Tencent. All rights reserved.
4775
4986
  *
4776
4987
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
4777
4988
  *
@@ -4836,9 +5047,7 @@ function _isSlot(s) {
4836
5047
  }),
4837
5048
  onMountedFn = _usePopoverInit.onMountedFn,
4838
5049
  onUnmountedFn = _usePopoverInit.onUnmountedFn,
4839
- handleClickOutside = _usePopoverInit.handleClickOutside,
4840
5050
  beforeInstanceUnmount = _usePopoverInit.beforeInstanceUnmount,
4841
- updateBoundary = _usePopoverInit.updateBoundary,
4842
5051
  initPopInstance = _usePopoverInit.initPopInstance,
4843
5052
  showFn = _usePopoverInit.showFn,
4844
5053
  hideFn = _usePopoverInit.hideFn,
@@ -4868,7 +5077,6 @@ function _isSlot(s) {
4868
5077
  initPopInstance();
4869
5078
  }
4870
5079
  });
4871
- updateBoundary();
4872
5080
  (0,external_vue_namespaceObject.onMounted)(onMountedFn);
4873
5081
  (0,external_vue_namespaceObject.onBeforeUnmount)(onUnmountedFn);
4874
5082
  var isRenderModeShow = (0,external_vue_namespaceObject.computed)(function () {
@@ -4917,7 +5125,6 @@ function _isSlot(s) {
4917
5125
  isRenderModeShow: isRenderModeShow,
4918
5126
  transBoundary: transBoundary,
4919
5127
  handleClickContent: handleClickContent,
4920
- handleClickOutside: handleClickOutside,
4921
5128
  updatePopover: updatePopover,
4922
5129
  resetPopover: resetPopover,
4923
5130
  hide: hide,
@@ -4973,7 +5180,7 @@ function _isSlot(s) {
4973
5180
  "to": _this.boundary
4974
5181
  }, {
4975
5182
  "default": function _default() {
4976
- return [(0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)(content, {
5183
+ return [(0,external_vue_namespaceObject.createVNode)(content, {
4977
5184
  "ref": "refContent",
4978
5185
  "width": _this.width,
4979
5186
  "height": _this.height,
@@ -4998,9 +5205,7 @@ function _isSlot(s) {
4998
5205
  }
4999
5206
  }) : '';
5000
5207
  }
5001
- }), [[(0,external_vue_namespaceObject.resolveDirective)("clickoutside"), function (e) {
5002
- return _this.handleClickOutside(e, _this.hideIgnoreReference);
5003
- }]])];
5208
+ })];
5004
5209
  }
5005
5210
  })];
5006
5211
  }
@@ -5016,7 +5221,7 @@ function plugin_popover_objectSpread(e) { for (var r = 1; r < arguments.length;
5016
5221
  * Tencent is pleased to support the open source community by making
5017
5222
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
5018
5223
  *
5019
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
5224
+ * Copyright (C) 2025 Tencent. All rights reserved.
5020
5225
  *
5021
5226
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
5022
5227
  *
@@ -5198,7 +5403,7 @@ function createPopoverComponent(options) {
5198
5403
  * Tencent is pleased to support the open source community by making
5199
5404
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
5200
5405
  *
5201
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
5406
+ * Copyright (C) 2025 Tencent. All rights reserved.
5202
5407
  *
5203
5408
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
5204
5409
  *