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
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue')) :
@@ -949,9 +949,9 @@
949
949
  return cache.has(key);
950
950
  }
951
951
 
952
- var COMPARE_PARTIAL_FLAG$3 = 1, COMPARE_UNORDERED_FLAG$1 = 2;
952
+ var COMPARE_PARTIAL_FLAG$5 = 1, COMPARE_UNORDERED_FLAG$3 = 2;
953
953
  function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
954
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG$3, arrLength = array.length, othLength = other.length;
954
+ var isPartial = bitmask & COMPARE_PARTIAL_FLAG$5, arrLength = array.length, othLength = other.length;
955
955
  if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
956
956
  return false;
957
957
  }
@@ -960,7 +960,7 @@
960
960
  if (arrStacked && othStacked) {
961
961
  return arrStacked == other && othStacked == array;
962
962
  }
963
- var index = -1, result = true, seen = bitmask & COMPARE_UNORDERED_FLAG$1 ? new SetCache() : void 0;
963
+ var index = -1, result = true, seen = bitmask & COMPARE_UNORDERED_FLAG$3 ? new SetCache() : void 0;
964
964
  stack.set(array, other);
965
965
  stack.set(other, array);
966
966
  while (++index < arrLength) {
@@ -1010,7 +1010,7 @@
1010
1010
  return result;
1011
1011
  }
1012
1012
 
1013
- var COMPARE_PARTIAL_FLAG$2 = 1, COMPARE_UNORDERED_FLAG = 2;
1013
+ var COMPARE_PARTIAL_FLAG$4 = 1, COMPARE_UNORDERED_FLAG$2 = 2;
1014
1014
  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]";
1015
1015
  var arrayBufferTag = "[object ArrayBuffer]", dataViewTag = "[object DataView]";
1016
1016
  var symbolProto = Symbol$2 ? Symbol$2.prototype : void 0, symbolValueOf = symbolProto ? symbolProto.valueOf : void 0;
@@ -1039,7 +1039,7 @@
1039
1039
  case mapTag:
1040
1040
  var convert = mapToArray;
1041
1041
  case setTag:
1042
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG$2;
1042
+ var isPartial = bitmask & COMPARE_PARTIAL_FLAG$4;
1043
1043
  convert || (convert = setToArray);
1044
1044
  if (object.size != other.size && !isPartial) {
1045
1045
  return false;
@@ -1048,7 +1048,7 @@
1048
1048
  if (stacked) {
1049
1049
  return stacked == other;
1050
1050
  }
1051
- bitmask |= COMPARE_UNORDERED_FLAG;
1051
+ bitmask |= COMPARE_UNORDERED_FLAG$2;
1052
1052
  stack.set(object, other);
1053
1053
  var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
1054
1054
  stack["delete"](object);
@@ -1061,11 +1061,11 @@
1061
1061
  return false;
1062
1062
  }
1063
1063
 
1064
- var COMPARE_PARTIAL_FLAG$1 = 1;
1064
+ var COMPARE_PARTIAL_FLAG$3 = 1;
1065
1065
  var objectProto$1 = Object.prototype;
1066
1066
  var hasOwnProperty$2 = objectProto$1.hasOwnProperty;
1067
1067
  function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
1068
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG$1, objProps = getAllKeys(object), objLength = objProps.length, othProps = getAllKeys(other), othLength = othProps.length;
1068
+ var isPartial = bitmask & COMPARE_PARTIAL_FLAG$3, objProps = getAllKeys(object), objLength = objProps.length, othProps = getAllKeys(other), othLength = othProps.length;
1069
1069
  if (objLength != othLength && !isPartial) {
1070
1070
  return false;
1071
1071
  }
@@ -1108,7 +1108,7 @@
1108
1108
  return result;
1109
1109
  }
1110
1110
 
1111
- var COMPARE_PARTIAL_FLAG = 1;
1111
+ var COMPARE_PARTIAL_FLAG$2 = 1;
1112
1112
  var argsTag = "[object Arguments]", arrayTag = "[object Array]", objectTag = "[object Object]";
1113
1113
  var objectProto = Object.prototype;
1114
1114
  var hasOwnProperty$1 = objectProto.hasOwnProperty;
@@ -1128,7 +1128,7 @@
1128
1128
  stack || (stack = new Stack());
1129
1129
  return objIsArr || isTypedArray$1(object) ? equalArrays(object, other, bitmask, customizer, equalFunc, stack) : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
1130
1130
  }
1131
- if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
1131
+ if (!(bitmask & COMPARE_PARTIAL_FLAG$2)) {
1132
1132
  var objIsWrapped = objIsObj && hasOwnProperty$1.call(object, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty$1.call(other, "__wrapped__");
1133
1133
  if (objIsWrapped || othIsWrapped) {
1134
1134
  var objUnwrapped = objIsWrapped ? object.value() : object, othUnwrapped = othIsWrapped ? other.value() : other;
@@ -1153,6 +1153,71 @@
1153
1153
  return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
1154
1154
  }
1155
1155
 
1156
+ var COMPARE_PARTIAL_FLAG$1 = 1, COMPARE_UNORDERED_FLAG$1 = 2;
1157
+ function baseIsMatch(object, source, matchData, customizer) {
1158
+ var index = matchData.length, length = index, noCustomizer = !customizer;
1159
+ if (object == null) {
1160
+ return !length;
1161
+ }
1162
+ object = Object(object);
1163
+ while (index--) {
1164
+ var data = matchData[index];
1165
+ if (noCustomizer && data[2] ? data[1] !== object[data[0]] : !(data[0] in object)) {
1166
+ return false;
1167
+ }
1168
+ }
1169
+ while (++index < length) {
1170
+ data = matchData[index];
1171
+ var key = data[0], objValue = object[key], srcValue = data[1];
1172
+ if (noCustomizer && data[2]) {
1173
+ if (objValue === void 0 && !(key in object)) {
1174
+ return false;
1175
+ }
1176
+ } else {
1177
+ var stack = new Stack();
1178
+ if (customizer) {
1179
+ var result = customizer(objValue, srcValue, key, object, source, stack);
1180
+ }
1181
+ if (!(result === void 0 ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG$1 | COMPARE_UNORDERED_FLAG$1, customizer, stack) : result)) {
1182
+ return false;
1183
+ }
1184
+ }
1185
+ }
1186
+ return true;
1187
+ }
1188
+
1189
+ function isStrictComparable(value) {
1190
+ return value === value && !isObject$2(value);
1191
+ }
1192
+
1193
+ function getMatchData(object) {
1194
+ var result = keys(object), length = result.length;
1195
+ while (length--) {
1196
+ var key = result[length], value = object[key];
1197
+ result[length] = [key, value, isStrictComparable(value)];
1198
+ }
1199
+ return result;
1200
+ }
1201
+
1202
+ function matchesStrictComparable(key, srcValue) {
1203
+ return function(object) {
1204
+ if (object == null) {
1205
+ return false;
1206
+ }
1207
+ return object[key] === srcValue && (srcValue !== void 0 || key in Object(object));
1208
+ };
1209
+ }
1210
+
1211
+ function baseMatches(source) {
1212
+ var matchData = getMatchData(source);
1213
+ if (matchData.length == 1 && matchData[0][2]) {
1214
+ return matchesStrictComparable(matchData[0][0], matchData[0][1]);
1215
+ }
1216
+ return function(object) {
1217
+ return object === source || baseIsMatch(object, source, matchData);
1218
+ };
1219
+ }
1220
+
1156
1221
  function baseHasIn(object, key) {
1157
1222
  return object != null && key in Object(object);
1158
1223
  }
@@ -1178,6 +1243,87 @@
1178
1243
  return object != null && hasPath(object, path, baseHasIn);
1179
1244
  }
1180
1245
 
