element-ps 2.0.37 → 2.0.39

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 (566) hide show
  1. package/dist/index.full.js +448 -327
  2. package/dist/index.full.min.js +8 -8
  3. package/dist/index.full.min.js.map +1 -1
  4. package/dist/index.full.min.mjs +8 -8
  5. package/dist/index.full.min.mjs.map +1 -1
  6. package/dist/index.full.mjs +448 -327
  7. package/dist/locale/en.js +1 -1
  8. package/dist/locale/en.min.js +1 -1
  9. package/dist/locale/en.min.mjs +1 -1
  10. package/dist/locale/en.mjs +1 -1
  11. package/dist/locale/zh-cn.js +1 -1
  12. package/dist/locale/zh-cn.min.js +1 -1
  13. package/dist/locale/zh-cn.min.mjs +1 -1
  14. package/dist/locale/zh-cn.mjs +1 -1
  15. package/es/components/affix/index.mjs +2 -2
  16. package/es/components/affix/src/affix.mjs +19 -82
  17. package/es/components/affix/src/affix.mjs.map +1 -1
  18. package/es/components/affix/src/affix2.mjs +82 -19
  19. package/es/components/affix/src/affix2.mjs.map +1 -1
  20. package/es/components/alert/index.mjs +2 -2
  21. package/es/components/alert/src/alert.mjs +33 -83
  22. package/es/components/alert/src/alert.mjs.map +1 -1
  23. package/es/components/alert/src/alert2.mjs +83 -33
  24. package/es/components/alert/src/alert2.mjs.map +1 -1
  25. package/es/components/autocomplete/index.d.ts +5 -5
  26. package/es/components/autocomplete/index.mjs +2 -2
  27. package/es/components/autocomplete/src/autocomplete.mjs +94 -58
  28. package/es/components/autocomplete/src/autocomplete.mjs.map +1 -1
  29. package/es/components/autocomplete/src/autocomplete.vue.d.ts +5 -5
  30. package/es/components/autocomplete/src/autocomplete2.mjs +58 -94
  31. package/es/components/autocomplete/src/autocomplete2.mjs.map +1 -1
  32. package/es/components/avatar/index.mjs +2 -2
  33. package/es/components/avatar/src/avatar.mjs +61 -29
  34. package/es/components/avatar/src/avatar.mjs.map +1 -1
  35. package/es/components/avatar/src/avatar2.mjs +29 -61
  36. package/es/components/avatar/src/avatar2.mjs.map +1 -1
  37. package/es/components/breadcrumb/index.mjs +4 -4
  38. package/es/components/breadcrumb/src/breadcrumb-item.mjs +46 -11
  39. package/es/components/breadcrumb/src/breadcrumb-item.mjs.map +1 -1
  40. package/es/components/breadcrumb/src/breadcrumb-item2.mjs +11 -46
  41. package/es/components/breadcrumb/src/breadcrumb-item2.mjs.map +1 -1
  42. package/es/components/breadcrumb/src/breadcrumb.mjs +12 -37
  43. package/es/components/breadcrumb/src/breadcrumb.mjs.map +1 -1
  44. package/es/components/breadcrumb/src/breadcrumb2.mjs +37 -12
  45. package/es/components/breadcrumb/src/breadcrumb2.mjs.map +1 -1
  46. package/es/components/button/index.mjs +2 -2
  47. package/es/components/button/src/button-group.mjs +1 -1
  48. package/es/components/button/src/button.mjs +48 -96
  49. package/es/components/button/src/button.mjs.map +1 -1
  50. package/es/components/button/src/button2.mjs +96 -48
  51. package/es/components/button/src/button2.mjs.map +1 -1
  52. package/es/components/calendar/index.mjs +2 -2
  53. package/es/components/calendar/src/calendar.mjs +9 -188
  54. package/es/components/calendar/src/calendar.mjs.map +1 -1
  55. package/es/components/calendar/src/calendar2.mjs +188 -9
  56. package/es/components/calendar/src/calendar2.mjs.map +1 -1
  57. package/es/components/calendar/src/date-table.mjs +146 -27
  58. package/es/components/calendar/src/date-table.mjs.map +1 -1
  59. package/es/components/calendar/src/date-table2.mjs +27 -146
  60. package/es/components/calendar/src/date-table2.mjs.map +1 -1
  61. package/es/components/card/index.mjs +2 -2
  62. package/es/components/card/src/card.mjs +15 -35
  63. package/es/components/card/src/card.mjs.map +1 -1
  64. package/es/components/card/src/card2.mjs +35 -15
  65. package/es/components/card/src/card2.mjs.map +1 -1
  66. package/es/components/carousel/index.mjs +4 -4
  67. package/es/components/carousel/src/carousel-item.mjs +148 -7
  68. package/es/components/carousel/src/carousel-item.mjs.map +1 -1
  69. package/es/components/carousel/src/carousel-item2.mjs +7 -148
  70. package/es/components/carousel/src/carousel-item2.mjs.map +1 -1
  71. package/es/components/carousel/src/carousel.mjs +201 -43
  72. package/es/components/carousel/src/carousel.mjs.map +1 -1
  73. package/es/components/carousel/src/carousel2.mjs +43 -201
  74. package/es/components/carousel/src/carousel2.mjs.map +1 -1
  75. package/es/components/check-tag/index.mjs +2 -2
  76. package/es/components/check-tag/src/check-tag.mjs +7 -20
  77. package/es/components/check-tag/src/check-tag.mjs.map +1 -1
  78. package/es/components/check-tag/src/check-tag2.mjs +20 -7
  79. package/es/components/check-tag/src/check-tag2.mjs.map +1 -1
  80. package/es/components/collection/index.mjs +1 -1
  81. package/es/components/collection/src/collection.mjs +10 -30
  82. package/es/components/collection/src/collection.mjs.map +1 -1
  83. package/es/components/collection/src/collection2.mjs +30 -10
  84. package/es/components/collection/src/collection2.mjs.map +1 -1
  85. package/es/components/dialog/index.mjs +2 -2
  86. package/es/components/dialog/src/dialog.mjs +87 -61
  87. package/es/components/dialog/src/dialog.mjs.map +1 -1
  88. package/es/components/dialog/src/dialog2.mjs +61 -87
  89. package/es/components/dialog/src/dialog2.mjs.map +1 -1
  90. package/es/components/drawer/index.mjs +2 -2
  91. package/es/components/drawer/src/drawer.mjs +23 -117
  92. package/es/components/drawer/src/drawer.mjs.map +1 -1
  93. package/es/components/drawer/src/drawer2.mjs +117 -23
  94. package/es/components/drawer/src/drawer2.mjs.map +1 -1
  95. package/es/components/dropdown/index.d.ts +3 -3
  96. package/es/components/dropdown/src/dropdown.d.ts +1 -1
  97. package/es/components/dropdown/src/dropdown.mjs +1 -1
  98. package/es/components/dropdown/src/dropdown.vue.d.ts +3 -3
  99. package/es/components/form/index.mjs +4 -4
  100. package/es/components/form/src/form-item.mjs +46 -171
  101. package/es/components/form/src/form-item.mjs.map +1 -1
  102. package/es/components/form/src/form-item2.mjs +171 -46
  103. package/es/components/form/src/form-item2.mjs.map +1 -1
  104. package/es/components/form/src/form.mjs +40 -45
  105. package/es/components/form/src/form.mjs.map +1 -1
  106. package/es/components/form/src/form2.mjs +45 -40
  107. package/es/components/form/src/form2.mjs.map +1 -1
  108. package/es/components/icon/index.mjs +2 -2
  109. package/es/components/icon/src/icon.mjs +8 -35
  110. package/es/components/icon/src/icon.mjs.map +1 -1
  111. package/es/components/icon/src/icon2.mjs +35 -8
  112. package/es/components/icon/src/icon2.mjs.map +1 -1
  113. package/es/components/image/index.mjs +2 -2
  114. package/es/components/image/src/image.mjs +127 -50
  115. package/es/components/image/src/image.mjs.map +1 -1
  116. package/es/components/image/src/image2.mjs +50 -127
  117. package/es/components/image/src/image2.mjs.map +1 -1
  118. package/es/components/image-viewer/index.mjs +2 -2
  119. package/es/components/image-viewer/src/image-viewer.mjs +210 -31
  120. package/es/components/image-viewer/src/image-viewer.mjs.map +1 -1
  121. package/es/components/image-viewer/src/image-viewer2.mjs +31 -210
  122. package/es/components/image-viewer/src/image-viewer2.mjs.map +1 -1
  123. package/es/components/index.mjs +34 -34
  124. package/es/components/link/index.mjs +2 -2
  125. package/es/components/link/src/link.mjs +43 -19
  126. package/es/components/link/src/link.mjs.map +1 -1
  127. package/es/components/link/src/link2.mjs +19 -43
  128. package/es/components/link/src/link2.mjs.map +1 -1
  129. package/es/components/menu/index.d.ts +3 -3
  130. package/es/components/menu/index.mjs +4 -4
  131. package/es/components/menu/src/menu-item-group.mjs +4 -35
  132. package/es/components/menu/src/menu-item-group.mjs.map +1 -1
  133. package/es/components/menu/src/menu-item-group2.mjs +35 -4
  134. package/es/components/menu/src/menu-item-group2.mjs.map +1 -1
  135. package/es/components/menu/src/menu-item.mjs +74 -15
  136. package/es/components/menu/src/menu-item.mjs.map +1 -1
  137. package/es/components/menu/src/menu-item2.mjs +15 -74
  138. package/es/components/menu/src/menu-item2.mjs.map +1 -1
  139. package/es/components/menu/src/menu.d.ts +4 -4
  140. package/es/components/page-header/index.mjs +2 -2
  141. package/es/components/page-header/src/page-header.mjs +55 -14
  142. package/es/components/page-header/src/page-header.mjs.map +1 -1
  143. package/es/components/page-header/src/page-header2.mjs +14 -55
  144. package/es/components/page-header/src/page-header2.mjs.map +1 -1
  145. package/es/components/popconfirm/src/popconfirm.mjs +1 -1
  146. package/es/components/popover/index.d.ts +6 -6
  147. package/es/components/popover/src/index.vue.d.ts +3 -3
  148. package/es/components/popover/src/popover.d.ts +1 -1
  149. package/es/components/popper/index.mjs +2 -2
  150. package/es/components/popper/src/content.mjs +52 -64
  151. package/es/components/popper/src/content.mjs.map +1 -1
  152. package/es/components/popper/src/content2.mjs +64 -52
  153. package/es/components/popper/src/content2.mjs.map +1 -1
  154. package/es/components/progress/index.mjs +2 -2
  155. package/es/components/progress/src/progress.mjs +230 -57
  156. package/es/components/progress/src/progress.mjs.map +1 -1
  157. package/es/components/progress/src/progress2.mjs +57 -230
  158. package/es/components/progress/src/progress2.mjs.map +1 -1
  159. package/es/components/radio/index.mjs +2 -2
  160. package/es/components/radio/src/radio-button.mjs +80 -9
  161. package/es/components/radio/src/radio-button.mjs.map +1 -1
  162. package/es/components/radio/src/radio-button2.mjs +9 -80
  163. package/es/components/radio/src/radio-button2.mjs.map +1 -1
  164. package/es/components/result/index.mjs +2 -2
  165. package/es/components/result/src/result.mjs +73 -28
  166. package/es/components/result/src/result.mjs.map +1 -1
  167. package/es/components/result/src/result2.mjs +28 -73
  168. package/es/components/result/src/result2.mjs.map +1 -1
  169. package/es/components/roving-focus-group/index.mjs +3 -3
  170. package/es/components/roving-focus-group/src/roving-focus-group-impl.mjs +1 -1
  171. package/es/components/roving-focus-group/src/roving-focus-group.mjs +27 -29
  172. package/es/components/roving-focus-group/src/roving-focus-group.mjs.map +1 -1
  173. package/es/components/roving-focus-group/src/roving-focus-group2.mjs +29 -27
  174. package/es/components/roving-focus-group/src/roving-focus-group2.mjs.map +1 -1
  175. package/es/components/roving-focus-group/src/roving-focus-item.mjs +1 -1
  176. package/es/components/scrollbar/src/bar.mjs +35 -22
  177. package/es/components/scrollbar/src/bar.mjs.map +1 -1
  178. package/es/components/scrollbar/src/bar2.mjs +22 -35
  179. package/es/components/scrollbar/src/bar2.mjs.map +1 -1
  180. package/es/components/scrollbar/src/scrollbar2.mjs +1 -1
  181. package/es/components/select/index.d.ts +5 -5
  182. package/es/components/select/src/select.vue.d.ts +5 -5
  183. package/es/components/select/src/useSelect.d.ts +5 -5
  184. package/es/components/select-v2/index.d.ts +10 -10
  185. package/es/components/select-v2/src/option-item.vue.d.ts +1 -1
  186. package/es/components/select-v2/src/select.vue.d.ts +5 -5
  187. package/es/components/select-v2/src/useSelect.d.ts +5 -5
  188. package/es/components/skeleton/index.mjs +2 -2
  189. package/es/components/skeleton/src/skeleton.mjs +49 -22
  190. package/es/components/skeleton/src/skeleton.mjs.map +1 -1
  191. package/es/components/skeleton/src/skeleton2.mjs +22 -49
  192. package/es/components/skeleton/src/skeleton2.mjs.map +1 -1
  193. package/es/components/switch/index.mjs +2 -2
  194. package/es/components/switch/src/switch.mjs +81 -176
  195. package/es/components/switch/src/switch.mjs.map +1 -1
  196. package/es/components/switch/src/switch2.mjs +176 -81
  197. package/es/components/switch/src/switch2.mjs.map +1 -1
  198. package/es/components/table/index.d.ts +39 -86
  199. package/es/components/table/src/config.mjs +3 -0
  200. package/es/components/table/src/config.mjs.map +1 -1
  201. package/es/components/table/src/filter-panel.mjs +8 -1
  202. package/es/components/table/src/filter-panel.mjs.map +1 -1
  203. package/es/components/table/src/filter-panel.vue.d.ts +5 -5
  204. package/es/components/table/src/store/current.mjs +14 -12
  205. package/es/components/table/src/store/current.mjs.map +1 -1
  206. package/es/components/table/src/store/helper.mjs +5 -1
  207. package/es/components/table/src/store/helper.mjs.map +1 -1
  208. package/es/components/table/src/store/index.mjs +9 -9
  209. package/es/components/table/src/store/index.mjs.map +1 -1
  210. package/es/components/table/src/store/watcher.mjs +11 -1
  211. package/es/components/table/src/store/watcher.mjs.map +1 -1
  212. package/es/components/table/src/table/defaults.d.ts +8 -4
  213. package/es/components/table/src/table/defaults.mjs +3 -4
  214. package/es/components/table/src/table/defaults.mjs.map +1 -1
  215. package/es/components/table/src/table/style-helper.d.ts +24 -34
  216. package/es/components/table/src/table/style-helper.mjs +107 -120
  217. package/es/components/table/src/table/style-helper.mjs.map +1 -1
  218. package/es/components/table/src/table/utils-helper.d.ts +1 -1
  219. package/es/components/table/src/table/utils-helper.mjs.map +1 -1
  220. package/es/components/table/src/table-body/events-helper.d.ts +1 -3
  221. package/es/components/table/src/table-body/events-helper.mjs +3 -3
  222. package/es/components/table/src/table-body/events-helper.mjs.map +1 -1
  223. package/es/components/table/src/table-body/index.mjs +1 -5
  224. package/es/components/table/src/table-body/index.mjs.map +1 -1
  225. package/es/components/table/src/table-body/render-helper.mjs +6 -3
  226. package/es/components/table/src/table-body/render-helper.mjs.map +1 -1
  227. package/es/components/table/src/table-body/styles-helper.d.ts +1 -1
  228. package/es/components/table/src/table-body/styles-helper.mjs +3 -3
  229. package/es/components/table/src/table-body/styles-helper.mjs.map +1 -1
  230. package/es/components/table/src/table-column/render-helper.mjs +4 -2
  231. package/es/components/table/src/table-column/render-helper.mjs.map +1 -1
  232. package/es/components/table/src/table-header/event-helper.mjs +5 -9
  233. package/es/components/table/src/table-header/event-helper.mjs.map +1 -1
  234. package/es/components/table/src/table-header/index.mjs +1 -2
  235. package/es/components/table/src/table-header/index.mjs.map +1 -1
  236. package/es/components/table/src/table-header/style.helper.mjs +2 -2
  237. package/es/components/table/src/table-header/style.helper.mjs.map +1 -1
  238. package/es/components/table/src/table-layout.d.ts +1 -6
  239. package/es/components/table/src/table-layout.mjs +0 -64
  240. package/es/components/table/src/table-layout.mjs.map +1 -1
  241. package/es/components/table/src/table.mjs +31 -35
  242. package/es/components/table/src/table.mjs.map +1 -1
  243. package/es/components/table/src/table.vue.d.ts +39 -86
  244. package/es/components/table/src/util.d.ts +7 -7
  245. package/es/components/table/src/util.mjs +68 -52
  246. package/es/components/table/src/util.mjs.map +1 -1
  247. package/es/components/table-v2/src/components/header.d.ts +1 -1
  248. package/es/components/table-v2/src/table-grid.d.ts +1 -1
  249. package/es/components/table-v2/src/table-v2.d.ts +1 -1
  250. package/es/components/tabs/index.mjs +2 -2
  251. package/es/components/tabs/src/tab-pane.mjs +61 -15
  252. package/es/components/tabs/src/tab-pane.mjs.map +1 -1
  253. package/es/components/tabs/src/tab-pane2.mjs +15 -61
  254. package/es/components/tabs/src/tab-pane2.mjs.map +1 -1
  255. package/es/components/teleport/index.mjs +2 -2
  256. package/es/components/teleport/src/teleport.mjs +18 -43
  257. package/es/components/teleport/src/teleport.mjs.map +1 -1
  258. package/es/components/teleport/src/teleport2.mjs +43 -18
  259. package/es/components/teleport/src/teleport2.mjs.map +1 -1
  260. package/es/components/time-picker/src/common/picker.vue.d.ts +5 -5
  261. package/es/components/tooltip/index.d.ts +3 -3
  262. package/es/components/tooltip/src/tooltip.d.ts +1 -1
  263. package/es/components/tooltip/src/tooltip.mjs +1 -1
  264. package/es/components/tooltip/src/tooltip.vue.d.ts +3 -3
  265. package/es/components/tooltip/src/trigger.vue.d.ts +3 -3
  266. package/es/components/tooltip-v2/index.mjs +1 -1
  267. package/es/components/tooltip-v2/src/tooltip.mjs +1 -1
  268. package/es/components/tooltip-v2/src/tooltip2.mjs +2 -2
  269. package/es/components/tooltip-v2/src/trigger.mjs +89 -11
  270. package/es/components/tooltip-v2/src/trigger.mjs.map +1 -1
  271. package/es/components/tooltip-v2/src/trigger2.mjs +11 -89
  272. package/es/components/tooltip-v2/src/trigger2.mjs.map +1 -1
  273. package/es/components/upload/index.mjs +4 -4
  274. package/es/components/upload/src/upload-content.mjs +15 -46
  275. package/es/components/upload/src/upload-content.mjs.map +1 -1
  276. package/es/components/upload/src/upload-content2.mjs +46 -15
  277. package/es/components/upload/src/upload-content2.mjs.map +1 -1
  278. package/es/components/upload/src/upload-list.mjs +155 -26
  279. package/es/components/upload/src/upload-list.mjs.map +1 -1
  280. package/es/components/upload/src/upload-list2.mjs +26 -155
  281. package/es/components/upload/src/upload-list2.mjs.map +1 -1
  282. package/es/components/upload/src/upload.mjs +99 -106
  283. package/es/components/upload/src/upload.mjs.map +1 -1
  284. package/es/components/upload/src/upload2.mjs +106 -99
  285. package/es/components/upload/src/upload2.mjs.map +1 -1
  286. package/es/index.mjs +34 -34
  287. package/es/version.d.ts +1 -1
  288. package/es/version.mjs +1 -1
  289. package/es/version.mjs.map +1 -1
  290. package/lib/components/affix/index.js +2 -2
  291. package/lib/components/affix/src/affix.js +19 -82
  292. package/lib/components/affix/src/affix.js.map +1 -1
  293. package/lib/components/affix/src/affix2.js +82 -19
  294. package/lib/components/affix/src/affix2.js.map +1 -1
  295. package/lib/components/alert/index.js +2 -2
  296. package/lib/components/alert/src/alert.js +33 -82
  297. package/lib/components/alert/src/alert.js.map +1 -1
  298. package/lib/components/alert/src/alert2.js +82 -33
  299. package/lib/components/alert/src/alert2.js.map +1 -1
  300. package/lib/components/autocomplete/index.d.ts +5 -5
  301. package/lib/components/autocomplete/index.js +2 -2
  302. package/lib/components/autocomplete/src/autocomplete.js +94 -58
  303. package/lib/components/autocomplete/src/autocomplete.js.map +1 -1
  304. package/lib/components/autocomplete/src/autocomplete.vue.d.ts +5 -5
  305. package/lib/components/autocomplete/src/autocomplete2.js +58 -94
  306. package/lib/components/autocomplete/src/autocomplete2.js.map +1 -1
  307. package/lib/components/avatar/index.js +2 -2
  308. package/lib/components/avatar/src/avatar.js +61 -29
  309. package/lib/components/avatar/src/avatar.js.map +1 -1
  310. package/lib/components/avatar/src/avatar2.js +29 -61
  311. package/lib/components/avatar/src/avatar2.js.map +1 -1
  312. package/lib/components/breadcrumb/index.js +4 -4
  313. package/lib/components/breadcrumb/src/breadcrumb-item.js +46 -11
  314. package/lib/components/breadcrumb/src/breadcrumb-item.js.map +1 -1
  315. package/lib/components/breadcrumb/src/breadcrumb-item2.js +11 -46
  316. package/lib/components/breadcrumb/src/breadcrumb-item2.js.map +1 -1
  317. package/lib/components/breadcrumb/src/breadcrumb.js +12 -37
  318. package/lib/components/breadcrumb/src/breadcrumb.js.map +1 -1
  319. package/lib/components/breadcrumb/src/breadcrumb2.js +37 -12
  320. package/lib/components/breadcrumb/src/breadcrumb2.js.map +1 -1
  321. package/lib/components/button/index.js +2 -2
  322. package/lib/components/button/src/button-group.js +1 -1
  323. package/lib/components/button/src/button.js +50 -96
  324. package/lib/components/button/src/button.js.map +1 -1
  325. package/lib/components/button/src/button2.js +96 -50
  326. package/lib/components/button/src/button2.js.map +1 -1
  327. package/lib/components/calendar/index.js +2 -2
  328. package/lib/components/calendar/src/calendar.js +9 -192
  329. package/lib/components/calendar/src/calendar.js.map +1 -1
  330. package/lib/components/calendar/src/calendar2.js +192 -9
  331. package/lib/components/calendar/src/calendar2.js.map +1 -1
  332. package/lib/components/calendar/src/date-table.js +151 -30
  333. package/lib/components/calendar/src/date-table.js.map +1 -1
  334. package/lib/components/calendar/src/date-table2.js +30 -151
  335. package/lib/components/calendar/src/date-table2.js.map +1 -1
  336. package/lib/components/card/index.js +2 -2
  337. package/lib/components/card/src/card.js +15 -35
  338. package/lib/components/card/src/card.js.map +1 -1
  339. package/lib/components/card/src/card2.js +35 -15
  340. package/lib/components/card/src/card2.js.map +1 -1
  341. package/lib/components/carousel/index.js +4 -4
  342. package/lib/components/carousel/src/carousel-item.js +148 -7
  343. package/lib/components/carousel/src/carousel-item.js.map +1 -1
  344. package/lib/components/carousel/src/carousel-item2.js +7 -148
  345. package/lib/components/carousel/src/carousel-item2.js.map +1 -1
  346. package/lib/components/carousel/src/carousel.js +201 -43
  347. package/lib/components/carousel/src/carousel.js.map +1 -1
  348. package/lib/components/carousel/src/carousel2.js +43 -201
  349. package/lib/components/carousel/src/carousel2.js.map +1 -1
  350. package/lib/components/check-tag/index.js +2 -2
  351. package/lib/components/check-tag/src/check-tag.js +7 -20
  352. package/lib/components/check-tag/src/check-tag.js.map +1 -1
  353. package/lib/components/check-tag/src/check-tag2.js +20 -7
  354. package/lib/components/check-tag/src/check-tag2.js.map +1 -1
  355. package/lib/components/collection/index.js +1 -1
  356. package/lib/components/collection/src/collection.js +9 -30
  357. package/lib/components/collection/src/collection.js.map +1 -1
  358. package/lib/components/collection/src/collection2.js +30 -9
  359. package/lib/components/collection/src/collection2.js.map +1 -1
  360. package/lib/components/dialog/index.js +2 -2
  361. package/lib/components/dialog/src/dialog.js +87 -61
  362. package/lib/components/dialog/src/dialog.js.map +1 -1
  363. package/lib/components/dialog/src/dialog2.js +61 -87
  364. package/lib/components/dialog/src/dialog2.js.map +1 -1
  365. package/lib/components/drawer/index.js +2 -2
  366. package/lib/components/drawer/src/drawer.js +23 -117
  367. package/lib/components/drawer/src/drawer.js.map +1 -1
  368. package/lib/components/drawer/src/drawer2.js +117 -23
  369. package/lib/components/drawer/src/drawer2.js.map +1 -1
  370. package/lib/components/dropdown/index.d.ts +3 -3
  371. package/lib/components/dropdown/src/dropdown.d.ts +1 -1
  372. package/lib/components/dropdown/src/dropdown.js +1 -1
  373. package/lib/components/dropdown/src/dropdown.vue.d.ts +3 -3
  374. package/lib/components/form/index.js +4 -4
  375. package/lib/components/form/src/form-item.js +47 -171
  376. package/lib/components/form/src/form-item.js.map +1 -1
  377. package/lib/components/form/src/form-item2.js +171 -47
  378. package/lib/components/form/src/form-item2.js.map +1 -1
  379. package/lib/components/form/src/form.js +40 -45
  380. package/lib/components/form/src/form.js.map +1 -1
  381. package/lib/components/form/src/form2.js +45 -40
  382. package/lib/components/form/src/form2.js.map +1 -1
  383. package/lib/components/icon/index.js +2 -2
  384. package/lib/components/icon/src/icon.js +8 -35
  385. package/lib/components/icon/src/icon.js.map +1 -1
  386. package/lib/components/icon/src/icon2.js +35 -8
  387. package/lib/components/icon/src/icon2.js.map +1 -1
  388. package/lib/components/image/index.js +2 -2
  389. package/lib/components/image/src/image.js +127 -50
  390. package/lib/components/image/src/image.js.map +1 -1
  391. package/lib/components/image/src/image2.js +50 -127
  392. package/lib/components/image/src/image2.js.map +1 -1
  393. package/lib/components/image-viewer/index.js +2 -2
  394. package/lib/components/image-viewer/src/image-viewer.js +210 -31
  395. package/lib/components/image-viewer/src/image-viewer.js.map +1 -1
  396. package/lib/components/image-viewer/src/image-viewer2.js +31 -210
  397. package/lib/components/image-viewer/src/image-viewer2.js.map +1 -1
  398. package/lib/components/index.js +34 -34
  399. package/lib/components/link/index.js +2 -2
  400. package/lib/components/link/src/link.js +43 -19
  401. package/lib/components/link/src/link.js.map +1 -1
  402. package/lib/components/link/src/link2.js +19 -43
  403. package/lib/components/link/src/link2.js.map +1 -1
  404. package/lib/components/menu/index.d.ts +3 -3
  405. package/lib/components/menu/index.js +4 -4
  406. package/lib/components/menu/src/menu-item-group.js +4 -35
  407. package/lib/components/menu/src/menu-item-group.js.map +1 -1
  408. package/lib/components/menu/src/menu-item-group2.js +35 -4
  409. package/lib/components/menu/src/menu-item-group2.js.map +1 -1
  410. package/lib/components/menu/src/menu-item.js +74 -16
  411. package/lib/components/menu/src/menu-item.js.map +1 -1
  412. package/lib/components/menu/src/menu-item2.js +16 -74
  413. package/lib/components/menu/src/menu-item2.js.map +1 -1
  414. package/lib/components/menu/src/menu.d.ts +4 -4
  415. package/lib/components/page-header/index.js +2 -2
  416. package/lib/components/page-header/src/page-header.js +55 -14
  417. package/lib/components/page-header/src/page-header.js.map +1 -1
  418. package/lib/components/page-header/src/page-header2.js +14 -55
  419. package/lib/components/page-header/src/page-header2.js.map +1 -1
  420. package/lib/components/popconfirm/src/popconfirm.js +1 -1
  421. package/lib/components/popover/index.d.ts +6 -6
  422. package/lib/components/popover/src/index.vue.d.ts +3 -3
  423. package/lib/components/popover/src/popover.d.ts +1 -1
  424. package/lib/components/popper/index.js +2 -2
  425. package/lib/components/popper/src/content.js +52 -65
  426. package/lib/components/popper/src/content.js.map +1 -1
  427. package/lib/components/popper/src/content2.js +65 -52
  428. package/lib/components/popper/src/content2.js.map +1 -1
  429. package/lib/components/progress/index.js +2 -2
  430. package/lib/components/progress/src/progress.js +230 -57
  431. package/lib/components/progress/src/progress.js.map +1 -1
  432. package/lib/components/progress/src/progress2.js +57 -230
  433. package/lib/components/progress/src/progress2.js.map +1 -1
  434. package/lib/components/radio/index.js +2 -2
  435. package/lib/components/radio/src/radio-button.js +79 -8
  436. package/lib/components/radio/src/radio-button.js.map +1 -1
  437. package/lib/components/radio/src/radio-button2.js +8 -79
  438. package/lib/components/radio/src/radio-button2.js.map +1 -1
  439. package/lib/components/result/index.js +2 -2
  440. package/lib/components/result/src/result.js +73 -30
  441. package/lib/components/result/src/result.js.map +1 -1
  442. package/lib/components/result/src/result2.js +30 -73
  443. package/lib/components/result/src/result2.js.map +1 -1
  444. package/lib/components/roving-focus-group/index.js +2 -2
  445. package/lib/components/roving-focus-group/src/roving-focus-group-impl.js +1 -1
  446. package/lib/components/roving-focus-group/src/roving-focus-group.js +27 -33
  447. package/lib/components/roving-focus-group/src/roving-focus-group.js.map +1 -1
  448. package/lib/components/roving-focus-group/src/roving-focus-group2.js +33 -27
  449. package/lib/components/roving-focus-group/src/roving-focus-group2.js.map +1 -1
  450. package/lib/components/roving-focus-group/src/roving-focus-item.js +1 -1
  451. package/lib/components/scrollbar/src/bar.js +35 -22
  452. package/lib/components/scrollbar/src/bar.js.map +1 -1
  453. package/lib/components/scrollbar/src/bar2.js +22 -35
  454. package/lib/components/scrollbar/src/bar2.js.map +1 -1
  455. package/lib/components/scrollbar/src/scrollbar2.js +1 -1
  456. package/lib/components/select/index.d.ts +5 -5
  457. package/lib/components/select/src/select.vue.d.ts +5 -5
  458. package/lib/components/select/src/useSelect.d.ts +5 -5
  459. package/lib/components/select-v2/index.d.ts +10 -10
  460. package/lib/components/select-v2/src/option-item.vue.d.ts +1 -1
  461. package/lib/components/select-v2/src/select.vue.d.ts +5 -5
  462. package/lib/components/select-v2/src/useSelect.d.ts +5 -5
  463. package/lib/components/skeleton/index.js +2 -2
  464. package/lib/components/skeleton/src/skeleton.js +49 -22
  465. package/lib/components/skeleton/src/skeleton.js.map +1 -1
  466. package/lib/components/skeleton/src/skeleton2.js +22 -49
  467. package/lib/components/skeleton/src/skeleton2.js.map +1 -1
  468. package/lib/components/switch/index.js +2 -2
  469. package/lib/components/switch/src/switch.js +81 -176
  470. package/lib/components/switch/src/switch.js.map +1 -1
  471. package/lib/components/switch/src/switch2.js +176 -81
  472. package/lib/components/switch/src/switch2.js.map +1 -1
  473. package/lib/components/table/index.d.ts +39 -86
  474. package/lib/components/table/src/config.js +3 -0
  475. package/lib/components/table/src/config.js.map +1 -1
  476. package/lib/components/table/src/filter-panel.js +7 -0
  477. package/lib/components/table/src/filter-panel.js.map +1 -1
  478. package/lib/components/table/src/filter-panel.vue.d.ts +5 -5
  479. package/lib/components/table/src/store/current.js +14 -12
  480. package/lib/components/table/src/store/current.js.map +1 -1
  481. package/lib/components/table/src/store/helper.js +5 -1
  482. package/lib/components/table/src/store/helper.js.map +1 -1
  483. package/lib/components/table/src/store/index.js +8 -8
  484. package/lib/components/table/src/store/index.js.map +1 -1
  485. package/lib/components/table/src/store/watcher.js +11 -1
  486. package/lib/components/table/src/store/watcher.js.map +1 -1
  487. package/lib/components/table/src/table/defaults.d.ts +8 -4
  488. package/lib/components/table/src/table/defaults.js +3 -4
  489. package/lib/components/table/src/table/defaults.js.map +1 -1
  490. package/lib/components/table/src/table/style-helper.d.ts +24 -34
  491. package/lib/components/table/src/table/style-helper.js +106 -119
  492. package/lib/components/table/src/table/style-helper.js.map +1 -1
  493. package/lib/components/table/src/table/utils-helper.d.ts +1 -1
  494. package/lib/components/table/src/table/utils-helper.js.map +1 -1
  495. package/lib/components/table/src/table-body/events-helper.d.ts +1 -3
  496. package/lib/components/table/src/table-body/events-helper.js +3 -3
  497. package/lib/components/table/src/table-body/events-helper.js.map +1 -1
  498. package/lib/components/table/src/table-body/index.js +0 -4
  499. package/lib/components/table/src/table-body/index.js.map +1 -1
  500. package/lib/components/table/src/table-body/render-helper.js +6 -3
  501. package/lib/components/table/src/table-body/render-helper.js.map +1 -1
  502. package/lib/components/table/src/table-body/styles-helper.d.ts +1 -1
  503. package/lib/components/table/src/table-body/styles-helper.js +3 -3
  504. package/lib/components/table/src/table-body/styles-helper.js.map +1 -1
  505. package/lib/components/table/src/table-column/render-helper.js +4 -2
  506. package/lib/components/table/src/table-column/render-helper.js.map +1 -1
  507. package/lib/components/table/src/table-header/event-helper.js +5 -9
  508. package/lib/components/table/src/table-header/event-helper.js.map +1 -1
  509. package/lib/components/table/src/table-header/index.js +1 -2
  510. package/lib/components/table/src/table-header/index.js.map +1 -1
  511. package/lib/components/table/src/table-header/style.helper.js +2 -2
  512. package/lib/components/table/src/table-header/style.helper.js.map +1 -1
  513. package/lib/components/table/src/table-layout.d.ts +1 -6
  514. package/lib/components/table/src/table-layout.js +0 -64
  515. package/lib/components/table/src/table-layout.js.map +1 -1
  516. package/lib/components/table/src/table.js +31 -35
  517. package/lib/components/table/src/table.js.map +1 -1
  518. package/lib/components/table/src/table.vue.d.ts +39 -86
  519. package/lib/components/table/src/util.d.ts +7 -7
  520. package/lib/components/table/src/util.js +68 -52
  521. package/lib/components/table/src/util.js.map +1 -1
  522. package/lib/components/table-v2/src/components/header.d.ts +1 -1
  523. package/lib/components/table-v2/src/table-grid.d.ts +1 -1
  524. package/lib/components/table-v2/src/table-v2.d.ts +1 -1
  525. package/lib/components/tabs/index.js +2 -2
  526. package/lib/components/tabs/src/tab-pane.js +61 -15
  527. package/lib/components/tabs/src/tab-pane.js.map +1 -1
  528. package/lib/components/tabs/src/tab-pane2.js +15 -61
  529. package/lib/components/tabs/src/tab-pane2.js.map +1 -1
  530. package/lib/components/teleport/index.js +2 -2
  531. package/lib/components/teleport/src/teleport.js +18 -43
  532. package/lib/components/teleport/src/teleport.js.map +1 -1
  533. package/lib/components/teleport/src/teleport2.js +43 -18
  534. package/lib/components/teleport/src/teleport2.js.map +1 -1
  535. package/lib/components/time-picker/src/common/picker.vue.d.ts +5 -5
  536. package/lib/components/tooltip/index.d.ts +3 -3
  537. package/lib/components/tooltip/src/tooltip.d.ts +1 -1
  538. package/lib/components/tooltip/src/tooltip.js +1 -1
  539. package/lib/components/tooltip/src/tooltip.vue.d.ts +3 -3
  540. package/lib/components/tooltip/src/trigger.vue.d.ts +3 -3
  541. package/lib/components/tooltip-v2/index.js +1 -1
  542. package/lib/components/tooltip-v2/src/tooltip.js +1 -1
  543. package/lib/components/tooltip-v2/src/tooltip2.js +2 -2
  544. package/lib/components/tooltip-v2/src/trigger.js +89 -11
  545. package/lib/components/tooltip-v2/src/trigger.js.map +1 -1
  546. package/lib/components/tooltip-v2/src/trigger2.js +11 -89
  547. package/lib/components/tooltip-v2/src/trigger2.js.map +1 -1
  548. package/lib/components/upload/index.js +4 -4
  549. package/lib/components/upload/src/upload-content.js +15 -46
  550. package/lib/components/upload/src/upload-content.js.map +1 -1
  551. package/lib/components/upload/src/upload-content2.js +46 -15
  552. package/lib/components/upload/src/upload-content2.js.map +1 -1
  553. package/lib/components/upload/src/upload-list.js +155 -27
  554. package/lib/components/upload/src/upload-list.js.map +1 -1
  555. package/lib/components/upload/src/upload-list2.js +27 -155
  556. package/lib/components/upload/src/upload-list2.js.map +1 -1
  557. package/lib/components/upload/src/upload.js +99 -109
  558. package/lib/components/upload/src/upload.js.map +1 -1
  559. package/lib/components/upload/src/upload2.js +109 -99
  560. package/lib/components/upload/src/upload2.js.map +1 -1
  561. package/lib/index.js +34 -34
  562. package/lib/version.d.ts +1 -1
  563. package/lib/version.js +1 -1
  564. package/lib/version.js.map +1 -1
  565. package/package.json +1 -1
  566. package/web-types.json +1 -1
