ele-admin-plus 1.1.4-beta.3 → 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 (660) 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/index.js +1 -0
  84. package/es/ele-dropdown/props.d.ts +8 -0
  85. package/es/ele-dropdown/props.js +8 -8
  86. package/es/ele-dropdown/style/css-var.scss +1 -0
  87. package/es/ele-dropdown/style/index.scss +10 -0
  88. package/es/ele-edit-tag/index.d.ts +15 -17
  89. package/es/ele-edit-tag/index.js +106 -77
  90. package/es/ele-edit-tag/props.d.ts +16 -6
  91. package/es/ele-edit-tag/props.js +15 -18
  92. package/es/ele-edit-tag/style/index.scss +7 -3
  93. package/es/ele-ellipsis/index.d.ts +4 -4
  94. package/es/ele-ellipsis/props.d.ts +3 -0
  95. package/es/ele-ellipsis/props.js +3 -3
  96. package/es/ele-ellipsis/style/index.scss +1 -1
  97. package/es/ele-ellipsis/types/index.d.ts +1 -6
  98. package/es/ele-file-list/components/file-grid-item.d.ts +20 -5
  99. package/es/ele-file-list/components/file-grid-item.js +7 -7
  100. package/es/ele-file-list/components/file-grid.d.ts +26 -3
  101. package/es/ele-file-list/components/file-grid.js +11 -11
  102. package/es/ele-file-list/components/file-sort.d.ts +6 -0
  103. package/es/ele-file-list/components/file-sort.js +3 -3
  104. package/es/ele-file-list/components/file-table-item.d.ts +22 -5
  105. package/es/ele-file-list/components/file-table-item.js +8 -8
  106. package/es/ele-file-list/components/file-table.d.ts +37 -4
  107. package/es/ele-file-list/components/file-table.js +16 -16
  108. package/es/ele-file-list/index.d.ts +3 -3
  109. package/es/ele-file-list/props.d.ts +22 -1
  110. package/es/ele-file-list/props.js +20 -20
  111. package/es/ele-file-list/style/css-var.scss +1 -0
  112. package/es/ele-file-list/style/index.scss +15 -15
  113. package/es/ele-file-list/types/index.d.ts +1 -11
  114. package/es/ele-icon-select/components/icon-grid.d.ts +21 -3
  115. package/es/ele-icon-select/components/icon-grid.js +34 -12
  116. package/es/ele-icon-select/components/icon-popper.d.ts +34 -3
  117. package/es/ele-icon-select/components/icon-popper.js +16 -16
  118. package/es/ele-icon-select/index.d.ts +8 -8
  119. package/es/ele-icon-select/props.d.ts +38 -3
  120. package/es/ele-icon-select/props.js +36 -36
  121. package/es/ele-icon-select/style/css-var.scss +1 -0
  122. package/es/ele-icon-select/style/index.scss +2 -8
  123. package/es/ele-loading/index.d.ts +2 -0
  124. package/es/ele-loading/props.d.ts +10 -0
  125. package/es/ele-loading/props.js +10 -10
  126. package/es/ele-loading/style/css-var.scss +1 -0
  127. package/es/ele-map-picker/components/map-view.d.ts +2 -2
  128. package/es/ele-map-picker/components/map-view.js +7 -7
  129. package/es/ele-map-picker/index.d.ts +5 -5
  130. package/es/ele-map-picker/props.d.ts +53 -0
  131. package/es/ele-map-picker/props.js +31 -31
  132. package/es/ele-map-picker/style/css-var.scss +1 -0
  133. package/es/ele-map-picker/style/index.scss +5 -5
  134. package/es/ele-menus/index.d.ts +1 -1
  135. package/es/ele-menus/index.js +2 -1
  136. package/es/ele-menus/props.d.ts +8 -0
  137. package/es/ele-menus/props.js +8 -8
  138. package/es/ele-menus/style/css-var.scss +1 -0
  139. package/es/ele-menus/style/index.scss +23 -23
  140. package/es/ele-menus/util.d.ts +5 -1
  141. package/es/ele-menus/util.js +5 -8
  142. package/es/ele-modal/index.d.ts +1 -1
  143. package/es/ele-modal/props.d.ts +18 -0
  144. package/es/ele-modal/props.js +18 -18
  145. package/es/ele-modal/style/css-var.scss +1 -0
  146. package/es/ele-modal/style/index.scss +5 -5
  147. package/es/ele-page/props.d.ts +4 -0
  148. package/es/ele-page/props.js +4 -4
  149. package/es/ele-page/style/css-var.scss +1 -0
  150. package/es/ele-page/style/index.scss +5 -4
  151. package/es/ele-pagination/index.d.ts +4 -1
  152. package/es/ele-pagination/props.d.ts +4 -0
  153. package/es/ele-pagination/props.js +3 -3
  154. package/es/ele-pagination/style/css-var.scss +1 -0
  155. package/es/ele-pagination/style/index.scss +6 -6
  156. package/es/ele-popconfirm/index.d.ts +206 -9
  157. package/es/ele-popconfirm/index.js +106 -110
  158. package/es/ele-popconfirm/props.d.ts +105 -1
  159. package/es/ele-popconfirm/props.js +15 -16
  160. package/es/ele-popconfirm/style/css-var.scss +1 -0
  161. package/es/ele-popover/index.d.ts +201 -6
  162. package/es/ele-popover/index.js +26 -44
  163. package/es/ele-popover/props.d.ts +105 -1
  164. package/es/ele-popover/props.js +13 -5
  165. package/es/ele-popover/style/css-var.scss +1 -71
  166. package/es/ele-popover/style/index.js +1 -1
  167. package/es/ele-popover/style/index.scss +2 -9
  168. package/es/ele-printer/props.d.ts +12 -0
  169. package/es/ele-printer/props.js +12 -12
  170. package/es/ele-pro-layout/components/pro-header.d.ts +32 -0
  171. package/es/ele-pro-layout/components/pro-header.js +20 -20
  172. package/es/ele-pro-layout/components/pro-iframe.d.ts +10 -0
  173. package/es/ele-pro-layout/components/pro-iframe.js +5 -5
  174. package/es/ele-pro-layout/components/pro-sidebar.d.ts +22 -0
  175. package/es/ele-pro-layout/components/pro-sidebar.js +16 -19
  176. package/es/ele-pro-layout/components/pro-sidebox.d.ts +20 -0
  177. package/es/ele-pro-layout/components/pro-sidebox.js +15 -18
  178. package/es/ele-pro-layout/components/pro-tabs.d.ts +22 -3
  179. package/es/ele-pro-layout/components/pro-tabs.js +29 -15
  180. package/es/ele-pro-layout/components/tab-dropdown.d.ts +8 -2
  181. package/es/ele-pro-layout/components/tab-dropdown.js +3 -3
  182. package/es/ele-pro-layout/index.d.ts +17 -13
  183. package/es/ele-pro-layout/props.d.ts +56 -1
  184. package/es/ele-pro-layout/props.js +55 -55
  185. package/es/ele-pro-layout/style/css-var.scss +1 -0
  186. package/es/ele-pro-layout/style/header.scss +4 -4
  187. package/es/ele-pro-layout/style/layout-theme.scss +2 -2
  188. package/es/ele-pro-layout/style/layout.scss +4 -0
  189. package/es/ele-pro-layout/style/tabs.scss +4 -9
  190. package/es/ele-pro-layout/types/index.d.ts +0 -5
  191. package/es/ele-pro-layout/util.js +1 -1
  192. package/es/ele-pro-table/components/table-tools.d.ts +18 -1
  193. package/es/ele-pro-table/components/table-tools.js +9 -9
  194. package/es/ele-pro-table/components/tool-column-list.d.ts +49 -0
  195. package/es/ele-pro-table/components/tool-column-list.js +186 -0
  196. package/es/ele-pro-table/components/tool-column.d.ts +35 -15
  197. package/es/ele-pro-table/components/tool-column.js +181 -266
  198. package/es/ele-pro-table/index.d.ts +103 -129
  199. package/es/ele-pro-table/index.js +93 -202
  200. package/es/ele-pro-table/props.d.ts +73 -267
  201. package/es/ele-pro-table/props.js +30 -95
  202. package/es/ele-pro-table/style/css-var.scss +1 -4
  203. package/es/ele-pro-table/style/index.js +5 -9
  204. package/es/ele-pro-table/style/index.scss +85 -415
  205. package/es/ele-pro-table/types/index.d.ts +8 -116
  206. package/es/ele-pro-table/util.d.ts +6 -72
  207. package/es/ele-pro-table/util.js +57 -259
  208. package/es/ele-qr-code/props.d.ts +9 -0
  209. package/es/ele-qr-code/props.js +9 -9
  210. package/es/ele-qr-code/qrcodegen.js +2 -2
  211. package/es/ele-qr-code/types/index.d.ts +10 -0
  212. package/es/ele-qr-code-svg/index.d.ts +2 -2
  213. package/es/ele-segmented/index.d.ts +2 -2
  214. package/es/ele-segmented/props.d.ts +7 -0
  215. package/es/ele-segmented/props.js +7 -7
  216. package/es/ele-segmented/style/css-var.scss +1 -0
  217. package/es/ele-segmented/style/index.scss +6 -6
  218. package/es/ele-split-panel/index.d.ts +4 -4
  219. package/es/ele-split-panel/props.d.ts +15 -0
  220. package/es/ele-split-panel/props.js +15 -15
  221. package/es/ele-split-panel/style/index.scss +13 -13
  222. package/es/ele-steps/props.d.ts +2 -0
  223. package/es/ele-steps/props.js +2 -2
  224. package/es/ele-steps/style/css-var.scss +1 -0
  225. package/es/ele-steps/style/index.scss +8 -8
  226. package/es/ele-tab-tool/props.d.ts +2 -0
  227. package/es/ele-tab-tool/props.js +2 -2
  228. package/es/ele-tab-wrap/props.d.ts +2 -0
  229. package/es/ele-tab-wrap/props.js +2 -2
  230. package/es/ele-table/index.d.ts +12 -0
  231. package/es/ele-table/index.js +2 -0
  232. package/es/ele-table/props.d.ts +10 -0
  233. package/es/ele-table/props.js +11 -4
  234. package/es/ele-table/style/css-var.scss +1 -0
  235. package/es/ele-table/style/index.scss +103 -22
  236. package/es/ele-table-select/index.d.ts +39 -15
  237. package/es/ele-table-select/index.js +1 -5
  238. package/es/ele-table-select/props.d.ts +32 -1
  239. package/es/ele-table-select/props.js +31 -31
  240. package/es/ele-table-select/style/css-var.scss +1 -0
  241. package/es/ele-table-select/style/index.scss +3 -3
  242. package/es/ele-table-select/types/index.d.ts +0 -10
  243. package/es/ele-tabs/components/tab-title.d.ts +19 -5
  244. package/es/ele-tabs/components/tab-title.js +7 -7
  245. package/es/ele-tabs/index.d.ts +4 -5
  246. package/es/ele-tabs/index.js +1 -1
  247. package/es/ele-tabs/props.d.ts +16 -3
  248. package/es/ele-tabs/props.js +13 -13
  249. package/es/ele-tabs/style/css-var.scss +1 -0
  250. package/es/ele-tabs/style/index.scss +46 -22
  251. package/es/ele-text/props.d.ts +10 -0
  252. package/es/ele-text/props.js +10 -10
  253. package/es/ele-text/style/css-var.scss +1 -0
  254. package/es/ele-text/style/index.scss +4 -4
  255. package/es/ele-tool/props.d.ts +3 -0
  256. package/es/ele-tool/props.js +3 -3
  257. package/es/ele-tool/style/css-var.scss +1 -0
  258. package/es/ele-tool/style/index.scss +1 -2
  259. package/es/ele-toolbar/props.d.ts +6 -0
  260. package/es/ele-toolbar/props.js +6 -6
  261. package/es/ele-toolbar/style/css-var.scss +1 -0
  262. package/es/ele-toolbar/style/index.scss +2 -2
  263. package/es/ele-tooltip/index.d.ts +11 -10
  264. package/es/ele-tooltip/index.js +40 -32
  265. package/es/ele-tooltip/props.d.ts +8 -1
  266. package/es/ele-tooltip/props.js +10 -6
  267. package/es/ele-tooltip/style/css-var.scss +72 -0
  268. package/es/ele-tooltip/style/index.js +0 -1
  269. package/es/ele-tooltip/style/index.scss +8 -2
  270. package/es/ele-tour/index.d.ts +4 -6
  271. package/es/ele-tour/index.js +31 -39
  272. package/es/ele-tour/props.d.ts +6 -0
  273. package/es/ele-tour/props.js +6 -6
  274. package/es/ele-tour/style/index.js +1 -1
  275. package/es/ele-tour/style/index.scss +6 -2
  276. package/es/ele-tour/types/index.d.ts +2 -1
  277. package/es/ele-tour/util.d.ts +2 -2
  278. package/es/ele-tour/util.js +6 -2
  279. package/es/ele-upload-list/components/list-item.d.ts +11 -1
  280. package/es/ele-upload-list/components/list-item.js +5 -5
  281. package/es/ele-upload-list/index.d.ts +1 -1
  282. package/es/ele-upload-list/index.js +4 -4
  283. package/es/ele-upload-list/props.d.ts +18 -0
  284. package/es/ele-upload-list/props.js +18 -18
  285. package/es/ele-virtual-table/components/body-cell.d.ts +150 -0
  286. package/es/ele-virtual-table/components/body-cell.js +414 -0
  287. package/es/ele-virtual-table/components/body-row.d.ts +148 -0
  288. package/es/ele-virtual-table/components/body-row.js +206 -0
  289. package/es/ele-virtual-table/components/cell-checkbox.d.ts +32 -0
  290. package/es/ele-virtual-table/components/cell-checkbox.js +49 -0
  291. package/es/ele-virtual-table/components/cell-filter.d.ts +48 -0
  292. package/es/ele-virtual-table/components/cell-filter.js +211 -0
  293. package/es/ele-virtual-table/components/expand-row.d.ts +18 -0
  294. package/es/ele-virtual-table/components/expand-row.js +29 -0
  295. package/es/ele-virtual-table/components/footer-row.d.ts +43 -0
  296. package/es/ele-virtual-table/components/footer-row.js +105 -0
  297. package/es/ele-virtual-table/components/header-cell.d.ts +97 -0
  298. package/es/ele-virtual-table/components/header-cell.js +261 -0
  299. package/es/ele-virtual-table/components/header-row.d.ts +89 -0
  300. package/es/ele-virtual-table/components/header-row.js +126 -0
  301. package/es/ele-virtual-table/index.js +987 -0
  302. package/es/ele-virtual-table/props.d.ts +148 -0
  303. package/es/ele-virtual-table/props.js +13 -0
  304. package/es/ele-virtual-table/style/css-var.scss +127 -0
  305. package/es/ele-virtual-table/style/index.js +9 -0
  306. package/es/ele-virtual-table/style/index.scss +666 -0
  307. package/es/ele-virtual-table/types/index.d.ts +157 -0
  308. package/es/ele-virtual-table/util.d.ts +200 -0
  309. package/es/ele-virtual-table/util.js +562 -0
  310. package/es/ele-watermark/index.js +4 -0
  311. package/es/ele-watermark/props.d.ts +12 -0
  312. package/es/ele-watermark/props.js +12 -12
  313. package/es/icons/FilterFilled.d.ts +2 -0
  314. package/es/icons/FilterFilled.js +23 -0
  315. package/es/icons/HomeOutlined.d.ts +2 -0
  316. package/es/icons/HomeOutlined.js +48 -0
  317. package/es/icons/index.d.ts +2 -0
  318. package/es/icons/index.js +16 -12
  319. package/es/lang/zh_TW.js +0 -1
  320. package/es/style/index.scss +2 -0
  321. package/es/style/themes/dark.scss +6 -1
  322. package/es/style/themes/default.scss +57 -45
  323. package/es/style/themes/rounded.scss +12 -10
  324. package/es/style/themes/theme-util.scss +4 -0
  325. package/es/style/util.scss +6 -6
  326. package/es/utils/core.d.ts +10 -0
  327. package/es/utils/core.js +2 -3
  328. package/es/utils/validate.js +2 -2
  329. package/lib/components.d.ts +2 -0
  330. package/lib/components.js +78 -74
  331. package/lib/ele-alert/props.d.ts +17 -0
  332. package/lib/ele-alert/props.js +17 -17
  333. package/lib/ele-alert/style/css-var.scss +1 -0
  334. package/lib/ele-alert/style/index.scss +4 -4
  335. package/lib/ele-app/style/common.scss +2 -2
  336. package/lib/ele-app/style/css-var.scss +2 -2
  337. package/lib/ele-app/style/message.scss +4 -5
  338. package/lib/ele-app/style/overwrite.scss +57 -2
  339. package/lib/ele-app/types/index.d.ts +8 -2
  340. package/lib/ele-avatar-group/index.d.ts +4 -4
  341. package/lib/ele-avatar-group/index.js +32 -32
  342. package/lib/ele-avatar-group/props.d.ts +18 -3
  343. package/lib/ele-avatar-group/props.js +15 -15
  344. package/lib/ele-avatar-group/style/index.js +0 -1
  345. package/lib/ele-avatar-group/style/index.scss +5 -1
  346. package/lib/ele-avatar-group/types/index.d.ts +0 -16
  347. package/lib/ele-bar-code/props.d.ts +3 -0
  348. package/lib/ele-bar-code/props.js +3 -3
  349. package/lib/ele-basic-select/components/select-tag.d.ts +8 -0
  350. package/lib/ele-basic-select/components/select-tag.js +4 -4
  351. package/lib/ele-basic-select/index.d.ts +4 -3
  352. package/lib/ele-basic-select/index.js +25 -14
  353. package/lib/ele-basic-select/props.d.ts +27 -1
  354. package/lib/ele-basic-select/props.js +26 -26
  355. package/lib/ele-basic-select/style/index.js +1 -1
  356. package/lib/ele-basic-select/style/index.scss +4 -4
  357. package/lib/ele-bottom-bar/props.d.ts +2 -0
  358. package/lib/ele-bottom-bar/props.js +2 -2
  359. package/lib/ele-bottom-bar/style/css-var.scss +1 -0
  360. package/lib/ele-breadcrumb/props.d.ts +1 -0
  361. package/lib/ele-breadcrumb/props.js +1 -1
  362. package/lib/ele-card/props.d.ts +7 -0
  363. package/lib/ele-card/props.js +7 -7
  364. package/lib/ele-card/style/css-var.scss +1 -0
  365. package/lib/ele-card/style/index.scss +3 -2
  366. package/lib/ele-check-card/components/card-item.d.ts +12 -0
  367. package/lib/ele-check-card/components/card-item.js +6 -6
  368. package/lib/ele-check-card/index.d.ts +2 -2
  369. package/lib/ele-check-card/props.d.ts +12 -0
  370. package/lib/ele-check-card/props.js +12 -12
  371. package/lib/ele-check-card/style/css-var.scss +1 -0
  372. package/lib/ele-check-card/style/index.scss +4 -4
  373. package/lib/ele-config-provider/index.d.ts +2 -2
  374. package/lib/ele-config-provider/props.d.ts +5 -1
  375. package/lib/ele-config-provider/props.js +4 -4
  376. package/lib/ele-copyable/index.d.ts +7 -6
  377. package/lib/ele-copyable/props.d.ts +13 -2
  378. package/lib/ele-copyable/props.js +12 -12
  379. package/lib/ele-copyable/types/index.d.ts +0 -5
  380. package/lib/ele-count-up/props.d.ts +4 -0
  381. package/lib/ele-count-up/props.js +4 -4
  382. package/lib/ele-cropper/components/cropper-preview.d.ts +4 -0
  383. package/lib/ele-cropper/components/cropper-preview.js +2 -2
  384. package/lib/ele-cropper/components/cropper-tools.d.ts +12 -3
  385. package/lib/ele-cropper/components/cropper-tools.js +5 -5
  386. package/lib/ele-cropper/index.d.ts +2 -2
  387. package/lib/ele-cropper/props.d.ts +16 -2
  388. package/lib/ele-cropper/props.js +15 -15
  389. package/lib/ele-cropper-modal/index.d.ts +2 -2
  390. package/lib/ele-cropper-modal/props.d.ts +5 -1
  391. package/lib/ele-cropper-modal/props.js +4 -4
  392. package/lib/ele-dashboard/props.d.ts +4 -0
  393. package/lib/ele-dashboard/props.js +4 -4
  394. package/lib/{ele-pro-table/components/table-view.d.ts → ele-data-table/index.d.ts} +102 -60
  395. package/lib/ele-data-table/index.js +191 -0
  396. package/lib/ele-data-table/props.d.ts +256 -0
  397. package/lib/ele-data-table/props.js +79 -0
  398. package/lib/ele-data-table/style/css-var.scss +72 -0
  399. package/lib/ele-data-table/style/index.js +5 -0
  400. package/lib/ele-data-table/style/index.scss +385 -0
  401. package/lib/ele-data-table/types/index.d.ts +191 -0
  402. package/lib/ele-data-table/util.d.ts +261 -0
  403. package/lib/ele-data-table/util.js +417 -0
  404. package/lib/ele-dot/props.d.ts +5 -0
  405. package/lib/ele-dot/props.js +5 -5
  406. package/lib/ele-drawer/index.d.ts +1 -1
  407. package/lib/ele-drawer/props.d.ts +5 -0
  408. package/lib/ele-drawer/props.js +5 -5
  409. package/lib/ele-drawer/style/css-var.scss +1 -0
  410. package/lib/ele-dropdown/index.d.ts +1 -1
  411. package/lib/ele-dropdown/index.js +1 -0
  412. package/lib/ele-dropdown/props.d.ts +8 -0
  413. package/lib/ele-dropdown/props.js +8 -8
  414. package/lib/ele-dropdown/style/css-var.scss +1 -0
  415. package/lib/ele-dropdown/style/index.scss +10 -0
  416. package/lib/ele-edit-tag/index.d.ts +15 -17
  417. package/lib/ele-edit-tag/index.js +105 -76
  418. package/lib/ele-edit-tag/props.d.ts +16 -6
  419. package/lib/ele-edit-tag/props.js +15 -18
  420. package/lib/ele-edit-tag/style/index.scss +7 -3
  421. package/lib/ele-ellipsis/index.d.ts +4 -4
  422. package/lib/ele-ellipsis/props.d.ts +3 -0
  423. package/lib/ele-ellipsis/props.js +3 -3
  424. package/lib/ele-ellipsis/style/index.scss +1 -1
  425. package/lib/ele-ellipsis/types/index.d.ts +1 -6
  426. package/lib/ele-file-list/components/file-grid-item.d.ts +20 -5
  427. package/lib/ele-file-list/components/file-grid-item.js +7 -7
  428. package/lib/ele-file-list/components/file-grid.d.ts +26 -3
  429. package/lib/ele-file-list/components/file-grid.js +11 -11
  430. package/lib/ele-file-list/components/file-sort.d.ts +6 -0
  431. package/lib/ele-file-list/components/file-sort.js +3 -3
  432. package/lib/ele-file-list/components/file-table-item.d.ts +22 -5
  433. package/lib/ele-file-list/components/file-table-item.js +8 -8
  434. package/lib/ele-file-list/components/file-table.d.ts +37 -4
  435. package/lib/ele-file-list/components/file-table.js +16 -16
  436. package/lib/ele-file-list/index.d.ts +3 -3
  437. package/lib/ele-file-list/props.d.ts +22 -1
  438. package/lib/ele-file-list/props.js +20 -20
  439. package/lib/ele-file-list/style/css-var.scss +1 -0
  440. package/lib/ele-file-list/style/index.scss +15 -15
  441. package/lib/ele-file-list/types/index.d.ts +1 -11
  442. package/lib/ele-icon-select/components/icon-grid.d.ts +21 -3
  443. package/lib/ele-icon-select/components/icon-grid.js +33 -11
  444. package/lib/ele-icon-select/components/icon-popper.d.ts +34 -3
  445. package/lib/ele-icon-select/components/icon-popper.js +16 -16
  446. package/lib/ele-icon-select/index.d.ts +8 -8
  447. package/lib/ele-icon-select/props.d.ts +38 -3
  448. package/lib/ele-icon-select/props.js +36 -36
  449. package/lib/ele-icon-select/style/css-var.scss +1 -0
  450. package/lib/ele-icon-select/style/index.scss +2 -8
  451. package/lib/ele-loading/index.d.ts +2 -0
  452. package/lib/ele-loading/props.d.ts +10 -0
  453. package/lib/ele-loading/props.js +10 -10
  454. package/lib/ele-loading/style/css-var.scss +1 -0
  455. package/lib/ele-map-picker/components/map-view.d.ts +2 -2
  456. package/lib/ele-map-picker/components/map-view.js +7 -7
  457. package/lib/ele-map-picker/index.d.ts +5 -5
  458. package/lib/ele-map-picker/props.d.ts +53 -0
  459. package/lib/ele-map-picker/props.js +31 -31
  460. package/lib/ele-map-picker/style/css-var.scss +1 -0
  461. package/lib/ele-map-picker/style/index.scss +5 -5
  462. package/lib/ele-menus/index.d.ts +1 -1
  463. package/lib/ele-menus/index.js +2 -1
  464. package/lib/ele-menus/props.d.ts +8 -0
  465. package/lib/ele-menus/props.js +8 -8
  466. package/lib/ele-menus/style/css-var.scss +1 -0
  467. package/lib/ele-menus/style/index.scss +23 -23
  468. package/lib/ele-menus/util.d.ts +5 -1
  469. package/lib/ele-menus/util.js +5 -8
  470. package/lib/ele-modal/index.d.ts +1 -1
  471. package/lib/ele-modal/props.d.ts +18 -0
  472. package/lib/ele-modal/props.js +18 -18
  473. package/lib/ele-modal/style/css-var.scss +1 -0
  474. package/lib/ele-modal/style/index.scss +5 -5
  475. package/lib/ele-page/props.d.ts +4 -0
  476. package/lib/ele-page/props.js +4 -4
  477. package/lib/ele-page/style/css-var.scss +1 -0
  478. package/lib/ele-page/style/index.scss +5 -4
  479. package/lib/ele-pagination/index.d.ts +4 -1
  480. package/lib/ele-pagination/props.d.ts +4 -0
  481. package/lib/ele-pagination/props.js +3 -3
  482. package/lib/ele-pagination/style/css-var.scss +1 -0
  483. package/lib/ele-pagination/style/index.scss +6 -6
  484. package/lib/ele-popconfirm/index.d.ts +206 -9
  485. package/lib/ele-popconfirm/index.js +105 -109
  486. package/lib/ele-popconfirm/props.d.ts +105 -1
  487. package/lib/ele-popconfirm/props.js +15 -16
  488. package/lib/ele-popconfirm/style/css-var.scss +1 -0
  489. package/lib/ele-popover/index.d.ts +201 -6
  490. package/lib/ele-popover/index.js +25 -43
  491. package/lib/ele-popover/props.d.ts +105 -1
  492. package/lib/ele-popover/props.js +12 -4
  493. package/lib/ele-popover/style/css-var.scss +1 -71
  494. package/lib/ele-popover/style/index.js +1 -1
  495. package/lib/ele-popover/style/index.scss +2 -9
  496. package/lib/ele-printer/props.d.ts +12 -0
  497. package/lib/ele-printer/props.js +12 -12
  498. package/lib/ele-pro-layout/components/pro-header.d.ts +32 -0
  499. package/lib/ele-pro-layout/components/pro-header.js +20 -20
  500. package/lib/ele-pro-layout/components/pro-iframe.d.ts +10 -0
  501. package/lib/ele-pro-layout/components/pro-iframe.js +5 -5
  502. package/lib/ele-pro-layout/components/pro-sidebar.d.ts +22 -0
  503. package/lib/ele-pro-layout/components/pro-sidebar.js +16 -19
  504. package/lib/ele-pro-layout/components/pro-sidebox.d.ts +20 -0
  505. package/lib/ele-pro-layout/components/pro-sidebox.js +15 -18
  506. package/lib/ele-pro-layout/components/pro-tabs.d.ts +22 -3
  507. package/lib/ele-pro-layout/components/pro-tabs.js +29 -15
  508. package/lib/ele-pro-layout/components/tab-dropdown.d.ts +8 -2
  509. package/lib/ele-pro-layout/components/tab-dropdown.js +3 -3
  510. package/lib/ele-pro-layout/index.d.ts +17 -13
  511. package/lib/ele-pro-layout/props.d.ts +56 -1
  512. package/lib/ele-pro-layout/props.js +55 -55
  513. package/lib/ele-pro-layout/style/css-var.scss +1 -0
  514. package/lib/ele-pro-layout/style/header.scss +4 -4
  515. package/lib/ele-pro-layout/style/layout-theme.scss +2 -2
  516. package/lib/ele-pro-layout/style/layout.scss +4 -0
  517. package/lib/ele-pro-layout/style/tabs.scss +4 -9
  518. package/lib/ele-pro-layout/types/index.d.ts +0 -5
  519. package/lib/ele-pro-layout/util.js +1 -1
  520. package/lib/ele-pro-table/components/table-tools.d.ts +18 -1
  521. package/lib/ele-pro-table/components/table-tools.js +9 -9
  522. package/lib/ele-pro-table/components/tool-column-list.d.ts +49 -0
  523. package/lib/ele-pro-table/components/tool-column-list.js +185 -0
  524. package/lib/ele-pro-table/components/tool-column.d.ts +35 -15
  525. package/lib/ele-pro-table/components/tool-column.js +178 -263
  526. package/lib/ele-pro-table/index.d.ts +103 -129
  527. package/lib/ele-pro-table/index.js +140 -249
  528. package/lib/ele-pro-table/props.d.ts +73 -267
  529. package/lib/ele-pro-table/props.js +29 -94
  530. package/lib/ele-pro-table/style/css-var.scss +1 -4
  531. package/lib/ele-pro-table/style/index.js +5 -9
  532. package/lib/ele-pro-table/style/index.scss +85 -415
  533. package/lib/ele-pro-table/types/index.d.ts +8 -116
  534. package/lib/ele-pro-table/util.d.ts +6 -72
  535. package/lib/ele-pro-table/util.js +58 -260
  536. package/lib/ele-qr-code/props.d.ts +9 -0
  537. package/lib/ele-qr-code/props.js +9 -9
  538. package/lib/ele-qr-code/qrcodegen.js +2 -2
  539. package/lib/ele-qr-code/types/index.d.ts +10 -0
  540. package/lib/ele-qr-code-svg/index.d.ts +2 -2
  541. package/lib/ele-segmented/index.d.ts +2 -2
  542. package/lib/ele-segmented/props.d.ts +7 -0
  543. package/lib/ele-segmented/props.js +7 -7
  544. package/lib/ele-segmented/style/css-var.scss +1 -0
  545. package/lib/ele-segmented/style/index.scss +6 -6
  546. package/lib/ele-split-panel/index.d.ts +4 -4
  547. package/lib/ele-split-panel/props.d.ts +15 -0
  548. package/lib/ele-split-panel/props.js +15 -15
  549. package/lib/ele-split-panel/style/index.scss +13 -13
  550. package/lib/ele-steps/props.d.ts +2 -0
  551. package/lib/ele-steps/props.js +2 -2
  552. package/lib/ele-steps/style/css-var.scss +1 -0
  553. package/lib/ele-steps/style/index.scss +8 -8
  554. package/lib/ele-tab-tool/props.d.ts +2 -0
  555. package/lib/ele-tab-tool/props.js +2 -2
  556. package/lib/ele-tab-wrap/props.d.ts +2 -0
  557. package/lib/ele-tab-wrap/props.js +2 -2
  558. package/lib/ele-table/index.d.ts +12 -0
  559. package/lib/ele-table/index.js +2 -0
  560. package/lib/ele-table/props.d.ts +10 -0
  561. package/lib/ele-table/props.js +11 -4
  562. package/lib/ele-table/style/css-var.scss +1 -0
  563. package/lib/ele-table/style/index.scss +103 -22
  564. package/lib/ele-table-select/index.d.ts +39 -15
  565. package/lib/ele-table-select/index.js +1 -5
  566. package/lib/ele-table-select/props.d.ts +32 -1
  567. package/lib/ele-table-select/props.js +31 -31
  568. package/lib/ele-table-select/style/css-var.scss +1 -0
  569. package/lib/ele-table-select/style/index.scss +3 -3
  570. package/lib/ele-table-select/types/index.d.ts +0 -10
  571. package/lib/ele-tabs/components/tab-title.d.ts +19 -5
  572. package/lib/ele-tabs/components/tab-title.js +7 -7
  573. package/lib/ele-tabs/index.d.ts +4 -5
  574. package/lib/ele-tabs/index.js +1 -1
  575. package/lib/ele-tabs/props.d.ts +16 -3
  576. package/lib/ele-tabs/props.js +13 -13
  577. package/lib/ele-tabs/style/css-var.scss +1 -0
  578. package/lib/ele-tabs/style/index.scss +46 -22
  579. package/lib/ele-text/props.d.ts +10 -0
  580. package/lib/ele-text/props.js +10 -10
  581. package/lib/ele-text/style/css-var.scss +1 -0
  582. package/lib/ele-text/style/index.scss +4 -4
  583. package/lib/ele-tool/props.d.ts +3 -0
  584. package/lib/ele-tool/props.js +3 -3
  585. package/lib/ele-tool/style/css-var.scss +1 -0
  586. package/lib/ele-tool/style/index.scss +1 -2
  587. package/lib/ele-toolbar/props.d.ts +6 -0
  588. package/lib/ele-toolbar/props.js +6 -6
  589. package/lib/ele-toolbar/style/css-var.scss +1 -0
  590. package/lib/ele-toolbar/style/index.scss +2 -2
  591. package/lib/ele-tooltip/index.d.ts +11 -10
  592. package/lib/ele-tooltip/index.js +38 -30
  593. package/lib/ele-tooltip/props.d.ts +8 -1
  594. package/lib/ele-tooltip/props.js +9 -5
  595. package/lib/ele-tooltip/style/css-var.scss +72 -0
  596. package/lib/ele-tooltip/style/index.js +0 -1
  597. package/lib/ele-tooltip/style/index.scss +8 -2
  598. package/lib/ele-tour/index.d.ts +4 -6
  599. package/lib/ele-tour/index.js +29 -37
  600. package/lib/ele-tour/props.d.ts +6 -0
  601. package/lib/ele-tour/props.js +6 -6
  602. package/lib/ele-tour/style/index.js +1 -1
  603. package/lib/ele-tour/style/index.scss +6 -2
  604. package/lib/ele-tour/types/index.d.ts +2 -1
  605. package/lib/ele-tour/util.d.ts +2 -2
  606. package/lib/ele-tour/util.js +6 -2
  607. package/lib/ele-upload-list/components/list-item.d.ts +11 -1
  608. package/lib/ele-upload-list/components/list-item.js +5 -5
  609. package/lib/ele-upload-list/index.d.ts +1 -1
  610. package/lib/ele-upload-list/index.js +4 -4
  611. package/lib/ele-upload-list/props.d.ts +18 -0
  612. package/lib/ele-upload-list/props.js +18 -18
  613. package/lib/ele-virtual-table/components/body-cell.d.ts +150 -0
  614. package/lib/ele-virtual-table/components/body-cell.js +413 -0
  615. package/lib/ele-virtual-table/components/body-row.d.ts +148 -0
  616. package/lib/ele-virtual-table/components/body-row.js +205 -0
  617. package/lib/ele-virtual-table/components/cell-checkbox.d.ts +32 -0
  618. package/lib/ele-virtual-table/components/cell-checkbox.js +48 -0
  619. package/lib/ele-virtual-table/components/cell-filter.d.ts +48 -0
  620. package/lib/ele-virtual-table/components/cell-filter.js +210 -0
  621. package/lib/ele-virtual-table/components/expand-row.d.ts +18 -0
  622. package/lib/ele-virtual-table/components/expand-row.js +28 -0
  623. package/lib/ele-virtual-table/components/footer-row.d.ts +43 -0
  624. package/lib/ele-virtual-table/components/footer-row.js +104 -0
  625. package/lib/ele-virtual-table/components/header-cell.d.ts +97 -0
  626. package/lib/ele-virtual-table/components/header-cell.js +260 -0
  627. package/lib/ele-virtual-table/components/header-row.d.ts +89 -0
  628. package/lib/ele-virtual-table/components/header-row.js +125 -0
  629. package/lib/ele-virtual-table/index.js +986 -0
  630. package/lib/ele-virtual-table/props.d.ts +148 -0
  631. package/lib/ele-virtual-table/props.js +13 -0
  632. package/lib/ele-virtual-table/style/css-var.scss +127 -0
  633. package/lib/ele-virtual-table/style/index.js +10 -0
  634. package/lib/ele-virtual-table/style/index.scss +666 -0
  635. package/lib/ele-virtual-table/types/index.d.ts +157 -0
  636. package/lib/ele-virtual-table/util.d.ts +200 -0
  637. package/lib/ele-virtual-table/util.js +562 -0
  638. package/lib/ele-watermark/index.js +4 -0
  639. package/lib/ele-watermark/props.d.ts +12 -0
  640. package/lib/ele-watermark/props.js +12 -12
  641. package/lib/icons/FilterFilled.d.ts +2 -0
  642. package/lib/icons/FilterFilled.js +22 -0
  643. package/lib/icons/HomeOutlined.d.ts +2 -0
  644. package/lib/icons/HomeOutlined.js +47 -0
  645. package/lib/icons/index.d.ts +2 -0
  646. package/lib/icons/index.js +4 -0
  647. package/lib/lang/zh_TW.js +0 -1
  648. package/lib/style/index.scss +2 -0
  649. package/lib/style/themes/dark.scss +6 -1
  650. package/lib/style/themes/default.scss +57 -45
  651. package/lib/style/themes/rounded.scss +12 -10
  652. package/lib/style/themes/theme-util.scss +4 -0
  653. package/lib/style/util.scss +6 -6
  654. package/lib/utils/core.d.ts +10 -0
  655. package/lib/utils/core.js +2 -3
  656. package/lib/utils/validate.js +2 -2
  657. package/package.json +30 -30
  658. package/typings/global.d.ts +3 -1
  659. package/es/ele-pro-table/components/table-view.js +0 -138
  660. package/lib/ele-pro-table/components/table-view.js +0 -137
