bkui-vue 2.0.1-beta.11 → 2.0.1-beta.110

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 (523) hide show
  1. package/README.md +15 -0
  2. package/dist/index.cjs.js +142 -168
  3. package/dist/index.esm.js +29125 -32074
  4. package/dist/index.umd.js +142 -168
  5. package/dist/style.css +1 -1
  6. package/dist/style.variable.css +1 -1
  7. package/lib/affix/affix.variable.css +1 -0
  8. package/lib/affix/index.d.ts +111 -57
  9. package/lib/affix/index.js +24 -24
  10. package/lib/alert/alert.d.ts +5 -12
  11. package/lib/alert/alert.variable.css +1 -0
  12. package/lib/alert/index.d.ts +131 -93
  13. package/lib/alert/index.js +25 -25
  14. package/lib/animate-number/index.d.ts +96 -33
  15. package/lib/animate-number/index.js +7 -8
  16. package/lib/backtop/backtop.d.ts +1 -1
  17. package/lib/backtop/backtop.variable.css +1 -0
  18. package/lib/backtop/index.d.ts +118 -70
  19. package/lib/backtop/index.js +16 -17
  20. package/lib/badge/badge.variable.css +1 -0
  21. package/lib/badge/index.d.ts +152 -119
  22. package/lib/badge/index.js +20 -20
  23. package/lib/breadcrumb/breadcrumb.variable.css +1 -0
  24. package/lib/breadcrumb/index.d.ts +119 -67
  25. package/lib/breadcrumb/index.js +17 -17
  26. package/lib/button/button.css +188 -144
  27. package/lib/button/button.d.ts +10 -10
  28. package/lib/button/button.less +74 -71
  29. package/lib/button/button.variable.css +189 -144
  30. package/lib/button/index.d.ts +160 -124
  31. package/lib/button/index.js +26 -26
  32. package/lib/card/card.variable.css +1 -0
  33. package/lib/card/index.d.ts +157 -128
  34. package/lib/card/index.js +22 -20
  35. package/lib/cascader/cascader-panel.d.ts +6 -1
  36. package/lib/cascader/cascader.css +4 -0
  37. package/lib/cascader/cascader.d.ts +8 -4
  38. package/lib/cascader/cascader.less +5 -0
  39. package/lib/cascader/cascader.variable.css +5 -0
  40. package/lib/cascader/index.d.ts +355 -393
  41. package/lib/cascader/index.js +377 -308
  42. package/lib/cascader/interface.d.ts +1 -1
  43. package/lib/checkbox/checkbox-group.d.ts +0 -16
  44. package/lib/checkbox/checkbox.css +8 -0
  45. package/lib/checkbox/checkbox.d.ts +40 -8
  46. package/lib/checkbox/checkbox.less +12 -0
  47. package/lib/checkbox/checkbox.variable.css +9 -0
  48. package/lib/checkbox/index.d.ts +194 -127
  49. package/lib/checkbox/index.js +65 -52
  50. package/lib/checkbox/type.d.ts +1 -1
  51. package/lib/code-diff/code-diff.variable.css +1 -0
  52. package/lib/code-diff/index.d.ts +82 -65
  53. package/lib/code-diff/index.js +446 -389
  54. package/lib/collapse/collapse-panel.d.ts +5 -5
  55. package/lib/collapse/collapse.variable.css +1 -0
  56. package/lib/collapse/index.d.ts +180 -161
  57. package/lib/collapse/index.js +31 -30
  58. package/lib/collapse/props.d.ts +2 -2
  59. package/lib/collapse/utils.d.ts +2 -2
  60. package/lib/collapse-transition/collapse-transition.variable.css +1 -0
  61. package/lib/collapse-transition/index.d.ts +94 -19
  62. package/lib/collapse-transition/index.js +3 -4
  63. package/lib/color-picker/color-picker.d.ts +17 -1
  64. package/lib/color-picker/color-picker.variable.css +1 -0
  65. package/lib/color-picker/index.d.ts +168 -124
  66. package/lib/color-picker/index.js +93 -88
  67. package/lib/components.d.ts +30 -32
  68. package/lib/components.js +29 -31
  69. package/lib/config-provider/config-provider.variable.css +1 -0
  70. package/lib/config-provider/index.d.ts +228 -161
  71. package/lib/config-provider/index.js +17 -17
  72. package/lib/container/container.d.ts +1 -1
  73. package/lib/container/container.variable.css +1 -0
  74. package/lib/container/index.d.ts +85 -74
  75. package/lib/container/index.js +32 -35
  76. package/lib/date-picker/base/date-table.d.ts +1 -1
  77. package/lib/date-picker/base/month-table.d.ts +1 -1
  78. package/lib/date-picker/base/picker-dropdown.d.ts +2 -2
  79. package/lib/date-picker/base/time-spinner.d.ts +3 -3
  80. package/lib/date-picker/base/year-table.d.ts +1 -1
  81. package/lib/date-picker/date-picker.d.ts +7 -15
  82. package/lib/date-picker/date-picker.variable.css +1 -0
  83. package/lib/date-picker/index.d.ts +356 -399
  84. package/lib/date-picker/index.js +343 -297
  85. package/lib/date-picker/interface.d.ts +9 -9
  86. package/lib/date-picker/panel/date-range.d.ts +6 -6
  87. package/lib/date-picker/panel/date.d.ts +2 -2
  88. package/lib/date-picker/panel/time-range.d.ts +3 -12
  89. package/lib/date-picker/panel/time.d.ts +3 -12
  90. package/lib/date-picker/props.d.ts +1 -5
  91. package/lib/date-picker/time-picker.d.ts +7 -14
  92. package/lib/date-picker/utils.d.ts +1 -1
  93. package/lib/dialog/dialog.d.ts +47 -31
  94. package/lib/dialog/dialog.variable.css +1 -0
  95. package/lib/dialog/index.d.ts +309 -305
  96. package/lib/dialog/index.js +252 -249
  97. package/lib/dialog/props.d.ts +20 -13
  98. package/lib/directives/index.d.ts +4 -3
  99. package/lib/directives/index.js +219 -197
  100. package/lib/directives/tooltips.d.ts +1 -1
  101. package/lib/dist.index.js +2 -4
  102. package/lib/divider/divider.d.ts +5 -5
  103. package/lib/divider/divider.variable.css +1 -0
  104. package/lib/divider/index.d.ts +116 -62
  105. package/lib/divider/index.js +4 -5
  106. package/lib/divider/props.d.ts +2 -2
  107. package/lib/dropdown/dropdown-item.d.ts +1 -1
  108. package/lib/dropdown/dropdown-menu.d.ts +1 -1
  109. package/lib/dropdown/dropdown.d.ts +7 -7
  110. package/lib/dropdown/dropdown.variable.css +1 -0
  111. package/lib/dropdown/index.d.ts +144 -102
  112. package/lib/dropdown/index.js +32 -32
  113. package/lib/exception/exception.d.ts +9 -9
  114. package/lib/exception/exception.variable.css +1 -0
  115. package/lib/exception/index.d.ts +107 -46
  116. package/lib/exception/index.js +31 -31
  117. package/lib/exception/typings/index.d.ts +1 -1
  118. package/lib/fixed-navbar/fixed-navbar.variable.css +1 -0
  119. package/lib/fixed-navbar/index.d.ts +113 -59
  120. package/lib/fixed-navbar/index.js +4 -5
  121. package/lib/form/form-item.d.ts +7 -19
  122. package/lib/form/form.d.ts +3 -3
  123. package/lib/form/form.variable.css +1 -0
  124. package/lib/form/index.d.ts +139 -94
  125. package/lib/form/index.js +44 -42
  126. package/lib/form/type.d.ts +2 -2
  127. package/lib/icon/angle-double-down-line.js +17 -17
  128. package/lib/icon/angle-double-left-line.js +17 -17
  129. package/lib/icon/angle-double-left.js +17 -17
  130. package/lib/icon/angle-double-right-line.js +17 -17
  131. package/lib/icon/angle-double-right.js +17 -17
  132. package/lib/icon/angle-double-up-line.js +17 -17
  133. package/lib/icon/angle-down-fill.js +17 -17
  134. package/lib/icon/angle-down-line.js +17 -17
  135. package/lib/icon/angle-down.js +17 -17
  136. package/lib/icon/angle-left.js +17 -17
  137. package/lib/icon/angle-right.js +17 -17
  138. package/lib/icon/angle-up-fill.js +17 -17
  139. package/lib/icon/angle-up.js +17 -17
  140. package/lib/icon/archive-fill.js +17 -17
  141. package/lib/icon/arrows-left.js +17 -17
  142. package/lib/icon/arrows-right.js +17 -17
  143. package/lib/icon/assistant.js +17 -17
  144. package/lib/icon/audio-fill.js +17 -17
  145. package/lib/icon/bk.js +17 -17
  146. package/lib/icon/circle.js +17 -17
  147. package/lib/icon/close-line.js +17 -17
  148. package/lib/icon/close.js +17 -17
  149. package/lib/icon/code.js +17 -17
  150. package/lib/icon/cog-shape.js +17 -17
  151. package/lib/icon/collapse-left.js +17 -17
  152. package/lib/icon/copy-shape.js +17 -17
  153. package/lib/icon/copy.js +17 -17
  154. package/lib/icon/data-shape.js +17 -17
  155. package/lib/icon/del.js +17 -17
  156. package/lib/icon/doc-fill.js +17 -17
  157. package/lib/icon/done.js +17 -17
  158. package/lib/icon/down-shape.js +17 -17
  159. package/lib/icon/down-small.js +17 -17
  160. package/lib/icon/edit-line.js +17 -17
  161. package/lib/icon/ellipsis.js +17 -17
  162. package/lib/icon/enlarge-line.js +17 -17
  163. package/lib/icon/error.js +17 -17
  164. package/lib/icon/excel-fill.js +17 -17
  165. package/lib/icon/exclamation-circle-shape.js +17 -17
  166. package/lib/icon/eye.js +17 -17
  167. package/lib/icon/filliscreen-line.js +17 -17
  168. package/lib/icon/fix-line.js +17 -17
  169. package/lib/icon/fix-shape.js +17 -17
  170. package/lib/icon/folder-open.js +17 -17
  171. package/lib/icon/folder-shape-open.js +17 -17
  172. package/lib/icon/folder-shape.js +17 -17
  173. package/lib/icon/folder.js +17 -17
  174. package/lib/icon/funnel.js +17 -17
  175. package/lib/icon/grag-fill.js +17 -17
  176. package/lib/icon/help-document-fill.js +17 -17
  177. package/lib/icon/help-fill.js +17 -17
  178. package/lib/icon/help.js +17 -17
  179. package/lib/icon/image-fill.js +17 -17
  180. package/lib/icon/img-error.js +17 -17
  181. package/lib/icon/img-placehoulder.js +17 -17
  182. package/lib/icon/index.d.ts +11 -11
  183. package/lib/icon/index.js +11 -11
  184. package/lib/icon/info-line.js +17 -17
  185. package/lib/icon/info.js +17 -17
  186. package/lib/icon/left-shape.js +17 -17
  187. package/lib/icon/left-turn-line.js +17 -17
  188. package/lib/icon/loading.js +17 -17
  189. package/lib/icon/narrow-line.js +17 -17
  190. package/lib/icon/original.js +17 -17
  191. package/lib/icon/pdf-fill.js +17 -17
  192. package/lib/icon/play-shape.js +17 -17
  193. package/lib/icon/plus.js +17 -17
  194. package/lib/icon/ppt-fill.js +17 -17
  195. package/lib/icon/qq.js +17 -17
  196. package/lib/icon/right-shape.js +17 -17
  197. package/lib/icon/right-turn-line.js +17 -17
  198. package/lib/icon/search.js +17 -17
  199. package/lib/icon/share.js +17 -17
  200. package/lib/icon/spinner.js +17 -17
  201. package/lib/icon/success.js +17 -17
  202. package/lib/icon/switcher-loading.js +17 -17
  203. package/lib/icon/text-all.js +17 -17
  204. package/lib/icon/text-file.js +17 -17
  205. package/lib/icon/text-fill.js +17 -17
  206. package/lib/icon/transfer.js +17 -17
  207. package/lib/icon/tree-application-shape.js +17 -17
  208. package/lib/icon/unfull-screen.js +17 -17
  209. package/lib/icon/unvisible.js +17 -17
  210. package/lib/icon/up-shape.js +17 -17
  211. package/lib/icon/upload.js +17 -17
  212. package/lib/icon/video-fill.js +17 -17
  213. package/lib/icon/warn.js +17 -17
  214. package/lib/icon/weixin-pro.js +17 -17
  215. package/lib/icon/weixin.js +17 -17
  216. package/lib/image/image-viewer.d.ts +1 -1
  217. package/lib/image/image-viewer.variable.css +1 -0
  218. package/lib/image/image.variable.css +1 -0
  219. package/lib/image/index.d.ts +149 -113
  220. package/lib/image/index.js +46 -48
  221. package/lib/index.d.ts +9 -3
  222. package/lib/index.js +5 -29
  223. package/lib/info-box/index.js +250 -250
  224. package/lib/info-box/info-box.d.ts +15 -15
  225. package/lib/info-box/info-box.variable.css +1 -0
  226. package/lib/input/index.d.ts +299 -332
  227. package/lib/input/index.js +110 -561
  228. package/lib/input/input.css +23 -1
  229. package/lib/input/input.d.ts +15 -15
  230. package/lib/input/input.less +30 -1
  231. package/lib/input/input.variable.css +24 -1
  232. package/lib/link/index.d.ts +127 -78
  233. package/lib/link/index.js +5 -5
  234. package/lib/link/link.d.ts +5 -5
  235. package/lib/link/link.variable.css +1 -0
  236. package/lib/loading/index.d.ts +162 -135
  237. package/lib/loading/index.js +43 -40
  238. package/lib/loading/loading.d.ts +9 -9
  239. package/lib/loading/loading.variable.css +1 -0
  240. package/lib/locale/index.d.ts +1 -1
  241. package/lib/menu/index.d.ts +131 -51
  242. package/lib/menu/index.js +46 -27
  243. package/lib/menu/menu-group.d.ts +9 -0
  244. package/lib/menu/menu-item.d.ts +9 -0
  245. package/lib/menu/menu.css +29 -17
  246. package/lib/menu/menu.less +33 -18
  247. package/lib/menu/menu.variable.css +30 -17
  248. package/lib/menu/submenu.d.ts +1 -0
  249. package/lib/menu/submenu.variable.css +1 -0
  250. package/lib/menu/utils.d.ts +3 -3
  251. package/lib/message/index.js +43 -42
  252. package/lib/message/message.css +2 -1
  253. package/lib/message/message.less +3 -2
  254. package/lib/message/message.variable.css +3 -1
  255. package/lib/message/messageConstructor.d.ts +21 -21
  256. package/lib/modal/index.d.ts +214 -159
  257. package/lib/modal/index.js +68 -47
  258. package/lib/modal/modal.d.ts +24 -8
  259. package/lib/modal/modal.variable.css +1 -0
  260. package/lib/modal/props.mixin.d.ts +10 -3
  261. package/lib/navigation/index.d.ts +188 -152
  262. package/lib/navigation/index.js +27 -29
  263. package/lib/navigation/navigation.d.ts +1 -1
  264. package/lib/navigation/navigation.variable.css +1 -0
  265. package/lib/notify/index.js +25 -24
  266. package/lib/notify/notify.variable.css +1 -0
  267. package/lib/notify/notifyConstructor.d.ts +5 -5
  268. package/lib/overflow-title/components/overflow-title.d.ts +45 -16
  269. package/lib/overflow-title/index.d.ts +298 -328
  270. package/lib/overflow-title/index.js +85 -28
  271. package/lib/overflow-title/overflow-title.css +3 -0
  272. package/lib/overflow-title/overflow-title.less +4 -0
  273. package/lib/overflow-title/overflow-title.variable.css +3 -0
  274. package/lib/overflow-title/props.d.ts +36 -21
  275. package/lib/pagination/index.d.ts +198 -203
  276. package/lib/pagination/index.js +128 -68
  277. package/lib/pagination/pagination.css +8 -8
  278. package/lib/pagination/pagination.d.ts +0 -13
  279. package/lib/pagination/pagination.less +14 -13
  280. package/lib/pagination/pagination.variable.css +9 -8
  281. package/lib/pagination/type.d.ts +1 -1
  282. package/lib/pagination/use-limit.d.ts +1 -1
  283. package/lib/pagination/use-total.d.ts +1 -1
  284. package/lib/plugin-popover/index.js +311 -304
  285. package/lib/pop-confirm/index.d.ts +162 -148
  286. package/lib/pop-confirm/index.js +40 -35
  287. package/lib/pop-confirm/pop-confirm.css +3 -1
  288. package/lib/pop-confirm/pop-confirm.d.ts +10 -20
  289. package/lib/pop-confirm/pop-confirm.less +3 -1
  290. package/lib/pop-confirm/pop-confirm.variable.css +4 -1
  291. package/lib/pop-confirm/props.d.ts +8 -11
  292. package/lib/popover/const.d.ts +3 -3
  293. package/lib/popover/content.d.ts +6 -3
  294. package/lib/popover/index.d.ts +411 -380
  295. package/lib/popover/index.js +311 -304
  296. package/lib/popover/plugin-popover.d.ts +1 -1
  297. package/lib/popover/popover.d.ts +51 -8
  298. package/lib/popover/popover.variable.css +1 -0
  299. package/lib/popover/props.d.ts +28 -4
  300. package/lib/popover/use-floating.d.ts +2 -2
  301. package/lib/popover/use-popover-init.d.ts +2 -1
  302. package/lib/popover/utils.d.ts +2 -0
  303. package/lib/popover2/index.d.ts +83 -8
  304. package/lib/popover2/index.js +2 -2
  305. package/lib/preset.d.ts +0 -1
  306. package/lib/preset.js +0 -1
  307. package/lib/process/index.d.ts +137 -93
  308. package/lib/process/index.js +229 -229
  309. package/lib/process/process.variable.css +1 -0
  310. package/lib/progress/index.d.ts +192 -183
  311. package/lib/progress/index.js +31 -33
  312. package/lib/progress/progress.d.ts +9 -9
  313. package/lib/progress/progress.variable.css +1 -0
  314. package/lib/radio/index.d.ts +155 -106
  315. package/lib/radio/index.js +76 -63
  316. package/lib/radio/radio-button.d.ts +7 -7
  317. package/lib/radio/radio-group.d.ts +7 -7
  318. package/lib/radio/radio.d.ts +7 -7
  319. package/lib/radio/radio.variable.css +1 -0
  320. package/lib/radio/type.d.ts +1 -1
  321. package/lib/rate/index.d.ts +112 -55
  322. package/lib/rate/index.js +28 -27
  323. package/lib/rate/rate.variable.css +1 -0
  324. package/lib/resize-layout/index.d.ts +204 -157
  325. package/lib/resize-layout/index.js +54 -34
  326. package/lib/resize-layout/resize-layout.d.ts +18 -7
  327. package/lib/resize-layout/resize-layout.variable.css +1 -0
  328. package/lib/scrollbar/css/scrollbar.css +109 -0
  329. package/lib/scrollbar/css/scrollbar.less +139 -0
  330. package/lib/scrollbar/{scrollbar.variable.css → css/scrollbar.variable.css} +96 -61
  331. package/lib/scrollbar/handlers/click-rail.d.ts +2 -0
  332. package/lib/scrollbar/handlers/drag-thumb.d.ts +1 -0
  333. package/lib/scrollbar/handlers/keyboard.d.ts +2 -0
  334. package/lib/scrollbar/handlers/mouse-wheel.d.ts +2 -0
  335. package/lib/scrollbar/handlers/touch.d.ts +4 -0
  336. package/lib/scrollbar/helper/class-names.d.ts +21 -0
  337. package/lib/scrollbar/helper/css.d.ts +3 -0
  338. package/lib/scrollbar/helper/dom.d.ts +4 -0
  339. package/lib/scrollbar/helper/event-manager.d.ts +20 -0
  340. package/lib/scrollbar/helper/util.d.ts +11 -0
  341. package/lib/scrollbar/index.d.ts +133 -13
  342. package/lib/scrollbar/index.js +1380 -18482
  343. package/lib/scrollbar/process-scroll-diff.d.ts +1 -0
  344. package/lib/scrollbar/update-geometry.d.ts +8 -0
  345. package/lib/search-select/index.d.ts +946 -701
  346. package/lib/search-select/index.js +644 -486
  347. package/lib/search-select/input.d.ts +20 -8
  348. package/lib/search-select/menu.d.ts +13 -1
  349. package/lib/search-select/search-select.css +45 -47
  350. package/lib/search-select/search-select.d.ts +207 -160
  351. package/lib/search-select/search-select.less +41 -41
  352. package/lib/search-select/search-select.variable.css +46 -47
  353. package/lib/search-select/selected.d.ts +209 -127
  354. package/lib/search-select/utils.d.ts +6 -6
  355. package/lib/select/common.d.ts +4 -4
  356. package/lib/select/index.d.ts +1457 -1384
  357. package/lib/select/index.js +603 -477
  358. package/lib/select/option.d.ts +6 -6
  359. package/lib/select/select.css +9 -4
  360. package/lib/select/select.d.ts +285 -148
  361. package/lib/select/select.less +11 -4
  362. package/lib/select/select.variable.css +10 -4
  363. package/lib/select/selectTagInput.d.ts +9 -8
  364. package/lib/select/type.d.ts +10 -11
  365. package/lib/shared/frame-throttle.d.ts +15 -0
  366. package/lib/shared/index.d.ts +2 -1
  367. package/lib/shared/index.js +166 -101
  368. package/lib/shared/popover.d.ts +3 -3
  369. package/lib/shared/token.d.ts +1 -1
  370. package/lib/shared/vue-types.d.ts +50 -50
  371. package/lib/shared/z-index-manager.d.ts +6 -6
  372. package/lib/sideslider/index.d.ts +220 -182
  373. package/lib/sideslider/index.js +239 -237
  374. package/lib/sideslider/sideslider.css +7 -8
  375. package/lib/sideslider/sideslider.d.ts +24 -8
  376. package/lib/sideslider/sideslider.less +7 -8
  377. package/lib/sideslider/sideslider.variable.css +8 -8
  378. package/lib/slider/index.d.ts +210 -214
  379. package/lib/slider/index.js +246 -249
  380. package/lib/slider/slider.variable.css +1 -0
  381. package/lib/steps/index.d.ts +155 -131
  382. package/lib/steps/index.js +234 -234
  383. package/lib/steps/steps.d.ts +8 -18
  384. package/lib/steps/steps.variable.css +1 -0
  385. package/lib/styles/index.d.ts +1 -0
  386. package/lib/styles/mixins/animate.variable.css +1 -0
  387. package/lib/styles/mixins/popper.variable.css +1 -0
  388. package/lib/styles/mixins/scroll.variable.css +1 -0
  389. package/lib/styles/reset.variable.css +1 -0
  390. package/lib/styles/themes/themes.less +1 -0
  391. package/lib/swiper/index.d.ts +127 -81
  392. package/lib/swiper/index.js +23 -23
  393. package/lib/swiper/swiper.variable.css +1 -0
  394. package/lib/switcher/index.d.ts +179 -157
  395. package/lib/switcher/index.js +24 -22
  396. package/lib/switcher/switcher.d.ts +9 -9
  397. package/lib/switcher/switcher.variable.css +1 -0
  398. package/lib/tab/index.d.ts +220 -258
  399. package/lib/tab/index.js +79 -69
  400. package/lib/tab/props.d.ts +27 -52
  401. package/lib/tab/tab-nav.d.ts +26 -66
  402. package/lib/tab/tab-panel.d.ts +27 -5
  403. package/lib/tab/tab.css +64 -0
  404. package/lib/tab/tab.d.ts +10 -54
  405. package/lib/tab/tab.less +91 -4
  406. package/lib/tab/tab.variable.css +65 -0
  407. package/lib/table/components/ghost-body.d.ts +2 -0
  408. package/lib/table/components/table-cell.d.ts +22 -0
  409. package/lib/table/components/table-column.d.ts +24 -127
  410. package/lib/table/const.d.ts +23 -10
  411. package/lib/table/events.d.ts +16 -112
  412. package/lib/table/hooks/use-cell.d.ts +20 -0
  413. package/lib/table/hooks/use-checkbox-tooltip.d.ts +11 -0
  414. package/lib/table/hooks/use-column-resize.d.ts +7 -0
  415. package/lib/table/hooks/use-column-template.d.ts +5 -0
  416. package/lib/table/hooks/use-columns.d.ts +69 -0
  417. package/lib/table/{plugins → hooks}/use-draggable.d.ts +2 -2
  418. package/lib/table/hooks/use-fixed-column.d.ts +10 -0
  419. package/lib/table/hooks/use-head.d.ts +16 -0
  420. package/lib/table/hooks/use-layout.d.ts +25 -0
  421. package/lib/table/hooks/use-pagination.d.ts +16 -0
  422. package/lib/table/hooks/use-render.d.ts +21 -0
  423. package/lib/table/hooks/use-rows.d.ts +30 -0
  424. package/lib/table/hooks/use-settings.d.ts +138 -0
  425. package/lib/table/{plugins → hooks}/use-shift-key.d.ts +4 -2
  426. package/lib/table/index.d.ts +412 -1029
  427. package/lib/table/index.js +4698 -20825
  428. package/lib/table/plugins/head-filter.css +5 -0
  429. package/lib/table/plugins/head-filter.d.ts +2 -1
  430. package/lib/table/plugins/head-filter.less +4 -0
  431. package/lib/table/plugins/head-filter.variable.css +6 -0
  432. package/lib/table/plugins/head-sort.variable.css +1 -0
  433. package/lib/table/plugins/settings.css +11 -1
  434. package/lib/table/plugins/settings.less +12 -1
  435. package/lib/table/plugins/settings.variable.css +12 -1
  436. package/lib/table/props.d.ts +127 -62
  437. package/lib/table/table.css +503 -302
  438. package/lib/table/table.d.ts +51 -185
  439. package/lib/table/table.less +244 -112
  440. package/lib/table/table.variable.css +504 -302
  441. package/lib/table/utils.d.ts +44 -21
  442. package/lib/table-column/index.d.ts +156 -369
  443. package/lib/table-column/index.js +143 -62
  444. package/lib/tag/index.d.ts +147 -100
  445. package/lib/tag/index.js +21 -22
  446. package/lib/tag/tag.css +1 -1
  447. package/lib/tag/tag.d.ts +5 -5
  448. package/lib/tag/tag.less +1 -1
  449. package/lib/tag/tag.variable.css +2 -1
  450. package/lib/tag-input/common.d.ts +2 -2
  451. package/lib/tag-input/index.d.ts +595 -712
  452. package/lib/tag-input/index.js +150 -17391
  453. package/lib/tag-input/tag-input.css +12 -9
  454. package/lib/tag-input/tag-input.d.ts +60 -24
  455. package/lib/tag-input/tag-input.less +13 -9
  456. package/lib/tag-input/tag-input.variable.css +13 -9
  457. package/lib/tag-input/tag-props.d.ts +25 -2
  458. package/lib/time-picker/index.d.ts +391 -455
  459. package/lib/time-picker/time-picker.variable.css +1 -0
  460. package/lib/timeline/index.d.ts +131 -64
  461. package/lib/timeline/index.js +8 -8
  462. package/lib/timeline/timeline.variable.css +1 -0
  463. package/lib/transfer/const.d.ts +2 -2
  464. package/lib/transfer/index.d.ts +206 -191
  465. package/lib/transfer/index.js +3 -5
  466. package/lib/transfer/transfer.variable.css +1 -0
  467. package/lib/tree/constant.d.ts +22 -20
  468. package/lib/tree/index.d.ts +329 -357
  469. package/lib/tree/index.js +176 -17389
  470. package/lib/tree/props.d.ts +18 -11
  471. package/lib/tree/tree.css +103 -69
  472. package/lib/tree/tree.d.ts +16 -10
  473. package/lib/tree/tree.variable.css +104 -69
  474. package/lib/tree/use-empty.d.ts +1 -1
  475. package/lib/tree/use-node-action.d.ts +10 -9
  476. package/lib/tree/use-node-async.d.ts +2 -1
  477. package/lib/tree/use-node-attribute.d.ts +42 -34
  478. package/lib/tree/use-search.d.ts +1 -1
  479. package/lib/tree/use-tree-init.d.ts +8 -5
  480. package/lib/tree/util.d.ts +21 -21
  481. package/lib/upload/index.d.ts +294 -286
  482. package/lib/upload/index.js +398 -316
  483. package/lib/upload/props.d.ts +11 -2
  484. package/lib/upload/upload-list.d.ts +11 -1
  485. package/lib/upload/upload-trigger.d.ts +11 -1
  486. package/lib/upload/upload.d.ts +25 -4
  487. package/lib/upload/upload.type.d.ts +12 -6
  488. package/lib/upload/upload.variable.css +1 -0
  489. package/lib/upload/use-file-handler.d.ts +1 -1
  490. package/lib/virtual-render/index.d.ts +247 -373
  491. package/lib/virtual-render/index.js +223 -162
  492. package/lib/virtual-render/props.d.ts +2 -9
  493. package/lib/virtual-render/use-fix-top.d.ts +1 -1
  494. package/lib/virtual-render/use-scrollbar.d.ts +4 -17
  495. package/lib/virtual-render/v-virtual-render.d.ts +7 -1
  496. package/lib/virtual-render/virtual-render.css +96 -70
  497. package/lib/virtual-render/virtual-render.d.ts +7 -23
  498. package/lib/virtual-render/virtual-render.less +2 -11
  499. package/lib/virtual-render/virtual-render.variable.css +96 -69
  500. package/lib/volar.components.d.ts +2 -0
  501. package/package.json +17 -55
  502. package/lib/scrollbar/scrollbar-core/can-use-dom.d.ts +0 -2
  503. package/lib/scrollbar/scrollbar-core/helpers.d.ts +0 -5
  504. package/lib/scrollbar/scrollbar-core/index.d.ts +0 -241
  505. package/lib/scrollbar/scrollbar-core/mouse-wheel.d.ts +0 -5
  506. package/lib/scrollbar/scrollbar-core/scrollbar-width.d.ts +0 -1
  507. package/lib/scrollbar/scrollbar.css +0 -75
  508. package/lib/scrollbar/scrollbar.less +0 -94
  509. package/lib/table/plugins/col-group.d.ts +0 -38
  510. package/lib/table/plugins/settings.d.ts +0 -16
  511. package/lib/table/plugins/use-active-columns.d.ts +0 -16
  512. package/lib/table/plugins/use-column-resize.d.ts +0 -35
  513. package/lib/table/plugins/use-column-template.d.ts +0 -7
  514. package/lib/table/plugins/use-fixed-column.d.ts +0 -27
  515. package/lib/table/plugins/use-head-cell.d.ts +0 -7
  516. package/lib/table/plugins/use-pagination.d.ts +0 -23
  517. package/lib/table/use-attributes.d.ts +0 -62
  518. package/lib/table/use-column.d.ts +0 -275
  519. package/lib/table/use-common.d.ts +0 -1679
  520. package/lib/table/use-render.d.ts +0 -11
  521. /package/lib/table/{plugins → components}/body-empty.d.ts +0 -0
  522. /package/lib/table/{plugins → hooks}/use-observer-resize.d.ts +0 -0
  523. /package/lib/table/{plugins → hooks}/use-scroll-loading.d.ts +0 -0
