ele-admin-plus 1.1.9-beta.9 → 1.1.9

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 (703) hide show
  1. package/es/core-installer.d.ts +2 -2
  2. package/es/ele-alert/index.d.ts +23 -23
  3. package/es/ele-alert/index.js +2 -2
  4. package/es/ele-alert/props.d.ts +10 -9
  5. package/es/ele-app/el.d.ts +2 -1
  6. package/es/ele-app/index.d.ts +2 -2
  7. package/es/ele-app/style/overwrite/date-picker/index.scss +32 -5
  8. package/es/ele-avatar-group/index.d.ts +29 -28
  9. package/es/ele-avatar-group/props.d.ts +10 -9
  10. package/es/ele-bar-code/index.d.ts +11 -10
  11. package/es/ele-bar-code/props.d.ts +4 -3
  12. package/es/ele-basic-select/index.d.ts +37 -35
  13. package/es/ele-basic-select/index.js +24 -7
  14. package/es/ele-basic-select/props.d.ts +9 -8
  15. package/es/ele-basic-select/util.d.ts +2 -1
  16. package/es/ele-bottom-bar/index.d.ts +6 -6
  17. package/es/ele-bottom-bar/props.d.ts +4 -3
  18. package/es/ele-breadcrumb/index.d.ts +11 -10
  19. package/es/ele-breadcrumb/props.d.ts +5 -4
  20. package/es/ele-card/index.d.ts +12 -12
  21. package/es/ele-card/props.d.ts +7 -6
  22. package/es/ele-check-card/components/card-item.d.ts +7 -6
  23. package/es/ele-check-card/index.d.ts +15 -14
  24. package/es/ele-check-card/props.d.ts +6 -5
  25. package/es/ele-config-provider/components/receiver-view.d.ts +3 -3
  26. package/es/ele-config-provider/components/receiver-view.js +119 -30
  27. package/es/ele-config-provider/index.d.ts +7 -7
  28. package/es/ele-config-provider/props.d.ts +4 -3
  29. package/es/ele-config-provider/receiver.d.ts +6 -10
  30. package/es/ele-config-provider/receiver.js +32 -117
  31. package/es/ele-config-provider/types.d.ts +3 -29
  32. package/es/ele-copyable/index.d.ts +32 -31
  33. package/es/ele-copyable/props.d.ts +9 -8
  34. package/es/ele-count-up/index.d.ts +8 -7
  35. package/es/ele-count-up/props.d.ts +3 -2
  36. package/es/ele-cropper/components/cropper-preview.d.ts +3 -3
  37. package/es/ele-cropper/components/cropper-tools.d.ts +12 -11
  38. package/es/ele-cropper/index.d.ts +16 -15
  39. package/es/ele-cropper/props.d.ts +4 -3
  40. package/es/ele-cropper-modal/index.d.ts +16 -15
  41. package/es/ele-cropper-modal/index.js +1 -1
  42. package/es/ele-cropper-modal/props.d.ts +7 -6
  43. package/es/ele-dashboard/index.d.ts +5 -5
  44. package/es/ele-dashboard/props.d.ts +3 -2
  45. package/es/ele-data-table/index.d.ts +63 -68
  46. package/es/ele-data-table/props.d.ts +36 -41
  47. package/es/ele-data-table/types.d.ts +8 -16
  48. package/es/ele-data-table/util.d.ts +10 -9
  49. package/es/ele-dot/index.d.ts +4 -4
  50. package/es/ele-dot/props.d.ts +3 -2
  51. package/es/ele-drawer/index.d.ts +75 -71
  52. package/es/ele-drawer/index.js +107 -113
  53. package/es/ele-drawer/props.d.ts +26 -25
  54. package/es/ele-drawer/style/index.scss +48 -105
  55. package/es/ele-dropdown/index.d.ts +66 -65
  56. package/es/ele-dropdown/props.d.ts +22 -21
  57. package/es/ele-edit-tag/index.d.ts +33 -32
  58. package/es/ele-edit-tag/index.js +1 -1
  59. package/es/ele-edit-tag/props.d.ts +10 -9
  60. package/es/ele-ellipsis/index.d.ts +23 -22
  61. package/es/ele-ellipsis/props.d.ts +8 -7
  62. package/es/ele-file-list/components/file-grid-item.d.ts +13 -12
  63. package/es/ele-file-list/components/file-grid-item.js +1 -1
  64. package/es/ele-file-list/components/file-grid.d.ts +10 -9
  65. package/es/ele-file-list/components/file-sort.d.ts +2 -2
  66. package/es/ele-file-list/components/file-table-item.d.ts +13 -12
  67. package/es/ele-file-list/components/file-table-item.js +1 -1
  68. package/es/ele-file-list/components/file-table.d.ts +10 -9
  69. package/es/ele-file-list/icons.d.ts +2 -1
  70. package/es/ele-file-list/index.d.ts +36 -35
  71. package/es/ele-file-list/props.d.ts +6 -5
  72. package/es/ele-file-list-tool/index.d.ts +3 -3
  73. package/es/ele-icon-select/components/icon-grid.d.ts +15 -14
  74. package/es/ele-icon-select/components/icon-grid.js +1 -1
  75. package/es/ele-icon-select/index.d.ts +49 -48
  76. package/es/ele-icon-select/props.d.ts +17 -16
  77. package/es/ele-loading/index.d.ts +12 -15
  78. package/es/ele-loading/index.js +10 -16
  79. package/es/ele-loading/props.d.ts +5 -4
  80. package/es/ele-map-picker/components/map-view.d.ts +29 -28
  81. package/es/ele-map-picker/components/map-view.js +1 -1
  82. package/es/ele-map-picker/index.d.ts +27 -26
  83. package/es/ele-map-picker/index.js +1 -1
  84. package/es/ele-map-picker/props.d.ts +8 -7
  85. package/es/ele-menus/index.d.ts +61 -62
  86. package/es/ele-menus/index.js +1 -1
  87. package/es/ele-menus/props.d.ts +16 -17
  88. package/es/ele-menus/props.js +1 -3
  89. package/es/ele-menus/style/css-var.scss +1 -5
  90. package/es/ele-menus/util.d.ts +3 -2
  91. package/es/ele-modal/index.d.ts +75 -68
  92. package/es/ele-modal/index.js +164 -186
  93. package/es/ele-modal/props.d.ts +26 -23
  94. package/es/ele-modal/props.js +2 -0
  95. package/es/ele-modal/style/index.scss +85 -146
  96. package/es/ele-modal/util.d.ts +20 -45
  97. package/es/ele-modal/util.js +55 -179
  98. package/es/ele-page/index.d.ts +2 -2
  99. package/es/ele-page/props.d.ts +2 -1
  100. package/es/ele-pagination/index.d.ts +40 -31
  101. package/es/ele-pagination/index.js +4 -1
  102. package/es/ele-pagination/props.d.ts +17 -11
  103. package/es/ele-pagination/props.js +5 -0
  104. package/es/ele-popconfirm/index.d.ts +90 -89
  105. package/es/ele-popconfirm/index.js +6 -28
  106. package/es/ele-popconfirm/props.d.ts +32 -31
  107. package/es/ele-popover/index.d.ts +69 -68
  108. package/es/ele-popover/index.js +6 -14
  109. package/es/ele-popover/props.d.ts +26 -25
  110. package/es/ele-printer/index.d.ts +18 -18
  111. package/es/ele-printer/props.d.ts +6 -5
  112. package/es/ele-printer/util.d.ts +2 -1
  113. package/es/ele-pro-layout/components/header-tool.d.ts +1 -1
  114. package/es/ele-pro-layout/components/pro-header.d.ts +84 -28
  115. package/es/ele-pro-layout/components/pro-header.js +110 -20
  116. package/es/ele-pro-layout/components/pro-iframe.d.ts +7 -7
  117. package/es/ele-pro-layout/components/pro-iframe.js +31 -41
  118. package/es/ele-pro-layout/components/pro-sidebar.d.ts +14 -18
  119. package/es/ele-pro-layout/components/pro-sidebar.js +2 -5
  120. package/es/ele-pro-layout/components/pro-sidebox.d.ts +16 -20
  121. package/es/ele-pro-layout/components/pro-sidebox.js +2 -5
  122. package/es/ele-pro-layout/components/pro-tabs.d.ts +12 -11
  123. package/es/ele-pro-layout/components/sidebar-tool.d.ts +1 -1
  124. package/es/ele-pro-layout/components/tab-dropdown.d.ts +8 -7
  125. package/es/ele-pro-layout/components/tab-dropdown.js +1 -1
  126. package/es/ele-pro-layout/index.d.ts +97 -97
  127. package/es/ele-pro-layout/index.js +62 -47
  128. package/es/ele-pro-layout/props.d.ts +11 -13
  129. package/es/ele-pro-layout/props.js +2 -4
  130. package/es/ele-pro-layout/style/css-var.scss +3 -18
  131. package/es/ele-pro-layout/style/header.scss +74 -9
  132. package/es/ele-pro-layout/style/layout-mobile.scss +2 -2
  133. package/es/ele-pro-layout/style/layout-style.scss +8 -3
  134. package/es/ele-pro-layout/style/layout-theme.scss +48 -23
  135. package/es/ele-pro-layout/style/layout.scss +38 -8
  136. package/es/ele-pro-layout/style/sidebar.scss +0 -1
  137. package/es/ele-pro-layout/style/tabs.scss +19 -11
  138. package/es/ele-pro-layout/types.d.ts +1 -1
  139. package/es/ele-pro-layout/util.d.ts +6 -6
  140. package/es/ele-pro-layout/util.js +2 -3
  141. package/es/ele-pro-table/components/table-tools.d.ts +22 -21
  142. package/es/ele-pro-table/components/table-tools.js +1 -1
  143. package/es/ele-pro-table/components/tool-column-list.d.ts +6 -5
  144. package/es/ele-pro-table/components/tool-column-list.js +3 -7
  145. package/es/ele-pro-table/components/tool-column.d.ts +14 -13
  146. package/es/ele-pro-table/components/tool-column.js +3 -7
  147. package/es/ele-pro-table/components/tool-export.d.ts +24 -302
  148. package/es/ele-pro-table/components/tool-export.js +10 -12
  149. package/es/ele-pro-table/components/tool-print-body-cell.d.ts +13 -12
  150. package/es/ele-pro-table/components/tool-print-header-cell.d.ts +13 -12
  151. package/es/ele-pro-table/components/tool-print.d.ts +30 -747
  152. package/es/ele-pro-table/components/tool-print.js +26 -18
  153. package/es/ele-pro-table/index.d.ts +131 -143
  154. package/es/ele-pro-table/index.js +51 -29
  155. package/es/ele-pro-table/props.d.ts +44 -46
  156. package/es/ele-pro-table/types.d.ts +13 -0
  157. package/es/ele-pro-table/util.d.ts +26 -22
  158. package/es/ele-pro-table/util.js +49 -28
  159. package/es/ele-qr-code/index.d.ts +16 -15
  160. package/es/ele-qr-code/props.d.ts +4 -3
  161. package/es/ele-qr-code/util.d.ts +3 -2
  162. package/es/ele-qr-code-svg/index.d.ts +18 -18
  163. package/es/ele-segmented/index.d.ts +10 -9
  164. package/es/ele-segmented/props.d.ts +3 -2
  165. package/es/ele-split-panel/index.d.ts +18 -17
  166. package/es/ele-split-panel/props.d.ts +5 -4
  167. package/es/ele-steps/index.d.ts +33 -33
  168. package/es/ele-steps/props.d.ts +10 -9
  169. package/es/ele-tab-tool/index.d.ts +2 -2
  170. package/es/ele-tab-tool/props.d.ts +2 -1
  171. package/es/ele-tab-wrap/index.d.ts +6 -6
  172. package/es/ele-tab-wrap/index.js +2 -1
  173. package/es/ele-tab-wrap/props.d.ts +3 -2
  174. package/es/ele-table/index.d.ts +4 -4
  175. package/es/ele-table/props.d.ts +3 -2
  176. package/es/ele-table-select/index.d.ts +45 -43
  177. package/es/ele-table-select/index.js +29 -27
  178. package/es/ele-table-select/props.d.ts +11 -10
  179. package/es/ele-tabs/components/tab-title.d.ts +9 -8
  180. package/es/ele-tabs/index.d.ts +43 -55
  181. package/es/ele-tabs/index.js +1 -0
  182. package/es/ele-tabs/props.d.ts +17 -23
  183. package/es/ele-tabs/style/css-var.scss +1 -30
  184. package/es/ele-tabs/style/index.scss +372 -241
  185. package/es/ele-tabs/types.d.ts +2 -1
  186. package/es/ele-text/index.d.ts +12 -12
  187. package/es/ele-text/props.d.ts +5 -4
  188. package/es/ele-tool/index.d.ts +7 -7
  189. package/es/ele-tool/props.d.ts +3 -2
  190. package/es/ele-toolbar/index.d.ts +15 -15
  191. package/es/ele-toolbar/props.d.ts +7 -6
  192. package/es/ele-tooltip/index.d.ts +59 -58
  193. package/es/ele-tooltip/index.js +3 -0
  194. package/es/ele-tooltip/props.d.ts +28 -22
  195. package/es/ele-tooltip/props.js +2 -0
  196. package/es/ele-tour/index.d.ts +15 -14
  197. package/es/ele-tour/props.d.ts +3 -2
  198. package/es/ele-tour/util.d.ts +3 -2
  199. package/es/ele-tree-select/index.d.ts +37 -36
  200. package/es/ele-tree-select/props.d.ts +12 -11
  201. package/es/ele-tree-select/util.d.ts +3 -2
  202. package/es/ele-upload-list/components/list-item.d.ts +7 -6
  203. package/es/ele-upload-list/index.d.ts +26 -25
  204. package/es/ele-upload-list/props.d.ts +6 -5
  205. package/es/ele-virtual-table/components/body-cell.d.ts +100 -64
  206. package/es/ele-virtual-table/components/body-cell.js +52 -70
  207. package/es/ele-virtual-table/components/body-row.d.ts +89 -65
  208. package/es/ele-virtual-table/components/body-row.js +57 -52
  209. package/es/ele-virtual-table/components/cell-checkbox.d.ts +5 -4
  210. package/es/ele-virtual-table/components/cell-filter.d.ts +18 -17
  211. package/es/ele-virtual-table/components/cell-filter.js +8 -12
  212. package/es/ele-virtual-table/components/expand-row.d.ts +11 -10
  213. package/es/ele-virtual-table/components/expand-row.js +3 -3
  214. package/es/ele-virtual-table/components/footer-row.d.ts +36 -17
  215. package/es/ele-virtual-table/components/footer-row.js +19 -14
  216. package/es/ele-virtual-table/components/header-cell.d.ts +16 -15
  217. package/es/ele-virtual-table/components/header-row.d.ts +12 -11
  218. package/es/ele-virtual-table/index.d.ts +91 -100
  219. package/es/ele-virtual-table/index.js +134 -136
  220. package/es/ele-virtual-table/props.d.ts +49 -51
  221. package/es/ele-virtual-table/style/index.scss +1 -1
  222. package/es/ele-virtual-table/types.d.ts +88 -68
  223. package/es/ele-virtual-table/util.d.ts +13 -11
  224. package/es/ele-virtual-table/util.js +25 -22
  225. package/es/ele-watermark/index.d.ts +15 -14
  226. package/es/ele-watermark/props.d.ts +4 -3
  227. package/es/ele-watermark/util.d.ts +3 -2
  228. package/es/ele-xg-player/index.d.ts +10 -10
  229. package/es/icons/AnalysisOutlined.d.ts +1 -1
  230. package/es/icons/ApplicationOutlined.d.ts +1 -1
  231. package/es/icons/AppstoreAddOutlined.d.ts +1 -1
  232. package/es/icons/AppstoreOutlined.d.ts +1 -1
  233. package/es/icons/ArrowDown.d.ts +1 -1
  234. package/es/icons/ArrowDownOutlined.d.ts +1 -1
  235. package/es/icons/ArrowLeft.d.ts +1 -1
  236. package/es/icons/ArrowLeftOutlined.d.ts +1 -1
  237. package/es/icons/ArrowRight.d.ts +1 -1
  238. package/es/icons/ArrowRightOutlined.d.ts +1 -1
  239. package/es/icons/ArrowUp.d.ts +1 -1
  240. package/es/icons/ArrowUpOutlined.d.ts +1 -1
  241. package/es/icons/BellOutlined.d.ts +1 -1
  242. package/es/icons/BookOutlined.d.ts +1 -1
  243. package/es/icons/CalendarOutlined.d.ts +1 -1
  244. package/es/icons/CaretDownFilled.d.ts +1 -1
  245. package/es/icons/CaretUpFilled.d.ts +1 -1
  246. package/es/icons/CheckCircleFilled.d.ts +1 -1
  247. package/es/icons/CheckCircleOutlined.d.ts +1 -1
  248. package/es/icons/CheckOutlined.d.ts +1 -1
  249. package/es/icons/CityOutlined.d.ts +1 -1
  250. package/es/icons/ClockCircleOutlined.d.ts +1 -1
  251. package/es/icons/CloseCircleFilled.d.ts +1 -1
  252. package/es/icons/CloseCircleOutlined.d.ts +1 -1
  253. package/es/icons/CloseOutlined.d.ts +1 -1
  254. package/es/icons/CloudUploadOutlined.d.ts +1 -1
  255. package/es/icons/ClusterOutlined.d.ts +1 -1
  256. package/es/icons/CodeOutlined.d.ts +1 -1
  257. package/es/icons/ColumnHeightOutlined.d.ts +1 -1
  258. package/es/icons/CompassOutlined.d.ts +1 -1
  259. package/es/icons/CompressOutlined.d.ts +1 -1
  260. package/es/icons/ConnectionOutlined.d.ts +1 -1
  261. package/es/icons/ControlOutlined.d.ts +1 -1
  262. package/es/icons/CopyOutlined.d.ts +1 -1
  263. package/es/icons/CpuOutlined.d.ts +1 -1
  264. package/es/icons/DashboardOutlined.d.ts +1 -1
  265. package/es/icons/DatabaseOutlined.d.ts +1 -1
  266. package/es/icons/DeleteOutlined.d.ts +1 -1
  267. package/es/icons/DesktopOutlined.d.ts +1 -1
  268. package/es/icons/DownloadOutlined.d.ts +1 -1
  269. package/es/icons/DragOutlined.d.ts +1 -1
  270. package/es/icons/EditOutlined.d.ts +1 -1
  271. package/es/icons/EllipsisOutlined.d.ts +1 -1
  272. package/es/icons/EnvironmentOutlined.d.ts +1 -1
  273. package/es/icons/ExclamationCircleFilled.d.ts +1 -1
  274. package/es/icons/ExpandOutlined.d.ts +1 -1
  275. package/es/icons/FileOutlined.d.ts +1 -1
  276. package/es/icons/FilterFilled.d.ts +1 -1
  277. package/es/icons/FolderAddOutlined.d.ts +1 -1
  278. package/es/icons/FolderOutlined.d.ts +1 -1
  279. package/es/icons/FormOutlined.d.ts +1 -1
  280. package/es/icons/FullscreenExitOutlined.d.ts +1 -1
  281. package/es/icons/FullscreenOutlined.d.ts +1 -1
  282. package/es/icons/FundOutlined.d.ts +1 -1
  283. package/es/icons/GlobalOutlined.d.ts +1 -1
  284. package/es/icons/HolderOutlined.d.ts +1 -1
  285. package/es/icons/HomeOutlined.d.ts +1 -1
  286. package/es/icons/IdcardOutlined.d.ts +1 -1
  287. package/es/icons/InfoCircleFilled.d.ts +1 -1
  288. package/es/icons/LinkOutlined.d.ts +1 -1
  289. package/es/icons/LoadingDotOutlined.d.ts +1 -1
  290. package/es/icons/LoadingOutlined.d.ts +1 -1
  291. package/es/icons/LockOutlined.d.ts +1 -1
  292. package/es/icons/LogOutlined.d.ts +1 -1
  293. package/es/icons/LogoutOutlined.d.ts +1 -1
  294. package/es/icons/MailOutlined.d.ts +1 -1
  295. package/es/icons/MenuFoldOutlined.d.ts +1 -1
  296. package/es/icons/MenuUnfoldOutlined.d.ts +1 -1
  297. package/es/icons/MessageOutlined.d.ts +1 -1
  298. package/es/icons/MinusCircleOutlined.d.ts +1 -1
  299. package/es/icons/MobileOutlined.d.ts +1 -1
  300. package/es/icons/MoonOutlined.d.ts +1 -1
  301. package/es/icons/MoreOutlined.d.ts +1 -1
  302. package/es/icons/PauseFilled.d.ts +1 -1
  303. package/es/icons/PieChartOutlined.d.ts +1 -1
  304. package/es/icons/PlayFilled.d.ts +1 -1
  305. package/es/icons/PlusCircleOutlined.d.ts +1 -1
  306. package/es/icons/PlusOutlined.d.ts +1 -1
  307. package/es/icons/PrinterOutlined.d.ts +1 -1
  308. package/es/icons/ProtectOutlined.d.ts +1 -1
  309. package/es/icons/QuestionCircleFilled.d.ts +1 -1
  310. package/es/icons/QuestionCircleOutlined.d.ts +1 -1
  311. package/es/icons/ReloadOutlined.d.ts +1 -1
  312. package/es/icons/ResizeOutlined.d.ts +2 -0
  313. package/es/icons/ResizeOutlined.js +30 -0
  314. package/es/icons/SearchOutlined.d.ts +1 -1
  315. package/es/icons/SettingOutlined.d.ts +1 -1
  316. package/es/icons/ShoppingOutlined.d.ts +1 -1
  317. package/es/icons/SortOutlined.d.ts +1 -1
  318. package/es/icons/StarFilled.d.ts +1 -1
  319. package/es/icons/StepBackwardFilled.d.ts +1 -1
  320. package/es/icons/StepForwardFilled.d.ts +1 -1
  321. package/es/icons/SuitcaseOutlined.d.ts +1 -1
  322. package/es/icons/SunOutlined.d.ts +1 -1
  323. package/es/icons/SwapOutlined.d.ts +1 -1
  324. package/es/icons/SyncOutlined.d.ts +1 -1
  325. package/es/icons/TableOutlined.d.ts +1 -1
  326. package/es/icons/TagOutlined.d.ts +1 -1
  327. package/es/icons/TimerOutlined.d.ts +1 -1
  328. package/es/icons/UndoOutlined.d.ts +1 -1
  329. package/es/icons/UnlockOutlined.d.ts +1 -1
  330. package/es/icons/UploadOutlined.d.ts +1 -1
  331. package/es/icons/UserOutlined.d.ts +1 -1
  332. package/es/icons/VerticalAlignMiddleOutlined.d.ts +1 -1
  333. package/es/icons/VerticalLeftOutlined.d.ts +1 -1
  334. package/es/icons/VerticalRightOutlined.d.ts +1 -1
  335. package/es/icons/WarningOutlined.d.ts +1 -1
  336. package/es/icons/ZoomInOutlined.d.ts +1 -1
  337. package/es/icons/ZoomOutOutlined.d.ts +1 -1
  338. package/es/icons/index.d.ts +1 -0
  339. package/es/icons/index.js +50 -48
  340. package/es/installer.d.ts +2 -2
  341. package/es/lang/en_US.d.ts +2 -2
  342. package/es/lang/zh_CN.d.ts +2 -2
  343. package/es/lang/zh_TW.d.ts +2 -2
  344. package/es/style/nprogress.scss +1 -0
  345. package/es/style/themes/dark.scss +9 -15
  346. package/es/style/themes/default.scss +58 -81
  347. package/es/style/themes/rounded.scss +16 -30
  348. package/es/utils/menu-util.d.ts +3 -2
  349. package/es/utils/menu-util.js +2 -5
  350. package/es/utils/message.d.ts +4 -3
  351. package/es/utils/resolvers.d.ts +2 -2
  352. package/lib/core-installer.d.ts +2 -2
  353. package/lib/ele-alert/index.cjs +2 -2
  354. package/lib/ele-alert/index.d.ts +23 -23
  355. package/lib/ele-alert/props.d.ts +10 -9
  356. package/lib/ele-app/el.d.ts +2 -1
  357. package/lib/ele-app/index.d.ts +2 -2
  358. package/lib/ele-app/style/overwrite/date-picker/index.scss +32 -5
  359. package/lib/ele-avatar-group/index.d.ts +29 -28
  360. package/lib/ele-avatar-group/props.d.ts +10 -9
  361. package/lib/ele-bar-code/index.d.ts +11 -10
  362. package/lib/ele-bar-code/props.d.ts +4 -3
  363. package/lib/ele-basic-select/index.cjs +23 -6
  364. package/lib/ele-basic-select/index.d.ts +37 -35
  365. package/lib/ele-basic-select/props.d.ts +9 -8
  366. package/lib/ele-basic-select/util.d.ts +2 -1
  367. package/lib/ele-bottom-bar/index.d.ts +6 -6
  368. package/lib/ele-bottom-bar/props.d.ts +4 -3
  369. package/lib/ele-breadcrumb/index.d.ts +11 -10
  370. package/lib/ele-breadcrumb/props.d.ts +5 -4
  371. package/lib/ele-card/index.d.ts +12 -12
  372. package/lib/ele-card/props.d.ts +7 -6
  373. package/lib/ele-check-card/components/card-item.d.ts +7 -6
  374. package/lib/ele-check-card/index.d.ts +15 -14
  375. package/lib/ele-check-card/props.d.ts +6 -5
  376. package/lib/ele-config-provider/components/receiver-view.cjs +2 -44
  377. package/lib/ele-config-provider/components/receiver-view.d.ts +3 -3
  378. package/lib/ele-config-provider/index.d.ts +7 -7
  379. package/lib/ele-config-provider/props.d.ts +4 -3
  380. package/lib/ele-config-provider/receiver.cjs +41 -2
  381. package/lib/ele-config-provider/receiver.d.ts +6 -10
  382. package/lib/ele-config-provider/types.d.ts +3 -29
  383. package/lib/ele-copyable/index.d.ts +32 -31
  384. package/lib/ele-copyable/props.d.ts +9 -8
  385. package/lib/ele-count-up/index.d.ts +8 -7
  386. package/lib/ele-count-up/props.d.ts +3 -2
  387. package/lib/ele-cropper/components/cropper-preview.d.ts +3 -3
  388. package/lib/ele-cropper/components/cropper-tools.d.ts +12 -11
  389. package/lib/ele-cropper/index.d.ts +16 -15
  390. package/lib/ele-cropper/props.d.ts +4 -3
  391. package/lib/ele-cropper-modal/index.cjs +1 -1
  392. package/lib/ele-cropper-modal/index.d.ts +16 -15
  393. package/lib/ele-cropper-modal/props.d.ts +7 -6
  394. package/lib/ele-dashboard/index.d.ts +5 -5
  395. package/lib/ele-dashboard/props.d.ts +3 -2
  396. package/lib/ele-data-table/index.d.ts +63 -68
  397. package/lib/ele-data-table/props.d.ts +36 -41
  398. package/lib/ele-data-table/types.d.ts +8 -16
  399. package/lib/ele-data-table/util.d.ts +10 -9
  400. package/lib/ele-dot/index.d.ts +4 -4
  401. package/lib/ele-dot/props.d.ts +3 -2
  402. package/lib/ele-drawer/index.cjs +105 -111
  403. package/lib/ele-drawer/index.d.ts +75 -71
  404. package/lib/ele-drawer/props.d.ts +26 -25
  405. package/lib/ele-drawer/style/index.scss +48 -105
  406. package/lib/ele-dropdown/index.d.ts +66 -65
  407. package/lib/ele-dropdown/props.d.ts +22 -21
  408. package/lib/ele-edit-tag/index.cjs +1 -1
  409. package/lib/ele-edit-tag/index.d.ts +33 -32
  410. package/lib/ele-edit-tag/props.d.ts +10 -9
  411. package/lib/ele-ellipsis/index.d.ts +23 -22
  412. package/lib/ele-ellipsis/props.d.ts +8 -7
  413. package/lib/ele-file-list/components/file-grid-item.cjs +1 -1
  414. package/lib/ele-file-list/components/file-grid-item.d.ts +13 -12
  415. package/lib/ele-file-list/components/file-grid.d.ts +10 -9
  416. package/lib/ele-file-list/components/file-sort.d.ts +2 -2
  417. package/lib/ele-file-list/components/file-table-item.cjs +1 -1
  418. package/lib/ele-file-list/components/file-table-item.d.ts +13 -12
  419. package/lib/ele-file-list/components/file-table.d.ts +10 -9
  420. package/lib/ele-file-list/icons.d.ts +2 -1
  421. package/lib/ele-file-list/index.d.ts +36 -35
  422. package/lib/ele-file-list/props.d.ts +6 -5
  423. package/lib/ele-file-list-tool/index.d.ts +3 -3
  424. package/lib/ele-icon-select/components/icon-grid.cjs +1 -1
  425. package/lib/ele-icon-select/components/icon-grid.d.ts +15 -14
  426. package/lib/ele-icon-select/index.d.ts +49 -48
  427. package/lib/ele-icon-select/props.d.ts +17 -16
  428. package/lib/ele-loading/index.cjs +9 -15
  429. package/lib/ele-loading/index.d.ts +12 -15
  430. package/lib/ele-loading/props.d.ts +5 -4
  431. package/lib/ele-map-picker/components/map-view.cjs +1 -1
  432. package/lib/ele-map-picker/components/map-view.d.ts +29 -28
  433. package/lib/ele-map-picker/index.cjs +1 -1
  434. package/lib/ele-map-picker/index.d.ts +27 -26
  435. package/lib/ele-map-picker/props.d.ts +8 -7
  436. package/lib/ele-menus/index.cjs +1 -1
  437. package/lib/ele-menus/index.d.ts +61 -62
  438. package/lib/ele-menus/props.cjs +1 -3
  439. package/lib/ele-menus/props.d.ts +16 -17
  440. package/lib/ele-menus/style/css-var.scss +1 -5
  441. package/lib/ele-menus/util.d.ts +3 -2
  442. package/lib/ele-modal/index.cjs +176 -198
  443. package/lib/ele-modal/index.d.ts +75 -68
  444. package/lib/ele-modal/props.cjs +2 -0
  445. package/lib/ele-modal/props.d.ts +26 -23
  446. package/lib/ele-modal/style/index.scss +85 -146
  447. package/lib/ele-modal/util.cjs +55 -179
  448. package/lib/ele-modal/util.d.ts +20 -45
  449. package/lib/ele-page/index.d.ts +2 -2
  450. package/lib/ele-page/props.d.ts +2 -1
  451. package/lib/ele-pagination/index.cjs +4 -1
  452. package/lib/ele-pagination/index.d.ts +40 -31
  453. package/lib/ele-pagination/props.cjs +5 -0
  454. package/lib/ele-pagination/props.d.ts +17 -11
  455. package/lib/ele-popconfirm/index.cjs +5 -27
  456. package/lib/ele-popconfirm/index.d.ts +90 -89
  457. package/lib/ele-popconfirm/props.d.ts +32 -31
  458. package/lib/ele-popover/index.cjs +5 -13
  459. package/lib/ele-popover/index.d.ts +69 -68
  460. package/lib/ele-popover/props.d.ts +26 -25
  461. package/lib/ele-printer/index.d.ts +18 -18
  462. package/lib/ele-printer/props.d.ts +6 -5
  463. package/lib/ele-printer/util.d.ts +2 -1
  464. package/lib/ele-pro-layout/components/header-tool.d.ts +1 -1
  465. package/lib/ele-pro-layout/components/pro-header.cjs +109 -19
  466. package/lib/ele-pro-layout/components/pro-header.d.ts +84 -28
  467. package/lib/ele-pro-layout/components/pro-iframe.cjs +30 -40
  468. package/lib/ele-pro-layout/components/pro-iframe.d.ts +7 -7
  469. package/lib/ele-pro-layout/components/pro-sidebar.cjs +2 -5
  470. package/lib/ele-pro-layout/components/pro-sidebar.d.ts +14 -18
  471. package/lib/ele-pro-layout/components/pro-sidebox.cjs +2 -5
  472. package/lib/ele-pro-layout/components/pro-sidebox.d.ts +16 -20
  473. package/lib/ele-pro-layout/components/pro-tabs.d.ts +12 -11
  474. package/lib/ele-pro-layout/components/sidebar-tool.d.ts +1 -1
  475. package/lib/ele-pro-layout/components/tab-dropdown.cjs +1 -1
  476. package/lib/ele-pro-layout/components/tab-dropdown.d.ts +8 -7
  477. package/lib/ele-pro-layout/index.cjs +61 -46
  478. package/lib/ele-pro-layout/index.d.ts +97 -97
  479. package/lib/ele-pro-layout/props.cjs +2 -4
  480. package/lib/ele-pro-layout/props.d.ts +11 -13
  481. package/lib/ele-pro-layout/style/css-var.scss +3 -18
  482. package/lib/ele-pro-layout/style/header.scss +74 -9
  483. package/lib/ele-pro-layout/style/layout-mobile.scss +2 -2
  484. package/lib/ele-pro-layout/style/layout-style.scss +8 -3
  485. package/lib/ele-pro-layout/style/layout-theme.scss +48 -23
  486. package/lib/ele-pro-layout/style/layout.scss +38 -8
  487. package/lib/ele-pro-layout/style/sidebar.scss +0 -1
  488. package/lib/ele-pro-layout/style/tabs.scss +19 -11
  489. package/lib/ele-pro-layout/types.d.ts +1 -1
  490. package/lib/ele-pro-layout/util.cjs +2 -3
  491. package/lib/ele-pro-layout/util.d.ts +6 -6
  492. package/lib/ele-pro-table/components/table-tools.cjs +1 -1
  493. package/lib/ele-pro-table/components/table-tools.d.ts +22 -21
  494. package/lib/ele-pro-table/components/tool-column-list.cjs +2 -6
  495. package/lib/ele-pro-table/components/tool-column-list.d.ts +6 -5
  496. package/lib/ele-pro-table/components/tool-column.cjs +2 -6
  497. package/lib/ele-pro-table/components/tool-column.d.ts +14 -13
  498. package/lib/ele-pro-table/components/tool-export.cjs +9 -11
  499. package/lib/ele-pro-table/components/tool-export.d.ts +24 -302
  500. package/lib/ele-pro-table/components/tool-print-body-cell.d.ts +13 -12
  501. package/lib/ele-pro-table/components/tool-print-header-cell.d.ts +13 -12
  502. package/lib/ele-pro-table/components/tool-print.cjs +24 -16
  503. package/lib/ele-pro-table/components/tool-print.d.ts +30 -747
  504. package/lib/ele-pro-table/index.cjs +49 -27
  505. package/lib/ele-pro-table/index.d.ts +131 -143
  506. package/lib/ele-pro-table/props.d.ts +44 -46
  507. package/lib/ele-pro-table/types.d.ts +13 -0
  508. package/lib/ele-pro-table/util.cjs +48 -27
  509. package/lib/ele-pro-table/util.d.ts +26 -22
  510. package/lib/ele-qr-code/index.d.ts +16 -15
  511. package/lib/ele-qr-code/props.d.ts +4 -3
  512. package/lib/ele-qr-code/util.d.ts +3 -2
  513. package/lib/ele-qr-code-svg/index.d.ts +18 -18
  514. package/lib/ele-segmented/index.d.ts +10 -9
  515. package/lib/ele-segmented/props.d.ts +3 -2
  516. package/lib/ele-split-panel/index.d.ts +18 -17
  517. package/lib/ele-split-panel/props.d.ts +5 -4
  518. package/lib/ele-steps/index.d.ts +33 -33
  519. package/lib/ele-steps/props.d.ts +10 -9
  520. package/lib/ele-tab-tool/index.d.ts +2 -2
  521. package/lib/ele-tab-tool/props.d.ts +2 -1
  522. package/lib/ele-tab-wrap/index.cjs +2 -1
  523. package/lib/ele-tab-wrap/index.d.ts +6 -6
  524. package/lib/ele-tab-wrap/props.d.ts +3 -2
  525. package/lib/ele-table/index.d.ts +4 -4
  526. package/lib/ele-table/props.d.ts +3 -2
  527. package/lib/ele-table-select/index.cjs +29 -27
  528. package/lib/ele-table-select/index.d.ts +45 -43
  529. package/lib/ele-table-select/props.d.ts +11 -10
  530. package/lib/ele-tabs/components/tab-title.d.ts +9 -8
  531. package/lib/ele-tabs/index.cjs +1 -0
  532. package/lib/ele-tabs/index.d.ts +43 -55
  533. package/lib/ele-tabs/props.d.ts +17 -23
  534. package/lib/ele-tabs/style/css-var.scss +1 -30
  535. package/lib/ele-tabs/style/index.scss +372 -241
  536. package/lib/ele-tabs/types.d.ts +2 -1
  537. package/lib/ele-text/index.d.ts +12 -12
  538. package/lib/ele-text/props.d.ts +5 -4
  539. package/lib/ele-tool/index.d.ts +7 -7
  540. package/lib/ele-tool/props.d.ts +3 -2
  541. package/lib/ele-toolbar/index.d.ts +15 -15
  542. package/lib/ele-toolbar/props.d.ts +7 -6
  543. package/lib/ele-tooltip/index.cjs +3 -0
  544. package/lib/ele-tooltip/index.d.ts +59 -58
  545. package/lib/ele-tooltip/props.cjs +2 -0
  546. package/lib/ele-tooltip/props.d.ts +28 -22
  547. package/lib/ele-tour/index.d.ts +15 -14
  548. package/lib/ele-tour/props.d.ts +3 -2
  549. package/lib/ele-tour/util.d.ts +3 -2
  550. package/lib/ele-tree-select/index.d.ts +37 -36
  551. package/lib/ele-tree-select/props.d.ts +12 -11
  552. package/lib/ele-tree-select/util.d.ts +3 -2
  553. package/lib/ele-upload-list/components/list-item.d.ts +7 -6
  554. package/lib/ele-upload-list/index.d.ts +26 -25
  555. package/lib/ele-upload-list/props.d.ts +6 -5
  556. package/lib/ele-virtual-table/components/body-cell.cjs +52 -70
  557. package/lib/ele-virtual-table/components/body-cell.d.ts +100 -64
  558. package/lib/ele-virtual-table/components/body-row.cjs +57 -52
  559. package/lib/ele-virtual-table/components/body-row.d.ts +89 -65
  560. package/lib/ele-virtual-table/components/cell-checkbox.d.ts +5 -4
  561. package/lib/ele-virtual-table/components/cell-filter.cjs +7 -11
  562. package/lib/ele-virtual-table/components/cell-filter.d.ts +18 -17
  563. package/lib/ele-virtual-table/components/expand-row.cjs +3 -3
  564. package/lib/ele-virtual-table/components/expand-row.d.ts +11 -10
  565. package/lib/ele-virtual-table/components/footer-row.cjs +19 -14
  566. package/lib/ele-virtual-table/components/footer-row.d.ts +36 -17
  567. package/lib/ele-virtual-table/components/header-cell.d.ts +16 -15
  568. package/lib/ele-virtual-table/components/header-row.d.ts +12 -11
  569. package/lib/ele-virtual-table/index.cjs +132 -134
  570. package/lib/ele-virtual-table/index.d.ts +91 -100
  571. package/lib/ele-virtual-table/props.d.ts +49 -51
  572. package/lib/ele-virtual-table/style/index.scss +1 -1
  573. package/lib/ele-virtual-table/types.d.ts +88 -68
  574. package/lib/ele-virtual-table/util.cjs +25 -22
  575. package/lib/ele-virtual-table/util.d.ts +13 -11
  576. package/lib/ele-watermark/index.d.ts +15 -14
  577. package/lib/ele-watermark/props.d.ts +4 -3
  578. package/lib/ele-watermark/util.d.ts +3 -2
  579. package/lib/ele-xg-player/index.d.ts +10 -10
  580. package/lib/icons/AnalysisOutlined.d.ts +1 -1
  581. package/lib/icons/ApplicationOutlined.d.ts +1 -1
  582. package/lib/icons/AppstoreAddOutlined.d.ts +1 -1
  583. package/lib/icons/AppstoreOutlined.d.ts +1 -1
  584. package/lib/icons/ArrowDown.d.ts +1 -1
  585. package/lib/icons/ArrowDownOutlined.d.ts +1 -1
  586. package/lib/icons/ArrowLeft.d.ts +1 -1
  587. package/lib/icons/ArrowLeftOutlined.d.ts +1 -1
  588. package/lib/icons/ArrowRight.d.ts +1 -1
  589. package/lib/icons/ArrowRightOutlined.d.ts +1 -1
  590. package/lib/icons/ArrowUp.d.ts +1 -1
  591. package/lib/icons/ArrowUpOutlined.d.ts +1 -1
  592. package/lib/icons/BellOutlined.d.ts +1 -1
  593. package/lib/icons/BookOutlined.d.ts +1 -1
  594. package/lib/icons/CalendarOutlined.d.ts +1 -1
  595. package/lib/icons/CaretDownFilled.d.ts +1 -1
  596. package/lib/icons/CaretUpFilled.d.ts +1 -1
  597. package/lib/icons/CheckCircleFilled.d.ts +1 -1
  598. package/lib/icons/CheckCircleOutlined.d.ts +1 -1
  599. package/lib/icons/CheckOutlined.d.ts +1 -1
  600. package/lib/icons/CityOutlined.d.ts +1 -1
  601. package/lib/icons/ClockCircleOutlined.d.ts +1 -1
  602. package/lib/icons/CloseCircleFilled.d.ts +1 -1
  603. package/lib/icons/CloseCircleOutlined.d.ts +1 -1
  604. package/lib/icons/CloseOutlined.d.ts +1 -1
  605. package/lib/icons/CloudUploadOutlined.d.ts +1 -1
  606. package/lib/icons/ClusterOutlined.d.ts +1 -1
  607. package/lib/icons/CodeOutlined.d.ts +1 -1
  608. package/lib/icons/ColumnHeightOutlined.d.ts +1 -1
  609. package/lib/icons/CompassOutlined.d.ts +1 -1
  610. package/lib/icons/CompressOutlined.d.ts +1 -1
  611. package/lib/icons/ConnectionOutlined.d.ts +1 -1
  612. package/lib/icons/ControlOutlined.d.ts +1 -1
  613. package/lib/icons/CopyOutlined.d.ts +1 -1
  614. package/lib/icons/CpuOutlined.d.ts +1 -1
  615. package/lib/icons/DashboardOutlined.d.ts +1 -1
  616. package/lib/icons/DatabaseOutlined.d.ts +1 -1
  617. package/lib/icons/DeleteOutlined.d.ts +1 -1
  618. package/lib/icons/DesktopOutlined.d.ts +1 -1
  619. package/lib/icons/DownloadOutlined.d.ts +1 -1
  620. package/lib/icons/DragOutlined.d.ts +1 -1
  621. package/lib/icons/EditOutlined.d.ts +1 -1
  622. package/lib/icons/EllipsisOutlined.d.ts +1 -1
  623. package/lib/icons/EnvironmentOutlined.d.ts +1 -1
  624. package/lib/icons/ExclamationCircleFilled.d.ts +1 -1
  625. package/lib/icons/ExpandOutlined.d.ts +1 -1
  626. package/lib/icons/FileOutlined.d.ts +1 -1
  627. package/lib/icons/FilterFilled.d.ts +1 -1
  628. package/lib/icons/FolderAddOutlined.d.ts +1 -1
  629. package/lib/icons/FolderOutlined.d.ts +1 -1
  630. package/lib/icons/FormOutlined.d.ts +1 -1
  631. package/lib/icons/FullscreenExitOutlined.d.ts +1 -1
  632. package/lib/icons/FullscreenOutlined.d.ts +1 -1
  633. package/lib/icons/FundOutlined.d.ts +1 -1
  634. package/lib/icons/GlobalOutlined.d.ts +1 -1
  635. package/lib/icons/HolderOutlined.d.ts +1 -1
  636. package/lib/icons/HomeOutlined.d.ts +1 -1
  637. package/lib/icons/IdcardOutlined.d.ts +1 -1
  638. package/lib/icons/InfoCircleFilled.d.ts +1 -1
  639. package/lib/icons/LinkOutlined.d.ts +1 -1
  640. package/lib/icons/LoadingDotOutlined.d.ts +1 -1
  641. package/lib/icons/LoadingOutlined.d.ts +1 -1
  642. package/lib/icons/LockOutlined.d.ts +1 -1
  643. package/lib/icons/LogOutlined.d.ts +1 -1
  644. package/lib/icons/LogoutOutlined.d.ts +1 -1
  645. package/lib/icons/MailOutlined.d.ts +1 -1
  646. package/lib/icons/MenuFoldOutlined.d.ts +1 -1
  647. package/lib/icons/MenuUnfoldOutlined.d.ts +1 -1
  648. package/lib/icons/MessageOutlined.d.ts +1 -1
  649. package/lib/icons/MinusCircleOutlined.d.ts +1 -1
  650. package/lib/icons/MobileOutlined.d.ts +1 -1
  651. package/lib/icons/MoonOutlined.d.ts +1 -1
  652. package/lib/icons/MoreOutlined.d.ts +1 -1
  653. package/lib/icons/PauseFilled.d.ts +1 -1
  654. package/lib/icons/PieChartOutlined.d.ts +1 -1
  655. package/lib/icons/PlayFilled.d.ts +1 -1
  656. package/lib/icons/PlusCircleOutlined.d.ts +1 -1
  657. package/lib/icons/PlusOutlined.d.ts +1 -1
  658. package/lib/icons/PrinterOutlined.d.ts +1 -1
  659. package/lib/icons/ProtectOutlined.d.ts +1 -1
  660. package/lib/icons/QuestionCircleFilled.d.ts +1 -1
  661. package/lib/icons/QuestionCircleOutlined.d.ts +1 -1
  662. package/lib/icons/ReloadOutlined.d.ts +1 -1
  663. package/lib/icons/ResizeOutlined.cjs +29 -0
  664. package/lib/icons/ResizeOutlined.d.ts +2 -0
  665. package/lib/icons/SearchOutlined.d.ts +1 -1
  666. package/lib/icons/SettingOutlined.d.ts +1 -1
  667. package/lib/icons/ShoppingOutlined.d.ts +1 -1
  668. package/lib/icons/SortOutlined.d.ts +1 -1
  669. package/lib/icons/StarFilled.d.ts +1 -1
  670. package/lib/icons/StepBackwardFilled.d.ts +1 -1
  671. package/lib/icons/StepForwardFilled.d.ts +1 -1
  672. package/lib/icons/SuitcaseOutlined.d.ts +1 -1
  673. package/lib/icons/SunOutlined.d.ts +1 -1
  674. package/lib/icons/SwapOutlined.d.ts +1 -1
  675. package/lib/icons/SyncOutlined.d.ts +1 -1
  676. package/lib/icons/TableOutlined.d.ts +1 -1
  677. package/lib/icons/TagOutlined.d.ts +1 -1
  678. package/lib/icons/TimerOutlined.d.ts +1 -1
  679. package/lib/icons/UndoOutlined.d.ts +1 -1
  680. package/lib/icons/UnlockOutlined.d.ts +1 -1
  681. package/lib/icons/UploadOutlined.d.ts +1 -1
  682. package/lib/icons/UserOutlined.d.ts +1 -1
  683. package/lib/icons/VerticalAlignMiddleOutlined.d.ts +1 -1
  684. package/lib/icons/VerticalLeftOutlined.d.ts +1 -1
  685. package/lib/icons/VerticalRightOutlined.d.ts +1 -1
  686. package/lib/icons/WarningOutlined.d.ts +1 -1
  687. package/lib/icons/ZoomInOutlined.d.ts +1 -1
  688. package/lib/icons/ZoomOutOutlined.d.ts +1 -1
  689. package/lib/icons/index.cjs +2 -0
  690. package/lib/icons/index.d.ts +1 -0
  691. package/lib/installer.d.ts +2 -2
  692. package/lib/lang/en_US.d.ts +2 -2
  693. package/lib/lang/zh_CN.d.ts +2 -2
  694. package/lib/lang/zh_TW.d.ts +2 -2
  695. package/lib/style/nprogress.scss +1 -0
  696. package/lib/style/themes/dark.scss +9 -15
  697. package/lib/style/themes/default.scss +58 -81
  698. package/lib/style/themes/rounded.scss +16 -30
  699. package/lib/utils/menu-util.cjs +1 -4
  700. package/lib/utils/menu-util.d.ts +3 -2
  701. package/lib/utils/message.d.ts +4 -3
  702. package/lib/utils/resolvers.d.ts +2 -2
  703. package/package.json +23 -22
