element-pe 2.14.2-2 → 2.14.2-4

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 (679) hide show
  1. package/dist/index.full.js +35 -111
  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 +4 -4
  5. package/dist/index.full.min.mjs.map +1 -1
  6. package/dist/index.full.mjs +35 -111
  7. package/dist/locale/af.js +1 -1
  8. package/dist/locale/af.min.js +1 -1
  9. package/dist/locale/af.min.mjs +1 -1
  10. package/dist/locale/af.mjs +1 -1
  11. package/dist/locale/ar-eg.js +1 -1
  12. package/dist/locale/ar-eg.min.js +1 -1
  13. package/dist/locale/ar-eg.min.mjs +1 -1
  14. package/dist/locale/ar-eg.mjs +1 -1
  15. package/dist/locale/ar.js +1 -1
  16. package/dist/locale/ar.min.js +1 -1
  17. package/dist/locale/ar.min.mjs +1 -1
  18. package/dist/locale/ar.mjs +1 -1
  19. package/dist/locale/az.js +1 -1
  20. package/dist/locale/az.min.js +1 -1
  21. package/dist/locale/az.min.mjs +1 -1
  22. package/dist/locale/az.mjs +1 -1
  23. package/dist/locale/bg.js +1 -1
  24. package/dist/locale/bg.min.js +1 -1
  25. package/dist/locale/bg.min.mjs +1 -1
  26. package/dist/locale/bg.mjs +1 -1
  27. package/dist/locale/bn.js +1 -1
  28. package/dist/locale/bn.min.js +1 -1
  29. package/dist/locale/bn.min.mjs +1 -1
  30. package/dist/locale/bn.mjs +1 -1
  31. package/dist/locale/ca.js +1 -1
  32. package/dist/locale/ca.min.js +1 -1
  33. package/dist/locale/ca.min.mjs +1 -1
  34. package/dist/locale/ca.mjs +1 -1
  35. package/dist/locale/ckb.js +1 -1
  36. package/dist/locale/ckb.min.js +1 -1
  37. package/dist/locale/ckb.min.mjs +1 -1
  38. package/dist/locale/ckb.mjs +1 -1
  39. package/dist/locale/cs.js +1 -1
  40. package/dist/locale/cs.min.js +1 -1
  41. package/dist/locale/cs.min.mjs +1 -1
  42. package/dist/locale/cs.mjs +1 -1
  43. package/dist/locale/da.js +1 -1
  44. package/dist/locale/da.min.js +1 -1
  45. package/dist/locale/da.min.mjs +1 -1
  46. package/dist/locale/da.mjs +1 -1
  47. package/dist/locale/de.js +1 -1
  48. package/dist/locale/de.min.js +1 -1
  49. package/dist/locale/de.min.mjs +1 -1
  50. package/dist/locale/de.mjs +1 -1
  51. package/dist/locale/el.js +1 -1
  52. package/dist/locale/el.min.js +1 -1
  53. package/dist/locale/el.min.mjs +1 -1
  54. package/dist/locale/el.mjs +1 -1
  55. package/dist/locale/en.js +1 -1
  56. package/dist/locale/en.min.js +1 -1
  57. package/dist/locale/en.min.mjs +1 -1
  58. package/dist/locale/en.mjs +1 -1
  59. package/dist/locale/eo.js +1 -1
  60. package/dist/locale/eo.min.js +1 -1
  61. package/dist/locale/eo.min.mjs +1 -1
  62. package/dist/locale/eo.mjs +1 -1
  63. package/dist/locale/es.js +1 -1
  64. package/dist/locale/es.min.js +1 -1
  65. package/dist/locale/es.min.mjs +1 -1
  66. package/dist/locale/es.mjs +1 -1
  67. package/dist/locale/et.js +1 -1
  68. package/dist/locale/et.min.js +1 -1
  69. package/dist/locale/et.min.mjs +1 -1
  70. package/dist/locale/et.mjs +1 -1
  71. package/dist/locale/eu.js +1 -1
  72. package/dist/locale/eu.min.js +1 -1
  73. package/dist/locale/eu.min.mjs +1 -1
  74. package/dist/locale/eu.mjs +1 -1
  75. package/dist/locale/fa.js +1 -1
  76. package/dist/locale/fa.min.js +1 -1
  77. package/dist/locale/fa.min.mjs +1 -1
  78. package/dist/locale/fa.mjs +1 -1
  79. package/dist/locale/fi.js +1 -1
  80. package/dist/locale/fi.min.js +1 -1
  81. package/dist/locale/fi.min.mjs +1 -1
  82. package/dist/locale/fi.mjs +1 -1
  83. package/dist/locale/fr.js +1 -1
  84. package/dist/locale/fr.min.js +1 -1
  85. package/dist/locale/fr.min.mjs +1 -1
  86. package/dist/locale/fr.mjs +1 -1
  87. package/dist/locale/he.js +1 -1
  88. package/dist/locale/he.min.js +1 -1
  89. package/dist/locale/he.min.mjs +1 -1
  90. package/dist/locale/he.mjs +1 -1
  91. package/dist/locale/hi.js +1 -1
  92. package/dist/locale/hi.min.js +1 -1
  93. package/dist/locale/hi.min.mjs +1 -1
  94. package/dist/locale/hi.mjs +1 -1
  95. package/dist/locale/hr.js +1 -1
  96. package/dist/locale/hr.min.js +1 -1
  97. package/dist/locale/hr.min.mjs +1 -1
  98. package/dist/locale/hr.mjs +1 -1
  99. package/dist/locale/hu.js +1 -1
  100. package/dist/locale/hu.min.js +1 -1
  101. package/dist/locale/hu.min.mjs +1 -1
  102. package/dist/locale/hu.mjs +1 -1
  103. package/dist/locale/hy-am.js +1 -1
  104. package/dist/locale/hy-am.min.js +1 -1
  105. package/dist/locale/hy-am.min.mjs +1 -1
  106. package/dist/locale/hy-am.mjs +1 -1
  107. package/dist/locale/id.js +1 -1
  108. package/dist/locale/id.min.js +1 -1
  109. package/dist/locale/id.min.mjs +1 -1
  110. package/dist/locale/id.mjs +1 -1
  111. package/dist/locale/it.js +1 -1
  112. package/dist/locale/it.min.js +1 -1
  113. package/dist/locale/it.min.mjs +1 -1
  114. package/dist/locale/it.mjs +1 -1
  115. package/dist/locale/ja.js +1 -1
  116. package/dist/locale/ja.min.js +1 -1
  117. package/dist/locale/ja.min.mjs +1 -1
  118. package/dist/locale/ja.mjs +1 -1
  119. package/dist/locale/kk.js +1 -1
  120. package/dist/locale/kk.min.js +1 -1
  121. package/dist/locale/kk.min.mjs +1 -1
  122. package/dist/locale/kk.mjs +1 -1
  123. package/dist/locale/km.js +1 -1
  124. package/dist/locale/km.min.js +1 -1
  125. package/dist/locale/km.min.mjs +1 -1
  126. package/dist/locale/km.mjs +1 -1
  127. package/dist/locale/ko.js +1 -1
  128. package/dist/locale/ko.min.js +1 -1
  129. package/dist/locale/ko.min.mjs +1 -1
  130. package/dist/locale/ko.mjs +1 -1
  131. package/dist/locale/ku.js +1 -1
  132. package/dist/locale/ku.min.js +1 -1
  133. package/dist/locale/ku.min.mjs +1 -1
  134. package/dist/locale/ku.mjs +1 -1
  135. package/dist/locale/ky.js +1 -1
  136. package/dist/locale/ky.min.js +1 -1
  137. package/dist/locale/ky.min.mjs +1 -1
  138. package/dist/locale/ky.mjs +1 -1
  139. package/dist/locale/lo.js +1 -1
  140. package/dist/locale/lo.min.js +1 -1
  141. package/dist/locale/lo.min.mjs +1 -1
  142. package/dist/locale/lo.mjs +1 -1
  143. package/dist/locale/lt.js +1 -1
  144. package/dist/locale/lt.min.js +1 -1
  145. package/dist/locale/lt.min.mjs +1 -1
  146. package/dist/locale/lt.mjs +1 -1
  147. package/dist/locale/lv.js +1 -1
  148. package/dist/locale/lv.min.js +1 -1
  149. package/dist/locale/lv.min.mjs +1 -1
  150. package/dist/locale/lv.mjs +1 -1
  151. package/dist/locale/mg.js +1 -1
  152. package/dist/locale/mg.min.js +1 -1
  153. package/dist/locale/mg.min.mjs +1 -1
  154. package/dist/locale/mg.mjs +1 -1
  155. package/dist/locale/mn.js +1 -1
  156. package/dist/locale/mn.min.js +1 -1
  157. package/dist/locale/mn.min.mjs +1 -1
  158. package/dist/locale/mn.mjs +1 -1
  159. package/dist/locale/ms.js +1 -1
  160. package/dist/locale/ms.min.js +1 -1
  161. package/dist/locale/ms.min.mjs +1 -1
  162. package/dist/locale/ms.mjs +1 -1
  163. package/dist/locale/my.js +1 -1
  164. package/dist/locale/my.min.js +1 -1
  165. package/dist/locale/my.min.mjs +1 -1
  166. package/dist/locale/my.mjs +1 -1
  167. package/dist/locale/nb-no.js +1 -1
  168. package/dist/locale/nb-no.min.js +1 -1
  169. package/dist/locale/nb-no.min.mjs +1 -1
  170. package/dist/locale/nb-no.mjs +1 -1
  171. package/dist/locale/nl.js +1 -1
  172. package/dist/locale/nl.min.js +1 -1
  173. package/dist/locale/nl.min.mjs +1 -1
  174. package/dist/locale/nl.mjs +1 -1
  175. package/dist/locale/no.js +1 -1
  176. package/dist/locale/no.min.js +1 -1
  177. package/dist/locale/no.min.mjs +1 -1
  178. package/dist/locale/no.mjs +1 -1
  179. package/dist/locale/pa.js +1 -1
  180. package/dist/locale/pa.min.js +1 -1
  181. package/dist/locale/pa.min.mjs +1 -1
  182. package/dist/locale/pa.mjs +1 -1
  183. package/dist/locale/pl.js +1 -1
  184. package/dist/locale/pl.min.js +1 -1
  185. package/dist/locale/pl.min.mjs +1 -1
  186. package/dist/locale/pl.mjs +1 -1
  187. package/dist/locale/pt-br.js +1 -1
  188. package/dist/locale/pt-br.min.js +1 -1
  189. package/dist/locale/pt-br.min.mjs +1 -1
  190. package/dist/locale/pt-br.mjs +1 -1
  191. package/dist/locale/pt.js +1 -1
  192. package/dist/locale/pt.min.js +1 -1
  193. package/dist/locale/pt.min.mjs +1 -1
  194. package/dist/locale/pt.mjs +1 -1
  195. package/dist/locale/ro.js +1 -1
  196. package/dist/locale/ro.min.js +1 -1
  197. package/dist/locale/ro.min.mjs +1 -1
  198. package/dist/locale/ro.mjs +1 -1
  199. package/dist/locale/ru.js +1 -1
  200. package/dist/locale/ru.min.js +1 -1
  201. package/dist/locale/ru.min.mjs +1 -1
  202. package/dist/locale/ru.mjs +1 -1
  203. package/dist/locale/sk.js +1 -1
  204. package/dist/locale/sk.min.js +1 -1
  205. package/dist/locale/sk.min.mjs +1 -1
  206. package/dist/locale/sk.mjs +1 -1
  207. package/dist/locale/sl.js +1 -1
  208. package/dist/locale/sl.min.js +1 -1
  209. package/dist/locale/sl.min.mjs +1 -1
  210. package/dist/locale/sl.mjs +1 -1
  211. package/dist/locale/sr.js +1 -1
  212. package/dist/locale/sr.min.js +1 -1
  213. package/dist/locale/sr.min.mjs +1 -1
  214. package/dist/locale/sr.mjs +1 -1
  215. package/dist/locale/sv.js +1 -1
  216. package/dist/locale/sv.min.js +1 -1
  217. package/dist/locale/sv.min.mjs +1 -1
  218. package/dist/locale/sv.mjs +1 -1
  219. package/dist/locale/sw.js +1 -1
  220. package/dist/locale/sw.min.js +1 -1
  221. package/dist/locale/sw.min.mjs +1 -1
  222. package/dist/locale/sw.mjs +1 -1
  223. package/dist/locale/ta.js +1 -1
  224. package/dist/locale/ta.min.js +1 -1
  225. package/dist/locale/ta.min.mjs +1 -1
  226. package/dist/locale/ta.mjs +1 -1
  227. package/dist/locale/te.js +1 -1
  228. package/dist/locale/te.min.js +1 -1
  229. package/dist/locale/te.min.mjs +1 -1
  230. package/dist/locale/te.mjs +1 -1
  231. package/dist/locale/th.js +1 -1
  232. package/dist/locale/th.min.js +1 -1
  233. package/dist/locale/th.min.mjs +1 -1
  234. package/dist/locale/th.mjs +1 -1
  235. package/dist/locale/tk.js +1 -1
  236. package/dist/locale/tk.min.js +1 -1
  237. package/dist/locale/tk.min.mjs +1 -1
  238. package/dist/locale/tk.mjs +1 -1
  239. package/dist/locale/tr.js +1 -1
  240. package/dist/locale/tr.min.js +1 -1
  241. package/dist/locale/tr.min.mjs +1 -1
  242. package/dist/locale/tr.mjs +1 -1
  243. package/dist/locale/ug-cn.js +1 -1
  244. package/dist/locale/ug-cn.min.js +1 -1
  245. package/dist/locale/ug-cn.min.mjs +1 -1
  246. package/dist/locale/ug-cn.mjs +1 -1
  247. package/dist/locale/uk.js +1 -1
  248. package/dist/locale/uk.min.js +1 -1
  249. package/dist/locale/uk.min.mjs +1 -1
  250. package/dist/locale/uk.mjs +1 -1
  251. package/dist/locale/uz-uz.js +1 -1
  252. package/dist/locale/uz-uz.min.js +1 -1
  253. package/dist/locale/uz-uz.min.mjs +1 -1
  254. package/dist/locale/uz-uz.mjs +1 -1
  255. package/dist/locale/vi.js +1 -1
  256. package/dist/locale/vi.min.js +1 -1
  257. package/dist/locale/vi.min.mjs +1 -1
  258. package/dist/locale/vi.mjs +1 -1
  259. package/dist/locale/zh-cn.js +1 -1
  260. package/dist/locale/zh-cn.min.js +1 -1
  261. package/dist/locale/zh-cn.min.mjs +1 -1
  262. package/dist/locale/zh-cn.mjs +1 -1
  263. package/dist/locale/zh-hk.js +1 -1
  264. package/dist/locale/zh-hk.min.js +1 -1
  265. package/dist/locale/zh-hk.min.mjs +1 -1
  266. package/dist/locale/zh-hk.mjs +1 -1
  267. package/dist/locale/zh-mo.js +1 -1
  268. package/dist/locale/zh-mo.min.js +1 -1
  269. package/dist/locale/zh-mo.min.mjs +1 -1
  270. package/dist/locale/zh-mo.mjs +1 -1
  271. package/dist/locale/zh-tw.js +1 -1
  272. package/dist/locale/zh-tw.min.js +1 -1
  273. package/dist/locale/zh-tw.min.mjs +1 -1
  274. package/dist/locale/zh-tw.mjs +1 -1
  275. package/es/component.mjs +4 -4
  276. package/es/components/affix/src/affix.d.ts +1 -1
  277. package/es/components/affix/src/affix.vue.d.ts +3 -3
  278. package/es/components/alert/src/alert.d.ts +1 -1
  279. package/es/components/alert/src/alert.vue.d.ts +2 -2
  280. package/es/components/anchor/src/anchor.d.ts +1 -1
  281. package/es/components/anchor/src/anchor.vue.d.ts +2 -2
  282. package/es/components/autocomplete/src/autocomplete.d.ts +4 -4
  283. package/es/components/autocomplete/src/autocomplete.vue.d.ts +3 -3
  284. package/es/components/avatar/src/avatar-group.d.ts +1 -1
  285. package/es/components/avatar/src/avatar.d.ts +1 -1
  286. package/es/components/backtop/src/backtop.vue.d.ts +1 -1
  287. package/es/components/badge/src/badge.vue.d.ts +1 -1
  288. package/es/components/button/src/button-group.d.ts +1 -1
  289. package/es/components/button/src/button-group.vue.d.ts +1 -1
  290. package/es/components/button/src/button.d.ts +1 -1
  291. package/es/components/button/src/button.vue.d.ts +3 -3
  292. package/es/components/button/src/use-button.d.ts +1 -1
  293. package/es/components/calendar/src/calendar.d.ts +1 -1
  294. package/es/components/carousel/src/carousel.vue.d.ts +3 -3
  295. package/es/components/cascader/src/cascader.d.ts +3 -3
  296. package/es/components/cascader/src/cascader.vue.d.ts +14 -14
  297. package/es/components/cascader/src/cascader.vue_vue_type_script_setup_true_lang.mjs +2 -2
  298. package/es/components/cascader-panel/src/index.vue_vue_type_script_setup_true_lang.mjs +1 -1
  299. package/es/components/checkbox/src/checkbox-button.vue.d.ts +3 -3
  300. package/es/components/checkbox/src/checkbox-group.vue.d.ts +2 -2
  301. package/es/components/checkbox/src/checkbox.d.ts +8 -8
  302. package/es/components/checkbox/src/checkbox.vue.d.ts +3 -3
  303. package/es/components/col/src/col.vue.d.ts +1 -1
  304. package/es/components/collapse/src/collapse.d.ts +1 -1
  305. package/es/components/color-picker/src/color-picker.vue.d.ts +9 -9
  306. package/es/components/color-picker/src/color-picker.vue_vue_type_script_setup_true_lang.mjs +1 -1
  307. package/es/components/color-picker-panel/src/color-picker-panel.vue.d.ts +1 -1
  308. package/es/components/config-provider/src/config-provider.d.ts +2 -2
  309. package/es/components/countdown/src/countdown.vue_vue_type_script_setup_true_lang.mjs +1 -1
  310. package/es/components/date-picker/src/date-picker.d.ts +13 -13
  311. package/es/components/date-picker/src/props.d.ts +1 -1
  312. package/es/components/date-picker-panel/src/composables/use-basic-date-table.d.ts +1 -1
  313. package/es/components/date-picker-panel/src/date-picker-com/panel-date-pick.vue.d.ts +1 -1
  314. package/es/components/date-picker-panel/src/date-picker-com/panel-date-pick.vue_vue_type_script_setup_true_lang.mjs +1 -1
  315. package/es/components/date-picker-panel/src/date-picker-com/panel-date-range.vue_vue_type_script_setup_true_lang.mjs +1 -1
  316. package/es/components/date-picker-panel/src/date-picker-panel.d.ts +2 -2
  317. package/es/components/date-picker-panel/src/panel-utils.d.ts +3 -3
  318. package/es/components/descriptions/src/description-item.d.ts +19 -19
  319. package/es/components/descriptions/src/description.vue.d.ts +1 -1
  320. package/es/components/dialog/src/dialog-content.vue.d.ts +1 -1
  321. package/es/components/dialog/src/dialog.vue.d.ts +4 -4
  322. package/es/components/divider/src/divider.d.ts +1 -1
  323. package/es/components/divider/src/divider.vue.d.ts +1 -1
  324. package/es/components/drawer/src/drawer.vue.d.ts +6 -6
  325. package/es/components/dropdown/src/dropdown-menu.vue.d.ts +1 -1
  326. package/es/components/dropdown/src/dropdown.d.ts +3 -3
  327. package/es/components/dropdown/src/dropdown.vue.d.ts +63 -63
  328. package/es/components/form/src/form-item.d.ts +1 -1
  329. package/es/components/form/src/form.d.ts +2 -2
  330. package/es/components/image/src/image.vue.d.ts +4 -4
  331. package/es/components/image-viewer/src/image-viewer.vue.d.ts +4 -4
  332. package/es/components/index.mjs +10 -10
  333. package/es/components/input/src/input.d.ts +3 -3
  334. package/es/components/input/src/input.vue.d.ts +7 -7
  335. package/es/components/input-number/src/input-number.d.ts +3 -3
  336. package/es/components/input-number/src/input-number.vue.d.ts +7 -7
  337. package/es/components/input-number/src/input-number.vue_vue_type_script_setup_true_lang.mjs +1 -1
  338. package/es/components/input-otp/src/input-otp.vue.d.ts +1 -1
  339. package/es/components/input-tag/src/input-tag.d.ts +2 -2
  340. package/es/components/input-tag/src/input-tag.vue.d.ts +11 -11
  341. package/es/components/link/src/link.d.ts +1 -1
  342. package/es/components/link/src/link.vue.d.ts +2 -2
  343. package/es/components/mention/src/mention.d.ts +4 -4
  344. package/es/components/mention/src/mention.vue.d.ts +3 -3
  345. package/es/components/menu/src/menu.d.ts +3 -3
  346. package/es/components/menu/src/menu.mjs +1 -1
  347. package/es/components/menu/src/sub-menu.d.ts +1 -1
  348. package/es/components/menu/src/utils/menu-item.mjs +1 -1
  349. package/es/components/menu/src/utils/submenu.mjs +1 -1
  350. package/es/components/message/src/instance.d.ts +1 -1
  351. package/es/components/message/src/message.d.ts +1 -1
  352. package/es/components/message/src/message.vue.d.ts +6 -6
  353. package/es/components/message-box/src/index.vue.d.ts +33 -33
  354. package/es/components/message-box/src/index.vue_vue_type_script_lang.mjs +1 -1
  355. package/es/components/notification/src/notification.d.ts +1 -1
  356. package/es/components/notification/src/notification.vue.d.ts +5 -5
  357. package/es/components/page-header/src/page-header.vue.d.ts +1 -1
  358. package/es/components/pagination/src/components/sizes.vue.d.ts +1 -1
  359. package/es/components/pagination/src/pagination.d.ts +3 -3
  360. package/es/components/popconfirm/src/popconfirm.d.ts +2 -2
  361. package/es/components/popconfirm/src/popconfirm.vue.d.ts +2 -2
  362. package/es/components/popover/src/popover.d.ts +1 -1
  363. package/es/components/popover/src/popover.vue.d.ts +8 -8
  364. package/es/components/popper/src/composables/use-content.d.ts +3 -3
  365. package/es/components/popper/src/content.vue.d.ts +5 -5
  366. package/es/components/popper/src/popper.d.ts +2 -2
  367. package/es/components/progress/src/progress.vue.d.ts +3 -3
  368. package/es/components/radio/src/radio-button.d.ts +3 -3
  369. package/es/components/radio/src/radio-button.vue.d.ts +1 -1
  370. package/es/components/radio/src/radio-group.vue.d.ts +4 -4
  371. package/es/components/radio/src/radio.d.ts +6 -6
  372. package/es/components/radio/src/radio.vue.d.ts +1 -1
  373. package/es/components/rate/src/rate.vue.d.ts +2 -2
  374. package/es/components/resizable-columns/index.d.ts +2 -2
  375. package/es/components/resizable-columns/src/resizable-column.vue.d.ts +1 -1
  376. package/es/components/result/src/result.vue.d.ts +1 -1
  377. package/es/components/row/src/row.d.ts +2 -2
  378. package/es/components/row/src/row.vue.d.ts +1 -1
  379. package/es/components/scrollbar/src/scrollbar.vue.d.ts +2 -2
  380. package/es/components/segmented/index.d.ts +1 -1
  381. package/es/components/segmented/src/segmented.d.ts +1 -1
  382. package/es/components/select/src/option.d.ts +2 -2
  383. package/es/components/select/src/option.vue.d.ts +5 -5
  384. package/es/components/select/src/select.d.ts +4 -4
  385. package/es/components/select/src/select.vue.d.ts +71 -71
  386. package/es/components/select/src/select.vue_vue_type_script_lang.mjs +1 -1
  387. package/es/components/select/src/useOption.d.ts +2 -2
  388. package/es/components/select/src/useSelect.d.ts +3 -3
  389. package/es/components/select-v2/src/defaults.d.ts +2 -2
  390. package/es/components/select-v2/src/select.vue.d.ts +54 -54
  391. package/es/components/select-v2/src/select.vue_vue_type_script_lang.mjs +1 -1
  392. package/es/components/slider/src/button.vue.d.ts +1 -1
  393. package/es/components/slider/src/slider.vue.d.ts +5 -5
  394. package/es/components/space/src/space.d.ts +3 -3
  395. package/es/components/splitter/src/split-bar.vue.d.ts +1 -1
  396. package/es/components/statistic/src/statistic.vue.d.ts +2 -2
  397. package/es/components/steps/src/item.vue.d.ts +1 -1
  398. package/es/components/steps/src/steps.vue.d.ts +1 -1
  399. package/es/components/switch/src/switch.vue.d.ts +2 -2
  400. package/es/components/table/src/filter-panel.vue.d.ts +49 -49
  401. package/es/components/table/src/store/helper.d.ts +0 -12
  402. package/es/components/table/src/store/index.d.ts +0 -24
  403. package/es/components/table/src/store/watcher.d.ts +0 -2
  404. package/es/components/table/src/store/watcher.mjs +0 -64
  405. package/es/components/table/src/store/watcher.mjs.map +1 -1
  406. package/es/components/table/src/table/defaults.d.ts +5 -5
  407. package/es/components/table/src/table/style-helper.d.ts +1 -1
  408. package/es/components/table/src/table/style-helper.mjs +0 -4
  409. package/es/components/table/src/table/style-helper.mjs.map +1 -1
  410. package/es/components/table/src/table-body/defaults.d.ts +1 -2
  411. package/es/components/table/src/table-body/defaults.mjs +1 -2
  412. package/es/components/table/src/table-body/defaults.mjs.map +1 -1
  413. package/es/components/table/src/table-body/index.mjs +1 -1
  414. package/es/components/table/src/table-body/render-helper.mjs +2 -11
  415. package/es/components/table/src/table-body/render-helper.mjs.map +1 -1
  416. package/es/components/table/src/table-body/styles-helper.mjs.map +1 -1
  417. package/es/components/table/src/table-column/defaults.d.ts +2 -2
  418. package/es/components/table/src/table-footer/index.d.ts +1 -1
  419. package/es/components/table/src/table-header/index.d.ts +10 -10
  420. package/es/components/table/src/table-header/index.mjs +1 -1
  421. package/es/components/table/src/table-header/index.mjs.map +1 -1
  422. package/es/components/table/src/table.mjs.map +1 -1
  423. package/es/components/table/src/table.vue.d.ts +4 -17
  424. package/es/components/table/src/table.vue_vue_type_script_setup_true_lang.mjs +5 -7
  425. package/es/components/table/src/table.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  426. package/es/components/tabs/src/tab-pane.vue.d.ts +1 -1
  427. package/es/components/tabs/src/tabs.d.ts +5 -5
  428. package/es/components/tag/src/tag.d.ts +1 -1
  429. package/es/components/time-picker/src/common/picker.vue.d.ts +15 -15
  430. package/es/components/time-picker/src/common/props.d.ts +1 -1
  431. package/es/components/time-picker/src/time-picker-com/basic-time-spinner.vue_vue_type_script_setup_true_lang.mjs +1 -1
  432. package/es/components/time-picker/src/time-picker.d.ts +13 -13
  433. package/es/components/time-select/src/time-select.vue.d.ts +7 -7
  434. package/es/components/timeline/src/timeline-item.d.ts +1 -1
  435. package/es/components/timeline/src/timeline-item.vue.d.ts +1 -1
  436. package/es/components/tooltip/src/content.vue.d.ts +4 -4
  437. package/es/components/tooltip/src/tooltip.d.ts +1 -1
  438. package/es/components/tooltip/src/tooltip.vue.d.ts +10 -10
  439. package/es/components/tour/src/content.d.ts +1 -1
  440. package/es/components/tour/src/content.vue.d.ts +1 -1
  441. package/es/components/tour/src/mask.vue.d.ts +1 -1
  442. package/es/components/tour/src/step.d.ts +1 -1
  443. package/es/components/tour/src/step.vue.d.ts +1 -1
  444. package/es/components/tour/src/tour.d.ts +1 -1
  445. package/es/components/tour/src/tour.vue.d.ts +4 -4
  446. package/es/components/tree/src/tree-node.vue.d.ts +9 -9
  447. package/es/components/tree/src/tree.d.ts +12 -0
  448. package/es/components/tree/src/tree.mjs +3 -1
  449. package/es/components/tree/src/tree.mjs.map +1 -1
  450. package/es/components/tree/src/tree.vue.d.ts +36 -12
  451. package/es/components/tree-select/src/tree-select-option.d.ts +5 -5
  452. package/es/components/tree-select/src/tree-select.vue.d.ts +54 -30
  453. package/es/components/tree-v2/src/composables/useTree.d.ts +6 -6
  454. package/es/components/upload/src/upload-content.vue.d.ts +1 -1
  455. package/es/components/upload/src/upload.vue.d.ts +1 -1
  456. package/es/components/virtual-list/src/builders/build-list.d.ts +3 -3
  457. package/es/components/virtual-list/src/components/dynamic-size-list.d.ts +3 -3
  458. package/es/components/virtual-list/src/components/fixed-size-list.d.ts +3 -3
  459. package/es/constants/index.mjs +2 -2
  460. package/es/directives/trap-focus/index.mjs +1 -1
  461. package/es/hooks/use-floating/index.d.ts +8 -8
  462. package/es/hooks/use-popper/index.d.ts +3 -3
  463. package/es/index.mjs +17 -17
  464. package/es/plugin.mjs +1 -1
  465. package/es/utils/vue/size.d.ts +1 -1
  466. package/es/version.d.ts +1 -1
  467. package/es/version.mjs +1 -1
  468. package/es/version.mjs.map +1 -1
  469. package/lib/component.js +111 -111
  470. package/lib/components/affix/src/affix.d.ts +1 -1
  471. package/lib/components/affix/src/affix.vue.d.ts +3 -3
  472. package/lib/components/alert/src/alert.d.ts +1 -1
  473. package/lib/components/alert/src/alert.vue.d.ts +2 -2
  474. package/lib/components/anchor/src/anchor.d.ts +1 -1
  475. package/lib/components/anchor/src/anchor.vue.d.ts +2 -2
  476. package/lib/components/autocomplete/src/autocomplete.d.ts +4 -4
  477. package/lib/components/autocomplete/src/autocomplete.vue.d.ts +3 -3
  478. package/lib/components/avatar/src/avatar-group.d.ts +1 -1
  479. package/lib/components/avatar/src/avatar.d.ts +1 -1
  480. package/lib/components/backtop/src/backtop.vue.d.ts +1 -1
  481. package/lib/components/badge/src/badge.vue.d.ts +1 -1
  482. package/lib/components/button/src/button-group.d.ts +1 -1
  483. package/lib/components/button/src/button-group.vue.d.ts +1 -1
  484. package/lib/components/button/src/button.d.ts +1 -1
  485. package/lib/components/button/src/button.vue.d.ts +3 -3
  486. package/lib/components/button/src/use-button.d.ts +1 -1
  487. package/lib/components/calendar/src/calendar.d.ts +1 -1
  488. package/lib/components/carousel/src/carousel.vue.d.ts +3 -3
  489. package/lib/components/cascader/src/cascader.d.ts +3 -3
  490. package/lib/components/cascader/src/cascader.vue.d.ts +14 -14
  491. package/lib/components/cascader/src/cascader.vue_vue_type_script_setup_true_lang.js +40 -40
  492. package/lib/components/cascader/src/cascader.vue_vue_type_script_setup_true_lang.js.map +1 -1
  493. package/lib/components/cascader-panel/src/index.vue_vue_type_script_setup_true_lang.js +12 -12
  494. package/lib/components/cascader-panel/src/index.vue_vue_type_script_setup_true_lang.js.map +1 -1
  495. package/lib/components/checkbox/src/checkbox-button.vue.d.ts +3 -3
  496. package/lib/components/checkbox/src/checkbox-group.vue.d.ts +2 -2
  497. package/lib/components/checkbox/src/checkbox.d.ts +8 -8
  498. package/lib/components/checkbox/src/checkbox.vue.d.ts +3 -3
  499. package/lib/components/col/src/col.vue.d.ts +1 -1
  500. package/lib/components/collapse/src/collapse.d.ts +1 -1
  501. package/lib/components/color-picker/src/color-picker.vue.d.ts +9 -9
  502. package/lib/components/color-picker/src/color-picker.vue_vue_type_script_setup_true_lang.js +18 -18
  503. package/lib/components/color-picker/src/color-picker.vue_vue_type_script_setup_true_lang.js.map +1 -1
  504. package/lib/components/color-picker-panel/src/color-picker-panel.vue.d.ts +1 -1
  505. package/lib/components/config-provider/src/config-provider.d.ts +2 -2
  506. package/lib/components/countdown/src/countdown.vue_vue_type_script_setup_true_lang.js +1 -1
  507. package/lib/components/date-picker/src/date-picker.d.ts +13 -13
  508. package/lib/components/date-picker/src/props.d.ts +1 -1
  509. package/lib/components/date-picker-panel/src/composables/use-basic-date-table.d.ts +1 -1
  510. package/lib/components/date-picker-panel/src/date-picker-com/panel-date-pick.vue.d.ts +1 -1
  511. package/lib/components/date-picker-panel/src/date-picker-com/panel-date-pick.vue_vue_type_script_setup_true_lang.js +18 -18
  512. package/lib/components/date-picker-panel/src/date-picker-com/panel-date-pick.vue_vue_type_script_setup_true_lang.js.map +1 -1
  513. package/lib/components/date-picker-panel/src/date-picker-com/panel-date-range.vue_vue_type_script_setup_true_lang.js +23 -23
  514. package/lib/components/date-picker-panel/src/date-picker-com/panel-date-range.vue_vue_type_script_setup_true_lang.js.map +1 -1
  515. package/lib/components/date-picker-panel/src/date-picker-panel.d.ts +2 -2
  516. package/lib/components/date-picker-panel/src/panel-utils.d.ts +3 -3
  517. package/lib/components/descriptions/src/description-item.d.ts +19 -19
  518. package/lib/components/descriptions/src/description.vue.d.ts +1 -1
  519. package/lib/components/dialog/src/dialog-content.vue.d.ts +1 -1
  520. package/lib/components/dialog/src/dialog.vue.d.ts +4 -4
  521. package/lib/components/divider/src/divider.d.ts +1 -1
  522. package/lib/components/divider/src/divider.vue.d.ts +1 -1
  523. package/lib/components/drawer/src/drawer.vue.d.ts +6 -6
  524. package/lib/components/dropdown/src/dropdown-menu.vue.d.ts +1 -1
  525. package/lib/components/dropdown/src/dropdown.d.ts +3 -3
  526. package/lib/components/dropdown/src/dropdown.vue.d.ts +63 -63
  527. package/lib/components/form/src/form-item.d.ts +1 -1
  528. package/lib/components/form/src/form.d.ts +2 -2
  529. package/lib/components/image/src/image.vue.d.ts +4 -4
  530. package/lib/components/image-viewer/src/image-viewer.vue.d.ts +4 -4
  531. package/lib/components/index.js +134 -134
  532. package/lib/components/input/src/input.d.ts +3 -3
  533. package/lib/components/input/src/input.vue.d.ts +7 -7
  534. package/lib/components/input-number/src/input-number.d.ts +3 -3
  535. package/lib/components/input-number/src/input-number.vue.d.ts +7 -7
  536. package/lib/components/input-number/src/input-number.vue_vue_type_script_setup_true_lang.js +12 -12
  537. package/lib/components/input-number/src/input-number.vue_vue_type_script_setup_true_lang.js.map +1 -1
  538. package/lib/components/input-otp/src/input-otp.vue.d.ts +1 -1
  539. package/lib/components/input-tag/src/input-tag.d.ts +2 -2
  540. package/lib/components/input-tag/src/input-tag.vue.d.ts +11 -11
  541. package/lib/components/link/src/link.d.ts +1 -1
  542. package/lib/components/link/src/link.vue.d.ts +2 -2
  543. package/lib/components/mention/src/mention.d.ts +4 -4
  544. package/lib/components/mention/src/mention.vue.d.ts +3 -3
  545. package/lib/components/menu/src/menu.d.ts +3 -3
  546. package/lib/components/menu/src/menu.js +7 -7
  547. package/lib/components/menu/src/menu.js.map +1 -1
  548. package/lib/components/menu/src/sub-menu.d.ts +1 -1
  549. package/lib/components/menu/src/utils/menu-item.js +11 -11
  550. package/lib/components/menu/src/utils/menu-item.js.map +1 -1
  551. package/lib/components/menu/src/utils/submenu.js +9 -9
  552. package/lib/components/menu/src/utils/submenu.js.map +1 -1
  553. package/lib/components/message/src/instance.d.ts +1 -1
  554. package/lib/components/message/src/message.d.ts +1 -1
  555. package/lib/components/message/src/message.vue.d.ts +6 -6
  556. package/lib/components/message-box/src/index.vue.d.ts +33 -33
  557. package/lib/components/message-box/src/index.vue_vue_type_script_lang.js +19 -19
  558. package/lib/components/message-box/src/index.vue_vue_type_script_lang.js.map +1 -1
  559. package/lib/components/notification/src/notification.d.ts +1 -1
  560. package/lib/components/notification/src/notification.vue.d.ts +5 -5
  561. package/lib/components/page-header/src/page-header.vue.d.ts +1 -1
  562. package/lib/components/pagination/src/components/sizes.vue.d.ts +1 -1
  563. package/lib/components/pagination/src/pagination.d.ts +3 -3
  564. package/lib/components/popconfirm/src/popconfirm.d.ts +2 -2
  565. package/lib/components/popconfirm/src/popconfirm.vue.d.ts +2 -2
  566. package/lib/components/popover/src/popover.d.ts +1 -1
  567. package/lib/components/popover/src/popover.vue.d.ts +8 -8
  568. package/lib/components/popper/src/composables/use-content.d.ts +3 -3
  569. package/lib/components/popper/src/content.vue.d.ts +5 -5
  570. package/lib/components/popper/src/popper.d.ts +2 -2
  571. package/lib/components/progress/src/progress.vue.d.ts +3 -3
  572. package/lib/components/radio/src/radio-button.d.ts +3 -3
  573. package/lib/components/radio/src/radio-button.vue.d.ts +1 -1
  574. package/lib/components/radio/src/radio-group.vue.d.ts +4 -4
  575. package/lib/components/radio/src/radio.d.ts +6 -6
  576. package/lib/components/radio/src/radio.vue.d.ts +1 -1
  577. package/lib/components/rate/src/rate.vue.d.ts +2 -2
  578. package/lib/components/resizable-columns/index.d.ts +2 -2
  579. package/lib/components/resizable-columns/src/resizable-column.vue.d.ts +1 -1
  580. package/lib/components/result/src/result.vue.d.ts +1 -1
  581. package/lib/components/row/src/row.d.ts +2 -2
  582. package/lib/components/row/src/row.vue.d.ts +1 -1
  583. package/lib/components/scrollbar/src/scrollbar.vue.d.ts +2 -2
  584. package/lib/components/segmented/index.d.ts +1 -1
  585. package/lib/components/segmented/src/segmented.d.ts +1 -1
  586. package/lib/components/select/src/option.d.ts +2 -2
  587. package/lib/components/select/src/option.vue.d.ts +5 -5
  588. package/lib/components/select/src/select.d.ts +4 -4
  589. package/lib/components/select/src/select.vue.d.ts +71 -71
  590. package/lib/components/select/src/select.vue_vue_type_script_lang.js +10 -10
  591. package/lib/components/select/src/select.vue_vue_type_script_lang.js.map +1 -1
  592. package/lib/components/select/src/useOption.d.ts +2 -2
  593. package/lib/components/select/src/useSelect.d.ts +3 -3
  594. package/lib/components/select-v2/src/defaults.d.ts +2 -2
  595. package/lib/components/select-v2/src/select.vue.d.ts +54 -54
  596. package/lib/components/select-v2/src/select.vue_vue_type_script_lang.js +10 -10
  597. package/lib/components/select-v2/src/select.vue_vue_type_script_lang.js.map +1 -1
  598. package/lib/components/slider/src/button.vue.d.ts +1 -1
  599. package/lib/components/slider/src/slider.vue.d.ts +5 -5
  600. package/lib/components/space/src/space.d.ts +3 -3
  601. package/lib/components/splitter/src/split-bar.vue.d.ts +1 -1
  602. package/lib/components/statistic/src/statistic.vue.d.ts +2 -2
  603. package/lib/components/steps/src/item.vue.d.ts +1 -1
  604. package/lib/components/steps/src/steps.vue.d.ts +1 -1
  605. package/lib/components/switch/src/switch.vue.d.ts +2 -2
  606. package/lib/components/table/src/filter-panel.vue.d.ts +49 -49
  607. package/lib/components/table/src/store/helper.d.ts +0 -12
  608. package/lib/components/table/src/store/index.d.ts +0 -24
  609. package/lib/components/table/src/store/watcher.d.ts +0 -2
  610. package/lib/components/table/src/store/watcher.js +0 -64
  611. package/lib/components/table/src/store/watcher.js.map +1 -1
  612. package/lib/components/table/src/table/defaults.d.ts +5 -5
  613. package/lib/components/table/src/table/style-helper.d.ts +1 -1
  614. package/lib/components/table/src/table/style-helper.js +0 -4
  615. package/lib/components/table/src/table/style-helper.js.map +1 -1
  616. package/lib/components/table/src/table-body/defaults.d.ts +1 -2
  617. package/lib/components/table/src/table-body/defaults.js +0 -2
  618. package/lib/components/table/src/table-body/defaults.js.map +1 -1
  619. package/lib/components/table/src/table-body/index.js +1 -1
  620. package/lib/components/table/src/table-body/render-helper.js +2 -11
  621. package/lib/components/table/src/table-body/render-helper.js.map +1 -1
  622. package/lib/components/table/src/table-body/styles-helper.js.map +1 -1
  623. package/lib/components/table/src/table-column/defaults.d.ts +2 -2
  624. package/lib/components/table/src/table-footer/index.d.ts +1 -1
  625. package/lib/components/table/src/table-header/index.d.ts +10 -10
  626. package/lib/components/table/src/table-header/index.js +1 -1
  627. package/lib/components/table/src/table-header/index.js.map +1 -1
  628. package/lib/components/table/src/table.js.map +1 -1
  629. package/lib/components/table/src/table.vue.d.ts +4 -17
  630. package/lib/components/table/src/table.vue_vue_type_script_setup_true_lang.js +13 -15
  631. package/lib/components/table/src/table.vue_vue_type_script_setup_true_lang.js.map +1 -1
  632. package/lib/components/tabs/src/tab-pane.vue.d.ts +1 -1
  633. package/lib/components/tabs/src/tabs.d.ts +5 -5
  634. package/lib/components/tag/src/tag.d.ts +1 -1
  635. package/lib/components/time-picker/src/common/picker.vue.d.ts +15 -15
  636. package/lib/components/time-picker/src/common/props.d.ts +1 -1
  637. package/lib/components/time-picker/src/time-picker-com/basic-time-spinner.vue_vue_type_script_setup_true_lang.js +10 -10
  638. package/lib/components/time-picker/src/time-picker-com/basic-time-spinner.vue_vue_type_script_setup_true_lang.js.map +1 -1
  639. package/lib/components/time-picker/src/time-picker.d.ts +13 -13
  640. package/lib/components/time-select/src/time-select.vue.d.ts +7 -7
  641. package/lib/components/timeline/src/timeline-item.d.ts +1 -1
  642. package/lib/components/timeline/src/timeline-item.vue.d.ts +1 -1
  643. package/lib/components/tooltip/src/content.vue.d.ts +4 -4
  644. package/lib/components/tooltip/src/tooltip.d.ts +1 -1
  645. package/lib/components/tooltip/src/tooltip.vue.d.ts +10 -10
  646. package/lib/components/tour/src/content.d.ts +1 -1
  647. package/lib/components/tour/src/content.vue.d.ts +1 -1
  648. package/lib/components/tour/src/mask.vue.d.ts +1 -1
  649. package/lib/components/tour/src/step.d.ts +1 -1
  650. package/lib/components/tour/src/step.vue.d.ts +1 -1
  651. package/lib/components/tour/src/tour.d.ts +1 -1
  652. package/lib/components/tour/src/tour.vue.d.ts +4 -4
  653. package/lib/components/tree/src/tree-node.vue.d.ts +9 -9
  654. package/lib/components/tree/src/tree.d.ts +12 -0
  655. package/lib/components/tree/src/tree.js +3 -1
  656. package/lib/components/tree/src/tree.js.map +1 -1
  657. package/lib/components/tree/src/tree.vue.d.ts +36 -12
  658. package/lib/components/tree-select/src/tree-select-option.d.ts +5 -5
  659. package/lib/components/tree-select/src/tree-select.vue.d.ts +54 -30
  660. package/lib/components/tree-v2/src/composables/useTree.d.ts +6 -6
  661. package/lib/components/upload/src/upload-content.vue.d.ts +1 -1
  662. package/lib/components/upload/src/upload.vue.d.ts +1 -1
  663. package/lib/components/virtual-list/src/builders/build-list.d.ts +3 -3
  664. package/lib/components/virtual-list/src/components/dynamic-size-list.d.ts +3 -3
  665. package/lib/components/virtual-list/src/components/fixed-size-list.d.ts +3 -3
  666. package/lib/constants/index.js +2 -2
  667. package/lib/directives/trap-focus/index.js +5 -5
  668. package/lib/directives/trap-focus/index.js.map +1 -1
  669. package/lib/hooks/use-floating/index.d.ts +8 -8
  670. package/lib/hooks/use-popper/index.d.ts +3 -3
  671. package/lib/index.js +278 -278
  672. package/lib/plugin.js +12 -12
  673. package/lib/plugin.js.map +1 -1
  674. package/lib/utils/vue/size.d.ts +1 -1
  675. package/lib/version.d.ts +1 -1
  676. package/lib/version.js +1 -1
  677. package/lib/version.js.map +1 -1
  678. package/package.json +1 -1
  679. package/web-types.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"styles-helper.js","names":["TABLE_INJECTION_KEY","useNamespace","getFixedColumnOffset","getFixedColumnsClass"],"sources":["../../../../../../../packages/components/table/src/table-body/styles-helper.ts"],"sourcesContent":["import { inject } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { isArray, isFunction, isObject, isString } from '@element-plus/utils'\nimport {\n ensurePosition,\n getFixedColumnOffset,\n getFixedColumnsClass,\n} from '../util'\nimport { TABLE_INJECTION_KEY } from '../tokens'\n\nimport type { TableColumnCtx } from '../table-column/defaults'\nimport type { TableBodyProps } from './defaults'\nimport type { DefaultRow, Table } from '../table/defaults'\n\nfunction useStyles<T extends DefaultRow>(props: Partial<TableBodyProps<T>>) {\n const parent = inject(TABLE_INJECTION_KEY) as Table<T>\n const ns = useNamespace('table')\n\n const getRowStyle = (row: T, rowIndex: number) => {\n const rowStyle = parent?.props.rowStyle\n if (isFunction(rowStyle)) {\n return rowStyle.call(null, {\n row,\n rowIndex,\n })\n }\n return rowStyle || null\n }\n\n const getRowClass = (row: T, rowIndex: number, displayIndex: number) => {\n const classes = [ns.e('row')]\n if (\n parent?.props.highlightCurrentRow &&\n row === props.store?.states.currentRow.value\n ) {\n classes.push('current-row')\n }\n if (props.stripe && displayIndex % 2 === 1) {\n classes.push(ns.em('row', 'striped'))\n }\n const rowClassName = parent?.props.rowClassName\n if (isString(rowClassName)) {\n classes.push(rowClassName)\n } else if (isFunction(rowClassName)) {\n classes.push(\n rowClassName.call(null, {\n row,\n rowIndex,\n })\n )\n }\n return classes\n }\n\n const getCellStyle = (\n rowIndex: number,\n columnIndex: number,\n row: T,\n column: TableColumnCtx<T>\n ) => {\n const cellStyle = parent?.props.cellStyle\n let cellStyles = cellStyle ?? {}\n if (isFunction(cellStyle)) {\n cellStyles = cellStyle.call(null, {\n rowIndex,\n columnIndex,\n row,\n column,\n })\n }\n const fixedStyle = getFixedColumnOffset(\n columnIndex,\n props?.fixed,\n props.store\n )\n ensurePosition(fixedStyle, 'left')\n ensurePosition(fixedStyle, 'right')\n return Object.assign({}, cellStyles, fixedStyle)\n }\n\n const getCellClass = (\n rowIndex: number,\n columnIndex: number,\n row: T,\n column: TableColumnCtx<T>,\n offset: number\n ) => {\n const fixedClasses = getFixedColumnsClass(\n ns.b(),\n columnIndex,\n props?.fixed,\n props.store,\n undefined,\n offset\n )\n const classes = [column.id, column.align, column.className, ns.is('input', column.type === 'input'),\n ...fixedClasses]\n const cellClassName = parent?.props.cellClassName\n if (isString(cellClassName)) {\n classes.push(cellClassName)\n } else if (isFunction(cellClassName)) {\n classes.push(\n cellClassName.call(null, {\n rowIndex,\n columnIndex,\n row,\n column,\n })\n )\n }\n classes.push(ns.e('cell'))\n return classes.filter((className) => Boolean(className)).join(' ')\n }\n const getSpan = (\n row: T,\n column: TableColumnCtx<T>,\n rowIndex: number,\n columnIndex: number\n ) => {\n let rowspan = 1\n let colspan = 1\n const fn = parent?.props.spanMethod\n if (isFunction(fn)) {\n const result = fn({\n row,\n column,\n rowIndex,\n columnIndex,\n })\n if (isArray(result)) {\n rowspan = result[0]\n colspan = result[1]\n } else if (isObject(result)) {\n rowspan = result.rowspan\n colspan = result.colspan\n }\n }\n return { rowspan, colspan }\n }\n const getColspanRealWidth = (\n columns: TableColumnCtx<T>[],\n colspan: number,\n index: number\n ): number => {\n if (colspan < 1) {\n return columns[index].realWidth!\n }\n const widthArr = columns\n .map(({ realWidth, width }) => realWidth || width)\n .slice(index, index + colspan)\n return Number(\n widthArr.reduce((acc, width) => Number(acc) + Number(width), -1)\n )\n }\n\n return {\n getRowStyle,\n getRowClass,\n getCellStyle,\n getCellClass,\n getSpan,\n getColspanRealWidth,\n }\n}\n\nexport default useStyles\n"],"mappings":";;;;;;;;;;AAcA,SAAS,UAAgC,OAAmC;CAC1E,MAAM,UAAA,GAAA,IAAA,OAAA,CAAgBA,eAAAA,mBAAmB;CACzC,MAAM,KAAKC,cAAAA,aAAa,OAAO;CAE/B,MAAM,eAAe,KAAQ,aAAqB;EAChD,MAAM,WAAW,QAAQ,MAAM;EAC/B,KAAA,GAAA,YAAA,WAAA,CAAe,QAAQ,GACrB,OAAO,SAAS,KAAK,MAAM;GACzB;GACA;EACF,CAAC;EAEH,OAAO,YAAY;CACrB;CAEA,MAAM,eAAe,KAAQ,UAAkB,iBAAyB;EACtE,MAAM,UAAU,CAAC,GAAG,EAAE,KAAK,CAAC;EAC5B,IACE,QAA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,KAAK,GAAG,EAAE,MAAM,CAAC;EACzB,OAAO,QAAQ,QAAQ,cAAc,QAAQ,SAAS,CAAC,CAAC,CAAC,KAAK,GAAG;CACnE;CACA,MAAM,WACJ,KACA,QACA,UACA,gBACG;EACH,IAAI,UAAU;EACd,IAAI,UAAU;EACd,MAAM,KAAK,QAAQ,MAAM;EACzB,KAAA,GAAA,YAAA,WAAA,CAAe,EAAE,GAAG;GAClB,MAAM,SAAS,GAAG;IAChB;IACA;IACA;IACA;GACF,CAAC;GACD,KAAA,GAAA,YAAA,QAAA,CAAY,MAAM,GAAG;IACnB,UAAU,OAAO;IACjB,UAAU,OAAO;GACnB,OAAO,KAAA,GAAA,YAAA,SAAA,CAAa,MAAM,GAAG;IAC3B,UAAU,OAAO;IACjB,UAAU,OAAO;GACnB;EACF;EACA,OAAO;GAAE;GAAS;EAAQ;CAC5B;CACA,MAAM,uBACJ,SACA,SACA,UACW;EACX,IAAI,UAAU,GACZ,OAAO,QAAQ,MAAM,CAAC;EAExB,MAAM,WAAW,QACd,KAAK,EAAE,WAAW,YAAY,aAAa,KAAK,CAAC,CACjD,MAAM,OAAO,QAAQ,OAAO;EAC/B,OAAO,OACL,SAAS,QAAQ,KAAK,UAAU,OAAO,GAAG,IAAI,OAAO,KAAK,GAAG,EAAE,CACjE;CACF;CAEA,OAAO;EACL;EACA;EACA;EACA;EACA;EACA;CACF;AACF"}
