ele-admin-plus 1.1.9-beta.10 → 1.1.9-beta.12

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 (575) hide show
  1. package/es/ele-alert/index.d.ts +22 -22
  2. package/es/ele-alert/index.js +2 -2
  3. package/es/ele-app/el.d.ts +2 -1
  4. package/es/ele-app/index.d.ts +2 -2
  5. package/es/ele-avatar-group/index.d.ts +26 -26
  6. package/es/ele-bar-code/index.d.ts +6 -6
  7. package/es/ele-basic-select/index.d.ts +31 -31
  8. package/es/ele-basic-select/index.js +7 -1
  9. package/es/ele-basic-select/props.d.ts +1 -1
  10. package/es/ele-bottom-bar/index.d.ts +5 -5
  11. package/es/ele-breadcrumb/index.d.ts +8 -8
  12. package/es/ele-breadcrumb/props.d.ts +1 -1
  13. package/es/ele-card/index.d.ts +11 -11
  14. package/es/ele-check-card/components/card-item.d.ts +3 -3
  15. package/es/ele-check-card/index.d.ts +12 -12
  16. package/es/ele-config-provider/components/receiver-view.d.ts +2 -2
  17. package/es/ele-config-provider/index.d.ts +6 -6
  18. package/es/ele-config-provider/receiver.d.ts +1 -1
  19. package/es/ele-config-provider/receiver.js +4 -8
  20. package/es/ele-config-provider/types.d.ts +2 -18
  21. package/es/ele-copyable/index.d.ts +28 -28
  22. package/es/ele-count-up/index.d.ts +6 -6
  23. package/es/ele-cropper/components/cropper-preview.d.ts +2 -2
  24. package/es/ele-cropper/components/cropper-tools.d.ts +8 -8
  25. package/es/ele-cropper/index.d.ts +11 -11
  26. package/es/ele-cropper-modal/index.d.ts +13 -13
  27. package/es/ele-cropper-modal/index.js +1 -1
  28. package/es/ele-dashboard/index.d.ts +4 -4
  29. package/es/ele-data-table/index.d.ts +56 -56
  30. package/es/ele-dot/index.d.ts +3 -3
  31. package/es/ele-drawer/index.d.ts +72 -69
  32. package/es/ele-drawer/index.js +107 -113
  33. package/es/ele-drawer/props.d.ts +1 -1
  34. package/es/ele-drawer/style/index.scss +48 -105
  35. package/es/ele-dropdown/index.d.ts +62 -62
  36. package/es/ele-dropdown/props.d.ts +4 -4
  37. package/es/ele-edit-tag/index.d.ts +30 -30
  38. package/es/ele-edit-tag/index.js +1 -1
  39. package/es/ele-ellipsis/index.d.ts +19 -19
  40. package/es/ele-file-list/components/file-grid-item.d.ts +7 -7
  41. package/es/ele-file-list/components/file-grid-item.js +1 -1
  42. package/es/ele-file-list/components/file-grid.d.ts +4 -4
  43. package/es/ele-file-list/components/file-sort.d.ts +1 -1
  44. package/es/ele-file-list/components/file-table-item.d.ts +7 -7
  45. package/es/ele-file-list/components/file-table-item.js +1 -1
  46. package/es/ele-file-list/components/file-table.d.ts +4 -4
  47. package/es/ele-file-list/index.d.ts +32 -32
  48. package/es/ele-file-list-tool/index.d.ts +2 -2
  49. package/es/ele-icon-select/components/icon-grid.d.ts +11 -11
  50. package/es/ele-icon-select/components/icon-grid.js +1 -1
  51. package/es/ele-icon-select/index.d.ts +45 -45
  52. package/es/ele-icon-select/props.d.ts +1 -1
  53. package/es/ele-loading/index.d.ts +11 -15
  54. package/es/ele-loading/index.js +10 -16
  55. package/es/ele-map-picker/components/map-view.d.ts +25 -25
  56. package/es/ele-map-picker/components/map-view.js +1 -1
  57. package/es/ele-map-picker/index.d.ts +21 -21
  58. package/es/ele-map-picker/index.js +1 -1
  59. package/es/ele-menus/index.d.ts +56 -58
  60. package/es/ele-menus/index.js +1 -1
  61. package/es/ele-menus/props.d.ts +2 -4
  62. package/es/ele-menus/props.js +1 -3
  63. package/es/ele-menus/style/css-var.scss +1 -5
  64. package/es/ele-modal/index.d.ts +73 -67
  65. package/es/ele-modal/index.js +164 -186
  66. package/es/ele-modal/props.d.ts +3 -1
  67. package/es/ele-modal/props.js +2 -0
  68. package/es/ele-modal/style/index.scss +85 -146
  69. package/es/ele-modal/util.d.ts +18 -44
  70. package/es/ele-modal/util.js +53 -179
  71. package/es/ele-page/index.d.ts +1 -1
  72. package/es/ele-pagination/index.d.ts +39 -30
  73. package/es/ele-pagination/index.js +4 -1
  74. package/es/ele-pagination/props.d.ts +7 -2
  75. package/es/ele-pagination/props.js +5 -0
  76. package/es/ele-popconfirm/index.d.ts +86 -86
  77. package/es/ele-popconfirm/index.js +6 -28
  78. package/es/ele-popconfirm/props.d.ts +5 -5
  79. package/es/ele-popover/index.d.ts +67 -67
  80. package/es/ele-popover/index.js +6 -14
  81. package/es/ele-popover/props.d.ts +4 -4
  82. package/es/ele-printer/index.d.ts +17 -17
  83. package/es/ele-pro-layout/components/header-tool.d.ts +1 -1
  84. package/es/ele-pro-layout/components/pro-header.d.ts +81 -26
  85. package/es/ele-pro-layout/components/pro-header.js +110 -20
  86. package/es/ele-pro-layout/components/pro-iframe.d.ts +3 -4
  87. package/es/ele-pro-layout/components/pro-iframe.js +31 -41
  88. package/es/ele-pro-layout/components/pro-sidebar.d.ts +9 -14
  89. package/es/ele-pro-layout/components/pro-sidebar.js +2 -5
  90. package/es/ele-pro-layout/components/pro-sidebox.d.ts +11 -16
  91. package/es/ele-pro-layout/components/pro-sidebox.js +2 -5
  92. package/es/ele-pro-layout/components/pro-tabs.d.ts +6 -6
  93. package/es/ele-pro-layout/components/sidebar-tool.d.ts +1 -1
  94. package/es/ele-pro-layout/components/tab-dropdown.d.ts +3 -3
  95. package/es/ele-pro-layout/components/tab-dropdown.js +1 -1
  96. package/es/ele-pro-layout/index.d.ts +93 -94
  97. package/es/ele-pro-layout/index.js +62 -47
  98. package/es/ele-pro-layout/props.d.ts +4 -7
  99. package/es/ele-pro-layout/props.js +2 -4
  100. package/es/ele-pro-layout/style/css-var.scss +3 -18
  101. package/es/ele-pro-layout/style/header.scss +74 -9
  102. package/es/ele-pro-layout/style/layout-mobile.scss +2 -2
  103. package/es/ele-pro-layout/style/layout-style.scss +8 -3
  104. package/es/ele-pro-layout/style/layout-theme.scss +48 -23
  105. package/es/ele-pro-layout/style/layout.scss +38 -8
  106. package/es/ele-pro-layout/style/sidebar.scss +0 -1
  107. package/es/ele-pro-layout/style/tabs.scss +19 -11
  108. package/es/ele-pro-layout/types.d.ts +1 -1
  109. package/es/ele-pro-layout/util.d.ts +1 -2
  110. package/es/ele-pro-layout/util.js +2 -3
  111. package/es/ele-pro-table/components/table-tools.d.ts +17 -17
  112. package/es/ele-pro-table/components/tool-column-list.d.ts +2 -2
  113. package/es/ele-pro-table/components/tool-column.d.ts +9 -9
  114. package/es/ele-pro-table/components/tool-export.d.ts +15 -292
  115. package/es/ele-pro-table/components/tool-print-body-cell.d.ts +8 -8
  116. package/es/ele-pro-table/components/tool-print-header-cell.d.ts +8 -8
  117. package/es/ele-pro-table/components/tool-print.d.ts +23 -736
  118. package/es/ele-pro-table/components/tool-print.js +0 -3
  119. package/es/ele-pro-table/index.d.ts +124 -126
  120. package/es/ele-pro-table/index.js +32 -26
  121. package/es/ele-pro-table/props.d.ts +16 -16
  122. package/es/ele-pro-table/types.d.ts +11 -0
  123. package/es/ele-pro-table/util.d.ts +11 -15
  124. package/es/ele-pro-table/util.js +18 -15
  125. package/es/ele-qr-code/index.d.ts +13 -13
  126. package/es/ele-qr-code-svg/index.d.ts +17 -17
  127. package/es/ele-segmented/index.d.ts +7 -7
  128. package/es/ele-split-panel/index.d.ts +15 -15
  129. package/es/ele-steps/index.d.ts +32 -32
  130. package/es/ele-tab-tool/index.d.ts +1 -1
  131. package/es/ele-tab-wrap/index.d.ts +5 -5
  132. package/es/ele-tab-wrap/index.js +2 -1
  133. package/es/ele-table/index.d.ts +3 -3
  134. package/es/ele-table/props.d.ts +1 -1
  135. package/es/ele-table-select/index.d.ts +41 -40
  136. package/es/ele-table-select/index.js +29 -27
  137. package/es/ele-table-select/props.d.ts +1 -1
  138. package/es/ele-tabs/components/tab-title.d.ts +3 -3
  139. package/es/ele-tabs/index.d.ts +31 -31
  140. package/es/ele-tabs/index.js +1 -0
  141. package/es/ele-tabs/props.d.ts +4 -4
  142. package/es/ele-tabs/style/css-var.scss +1 -30
  143. package/es/ele-tabs/style/index.scss +372 -241
  144. package/es/ele-tabs/types.d.ts +2 -1
  145. package/es/ele-text/index.d.ts +11 -11
  146. package/es/ele-tool/index.d.ts +6 -6
  147. package/es/ele-tool/props.d.ts +1 -1
  148. package/es/ele-toolbar/index.d.ts +14 -14
  149. package/es/ele-tooltip/index.d.ts +56 -56
  150. package/es/ele-tooltip/index.js +3 -0
  151. package/es/ele-tooltip/props.d.ts +8 -3
  152. package/es/ele-tooltip/props.js +2 -0
  153. package/es/ele-tour/index.d.ts +10 -10
  154. package/es/ele-tree-select/index.d.ts +31 -31
  155. package/es/ele-tree-select/props.d.ts +1 -1
  156. package/es/ele-upload-list/components/list-item.d.ts +2 -2
  157. package/es/ele-upload-list/index.d.ts +22 -22
  158. package/es/ele-virtual-table/components/body-cell.d.ts +16 -16
  159. package/es/ele-virtual-table/components/body-row.d.ts +17 -17
  160. package/es/ele-virtual-table/components/cell-checkbox.d.ts +2 -2
  161. package/es/ele-virtual-table/components/cell-filter.d.ts +13 -13
  162. package/es/ele-virtual-table/components/expand-row.d.ts +1 -1
  163. package/es/ele-virtual-table/components/footer-row.d.ts +5 -5
  164. package/es/ele-virtual-table/components/header-cell.d.ts +11 -11
  165. package/es/ele-virtual-table/components/header-row.d.ts +7 -7
  166. package/es/ele-virtual-table/index.d.ts +71 -71
  167. package/es/ele-virtual-table/props.d.ts +21 -21
  168. package/es/ele-virtual-table/style/index.scss +1 -1
  169. package/es/ele-virtual-table/util.d.ts +1 -1
  170. package/es/ele-watermark/index.d.ts +12 -12
  171. package/es/ele-xg-player/index.d.ts +6 -6
  172. package/es/icons/AnalysisOutlined.d.ts +1 -1
  173. package/es/icons/ApplicationOutlined.d.ts +1 -1
  174. package/es/icons/AppstoreAddOutlined.d.ts +1 -1
  175. package/es/icons/AppstoreOutlined.d.ts +1 -1
  176. package/es/icons/ArrowDown.d.ts +1 -1
  177. package/es/icons/ArrowDownOutlined.d.ts +1 -1
  178. package/es/icons/ArrowLeft.d.ts +1 -1
  179. package/es/icons/ArrowLeftOutlined.d.ts +1 -1
  180. package/es/icons/ArrowRight.d.ts +1 -1
  181. package/es/icons/ArrowRightOutlined.d.ts +1 -1
  182. package/es/icons/ArrowUp.d.ts +1 -1
  183. package/es/icons/ArrowUpOutlined.d.ts +1 -1
  184. package/es/icons/BellOutlined.d.ts +1 -1
  185. package/es/icons/BookOutlined.d.ts +1 -1
  186. package/es/icons/CalendarOutlined.d.ts +1 -1
  187. package/es/icons/CaretDownFilled.d.ts +1 -1
  188. package/es/icons/CaretUpFilled.d.ts +1 -1
  189. package/es/icons/CheckCircleFilled.d.ts +1 -1
  190. package/es/icons/CheckCircleOutlined.d.ts +1 -1
  191. package/es/icons/CheckOutlined.d.ts +1 -1
  192. package/es/icons/CityOutlined.d.ts +1 -1
  193. package/es/icons/ClockCircleOutlined.d.ts +1 -1
  194. package/es/icons/CloseCircleFilled.d.ts +1 -1
  195. package/es/icons/CloseCircleOutlined.d.ts +1 -1
  196. package/es/icons/CloseOutlined.d.ts +1 -1
  197. package/es/icons/CloudUploadOutlined.d.ts +1 -1
  198. package/es/icons/ClusterOutlined.d.ts +1 -1
  199. package/es/icons/CodeOutlined.d.ts +1 -1
  200. package/es/icons/ColumnHeightOutlined.d.ts +1 -1
  201. package/es/icons/CompassOutlined.d.ts +1 -1
  202. package/es/icons/CompressOutlined.d.ts +1 -1
  203. package/es/icons/ConnectionOutlined.d.ts +1 -1
  204. package/es/icons/ControlOutlined.d.ts +1 -1
  205. package/es/icons/CopyOutlined.d.ts +1 -1
  206. package/es/icons/CpuOutlined.d.ts +1 -1
  207. package/es/icons/DashboardOutlined.d.ts +1 -1
  208. package/es/icons/DatabaseOutlined.d.ts +1 -1
  209. package/es/icons/DeleteOutlined.d.ts +1 -1
  210. package/es/icons/DesktopOutlined.d.ts +1 -1
  211. package/es/icons/DownloadOutlined.d.ts +1 -1
  212. package/es/icons/DragOutlined.d.ts +1 -1
  213. package/es/icons/EditOutlined.d.ts +1 -1
  214. package/es/icons/EllipsisOutlined.d.ts +1 -1
  215. package/es/icons/EnvironmentOutlined.d.ts +1 -1
  216. package/es/icons/ExclamationCircleFilled.d.ts +1 -1
  217. package/es/icons/ExpandOutlined.d.ts +1 -1
  218. package/es/icons/FileOutlined.d.ts +1 -1
  219. package/es/icons/FilterFilled.d.ts +1 -1
  220. package/es/icons/FolderAddOutlined.d.ts +1 -1
  221. package/es/icons/FolderOutlined.d.ts +1 -1
  222. package/es/icons/FormOutlined.d.ts +1 -1
  223. package/es/icons/FullscreenExitOutlined.d.ts +1 -1
  224. package/es/icons/FullscreenOutlined.d.ts +1 -1
  225. package/es/icons/FundOutlined.d.ts +1 -1
  226. package/es/icons/GlobalOutlined.d.ts +1 -1
  227. package/es/icons/HolderOutlined.d.ts +1 -1
  228. package/es/icons/HomeOutlined.d.ts +1 -1
  229. package/es/icons/IdcardOutlined.d.ts +1 -1
  230. package/es/icons/InfoCircleFilled.d.ts +1 -1
  231. package/es/icons/LinkOutlined.d.ts +1 -1
  232. package/es/icons/LoadingDotOutlined.d.ts +1 -1
  233. package/es/icons/LoadingOutlined.d.ts +1 -1
  234. package/es/icons/LockOutlined.d.ts +1 -1
  235. package/es/icons/LogOutlined.d.ts +1 -1
  236. package/es/icons/LogoutOutlined.d.ts +1 -1
  237. package/es/icons/MailOutlined.d.ts +1 -1
  238. package/es/icons/MenuFoldOutlined.d.ts +1 -1
  239. package/es/icons/MenuUnfoldOutlined.d.ts +1 -1
  240. package/es/icons/MessageOutlined.d.ts +1 -1
  241. package/es/icons/MinusCircleOutlined.d.ts +1 -1
  242. package/es/icons/MobileOutlined.d.ts +1 -1
  243. package/es/icons/MoonOutlined.d.ts +1 -1
  244. package/es/icons/MoreOutlined.d.ts +1 -1
  245. package/es/icons/PauseFilled.d.ts +1 -1
  246. package/es/icons/PieChartOutlined.d.ts +1 -1
  247. package/es/icons/PlayFilled.d.ts +1 -1
  248. package/es/icons/PlusCircleOutlined.d.ts +1 -1
  249. package/es/icons/PlusOutlined.d.ts +1 -1
  250. package/es/icons/PrinterOutlined.d.ts +1 -1
  251. package/es/icons/ProtectOutlined.d.ts +1 -1
  252. package/es/icons/QuestionCircleFilled.d.ts +1 -1
  253. package/es/icons/QuestionCircleOutlined.d.ts +1 -1
  254. package/es/icons/ReloadOutlined.d.ts +1 -1
  255. package/es/icons/ResizeOutlined.d.ts +2 -0
  256. package/es/icons/ResizeOutlined.js +30 -0
  257. package/es/icons/SearchOutlined.d.ts +1 -1
  258. package/es/icons/SettingOutlined.d.ts +1 -1
  259. package/es/icons/ShoppingOutlined.d.ts +1 -1
  260. package/es/icons/SortOutlined.d.ts +1 -1
  261. package/es/icons/StarFilled.d.ts +1 -1
  262. package/es/icons/StepBackwardFilled.d.ts +1 -1
  263. package/es/icons/StepForwardFilled.d.ts +1 -1
  264. package/es/icons/SuitcaseOutlined.d.ts +1 -1
  265. package/es/icons/SunOutlined.d.ts +1 -1
  266. package/es/icons/SwapOutlined.d.ts +1 -1
  267. package/es/icons/SyncOutlined.d.ts +1 -1
  268. package/es/icons/TableOutlined.d.ts +1 -1
  269. package/es/icons/TagOutlined.d.ts +1 -1
  270. package/es/icons/TimerOutlined.d.ts +1 -1
  271. package/es/icons/UndoOutlined.d.ts +1 -1
  272. package/es/icons/UnlockOutlined.d.ts +1 -1
  273. package/es/icons/UploadOutlined.d.ts +1 -1
  274. package/es/icons/UserOutlined.d.ts +1 -1
  275. package/es/icons/VerticalAlignMiddleOutlined.d.ts +1 -1
  276. package/es/icons/VerticalLeftOutlined.d.ts +1 -1
  277. package/es/icons/VerticalRightOutlined.d.ts +1 -1
  278. package/es/icons/WarningOutlined.d.ts +1 -1
  279. package/es/icons/ZoomInOutlined.d.ts +1 -1
  280. package/es/icons/ZoomOutOutlined.d.ts +1 -1
  281. package/es/icons/index.d.ts +1 -0
  282. package/es/icons/index.js +50 -48
  283. package/es/style/nprogress.scss +1 -0
  284. package/es/style/themes/dark.scss +9 -15
  285. package/es/style/themes/default.scss +56 -80
  286. package/es/style/themes/rounded.scss +16 -30
  287. package/es/utils/menu-util.js +2 -5
  288. package/lib/ele-alert/index.cjs +2 -2
  289. package/lib/ele-alert/index.d.ts +22 -22
  290. package/lib/ele-app/el.d.ts +2 -1
  291. package/lib/ele-app/index.d.ts +2 -2
  292. package/lib/ele-avatar-group/index.d.ts +26 -26
  293. package/lib/ele-bar-code/index.d.ts +6 -6
  294. package/lib/ele-basic-select/index.cjs +7 -1
  295. package/lib/ele-basic-select/index.d.ts +31 -31
  296. package/lib/ele-basic-select/props.d.ts +1 -1
  297. package/lib/ele-bottom-bar/index.d.ts +5 -5
  298. package/lib/ele-breadcrumb/index.d.ts +8 -8
  299. package/lib/ele-breadcrumb/props.d.ts +1 -1
  300. package/lib/ele-card/index.d.ts +11 -11
  301. package/lib/ele-check-card/components/card-item.d.ts +3 -3
  302. package/lib/ele-check-card/index.d.ts +12 -12
  303. package/lib/ele-config-provider/components/receiver-view.d.ts +2 -2
  304. package/lib/ele-config-provider/index.d.ts +6 -6
  305. package/lib/ele-config-provider/receiver.cjs +3 -7
  306. package/lib/ele-config-provider/receiver.d.ts +1 -1
  307. package/lib/ele-config-provider/types.d.ts +2 -18
  308. package/lib/ele-copyable/index.d.ts +28 -28
  309. package/lib/ele-count-up/index.d.ts +6 -6
  310. package/lib/ele-cropper/components/cropper-preview.d.ts +2 -2
  311. package/lib/ele-cropper/components/cropper-tools.d.ts +8 -8
  312. package/lib/ele-cropper/index.d.ts +11 -11
  313. package/lib/ele-cropper-modal/index.cjs +1 -1
  314. package/lib/ele-cropper-modal/index.d.ts +13 -13
  315. package/lib/ele-dashboard/index.d.ts +4 -4
  316. package/lib/ele-data-table/index.d.ts +56 -56
  317. package/lib/ele-dot/index.d.ts +3 -3
  318. package/lib/ele-drawer/index.cjs +105 -111
  319. package/lib/ele-drawer/index.d.ts +72 -69
  320. package/lib/ele-drawer/props.d.ts +1 -1
  321. package/lib/ele-drawer/style/index.scss +48 -105
  322. package/lib/ele-dropdown/index.d.ts +62 -62
  323. package/lib/ele-dropdown/props.d.ts +4 -4
  324. package/lib/ele-edit-tag/index.cjs +1 -1
  325. package/lib/ele-edit-tag/index.d.ts +30 -30
  326. package/lib/ele-ellipsis/index.d.ts +19 -19
  327. package/lib/ele-file-list/components/file-grid-item.cjs +1 -1
  328. package/lib/ele-file-list/components/file-grid-item.d.ts +7 -7
  329. package/lib/ele-file-list/components/file-grid.d.ts +4 -4
  330. package/lib/ele-file-list/components/file-sort.d.ts +1 -1
  331. package/lib/ele-file-list/components/file-table-item.cjs +1 -1
  332. package/lib/ele-file-list/components/file-table-item.d.ts +7 -7
  333. package/lib/ele-file-list/components/file-table.d.ts +4 -4
  334. package/lib/ele-file-list/index.d.ts +32 -32
  335. package/lib/ele-file-list-tool/index.d.ts +2 -2
  336. package/lib/ele-icon-select/components/icon-grid.cjs +1 -1
  337. package/lib/ele-icon-select/components/icon-grid.d.ts +11 -11
  338. package/lib/ele-icon-select/index.d.ts +45 -45
  339. package/lib/ele-icon-select/props.d.ts +1 -1
  340. package/lib/ele-loading/index.cjs +9 -15
  341. package/lib/ele-loading/index.d.ts +11 -15
  342. package/lib/ele-map-picker/components/map-view.cjs +1 -1
  343. package/lib/ele-map-picker/components/map-view.d.ts +25 -25
  344. package/lib/ele-map-picker/index.cjs +1 -1
  345. package/lib/ele-map-picker/index.d.ts +21 -21
  346. package/lib/ele-menus/index.cjs +1 -1
  347. package/lib/ele-menus/index.d.ts +56 -58
  348. package/lib/ele-menus/props.cjs +1 -3
  349. package/lib/ele-menus/props.d.ts +2 -4
  350. package/lib/ele-menus/style/css-var.scss +1 -5
  351. package/lib/ele-modal/index.cjs +176 -198
  352. package/lib/ele-modal/index.d.ts +73 -67
  353. package/lib/ele-modal/props.cjs +2 -0
  354. package/lib/ele-modal/props.d.ts +3 -1
  355. package/lib/ele-modal/style/index.scss +85 -146
  356. package/lib/ele-modal/util.cjs +53 -179
  357. package/lib/ele-modal/util.d.ts +18 -44
  358. package/lib/ele-page/index.d.ts +1 -1
  359. package/lib/ele-pagination/index.cjs +4 -1
  360. package/lib/ele-pagination/index.d.ts +39 -30
  361. package/lib/ele-pagination/props.cjs +5 -0
  362. package/lib/ele-pagination/props.d.ts +7 -2
  363. package/lib/ele-popconfirm/index.cjs +5 -27
  364. package/lib/ele-popconfirm/index.d.ts +86 -86
  365. package/lib/ele-popconfirm/props.d.ts +5 -5
  366. package/lib/ele-popover/index.cjs +5 -13
  367. package/lib/ele-popover/index.d.ts +67 -67
  368. package/lib/ele-popover/props.d.ts +4 -4
  369. package/lib/ele-printer/index.d.ts +17 -17
  370. package/lib/ele-pro-layout/components/header-tool.d.ts +1 -1
  371. package/lib/ele-pro-layout/components/pro-header.cjs +109 -19
  372. package/lib/ele-pro-layout/components/pro-header.d.ts +81 -26
  373. package/lib/ele-pro-layout/components/pro-iframe.cjs +30 -40
  374. package/lib/ele-pro-layout/components/pro-iframe.d.ts +3 -4
  375. package/lib/ele-pro-layout/components/pro-sidebar.cjs +2 -5
  376. package/lib/ele-pro-layout/components/pro-sidebar.d.ts +9 -14
  377. package/lib/ele-pro-layout/components/pro-sidebox.cjs +2 -5
  378. package/lib/ele-pro-layout/components/pro-sidebox.d.ts +11 -16
  379. package/lib/ele-pro-layout/components/pro-tabs.d.ts +6 -6
  380. package/lib/ele-pro-layout/components/sidebar-tool.d.ts +1 -1
  381. package/lib/ele-pro-layout/components/tab-dropdown.cjs +1 -1
  382. package/lib/ele-pro-layout/components/tab-dropdown.d.ts +3 -3
  383. package/lib/ele-pro-layout/index.cjs +61 -46
  384. package/lib/ele-pro-layout/index.d.ts +93 -94
  385. package/lib/ele-pro-layout/props.cjs +2 -4
  386. package/lib/ele-pro-layout/props.d.ts +4 -7
  387. package/lib/ele-pro-layout/style/css-var.scss +3 -18
  388. package/lib/ele-pro-layout/style/header.scss +74 -9
  389. package/lib/ele-pro-layout/style/layout-mobile.scss +2 -2
  390. package/lib/ele-pro-layout/style/layout-style.scss +8 -3
  391. package/lib/ele-pro-layout/style/layout-theme.scss +48 -23
  392. package/lib/ele-pro-layout/style/layout.scss +38 -8
  393. package/lib/ele-pro-layout/style/sidebar.scss +0 -1
  394. package/lib/ele-pro-layout/style/tabs.scss +19 -11
  395. package/lib/ele-pro-layout/types.d.ts +1 -1
  396. package/lib/ele-pro-layout/util.cjs +2 -3
  397. package/lib/ele-pro-layout/util.d.ts +1 -2
  398. package/lib/ele-pro-table/components/table-tools.d.ts +17 -17
  399. package/lib/ele-pro-table/components/tool-column-list.d.ts +2 -2
  400. package/lib/ele-pro-table/components/tool-column.d.ts +9 -9
  401. package/lib/ele-pro-table/components/tool-export.d.ts +15 -292
  402. package/lib/ele-pro-table/components/tool-print-body-cell.d.ts +8 -8
  403. package/lib/ele-pro-table/components/tool-print-header-cell.d.ts +8 -8
  404. package/lib/ele-pro-table/components/tool-print.cjs +0 -3
  405. package/lib/ele-pro-table/components/tool-print.d.ts +23 -736
  406. package/lib/ele-pro-table/index.cjs +30 -24
  407. package/lib/ele-pro-table/index.d.ts +124 -126
  408. package/lib/ele-pro-table/props.d.ts +16 -16
  409. package/lib/ele-pro-table/types.d.ts +11 -0
  410. package/lib/ele-pro-table/util.cjs +18 -15
  411. package/lib/ele-pro-table/util.d.ts +11 -15
  412. package/lib/ele-qr-code/index.d.ts +13 -13
  413. package/lib/ele-qr-code-svg/index.d.ts +17 -17
  414. package/lib/ele-segmented/index.d.ts +7 -7
  415. package/lib/ele-split-panel/index.d.ts +15 -15
  416. package/lib/ele-steps/index.d.ts +32 -32
  417. package/lib/ele-tab-tool/index.d.ts +1 -1
  418. package/lib/ele-tab-wrap/index.cjs +2 -1
  419. package/lib/ele-tab-wrap/index.d.ts +5 -5
  420. package/lib/ele-table/index.d.ts +3 -3
  421. package/lib/ele-table/props.d.ts +1 -1
  422. package/lib/ele-table-select/index.cjs +29 -27
  423. package/lib/ele-table-select/index.d.ts +41 -40
  424. package/lib/ele-table-select/props.d.ts +1 -1
  425. package/lib/ele-tabs/components/tab-title.d.ts +3 -3
  426. package/lib/ele-tabs/index.cjs +1 -0
  427. package/lib/ele-tabs/index.d.ts +31 -31
  428. package/lib/ele-tabs/props.d.ts +4 -4
  429. package/lib/ele-tabs/style/css-var.scss +1 -30
  430. package/lib/ele-tabs/style/index.scss +372 -241
  431. package/lib/ele-tabs/types.d.ts +2 -1
  432. package/lib/ele-text/index.d.ts +11 -11
  433. package/lib/ele-tool/index.d.ts +6 -6
  434. package/lib/ele-tool/props.d.ts +1 -1
  435. package/lib/ele-toolbar/index.d.ts +14 -14
  436. package/lib/ele-tooltip/index.cjs +3 -0
  437. package/lib/ele-tooltip/index.d.ts +56 -56
  438. package/lib/ele-tooltip/props.cjs +2 -0
  439. package/lib/ele-tooltip/props.d.ts +8 -3
  440. package/lib/ele-tour/index.d.ts +10 -10
  441. package/lib/ele-tree-select/index.d.ts +31 -31
  442. package/lib/ele-tree-select/props.d.ts +1 -1
  443. package/lib/ele-upload-list/components/list-item.d.ts +2 -2
  444. package/lib/ele-upload-list/index.d.ts +22 -22
  445. package/lib/ele-virtual-table/components/body-cell.d.ts +16 -16
  446. package/lib/ele-virtual-table/components/body-row.d.ts +17 -17
  447. package/lib/ele-virtual-table/components/cell-checkbox.d.ts +2 -2
  448. package/lib/ele-virtual-table/components/cell-filter.d.ts +13 -13
  449. package/lib/ele-virtual-table/components/expand-row.d.ts +1 -1
  450. package/lib/ele-virtual-table/components/footer-row.d.ts +5 -5
  451. package/lib/ele-virtual-table/components/header-cell.d.ts +11 -11
  452. package/lib/ele-virtual-table/components/header-row.d.ts +7 -7
  453. package/lib/ele-virtual-table/index.d.ts +71 -71
  454. package/lib/ele-virtual-table/props.d.ts +21 -21
  455. package/lib/ele-virtual-table/style/index.scss +1 -1
  456. package/lib/ele-virtual-table/util.d.ts +1 -1
  457. package/lib/ele-watermark/index.d.ts +12 -12
  458. package/lib/ele-xg-player/index.d.ts +6 -6
  459. package/lib/icons/AnalysisOutlined.d.ts +1 -1
  460. package/lib/icons/ApplicationOutlined.d.ts +1 -1
  461. package/lib/icons/AppstoreAddOutlined.d.ts +1 -1
  462. package/lib/icons/AppstoreOutlined.d.ts +1 -1
  463. package/lib/icons/ArrowDown.d.ts +1 -1
  464. package/lib/icons/ArrowDownOutlined.d.ts +1 -1
  465. package/lib/icons/ArrowLeft.d.ts +1 -1
  466. package/lib/icons/ArrowLeftOutlined.d.ts +1 -1
  467. package/lib/icons/ArrowRight.d.ts +1 -1
  468. package/lib/icons/ArrowRightOutlined.d.ts +1 -1
  469. package/lib/icons/ArrowUp.d.ts +1 -1
  470. package/lib/icons/ArrowUpOutlined.d.ts +1 -1
  471. package/lib/icons/BellOutlined.d.ts +1 -1
  472. package/lib/icons/BookOutlined.d.ts +1 -1
  473. package/lib/icons/CalendarOutlined.d.ts +1 -1
  474. package/lib/icons/CaretDownFilled.d.ts +1 -1
  475. package/lib/icons/CaretUpFilled.d.ts +1 -1
  476. package/lib/icons/CheckCircleFilled.d.ts +1 -1
  477. package/lib/icons/CheckCircleOutlined.d.ts +1 -1
  478. package/lib/icons/CheckOutlined.d.ts +1 -1
  479. package/lib/icons/CityOutlined.d.ts +1 -1
  480. package/lib/icons/ClockCircleOutlined.d.ts +1 -1
  481. package/lib/icons/CloseCircleFilled.d.ts +1 -1
  482. package/lib/icons/CloseCircleOutlined.d.ts +1 -1
  483. package/lib/icons/CloseOutlined.d.ts +1 -1
  484. package/lib/icons/CloudUploadOutlined.d.ts +1 -1
  485. package/lib/icons/ClusterOutlined.d.ts +1 -1
  486. package/lib/icons/CodeOutlined.d.ts +1 -1
  487. package/lib/icons/ColumnHeightOutlined.d.ts +1 -1
  488. package/lib/icons/CompassOutlined.d.ts +1 -1
  489. package/lib/icons/CompressOutlined.d.ts +1 -1
  490. package/lib/icons/ConnectionOutlined.d.ts +1 -1
  491. package/lib/icons/ControlOutlined.d.ts +1 -1
  492. package/lib/icons/CopyOutlined.d.ts +1 -1
  493. package/lib/icons/CpuOutlined.d.ts +1 -1
  494. package/lib/icons/DashboardOutlined.d.ts +1 -1
  495. package/lib/icons/DatabaseOutlined.d.ts +1 -1
  496. package/lib/icons/DeleteOutlined.d.ts +1 -1
  497. package/lib/icons/DesktopOutlined.d.ts +1 -1
  498. package/lib/icons/DownloadOutlined.d.ts +1 -1
  499. package/lib/icons/DragOutlined.d.ts +1 -1
  500. package/lib/icons/EditOutlined.d.ts +1 -1
  501. package/lib/icons/EllipsisOutlined.d.ts +1 -1
  502. package/lib/icons/EnvironmentOutlined.d.ts +1 -1
  503. package/lib/icons/ExclamationCircleFilled.d.ts +1 -1
  504. package/lib/icons/ExpandOutlined.d.ts +1 -1
  505. package/lib/icons/FileOutlined.d.ts +1 -1
  506. package/lib/icons/FilterFilled.d.ts +1 -1
  507. package/lib/icons/FolderAddOutlined.d.ts +1 -1
  508. package/lib/icons/FolderOutlined.d.ts +1 -1
  509. package/lib/icons/FormOutlined.d.ts +1 -1
  510. package/lib/icons/FullscreenExitOutlined.d.ts +1 -1
  511. package/lib/icons/FullscreenOutlined.d.ts +1 -1
  512. package/lib/icons/FundOutlined.d.ts +1 -1
  513. package/lib/icons/GlobalOutlined.d.ts +1 -1
  514. package/lib/icons/HolderOutlined.d.ts +1 -1
  515. package/lib/icons/HomeOutlined.d.ts +1 -1
  516. package/lib/icons/IdcardOutlined.d.ts +1 -1
  517. package/lib/icons/InfoCircleFilled.d.ts +1 -1
  518. package/lib/icons/LinkOutlined.d.ts +1 -1
  519. package/lib/icons/LoadingDotOutlined.d.ts +1 -1
  520. package/lib/icons/LoadingOutlined.d.ts +1 -1
  521. package/lib/icons/LockOutlined.d.ts +1 -1
  522. package/lib/icons/LogOutlined.d.ts +1 -1
  523. package/lib/icons/LogoutOutlined.d.ts +1 -1
  524. package/lib/icons/MailOutlined.d.ts +1 -1
  525. package/lib/icons/MenuFoldOutlined.d.ts +1 -1
  526. package/lib/icons/MenuUnfoldOutlined.d.ts +1 -1
  527. package/lib/icons/MessageOutlined.d.ts +1 -1
  528. package/lib/icons/MinusCircleOutlined.d.ts +1 -1
  529. package/lib/icons/MobileOutlined.d.ts +1 -1
  530. package/lib/icons/MoonOutlined.d.ts +1 -1
  531. package/lib/icons/MoreOutlined.d.ts +1 -1
  532. package/lib/icons/PauseFilled.d.ts +1 -1
  533. package/lib/icons/PieChartOutlined.d.ts +1 -1
  534. package/lib/icons/PlayFilled.d.ts +1 -1
  535. package/lib/icons/PlusCircleOutlined.d.ts +1 -1
  536. package/lib/icons/PlusOutlined.d.ts +1 -1
  537. package/lib/icons/PrinterOutlined.d.ts +1 -1
  538. package/lib/icons/ProtectOutlined.d.ts +1 -1
  539. package/lib/icons/QuestionCircleFilled.d.ts +1 -1
  540. package/lib/icons/QuestionCircleOutlined.d.ts +1 -1
  541. package/lib/icons/ReloadOutlined.d.ts +1 -1
  542. package/lib/icons/ResizeOutlined.cjs +29 -0
  543. package/lib/icons/ResizeOutlined.d.ts +2 -0
  544. package/lib/icons/SearchOutlined.d.ts +1 -1
  545. package/lib/icons/SettingOutlined.d.ts +1 -1
  546. package/lib/icons/ShoppingOutlined.d.ts +1 -1
  547. package/lib/icons/SortOutlined.d.ts +1 -1
  548. package/lib/icons/StarFilled.d.ts +1 -1
  549. package/lib/icons/StepBackwardFilled.d.ts +1 -1
  550. package/lib/icons/StepForwardFilled.d.ts +1 -1
  551. package/lib/icons/SuitcaseOutlined.d.ts +1 -1
  552. package/lib/icons/SunOutlined.d.ts +1 -1
  553. package/lib/icons/SwapOutlined.d.ts +1 -1
  554. package/lib/icons/SyncOutlined.d.ts +1 -1
  555. package/lib/icons/TableOutlined.d.ts +1 -1
  556. package/lib/icons/TagOutlined.d.ts +1 -1
  557. package/lib/icons/TimerOutlined.d.ts +1 -1
  558. package/lib/icons/UndoOutlined.d.ts +1 -1
  559. package/lib/icons/UnlockOutlined.d.ts +1 -1
  560. package/lib/icons/UploadOutlined.d.ts +1 -1
  561. package/lib/icons/UserOutlined.d.ts +1 -1
  562. package/lib/icons/VerticalAlignMiddleOutlined.d.ts +1 -1
  563. package/lib/icons/VerticalLeftOutlined.d.ts +1 -1
  564. package/lib/icons/VerticalRightOutlined.d.ts +1 -1
  565. package/lib/icons/WarningOutlined.d.ts +1 -1
  566. package/lib/icons/ZoomInOutlined.d.ts +1 -1
  567. package/lib/icons/ZoomOutOutlined.d.ts +1 -1
  568. package/lib/icons/index.cjs +2 -0
  569. package/lib/icons/index.d.ts +1 -0
  570. package/lib/style/nprogress.scss +1 -0
  571. package/lib/style/themes/dark.scss +9 -15
  572. package/lib/style/themes/default.scss +56 -80
  573. package/lib/style/themes/rounded.scss +16 -30
  574. package/lib/utils/menu-util.cjs +1 -4
  575. package/package.json +15 -15