1246
+ var COMPARE_PARTIAL_FLAG = 1, COMPARE_UNORDERED_FLAG = 2;
1247
+ function baseMatchesProperty(path, srcValue) {
1248
+ if (isKey(path) && isStrictComparable(srcValue)) {
1249
+ return matchesStrictComparable(toKey(path), srcValue);
1250
+ }
1251
+ return function(object) {
1252
+ var objValue = get(object, path);
1253
+ return objValue === void 0 && objValue === srcValue ? hasIn(object, path) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
1254
+ };
1255
+ }
1256
+
1257
+ function baseProperty(key) {
1258
+ return function(object) {
1259
+ return object == null ? void 0 : object[key];
1260
+ };
1261
+ }
1262
+
1263
+ function basePropertyDeep(path) {
1264
+ return function(object) {
1265
+ return baseGet(object, path);
1266
+ };
1267
+ }
1268
+
1269
+ function property(path) {
1270
+ return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
1271
+ }
1272
+
1273
+ function baseIteratee(value) {
1274
+ if (typeof value == "function") {
1275
+ return value;
1276
+ }
1277
+ if (value == null) {
1278
+ return identity;
1279
+ }
1280
+ if (typeof value == "object") {
1281
+ return isArray$2(value) ? baseMatchesProperty(value[0], value[1]) : baseMatches(value);
1282
+ }
1283
+ return property(value);
1284
+ }
1285
+
1286
+ function createBaseFor(fromRight) {
1287
+ return function(object, iteratee, keysFunc) {
1288
+ var index = -1, iterable = Object(object), props = keysFunc(object), length = props.length;
1289
+ while (length--) {
1290
+ var key = props[fromRight ? length : ++index];
1291
+ if (iteratee(iterable[key], key, iterable) === false) {
1292
+ break;
1293
+ }
1294
+ }
1295
+ return object;
1296
+ };
1297
+ }
1298
+
1299
+ var baseFor = createBaseFor();
1300
+ var baseFor$1 = baseFor;
1301
+
1302
+ function baseForOwn(object, iteratee) {
1303
+ return object && baseFor$1(object, iteratee, keys);
1304
+ }
1305
+
1306
+ function createBaseEach(eachFunc, fromRight) {
1307
+ return function(collection, iteratee) {
1308
+ if (collection == null) {
1309
+ return collection;
1310
+ }
1311
+ if (!isArrayLike(collection)) {
1312
+ return eachFunc(collection, iteratee);
1313
+ }
1314
+ var length = collection.length, index = fromRight ? length : -1, iterable = Object(collection);
1315
+ while (fromRight ? index-- : ++index < length) {
1316
+ if (iteratee(iterable[index], index, iterable) === false) {
1317
+ break;
1318
+ }
1319
+ }
1320
+ return collection;
1321
+ };
1322
+ }
1323
+
1324
+ var baseEach = createBaseEach(baseForOwn);
1325
+ var baseEach$1 = baseEach;
1326
+
1181
1327
  var now = function() {
1182
1328
  return root$1.Date.now();
1183
1329
  };
@@ -1281,6 +1427,23 @@
1281
1427
  return false;
1282
1428
  }
1283
1429
 
1430
+ function baseMap(collection, iteratee) {
1431
+ var index = -1, result = isArrayLike(collection) ? Array(collection.length) : [];
1432
+ baseEach$1(collection, function(value, key, collection2) {
1433
+ result[++index] = iteratee(value, key, collection2);
1434
+ });
1435
+ return result;
1436
+ }
1437
+
1438
+ function map(collection, iteratee) {
1439
+ var func = isArray$2(collection) ? arrayMap : baseMap;
1440
+ return func(collection, baseIteratee(iteratee));
1441
+ }
1442
+
1443
+ function flatMap(collection, iteratee) {
1444
+ return baseFlatten(map(collection, iteratee), 1);
1445
+ }
1446
+
1284
1447
  var INFINITY$1 = 1 / 0;
1285
1448
  function flattenDeep(array) {
1286
1449
  var length = array == null ? 0 : array.length;
@@ -4848,7 +5011,7 @@
4848
5011
  return [recordCursor, setCursor];
4849
5012
  }
4850
5013
 
4851
- const version$1 = "2.0.23";
5014
+ const version$1 = "2.0.38";
4852
5015
 
4853
5016
  const INSTALLED_KEY = Symbol("INSTALLED_KEY");
4854
5017
  const makeInstaller = (components = []) => {
@@ -27043,14 +27206,8 @@
27043
27206
  }
27044
27207
 
27045
27208
  const getCell = function(event) {
27046
- let cell = event.target;
27047
- while (cell && cell.tagName.toUpperCase() !== "HTML") {
27048
- if (cell.tagName.toUpperCase() === "TD") {
27049
- return cell;
27050
- }
27051
- cell = cell.parentNode;
27052
- }
27053
- return null;
27209
+ var _a;
27210
+ return (_a = event.target) == null ? void 0 : _a.closest("td");
27054
27211
  };
27055
27212
  const isObject = function(obj) {
27056
27213
  return obj !== null && typeof obj === "object";
@@ -27129,6 +27286,8 @@
27129
27286
  break;
27130
27287
  }
27131
27288
  }
27289
+ if (!column)
27290
+ throwError("ElTable", `No column matching with column-key: ${columnKey}`);
27132
27291
  return column;
27133
27292
  };
27134
27293
  const getColumnByCell = function(table, cell, namespace) {
@@ -27226,26 +27385,27 @@
27226
27385
  let changed = false;
27227
27386
  const index = statusArr.indexOf(row);
27228
27387
  const included = index !== -1;
27229
- const addRow = () => {
27230
- statusArr.push(row);
27231
- changed = true;
27232
- };
27233
- const removeRow = () => {
27234
- statusArr.splice(index, 1);
27388
+ const toggleStatus = (type) => {
27389
+ if (type === "add") {
27390
+ statusArr.push(row);
27391
+ } else {
27392
+ statusArr.splice(index, 1);
27393
+ }
27235
27394
  changed = true;
27395
+ if (isArray(row.children)) {
27396
+ row.children.forEach((item) => {
27397
+ toggleRowStatus(statusArr, item, newVal != null ? newVal : !included);
27398
+ });
27399
+ }
27236
27400
  };
27237
- if (typeof newVal === "boolean") {
27401
+ if (isBoolean(newVal)) {
27238
27402
  if (newVal && !included) {
27239
- addRow();
27403
+ toggleStatus("add");
27240
27404
  } else if (!newVal && included) {
27241
- removeRow();
27405
+ toggleStatus("remove");
27242
27406
  }
27243
27407
  } else {
27244
- if (included) {
27245
- removeRow();
27246
- } else {
27247
- addRow();
27248
- }
27408
+ included ? toggleStatus("remove") : toggleStatus("add");
27249
27409
  }
27250
27410
  return changed;
27251
27411
  }
@@ -27276,32 +27436,37 @@
27276
27436
  });
27277
27437
  }
27278
27438
  let removePopper;