1
+ {"version":3,"file":"styles-helper.js","names":["TABLE_INJECTION_KEY","useNamespace","getFixedColumnOffset","getFixedColumnsClass"],"sources":["../../../../../../../packages/components/table/src/table-body/styles-helper.ts"],"sourcesContent":["import { inject } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { isArray, isFunction, isObject, isString } from '@element-plus/utils'\nimport {\n ensurePosition,\n getFixedColumnOffset,\n getFixedColumnsClass,\n} from '../util'\nimport { TABLE_INJECTION_KEY } from '../tokens'\n\nimport type { TableColumnCtx } from '../table-column/defaults'\nimport type { TableBodyProps } from './defaults'\nimport type { DefaultRow, Table } from '../table/defaults'\n\nfunction useStyles<T extends DefaultRow>(props: Partial<TableBodyProps<T>>) {\n const parent = inject(TABLE_INJECTION_KEY) as Table<T>\n const ns = useNamespace('table')\n\n const getRowStyle = (row: T, rowIndex: number) => {\n const rowStyle = parent?.props.rowStyle\n if (isFunction(rowStyle)) {\n return rowStyle.call(null, {\n row,\n rowIndex,\n })\n }\n return rowStyle || null\n }\n\n const getRowClass = (row: T, rowIndex: number, displayIndex: number) => {\n const classes = [ns.e('row')]\n if (\n parent?.props.highlightCurrentRow &&\n row === props.store?.states.currentRow.value\n ) {\n classes.push('current-row')\n }\n if (props.stripe && displayIndex % 2 === 1) {\n classes.push(ns.em('row', 'striped'))\n }\n const rowClassName = parent?.props.rowClassName\n if (isString(rowClassName)) {\n classes.push(rowClassName)\n } else if (isFunction(rowClassName)) {\n classes.push(\n rowClassName.call(null, {\n row,\n rowIndex,\n })\n )\n }\n return classes\n }\n\n const getCellStyle = (\n rowIndex: number,\n columnIndex: number,\n row: T,\n column: TableColumnCtx<T>\n ) => {\n const cellStyle = parent?.props.cellStyle\n let cellStyles = cellStyle ?? {}\n if (isFunction(cellStyle)) {\n cellStyles = cellStyle.call(null, {\n rowIndex,\n columnIndex,\n row,\n column,\n })\n }\n const fixedStyle = getFixedColumnOffset(\n columnIndex,\n props?.fixed,\n props.store\n )\n ensurePosition(fixedStyle, 'left')\n ensurePosition(fixedStyle, 'right')\n return Object.assign({}, cellStyles, fixedStyle)\n }\n\n const getCellClass = (\n rowIndex: number,\n columnIndex: number,\n row: T,\n column: TableColumnCtx<T>,\n offset: number\n ) => {\n const fixedClasses = getFixedColumnsClass(\n ns.b(),\n columnIndex,\n props?.fixed,\n props.store,\n undefined,\n offset\n )\n const classes = [column.id, column.align, column.className,\n ns.is('input', column.type === 'input'),\n ...fixedClasses]\n const cellClassName = parent?.props.cellClassName\n if (isString(cellClassName)) {\n classes.push(cellClassName)\n } else if (isFunction(cellClassName)) {\n classes.push(\n cellClassName.call(null, {\n rowIndex,\n columnIndex,\n row,\n column,\n })\n )\n }\n classes.push(ns.e('cell'))\n return classes.filter((className) => Boolean(className)).join(' ')\n }\n const getSpan = (\n row: T,\n column: TableColumnCtx<T>,\n rowIndex: number,\n columnIndex: number\n ) => {\n let rowspan = 1\n let colspan = 1\n const fn = parent?.props.spanMethod\n if (isFunction(fn)) {\n const result = fn({\n row,\n column,\n rowIndex,\n columnIndex,\n })\n if (isArray(result)) {\n rowspan = result[0]\n colspan = result[1]\n } else if (isObject(result)) {\n rowspan = result.rowspan\n colspan = result.colspan\n }\n }\n return { rowspan, colspan }\n }\n const getColspanRealWidth = (\n columns: TableColumnCtx<T>[],\n colspan: number,\n index: number\n ): number => {\n if (colspan < 1) {\n return columns[index].realWidth!\n }\n const widthArr = columns\n .map(({ realWidth, width }) => realWidth || width)\n .slice(index, index + colspan)\n return Number(\n widthArr.reduce((acc, width) => Number(acc) + Number(width), -1)\n )\n }\n\n return {\n getRowStyle,\n getRowClass,\n getCellStyle,\n getCellClass,\n getSpan,\n getColspanRealWidth,\n }\n}\n\nexport default useStyles\n"],"mappings":";;;;;;;;;;AAcA,SAAS,UAAgC,OAAmC;CAC1E,MAAM,UAAA,GAAA,IAAA,OAAA,CAAgBA,eAAAA,mBAAmB;CACzC,MAAM,KAAKC,cAAAA,aAAa,OAAO;CAE/B,MAAM,eAAe,KAAQ,aAAqB;EAChD,MAAM,WAAW,QAAQ,MAAM;EAC/B,KAAA,GAAA,YAAA,WAAA,CAAe,QAAQ,GACrB,OAAO,SAAS,KAAK,MAAM;GACzB;GACA;EACF,CAAC;EAEH,OAAO,YAAY;CACrB;CAEA,MAAM,eAAe,KAAQ,UAAkB,iBAAyB;EACtE,MAAM,UAAU,CAAC,GAAG,EAAE,KAAK,CAAC;EAC5B,IACE,QAAQ,MAAM,uBACd,QAAQ,MAAM,OAAO,OAAO,WAAW,OAEvC,QAAQ,KAAK,aAAa;EAE5B,IAAI,MAAM,UAAU,eAAe,MAAM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CACnE;CACA,MAAM,WACJ,KACA,QACA,UACA,gBACG;EACH,IAAI,UAAU;EACd,IAAI,UAAU;EACd,MAAM,KAAK,QAAQ,MAAM;EACzB,KAAA,GAAA,YAAA,WAAA,CAAe,EAAE,GAAG;GAClB,MAAM,SAAS,GAAG;IAChB;IACA;IACA;IACA;GACF,CAAC;GACD,KAAA,GAAA,YAAA,QAAA,CAAY,MAAM,GAAG;IACnB,UAAU,OAAO;IACjB,UAAU,OAAO;GACnB,OAAO,KAAA,GAAA,YAAA,SAAA,CAAa,MAAM,GAAG;IAC3B,UAAU,OAAO;IACjB,UAAU,OAAO;GACnB;EACF;EACA,OAAO;GAAE;GAAS;EAAQ;CAC5B;CACA,MAAM,uBACJ,SACA,SACA,UACW;EACX,IAAI,UAAU,GACZ,OAAO,QAAQ,MAAM,CAAC;EAExB,MAAM,WAAW,QACd,KAAK,EAAE,WAAW,YAAY,aAAa,KAAK,CAAC,CACjD,MAAM,OAAO,QAAQ,OAAO;EAC/B,OAAO,OACL,SAAS,QAAQ,KAAK,UAAU,OAAO,GAAG,IAAI,OAAO,KAAK,GAAG,EAAE,CACjE;CACF;CAEA,OAAO;EACL;EACA;EACA;EACA;EACA;EACA;CACF;AACF"}
@@ -233,14 +233,14 @@ declare const tableColumnProps: {
233
233
  * @description column width
234
234
  */
235
235
  width: {
236
- type: (NumberConstructor | StringConstructor)[];
236
+ type: (StringConstructor | NumberConstructor)[];
237
237
  default: string;
238
238
  };
239
239
  /**
240
240
  * @description column minimum width. Columns with `width` has a fixed width, while columns with `min-width` has a width that is distributed in proportion
241
241
  */
242
242
  minWidth: {
243
- type: (NumberConstructor | StringConstructor)[];
243
+ type: (StringConstructor | NumberConstructor)[];
244
244
  default: string;
245
245
  };
246
246
  /**
@@ -76,8 +76,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
76
76
  };
77
77
  };
78
78
  }>> & Readonly<{}>, {
79
- fixed: string;
80
79
  border: boolean;
80
+ fixed: string;
81
81
  defaultSort: Sort;
82
82
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
83
83
  //#endregion
@@ -111,8 +111,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
111
111
  type: BooleanConstructor;
112
112
  };
113
113
  }>> & Readonly<{}>, {
114
- fixed: string;
115
114
  border: boolean;
115
+ fixed: string;
116
116
  defaultSort: Sort;
117
117
  allowDragLastColumn: boolean;
118
118
  }, {}, {
@@ -124,11 +124,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
124
124
  "update:modelValue": (val: CheckboxValueType) => void;
125
125
  change: (val: CheckboxValueType) => void;
126
126
  }, import("vue").PublicProps, {
127
- id: string;
128
- disabled: boolean;
129
127
  modelValue: number | string | boolean;
130
- validateEvent: boolean;
131
128
  name: string;
129
+ disabled: boolean;
130
+ id: string;
131
+ validateEvent: boolean;
132
132
  value: string | boolean | number | object;
133
133
  label: string | boolean | number | object;
134
134
  trueValue: string | number;
@@ -146,11 +146,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
146
146
  "onUpdate:modelValue"?: ((val: CheckboxValueType) => any) | undefined;
147
147
  onChange?: ((val: CheckboxValueType) => any) | undefined;
148
148
  }>, {}, {}, {}, {}, {
149
- id: string;
150
- disabled: boolean;
151
149
  modelValue: number | string | boolean;
152
- validateEvent: boolean;
153
150
  name: string;
151
+ disabled: boolean;
152
+ id: string;
153
+ validateEvent: boolean;
154
154
  value: string | boolean | number | object;
155
155
  label: string | boolean | number | object;
156
156
  trueValue: string | number;
@@ -168,11 +168,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
168
168
  "update:modelValue": (val: CheckboxValueType) => void;
169
169
  change: (val: CheckboxValueType) => void;
170
170
  }, string, {
171
- id: string;
172
- disabled: boolean;
173
171
  modelValue: number | string | boolean;
174
- validateEvent: boolean;
175
172
  name: string;
173
+ disabled: boolean;
174
+ id: string;
175
+ validateEvent: boolean;
176
176
  value: string | boolean | number | object;
177
177
  label: string | boolean | number | object;
178
178
  trueValue: string | number;
@@ -134,7 +134,7 @@ var table_header_default = (0, vue.defineComponent)({
134
134
  scope: column.colSpan > 1 ? "colgroup" : "col",
135
135
  ariaSort: column.sortable ? column.order : void 0,
136
136
  style: getHeaderCellStyle(rowIndex, cellIndex, subColumns, column),
137
- widget: column.widget ? "table-column:header:" + column.widget.split(":")[1] : void 0,
137
+ widget: column.widget ? `table-column:header:${column.widget.split(":")[1]}` : void 0,
138
138
  onClick: ($event) => {
139
139
  if ($event.currentTarget?.classList.contains("noclick")) return;
140
140
  handleHeaderClick($event, column);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["TABLE_INJECTION_KEY","useNamespace","useLayoutObserver","useEvent","useStyle","useUtils","useLocale","FilterPanel"],"sources":["../../../../../../../packages/components/table/src/table-header/index.ts"],"sourcesContent":["import {\n defineComponent,\n getCurrentInstance,\n h,\n inject,\n nextTick,\n onBeforeUnmount,\n onMounted,\n reactive,\n ref,\n watch,\n} from 'vue'\nimport ElCheckbox from '@element-plus/components/checkbox'\nimport { useNamespace } from '@element-plus/hooks'\nimport { useLocale } from '@element-plus/hooks/use-locale'\nimport FilterPanel from '../filter-panel.vue'\nimport useLayoutObserver from '../layout-observer'\nimport { TABLE_INJECTION_KEY } from '../tokens'\nimport useEvent from './event-helper'\nimport useStyle from './style.helper'\nimport useUtils from './utils-helper'\n\nimport type TableLayout from '../table-layout'\nimport type { ComponentInternalInstance, PropType, Ref } from 'vue'\nimport type { DefaultRow, Sort } from '../table/defaults'\nimport type { Store } from '../store'\n\nexport interface TableHeader extends ComponentInternalInstance {\n state: {\n onColumnsChange: (layout: TableLayout<any>) => void\n onScrollableChange: (layout: TableLayout<any>) => void\n }\n filterPanels: Ref<DefaultRow>\n}\nexport interface TableHeaderProps<T extends DefaultRow> {\n fixed: string\n store: Store<T>\n border: boolean\n defaultSort: Sort\n allowDragLastColumn: boolean\n}\n\nexport default defineComponent({\n name: 'ElTableHeader',\n components: {\n ElCheckbox,\n },\n props: {\n fixed: {\n type: String,\n default: '',\n },\n store: {\n required: true,\n type: Object as PropType<TableHeaderProps<any>['store']>,\n },\n border: Boolean,\n defaultSort: {\n type: Object as PropType<TableHeaderProps<any>['defaultSort']>,\n default: () => {\n return {\n prop: '',\n order: '',\n }\n },\n },\n appendFilterPanelTo: {\n type: String,\n },\n allowDragLastColumn: {\n type: Boolean,\n },\n },\n setup(props, { emit }) {\n const instance = getCurrentInstance() as TableHeader\n const parent = inject(TABLE_INJECTION_KEY)\n const ns = useNamespace('table')\n const filterPanels = ref({})\n const { onColumnsChange, onScrollableChange } = useLayoutObserver(parent!)\n\n const isTableLayoutAuto = parent?.props.tableLayout === 'auto'\n const saveIndexSelection = reactive(new Map())\n const theadRef = ref()\n\n let delayId: ReturnType<typeof setTimeout> | undefined\n const updateFixedColumnStyle = () => {\n delayId = setTimeout(() => {\n if (saveIndexSelection.size > 0) {\n saveIndexSelection.forEach((column, key) => {\n const el = theadRef.value.querySelector(\n `.${key.replace(/\\s/g, '.')}`\n )\n if (el) {\n const width = el.getBoundingClientRect().width\n column.width = width || column.width\n }\n })\n saveIndexSelection.clear()\n }\n })\n }\n\n watch(saveIndexSelection, updateFixedColumnStyle)\n onBeforeUnmount(() => {\n if (delayId) {\n clearTimeout(delayId)\n delayId = undefined\n }\n })\n\n onMounted(async () => {\n // Need double await, because updateColumns is executed after nextTick for now\n await nextTick()\n await nextTick()\n const { prop, order } = props.defaultSort\n parent?.store.commit('sort', { prop, order, init: true })\n\n updateFixedColumnStyle()\n })\n\n const {\n handleHeaderClick,\n handleHeaderContextMenu,\n handleMouseDown,\n handleMouseMove,\n handleMouseOut,\n handleSortClick,\n handleFilterClick,\n } = useEvent(props as TableHeaderProps<any>, emit)\n const {\n getHeaderRowStyle,\n getHeaderRowClass,\n getHeaderCellStyle,\n getHeaderCellClass,\n } = useStyle(props as TableHeaderProps<any>)\n const { isGroup, toggleAllSelection, columnRows } = useUtils(\n props as TableHeaderProps<any>\n )\n\n const { t } = useLocale()\n\n instance.state = {\n onColumnsChange,\n onScrollableChange,\n }\n instance.filterPanels = filterPanels\n\n return {\n ns,\n t,\n filterPanels,\n onColumnsChange,\n onScrollableChange,\n columnRows,\n getHeaderRowClass,\n getHeaderRowStyle,\n getHeaderCellClass,\n getHeaderCellStyle,\n handleHeaderClick,\n handleHeaderContextMenu,\n handleMouseDown,\n handleMouseMove,\n handleMouseOut,\n handleSortClick,\n handleFilterClick,\n isGroup,\n toggleAllSelection,\n saveIndexSelection,\n isTableLayoutAuto,\n theadRef,\n updateFixedColumnStyle,\n }\n },\n render() {\n const {\n ns,\n t,\n isGroup,\n columnRows,\n getHeaderCellStyle,\n getHeaderCellClass,\n getHeaderRowClass,\n getHeaderRowStyle,\n handleHeaderClick,\n handleHeaderContextMenu,\n handleMouseDown,\n handleMouseMove,\n handleSortClick,\n handleMouseOut,\n store,\n $parent,\n saveIndexSelection,\n isTableLayoutAuto,\n } = this\n let rowSpan = 1\n return h(\n 'thead',\n {\n ref: 'theadRef',\n class: ns.is('group', isGroup),\n },\n columnRows.map((subColumns, rowIndex) =>\n h(\n 'tr',\n {\n class: getHeaderRowClass(rowIndex),\n key: rowIndex,\n style: getHeaderRowStyle(rowIndex),\n },\n subColumns.map((column, cellIndex) => {\n if (column.rowSpan > rowSpan) {\n rowSpan = column.rowSpan\n }\n const _class = getHeaderCellClass(\n rowIndex,\n cellIndex,\n subColumns,\n column\n )\n if (isTableLayoutAuto && column.fixed) {\n saveIndexSelection.set(_class, column)\n }\n return h(\n 'th',\n {\n class: _class,\n colspan: column.colSpan,\n key: `${column.id}-thead`,\n rowspan: column.rowSpan,\n scope: column.colSpan > 1 ? 'colgroup' : 'col',\n ariaSort: column.sortable ? column.order : undefined,\n style: getHeaderCellStyle(\n rowIndex,\n cellIndex,\n subColumns,\n column\n ),\n widget: column.widget\n ? 'table-column:header:' + column.widget.split(':')[1]\n : undefined,\n onClick: ($event: PointerEvent) => {\n if (\n ($event.currentTarget as Element)?.classList.contains(\n 'noclick'\n )\n ) {\n return\n }\n handleHeaderClick($event, column)\n },\n onContextmenu: ($event: PointerEvent) =>\n handleHeaderContextMenu($event, column),\n onMousedown: ($event: MouseEvent) =>\n handleMouseDown($event, column),\n onMousemove: ($event: MouseEvent) =>\n handleMouseMove($event, column),\n onMouseout: handleMouseOut,\n },\n [\n h(\n 'div',\n {\n class: [\n 'cell',\n column.filteredValue && column.filteredValue.length > 0\n ? 'highlight'\n : '',\n ],\n },\n [\n column.renderHeader\n ? column.renderHeader({\n column,\n $index: cellIndex,\n store,\n _self: $parent,\n })\n : column.label,\n column.sortable &&\n h(\n 'button',\n {\n type: 'button',\n class: 'caret-wrapper',\n 'aria-label': t('el.table.sortLabel', {\n column: column.label || '',\n }),\n onClick: ($event: Event) =>\n handleSortClick($event, column),\n },\n [\n h('i', {\n onClick: ($event: Event) =>\n handleSortClick($event, column, 'ascending'),\n class: 'sort-caret ascending',\n }),\n h('i', {\n onClick: ($event: Event) =>\n handleSortClick($event, column, 'descending'),\n class: 'sort-caret descending',\n }),\n ]\n ),\n column.filterable &&\n h(\n FilterPanel as any,\n {\n store,\n placement: column.filterPlacement || 'bottom-start',\n appendTo: ($parent as any)?.appendFilterPanelTo,\n column,\n upDataColumn: (key: never, value: never) => {\n column[key] = value\n },\n },\n {\n 'filter-icon': () =>\n column.renderFilterIcon\n ? column.renderFilterIcon({\n filterOpened: column.filterOpened,\n })\n : null,\n }\n ),\n ]\n ),\n ]\n )\n })\n )\n )\n )\n },\n})\n"],"mappings":";;;;;;;;;;;;;;;AA0CA,IAAA,wBAAA,GAAA,IAAA,gBAAA,CAA+B;CAC7B,MAAM;CACN,YAAY,EACV,YAAA,gBAAA,WACF;CACA,OAAO;EACL,OAAO;GACL,MAAM;GACN,SAAS;EACX;EACA,OAAO;GACL,UAAU;GACV,MAAM;EACR;EACA,QAAQ;EACR,aAAa;GACX,MAAM;GACN,eAAe;IACb,OAAO;KACL,MAAM;KACN,OAAO;IACT;G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":"index.js","names":["TABLE_INJECTION_KEY","useNamespace","useLayoutObserver","useEvent","useStyle","useUtils","useLocale","FilterPanel"],"sources":["../../../../../../../packages/components/table/src/table-header/index.ts"],"sourcesContent":["import {\n defineComponent,\n getCurrentInstance,\n h,\n inject,\n nextTick,\n onBeforeUnmount,\n onMounted,\n reactive,\n ref,\n watch,\n} from 'vue'\nimport ElCheckbox from '@element-plus/components/checkbox'\nimport { useNamespace } from '@element-plus/hooks'\nimport { useLocale } from '@element-plus/hooks/use-locale'\nimport FilterPanel from '../filter-panel.vue'\nimport useLayoutObserver from '../layout-observer'\nimport { TABLE_INJECTION_KEY } from '../tokens'\nimport useEvent from './event-helper'\nimport useStyle from './style.helper'\nimport useUtils from './utils-helper'\n\nimport type TableLayout from '../table-layout'\nimport type { ComponentInternalInstance, PropType, Ref } from 'vue'\nimport type { DefaultRow, Sort } from '../table/defaults'\nimport type { Store } from '../store'\n\nexport interface TableHeader extends ComponentInternalInstance {\n state: {\n onColumnsChange: (layout: TableLayout<any>) => void\n onScrollableChange: (layout: TableLayout<any>) => void\n }\n filterPanels: Ref<DefaultRow>\n}\nexport interface TableHeaderProps<T extends DefaultRow> {\n fixed: string\n store: Store<T>\n border: boolean\n defaultSort: Sort\n allowDragLastColumn: boolean\n}\n\nexport default defineComponent({\n name: 'ElTableHeader',\n components: {\n ElCheckbox,\n },\n props: {\n fixed: {\n type: String,\n default: '',\n },\n store: {\n required: true,\n type: Object as PropType<TableHeaderProps<any>['store']>,\n },\n border: Boolean,\n defaultSort: {\n type: Object as PropType<TableHeaderProps<any>['defaultSort']>,\n default: () => {\n return {\n prop: '',\n order: '',\n }\n },\n },\n appendFilterPanelTo: {\n type: String,\n },\n allowDragLastColumn: {\n type: Boolean,\n },\n },\n setup(props, { emit }) {\n const instance = getCurrentInstance() as TableHeader\n const parent = inject(TABLE_INJECTION_KEY)\n const ns = useNamespace('table')\n const filterPanels = ref({})\n const { onColumnsChange, onScrollableChange } = useLayoutObserver(parent!)\n\n const isTableLayoutAuto = parent?.props.tableLayout === 'auto'\n const saveIndexSelection = reactive(new Map())\n const theadRef = ref()\n\n let delayId: ReturnType<typeof setTimeout> | undefined\n const updateFixedColumnStyle = () => {\n delayId = setTimeout(() => {\n if (saveIndexSelection.size > 0) {\n saveIndexSelection.forEach((column, key) => {\n const el = theadRef.value.querySelector(\n `.${key.replace(/\\s/g, '.')}`\n )\n if (el) {\n const width = el.getBoundingClientRect().width\n column.width = width || column.width\n }\n })\n saveIndexSelection.clear()\n }\n })\n }\n\n watch(saveIndexSelection, updateFixedColumnStyle)\n onBeforeUnmount(() => {\n if (delayId) {\n clearTimeout(delayId)\n delayId = undefined\n }\n })\n\n onMounted(async () => {\n // Need double await, because updateColumns is executed after nextTick for now\n await nextTick()\n await nextTick()\n const { prop, order } = props.defaultSort\n parent?.store.commit('sort', { prop, order, init: true })\n\n updateFixedColumnStyle()\n })\n\n const {\n handleHeaderClick,\n handleHeaderContextMenu,\n handleMouseDown,\n handleMouseMove,\n handleMouseOut,\n handleSortClick,\n handleFilterClick,\n } = useEvent(props as TableHeaderProps<any>, emit)\n const {\n getHeaderRowStyle,\n getHeaderRowClass,\n getHeaderCellStyle,\n getHeaderCellClass,\n } = useStyle(props as TableHeaderProps<any>)\n const { isGroup, toggleAllSelection, columnRows } = useUtils(\n props as TableHeaderProps<any>\n )\n\n const { t } = useLocale()\n\n instance.state = {\n onColumnsChange,\n onScrollableChange,\n }\n instance.filterPanels = filterPanels\n\n return {\n ns,\n t,\n filterPanels,\n onColumnsChange,\n onScrollableChange,\n columnRows,\n getHeaderRowClass,\n getHeaderRowStyle,\n getHeaderCellClass,\n getHeaderCellStyle,\n handleHeaderClick,\n handleHeaderContextMenu,\n handleMouseDown,\n handleMouseMove,\n handleMouseOut,\n handleSortClick,\n handleFilterClick,\n isGroup,\n toggleAllSelection,\n saveIndexSelection,\n isTableLayoutAuto,\n theadRef,\n updateFixedColumnStyle,\n }\n },\n render() {\n const {\n ns,\n t,\n isGroup,\n columnRows,\n getHeaderCellStyle,\n getHeaderCellClass,\n getHeaderRowClass,\n getHeaderRowStyle,\n handleHeaderClick,\n handleHeaderContextMenu,\n handleMouseDown,\n handleMouseMove,\n handleSortClick,\n handleMouseOut,\n store,\n $parent,\n saveIndexSelection,\n isTableLayoutAuto,\n } = this\n let rowSpan = 1\n return h(\n 'thead',\n {\n ref: 'theadRef',\n class: ns.is('group', isGroup),\n },\n columnRows.map((subColumns, rowIndex) =>\n h(\n 'tr',\n {\n class: getHeaderRowClass(rowIndex),\n key: rowIndex,\n style: getHeaderRowStyle(rowIndex),\n },\n subColumns.map((column, cellIndex) => {\n if (column.rowSpan > rowSpan) {\n rowSpan = column.rowSpan\n }\n const _class = getHeaderCellClass(\n rowIndex,\n cellIndex,\n subColumns,\n column\n )\n if (isTableLayoutAuto && column.fixed) {\n saveIndexSelection.set(_class, column)\n }\n return h(\n 'th',\n {\n class: _class,\n colspan: column.colSpan,\n key: `${column.id}-thead`,\n rowspan: column.rowSpan,\n scope: column.colSpan > 1 ? 'colgroup' : 'col',\n ariaSort: column.sortable ? column.order : undefined,\n style: getHeaderCellStyle(\n rowIndex,\n cellIndex,\n subColumns,\n column\n ),\n widget: column.widget\n ? `table-column:header:${column.widget.split(':')[1]}`\n : undefined,\n onClick: ($event: PointerEvent) => {\n if (\n ($event.currentTarget as Element)?.classList.contains(\n 'noclick'\n )\n ) {\n return\n }\n handleHeaderClick($event, column)\n },\n onContextmenu: ($event: PointerEvent) =>\n handleHeaderContextMenu($event, column),\n onMousedown: ($event: MouseEvent) =>\n handleMouseDown($event, column),\n onMousemove: ($event: MouseEvent) =>\n handleMouseMove($event, column),\n onMouseout: handleMouseOut,\n },\n [\n h(\n 'div',\n {\n class: [\n 'cell',\n column.filteredValue && column.filteredValue.length > 0\n ? 'highlight'\n : '',\n ],\n },\n [\n column.renderHeader\n ? column.renderHeader({\n column,\n $index: cellIndex,\n store,\n _self: $parent,\n })\n : column.label,\n column.sortable &&\n h(\n 'button',\n {\n type: 'button',\n class: 'caret-wrapper',\n 'aria-label': t('el.table.sortLabel', {\n column: column.label || '',\n }),\n onClick: ($event: Event) =>\n handleSortClick($event, column),\n },\n [\n h('i', {\n onClick: ($event: Event) =>\n handleSortClick($event, column, 'ascending'),\n class: 'sort-caret ascending',\n }),\n h('i', {\n onClick: ($event: Event) =>\n handleSortClick($event, column, 'descending'),\n class: 'sort-caret descending',\n }),\n ]\n ),\n column.filterable &&\n h(\n FilterPanel as any,\n {\n store,\n placement: column.filterPlacement || 'bottom-start',\n appendTo: ($parent as any)?.appendFilterPanelTo,\n column,\n upDataColumn: (key: never, value: never) => {\n column[key] = value\n },\n },\n {\n 'filter-icon': () =>\n column.renderFilterIcon\n ? column.renderFilterIcon({\n filterOpened: column.filterOpened,\n })\n : null,\n }\n ),\n ]\n ),\n ]\n )\n })\n )\n )\n )\n },\n})\n"],"mappings":";;;;;;;;;;;;;;;AA0CA,IAAA,wBAAA,GAAA,IAAA,gBAAA,CAA+B;CAC7B,MAAM;CACN,YAAY,EACV,YAAA,gBAAA,WACF;CACA,OAAO;EACL,OAAO;GACL,MAAM;GACN,SAAS;EACX;EACA,OAAO;GACL,UAAU;GACV,MAAM;EACR;EACA,QAAQ;EACR,aAAa;GACX,MAAM;GACN,eAAe;IACb,OAAO;KACL,MAAM;KACN,OAAO;IACT;GACF;EACF;EACA,qBAAqB,EACnB,MAAM,OACR;EACA,qBAAqB,EACnB,MAAM,QACR;CACF;CACA,MAAM,OAAO,EAAE,QAAQ;EACrB,MAAM,YAAA,GAAA,IAAA,mBAAA,CAA8B;EACpC,MAAM,UAAA,GAAA,IAAA,OAAA,CAAgBA,eAAAA,mBAAmB;EACzC,MAAM,KAAKC,gBAAAA,aAAa,OAAO;EAC/B,MAAM,gBAAA,GAAA,IAAA,IAAA,CAAmB,CAAC,CAAC;EAC3B,MAAM,EAAE,iBAAiB,uBAAuBC,wBAAAA,QAAkB,MAAO;EAEzE,MAAM,oBAAoB,QAAQ,MAAM,gBAAgB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,EACN,EACF,GACA;IACE,OAAO,eACH,OAAO,aAAa;KAClB;KACA,QAAQ;KACR;KACA,OAAO;IACT,CAAC,IACD,OAAO;IACX,OAAO,aAAA,GAAA,IAAA,EAAA,CAEH,UACA;KACE,MAAM;KACN,OAAO;KACP,cAAc,EAAE,sBAAsB,EACpC,QAAQ,OAAO,SAAS,GAC1B,CAAC;KACD,UAAU,WACR,gBAAgB,QAAQ,MAAM;IAClC,GACA,EAAA,GAAA,IAAA,EAAA,CACI,KAAK;KACL,UAAU,WACR,gBAAgB,QAAQ,QAAQ,WAAW;KAC7C,OAAO;IACT,CAAC,IAAA,GAAA,IAAA,EAAA,CACC,KAAK;KACL,UAAU,WACR,gBAAgB,QAAQ,QAAQ,YAAY;KAC9C,OAAO;IACT,CAAC,CACH,CACF;IACF,OAAO,eAAA,GAAA,IAAA,EAAA,CAEHC,qBAAAA,SACA;KACE;KACA,WAAW,OAAO,mBAAmB;KACrC,UAAW,SAAiB;KAC5B;KACA,eAAe,KAAY,UAAiB;MAC1C,OAAO,OAAO;KAChB;IACF,GACA,EACE,qBACE,OAAO,mBACH,OAAO,iBAAiB,EACtB,cAAc,OAAO,aACvB,CAAC,IACD,KACR,CACF;GACJ,CACF,CACF,CACF;EACF,CAAC,CACH,CACF,CACF;CACF;AACF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"table.js","names":[],"sources":["../../../../../../packages/components/table/src/table.vue"],"sourcesContent":["<template>\n <div\n ref=\"tableWrapper\"\n :class=\"[\n {\n [ns.m('fit')]: fit,\n [ns.m('striped')]: stripe,\n [ns.m('border')]: border || isGroup,\n [ns.m('hidden')]: isHidden,\n [ns.m('group')]: isGroup,\n [ns.m('fluid-height')]: maxHeight,\n [ns.m('scrollable-x')]: layout.scrollX.value,\n [ns.m('scrollable-y')]: layout.scrollY.value,\n [ns.m('enable-row-hover')]: !store.states.isComplex.value || true,\n [ns.m('enable-row-transition')]:\n (store.states.data.value || []).length !== 0 &&\n (store.states.data.value || []).length < 100,\n 'has-footer': showSummary,\n },\n ns.m(tableSize),\n className,\n ns.b(),\n ns.m(`layout-${tableLayout}`),\n ]\"\n :style=\"style\"\n :data-prefix=\"ns.namespace.value\"\n @mouseleave=\"handleMouseLeave\"\n >\n <div ref=\"tableInnerWrapper\" :class=\"ns.e('inner-wrapper')\">\n <div ref=\"hiddenColumns\" class=\"hidden-columns\">\n <slot />\n </div>\n <div\n v-if=\"showHeader && tableLayout === 'fixed'\"\n ref=\"headerWrapper\"\n v-mousewheel=\"handleHeaderFooterMousewheel\"\n :class=\"ns.e('header-wrapper')\"\n >\n <table\n ref=\"tableHeader\"\n :class=\"ns.e('header')\"\n :style=\"tableBodyStyles\"\n border=\"0\"\n cellpadding=\"0\"\n cellspacing=\"0\"\n >\n <hColgroup\n :columns=\"store.states.columns.value\"\n :table-layout=\"tableLayout\"\n />\n <table-header\n ref=\"tableHeaderRef\"\n :border=\"border\"\n :default-sort=\"defaultSort\"\n :store=\"store\"\n :append-filter-panel-to=\"appendFilterPanelTo\"\n :allow-drag-last-column=\"allowDragLastColumn\"\n @set-drag-visible=\"setDragVisible\"\n />\n </table>\n </div>\n <div ref=\"bodyWrapper\" :class=\"ns.e('body-wrapper')\">\n <el-scrollbar\n ref=\"scrollBarRef\"\n :view-style=\"scrollbarViewStyle\"\n :wrap-style=\"scrollbarStyle\"\n :always=\"scrollbarAlwaysOn\"\n :tabindex=\"scrollbarTabindex\"\n :native=\"nativeScrollbar\"\n @scroll=\"onScroll\"\n >\n <table\n ref=\"tableBody\"\n :class=\"ns.e('body')\"\n cellspacing=\"0\"\n cellpadding=\"0\"\n border=\"0\"\n :style=\"{\n width: bodyWidth,\n tableLayout,\n }\"\n >\n <hColgroup\n :columns=\"store.states.columns.value\"\n :table-layout=\"tableLayout\"\n />\n <table-header\n v-if=\"showHeader && tableLayout === 'auto'\"\n ref=\"tableHeaderRef\"\n :class=\"ns.e('body-header')\"\n :border=\"border\"\n :default-sort=\"defaultSort\"\n :store=\"store\"\n :append-filter-panel-to=\"appendFilterPanelTo\"\n @set-drag-visible=\"setDragVisible\"\n />\n <table-body\n :context=\"context\"\n :highlight=\"highlightCurrentRow\"\n :row-class-name=\"rowClassName\"\n :tooltip-effect=\"computedTooltipEffect\"\n :tooltip-options=\"computedTooltipOptions\"\n :row-style=\"rowStyle\"\n :store=\"store\"\n :stripe=\"stripe\"\n />\n <table-footer\n v-if=\"showSummary && tableLayout === 'auto'\"\n :class=\"ns.e('body-footer')\"\n :border=\"border\"\n :default-sort=\"defaultSort\"\n :store=\"store\"\n :sum-text=\"computedSumText\"\n :summary-method=\"summaryMethod\"\n />\n </table>\n <div\n v-if=\"isEmpty\"\n ref=\"emptyBlock\"\n :style=\"emptyBlockStyle\"\n :class=\"ns.e('empty-block')\"\n >\n <span :class=\"ns.e('empty-text')\">\n <slot name=\"empty\">{{ computedEmptyText }}</slot>\n </span>\n </div>\n <div\n v-if=\"$slots.append\"\n ref=\"appendWrapper\"\n :class=\"ns.e('append-wrapper')\"\n >\n <slot name=\"append\" />\n </div>\n </el-scrollbar>\n </div>\n <div\n v-if=\"showSummary && tableLayout === 'fixed'\"\n v-show=\"!isEmpty\"\n ref=\"footerWrapper\"\n v-mousewheel=\"handleHeaderFooterMousewheel\"\n :class=\"ns.e('footer-wrapper')\"\n >\n <table\n :class=\"ns.e('footer')\"\n cellspacing=\"0\"\n cellpadding=\"0\"\n border=\"0\"\n :style=\"tableBodyStyles\"\n >\n <hColgroup\n :columns=\"store.states.columns.value\"\n :table-layout=\"tableLayout\"\n />\n <table-footer\n :border=\"border\"\n :default-sort=\"defaultSort\"\n :store=\"store\"\n :sum-text=\"computedSumText\"\n :summary-method=\"summaryMethod\"\n />\n </table>\n </div>\n <div v-if=\"border || isGroup\" :class=\"ns.e('border-left-patch')\" />\n </div>\n <div\n v-show=\"resizeProxyVisible\"\n ref=\"resizeProxy\"\n :class=\"ns.e('column-resize-proxy')\"\n />\n </div>\n</template>\n\n<script lang=\"ts\" setup generic=\"T extends DefaultRow = DefaultRow\">\nimport { computed, getCurrentInstance, onBeforeUnmount, provide } from 'vue'\nimport { debounce } from 'lodash-unified'\nimport { Mousewheel as vMousewheel } from '@element-plus/directives'\nimport { useLocale, useNamespace } from '@element-plus/hooks'\nimport { useGlobalConfig } from '@element-plus/components/config-provider'\nimport ElScrollbar from '@element-plus/components/scrollbar'\nimport { createStore } from './store/helper'\nimport TableLayout from './table-layout'\nimport TableHeader from './table-header'\nimport TableBody from './table-body'\nimport TableFooter from './table-footer'\nimport { createTableId } from './util'\nimport useUtils from './table/utils-helper'\nimport { convertToRows } from './table-header/utils-helper'\nimport useStyle from './table/style-helper'\nimport useKeyRender from './table/key-render-helper'\nimport { TABLE_INJECTION_KEY } from './tokens'\nimport { hColgroup } from './h-helper'\nimport { useScrollbar } from './composables/use-scrollbar'\n\nimport type {\n DefaultRow,\n Table,\n TableEmits,\n TableProps,\n} from './table/defaults'\n\ndefineOptions({\n name: 'ElTable',\n})\n\nconst props = withDefaults(defineProps<TableProps<T>>(), {\n data: () => [],\n fit: true,\n showHeader: true,\n selectOnIndeterminate: true,\n indent: 16,\n treeProps: () => ({\n hasChildren: 'hasChildren',\n children: 'children',\n checkStrictly: false,\n }),\n style: () => ({}),\n className: '',\n tableLayout: 'fixed',\n showOverflowTooltip: undefined,\n scrollbarTabindex: undefined,\n allowDragLastColumn: true,\n})\n\ndefineEmits<TableEmits<T>>()\n\nconst { t } = useLocale()\nconst ns = useNamespace('table')\nconst globalConfig = useGlobalConfig('table')\nconst table = getCurrentInstance() as Table<T>\nprovide(TABLE_INJECTION_KEY, table)\nconst store = createStore<T>(table, props)\ntable.store = store\nconst layout = new TableLayout<T>({\n store: table.store,\n table,\n fit: props.fit,\n showHeader: props.showHeader,\n})\ntable.layout = layout\n\nconst isEmpty = computed(() => (store.states.data.value || []).length === 0)\n\n/**\n * open functions\n */\nconst {\n setCurrentRow,\n getSelectionRows,\n getHalfSelectionRows,\n toggleRowSelection,\n clearSelection,\n clearFilter,\n toggleAllSelection,\n toggleRowExpansion,\n clearSort,\n sort,\n updateKeyChildren,\n} = useUtils<T>(store)\nconst {\n isHidden,\n renderExpanded,\n setDragVisible,\n isGroup,\n handleMouseLeave,\n handleHeaderFooterMousewheel,\n tableSize,\n emptyBlockStyle,\n resizeProxyVisible,\n bodyWidth,\n resizeState,\n doLayout,\n tableBodyStyles,\n tableLayout,\n scrollbarViewStyle,\n scrollbarStyle,\n} = useStyle<T>(props, layout, store, table)\n\nconst { scrollBarRef, scrollTo, setScrollLeft, setScrollTop } = useScrollbar()\nconst { onScroll } = table.store\nconst debouncedUpdateLayout = debounce(doLayout, 50)\n\nconst tableId = createTableId(ns.namespace.value)\nconst context = table\ntable.tableId = tableId\ntable.state = {\n isGroup,\n resizeState,\n doLayout,\n debouncedUpdateLayout,\n}\nconst computedSumText = computed(() => props.sumText ?? t('el.table.sumText'))\n\nconst computedEmptyText = computed(() => {\n return props.emptyText ?? t('el.table.emptyText')\n})\n\nconst computedTooltipEffect = computed(\n () => props.tooltipEffect ?? globalConfig.value?.tooltipEffect\n)\n\nconst computedTooltipOptions = computed(\n () => props.tooltipOptions ?? globalConfig.value?.tooltipOptions\n)\n\nconst columns = computed(() => {\n return convertToRows(store.states.originColumns.value)[0]\n})\n\nuseKeyRender(table)\n\nonBeforeUnmount(() => {\n debouncedUpdateLayout.cancel()\n})\n\ndefineExpose({\n ns,\n layout,\n store,\n columns,\n handleHeaderFooterMousewheel,\n handleMouseLeave,\n tableId,\n tableSize,\n isHidden,\n isEmpty,\n renderExpanded,\n resizeProxyVisible,\n resizeState,\n isGroup,\n bodyWidth,\n tableBodyStyles,\n emptyBlockStyle,\n debouncedUpdateLayout,\n /**\n * @description used in single selection Table, set a certain row selected. If called without any parameter, it will clear selection\n */\n setCurrentRow,\n /**\n * @description returns the currently selected rows\n */\n getSelectionRows,\n /**\n * @description returns the currently half-selected rows\n */\n getHalfSelectionRows,\n /**\n * @description used in multiple selection Table, toggle if a certain row is selected. With the second parameter, you can directly set if this row is selected\n */\n toggleRowSelection,\n /**\n * @description used in multiple selection Table, clear user selection\n */\n clearSelection,\n /**\n * @description clear filters of the columns whose `columnKey` are passed in. If no params, clear all filters\n */\n clearFilter,\n /**\n * @description used in multiple selection Table, toggle select all and deselect all\n */\n toggleAllSelection,\n /**\n * @description used in expandable Table or tree Table, toggle if a certain row is expanded. With the second parameter, you can directly set if this row is expanded or collapsed\n */\n toggleRowExpansion,\n /**\n * @description clear sorting, restore data to the original order\n */\n clearSort,\n /**\n * @description refresh the layout of Table. When the visibility of Table changes, you may need to call this method to get a correct layout\n */\n doLayout,\n /**\n * @description sort Table manually. Property `prop` is used to set sort column, property `order` is used to set sort order\n */\n sort,\n /**\n * @description used in lazy Table, must set `rowKey`, update key children\n */\n updateKeyChildren,\n t,\n setDragVisible,\n context,\n computedSumText,\n computedEmptyText,\n computedTooltipEffect,\n computedTooltipOptions,\n tableLayout,\n scrollbarViewStyle,\n scrollbarStyle,\n scrollBarRef,\n /**\n * @description scrolls to a particular set of coordinates\n */\n scrollTo,\n /**\n * @description set horizontal scroll position\n */\n setScrollLeft,\n /**\n * @description set vertical scroll position\n */\n setScrollTop,\n /**\n * @description whether to allow drag the last column\n */\n allowDragLastColumn: props.allowDragLastColumn,\n onScroll,\n})\n</script>\n"],"mappings":""}
1
+ {"version":3,"file":"table.js","names":[],"sources":["../../../../../../packages/components/table/src/table.vue"],"sourcesContent":["<template>\n <div\n ref=\"tableWrapper\"\n :class=\"[\n {\n [ns.m('fit')]: fit,\n [ns.m('striped')]: stripe,\n [ns.m('border')]: border || isGroup,\n [ns.m('hidden')]: isHidden,\n [ns.m('group')]: isGroup,\n [ns.m('fluid-height')]: maxHeight,\n [ns.m('scrollable-x')]: layout.scrollX.value,\n [ns.m('scrollable-y')]: layout.scrollY.value,\n [ns.m('enable-row-hover')]: !store.states.isComplex.value || true,\n [ns.m('enable-row-transition')]:\n (store.states.data.value || []).length !== 0 &&\n (store.states.data.value || []).length < 100,\n 'has-footer': showSummary,\n },\n ns.m(tableSize),\n className,\n ns.b(),\n ns.m(`layout-${tableLayout}`),\n ]\"\n :style=\"style\"\n :data-prefix=\"ns.namespace.value\"\n @mouseleave=\"handleMouseLeave\"\n >\n <div ref=\"tableInnerWrapper\" :class=\"ns.e('inner-wrapper')\">\n <div ref=\"hiddenColumns\" class=\"hidden-columns\">\n <slot />\n </div>\n <div\n v-if=\"showHeader && tableLayout === 'fixed'\"\n ref=\"headerWrapper\"\n v-mousewheel=\"handleHeaderFooterMousewheel\"\n :class=\"ns.e('header-wrapper')\"\n >\n <table\n ref=\"tableHeader\"\n :class=\"ns.e('header')\"\n :style=\"tableBodyStyles\"\n border=\"0\"\n cellpadding=\"0\"\n cellspacing=\"0\"\n >\n <hColgroup\n :columns=\"store.states.columns.value\"\n :table-layout=\"tableLayout\"\n />\n <table-header\n ref=\"tableHeaderRef\"\n :border=\"border\"\n :default-sort=\"defaultSort\"\n :store=\"store\"\n :append-filter-panel-to=\"appendFilterPanelTo\"\n :allow-drag-last-column=\"allowDragLastColumn\"\n @set-drag-visible=\"setDragVisible\"\n />\n </table>\n </div>\n <div ref=\"bodyWrapper\" :class=\"ns.e('body-wrapper')\">\n <el-scrollbar\n ref=\"scrollBarRef\"\n :view-style=\"scrollbarViewStyle\"\n :wrap-style=\"scrollbarStyle\"\n :always=\"scrollbarAlwaysOn\"\n :tabindex=\"scrollbarTabindex\"\n :native=\"nativeScrollbar\"\n @scroll=\"$emit('scroll', $event)\"\n >\n <table\n ref=\"tableBody\"\n :class=\"ns.e('body')\"\n cellspacing=\"0\"\n cellpadding=\"0\"\n border=\"0\"\n :style=\"{\n width: bodyWidth,\n tableLayout,\n }\"\n >\n <hColgroup\n :columns=\"store.states.columns.value\"\n :table-layout=\"tableLayout\"\n />\n <table-header\n v-if=\"showHeader && tableLayout === 'auto'\"\n ref=\"tableHeaderRef\"\n :class=\"ns.e('body-header')\"\n :border=\"border\"\n :default-sort=\"defaultSort\"\n :store=\"store\"\n :append-filter-panel-to=\"appendFilterPanelTo\"\n @set-drag-visible=\"setDragVisible\"\n />\n <table-body\n :context=\"context\"\n :highlight=\"highlightCurrentRow\"\n :row-class-name=\"rowClassName\"\n :tooltip-effect=\"computedTooltipEffect\"\n :tooltip-options=\"computedTooltipOptions\"\n :row-style=\"rowStyle\"\n :store=\"store\"\n :stripe=\"stripe\"\n />\n <table-footer\n v-if=\"showSummary && tableLayout === 'auto'\"\n :class=\"ns.e('body-footer')\"\n :border=\"border\"\n :default-sort=\"defaultSort\"\n :store=\"store\"\n :sum-text=\"computedSumText\"\n :summary-method=\"summaryMethod\"\n />\n </table>\n <div\n v-if=\"isEmpty\"\n ref=\"emptyBlock\"\n :style=\"emptyBlockStyle\"\n :class=\"ns.e('empty-block')\"\n >\n <span :class=\"ns.e('empty-text')\">\n <slot name=\"empty\">{{ computedEmptyText }}</slot>\n </span>\n </div>\n <div\n v-if=\"$slots.append\"\n ref=\"appendWrapper\"\n :class=\"ns.e('append-wrapper')\"\n >\n <slot name=\"append\" />\n </div>\n </el-scrollbar>\n </div>\n <div\n v-if=\"showSummary && tableLayout === 'fixed'\"\n v-show=\"!isEmpty\"\n ref=\"footerWrapper\"\n v-mousewheel=\"handleHeaderFooterMousewheel\"\n :class=\"ns.e('footer-wrapper')\"\n >\n <table\n :class=\"ns.e('footer')\"\n cellspacing=\"0\"\n cellpadding=\"0\"\n border=\"0\"\n :style=\"tableBodyStyles\"\n >\n <hColgroup\n :columns=\"store.states.columns.value\"\n :table-layout=\"tableLayout\"\n />\n <table-footer\n :border=\"border\"\n :default-sort=\"defaultSort\"\n :store=\"store\"\n :sum-text=\"computedSumText\"\n :summary-method=\"summaryMethod\"\n />\n </table>\n </div>\n <div v-if=\"border || isGroup\" :class=\"ns.e('border-left-patch')\" />\n </div>\n <div\n v-show=\"resizeProxyVisible\"\n ref=\"resizeProxy\"\n :class=\"ns.e('column-resize-proxy')\"\n />\n </div>\n</template>\n\n<script lang=\"ts\" setup generic=\"T extends DefaultRow = DefaultRow\">\nimport { computed, getCurrentInstance, onBeforeUnmount, provide } from 'vue'\nimport { debounce } from 'lodash-unified'\nimport { Mousewheel as vMousewheel } from '@element-plus/directives'\nimport { useLocale, useNamespace } from '@element-plus/hooks'\nimport { useGlobalConfig } from '@element-plus/components/config-provider'\nimport ElScrollbar from '@element-plus/components/scrollbar'\nimport { createStore } from './store/helper'\nimport TableLayout from './table-layout'\nimport TableHeader from './table-header'\nimport TableBody from './table-body'\nimport TableFooter from './table-footer'\nimport { createTableId } from './util'\nimport useUtils from './table/utils-helper'\nimport { convertToRows } from './table-header/utils-helper'\nimport useStyle from './table/style-helper'\nimport useKeyRender from './table/key-render-helper'\nimport { TABLE_INJECTION_KEY } from './tokens'\nimport { hColgroup } from './h-helper'\nimport { useScrollbar } from './composables/use-scrollbar'\n\nimport type {\n DefaultRow,\n Table,\n TableEmits,\n TableProps,\n} from './table/defaults'\n\ndefineOptions({\n name: 'ElTable',\n})\n\nconst props = withDefaults(defineProps<TableProps<T>>(), {\n data: () => [],\n fit: true,\n showHeader: true,\n selectOnIndeterminate: true,\n indent: 16,\n treeProps: () => ({\n hasChildren: 'hasChildren',\n children: 'children',\n checkStrictly: false,\n }),\n style: () => ({}),\n className: '',\n tableLayout: 'fixed',\n showOverflowTooltip: undefined,\n scrollbarTabindex: undefined,\n allowDragLastColumn: true,\n})\n\ndefineEmits<TableEmits<T>>()\n\nconst { t } = useLocale()\nconst ns = useNamespace('table')\nconst globalConfig = useGlobalConfig('table')\nconst table = getCurrentInstance() as Table<T>\nprovide(TABLE_INJECTION_KEY, table)\nconst store = createStore<T>(table, props)\ntable.store = store\nconst layout = new TableLayout<T>({\n store: table.store,\n table,\n fit: props.fit,\n showHeader: props.showHeader,\n})\ntable.layout = layout\n\nconst isEmpty = computed(() => (store.states.data.value || []).length === 0)\n\n/**\n * open functions\n */\nconst {\n setCurrentRow,\n getSelectionRows,\n getHalfSelectionRows,\n toggleRowSelection,\n clearSelection,\n clearFilter,\n toggleAllSelection,\n toggleRowExpansion,\n clearSort,\n sort,\n updateKeyChildren,\n} = useUtils<T>(store)\nconst {\n isHidden,\n renderExpanded,\n setDragVisible,\n isGroup,\n handleMouseLeave,\n handleHeaderFooterMousewheel,\n tableSize,\n emptyBlockStyle,\n resizeProxyVisible,\n bodyWidth,\n resizeState,\n doLayout,\n tableBodyStyles,\n tableLayout,\n scrollbarViewStyle,\n scrollbarStyle,\n} = useStyle<T>(props, layout, store, table)\n\nconst { scrollBarRef, scrollTo, setScrollLeft, setScrollTop } = useScrollbar()\nconst { onScroll } = table.store\nconst debouncedUpdateLayout = debounce(doLayout, 50)\n\nconst tableId = createTableId(ns.namespace.value)\nconst context = table\ntable.tableId = tableId\ntable.state = {\n isGroup,\n resizeState,\n doLayout,\n debouncedUpdateLayout,\n}\nconst computedSumText = computed(() => props.sumText ?? t('el.table.sumText'))\n\nconst computedEmptyText = computed(() => {\n return props.emptyText ?? t('el.table.emptyText')\n})\n\nconst computedTooltipEffect = computed(\n () => props.tooltipEffect ?? globalConfig.value?.tooltipEffect\n)\n\nconst computedTooltipOptions = computed(\n () => props.tooltipOptions ?? globalConfig.value?.tooltipOptions\n)\n\nconst columns = computed(() => {\n return convertToRows(store.states.originColumns.value)[0]\n})\n\nuseKeyRender(table)\n\nonBeforeUnmount(() => {\n debouncedUpdateLayout.cancel()\n})\n\ndefineExpose({\n ns,\n layout,\n store,\n columns,\n handleHeaderFooterMousewheel,\n handleMouseLeave,\n tableId,\n tableSize,\n isHidden,\n isEmpty,\n renderExpanded,\n resizeProxyVisible,\n resizeState,\n isGroup,\n bodyWidth,\n tableBodyStyles,\n emptyBlockStyle,\n debouncedUpdateLayout,\n /**\n * @description used in single selection Table, set a certain row selected. If called without any parameter, it will clear selection\n */\n setCurrentRow,\n /**\n * @description returns the currently selected rows\n */\n getSelectionRows,\n /**\n * @description returns the currently half-selected rows\n */\n getHalfSelectionRows,\n /**\n * @description used in multiple selection Table, toggle if a certain row is selected. With the second parameter, you can directly set if this row is selected\n */\n toggleRowSelection,\n /**\n * @description used in multiple selection Table, clear user selection\n */\n clearSelection,\n /**\n * @description clear filters of the columns whose `columnKey` are passed in. If no params, clear all filters\n */\n clearFilter,\n /**\n * @description used in multiple selection Table, toggle select all and deselect all\n */\n toggleAllSelection,\n /**\n * @description used in expandable Table or tree Table, toggle if a certain row is expanded. With the second parameter, you can directly set if this row is expanded or collapsed\n */\n toggleRowExpansion,\n /**\n * @description clear sorting, restore data to the original order\n */\n clearSort,\n /**\n * @description refresh the layout of Table. When the visibility of Table changes, you may need to call this method to get a correct layout\n */\n doLayout,\n /**\n * @description sort Table manually. Property `prop` is used to set sort column, property `order` is used to set sort order\n */\n sort,\n /**\n * @description used in lazy Table, must set `rowKey`, update key children\n */\n updateKeyChildren,\n t,\n setDragVisible,\n context,\n computedSumText,\n computedEmptyText,\n computedTooltipEffect,\n computedTooltipOptions,\n tableLayout,\n scrollbarViewStyle,\n scrollbarStyle,\n scrollBarRef,\n /**\n * @description scrolls to a particular set of coordinates\n */\n scrollTo,\n /**\n * @description set horizontal scroll position\n */\n setScrollLeft,\n /**\n * @description set vertical scroll position\n */\n setScrollTop,\n /**\n * @description whether to allow drag the last column\n */\n allowDragLastColumn: props.allowDragLastColumn,\n})\n</script>\n"],"mappings":""}
@@ -12,10 +12,10 @@ declare const __VLS_export: <T extends DefaultRow = DefaultRow>(__VLS_props: Non
12
12
  scrollLeft: number;
13
13
  scrollTop: number;
14
14
  }) => any) | undefined;
