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,206 @@
1
+ import { defineComponent, ref, computed, resolveComponent, openBlock, createElementBlock, Fragment, renderList, createBlock, createSlots, withCtx, renderSlot, normalizeProps, guardReactiveProps } from "vue";
2
+ import BodyCell from "./body-cell";
3
+ const _sfc_main = defineComponent({
4
+ name: "BodyRow",
5
+ components: { BodyCell },
6
+ props: {
7
+ /** 主体列配置 */
8
+ bodyCols: Array,
9
+ /** 表格主体列宽 */
10
+ colSizes: Array,
11
+ /** 当前行索引 */
12
+ rowIndex: Number,
13
+ /** 当前行数据 */
14
+ rowData: Object,
15
+ /** 表格多选选中的值 */
16
+ selectedRowKeys: Set,
17
+ /** 是否禁用表头选择框 */
18
+ tableSize: String,
19
+ /** 单元格类名自定义 */
20
+ bodyCellClass: [String, Function],
21
+ /** 单元格样式自定义 */
22
+ bodyCellStyle: [Object, Function],
23
+ /** 单元格合并行列方法 */
24
+ spanMethod: Function,
25
+ /** 溢出提示组件全局属性 */
26
+ tableTooltipProps: [Boolean, Object],
27
+ /** 序号列起始编号 */
28
+ pageIndex: Number,
29
+ /** 表格行高 */
30
+ rowHeight: Number,
31
+ /** 树表格展开图标的列 */
32
+ expandColumnKey: String,
33
+ /** 表格展开行的值 */
34
+ expandedRowKeys: Array,
35
+ /** 嵌套数据是否有子级字段名称 */
36
+ hasChildrenName: String,
37
+ /** 树表格是否懒加载子级 */
38
+ lazy: Boolean,
39
+ /** 树表格懒加载方法 */
40
+ load: Function,
41
+ /** 树表格行数据级别 */
42
+ level: Number,
43
+ /** 树表格行缩进 */
44
+ indent: Number,
45
+ /** 是否需要固定单元格高度 */
46
+ fixedCellHeight: Boolean,
47
+ /** 表格是否是自适应行高 */
48
+ autoRowHeight: Boolean
49
+ },
50
+ emits: {
51
+ /** 多选框选中改变事件 */
52
+ cellCheckedChange: (_row, _checked) => true,
53
+ /** 展开状态改变事件 */
54
+ cellExpandChange: (_row, _expanded, _data) => true,
55
+ /** 单元格点击事件 */
56
+ cellClick: (_row, _col, _e) => true,
57
+ /** 单元格双击事件 */
58
+ cellDblclick: (_row, _col, _e) => true,
59
+ /** 单元格右键事件 */
60
+ cellContextmenu: (_row, _col, _e) => true,
61
+ /** 单元格鼠标移入事件 */
62
+ cellMouseenter: (_row, _col, _e) => true,
63
+ /** 单元格鼠标移出事件 */
64
+ cellMouseleave: (_row, _col, _e) => true
65
+ },
66
+ setup(props, { emit }) {
67
+ const loading = ref(false);
68
+ const rowDataKey = computed(() => {
69
+ return props.rowData ? props.rowData._rowKey : void 0;
70
+ });
71
+ const isChecked = computed(() => {
72
+ if (!props.selectedRowKeys || !rowDataKey.value) {
73
+ return false;
74
+ }
75
+ return props.selectedRowKeys.has(rowDataKey.value);
76
+ });
77
+ const hasChildren = computed(() => {
78
+ if (props.rowData) {
79
+ if (props.rowData.children) {
80
+ return !!props.rowData.children.length;
81
+ }
82
+ if (props.lazy && props.hasChildrenName && props.rowData[props.hasChildrenName] === true) {
83
+ return true;
84
+ }
85
+ }
86
+ return false;
87
+ });
88
+ const rowIndent = computed(() => {
89
+ if (!props.level || !props.indent) {
90
+ return;
91
+ }
92
+ return props.level * props.indent + "px";
93
+ });
94
+ const isCollapse = computed(() => {
95
+ if (!props.expandedRowKeys || rowDataKey.value == null) {
96
+ return true;
97
+ }
98
+ return !props.expandedRowKeys.includes(rowDataKey.value);
99
+ });
100
+ const getKey = (column, columnIndex) => {
101
+ const key = rowDataKey.value ?? props.rowIndex;
102
+ return key + "-" + (column.key ?? columnIndex);
103
+ };
104
+ const onCellCheckedChange = (row, checked) => {
105
+ emit("cellCheckedChange", row, checked);
106
+ };
107
+ const onCellExpandChange = (row, expanded) => {
108
+ if (expanded && props.lazy && !row.children) {
109
+ if (props.load) {
110
+ loading.value = true;
111
+ props.load(row, null, (data) => {
112
+ loading.value = false;
113
+ emit("cellExpandChange", row, expanded, data);
114
+ });
115
+ }
116
+ return;
117
+ }
118
+ emit("cellExpandChange", row, expanded);
119
+ };
120
+ const onCellClick = (row, col, e) => {
121
+ emit("cellClick", row, col, e);
122
+ };
123
+ const onCellDblclick = (row, col, e) => {
124
+ emit("cellDblclick", row, col, e);
125
+ };
126
+ const onCellContextmenu = (row, col, e) => {
127
+ emit("cellContextmenu", row, col, e);
128
+ };
129
+ const onCellMouseenter = (row, col, e) => {
130
+ emit("cellMouseenter", row, col, e);
131
+ };
132
+ const onCellMouseleave = (row, col, e) => {
133
+ emit("cellMouseleave", row, col, e);
134
+ };
135
+ return {
136
+ loading,
137
+ isChecked,
138
+ hasChildren,
139
+ rowIndent,
140
+ isCollapse,
141
+ getKey,
142
+ onCellCheckedChange,
143
+ onCellExpandChange,
144
+ onCellClick,
145
+ onCellDblclick,
146
+ onCellContextmenu,
147
+ onCellMouseenter,
148
+ onCellMouseleave
149
+ };
150
+ }
151
+ });
152
+ const _export_sfc = (sfc, props) => {
153
+ const target = sfc.__vccOpts || sfc;
154
+ for (const [key, val] of props) {
155
+ target[key] = val;
156
+ }
157
+ return target;
158
+ };
159
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
160
+ const _component_BodyCell = resolveComponent("BodyCell");
161
+ return openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.bodyCols, (column, index) => {
162
+ return openBlock(), createBlock(_component_BodyCell, {
163
+ key: _ctx.getKey(column, index),
164
+ column,
165
+ columnIndex: index,
166
+ rowIndex: _ctx.rowIndex,
167
+ rowData: _ctx.rowData,
168
+ colSizes: _ctx.colSizes,
169
+ tableSize: _ctx.tableSize,
170
+ bodyCellClass: _ctx.bodyCellClass,
171
+ bodyCellStyle: _ctx.bodyCellStyle,
172
+ spanMethod: _ctx.spanMethod,
173
+ tableTooltipProps: _ctx.tableTooltipProps,
174
+ pageIndex: _ctx.pageIndex,
175
+ rowHeight: _ctx.rowHeight,
176
+ expandColumnKey: _ctx.expandColumnKey,
177
+ isChecked: _ctx.isChecked,
178
+ hasChildren: _ctx.hasChildren,
179
+ rowIndent: _ctx.rowIndent,
180
+ isCollapse: _ctx.isCollapse,
181
+ loading: _ctx.loading,
182
+ fixedCellHeight: _ctx.fixedCellHeight,
183
+ autoRowHeight: _ctx.autoRowHeight,
184
+ onCheckedChange: _ctx.onCellCheckedChange,
185
+ onExpandChange: _ctx.onCellExpandChange,
186
+ onClick: _ctx.onCellClick,
187
+ onDblclick: _ctx.onCellDblclick,
188
+ onContextmenu: _ctx.onCellContextmenu,
189
+ onMouseenter: _ctx.onCellMouseenter,
190
+ onMouseleave: _ctx.onCellMouseleave
191
+ }, createSlots({ _: 2 }, [
192
+ renderList(Object.keys(_ctx.$slots), (name) => {
193
+ return {
194
+ name,
195
+ fn: withCtx((slotProps) => [
196
+ renderSlot(_ctx.$slots, name, normalizeProps(guardReactiveProps(slotProps || {})))
197
+ ])
198
+ };
199
+ })
200
+ ]), 1032, ["column", "columnIndex", "rowIndex", "rowData", "colSizes", "tableSize", "bodyCellClass", "bodyCellStyle", "spanMethod", "tableTooltipProps", "pageIndex", "rowHeight", "expandColumnKey", "isChecked", "hasChildren", "rowIndent", "isCollapse", "loading", "fixedCellHeight", "autoRowHeight", "onCheckedChange", "onExpandChange", "onClick", "onDblclick", "onContextmenu", "onMouseenter", "onMouseleave"]);
201
+ }), 128);
202
+ }
203
+ const bodyRow = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
204
+ export {
205
+ bodyRow as default
206
+ };
@@ -0,0 +1,32 @@
1
+ import type { PropType } from 'vue';
2
+ declare const _default: import("vue").DefineComponent<{
3
+ /** 是否是选中状态 */
4
+ checked: BooleanConstructor;
5
+ /** 是否是半选状态 */
6
+ indeterminate: BooleanConstructor;
7
+ /** 是否是禁用状态 */
8
+ disabled: BooleanConstructor;
9
+ /** 尺寸 */
10
+ size: PropType<"" | "default" | "small" | "large" | undefined>;
11
+ }, {
12
+ onUpdateModelValue: (modelValue: boolean) => void;
13
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
14
+ /** 选中改变事件 */
15
+ change: (_checked: boolean) => true;
16
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
17
+ /** 是否是选中状态 */
18
+ checked: BooleanConstructor;
19
+ /** 是否是半选状态 */
20
+ indeterminate: BooleanConstructor;
21
+ /** 是否是禁用状态 */
22
+ disabled: BooleanConstructor;
23
+ /** 尺寸 */
24
+ size: PropType<"" | "default" | "small" | "large" | undefined>;
25
+ }>> & {
26
+ onChange?: ((_checked: boolean) => any) | undefined;
27
+ }, {
28
+ disabled: boolean;
29
+ indeterminate: boolean;
30
+ checked: boolean;
31
+ }, {}>;
32
+ export default _default;
@@ -0,0 +1,49 @@
1
+ import { defineComponent, resolveComponent, openBlock, createBlock } from "vue";
2
+ import { ElCheckbox } from "element-plus";
3
+ const _sfc_main = defineComponent({
4
+ name: "CellCheckbox",
5
+ components: { ElCheckbox },
6
+ props: {
7
+ /** 是否是选中状态 */
8
+ checked: Boolean,
9
+ /** 是否是半选状态 */
10
+ indeterminate: Boolean,
11
+ /** 是否是禁用状态 */
12
+ disabled: Boolean,
13
+ /** 尺寸 */
14
+ size: String
15
+ },
16
+ emits: {
17
+ /** 选中改变事件 */
18
+ change: (_checked) => true
19
+ },
20
+ setup(props, { emit }) {
21
+ const onUpdateModelValue = (modelValue) => {
22
+ if (props.checked !== modelValue) {
23
+ emit("change", modelValue);
24
+ }
25
+ };
26
+ return { onUpdateModelValue };
27
+ }
28
+ });
29
+ const _export_sfc = (sfc, props) => {
30
+ const target = sfc.__vccOpts || sfc;
31
+ for (const [key, val] of props) {
32
+ target[key] = val;
33
+ }
34
+ return target;
35
+ };
36
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
37
+ const _component_ElCheckbox = resolveComponent("ElCheckbox");
38
+ return openBlock(), createBlock(_component_ElCheckbox, {
39
+ modelValue: _ctx.checked,
40
+ indeterminate: _ctx.indeterminate,
41
+ disabled: _ctx.disabled,
42
+ size: _ctx.size,
43
+ "onUpdate:modelValue": _ctx.onUpdateModelValue
44
+ }, null, 8, ["modelValue", "indeterminate", "disabled", "size", "onUpdate:modelValue"]);
45
+ }
46
+ const cellCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
47
+ export {
48
+ cellCheckbox as default
49
+ };
@@ -0,0 +1,48 @@
1
+ import type { PropType } from 'vue';
2
+ import type { FilterValue } from '../../ele-data-table/types';
3
+ declare const _default: import("vue").DefineComponent<{
4
+ /** 选中项 */
5
+ filtered: PropType<FilterValue>;
6
+ /** 是否多选 */
7
+ filterMultiple: BooleanConstructor;
8
+ /** 数据项 */
9
+ filters: PropType<import("element-plus/es/components/table/src/table-column/defaults").Filters | undefined>;
10
+ /** 弹出框定位 */
11
+ filterPlacement: {
12
+ type: PropType<any>;
13
+ default: string;
14
+ };
15
+ }, {
16
+ tooltipRef: EleTooltipInstance;
17
+ checkedValue: import("vue").Ref<string[]>;
18
+ clearFilterText: import("vue").ComputedRef<string>;
19
+ filteredValue: import("vue").ComputedRef<string | undefined>;
20
+ confirmText: import("vue").ComputedRef<string>;
21
+ resetText: import("vue").ComputedRef<string>;
22
+ onItemClick: (value?: string) => void;
23
+ onFilterChange: (filtered: FilterValue) => void;
24
+ onConfirm: () => void;
25
+ onReset: () => void;
26
+ onBeforeEnter: () => void;
27
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
28
+ /** 选中改变事件 */
29
+ change: (_filtered: FilterValue) => true;
30
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
31
+ /** 选中项 */
32
+ filtered: PropType<FilterValue>;
33
+ /** 是否多选 */
34
+ filterMultiple: BooleanConstructor;
35
+ /** 数据项 */
36
+ filters: PropType<import("element-plus/es/components/table/src/table-column/defaults").Filters | undefined>;
37
+ /** 弹出框定位 */
38
+ filterPlacement: {
39
+ type: PropType<any>;
40
+ default: string;
41
+ };
42
+ }>> & {
43
+ onChange?: ((_filtered: FilterValue) => any) | undefined;
44
+ }, {
45
+ filterPlacement: any;
46
+ filterMultiple: boolean;
47
+ }, {}>;
48
+ export default _default;
@@ -0,0 +1,211 @@
1
+ import { defineComponent, ref, computed, resolveComponent, openBlock, createElementBlock, withModifiers, createVNode, withCtx, Fragment, renderList, createBlock, createTextVNode, toDisplayString, createElementVNode, normalizeClass } from "vue";
2
+ import { ElIcon, ElButton, ElScrollbar, useLocale } from "element-plus";
3
+ import EleTooltip from "../../ele-tooltip/index";
4
+ import { FilterFilled } from "../../icons";
5
+ const _sfc_main = defineComponent({
6
+ name: "CellFilter",
7
+ components: {
8
+ ElIcon,
9
+ ElButton,
10
+ ElScrollbar,
11
+ EleTooltip,
12
+ FilterFilled
13
+ },
14
+ props: {
15
+ /** 选中项 */
16
+ filtered: Array,
17
+ /** 是否多选 */
18
+ filterMultiple: Boolean,
19
+ /** 数据项 */
20
+ filters: Array,
21
+ /** 弹出框定位 */
22
+ filterPlacement: {
23
+ type: String,
24
+ default: "bottom-start"
25
+ }
26
+ },
27
+ emits: {
28
+ /** 选中改变事件 */
29
+ change: (_filtered) => true
30
+ },
31
+ setup(props, { emit }) {
32
+ const { t } = useLocale();
33
+ const tooltipRef = ref(null);
34
+ const checkedValue = ref([]);
35
+ const clearFilterText = computed(() => {
36
+ return t("el.table.clearFilter");
37
+ });
38
+ const filteredValue = computed(() => {
39
+ if (!props.filtered || !props.filtered.length) {
40
+ return;
41
+ }
42
+ return props.filtered[0];
43
+ });
44
+ const confirmText = computed(() => {
45
+ return t("el.table.confirmFilter");
46
+ });
47
+ const resetText = computed(() => {
48
+ return t("el.table.resetFilter");
49
+ });
50
+ const hidePopper = () => {
51
+ tooltipRef.value && tooltipRef.value.hide();
52
+ };
53
+ const onBeforeEnter = () => {
54
+ checkedValue.value = props.filtered ?? [];
55
+ };
56
+ const onItemClick = (value) => {
57
+ onFilterChange(value == null ? [] : [value]);
58
+ hidePopper();
59
+ };
60
+ const onFilterChange = (filtered) => {
61
+ emit("change", filtered);
62
+ };
63
+ const onConfirm = () => {
64
+ onFilterChange(checkedValue.value);
65
+ hidePopper();
66
+ };
67
+ const onReset = () => {
68
+ checkedValue.value = [];
69
+ onFilterChange([]);
70
+ hidePopper();
71
+ };
72
+ return {
73
+ tooltipRef,
74
+ checkedValue,
75
+ clearFilterText,
76
+ filteredValue,
77
+ confirmText,
78
+ resetText,
79
+ onItemClick,
80
+ onFilterChange,
81
+ onConfirm,
82
+ onReset,
83
+ onBeforeEnter
84
+ };
85
+ }
86
+ });
87
+ const _export_sfc = (sfc, props) => {
88
+ const target = sfc.__vccOpts || sfc;
89
+ for (const [key, val] of props) {
90
+ target[key] = val;
91
+ }
92
+ return target;
93
+ };
94
+ const _hoisted_1 = { class: "ele-table-filter-footer" };
95
+ const _hoisted_2 = {
96
+ key: 1,
97
+ class: "ele-table-filter-list"
98
+ };
99
+ const _hoisted_3 = ["onClick"];
100
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
101
+ const _component_FilterFilled = resolveComponent("FilterFilled");
102
+ const _component_ElIcon = resolveComponent("ElIcon");
103
+ const _component_ElCheckbox = resolveComponent("ElCheckbox");
104
+ const _component_ElCheckboxGroup = resolveComponent("ElCheckboxGroup");
105
+ const _component_ElScrollbar = resolveComponent("ElScrollbar");
106
+ const _component_ElButton = resolveComponent("ElButton");
107
+ const _component_EleTooltip = resolveComponent("EleTooltip");
108
+ return openBlock(), createElementBlock("div", {
109
+ class: "ele-table-filter",
110
+ onClick: _cache[2] || (_cache[2] = withModifiers(() => {
111
+ }, ["stop"]))
112
+ }, [
113
+ createVNode(_component_EleTooltip, {
114
+ ref: "tooltipRef",
115
+ trigger: "click",
116
+ showArrow: false,
117
+ placement: _ctx.filterPlacement,
118
+ popperClass: "ele-table-filter-popper",
119
+ gpuAcceleration: true,
120
+ effect: "light",
121
+ isPopover: true,
122
+ popperOptions: {
123
+ modifiers: [{ name: "offset", options: { offset: [0, 4] } }]
124
+ },
125
+ onBeforeShow: _ctx.onBeforeEnter
126
+ }, {
127
+ body: withCtx(() => [
128
+ _ctx.filterMultiple ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
129
+ createVNode(_component_ElScrollbar, { class: "ele-table-filter-body" }, {
130
+ default: withCtx(() => [
131
+ createVNode(_component_ElCheckboxGroup, {
132
+ modelValue: _ctx.checkedValue,
133
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.checkedValue = $event)
134
+ }, {
135
+ default: withCtx(() => [
136
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.filters, (item) => {
137
+ return openBlock(), createBlock(_component_ElCheckbox, {
138
+ key: item.value,
139
+ label: item.value
140
+ }, {
141
+ default: withCtx(() => [
142
+ createTextVNode(toDisplayString(item.text), 1)
143
+ ]),
144
+ _: 2
145
+ }, 1032, ["label"]);
146
+ }), 128))
147
+ ]),
148
+ _: 1
149
+ }, 8, ["modelValue"])
150
+ ]),
151
+ _: 1
152
+ }),
153
+ createElementVNode("div", _hoisted_1, [
154
+ createVNode(_component_ElButton, {
155
+ size: "small",
156
+ text: true,
157
+ onClick: _ctx.onReset
158
+ }, {
159
+ default: withCtx(() => [
160
+ createTextVNode(toDisplayString(_ctx.resetText), 1)
161
+ ]),
162
+ _: 1
163
+ }, 8, ["onClick"]),
164
+ createVNode(_component_ElButton, {
165
+ size: "small",
166
+ type: "primary",
167
+ disabled: !_ctx.checkedValue.length,
168
+ onClick: _ctx.onConfirm
169
+ }, {
170
+ default: withCtx(() => [
171
+ createTextVNode(toDisplayString(_ctx.confirmText), 1)
172
+ ]),
173
+ _: 1
174
+ }, 8, ["disabled", "onClick"])
175
+ ])
176
+ ], 64)) : (openBlock(), createElementBlock("div", _hoisted_2, [
177
+ createElementVNode("div", {
178
+ class: normalizeClass([
179
+ "ele-table-filter-item",
180
+ { "is-active": _ctx.filteredValue == null }
181
+ ]),
182
+ onClick: _cache[1] || (_cache[1] = ($event) => _ctx.onItemClick())
183
+ }, toDisplayString(_ctx.clearFilterText), 3),
184
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.filters, (d) => {
185
+ return openBlock(), createElementBlock("div", {
186
+ key: d.value,
187
+ class: normalizeClass([
188
+ "ele-table-filter-item",
189
+ { "is-active": _ctx.filteredValue === d.value }
190
+ ]),
191
+ onClick: ($event) => _ctx.onItemClick(d.value)
192
+ }, toDisplayString(d.text), 11, _hoisted_3);
193
+ }), 128))
194
+ ]))
195
+ ]),
196
+ default: withCtx(() => [
197
+ createVNode(_component_ElIcon, null, {
198
+ default: withCtx(() => [
199
+ createVNode(_component_FilterFilled)
200
+ ]),
201
+ _: 1
202
+ })
203
+ ]),
204
+ _: 1
205
+ }, 8, ["placement", "onBeforeShow"])
206
+ ]);
207
+ }
208
+ const cellFilter = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
209
+ export {
210
+ cellFilter as default
211
+ };
@@ -0,0 +1,18 @@
1
+ import type { PropType } from 'vue';
2
+ import type { DataItem } from '../../ele-data-table/types';
3
+ declare const _default: import("vue").DefineComponent<{
4
+ /** 列配置 */
5
+ column: PropType<Partial<import("element-plus").Column<DataItem>>>;
6
+ /** 行索引 */
7
+ rowIndex: NumberConstructor;
8
+ /** 行数据 */
9
+ rowData: PropType<DataItem>;
10
+ }, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
11
+ /** 列配置 */
12
+ column: PropType<Partial<import("element-plus").Column<DataItem>>>;
13
+ /** 行索引 */
14
+ rowIndex: NumberConstructor;
15
+ /** 行数据 */
16
+ rowData: PropType<DataItem>;
17
+ }>>, {}, {}>;
18
+ export default _default;
@@ -0,0 +1,29 @@
1
+ import { defineComponent, openBlock, createElementBlock, renderSlot, normalizeProps, mergeProps, createCommentVNode } from "vue";
2
+ const _sfc_main = defineComponent({
3
+ name: "ExpandRow",
4
+ props: {
5
+ /** 列配置 */
6
+ column: Object,
7
+ /** 行索引 */
8
+ rowIndex: Number,
9
+ /** 行数据 */
10
+ rowData: Object
11
+ }
12
+ });
13
+ const _export_sfc = (sfc, props) => {
14
+ const target = sfc.__vccOpts || sfc;
15
+ for (const [key, val] of props) {
16
+ target[key] = val;
17
+ }
18
+ return target;
19
+ };
20
+ const _hoisted_1 = { class: "el-table-v2__row-cell ele-table-td" };
21
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
22
+ return openBlock(), createElementBlock("div", _hoisted_1, [
23
+ _ctx.column && _ctx.column.originalCol && _ctx.column.originalCol.slot ? renderSlot(_ctx.$slots, _ctx.column.originalCol.slot, normalizeProps(mergeProps({ key: 0 }, { row: _ctx.rowData, column: _ctx.column.originalCol, $index: _ctx.rowIndex }))) : createCommentVNode("", true)
24
+ ]);
25
+ }
26
+ const expandRow = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
27
+ export {
28
+ expandRow as default
29
+ };
@@ -0,0 +1,43 @@
1
+ import type { PropType } from 'vue';
2
+ import type { DataItem } from '../../ele-data-table/types';
3
+ import type { BodyColumns, SumCol, ColSize } from '../types';
4
+ declare const _default: import("vue").DefineComponent<{
5
+ /** 表格主体列配置 */
6
+ bodyCols: PropType<BodyColumns>;
7
+ /** 表格主体列宽 */
8
+ colSizes: PropType<ColSize[]>;
9
+ /** 表格主体所有列合计宽度 */
10
+ sumWidth: NumberConstructor;
11
+ /** 表格数据 */
12
+ tableData: PropType<DataItem[]>;
13
+ /** 表格行高 */
14
+ rowHeight: NumberConstructor;
15
+ /** 合计行文本 */
16
+ sumText: StringConstructor;
17
+ /** 合计行自定义方法 */
18
+ summaryMethod: FunctionConstructor;
19
+ }, {
20
+ sumCols: import("vue").ComputedRef<SumCol[]>;
21
+ onMouseenter: (e: MouseEvent) => void;
22
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
23
+ /** 单元格鼠标移入事件 */
24
+ mouseenter: (_e: MouseEvent) => true;
25
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
26
+ /** 表格主体列配置 */
27
+ bodyCols: PropType<BodyColumns>;
28
+ /** 表格主体列宽 */
29
+ colSizes: PropType<ColSize[]>;
30
+ /** 表格主体所有列合计宽度 */
31
+ sumWidth: NumberConstructor;
32
+ /** 表格数据 */
33
+ tableData: PropType<DataItem[]>;
34
+ /** 表格行高 */
35
+ rowHeight: NumberConstructor;
36
+ /** 合计行文本 */
37
+ sumText: StringConstructor;
38
+ /** 合计行自定义方法 */
39
+ summaryMethod: FunctionConstructor;
40
+ }>> & {
41
+ onMouseenter?: ((_e: MouseEvent) => any) | undefined;
42
+ }, {}, {}>;
43
+ export default _default;