@@ -1,4 +1,4 @@
1
- import { defineComponent, ref, computed, watch, onMounted, nextTick, resolveComponent, openBlock, createBlock, normalizeProps, guardReactiveProps, withCtx, mergeProps as mergeProps$1, renderSlot, createSlots, renderList, createCommentVNode, createElementBlock, normalizeStyle } from "vue";
1
+ import { defineComponent, ref, shallowRef, computed, watch, onMounted, nextTick, resolveComponent, openBlock, createBlock, normalizeProps, guardReactiveProps, withCtx, mergeProps as mergeProps$1, renderSlot, createSlots, renderList, createCommentVNode, createElementBlock, normalizeStyle } from "vue";
2
2
  import { pick } from "../utils/core";
3
3
  import { useGlobalProps } from "../ele-config-provider/receiver";
4
4
  import EleLoading from "../ele-loading/index";
@@ -9,7 +9,7 @@ import EleDataTable from "../ele-data-table/index";
9
9
  import EleVirtualTable from "../ele-virtual-table/index";
10
10
  import EleToolbar from "../ele-toolbar/index";
11
11
  import TableTools from "./components/table-tools";
12
- import { getDefaultFilter, getTablePage, getTableLimit, getTableSize, getPaginationProps, mergeProps, getRowKey, getInitCacheColumns, reloadData, addDefaultRowKey, getDefaultRowKey, getRequestOrders, getRequestFilters, getResponseResult, getResponseName, isAutoAmend, sortData } from "./util";
12
+ import { getDefaultFilter, getTablePage, getTableLimit, getTableSize, getRowKey, getPaginationProps, mergeProps, getInitCacheColumns, reloadData, getRequestOrders, getRequestPages, getRequestFilters, getResponseResult, getResponseName, isAutoAmend, sortData } from "./util";
13
13
  import { proTableProps, proTableEmits } from "./props";