15
- onSelect?: ((selection: T[], row: T) => any) | undefined;
16
15
  "onSelect-all"?: ((selection: T[]) => any) | undefined;
17
- "onExpand-change"?: ((row: T, expanded: boolean) => any) | undefined;
16
+ onSelect?: ((selection: T[], row: T) => any) | undefined;
18
17
  "onCurrent-change"?: ((currentRow: T | null, oldCurrentRow: T | null) => any) | undefined;
18
+ "onExpand-change"?: ((row: T, expanded: boolean) => any) | undefined;
19
19
  "onSelection-change"?: ((newSelection: T[]) => any) | undefined;
20
20
  "onCell-mouse-enter"?: ((row: T, column: TableColumnCtx<T>, cell: HTMLTableCellElement, event: MouseEvent) => any) | undefined;
21
21
  "onCell-mouse-leave"?: ((row: T, column: TableColumnCtx<T>, cell: HTMLTableCellElement, event: MouseEvent) => any) | undefined;
@@ -102,7 +102,6 @@ declare const __VLS_export: <T extends DefaultRow = DefaultRow>(__VLS_props: Non
102
102
  sortProp: import("vue").Ref<string | null, string | null>;
103
103
  sortOrder: import("vue").Ref<TableSortOrder | null, TableSortOrder | null>;
104
104
  hoverRow: import("vue").Ref<T | null, T | null>;
105
- renderRange: import("vue").Ref<number[], number[]>;
106
105
  }, data: T[]): void;