@@ -0,0 +1,562 @@
1
+ import { ref, onMounted, onBeforeMount, onActivated, onDeactivated } from "vue";
2
+ import { TableV2SortOrder } from "element-plus";
3
+ import { omit, mapTree, eachTree, getCurrentStyle, debounce } from "../utils/core";
4
+ import { getValue } from "../ele-data-table/util";
5
+ function getRowHeight(size, rowHeight) {
6
+ if (rowHeight != null && rowHeight > 0) {
7
+ return rowHeight;
8
+ }
9
+ if (size === "small") {
10
+ return 34;
11
+ }
12
+ if (size === "large") {
13
+ return 50;
14
+ }
15
+ return 42;
16
+ }
17
+ function getColKey(column) {
18
+ if (!column) {
19
+ return "";
20
+ }
21
+ return column.columnKey ?? column.property ?? column.prop ?? "";
22
+ }
23
+ function getNumberSize(size, defaultValue) {
24
+ if (typeof size === "number") {
25
+ if (size < 0) {
26
+ return defaultValue;
27
+ }
28
+ return size;
29
+ }
30
+ if (size == null || size === "" || size === "auto" || size.endsWith("%")) {
31
+ return defaultValue;
32
+ }
33
+ const num = Number.parseInt(size);
34
+ return isNaN(num) ? defaultValue : num;
35
+ }
36
+ function getTableHeight(height, maxHeight, minHeight, wrapHeight) {
37
+ const max = getNumberSize(maxHeight);
38
+ const h = getNumberSize(height);
39
+ if (h != null) {
40
+ return max == null || h <= max ? h : max;
41
+ }
42
+ return Math.max(wrapHeight, minHeight);
43
+ }
44
+ function computeFixedCols(cols) {
45
+ let lastFixedLeftIndex;
46
+ let firstFixedRightIndex;
47
+ cols.forEach((col, i) => {
48
+ const c = col.originalCol;
49
+ if (c) {
50
+ if (c.fixed === "left" || c.fixed === true) {
51
+ lastFixedLeftIndex = i;
52
+ } else if (firstFixedRightIndex == null && c.fixed === "right") {
53
+ firstFixedRightIndex = i;
54
+ }
55
+ }
56
+ });
57
+ if (lastFixedLeftIndex != null) {
58
+ cols[lastFixedLeftIndex].isFixedLeftLast = true;
59
+ }
60
+ if (firstFixedRightIndex != null) {
61
+ cols[firstFixedRightIndex].isFixedRightFirst = true;
62
+ }
63
+ }
64
+ function generateRowCols(columns, cols, rows, level, parentRowCol) {
65
+ if (rows[level] == null) {
66
+ rows[level] = [];
67
+ }
68
+ columns.forEach((col) => {
69
+ const colKey = getColKey(col);
70
+ const originalCol = omit(col, ["children"]);
71
+ if (parentRowCol != null && parentRowCol.originalCol != null) {
72
+ originalCol.fixed = parentRowCol.originalCol.fixed;
73
+ }
74
+ const rowCol = { key: colKey, originalCol };
75
+ if (col.children && col.children.length) {
76
+ rowCol.rowspan = 1;
77
+ rowCol.colspan = col.children.length;
78
+ generateRowCols(col.children, cols, rows, level + 1, rowCol);
79
+ if (parentRowCol && parentRowCol.colspan != null) {
80
+ parentRowCol.colspan += rowCol.colspan - 1;
81
+ }
82
+ } else {
83
+ rowCol.colspan = 1;
84
+ const bodyCol = {
85
+ width: getNumberSize(col.width),
86
+ minWidth: getNumberSize(col.minWidth, 80),
87
+ key: colKey,
88
+ dataKey: col.property ?? col.prop,
89
+ originalCol
90
+ };
91
+ cols.push(bodyCol);
92
+ }
93
+ rows[level].push(rowCol);
94
+ });
95
+ }
96
+ function analyseColumns(columns) {
97
+ const cols = [];
98
+ const rows = [];
99
+ if (!columns || !columns.length) {
100
+ return { cols, rows };
101
+ }
102
+ generateRowCols(columns, cols, rows, 0);
103
+ computeFixedCols(cols);
104
+ rows.forEach((row, i) => {
105
+ row.forEach((col) => {
106
+ if (col != null && col.rowspan == null) {
107
+ col.rowspan = rows.length - i;
108
+ }
109
+ });
110
+ computeFixedCols(row);
111
+ });
112
+ for (let i = 0; i < rows.length; i++) {
113
+ for (let j = 0; j < rows[i].length; j++) {
114
+ const row = rows[i][j];
115
+ if (row.colspan != null && row.colspan > 1) {
116
+ for (let n = 1; n < row.colspan; n++) {
117
+ rows[i].splice(j + n, 0, { colspan: 0, rowspan: 1 });
118
+ }
119
+ }
120
+ if (row.rowspan != null && row.rowspan > 1) {
121
+ for (let n = 1; n < row.rowspan; n++) {
122
+ rows[i + n].splice(j, 0, { colspan: 1, rowspan: 0 });
123
+ }
124
+ }
125
+ }
126
+ }
127
+ return { cols, rows };
128
+ }
129
+ function getColWidth(col, tableWidth, colsWidth, colsMinWidth) {
130
+ if (col.width != null) {
131
+ return col.width;
132
+ }
133
+ if (col.minWidth == null) {
134
+ return 0;
135
+ }
136
+ const surplusWidth = tableWidth - colsWidth;
137
+ if (surplusWidth <= colsMinWidth) {
138
+ return col.minWidth;
139
+ }
140
+ return Math.floor(col.minWidth / colsMinWidth * surplusWidth);
141
+ }
142
+ function computeFixedPositions(cols, colSizes) {
143
+ let left = 0;
144
+ cols.forEach((col, i) => {
145
+ const c = col.originalCol;
146
+ if (c && (c.fixed === "left" || c.fixed === true)) {
147
+ colSizes[i].fixedLeft = left + "px";
148
+ if (colSizes[i].width) {
149
+ left += colSizes[i].width;
150
+ }
151
+ }
152
+ });
153
+ let right = 0;
154
+ for (let i = cols.length - 1; i >= 0; i--) {
155
+ const c = cols[i].originalCol;
156
+ if (c && c.fixed === "right") {
157
+ colSizes[i].fixedRight = right + "px";
158
+ if (colSizes[i].width) {
159
+ right += colSizes[i].width;
160
+ }
161
+ }
162
+ }
163
+ }
164
+ function computeColSizes(cols, rows, wrapWidth) {
165
+ let isFixed = true;
166
+ let colsSumWidth = 0;
167
+ let colsSumMinWidth = 0;
168
+ cols.forEach((col) => {
169
+ if (col.width == null) {
170
+ isFixed = false;
171
+ if (col.minWidth != null) {
172
+ colsSumMinWidth += col.minWidth;
173
+ }
174
+ return;
175
+ }
176
+ colsSumWidth += col.width;
177
+ });
178
+ const tableWidth = isFixed ? Math.min(wrapWidth, colsSumWidth) : wrapWidth;
179
+ const colSizes = [];
180
+ let sumWidth = 0;
181
+ cols.forEach((col, i) => {
182
+ const width = getColWidth(col, tableWidth, colsSumWidth, colsSumMinWidth);
183
+ sumWidth += width;
184
+ colSizes[i] = { width };
185
+ if (i === cols.length - 1 && tableWidth > sumWidth) {
186
+ colSizes[i].width = width + tableWidth - sumWidth;
187
+ sumWidth = tableWidth;
188
+ }
189
+ });
190
+ computeFixedPositions(cols, colSizes);
191
+ const rowSizes = [];
192
+ rows.forEach((row) => {
193
+ const sizes = [];
194
+ row.forEach((col, colIndex) => {
195
+ if (!cols[colIndex] || !col.colspan) {
196
+ sizes[colIndex] = { width: 0 };
197
+ return;
198
+ }
199
+ let width = colSizes[colIndex].width || 0;
200
+ if (col.colspan > 1) {
201
+ const end = colIndex + col.colspan;
202
+ for (let i = colIndex + 1; i < end; i++) {
203
+ if (colSizes[i] && colSizes[i].width) {
204
+ width += colSizes[i].width;
205
+ }
206
+ }
207
+ }
208
+ sizes[colIndex] = { width };
209
+ });
210
+ rowSizes.push(sizes);
211
+ computeFixedPositions(row, sizes);
212
+ });
213
+ return { width: tableWidth, colSizes, rowSizes, sumWidth };
214
+ }
215
+ function colSizesIsChanged(colSizes, newSizes) {
216
+ if (colSizes.length !== newSizes.length) {
217
+ return true;
218
+ }
219
+ for (let i = 0; i < colSizes.length; i++) {
220
+ if (colSizes[i].width !== newSizes[i].width) {
221
+ return true;
222
+ }
223
+ }
224
+ return false;
225
+ }
226
+ function getTableColumns(bodyCols, colSizes) {
227
+ const columns = bodyCols.map((col, i) => {
228
+ return {
229
+ title: col.originalCol ? col.originalCol.label : void 0,
230
+ width: colSizes[i].width,
231
+ key: col.key,
232
+ dataKey: col.dataKey
233
+ };
234
+ });
235
+ return columns.filter((col) => !!col.width);
236
+ }
237
+ function transformTableData(data, hasExpandCol, childrenName, rowKey, selectable) {
238
+ if (!data || !data.length) {
239
+ return [];
240
+ }
241
+ if (hasExpandCol) {
242
+ return data.map((d, i) => {
243
+ const key = getValue(d, rowKey);
244
+ const temp = {
245
+ _rowKey: "_expand_" + key,
246
+ _isExpandRow: true,
247
+ _expandParent: d,
248
+ _expandParantIndex: i
249
+ };
250
+ return {
251
+ ...d,
252
+ _rowKey: key,
253
+ _rowIndex: i,
254
+ _rowDisabled: !(selectable == null || selectable(d, index) === true),
255
+ children: [temp]
256
+ };
257
+ });
258
+ }
259
+ let index = -1;
260
+ return mapTree(
261
+ data,
262
+ (d) => {
263
+ index++;
264
+ return {
265
+ ...d,
266
+ _rowKey: getValue(d, rowKey),
267
+ _rowIndex: index,
268
+ _rowDisabled: !!(selectable && !selectable(d, index))
269
+ };
270
+ },
271
+ childrenName
272
+ );
273
+ }
274
+ function isAutoRowHeight(hasExpandCol, bodyCols, showOverflowTooltip) {
275
+ if (hasExpandCol) {
276
+ return true;
277
+ }
278
+ let isAllEllipsis = true;
279
+ for (let i = 0; i < bodyCols.length; i++) {
280
+ const col = bodyCols[i].originalCol;
281
+ if (col && col.type !== "selection" && col.type !== "expand") {
282
+ if (col.showOverflowTooltip == null) {
283
+ isAllEllipsis = false;
284
+ } else if (col.showOverflowTooltip === false) {
285
+ return true;
286
+ }
287
+ }
288
+ }
289
+ if (isAllEllipsis) {
290
+ return false;
291
+ }
292
+ return showOverflowTooltip == null || showOverflowTooltip === false;
293
+ }
294
+ function CellRender(props, ctx) {
295
+ var _a, _b;
296
+ if (typeof props.render === "function" && props.params != null) {
297
+ const node = props.render(...props.params);
298
+ if (node != null) {
299
+ return Array.isArray(node) ? node : [node];
300
+ }
301
+ }
302
+ return (_b = (_a = ctx.slots).default) == null ? void 0 : _b.call(_a);
303
+ }
304
+ function getSortBy(current, col) {
305
+ const key = getColKey(col);
306
+ if (current == null || current.order == null || current.key !== key) {
307
+ return { key, order: TableV2SortOrder.ASC };
308
+ }
309
+ if (current.order === TableV2SortOrder.DESC) {
310
+ return;
311
+ }
312
+ return { key, order: TableV2SortOrder.DESC };
313
+ }
314
+ function getSortOrder(order) {
315
+ if (order === "ascending") {
316
+ return TableV2SortOrder.ASC;
317
+ }
318
+ if (order === "descending") {
319
+ return TableV2SortOrder.DESC;
320
+ }
321
+ }
322
+ function getOrderValue(sort) {
323
+ if (sort != null) {
324
+ if (sort === TableV2SortOrder.ASC) {
325
+ return "ascending";
326
+ }
327
+ if (sort === TableV2SortOrder.DESC) {
328
+ return "descending";
329
+ }
330
+ }
331
+ }
332
+ function getDefaultSort(defaultSort) {
333
+ if (!defaultSort) {
334
+ return;
335
+ }
336
+ const { prop, order } = defaultSort;
337
+ if (!prop || !order || !["ascending", "descending"].includes(order)) {
338
+ return;
339
+ }
340
+ return {
341
+ key: prop,
342
+ order: order === "ascending" ? TableV2SortOrder.ASC : TableV2SortOrder.DESC
343
+ };
344
+ }
345
+ function getDefaultFiltered(columns) {
346
+ const filtered = {};
347
+ eachTree(columns, (col) => {
348
+ const key = getColKey(col);
349
+ if (key && col.filteredValue != null && col.filteredValue.length) {
350
+ filtered[key] = col.filteredValue;
351
+ }
352
+ });
353
+ return filtered;
354
+ }
355
+ function getColFiltered(col, filtered) {
356
+ if (!col) {
357
+ return;
358
+ }
359
+ if (!filtered) {
360
+ return col.filteredValue;
361
+ }
362
+ const key = getColKey(col);
363
+ if (!key) {
364
+ return col.filteredValue;
365
+ }
366
+ return filtered[key] ?? col.filteredValue;
367
+ }
368
+ function getSelectableFunc(cols) {
369
+ for (let i = 0; i < cols.length; i++) {
370
+ const c = cols[i].originalCol;
371
+ if (c && c.type === "selection") {
372
+ return typeof c.selectable === "function" ? c.selectable : null;
373
+ }
374
+ }
375
+ }
376
+ function getTreeProps(treeProps) {
377
+ const { children, hasChildren } = treeProps || {};
378
+ return {
379
+ childrenName: children || "children",
380
+ hasChildrenName: hasChildren || "hasChildren"
381
+ };
382
+ }
383
+ function getSumValue(data, prop) {
384
+ if (!data || !prop) {
385
+ return "";
386
+ }
387
+ let sum = 0;
388
+ for (let i = 0; i < data.length; i++) {
389
+ const val = Number(getValue(data[i], prop));
390
+ if (Number.isNaN(val)) {
391
+ return "";
392
+ }
393
+ sum += val;
394
+ }
395
+ return String(sum);
396
+ }
397
+ function getColumnByKey(columns, key, dataKey) {
398
+ let column = void 0;
399
+ if (columns != null && key != null) {
400
+ eachTree(columns, (col) => {
401
+ if (dataKey != null) {
402
+ if (col.property === dataKey || col.prop === dataKey) {
403
+ column = col;
404
+ return false;
405
+ }
406
+ } else if (getColKey(col) === key) {
407
+ column = col;
408
+ return false;
409
+ }
410
+ });
411
+ }
412
+ return column;
413
+ }
414
+ function floorSize(size) {
415
+ const floor = Math.floor(size);
416
+ if (size - floor < 1e-3) {
417
+ return floor;
418
+ }
419
+ return size;
420
+ }
421
+ function cellIsOverflow(cell) {
422
+ const cellChild = cell.querySelector(".ele-table-cell");
423
+ if (!cellChild || !cellChild.childNodes.length) {
424
+ return false;
425
+ }
426
+ const range = document.createRange();
427
+ range.setStart(cellChild, 0);
428
+ range.setEnd(cellChild, cellChild.childNodes.length);
429
+ const {
430
+ width
431
+ /* , height */
432
+ } = range.getBoundingClientRect();
433
+ const rangeWidth = floorSize(width);
434
+ const style = getCurrentStyle(cellChild);
435
+ const left = Number.parseInt(style.paddingLeft) || 0;
436
+ const right = Number.parseInt(style.paddingRight) || 0;
437
+ const horizontalPadding = left + right;
438
+ return rangeWidth + horizontalPadding > cellChild.offsetWidth || //rangeHeight + verticalPadding > cellChild.offsetHeight ||
439
+ cellChild.scrollWidth > cellChild.offsetWidth;
440
+ }
441
+ function useAutoResize(getEl) {
442
+ const wrapWidth = ref(0);
443
+ const wrapHeight = ref(0);
444
+ const updateWrapSize = () => {
445
+ const el = getEl();
446
+ if (el) {
447
+ const width = Math.floor(el.clientWidth);
448
+ if (wrapWidth.value !== width) {
449
+ wrapWidth.value = width;
450
+ }
451
+ const height = Math.floor(el.clientHeight);
452
+ if (wrapWidth.value !== height) {
453
+ wrapHeight.value = height;
454
+ }
455
+ }
456
+ };
457
+ const observer = new ResizeObserver(
458
+ debounce(() => {
459
+ updateWrapSize();
460
+ }, 400)
461
+ );
462
+ const observe = () => {
463
+ unobserve();
464
+ const el = getEl();
465
+ if (el) {
466
+ observer.observe(el);
467
+ }
468
+ };
469
+ const unobserve = () => {
470
+ const el = getEl();
471
+ if (el) {
472
+ observer.unobserve(el);
473
+ }
474
+ };
475
+ onMounted(() => {
476
+ updateWrapSize();
477
+ observe();
478
+ });
479
+ onBeforeMount(() => {
480
+ observer.disconnect();
481
+ });
482
+ onActivated(() => {
483
+ updateWrapSize();
484
+ observe();
485
+ });
486
+ onDeactivated(() => {
487
+ unobserve();
488
+ });
489
+ return { wrapWidth, wrapHeight, updateWrapSize };
490
+ }
491
+ function useState() {
492
+ const state = {
493
+ current: null,
494
+ selected: /* @__PURE__ */ new Map(),
495
+ scrollTop: 0
496
+ };
497
+ const getCurrent = () => {
498
+ return state.current;
499
+ };
500
+ const setCurrent = (row) => {
501
+ state.current = row == null ? null : row;
502
+ };
503
+ const getSelected = () => {
504
+ return Array.from(state.selected.values());
505
+ };
506
+ const addSelected = (key, row) => {
507
+ state.selected.set(key, row);
508
+ };
509
+ const removeSelected = (key) => {
510
+ state.selected.delete(key);
511
+ };
512
+ const clearSelected = () => {
513
+ state.selected.clear();
514
+ };
515
+ const getScrollTop = () => {
516
+ return state.scrollTop;
517
+ };
518
+ const cacheScrollTop = (top) => {
519
+ state.scrollTop = top;
520
+ };
521
+ return {
522
+ getCurrent,
523
+ setCurrent,
524
+ getSelected,
525
+ addSelected,
526
+ removeSelected,
527
+ clearSelected,
528
+ getScrollTop,
529
+ cacheScrollTop
530
+ };
531
+ }
532
+ export {
533
+ CellRender,
534
+ analyseColumns,
535
+ cellIsOverflow,
536
+ colSizesIsChanged,
537
+ computeColSizes,
538
+ computeFixedCols,
539
+ computeFixedPositions,
540
+ floorSize,
541
+ generateRowCols,
542
+ getColFiltered,
543
+ getColKey,
544
+ getColWidth,
545
+ getColumnByKey,
546
+ getDefaultFiltered,
547
+ getDefaultSort,
548
+ getNumberSize,
549
+ getOrderValue,
550
+ getRowHeight,
551
+ getSelectableFunc,
552
+ getSortBy,
553
+ getSortOrder,
554
+ getSumValue,
555
+ getTableColumns,
556
+ getTableHeight,
557
+ getTreeProps,
558
+ isAutoRowHeight,
559
+ transformTableData,
560
+ useAutoResize,
561
+ useState
562
+ };
@@ -47,6 +47,10 @@ const _sfc_main = defineComponent({
47
47
  opacity: "1 !important",
48
48
  transform: "none !important",
49
49
  filter: "none !important",
50
+ visibility: "visible !important",
51
+ maxWidth: "none !important",
52
+ maxHeight: "none !important",
53
+ zoom: "1 !important",
50
54
  display: "block !important",
51
55
  ...props.customStyle
52
56
  };
@@ -1,17 +1,29 @@
1
1
  import type { PropType, ExtractPropTypes } from 'vue';
2
2
  import type { WatermarkGap, WatermarkOffset, WatermarkFont } from './types';
3
3
  export declare const watermarkProps: {
4
+ /** 宽度 */
4
5
  width: NumberConstructor;
6
+ /** 高度 */
5
7
  height: NumberConstructor;
8
+ /** 旋转角度 */
6
9
  rotate: NumberConstructor;
10
+ /** 层级 */
7
11
  zIndex: NumberConstructor;
12
+ /** 图片源 */
8
13
  image: StringConstructor;
14
+ /** 文字内容 */
9
15
  content: PropType<string | string[]>;
16
+ /** 文字样式 */
10
17
  font: PropType<WatermarkFont>;
18
+ /** 间距 */
11
19
  gap: PropType<WatermarkGap>;
20
+ /** 距离左上角的偏移量 */
12
21
  offset: PropType<WatermarkOffset>;
22
+ /** 自定义样式 */
13
23
  customStyle: PropType<Partial<import("vue").CSSProperties>>;
24
+ /** 是否使用固定定位 */
14
25
  fixed: BooleanConstructor;
26
+ /** 是否禁用 */
15
27
  disabled: BooleanConstructor;
16
28
  };
17
29
  export type WatermarkProps = ExtractPropTypes<typeof watermarkProps>;
@@ -1,27 +1,27 @@
1
1
  const watermarkProps = {
2
- // 宽度
2
+ /** 宽度 */
3
3
  width: Number,
4
- // 高度
4
+ /** 高度 */
5
5
  height: Number,
6
- // 旋转角度
6
+ /** 旋转角度 */
7
7
  rotate: Number,
8
- // 层级
8
+ /** 层级 */
9
9
  zIndex: Number,
10
- // 图片源
10
+ /** 图片源 */
11
11
  image: String,
12
- // 文字内容
12
+ /** 文字内容 */
13
13
  content: [String, Array],
14
- // 文字样式
14
+ /** 文字样式 */
15
15
  font: Object,
16
- // 间距
16
+ /** 间距 */
17
17
  gap: Array,
18
- // 距离左上角的偏移量
18
+ /** 距离左上角的偏移量 */
19
19
  offset: Array,
20
- // 自定义样式
20
+ /** 自定义样式 */
21
21
  customStyle: Object,
22
- // 是否使用固定定位
22
+ /** 是否使用固定定位 */
23
23
  fixed: Boolean,
24
- // 是否禁用
24
+ /** 是否禁用 */
25
25
  disabled: Boolean
26
26
  };
27
27
  export {
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
2
+ export default _default;
@@ -0,0 +1,23 @@
1
+ import { defineComponent, openBlock, createElementBlock, createElementVNode } from "vue";
2
+ const _sfc_main = defineComponent({
3
+ name: "FilterFilled"
4
+ });
5
+ const _export_sfc = (sfc, props) => {
6
+ const target = sfc.__vccOpts || sfc;
7
+ for (const [key, val] of props) {
8
+ target[key] = val;
9
+ }
10
+ return target;
11
+ };
12
+ const _hoisted_1 = { viewBox: "0 0 1024 1024" };
13
+ const _hoisted_2 = /* @__PURE__ */ createElementVNode("path", { d: "M 349 838 c 0 17.7 14.2 32 31.8 32 h 262.4 c 17.6 0 31.8 -14.3 31.8 -32 V 642 H 349 v 196 Z M 880.1 154 H 143.9 c -24.5 0 -39.8 26.7 -27.5 48 l 221.3 376 h 348.8 l 221.3 -376 c 12.1 -21.3 -3.2 -48 -27.7 -48 Z" }, null, -1);
14
+ const _hoisted_3 = [
15
+ _hoisted_2
16
+ ];
17
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
18
+ return openBlock(), createElementBlock("svg", _hoisted_1, _hoisted_3);
19
+ }
20
+ const FilterFilled = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
21
+ export {
22
+ FilterFilled as default
23
+ };
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
2
+ export default _default;