27279
- function createTablePopper(trigger, popperContent, popperOptions, tooltipEffect) {
27439
+ function createTablePopper(parentNode, trigger, popperContent, popperOptions, tooltipEffect) {
27280
27440
  const { nextZIndex } = useZIndex();
27441
+ const ns = parentNode == null ? void 0 : parentNode.dataset.prefix;
27442
+ const scrollContainer = parentNode == null ? void 0 : parentNode.querySelector(`.${ns}-scrollbar__wrap`);
27281
27443
  function renderContent() {
27282
27444
  const isLight = tooltipEffect === "light";
27283
27445
  const content2 = document.createElement("div");
27284
- content2.className = `el-popper ${isLight ? "is-light" : "is-dark"}`;
27446
+ content2.className = `${ns}-popper ${isLight ? "is-light" : "is-dark"}`;
27285
27447
  popperContent = escapeHtml_1(popperContent);
27286
27448
  content2.innerHTML = popperContent;
27287
27449
  content2.style.zIndex = String(nextZIndex());
27288
- document.body.appendChild(content2);
27450
+ parentNode == null ? void 0 : parentNode.appendChild(content2);
27289
27451
  return content2;
27290
27452
  }
27291
27453
  function renderArrow() {
27292
27454
  const arrow2 = document.createElement("div");
27293
- arrow2.className = "el-popper__arrow";
27455
+ arrow2.className = `${ns}-popper__arrow`;
27294
27456
  return arrow2;
27295
27457
  }
27296
27458
  function showPopper() {
27297
27459
  popperInstance && popperInstance.update();
27298
27460
  }
27299
- removePopper = function removePopper2() {
27461
+ removePopper == null ? void 0 : removePopper();
27462
+ removePopper = () => {
27300
27463
  try {
27301
27464
  popperInstance && popperInstance.destroy();
27302
- content && document.body.removeChild(content);
27303
- off(trigger, "mouseenter", showPopper);
27304
- off(trigger, "mouseleave", removePopper2);
27465
+ content && (parentNode == null ? void 0 : parentNode.removeChild(content));
27466
+ trigger.removeEventListener("mouseenter", showPopper);
27467
+ trigger.removeEventListener("mouseleave", removePopper);
27468
+ scrollContainer == null ? void 0 : scrollContainer.removeEventListener("scroll", removePopper);
27469
+ removePopper = void 0;
27305
27470
  } catch (e) {
27306
27471
  }
27307
27472
  };
@@ -27310,6 +27475,7 @@
27310
27475
  const arrow = renderArrow();
27311
27476
  content.appendChild(arrow);
27312
27477
  popperInstance = yn(trigger, content, {
27478
+ strategy: "absolute",
27313
27479
  modifiers: [
27314
27480
  {
27315
27481
  name: "offset",
@@ -27327,26 +27493,34 @@
27327
27493
  ],
27328
27494
  ...popperOptions
27329
27495
  });
27330
- on$1(trigger, "mouseenter", showPopper);
27331
- on$1(trigger, "mouseleave", removePopper);
27496
+ trigger.addEventListener("mouseenter", showPopper);
27497
+ trigger.addEventListener("mouseleave", removePopper);
27498
+ scrollContainer == null ? void 0 : scrollContainer.addEventListener("scroll", removePopper);
27332
27499
  return popperInstance;
27333
27500
  }
27501
+ function getCurrentColumns(column) {
27502
+ if (column.children) {
27503
+ return flatMap(column.children, getCurrentColumns);
27504
+ } else {
27505
+ return [column];
27506
+ }
27507
+ }
27508
+ function getColSpan(colSpan, column) {
27509
+ return colSpan + column.colSpan;
27510
+ }
27334
27511
  const isFixedColumn = (index, fixed, store, realColumns) => {
27335
27512
  let start = 0;
27336
27513
  let after = index;
27514
+ const columns = store.states.columns.value;
27337
27515
  if (realColumns) {
27338
- if (realColumns[index].colSpan > 1) {
27339
- return {};
27340
- }
27341
- for (let i = 0; i < index; i++) {
27342
- start += realColumns[i].colSpan;
27343
- }
27344
- after = start + realColumns[index].colSpan - 1;
27516
+ const curColumns = getCurrentColumns(realColumns[index]);
27517
+ const preColumns = columns.slice(0, columns.indexOf(curColumns[0]));
27518
+ start = preColumns.reduce(getColSpan, 0);
27519
+ after = start + curColumns.reduce(getColSpan, 0) - 1;
27345
27520
  } else {
27346
27521
  start = index;
27347
27522
  }
27348
27523
  let fixedLayout;
27349
- const columns = store.states.columns;
27350
27524
  switch (fixed) {
27351
27525
  case "left":
27352
27526
  if (after < store.states.fixedLeafColumnsLength.value) {
@@ -27354,14 +27528,14 @@
27354
27528
  }
27355
27529
  break;
27356
27530
  case "right":
27357
- if (start >= columns.value.length - store.states.rightFixedLeafColumnsLength.value) {
27531
+ if (start >= columns.length - store.states.rightFixedLeafColumnsLength.value) {
27358
27532
  fixedLayout = "right";
27359
27533
  }
27360
27534
  break;
27361
27535
  default:
27362
27536
  if (after < store.states.fixedLeafColumnsLength.value) {
27363
27537
  fixedLayout = "left";
27364
- } else if (start >= columns.value.length - store.states.rightFixedLeafColumnsLength.value) {
27538
+ } else if (start >= columns.length - store.states.rightFixedLeafColumnsLength.value) {
27365
27539
  fixedLayout = "right";
27366
27540
  }
27367
27541
  }
@@ -27371,15 +27545,15 @@
27371
27545
  after
27372
27546
  } : {};
27373
27547
  };
27374
- const getFixedColumnsClass = (namespace, index, fixed, store, realColumns) => {
27548
+ const getFixedColumnsClass = (namespace, index, fixed, store, realColumns, offset = 0) => {
27375
27549
  const classes = [];
27376
- const { direction, start } = isFixedColumn(index, fixed, store, realColumns);
27550
+ const { direction, start, after } = isFixedColumn(index, fixed, store, realColumns);
27377
27551
  if (direction) {
27378
27552
  const isLeft = direction === "left";
27379
27553
  classes.push(`${namespace}-fixed-column--${direction}`);
27380
- if (isLeft && start === store.states.fixedLeafColumnsLength.value - 1) {
27554
+ if (isLeft && after + offset === store.states.fixedLeafColumnsLength.value - 1) {
27381
27555
  classes.push("is-last-column");
27382
- } else if (!isLeft && start === store.states.columns.value.length - store.states.rightFixedLeafColumnsLength.value) {
27556
+ } else if (!isLeft && start - offset === store.states.columns.value.length - store.states.rightFixedLeafColumnsLength.value) {
27383
27557
  classes.push("is-first-column");
27384
27558
  }
27385
27559
  }
@@ -27389,7 +27563,11 @@
27389
27563
  return offset + (column.realWidth === null || Number.isNaN(column.realWidth) ? Number(column.width) : column.realWidth);
27390
27564
  }
27391
27565
  const getFixedColumnOffset = (index, fixed, store, realColumns) => {
27392
- const { direction, start = 0 } = isFixedColumn(index, fixed, store, realColumns);
27566
+ const {
27567
+ direction,
27568
+ start = 0,
27569
+ after = 0
27570
+ } = isFixedColumn(index, fixed, store, realColumns);
27393
27571
  if (!direction) {
27394
27572
  return;
27395
27573
  }
@@ -27397,9 +27575,9 @@
27397
27575
  const isLeft = direction === "left";
27398
27576
  const columns = store.states.columns.value;
27399
27577
  if (isLeft) {
27400
- styles.left = columns.slice(0, index).reduce(getOffset, 0);
27578
+ styles.left = columns.slice(0, start).reduce(getOffset, 0);
27401
27579
  } else {
27402
- styles.right = columns.slice(start + 1).reverse().reduce(getOffset, 0);
27580
+ styles.right = columns.slice(after + 1).reverse().reduce(getOffset, 0);
27403
27581
  }
27404
27582
  return styles;
27405
27583
  };
@@ -27510,19 +27688,21 @@
27510
27688
  const rowKey = watcherData.rowKey.value;
27511
27689
  const data = watcherData.data.value || [];
27512
27690
  const oldCurrentRow = currentRow.value;
27513
- if (!data.includes(oldCurrentRow) && oldCurrentRow) {
27514
- if (rowKey) {
27515
- const currentRowKey = getRowIdentity(oldCurrentRow, rowKey);
27516
- setCurrentRowByKey(currentRowKey);
27517
- } else {
27518
- currentRow.value = null;
27519
- }
27520
- if (currentRow.value === null) {
27521
- instance.emit("current-change", null, oldCurrentRow);
27691
+ if (Array.isArray(data)) {
27692
+ if (!data.includes(oldCurrentRow) && oldCurrentRow) {
27693
+ if (rowKey) {
27694
+ const currentRowKey = getRowIdentity(oldCurrentRow, rowKey);
27695
+ setCurrentRowByKey(currentRowKey);
27696
+ } else {
27697
+ currentRow.value = null;
27698
+ }
27699
+ if (currentRow.value === null) {
27700
+ instance.emit("current-change", null, oldCurrentRow);
27701
+ }
27702
+ } else if (_currentRowKey.value) {
27703
+ setCurrentRowByKey(_currentRowKey.value);
27704
+ restoreCurrentRowKey();
27522
27705
  }
27523
- } else if (_currentRowKey.value) {
27524
- setCurrentRowByKey(_currentRowKey.value);
27525
- restoreCurrentRowKey();
27526
27706
  }
27527
27707
  };
27528
27708
  return {
@@ -27771,9 +27951,19 @@
27771
27951
  const hoverRow = vue.ref(null);
27772
27952
  const assertRowKey = () => {
27773
27953
  if (!rowKey.value)
27774
- throw new Error("[PsTable] prop row-key is required");
27954
+ throw new Error("[ElTable] prop row-key is required");
27955
+ };
27956
+ const updateChildFixed = (column) => {
27957
+ var _a2;
27958
+ (_a2 = column.children) == null ? void 0 : _a2.forEach((childColumn) => {
27959
+ childColumn.fixed = column.fixed;
27960
+ updateChildFixed(childColumn);
27961
+ });
27775
27962
  };
27776
27963
  const updateColumns = () => {
27964
+ _columns.value.forEach((column) => {
27965
+ updateChildFixed(column);
27966
+ });
27777
27967
  fixedColumns.value = _columns.value.filter((column) => column.fixed === true || column.fixed === "left");
27778
27968
  rightFixedColumns.value = _columns.value.filter((column) => column.fixed === "right");
27779
27969
  if (fixedColumns.value.length > 0 && _columns.value[0] && _columns.value[0].type === "selection" && !_columns.value[0].fixed) {
@@ -28244,18 +28434,19 @@
28244
28434
  }
28245
28435
  },
28246
28436
  changeSortCondition(states, options) {
28247
- const { sortingColumn: column, sortProp: prop, sortOrder: order } = states;
28248
- if (vue.unref(order) === null) {
28437
+ const { sortingColumn, sortProp, sortOrder } = states;
28438
+ const columnValue = vue.unref(sortingColumn), propValue = vue.unref(sortProp), orderValue = vue.unref(sortOrder);
28439
+ if (orderValue === null) {
28249
28440
  states.sortingColumn.value = null;
28250
28441
  states.sortProp.value = null;
28251
28442
  }
28252
- const ingore = { filter: true };
28253
- instance.store.execQuery(ingore);
28443
+ const ignore = { filter: true };
28444
+ instance.store.execQuery(ignore);
28254
28445
  if (!options || !(options.silent || options.init)) {
28255
28446
  instance.emit("sort-change", {
28256
- column: vue.unref(column),
28257
- prop: vue.unref(prop),
28258
- order: vue.unref(order)
28447
+ column: columnValue,
28448
+ prop: propValue,
28449
+ order: orderValue
28259
28450
  });
28260
28451
  }
28261
28452
  instance.store.updateTableScrollY();
@@ -28292,7 +28483,6 @@
28292
28483
  }
28293
28484
  };
28294
28485
  const updateTableScrollY = function() {
28295
- vue.nextTick(() => instance.layout.updateScrollY.apply(instance.layout));
28296
28486
  };
28297
28487
  return {
28298
28488
  ns,
@@ -28345,7 +28535,11 @@
28345
28535
  storeKey = storeKey.key;
28346
28536
  newVal = newVal || InitialStateMap[propsKey].default;
28347
28537
  }
28348
- store.states[storeKey].value = newVal;
28538
+ if (propsKey === "data") {
28539
+ store.states[storeKey].value = [{}];
28540
+ } else {
28541
+ store.states[storeKey].value = newVal;
28542
+ }
28349
28543
  }
28350
28544
  function getArrKeysValue(props, keys) {
28351
28545
  if (keys.includes(".")) {
@@ -28374,14 +28568,6 @@
28374
28568
  this.bodyWidth = vue.ref(null);
28375
28569
  this.fixedWidth = vue.ref(null);
28376
28570
  this.rightFixedWidth = vue.ref(null);
28377
- this.tableHeight = vue.ref(null);
28378
- this.headerHeight = vue.ref(44);
28379
- this.appendHeight = vue.ref(0);
28380
- this.footerHeight = vue.ref(44);
28381
- this.viewportHeight = vue.ref(null);
28382
- this.bodyHeight = vue.ref(null);
28383
- this.bodyScrollHeight = vue.ref(0);
28384
- this.fixedBodyHeight = vue.ref(null);
28385
28571
  this.gutterWidth = 0;
28386
28572
  for (const name in options) {
28387
28573
  if (hasOwn(options, name)) {
@@ -28399,24 +28585,6 @@
28399
28585
  throw new Error("Store is required for Table Layout");
28400
28586
  }
28401
28587
  }
28402
- updateScrollY() {
28403
- const height = this.height.value;
28404
- if (height === null)
28405
- return false;
28406
- const bodyWrapper = this.table.refs.bodyWrapper;
28407
- if (this.table.vnode.el && bodyWrapper) {
28408
- let scrollY = true;
28409
- const prevScrollY = this.scrollY.value;
28410
- if (this.bodyHeight.value === null) {
28411
- scrollY = false;
28412
- } else {
28413
- scrollY = bodyWrapper.scrollHeight > this.bodyHeight.value;
28414
- }
28415
- this.scrollY.value = scrollY;
28416
- return prevScrollY !== scrollY;
28417
- }
28418
- return false;
28419
- }
28420
28588
  setHeight(value, prop = "height") {
28421
28589
  if (!isClient)
28422
28590
  return;
@@ -28449,44 +28617,6 @@
28449
28617
  return flattenColumns;
28450
28618
  }
28451
28619
  updateElsHeight() {
28452
- var _a, _b;
28453
- if (!this.table.$ready)
28454
- return vue.nextTick(() => this.updateElsHeight());
28455
- const {
28456
- tableWrapper,
28457
- headerWrapper,
28458
- appendWrapper,
28459
- footerWrapper,
28460
- tableHeader,
28461
- tableBody
28462
- } = this.table.refs;
28463
- if (tableWrapper && tableWrapper.style.display === "none") {
28464
- return;
28465
- }
28466
- const { tableLayout } = this.table.props;
28467
- this.appendHeight.value = appendWrapper ? appendWrapper.offsetHeight : 0;
28468
- if (this.showHeader && !headerWrapper && tableLayout === "fixed") {
28469
- return;
28470
- }
28471
- const headerTrElm = tableHeader ? tableHeader : null;
28472
- const noneHeader = this.headerDisplayNone(headerTrElm);
28473
- const headerWrapperOffsetHeight = (headerWrapper == null ? void 0 : headerWrapper.offsetHeight) || 0;
28474
- const headerHeight = this.headerHeight.value = !this.showHeader ? 0 : headerWrapperOffsetHeight;
28475
- if (this.showHeader && !noneHeader && headerWrapperOffsetHeight > 0 && (this.table.store.states.columns.value || []).length > 0 && headerHeight < 2) {
28476
- return vue.nextTick(() => this.updateElsHeight());
28477
- }
28478
- const tableHeight = this.tableHeight.value = (_b = (_a = this.table) == null ? void 0 : _a.vnode.el) == null ? void 0 : _b.clientHeight;
28479
- const footerHeight = this.footerHeight.value = footerWrapper ? footerWrapper.offsetHeight : 0;
28480
- if (this.height.value !== null) {
28481
- if (this.bodyHeight.value === null) {
28482
- requestAnimationFrame(() => this.updateElsHeight());
28483
- }
28484
- this.bodyHeight.value = tableHeight - headerHeight - footerHeight + (footerWrapper ? 1 : 0);
28485
- this.bodyScrollHeight.value = tableBody == null ? void 0 : tableBody.scrollHeight;
28486
- }
28487
- this.fixedBodyHeight.value = this.scrollX.value ? this.bodyHeight.value - this.gutterWidth : this.bodyHeight.value;
28488
- this.viewportHeight.value = this.scrollX.value ? tableHeight - this.gutterWidth : tableHeight;
28489
- this.updateScrollY();
28490
28620
  this.notifyObservers("scrollable");
28491
28621
  }
28492
28622
  headerDisplayNone(elm) {
@@ -28714,6 +28844,13 @@
28714
28844
  });
28715
28845
  props.store.updateAllSelected();
28716
28846
  };
28847
+ vue.watch(tooltipVisible, (value) => {
28848
+ if (props.column) {
28849
+ props.upDataColumn("filterOpened", value);
28850
+ }
28851
+ }, {
28852
+ immediate: true
28853
+ });
28717
28854
  const popperPaneRef = vue.computed(() => {
28718
28855
  var _a, _b;
28719
28856
  return (_b = (_a = tooltip.value) == null ? void 0 : _a.popperRef) == null ? void 0 : _b.contentRef;
@@ -28906,12 +29043,10 @@
28906
29043
  }
28907
29044
  };
28908
29045
  const handleMouseMove = (event, column) => {
29046
+ var _a;
28909
29047
  if (column.children && column.children.length > 0)
28910
29048
  return;
28911
- let target = event.target;
28912
- while (target && target.tagName !== "TH") {
28913
- target = target.parentNode;
28914
- }
29049
+ const target = (_a = event.target) == null ? void 0 : _a.closest("th");
28915
29050
  if (!column || !column.resizable)
28916
29051
  return;
28917
29052
  if (!dragging.value && props.border) {
@@ -28944,13 +29079,11 @@
28944
29079
  return sortOrders[index > sortOrders.length - 2 ? 0 : index + 1];
28945
29080
  };
28946
29081
  const handleSortClick = (event, column, givenOrder) => {
29082
+ var _a;
28947
29083
  event.stopPropagation();
28948
29084
  const order = column.order === givenOrder ? null : givenOrder || toggleOrder(column);
28949
- let target = event.target;
28950
- while (target && target.tagName !== "TH") {
28951
- target = target.parentNode;
28952
- }
28953
- if (target && target.tagName === "TH") {
29085
+ const target = (_a = event.target) == null ? void 0 : _a.closest("th");
29086
+ if (target) {
28954
29087
  if (hasClass(target, "noclick")) {
28955
29088
  removeClass(target, "noclick");
28956
29089
  return;
@@ -29020,13 +29153,13 @@
29020
29153
  column
29021
29154
  });
29022
29155
  }
29023
- const fixedStyle = column.isSubColumn ? null : getFixedColumnOffset(columnIndex, column.fixed, props.store, row);
29156
+ const fixedStyle = getFixedColumnOffset(columnIndex, column.fixed, props.store, row);
29024
29157
  ensurePosition(fixedStyle, "left");
29025
29158
  ensurePosition(fixedStyle, "right");
29026
29159
  return Object.assign({}, headerCellStyles, fixedStyle);
29027
29160
  };
29028
29161
  const getHeaderCellClass = (rowIndex, columnIndex, row, column) => {
29029
- const fixedClasses = column.isSubColumn ? [] : getFixedColumnsClass(ns.b(), columnIndex, column.fixed, props.store, row);
29162
+ const fixedClasses = getFixedColumnsClass(ns.b(), columnIndex, column.fixed, props.store, row);
29030
29163
  const classes = [
29031
29164
  column.id,
29032
29165
  column.order,
@@ -29257,8 +29390,7 @@
29257
29390
  vue.h("div", {
29258
29391
  class: [
29259
29392
  "cell",
29260
- column.filteredValue && column.filteredValue.length > 0 ? "highlight" : "",
29261
- column.labelClassName
29393
+ column.filteredValue && column.filteredValue.length > 0 ? "highlight" : ""
29262
29394
  ]
29263
29395
  }, [
29264
29396
  column.renderHeader ? column.renderHeader({
@@ -29327,7 +29459,7 @@
29327
29459
  const handleMouseLeave = debounce(() => {
29328
29460
  props.store.commit("setHoverRow", null);
29329
29461
  }, 30);
29330
- const handleCellMouseEnter = (event, row) => {
29462
+ const handleCellMouseEnter = (event, row, tooltipEffect) => {
29331
29463
  var _a;
29332
29464
  const table = parent;
29333
29465
  const cell = getCell(event);
@@ -29349,10 +29481,10 @@
29349
29481
  const rangeWidth = range.getBoundingClientRect().width;
29350
29482
  const padding = (Number.parseInt(getStyle(cellChild, "paddingLeft"), 10) || 0) + (Number.parseInt(getStyle(cellChild, "paddingRight"), 10) || 0);
29351
29483
  if (rangeWidth + padding > cellChild.offsetWidth || cellChild.scrollWidth > cellChild.offsetWidth) {
29352
- createTablePopper(cell, cell.innerText || cell.textContent, {
29484
+ createTablePopper(parent == null ? void 0 : parent.refs.tableWrapper, cell, cell.innerText || cell.textContent, {
29353
29485
  placement: "top",
29354
29486
  strategy: "fixed"
29355
- }, row.tooltipEffect);
29487
+ }, tooltipEffect);
29356
29488
  }
29357
29489
  };
29358
29490
  const handleCellMouseLeave = (event) => {
@@ -29418,13 +29550,13 @@
29418
29550
  column
29419
29551
  });
29420
29552
  }
29421
- const fixedStyle = column.isSubColumn ? null : getFixedColumnOffset(columnIndex, props == null ? void 0 : props.fixed, props.store);
29553
+ const fixedStyle = getFixedColumnOffset(columnIndex, props == null ? void 0 : props.fixed, props.store);
29422
29554
  ensurePosition(fixedStyle, "left");
29423
29555
  ensurePosition(fixedStyle, "right");
29424
29556
  return Object.assign({}, cellStyles, fixedStyle);
29425
29557
  };
29426
- const getCellClass = (rowIndex, columnIndex, row, column) => {
29427
- const fixedClasses = column.isSubColumn ? [] : getFixedColumnsClass(ns.b(), columnIndex, props == null ? void 0 : props.fixed, props.store);
29558
+ const getCellClass = (rowIndex, columnIndex, row, column, offset) => {
29559
+ const fixedClasses = getFixedColumnsClass(ns.b(), columnIndex, props == null ? void 0 : props.fixed, props.store, void 0, offset);
29428
29560
  const classes = [column.id, column.align, column.className, ...fixedClasses];
29429
29561
  const cellClassName = parent == null ? void 0 : parent.props.cellClassName;
29430
29562
  if (typeof cellClassName === "string") {
@@ -29480,6 +29612,7 @@
29480
29612
 
29481
29613
  function useRender$1(props) {
29482
29614
  const parent = vue.inject(TABLE_INJECTION_KEY);
29615
+ const ns = useNamespace("table");
29483
29616
  const {
29484
29617
  handleDoubleClick,
29485
29618
  handleClick,
@@ -29515,7 +29648,7 @@
29515
29648
  const rowClasses = getRowClass(row, $index);
29516
29649
  let display = true;
29517
29650
  if (treeRowData) {
29518
- rowClasses.push(`el-table__row--level-${treeRowData.level}`);
29651
+ rowClasses.push(ns.em("row", `level-${treeRowData.level}`));
29519
29652
  display = treeRowData.display;
29520
29653
  }
29521
29654
  const displayStyle = display ? null : {
@@ -29566,7 +29699,7 @@
29566
29699
  const tdChildren = cellChildren(cellIndex, column, data);
29567
29700
  return vue.h("td", {
29568
29701
  style: getCellStyle($index, cellIndex, row, column),
29569
- class: getCellClass($index, cellIndex, row, column),
29702
+ class: getCellClass($index, cellIndex, row, column, colspan - 1),
29570
29703
  key: `${patchKey}${baseKey}`,
29571
29704
  rowspan,
29572
29705
  colspan,
@@ -29602,7 +29735,7 @@
29602
29735
  }, [
29603
29736
  vue.h("td", {
29604
29737
  colspan: columns.length,
29605
- class: "el-table__cell el-table__expanded-cell"
29738
+ class: `${ns.e("cell")} ${ns.e("expanded-cell")}`
29606
29739
  }, [renderExpanded({ row, $index, store, expanded })])
29607
29740
  ])
29608
29741
  ]
@@ -29716,10 +29849,6 @@
29716
29849
  var _a;
29717
29850
  (_a = removePopper) == null ? void 0 : _a();
29718
29851
  });
29719
- vue.onUpdated(() => {
29720
- var _a;
29721
- (_a = removePopper) == null ? void 0 : _a();
29722
- });
29723
29852
  return {
29724
29853
  ns,
29725
29854
  onColumnsChange,
@@ -29988,7 +30117,8 @@
29988
30117
  };
29989
30118
  const resizeState = vue.ref({
29990
30119
  width: null,
29991
- height: null
30120
+ height: null,
30121
+ headerHeight: null
29992
30122
  });
29993
30123
  const isGroup = vue.ref(false);
29994
30124
  const scrollbarViewStyle = {
@@ -29996,6 +30126,28 @@
29996
30126
  verticalAlign: "middle"
29997
30127
  };
29998
30128
  const tableWidth = vue.ref();
30129
+ const tableScrollHeight = vue.ref(0);
30130
+ const bodyScrollHeight = vue.ref(0);
30131
+ const headerScrollHeight = vue.ref(0);
30132
+ const footerScrollHeight = vue.ref(0);
30133
+ vue.watchEffect(() => {
30134
+ layout.setHeight(props.height);
30135
+ });
30136
+ vue.watchEffect(() => {
30137
+ layout.setMaxHeight(props.maxHeight);
30138
+ });
30139
+ vue.watch(() => [props.currentRowKey, store.states.rowKey], ([currentRowKey, rowKey]) => {
30140
+ if (!vue.unref(rowKey) || !vue.unref(currentRowKey))
30141
+ return;
30142
+ store.setCurrentRowKey(`${currentRowKey}`);
30143
+ }, {
30144
+ immediate: true
30145
+ });
30146
+ vue.watchEffect(() => {
30147
+ if (props.expandRowKeys) {
30148
+ store.setExpandRowKeysAdapter(props.expandRowKeys);
30149
+ }
30150
+ });
29999
30151
  const handleMouseLeave = () => {
30000
30152
  table.store.commit("setHoverRow", null);
30001
30153
  if (table.hoverState)
@@ -30020,16 +30172,22 @@
30020
30172
  layout.updateElsHeight();
30021
30173
  }
30022
30174
  layout.updateColumnsWidth();
30023
- requestAnimationFrame(syncPostion);
30175
+ requestAnimationFrame(syncPosition);
30024
30176
  };
30025
30177
  vue.onMounted(async () => {
30026
30178
  await vue.nextTick();
30027
30179
  store.updateColumns();
30028
30180
  bindEvents();
30029
30181
  requestAnimationFrame(doLayout);
30182
+ const el = table.vnode.el;
30183
+ const tableHeader = table.refs.headerWrapper;
30184
+ if (props.flexible && el && el.parentElement) {
30185
+ el.parentElement.style.minWidth = "0";
30186
+ }
30030
30187
  resizeState.value = {
30031
- width: tableWidth.value = table.vnode.el.offsetWidth,
30032
- height: table.vnode.el.offsetHeight
30188
+ width: tableWidth.value = el.offsetWidth,
30189
+ height: el.offsetHeight,
30190
+ headerHeight: props.showHeader && tableHeader ? tableHeader.offsetHeight : null
30033
30191
  };
30034
30192
  store.states.columns.value.forEach((column) => {
30035
30193
  if (column.filteredValue && column.filteredValue.length) {
@@ -30057,7 +30215,7 @@
30057
30215
  const { tableWrapper } = table.refs;
30058
30216
  return !!(tableWrapper && tableWrapper.classList.contains(className));
30059
30217
  };
30060
- const syncPostion = function() {
30218
+ const syncPosition = function() {
30061
30219
  if (!table.refs.scrollBarRef)
30062
30220
  return;
30063
30221
  if (!layout.scrollX.value) {
@@ -30067,7 +30225,7 @@
30067
30225
  }
30068
30226
  return;
30069
30227
  }
30070
- const scrollContainer = table.refs.scrollBarRef.wrap$;
30228
+ const scrollContainer = table.refs.scrollBarRef.wrapRef;
30071
30229
  if (!scrollContainer)
30072
30230
  return;
30073
30231
  const { scrollLeft, offsetWidth, scrollWidth } = scrollContainer;
@@ -30086,48 +30244,56 @@
30086
30244
  }
30087
30245
  };
30088
30246
  const bindEvents = () => {
30089
- var _a;
30090
30247
  if (!table.refs.scrollBarRef)
30091
30248
  return;
30092
- (_a = table.refs.scrollBarRef.wrap$) == null ? void 0 : _a.addEventListener("scroll", syncPostion, {
30093
- passive: true
30094
- });
30095
- if (props.fit) {
30096
- addResizeListener(table.vnode.el, resizeListener);
30097
- } else {
30098
- on$1(window, "resize", doLayout);
30249
+ if (table.refs.scrollBarRef.wrapRef) {
30250
+ useEventListener(table.refs.scrollBarRef.wrapRef, "scroll", syncPosition, {
30251
+ passive: true
30252
+ });
30099
30253
  }
30100
- };
30101
- vue.onBeforeUnmount(() => {
30102
- unbindEvents();
30103
- });
30104
- const unbindEvents = () => {
30105
- var _a;
30106
- (_a = table.refs.scrollBarRef.wrap$) == null ? void 0 : _a.removeEventListener("scroll", syncPostion, true);
30107
30254
  if (props.fit) {
30108
- removeResizeListener(table.vnode.el, resizeListener);
30255
+ useResizeObserver(table.vnode.el, resizeListener);
30109
30256
  } else {
30110
- off(window, "resize", doLayout);
30257
+ useEventListener(window, "resize", resizeListener);
30111
30258
  }
30259
+ useResizeObserver(table.refs.bodyWrapper, () => {
30260
+ var _a, _b;
30261
+ resizeListener();
30262
+ (_b = (_a = table.refs) == null ? void 0 : _a.scrollBarRef) == null ? void 0 : _b.update();
30263
+ });
30112
30264
  };
30113
30265
  const resizeListener = () => {
30114
- if (!table.$ready)
30266
+ var _a, _b, _c;
30267
+ const el = table.vnode.el;
30268
+ if (!table.$ready || !el)
30115
30269
  return;
30116
30270
  let shouldUpdateLayout = false;
30117
- const el = table.vnode.el;
30118
- const { width: oldWidth, height: oldHeight } = resizeState.value;
30271
+ const {
30272
+ width: oldWidth,
30273
+ height: oldHeight,
30274
+ headerHeight: oldHeaderHeight
30275
+ } = resizeState.value;
30119
30276
  const width = tableWidth.value = el.offsetWidth;
30120
30277
  if (oldWidth !== width) {
30121
30278
  shouldUpdateLayout = true;
30122
30279
  }
30123
- const height2 = el.offsetHeight;
30124
- if ((props.height || shouldUpdateHeight.value) && oldHeight !== height2) {
30280
+ const height = el.offsetHeight;
30281
+ if ((props.height || shouldUpdateHeight.value) && oldHeight !== height) {
30125
30282
  shouldUpdateLayout = true;
30126
30283
  }
30284
+ const tableHeader = props.tableLayout === "fixed" ? table.refs.headerWrapper : (_a = table.refs.tableHeaderRef) == null ? void 0 : _a.$el;
30285
+ if (props.showHeader && (tableHeader == null ? void 0 : tableHeader.offsetHeight) !== oldHeaderHeight) {
30286
+ shouldUpdateLayout = true;
30287
+ }
30288
+ tableScrollHeight.value = ((_b = table.refs.tableWrapper) == null ? void 0 : _b.scrollHeight) || 0;
30289
+ headerScrollHeight.value = (tableHeader == null ? void 0 : tableHeader.scrollHeight) || 0;
30290
+ footerScrollHeight.value = ((_c = table.refs.footerWrapper) == null ? void 0 : _c.offsetHeight) || 0;
30291
+ bodyScrollHeight.value = tableScrollHeight.value - headerScrollHeight.value - footerScrollHeight.value;
30127
30292
  if (shouldUpdateLayout) {
30128
30293
  resizeState.value = {
30129
30294
  width,
30130
- height: height2
30295
+ height,
30296
+ headerHeight: props.showHeader && (tableHeader == null ? void 0 : tableHeader.offsetHeight) || 0
30131
30297
  };
30132
30298
  doLayout();
30133
30299
  }
@@ -30142,57 +30308,55 @@
30142
30308
  return "fixed";
30143
30309
  return props.tableLayout;
30144
30310
  });
30145
- function calcMaxHeight(maxHeight, footerHeight, headerHeight) {
30146
- const parsedMaxHeight = parseHeight(maxHeight);
30147
- const tableHeaderHeight = props.showHeader ? headerHeight : 0;
30148
- if (parsedMaxHeight === null)
30149
- return;
30150
- if (isString(parsedMaxHeight)) {
30151
- return `calc(${parsedMaxHeight} - ${footerHeight}px - ${tableHeaderHeight}px)`;
30311
+ const emptyBlockStyle = vue.computed(() => {
30312
+ if (props.data && props.data.length)
30313
+ return null;
30314
+ let height = "100%";
30315
+ if (props.height && bodyScrollHeight.value) {
30316
+ height = `${bodyScrollHeight.value}px`;
30152
30317
  }
30153
- return parsedMaxHeight - footerHeight - tableHeaderHeight;
30154
- }
30155
- const height = vue.computed(() => {
30156
- const headerHeight = layout.headerHeight.value || 0;
30157
- const bodyHeight2 = layout.bodyHeight.value;
30158
- const footerHeight = layout.footerHeight.value || 0;
30318
+ const width = tableWidth.value;
30319
+ return {
30320
+ width: width ? `${width}px` : "",
30321
+ height
30322
+ };
30323
+ });
30324
+ const tableInnerStyle = vue.computed(() => {
30159
30325
  if (props.height) {
30160
- return bodyHeight2 ? bodyHeight2 : void 0;
30161
- } else if (props.maxHeight) {
30162
- return calcMaxHeight(props.maxHeight, footerHeight, headerHeight);
30326
+ return {
30327
+ height: !Number.isNaN(Number(props.height)) ? `${props.height}px` : props.height
30328
+ };
30163
30329
  }
30164
- return void 0;
30330
+ if (props.maxHeight) {
30331
+ return {
30332
+ maxHeight: !Number.isNaN(Number(props.maxHeight)) ? `${props.maxHeight}px` : props.maxHeight
30333
+ };
30334
+ }
30335
+ return {};
30165
30336
  });
30166
- const bodyHeight = vue.computed(() => {
30167
- const headerHeight = layout.headerHeight.value || 0;
30168
- const bodyHeight2 = layout.bodyHeight.value;
30169
- const footerHeight = layout.footerHeight.value || 0;
30337
+ const scrollbarStyle = vue.computed(() => {
30170
30338
  if (props.height) {
30171
30339
  return {
30172
- height: bodyHeight2 ? `${bodyHeight2}px` : ""
30340
+ height: "100%"
30173
30341
  };
30174
- } else if (props.maxHeight) {
30175
- const maxHeight = calcMaxHeight(props.maxHeight, footerHeight, headerHeight);
30176
- if (maxHeight !== null) {
30342
+ }
30343
+ if (props.maxHeight) {
30344
+ if (!Number.isNaN(Number(props.maxHeight))) {
30345
+ const maxHeight = props.maxHeight;
30346
+ const reachMaxHeight = tableScrollHeight.value >= Number(maxHeight);
30347
+ if (reachMaxHeight) {
30348
+ return {
30349
+ maxHeight: `${tableScrollHeight.value - headerScrollHeight.value - footerScrollHeight.value}px`
30350
+ };
30351
+ }
30352
+ } else {
30177
30353
  return {
30178
- "max-height": `${maxHeight}${isNumber(maxHeight) ? "px" : ""}`
30354
+ maxHeight: `calc(${props.maxHeight} - ${headerScrollHeight.value + footerScrollHeight.value}px)`
30179
30355
  };
30180
30356
  }
30181
30357
  }
30182
30358
  return {};
30183
30359
  });
30184
- const emptyBlockStyle = vue.computed(() => {
30185
- if (props.data && props.data.length)
30186
- return null;
30187
- let height2 = "100%";
30188
- if (layout.appendHeight.value) {
30189
- height2 = `calc(100% - ${layout.appendHeight.value}px)`;
30190
- }
30191
- return {
30192
- width: tableWidth.value ? `${tableWidth.value}px` : "",
30193
- height: height2
30194
- };
30195
- });
30196
30360
  const handleFixedMousewheel = (event, data) => {
30197
30361
  const bodyWrapper = table.refs.bodyWrapper;
30198
30362
  if (Math.abs(data.spinY) > 0) {
@@ -30208,47 +30372,6 @@
30208
30372
  bodyWrapper.scrollLeft += Math.ceil(data.pixelX / 5);
30209
30373
  }
30210
30374
  };
30211
- const fixedHeight = vue.computed(() => {
30212
- if (props.maxHeight) {
30213
- if (props.showSummary) {
30214
- return {
30215
- bottom: 0
30216
- };
30217
- }
30218
- return {
30219
- bottom: layout.scrollX.value && props.data.length ? `${layout.gutterWidth}px` : ""
30220
- };
30221
- } else {
30222
- if (props.showSummary) {
30223
- return {
30224
- height: layout.tableHeight.value ? `${layout.tableHeight.value}px` : ""
30225
- };
30226
- }
30227
- return {
30228
- height: layout.viewportHeight.value ? `${layout.viewportHeight.value}px` : ""
30229
- };
30230
- }
30231
- });
30232
- const fixedBodyHeight = vue.computed(() => {
30233
- if (props.height) {
30234
- return {
30235
- height: layout.fixedBodyHeight.value ? `${layout.fixedBodyHeight.value}px` : ""
30236
- };
30237
- } else if (props.maxHeight) {
30238
- let maxHeight = parseHeight(props.maxHeight);
30239
- if (typeof maxHeight === "number") {
30240
- maxHeight = layout.scrollX.value ? maxHeight - layout.gutterWidth : maxHeight;
30241
- if (props.showHeader) {
30242
- maxHeight -= layout.headerHeight.value;
30243
- }
30244
- maxHeight -= layout.footerHeight.value;
30245
- return {
30246
- "max-height": `${maxHeight}px`
30247
- };
30248
- }
30249
- }
30250
- return {};
30251
- });
30252
30375
  return {
30253
30376
  isHidden,
30254
30377
  renderExpanded,
@@ -30257,28 +30380,24 @@
30257
30380
  handleMouseLeave,
30258
30381
  handleHeaderFooterMousewheel,
30259
30382
  tableSize,
30260
- bodyHeight,
30261
- height,
30262
30383
  emptyBlockStyle,
30263
30384
  handleFixedMousewheel,
30264
- fixedHeight,
30265
- fixedBodyHeight,
30266
30385
  resizeProxyVisible,
30267
30386
  bodyWidth,
30268
30387
  resizeState,
30269
30388
  doLayout,
30270
30389
  tableBodyStyles,
30271
30390
  tableLayout,
30272
- scrollbarViewStyle
30391
+ scrollbarViewStyle,
30392
+ tableInnerStyle,
30393
+ scrollbarStyle
30273
30394
  };
30274
30395
  }
30275
30396
 
30276
30397
  var defaultProps$1 = {
30277
30398
  data: {
30278
30399
  type: Array,
30279
- default: () => {
30280
- return [];
30281
- }
30400
+ default: () => []
30282
30401
  },
30283
30402
  size: String,
30284
30403
  width: [String, Number],
@@ -30348,7 +30467,8 @@
30348
30467
  scrollbarAlwaysOn: {
30349
30468
  type: Boolean,
30350
30469
  default: false
30351
- }
30470
+ },
30471
+ flexible: Boolean
30352
30472
  };
30353
30473
 
30354
30474
  const useScrollbar = () => {
@@ -30443,23 +30563,21 @@
30443
30563
  handleMouseLeave,
30444
30564
  handleHeaderFooterMousewheel,
30445
30565
  tableSize,
30446
- bodyHeight,
30447
- height,
30448
30566
  emptyBlockStyle,
30449
30567
  handleFixedMousewheel,
30450
- fixedHeight,
30451
- fixedBodyHeight,
30452
30568
  resizeProxyVisible,
30453
30569
  bodyWidth,
30454
30570
  resizeState,
30455
30571
  doLayout,
30456
30572
  tableBodyStyles,
30457
30573
  tableLayout,
30458
- scrollbarViewStyle
30574
+ scrollbarViewStyle,
30575
+ tableInnerStyle,
30576
+ scrollbarStyle
30459
30577
  } = useStyle(props, layout, store, table);
30460
30578
  const { scrollBarRef, scrollTo, setScrollLeft, setScrollTop } = useScrollbar();
30461
30579
  const debouncedUpdateLayout = debounce(doLayout, 50);
30462
- const tableId = `el-table_${tableIdSeed++}`;
30580
+ const tableId = `${ns.namespace.value}-table_${tableIdSeed++}`;
30463
30581
  table.tableId = tableId;
30464
30582
  table.state = {
30465
30583
  isGroup,
@@ -30486,14 +30604,10 @@
30486
30604
  resizeState,
30487
30605
  isGroup,
30488
30606
  bodyWidth,
30489
- bodyHeight,
30490
- height,
30491
30607
  tableBodyStyles,
30492
30608
  emptyBlockStyle,
30493
30609
  debouncedUpdateLayout,
30494
30610
  handleFixedMousewheel,
30495
- fixedHeight,
30496
- fixedBodyHeight,
30497
30611
  setCurrentRow,
30498
30612
  getSelectionRows,
30499
30613
  toggleRowSelection,
@@ -30511,6 +30625,8 @@
30511
30625
  computedEmptyText,
30512
30626
  tableLayout,
30513
30627
  scrollbarViewStyle,
30628
+ tableInnerStyle,
30629
+ scrollbarStyle,
30514
30630
  scrollBarRef,
30515
30631
  scrollTo,
30516
30632
  setScrollLeft,
@@ -30555,7 +30671,8 @@
30555
30671
  "data-prefix": _ctx.ns.namespace.value
30556
30672
  }, [
30557
30673
  vue.createElementVNode("div", {
30558
- class: vue.normalizeClass(_ctx.ns.e("inner-wrapper"))
30674
+ class: vue.normalizeClass(_ctx.ns.e("inner-wrapper")),
30675
+ style: vue.normalizeStyle(_ctx.tableInnerStyle)
30559
30676
  }, [
30560
30677
  vue.createElementVNode("div", _hoisted_2$2, [
30561
30678
  vue.renderSlot(_ctx.$slots, "default")
@@ -30589,14 +30706,12 @@
30589
30706
  ]) : vue.createCommentVNode("v-if", true),
30590
30707
  vue.createElementVNode("div", {
30591
30708
  ref: "bodyWrapper",
30592
- style: vue.normalizeStyle(_ctx.bodyHeight),
30593
30709
  class: vue.normalizeClass(_ctx.ns.e("body-wrapper"))
30594
30710
  }, [
30595
30711
  vue.createVNode(_component_ps_scrollbar, {
30596
30712
  ref: "scrollBarRef",
30597
- height: _ctx.maxHeight ? void 0 : _ctx.height,
30598
- "max-height": _ctx.maxHeight ? _ctx.height : void 0,
30599
30713
  "view-style": _ctx.scrollbarViewStyle,
30714
+ "wrap-style": _ctx.scrollbarStyle,
30600
30715
  always: _ctx.scrollbarAlwaysOn
30601
30716
  }, {
30602
30717
  default: vue.withCtx(() => [
@@ -30617,6 +30732,7 @@
30617
30732
  }, null, 8, ["columns", "table-layout"]),
30618
30733
  _ctx.showHeader && _ctx.tableLayout === "auto" ? (vue.openBlock(), vue.createBlock(_component_table_header, {
30619
30734
  key: 0,
30735
+ ref: "tableHeaderRef",
30620
30736
  border: _ctx.border,
30621
30737
  "default-sort": _ctx.defaultSort,
30622
30738
  store: _ctx.store
@@ -30654,30 +30770,30 @@
30654
30770
  ], 2)) : vue.createCommentVNode("v-if", true)
30655
30771
  ]),
30656
30772
  _: 3
30657
- }, 8, ["height", "max-height", "view-style", "always"])
30658
- ], 6),
30659
- _ctx.border || _ctx.isGroup ? (vue.openBlock(), vue.createElementBlock("div", {
30773
+ }, 8, ["view-style", "wrap-style", "always"])
30774
+ ], 2),
30775
+ _ctx.showSummary ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
30660
30776
  key: 1,
30777
+ ref: "footerWrapper",
30778
+ class: vue.normalizeClass(_ctx.ns.e("footer-wrapper"))
30779
+ }, [
30780
+ vue.createVNode(_component_table_footer, {
30781
+ border: _ctx.border,
30782
+ "default-sort": _ctx.defaultSort,
30783
+ store: _ctx.store,
30784
+ style: vue.normalizeStyle(_ctx.tableBodyStyles),
30785
+ "sum-text": _ctx.computedSumText,
30786
+ "summary-method": _ctx.summaryMethod
30787
+ }, null, 8, ["border", "default-sort", "store", "style", "sum-text", "summary-method"])
30788
+ ], 2)), [
30789
+ [vue.vShow, !_ctx.isEmpty],
30790
+ [_directive_mousewheel, _ctx.handleHeaderFooterMousewheel]
30791
+ ]) : vue.createCommentVNode("v-if", true),
30792
+ _ctx.border || _ctx.isGroup ? (vue.openBlock(), vue.createElementBlock("div", {
30793
+ key: 2,
30661
30794
  class: vue.normalizeClass(_ctx.ns.e("border-left-patch"))
30662
30795
  }, null, 2)) : vue.createCommentVNode("v-if", true)
30663
- ], 2),
30664
- _ctx.showSummary ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
30665
- key: 0,
30666
- ref: "footerWrapper",
30667
- class: vue.normalizeClass(_ctx.ns.e("footer-wrapper"))
30668
- }, [
30669
- vue.createVNode(_component_table_footer, {
30670
- border: _ctx.border,
30671
- "default-sort": _ctx.defaultSort,
30672
- store: _ctx.store,
30673
- style: vue.normalizeStyle(_ctx.tableBodyStyles),
30674
- "sum-text": _ctx.computedSumText,
30675
- "summary-method": _ctx.summaryMethod
30676
- }, null, 8, ["border", "default-sort", "store", "style", "sum-text", "summary-method"])
30677
- ], 2)), [
30678
- [vue.vShow, !_ctx.isEmpty],
30679
- [_directive_mousewheel, _ctx.handleHeaderFooterMousewheel]
30680
- ]) : vue.createCommentVNode("v-if", true),
30796
+ ], 6),
30681
30797
  vue.withDirectives(vue.createElementVNode("div", {
30682
30798
  ref: "resizeProxy",
30683
30799
  class: vue.normalizeClass(_ctx.ns.e("column-resize-proxy"))
@@ -30839,6 +30955,9 @@
30839
30955
  const ele = [];
30840
30956
  const callback = function(e) {
30841
30957
  e.stopPropagation();
30958
+ if (treeNode.loading) {
30959
+ return;
30960
+ }
30842
30961
  store.loadOrToggle(row);
30843
30962
  };
30844
30963
  if (treeNode.indent) {
@@ -30973,6 +31092,9 @@
30973
31092
  if (realMinWidth.value) {
30974
31093
  column.minWidth = realMinWidth.value;
30975
31094
  }
31095
+ if (!realWidth.value && realMinWidth.value) {
31096
+ column.width = void 0;
31097
+ }
30976
31098
  if (!column.minWidth) {
30977
31099
  column.minWidth = 80;
30978
31100
  }
@@ -31017,7 +31139,6 @@
31017
31139
  };
31018
31140
  }
31019
31141
  let originRenderCell = column.renderCell;
31020
- const hasTreeColumnValue = hasTreeColumn.value;
31021
31142
  if (column.type === "expand") {
31022
31143
  column.renderCell = (data) => vue.h("div", {
31023
31144
  class: "cell"
@@ -31035,7 +31156,7 @@
31035
31156
  } else {
31036
31157
  children = originRenderCell(data);
31037
31158
  }
31038
- const shouldCreatePlaceholder = hasTreeColumnValue && data.cellIndex === 0;
31159
+ const shouldCreatePlaceholder = hasTreeColumn.value && data.cellIndex === 0 && data.column.type !== "selection";
31039
31160
  const prefix = treeCellPrefix(data, shouldCreatePlaceholder);
31040
31161
  const props2 = {
31041
31162
  class: "cell",