ele-admin-plus 1.1.4 → 1.1.5-beta.1

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 (658) hide show
  1. package/es/components.d.ts +2 -0
  2. package/es/components.js +78 -74
  3. package/es/ele-alert/props.d.ts +17 -0
  4. package/es/ele-alert/props.js +17 -17
  5. package/es/ele-alert/style/css-var.scss +1 -0
  6. package/es/ele-alert/style/index.scss +4 -4
  7. package/es/ele-app/style/common.scss +2 -2
  8. package/es/ele-app/style/css-var.scss +2 -2
  9. package/es/ele-app/style/message.scss +4 -5
  10. package/es/ele-app/style/overwrite.scss +57 -2
  11. package/es/ele-app/types/index.d.ts +8 -2
  12. package/es/ele-avatar-group/index.d.ts +4 -4
  13. package/es/ele-avatar-group/index.js +32 -32
  14. package/es/ele-avatar-group/props.d.ts +18 -3
  15. package/es/ele-avatar-group/props.js +15 -15
  16. package/es/ele-avatar-group/style/index.js +0 -1
  17. package/es/ele-avatar-group/style/index.scss +5 -1
  18. package/es/ele-avatar-group/types/index.d.ts +0 -16
  19. package/es/ele-bar-code/props.d.ts +3 -0
  20. package/es/ele-bar-code/props.js +3 -3
  21. package/es/ele-basic-select/components/select-tag.d.ts +8 -0
  22. package/es/ele-basic-select/components/select-tag.js +4 -4
  23. package/es/ele-basic-select/index.d.ts +4 -3
  24. package/es/ele-basic-select/index.js +26 -15
  25. package/es/ele-basic-select/props.d.ts +27 -1
  26. package/es/ele-basic-select/props.js +26 -26
  27. package/es/ele-basic-select/style/index.js +1 -1
  28. package/es/ele-basic-select/style/index.scss +4 -4
  29. package/es/ele-bottom-bar/props.d.ts +2 -0
  30. package/es/ele-bottom-bar/props.js +2 -2
  31. package/es/ele-bottom-bar/style/css-var.scss +1 -0
  32. package/es/ele-breadcrumb/props.d.ts +1 -0
  33. package/es/ele-breadcrumb/props.js +1 -1
  34. package/es/ele-card/props.d.ts +7 -0
  35. package/es/ele-card/props.js +7 -7
  36. package/es/ele-card/style/css-var.scss +1 -0
  37. package/es/ele-card/style/index.scss +3 -2
  38. package/es/ele-check-card/components/card-item.d.ts +12 -0
  39. package/es/ele-check-card/components/card-item.js +6 -6
  40. package/es/ele-check-card/index.d.ts +2 -2
  41. package/es/ele-check-card/props.d.ts +12 -0
  42. package/es/ele-check-card/props.js +12 -12
  43. package/es/ele-check-card/style/css-var.scss +1 -0
  44. package/es/ele-check-card/style/index.scss +4 -4
  45. package/es/ele-config-provider/index.d.ts +2 -2
  46. package/es/ele-config-provider/props.d.ts +5 -1
  47. package/es/ele-config-provider/props.js +4 -4
  48. package/es/ele-copyable/index.d.ts +7 -6
  49. package/es/ele-copyable/props.d.ts +13 -2
  50. package/es/ele-copyable/props.js +12 -12
  51. package/es/ele-copyable/types/index.d.ts +0 -5
  52. package/es/ele-count-up/props.d.ts +4 -0
  53. package/es/ele-count-up/props.js +4 -4
  54. package/es/ele-cropper/components/cropper-preview.d.ts +4 -0
  55. package/es/ele-cropper/components/cropper-preview.js +2 -2
  56. package/es/ele-cropper/components/cropper-tools.d.ts +12 -3
  57. package/es/ele-cropper/components/cropper-tools.js +5 -5
  58. package/es/ele-cropper/index.d.ts +2 -2
  59. package/es/ele-cropper/props.d.ts +16 -2
  60. package/es/ele-cropper/props.js +15 -15
  61. package/es/ele-cropper-modal/index.d.ts +2 -2
  62. package/es/ele-cropper-modal/props.d.ts +5 -1
  63. package/es/ele-cropper-modal/props.js +4 -4
  64. package/es/ele-dashboard/props.d.ts +4 -0
  65. package/es/ele-dashboard/props.js +4 -4
  66. package/es/{ele-pro-table/components/table-view.d.ts → ele-data-table/index.d.ts} +102 -60
  67. package/es/ele-data-table/index.js +192 -0
  68. package/es/ele-data-table/props.d.ts +256 -0
  69. package/es/ele-data-table/props.js +79 -0
  70. package/es/ele-data-table/style/css-var.scss +72 -0
  71. package/es/ele-data-table/style/index.js +4 -0
  72. package/es/ele-data-table/style/index.scss +385 -0
  73. package/es/ele-data-table/types/index.d.ts +191 -0
  74. package/es/ele-data-table/util.d.ts +261 -0
  75. package/es/ele-data-table/util.js +417 -0
  76. package/es/ele-dot/props.d.ts +5 -0
  77. package/es/ele-dot/props.js +5 -5
  78. package/es/ele-drawer/index.d.ts +1 -1
  79. package/es/ele-drawer/props.d.ts +5 -0
  80. package/es/ele-drawer/props.js +5 -5
  81. package/es/ele-drawer/style/css-var.scss +1 -0
  82. package/es/ele-dropdown/index.d.ts +1 -1
  83. package/es/ele-dropdown/props.d.ts +8 -0
  84. package/es/ele-dropdown/props.js +8 -8
  85. package/es/ele-dropdown/style/css-var.scss +1 -0
  86. package/es/ele-dropdown/style/index.scss +4 -0
  87. package/es/ele-edit-tag/index.d.ts +15 -17
  88. package/es/ele-edit-tag/index.js +106 -77
  89. package/es/ele-edit-tag/props.d.ts +16 -6
  90. package/es/ele-edit-tag/props.js +15 -18
  91. package/es/ele-edit-tag/style/index.scss +7 -3
  92. package/es/ele-ellipsis/index.d.ts +4 -4
  93. package/es/ele-ellipsis/props.d.ts +3 -0
  94. package/es/ele-ellipsis/props.js +3 -3
  95. package/es/ele-ellipsis/style/index.scss +1 -1
  96. package/es/ele-ellipsis/types/index.d.ts +1 -6
  97. package/es/ele-file-list/components/file-grid-item.d.ts +20 -5
  98. package/es/ele-file-list/components/file-grid-item.js +7 -7
  99. package/es/ele-file-list/components/file-grid.d.ts +26 -3
  100. package/es/ele-file-list/components/file-grid.js +11 -11
  101. package/es/ele-file-list/components/file-sort.d.ts +6 -0
  102. package/es/ele-file-list/components/file-sort.js +3 -3
  103. package/es/ele-file-list/components/file-table-item.d.ts +22 -5
  104. package/es/ele-file-list/components/file-table-item.js +8 -8
  105. package/es/ele-file-list/components/file-table.d.ts +37 -4
  106. package/es/ele-file-list/components/file-table.js +16 -16
  107. package/es/ele-file-list/index.d.ts +3 -3
  108. package/es/ele-file-list/props.d.ts +22 -1
  109. package/es/ele-file-list/props.js +20 -20
  110. package/es/ele-file-list/style/css-var.scss +1 -0
  111. package/es/ele-file-list/style/index.scss +15 -15
  112. package/es/ele-file-list/types/index.d.ts +1 -11
  113. package/es/ele-icon-select/components/icon-grid.d.ts +21 -3
  114. package/es/ele-icon-select/components/icon-grid.js +34 -12
  115. package/es/ele-icon-select/components/icon-popper.d.ts +34 -3
  116. package/es/ele-icon-select/components/icon-popper.js +16 -16
  117. package/es/ele-icon-select/index.d.ts +8 -8
  118. package/es/ele-icon-select/props.d.ts +38 -3
  119. package/es/ele-icon-select/props.js +36 -36
  120. package/es/ele-icon-select/style/css-var.scss +1 -0
  121. package/es/ele-icon-select/style/index.scss +2 -8
  122. package/es/ele-loading/index.d.ts +2 -0
  123. package/es/ele-loading/props.d.ts +10 -0
  124. package/es/ele-loading/props.js +10 -10
  125. package/es/ele-loading/style/css-var.scss +1 -0
  126. package/es/ele-map-picker/components/map-view.d.ts +2 -2
  127. package/es/ele-map-picker/components/map-view.js +7 -7
  128. package/es/ele-map-picker/index.d.ts +5 -5
  129. package/es/ele-map-picker/props.d.ts +53 -0
  130. package/es/ele-map-picker/props.js +31 -31
  131. package/es/ele-map-picker/style/css-var.scss +1 -0
  132. package/es/ele-map-picker/style/index.scss +5 -5
  133. package/es/ele-menus/index.d.ts +1 -1
  134. package/es/ele-menus/index.js +2 -1
  135. package/es/ele-menus/props.d.ts +8 -0
  136. package/es/ele-menus/props.js +8 -8
  137. package/es/ele-menus/style/css-var.scss +1 -0
  138. package/es/ele-menus/style/index.scss +23 -23
  139. package/es/ele-menus/util.d.ts +5 -1
  140. package/es/ele-menus/util.js +5 -8
  141. package/es/ele-modal/index.d.ts +1 -1
  142. package/es/ele-modal/props.d.ts +18 -0
  143. package/es/ele-modal/props.js +18 -18
  144. package/es/ele-modal/style/css-var.scss +1 -0
  145. package/es/ele-modal/style/index.scss +5 -5
  146. package/es/ele-page/props.d.ts +4 -0
  147. package/es/ele-page/props.js +4 -4
  148. package/es/ele-page/style/css-var.scss +1 -0
  149. package/es/ele-page/style/index.scss +5 -4
  150. package/es/ele-pagination/index.d.ts +4 -1
  151. package/es/ele-pagination/props.d.ts +4 -0
  152. package/es/ele-pagination/props.js +3 -3
  153. package/es/ele-pagination/style/css-var.scss +1 -0
  154. package/es/ele-pagination/style/index.scss +6 -6
  155. package/es/ele-popconfirm/index.d.ts +206 -9
  156. package/es/ele-popconfirm/index.js +106 -110
  157. package/es/ele-popconfirm/props.d.ts +105 -1
  158. package/es/ele-popconfirm/props.js +15 -16
  159. package/es/ele-popconfirm/style/css-var.scss +1 -0
  160. package/es/ele-popover/index.d.ts +201 -6
  161. package/es/ele-popover/index.js +26 -44
  162. package/es/ele-popover/props.d.ts +105 -1
  163. package/es/ele-popover/props.js +13 -5
  164. package/es/ele-popover/style/css-var.scss +1 -71
  165. package/es/ele-popover/style/index.js +1 -1
  166. package/es/ele-popover/style/index.scss +2 -9
  167. package/es/ele-printer/props.d.ts +12 -0
  168. package/es/ele-printer/props.js +12 -12
  169. package/es/ele-pro-layout/components/pro-header.d.ts +32 -0
  170. package/es/ele-pro-layout/components/pro-header.js +20 -20
  171. package/es/ele-pro-layout/components/pro-iframe.d.ts +10 -0
  172. package/es/ele-pro-layout/components/pro-iframe.js +5 -5
  173. package/es/ele-pro-layout/components/pro-sidebar.d.ts +22 -0
  174. package/es/ele-pro-layout/components/pro-sidebar.js +16 -19
  175. package/es/ele-pro-layout/components/pro-sidebox.d.ts +20 -0
  176. package/es/ele-pro-layout/components/pro-sidebox.js +15 -18
  177. package/es/ele-pro-layout/components/pro-tabs.d.ts +22 -3
  178. package/es/ele-pro-layout/components/pro-tabs.js +29 -15
  179. package/es/ele-pro-layout/components/tab-dropdown.d.ts +8 -2
  180. package/es/ele-pro-layout/components/tab-dropdown.js +3 -3
  181. package/es/ele-pro-layout/index.d.ts +17 -13
  182. package/es/ele-pro-layout/props.d.ts +56 -1
  183. package/es/ele-pro-layout/props.js +55 -55
  184. package/es/ele-pro-layout/style/css-var.scss +1 -0
  185. package/es/ele-pro-layout/style/header.scss +4 -4
  186. package/es/ele-pro-layout/style/layout-theme.scss +2 -2
  187. package/es/ele-pro-layout/style/layout.scss +4 -0
  188. package/es/ele-pro-layout/style/tabs.scss +4 -9
  189. package/es/ele-pro-layout/types/index.d.ts +0 -5
  190. package/es/ele-pro-layout/util.js +1 -1
  191. package/es/ele-pro-table/components/table-tools.d.ts +18 -1
  192. package/es/ele-pro-table/components/table-tools.js +9 -9
  193. package/es/ele-pro-table/components/tool-column-list.d.ts +49 -0
  194. package/es/ele-pro-table/components/tool-column-list.js +186 -0
  195. package/es/ele-pro-table/components/tool-column.d.ts +35 -15
  196. package/es/ele-pro-table/components/tool-column.js +181 -266
  197. package/es/ele-pro-table/index.d.ts +103 -129
  198. package/es/ele-pro-table/index.js +93 -202
  199. package/es/ele-pro-table/props.d.ts +73 -267
  200. package/es/ele-pro-table/props.js +30 -95
  201. package/es/ele-pro-table/style/css-var.scss +1 -4
  202. package/es/ele-pro-table/style/index.js +5 -9
  203. package/es/ele-pro-table/style/index.scss +85 -415
  204. package/es/ele-pro-table/types/index.d.ts +8 -116
  205. package/es/ele-pro-table/util.d.ts +6 -72
  206. package/es/ele-pro-table/util.js +57 -259
  207. package/es/ele-qr-code/props.d.ts +9 -0
  208. package/es/ele-qr-code/props.js +9 -9
  209. package/es/ele-qr-code/qrcodegen.js +2 -2
  210. package/es/ele-qr-code/types/index.d.ts +10 -0
  211. package/es/ele-qr-code-svg/index.d.ts +2 -2
  212. package/es/ele-segmented/index.d.ts +2 -2
  213. package/es/ele-segmented/props.d.ts +7 -0
  214. package/es/ele-segmented/props.js +7 -7
  215. package/es/ele-segmented/style/css-var.scss +1 -0
  216. package/es/ele-segmented/style/index.scss +6 -6
  217. package/es/ele-split-panel/index.d.ts +4 -4
  218. package/es/ele-split-panel/props.d.ts +15 -0
  219. package/es/ele-split-panel/props.js +15 -15
  220. package/es/ele-split-panel/style/index.scss +13 -13
  221. package/es/ele-steps/props.d.ts +2 -0
  222. package/es/ele-steps/props.js +2 -2
  223. package/es/ele-steps/style/css-var.scss +1 -0
  224. package/es/ele-steps/style/index.scss +8 -8
  225. package/es/ele-tab-tool/props.d.ts +2 -0
  226. package/es/ele-tab-tool/props.js +2 -2
  227. package/es/ele-tab-wrap/props.d.ts +2 -0
  228. package/es/ele-tab-wrap/props.js +2 -2
  229. package/es/ele-table/index.d.ts +12 -0
  230. package/es/ele-table/index.js +2 -0
  231. package/es/ele-table/props.d.ts +10 -0
  232. package/es/ele-table/props.js +11 -4
  233. package/es/ele-table/style/css-var.scss +1 -0
  234. package/es/ele-table/style/index.scss +103 -22
  235. package/es/ele-table-select/index.d.ts +39 -15
  236. package/es/ele-table-select/index.js +1 -5
  237. package/es/ele-table-select/props.d.ts +32 -1
  238. package/es/ele-table-select/props.js +31 -31
  239. package/es/ele-table-select/style/css-var.scss +1 -0
  240. package/es/ele-table-select/style/index.scss +3 -3
  241. package/es/ele-table-select/types/index.d.ts +0 -10
  242. package/es/ele-tabs/components/tab-title.d.ts +19 -5
  243. package/es/ele-tabs/components/tab-title.js +7 -7
  244. package/es/ele-tabs/index.d.ts +4 -5
  245. package/es/ele-tabs/index.js +1 -1
  246. package/es/ele-tabs/props.d.ts +16 -3
  247. package/es/ele-tabs/props.js +13 -13
  248. package/es/ele-tabs/style/css-var.scss +1 -0
  249. package/es/ele-tabs/style/index.scss +46 -22
  250. package/es/ele-text/props.d.ts +10 -0
  251. package/es/ele-text/props.js +10 -10
  252. package/es/ele-text/style/css-var.scss +1 -0
  253. package/es/ele-text/style/index.scss +4 -4
  254. package/es/ele-tool/props.d.ts +3 -0
  255. package/es/ele-tool/props.js +3 -3
  256. package/es/ele-tool/style/css-var.scss +1 -0
  257. package/es/ele-tool/style/index.scss +1 -2
  258. package/es/ele-toolbar/props.d.ts +6 -0
  259. package/es/ele-toolbar/props.js +6 -6
  260. package/es/ele-toolbar/style/css-var.scss +1 -0
  261. package/es/ele-toolbar/style/index.scss +2 -2
  262. package/es/ele-tooltip/index.d.ts +11 -10
  263. package/es/ele-tooltip/index.js +40 -32
  264. package/es/ele-tooltip/props.d.ts +8 -1
  265. package/es/ele-tooltip/props.js +10 -6
  266. package/es/ele-tooltip/style/css-var.scss +72 -0
  267. package/es/ele-tooltip/style/index.js +0 -1
  268. package/es/ele-tooltip/style/index.scss +8 -2
  269. package/es/ele-tour/index.d.ts +4 -6
  270. package/es/ele-tour/index.js +31 -39
  271. package/es/ele-tour/props.d.ts +6 -0
  272. package/es/ele-tour/props.js +6 -6
  273. package/es/ele-tour/style/index.js +1 -1
  274. package/es/ele-tour/style/index.scss +6 -2
  275. package/es/ele-tour/types/index.d.ts +2 -1
  276. package/es/ele-tour/util.d.ts +2 -2
  277. package/es/ele-tour/util.js +6 -2
  278. package/es/ele-upload-list/components/list-item.d.ts +11 -1
  279. package/es/ele-upload-list/components/list-item.js +5 -5
  280. package/es/ele-upload-list/index.d.ts +1 -1
  281. package/es/ele-upload-list/index.js +4 -4
  282. package/es/ele-upload-list/props.d.ts +18 -0
  283. package/es/ele-upload-list/props.js +18 -18
  284. package/es/ele-virtual-table/components/body-cell.d.ts +150 -0
  285. package/es/ele-virtual-table/components/body-cell.js +414 -0
  286. package/es/ele-virtual-table/components/body-row.d.ts +148 -0
  287. package/es/ele-virtual-table/components/body-row.js +206 -0
  288. package/es/ele-virtual-table/components/cell-checkbox.d.ts +32 -0
  289. package/es/ele-virtual-table/components/cell-checkbox.js +49 -0
  290. package/es/ele-virtual-table/components/cell-filter.d.ts +48 -0
  291. package/es/ele-virtual-table/components/cell-filter.js +211 -0
  292. package/es/ele-virtual-table/components/expand-row.d.ts +18 -0
  293. package/es/ele-virtual-table/components/expand-row.js +29 -0
  294. package/es/ele-virtual-table/components/footer-row.d.ts +43 -0
  295. package/es/ele-virtual-table/components/footer-row.js +105 -0
  296. package/es/ele-virtual-table/components/header-cell.d.ts +97 -0
  297. package/es/ele-virtual-table/components/header-cell.js +261 -0
  298. package/es/ele-virtual-table/components/header-row.d.ts +89 -0
  299. package/es/ele-virtual-table/components/header-row.js +126 -0
  300. package/es/ele-virtual-table/index.js +987 -0
  301. package/es/ele-virtual-table/props.d.ts +148 -0
  302. package/es/ele-virtual-table/props.js +13 -0
  303. package/es/ele-virtual-table/style/css-var.scss +127 -0
  304. package/es/ele-virtual-table/style/index.js +9 -0
  305. package/es/ele-virtual-table/style/index.scss +666 -0
  306. package/es/ele-virtual-table/types/index.d.ts +157 -0
  307. package/es/ele-virtual-table/util.d.ts +200 -0
  308. package/es/ele-virtual-table/util.js +562 -0
  309. package/es/ele-watermark/index.js +4 -0
  310. package/es/ele-watermark/props.d.ts +12 -0
  311. package/es/ele-watermark/props.js +12 -12
  312. package/es/icons/FilterFilled.d.ts +2 -0
  313. package/es/icons/FilterFilled.js +23 -0
  314. package/es/icons/HomeOutlined.d.ts +2 -0
  315. package/es/icons/HomeOutlined.js +48 -0
  316. package/es/icons/index.d.ts +2 -0
  317. package/es/icons/index.js +16 -12
  318. package/es/lang/zh_TW.js +0 -1
  319. package/es/style/index.scss +2 -0
  320. package/es/style/themes/dark.scss +6 -1
  321. package/es/style/themes/default.scss +57 -45
  322. package/es/style/themes/rounded.scss +12 -10
  323. package/es/style/themes/theme-util.scss +4 -0
  324. package/es/style/util.scss +6 -6
  325. package/es/utils/core.d.ts +10 -0
  326. package/es/utils/core.js +2 -3
  327. package/es/utils/validate.js +2 -2
  328. package/lib/components.d.ts +2 -0
  329. package/lib/components.js +78 -74
  330. package/lib/ele-alert/props.d.ts +17 -0
  331. package/lib/ele-alert/props.js +17 -17
  332. package/lib/ele-alert/style/css-var.scss +1 -0
  333. package/lib/ele-alert/style/index.scss +4 -4
  334. package/lib/ele-app/style/common.scss +2 -2
  335. package/lib/ele-app/style/css-var.scss +2 -2
  336. package/lib/ele-app/style/message.scss +4 -5
  337. package/lib/ele-app/style/overwrite.scss +57 -2
  338. package/lib/ele-app/types/index.d.ts +8 -2
  339. package/lib/ele-avatar-group/index.d.ts +4 -4
  340. package/lib/ele-avatar-group/index.js +32 -32
  341. package/lib/ele-avatar-group/props.d.ts +18 -3
  342. package/lib/ele-avatar-group/props.js +15 -15
  343. package/lib/ele-avatar-group/style/index.js +0 -1
  344. package/lib/ele-avatar-group/style/index.scss +5 -1
  345. package/lib/ele-avatar-group/types/index.d.ts +0 -16
  346. package/lib/ele-bar-code/props.d.ts +3 -0
  347. package/lib/ele-bar-code/props.js +3 -3
  348. package/lib/ele-basic-select/components/select-tag.d.ts +8 -0
  349. package/lib/ele-basic-select/components/select-tag.js +4 -4
  350. package/lib/ele-basic-select/index.d.ts +4 -3
  351. package/lib/ele-basic-select/index.js +25 -14
  352. package/lib/ele-basic-select/props.d.ts +27 -1
  353. package/lib/ele-basic-select/props.js +26 -26
  354. package/lib/ele-basic-select/style/index.js +1 -1
  355. package/lib/ele-basic-select/style/index.scss +4 -4
  356. package/lib/ele-bottom-bar/props.d.ts +2 -0
  357. package/lib/ele-bottom-bar/props.js +2 -2
  358. package/lib/ele-bottom-bar/style/css-var.scss +1 -0
  359. package/lib/ele-breadcrumb/props.d.ts +1 -0
  360. package/lib/ele-breadcrumb/props.js +1 -1
  361. package/lib/ele-card/props.d.ts +7 -0
  362. package/lib/ele-card/props.js +7 -7
  363. package/lib/ele-card/style/css-var.scss +1 -0
  364. package/lib/ele-card/style/index.scss +3 -2
  365. package/lib/ele-check-card/components/card-item.d.ts +12 -0
  366. package/lib/ele-check-card/components/card-item.js +6 -6
  367. package/lib/ele-check-card/index.d.ts +2 -2
  368. package/lib/ele-check-card/props.d.ts +12 -0
  369. package/lib/ele-check-card/props.js +12 -12
  370. package/lib/ele-check-card/style/css-var.scss +1 -0
  371. package/lib/ele-check-card/style/index.scss +4 -4
  372. package/lib/ele-config-provider/index.d.ts +2 -2
  373. package/lib/ele-config-provider/props.d.ts +5 -1
  374. package/lib/ele-config-provider/props.js +4 -4
  375. package/lib/ele-copyable/index.d.ts +7 -6
  376. package/lib/ele-copyable/props.d.ts +13 -2
  377. package/lib/ele-copyable/props.js +12 -12
  378. package/lib/ele-copyable/types/index.d.ts +0 -5
  379. package/lib/ele-count-up/props.d.ts +4 -0
  380. package/lib/ele-count-up/props.js +4 -4
  381. package/lib/ele-cropper/components/cropper-preview.d.ts +4 -0
  382. package/lib/ele-cropper/components/cropper-preview.js +2 -2
  383. package/lib/ele-cropper/components/cropper-tools.d.ts +12 -3
  384. package/lib/ele-cropper/components/cropper-tools.js +5 -5
  385. package/lib/ele-cropper/index.d.ts +2 -2
  386. package/lib/ele-cropper/props.d.ts +16 -2
  387. package/lib/ele-cropper/props.js +15 -15
  388. package/lib/ele-cropper-modal/index.d.ts +2 -2
  389. package/lib/ele-cropper-modal/props.d.ts +5 -1
  390. package/lib/ele-cropper-modal/props.js +4 -4
  391. package/lib/ele-dashboard/props.d.ts +4 -0
  392. package/lib/ele-dashboard/props.js +4 -4
  393. package/lib/{ele-pro-table/components/table-view.d.ts → ele-data-table/index.d.ts} +102 -60
  394. package/lib/ele-data-table/index.js +191 -0
  395. package/lib/ele-data-table/props.d.ts +256 -0
  396. package/lib/ele-data-table/props.js +79 -0
  397. package/lib/ele-data-table/style/css-var.scss +72 -0
  398. package/lib/ele-data-table/style/index.js +5 -0
  399. package/lib/ele-data-table/style/index.scss +385 -0
  400. package/lib/ele-data-table/types/index.d.ts +191 -0
  401. package/lib/ele-data-table/util.d.ts +261 -0
  402. package/lib/ele-data-table/util.js +417 -0
  403. package/lib/ele-dot/props.d.ts +5 -0
  404. package/lib/ele-dot/props.js +5 -5
  405. package/lib/ele-drawer/index.d.ts +1 -1
  406. package/lib/ele-drawer/props.d.ts +5 -0
  407. package/lib/ele-drawer/props.js +5 -5
  408. package/lib/ele-drawer/style/css-var.scss +1 -0
  409. package/lib/ele-dropdown/index.d.ts +1 -1
  410. package/lib/ele-dropdown/props.d.ts +8 -0
  411. package/lib/ele-dropdown/props.js +8 -8
  412. package/lib/ele-dropdown/style/css-var.scss +1 -0
  413. package/lib/ele-dropdown/style/index.scss +4 -0
  414. package/lib/ele-edit-tag/index.d.ts +15 -17
  415. package/lib/ele-edit-tag/index.js +105 -76
  416. package/lib/ele-edit-tag/props.d.ts +16 -6
  417. package/lib/ele-edit-tag/props.js +15 -18
  418. package/lib/ele-edit-tag/style/index.scss +7 -3
  419. package/lib/ele-ellipsis/index.d.ts +4 -4
  420. package/lib/ele-ellipsis/props.d.ts +3 -0
  421. package/lib/ele-ellipsis/props.js +3 -3
  422. package/lib/ele-ellipsis/style/index.scss +1 -1
  423. package/lib/ele-ellipsis/types/index.d.ts +1 -6
  424. package/lib/ele-file-list/components/file-grid-item.d.ts +20 -5
  425. package/lib/ele-file-list/components/file-grid-item.js +7 -7
  426. package/lib/ele-file-list/components/file-grid.d.ts +26 -3
  427. package/lib/ele-file-list/components/file-grid.js +11 -11
  428. package/lib/ele-file-list/components/file-sort.d.ts +6 -0
  429. package/lib/ele-file-list/components/file-sort.js +3 -3
  430. package/lib/ele-file-list/components/file-table-item.d.ts +22 -5
  431. package/lib/ele-file-list/components/file-table-item.js +8 -8
  432. package/lib/ele-file-list/components/file-table.d.ts +37 -4
  433. package/lib/ele-file-list/components/file-table.js +16 -16
  434. package/lib/ele-file-list/index.d.ts +3 -3
  435. package/lib/ele-file-list/props.d.ts +22 -1
  436. package/lib/ele-file-list/props.js +20 -20
  437. package/lib/ele-file-list/style/css-var.scss +1 -0
  438. package/lib/ele-file-list/style/index.scss +15 -15
  439. package/lib/ele-file-list/types/index.d.ts +1 -11
  440. package/lib/ele-icon-select/components/icon-grid.d.ts +21 -3
  441. package/lib/ele-icon-select/components/icon-grid.js +33 -11
  442. package/lib/ele-icon-select/components/icon-popper.d.ts +34 -3
  443. package/lib/ele-icon-select/components/icon-popper.js +16 -16
  444. package/lib/ele-icon-select/index.d.ts +8 -8
  445. package/lib/ele-icon-select/props.d.ts +38 -3
  446. package/lib/ele-icon-select/props.js +36 -36
  447. package/lib/ele-icon-select/style/css-var.scss +1 -0
  448. package/lib/ele-icon-select/style/index.scss +2 -8
  449. package/lib/ele-loading/index.d.ts +2 -0
  450. package/lib/ele-loading/props.d.ts +10 -0
  451. package/lib/ele-loading/props.js +10 -10
  452. package/lib/ele-loading/style/css-var.scss +1 -0
  453. package/lib/ele-map-picker/components/map-view.d.ts +2 -2
  454. package/lib/ele-map-picker/components/map-view.js +7 -7
  455. package/lib/ele-map-picker/index.d.ts +5 -5
  456. package/lib/ele-map-picker/props.d.ts +53 -0
  457. package/lib/ele-map-picker/props.js +31 -31
  458. package/lib/ele-map-picker/style/css-var.scss +1 -0
  459. package/lib/ele-map-picker/style/index.scss +5 -5
  460. package/lib/ele-menus/index.d.ts +1 -1
  461. package/lib/ele-menus/index.js +2 -1
  462. package/lib/ele-menus/props.d.ts +8 -0
  463. package/lib/ele-menus/props.js +8 -8
  464. package/lib/ele-menus/style/css-var.scss +1 -0
  465. package/lib/ele-menus/style/index.scss +23 -23
  466. package/lib/ele-menus/util.d.ts +5 -1
  467. package/lib/ele-menus/util.js +5 -8
  468. package/lib/ele-modal/index.d.ts +1 -1
  469. package/lib/ele-modal/props.d.ts +18 -0
  470. package/lib/ele-modal/props.js +18 -18
  471. package/lib/ele-modal/style/css-var.scss +1 -0
  472. package/lib/ele-modal/style/index.scss +5 -5
  473. package/lib/ele-page/props.d.ts +4 -0
  474. package/lib/ele-page/props.js +4 -4
  475. package/lib/ele-page/style/css-var.scss +1 -0
  476. package/lib/ele-page/style/index.scss +5 -4
  477. package/lib/ele-pagination/index.d.ts +4 -1
  478. package/lib/ele-pagination/props.d.ts +4 -0
  479. package/lib/ele-pagination/props.js +3 -3
  480. package/lib/ele-pagination/style/css-var.scss +1 -0
  481. package/lib/ele-pagination/style/index.scss +6 -6
  482. package/lib/ele-popconfirm/index.d.ts +206 -9
  483. package/lib/ele-popconfirm/index.js +105 -109
  484. package/lib/ele-popconfirm/props.d.ts +105 -1
  485. package/lib/ele-popconfirm/props.js +15 -16
  486. package/lib/ele-popconfirm/style/css-var.scss +1 -0
  487. package/lib/ele-popover/index.d.ts +201 -6
  488. package/lib/ele-popover/index.js +25 -43
  489. package/lib/ele-popover/props.d.ts +105 -1
  490. package/lib/ele-popover/props.js +12 -4
  491. package/lib/ele-popover/style/css-var.scss +1 -71
  492. package/lib/ele-popover/style/index.js +1 -1
  493. package/lib/ele-popover/style/index.scss +2 -9
  494. package/lib/ele-printer/props.d.ts +12 -0
  495. package/lib/ele-printer/props.js +12 -12
  496. package/lib/ele-pro-layout/components/pro-header.d.ts +32 -0
  497. package/lib/ele-pro-layout/components/pro-header.js +20 -20
  498. package/lib/ele-pro-layout/components/pro-iframe.d.ts +10 -0
  499. package/lib/ele-pro-layout/components/pro-iframe.js +5 -5
  500. package/lib/ele-pro-layout/components/pro-sidebar.d.ts +22 -0
  501. package/lib/ele-pro-layout/components/pro-sidebar.js +16 -19
  502. package/lib/ele-pro-layout/components/pro-sidebox.d.ts +20 -0
  503. package/lib/ele-pro-layout/components/pro-sidebox.js +15 -18
  504. package/lib/ele-pro-layout/components/pro-tabs.d.ts +22 -3
  505. package/lib/ele-pro-layout/components/pro-tabs.js +29 -15
  506. package/lib/ele-pro-layout/components/tab-dropdown.d.ts +8 -2
  507. package/lib/ele-pro-layout/components/tab-dropdown.js +3 -3
  508. package/lib/ele-pro-layout/index.d.ts +17 -13
  509. package/lib/ele-pro-layout/props.d.ts +56 -1
  510. package/lib/ele-pro-layout/props.js +55 -55
  511. package/lib/ele-pro-layout/style/css-var.scss +1 -0
  512. package/lib/ele-pro-layout/style/header.scss +4 -4
  513. package/lib/ele-pro-layout/style/layout-theme.scss +2 -2
  514. package/lib/ele-pro-layout/style/layout.scss +4 -0
  515. package/lib/ele-pro-layout/style/tabs.scss +4 -9
  516. package/lib/ele-pro-layout/types/index.d.ts +0 -5
  517. package/lib/ele-pro-layout/util.js +1 -1
  518. package/lib/ele-pro-table/components/table-tools.d.ts +18 -1
  519. package/lib/ele-pro-table/components/table-tools.js +9 -9
  520. package/lib/ele-pro-table/components/tool-column-list.d.ts +49 -0
  521. package/lib/ele-pro-table/components/tool-column-list.js +185 -0
  522. package/lib/ele-pro-table/components/tool-column.d.ts +35 -15
  523. package/lib/ele-pro-table/components/tool-column.js +178 -263
  524. package/lib/ele-pro-table/index.d.ts +103 -129
  525. package/lib/ele-pro-table/index.js +140 -249
  526. package/lib/ele-pro-table/props.d.ts +73 -267
  527. package/lib/ele-pro-table/props.js +29 -94
  528. package/lib/ele-pro-table/style/css-var.scss +1 -4
  529. package/lib/ele-pro-table/style/index.js +5 -9
  530. package/lib/ele-pro-table/style/index.scss +85 -415
  531. package/lib/ele-pro-table/types/index.d.ts +8 -116
  532. package/lib/ele-pro-table/util.d.ts +6 -72
  533. package/lib/ele-pro-table/util.js +58 -260
  534. package/lib/ele-qr-code/props.d.ts +9 -0
  535. package/lib/ele-qr-code/props.js +9 -9
  536. package/lib/ele-qr-code/qrcodegen.js +2 -2
  537. package/lib/ele-qr-code/types/index.d.ts +10 -0
  538. package/lib/ele-qr-code-svg/index.d.ts +2 -2
  539. package/lib/ele-segmented/index.d.ts +2 -2
  540. package/lib/ele-segmented/props.d.ts +7 -0
  541. package/lib/ele-segmented/props.js +7 -7
  542. package/lib/ele-segmented/style/css-var.scss +1 -0
  543. package/lib/ele-segmented/style/index.scss +6 -6
  544. package/lib/ele-split-panel/index.d.ts +4 -4
  545. package/lib/ele-split-panel/props.d.ts +15 -0
  546. package/lib/ele-split-panel/props.js +15 -15
  547. package/lib/ele-split-panel/style/index.scss +13 -13
  548. package/lib/ele-steps/props.d.ts +2 -0
  549. package/lib/ele-steps/props.js +2 -2
  550. package/lib/ele-steps/style/css-var.scss +1 -0
  551. package/lib/ele-steps/style/index.scss +8 -8
  552. package/lib/ele-tab-tool/props.d.ts +2 -0
  553. package/lib/ele-tab-tool/props.js +2 -2
  554. package/lib/ele-tab-wrap/props.d.ts +2 -0
  555. package/lib/ele-tab-wrap/props.js +2 -2
  556. package/lib/ele-table/index.d.ts +12 -0
  557. package/lib/ele-table/index.js +2 -0
  558. package/lib/ele-table/props.d.ts +10 -0
  559. package/lib/ele-table/props.js +11 -4
  560. package/lib/ele-table/style/css-var.scss +1 -0
  561. package/lib/ele-table/style/index.scss +103 -22
  562. package/lib/ele-table-select/index.d.ts +39 -15
  563. package/lib/ele-table-select/index.js +1 -5
  564. package/lib/ele-table-select/props.d.ts +32 -1
  565. package/lib/ele-table-select/props.js +31 -31
  566. package/lib/ele-table-select/style/css-var.scss +1 -0
  567. package/lib/ele-table-select/style/index.scss +3 -3
  568. package/lib/ele-table-select/types/index.d.ts +0 -10
  569. package/lib/ele-tabs/components/tab-title.d.ts +19 -5
  570. package/lib/ele-tabs/components/tab-title.js +7 -7
  571. package/lib/ele-tabs/index.d.ts +4 -5
  572. package/lib/ele-tabs/index.js +1 -1
  573. package/lib/ele-tabs/props.d.ts +16 -3
  574. package/lib/ele-tabs/props.js +13 -13
  575. package/lib/ele-tabs/style/css-var.scss +1 -0
  576. package/lib/ele-tabs/style/index.scss +46 -22
  577. package/lib/ele-text/props.d.ts +10 -0
  578. package/lib/ele-text/props.js +10 -10
  579. package/lib/ele-text/style/css-var.scss +1 -0
  580. package/lib/ele-text/style/index.scss +4 -4
  581. package/lib/ele-tool/props.d.ts +3 -0
  582. package/lib/ele-tool/props.js +3 -3
  583. package/lib/ele-tool/style/css-var.scss +1 -0
  584. package/lib/ele-tool/style/index.scss +1 -2
  585. package/lib/ele-toolbar/props.d.ts +6 -0
  586. package/lib/ele-toolbar/props.js +6 -6
  587. package/lib/ele-toolbar/style/css-var.scss +1 -0
  588. package/lib/ele-toolbar/style/index.scss +2 -2
  589. package/lib/ele-tooltip/index.d.ts +11 -10
  590. package/lib/ele-tooltip/index.js +38 -30
  591. package/lib/ele-tooltip/props.d.ts +8 -1
  592. package/lib/ele-tooltip/props.js +9 -5
  593. package/lib/ele-tooltip/style/css-var.scss +72 -0
  594. package/lib/ele-tooltip/style/index.js +0 -1
  595. package/lib/ele-tooltip/style/index.scss +8 -2
  596. package/lib/ele-tour/index.d.ts +4 -6
  597. package/lib/ele-tour/index.js +29 -37
  598. package/lib/ele-tour/props.d.ts +6 -0
  599. package/lib/ele-tour/props.js +6 -6
  600. package/lib/ele-tour/style/index.js +1 -1
  601. package/lib/ele-tour/style/index.scss +6 -2
  602. package/lib/ele-tour/types/index.d.ts +2 -1
  603. package/lib/ele-tour/util.d.ts +2 -2
  604. package/lib/ele-tour/util.js +6 -2
  605. package/lib/ele-upload-list/components/list-item.d.ts +11 -1
  606. package/lib/ele-upload-list/components/list-item.js +5 -5
  607. package/lib/ele-upload-list/index.d.ts +1 -1
  608. package/lib/ele-upload-list/index.js +4 -4
  609. package/lib/ele-upload-list/props.d.ts +18 -0
  610. package/lib/ele-upload-list/props.js +18 -18
  611. package/lib/ele-virtual-table/components/body-cell.d.ts +150 -0
  612. package/lib/ele-virtual-table/components/body-cell.js +413 -0
  613. package/lib/ele-virtual-table/components/body-row.d.ts +148 -0
  614. package/lib/ele-virtual-table/components/body-row.js +205 -0
  615. package/lib/ele-virtual-table/components/cell-checkbox.d.ts +32 -0
  616. package/lib/ele-virtual-table/components/cell-checkbox.js +48 -0
  617. package/lib/ele-virtual-table/components/cell-filter.d.ts +48 -0
  618. package/lib/ele-virtual-table/components/cell-filter.js +210 -0
  619. package/lib/ele-virtual-table/components/expand-row.d.ts +18 -0
  620. package/lib/ele-virtual-table/components/expand-row.js +28 -0
  621. package/lib/ele-virtual-table/components/footer-row.d.ts +43 -0
  622. package/lib/ele-virtual-table/components/footer-row.js +104 -0
  623. package/lib/ele-virtual-table/components/header-cell.d.ts +97 -0
  624. package/lib/ele-virtual-table/components/header-cell.js +260 -0
  625. package/lib/ele-virtual-table/components/header-row.d.ts +89 -0
  626. package/lib/ele-virtual-table/components/header-row.js +125 -0
  627. package/lib/ele-virtual-table/index.js +986 -0
  628. package/lib/ele-virtual-table/props.d.ts +148 -0
  629. package/lib/ele-virtual-table/props.js +13 -0
  630. package/lib/ele-virtual-table/style/css-var.scss +127 -0
  631. package/lib/ele-virtual-table/style/index.js +10 -0
  632. package/lib/ele-virtual-table/style/index.scss +666 -0
  633. package/lib/ele-virtual-table/types/index.d.ts +157 -0
  634. package/lib/ele-virtual-table/util.d.ts +200 -0
  635. package/lib/ele-virtual-table/util.js +562 -0
  636. package/lib/ele-watermark/index.js +4 -0
  637. package/lib/ele-watermark/props.d.ts +12 -0
  638. package/lib/ele-watermark/props.js +12 -12
  639. package/lib/icons/FilterFilled.d.ts +2 -0
  640. package/lib/icons/FilterFilled.js +22 -0
  641. package/lib/icons/HomeOutlined.d.ts +2 -0
  642. package/lib/icons/HomeOutlined.js +47 -0
  643. package/lib/icons/index.d.ts +2 -0
  644. package/lib/icons/index.js +4 -0
  645. package/lib/lang/zh_TW.js +0 -1
  646. package/lib/style/index.scss +2 -0
  647. package/lib/style/themes/dark.scss +6 -1
  648. package/lib/style/themes/default.scss +57 -45
  649. package/lib/style/themes/rounded.scss +12 -10
  650. package/lib/style/themes/theme-util.scss +4 -0
  651. package/lib/style/util.scss +6 -6
  652. package/lib/utils/core.d.ts +10 -0
  653. package/lib/utils/core.js +2 -3
  654. package/lib/utils/validate.js +2 -2
  655. package/package.json +30 -30
  656. package/typings/global.d.ts +3 -1
  657. package/es/ele-pro-table/components/table-view.js +0 -138
  658. package/lib/ele-pro-table/components/table-view.js +0 -137