@@ -1,4 +1,4 @@
1
- /*! Element Ps v2.0.23 */
1
+ /*! Element Ps v2.0.38 */
2
2
 
3
3
  import { getCurrentScope, onScopeDispose, readonly, shallowRef, watchEffect, ref, watch, unref, getCurrentInstance, onMounted, nextTick, defineComponent, openBlock, createElementBlock, createElementVNode, warn, isVNode, Fragment, Comment, camelize as camelize$1, computed, inject, provide, onBeforeUnmount, isRef, onUnmounted, h as h$1, Teleport, onBeforeMount, normalizeClass, normalizeStyle, renderSlot, mergeProps, useSlots, createBlock, Transition, withCtx, withDirectives, resolveDynamicComponent, createCommentVNode, createTextVNode, toDisplayString, createVNode, vShow, useAttrs as useAttrs$1, resolveComponent, createSlots, cloneVNode, Text as Text$1, toRef, reactive, onUpdated, resolveDirective, renderList, normalizeProps, guardReactiveProps, vModelCheckbox, toRefs, vModelRadio, withModifiers, onBeforeUpdate, vModelText, toHandlers, markRaw, triggerRef, toRaw, withKeys, TransitionGroup, createApp } from 'vue';
4
4
 
@@ -945,9 +945,9 @@ function cacheHas(cache, key) {
945
945
  return cache.has(key);
946
946
  }