@@ -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(
@@ -87,14 +87,14 @@ export declare const proTableProps: {
87
87
  exportConfig: PropType<ExportConfig>;
88
88
  /** 打印配置 */
89
89
  printConfig: PropType<PrintConfig>;
90
- width: (StringConstructor | NumberConstructor)[];
91
- height: (StringConstructor | NumberConstructor)[];
92
90
  size: {
93
- 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>>;
94
92
  readonly required: false;
95
93
  readonly validator: ((val: unknown) => boolean) | undefined;
96
94
  __epPropKey: true;
97
95
  };
96
+ width: (StringConstructor | NumberConstructor)[];
97
+ height: (StringConstructor | NumberConstructor)[];
98
98
  maxHeight: (StringConstructor | NumberConstructor)[];
99
99
  fit: {
100
100
  type: BooleanConstructor;
@@ -130,26 +130,26 @@ export declare const proTableProps: {
130
130
  };
131
131
  showSummary: BooleanConstructor;
132
132
  sumText: StringConstructor;
133
- summaryMethod: PropType<import('element-plus/es/components/table/src/table/defaults').SummaryMethod<any> | undefined>;
134
- rowClassName: PropType<import('element-plus/es/components/table/src/table/defaults').ColumnCls<any> | undefined>;
135
- rowStyle: PropType<import('element-plus/es/components/table/src/table/defaults').ColumnStyle<any> | undefined>;
136
- cellClassName: PropType<import('element-plus/es/components/table/src/table/defaults').CellCls<any> | undefined>;
137
- cellStyle: PropType<import('element-plus/es/components/table/src/table/defaults').CellStyle<any> | undefined>;
138
- headerRowClassName: PropType<import('element-plus/es/components/table/src/table/defaults').ColumnCls<any> | undefined>;
139
- headerRowStyle: PropType<import('element-plus/es/components/table/src/table/defaults').ColumnStyle<any> | undefined>;
140
- headerCellClassName: PropType<import('element-plus/es/components/table/src/table/defaults').CellCls<any> | undefined>;
141
- 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>;
142
142
  highlightCurrentRow: BooleanConstructor;
143
143
  currentRowKey: (StringConstructor | NumberConstructor)[];
144
144
  expandRowKeys: PropType<any[] | undefined>;
145
145
  defaultExpandAll: BooleanConstructor;
146
- defaultSort: PropType<import('element-plus/es/components/table/src/table/defaults').Sort | undefined>;
146
+ defaultSort: PropType<import('element-plus').Sort | undefined>;
147
147
  tooltipEffect: StringConstructor;
148
148
  tooltipOptions: PropType<Partial<Pick<import('element-plus').ElTooltipProps, "offset" | "effect" | "placement" | "popperOptions" | "popperClass" | "showArrow" | "appendTo" | "transition" | "enterable" | "showAfter" | "hideAfter">> | undefined>;
149
149
  spanMethod: PropType<((data: {
150
150
  row: any;
151
151
  rowIndex: number;
152
- column: import('element-plus/es/components/table/src/table-column/defaults').TableColumnCtx<any>;
152
+ column: import('element-plus').TableColumnCtx<any>;
153
153
  columnIndex: number;
154
154
  }) => number[] | {
155
155
  rowspan: number;
@@ -169,9 +169,9 @@ export declare const proTableProps: {
169
169
  children: string;
170
170
  };
171
171
  };
172
- 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>;
173
173
  tableLayout: {
174
- type: PropType<"auto" | "fixed">;
174
+ type: PropType<"fixed" | "auto">;
175
175
  default: string;
176
176
  };
177
177
  flexible: BooleanConstructor;
@@ -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
  /** 排序方式参数名称 */
@@ -1,4 +1,4 @@
1
- import { 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
2
  import { DataItem, Column, Columns, Sorter, Filter, TableSize, TreeProps, RowKey, SpanMethod, SummaryMethod } from '../ele-data-table/types';
3
3
  import { ElePaginationProps } from '../ele-app/plus';
4
4
 
@@ -27,7 +27,7 @@ export declare function getTableLimit(pagination: boolean | TablePagination | un
27
27
  * @param globalPagination 全局配置分页组件属性
28
28
  * @param pageProps 分页相关的属性
29
29
  */
30
- 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;
31
31
  /**
32
32
  * 判断是否开启自动修正页码
33
33
  * @param pagination 分页组件属性
@@ -75,6 +75,14 @@ export declare function getRequestOrders(sorter?: Sorter, request?: RequestOptio
75
75
  * @param filter 筛选条件
76
76
  */
77
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;
78
86
  /**
79
87
  * 获取数据源请求结果
80
88
  * @param data 数据源请求的原始数据
@@ -163,23 +171,11 @@ export declare function getSizeCacheKey(cacheKey: string): string;
163
171
  * @param cacheKey 缓存的名称
164
172
  */
165
173
  export declare function getCacheSize(cacheKey?: string): TableSize;
166
- /**
167
- * 获取默认 rowKey
168
- * @param rowKey 自定义 rowKey
169
- */
170
- export declare function getDefaultRowKey(rowKey?: RowKey): "_rowKey" | undefined;
171
174
  /**
172
175
  * 获取 rowKey
173
176
  * @param rowKey 自定义 rowKey
174
177
  */
175
- export declare function getRowKey(rowKey?: RowKey): string | ((row: DataItem) => string) | undefined;
176
- /**
177
- * 数据添加默认的 rowKey 字段
178
- * @param data 数据
179
- * @param rowKey 字段名
180
- * @param page 页码
181
- */
182
- export declare function addDefaultRowKey(data: DataItem[], rowKey: string | undefined, page: number): DataItem[];
178
+ export declare function getRowKey(rowKey?: RowKey): string | ((row: DataItem) => string);
183
179
  /**
184
180
  * 导出获取单元格文本
185
181
  * @param column 列配置
@@ -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) };
@@ -382,21 +394,13 @@ function getCacheSize(cacheKey) {
382
394
  }
383
395
  }
384
396
  }
385
- function getDefaultRowKey(rowKey) {
386
- return rowKey == null ? "_rowKey" : void 0;
387
- }
388
397
  function getRowKey(rowKey) {
389
- return rowKey ?? getDefaultRowKey();
390
- }
391
- function addDefaultRowKey(data, rowKey, page) {
392
- if (rowKey != null && typeof rowKey === "string" && rowKey) {
393
- data.forEach((d, i) => {
394
- if (d[rowKey] == null) {
395
- d[rowKey] = `${page}-${i}`;
396
- }
397
- });
398
+ if (rowKey != null) {
399
+ return rowKey;
398
400
  }
399
- return data;
401
+ return (row) => {
402
+ return JSON.stringify(row);
403
+ };
400
404
  }
401
405
  function getCellText(column, row, index, pageIndex) {
402
406
  if (!column) {
@@ -493,7 +497,6 @@ function columnsPrintFilter(item) {
493
497
  return !item.type || !["selection", "expand"].includes(item.type);
494
498
  }
495
499
  export {
496
- addDefaultRowKey,
497
500
  columnsExportFilter,
498
501
  columnsPrintFilter,
499
502
  exportCSV,
@@ -505,7 +508,6 @@ export {
505
508
  getColItems,
506
509
  getColsCacheKey,
507
510
  getDefaultFilter,
508
- getDefaultRowKey,
509
511
  getExportData,
510
512
  getHeaderCellText,
511
513
  getInitCacheColumns,
@@ -515,6 +517,7 @@ export {
515
517
  getRequestFilters,
516
518
  getRequestName,
517
519
  getRequestOrders,
520
+ getRequestPages,
518
521
  getResponseData,
519
522
  getResponseName,
520
523
  getResponseResult,
@@ -7,7 +7,7 @@ declare const _default: import('vue').DefineComponent<{
7
7
  default: number;
8
8
  };
9
9
  level: {
10
- type: import("vue").PropType<import("./types").Level>;
10
+ type: import('vue').PropType<import('./types').Level>;
11
11
  default: string;
12
12
  };
13
13
  bgColor: {
@@ -22,24 +22,24 @@ declare const _default: import('vue').DefineComponent<{
22
22
  type: NumberConstructor;
23
23
  default: number;
24
24
  };
25
- imageSettings: import("vue").PropType<import("./types").ImageSettings>;
26
- customStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
25
+ imageSettings: import('vue').PropType<import('./types').ImageSettings>;
26
+ customStyle: import('vue').PropType<Partial<import('vue').CSSProperties>>;
27
27
  }, {
28
- canvasRef: import("vue").Ref<HTMLCanvasElement | null>;
29
- imageRef: import("vue").Ref<HTMLImageElement | null>;
30
- imageSrc: import("vue").ComputedRef<string | undefined>;
31
- canvasStyle: import("vue").ComputedRef<StyleValues>;
28
+ canvasRef: import('vue').Ref<HTMLCanvasElement | null>;
29
+ imageRef: import('vue').Ref<HTMLImageElement | null>;
30
+ imageSrc: import('vue').ComputedRef<string | undefined>;
31
+ canvasStyle: import('vue').ComputedRef<StyleValues>;
32
32
  render: () => void;
33
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
33
+ }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
34
34
  done: () => boolean;
35
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
35
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
36
36
  value: StringConstructor;
37
37
  size: {
38
38
  type: NumberConstructor;
39
39
  default: number;
40
40
  };
41
41
  level: {
42
- type: import("vue").PropType<import("./types").Level>;
42
+ type: import('vue').PropType<import('./types').Level>;
43
43
  default: string;
44
44
  };
45
45
  bgColor: {
@@ -54,14 +54,14 @@ declare const _default: import('vue').DefineComponent<{
54
54
  type: NumberConstructor;
55
55
  default: number;
56
56
  };
57
- imageSettings: import("vue").PropType<import("./types").ImageSettings>;
58
- customStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
57
+ imageSettings: import('vue').PropType<import('./types').ImageSettings>;
58
+ customStyle: import('vue').PropType<Partial<import('vue').CSSProperties>>;
59
59
  }>> & {
60
60
  onDone?: (() => any) | undefined;
61
61
  }, {
62
62
  margin: number;
63
63
  size: number;
64
- level: import("./types").Level;
64
+ level: import('./types').Level;
65
65
  bgColor: string;
66
66
  fgColor: string;
67
67
  }, {}>;
@@ -5,7 +5,7 @@ declare const _default: import('vue').DefineComponent<{
5
5
  default: number;
6
6
  };
7
7
  level: {
8
- type: import("vue").PropType<import("../ele-qr-code/types").Level>;
8
+ type: import('vue').PropType<import('../ele-qr-code/types').Level>;
9
9
  default: string;
10
10
  };
11
11
  bgColor: {
@@ -20,28 +20,28 @@ declare const _default: import('vue').DefineComponent<{
20
20
  type: NumberConstructor;
21
21
  default: number;
22
22
  }; /** 前景路径 */
23
- imageSettings: import("vue").PropType<import("../ele-qr-code/types").ImageSettings>;
24
- customStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
23
+ imageSettings: import('vue').PropType<import('../ele-qr-code/types').ImageSettings>;
24
+ customStyle: import('vue').PropType<Partial<import('vue').CSSProperties>>;
25
25
  }, {
26
- viewBox: import("vue").Ref<string>;
27
- path: import("vue").Ref<string>;
28
- fgPath: import("vue").Ref<string>;
29
- imageHeight: import("vue").Ref<number>;
30
- imageWidth: import("vue").Ref<number>;
31
- imageX: import("vue").Ref<number>;
32
- imageY: import("vue").Ref<number>;
33
- imageSrc: import("vue").ComputedRef<string | undefined>;
26
+ viewBox: import('vue').Ref<string>;
27
+ path: import('vue').Ref<string>;
28
+ fgPath: import('vue').Ref<string>;
29
+ imageHeight: import('vue').Ref<number>;
30
+ imageWidth: import('vue').Ref<number>;
31
+ imageX: import('vue').Ref<number>;
32
+ imageY: import('vue').Ref<number>;
33
+ imageSrc: import('vue').ComputedRef<string | undefined>;
34
34
  render: () => void;
35
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
35
+ }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
36
36
  done: () => boolean;
37
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
37
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
38
38
  value: StringConstructor;
39
39
  size: {
40
40
  type: NumberConstructor;
41
41
  default: number;
42
42
  };
43
43
  level: {
44
- type: import("vue").PropType<import("../ele-qr-code/types").Level>;
44
+ type: import('vue').PropType<import('../ele-qr-code/types').Level>;
45
45
  default: string;
46
46
  };
47
47
  bgColor: {
@@ -56,14 +56,14 @@ declare const _default: import('vue').DefineComponent<{
56
56
  type: NumberConstructor;
57
57
  default: number;
58
58
  }; /** 前景路径 */
59
- imageSettings: import("vue").PropType<import("../ele-qr-code/types").ImageSettings>;
60
- customStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
59
+ imageSettings: import('vue').PropType<import('../ele-qr-code/types').ImageSettings>;
60
+ customStyle: import('vue').PropType<Partial<import('vue').CSSProperties>>;
61
61
  }>> & {
62
62
  onDone?: (() => any) | undefined;
63
63
  }, {
64
64
  margin: number;
65
65
  size: number;
66
- level: import("../ele-qr-code/types").Level;
66
+ level: import('../ele-qr-code/types').Level;
67
67
  bgColor: string;
68
68
  fgColor: string;
69
69
  }, {}>;
@@ -5,25 +5,25 @@ declare const _default: import('vue').DefineComponent<{
5
5
  block: BooleanConstructor;
6
6
  disabled: BooleanConstructor;
7
7
  items: {
8
- type: import("vue").PropType<import("./types").SegmentedItem[]>;
8
+ type: import('vue').PropType<import('./types').SegmentedItem[]>;
9
9
  required: boolean;
10
10
  };
11
- size: import("vue").PropType<import("./types").SegmentedSize>;
11
+ size: import('vue').PropType<import('./types').SegmentedSize>;
12
12
  }, {
13
- tabRef: import("vue").Ref<ElTabsInstance>;
13
+ tabRef: import('vue').Ref<ElTabsInstance>;
14
14
  onUpdateModelValue: (value: string | number) => void;
15
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
15
+ }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
16
16
  'update:modelValue': (_value: string | number) => boolean;
17
17
  change: (_active: string | number) => boolean;
18
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
18
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
19
19
  modelValue: (StringConstructor | NumberConstructor)[];
20
20
  block: BooleanConstructor;
21
21
  disabled: BooleanConstructor;
22
22
  items: {
23
- type: import("vue").PropType<import("./types").SegmentedItem[]>;
23
+ type: import('vue').PropType<import('./types').SegmentedItem[]>;
24
24
  required: boolean;
25
25
  };
26
- size: import("vue").PropType<import("./types").SegmentedSize>;
26
+ size: import('vue').PropType<import('./types').SegmentedSize>;
27
27
  }>> & {
28
28
  onChange?: ((_active: string | number) => any) | undefined;
29
29
  "onUpdate:modelValue"?: ((_value: string | number) => any) | undefined;
@@ -5,10 +5,10 @@ declare const _default: import('vue').DefineComponent<{
5
5
  minSize: NumberConstructor;
6
6
  maxSize: NumberConstructor;
7
7
  space: StringConstructor;
8
- customStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
9
- bodyStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
8
+ customStyle: import('vue').PropType<Partial<import('vue').CSSProperties>>;
9
+ bodyStyle: import('vue').PropType<Partial<import('vue').CSSProperties>>;
10
10
  allowCollapse: BooleanConstructor;
11
- collapseStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
11
+ collapseStyle: import('vue').PropType<Partial<import('vue').CSSProperties>>;
12
12
  collapse: BooleanConstructor;
13
13
  vertical: BooleanConstructor;
14
14
  reverse: BooleanConstructor;
@@ -19,27 +19,27 @@ declare const _default: import('vue').DefineComponent<{
19
19
  default: null;
20
20
  };
21
21
  }, {
22
- rootRef: import("vue").Ref<ReceiverViewInstance>;
23
- wrapRef: import("vue").Ref<HTMLElement | null>;
24
- sideRef: import("vue").Ref<HTMLElement | null>;
25
- isResponsive: import("vue").ComputedRef<boolean>;
26
- isCollapse: import("vue").Ref<boolean>;
27
- resizedSize: import("vue").Ref<string | null>;
28
- resizing: import("vue").Ref<boolean>;
22
+ rootRef: import('vue').Ref<ReceiverViewInstance>;
23
+ wrapRef: import('vue').Ref<HTMLElement | null>;
24
+ sideRef: import('vue').Ref<HTMLElement | null>;
25
+ isResponsive: import('vue').ComputedRef<boolean>;
26
+ isCollapse: import('vue').Ref<boolean>;
27
+ resizedSize: import('vue').Ref<string | null>;
28
+ resizing: import('vue').Ref<boolean>;
29
29
  toggleCollapse: (collapse?: boolean) => void;
30
30
  resetSize: () => void;
31
31
  onResize: (event: MouseEvent) => void;
32
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
32
+ }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
33
33
  'update:collapse': (_collapse: boolean) => boolean;
34
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
34
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
35
35
  size: StringConstructor;
36
36
  minSize: NumberConstructor;
37
37
  maxSize: NumberConstructor;
38
38
  space: StringConstructor;
39
- customStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
40
- bodyStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
39
+ customStyle: import('vue').PropType<Partial<import('vue').CSSProperties>>;
40
+ bodyStyle: import('vue').PropType<Partial<import('vue').CSSProperties>>;
41
41
  allowCollapse: BooleanConstructor;
42
- collapseStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
42
+ collapseStyle: import('vue').PropType<Partial<import('vue').CSSProperties>>;
43
43
  collapse: BooleanConstructor;
44
44
  vertical: BooleanConstructor;
45
45
  reverse: BooleanConstructor;