@@ -5,6 +5,7 @@ import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
5
5
  import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__ from "../config-provider";
6
6
  import * as __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__ from "vue-types";
7
7
  import * as __WEBPACK_EXTERNAL_MODULE_lodash_isElement_e6b2a6ce__ from "lodash/isElement";
8
+ import * as __WEBPACK_EXTERNAL_MODULE_lodash_random_1771bfd1__ from "lodash/random";
8
9
  /******/ // The require scope
9
10
  /******/ var __webpack_require__ = {};
10
11
  /******/
@@ -39,15 +40,15 @@ __webpack_require__.d(__webpack_exports__, {
39
40
  ;// CONCATENATED MODULE: external "../shared"
40
41
  var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
41
42
  var y = x => () => x
42
- const shared_namespaceObject = x({ ["PlacementEnum"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PlacementEnum, ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["RenderType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.RenderType, ["bkZIndexManager"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.bkZIndexManager, ["placementType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.placementType, ["renderType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.renderType, ["triggerType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.triggerType, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstall });
43
+ const shared_namespaceObject = x({ ["PlacementEnum"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PlacementEnum, ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["RenderType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.RenderType, ["bkZIndexManager"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.bkZIndexManager, ["placementType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.placementType, ["renderDirectiveType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.renderDirectiveType, ["renderType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.renderType, ["triggerType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.triggerType, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstall });
43
44
  ;// CONCATENATED MODULE: external "vue"
44
45
  var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
45
46
  var external_vue_y = x => () => x
46
- 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, ["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, ["resolveDirective"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective, ["toRefs"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRefs, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
47
+ const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createApp"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createApp, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["isVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.isVNode, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["resolveDirective"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
47
48
  ;// CONCATENATED MODULE: ../../packages/directives/src/clickoutside.ts
48
- 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; } } }; }
49
- 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); }
50
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
49
+ function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, 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 o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
50
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
51
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
51
52
  /*
52
53
  * Tencent is pleased to support the open source community by making
53
54
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
@@ -202,8 +203,7 @@ const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () =>
202
203
  * IN THE SOFTWARE.
203
204
  */
204
205
 
205
-
206
- /* harmony default export */ const src_arrow = ((0,external_vue_namespaceObject.defineComponent)({
206
+ /* harmony default export */ const src_arrow = (defineComponent({
207
207
  name: 'PopArrow',
208
208
  render: function render() {
209
209
  var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
@@ -215,38 +215,38 @@ const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () =>
215
215
  }
216
216
  }));
217
217
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
218
- function _typeof(o) {
218
+ function _typeof(obj) {
219
219
  "@babel/helpers - typeof";
220
220
 
221
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
222
- return typeof o;
223
- } : function (o) {
224
- return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
225
- }, _typeof(o);
221
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
222
+ return typeof obj;
223
+ } : function (obj) {
224
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
225
+ }, _typeof(obj);
226
226
  }
227
227
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
228
228
 
229
- function toPrimitive(t, r) {
230
- if ("object" != _typeof(t) || !t) return t;
231
- var e = t[Symbol.toPrimitive];
232
- if (void 0 !== e) {
233
- var i = e.call(t, r || "default");
234
- if ("object" != _typeof(i)) return i;
229
+ function _toPrimitive(input, hint) {
230
+ if (_typeof(input) !== "object" || input === null) return input;
231
+ var prim = input[Symbol.toPrimitive];
232
+ if (prim !== undefined) {
233
+ var res = prim.call(input, hint || "default");
234
+ if (_typeof(res) !== "object") return res;
235
235
  throw new TypeError("@@toPrimitive must return a primitive value.");
236
236
  }
237
- return ("string" === r ? String : Number)(t);
237
+ return (hint === "string" ? String : Number)(input);
238
238
  }
239
239
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
240
240
 
241
241
 
242
- function toPropertyKey(t) {
243
- var i = toPrimitive(t, "string");
244
- return "symbol" == _typeof(i) ? i : String(i);
242
+ function _toPropertyKey(arg) {
243
+ var key = _toPrimitive(arg, "string");
244
+ return _typeof(key) === "symbol" ? key : String(key);
245
245
  }
246
246
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
247
247
 
248
248
  function _defineProperty(obj, key, value) {
249
- key = toPropertyKey(key);
249
+ key = _toPropertyKey(key);
250
250
  if (key in obj) {
251
251
  Object.defineProperty(obj, key, {
252
252
  value: value,
@@ -261,6 +261,7 @@ function _defineProperty(obj, key, value) {
261
261
  }
262
262
  ;// CONCATENATED MODULE: ../../packages/popover/src/const.tsx
263
263
 
264
+ var _EMIT_EVENT_TYPES;
264
265
  /* eslint-disable @typescript-eslint/naming-convention */
265
266
  /*
266
267
  * Tencent is pleased to support the open source community by making
@@ -287,14 +288,13 @@ function _defineProperty(obj, key, value) {
287
288
  * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
288
289
  * IN THE SOFTWARE.
289
290
  */
290
- // eslint-disable-next-line @typescript-eslint/naming-convention
291
291
  var EMIT_EVENTS;
292
292
  (function (EMIT_EVENTS) {
293
293
  EMIT_EVENTS["CLICK_OUTSIDE"] = "clickoutside";
294
- EMIT_EVENTS["CONTENT_MOUSEENTER"] = "contentMouseenter";
295
- EMIT_EVENTS["CONTENT_MOUSELEAVE"] = "contentMouseleave";
296
294
  EMIT_EVENTS["CONTENT_AfterHidden"] = "afterHidden";
297
295
  EMIT_EVENTS["CONTENT_AfterShow"] = "afterShow";
296
+ EMIT_EVENTS["CONTENT_MOUSEENTER"] = "contentMouseenter";
297
+ EMIT_EVENTS["CONTENT_MOUSELEAVE"] = "contentMouseleave";
298
298
  })(EMIT_EVENTS || (EMIT_EVENTS = {}));
299
299
  var EVENT_SHOW_HIDE_FN = function EVENT_SHOW_HIDE_FN(_args) {
300
300
  return true;
@@ -305,7 +305,7 @@ var EVENT_COMMON_FN = function EVENT_COMMON_FN(e) {
305
305
  var EVENT_CLICK_OUTSIDE_FN = function EVENT_CLICK_OUTSIDE_FN(_args) {
306
306
  return true;
307
307
  };
308
- var EMIT_EVENT_TYPES = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, EMIT_EVENTS.CLICK_OUTSIDE, EVENT_CLICK_OUTSIDE_FN), EMIT_EVENTS.CONTENT_MOUSEENTER, EVENT_COMMON_FN), EMIT_EVENTS.CONTENT_MOUSELEAVE, EVENT_COMMON_FN), EMIT_EVENTS.CONTENT_AfterHidden, EVENT_SHOW_HIDE_FN), EMIT_EVENTS.CONTENT_AfterShow, EVENT_SHOW_HIDE_FN);
308
+ var EMIT_EVENT_TYPES = (_EMIT_EVENT_TYPES = {}, _defineProperty(_EMIT_EVENT_TYPES, EMIT_EVENTS.CLICK_OUTSIDE, EVENT_CLICK_OUTSIDE_FN), _defineProperty(_EMIT_EVENT_TYPES, EMIT_EVENTS.CONTENT_MOUSEENTER, EVENT_COMMON_FN), _defineProperty(_EMIT_EVENT_TYPES, EMIT_EVENTS.CONTENT_MOUSELEAVE, EVENT_COMMON_FN), _defineProperty(_EMIT_EVENT_TYPES, EMIT_EVENTS.CONTENT_AfterHidden, EVENT_SHOW_HIDE_FN), _defineProperty(_EMIT_EVENT_TYPES, EMIT_EVENTS.CONTENT_AfterShow, EVENT_SHOW_HIDE_FN), _EMIT_EVENT_TYPES);
309
309
  ;// CONCATENATED MODULE: ../../packages/popover/src/content.tsx
310
310
 
311
311
  /*
@@ -335,8 +335,7 @@ var EMIT_EVENT_TYPES = _defineProperty(_defineProperty(_defineProperty(_definePr
335
335
  */
336
336
 
337
337
 
338
-
339
- /* harmony default export */ const content = ((0,external_vue_namespaceObject.defineComponent)({
338
+ /* harmony default export */ const content = (defineComponent({
340
339
  name: 'PopContent',
341
340
  props: {
342
341
  width: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.number]).def('auto'),
@@ -347,14 +346,16 @@ var EMIT_EVENT_TYPES = _defineProperty(_defineProperty(_defineProperty(_definePr
347
346
  visible: shared_namespaceObject.PropTypes.bool.def(false),
348
347
  eventDelay: shared_namespaceObject.PropTypes.number.def(0)
349
348
  },
350
- setup: function setup(props) {
349
+ emits: ['click'],
350
+ setup: function setup(props, _ref) {
351
+ var emit = _ref.emit;
351
352
  var resolveValToPix = function resolveValToPix(val) {
352
353
  if (/^\d+\.?\d*$/.test("".concat(val))) {
353
354
  return "".concat(val, "px");
354
355
  }
355
356
  return val;
356
357
  };
357
- var style = (0,external_vue_namespaceObject.computed)(function () {
358
+ var style = computed(function () {
358
359
  return {
359
360
  width: resolveValToPix(props.width),
360
361
  height: resolveValToPix(props.height),
@@ -362,8 +363,12 @@ var EMIT_EVENT_TYPES = _defineProperty(_defineProperty(_defineProperty(_definePr
362
363
  maxWidth: resolveValToPix(props.maxWidth)
363
364
  };
364
365
  });
365
- var refContent = (0,external_vue_namespaceObject.ref)(null);
366
- var refTimer = (0,external_vue_namespaceObject.ref)(null);
366
+ var refContent = ref(null);
367
+ var refTimer = ref(null);
368
+ var handleClick = function handleClick(evt) {
369
+ evt.stopPropagation();
370
+ emit('click', evt);
371
+ };
367
372
  var resetPointerEvent = function resetPointerEvent() {
368
373
  var _props$eventDelay;
369
374
  if (props.eventDelay === 0) {
@@ -379,17 +384,18 @@ var EMIT_EVENT_TYPES = _defineProperty(_defineProperty(_defineProperty(_definePr
379
384
  if (props.eventDelay === 0) {
380
385
  return;
381
386
  }
382
- (_refContent$value = refContent.value) === null || _refContent$value === void 0 || _refContent$value.style.setProperty('pointer-events', val);
387
+ (_refContent$value = refContent.value) === null || _refContent$value === void 0 ? void 0 : _refContent$value.style.setProperty('pointer-events', val);
383
388
  };
384
389
  var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
385
390
  resolveClassName = _usePrefix.resolveClassName;
386
- var contentClassName = (0,external_vue_namespaceObject.computed)(function () {
391
+ var contentClassName = computed(function () {
387
392
  return [resolveClassName('popover'), resolveClassName('pop2-content'), props.visible ? 'visible' : 'hidden', props.extCls];
388
393
  });
389
394
  return {
390
395
  style: style,
391
396
  refContent: refContent,
392
397
  contentClassName: contentClassName,
398
+ handleClick: handleClick,
393
399
  resetPointerEvent: resetPointerEvent,
394
400
  setContentPointerEvent: setContentPointerEvent
395
401
  };
@@ -406,8 +412,8 @@ var EMIT_EVENT_TYPES = _defineProperty(_defineProperty(_defineProperty(_definePr
406
412
  _this$$slots3;
407
413
  var resolveContentStyle = function resolveContentStyle(slot) {
408
414
  var _slot$;
409
- if (external_vue_namespaceObject.Fragment === (slot === null || slot === void 0 || (_slot$ = slot[0]) === null || _slot$ === void 0 ? void 0 : _slot$.type)) {
410
- (0,external_vue_namespaceObject.nextTick)(function () {
415
+ if (Fragment === (slot === null || slot === void 0 || (_slot$ = slot[0]) === null || _slot$ === void 0 ? void 0 : _slot$.type)) {
416
+ nextTick(function () {
411
417
  _this.setContentPointerEvent('none');
412
418
  _this.resetPointerEvent();
413
419
  });
@@ -416,9 +422,10 @@ var EMIT_EVENT_TYPES = _defineProperty(_defineProperty(_defineProperty(_definePr
416
422
  };
417
423
  var style = resolveContentStyle((_this$$slots$default = (_this$$slots = this.$slots)["default"]) === null || _this$$slots$default === void 0 ? void 0 : _this$$slots$default.call(_this$$slots));
418
424
  return (0,external_vue_namespaceObject.createVNode)("div", {
419
- "class": this.contentClassName,
425
+ "ref": "refContent",
420
426
  "style": style,
421
- "ref": "refContent"
427
+ "class": this.contentClassName,
428
+ "onClick": this.handleClick
422
429
  }, [(_this$$slots$arrow = (_this$$slots$arrow2 = (_this$$slots2 = this.$slots).arrow) === null || _this$$slots$arrow2 === void 0 ? void 0 : _this$$slots$arrow2.call(_this$$slots2)) !== null && _this$$slots$arrow !== void 0 ? _this$$slots$arrow : '', (_this$$slots$default2 = (_this$$slots$default3 = (_this$$slots3 = this.$slots)["default"]) === null || _this$$slots$default3 === void 0 ? void 0 : _this$$slots$default3.call(_this$$slots3)) !== null && _this$$slots$default2 !== void 0 ? _this$$slots$default2 : '']);
423
430
  }
424
431
  }));
@@ -437,11 +444,13 @@ var PopoverProps = {
437
444
  isShow: shared_namespaceObject.PropTypes.bool.def(false),
438
445
  always: shared_namespaceObject.PropTypes.bool.def(false),
439
446
  disabled: shared_namespaceObject.PropTypes.bool.def(false),
447
+ clickContentAutoHide: shared_namespaceObject.PropTypes.bool.def(false),
440
448
  width: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.number]).def('auto'),
441
449
  height: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.number]).def('auto'),
442
450
  maxWidth: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.number]).def('auto'),
443
451
  maxHeight: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.number]).def('auto'),
444
452
  content: (0,external_vue_types_namespaceObject.toType)('IContent', {}).def(''),
453
+ renderDirective: (0,shared_namespaceObject.renderDirectiveType)().def('if'),
445
454
  target: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.instanceOf(HTMLElement), shared_namespaceObject.PropTypes.instanceOf(PointerEvent)]),
446
455
  allowHtml: shared_namespaceObject.PropTypes.bool.def(false),
447
456
  /**
@@ -456,7 +465,6 @@ var PopoverProps = {
456
465
  * 支持 click hover manual
457
466
  * manual: 通过isShow控制显示、隐藏
458
467
  */
459
- // trigger: triggerType(),
460
468
  trigger: (0,shared_namespaceObject.triggerType)(),
461
469
  /**
462
470
  * content 渲染方式
@@ -509,6 +517,14 @@ var PopoverProps = {
509
517
  * 配置自定义样式类名,传入的类会被加在组件最外层的 DOM
510
518
  */
511
519
  extCls: shared_namespaceObject.PropTypes.string.def(''),
520
+ /**
521
+ * 配置自定义样式类名,传入的类会被加在 Reference 外部的 div 上
522
+ */
523
+ referenceCls: shared_namespaceObject.PropTypes.string.def(''),
524
+ /**
525
+ * 点击 Reference 占位区是否忽略收起 popover
526
+ */
527
+ hideIgnoreReference: shared_namespaceObject.PropTypes.bool.def(false),
512
528
  /**
513
529
  * 自定义Content组件渲染,point-event延迟渲染时间
514
530
  * 避免子组件point-event渲染时触发popover鼠标事件
@@ -582,8 +598,7 @@ var PopoverProps = {
582
598
  * IN THE SOFTWARE.
583
599
  */
584
600
 
585
-
586
- /* harmony default export */ const root = ((0,external_vue_namespaceObject.defineComponent)({
601
+ /* harmony default export */ const root = (defineComponent({
587
602
  props: {
588
603
  "class": shared_namespaceObject.PropTypes.string.def(''),
589
604
  mode: shared_namespaceObject.PropTypes.string.def('')
@@ -598,31 +613,31 @@ function _arrayWithHoles(arr) {
598
613
  if (Array.isArray(arr)) return arr;
599
614
  }
600
615
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
601
- function _iterableToArrayLimit(r, l) {
602
- var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
603
- if (null != t) {
604
- var e,
605
- n,
606
- i,
607
- u,
608
- a = [],
609
- f = !0,
610
- o = !1;
616
+ function _iterableToArrayLimit(arr, i) {
617
+ var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
618
+ if (null != _i) {
619
+ var _s,
620
+ _e,
621
+ _x,
622
+ _r,
623
+ _arr = [],
624
+ _n = !0,
625
+ _d = !1;
611
626
  try {
612
- if (i = (t = t.call(r)).next, 0 === l) {
613
- if (Object(t) !== t) return;
614
- f = !1;
615
- } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
616
- } catch (r) {
617
- o = !0, n = r;
627
+ if (_x = (_i = _i.call(arr)).next, 0 === i) {
628
+ if (Object(_i) !== _i) return;
629
+ _n = !1;
630
+ } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
631
+ } catch (err) {
632
+ _d = !0, _e = err;
618
633
  } finally {
619
634
  try {
620
- if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
635
+ if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
621
636
  } finally {
622
- if (o) throw n;
637
+ if (_d) throw _e;
623
638
  }
624
639
  }
625
- return a;
640
+ return _arr;
626
641
  }
627
642
  }
628
643
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
@@ -653,16 +668,7 @@ function _nonIterableRest() {
653
668
  function _slicedToArray(arr, i) {
654
669
  return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || unsupportedIterableToArray_unsupportedIterableToArray(arr, i) || _nonIterableRest();
655
670
  }
656
- ;// CONCATENATED MODULE: external "lodash/isElement"
657
- var isElement_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
658
- var isElement_y = x => () => x
659
- const isElement_namespaceObject = isElement_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_isElement_e6b2a6ce__["default"] });
660
671
  ;// CONCATENATED MODULE: ../../node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
661
- /**
662
- * Custom positioning reference element.
663
- * @see https://floating-ui.com/docs/virtual-elements
664
- */
665
-
666
672
  const sides = ['top', 'right', 'bottom', 'left'];
667
673
  const alignments = ['start', 'end'];
668
674
  const placements = /*#__PURE__*/sides.reduce((acc, side) => acc.concat(side, side + "-" + alignments[0], side + "-" + alignments[1]), []);
@@ -850,7 +856,7 @@ function computeCoordsFromPlacement(_ref, placement, rtl) {
850
856
 
851
857
  /**
852
858
  * Computes the `x` and `y` coordinates that will place the floating element
853
- * next to a given reference element.
859
+ * next to a reference element when it is given a certain positioning strategy.
854
860
  *
855
861
  * This export does not have any `platform` interface logic. You will need to
856
862
  * write one for the platform you are using Floating UI with.
@@ -928,6 +934,7 @@ const computePosition = async (reference, floating, config) => {
928
934
  } = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
929
935
  }
930
936
  i = -1;
937
+ continue;
931
938
  }
932
939
  }
933
940
  return {
@@ -990,7 +997,6 @@ async function detectOverflow(state, options) {
990
997
  y: 1
991
998
  };
992
999
  const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({
993
- elements,
994
1000
  rect,
995
1001
  offsetParent,
996
1002
  strategy
@@ -1018,8 +1024,7 @@ const arrow = options => ({
1018
1024
  placement,
1019
1025
  rects,
1020
1026
  platform,
1021
- elements,
1022
- middlewareData
1027
+ elements
1023
1028
  } = state;
1024
1029
  // Since `element` is required, we don't Partial<> the type.
1025
1030
  const {
@@ -1067,20 +1072,16 @@ const arrow = options => ({
1067
1072
 
1068
1073
  // If the reference is small enough that the arrow's padding causes it to
1069
1074
  // to point to nothing for an aligned placement, adjust the offset of the
1070
- // floating element itself. To ensure `shift()` continues to take action,
1071
- // a single reset is performed when this is true.
1072
- const shouldAddOffset = !middlewareData.arrow && floating_ui_utils_getAlignment(placement) != null && center !== offset && rects.reference[length] / 2 - (center < min$1 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;
1073
- const alignmentOffset = shouldAddOffset ? center < min$1 ? center - min$1 : center - max : 0;
1075
+ // floating element itself. This stops `shift()` from taking action, but can
1076
+ // be worked around by calling it again after the `arrow()` if desired.
1077
+ const shouldAddOffset = floating_ui_utils_getAlignment(placement) != null && center != offset && rects.reference[length] / 2 - (center < min$1 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;
1078
+ const alignmentOffset = shouldAddOffset ? center < min$1 ? min$1 - center : max - center : 0;
1074
1079
  return {
1075
- [axis]: coords[axis] + alignmentOffset,
1080
+ [axis]: coords[axis] - alignmentOffset,
1076
1081
  data: {
1077
1082
  [axis]: offset,
1078
- centerOffset: center - offset - alignmentOffset,
1079
- ...(shouldAddOffset && {
1080
- alignmentOffset
1081
- })
1082
- },
1083
- reset: shouldAddOffset
1083
+ centerOffset: center - offset + alignmentOffset
1084
+ }
1084
1085
  };
1085
1086
  }
1086
1087
  });
@@ -1202,7 +1203,7 @@ const flip = function (options) {
1202
1203
  name: 'flip',
1203
1204
  options,
1204
1205
  async fn(state) {
1205
- var _middlewareData$arrow, _middlewareData$flip;
1206
+ var _middlewareData$flip;
1206
1207
  const {
1207
1208
  placement,
1208
1209
  middlewareData,
@@ -1220,14 +1221,6 @@ const flip = function (options) {
1220
1221
  flipAlignment = true,
1221
1222
  ...detectOverflowOptions
1222
1223
  } = floating_ui_utils_evaluate(options, state);
1223
-
1224
- // If a reset by the arrow was caused due to an alignment offset being
1225
- // added, we should skip any logic now since `flip()` has already done its
1226
- // work.
1227
- // https://github.com/floating-ui/floating-ui/issues/2549#issuecomment-1719601643
1228
- if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
1229
- return {};
1230
- }
1231
1224
  const side = floating_ui_utils_getSide(placement);
1232
1225
  const isBasePlacement = floating_ui_utils_getSide(initialPlacement) === initialPlacement;
1233
1226
  const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
@@ -1505,7 +1498,6 @@ const inline = function (options) {
1505
1498
 
1506
1499
  // For type backwards-compatibility, the `OffsetOptions` type was also
1507
1500
  // Derivable.
1508
-
1509
1501
  async function convertValueToCoords(state, options) {
1510
1502
  const {
1511
1503
  placement,
@@ -1519,6 +1511,8 @@ async function convertValueToCoords(state, options) {
1519
1511
  const mainAxisMulti = ['left', 'top'].includes(side) ? -1 : 1;
1520
1512
  const crossAxisMulti = rtl && isVertical ? -1 : 1;
1521
1513
  const rawValue = floating_ui_utils_evaluate(options, state);
1514
+
1515
+ // eslint-disable-next-line prefer-const
1522
1516
  let {
1523
1517
  mainAxis,
1524
1518
  crossAxis,
@@ -1560,27 +1554,15 @@ const offset = function (options) {
1560
1554
  name: 'offset',
1561
1555
  options,
1562
1556
  async fn(state) {
1563
- var _middlewareData$offse, _middlewareData$arrow;
1564
1557
  const {
1565
1558
  x,
1566
- y,
1567
- placement,
1568
- middlewareData
1559
+ y
1569
1560
  } = state;
1570
1561
  const diffCoords = await convertValueToCoords(state, options);
1571
-
1572
- // If the placement is the same and the arrow caused an alignment offset
1573
- // then we don't need to change the positioning coordinates.
1574
- if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
1575
- return {};
1576
- }
1577
1562
  return {
1578
1563
  x: x + diffCoords.x,
1579
1564
  y: y + diffCoords.y,
1580
- data: {
1581
- ...diffCoords,
1582
- placement
1583
- }
1565
+ data: diffCoords
1584
1566
  };
1585
1567
  }
1586
1568
  };
@@ -1812,7 +1794,7 @@ const size = function (options) {
1812
1794
 
1813
1795
 
1814
1796
 
1815
- ;// CONCATENATED MODULE: ../../node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
1797
+ ;// CONCATENATED MODULE: ../../node_modules/@floating-ui/utils/dom/dist/floating-ui.utils.dom.mjs
1816
1798
  function getNodeName(node) {
1817
1799
  if (isNode(node)) {
1818
1800
  return (node.nodeName || '').toLowerCase();
@@ -1824,7 +1806,7 @@ function getNodeName(node) {
1824
1806
  }
1825
1807
  function getWindow(node) {
1826
1808
  var _node$ownerDocument;
1827
- return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
1809
+ return (node == null ? void 0 : (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
1828
1810
  }
1829
1811
  function getDocumentElement(node) {
1830
1812
  var _ref;
@@ -1865,17 +1847,6 @@ function isContainingBlock(element) {
1865
1847
  // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
1866
1848
  return css.transform !== 'none' || css.perspective !== 'none' || (css.containerType ? css.containerType !== 'normal' : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== 'none' : false) || !webkit && (css.filter ? css.filter !== 'none' : false) || ['transform', 'perspective', 'filter'].some(value => (css.willChange || '').includes(value)) || ['paint', 'layout', 'strict', 'content'].some(value => (css.contain || '').includes(value));
1867
1849
  }
1868
- function getContainingBlock(element) {
1869
- let currentNode = getParentNode(element);
1870
- while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
1871
- if (isContainingBlock(currentNode)) {
1872
- return currentNode;
1873
- } else {
1874
- currentNode = getParentNode(currentNode);
1875
- }
1876
- }
1877
- return null;
1878
- }
1879
1850
  function isWebKit() {
1880
1851
  if (typeof CSS === 'undefined' || !CSS.supports) return false;
1881
1852
  return CSS.supports('-webkit-backdrop-filter', 'none');
@@ -1923,21 +1894,18 @@ function getNearestOverflowAncestor(node) {
1923
1894
  }
1924
1895
  return getNearestOverflowAncestor(parentNode);
1925
1896
  }
1926
- function getOverflowAncestors(node, list, traverseIframes) {
1897
+ function getOverflowAncestors(node, list) {
1927
1898
  var _node$ownerDocument2;
1928
1899
  if (list === void 0) {
1929
1900
  list = [];
1930
1901
  }
1931
- if (traverseIframes === void 0) {
1932
- traverseIframes = true;
1933
- }
1934
1902
  const scrollableAncestor = getNearestOverflowAncestor(node);
1935
1903
  const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
1936
1904
  const win = getWindow(scrollableAncestor);
1937
1905
  if (isBody) {
1938
- return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], win.frameElement && traverseIframes ? getOverflowAncestors(win.frameElement) : []);
1906
+ return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : []);
1939
1907
  }
1940
- return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
1908
+ return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor));
1941
1909
  }
1942
1910
 
1943
1911
 
@@ -2217,7 +2185,7 @@ function getClippingElementAncestors(element, cache) {
2217
2185
  if (cachedResult) {
2218
2186
  return cachedResult;
2219
2187
  }
2220
- let result = getOverflowAncestors(element, [], false).filter(el => floating_ui_utils_dom_isElement(el) && getNodeName(el) !== 'body');
2188
+ let result = getOverflowAncestors(element).filter(el => floating_ui_utils_dom_isElement(el) && getNodeName(el) !== 'body');
2221
2189
  let currentContainingBlockComputedStyle = null;
2222
2190
  const elementIsFixed = getComputedStyle(element).position === 'fixed';
2223
2191
  let currentNode = elementIsFixed ? getParentNode(element) : element;
@@ -2272,14 +2240,7 @@ function getClippingRect(_ref) {
2272
2240
  }
2273
2241
 
2274
2242
  function getDimensions(element) {
2275
- const {
2276
- width,
2277
- height
2278
- } = getCssDimensions(element);
2279
- return {
2280
- width,
2281
- height
2282
- };
2243
+ return getCssDimensions(element);
2283
2244
  }
2284
2245
 
2285
2246
  function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
@@ -2321,6 +2282,17 @@ function getTrueOffsetParent(element, polyfill) {
2321
2282
  }
2322
2283
  return element.offsetParent;
2323
2284
  }
2285
+ function getContainingBlock(element) {
2286
+ let currentNode = getParentNode(element);
2287
+ while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
2288
+ if (isContainingBlock(currentNode)) {
2289
+ return currentNode;
2290
+ } else {
2291
+ currentNode = getParentNode(currentNode);
2292
+ }
2293
+ }
2294
+ return null;
2295
+ }
2324
2296
 
2325
2297
  // Gets the closest ancestor positioned element. Handles some edge cases,
2326
2298
  // such as table ancestors and cross browser bugs.
@@ -2525,66 +2497,10 @@ function autoUpdate(reference, floating, update, options) {
2525
2497
  };
2526
2498
  }
2527
2499
 
2528
- /**
2529
- * Optimizes the visibility of the floating element by choosing the placement
2530
- * that has the most space available automatically, without needing to specify a
2531
- * preferred placement. Alternative to `flip`.
2532
- * @see https://floating-ui.com/docs/autoPlacement
2533
- */
2534
- const floating_ui_dom_autoPlacement = autoPlacement;
2535
-
2536
- /**
2537
- * Optimizes the visibility of the floating element by shifting it in order to
2538
- * keep it in view when it will overflow the clipping boundary.
2539
- * @see https://floating-ui.com/docs/shift
2540
- */
2541
- const floating_ui_dom_shift = shift;
2542
-
2543
- /**
2544
- * Optimizes the visibility of the floating element by flipping the `placement`
2545
- * in order to keep it in view when the preferred placement(s) will overflow the
2546
- * clipping boundary. Alternative to `autoPlacement`.
2547
- * @see https://floating-ui.com/docs/flip
2548
- */
2549
- const floating_ui_dom_flip = flip;
2550
-
2551
- /**
2552
- * Provides data that allows you to change the size of the floating element —
2553
- * for instance, prevent it from overflowing the clipping boundary or match the
2554
- * width of the reference element.
2555
- * @see https://floating-ui.com/docs/size
2556
- */
2557
- const floating_ui_dom_size = (/* unused pure expression or super */ null && (size$1));
2558
-
2559
- /**
2560
- * Provides data to hide the floating element in applicable situations, such as
2561
- * when it is not in the same clipping context as the reference element.
2562
- * @see https://floating-ui.com/docs/hide
2563
- */
2564
- const floating_ui_dom_hide = hide;
2565
-
2566
- /**
2567
- * Provides data to position an inner element of the floating element so that it
2568
- * appears centered to the reference element.
2569
- * @see https://floating-ui.com/docs/arrow
2570
- */
2571
- const floating_ui_dom_arrow = arrow;
2572
-
2573
- /**
2574
- * Provides improved positioning for inline reference elements that can span
2575
- * over multiple lines, such as hyperlinks or range selections.
2576
- * @see https://floating-ui.com/docs/inline
2577
- */
2578
- const floating_ui_dom_inline = inline;
2579
-
2580
- /**
2581
- * Built-in `limiter` that will stop `shift()` at a certain point.
2582
- */
2583
- const floating_ui_dom_limitShift = (/* unused pure expression or super */ null && (limitShift$1));
2584
-
2585
2500
  /**
2586
2501
  * Computes the `x` and `y` coordinates that will place the floating element
2587
- * next to a given reference element.
2502
+ * next to a reference element when it is given a certain CSS positioning
2503
+ * strategy.
2588
2504
  */
2589
2505
  const floating_ui_dom_computePosition = (reference, floating, options) => {
2590
2506
  // This caches the expensive `getClippingElementAncestors` function so that
@@ -2607,6 +2523,14 @@ const floating_ui_dom_computePosition = (reference, floating, options) => {
2607
2523
 
2608
2524
 
2609
2525
 
2526
+ ;// CONCATENATED MODULE: external "lodash/isElement"
2527
+ var isElement_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
2528
+ var isElement_y = x => () => x
2529
+ const isElement_namespaceObject = isElement_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_isElement_e6b2a6ce__["default"] });
2530
+ ;// CONCATENATED MODULE: external "lodash/random"
2531
+ var random_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
2532
+ var random_y = x => () => x
2533
+ const random_namespaceObject = random_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_random_1771bfd1__["default"] });
2610
2534
  ;// CONCATENATED MODULE: ../../node_modules/uuid/dist/esm-browser/native.js
2611
2535
  const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
2612
2536
  /* harmony default export */ const esm_browser_native = ({
@@ -2722,7 +2646,10 @@ function v4(options, buf, offset) {
2722
2646
  * IN THE SOFTWARE.
2723
2647
  */
2724
2648
 
2649
+
2725
2650
  var CachedConst = {};
2651
+ // 全局的占位区点击记录
2652
+ var ReferenceClickSharedState = {};
2726
2653
  var isAvailableId = function isAvailableId(query) {
2727
2654
  var container = document.querySelector(query);
2728
2655
  return container instanceof HTMLElement;
@@ -2759,6 +2686,9 @@ var contentAsHTMLElement = function contentAsHTMLElement(content) {
2759
2686
  vNode: content
2760
2687
  };
2761
2688
  };
2689
+ var random = function random() {
2690
+ return "".concat((0,random_namespaceObject["default"])(0, 999999), "_").concat(Date.now(), "_").concat((0,random_namespaceObject["default"])(0, 999999));
2691
+ };
2762
2692
  ;// CONCATENATED MODULE: ../../packages/popover/src/use-floating.tsx
2763
2693
 
2764
2694
 
@@ -2916,7 +2846,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
2916
2846
  };
2917
2847
  var resolvePopOptions = function resolvePopOptions(elArrow, props) {
2918
2848
  var modifiers = resolveModifiers();
2919
- var middleware = [offset(modifiers.offset || props.offset), floating_ui_dom_shift({
2849
+ var middleware = [offset(modifiers.offset || props.offset), shift({
2920
2850
  padding: props.padding
2921
2851
  })];
2922
2852
  var options = {
@@ -2924,17 +2854,17 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
2924
2854
  middleware: middleware
2925
2855
  };
2926
2856
  if (props.arrow) {
2927
- middleware.push(floating_ui_dom_arrow({
2857
+ middleware.push(arrow({
2928
2858
  element: elArrow
2929
2859
  }));
2930
2860
  }
2931
2861
  if (isAutoPlacementAvailable()) {
2932
- middleware.push(floating_ui_dom_autoPlacement());
2862
+ middleware.push(autoPlacement());
2933
2863
  }
2934
- middleware.unshift(floating_ui_dom_inline());
2935
- middleware.push(floating_ui_dom_flip());
2864
+ middleware.unshift(inline());
2865
+ middleware.push(flip());
2936
2866
  if (isHideMiddlewareAvailable()) {
2937
- options.middleware.push(floating_ui_dom_hide());
2867
+ options.middleware.push(hide());
2938
2868
  }
2939
2869
  /**
2940
2870
  * 如果是全屏元素或者指定的虚拟元素
@@ -3102,6 +3032,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
3102
3032
  var delay = resolvePopoverDelay()[1];
3103
3033
  popHideTimerId = setTimeout(function () {
3104
3034
  popShowTimerId && clearTimeout(popShowTimerId);
3035
+ isMouseenter = false;
3105
3036
  localIsShow.value = false;
3106
3037
  }, delay);
3107
3038
  };
@@ -3130,26 +3061,29 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
3130
3061
  hidePopover();
3131
3062
  }
3132
3063
  };
3133
- var handleClickRef = function handleClickRef() {
3134
- triggerPopover();
3135
- };
3136
3064
  var handlePopContentMouseEnter = function handlePopContentMouseEnter(e) {
3137
- if (props.trigger !== 'hover') {
3065
+ if ('hover' !== props.trigger) {
3138
3066
  return;
3139
3067
  }
3140
- if (popHideTimerId) {
3068
+ if (!isMouseenter) {
3141
3069
  isMouseenter = true;
3070
+ }
3071
+ // 设置setTimeout的延时为delay, 避免出现同时触发mouseenter mouseleave事件
3072
+ var delay = resolvePopoverDelay()[1];
3073
+ if (popHideTimerId) {
3142
3074
  clearTimeout(popHideTimerId);
3143
- popHideTimerId = undefined;
3075
+ setTimeout(function () {
3076
+ popHideTimerId = undefined;
3077
+ }, delay);
3144
3078
  }
3145
3079
  emitPopContentMouseEnter(e);
3146
3080
  };
3147
3081
  var handlePopContentMouseLeave = function handlePopContentMouseLeave(e) {
3148
- if (isMouseenter) {
3082
+ // 处理底部触发mouseleave事件,popShowTimerId有值代表处于hover状态
3083
+ if (popShowTimerId && !popHideTimerId) {
3149
3084
  hidePopover();
3150
- isMouseenter = false;
3151
- emitPopContentMouseLeave(e);
3152
3085
  }
3086
+ emitPopContentMouseLeave(e);
3153
3087
  };
3154
3088
  /**
3155
3089
  * 弹出内容鼠标移入事件
@@ -3168,15 +3102,15 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
3168
3102
  var resolveTriggerEvents = function resolveTriggerEvents() {
3169
3103
  var _triggerEvents$props$;
3170
3104
  var triggerEvents = {
3171
- hover: {
3105
+ hover: [{
3172
3106
  content: [['mouseenter', handlePopContentMouseEnter], ['mouseleave', handlePopContentMouseLeave]],
3173
3107
  reference: [['mouseenter', showPopover], ['mouseleave', hidePopover], ['focus', showPopover], ['blur', hidePopover]]
3174
- },
3175
- click: [['click', handleClickRef]],
3176
- manual: {
3108
+ }],
3109
+ click: [[['click', showPopover]]],
3110
+ manual: [{
3177
3111
  content: [['mouseenter', emitPopContentMouseEnter], ['mouseleave', emitPopContentMouseLeave]],
3178
3112
  reference: [[]]
3179
- }
3113
+ }]
3180
3114
  };
3181
3115
  return (_triggerEvents$props$ = triggerEvents[props.trigger]) !== null && _triggerEvents$props$ !== void 0 ? _triggerEvents$props$ : [];
3182
3116
  };
@@ -3347,6 +3281,7 @@ var parentNodeReferId = null;
3347
3281
  refArrow = _ref.refArrow,
3348
3282
  refRoot = _ref.refRoot;
3349
3283
  var storeEvents = null;
3284
+ var uniqKey = random();
3350
3285
  var isFullscreen = (0,external_vue_namespaceObject.ref)(false);
3351
3286
  var fullscreenReferId = getFullscreenUid();
3352
3287
  var fullScreenTarget = (0,external_vue_namespaceObject.ref)();
@@ -3369,7 +3304,7 @@ var parentNodeReferId = null;
3369
3304
  getFullscreenRoot = _useFloating.getFullscreenRoot,
3370
3305
  stopHide = _useFloating.stopHide;
3371
3306
  var resetPopover = function resetPopover() {
3372
- cleanup === null || cleanup === void 0 || cleanup();
3307
+ cleanup === null || cleanup === void 0 ? void 0 : cleanup();
3373
3308
  createPopInstance();
3374
3309
  };
3375
3310
  var showFn = function showFn() {
@@ -3391,15 +3326,16 @@ var parentNodeReferId = null;
3391
3326
  elReference = _resolvePopElements.elReference,
3392
3327
  elContent = _resolvePopElements.elContent;
3393
3328
  storeEvents = resolveTriggerEvents();
3394
- if (Array.isArray(storeEvents)) {
3395
- addEventToTargetEl(elReference, storeEvents);
3396
- } else {
3397
- var _storeEvents = storeEvents,
3398
- content = _storeEvents.content,
3399
- reference = _storeEvents.reference;
3400
- addEventToTargetEl(elReference, reference);
3401
- addEventToTargetEl(elContent, content);
3402
- }
3329
+ storeEvents.forEach(function (storeEvent) {
3330
+ if (Array.isArray(storeEvent)) {
3331
+ addEventToTargetEl(elReference, storeEvent);
3332
+ } else {
3333
+ var content = storeEvent.content,
3334
+ reference = storeEvent.reference;
3335
+ addEventToTargetEl(elReference, reference);
3336
+ addEventToTargetEl(elContent, content);
3337
+ }
3338
+ });
3403
3339
  };
3404
3340
  var addEventToTargetEl = function addEventToTargetEl(target, evets) {
3405
3341
  evets.forEach(function (_ref2) {
@@ -3412,17 +3348,43 @@ var parentNodeReferId = null;
3412
3348
  });
3413
3349
  };
3414
3350
  var removeEventListener = function removeEventListener() {
3415
- var _storeEvents2;
3416
- if ((_storeEvents2 = storeEvents) !== null && _storeEvents2 !== void 0 && _storeEvents2.length) {
3351
+ var _storeEvents;
3352
+ if ((_storeEvents = storeEvents) !== null && _storeEvents !== void 0 && _storeEvents.length) {
3417
3353
  var _resolvePopElements2 = resolvePopElements(),
3418
- elReference = _resolvePopElements2.elReference;
3354
+ elReference = _resolvePopElements2.elReference,
3355
+ elContent = _resolvePopElements2.elContent;
3419
3356
  if (elReference) {
3420
- storeEvents.forEach(function (_ref4) {
3421
- var _ref5 = _slicedToArray(_ref4, 2),
3422
- event = _ref5[0],
3423
- listener = _ref5[1];
3424
- if (event && typeof listener === 'function') {
3425
- elReference.removeEventListener(event, listener);
3357
+ storeEvents.forEach(function (storeEvent) {
3358
+ if (Array.isArray(storeEvent)) {
3359
+ storeEvent.forEach(function (_ref4) {
3360
+ var _ref5 = _slicedToArray(_ref4, 2),
3361
+ event = _ref5[0],
3362
+ listener = _ref5[1];
3363
+ if (event && typeof listener === 'function') {
3364
+ elReference.removeEventListener(event, listener);
3365
+ }
3366
+ });
3367
+ } else {
3368
+ var content = storeEvent.content,
3369
+ reference = storeEvent.reference;
3370
+ content.forEach(function (_ref6) {
3371
+ var _ref7 = _slicedToArray(_ref6, 2),
3372
+ event = _ref7[0],
3373
+ listener = _ref7[1];
3374
+ if (event && typeof listener === 'function') {
3375
+ if (elContent) {
3376
+ elContent.removeEventListener(event, listener);
3377
+ }
3378
+ }
3379
+ });
3380
+ reference.forEach(function (_ref8) {
3381
+ var _ref9 = _slicedToArray(_ref8, 2),
3382
+ event = _ref9[0],
3383
+ listener = _ref9[1];
3384
+ if (event && typeof listener === 'function') {
3385
+ elReference.removeEventListener(event, listener);
3386
+ }
3387
+ });
3426
3388
  }
3427
3389
  });
3428
3390
  }
@@ -3439,8 +3401,8 @@ var parentNodeReferId = null;
3439
3401
  root = _resolvePopElements3.root;
3440
3402
  if (isFullscreen.value) {
3441
3403
  var _fullScreenTarget$val;
3442
- var _ref6 = elReference || root || {},
3443
- parentNode = _ref6.parentNode;
3404
+ var _ref10 = elReference || root || {},
3405
+ parentNode = _ref10.parentNode;
3444
3406
  boundary.value = (_fullScreenTarget$val = fullScreenTarget === null || fullScreenTarget === void 0 ? void 0 : fullScreenTarget.value) !== null && _fullScreenTarget$val !== void 0 ? _fullScreenTarget$val : getClosestFullscreenElement(parentNode);
3445
3407
  return;
3446
3408
  }
@@ -3450,13 +3412,13 @@ var parentNodeReferId = null;
3450
3412
  getPrefixId = _usePopperId.getPrefixId;
3451
3413
  var setFullscreenTag = function setFullscreenTag() {
3452
3414
  var _fullScreenTarget$val2;
3453
- fullScreenTarget === null || fullScreenTarget === void 0 || (_fullScreenTarget$val2 = fullScreenTarget.value) === null || _fullScreenTarget$val2 === void 0 || _fullScreenTarget$val2.setAttribute('data-fllsrn-id', fullscreenReferId);
3415
+ fullScreenTarget === null || fullScreenTarget === void 0 || (_fullScreenTarget$val2 = fullScreenTarget.value) === null || _fullScreenTarget$val2 === void 0 ? void 0 : _fullScreenTarget$val2.setAttribute('data-fllsrn-id', fullscreenReferId);
3454
3416
  };
3455
3417
  var clearFullscreenTag = function clearFullscreenTag() {
3456
3418
  var _fullScreenTarget$val3, _fullScreenTarget$val4;
3457
3419
  var query = "[data-fllsrn-id=".concat(fullscreenReferId, "]");
3458
3420
  ((_fullScreenTarget$val3 = fullScreenTarget === null || fullScreenTarget === void 0 || (_fullScreenTarget$val4 = fullScreenTarget.value) === null || _fullScreenTarget$val4 === void 0 ? void 0 : _fullScreenTarget$val4.querySelectorAll(query)) !== null && _fullScreenTarget$val3 !== void 0 ? _fullScreenTarget$val3 : []).forEach(function (element) {
3459
- element === null || element === void 0 || element.removeAttribute('data-fllsrn-id');
3421
+ element === null || element === void 0 ? void 0 : element.removeAttribute('data-fllsrn-id');
3460
3422
  });
3461
3423
  };
3462
3424
  var boundary = (0,external_vue_namespaceObject.ref)();
@@ -3495,16 +3457,30 @@ var parentNodeReferId = null;
3495
3457
  document.body.removeEventListener('fullscreenchange', handleFullscreenChange);
3496
3458
  };
3497
3459
  var handleClickOutside = function handleClickOutside(_e) {
3498
- ctx.emit(EMIT_EVENTS.CLICK_OUTSIDE, {
3499
- isShow: localIsShow.value,
3500
- event: _e
3501
- });
3502
- var needExec = props.disableOutsideClick || props.always || props.disabled || props.trigger === 'manual';
3503
- if (!props.forceClickoutside && needExec) {
3504
- return;
3505
- }
3506
- if (localIsShow.value) {
3507
- hideFn();
3460
+ var hideIgnoreReference = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
3461
+ var commonFunc = function commonFunc() {
3462
+ ctx.emit(EMIT_EVENTS.CLICK_OUTSIDE, {
3463
+ isShow: localIsShow.value,
3464
+ event: _e
3465
+ });
3466
+ var needExec = props.disableOutsideClick || props.always || props.disabled || props.trigger === 'manual';
3467
+ if (!props.forceClickoutside && needExec) {
3468
+ return;
3469
+ }
3470
+ if (localIsShow.value) {
3471
+ hideFn();
3472
+ }
3473
+ };
3474
+ if (hideIgnoreReference) {
3475
+ setTimeout(function () {
3476
+ if (ReferenceClickSharedState[uniqKey]) {
3477
+ ReferenceClickSharedState[uniqKey] = false;
3478
+ return;
3479
+ }
3480
+ return commonFunc();
3481
+ });
3482
+ } else {
3483
+ return commonFunc();
3508
3484
  }
3509
3485
  };
3510
3486
  return {
@@ -3523,7 +3499,8 @@ var parentNodeReferId = null;
3523
3499
  stopHide: stopHide,
3524
3500
  isFullscreen: isFullscreen,
3525
3501
  boundary: boundary,
3526
- localIsShow: localIsShow
3502
+ localIsShow: localIsShow,
3503
+ uniqKey: uniqKey
3527
3504
  };
3528
3505
  });
3529
3506
  ;// CONCATENATED MODULE: ../../packages/popover/src/popover.tsx
@@ -3563,14 +3540,12 @@ var parentNodeReferId = null;
3563
3540
 
3564
3541
 
3565
3542
 
3566
-
3567
3543
  function _isSlot(s) {
3568
3544
  return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !(0,external_vue_namespaceObject.isVNode)(s);
3569
3545
  }
3570
- /* harmony default export */ const popover = ((0,external_vue_namespaceObject.defineComponent)({
3546
+ /* harmony default export */ const popover = (defineComponent({
3571
3547
  name: 'Popover',
3572
3548
  components: {
3573
- // eslint-disable-next-line vue/no-reserved-component-names
3574
3549
  Content: content,
3575
3550
  Arrow: src_arrow,
3576
3551
  Root: root
@@ -3581,13 +3556,13 @@ function _isSlot(s) {
3581
3556
  props: PopoverProps,
3582
3557
  emits: EMIT_EVENT_TYPES,
3583
3558
  setup: function setup(props, ctx) {
3584
- var _toRefs = (0,external_vue_namespaceObject.toRefs)(props),
3559
+ var _toRefs = toRefs(props),
3585
3560
  reference = _toRefs.reference;
3586
- var refDefaultReference = (0,external_vue_namespaceObject.ref)();
3587
- var refContent = (0,external_vue_namespaceObject.ref)();
3588
- var refArrow = (0,external_vue_namespaceObject.ref)();
3589
- var refRoot = (0,external_vue_namespaceObject.ref)();
3590
- var refReference = (0,external_vue_namespaceObject.computed)(function () {
3561
+ var refDefaultReference = ref();
3562
+ var refContent = ref();
3563
+ var refArrow = ref();
3564
+ var refRoot = ref();
3565
+ var refReference = computed(function () {
3591
3566
  return reference.value || refDefaultReference.value;
3592
3567
  });
3593
3568
  var _usePopoverInit = use_popover_init(props, ctx, {
@@ -3610,9 +3585,10 @@ function _isSlot(s) {
3610
3585
  resetPopover = _usePopoverInit.resetPopover,
3611
3586
  stopHide = _usePopoverInit.stopHide,
3612
3587
  localIsShow = _usePopoverInit.localIsShow,
3613
- boundary = _usePopoverInit.boundary;
3588
+ boundary = _usePopoverInit.boundary,
3589
+ uniqKey = _usePopoverInit.uniqKey;
3614
3590
  if (!props.always && !props.disabled) {
3615
- (0,external_vue_namespaceObject.watch)(function () {
3591
+ watch(function () {
3616
3592
  return props.isShow;
3617
3593
  }, function () {
3618
3594
  props.isShow ? showPopover() : hidePopover();
@@ -3620,7 +3596,7 @@ function _isSlot(s) {
3620
3596
  immediate: true
3621
3597
  });
3622
3598
  }
3623
- (0,external_vue_namespaceObject.watch)(function () {
3599
+ watch(function () {
3624
3600
  return [props.disabled];
3625
3601
  }, function (val) {
3626
3602
  if (val[0]) {
@@ -3630,10 +3606,19 @@ function _isSlot(s) {
3630
3606
  }
3631
3607
  });
3632
3608
  updateBoundary();
3633
- (0,external_vue_namespaceObject.onMounted)(onMountedFn);
3634
- (0,external_vue_namespaceObject.onBeforeUnmount)(onUnmountedFn);
3635
- var transBoundary = (0,external_vue_namespaceObject.computed)(function () {
3636
- return localIsShow.value && !props.disableTeleport;
3609
+ onMounted(onMountedFn);
3610
+ onBeforeUnmount(onUnmountedFn);
3611
+ var isRenderModeShow = computed(function () {
3612
+ return props.renderDirective === 'show';
3613
+ });
3614
+ var transBoundary = computed(function () {
3615
+ return isRenderModeShow.value || localIsShow.value && !props.disableTeleport;
3616
+ });
3617
+ var contentIsShow = computed(function () {
3618
+ if (props.renderType === shared_namespaceObject.RenderType.AUTO) {
3619
+ return true;
3620
+ }
3621
+ return localIsShow.value;
3637
3622
  });
3638
3623
  var show = function show() {
3639
3624
  showFn();
@@ -3641,12 +3626,15 @@ function _isSlot(s) {
3641
3626
  var hide = function hide() {
3642
3627
  hideFn();
3643
3628
  };
3644
- var contentIsShow = (0,external_vue_namespaceObject.computed)(function () {
3645
- if (props.renderType === shared_namespaceObject.RenderType.AUTO) {
3646
- return true;
3629
+ var handleClickReferenceWraper = function handleClickReferenceWraper() {
3630
+ ReferenceClickSharedState[uniqKey] = true;
3631
+ };
3632
+ // 点击 content 收起面板
3633
+ var handleClickContent = function handleClickContent() {
3634
+ if (props.trigger !== 'manual' && !props.always && props.clickContentAutoHide) {
3635
+ localIsShow.value = false;
3647
3636
  }
3648
- return localIsShow.value;
3649
- });
3637
+ };
3650
3638
  var renderContent = function renderContent() {
3651
3639
  if (props.allowHtml) {
3652
3640
  var _contentAsHTMLElement = contentAsHTMLElement(props.content),
@@ -3663,7 +3651,9 @@ function _isSlot(s) {
3663
3651
  refArrow: refArrow,
3664
3652
  content: props.content,
3665
3653
  theme: props.theme,
3654
+ isRenderModeShow: isRenderModeShow,
3666
3655
  transBoundary: transBoundary,
3656
+ handleClickContent: handleClickContent,
3667
3657
  handleClickOutside: handleClickOutside,
3668
3658
  updatePopover: updatePopover,
3669
3659
  resetPopover: resetPopover,
@@ -3672,21 +3662,25 @@ function _isSlot(s) {
3672
3662
  stopHide: stopHide,
3673
3663
  contentIsShow: contentIsShow,
3674
3664
  renderContent: renderContent,
3675
- localIsShow: localIsShow
3665
+ localIsShow: localIsShow,
3666
+ handleClickReferenceWraper: handleClickReferenceWraper
3676
3667
  };
3677
3668
  },
3678
3669
  render: function render() {
3679
- var _slot;
3670
+ var _slot, _slot2;
3680
3671
  var _this$$slots$default,
3681
3672
  _this$$slots$default2,
3682
3673
  _this$$slots,
3674
+ _this$$slots$default3,
3675
+ _this$$slots$default4,
3676
+ _this$$slots2,
3683
3677
  _this = this,
3684
3678
  _this$$slots$content,
3685
3679
  _this$$slots$content2,
3686
- _this$$slots3;
3680
+ _this$$slots4;
3687
3681
  var renderReferSlot = function renderReferSlot(slot) {
3688
3682
  var _slot$;
3689
- if (external_vue_namespaceObject.Text === (slot === null || slot === void 0 || (_slot$ = slot[0]) === null || _slot$ === void 0 ? void 0 : _slot$.type)) {
3683
+ if (Text === (slot === null || slot === void 0 || (_slot$ = slot[0]) === null || _slot$ === void 0 ? void 0 : _slot$.type)) {
3690
3684
  return (0,external_vue_namespaceObject.createVNode)("span", null, [slot]);
3691
3685
  }
3692
3686
  return slot;
@@ -3695,42 +3689,55 @@ function _isSlot(s) {
3695
3689
  "ref": "refRoot"
3696
3690
  }, {
3697
3691
  "default": function _default() {
3698
- return [(0,external_vue_namespaceObject.createVNode)(reference, {
3692
+ return [_this.hideIgnoreReference ? (0,external_vue_namespaceObject.createVNode)("div", {
3693
+ "class": _this.referenceCls,
3694
+ "style": "display: inline-block;",
3695
+ "onClick": _this.handleClickReferenceWraper
3696
+ }, [(0,external_vue_namespaceObject.createVNode)(reference, {
3699
3697
  "ref": "refDefaultReference"
3700
3698
  }, _isSlot(_slot = renderReferSlot((_this$$slots$default = (_this$$slots$default2 = (_this$$slots = _this.$slots)["default"]) === null || _this$$slots$default2 === void 0 ? void 0 : _this$$slots$default2.call(_this$$slots)) !== null && _this$$slots$default !== void 0 ? _this$$slots$default : (0,external_vue_namespaceObject.createVNode)("span", null, null))) ? _slot : {
3701
3699
  "default": function _default() {
3702
3700
  return [_slot];
3703
3701
  }
3704
- }), (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Teleport, {
3705
- "to": _this.boundary,
3706
- "disabled": !_this.transBoundary
3702
+ })]) : (0,external_vue_namespaceObject.createVNode)(reference, {
3703
+ "ref": "refDefaultReference"
3704
+ }, _isSlot(_slot2 = renderReferSlot((_this$$slots$default3 = (_this$$slots$default4 = (_this$$slots2 = _this.$slots)["default"]) === null || _this$$slots$default4 === void 0 ? void 0 : _this$$slots$default4.call(_this$$slots2)) !== null && _this$$slots$default3 !== void 0 ? _this$$slots$default3 : (0,external_vue_namespaceObject.createVNode)("span", null, null))) ? _slot2 : {
3705
+ "default": function _default() {
3706
+ return [_slot2];
3707
+ }
3708
+ }), (0,external_vue_namespaceObject.createVNode)(Teleport, {
3709
+ "disabled": !_this.transBoundary,
3710
+ "to": _this.boundary
3707
3711
  }, {
3708
3712
  "default": function _default() {
3709
3713
  return [(0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)(content, {
3710
3714
  "ref": "refContent",
3711
- "visible": _this.localIsShow,
3712
- "data-theme": _this.theme,
3713
- "extCls": _this.extCls,
3714
3715
  "width": _this.width,
3715
3716
  "height": _this.height,
3716
- "maxWidth": _this.maxWidth,
3717
+ "extCls": _this.extCls,
3718
+ "data-theme": _this.theme,
3719
+ "eventDelay": _this.componentEventDelay,
3717
3720
  "maxHeight": _this.maxHeight,
3718
- "eventDelay": _this.componentEventDelay
3721
+ "maxWidth": _this.maxWidth,
3722
+ "visible": _this.localIsShow,
3723
+ "onClick": _this.handleClickContent
3719
3724
  }, {
3720
3725
  "default": function _default() {
3721
- return [_this.contentIsShow ? (_this$$slots$content = (_this$$slots$content2 = (_this$$slots3 = _this.$slots).content) === null || _this$$slots$content2 === void 0 ? void 0 : _this$$slots$content2.call(_this$$slots3)) !== null && _this$$slots$content !== void 0 ? _this$$slots$content : _this.renderContent() : ''];
3726
+ return [_this.isRenderModeShow || _this.contentIsShow ? (_this$$slots$content = (_this$$slots$content2 = (_this$$slots4 = _this.$slots).content) === null || _this$$slots$content2 === void 0 ? void 0 : _this$$slots$content2.call(_this$$slots4)) !== null && _this$$slots$content !== void 0 ? _this$$slots$content : _this.renderContent() : ''];
3722
3727
  },
3723
3728
  arrow: function arrow() {
3724
- var _this$$slots$arrow, _this$$slots2;
3729
+ var _this$$slots$arrow, _this$$slots3;
3725
3730
  return _this.arrow ? (0,external_vue_namespaceObject.createVNode)(src_arrow, {
3726
3731
  "ref": "refArrow"
3727
3732
  }, {
3728
3733
  "default": function _default() {
3729
- return [(_this$$slots$arrow = (_this$$slots2 = _this.$slots).arrow) === null || _this$$slots$arrow === void 0 ? void 0 : _this$$slots$arrow.call(_this$$slots2)];
3734
+ return [(_this$$slots$arrow = (_this$$slots3 = _this.$slots).arrow) === null || _this$$slots$arrow === void 0 ? void 0 : _this$$slots$arrow.call(_this$$slots3)];
3730
3735
  }
3731
3736
  }) : '';
3732
3737
  }
3733
- }), [[(0,external_vue_namespaceObject.resolveDirective)("clickoutside"), _this.handleClickOutside]])];
3738
+ }), [[(0,external_vue_namespaceObject.resolveDirective)("clickoutside"), function (e) {
3739
+ return _this.handleClickOutside(e, _this.hideIgnoreReference);
3740
+ }]])];
3734
3741
  }
3735
3742
  })];
3736
3743
  }
@@ -3806,36 +3813,36 @@ function createPopoverComponent(options) {
3806
3813
  var refReference = (0,external_vue_namespaceObject.ref)();
3807
3814
  var show = function show() {
3808
3815
  var _refReference$value, _refReference$value$s;
3809
- (_refReference$value = refReference.value) === null || _refReference$value === void 0 || (_refReference$value$s = _refReference$value.show) === null || _refReference$value$s === void 0 || _refReference$value$s.call(_refReference$value);
3816
+ (_refReference$value = refReference.value) === null || _refReference$value === void 0 || (_refReference$value$s = _refReference$value.show) === null || _refReference$value$s === void 0 ? void 0 : _refReference$value$s.call(_refReference$value);
3810
3817
  };
3811
3818
  var hide = function hide() {
3812
3819
  var _refReference$value2, _refReference$value2$;
3813
- (_refReference$value2 = refReference.value) === null || _refReference$value2 === void 0 || (_refReference$value2$ = _refReference$value2.hide) === null || _refReference$value2$ === void 0 || _refReference$value2$.call(_refReference$value2);
3820
+ (_refReference$value2 = refReference.value) === null || _refReference$value2 === void 0 || (_refReference$value2$ = _refReference$value2.hide) === null || _refReference$value2$ === void 0 ? void 0 : _refReference$value2$.call(_refReference$value2);
3814
3821
  };
3815
3822
  var stopHide = function stopHide() {
3816
3823
  var _refReference$value3, _refReference$value3$;
3817
- (_refReference$value3 = refReference.value) === null || _refReference$value3 === void 0 || (_refReference$value3$ = _refReference$value3.stopHide) === null || _refReference$value3$ === void 0 || _refReference$value3$.call(_refReference$value3);
3824
+ (_refReference$value3 = refReference.value) === null || _refReference$value3 === void 0 || (_refReference$value3$ = _refReference$value3.stopHide) === null || _refReference$value3$ === void 0 ? void 0 : _refReference$value3$.call(_refReference$value3);
3818
3825
  };
3819
3826
  var updateTarget = function updateTarget(target) {
3820
3827
  var _refReference$value4, _refReference$value4$;
3821
3828
  refProps.target = target;
3822
- (_refReference$value4 = refReference.value) === null || _refReference$value4 === void 0 || (_refReference$value4$ = _refReference$value4.resetPopover) === null || _refReference$value4$ === void 0 || _refReference$value4$.call(_refReference$value4);
3829
+ (_refReference$value4 = refReference.value) === null || _refReference$value4 === void 0 || (_refReference$value4$ = _refReference$value4.resetPopover) === null || _refReference$value4$ === void 0 ? void 0 : _refReference$value4$.call(_refReference$value4);
3823
3830
  };
3824
3831
  var handleContentMouseenter = function handleContentMouseenter() {
3825
3832
  var _resolvedOptions$onCo;
3826
- (_resolvedOptions$onCo = resolvedOptions.onContentMouseenter) === null || _resolvedOptions$onCo === void 0 || _resolvedOptions$onCo.call(resolvedOptions);
3833
+ (_resolvedOptions$onCo = resolvedOptions.onContentMouseenter) === null || _resolvedOptions$onCo === void 0 ? void 0 : _resolvedOptions$onCo.call(resolvedOptions);
3827
3834
  };
3828
3835
  var handleContentMouseleave = function handleContentMouseleave() {
3829
3836
  var _resolvedOptions$onCo2;
3830
- (_resolvedOptions$onCo2 = resolvedOptions.onContentMouseleave) === null || _resolvedOptions$onCo2 === void 0 || _resolvedOptions$onCo2.call(resolvedOptions);
3837
+ (_resolvedOptions$onCo2 = resolvedOptions.onContentMouseleave) === null || _resolvedOptions$onCo2 === void 0 ? void 0 : _resolvedOptions$onCo2.call(resolvedOptions);
3831
3838
  };
3832
3839
  var handlePopoverHidden = function handlePopoverHidden() {
3833
3840
  var _resolvedOptions$onHi;
3834
- (_resolvedOptions$onHi = resolvedOptions.onHide) === null || _resolvedOptions$onHi === void 0 || _resolvedOptions$onHi.call(resolvedOptions);
3841
+ (_resolvedOptions$onHi = resolvedOptions.onHide) === null || _resolvedOptions$onHi === void 0 ? void 0 : _resolvedOptions$onHi.call(resolvedOptions);
3835
3842
  };
3836
3843
  var handlePopoverShow = function handlePopoverShow() {
3837
3844
  var _resolvedOptions$onSh;
3838
- (_resolvedOptions$onSh = resolvedOptions.onShow) === null || _resolvedOptions$onSh === void 0 || _resolvedOptions$onSh.call(resolvedOptions);
3845
+ (_resolvedOptions$onSh = resolvedOptions.onShow) === null || _resolvedOptions$onSh === void 0 ? void 0 : _resolvedOptions$onSh.call(resolvedOptions);
3839
3846
  };
3840
3847
  expose({
3841
3848
  show: show,
@@ -3846,10 +3853,10 @@ function createPopoverComponent(options) {
3846
3853
  return function () {
3847
3854
  return (0,external_vue_namespaceObject.createVNode)(popover, (0,external_vue_namespaceObject.mergeProps)(refProps, {
3848
3855
  "ref": refReference,
3849
- "onContentMouseenter": handleContentMouseenter,
3850
- "onContentMouseleave": handleContentMouseleave,
3851
3856
  "onAfterHidden": handlePopoverHidden,
3852
- "onAfterShow": handlePopoverShow
3857
+ "onAfterShow": handlePopoverShow,
3858
+ "onContentMouseenter": handleContentMouseenter,
3859
+ "onContentMouseleave": handleContentMouseleave
3853
3860
  }), null);
3854
3861
  };
3855
3862
  }
@@ -3884,7 +3891,7 @@ function createPopoverComponent(options) {
3884
3891
  }
3885
3892
  $PopoverInstance.unmount();
3886
3893
  $PopoverInstance = null;
3887
- (_$PopoverInstanceEl = $PopoverInstanceEl) === null || _$PopoverInstanceEl === void 0 || _$PopoverInstanceEl.remove();
3894
+ (_$PopoverInstanceEl = $PopoverInstanceEl) === null || _$PopoverInstanceEl === void 0 ? void 0 : _$PopoverInstanceEl.remove();
3888
3895
  };
3889
3896
  function close() {
3890
3897
  uninstall();
@@ -3895,17 +3902,17 @@ function createPopoverComponent(options) {
3895
3902
  install();
3896
3903
  if (target) {
3897
3904
  var _$PopoverInstanceVm;
3898
- (_$PopoverInstanceVm = $PopoverInstanceVm) === null || _$PopoverInstanceVm === void 0 || _$PopoverInstanceVm.updateTarget(target);
3905
+ (_$PopoverInstanceVm = $PopoverInstanceVm) === null || _$PopoverInstanceVm === void 0 ? void 0 : _$PopoverInstanceVm.updateTarget(target);
3899
3906
  }
3900
- (_$PopoverInstanceVm2 = $PopoverInstanceVm) === null || _$PopoverInstanceVm2 === void 0 || _$PopoverInstanceVm2.show();
3907
+ (_$PopoverInstanceVm2 = $PopoverInstanceVm) === null || _$PopoverInstanceVm2 === void 0 ? void 0 : _$PopoverInstanceVm2.show();
3901
3908
  }
3902
3909
  function update(e) {
3903
3910
  var _$PopoverInstanceVm3;
3904
- (_$PopoverInstanceVm3 = $PopoverInstanceVm) === null || _$PopoverInstanceVm3 === void 0 || _$PopoverInstanceVm3.updateTarget(e);
3911
+ (_$PopoverInstanceVm3 = $PopoverInstanceVm) === null || _$PopoverInstanceVm3 === void 0 ? void 0 : _$PopoverInstanceVm3.updateTarget(e);
3905
3912
  }
3906
3913
  function hide() {
3907
3914
  var _$PopoverInstanceVm4;
3908
- (_$PopoverInstanceVm4 = $PopoverInstanceVm) === null || _$PopoverInstanceVm4 === void 0 || _$PopoverInstanceVm4.hide();
3915
+ (_$PopoverInstanceVm4 = $PopoverInstanceVm) === null || _$PopoverInstanceVm4 === void 0 ? void 0 : _$PopoverInstanceVm4.hide();
3909
3916
  }
3910
3917
  immediate && install();
3911
3918
  return {