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