14
14
  const _sfc_main = defineComponent({
15
15
  name: "EleProTable",
@@ -49,6 +49,7 @@ const _sfc_main = defineComponent({
49
49
  const tableMaximized = ref(false);
50
50
  const errorText = ref("");
51
51
  const cacheData = ref();
52
+ const tableRowKey = shallowRef(getRowKey(props.rowKey));
52
53
  const tableIndex = computed(() => {
53
54
  return ((tablePage.value ?? 1) - 1) * (tableLimit.value ?? 0) + 1;
54
55
  });
@@ -60,7 +61,8 @@ const _sfc_main = defineComponent({
60
61
  {
61
62
  total: tableTotal.value,
62
63
  pageSize: tableLimit.value,
63
- currentPage: tablePage.value
64
+ currentPage: tablePage.value,
65
+ hasNext: tableData.value.length >= tableLimit.value
64
66
  }
65
67
  );
66
68
  });
@@ -89,7 +91,7 @@ const _sfc_main = defineComponent({
89
91
  pageIndex: tableIndex.value,
90
92
  emptyProps: tableEmptyProps.value,
91
93
  rowHeight: props.virtual ? props.rowHeight : void 0,
92
- rowKey: getRowKey(props.rowKey),
94
+ rowKey: tableRowKey.value,
93
95
  style: props.tableStyle,
94
96
  class: "ele-pro-table-view",
95
97
  ...events,
@@ -179,11 +181,7 @@ const _sfc_main = defineComponent({
179
181
  tableLimit.value
180
182
  );
181
183
  cacheData.value = props.datasource;
182
- tableData.value = addDefaultRowKey(
183
- data,
184
- getDefaultRowKey(props.rowKey),
185
- tablePage.value
186
- );
184
+ tableData.value = data;
187
185
  tablePage.value = page;
188
186
  tableTotal.value = total;
189
187
  onDone({ data, page, total, response: props.datasource });
@@ -201,6 +199,12 @@ const _sfc_main = defineComponent({
201
199
  props.datasource({
202
200
  page: tablePage.value,
203
201
  limit: tableLimit.value,
202
+ pages: getRequestPages(
203
+ tablePage.value,
204
+ tableLimit.value,
205
+ props.request,
206
+ globalProps.value.request
207
+ ),
204
208
  where: Object.assign({}, tableState.where),
205
209
  orders,
206
210
  filters: getRequestFilters(filter),
@@ -251,11 +255,7 @@ const _sfc_main = defineComponent({
251
255
  return;
252
256
  }
253
257
  }
254
- tableData.value = addDefaultRowKey(
255
- data,
256
- getDefaultRowKey(props.rowKey),
257
- tablePage.value
258
- );
258
+ tableData.value = data;
259
259
  tableTotal.value = total || data.length;
260
260
  }
261
261
  tableLoading.value = false;
@@ -278,12 +278,12 @@ const _sfc_main = defineComponent({
278
278
  nextTick(() => {
279
279
  if (props.current != null) {
280
280
  methods.setCurrentRowKey(
281
- getValue(props.current, getRowKey(props.rowKey))
281
+ getValue(props.current, tableRowKey.value)
282
282
  );
283
283
  }
284
284
  if (props.selections != null && props.selections.length) {
285
285
  methods.setSelectedRowKeys(
286
- getRowKeys(props.selections, getRowKey(props.rowKey))
286
+ getRowKeys(props.selections, tableRowKey.value)
287
287
  );
288
288
  }
289
289
  });
@@ -358,17 +358,13 @@ const _sfc_main = defineComponent({
358
358
  return tableData.value;
359
359
  };
360
360
  const setData = (data) => {
361
- tableData.value = addDefaultRowKey(
362
- data,
363
- getDefaultRowKey(props.rowKey),
364
- tablePage.value
365
- );
361
+ tableData.value = data;
366
362
  };
367
363
  const goPageByRowKey = (key) => {
368
364
  if (!paginationProps.value || tableLimit.value == null || isFunctionSource.value) {
369
365
  return;
370
366
  }
371
- const rowKey = getRowKey(props.rowKey);
367
+ const rowKey = tableRowKey.value;
372
368
  const data = sortData(props.datasource, tableState.sorter);
373
369
  const index2 = data.findIndex((d) => getValue(d, rowKey) === key);
374
370
  const page = Math.floor(index2 / tableLimit.value) + 1;
@@ -386,6 +382,12 @@ const _sfc_main = defineComponent({
386
382
  callback({
387
383
  page: tablePage.value,
388
384
  limit: tableLimit.value,
385
+ pages: getRequestPages(
386
+ tablePage.value,
387
+ tableLimit.value,
388
+ props.request,
389
+ globalProps.value.request
390
+ ),
389
391
  where: Object.assign({}, tableState.where),
390
392
  orders,
391
393
  filters: getRequestFilters(filter),
@@ -433,15 +435,19 @@ const _sfc_main = defineComponent({
433
435
  watch(
434
436
  () => props.current,
435
437
  (current) => {
436
- methods.setCurrentRowKey(getValue(current, getRowKey(props.rowKey)));
438
+ methods.setCurrentRowKey(getValue(current, tableRowKey.value));
437
439
  }
438
440
  );
439
441
  watch(
440
442
  () => props.selections,
441
443
  (selections) => {
442
- methods.setSelectedRowKeys(
443
- getRowKeys(selections, getRowKey(props.rowKey))
444
- );
444
+ methods.setSelectedRowKeys(getRowKeys(selections, tableRowKey.value));
445
+ }
446
+ );
447
+ watch(
448
+ () => props.rowKey,
449
+ () => {
450
+ tableRowKey.value = getRowKey(props.rowKey);
445
451
  }
446
452
  );
447
453
  watch(
@@ -564,7 +570,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
564
570
  renderSlot(_ctx.$slots, "default"),
565
571
  _ctx.virtual ? (openBlock(), createBlock(_component_EleVirtualTable, mergeProps$1({ key: 1 }, _ctx.tableProps, { ref: "tableViewRef" }), createSlots({ _: 2 }, [
566
572
  renderList(Object.keys(_ctx.$slots).filter(
567
- (k) => !["default", "toolbar", "tools", "footer"].includes(k)
573
+ (k) => ![
574
+ "default",
575
+ "toolbar",
576
+ "tools",
577
+ "footer",
578
+ "printTop",
579
+ "printBottom"
580
+ ].includes(k)
568
581
  ), (name) => {
569
582
  return {
570
583
  name,
@@ -575,7 +588,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
575
588
  })
576
589
  ]), 1040)) : (openBlock(), createBlock(_component_EleDataTable, mergeProps$1({ key: 2 }, _ctx.tableProps, { ref: "tableViewRef" }), createSlots({ _: 2 }, [
577
590
  renderList(Object.keys(_ctx.$slots).filter(
578
- (k) => !["default", "toolbar", "tools", "footer"].includes(k)
591
+ (k) => ![
592
+ "default",
593
+ "toolbar",
594
+ "tools",
595
+ "footer",
596
+ "printTop",
597
+ "printBottom"
598
+ ].includes(k)
579
599
  ), (name) => {
580
600
  return {
581
601
  name,
@@ -602,7 +622,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
602
622
  "tools",
603
623
  "footer",
604
624
  "empty",
605
- "append"
625
+ "append",
626
+ "printTop",
627
+ "printBottom"
606
628
  ].includes(k)
607
629
  ), (name) => {
608
630
  return {
@@ -1,7 +1,8 @@
1
- import type { PropType, ExtractPropTypes } from 'vue';
2
- import type { EleLoadingProps, EleToolbarProps } from '../ele-app/plus';
3
- import type { DataItem, Columns, TableSize } from '../ele-data-table/types';
4
- import type { Where, Datasource, RequestOption, ResponseOption, ParseData, DoneParams, TablePagination, TableLocale, ExportConfig, PrintConfig } from './types';
1
+ import { Where, Datasource, RequestOption, ResponseOption, ParseData, DoneParams, TablePagination, TableLocale, ExportConfig, PrintConfig } from './types';
2
+ import { DataItem, Columns, TableSize } from '../ele-data-table/types';
3
+ import { EleLoadingProps, EleToolbarProps } from '../ele-app/plus';
4
+ import { PropType, ExtractPropTypes } from 'vue';
5
+
5
6
  /**
6
7
  * 属性
7
8
  */
@@ -64,9 +65,9 @@ export declare const proTableProps: {
64
65
  /** 表格全屏状态的高度 */
65
66
  maximizedHeight: (StringConstructor | NumberConstructor)[];
66
67
  /** 自定义表格样式 */
67
- tableStyle: PropType<Partial<import("vue").CSSProperties>>;
68
+ tableStyle: PropType<Partial<import('vue').CSSProperties>>;
68
69
  /** 自定义底部样式 */
69
- footerStyle: PropType<Partial<import("vue").CSSProperties>>;
70
+ footerStyle: PropType<Partial<import('vue').CSSProperties>>;
70
71
  /** 分页组件 */
71
72
  pagination: {
72
73
  type: PropType<boolean | TablePagination>;
@@ -86,14 +87,14 @@ export declare const proTableProps: {
86
87
  exportConfig: PropType<ExportConfig>;
87
88
  /** 打印配置 */
88
89
  printConfig: PropType<PrintConfig>;
89
- width: (StringConstructor | NumberConstructor)[];
90
- height: (StringConstructor | NumberConstructor)[];
91
90
  size: {
92
- readonly type: PropType<import("element-plus/es/utils/index").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
91
+ readonly type: PropType<import('element-plus/es/utils/index').EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", never>>;
93
92
  readonly required: false;
94
93
  readonly validator: ((val: unknown) => boolean) | undefined;
95
94
  __epPropKey: true;
96
95
  };
96
+ width: (StringConstructor | NumberConstructor)[];
97
+ height: (StringConstructor | NumberConstructor)[];
97
98
  maxHeight: (StringConstructor | NumberConstructor)[];
98
99
  fit: {
99
100
  type: BooleanConstructor;
@@ -108,11 +109,8 @@ export declare const proTableProps: {
108
109
  type: PropType<Columns>;
109
110
  required: boolean;
110
111
  };
111
- scrollbarAlwaysOn: {
112
- type: BooleanConstructor;
113
- default: boolean;
114
- };
115
- showOverflowTooltip: PropType<boolean | Partial<Pick<import("element-plus").ElTooltipProps, "offset" | "effect" | "placement" | "popperOptions" | "popperClass" | "showArrow" | "appendTo" | "transition" | "enterable" | "showAfter" | "hideAfter">> | undefined>;
112
+ scrollbarAlwaysOn: BooleanConstructor;
113
+ showOverflowTooltip: PropType<boolean | Partial<Pick<import('element-plus').ElTooltipProps, "offset" | "effect" | "placement" | "popperOptions" | "popperClass" | "showArrow" | "appendTo" | "transition" | "enterable" | "showAfter" | "hideAfter">> | undefined>;
116
114
  emptyText: StringConstructor;
117
115
  indent: {
118
116
  type: NumberConstructor;
@@ -132,26 +130,26 @@ export declare const proTableProps: {
132
130
  };
133
131
  showSummary: BooleanConstructor;
134
132
  sumText: StringConstructor;
135
- summaryMethod: PropType<import("element-plus/es/components/table/src/table/defaults").SummaryMethod<any> | undefined>;
136
- rowClassName: PropType<import("element-plus/es/components/table/src/table/defaults").ColumnCls<any> | undefined>;
137
- rowStyle: PropType<import("element-plus/es/components/table/src/table/defaults").ColumnStyle<any> | undefined>;
138
- cellClassName: PropType<import("element-plus/es/components/table/src/table/defaults").CellCls<any> | undefined>;
139
- cellStyle: PropType<import("element-plus/es/components/table/src/table/defaults").CellStyle<any> | undefined>;
140
- headerRowClassName: PropType<import("element-plus/es/components/table/src/table/defaults").ColumnCls<any> | undefined>;
141
- headerRowStyle: PropType<import("element-plus/es/components/table/src/table/defaults").ColumnStyle<any> | undefined>;
142
- headerCellClassName: PropType<import("element-plus/es/components/table/src/table/defaults").CellCls<any> | undefined>;
143
- headerCellStyle: PropType<import("element-plus/es/components/table/src/table/defaults").CellStyle<any> | undefined>;
133
+ summaryMethod: PropType<import('element-plus').SummaryMethod<any> | undefined>;
134
+ rowClassName: PropType<import('element-plus').ColumnCls<any> | undefined>;
135
+ rowStyle: PropType<import('element-plus').ColumnStyle<any> | undefined>;
136
+ cellClassName: PropType<import('element-plus').CellCls<any> | undefined>;
137
+ cellStyle: PropType<import('element-plus').CellStyle<any> | undefined>;
138
+ headerRowClassName: PropType<import('element-plus').ColumnCls<any> | undefined>;
139
+ headerRowStyle: PropType<import('element-plus').ColumnStyle<any> | undefined>;
140
+ headerCellClassName: PropType<import('element-plus').CellCls<any> | undefined>;
141
+ headerCellStyle: PropType<import('element-plus').CellStyle<any> | undefined>;
144
142
  highlightCurrentRow: BooleanConstructor;
145
143
  currentRowKey: (StringConstructor | NumberConstructor)[];
146
144
  expandRowKeys: PropType<any[] | undefined>;
147
145
  defaultExpandAll: BooleanConstructor;
148
- defaultSort: PropType<import("element-plus/es/components/table/src/table/defaults").Sort | undefined>;
146
+ defaultSort: PropType<import('element-plus').Sort | undefined>;
149
147
  tooltipEffect: StringConstructor;
150
- tooltipOptions: PropType<Partial<Pick<import("element-plus").ElTooltipProps, "offset" | "effect" | "placement" | "popperOptions" | "popperClass" | "showArrow" | "appendTo" | "transition" | "enterable" | "showAfter" | "hideAfter">> | undefined>;
148
+ tooltipOptions: PropType<Partial<Pick<import('element-plus').ElTooltipProps, "offset" | "effect" | "placement" | "popperOptions" | "popperClass" | "showArrow" | "appendTo" | "transition" | "enterable" | "showAfter" | "hideAfter">> | undefined>;
151
149
  spanMethod: PropType<((data: {
152
150
  row: any;
153
151
  rowIndex: number;
154
- column: import("element-plus/es/components/table/src/table-column/defaults").TableColumnCtx<any>;
152
+ column: import('element-plus').TableColumnCtx<any>;
155
153
  columnIndex: number;
156
154
  }) => number[] | {
157
155
  rowspan: number;
@@ -171,9 +169,9 @@ export declare const proTableProps: {
171
169
  children: string;
172
170
  };
173
171
  };
174
- load: PropType<((row: any, treeNode: import("element-plus/es/components/table/src/table/defaults").TreeNode, resolve: (data: any[]) => void) => void) | undefined>;
172
+ load: PropType<((row: any, treeNode: import('element-plus').TreeNode, resolve: (data: any[]) => void) => void) | undefined>;
175
173
  tableLayout: {
176
- type: PropType<"auto" | "fixed">;
174
+ type: PropType<"fixed" | "auto">;
177
175
  default: string;
178
176
  };
179
177
  flexible: BooleanConstructor;
@@ -192,12 +190,12 @@ export declare const proTableProps: {
192
190
  default: boolean;
193
191
  };
194
192
  emptyProps: {
195
- type: PropType<import("../ele-data-table/types").TableEmptyProps>;
193
+ type: PropType<import('../ele-data-table/types').TableEmptyProps>;
196
194
  default: () => null;
197
195
  };
198
- rowClickChecked: PropType<import("../ele-data-table/types").RowClickChecked>;
196
+ rowClickChecked: PropType<import('../ele-data-table/types').RowClickChecked>;
199
197
  reserveCurrent: BooleanConstructor;
200
- selectedRowKeys: PropType<import("../ele-data-table/types").DataKey[]>;
198
+ selectedRowKeys: PropType<import('../ele-data-table/types').DataKey[]>;
201
199
  };
202
200
  export type ProTableProps = ExtractPropTypes<typeof proTableProps>;
203
201
  /**
@@ -221,22 +219,22 @@ export declare const proTableEmits: {
221
219
  select: (_selection: DataItem[], _row: DataItem) => boolean;
222
220
  selectAll: (_selection: DataItem[]) => boolean;
223
221
  selectionChange: (_selection: DataItem[]) => boolean;
224
- cellMouseEnter: (_row: DataItem, _column: import("./types").Column, _cell: HTMLTableCellElement, _e: MouseEvent) => boolean;
225
- cellMouseLeave: (_row: DataItem, _column: import("./types").Column, _cell: HTMLTableCellElement, _e: MouseEvent) => boolean;
226
- cellClick: (_row: DataItem, _column: import("./types").Column, _cell: HTMLTableCellElement, _e: MouseEvent) => boolean;
227
- cellDblclick: (_row: DataItem, _column: import("./types").Column, _cell: HTMLTableCellElement, _e: MouseEvent) => boolean;
228
- cellContextmenu: (_row: DataItem, _column: import("./types").Column, _cell: HTMLTableCellElement, _e: MouseEvent) => boolean;
229
- rowClick: (_row: DataItem, _column: import("./types").Column, _e: MouseEvent) => boolean;
230
- rowContextmenu: (_row: DataItem, _column: import("./types").Column, _e: MouseEvent) => boolean;
222
+ cellMouseEnter: (_row: DataItem, _column: import('./types').Column, _cell: HTMLTableCellElement, _e: MouseEvent) => boolean;
223
+ cellMouseLeave: (_row: DataItem, _column: import('./types').Column, _cell: HTMLTableCellElement, _e: MouseEvent) => boolean;
224
+ cellClick: (_row: DataItem, _column: import('./types').Column, _cell: HTMLTableCellElement, _e: MouseEvent) => boolean;
225
+ cellDblclick: (_row: DataItem, _column: import('./types').Column, _cell: HTMLTableCellElement, _e: MouseEvent) => boolean;
226
+ cellContextmenu: (_row: DataItem, _column: import('./types').Column, _cell: HTMLTableCellElement, _e: MouseEvent) => boolean;
227
+ rowClick: (_row: DataItem, _column: import('./types').Column, _e: MouseEvent) => boolean;
228
+ rowContextmenu: (_row: DataItem, _column: import('./types').Column, _e: MouseEvent) => boolean;
231
229
  /** 导出配置 */
232
- rowDblclick: (_row: DataItem, _column: import("./types").Column, _e: MouseEvent) => boolean;
233
- headerClick: (_column: import("./types").Column, _e: MouseEvent) => boolean;
234
- headerContextmenu: (_column: import("./types").Column, _e: MouseEvent) => boolean;
235
- sortChange: (_sorter: import("./types").Sorter) => boolean;
236
- filterChange: (_filter: import("./types").Filter) => boolean;
230
+ rowDblclick: (_row: DataItem, _column: import('./types').Column, _e: MouseEvent) => boolean;
231
+ headerClick: (_column: import('./types').Column, _e: MouseEvent) => boolean;
232
+ headerContextmenu: (_column: import('./types').Column, _e: MouseEvent) => boolean;
233
+ sortChange: (_sorter: import('./types').Sorter) => boolean;
234
+ filterChange: (_filter: import('./types').Filter) => boolean;
237
235
  currentChange: (_current?: DataItem | null | undefined, _old?: DataItem | null | undefined) => boolean;
238
- headerDragend: (_width: number, _old: number, _column: import("./types").Column, _e: MouseEvent) => boolean;
236
+ headerDragend: (_width: number, _old: number, _column: import('./types').Column, _e: MouseEvent) => boolean;
239
237
  expandChange: (_row: DataItem, _expanded: boolean) => boolean;
240
- 'update:currentRowKey': (_currentRowKey?: import("../ele-data-table/types").DataKey | undefined) => boolean;
241
- 'update:selectedRowKeys': (_selectedRowKeys?: import("../ele-data-table/types").DataKey[] | undefined) => boolean; /** 数组数据源时刷新按钮点击事件 */
238
+ 'update:currentRowKey': (_currentRowKey?: import('../ele-data-table/types').DataKey | undefined) => boolean;
239
+ 'update:selectedRowKeys': (_selectedRowKeys?: import('../ele-data-table/types').DataKey[] | undefined) => boolean; /** 数组数据源时刷新按钮点击事件 */
242
240
  };
@@ -29,6 +29,11 @@ export type {
29
29
  ResolveFunction
30
30
  };
31
31
 
32
+ /**
33
+ * 分页参数
34
+ */
35
+ export type Pages = Record<string, number>;
36
+
32
37
  /**
33
38
  * 搜索参数
34
39
  */
@@ -52,6 +57,8 @@ export interface DatasourceParams {
52
57
  page?: number;
53
58
  /** 每页显示数量 */
54
59
  limit?: number;
60
+ /** 分页参数 */
61
+ pages: Pages;
55
62
  /** 搜索参数 */
56
63
  where: Where;
57
64
  /** 排序参数 */
@@ -121,6 +128,10 @@ export type OrderValue = string | number | boolean | null | undefined;
121
128
  * 请求参数设置
122
129
  */
123
130
  export interface RequestOption {
131
+ /** 页码参数名称 */
132
+ pageName?: string;
133
+ /** 每页数量参数名称 */
134
+ limitName?: string;
124
135
  /** 排序字段参数名称 */
125
136
  sortName?: string;
126
137
  /** 排序方式参数名称 */
@@ -387,6 +398,8 @@ export interface TablePrintOptions extends ExportDataResult {
387
398
  hasHeader: boolean;
388
399
  /** 是否有表尾 */
389
400
  hasFooter: boolean;
401
+ /** 打印的数据 */
402
+ data: DataItem[];
390
403
  }
391
404
 
392
405
  /**
@@ -1,6 +1,7 @@
1
- import type { ElePaginationProps } from '../ele-app/plus';
2
- import type { DataItem, Column, Columns, Sorter, Filter, TableSize, TreeProps, RowKey, SpanMethod, SummaryMethod } from '../ele-data-table/types';
3
- import type { Orders, Filters, OrderItem, RequestOption, ResponseOption, TablePagination, DatasourceResult, ResponseResult, ReloadDataResult, ColItem, ProProps, ExportDataItem, ExportDataResult } from './types';
1
+ import { Pages, Orders, Filters, OrderItem, RequestOption, ResponseOption, TablePagination, DatasourceResult, ResponseResult, ReloadDataResult, ColItem, ProProps, ExportDataItem, ExportDataResult } from './types';
2
+ import { DataItem, Column, Columns, Sorter, Filter, TableSize, TreeProps, RowKey, SpanMethod, SummaryMethod } from '../ele-data-table/types';
3
+ import { ElePaginationProps } from '../ele-app/plus';
4
+
4
5
  /**
5
6
  * 合并复合属性
6
7
  * @param props 属性
@@ -26,7 +27,7 @@ export declare function getTableLimit(pagination: boolean | TablePagination | un
26
27
  * @param globalPagination 全局配置分页组件属性
27
28
  * @param pageProps 分页相关的属性
28
29
  */
29
- export declare function getPaginationProps(size: TableSize, pagination: boolean | TablePagination | undefined, globalPagination: boolean | TablePagination | undefined, pageProps?: Pick<ElePaginationProps, 'total' | 'pageSize' | 'currentPage'>): ElePaginationProps | null;
30
+ export declare function getPaginationProps(size: TableSize, pagination: boolean | TablePagination | undefined, globalPagination: boolean | TablePagination | undefined, pageProps?: Pick<ElePaginationProps, 'total' | 'pageSize' | 'currentPage' | 'hasNext'>): ElePaginationProps | null;
30
31
  /**
31
32
  * 判断是否开启自动修正页码
32
33
  * @param pagination 分页组件属性
@@ -74,6 +75,14 @@ export declare function getRequestOrders(sorter?: Sorter, request?: RequestOptio
74
75
  * @param filter 筛选条件
75
76
  */
76
77
  export declare function getRequestFilters(filter?: Filter): Filters;
78
+ /**
79
+ * 生成请求的分页参数
80
+ * @param page 页码
81
+ * @param limit 每页数量
82
+ * @param request 请求参数配置
83
+ * @param globalRequest 全局请求参数配置
84
+ */
85
+ export declare function getRequestPages(page: number, limit: number, request?: RequestOption, globalRequest?: RequestOption): Pages;
77
86
  /**
78
87
  * 获取数据源请求结果
79
88
  * @param data 数据源请求的原始数据
@@ -108,7 +117,7 @@ export declare function sortData(datasource?: DataItem[], sorter?: Sorter): Data
108
117
  * 获取列配置标识
109
118
  * @param column 列数据
110
119
  */
111
- export declare function getColId(column?: Column): string | undefined;
120
+ export declare function getColId(column: Column): string | undefined;
112
121
  /**
113
122
  * 获取初始显示的列数据
114
123
  * @param columns 列数据
@@ -130,11 +139,13 @@ export declare function getInitCacheColumns(columns: Columns, cacheKey?: string,
130
139
  export declare function getCheckedColumns(columns: Columns | undefined, cols: ColItem[], sortable?: boolean, filter?: (item: Column) => boolean): Columns;
131
140
  /**
132
141
  * 获取列展示列表数据
133
- * @param columns 列数据
142
+ * @param columns 列配置
134
143
  * @param untitledText 未命名列文字
135
- * @param filter 过滤的方法
144
+ * @param filter 过滤列的方法
145
+ * @param sortFixed 是否对固定列排序
146
+ * @param cancelFixed 是否取消固定列
136
147
  */
137
- export declare function getColItems(columns?: Columns, untitledText?: string, filter?: (item: Column) => boolean): ColItem[];
148
+ export declare function getColItems(columns?: Columns, untitledText?: string, filter?: (item: Column) => boolean, sortFixed?: boolean, cancelFixed?: boolean): ColItem[];
138
149
  /**
139
150
  * 获取列配置
140
151
  * @param columns 列数据
@@ -160,23 +171,11 @@ export declare function getSizeCacheKey(cacheKey: string): string;
160
171
  * @param cacheKey 缓存的名称
161
172
  */
162
173
  export declare function getCacheSize(cacheKey?: string): TableSize;
163
- /**
164
- * 获取默认 rowKey
165
- * @param rowKey 自定义 rowKey
166
- */
167
- export declare function getDefaultRowKey(rowKey?: RowKey): "_rowKey" | undefined;
168
174
  /**
169
175
  * 获取 rowKey
170
176
  * @param rowKey 自定义 rowKey
171
177
  */
172
- export declare function getRowKey(rowKey?: RowKey): string | ((row: DataItem) => string) | undefined;
173
- /**
174
- * 数据添加默认的 rowKey 字段
175
- * @param data 数据
176
- * @param rowKey 字段名
177
- * @param page 页码
178
- */
179
- export declare function addDefaultRowKey(data: DataItem[], rowKey: string | undefined, page: number): DataItem[];
178
+ export declare function getRowKey(rowKey?: RowKey): string | ((row: DataItem) => string);
180
179
  /**
181
180
  * 导出获取单元格文本
182
181
  * @param column 列配置
@@ -213,4 +212,9 @@ export declare function exportCSV(fileName: string, headerData: ExportDataItem[]
213
212
  * 导出判断列是否显示
214
213
  * @param item 列配置
215
214
  */
216
- export declare function exportColumnsfilter(item: Column): boolean;
215
+ export declare function columnsExportFilter(item: Column): boolean;
216
+ /**
217
+ * 打印判断列是否显示
218
+ * @param item 列配置
219
+ */
220
+ export declare function columnsPrintFilter(item: Column): boolean;
@@ -1,5 +1,5 @@
1
1
  import { omit, eachTree, findTree, uuid, mapTree } from "../utils/core";
2
- import { getValue } from "../ele-data-table/util";
2
+ import { getValue, getColFixedNumber } from "../ele-data-table/util";
3
3
  import { getIndexValue, analyseColumns, getCellSpan, getUserSums, getSumValue } from "../ele-virtual-table/util";
4
4
  function mergeProps(props, globalProps) {
5
5
  if (props == null) {
@@ -65,6 +65,8 @@ function getDefaultFilter(columns) {
65
65
  }
66
66
  function getRequestName(globalRequest, request) {
67
67
  const defaultRequest = {
68
+ pageName: "page",
69
+ limitName: "limit",
68
70
  sortName: "sort",
69
71
  orderName: "order",
70
72
  ascValue: "asc",
@@ -143,6 +145,16 @@ function getRequestFilters(filter) {
143
145
  }
144
146
  return filters;
145
147
  }
148
+ function getRequestPages(page, limit, request, globalRequest) {
149
+ const pages = {};
150
+ const { pageName, limitName } = getRequestName(globalRequest, request);
151
+ if (!pageName || !limitName) {
152
+ return pages;
153
+ }
154
+ pages[pageName] = page;
155
+ pages[limitName] = limit;
156
+ return pages;
157
+ }
146
158
  function getResponseResult(data, response, globalResponse, lazy, treeOpt) {
147
159
  if (!data || Array.isArray(data)) {
148
160
  return { data: getResponseData(data, lazy, treeOpt) };
@@ -205,7 +217,10 @@ function sortData(datasource, sorter) {
205
217
  return data;
206
218
  }
207
219
  function getColId(column) {
208
- return column ? column.columnKey || column.prop : void 0;
220
+ if (column.columnKey == null || column.columnKey === "") {
221
+ return column.prop;
222
+ }
223
+ return column.columnKey;
209
224
  }
210
225
  function getInitColumns(columns) {
211
226
  const data = [];
@@ -303,19 +318,25 @@ function getCheckedColumns(columns, cols, sortable, filter) {
303
318
  });
304
319
  return data;
305
320
  }
306
- function getColItems(columns, untitledText, filter) {
307
- return mapTree(columns, (d) => {
321
+ function getColItems(columns, untitledText, filter, sortFixed, cancelFixed) {
322
+ const temp = columns == null ? [] : [...columns];
323
+ if (sortFixed) {
324
+ temp.sort((a, b) => {
325
+ return getColFixedNumber(a.fixed) - getColFixedNumber(b.fixed);
326
+ });
327
+ }
328
+ return mapTree(temp, (d, _i, parent) => {
308
329
  const colId = getColId(d);
309
- if (!colId || filter && !filter(d)) {
330
+ if (colId == null || filter && !filter(d)) {
310
331
  return;
311
332
  }
312
333
  return {
313
334
  uid: colId,
314
- prop: d.prop,
315
- columnKey: d.columnKey,
335
+ //prop: d.prop,
336
+ //columnKey: d.columnKey,
316
337
  label: d.label || untitledText,
317
338
  checked: !d.hideInTable,
318
- fixed: d.fixed
339
+ fixed: cancelFixed ? false : parent == null ? d.fixed : false
319
340
  };
320
341
  });
321
342
  }
@@ -373,21 +394,13 @@ function getCacheSize(cacheKey) {
373
394
  }
374
395
  }
375
396
  }
376
- function getDefaultRowKey(rowKey) {
377
- return rowKey ? void 0 : "_rowKey";
378
- }
379
397
  function getRowKey(rowKey) {
380
- return rowKey ?? getDefaultRowKey();
381
- }
382
- function addDefaultRowKey(data, rowKey, page) {
383
- if (rowKey == null) {
384
- return data;
398
+ if (rowKey != null) {
399
+ return rowKey;
385
400
  }
386
- return data.map((d, i) => {
387
- const item = { ...d };
388
- item[rowKey] = `${page}-${i}`;
389
- return item;
390
- });
401
+ return (row) => {
402
+ return JSON.stringify(row);
403
+ };
391
404
  }
392
405
  function getCellText(column, row, index, pageIndex) {
393
406
  if (!column) {
@@ -398,7 +411,7 @@ function getCellText(column, row, index, pageIndex) {
398
411
  }
399
412
  const propValue = getValue(row, column.prop);
400
413
  if (typeof column.formatter === "function") {
401
- return column.formatter(row, column, propValue, index, "export");
414
+ return column.formatter(row, column, propValue, index);
402
415
  }
403
416
  return propValue == null ? "" : String(propValue);
404
417
  }
@@ -407,8 +420,7 @@ function getHeaderCellText(column, index) {
407
420
  return "";
408
421
  }
409
422
  if (typeof column.renderHeader === "function") {
410
- const params = { column, $index: index, action: "export" };
411
- return column.renderHeader(params);
423
+ return column.renderHeader({ column, $index: index });
412
424
  }
413
425
  return column.label == null ? "" : String(column.label);
414
426
  }
@@ -472,13 +484,22 @@ function exportCSV(fileName, headerData, bodyData, footerData) {
472
484
  a.click();
473
485
  document.body.removeChild(a);
474
486
  }
475
- function exportColumnsfilter(item) {
487
+ function columnsExportFilter(item) {
488
+ if (item.hideInExport) {
489
+ return false;
490
+ }
491
+ return !item.type || !["selection", "expand"].includes(item.type);
492
+ }
493
+ function columnsPrintFilter(item) {
494
+ if (item.hideInPrint) {
495
+ return false;
496
+ }
476
497
  return !item.type || !["selection", "expand"].includes(item.type);
477
498
  }
478
499
  export {
479
- addDefaultRowKey,
500
+ columnsExportFilter,
501
+ columnsPrintFilter,
480
502
  exportCSV,
481
- exportColumnsfilter,
482
503
  getCacheCols,
483
504
  getCacheSize,
484
505
  getCellText,
@@ -487,7 +508,6 @@ export {
487
508
  getColItems,
488
509
  getColsCacheKey,
489
510
  getDefaultFilter,
490
- getDefaultRowKey,
491
511
  getExportData,
492
512
  getHeaderCellText,
493
513
  getInitCacheColumns,
@@ -497,6 +517,7 @@ export {
497
517
  getRequestFilters,
498
518
  getRequestName,
499
519
  getRequestOrders,
520
+ getRequestPages,
500
521
  getResponseData,
501
522
  getResponseName,
502
523
  getResponseResult,