947
947
 
948
- var COMPARE_PARTIAL_FLAG$3 = 1, COMPARE_UNORDERED_FLAG$1 = 2;
948
+ var COMPARE_PARTIAL_FLAG$5 = 1, COMPARE_UNORDERED_FLAG$3 = 2;
949
949
  function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
950
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG$3, arrLength = array.length, othLength = other.length;
950
+ var isPartial = bitmask & COMPARE_PARTIAL_FLAG$5, arrLength = array.length, othLength = other.length;
951
951
  if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
952
952
  return false;
953
953
  }
@@ -956,7 +956,7 @@ function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
956
956
  if (arrStacked && othStacked) {
957
957
  return arrStacked == other && othStacked == array;
958
958
  }
959
- var index = -1, result = true, seen = bitmask & COMPARE_UNORDERED_FLAG$1 ? new SetCache() : void 0;
959
+ var index = -1, result = true, seen = bitmask & COMPARE_UNORDERED_FLAG$3 ? new SetCache() : void 0;
960
960
  stack.set(array, other);
961
961
  stack.set(other, array);
962
962
  while (++index < arrLength) {
@@ -1006,7 +1006,7 @@ function setToArray(set) {
1006
1006
  return result;
1007
1007
  }
1008
1008
 
1009
- var COMPARE_PARTIAL_FLAG$2 = 1, COMPARE_UNORDERED_FLAG = 2;
1009
+ var COMPARE_PARTIAL_FLAG$4 = 1, COMPARE_UNORDERED_FLAG$2 = 2;
1010
1010
  var boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", mapTag = "[object Map]", numberTag = "[object Number]", regexpTag = "[object RegExp]", setTag = "[object Set]", stringTag = "[object String]", symbolTag = "[object Symbol]";
1011
1011
  var arrayBufferTag = "[object ArrayBuffer]", dataViewTag = "[object DataView]";
1012
1012
  var symbolProto = Symbol$2 ? Symbol$2.prototype : void 0, symbolValueOf = symbolProto ? symbolProto.valueOf : void 0;
@@ -1035,7 +1035,7 @@ function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
1035
1035
  case mapTag:
1036
1036
  var convert = mapToArray;
1037
1037
  case setTag:
1038
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG$2;
1038
+ var isPartial = bitmask & COMPARE_PARTIAL_FLAG$4;
1039
1039
  convert || (convert = setToArray);
1040
1040
  if (object.size != other.size && !isPartial) {
1041
1041
  return false;
@@ -1044,7 +1044,7 @@ function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
1044
1044
  if (stacked) {
1045
1045
  return stacked == other;
1046
1046
  }
1047
- bitmask |= COMPARE_UNORDERED_FLAG;
1047
+ bitmask |= COMPARE_UNORDERED_FLAG$2;
1048
1048
  stack.set(object, other);
1049
1049
  var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
1050
1050
  stack["delete"](object);
@@ -1057,11 +1057,11 @@ function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
1057
1057
  return false;
1058
1058
  }
1059
1059
 
1060
- var COMPARE_PARTIAL_FLAG$1 = 1;
1060
+ var COMPARE_PARTIAL_FLAG$3 = 1;
1061
1061
  var objectProto$1 = Object.prototype;
1062
1062
  var hasOwnProperty$2 = objectProto$1.hasOwnProperty;
1063
1063
  function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
1064
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG$1, objProps = getAllKeys(object), objLength = objProps.length, othProps = getAllKeys(other), othLength = othProps.length;
1064
+ var isPartial = bitmask & COMPARE_PARTIAL_FLAG$3, objProps = getAllKeys(object), objLength = objProps.length, othProps = getAllKeys(other), othLength = othProps.length;
1065
1065
  if (objLength != othLength && !isPartial) {
1066
1066
  return false;
1067
1067
  }
@@ -1104,7 +1104,7 @@ function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
1104
1104
  return result;
1105
1105
  }