107
106
  insertColumn(states: {
108
107
  _currentRowKey: import("vue").Ref<string | null, string | null>;
@@ -147,7 +146,6 @@ declare const __VLS_export: <T extends DefaultRow = DefaultRow>(__VLS_props: Non
147
146
  sortProp: import("vue").Ref<string | null, string | null>;
148
147
  sortOrder: import("vue").Ref<TableSortOrder | null, TableSortOrder | null>;
149
148
  hoverRow: import("vue").Ref<T | null, T | null>;
150
- renderRange: import("vue").Ref<number[], number[]>;
151
149
  }, column: TableColumnCtx<T>, parent: TableColumnCtx<T>, updateColumnOrder: () => void): void;
152
150
  updateColumnOrder(states: {
153
151
  _currentRowKey: import("vue").Ref<string | null, string | null>;
@@ -192,7 +190,6 @@ declare const __VLS_export: <T extends DefaultRow = DefaultRow>(__VLS_props: Non
192
190
  sortProp: import("vue").Ref<string | null, string | null>;
193
191
  sortOrder: import("vue").Ref<TableSortOrder | null, TableSortOrder | null>;
194
192
  hoverRow: import("vue").Ref<T | null, T | null>;
195
- renderRange: import("vue").Ref<number[], number[]>;
196
193
  }, column: TableColumnCtx<T>): void;
197
194
  removeColumn(states: {
198
195
  _currentRowKey: import("vue").Ref<string | null, string | null>;
@@ -237,7 +234,6 @@ declare const __VLS_export: <T extends DefaultRow = DefaultRow>(__VLS_props: Non
237
234
  sortProp: import("vue").Ref<string | null, string | null>;
238
235
  sortOrder: import("vue").Ref<TableSortOrder | null, TableSortOrder | null>;
239
236
  hoverRow: import("vue").Ref<T | null, T | null>;
240
- renderRange: import("vue").Ref<number[], number[]>;
241
237
  }, column: TableColumnCtx<T>, parent: TableColumnCtx<T>, updateColumnOrder: () => void): void;
242
238
  sort(states: {
243
239
  _currentRowKey: import("vue").Ref<string | null, string | null>;
@@ -282,7 +278,6 @@ declare const __VLS_export: <T extends DefaultRow = DefaultRow>(__VLS_props: Non
282
278
  sortProp: import("vue").Ref<string | null, string | null>;
283
279
  sortOrder: import("vue").Ref<TableSortOrder | null, TableSortOrder | null>;
284
280
  hoverRow: import("vue").Ref<T | null, T | null>;
285
- renderRange: import("vue").Ref<number[], number[]>;
286
281
  }, options: Sort): void;
287
282
  changeSortCondition(states: {
288
283
  _currentRowKey: import("vue").Ref<string | null, string | null>;
@@ -327,7 +322,6 @@ declare const __VLS_export: <T extends DefaultRow = DefaultRow>(__VLS_props: Non
327
322
  sortProp: import("vue").Ref<string | null, string | null>;
328
323
  sortOrder: import("vue").Ref<TableSortOrder | null, TableSortOrder | null>;
329
324
  hoverRow: import("vue").Ref<T | null, T | null>;
330
- renderRange: import("vue").Ref<number[], number[]>;
331
325
  }, options: Sort): void;
332
326
  filterChange(_states: {
333
327
  _currentRowKey: import("vue").Ref<string | null, string | null>;
@@ -372,7 +366,6 @@ declare const __VLS_export: <T extends DefaultRow = DefaultRow>(__VLS_props: Non
372
366
  sortProp: import("vue").Ref<string | null, string | null>;
373
367
  sortOrder: import("vue").Ref<TableSortOrder | null, TableSortOrder | null>;
374
368
  hoverRow: import("vue").Ref<T | null, T | null>;
375
- renderRange: import("vue").Ref<number[], number[]>;
376
369
  }, options: Filter<T>): void;
377
370
  toggleAllSelection(): void;
378
371
  rowSelectedChanged(_states: {
@@ -418,7 +411,6 @@ declare const __VLS_export: <T extends DefaultRow = DefaultRow>(__VLS_props: Non
418
411
  sortProp: import("vue").Ref<string | null, string | null>;
419
412
  sortOrder: import("vue").Ref<TableSortOrder | null, TableSortOrder | null>;
420
413
  hoverRow: import("vue").Ref<T | null, T | null>;
421
- renderRange: import("vue").Ref<number[], number[]>;
422
414
  }, row: T): void;
423
415
  setHoverRow(states: {
424
416
  _currentRowKey: import("vue").Ref<string | null, string | null>;
@@ -463,7 +455,6 @@ declare const __VLS_export: <T extends DefaultRow = DefaultRow>(__VLS_props: Non
463
455
  sortProp: import("vue").Ref<string | null, string | null>;
464
456
  sortOrder: import("vue").Ref<TableSortOrder | null, TableSortOrder | null>;
465
457
  hoverRow: import("vue").Ref<T | null, T | null>;
466
- renderRange: import("vue").Ref<number[], number[]>;
467
458
  }, row: T): void;
468
459
  setCurrentRow(_states: {
469
460
  _currentRowKey: import("vue").Ref<string | null, string | null>;
@@ -508,7 +499,6 @@ declare const __VLS_export: <T extends DefaultRow = DefaultRow>(__VLS_props: Non
508
499
  sortProp: import("vue").Ref<string | null, string | null>;
509
500
  sortOrder: import("vue").Ref<TableSortOrder | null, TableSortOrder | null>;
510
501
  hoverRow: import("vue").Ref<T | null, T | null>;
511
- renderRange: import("vue").Ref<number[], number[]>;
512
502
  }, row: T): void;
513
503
  };
514
504
  commit: (name: "sort" | "setData" | "insertColumn" | "updateColumnOrder" | "removeColumn" | "changeSortCondition" | "filterChange" | "toggleAllSelection" | "rowSelectedChanged" | "setHoverRow" | "setCurrentRow", ...args: any[]) => void;
@@ -550,7 +540,6 @@ declare const __VLS_export: <T extends DefaultRow = DefaultRow>(__VLS_props: Non
550
540
  loadOrToggle: (row: T) => void;
551
541
  updateTreeData: (ifChangeExpandRowKeys?: boolean, ifExpandAll?: boolean) => void;
552
542
  updateKeyChildren: (key: string, data: T[]) => void;
553
- onScroll: (evt?: any) => void;
554
543
  states: {
555
544
  _currentRowKey: import("vue").Ref<string | null, string | null>;
556
545
  currentRow: import("vue").Ref<T | null, T | null>;
@@ -594,7 +583,6 @@ declare const __VLS_export: <T extends DefaultRow = DefaultRow>(__VLS_props: Non
594
583
  sortProp: import("vue").Ref<string | null, string | null>;
595
584
  sortOrder: import("vue").Ref<TableSortOrder | null, TableSortOrder | null>;
596
585
  hoverRow: import("vue").Ref<T | null, T | null>;
597
- renderRange: import("vue").Ref<number[], number[]>;
598
586
  };
599
587
  ns: {
600
588
  namespace: import("vue").ComputedRef<string>;
@@ -702,8 +690,8 @@ declare const __VLS_export: <T extends DefaultRow = DefaultRow>(__VLS_props: Non
702
690
  computedSumText: import("vue").ComputedRef<string>;
703
691
  computedEmptyText: import("vue").ComputedRef<string>;
704
692
  computedTooltipEffect: import("vue").ComputedRef<string | undefined>;
705
- computedTooltipOptions: import("vue").ComputedRef<Partial<Omit<UseTooltipProps, "visible" | "content" | "referenceEl" | "triggerTargetEl" | "virtualTriggering" | "rawContent" | "persistent" | "autoClose" | "virtualRef">> | undefined>;
706
- tableLayout: import("vue").ComputedRef<"fixed" | "auto">;
693
+ computedTooltipOptions: import("vue").ComputedRef<Partial<Omit<UseTooltipProps, "persistent" | "visible" | "referenceEl" | "triggerTargetEl" | "virtualTriggering" | "content" | "autoClose" | "rawContent" | "virtualRef">> | undefined>;
694
+ tableLayout: import("vue").ComputedRef<"auto" | "fixed">;
707
695
  scrollbarViewStyle: {
708
696
  display: string;
709
697
  verticalAlign: string;
@@ -735,7 +723,6 @@ declare const __VLS_export: <T extends DefaultRow = DefaultRow>(__VLS_props: Non
735
723
  * @description whether to allow drag the last column
736
724
  */
737
725
  allowDragLastColumn: boolean;
738
- onScroll: (evt?: any) => void;
739
726
  }>) => void;
740
727
  attrs: any;
741
728
  slots: {
@@ -1,9 +1,9 @@
1
- const require_index = require("../../../directives/mousewheel/index.js");
2
- const require_index$1 = require("../../../hooks/use-locale/index.js");
3
- const require_index$2 = require("../../../hooks/use-namespace/index.js");
1
+ const require_index = require("../../../hooks/use-locale/index.js");
2
+ const require_index$1 = require("../../../hooks/use-namespace/index.js");
4
3
  const require_use_global_config = require("../../config-provider/src/hooks/use-global-config.js");
5
4
  const require_tokens = require("./tokens.js");
6
- const require_index$3 = require("../../scrollbar/index.js");
5
+ const require_index$2 = require("../../scrollbar/index.js");
6
+ const require_index$3 = require("../../../directives/mousewheel/index.js");
7
7
  const require_defaults = require("./table/defaults.js");
8
8
  const require_util = require("./util.js");
9
9
  const require_helper = require("./store/helper.js");
@@ -52,8 +52,8 @@ var table_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ (0, vue.de
52
52
  ],
53
53
  setup(__props, { expose: __expose }) {
54
54
  const props = __props;
55
- const { t } = require_index$1.useLocale();
56
- const ns = require_index$2.useNamespace("table");
55
+ const { t } = require_index.useLocale();
56
+ const ns = require_index$1.useNamespace("table");
57
57
  const globalConfig = require_use_global_config.useGlobalConfig("table");
58
58
  const table = (0, vue.getCurrentInstance)();
59
59
  (0, vue.provide)(require_tokens.TABLE_INJECTION_KEY, table);
@@ -190,8 +190,7 @@ var table_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ (0, vue.de
190
190
  /**
191
191
  * @description whether to allow drag the last column
192
192
  */
193
- allowDragLastColumn: props.allowDragLastColumn,
194
- onScroll
193
+ allowDragLastColumn: props.allowDragLastColumn
195
194
  });
196
195
  return (_ctx, _cache) => {
197
196
  return (0, vue.openBlock)(), (0, vue.createElementBlock)("div", {
@@ -217,7 +216,7 @@ var table_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ (0, vue.de
217
216
  ]),
218
217
  style: (0, vue.normalizeStyle)(__props.style),
219
218
  "data-prefix": (0, vue.unref)(ns).namespace.value,
220
- onMouseleave: _cache[0] || (_cache[0] = (...args) => (0, vue.unref)(handleMouseLeave) && (0, vue.unref)(handleMouseLeave)(...args))
219
+ onMouseleave: _cache[1] || (_cache[1] = (...args) => (0, vue.unref)(handleMouseLeave) && (0, vue.unref)(handleMouseLeave)(...args))
221
220
  }, [(0, vue.createElementVNode)("div", {
222
221
  ref: "tableInnerWrapper",
223
222
  class: (0, vue.normalizeClass)((0, vue.unref)(ns).e("inner-wrapper"))
@@ -252,11 +251,11 @@ var table_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ (0, vue.de
252
251
  "append-filter-panel-to",
253
252
  "allow-drag-last-column",
254
253
  "onSetDragVisible"
255
- ])], 6)], 2)), [[(0, vue.unref)(require_index.default), (0, vue.unref)(handleHeaderFooterMousewheel)]]) : (0, vue.createCommentVNode)("v-if", true),
254
+ ])], 6)], 2)), [[(0, vue.unref)(require_index$3.default), (0, vue.unref)(handleHeaderFooterMousewheel)]]) : (0, vue.createCommentVNode)("v-if", true),
256
255
  (0, vue.createElementVNode)("div", {
257
256
  ref: "bodyWrapper",
258
257
  class: (0, vue.normalizeClass)((0, vue.unref)(ns).e("body-wrapper"))
259
- }, [(0, vue.createVNode)((0, vue.unref)(require_index$3.ElScrollbar), {
258
+ }, [(0, vue.createVNode)((0, vue.unref)(require_index$2.ElScrollbar), {
260
259
  ref_key: "scrollBarRef",
261
260
  ref: scrollBarRef,
262
261
  "view-style": (0, vue.unref)(scrollbarViewStyle),
@@ -264,7 +263,7 @@ var table_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ (0, vue.de
264
263
  always: __props.scrollbarAlwaysOn,
265
264
  tabindex: __props.scrollbarTabindex,
266
265
  native: __props.nativeScrollbar,
267
- onScroll: (0, vue.unref)(onScroll)
266
+ onScroll: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("scroll", $event))
268
267
  }, {
269
268
  default: (0, vue.withCtx)(() => [
270
269
  (0, vue.createElementVNode)("table", {
@@ -353,8 +352,7 @@ var table_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ (0, vue.de
353
352
  "wrap-style",
354
353
  "always",
355
354
  "tabindex",
356
- "native",
357
- "onScroll"
355
+ "native"
358
356
  ])], 2),
359
357
  __props.showSummary && (0, vue.unref)(tableLayout) === "fixed" ? (0, vue.withDirectives)(((0, vue.openBlock)(), (0, vue.createElementBlock)("div", {
360
358
  key: 1,
@@ -381,7 +379,7 @@ var table_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ (0, vue.de
381
379
  "store",
382
380
  "sum-text",
383
381
  "summary-method"
384
- ])], 6)], 2)), [[vue.vShow, !isEmpty.value], [(0, vue.unref)(require_index.default), (0, vue.unref)(handleHeaderFooterMousewheel)]]) : (0, vue.createCommentVNode)("v-if", true),
382
+ ])], 6)], 2)), [[vue.vShow, !isEmpty.value], [(0, vue.unref)(require_index$3.default), (0, vue.unref)(handleHeaderFooterMousewheel)]]) : (0, vue.createCommentVNode)("v-if", true),
385
383
  __props.border || (0, vue.unref)(isGroup) ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("div", {
386
384
  key: 2,
387
385
  class: (0, vue.normalizeClass)((0, vue.unref)(ns).e("border-left-patch"))
@@ -1 +1 @@
1
- {"version":3,"file":"table.vue_vue_type_script_setup_true_lang.js","names":["$slots"],"sources":["../../../../../../packages/components/table/src/table.vue"],"sourcesContent":["<template>\n <div\n ref=\"tableWrapper\"\n :class=\"[\n {\n [ns.m('fit')]: fit,\n [ns.m('striped')]: stripe,\n [ns.m('border')]: border || isGroup,\n [ns.m('hidden')]: isHidden,\n [ns.m('group')]: isGroup,\n [ns.m('fluid-height')]: maxHeight,\n [ns.m('scrollable-x')]: layout.scrollX.value,\n [ns.m('scrollable-y')]: layout.scrollY.value,\n [ns.m('enable-row-hover')]: !store.states.isComplex.value || true,\n [ns.m('enable-row-transition')]:\n (store.states.data.value || []).length !== 0 &&\n (store.states.data.value || []).length < 100,\n 'has-footer': showSummary,\n },\n ns.m(tableSize),\n className,\n ns.b(),\n ns.m(`layout-${tableLayout}`),\n ]\"\n :style=\"style\"\n :data-prefix=\"ns.namespace.value\"\n @mouseleave=\"handleMouseLeave\"\n >\n <div ref=\"tableInnerWrapper\" :class=\"ns.e('inner-wrapper')\">\n <div ref=\"hiddenColumns\" class=\"hidden-columns\">\n <slot />\n </div>\n <div\n v-if=\"showHeader && tableLayout === 'fixed'\"\n ref=\"headerWrapper\"\n v-mousewheel=\"handleHeaderFooterMousewheel\"\n :class=\"ns.e('header-wrapper')\"\n >\n <table\n ref=\"tableHeader\"\n :class=\"ns.e('header')\"\n :style=\"tableBodyStyles\"\n border=\"0\"\n cellpadding=\"0\"\n cellspacing=\"0\"\n >\n <hColgroup\n :columns=\"store.states.columns.value\"\n :table-layout=\"tableLayout\"\n />\n <table-header\n ref=\"tableHeaderRef\"\n :border=\"border\"\n :default-sort=\"defaultSort\"\n :store=\"store\"\n :append-filter-panel-to=\"appendFilterPanelTo\"\n :allow-drag-last-column=\"allowDragLastColumn\"\n @set-drag-visible=\"setDragVisible\"\n />\n </table>\n </div>\n <div ref=\"bodyWrapper\" :class=\"ns.e('body-wrapper')\">\n <el-scrollbar\n ref=\"scrollBarRef\"\n :view-style=\"scrollbarViewStyle\"\n :wrap-style=\"scrollbarStyle\"\n :always=\"scrollbarAlwaysOn\"\n :tabindex=\"scrollbarTabindex\"\n :native=\"nativeScrollbar\"\n @scroll=\"onScroll\"\n >\n <table\n ref=\"tableBody\"\n :class=\"ns.e('body')\"\n cellspacing=\"0\"\n cellpadding=\"0\"\n border=\"0\"\n :style=\"{\n width: bodyWidth,\n tableLayout,\n }\"\n >\n <hColgroup\n :columns=\"store.states.columns.value\"\n :table-layout=\"tableLayout\"\n />\n <table-header\n v-if=\"showHeader && tableLayout === 'auto'\"\n ref=\"tableHeaderRef\"\n :class=\"ns.e('body-header')\"\n :border=\"border\"\n :default-sort=\"defaultSort\"\n :store=\"store\"\n :append-filter-panel-to=\"appendFilterPanelTo\"\n @set-drag-visible=\"setDragVisible\"\n />\n <table-body\n :context=\"context\"\n :highlight=\"highlightCurrentRow\"\n :row-class-name=\"rowClassName\"\n :tooltip-effect=\"computedTooltipEffect\"\n :tooltip-options=\"computedTooltipOptions\"\n :row-style=\"rowStyle\"\n :store=\"store\"\n :stripe=\"stripe\"\n />\n <table-footer\n v-if=\"showSummary && tableLayout === 'auto'\"\n :class=\"ns.e('body-footer')\"\n :border=\"border\"\n :default-sort=\"defaultSort\"\n :store=\"store\"\n :sum-text=\"computedSumText\"\n :summary-method=\"summaryMethod\"\n />\n </table>\n <div\n v-if=\"isEmpty\"\n ref=\"emptyBlock\"\n :style=\"emptyBlockStyle\"\n :class=\"ns.e('empty-block')\"\n >\n <span :class=\"ns.e('empty-text')\">\n <slot name=\"empty\">{{ computedEmptyText }}</slot>\n </span>\n </div>\n <div\n v-if=\"$slots.append\"\n ref=\"appendWrapper\"\n :class=\"ns.e('append-wrapper')\"\n >\n <slot name=\"append\" />\n </div>\n </el-scrollbar>\n </div>\n <div\n v-if=\"showSummary && tableLayout === 'fixed'\"\n v-show=\"!isEmpty\"\n ref=\"footerWrapper\"\n v-mousewheel=\"handleHeaderFooterMousewheel\"\n :class=\"ns.e('footer-wrapper')\"\n >\n <table\n :class=\"ns.e('footer')\"\n cellspacing=\"0\"\n cellpadding=\"0\"\n border=\"0\"\n :style=\"tableBodyStyles\"\n >\n <hColgroup\n :columns=\"store.states.columns.value\"\n :table-layout=\"tableLayout\"\n />\n <table-footer\n :border=\"border\"\n :default-sort=\"defaultSort\"\n :store=\"store\"\n :sum-text=\"computedSumText\"\n :summary-method=\"summaryMethod\"\n />\n </table>\n </div>\n <div v-if=\"border || isGroup\" :class=\"ns.e('border-left-patch')\" />\n </div>\n <div\n v-show=\"resizeProxyVisible\"\n ref=\"resizeProxy\"\n :class=\"ns.e('column-resize-proxy')\"\n />\n </div>\n</template>\n\n<script lang=\"ts\" setup generic=\"T extends DefaultRow = DefaultRow\">\nimport { computed, getCurrentInstance, onBeforeUnmount, provide } from 'vue'\nimport { debounce } from 'lodash-unified'\nimport { Mousewheel as vMousewheel } from '@element-plus/directives'\nimport { useLocale, useNamespace } from '@element-plus/hooks'\nimport { useGlobalConfig } from '@element-plus/components/config-provider'\nimport ElScrollbar from '@element-plus/components/scrollbar'\nimport { createStore } from './store/helper'\nimport TableLayout from './table-layout'\nimport TableHeader from './table-header'\nimport TableBody from './table-body'\nimport TableFooter from './table-footer'\nimport { createTableId } from './util'\nimport useUtils from './table/utils-helper'\nimport { convertToRows } from './table-header/utils-helper'\nimport useStyle from './table/style-helper'\nimport useKeyRender from './table/key-render-helper'\nimport { TABLE_INJECTION_KEY } from './tokens'\nimport { hColgroup } from './h-helper'\nimport { useScrollbar } from './composables/use-scrollbar'\n\nimport type {\n DefaultRow,\n Table,\n TableEmits,\n TableProps,\n} from './table/defaults'\n\ndefineOptions({\n name: 'ElTable',\n})\n\nconst props = withDefaults(defineProps<TableProps<T>>(), {\n data: () => [],\n fit: true,\n showHeader: true,\n selectOnIndeterminate: true,\n indent: 16,\n treeProps: () => ({\n hasChildren: 'hasChildren',\n children: 'children',\n checkStrictly: false,\n }),\n style: () => ({}),\n className: '',\n tableLayout: 'fixed',\n showOverflowTooltip: undefined,\n scrollbarTabindex: undefined,\n allowDragLastColumn: true,\n})\n\ndefineEmits<TableEmits<T>>()\n\nconst { t } = useLocale()\nconst ns = useNamespace('table')\nconst globalConfig = useGlobalConfig('table')\nconst table = getCurrentInstance() as Table<T>\nprovide(TABLE_INJECTION_KEY, table)\nconst store = createStore<T>(table, props)\ntable.store = store\nconst layout = new TableLayout<T>({\n store: table.store,\n table,\n fit: props.fit,\n showHeader: props.showHeader,\n})\ntable.layout = layout\n\nconst isEmpty = computed(() => (store.states.data.value || []).length === 0)\n\n/**\n * open functions\n */\nconst {\n setCurrentRow,\n getSelectionRows,\n getHalfSelectionRows,\n toggleRowSelection,\n clearSelection,\n clearFilter,\n toggleAllSelection,\n toggleRowExpansion,\n clearSort,\n sort,\n updateKeyChildren,\n} = useUtils<T>(store)\nconst {\n isHidden,\n renderExpanded,\n setDragVisible,\n isGroup,\n handleMouseLeave,\n handleHeaderFooterMousewheel,\n tableSize,\n emptyBlockStyle,\n resizeProxyVisible,\n bodyWidth,\n resizeState,\n doLayout,\n tableBodyStyles,\n tableLayout,\n scrollbarViewStyle,\n scrollbarStyle,\n} = useStyle<T>(props, layout, store, table)\n\nconst { scrollBarRef, scrollTo, setScrollLeft, setScrollTop } = useScrollbar()\nconst { onScroll } = table.store\nconst debouncedUpdateLayout = debounce(doLayout, 50)\n\nconst tableId = createTableId(ns.namespace.value)\nconst context = table\ntable.tableId = tableId\ntable.state = {\n isGroup,\n resizeState,\n doLayout,\n debouncedUpdateLayout,\n}\nconst computedSumText = computed(() => props.sumText ?? t('el.table.sumText'))\n\nconst computedEmptyText = computed(() => {\n return props.emptyText ?? t('el.table.emptyText')\n})\n\nconst computedTooltipEffect = computed(\n () => props.tooltipEffect ?? globalConfig.value?.tooltipEffect\n)\n\nconst computedTooltipOptions = computed(\n () => props.tooltipOptions ?? globalConfig.value?.tooltipOptions\n)\n\nconst columns = computed(() => {\n return convertToRows(store.states.originColumns.value)[0]\n})\n\nuseKeyRender(table)\n\nonBeforeUnmount(() => {\n debouncedUpdateLayout.cancel()\n})\n\ndefineExpose({\n ns,\n layout,\n store,\n columns,\n handleHeaderFooterMousewheel,\n handleMouseLeave,\n tableId,\n tableSize,\n isHidden,\n isEmpty,\n renderExpanded,\n resizeProxyVisible,\n resizeState,\n isGroup,\n bodyWidth,\n tableBodyStyles,\n emptyBlockStyle,\n debouncedUpdateLayout,\n /**\n * @description used in single selection Table, set a certain row selected. If called without any parameter, it will clear selection\n */\n setCurrentRow,\n /**\n * @description returns the currently selected rows\n */\n getSelectionRows,\n /**\n * @description returns the currently half-selected rows\n */\n getHalfSelectionRows,\n /**\n * @description used in multiple selection Table, toggle if a certain row is selected. With the second parameter, you can directly set if this row is selected\n */\n toggleRowSelection,\n /**\n * @description used in multiple selection Table, clear user selection\n */\n clearSelection,\n /**\n * @description clear filters of the columns whose `columnKey` are passed in. If no params, clear all filters\n */\n clearFilter,\n /**\n * @description used in multiple selection Table, toggle select all and deselect all\n */\n toggleAllSelection,\n /**\n * @description used in expandable Table or tree Table, toggle if a certain row is expanded. With the second parameter, you can directly set if this row is expanded or collapsed\n */\n toggleRowExpansion,\n /**\n * @description clear sorting, restore data to the original order\n */\n clearSort,\n /**\n * @description refresh the layout of Table. When the visibility of Table changes, you may need to call this method to get a correct layout\n */\n doLayout,\n /**\n * @description sort Table manually. Property `prop` is used to set sort column, property `order` is used to set sort order\n */\n sort,\n /**\n * @description used in lazy Table, must set `rowKey`, update key children\n */\n updateKeyChildren,\n t,\n setDragVisible,\n context,\n computedSumText,\n computedEmptyText,\n computedTooltipEffect,\n computedTooltipOptions,\n tableLayout,\n scrollbarViewStyle,\n scrollbarStyle,\n scrollBarRef,\n /**\n * @description scrolls to a particular set of coordinates\n */\n scrollTo,\n /**\n * @description set horizontal scroll position\n */\n setScrollLeft,\n /**\n * @description set vertical scroll position\n */\n setScrollTop,\n /**\n * @description whether to allow drag the last column\n */\n allowDragLastColumn: props.allowDragLastColumn,\n onScroll,\n})\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4MA,MAAM,QAAQ;EAqBd,MAAM,EAAE,MAAM,gBAAA,UAAU;EACxB,MAAM,KAAK,gBAAA,aAAa,OAAO;EAC/B,MAAM,eAAe,0BAAA,gBAAgB,OAAO;EAC5C,MAAM,SAAA,GAAA,IAAA,mBAAA,CAA2B;EACjC,CAAA,GAAA,IAAA,QAAA,CAAQ,eAAA,qBAAqB,KAAK;EAClC,MAAM,QAAQ,eAAA,YAAe,OAAO,KAAK;EACzC,MAAM,QAAQ;EACd,MAAM,SAAS,IAAI,qBAAA,QAAe;GAChC,OAAO,MAAM;GACb;GACA,KAAK,MAAM;GACX,YAAY,MAAM;EACpB,CAAC;EACD,MAAM,SAAS;EAEf,MAAM,WAAA,GAAA,IAAA,SAAA,QAA0B,MAAM,OAAO,KAAK,SAAS,CAAC,EAAA,CAAG,WAAW,CAAC;;;;EAK3E,MAAM,EACJ,eACA,kBACA,sBACA,oBACA,gBACA,aACA,oBACA,oBACA,WACA,MACA,sBACE,uBAAA,QAAY,KAAK;EACrB,MAAM,EACJ,UACA,gBACA,gBACA,SACA,kBACA,8BACA,WACA,iBACA,oBACA,WACA,aACA,UACA,iBACA,aACA,oBACA,mBACE,qBAAA,QAAY,OAAO,QAAQ,OAAO,KAAK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AA,IAAA,UAAA,CAAA,IAAA,GAAA,IAAA,mBAAA,CAA8C,OAAA;;KAApC,QAAA,GAAA,IAAA,eAAA,EAAA,GAAA,IAAA,MAAA,CAAO,EAAA,CAAE,CAAC,EAAC,mBAAA,CAAA;;8DAM1C,OAAA;IAFA,KAAI;IACH,QAAA,GAAA,IAAA,eAAA,EAAA,GAAA,IAAA,MAAA,CAAO,EAAA,CAAE,CAAC,EAAC,qBAAA,CAAA;4CAFJ,kBAAA,CAAkB,CAAA,CAAA,CAAA,GAAA,IAAA,UAAA"}
1
+ {"version":3,"file":"table.vue_vue_type_script_setup_true_lang.js","names":["$emit","$slots"],"sources":["../../../../../../packages/components/table/src/table.vue"],"sourcesContent":["<template>\n <div\n ref=\"tableWrapper\"\n :class=\"[\n {\n [ns.m('fit')]: fit,\n [ns.m('striped')]: stripe,\n [ns.m('border')]: border || isGroup,\n [ns.m('hidden')]: isHidden,\n [ns.m('group')]: isGroup,\n [ns.m('fluid-height')]: maxHeight,\n [ns.m('scrollable-x')]: layout.scrollX.value,\n [ns.m('scrollable-y')]: layout.scrollY.value,\n [ns.m('enable-row-hover')]: !store.states.isComplex.value || true,\n [ns.m('enable-row-transition')]:\n (store.states.data.value || []).length !== 0 &&\n (store.states.data.value || []).length < 100,\n 'has-footer': showSummary,\n },\n ns.m(tableSize),\n className,\n ns.b(),\n ns.m(`layout-${tableLayout}`),\n ]\"\n :style=\"style\"\n :data-prefix=\"ns.namespace.value\"\n @mouseleave=\"handleMouseLeave\"\n >\n <div ref=\"tableInnerWrapper\" :class=\"ns.e('inner-wrapper')\">\n <div ref=\"hiddenColumns\" class=\"hidden-columns\">\n <slot />\n </div>\n <div\n v-if=\"showHeader && tableLayout === 'fixed'\"\n ref=\"headerWrapper\"\n v-mousewheel=\"handleHeaderFooterMousewheel\"\n :class=\"ns.e('header-wrapper')\"\n >\n <table\n ref=\"tableHeader\"\n :class=\"ns.e('header')\"\n :style=\"tableBodyStyles\"\n border=\"0\"\n cellpadding=\"0\"\n cellspacing=\"0\"\n >\n <hColgroup\n :columns=\"store.states.columns.value\"\n :table-layout=\"tableLayout\"\n />\n <table-header\n ref=\"tableHeaderRef\"\n :border=\"border\"\n :default-sort=\"defaultSort\"\n :store=\"store\"\n :append-filter-panel-to=\"appendFilterPanelTo\"\n :allow-drag-last-column=\"allowDragLastColumn\"\n @set-drag-visible=\"setDragVisible\"\n />\n </table>\n </div>\n <div ref=\"bodyWrapper\" :class=\"ns.e('body-wrapper')\">\n <el-scrollbar\n ref=\"scrollBarRef\"\n :view-style=\"scrollbarViewStyle\"\n :wrap-style=\"scrollbarStyle\"\n :always=\"scrollbarAlwaysOn\"\n :tabindex=\"scrollbarTabindex\"\n :native=\"nativeScrollbar\"\n @scroll=\"$emit('scroll', $event)\"\n >\n <table\n ref=\"tableBody\"\n :class=\"ns.e('body')\"\n cellspacing=\"0\"\n cellpadding=\"0\"\n border=\"0\"\n :style=\"{\n width: bodyWidth,\n tableLayout,\n }\"\n >\n <hColgroup\n :columns=\"store.states.columns.value\"\n :table-layout=\"tableLayout\"\n />\n <table-header\n v-if=\"showHeader && tableLayout === 'auto'\"\n ref=\"tableHeaderRef\"\n :class=\"ns.e('body-header')\"\n :border=\"border\"\n :default-sort=\"defaultSort\"\n :store=\"store\"\n :append-filter-panel-to=\"appendFilterPanelTo\"\n @set-drag-visible=\"setDragVisible\"\n />\n <table-body\n :context=\"context\"\n :highlight=\"highlightCurrentRow\"\n :row-class-name=\"rowClassName\"\n :tooltip-effect=\"computedTooltipEffect\"\n :tooltip-options=\"computedTooltipOptions\"\n :row-style=\"rowStyle\"\n :store=\"store\"\n :stripe=\"stripe\"\n />\n <table-footer\n v-if=\"showSummary && tableLayout === 'auto'\"\n :class=\"ns.e('body-footer')\"\n :border=\"border\"\n :default-sort=\"defaultSort\"\n :store=\"store\"\n :sum-text=\"computedSumText\"\n :summary-method=\"summaryMethod\"\n />\n </table>\n <div\n v-if=\"isEmpty\"\n ref=\"emptyBlock\"\n :style=\"emptyBlockStyle\"\n :class=\"ns.e('empty-block')\"\n >\n <span :class=\"ns.e('empty-text')\">\n <slot name=\"empty\">{{ computedEmptyText }}</slot>\n </span>\n </div>\n <div\n v-if=\"$slots.append\"\n ref=\"appendWrapper\"\n :class=\"ns.e('append-wrapper')\"\n >\n <slot name=\"append\" />\n </div>\n </el-scrollbar>\n </div>\n <div\n v-if=\"showSummary && tableLayout === 'fixed'\"\n v-show=\"!isEmpty\"\n ref=\"footerWrapper\"\n v-mousewheel=\"handleHeaderFooterMousewheel\"\n :class=\"ns.e('footer-wrapper')\"\n >\n <table\n :class=\"ns.e('footer')\"\n cellspacing=\"0\"\n cellpadding=\"0\"\n border=\"0\"\n :style=\"tableBodyStyles\"\n >\n <hColgroup\n :columns=\"store.states.columns.value\"\n :table-layout=\"tableLayout\"\n />\n <table-footer\n :border=\"border\"\n :default-sort=\"defaultSort\"\n :store=\"store\"\n :sum-text=\"computedSumText\"\n :summary-method=\"summaryMethod\"\n />\n </table>\n </div>\n <div v-if=\"border || isGroup\" :class=\"ns.e('border-left-patch')\" />\n </div>\n <div\n v-show=\"resizeProxyVisible\"\n ref=\"resizeProxy\"\n :class=\"ns.e('column-resize-proxy')\"\n />\n </div>\n</template>\n\n<script lang=\"ts\" setup generic=\"T extends DefaultRow = DefaultRow\">\nimport { computed, getCurrentInstance, onBeforeUnmount, provide } from 'vue'\nimport { debounce } from 'lodash-unified'\nimport { Mousewheel as vMousewheel } from '@element-plus/directives'\nimport { useLocale, useNamespace } from '@element-plus/hooks'\nimport { useGlobalConfig } from '@element-plus/components/config-provider'\nimport ElScrollbar from '@element-plus/components/scrollbar'\nimport { createStore } from './store/helper'\nimport TableLayout from './table-layout'\nimport TableHeader from './table-header'\nimport TableBody from './table-body'\nimport TableFooter from './table-footer'\nimport { createTableId } from './util'\nimport useUtils from './table/utils-helper'\nimport { convertToRows } from './table-header/utils-helper'\nimport useStyle from './table/style-helper'\nimport useKeyRender from './table/key-render-helper'\nimport { TABLE_INJECTION_KEY } from './tokens'\nimport { hColgroup } from './h-helper'\nimport { useScrollbar } from './composables/use-scrollbar'\n\nimport type {\n DefaultRow,\n Table,\n TableEmits,\n TableProps,\n} from './table/defaults'\n\ndefineOptions({\n name: 'ElTable',\n})\n\nconst props = withDefaults(defineProps<TableProps<T>>(), {\n data: () => [],\n fit: true,\n showHeader: true,\n selectOnIndeterminate: true,\n indent: 16,\n treeProps: () => ({\n hasChildren: 'hasChildren',\n children: 'children',\n checkStrictly: false,\n }),\n style: () => ({}),\n className: '',\n tableLayout: 'fixed',\n showOverflowTooltip: undefined,\n scrollbarTabindex: undefined,\n allowDragLastColumn: true,\n})\n\ndefineEmits<TableEmits<T>>()\n\nconst { t } = useLocale()\nconst ns = useNamespace('table')\nconst globalConfig = useGlobalConfig('table')\nconst table = getCurrentInstance() as Table<T>\nprovide(TABLE_INJECTION_KEY, table)\nconst store = createStore<T>(table, props)\ntable.store = store\nconst layout = new TableLayout<T>({\n store: table.store,\n table,\n fit: props.fit,\n showHeader: props.showHeader,\n})\ntable.layout = layout\n\nconst isEmpty = computed(() => (store.states.data.value || []).length === 0)\n\n/**\n * open functions\n */\nconst {\n setCurrentRow,\n getSelectionRows,\n getHalfSelectionRows,\n toggleRowSelection,\n clearSelection,\n clearFilter,\n toggleAllSelection,\n toggleRowExpansion,\n clearSort,\n sort,\n updateKeyChildren,\n} = useUtils<T>(store)\nconst {\n isHidden,\n renderExpanded,\n setDragVisible,\n isGroup,\n handleMouseLeave,\n handleHeaderFooterMousewheel,\n tableSize,\n emptyBlockStyle,\n resizeProxyVisible,\n bodyWidth,\n resizeState,\n doLayout,\n tableBodyStyles,\n tableLayout,\n scrollbarViewStyle,\n scrollbarStyle,\n} = useStyle<T>(props, layout, store, table)\n\nconst { scrollBarRef, scrollTo, setScrollLeft, setScrollTop } = useScrollbar()\nconst { onScroll } = table.store\nconst debouncedUpdateLayout = debounce(doLayout, 50)\n\nconst tableId = createTableId(ns.namespace.value)\nconst context = table\ntable.tableId = tableId\ntable.state = {\n isGroup,\n resizeState,\n doLayout,\n debouncedUpdateLayout,\n}\nconst computedSumText = computed(() => props.sumText ?? t('el.table.sumText'))\n\nconst computedEmptyText = computed(() => {\n return props.emptyText ?? t('el.table.emptyText')\n})\n\nconst computedTooltipEffect = computed(\n () => props.tooltipEffect ?? globalConfig.value?.tooltipEffect\n)\n\nconst computedTooltipOptions = computed(\n () => props.tooltipOptions ?? globalConfig.value?.tooltipOptions\n)\n\nconst columns = computed(() => {\n return convertToRows(store.states.originColumns.value)[0]\n})\n\nuseKeyRender(table)\n\nonBeforeUnmount(() => {\n debouncedUpdateLayout.cancel()\n})\n\ndefineExpose({\n ns,\n layout,\n store,\n columns,\n handleHeaderFooterMousewheel,\n handleMouseLeave,\n tableId,\n tableSize,\n isHidden,\n isEmpty,\n renderExpanded,\n resizeProxyVisible,\n resizeState,\n isGroup,\n bodyWidth,\n tableBodyStyles,\n emptyBlockStyle,\n debouncedUpdateLayout,\n /**\n * @description used in single selection Table, set a certain row selected. If called without any parameter, it will clear selection\n */\n setCurrentRow,\n /**\n * @description returns the currently selected rows\n */\n getSelectionRows,\n /**\n * @description returns the currently half-selected rows\n */\n getHalfSelectionRows,\n /**\n * @description used in multiple selection Table, toggle if a certain row is selected. With the second parameter, you can directly set if this row is selected\n */\n toggleRowSelection,\n /**\n * @description used in multiple selection Table, clear user selection\n */\n clearSelection,\n /**\n * @description clear filters of the columns whose `columnKey` are passed in. If no params, clear all filters\n */\n clearFilter,\n /**\n * @description used in multiple selection Table, toggle select all and deselect all\n */\n toggleAllSelection,\n /**\n * @description used in expandable Table or tree Table, toggle if a certain row is expanded. With the second parameter, you can directly set if this row is expanded or collapsed\n */\n toggleRowExpansion,\n /**\n * @description clear sorting, restore data to the original order\n */\n clearSort,\n /**\n * @description refresh the layout of Table. When the visibility of Table changes, you may need to call this method to get a correct layout\n */\n doLayout,\n /**\n * @description sort Table manually. Property `prop` is used to set sort column, property `order` is used to set sort order\n */\n sort,\n /**\n * @description used in lazy Table, must set `rowKey`, update key children\n */\n updateKeyChildren,\n t,\n setDragVisible,\n context,\n computedSumText,\n computedEmptyText,\n computedTooltipEffect,\n computedTooltipOptions,\n tableLayout,\n scrollbarViewStyle,\n scrollbarStyle,\n scrollBarRef,\n /**\n * @description scrolls to a particular set of coordinates\n */\n scrollTo,\n /**\n * @description set horizontal scroll position\n */\n setScrollLeft,\n /**\n * @description set vertical scroll position\n */\n setScrollTop,\n /**\n * @description whether to allow drag the last column\n */\n allowDragLastColumn: props.allowDragLastColumn,\n})\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4MA,MAAM,QAAQ;EAqBd,MAAM,EAAE,MAAM,cAAA,UAAU;EACxB,MAAM,KAAK,gBAAA,aAAa,OAAO;EAC/B,MAAM,eAAe,0BAAA,gBAAgB,OAAO;EAC5C,MAAM,SAAA,GAAA,IAAA,mBAAA,CAA2B;EACjC,CAAA,GAAA,IAAA,QAAA,CAAQ,eAAA,qBAAqB,KAAK;EAClC,MAAM,QAAQ,eAAA,YAAe,OAAO,KAAK;EACzC,MAAM,QAAQ;EACd,MAAM,SAAS,IAAI,qBAAA,QAAe;GAChC,OAAO,MAAM;GACb;GACA,KAAK,MAAM;GACX,YAAY,MAAM;EACpB,CAAC;EACD,MAAM,SAAS;EAEf,MAAM,WAAA,GAAA,IAAA,SAAA,QAA0B,MAAM,OAAO,KAAK,SAAS,CAAC,EAAA,CAAG,WAAW,CAAC;;;;EAK3E,MAAM,EACJ,eACA,kBACA,sBACA,oBACA,gBACA,aACA,oBACA,oBACA,WACA,MACA,sBACE,uBAAA,QAAY,KAAK;EACrB,MAAM,EACJ,UACA,gBACA,gBACA,SACA,kBACA,8BACA,WACA,iBACA,oBACA,WACA,aACA,UACA,iBACA,aACA,oBACA,mBACE,qBAAA,QAAY,OAAO,QAAQ,OAAO,KAAK;EAE3C,MAAM,EAAE,cAAc,UAAU,eAAe,iBAAiB,sB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GAAA,IAAA,mBAAA,CAA8C,OAAA;;KAApC,QAAA,GAAA,IAAA,eAAA,EAAA,GAAA,IAAA,MAAA,CAAO,EAAA,CAAE,CAAC,EAAC,mBAAA,CAAA;;8DAM1C,OAAA;IAFA,KAAI;IACH,QAAA,GAAA,IAAA,eAAA,EAAA,GAAA,IAAA,MAAA,CAAO,EAAA,CAAE,CAAC,EAAC,qBAAA,CAAA;4CAFJ,kBAAA,CAAkB,CAAA,CAAA,CAAA,GAAA,IAAA,UAAA"}
@@ -6,8 +6,8 @@ type __VLS_Slots = {} & {
6
6
  default?: (props: typeof __VLS_1) => any;
7
7
  };
8
8
  declare const __VLS_base: import("vue").DefineComponent<TabPaneProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TabPaneProps> & Readonly<{}>, {
9
- closable: boolean;
10
9
  label: string;
10
+ closable: boolean;
11
11
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
12
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
13
13
  declare const _default: typeof __VLS_export;