@@ -0,0 +1,987 @@
1
+ import { defineComponent, ref, reactive, computed, onDeactivated, onActivated, watch, resolveComponent, openBlock, createElementBlock, normalizeClass, createBlock, mergeProps, createSlots, withCtx, renderList, renderSlot, normalizeProps, guardReactiveProps, createCommentVNode, toDisplayString, createVNode } from "vue";
2
+ import { ElTableV2, ElEmpty, useLocale } from "element-plus";
3
+ import { eachTree } from "../utils/core";
4
+ import EleTooltip from "../ele-tooltip/index";
5
+ import { useEmits, getEmptyProps, isReserveSelected, getValue, mergeTooltipProps, getGlobalTooltipProps } from "../ele-data-table/util";
6
+ import { useState, useAutoResize, getDefaultSort, getDefaultFiltered, getTreeProps, getRowHeight, isAutoRowHeight, getTableHeight, analyseColumns, transformTableData, getSelectableFunc, getColKey, getSortBy, getOrderValue, computeColSizes, colSizesIsChanged, getTableColumns, getColumnByKey, getSortOrder, cellIsOverflow } from "./util";
7
+ import HeaderRow from "./components/header-row";
8
+ import BodyRow from "./components/body-row";
9
+ import ExpandRow from "./components/expand-row";
10
+ import FooterRow from "./components/footer-row";
11
+ import { virtualTableProps, virtualTableEmits } from "./props";
12
+ const _sfc_main = defineComponent({
13
+ name: "EleVirtualTable",
14
+ components: {
15
+ ElTableV2,
16
+ ElEmpty,
17
+ EleTooltip,
18
+ HeaderRow,
19
+ BodyRow,
20
+ ExpandRow,
21
+ FooterRow
22
+ },
23
+ props: virtualTableProps,
24
+ emits: virtualTableEmits,
25
+ setup(props, { emit, slots }) {
26
+ const { t } = useLocale();
27
+ const events = useEmits(emit);
28
+ const {
29
+ getCurrent,
30
+ setCurrent,
31
+ getSelected,
32
+ addSelected,
33
+ removeSelected,
34
+ clearSelected,
35
+ getScrollTop,
36
+ cacheScrollTop
37
+ } = useState();
38
+ const { wrapWidth, wrapHeight } = useAutoResize(() => rootRef.value);
39
+ const rootRef = ref(null);
40
+ const tableRef = ref(null);
41
+ const tableKey = ref(1);
42
+ const headerRows = ref([]);
43
+ const bodyCols = ref([]);
44
+ const headerRowSizes = ref([]);
45
+ const bodyColSizes = ref([]);
46
+ const colsSumWidth = ref(0);
47
+ const tableWidth = ref(0);
48
+ const tableHeight = ref(0);
49
+ const tableData = ref([]);
50
+ const tableColumns = ref([]);
51
+ const tableScrollLeft = ref(0);
52
+ const currentRowKey = ref(props.currentRowKey ?? null);
53
+ const selectedRowKeys = ref(/* @__PURE__ */ new Set([]));
54
+ const isCheckAll = ref(false);
55
+ const expandedRowKeys = ref([]);
56
+ const sortBy = ref(getDefaultSort(props.defaultSort));
57
+ const filtered = reactive(getDefaultFiltered(props.columns));
58
+ const tableTooltipProps = reactive({
59
+ placement: "top",
60
+ trigger: "click",
61
+ offset: 0,
62
+ hideAfter: 0,
63
+ content: "",
64
+ virtualRef: void 0,
65
+ virtualTriggering: true,
66
+ disabled: true,
67
+ visible: false,
68
+ teleported: false,
69
+ transition: "ele-transition-none"
70
+ });
71
+ const slotKeys = computed(() => {
72
+ return Object.keys(slots).filter(
73
+ (k) => !["default", "empty", "append"].includes(k)
74
+ );
75
+ });
76
+ const treeTableProps = computed(() => {
77
+ return getTreeProps(props.treeProps);
78
+ });
79
+ const treeChildrenName = computed(() => {
80
+ return treeTableProps.value.childrenName;
81
+ });
82
+ const treeHasChildrenName = computed(() => {
83
+ return treeTableProps.value.hasChildrenName;
84
+ });
85
+ const isTreeData = computed(() => {
86
+ return tableData.value.some((d) => {
87
+ return d.children && d.children.length || props.lazy && d[treeHasChildrenName.value] === true;
88
+ });
89
+ });
90
+ const tableExpandCol = computed(() => {
91
+ return bodyCols.value.find((d) => {
92
+ return !!(d && d.originalCol && d.originalCol.type === "expand");
93
+ });
94
+ });
95
+ const hasExpandCol = computed(() => {
96
+ return !!tableExpandCol.value;
97
+ });
98
+ const tableExpandColumnKey = computed(() => {
99
+ if (tableExpandCol.value) {
100
+ return tableExpandCol.value.key;
101
+ }
102
+ if (!isTreeData.value) {
103
+ return;
104
+ }
105
+ const treeCol = bodyCols.value.find((d) => {
106
+ if (!d || !d.key || !d.originalCol) {
107
+ return false;
108
+ }
109
+ const colType = d.originalCol.type;
110
+ return !colType || !["selection", "index"].includes(colType);
111
+ });
112
+ return treeCol ? treeCol.key : void 0;
113
+ });
114
+ const tableRowHeight = computed(() => {
115
+ return getRowHeight(props.size, props.rowHeight);
116
+ });
117
+ const autoRowHeight = computed(() => {
118
+ return isAutoRowHeight(
119
+ hasExpandCol.value,
120
+ bodyCols.value,
121
+ props.showOverflowTooltip
122
+ );
123
+ });
124
+ const headerNums = computed(() => {
125
+ return props.showHeader ? headerRows.value.length : 0;
126
+ });
127
+ const hasFooter = computed(() => {
128
+ return !!(props.showSummary && tableData.value.length);
129
+ });
130
+ const tableProps = computed(() => {
131
+ const rowHeight = tableRowHeight.value;
132
+ const headerHeight = new Array(headerNums.value).fill(rowHeight);
133
+ const opt = {
134
+ cache: 2,
135
+ estimatedRowHeight: autoRowHeight.value ? rowHeight : void 0,
136
+ headerClass: (params) => {
137
+ const rowClass = props.headerRowClassName;
138
+ const classes = ["ele-table-head-tr"];
139
+ if (typeof rowClass === "function") {
140
+ const custom = rowClass({ rowIndex: params.headerIndex });
141
+ if (custom) {
142
+ classes.push(custom);
143
+ }
144
+ } else if (typeof rowClass === "string" && rowClass) {
145
+ classes.push(rowClass);
146
+ }
147
+ return classes.join(" ");
148
+ },
149
+ headerProps: (params) => {
150
+ const opt2 = { rowIndex: params.headerIndex };
151
+ const style = props.headerRowStyle;
152
+ return { style: typeof style === "function" ? style(opt2) : style };
153
+ },
154
+ //headerCellProps: void 0,
155
+ headerHeight: headerNums.value ? headerHeight : 0,
156
+ footerHeight: hasFooter.value ? rowHeight : void 0,
157
+ rowClass: (params) => {
158
+ const classes = ["ele-table-tr"];
159
+ const row = params.rowData;
160
+ const rowIndex = row._rowIndex;
161
+ if (row && row._isExpandRow === true) {
162
+ classes.push("is-expand-row");
163
+ } else if (row) {
164
+ if (props.stripe && (rowIndex + 1) % 2 === 0) {
165
+ classes.push("is-even");
166
+ }
167
+ if (props.highlightCurrentRow && currentRowKey.value != null && currentRowKey.value === row._rowKey) {
168
+ classes.push("is-current");
169
+ }
170
+ const rowClass = props.rowClassName;
171
+ if (typeof rowClass === "function") {
172
+ const custom = rowClass({ row, rowIndex });
173
+ if (custom) {
174
+ classes.push(custom);
175
+ }
176
+ } else if (typeof rowClass === "string" && rowClass) {
177
+ classes.push(rowClass);
178
+ }
179
+ }
180
+ return classes.join(" ");
181
+ },
182
+ rowKey: "_rowKey",
183
+ rowProps: (params) => {
184
+ const row = params.rowData;
185
+ const opt2 = { row, rowIndex: row._rowIndex };
186
+ const style = props.rowStyle;
187
+ return { style: typeof style === "function" ? style(opt2) : style };
188
+ },
189
+ rowHeight: autoRowHeight.value ? void 0 : rowHeight,
190
+ //cellProps: void 0,
191
+ columns: tableColumns.value,
192
+ data: tableData.value,
193
+ //dataGetter: void 0,
194
+ //fixedData: void 0,
195
+ expandColumnKey: tableExpandColumnKey.value,
196
+ expandedRowKeys: expandedRowKeys.value,
197
+ defaultExpandedRowKeys: expandedRowKeys.value,
198
+ //class: void 0,
199
+ fixed: true,
200
+ width: tableWidth.value,
201
+ height: tableHeight.value,
202
+ //maxHeight: void 0,
203
+ hScrollbarSize: 0,
204
+ vScrollbarSize: 0,
205
+ scrollbarAlwaysOn: props.scrollbarAlwaysOn,
206
+ sortBy: sortBy.value
207
+ //sortState: void 0
208
+ };
209
+ return opt;
210
+ });
211
+ const isIndeterminate = computed(() => {
212
+ return !!(selectedRowKeys.value.size && !isCheckAll.value);
213
+ });
214
+ const isPingLeft = computed(() => {
215
+ return tableScrollLeft.value > 1;
216
+ });
217
+ const isPingRight = computed(() => {
218
+ const scrollWidth = colsSumWidth.value - tableWidth.value - 1;
219
+ return scrollWidth > 1 && tableScrollLeft.value < scrollWidth;
220
+ });
221
+ const tableSumText = computed(() => {
222
+ return props.sumText ?? t("el.table.sumText");
223
+ });
224
+ const tableEmptyText = computed(() => {
225
+ return props.errorText || props.emptyText || t("el.table.emptyText");
226
+ });
227
+ const tableEmptyProps = computed(() => {
228
+ return getEmptyProps(props.emptyProps, tableEmptyText.value);
229
+ });
230
+ const triggerTooltip = (cell, col) => {
231
+ const cellText = cell.innerText;
232
+ const tooltip = mergeTooltipProps(
233
+ col ? col.showOverflowTooltip : void 0,
234
+ getGlobalTooltipProps(
235
+ props.showOverflowTooltip,
236
+ props.tooltipEffect,
237
+ props.tooltipOptions
238
+ )
239
+ );
240
+ if (cellText && !!tooltip && cellIsOverflow(cell)) {
241
+ tableTooltipProps.content = cellText;
242
+ const excludes = [
243
+ "virtualRef",
244
+ "virtualTriggering",
245
+ "disabled",
246
+ "visible",
247
+ "teleported"
248
+ ];
249
+ Object.keys(tooltip).forEach((key) => {
250
+ const value = tooltip[key];
251
+ if (!excludes.includes(key) && tableTooltipProps[key] !== value) {
252
+ tableTooltipProps[key] = value;
253
+ }
254
+ });
255
+ tableTooltipProps.virtualRef = cell;
256
+ tableTooltipProps.disabled = false;
257
+ tableTooltipProps.visible = true;
258
+ } else {
259
+ hideTooltip();
260
+ }
261
+ };
262
+ const hideTooltip = () => {
263
+ tableTooltipProps.visible = false;
264
+ tableTooltipProps.disabled = true;
265
+ };
266
+ const onTableFilterChange = (params) => {
267
+ const key = getColKey(params.column);
268
+ if (key) {
269
+ filtered[key] = params.value;
270
+ events.onFilterChange(filtered);
271
+ }
272
+ };
273
+ const onCellCheckedChange = (row, checked) => {
274
+ toggleSelected(row, checked);
275
+ const selection = getSelected();
276
+ events.onSelect(selection, row);
277
+ events.onSelectionChange(selection);
278
+ };
279
+ const onCellExpandChange = (row, expanded, children) => {
280
+ if (expanded && children != null) {
281
+ const childs = transformTableData(
282
+ children,
283
+ hasExpandCol.value,
284
+ treeChildrenName.value,
285
+ props.rowKey,
286
+ getSelectableFunc(bodyCols.value)
287
+ );
288
+ let index2 = -1;
289
+ eachTree(tableData.value, (d) => {
290
+ index2++;
291
+ if (d._rowKey === row._rowKey) {
292
+ d.children = childs;
293
+ if (!childs.length) {
294
+ d[treeHasChildrenName.value] = false;
295
+ }
296
+ }
297
+ d._rowIndex = index2;
298
+ });
299
+ if (!childs.length) {
300
+ return;
301
+ }
302
+ }
303
+ toggleRowExpansion(row, expanded);
304
+ };
305
+ const onCellClick = (row, col, e) => {
306
+ const cell = e.currentTarget;
307
+ events.onCellClick(row, col, cell, e);
308
+ if (props.highlightCurrentRow) {
309
+ setCurrentRow(row);
310
+ }
311
+ if (props.rowClickChecked && !row._rowDisabled) {
312
+ if (props.rowClickChecked === "smart" && selectedRowKeys.value.size === 1) {
313
+ setSelectedRows([row]);
314
+ } else {
315
+ toggleRowSelection(row);
316
+ }
317
+ }
318
+ events.onRowClick(row, col, e);
319
+ };
320
+ const onCellDblclick = (row, col, e) => {
321
+ const cell = e.currentTarget;
322
+ events.onCellDblclick(row, col, cell, e);
323
+ events.onRowDblclick(row, col, e);
324
+ };
325
+ const onCellContextmenu = (row, col, e) => {
326
+ const cell = e.currentTarget;
327
+ events.onCellContextmenu(row, col, cell, e);
328
+ events.onRowContextmenu(row, col, e);
329
+ };
330
+ const onCellMouseenter = (row, col, e) => {
331
+ const cell = e.currentTarget;
332
+ triggerTooltip(cell, col);
333
+ events.onCellMouseEnter(row, col, cell, e);
334
+ };
335
+ const onCellMouseleave = (row, col, e) => {
336
+ const cell = e.currentTarget;
337
+ events.onCellMouseLeave(row, col, cell, e);
338
+ };
339
+ const onHeaderCellClick = (col, e) => {
340
+ if (col && (col.sortable === true || col.sortable === "custom")) {
341
+ sortBy.value = getSortBy(sortBy.value, col);
342
+ events.onSortChange({
343
+ prop: col.property || col.prop,
344
+ order: getOrderValue(sortBy.value ? sortBy.value.order : void 0),
345
+ column: col
346
+ });
347
+ }
348
+ events.onHeaderClick(col, e);
349
+ };
350
+ const onHeaderCellContextmenu = (col, e) => {
351
+ events.onHeaderContextmenu(col, e);
352
+ };
353
+ const onHeaderCellMouseenter = () => {
354
+ hideTooltip();
355
+ };
356
+ const onFooterCellMouseenter = (e) => {
357
+ triggerTooltip(e.currentTarget, { showOverflowTooltip: true });
358
+ };
359
+ const onExpandCellMouseenter = () => {
360
+ hideTooltip();
361
+ };
362
+ const onTableMouseleave = () => {
363
+ hideTooltip();
364
+ };
365
+ const onTableScroll = (option) => {
366
+ cacheScrollTop(option.scrollTop);
367
+ const scrollLeft = option.scrollLeft;
368
+ if (tableScrollLeft.value !== scrollLeft) {
369
+ tableScrollLeft.value = scrollLeft;
370
+ }
371
+ if (hasFooter.value && tableRef.value && tableRef.value.$el) {
372
+ const childs = tableRef.value.$el.children;
373
+ if (childs) {
374
+ for (let i = 0; i < childs.length; i++) {
375
+ const el = childs[i];
376
+ if (el.classList.contains("el-table-v2__footer")) {
377
+ if (el.scrollLeft != scrollLeft) {
378
+ el.scrollLeft = scrollLeft;
379
+ }
380
+ break;
381
+ }
382
+ }
383
+ }
384
+ }
385
+ };
386
+ const updateTableData = () => {
387
+ tableData.value = transformTableData(
388
+ props.data,
389
+ hasExpandCol.value,
390
+ treeChildrenName.value,
391
+ props.rowKey,
392
+ getSelectableFunc(bodyCols.value)
393
+ );
394
+ if (props.defaultExpandAll) {
395
+ toggleRowExpansionAll(true);
396
+ } else if (props.expandRowKeys && props.expandRowKeys.length) {
397
+ expandedRowKeys.value = [...props.expandRowKeys];
398
+ } else {
399
+ toggleRowExpansionAll(false);
400
+ }
401
+ updateCurrentRowKey(currentRowKey.value);
402
+ };
403
+ const updateCurrentRowKey = (currentKey) => {
404
+ if (currentKey != null) {
405
+ if (!tableData.value.length) {
406
+ setCurrentRow();
407
+ return;
408
+ }
409
+ eachTree(tableData.value, (d) => {
410
+ if (d._rowKey === currentKey && !d._isExpandRow) {
411
+ setCurrentRow(d);
412
+ return false;
413
+ }
414
+ });
415
+ } else if (currentRowKey.value != null) {
416
+ setCurrentRow();
417
+ }
418
+ };
419
+ const updateIsCheckAll = () => {
420
+ if (!tableData.value.length || !selectedRowKeys.value.size) {
421
+ isCheckAll.value = false;
422
+ return;
423
+ }
424
+ let checked = true;
425
+ eachTree(tableData.value, (d) => {
426
+ if (!d._isExpandRow && !d._rowDisabled && d._rowKey != null && !selectedRowKeys.value.has(d._rowKey)) {
427
+ checked = false;
428
+ return false;
429
+ }
430
+ });
431
+ isCheckAll.value = checked;
432
+ };
433
+ const toggleSelected = (row, selected) => {
434
+ const dataKey = getValue(row, props.rowKey);
435
+ if (dataKey == null) {
436
+ return;
437
+ }
438
+ const isChecked = selectedRowKeys.value.has(dataKey);
439
+ const checked = selected == null ? !isChecked : selected;
440
+ if (checked === isChecked) {
441
+ return;
442
+ }
443
+ if (checked) {
444
+ selectedRowKeys.value.add(dataKey);
445
+ addSelected(dataKey, row);
446
+ } else {
447
+ selectedRowKeys.value.delete(dataKey);
448
+ removeSelected(dataKey);
449
+ }
450
+ updateIsCheckAll();
451
+ };
452
+ const setSelectedRows = (rows) => {
453
+ if (rows == null) {
454
+ return;
455
+ }
456
+ selectedRowKeys.value.clear();
457
+ clearSelected();
458
+ rows.forEach((r) => {
459
+ const k = getValue(r, props.rowKey);
460
+ if (k != null) {
461
+ selectedRowKeys.value.add(k);
462
+ addSelected(k, r);
463
+ }
464
+ });
465
+ updateIsCheckAll();
466
+ events.onSelectionChange(getSelected());
467
+ };
468
+ const setSelectedRowKeys = (keys) => {
469
+ if (!keys) {
470
+ return;
471
+ }
472
+ selectedRowKeys.value.clear();
473
+ clearSelected();
474
+ if (keys.length) {
475
+ eachTree(tableData.value, (d) => {
476
+ if (!d._isExpandRow && d._rowKey != null && keys.includes(d._rowKey)) {
477
+ selectedRowKeys.value.add(d._rowKey);
478
+ addSelected(d._rowKey, d);
479
+ }
480
+ });
481
+ }
482
+ updateIsCheckAll();
483
+ events.onSelectionChange(getSelected());
484
+ };
485
+ const toggleRowExpansionAll = (expanded) => {
486
+ if (!expanded) {
487
+ if (expandedRowKeys.value.length) {
488
+ expandedRowKeys.value = [];
489
+ events.onExpandChange(void 0, []);
490
+ }
491
+ return;
492
+ }
493
+ const keys = [];
494
+ const rows = [];
495
+ eachTree(tableData.value, (row) => {
496
+ if (row.children && row.children.length && row._rowKey != null) {
497
+ keys.push(row._rowKey);
498
+ rows.push(row);
499
+ }
500
+ });
501
+ expandedRowKeys.value = keys;
502
+ events.onExpandChange(void 0, rows);
503
+ };
504
+ const clearSelection = () => {
505
+ selectedRowKeys.value.clear();
506
+ clearSelected();
507
+ isCheckAll.value = false;
508
+ events.onSelectionChange([]);
509
+ };
510
+ const getSelectionRows = () => {
511
+ return getSelected();
512
+ };
513
+ const toggleRowSelection = (row, selected) => {
514
+ toggleSelected(row, selected);
515
+ events.onSelectionChange(getSelected());
516
+ };
517
+ const toggleAllSelection = () => {
518
+ if (!tableData.value.length) {
519
+ return;
520
+ }
521
+ if (isCheckAll.value || isIndeterminate.value && !props.selectOnIndeterminate) {
522
+ if (selectedRowKeys.value.size) {
523
+ selectedRowKeys.value.clear();
524
+ clearSelected();
525
+ isCheckAll.value = false;
526
+ events.onSelectionChange([]);
527
+ events.onSelectAll([]);
528
+ }
529
+ return;
530
+ }
531
+ eachTree(tableData.value, (d) => {
532
+ if (!d._isExpandRow && !d._rowDisabled && d._rowKey != null) {
533
+ selectedRowKeys.value.add(d._rowKey);
534
+ addSelected(d._rowKey, d);
535
+ }
536
+ });
537
+ isCheckAll.value = true;
538
+ const selection = getSelected();
539
+ events.onSelectionChange(selection);
540
+ events.onSelectAll(selection);
541
+ };
542
+ const toggleRowExpansion = (row, expanded) => {
543
+ const dataKey = getValue(row, props.rowKey);
544
+ if (dataKey == null) {
545
+ return;
546
+ }
547
+ const isSpread = expandedRowKeys.value.includes(dataKey);
548
+ const spread = expanded == null ? !isSpread : expanded;
549
+ if (spread === isSpread) {
550
+ return;
551
+ }
552
+ if (spread) {
553
+ expandedRowKeys.value.push(dataKey);
554
+ } else {
555
+ const index2 = expandedRowKeys.value.findIndex((t2) => t2 === dataKey);
556
+ expandedRowKeys.value.splice(index2, 1);
557
+ }
558
+ events.onExpandChange(row, spread);
559
+ };
560
+ const setCurrentRow = (row) => {
561
+ const oldCurrentRow = getCurrent();
562
+ if (oldCurrentRow == null && row == null || oldCurrentRow === row) {
563
+ return;
564
+ }
565
+ if (row == null) {
566
+ if (currentRowKey.value != null) {
567
+ currentRowKey.value = null;
568
+ }
569
+ } else {
570
+ const dataKey = getValue(row, props.rowKey);
571
+ if (dataKey != null && currentRowKey.value !== dataKey) {
572
+ currentRowKey.value = dataKey;
573
+ }
574
+ }
575
+ setCurrent(row);
576
+ events.onCurrentChange(row, oldCurrentRow);
577
+ };
578
+ const clearSort = () => {
579
+ if (sortBy.value != null) {
580
+ sortBy.value = void 0;
581
+ }
582
+ };
583
+ const clearFilter = (columnKeys) => {
584
+ const keys = columnKeys == null ? Object.keys(filtered) : columnKeys;
585
+ keys.forEach((key) => {
586
+ const v = filtered[key];
587
+ if (v == null || v.length) {
588
+ filtered[key] = [];
589
+ }
590
+ });
591
+ };
592
+ const doLayout = (force) => {
593
+ const { width, sumWidth, rowSizes, colSizes } = computeColSizes(
594
+ bodyCols.value,
595
+ headerRows.value,
596
+ wrapWidth.value
597
+ );
598
+ const isUpdate = colsSumWidth.value && colsSumWidth.value !== sumWidth;
599
+ const isSizesChanged = colSizesIsChanged(bodyColSizes.value, colSizes);
600
+ tableWidth.value = width;
601
+ colsSumWidth.value = sumWidth;
602
+ headerRowSizes.value = rowSizes;
603
+ if (force || isSizesChanged) {
604
+ bodyColSizes.value = colSizes;
605
+ tableColumns.value = getTableColumns(
606
+ bodyCols.value,
607
+ bodyColSizes.value
608
+ );
609
+ }
610
+ if (isUpdate) {
611
+ tableKey.value++;
612
+ }
613
+ };
614
+ const sort = (prop, order) => {
615
+ const col = getColumnByKey(props.columns, void 0, prop);
616
+ sortBy.value = {
617
+ key: getColKey(col),
618
+ order: getSortOrder(order)
619
+ };
620
+ events.onSortChange({ prop, order, column: col });
621
+ };
622
+ const scrollTo = (options, yCoord) => {
623
+ if (!tableRef.value) {
624
+ return;
625
+ }
626
+ const isNumber = typeof options === "number";
627
+ const top = isNumber ? options : options.top;
628
+ const left = isNumber ? yCoord : options.left;
629
+ tableRef.value.scrollTo({
630
+ scrollTop: top,
631
+ scrollLeft: left
632
+ });
633
+ };
634
+ const setScrollTop = (top) => {
635
+ if (!tableRef.value) {
636
+ return;
637
+ }
638
+ tableRef.value.scrollToTop(top);
639
+ };
640
+ const setScrollLeft = (left) => {
641
+ if (!tableRef.value) {
642
+ return;
643
+ }
644
+ tableRef.value.scrollToLeft(left);
645
+ };
646
+ const scrollToRow = (row, strategy) => {
647
+ if (!tableRef.value) {
648
+ return;
649
+ }
650
+ tableRef.value.scrollToRow(row, strategy);
651
+ };
652
+ onDeactivated(() => {
653
+ hideTooltip();
654
+ });
655
+ onActivated(() => {
656
+ const top = getScrollTop();
657
+ const left = tableScrollLeft.value;
658
+ if (top || left) {
659
+ scrollTo(top ? top - 1 : 0, left ? left - 1 : 0);
660
+ }
661
+ });
662
+ watch(
663
+ [
664
+ () => props.height,
665
+ () => props.maxHeight,
666
+ tableRowHeight,
667
+ headerNums,
668
+ hasFooter,
669
+ wrapHeight
670
+ ],
671
+ () => {
672
+ const minRows = headerNums.value + (hasFooter.value ? 2 : 1);
673
+ const height = getTableHeight(
674
+ props.height,
675
+ props.maxHeight,
676
+ minRows * tableRowHeight.value,
677
+ wrapHeight.value
678
+ );
679
+ if (height !== tableHeight.value) {
680
+ tableHeight.value = height;
681
+ }
682
+ },
683
+ { immediate: true }
684
+ );
685
+ watch(
686
+ () => props.columns,
687
+ (columns) => {
688
+ const { cols, rows } = analyseColumns(columns);
689
+ bodyCols.value = cols;
690
+ headerRows.value = rows;
691
+ tableData.value = transformTableData(
692
+ props.data,
693
+ hasExpandCol.value,
694
+ treeChildrenName.value,
695
+ props.rowKey,
696
+ getSelectableFunc(bodyCols.value)
697
+ );
698
+ doLayout(true);
699
+ },
700
+ {
701
+ deep: true,
702
+ immediate: true
703
+ }
704
+ );
705
+ watch(wrapWidth, () => {
706
+ doLayout();
707
+ });
708
+ watch(
709
+ [hasExpandCol, treeChildrenName],
710
+ () => {
711
+ updateTableData();
712
+ },
713
+ { immediate: true }
714
+ );
715
+ watch(
716
+ () => props.data,
717
+ () => {
718
+ updateTableData();
719
+ if (selectedRowKeys.value.size && !isReserveSelected(props.columns)) {
720
+ selectedRowKeys.value.clear();
721
+ clearSelected();
722
+ isCheckAll.value = false;
723
+ events.onSelectionChange(getSelected());
724
+ } else {
725
+ updateIsCheckAll();
726
+ }
727
+ },
728
+ { deep: true }
729
+ );
730
+ watch(
731
+ () => props.rowKey,
732
+ () => {
733
+ isCheckAll.value = false;
734
+ clearSelection();
735
+ setCurrentRow();
736
+ toggleRowExpansionAll(false);
737
+ updateTableData();
738
+ }
739
+ );
740
+ watch(
741
+ () => props.currentRowKey,
742
+ (currentKey) => {
743
+ updateCurrentRowKey(currentKey);
744
+ }
745
+ );
746
+ watch(
747
+ () => props.expandRowKeys,
748
+ (expandKeys) => {
749
+ if (expandKeys != null) {
750
+ expandedRowKeys.value = expandKeys;
751
+ }
752
+ },
753
+ { deep: true }
754
+ );
755
+ return {
756
+ rootRef,
757
+ tableRef,
758
+ tableKey,
759
+ wrapWidth,
760
+ headerRows,
761
+ bodyCols,
762
+ headerRowSizes,
763
+ bodyColSizes,
764
+ colsSumWidth,
765
+ tableWidth,
766
+ tableData,
767
+ isCheckAll,
768
+ isIndeterminate,
769
+ selectedRowKeys,
770
+ expandedRowKeys,
771
+ sortBy,
772
+ filtered,
773
+ tableTooltipProps,
774
+ slotKeys,
775
+ treeHasChildrenName,
776
+ tableExpandCol,
777
+ hasExpandCol,
778
+ tableExpandColumnKey,
779
+ tableRowHeight,
780
+ autoRowHeight,
781
+ hasFooter,
782
+ tableProps,
783
+ isPingLeft,
784
+ isPingRight,
785
+ tableSumText,
786
+ tableEmptyText,
787
+ tableEmptyProps,
788
+ onTableFilterChange,
789
+ onCellCheckedChange,
790
+ onCellExpandChange,
791
+ onCellClick,
792
+ onCellDblclick,
793
+ onCellContextmenu,
794
+ onCellMouseenter,
795
+ onCellMouseleave,
796
+ onHeaderCellClick,
797
+ onHeaderCellContextmenu,
798
+ onHeaderCellMouseenter,
799
+ onFooterCellMouseenter,
800
+ onExpandCellMouseenter,
801
+ onTableMouseleave,
802
+ onTableScroll,
803
+ setSelectedRows,
804
+ setSelectedRowKeys,
805
+ toggleRowExpansionAll,
806
+ clearSelection,
807
+ getSelectionRows,
808
+ toggleRowSelection,
809
+ toggleAllSelection,
810
+ toggleRowExpansion,
811
+ setCurrentRow,
812
+ clearSort,
813
+ clearFilter,
814
+ doLayout,
815
+ sort,
816
+ scrollTo,
817
+ setScrollTop,
818
+ setScrollLeft,
819
+ scrollToRow
820
+ };
821
+ }
822
+ });
823
+ const _export_sfc = (sfc, props) => {
824
+ const target = sfc.__vccOpts || sfc;
825
+ for (const [key, val] of props) {
826
+ target[key] = val;
827
+ }
828
+ return target;
829
+ };
830
+ const _hoisted_1 = {
831
+ key: 0,
832
+ class: "ele-table-empty-text"
833
+ };
834
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
835
+ const _component_HeaderRow = resolveComponent("HeaderRow");
836
+ const _component_ExpandRow = resolveComponent("ExpandRow");
837
+ const _component_BodyRow = resolveComponent("BodyRow");
838
+ const _component_FooterRow = resolveComponent("FooterRow");
839
+ const _component_ElEmpty = resolveComponent("ElEmpty");
840
+ const _component_ElTableV2 = resolveComponent("ElTableV2");
841
+ const _component_EleTooltip = resolveComponent("EleTooltip");
842
+ return openBlock(), createElementBlock("div", {
843
+ ref: "rootRef",
844
+ class: normalizeClass([
845
+ "ele-virtual-table",
846
+ { "is-border": _ctx.border || _ctx.headerRows.length > 1 },
847
+ { "is-stripe": _ctx.stripe },
848
+ { "is-sticky": _ctx.sticky },
849
+ { "has-footer": _ctx.hasFooter },
850
+ { "hide-header": !_ctx.showHeader },
851
+ { "hide-bottom-line": !_ctx.bottomLine },
852
+ { "is-ping-left": _ctx.isPingLeft },
853
+ { "is-ping-right": _ctx.isPingRight },
854
+ { "is-auto-width": _ctx.wrapWidth === _ctx.tableWidth },
855
+ { "is-small": _ctx.size === "small" },
856
+ { "is-large": _ctx.size === "large" }
857
+ ]),
858
+ onMouseleave: _cache[1] || (_cache[1] = (...args) => _ctx.onTableMouseleave && _ctx.onTableMouseleave(...args))
859
+ }, [
860
+ _ctx.tableProps.width ? (openBlock(), createBlock(_component_ElTableV2, mergeProps({ key: 0 }, _ctx.tableProps, {
861
+ key: _ctx.tableKey,
862
+ ref: "tableRef",
863
+ onScroll: _ctx.onTableScroll
864
+ }), createSlots({
865
+ header: withCtx((headerProps) => [
866
+ headerProps && _ctx.headerRows[headerProps.headerIndex] ? (openBlock(), createBlock(_component_HeaderRow, {
867
+ key: 0,
868
+ headerCols: _ctx.headerRows[headerProps.headerIndex],
869
+ headerColSizes: _ctx.headerRowSizes[headerProps.headerIndex],
870
+ headerIndex: headerProps.headerIndex,
871
+ sortBy: _ctx.sortBy,
872
+ filtered: _ctx.filtered,
873
+ isCheckAll: _ctx.isCheckAll,
874
+ isIndeterminate: _ctx.isIndeterminate,
875
+ disabledCheckbox: !_ctx.tableData.length,
876
+ tableSize: _ctx.size,
877
+ headerCellClass: _ctx.headerCellClassName,
878
+ headerCellStyle: _ctx.headerCellStyle,
879
+ headerEllipsis: true,
880
+ rowHeight: _ctx.tableRowHeight,
881
+ onCheckedChange: _cache[0] || (_cache[0] = ($event) => _ctx.toggleAllSelection()),
882
+ onFilterChange: _ctx.onTableFilterChange,
883
+ onCellClick: _ctx.onHeaderCellClick,
884
+ onCellContextmenu: _ctx.onHeaderCellContextmenu,
885
+ onCellMouseenter: _ctx.onHeaderCellMouseenter
886
+ }, createSlots({ _: 2 }, [
887
+ renderList(_ctx.slotKeys, (name) => {
888
+ return {
889
+ name,
890
+ fn: withCtx((slotProps) => [
891
+ renderSlot(_ctx.$slots, name, normalizeProps(guardReactiveProps(slotProps || {})))
892
+ ])
893
+ };
894
+ })
895
+ ]), 1032, ["headerCols", "headerColSizes", "headerIndex", "sortBy", "filtered", "isCheckAll", "isIndeterminate", "disabledCheckbox", "tableSize", "headerCellClass", "headerCellStyle", "rowHeight", "onFilterChange", "onCellClick", "onCellContextmenu", "onCellMouseenter"])) : createCommentVNode("", true)
896
+ ]),
897
+ row: withCtx((rowProps) => [
898
+ rowProps && rowProps.rowData && rowProps.rowData._isExpandRow ? (openBlock(), createBlock(_component_ExpandRow, {
899
+ key: 0,
900
+ column: _ctx.tableExpandCol,
901
+ rowIndex: rowProps.rowData._expandParantIndex,
902
+ rowData: rowProps.rowData._expandParent,
903
+ onMouseenter: _ctx.onExpandCellMouseenter
904
+ }, createSlots({ _: 2 }, [
905
+ renderList(_ctx.slotKeys, (name) => {
906
+ return {
907
+ name,
908
+ fn: withCtx((slotProps) => [
909
+ renderSlot(_ctx.$slots, name, normalizeProps(guardReactiveProps(slotProps || {})))
910
+ ])
911
+ };
912
+ })
913
+ ]), 1032, ["column", "rowIndex", "rowData", "onMouseenter"])) : rowProps ? (openBlock(), createBlock(_component_BodyRow, {
914
+ key: 1,
915
+ bodyCols: _ctx.bodyCols,
916
+ colSizes: _ctx.bodyColSizes,
917
+ rowIndex: rowProps.rowData._rowIndex,
918
+ rowData: rowProps.rowData,
919
+ selectedRowKeys: _ctx.selectedRowKeys,
920
+ tableSize: _ctx.size,
921
+ bodyCellClass: _ctx.cellClassName,
922
+ bodyCellStyle: _ctx.cellStyle,
923
+ spanMethod: _ctx.spanMethod,
924
+ tableTooltipProps: _ctx.showOverflowTooltip,
925
+ pageIndex: _ctx.pageIndex,
926
+ rowHeight: _ctx.tableRowHeight,
927
+ expandColumnKey: _ctx.tableExpandColumnKey,
928
+ expandedRowKeys: _ctx.expandedRowKeys,
929
+ hasChildrenName: _ctx.treeHasChildrenName,
930
+ lazy: _ctx.lazy,
931
+ load: _ctx.load,
932
+ level: rowProps.depth,
933
+ indent: _ctx.indent,
934
+ fixedCellHeight: _ctx.hasExpandCol,
935
+ autoRowHeight: _ctx.autoRowHeight,
936
+ onCellCheckedChange: _ctx.onCellCheckedChange,
937
+ onCellExpandChange: _ctx.onCellExpandChange,
938
+ onCellClick: _ctx.onCellClick,
939
+ onCellDblclick: _ctx.onCellDblclick,
940
+ onCellContextmenu: _ctx.onCellContextmenu,
941
+ onCellMouseenter: _ctx.onCellMouseenter,
942
+ onCellMouseleave: _ctx.onCellMouseleave
943
+ }, createSlots({ _: 2 }, [
944
+ renderList(_ctx.slotKeys, (name) => {
945
+ return {
946
+ name,
947
+ fn: withCtx((slotProps) => [
948
+ renderSlot(_ctx.$slots, name, normalizeProps(guardReactiveProps(slotProps || {})))
949
+ ])
950
+ };
951
+ })
952
+ ]), 1032, ["bodyCols", "colSizes", "rowIndex", "rowData", "selectedRowKeys", "tableSize", "bodyCellClass", "bodyCellStyle", "spanMethod", "tableTooltipProps", "pageIndex", "rowHeight", "expandColumnKey", "expandedRowKeys", "hasChildrenName", "lazy", "load", "level", "indent", "fixedCellHeight", "autoRowHeight", "onCellCheckedChange", "onCellExpandChange", "onCellClick", "onCellDblclick", "onCellContextmenu", "onCellMouseenter", "onCellMouseleave"])) : createCommentVNode("", true)
953
+ ]),
954
+ empty: withCtx(() => [
955
+ renderSlot(_ctx.$slots, "empty", {
956
+ text: _ctx.emptyText,
957
+ error: _ctx.errorText
958
+ }, () => [
959
+ _ctx.emptyProps === false ? (openBlock(), createElementBlock("div", _hoisted_1, toDisplayString(_ctx.tableEmptyText), 1)) : (openBlock(), createBlock(_component_ElEmpty, normalizeProps(mergeProps({ key: 1 }, _ctx.tableEmptyProps)), null, 16))
960
+ ])
961
+ ]),
962
+ _: 2
963
+ }, [
964
+ _ctx.hasFooter ? {
965
+ name: "footer",
966
+ fn: withCtx(() => [
967
+ createVNode(_component_FooterRow, {
968
+ bodyCols: _ctx.bodyCols,
969
+ colSizes: _ctx.bodyColSizes,
970
+ sumWidth: _ctx.colsSumWidth,
971
+ tableData: _ctx.tableData,
972
+ rowHeight: _ctx.tableRowHeight,
973
+ sumText: _ctx.tableSumText,
974
+ summaryMethod: _ctx.summaryMethod,
975
+ onMouseenter: _ctx.onFooterCellMouseenter
976
+ }, null, 8, ["bodyCols", "colSizes", "sumWidth", "tableData", "rowHeight", "sumText", "summaryMethod", "onMouseenter"])
977
+ ]),
978
+ key: "0"
979
+ } : void 0
980
+ ]), 1040, ["onScroll"])) : createCommentVNode("", true),
981
+ createVNode(_component_EleTooltip, normalizeProps(guardReactiveProps(_ctx.tableTooltipProps)), null, 16)
982
+ ], 34);
983
+ }
984
+ const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
985
+ export {
986
+ index as default
987
+ };