1106
1106
 
1107
- var COMPARE_PARTIAL_FLAG = 1;
1107
+ var COMPARE_PARTIAL_FLAG$2 = 1;
1108
1108
  var argsTag = "[object Arguments]", arrayTag = "[object Array]", objectTag = "[object Object]";
1109
1109
  var objectProto = Object.prototype;
1110
1110
  var hasOwnProperty$1 = objectProto.hasOwnProperty;
@@ -1124,7 +1124,7 @@ function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
1124
1124
  stack || (stack = new Stack());
1125
1125
  return objIsArr || isTypedArray$1(object) ? equalArrays(object, other, bitmask, customizer, equalFunc, stack) : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
1126
1126
  }
1127
- if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
1127
+ if (!(bitmask & COMPARE_PARTIAL_FLAG$2)) {
1128
1128
  var objIsWrapped = objIsObj && hasOwnProperty$1.call(object, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty$1.call(other, "__wrapped__");
1129
1129
  if (objIsWrapped || othIsWrapped) {
1130
1130
  var objUnwrapped = objIsWrapped ? object.value() : object, othUnwrapped = othIsWrapped ? other.value() : other;
@@ -1149,6 +1149,71 @@ function baseIsEqual(value, other, bitmask, customizer, stack) {
1149
1149
  return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
1150
1150
  }
1151
1151
 
1152
+ var COMPARE_PARTIAL_FLAG$1 = 1, COMPARE_UNORDERED_FLAG$1 = 2;
1153
+ function baseIsMatch(object, source, matchData, customizer) {
1154
+ var index = matchData.length, length = index, noCustomizer = !customizer;
1155
+ if (object == null) {
1156
+ return !length;
1157
+ }
1158
+ object = Object(object);
1159
+ while (index--) {
1160
+ var data = matchData[index];
1161
+ if (noCustomizer && data[2] ? data[1] !== object[data[0]] : !(data[0] in object)) {
1162
+ return false;
1163
+ }
1164
+ }
1165
+ while (++index < length) {
1166
+ data = matchData[index];
1167
+ var key = data[0], objValue = object[key], srcValue = data[1];
1168
+ if (noCustomizer && data[2]) {
1169
+ if (objValue === void 0 && !(key in object)) {
1170
+ return false;
1171
+ }
1172
+ } else {
1173
+ var stack = new Stack();
1174
+ if (customizer) {
1175
+ var result = customizer(objValue, srcValue, key, object, source, stack);
1176
+ }
1177
+ if (!(result === void 0 ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG$1 | COMPARE_UNORDERED_FLAG$1, customizer, stack) : result)) {
1178
+ return false;
1179
+ }
1180
+ }
1181
+ }
1182
+ return true;
1183
+ }
1184
+
1185
+ function isStrictComparable(value) {
1186
+ return value === value && !isObject$2(value);
1187
+ }
1188
+
1189
+ function getMatchData(object) {
1190
+ var result = keys(object), length = result.length;
1191
+ while (length--) {
1192
+ var key = result[length], value = object[key];
1193
+ result[length] = [key, value, isStrictComparable(value)];
1194
+ }
1195
+ return result;
1196
+ }
1197
+
1198
+ function matchesStrictComparable(key, srcValue) {
1199
+ return function(object) {
1200
+ if (object == null) {
1201
+ return false;
1202
+ }
1203
+ return object[key] === srcValue && (srcValue !== void 0 || key in Object(object));
1204
+ };
1205
+ }
1206
+
1207
+ function baseMatches(source) {
1208
+ var matchData = getMatchData(source);
1209
+ if (matchData.length == 1 && matchData[0][2]) {
1210
+ return matchesStrictComparable(matchData[0][0], matchData[0][1]);
1211
+ }
1212
+ return function(object) {
1213
+ return object === source || baseIsMatch(object, source, matchData);
1214
+ };
1215
+ }
1216
+
1152
1217
  function baseHasIn(object, key) {
1153
1218
  return object != null && key in Object(object);
1154
1219
  }
@@ -1174,6 +1239,87 @@ function hasIn(object, path) {
1174
1239
  return object != null && hasPath(object, path, baseHasIn);
1175
1240
  }
1176
1241
 
1242
+ var COMPARE_PARTIAL_FLAG = 1, COMPARE_UNORDERED_FLAG = 2;
1243
+ function baseMatchesProperty(path, srcValue) {
1244
+ if (isKey(path) && isStrictComparable(srcValue)) {
1245
+ return matchesStrictComparable(toKey(path), srcValue);
1246
+ }
1247
+ return function(object) {
1248
+ var objValue = get(object, path);
1249
+ return objValue === void 0 && objValue === srcValue ? hasIn(object, path) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
1250
+ };
1251
+ }
1252
+
1253
+ function baseProperty(key) {
1254
+ return function(object) {
1255
+ return object == null ? void 0 : object[key];
1256
+ };
1257
+ }
1258
+
1259
+ function basePropertyDeep(path) {
1260
+ return function(object) {
1261
+ return baseGet(object, path);
1262
+ };
1263
+ }
1264
+
1265
+ function property(path) {
1266
+ return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
1267
+ }
1268
+
1269
+ function baseIteratee(value) {
1270
+ if (typeof value == "function") {
1271
+ return value;
1272
+ }
1273
+ if (value == null) {
1274
+ return identity;
1275
+ }
1276
+ if (typeof value == "object") {
1277
+ return isArray$2(value) ? baseMatchesProperty(value[0], value[1]) : baseMatches(value);
1278
+ }
1279
+ return property(value);
1280
+ }
1281
+
1282
+ function createBaseFor(fromRight) {
1283
+ return function(object, iteratee, keysFunc) {
1284
+ var index = -1, iterable = Object(object), props = keysFunc(object), length = props.length;
1285
+ while (length--) {
1286
+ var key = props[fromRight ? length : ++index];
1287
+ if (iteratee(iterable[key], key, iterable) === false) {
1288
+ break;
1289
+ }
1290
+ }
1291
+ return object;
1292
+ };
1293
+ }
1294
+
1295
+ var baseFor = createBaseFor();
1296
+ var baseFor$1 = baseFor;
1297
+
1298
+ function baseForOwn(object, iteratee) {
1299
+ return object && baseFor$1(object, iteratee, keys);
1300
+ }
1301
+
1302
+ function createBaseEach(eachFunc, fromRight) {
1303
+ return function(collection, iteratee) {
1304
+ if (collection == null) {
1305
+ return collection;
1306
+ }
1307
+ if (!isArrayLike(collection)) {
1308
+ return eachFunc(collection, iteratee);
1309
+ }
1310
+ var length = collection.length, index = fromRight ? length : -1, iterable = Object(collection);
1311
+ while (fromRight ? index-- : ++index < length) {
1312
+ if (iteratee(iterable[index], index, iterable) === false) {
1313
+ break;
1314
+ }
1315
+ }
1316
+ return collection;
1317
+ };
1318
+ }
1319
+
1320
+ var baseEach = createBaseEach(baseForOwn);
1321
+ var baseEach$1 = baseEach;
1322
+
1177
1323
  var now = function() {
1178
1324
  return root$1.Date.now();
1179
1325
  };
@@ -1277,6 +1423,23 @@ function arrayIncludesWith(array, value, comparator) {
1277
1423
  return false;
1278
1424
  }
1279
1425
 
1426
+ function baseMap(collection, iteratee) {
1427
+ var index = -1, result = isArrayLike(collection) ? Array(collection.length) : [];
1428
+ baseEach$1(collection, function(value, key, collection2) {
1429
+ result[++index] = iteratee(value, key, collection2);
1430
+ });
1431
+ return result;
1432
+ }
1433
+
1434
+ function map(collection, iteratee) {
1435
+ var func = isArray$2(collection) ? arrayMap : baseMap;
1436
+ return func(collection, baseIteratee(iteratee));
1437
+ }
1438
+
1439
+ function flatMap(collection, iteratee) {
1440
+ return baseFlatten(map(collection, iteratee), 1);
1441
+ }
1442
+
1280
1443
  var INFINITY$1 = 1 / 0;
1281
1444
  function flattenDeep(array) {
1282
1445
  var length = array == null ? 0 : array.length;
@@ -4844,7 +5007,7 @@ function useCursor(input) {
4844
5007
  return [recordCursor, setCursor];
4845
5008
  }
4846
5009
 
4847
- const version$1 = "2.0.23";
5010
+ const version$1 = "2.0.38";
4848
5011
 
4849
5012
  const INSTALLED_KEY = Symbol("INSTALLED_KEY");
4850
5013
  const makeInstaller = (components = []) => {
@@ -27039,14 +27202,8 @@ function escapeHtml(string) {
27039
27202
  }
27040
27203
 
27041
27204
  const getCell = function(event) {
27042
- let cell = event.target;
27043
- while (cell && cell.tagName.toUpperCase() !== "HTML") {
27044
- if (cell.tagName.toUpperCase() === "TD") {
27045
- return cell;
27046
- }
27047
- cell = cell.parentNode;
27048
- }
27049
- return null;
27205
+ var _a;
27206
+ return (_a = event.target) == null ? void 0 : _a.closest("td");
27050
27207
  };
27051
27208
  const isObject = function(obj) {
27052
27209
  return obj !== null && typeof obj === "object";
@@ -27125,6 +27282,8 @@ const getColumnByKey = function(table, columnKey) {
27125
27282
  break;
27126
27283
  }
27127
27284
  }
27285
+ if (!column)
27286
+ throwError("ElTable", `No column matching with column-key: ${columnKey}`);
27128
27287
  return column;
27129
27288
  };
27130
27289
  const getColumnByCell = function(table, cell, namespace) {
@@ -27222,26 +27381,27 @@ function toggleRowStatus(statusArr, row, newVal) {
27222
27381
  let changed = false;
27223
27382
  const index = statusArr.indexOf(row);
27224
27383
  const included = index !== -1;
27225
- const addRow = () => {
27226
- statusArr.push(row);
27227
- changed = true;
27228
- };
27229
- const removeRow = () => {
27230
- statusArr.splice(index, 1);
27384
+ const toggleStatus = (type) => {
27385
+ if (type === "add") {
27386
+ statusArr.push(row);
27387
+ } else {
27388
+ statusArr.splice(index, 1);
27389
+ }
27231
27390
  changed = true;
27391
+ if (isArray(row.children)) {
27392
+ row.children.forEach((item) => {
27393
+ toggleRowStatus(statusArr, item, newVal != null ? newVal : !included);
27394
+ });
27395
+ }
27232
27396
  };
27233
- if (typeof newVal === "boolean") {
27397
+ if (isBoolean(newVal)) {
27234
27398
  if (newVal && !included) {
27235
- addRow();
27399
+ toggleStatus("add");
27236
27400
  } else if (!newVal && included) {
27237
- removeRow();
27401
+ toggleStatus("remove");
27238
27402
  }
27239
27403
  } else {
27240
- if (included) {
27241
- removeRow();
27242
- } else {
27243
- addRow();
27244
- }
27404
+ included ? toggleStatus("remove") : toggleStatus("add");
27245
27405
  }
27246
27406
  return changed;
27247
27407
  }
@@ -27272,32 +27432,37 @@ function walkTreeNode(root, cb, childrenKey = "children", lazyKey = "hasChildren
27272
27432
  });
27273
27433
  }
27274
27434
  let removePopper;
27275
- function createTablePopper(trigger, popperContent, popperOptions, tooltipEffect) {
27435
+ function createTablePopper(parentNode, trigger, popperContent, popperOptions, tooltipEffect) {
27276
27436
  const { nextZIndex } = useZIndex();
27437
+ const ns = parentNode == null ? void 0 : parentNode.dataset.prefix;
27438
+ const scrollContainer = parentNode == null ? void 0 : parentNode.querySelector(`.${ns}-scrollbar__wrap`);
27277
27439
  function renderContent() {
27278
27440
  const isLight = tooltipEffect === "light";
27279
27441
  const content2 = document.createElement("div");
27280
- content2.className = `el-popper ${isLight ? "is-light" : "is-dark"}`;
27442
+ content2.className = `${ns}-popper ${isLight ? "is-light" : "is-dark"}`;
27281
27443
  popperContent = escapeHtml_1(popperContent);
27282
27444
  content2.innerHTML = popperContent;
27283
27445
  content2.style.zIndex = String(nextZIndex());
27284
- document.body.appendChild(content2);
27446
+ parentNode == null ? void 0 : parentNode.appendChild(content2);
27285
27447
  return content2;
27286
27448
  }
27287
27449
  function renderArrow() {
27288
27450
  const arrow2 = document.createElement("div");
27289
- arrow2.className = "el-popper__arrow";
27451
+ arrow2.className = `${ns}-popper__arrow`;
27290
27452
  return arrow2;
27291
27453
  }
27292
27454
  function showPopper() {
27293
27455
  popperInstance && popperInstance.update();
27294
27456
  }
27295
- removePopper = function removePopper2() {
27457
+ removePopper == null ? void 0 : removePopper();
27458
+ removePopper = () => {
27296
27459
  try {
27297
27460
  popperInstance && popperInstance.destroy();
27298
- content && document.body.removeChild(content);
27299
- off(trigger, "mouseenter", showPopper);
27300
- off(trigger, "mouseleave", removePopper2);
27461
+ content && (parentNode == null ? void 0 : parentNode.removeChild(content));
27462
+ trigger.removeEventListener("mouseenter", showPopper);
27463
+ trigger.removeEventListener("mouseleave", removePopper);
27464
+ scrollContainer == null ? void 0 : scrollContainer.removeEventListener("scroll", removePopper);
27465
+ removePopper = void 0;
27301
27466
  } catch (e) {
27302
27467
  }
27303
27468
  };
@@ -27306,6 +27471,7 @@ function createTablePopper(trigger, popperContent, popperOptions, tooltipEffect)
27306
27471
  const arrow = renderArrow();
27307
27472
  content.appendChild(arrow);
27308
27473
  popperInstance = yn(trigger, content, {
27474
+ strategy: "absolute",
27309
27475
  modifiers: [
27310
27476
  {
27311
27477
  name: "offset",
@@ -27323,26 +27489,34 @@ function createTablePopper(trigger, popperContent, popperOptions, tooltipEffect)
27323
27489
  ],
27324
27490
  ...popperOptions
27325
27491
  });
27326
- on$1(trigger, "mouseenter", showPopper);
27327
- on$1(trigger, "mouseleave", removePopper);
27492
+ trigger.addEventListener("mouseenter", showPopper);
27493
+ trigger.addEventListener("mouseleave", removePopper);
27494
+ scrollContainer == null ? void 0 : scrollContainer.addEventListener("scroll", removePopper);
27328
27495
  return popperInstance;
27329
27496
  }
27497
+ function getCurrentColumns(column) {
27498
+ if (column.children) {
27499
+ return flatMap(column.children, getCurrentColumns);
27500
+ } else {
27501
+ return [column];
27502
+ }
27503
+ }
27504
+ function getColSpan(colSpan, column) {
27505
+ return colSpan + column.colSpan;
27506
+ }
27330
27507
  const isFixedColumn = (index, fixed, store, realColumns) => {
27331
27508
  let start = 0;
27332
27509
  let after = index;
27510
+ const columns = store.states.columns.value;
27333
27511
  if (realColumns) {
27334
- if (realColumns[index].colSpan > 1) {
27335
- return {};
27336
- }
27337
- for (let i = 0; i < index; i++) {
27338
- start += realColumns[i].colSpan;
27339
- }
27340
- after = start + realColumns[index].colSpan - 1;
27512
+ const curColumns = getCurrentColumns(realColumns[index]);
27513
+ const preColumns = columns.slice(0, columns.indexOf(curColumns[0]));
27514
+ start = preColumns.reduce(getColSpan, 0);
27515
+ after = start + curColumns.reduce(getColSpan, 0) - 1;
27341
27516
  } else {
27342
27517
  start = index;
27343
27518
  }
27344
27519
  let fixedLayout;
27345
- const columns = store.states.columns;
27346
27520
  switch (fixed) {
27347
27521
  case "left":
27348
27522
  if (after < store.states.fixedLeafColumnsLength.value) {
@@ -27350,14 +27524,14 @@ const isFixedColumn = (index, fixed, store, realColumns) => {
27350
27524
  }
27351
27525
  break;
27352
27526
  case "right":
27353
- if (start >= columns.value.length - store.states.rightFixedLeafColumnsLength.value) {
27527
+ if (start >= columns.length - store.states.rightFixedLeafColumnsLength.value) {
27354
27528
  fixedLayout = "right";
27355
27529
  }
27356
27530
  break;
27357
27531
  default:
27358
27532
  if (after < store.states.fixedLeafColumnsLength.value) {
27359
27533
  fixedLayout = "left";
27360
- } else if (start >= columns.value.length - store.states.rightFixedLeafColumnsLength.value) {
27534
+ } else if (start >= columns.length - store.states.rightFixedLeafColumnsLength.value) {
27361
27535
  fixedLayout = "right";
27362
27536
  }
27363
27537
  }
@@ -27367,15 +27541,15 @@ const isFixedColumn = (index, fixed, store, realColumns) => {
27367
27541
  after
27368
27542
  } : {};
27369
27543
  };
27370
- const getFixedColumnsClass = (namespace, index, fixed, store, realColumns) => {
27544
+ const getFixedColumnsClass = (namespace, index, fixed, store, realColumns, offset = 0) => {
27371
27545
  const classes = [];
27372
- const { direction, start } = isFixedColumn(index, fixed, store, realColumns);
27546
+ const { direction, start, after } = isFixedColumn(index, fixed, store, realColumns);
27373
27547
  if (direction) {
27374
27548
  const isLeft = direction === "left";
27375
27549
  classes.push(`${namespace}-fixed-column--${direction}`);
27376
- if (isLeft && start === store.states.fixedLeafColumnsLength.value - 1) {
27550
+ if (isLeft && after + offset === store.states.fixedLeafColumnsLength.value - 1) {
27377
27551
  classes.push("is-last-column");
27378
- } else if (!isLeft && start === store.states.columns.value.length - store.states.rightFixedLeafColumnsLength.value) {
27552
+ } else if (!isLeft && start - offset === store.states.columns.value.length - store.states.rightFixedLeafColumnsLength.value) {
27379
27553
  classes.push("is-first-column");
27380
27554
  }
27381
27555
  }
@@ -27385,7 +27559,11 @@ function getOffset(offset, column) {
27385
27559
  return offset + (column.realWidth === null || Number.isNaN(column.realWidth) ? Number(column.width) : column.realWidth);
27386
27560
  }
27387
27561
  const getFixedColumnOffset = (index, fixed, store, realColumns) => {
27388
- const { direction, start = 0 } = isFixedColumn(index, fixed, store, realColumns);
27562
+ const {
27563
+ direction,
27564
+ start = 0,
27565
+ after = 0
27566
+ } = isFixedColumn(index, fixed, store, realColumns);
27389
27567
  if (!direction) {
27390
27568
  return;
27391
27569
  }
@@ -27393,9 +27571,9 @@ const getFixedColumnOffset = (index, fixed, store, realColumns) => {
27393
27571
  const isLeft = direction === "left";
27394
27572
  const columns = store.states.columns.value;
27395
27573
  if (isLeft) {
27396
- styles.left = columns.slice(0, index).reduce(getOffset, 0);
27574
+ styles.left = columns.slice(0, start).reduce(getOffset, 0);
27397
27575
  } else {
27398
- styles.right = columns.slice(start + 1).reverse().reduce(getOffset, 0);
27576
+ styles.right = columns.slice(after + 1).reverse().reduce(getOffset, 0);
27399
27577
  }
27400
27578
  return styles;
27401
27579
  };
@@ -27506,19 +27684,21 @@ function useCurrent(watcherData) {
27506
27684
  const rowKey = watcherData.rowKey.value;
27507
27685
  const data = watcherData.data.value || [];
27508
27686
  const oldCurrentRow = currentRow.value;
27509
- if (!data.includes(oldCurrentRow) && oldCurrentRow) {
27510
- if (rowKey) {
27511
- const currentRowKey = getRowIdentity(oldCurrentRow, rowKey);
27512
- setCurrentRowByKey(currentRowKey);
27513
- } else {
27514
- currentRow.value = null;
27515
- }
27516
- if (currentRow.value === null) {
27517
- instance.emit("current-change", null, oldCurrentRow);
27687
+ if (Array.isArray(data)) {
27688
+ if (!data.includes(oldCurrentRow) && oldCurrentRow) {
27689
+ if (rowKey) {
27690
+ const currentRowKey = getRowIdentity(oldCurrentRow, rowKey);
27691
+ setCurrentRowByKey(currentRowKey);
27692
+ } else {
27693
+ currentRow.value = null;
27694
+ }
27695
+ if (currentRow.value === null) {
27696
+ instance.emit("current-change", null, oldCurrentRow);
27697
+ }
27698
+ } else if (_currentRowKey.value) {
27699
+ setCurrentRowByKey(_currentRowKey.value);
27700
+ restoreCurrentRowKey();
27518
27701
  }
27519
- } else if (_currentRowKey.value) {
27520
- setCurrentRowByKey(_currentRowKey.value);
27521
- restoreCurrentRowKey();
27522
27702
  }
27523
27703
  };
27524
27704
  return {
@@ -27767,9 +27947,19 @@ function useWatcher$1() {
27767
27947
  const hoverRow = ref(null);
27768
27948
  const assertRowKey = () => {
27769
27949
  if (!rowKey.value)
27770
- throw new Error("[PsTable] prop row-key is required");
27950
+ throw new Error("[ElTable] prop row-key is required");
27951
+ };
27952
+ const updateChildFixed = (column) => {
27953
+ var _a2;
27954
+ (_a2 = column.children) == null ? void 0 : _a2.forEach((childColumn) => {
27955
+ childColumn.fixed = column.fixed;
27956
+ updateChildFixed(childColumn);
27957
+ });
27771
27958
  };
27772
27959
  const updateColumns = () => {
27960
+ _columns.value.forEach((column) => {
27961
+ updateChildFixed(column);
27962
+ });
27773
27963
  fixedColumns.value = _columns.value.filter((column) => column.fixed === true || column.fixed === "left");
27774
27964
  rightFixedColumns.value = _columns.value.filter((column) => column.fixed === "right");
27775
27965
  if (fixedColumns.value.length > 0 && _columns.value[0] && _columns.value[0].type === "selection" && !_columns.value[0].fixed) {
@@ -28240,18 +28430,19 @@ function useStore() {
28240
28430
  }
28241
28431
  },
28242
28432
  changeSortCondition(states, options) {
28243
- const { sortingColumn: column, sortProp: prop, sortOrder: order } = states;
28244
- if (unref(order) === null) {
28433
+ const { sortingColumn, sortProp, sortOrder } = states;
28434
+ const columnValue = unref(sortingColumn), propValue = unref(sortProp), orderValue = unref(sortOrder);
28435
+ if (orderValue === null) {
28245
28436
  states.sortingColumn.value = null;
28246
28437
  states.sortProp.value = null;
28247
28438
  }
28248
- const ingore = { filter: true };
28249
- instance.store.execQuery(ingore);
28439
+ const ignore = { filter: true };
28440
+ instance.store.execQuery(ignore);
28250
28441
  if (!options || !(options.silent || options.init)) {
28251
28442
  instance.emit("sort-change", {
28252
- column: unref(column),
28253
- prop: unref(prop),
28254
- order: unref(order)
28443
+ column: columnValue,
28444
+ prop: propValue,
28445
+ order: orderValue
28255
28446
  });
28256
28447
  }
28257
28448
  instance.store.updateTableScrollY();
@@ -28288,7 +28479,6 @@ function useStore() {
28288
28479
  }
28289
28480
  };
28290
28481
  const updateTableScrollY = function() {
28291
- nextTick(() => instance.layout.updateScrollY.apply(instance.layout));
28292
28482
  };
28293
28483
  return {
28294
28484
  ns,
@@ -28341,7 +28531,11 @@ function handleValue(value, propsKey, store) {
28341
28531
  storeKey = storeKey.key;
28342
28532
  newVal = newVal || InitialStateMap[propsKey].default;
28343
28533
  }
28344
- store.states[storeKey].value = newVal;
28534
+ if (propsKey === "data") {
28535
+ store.states[storeKey].value = [{}];
28536
+ } else {
28537
+ store.states[storeKey].value = newVal;
28538
+ }
28345
28539
  }
28346
28540
  function getArrKeysValue(props, keys) {
28347
28541
  if (keys.includes(".")) {
@@ -28370,14 +28564,6 @@ class TableLayout {
28370
28564
  this.bodyWidth = ref(null);
28371
28565
  this.fixedWidth = ref(null);
28372
28566
  this.rightFixedWidth = ref(null);
28373
- this.tableHeight = ref(null);
28374
- this.headerHeight = ref(44);
28375
- this.appendHeight = ref(0);
28376
- this.footerHeight = ref(44);
28377
- this.viewportHeight = ref(null);
28378
- this.bodyHeight = ref(null);
28379
- this.bodyScrollHeight = ref(0);
28380
- this.fixedBodyHeight = ref(null);
28381
28567
  this.gutterWidth = 0;
28382
28568
  for (const name in options) {
28383
28569
  if (hasOwn(options, name)) {
@@ -28395,24 +28581,6 @@ class TableLayout {
28395
28581
  throw new Error("Store is required for Table Layout");
28396
28582
  }
28397
28583
  }
28398
- updateScrollY() {
28399
- const height = this.height.value;
28400
- if (height === null)
28401
- return false;
28402
- const bodyWrapper = this.table.refs.bodyWrapper;
28403
- if (this.table.vnode.el && bodyWrapper) {
28404
- let scrollY = true;
28405
- const prevScrollY = this.scrollY.value;
28406
- if (this.bodyHeight.value === null) {
28407
- scrollY = false;
28408
- } else {
28409
- scrollY = bodyWrapper.scrollHeight > this.bodyHeight.value;
28410
- }
28411
- this.scrollY.value = scrollY;
28412
- return prevScrollY !== scrollY;
28413
- }
28414
- return false;
28415
- }
28416
28584
  setHeight(value, prop = "height") {
28417
28585
  if (!isClient)
28418
28586
  return;
@@ -28445,44 +28613,6 @@ class TableLayout {
28445
28613
  return flattenColumns;
28446
28614
  }
28447
28615
  updateElsHeight() {
28448
- var _a, _b;
28449
- if (!this.table.$ready)
28450
- return nextTick(() => this.updateElsHeight());
28451
- const {
28452
- tableWrapper,
28453
- headerWrapper,
28454
- appendWrapper,
28455
- footerWrapper,
28456
- tableHeader,
28457
- tableBody
28458
- } = this.table.refs;
28459
- if (tableWrapper && tableWrapper.style.display === "none") {
28460
- return;
28461
- }
28462
- const { tableLayout } = this.table.props;
28463
- this.appendHeight.value = appendWrapper ? appendWrapper.offsetHeight : 0;
28464
- if (this.showHeader && !headerWrapper && tableLayout === "fixed") {
28465
- return;
28466
- }
28467
- const headerTrElm = tableHeader ? tableHeader : null;
28468
- const noneHeader = this.headerDisplayNone(headerTrElm);
28469
- const headerWrapperOffsetHeight = (headerWrapper == null ? void 0 : headerWrapper.offsetHeight) || 0;
28470
- const headerHeight = this.headerHeight.value = !this.showHeader ? 0 : headerWrapperOffsetHeight;
28471
- if (this.showHeader && !noneHeader && headerWrapperOffsetHeight > 0 && (this.table.store.states.columns.value || []).length > 0 && headerHeight < 2) {
28472
- return nextTick(() => this.updateElsHeight());
28473
- }
28474
- const tableHeight = this.tableHeight.value = (_b = (_a = this.table) == null ? void 0 : _a.vnode.el) == null ? void 0 : _b.clientHeight;
28475
- const footerHeight = this.footerHeight.value = footerWrapper ? footerWrapper.offsetHeight : 0;
28476
- if (this.height.value !== null) {
28477
- if (this.bodyHeight.value === null) {
28478
- requestAnimationFrame(() => this.updateElsHeight());
28479
- }
28480
- this.bodyHeight.value = tableHeight - headerHeight - footerHeight + (footerWrapper ? 1 : 0);
28481
- this.bodyScrollHeight.value = tableBody == null ? void 0 : tableBody.scrollHeight;
28482
- }
28483
- this.fixedBodyHeight.value = this.scrollX.value ? this.bodyHeight.value - this.gutterWidth : this.bodyHeight.value;
28484
- this.viewportHeight.value = this.scrollX.value ? tableHeight - this.gutterWidth : tableHeight;
28485
- this.updateScrollY();
28486
28616
  this.notifyObservers("scrollable");
28487
28617
  }
28488
28618
  headerDisplayNone(elm) {
@@ -28710,6 +28840,13 @@ const _sfc_main$o = defineComponent({
28710
28840
  });
28711
28841
  props.store.updateAllSelected();
28712
28842
  };
28843
+ watch(tooltipVisible, (value) => {
28844
+ if (props.column) {
28845
+ props.upDataColumn("filterOpened", value);
28846
+ }
28847
+ }, {
28848
+ immediate: true
28849
+ });
28713
28850
  const popperPaneRef = computed(() => {
28714
28851
  var _a, _b;
28715
28852
  return (_b = (_a = tooltip.value) == null ? void 0 : _a.popperRef) == null ? void 0 : _b.contentRef;
@@ -28902,12 +29039,10 @@ function useEvent(props, emit) {
28902
29039
  }
28903
29040
  };
28904
29041
  const handleMouseMove = (event, column) => {
29042
+ var _a;
28905
29043
  if (column.children && column.children.length > 0)
28906
29044
  return;
28907
- let target = event.target;
28908
- while (target && target.tagName !== "TH") {
28909
- target = target.parentNode;
28910
- }
29045
+ const target = (_a = event.target) == null ? void 0 : _a.closest("th");
28911
29046
  if (!column || !column.resizable)
28912
29047
  return;
28913
29048
  if (!dragging.value && props.border) {
@@ -28940,13 +29075,11 @@ function useEvent(props, emit) {
28940
29075
  return sortOrders[index > sortOrders.length - 2 ? 0 : index + 1];
28941
29076
  };
28942
29077
  const handleSortClick = (event, column, givenOrder) => {
29078
+ var _a;
28943
29079
  event.stopPropagation();
28944
29080
  const order = column.order === givenOrder ? null : givenOrder || toggleOrder(column);
28945
- let target = event.target;
28946
- while (target && target.tagName !== "TH") {
28947
- target = target.parentNode;
28948
- }
28949
- if (target && target.tagName === "TH") {
29081
+ const target = (_a = event.target) == null ? void 0 : _a.closest("th");
29082
+ if (target) {
28950
29083
  if (hasClass(target, "noclick")) {
28951
29084
  removeClass(target, "noclick");
28952
29085
  return;
@@ -29016,13 +29149,13 @@ function useStyle$2(props) {
29016
29149
  column
29017
29150
  });
29018
29151
  }
29019
- const fixedStyle = column.isSubColumn ? null : getFixedColumnOffset(columnIndex, column.fixed, props.store, row);
29152
+ const fixedStyle = getFixedColumnOffset(columnIndex, column.fixed, props.store, row);
29020
29153
  ensurePosition(fixedStyle, "left");
29021
29154
  ensurePosition(fixedStyle, "right");
29022
29155
  return Object.assign({}, headerCellStyles, fixedStyle);
29023
29156
  };
29024
29157
  const getHeaderCellClass = (rowIndex, columnIndex, row, column) => {
29025
- const fixedClasses = column.isSubColumn ? [] : getFixedColumnsClass(ns.b(), columnIndex, column.fixed, props.store, row);
29158
+ const fixedClasses = getFixedColumnsClass(ns.b(), columnIndex, column.fixed, props.store, row);
29026
29159
  const classes = [
29027
29160
  column.id,
29028
29161
  column.order,
@@ -29253,8 +29386,7 @@ var TableHeader = defineComponent({
29253
29386
  h$1("div", {
29254
29387
  class: [
29255
29388
  "cell",
29256
- column.filteredValue && column.filteredValue.length > 0 ? "highlight" : "",
29257
- column.labelClassName
29389
+ column.filteredValue && column.filteredValue.length > 0 ? "highlight" : ""
29258
29390
  ]
29259
29391
  }, [
29260
29392
  column.renderHeader ? column.renderHeader({
@@ -29323,7 +29455,7 @@ function useEvents(props) {
29323
29455
  const handleMouseLeave = debounce(() => {
29324
29456
  props.store.commit("setHoverRow", null);
29325
29457
  }, 30);
29326
- const handleCellMouseEnter = (event, row) => {
29458
+ const handleCellMouseEnter = (event, row, tooltipEffect) => {
29327
29459
  var _a;
29328
29460
  const table = parent;
29329
29461
  const cell = getCell(event);
@@ -29345,10 +29477,10 @@ function useEvents(props) {
29345
29477
  const rangeWidth = range.getBoundingClientRect().width;
29346
29478
  const padding = (Number.parseInt(getStyle(cellChild, "paddingLeft"), 10) || 0) + (Number.parseInt(getStyle(cellChild, "paddingRight"), 10) || 0);
29347
29479
  if (rangeWidth + padding > cellChild.offsetWidth || cellChild.scrollWidth > cellChild.offsetWidth) {
29348
- createTablePopper(cell, cell.innerText || cell.textContent, {
29480
+ createTablePopper(parent == null ? void 0 : parent.refs.tableWrapper, cell, cell.innerText || cell.textContent, {
29349
29481
  placement: "top",
29350
29482
  strategy: "fixed"
29351
- }, row.tooltipEffect);
29483
+ }, tooltipEffect);
29352
29484
  }
29353
29485
  };
29354
29486
  const handleCellMouseLeave = (event) => {
@@ -29414,13 +29546,13 @@ function useStyles(props) {
29414
29546
  column
29415
29547
  });
29416
29548
  }
29417
- const fixedStyle = column.isSubColumn ? null : getFixedColumnOffset(columnIndex, props == null ? void 0 : props.fixed, props.store);
29549
+ const fixedStyle = getFixedColumnOffset(columnIndex, props == null ? void 0 : props.fixed, props.store);
29418
29550
  ensurePosition(fixedStyle, "left");
29419
29551
  ensurePosition(fixedStyle, "right");
29420
29552
  return Object.assign({}, cellStyles, fixedStyle);
29421
29553
  };
29422
- const getCellClass = (rowIndex, columnIndex, row, column) => {
29423
- const fixedClasses = column.isSubColumn ? [] : getFixedColumnsClass(ns.b(), columnIndex, props == null ? void 0 : props.fixed, props.store);
29554
+ const getCellClass = (rowIndex, columnIndex, row, column, offset) => {
29555
+ const fixedClasses = getFixedColumnsClass(ns.b(), columnIndex, props == null ? void 0 : props.fixed, props.store, void 0, offset);
29424
29556
  const classes = [column.id, column.align, column.className, ...fixedClasses];
29425
29557
  const cellClassName = parent == null ? void 0 : parent.props.cellClassName;
29426
29558
  if (typeof cellClassName === "string") {
@@ -29476,6 +29608,7 @@ function useStyles(props) {
29476
29608
 
29477
29609
  function useRender$1(props) {
29478
29610
  const parent = inject(TABLE_INJECTION_KEY);
29611
+ const ns = useNamespace("table");
29479
29612
  const {
29480
29613
  handleDoubleClick,
29481
29614
  handleClick,
@@ -29511,7 +29644,7 @@ function useRender$1(props) {
29511
29644
  const rowClasses = getRowClass(row, $index);
29512
29645
  let display = true;
29513
29646
  if (treeRowData) {
29514
- rowClasses.push(`el-table__row--level-${treeRowData.level}`);
29647
+ rowClasses.push(ns.em("row", `level-${treeRowData.level}`));
29515
29648
  display = treeRowData.display;
29516
29649
  }
29517
29650
  const displayStyle = display ? null : {
@@ -29562,7 +29695,7 @@ function useRender$1(props) {
29562
29695
  const tdChildren = cellChildren(cellIndex, column, data);
29563
29696
  return h$1("td", {
29564
29697
  style: getCellStyle($index, cellIndex, row, column),
29565
- class: getCellClass($index, cellIndex, row, column),
29698
+ class: getCellClass($index, cellIndex, row, column, colspan - 1),
29566
29699
  key: `${patchKey}${baseKey}`,
29567
29700
  rowspan,
29568
29701
  colspan,
@@ -29598,7 +29731,7 @@ function useRender$1(props) {
29598
29731
  }, [
29599
29732
  h$1("td", {
29600
29733
  colspan: columns.length,
29601
- class: "el-table__cell el-table__expanded-cell"
29734
+ class: `${ns.e("cell")} ${ns.e("expanded-cell")}`
29602
29735
  }, [renderExpanded({ row, $index, store, expanded })])
29603
29736
  ])
29604
29737
  ]
@@ -29712,10 +29845,6 @@ var TableBody = defineComponent({
29712
29845
  var _a;
29713
29846
  (_a = removePopper) == null ? void 0 : _a();
29714
29847
  });
29715
- onUpdated(() => {
29716
- var _a;
29717
- (_a = removePopper) == null ? void 0 : _a();
29718
- });
29719
29848
  return {
29720
29849
  ns,
29721
29850
  onColumnsChange,
@@ -29984,7 +30113,8 @@ function useStyle(props, layout, store, table) {
29984
30113
  };
29985
30114
  const resizeState = ref({
29986
30115
  width: null,
29987
- height: null
30116
+ height: null,
30117
+ headerHeight: null
29988
30118
  });
29989
30119
  const isGroup = ref(false);
29990
30120
  const scrollbarViewStyle = {
@@ -29992,6 +30122,28 @@ function useStyle(props, layout, store, table) {
29992
30122
  verticalAlign: "middle"
29993
30123
  };
29994
30124
  const tableWidth = ref();
30125
+ const tableScrollHeight = ref(0);
30126
+ const bodyScrollHeight = ref(0);
30127
+ const headerScrollHeight = ref(0);
30128
+ const footerScrollHeight = ref(0);
30129
+ watchEffect(() => {
30130
+ layout.setHeight(props.height);
30131
+ });
30132
+ watchEffect(() => {
30133
+ layout.setMaxHeight(props.maxHeight);
30134
+ });
30135
+ watch(() => [props.currentRowKey, store.states.rowKey], ([currentRowKey, rowKey]) => {
30136
+ if (!unref(rowKey) || !unref(currentRowKey))
30137
+ return;
30138
+ store.setCurrentRowKey(`${currentRowKey}`);
30139
+ }, {
30140
+ immediate: true
30141
+ });
30142
+ watchEffect(() => {
30143
+ if (props.expandRowKeys) {
30144
+ store.setExpandRowKeysAdapter(props.expandRowKeys);
30145
+ }
30146
+ });
29995
30147
  const handleMouseLeave = () => {
29996
30148
  table.store.commit("setHoverRow", null);
29997
30149
  if (table.hoverState)
@@ -30016,16 +30168,22 @@ function useStyle(props, layout, store, table) {
30016
30168
  layout.updateElsHeight();
30017
30169
  }
30018
30170
  layout.updateColumnsWidth();
30019
- requestAnimationFrame(syncPostion);
30171
+ requestAnimationFrame(syncPosition);
30020
30172
  };
30021
30173
  onMounted(async () => {
30022
30174
  await nextTick();
30023
30175
  store.updateColumns();
30024
30176
  bindEvents();
30025
30177
  requestAnimationFrame(doLayout);
30178
+ const el = table.vnode.el;
30179
+ const tableHeader = table.refs.headerWrapper;
30180
+ if (props.flexible && el && el.parentElement) {
30181
+ el.parentElement.style.minWidth = "0";
30182
+ }
30026
30183
  resizeState.value = {
30027
- width: tableWidth.value = table.vnode.el.offsetWidth,
30028
- height: table.vnode.el.offsetHeight
30184
+ width: tableWidth.value = el.offsetWidth,
30185
+ height: el.offsetHeight,
30186
+ headerHeight: props.showHeader && tableHeader ? tableHeader.offsetHeight : null
30029
30187
  };
30030
30188
  store.states.columns.value.forEach((column) => {
30031
30189
  if (column.filteredValue && column.filteredValue.length) {
@@ -30053,7 +30211,7 @@ function useStyle(props, layout, store, table) {
30053
30211
  const { tableWrapper } = table.refs;
30054
30212
  return !!(tableWrapper && tableWrapper.classList.contains(className));
30055
30213
  };
30056
- const syncPostion = function() {
30214
+ const syncPosition = function() {
30057
30215
  if (!table.refs.scrollBarRef)
30058
30216
  return;
30059
30217
  if (!layout.scrollX.value) {
@@ -30063,7 +30221,7 @@ function useStyle(props, layout, store, table) {
30063
30221
  }
30064
30222
  return;
30065
30223
  }
30066
- const scrollContainer = table.refs.scrollBarRef.wrap$;
30224
+ const scrollContainer = table.refs.scrollBarRef.wrapRef;
30067
30225
  if (!scrollContainer)
30068
30226
  return;
30069
30227
  const { scrollLeft, offsetWidth, scrollWidth } = scrollContainer;
@@ -30082,48 +30240,56 @@ function useStyle(props, layout, store, table) {
30082
30240
  }
30083
30241
  };
30084
30242
  const bindEvents = () => {
30085
- var _a;
30086
30243
  if (!table.refs.scrollBarRef)
30087
30244
  return;
30088
- (_a = table.refs.scrollBarRef.wrap$) == null ? void 0 : _a.addEventListener("scroll", syncPostion, {
30089
- passive: true
30090
- });
30091
- if (props.fit) {
30092
- addResizeListener(table.vnode.el, resizeListener);
30093
- } else {
30094
- on$1(window, "resize", doLayout);
30245
+ if (table.refs.scrollBarRef.wrapRef) {
30246
+ useEventListener(table.refs.scrollBarRef.wrapRef, "scroll", syncPosition, {
30247
+ passive: true
30248
+ });
30095
30249
  }
30096
- };
30097
- onBeforeUnmount(() => {
30098
- unbindEvents();
30099
- });
30100
- const unbindEvents = () => {
30101
- var _a;
30102
- (_a = table.refs.scrollBarRef.wrap$) == null ? void 0 : _a.removeEventListener("scroll", syncPostion, true);
30103
30250
  if (props.fit) {
30104
- removeResizeListener(table.vnode.el, resizeListener);
30251
+ useResizeObserver(table.vnode.el, resizeListener);
30105
30252
  } else {
30106
- off(window, "resize", doLayout);
30253
+ useEventListener(window, "resize", resizeListener);
30107
30254
  }
30255
+ useResizeObserver(table.refs.bodyWrapper, () => {
30256
+ var _a, _b;
30257
+ resizeListener();
30258
+ (_b = (_a = table.refs) == null ? void 0 : _a.scrollBarRef) == null ? void 0 : _b.update();
30259
+ });
30108
30260
  };
30109
30261
  const resizeListener = () => {
30110
- if (!table.$ready)
30262
+ var _a, _b, _c;
30263
+ const el = table.vnode.el;
30264
+ if (!table.$ready || !el)
30111
30265
  return;
30112
30266
  let shouldUpdateLayout = false;
30113
- const el = table.vnode.el;
30114
- const { width: oldWidth, height: oldHeight } = resizeState.value;
30267
+ const {
30268
+ width: oldWidth,
30269
+ height: oldHeight,
30270
+ headerHeight: oldHeaderHeight
30271
+ } = resizeState.value;
30115
30272
  const width = tableWidth.value = el.offsetWidth;
30116
30273
  if (oldWidth !== width) {
30117
30274
  shouldUpdateLayout = true;
30118
30275
  }
30119
- const height2 = el.offsetHeight;
30120
- if ((props.height || shouldUpdateHeight.value) && oldHeight !== height2) {
30276
+ const height = el.offsetHeight;
30277
+ if ((props.height || shouldUpdateHeight.value) && oldHeight !== height) {
30121
30278
  shouldUpdateLayout = true;
30122
30279
  }
30280
+ const tableHeader = props.tableLayout === "fixed" ? table.refs.headerWrapper : (_a = table.refs.tableHeaderRef) == null ? void 0 : _a.$el;
30281
+ if (props.showHeader && (tableHeader == null ? void 0 : tableHeader.offsetHeight) !== oldHeaderHeight) {
30282
+ shouldUpdateLayout = true;
30283
+ }
30284
+ tableScrollHeight.value = ((_b = table.refs.tableWrapper) == null ? void 0 : _b.scrollHeight) || 0;
30285
+ headerScrollHeight.value = (tableHeader == null ? void 0 : tableHeader.scrollHeight) || 0;
30286
+ footerScrollHeight.value = ((_c = table.refs.footerWrapper) == null ? void 0 : _c.offsetHeight) || 0;
30287
+ bodyScrollHeight.value = tableScrollHeight.value - headerScrollHeight.value - footerScrollHeight.value;
30123
30288
  if (shouldUpdateLayout) {
30124
30289
  resizeState.value = {
30125
30290
  width,
30126
- height: height2
30291
+ height,
30292
+ headerHeight: props.showHeader && (tableHeader == null ? void 0 : tableHeader.offsetHeight) || 0
30127
30293
  };
30128
30294
  doLayout();
30129
30295
  }
@@ -30138,57 +30304,55 @@ function useStyle(props, layout, store, table) {
30138
30304
  return "fixed";
30139
30305
  return props.tableLayout;
30140
30306
  });
30141
- function calcMaxHeight(maxHeight, footerHeight, headerHeight) {
30142
- const parsedMaxHeight = parseHeight(maxHeight);
30143
- const tableHeaderHeight = props.showHeader ? headerHeight : 0;
30144
- if (parsedMaxHeight === null)
30145
- return;
30146
- if (isString(parsedMaxHeight)) {
30147
- return `calc(${parsedMaxHeight} - ${footerHeight}px - ${tableHeaderHeight}px)`;
30307
+ const emptyBlockStyle = computed(() => {
30308
+ if (props.data && props.data.length)
30309
+ return null;
30310
+ let height = "100%";
30311
+ if (props.height && bodyScrollHeight.value) {
30312
+ height = `${bodyScrollHeight.value}px`;
30148
30313
  }
30149
- return parsedMaxHeight - footerHeight - tableHeaderHeight;
30150
- }
30151
- const height = computed(() => {
30152
- const headerHeight = layout.headerHeight.value || 0;
30153
- const bodyHeight2 = layout.bodyHeight.value;
30154
- const footerHeight = layout.footerHeight.value || 0;
30314
+ const width = tableWidth.value;
30315
+ return {
30316
+ width: width ? `${width}px` : "",
30317
+ height
30318
+ };
30319
+ });
30320
+ const tableInnerStyle = computed(() => {
30155
30321
  if (props.height) {
30156
- return bodyHeight2 ? bodyHeight2 : void 0;
30157
- } else if (props.maxHeight) {
30158
- return calcMaxHeight(props.maxHeight, footerHeight, headerHeight);
30322
+ return {
30323
+ height: !Number.isNaN(Number(props.height)) ? `${props.height}px` : props.height
30324
+ };
30159
30325
  }
30160
- return void 0;
30326
+ if (props.maxHeight) {
30327
+ return {
30328
+ maxHeight: !Number.isNaN(Number(props.maxHeight)) ? `${props.maxHeight}px` : props.maxHeight
30329
+ };
30330
+ }
30331
+ return {};
30161
30332
  });
30162
- const bodyHeight = computed(() => {
30163
- const headerHeight = layout.headerHeight.value || 0;
30164
- const bodyHeight2 = layout.bodyHeight.value;
30165
- const footerHeight = layout.footerHeight.value || 0;
30333
+ const scrollbarStyle = computed(() => {
30166
30334
  if (props.height) {
30167
30335
  return {
30168
- height: bodyHeight2 ? `${bodyHeight2}px` : ""
30336
+ height: "100%"
30169
30337
  };
30170
- } else if (props.maxHeight) {
30171
- const maxHeight = calcMaxHeight(props.maxHeight, footerHeight, headerHeight);
30172
- if (maxHeight !== null) {
30338
+ }
30339
+ if (props.maxHeight) {
30340
+ if (!Number.isNaN(Number(props.maxHeight))) {
30341
+ const maxHeight = props.maxHeight;
30342
+ const reachMaxHeight = tableScrollHeight.value >= Number(maxHeight);
30343
+ if (reachMaxHeight) {
30344
+ return {
30345
+ maxHeight: `${tableScrollHeight.value - headerScrollHeight.value - footerScrollHeight.value}px`
30346
+ };
30347
+ }
30348
+ } else {
30173
30349
  return {
30174
- "max-height": `${maxHeight}${isNumber(maxHeight) ? "px" : ""}`
30350
+ maxHeight: `calc(${props.maxHeight} - ${headerScrollHeight.value + footerScrollHeight.value}px)`
30175
30351
  };
30176
30352
  }
30177
30353
  }
30178
30354
  return {};
30179
30355
  });
30180
- const emptyBlockStyle = computed(() => {
30181
- if (props.data && props.data.length)
30182
- return null;
30183
- let height2 = "100%";
30184
- if (layout.appendHeight.value) {
30185
- height2 = `calc(100% - ${layout.appendHeight.value}px)`;
30186
- }
30187
- return {
30188
- width: tableWidth.value ? `${tableWidth.value}px` : "",
30189
- height: height2
30190
- };
30191
- });
30192
30356
  const handleFixedMousewheel = (event, data) => {
30193
30357
  const bodyWrapper = table.refs.bodyWrapper;
30194
30358
  if (Math.abs(data.spinY) > 0) {
@@ -30204,47 +30368,6 @@ function useStyle(props, layout, store, table) {
30204
30368
  bodyWrapper.scrollLeft += Math.ceil(data.pixelX / 5);
30205
30369
  }
30206
30370
  };
30207
- const fixedHeight = computed(() => {
30208
- if (props.maxHeight) {
30209
- if (props.showSummary) {
30210
- return {
30211
- bottom: 0
30212
- };
30213
- }
30214
- return {
30215
- bottom: layout.scrollX.value && props.data.length ? `${layout.gutterWidth}px` : ""
30216
- };
30217
- } else {
30218
- if (props.showSummary) {
30219
- return {
30220
- height: layout.tableHeight.value ? `${layout.tableHeight.value}px` : ""
30221
- };
30222
- }
30223
- return {
30224
- height: layout.viewportHeight.value ? `${layout.viewportHeight.value}px` : ""
30225
- };
30226
- }
30227
- });
30228
- const fixedBodyHeight = computed(() => {
30229
- if (props.height) {
30230
- return {
30231
- height: layout.fixedBodyHeight.value ? `${layout.fixedBodyHeight.value}px` : ""
30232
- };
30233
- } else if (props.maxHeight) {
30234
- let maxHeight = parseHeight(props.maxHeight);
30235
- if (typeof maxHeight === "number") {
30236
- maxHeight = layout.scrollX.value ? maxHeight - layout.gutterWidth : maxHeight;
30237
- if (props.showHeader) {
30238
- maxHeight -= layout.headerHeight.value;
30239
- }
30240
- maxHeight -= layout.footerHeight.value;
30241
- return {
30242
- "max-height": `${maxHeight}px`
30243
- };
30244
- }
30245
- }
30246
- return {};
30247
- });
30248
30371
  return {
30249
30372
  isHidden,
30250
30373
  renderExpanded,
@@ -30253,28 +30376,24 @@ function useStyle(props, layout, store, table) {
30253
30376
  handleMouseLeave,
30254
30377
  handleHeaderFooterMousewheel,
30255
30378
  tableSize,
30256
- bodyHeight,
30257
- height,
30258
30379
  emptyBlockStyle,
30259
30380
  handleFixedMousewheel,
30260
- fixedHeight,
30261
- fixedBodyHeight,
30262
30381
  resizeProxyVisible,
30263
30382
  bodyWidth,
30264
30383
  resizeState,
30265
30384
  doLayout,
30266
30385
  tableBodyStyles,
30267
30386
  tableLayout,
30268
- scrollbarViewStyle
30387
+ scrollbarViewStyle,
30388
+ tableInnerStyle,
30389
+ scrollbarStyle
30269
30390
  };
30270
30391
  }
30271
30392
 
30272
30393
  var defaultProps$1 = {
30273
30394
  data: {
30274
30395
  type: Array,
30275
- default: () => {
30276
- return [];
30277
- }
30396
+ default: () => []
30278
30397
  },
30279
30398
  size: String,
30280
30399
  width: [String, Number],
@@ -30344,7 +30463,8 @@ var defaultProps$1 = {
30344
30463
  scrollbarAlwaysOn: {
30345
30464
  type: Boolean,
30346
30465
  default: false
30347
- }
30466
+ },
30467
+ flexible: Boolean
30348
30468
  };
30349
30469
 
30350
30470
  const useScrollbar = () => {
@@ -30439,23 +30559,21 @@ const _sfc_main$n = defineComponent({
30439
30559
  handleMouseLeave,
30440
30560
  handleHeaderFooterMousewheel,
30441
30561
  tableSize,
30442
- bodyHeight,
30443
- height,
30444
30562
  emptyBlockStyle,
30445
30563
  handleFixedMousewheel,
30446
- fixedHeight,
30447
- fixedBodyHeight,
30448
30564
  resizeProxyVisible,
30449
30565
  bodyWidth,
30450
30566
  resizeState,
30451
30567
  doLayout,
30452
30568
  tableBodyStyles,
30453
30569
  tableLayout,
30454
- scrollbarViewStyle
30570
+ scrollbarViewStyle,
30571
+ tableInnerStyle,
30572
+ scrollbarStyle
30455
30573
  } = useStyle(props, layout, store, table);
30456
30574
  const { scrollBarRef, scrollTo, setScrollLeft, setScrollTop } = useScrollbar();
30457
30575
  const debouncedUpdateLayout = debounce(doLayout, 50);
30458
- const tableId = `el-table_${tableIdSeed++}`;
30576
+ const tableId = `${ns.namespace.value}-table_${tableIdSeed++}`;
30459
30577
  table.tableId = tableId;
30460
30578
  table.state = {
30461
30579
  isGroup,
@@ -30482,14 +30600,10 @@ const _sfc_main$n = defineComponent({
30482
30600
  resizeState,
30483
30601
  isGroup,
30484
30602
  bodyWidth,
30485
- bodyHeight,
30486
- height,
30487
30603
  tableBodyStyles,
30488
30604
  emptyBlockStyle,
30489
30605
  debouncedUpdateLayout,
30490
30606
  handleFixedMousewheel,
30491
- fixedHeight,
30492
- fixedBodyHeight,
30493
30607
  setCurrentRow,
30494
30608
  getSelectionRows,
30495
30609
  toggleRowSelection,
@@ -30507,6 +30621,8 @@ const _sfc_main$n = defineComponent({
30507
30621
  computedEmptyText,
30508
30622
  tableLayout,
30509
30623
  scrollbarViewStyle,
30624
+ tableInnerStyle,
30625
+ scrollbarStyle,
30510
30626
  scrollBarRef,
30511
30627
  scrollTo,
30512
30628
  setScrollLeft,
@@ -30551,7 +30667,8 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
30551
30667
  "data-prefix": _ctx.ns.namespace.value
30552
30668
  }, [
30553
30669
  createElementVNode("div", {
30554
- class: normalizeClass(_ctx.ns.e("inner-wrapper"))
30670
+ class: normalizeClass(_ctx.ns.e("inner-wrapper")),
30671
+ style: normalizeStyle(_ctx.tableInnerStyle)
30555
30672
  }, [
30556
30673
  createElementVNode("div", _hoisted_2$2, [
30557
30674
  renderSlot(_ctx.$slots, "default")
@@ -30585,14 +30702,12 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
30585
30702
  ]) : createCommentVNode("v-if", true),
30586
30703
  createElementVNode("div", {
30587
30704
  ref: "bodyWrapper",
30588
- style: normalizeStyle(_ctx.bodyHeight),
30589
30705
  class: normalizeClass(_ctx.ns.e("body-wrapper"))
30590
30706
  }, [
30591
30707
  createVNode(_component_ps_scrollbar, {
30592
30708
  ref: "scrollBarRef",
30593
- height: _ctx.maxHeight ? void 0 : _ctx.height,
30594
- "max-height": _ctx.maxHeight ? _ctx.height : void 0,
30595
30709
  "view-style": _ctx.scrollbarViewStyle,
30710
+ "wrap-style": _ctx.scrollbarStyle,
30596
30711
  always: _ctx.scrollbarAlwaysOn
30597
30712
  }, {
30598
30713
  default: withCtx(() => [
@@ -30613,6 +30728,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
30613
30728
  }, null, 8, ["columns", "table-layout"]),
30614
30729
  _ctx.showHeader && _ctx.tableLayout === "auto" ? (openBlock(), createBlock(_component_table_header, {
30615
30730
  key: 0,
30731
+ ref: "tableHeaderRef",
30616
30732
  border: _ctx.border,
30617
30733
  "default-sort": _ctx.defaultSort,
30618
30734
  store: _ctx.store
@@ -30650,30 +30766,30 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
30650
30766
  ], 2)) : createCommentVNode("v-if", true)
30651
30767
  ]),
30652
30768
  _: 3
30653
- }, 8, ["height", "max-height", "view-style", "always"])
30654
- ], 6),
30655
- _ctx.border || _ctx.isGroup ? (openBlock(), createElementBlock("div", {
30769
+ }, 8, ["view-style", "wrap-style", "always"])
30770
+ ], 2),
30771
+ _ctx.showSummary ? withDirectives((openBlock(), createElementBlock("div", {
30656
30772
  key: 1,
30773
+ ref: "footerWrapper",
30774
+ class: normalizeClass(_ctx.ns.e("footer-wrapper"))
30775
+ }, [
30776
+ createVNode(_component_table_footer, {
30777
+ border: _ctx.border,
30778
+ "default-sort": _ctx.defaultSort,
30779
+ store: _ctx.store,
30780
+ style: normalizeStyle(_ctx.tableBodyStyles),
30781
+ "sum-text": _ctx.computedSumText,
30782
+ "summary-method": _ctx.summaryMethod
30783
+ }, null, 8, ["border", "default-sort", "store", "style", "sum-text", "summary-method"])
30784
+ ], 2)), [
30785
+ [vShow, !_ctx.isEmpty],
30786
+ [_directive_mousewheel, _ctx.handleHeaderFooterMousewheel]
30787
+ ]) : createCommentVNode("v-if", true),
30788
+ _ctx.border || _ctx.isGroup ? (openBlock(), createElementBlock("div", {
30789
+ key: 2,
30657
30790
  class: normalizeClass(_ctx.ns.e("border-left-patch"))
30658
30791
  }, null, 2)) : createCommentVNode("v-if", true)
30659
- ], 2),
30660
- _ctx.showSummary ? withDirectives((openBlock(), createElementBlock("div", {
30661
- key: 0,
30662
- ref: "footerWrapper",
30663
- class: normalizeClass(_ctx.ns.e("footer-wrapper"))
30664
- }, [
30665
- createVNode(_component_table_footer, {
30666
- border: _ctx.border,
30667
- "default-sort": _ctx.defaultSort,
30668
- store: _ctx.store,
30669
- style: normalizeStyle(_ctx.tableBodyStyles),
30670
- "sum-text": _ctx.computedSumText,
30671
- "summary-method": _ctx.summaryMethod
30672
- }, null, 8, ["border", "default-sort", "store", "style", "sum-text", "summary-method"])
30673
- ], 2)), [
30674
- [vShow, !_ctx.isEmpty],
30675
- [_directive_mousewheel, _ctx.handleHeaderFooterMousewheel]
30676
- ]) : createCommentVNode("v-if", true),
30792
+ ], 6),
30677
30793
  withDirectives(createElementVNode("div", {
30678
30794
  ref: "resizeProxy",
30679
30795
  class: normalizeClass(_ctx.ns.e("column-resize-proxy"))
@@ -30835,6 +30951,9 @@ function treeCellPrefix({
30835
30951
  const ele = [];
30836
30952
  const callback = function(e) {
30837
30953
  e.stopPropagation();
30954
+ if (treeNode.loading) {
30955
+ return;
30956
+ }
30838
30957
  store.loadOrToggle(row);
30839
30958
  };
30840
30959
  if (treeNode.indent) {
@@ -30969,6 +31088,9 @@ function useRender(props, slots, owner) {
30969
31088
  if (realMinWidth.value) {
30970
31089
  column.minWidth = realMinWidth.value;
30971
31090
  }
31091
+ if (!realWidth.value && realMinWidth.value) {
31092
+ column.width = void 0;
31093
+ }
30972
31094
  if (!column.minWidth) {
30973
31095
  column.minWidth = 80;
30974
31096
  }
@@ -31013,7 +31135,6 @@ function useRender(props, slots, owner) {
31013
31135
  };
31014
31136
  }
31015
31137
  let originRenderCell = column.renderCell;
31016
- const hasTreeColumnValue = hasTreeColumn.value;
31017
31138
  if (column.type === "expand") {
31018
31139
  column.renderCell = (data) => h$1("div", {
31019
31140
  class: "cell"
@@ -31031,7 +31152,7 @@ function useRender(props, slots, owner) {
31031
31152
  } else {
31032
31153
  children = originRenderCell(data);
31033
31154
  }
31034
- const shouldCreatePlaceholder = hasTreeColumnValue && data.cellIndex === 0;
31155
+ const shouldCreatePlaceholder = hasTreeColumn.value && data.cellIndex === 0 && data.column.type !== "selection";
31035
31156
  const prefix = treeCellPrefix(data, shouldCreatePlaceholder);
31036
31157
  const props2 = {
31037
31158
  class: "cell",