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

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 (803) hide show
  1. package/es/core-installer.d.ts +2 -2
  2. package/es/ele-alert/index.d.ts +1 -1
  3. package/es/ele-alert/index.js +2 -4
  4. package/es/ele-alert/props.d.ts +10 -9
  5. package/es/ele-app/el.d.ts +18 -1
  6. package/es/ele-app/index.d.ts +1 -1
  7. package/es/ele-app/plus.d.ts +12 -0
  8. package/es/ele-app/style/overwrite/date-picker/index.scss +32 -5
  9. package/es/ele-app/style/overwrite/message-box/index.scss +5 -0
  10. package/es/ele-avatar-group/index.d.ts +4 -3
  11. package/es/ele-avatar-group/index.js +1 -3
  12. package/es/ele-avatar-group/props.d.ts +10 -9
  13. package/es/ele-bar-code/index.d.ts +5 -4
  14. package/es/ele-bar-code/props.d.ts +4 -3
  15. package/es/ele-basic-select/index.d.ts +16 -14
  16. package/es/ele-basic-select/index.js +33 -18
  17. package/es/ele-basic-select/props.d.ts +9 -8
  18. package/es/ele-basic-select/util.d.ts +2 -1
  19. package/es/ele-bottom-bar/index.d.ts +1 -1
  20. package/es/ele-bottom-bar/props.d.ts +4 -3
  21. package/es/ele-breadcrumb/index.d.ts +3 -2
  22. package/es/ele-breadcrumb/props.d.ts +5 -4
  23. package/es/ele-card/index.d.ts +1 -1
  24. package/es/ele-card/props.d.ts +7 -6
  25. package/es/ele-check-card/components/card-item.d.ts +4 -3
  26. package/es/ele-check-card/index.d.ts +6 -5
  27. package/es/ele-check-card/index.js +0 -5
  28. package/es/ele-check-card/props.d.ts +6 -5
  29. package/es/ele-config-provider/components/receiver-view.d.ts +17 -0
  30. package/es/ele-config-provider/components/receiver-view.js +134 -0
  31. package/es/ele-config-provider/index.d.ts +3 -3
  32. package/es/ele-config-provider/props.d.ts +6 -5
  33. package/es/ele-config-provider/props.js +2 -2
  34. package/es/ele-config-provider/receiver.d.ts +5 -9
  35. package/es/ele-config-provider/receiver.js +35 -116
  36. package/es/ele-config-provider/types.d.ts +3 -11
  37. package/es/ele-copyable/index.d.ts +8 -9
  38. package/es/ele-copyable/index.js +1 -5
  39. package/es/ele-copyable/props.d.ts +9 -8
  40. package/es/ele-count-up/index.d.ts +2 -1
  41. package/es/ele-count-up/props.d.ts +3 -2
  42. package/es/ele-cropper/components/cropper-preview.d.ts +1 -1
  43. package/es/ele-cropper/components/cropper-tools.d.ts +4 -3
  44. package/es/ele-cropper/index.d.ts +11 -10
  45. package/es/ele-cropper/index.js +1 -5
  46. package/es/ele-cropper/props.d.ts +4 -3
  47. package/es/ele-cropper-modal/index.d.ts +3 -2
  48. package/es/ele-cropper-modal/props.d.ts +7 -6
  49. package/es/ele-dashboard/index.d.ts +1 -2
  50. package/es/ele-dashboard/index.js +8 -17
  51. package/es/ele-dashboard/props.d.ts +3 -2
  52. package/es/ele-data-table/index.d.ts +10 -15
  53. package/es/ele-data-table/index.js +9 -1
  54. package/es/ele-data-table/props.d.ts +38 -43
  55. package/es/ele-data-table/style/index.scss +4 -0
  56. package/es/ele-data-table/types.d.ts +18 -16
  57. package/es/ele-data-table/util.d.ts +15 -9
  58. package/es/ele-data-table/util.js +14 -0
  59. package/es/ele-dot/index.d.ts +3 -5
  60. package/es/ele-dot/index.js +4 -10
  61. package/es/ele-dot/props.d.ts +3 -2
  62. package/es/ele-drawer/index.d.ts +10 -9
  63. package/es/ele-drawer/index.js +14 -11
  64. package/es/ele-drawer/props.d.ts +26 -25
  65. package/es/ele-drawer/style/index.scss +1 -1
  66. package/es/ele-dropdown/index.d.ts +6 -5
  67. package/es/ele-dropdown/index.js +7 -10
  68. package/es/ele-dropdown/props.d.ts +22 -21
  69. package/es/ele-dropdown/style/index.scss +2 -2
  70. package/es/ele-edit-tag/index.d.ts +9 -2
  71. package/es/ele-edit-tag/index.js +17 -15
  72. package/es/ele-edit-tag/props.d.ts +14 -9
  73. package/es/ele-edit-tag/props.js +5 -1
  74. package/es/ele-edit-tag/style/index.scss +13 -0
  75. package/es/ele-ellipsis/index.d.ts +7 -6
  76. package/es/ele-ellipsis/index.js +4 -27
  77. package/es/ele-ellipsis/props.d.ts +8 -7
  78. package/es/ele-file-list/components/file-grid-item.d.ts +6 -5
  79. package/es/ele-file-list/components/file-grid-item.js +16 -9
  80. package/es/ele-file-list/components/file-grid.d.ts +6 -5
  81. package/es/ele-file-list/components/file-grid.js +54 -50
  82. package/es/ele-file-list/components/file-sort.d.ts +1 -1
  83. package/es/ele-file-list/components/file-table-item.d.ts +6 -5
  84. package/es/ele-file-list/components/file-table-item.js +20 -15
  85. package/es/ele-file-list/components/file-table.d.ts +6 -5
  86. package/es/ele-file-list/components/file-table.js +92 -86
  87. package/es/ele-file-list/icons.d.ts +2 -1
  88. package/es/ele-file-list/index.d.ts +8 -7
  89. package/es/ele-file-list/index.js +1 -11
  90. package/es/ele-file-list/props.d.ts +6 -5
  91. package/es/ele-file-list-tool/index.d.ts +4 -4
  92. package/es/ele-file-list-tool/index.js +2 -2
  93. package/es/ele-icon-select/components/icon-grid.d.ts +4 -3
  94. package/es/ele-icon-select/index.d.ts +27 -14
  95. package/es/ele-icon-select/index.js +33 -10
  96. package/es/ele-icon-select/props.d.ts +23 -17
  97. package/es/ele-icon-select/props.js +6 -1
  98. package/es/ele-icon-select/style/index.js +1 -0
  99. package/es/ele-icon-select/style/index.scss +16 -2
  100. package/es/ele-loading/index.d.ts +3 -4
  101. package/es/ele-loading/index.js +32 -30
  102. package/es/ele-loading/props.d.ts +5 -4
  103. package/es/ele-map-picker/components/map-view.d.ts +51 -27
  104. package/es/ele-map-picker/components/map-view.js +227 -176
  105. package/es/ele-map-picker/index.d.ts +45 -22
  106. package/es/ele-map-picker/index.js +21 -39
  107. package/es/ele-map-picker/props.d.ts +37 -12
  108. package/es/ele-map-picker/props.js +20 -6
  109. package/es/ele-map-picker/style/index.scss +195 -166
  110. package/es/ele-map-picker/types.d.ts +8 -4
  111. package/es/ele-menus/index.d.ts +21 -7
  112. package/es/ele-menus/index.js +78 -14
  113. package/es/ele-menus/props.d.ts +29 -16
  114. package/es/ele-menus/props.js +15 -3
  115. package/es/ele-menus/style/index.js +2 -0
  116. package/es/ele-menus/style/index.scss +13 -11
  117. package/es/ele-menus/types.d.ts +9 -9
  118. package/es/ele-menus/util.d.ts +35 -16
  119. package/es/ele-menus/util.js +115 -80
  120. package/es/ele-modal/index.d.ts +7 -6
  121. package/es/ele-modal/index.js +42 -13
  122. package/es/ele-modal/props.d.ts +24 -23
  123. package/es/ele-modal/style/index.scss +49 -13
  124. package/es/ele-modal/types.d.ts +2 -10
  125. package/es/ele-modal/util.d.ts +5 -4
  126. package/es/ele-modal/util.js +22 -57
  127. package/es/ele-page/index.d.ts +1 -1
  128. package/es/ele-page/props.d.ts +2 -1
  129. package/es/ele-pagination/index.d.ts +11 -9
  130. package/es/ele-pagination/index.js +19 -13
  131. package/es/ele-pagination/props.d.ts +14 -12
  132. package/es/ele-pagination/props.js +2 -0
  133. package/es/ele-pagination/style/index.scss +9 -0
  134. package/es/ele-pagination/types.d.ts +6 -1
  135. package/es/ele-popconfirm/index.d.ts +7 -6
  136. package/es/ele-popconfirm/props.d.ts +32 -31
  137. package/es/ele-popconfirm/style/index.js +1 -1
  138. package/es/ele-popover/index.d.ts +5 -4
  139. package/es/ele-popover/props.d.ts +26 -25
  140. package/es/ele-popover/style/index.js +0 -1
  141. package/es/ele-printer/index.d.ts +7 -7
  142. package/es/ele-printer/index.js +11 -11
  143. package/es/ele-printer/props.d.ts +6 -5
  144. package/es/ele-printer/style/index.scss +1 -1
  145. package/es/ele-printer/util.d.ts +2 -1
  146. package/es/ele-printer/util.js +4 -2
  147. package/es/ele-pro-layout/components/header-tool.d.ts +1 -1
  148. package/es/ele-pro-layout/components/pro-header.d.ts +37 -15
  149. package/es/ele-pro-layout/components/pro-header.js +75 -16
  150. package/es/ele-pro-layout/components/pro-iframe.d.ts +4 -3
  151. package/es/ele-pro-layout/components/pro-iframe.js +46 -23
  152. package/es/ele-pro-layout/components/pro-sidebar.d.ts +35 -19
  153. package/es/ele-pro-layout/components/pro-sidebar.js +44 -16
  154. package/es/ele-pro-layout/components/pro-sidebox.d.ts +37 -15
  155. package/es/ele-pro-layout/components/pro-sidebox.js +55 -15
  156. package/es/ele-pro-layout/components/pro-tabs.d.ts +6 -5
  157. package/es/ele-pro-layout/components/sidebar-tool.d.ts +1 -1
  158. package/es/ele-pro-layout/components/tab-dropdown.d.ts +5 -4
  159. package/es/ele-pro-layout/components/tab-dropdown.js +5 -1
  160. package/es/ele-pro-layout/index.d.ts +44 -27
  161. package/es/ele-pro-layout/index.js +282 -66
  162. package/es/ele-pro-layout/props.d.ts +18 -8
  163. package/es/ele-pro-layout/props.js +9 -0
  164. package/es/ele-pro-layout/style/tabs.scss +1 -1
  165. package/es/ele-pro-layout/types.d.ts +29 -3
  166. package/es/ele-pro-layout/util.d.ts +5 -4
  167. package/es/ele-pro-table/components/table-tools.d.ts +102 -10
  168. package/es/ele-pro-table/components/table-tools.js +125 -8
  169. package/es/ele-pro-table/components/tool-column-list.d.ts +4 -3
  170. package/es/ele-pro-table/components/tool-column-list.js +4 -7
  171. package/es/ele-pro-table/components/tool-column.d.ts +5 -4
  172. package/es/ele-pro-table/components/tool-column.js +9 -9
  173. package/es/ele-pro-table/components/tool-export.d.ts +456 -0
  174. package/es/ele-pro-table/components/tool-export.js +449 -0
  175. package/es/ele-pro-table/components/tool-print-body-cell.d.ts +35 -0
  176. package/es/ele-pro-table/components/tool-print-body-cell.js +88 -0
  177. package/es/ele-pro-table/components/tool-print-header-cell.d.ts +35 -0
  178. package/es/ele-pro-table/components/tool-print-header-cell.js +88 -0
  179. package/es/ele-pro-table/components/tool-print.d.ts +895 -0
  180. package/es/ele-pro-table/components/tool-print.js +558 -0
  181. package/es/ele-pro-table/index.d.ts +37 -29
  182. package/es/ele-pro-table/index.js +89 -18
  183. package/es/ele-pro-table/props.d.ts +52 -48
  184. package/es/ele-pro-table/props.js +6 -2
  185. package/es/ele-pro-table/style/index.js +9 -0
  186. package/es/ele-pro-table/style/index.scss +33 -5
  187. package/es/ele-pro-table/types.d.ts +149 -5
  188. package/es/ele-pro-table/util.d.ts +57 -5
  189. package/es/ele-pro-table/util.js +146 -22
  190. package/es/ele-qr-code/index.d.ts +3 -2
  191. package/es/ele-qr-code/props.d.ts +4 -3
  192. package/es/ele-qr-code/util.d.ts +3 -2
  193. package/es/ele-qr-code-svg/index.d.ts +1 -1
  194. package/es/ele-segmented/index.d.ts +4 -3
  195. package/es/ele-segmented/index.js +1 -3
  196. package/es/ele-segmented/props.d.ts +3 -2
  197. package/es/ele-split-panel/index.d.ts +11 -9
  198. package/es/ele-split-panel/index.js +63 -59
  199. package/es/ele-split-panel/props.d.ts +5 -4
  200. package/es/ele-steps/index.d.ts +1 -2
  201. package/es/ele-steps/index.js +2 -4
  202. package/es/ele-steps/props.d.ts +10 -9
  203. package/es/ele-tab-tool/index.d.ts +1 -1
  204. package/es/ele-tab-tool/props.d.ts +2 -1
  205. package/es/ele-tab-wrap/index.d.ts +1 -1
  206. package/es/ele-tab-wrap/props.d.ts +3 -2
  207. package/es/ele-table/index.d.ts +4 -1
  208. package/es/ele-table/index.js +2 -1
  209. package/es/ele-table/props.d.ts +4 -1
  210. package/es/ele-table/props.js +3 -1
  211. package/es/ele-table/style/index.scss +35 -0
  212. package/es/ele-table-select/index.d.ts +13 -12
  213. package/es/ele-table-select/props.d.ts +11 -10
  214. package/es/ele-tabs/components/tab-title.d.ts +6 -5
  215. package/es/ele-tabs/index.d.ts +13 -23
  216. package/es/ele-tabs/index.js +1 -6
  217. package/es/ele-tabs/props.d.ts +15 -21
  218. package/es/ele-text/index.d.ts +1 -1
  219. package/es/ele-text/props.d.ts +5 -4
  220. package/es/ele-tool/index.d.ts +2 -2
  221. package/es/ele-tool/index.js +2 -4
  222. package/es/ele-tool/props.d.ts +10 -2
  223. package/es/ele-tool/props.js +5 -0
  224. package/es/ele-toolbar/index.d.ts +1 -1
  225. package/es/ele-toolbar/props.d.ts +7 -6
  226. package/es/ele-tooltip/index.d.ts +4 -3
  227. package/es/ele-tooltip/index.js +9 -13
  228. package/es/ele-tooltip/props.d.ts +23 -22
  229. package/es/ele-tooltip/style/css-var.scss +4 -0
  230. package/es/ele-tooltip/style/index.scss +23 -0
  231. package/es/ele-tour/index.d.ts +5 -4
  232. package/es/ele-tour/index.js +80 -77
  233. package/es/ele-tour/props.d.ts +3 -2
  234. package/es/ele-tour/util.d.ts +3 -2
  235. package/es/ele-tree-select/index.d.ts +10 -9
  236. package/es/ele-tree-select/props.d.ts +12 -11
  237. package/es/ele-tree-select/util.d.ts +3 -2
  238. package/es/ele-upload-list/components/list-item.d.ts +10 -5
  239. package/es/ele-upload-list/components/list-item.js +7 -4
  240. package/es/ele-upload-list/index.d.ts +12 -5
  241. package/es/ele-upload-list/index.js +9 -8
  242. package/es/ele-upload-list/props.d.ts +11 -6
  243. package/es/ele-upload-list/props.js +5 -1
  244. package/es/ele-upload-list/style/index.scss +2 -1
  245. package/es/ele-virtual-table/components/body-cell.d.ts +85 -50
  246. package/es/ele-virtual-table/components/body-cell.js +79 -112
  247. package/es/ele-virtual-table/components/body-row.d.ts +72 -48
  248. package/es/ele-virtual-table/components/body-row.js +57 -52
  249. package/es/ele-virtual-table/components/cell-checkbox.d.ts +3 -2
  250. package/es/ele-virtual-table/components/cell-filter.d.ts +9 -8
  251. package/es/ele-virtual-table/components/cell-filter.js +8 -12
  252. package/es/ele-virtual-table/components/expand-row.d.ts +10 -9
  253. package/es/ele-virtual-table/components/expand-row.js +3 -3
  254. package/es/ele-virtual-table/components/footer-row.d.ts +33 -14
  255. package/es/ele-virtual-table/components/footer-row.js +29 -19
  256. package/es/ele-virtual-table/components/header-cell.d.ts +5 -4
  257. package/es/ele-virtual-table/components/header-row.d.ts +5 -4
  258. package/es/ele-virtual-table/index.d.ts +23 -32
  259. package/es/ele-virtual-table/index.js +134 -136
  260. package/es/ele-virtual-table/props.d.ts +50 -52
  261. package/es/ele-virtual-table/types.d.ts +103 -69
  262. package/es/ele-virtual-table/util.d.ts +35 -10
  263. package/es/ele-virtual-table/util.js +66 -35
  264. package/es/ele-watermark/index.d.ts +12 -2
  265. package/es/ele-watermark/index.js +1 -1
  266. package/es/ele-watermark/props.d.ts +9 -3
  267. package/es/ele-watermark/props.js +5 -0
  268. package/es/ele-watermark/util.d.ts +3 -2
  269. package/es/ele-xg-player/index.d.ts +4 -4
  270. package/es/icons/AnalysisOutlined.d.ts +1 -1
  271. package/es/icons/ApplicationOutlined.d.ts +1 -1
  272. package/es/icons/AppstoreAddOutlined.d.ts +1 -1
  273. package/es/icons/AppstoreOutlined.d.ts +1 -1
  274. package/es/icons/ArrowDown.d.ts +1 -1
  275. package/es/icons/ArrowDownOutlined.d.ts +1 -1
  276. package/es/icons/ArrowLeft.d.ts +1 -1
  277. package/es/icons/ArrowLeftOutlined.d.ts +1 -1
  278. package/es/icons/ArrowRight.d.ts +1 -1
  279. package/es/icons/ArrowRightOutlined.d.ts +1 -1
  280. package/es/icons/ArrowUp.d.ts +1 -1
  281. package/es/icons/ArrowUpOutlined.d.ts +1 -1
  282. package/es/icons/BellOutlined.d.ts +1 -1
  283. package/es/icons/BookOutlined.d.ts +1 -1
  284. package/es/icons/CalendarOutlined.d.ts +1 -1
  285. package/es/icons/CaretDownFilled.d.ts +1 -1
  286. package/es/icons/CaretUpFilled.d.ts +1 -1
  287. package/es/icons/CheckCircleFilled.d.ts +1 -1
  288. package/es/icons/CheckCircleOutlined.d.ts +1 -1
  289. package/es/icons/CheckOutlined.d.ts +1 -1
  290. package/es/icons/CityOutlined.d.ts +1 -1
  291. package/es/icons/ClockCircleOutlined.d.ts +1 -1
  292. package/es/icons/CloseCircleFilled.d.ts +1 -1
  293. package/es/icons/CloseCircleOutlined.d.ts +1 -1
  294. package/es/icons/CloseOutlined.d.ts +1 -1
  295. package/es/icons/CloudUploadOutlined.d.ts +1 -1
  296. package/es/icons/ClusterOutlined.d.ts +1 -1
  297. package/es/icons/CodeOutlined.d.ts +1 -1
  298. package/es/icons/ColumnHeightOutlined.d.ts +1 -1
  299. package/es/icons/CompassOutlined.d.ts +1 -1
  300. package/es/icons/CompressOutlined.d.ts +1 -1
  301. package/es/icons/ConnectionOutlined.d.ts +1 -1
  302. package/es/icons/ControlOutlined.d.ts +1 -1
  303. package/es/icons/CopyOutlined.d.ts +1 -1
  304. package/es/icons/CpuOutlined.d.ts +1 -1
  305. package/es/icons/DashboardOutlined.d.ts +1 -1
  306. package/es/icons/DatabaseOutlined.d.ts +1 -1
  307. package/es/icons/DeleteOutlined.d.ts +1 -1
  308. package/es/icons/DesktopOutlined.d.ts +1 -1
  309. package/es/icons/DownloadOutlined.d.ts +1 -1
  310. package/es/icons/DragOutlined.d.ts +1 -1
  311. package/es/icons/EditOutlined.d.ts +1 -1
  312. package/es/icons/EllipsisOutlined.d.ts +1 -1
  313. package/es/icons/EnvironmentOutlined.d.ts +1 -1
  314. package/es/icons/ExclamationCircleFilled.d.ts +1 -1
  315. package/es/icons/ExpandOutlined.d.ts +1 -1
  316. package/es/icons/FileOutlined.d.ts +1 -1
  317. package/es/icons/FilterFilled.d.ts +1 -1
  318. package/es/icons/FolderAddOutlined.d.ts +1 -1
  319. package/es/icons/FolderOutlined.d.ts +1 -1
  320. package/es/icons/FormOutlined.d.ts +1 -1
  321. package/es/icons/FullscreenExitOutlined.d.ts +1 -1
  322. package/es/icons/FullscreenOutlined.d.ts +1 -1
  323. package/es/icons/FundOutlined.d.ts +1 -1
  324. package/es/icons/GlobalOutlined.d.ts +1 -1
  325. package/es/icons/HolderOutlined.d.ts +1 -1
  326. package/es/icons/HomeOutlined.d.ts +1 -1
  327. package/es/icons/IdcardOutlined.d.ts +1 -1
  328. package/es/icons/InfoCircleFilled.d.ts +1 -1
  329. package/es/icons/LinkOutlined.d.ts +1 -1
  330. package/es/icons/LoadingDotOutlined.d.ts +1 -1
  331. package/es/icons/LoadingOutlined.d.ts +1 -1
  332. package/es/icons/LockOutlined.d.ts +1 -1
  333. package/es/icons/LogOutlined.d.ts +1 -1
  334. package/es/icons/LogoutOutlined.d.ts +1 -1
  335. package/es/icons/MailOutlined.d.ts +1 -1
  336. package/es/icons/MenuFoldOutlined.d.ts +1 -1
  337. package/es/icons/MenuUnfoldOutlined.d.ts +1 -1
  338. package/es/icons/MessageOutlined.d.ts +1 -1
  339. package/es/icons/MinusCircleOutlined.d.ts +1 -1
  340. package/es/icons/MobileOutlined.d.ts +1 -1
  341. package/es/icons/MoonOutlined.d.ts +1 -1
  342. package/es/icons/MoreOutlined.d.ts +1 -1
  343. package/es/icons/PauseFilled.d.ts +1 -1
  344. package/es/icons/PieChartOutlined.d.ts +1 -1
  345. package/es/icons/PlayFilled.d.ts +1 -1
  346. package/es/icons/PlusCircleOutlined.d.ts +1 -1
  347. package/es/icons/PlusOutlined.d.ts +1 -1
  348. package/es/icons/PrinterOutlined.d.ts +2 -0
  349. package/es/icons/PrinterOutlined.js +29 -0
  350. package/es/icons/ProtectOutlined.d.ts +1 -1
  351. package/es/icons/QuestionCircleFilled.d.ts +1 -1
  352. package/es/icons/QuestionCircleOutlined.d.ts +1 -1
  353. package/es/icons/ReloadOutlined.d.ts +1 -1
  354. package/es/icons/SearchOutlined.d.ts +1 -1
  355. package/es/icons/SettingOutlined.d.ts +1 -1
  356. package/es/icons/ShoppingOutlined.d.ts +1 -1
  357. package/es/icons/SortOutlined.d.ts +1 -1
  358. package/es/icons/StarFilled.d.ts +1 -1
  359. package/es/icons/StepBackwardFilled.d.ts +1 -1
  360. package/es/icons/StepForwardFilled.d.ts +1 -1
  361. package/es/icons/SuitcaseOutlined.d.ts +1 -1
  362. package/es/icons/SunOutlined.d.ts +1 -1
  363. package/es/icons/SwapOutlined.d.ts +1 -1
  364. package/es/icons/SyncOutlined.d.ts +1 -1
  365. package/es/icons/TableOutlined.d.ts +1 -1
  366. package/es/icons/TagOutlined.d.ts +1 -1
  367. package/es/icons/TimerOutlined.d.ts +1 -1
  368. package/es/icons/UndoOutlined.d.ts +1 -1
  369. package/es/icons/UnlockOutlined.d.ts +1 -1
  370. package/es/icons/UploadOutlined.d.ts +1 -1
  371. package/es/icons/UserOutlined.d.ts +1 -1
  372. package/es/icons/VerticalAlignMiddleOutlined.d.ts +1 -1
  373. package/es/icons/VerticalLeftOutlined.d.ts +1 -1
  374. package/es/icons/VerticalLeftOutlined.js +2 -2
  375. package/es/icons/VerticalRightOutlined.d.ts +1 -1
  376. package/es/icons/VerticalRightOutlined.js +2 -2
  377. package/es/icons/WarningOutlined.d.ts +1 -1
  378. package/es/icons/ZoomInOutlined.d.ts +1 -1
  379. package/es/icons/ZoomOutOutlined.d.ts +1 -1
  380. package/es/icons/index.d.ts +1 -0
  381. package/es/icons/index.js +58 -56
  382. package/es/installer.d.ts +2 -2
  383. package/es/lang/en_US.d.ts +2 -2
  384. package/es/lang/en_US.js +15 -3
  385. package/es/lang/zh_CN.d.ts +2 -2
  386. package/es/lang/zh_CN.js +15 -3
  387. package/es/lang/zh_TW.d.ts +2 -2
  388. package/es/lang/zh_TW.js +14 -2
  389. package/es/style/index.scss +1 -43
  390. package/es/style/plus.scss +43 -0
  391. package/es/style/themes/default.scss +8 -4
  392. package/es/style/themes/rounded.scss +1 -1
  393. package/es/style/themes/theme-util.scss +0 -2
  394. package/es/utils/core.d.ts +5 -0
  395. package/es/utils/core.js +28 -0
  396. package/es/utils/menu-util.d.ts +3 -2
  397. package/es/utils/message.d.ts +4 -3
  398. package/es/utils/resolvers.d.ts +4 -4
  399. package/es/utils/resolvers.js +33 -20
  400. package/lib/core-installer.d.ts +2 -2
  401. package/lib/ele-alert/index.cjs +2 -4
  402. package/lib/ele-alert/index.d.ts +1 -1
  403. package/lib/ele-alert/props.d.ts +10 -9
  404. package/lib/ele-app/el.d.ts +18 -1
  405. package/lib/ele-app/index.d.ts +1 -1
  406. package/lib/ele-app/plus.d.ts +12 -0
  407. package/lib/ele-app/style/overwrite/date-picker/index.scss +32 -5
  408. package/lib/ele-app/style/overwrite/message-box/index.scss +5 -0
  409. package/lib/ele-avatar-group/index.cjs +1 -3
  410. package/lib/ele-avatar-group/index.d.ts +4 -3
  411. package/lib/ele-avatar-group/props.d.ts +10 -9
  412. package/lib/ele-bar-code/index.d.ts +5 -4
  413. package/lib/ele-bar-code/props.d.ts +4 -3
  414. package/lib/ele-basic-select/index.cjs +32 -17
  415. package/lib/ele-basic-select/index.d.ts +16 -14
  416. package/lib/ele-basic-select/props.d.ts +9 -8
  417. package/lib/ele-basic-select/util.d.ts +2 -1
  418. package/lib/ele-bottom-bar/index.d.ts +1 -1
  419. package/lib/ele-bottom-bar/props.d.ts +4 -3
  420. package/lib/ele-breadcrumb/index.d.ts +3 -2
  421. package/lib/ele-breadcrumb/props.d.ts +5 -4
  422. package/lib/ele-card/index.d.ts +1 -1
  423. package/lib/ele-card/props.d.ts +7 -6
  424. package/lib/ele-check-card/components/card-item.d.ts +4 -3
  425. package/lib/ele-check-card/index.cjs +0 -5
  426. package/lib/ele-check-card/index.d.ts +6 -5
  427. package/lib/ele-check-card/props.d.ts +6 -5
  428. package/lib/ele-config-provider/components/receiver-view.cjs +2 -0
  429. package/lib/ele-config-provider/components/receiver-view.d.ts +17 -0
  430. package/lib/ele-config-provider/index.d.ts +3 -3
  431. package/lib/ele-config-provider/props.cjs +2 -2
  432. package/lib/ele-config-provider/props.d.ts +6 -5
  433. package/lib/ele-config-provider/receiver.cjs +45 -2
  434. package/lib/ele-config-provider/receiver.d.ts +5 -9
  435. package/lib/ele-config-provider/types.d.ts +3 -11
  436. package/lib/ele-copyable/index.cjs +0 -4
  437. package/lib/ele-copyable/index.d.ts +8 -9
  438. package/lib/ele-copyable/props.d.ts +9 -8
  439. package/lib/ele-count-up/index.d.ts +2 -1
  440. package/lib/ele-count-up/props.d.ts +3 -2
  441. package/lib/ele-cropper/components/cropper-preview.d.ts +1 -1
  442. package/lib/ele-cropper/components/cropper-tools.d.ts +4 -3
  443. package/lib/ele-cropper/index.cjs +0 -4
  444. package/lib/ele-cropper/index.d.ts +11 -10
  445. package/lib/ele-cropper/props.d.ts +4 -3
  446. package/lib/ele-cropper-modal/index.d.ts +3 -2
  447. package/lib/ele-cropper-modal/props.d.ts +7 -6
  448. package/lib/ele-dashboard/index.cjs +7 -16
  449. package/lib/ele-dashboard/index.d.ts +1 -2
  450. package/lib/ele-dashboard/props.d.ts +3 -2
  451. package/lib/ele-data-table/index.cjs +9 -1
  452. package/lib/ele-data-table/index.d.ts +10 -15
  453. package/lib/ele-data-table/props.d.ts +38 -43
  454. package/lib/ele-data-table/style/index.scss +4 -0
  455. package/lib/ele-data-table/types.d.ts +18 -16
  456. package/lib/ele-data-table/util.cjs +14 -0
  457. package/lib/ele-data-table/util.d.ts +15 -9
  458. package/lib/ele-dot/index.cjs +3 -9
  459. package/lib/ele-dot/index.d.ts +3 -5
  460. package/lib/ele-dot/props.d.ts +3 -2
  461. package/lib/ele-drawer/index.cjs +13 -10
  462. package/lib/ele-drawer/index.d.ts +10 -9
  463. package/lib/ele-drawer/props.d.ts +26 -25
  464. package/lib/ele-drawer/style/index.scss +1 -1
  465. package/lib/ele-dropdown/index.cjs +7 -10
  466. package/lib/ele-dropdown/index.d.ts +6 -5
  467. package/lib/ele-dropdown/props.d.ts +22 -21
  468. package/lib/ele-dropdown/style/index.scss +2 -2
  469. package/lib/ele-edit-tag/index.cjs +16 -14
  470. package/lib/ele-edit-tag/index.d.ts +9 -2
  471. package/lib/ele-edit-tag/props.cjs +5 -1
  472. package/lib/ele-edit-tag/props.d.ts +14 -9
  473. package/lib/ele-edit-tag/style/index.scss +13 -0
  474. package/lib/ele-ellipsis/index.cjs +3 -26
  475. package/lib/ele-ellipsis/index.d.ts +7 -6
  476. package/lib/ele-ellipsis/props.d.ts +8 -7
  477. package/lib/ele-file-list/components/file-grid-item.cjs +15 -8
  478. package/lib/ele-file-list/components/file-grid-item.d.ts +6 -5
  479. package/lib/ele-file-list/components/file-grid.cjs +53 -49
  480. package/lib/ele-file-list/components/file-grid.d.ts +6 -5
  481. package/lib/ele-file-list/components/file-sort.d.ts +1 -1
  482. package/lib/ele-file-list/components/file-table-item.cjs +19 -14
  483. package/lib/ele-file-list/components/file-table-item.d.ts +6 -5
  484. package/lib/ele-file-list/components/file-table.cjs +91 -85
  485. package/lib/ele-file-list/components/file-table.d.ts +6 -5
  486. package/lib/ele-file-list/icons.d.ts +2 -1
  487. package/lib/ele-file-list/index.cjs +0 -10
  488. package/lib/ele-file-list/index.d.ts +8 -7
  489. package/lib/ele-file-list/props.d.ts +6 -5
  490. package/lib/ele-file-list-tool/index.cjs +2 -2
  491. package/lib/ele-file-list-tool/index.d.ts +4 -4
  492. package/lib/ele-icon-select/components/icon-grid.d.ts +4 -3
  493. package/lib/ele-icon-select/index.cjs +39 -16
  494. package/lib/ele-icon-select/index.d.ts +27 -14
  495. package/lib/ele-icon-select/props.cjs +6 -1
  496. package/lib/ele-icon-select/props.d.ts +23 -17
  497. package/lib/ele-icon-select/style/index.cjs +1 -0
  498. package/lib/ele-icon-select/style/index.scss +16 -2
  499. package/lib/ele-loading/index.cjs +31 -29
  500. package/lib/ele-loading/index.d.ts +3 -4
  501. package/lib/ele-loading/props.d.ts +5 -4
  502. package/lib/ele-map-picker/components/map-view.cjs +225 -174
  503. package/lib/ele-map-picker/components/map-view.d.ts +51 -27
  504. package/lib/ele-map-picker/index.cjs +20 -38
  505. package/lib/ele-map-picker/index.d.ts +45 -22
  506. package/lib/ele-map-picker/props.cjs +20 -6
  507. package/lib/ele-map-picker/props.d.ts +37 -12
  508. package/lib/ele-map-picker/style/index.scss +195 -166
  509. package/lib/ele-map-picker/types.d.ts +8 -4
  510. package/lib/ele-menus/index.cjs +76 -12
  511. package/lib/ele-menus/index.d.ts +21 -7
  512. package/lib/ele-menus/props.cjs +15 -3
  513. package/lib/ele-menus/props.d.ts +29 -16
  514. package/lib/ele-menus/style/index.cjs +2 -0
  515. package/lib/ele-menus/style/index.scss +13 -11
  516. package/lib/ele-menus/types.d.ts +9 -9
  517. package/lib/ele-menus/util.cjs +115 -80
  518. package/lib/ele-menus/util.d.ts +35 -16
  519. package/lib/ele-modal/index.cjs +41 -12
  520. package/lib/ele-modal/index.d.ts +7 -6
  521. package/lib/ele-modal/props.d.ts +24 -23
  522. package/lib/ele-modal/style/index.scss +49 -13
  523. package/lib/ele-modal/types.d.ts +2 -10
  524. package/lib/ele-modal/util.cjs +22 -57
  525. package/lib/ele-modal/util.d.ts +5 -4
  526. package/lib/ele-page/index.d.ts +1 -1
  527. package/lib/ele-page/props.d.ts +2 -1
  528. package/lib/ele-pagination/index.cjs +18 -12
  529. package/lib/ele-pagination/index.d.ts +11 -9
  530. package/lib/ele-pagination/props.cjs +2 -0
  531. package/lib/ele-pagination/props.d.ts +14 -12
  532. package/lib/ele-pagination/style/index.scss +9 -0
  533. package/lib/ele-pagination/types.d.ts +6 -1
  534. package/lib/ele-popconfirm/index.d.ts +7 -6
  535. package/lib/ele-popconfirm/props.d.ts +32 -31
  536. package/lib/ele-popconfirm/style/index.cjs +1 -1
  537. package/lib/ele-popover/index.d.ts +5 -4
  538. package/lib/ele-popover/props.d.ts +26 -25
  539. package/lib/ele-popover/style/index.cjs +0 -1
  540. package/lib/ele-printer/index.cjs +10 -10
  541. package/lib/ele-printer/index.d.ts +7 -7
  542. package/lib/ele-printer/props.d.ts +6 -5
  543. package/lib/ele-printer/style/index.scss +1 -1
  544. package/lib/ele-printer/util.cjs +4 -2
  545. package/lib/ele-printer/util.d.ts +2 -1
  546. package/lib/ele-pro-layout/components/header-tool.d.ts +1 -1
  547. package/lib/ele-pro-layout/components/pro-header.cjs +74 -15
  548. package/lib/ele-pro-layout/components/pro-header.d.ts +37 -15
  549. package/lib/ele-pro-layout/components/pro-iframe.cjs +45 -22
  550. package/lib/ele-pro-layout/components/pro-iframe.d.ts +4 -3
  551. package/lib/ele-pro-layout/components/pro-sidebar.cjs +44 -16
  552. package/lib/ele-pro-layout/components/pro-sidebar.d.ts +35 -19
  553. package/lib/ele-pro-layout/components/pro-sidebox.cjs +55 -15
  554. package/lib/ele-pro-layout/components/pro-sidebox.d.ts +37 -15
  555. package/lib/ele-pro-layout/components/pro-tabs.d.ts +6 -5
  556. package/lib/ele-pro-layout/components/sidebar-tool.d.ts +1 -1
  557. package/lib/ele-pro-layout/components/tab-dropdown.cjs +5 -1
  558. package/lib/ele-pro-layout/components/tab-dropdown.d.ts +5 -4
  559. package/lib/ele-pro-layout/index.cjs +281 -65
  560. package/lib/ele-pro-layout/index.d.ts +44 -27
  561. package/lib/ele-pro-layout/props.cjs +9 -0
  562. package/lib/ele-pro-layout/props.d.ts +18 -8
  563. package/lib/ele-pro-layout/style/tabs.scss +1 -1
  564. package/lib/ele-pro-layout/types.d.ts +29 -3
  565. package/lib/ele-pro-layout/util.d.ts +5 -4
  566. package/lib/ele-pro-table/components/table-tools.cjs +124 -7
  567. package/lib/ele-pro-table/components/table-tools.d.ts +102 -10
  568. package/lib/ele-pro-table/components/tool-column-list.cjs +3 -6
  569. package/lib/ele-pro-table/components/tool-column-list.d.ts +4 -3
  570. package/lib/ele-pro-table/components/tool-column.cjs +8 -8
  571. package/lib/ele-pro-table/components/tool-column.d.ts +5 -4
  572. package/lib/ele-pro-table/components/tool-export.cjs +448 -0
  573. package/lib/ele-pro-table/components/tool-export.d.ts +456 -0
  574. package/lib/ele-pro-table/components/tool-print-body-cell.cjs +87 -0
  575. package/lib/ele-pro-table/components/tool-print-body-cell.d.ts +35 -0
  576. package/lib/ele-pro-table/components/tool-print-header-cell.cjs +87 -0
  577. package/lib/ele-pro-table/components/tool-print-header-cell.d.ts +35 -0
  578. package/lib/ele-pro-table/components/tool-print.cjs +557 -0
  579. package/lib/ele-pro-table/components/tool-print.d.ts +895 -0
  580. package/lib/ele-pro-table/index.cjs +87 -16
  581. package/lib/ele-pro-table/index.d.ts +37 -29
  582. package/lib/ele-pro-table/props.cjs +6 -2
  583. package/lib/ele-pro-table/props.d.ts +52 -48
  584. package/lib/ele-pro-table/style/index.cjs +9 -0
  585. package/lib/ele-pro-table/style/index.scss +33 -5
  586. package/lib/ele-pro-table/types.d.ts +149 -5
  587. package/lib/ele-pro-table/util.cjs +145 -21
  588. package/lib/ele-pro-table/util.d.ts +57 -5
  589. package/lib/ele-qr-code/index.d.ts +3 -2
  590. package/lib/ele-qr-code/props.d.ts +4 -3
  591. package/lib/ele-qr-code/util.d.ts +3 -2
  592. package/lib/ele-qr-code-svg/index.d.ts +1 -1
  593. package/lib/ele-segmented/index.cjs +1 -3
  594. package/lib/ele-segmented/index.d.ts +4 -3
  595. package/lib/ele-segmented/props.d.ts +3 -2
  596. package/lib/ele-split-panel/index.cjs +62 -58
  597. package/lib/ele-split-panel/index.d.ts +11 -9
  598. package/lib/ele-split-panel/props.d.ts +5 -4
  599. package/lib/ele-steps/index.cjs +2 -4
  600. package/lib/ele-steps/index.d.ts +1 -2
  601. package/lib/ele-steps/props.d.ts +10 -9
  602. package/lib/ele-tab-tool/index.d.ts +1 -1
  603. package/lib/ele-tab-tool/props.d.ts +2 -1
  604. package/lib/ele-tab-wrap/index.d.ts +1 -1
  605. package/lib/ele-tab-wrap/props.d.ts +3 -2
  606. package/lib/ele-table/index.cjs +2 -1
  607. package/lib/ele-table/index.d.ts +4 -1
  608. package/lib/ele-table/props.cjs +3 -1
  609. package/lib/ele-table/props.d.ts +4 -1
  610. package/lib/ele-table/style/index.scss +35 -0
  611. package/lib/ele-table-select/index.d.ts +13 -12
  612. package/lib/ele-table-select/props.d.ts +11 -10
  613. package/lib/ele-tabs/components/tab-title.d.ts +6 -5
  614. package/lib/ele-tabs/index.cjs +1 -6
  615. package/lib/ele-tabs/index.d.ts +13 -23
  616. package/lib/ele-tabs/props.d.ts +15 -21
  617. package/lib/ele-text/index.d.ts +1 -1
  618. package/lib/ele-text/props.d.ts +5 -4
  619. package/lib/ele-tool/index.cjs +1 -3
  620. package/lib/ele-tool/index.d.ts +2 -2
  621. package/lib/ele-tool/props.cjs +5 -0
  622. package/lib/ele-tool/props.d.ts +10 -2
  623. package/lib/ele-toolbar/index.d.ts +1 -1
  624. package/lib/ele-toolbar/props.d.ts +7 -6
  625. package/lib/ele-tooltip/index.cjs +9 -13
  626. package/lib/ele-tooltip/index.d.ts +4 -3
  627. package/lib/ele-tooltip/props.d.ts +23 -22
  628. package/lib/ele-tooltip/style/css-var.scss +4 -0
  629. package/lib/ele-tooltip/style/index.scss +23 -0
  630. package/lib/ele-tour/index.cjs +79 -76
  631. package/lib/ele-tour/index.d.ts +5 -4
  632. package/lib/ele-tour/props.d.ts +3 -2
  633. package/lib/ele-tour/util.d.ts +3 -2
  634. package/lib/ele-tree-select/index.d.ts +10 -9
  635. package/lib/ele-tree-select/props.d.ts +12 -11
  636. package/lib/ele-tree-select/util.d.ts +3 -2
  637. package/lib/ele-upload-list/components/list-item.cjs +6 -3
  638. package/lib/ele-upload-list/components/list-item.d.ts +10 -5
  639. package/lib/ele-upload-list/index.cjs +8 -7
  640. package/lib/ele-upload-list/index.d.ts +12 -5
  641. package/lib/ele-upload-list/props.cjs +5 -1
  642. package/lib/ele-upload-list/props.d.ts +11 -6
  643. package/lib/ele-upload-list/style/index.scss +2 -1
  644. package/lib/ele-virtual-table/components/body-cell.cjs +78 -111
  645. package/lib/ele-virtual-table/components/body-cell.d.ts +85 -50
  646. package/lib/ele-virtual-table/components/body-row.cjs +57 -52
  647. package/lib/ele-virtual-table/components/body-row.d.ts +72 -48
  648. package/lib/ele-virtual-table/components/cell-checkbox.d.ts +3 -2
  649. package/lib/ele-virtual-table/components/cell-filter.cjs +7 -11
  650. package/lib/ele-virtual-table/components/cell-filter.d.ts +9 -8
  651. package/lib/ele-virtual-table/components/expand-row.cjs +3 -3
  652. package/lib/ele-virtual-table/components/expand-row.d.ts +10 -9
  653. package/lib/ele-virtual-table/components/footer-row.cjs +27 -17
  654. package/lib/ele-virtual-table/components/footer-row.d.ts +33 -14
  655. package/lib/ele-virtual-table/components/header-cell.d.ts +5 -4
  656. package/lib/ele-virtual-table/components/header-row.d.ts +5 -4
  657. package/lib/ele-virtual-table/index.cjs +132 -134
  658. package/lib/ele-virtual-table/index.d.ts +23 -32
  659. package/lib/ele-virtual-table/props.d.ts +50 -52
  660. package/lib/ele-virtual-table/types.d.ts +103 -69
  661. package/lib/ele-virtual-table/util.cjs +65 -34
  662. package/lib/ele-virtual-table/util.d.ts +35 -10
  663. package/lib/ele-watermark/index.cjs +1 -1
  664. package/lib/ele-watermark/index.d.ts +12 -2
  665. package/lib/ele-watermark/props.cjs +5 -0
  666. package/lib/ele-watermark/props.d.ts +9 -3
  667. package/lib/ele-watermark/util.d.ts +3 -2
  668. package/lib/ele-xg-player/index.d.ts +4 -4
  669. package/lib/icons/AnalysisOutlined.d.ts +1 -1
  670. package/lib/icons/ApplicationOutlined.d.ts +1 -1
  671. package/lib/icons/AppstoreAddOutlined.d.ts +1 -1
  672. package/lib/icons/AppstoreOutlined.d.ts +1 -1
  673. package/lib/icons/ArrowDown.d.ts +1 -1
  674. package/lib/icons/ArrowDownOutlined.d.ts +1 -1
  675. package/lib/icons/ArrowLeft.d.ts +1 -1
  676. package/lib/icons/ArrowLeftOutlined.d.ts +1 -1
  677. package/lib/icons/ArrowRight.d.ts +1 -1
  678. package/lib/icons/ArrowRightOutlined.d.ts +1 -1
  679. package/lib/icons/ArrowUp.d.ts +1 -1
  680. package/lib/icons/ArrowUpOutlined.d.ts +1 -1
  681. package/lib/icons/BellOutlined.d.ts +1 -1
  682. package/lib/icons/BookOutlined.d.ts +1 -1
  683. package/lib/icons/CalendarOutlined.d.ts +1 -1
  684. package/lib/icons/CaretDownFilled.d.ts +1 -1
  685. package/lib/icons/CaretUpFilled.d.ts +1 -1
  686. package/lib/icons/CheckCircleFilled.d.ts +1 -1
  687. package/lib/icons/CheckCircleOutlined.d.ts +1 -1
  688. package/lib/icons/CheckOutlined.d.ts +1 -1
  689. package/lib/icons/CityOutlined.d.ts +1 -1
  690. package/lib/icons/ClockCircleOutlined.d.ts +1 -1
  691. package/lib/icons/CloseCircleFilled.d.ts +1 -1
  692. package/lib/icons/CloseCircleOutlined.d.ts +1 -1
  693. package/lib/icons/CloseOutlined.d.ts +1 -1
  694. package/lib/icons/CloudUploadOutlined.d.ts +1 -1
  695. package/lib/icons/ClusterOutlined.d.ts +1 -1
  696. package/lib/icons/CodeOutlined.d.ts +1 -1
  697. package/lib/icons/ColumnHeightOutlined.d.ts +1 -1
  698. package/lib/icons/CompassOutlined.d.ts +1 -1
  699. package/lib/icons/CompressOutlined.d.ts +1 -1
  700. package/lib/icons/ConnectionOutlined.d.ts +1 -1
  701. package/lib/icons/ControlOutlined.d.ts +1 -1
  702. package/lib/icons/CopyOutlined.d.ts +1 -1
  703. package/lib/icons/CpuOutlined.d.ts +1 -1
  704. package/lib/icons/DashboardOutlined.d.ts +1 -1
  705. package/lib/icons/DatabaseOutlined.d.ts +1 -1
  706. package/lib/icons/DeleteOutlined.d.ts +1 -1
  707. package/lib/icons/DesktopOutlined.d.ts +1 -1
  708. package/lib/icons/DownloadOutlined.d.ts +1 -1
  709. package/lib/icons/DragOutlined.d.ts +1 -1
  710. package/lib/icons/EditOutlined.d.ts +1 -1
  711. package/lib/icons/EllipsisOutlined.d.ts +1 -1
  712. package/lib/icons/EnvironmentOutlined.d.ts +1 -1
  713. package/lib/icons/ExclamationCircleFilled.d.ts +1 -1
  714. package/lib/icons/ExpandOutlined.d.ts +1 -1
  715. package/lib/icons/FileOutlined.d.ts +1 -1
  716. package/lib/icons/FilterFilled.d.ts +1 -1
  717. package/lib/icons/FolderAddOutlined.d.ts +1 -1
  718. package/lib/icons/FolderOutlined.d.ts +1 -1
  719. package/lib/icons/FormOutlined.d.ts +1 -1
  720. package/lib/icons/FullscreenExitOutlined.d.ts +1 -1
  721. package/lib/icons/FullscreenOutlined.d.ts +1 -1
  722. package/lib/icons/FundOutlined.d.ts +1 -1
  723. package/lib/icons/GlobalOutlined.d.ts +1 -1
  724. package/lib/icons/HolderOutlined.d.ts +1 -1
  725. package/lib/icons/HomeOutlined.d.ts +1 -1
  726. package/lib/icons/IdcardOutlined.d.ts +1 -1
  727. package/lib/icons/InfoCircleFilled.d.ts +1 -1
  728. package/lib/icons/LinkOutlined.d.ts +1 -1
  729. package/lib/icons/LoadingDotOutlined.d.ts +1 -1
  730. package/lib/icons/LoadingOutlined.d.ts +1 -1
  731. package/lib/icons/LockOutlined.d.ts +1 -1
  732. package/lib/icons/LogOutlined.d.ts +1 -1
  733. package/lib/icons/LogoutOutlined.d.ts +1 -1
  734. package/lib/icons/MailOutlined.d.ts +1 -1
  735. package/lib/icons/MenuFoldOutlined.d.ts +1 -1
  736. package/lib/icons/MenuUnfoldOutlined.d.ts +1 -1
  737. package/lib/icons/MessageOutlined.d.ts +1 -1
  738. package/lib/icons/MinusCircleOutlined.d.ts +1 -1
  739. package/lib/icons/MobileOutlined.d.ts +1 -1
  740. package/lib/icons/MoonOutlined.d.ts +1 -1
  741. package/lib/icons/MoreOutlined.d.ts +1 -1
  742. package/lib/icons/PauseFilled.d.ts +1 -1
  743. package/lib/icons/PieChartOutlined.d.ts +1 -1
  744. package/lib/icons/PlayFilled.d.ts +1 -1
  745. package/lib/icons/PlusCircleOutlined.d.ts +1 -1
  746. package/lib/icons/PlusOutlined.d.ts +1 -1
  747. package/lib/icons/PrinterOutlined.cjs +28 -0
  748. package/lib/icons/PrinterOutlined.d.ts +2 -0
  749. package/lib/icons/ProtectOutlined.d.ts +1 -1
  750. package/lib/icons/QuestionCircleFilled.d.ts +1 -1
  751. package/lib/icons/QuestionCircleOutlined.d.ts +1 -1
  752. package/lib/icons/ReloadOutlined.d.ts +1 -1
  753. package/lib/icons/SearchOutlined.d.ts +1 -1
  754. package/lib/icons/SettingOutlined.d.ts +1 -1
  755. package/lib/icons/ShoppingOutlined.d.ts +1 -1
  756. package/lib/icons/SortOutlined.d.ts +1 -1
  757. package/lib/icons/StarFilled.d.ts +1 -1
  758. package/lib/icons/StepBackwardFilled.d.ts +1 -1
  759. package/lib/icons/StepForwardFilled.d.ts +1 -1
  760. package/lib/icons/SuitcaseOutlined.d.ts +1 -1
  761. package/lib/icons/SunOutlined.d.ts +1 -1
  762. package/lib/icons/SwapOutlined.d.ts +1 -1
  763. package/lib/icons/SyncOutlined.d.ts +1 -1
  764. package/lib/icons/TableOutlined.d.ts +1 -1
  765. package/lib/icons/TagOutlined.d.ts +1 -1
  766. package/lib/icons/TimerOutlined.d.ts +1 -1
  767. package/lib/icons/UndoOutlined.d.ts +1 -1
  768. package/lib/icons/UnlockOutlined.d.ts +1 -1
  769. package/lib/icons/UploadOutlined.d.ts +1 -1
  770. package/lib/icons/UserOutlined.d.ts +1 -1
  771. package/lib/icons/VerticalAlignMiddleOutlined.d.ts +1 -1
  772. package/lib/icons/VerticalLeftOutlined.cjs +2 -2
  773. package/lib/icons/VerticalLeftOutlined.d.ts +1 -1
  774. package/lib/icons/VerticalRightOutlined.cjs +2 -2
  775. package/lib/icons/VerticalRightOutlined.d.ts +1 -1
  776. package/lib/icons/WarningOutlined.d.ts +1 -1
  777. package/lib/icons/ZoomInOutlined.d.ts +1 -1
  778. package/lib/icons/ZoomOutOutlined.d.ts +1 -1
  779. package/lib/icons/index.cjs +2 -0
  780. package/lib/icons/index.d.ts +1 -0
  781. package/lib/installer.d.ts +2 -2
  782. package/lib/lang/en_US.cjs +15 -3
  783. package/lib/lang/en_US.d.ts +2 -2
  784. package/lib/lang/zh_CN.cjs +15 -3
  785. package/lib/lang/zh_CN.d.ts +2 -2
  786. package/lib/lang/zh_TW.cjs +14 -2
  787. package/lib/lang/zh_TW.d.ts +2 -2
  788. package/lib/style/index.scss +1 -43
  789. package/lib/style/plus.scss +43 -0
  790. package/lib/style/themes/default.scss +8 -4
  791. package/lib/style/themes/rounded.scss +1 -1
  792. package/lib/style/themes/theme-util.scss +0 -2
  793. package/lib/utils/core.cjs +28 -0
  794. package/lib/utils/core.d.ts +5 -0
  795. package/lib/utils/menu-util.d.ts +3 -2
  796. package/lib/utils/message.d.ts +4 -3
  797. package/lib/utils/resolvers.cjs +33 -20
  798. package/lib/utils/resolvers.d.ts +4 -4
  799. package/package.json +24 -23
  800. package/es/ele-popover/style/css-var.scss +0 -8
  801. package/es/ele-popover/style/index.scss +0 -27
  802. package/lib/ele-popover/style/css-var.scss +0 -8
  803. package/lib/ele-popover/style/index.scss +0 -27
@@ -0,0 +1,449 @@
1
+ import { defineComponent, ref, reactive, watch, resolveComponent, openBlock, createBlock, withCtx, createVNode, mergeProps, createTextVNode, toDisplayString, withModifiers, createCommentVNode, createElementVNode } from "vue";
2
+ import { ElForm, ElFormItem, ElInput, ElSelect, ElOption, ElCheckbox, ElButton, ElIcon } from "element-plus";
3
+ import { DownloadOutlined } from "../../icons";
4
+ import { eachTree } from "../../utils/core";
5
+ import EleTool from "../../ele-tool/index";
6
+ import EleModal from "../../ele-modal/index";
7
+ import { getColItems, columnsExportFilter, getCheckedColumns, getExportData, exportCSV } from "../util";
8
+ import ToolColumnList from "./tool-column-list";
9
+ const _sfc_main = defineComponent({
10
+ name: "ToolExport",
11
+ components: {
12
+ ElForm,
13
+ ElFormItem,
14
+ ElInput,
15
+ ElSelect,
16
+ ElOption,
17
+ ElCheckbox,
18
+ ElButton,
19
+ ElIcon,
20
+ DownloadOutlined,
21
+ EleTool,
22
+ EleModal,
23
+ ToolColumnList
24
+ },
25
+ props: {
26
+ /** 提示文字 */
27
+ title: String,
28
+ /** 提示位置 */
29
+ placement: String,
30
+ /** 全选文字 */
31
+ checkAllText: String,
32
+ /** 重置文字 */
33
+ resetText: String,
34
+ /** 无标题列文字 */
35
+ untitledText: String,
36
+ /** 文件名文字 */
37
+ fileNameText: String,
38
+ /** 文件名提示文字 */
39
+ fileNamePlaceholderText: String,
40
+ /** 选择数据文字 */
41
+ selectDataText: String,
42
+ /** 选择字段文字 */
43
+ selectColumnText: String,
44
+ /** 当前页数据文字 */
45
+ dataTypePageText: String,
46
+ /** 选中数据文字 */
47
+ dataTypeSelectedText: String,
48
+ /** 全部数据文字 */
49
+ dataTypeAllText: String,
50
+ /** 取消文字 */
51
+ cancelText: String,
52
+ /** 确定文字 */
53
+ okText: String,
54
+ /** 弹窗参数 */
55
+ modalProps: Object,
56
+ /** 列数据 */
57
+ columns: Array,
58
+ /** 表格选中数据 */
59
+ selections: Array,
60
+ /** 表格当前页数据 */
61
+ pageData: Array,
62
+ /** 表格全部数据 */
63
+ datasource: [Array, Function],
64
+ /** 单元格合并行列方法 */
65
+ spanMethod: Function,
66
+ /** 是否显示合计行 */
67
+ showSummary: Boolean,
68
+ /** 合计行文本 */
69
+ sumText: String,
70
+ /** 合计行自定义方法 */
71
+ summaryMethod: Function,
72
+ /** 序号列起始索引 */
73
+ pageIndex: Number,
74
+ /** 表格请求数据方法 */
75
+ fetch: Function,
76
+ /** 默认文件名 */
77
+ defaultFileName: {
78
+ type: String,
79
+ default: "list"
80
+ },
81
+ /** 默认数据类型 */
82
+ defaultDataType: {
83
+ type: String,
84
+ default: "pageData"
85
+ },
86
+ /** 导出前的钩子函数 */
87
+ beforeExport: Function
88
+ },
89
+ setup(props) {
90
+ const visible = ref(false);
91
+ const loading = ref(false);
92
+ const formRef = ref(null);
93
+ const form = reactive({
94
+ /** 文件名 */
95
+ fileName: props.defaultFileName
96
+ });
97
+ const fileNameRules = reactive({
98
+ required: true,
99
+ message: props.fileNamePlaceholderText,
100
+ type: "string",
101
+ trigger: "blur"
102
+ });
103
+ const dataType = ref(props.defaultDataType);
104
+ const colItems = ref([]);
105
+ const isCheckAll = ref(false);
106
+ const isIndeterminate = ref(false);
107
+ const openModal = () => {
108
+ visible.value = true;
109
+ };
110
+ const closeModal = () => {
111
+ visible.value = false;
112
+ };
113
+ const showLoading = () => {
114
+ loading.value = true;
115
+ };
116
+ const hideLoading = () => {
117
+ loading.value = false;
118
+ };
119
+ const exportData = (data) => {
120
+ showLoading();
121
+ const columns = getCheckedColumns(
122
+ props.columns,
123
+ colItems.value,
124
+ true,
125
+ columnsExportFilter
126
+ );
127
+ const { headerData, bodyData, footerData, bodyCols } = getExportData(
128
+ data,
129
+ columns,
130
+ props.spanMethod,
131
+ props.pageIndex,
132
+ props.showSummary,
133
+ props.sumText,
134
+ props.summaryMethod
135
+ );
136
+ if (typeof props.beforeExport === "function") {
137
+ const flag = props.beforeExport({
138
+ data,
139
+ columns,
140
+ headerData,
141
+ bodyData,
142
+ footerData,
143
+ bodyCols,
144
+ fileName: form.fileName,
145
+ hideLoading,
146
+ closeModal
147
+ });
148
+ if (flag === false) {
149
+ return;
150
+ }
151
+ }
152
+ exportCSV(form.fileName, headerData, bodyData, footerData);
153
+ hideLoading();
154
+ closeModal();
155
+ };
156
+ const handleExport = () => {
157
+ var _a, _b;
158
+ (_b = (_a = formRef.value) == null ? void 0 : _a.validate) == null ? void 0 : _b.call(_a, (valid) => {
159
+ if (!valid) {
160
+ return;
161
+ }
162
+ if (dataType.value === "selections") {
163
+ exportData([...props.selections || []]);
164
+ return;
165
+ }
166
+ if (dataType.value !== "data") {
167
+ exportData([...props.pageData || []]);
168
+ return;
169
+ }
170
+ if (props.datasource == null || typeof props.datasource !== "function" || typeof props.fetch !== "function") {
171
+ return;
172
+ }
173
+ showLoading();
174
+ props.fetch((params) => {
175
+ props.datasource(params).then((result) => {
176
+ if (result == null) {
177
+ hideLoading();
178
+ return;
179
+ }
180
+ exportData(result);
181
+ }).catch(() => {
182
+ hideLoading();
183
+ });
184
+ });
185
+ });
186
+ };
187
+ const initColItems = () => {
188
+ colItems.value = getColItems(
189
+ props.columns,
190
+ props.untitledText,
191
+ columnsExportFilter,
192
+ true,
193
+ true
194
+ );
195
+ let checkAll = true;
196
+ let indeterminate = false;
197
+ eachTree(colItems.value, (d) => {
198
+ if (!d.checked && checkAll) {
199
+ checkAll = false;
200
+ }
201
+ if (d.checked && !indeterminate) {
202
+ indeterminate = true;
203
+ }
204
+ if (!checkAll && indeterminate) {
205
+ return false;
206
+ }
207
+ });
208
+ isCheckAll.value = colItems.value.length > 0 && checkAll;
209
+ isIndeterminate.value = !checkAll && indeterminate;
210
+ };
211
+ const onCheckedChange = (item, checked) => {
212
+ let checkAll = true;
213
+ let indeterminate = false;
214
+ eachTree(colItems.value, (d) => {
215
+ if (d.uid === item.uid) {
216
+ d.checked = checked;
217
+ }
218
+ if (!d.checked && checkAll) {
219
+ checkAll = false;
220
+ }
221
+ if (d.checked && !indeterminate) {
222
+ indeterminate = true;
223
+ }
224
+ if (d.uid === item.uid && !checkAll && indeterminate) {
225
+ return false;
226
+ }
227
+ });
228
+ isCheckAll.value = colItems.value.length > 0 && checkAll;
229
+ isIndeterminate.value = !checkAll && indeterminate;
230
+ };
231
+ const onSortChange = (items, parent) => {
232
+ if (!parent) {
233
+ colItems.value = items;
234
+ } else {
235
+ eachTree(colItems.value, (d) => {
236
+ if (d.uid === parent.uid) {
237
+ d.children = items;
238
+ return false;
239
+ }
240
+ });
241
+ }
242
+ };
243
+ const onCheckAllChange = (checked) => {
244
+ isCheckAll.value = checked;
245
+ isIndeterminate.value = false;
246
+ eachTree(colItems.value, (d) => {
247
+ if (d.checked !== checked) {
248
+ d.checked = checked;
249
+ }
250
+ });
251
+ };
252
+ const onReset = () => {
253
+ initColItems();
254
+ };
255
+ watch(visible, (visible2) => {
256
+ var _a, _b;
257
+ if (visible2) {
258
+ form.fileName = props.defaultFileName;
259
+ dataType.value = props.defaultDataType;
260
+ initColItems();
261
+ return;
262
+ }
263
+ loading.value = false;
264
+ (_b = (_a = formRef.value) == null ? void 0 : _a.clearValidate) == null ? void 0 : _b.call(_a);
265
+ });
266
+ watch(
267
+ () => props.fileNamePlaceholderText,
268
+ (placeholder) => {
269
+ fileNameRules.message = placeholder;
270
+ }
271
+ );
272
+ return {
273
+ visible,
274
+ loading,
275
+ formRef,
276
+ form,
277
+ fileNameRules,
278
+ dataType,
279
+ colItems,
280
+ isCheckAll,
281
+ isIndeterminate,
282
+ openModal,
283
+ closeModal,
284
+ handleExport,
285
+ onCheckedChange,
286
+ onSortChange,
287
+ onCheckAllChange,
288
+ onReset
289
+ };
290
+ }
291
+ });
292
+ const _export_sfc = (sfc, props) => {
293
+ const target = sfc.__vccOpts || sfc;
294
+ for (const [key, val] of props) {
295
+ target[key] = val;
296
+ }
297
+ return target;
298
+ };
299
+ const _hoisted_1 = { class: "ele-tool-column is-sortable" };
300
+ const _hoisted_2 = { class: "ele-tool-column-header" };
301
+ const _hoisted_3 = { class: "ele-tool-column-label" };
302
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
303
+ const _component_DownloadOutlined = resolveComponent("DownloadOutlined");
304
+ const _component_ElIcon = resolveComponent("ElIcon");
305
+ const _component_ElInput = resolveComponent("ElInput");
306
+ const _component_ElFormItem = resolveComponent("ElFormItem");
307
+ const _component_ElOption = resolveComponent("ElOption");
308
+ const _component_ElSelect = resolveComponent("ElSelect");
309
+ const _component_ElCheckbox = resolveComponent("ElCheckbox");
310
+ const _component_ToolColumnList = resolveComponent("ToolColumnList");
311
+ const _component_ElForm = resolveComponent("ElForm");
312
+ const _component_ElButton = resolveComponent("ElButton");
313
+ const _component_EleModal = resolveComponent("EleModal");
314
+ const _component_EleTool = resolveComponent("EleTool");
315
+ return openBlock(), createBlock(_component_EleTool, {
316
+ title: _ctx.title,
317
+ placement: _ctx.placement,
318
+ onClick: _ctx.openModal
319
+ }, {
320
+ default: withCtx(() => [
321
+ createVNode(_component_ElIcon, { style: { "transform": "scale(1.1)", "transform-origin": "bottom" } }, {
322
+ default: withCtx(() => [
323
+ createVNode(_component_DownloadOutlined)
324
+ ]),
325
+ _: 1
326
+ }),
327
+ createVNode(_component_EleModal, mergeProps({
328
+ form: true,
329
+ width: "460px",
330
+ title: _ctx.title,
331
+ position: "center"
332
+ }, _ctx.modalProps || {}, {
333
+ modelValue: _ctx.visible,
334
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => _ctx.visible = $event)
335
+ }), {
336
+ footer: withCtx(() => [
337
+ createVNode(_component_ElButton, { onClick: _ctx.closeModal }, {
338
+ default: withCtx(() => [
339
+ createTextVNode(toDisplayString(_ctx.cancelText), 1)
340
+ ]),
341
+ _: 1
342
+ }, 8, ["onClick"]),
343
+ createVNode(_component_ElButton, {
344
+ loading: _ctx.loading,
345
+ type: "primary",
346
+ onClick: _ctx.handleExport
347
+ }, {
348
+ default: withCtx(() => [
349
+ createTextVNode(toDisplayString(_ctx.okText), 1)
350
+ ]),
351
+ _: 1
352
+ }, 8, ["loading", "onClick"])
353
+ ]),
354
+ default: withCtx(() => [
355
+ createVNode(_component_ElForm, {
356
+ ref: "formRef",
357
+ model: _ctx.form,
358
+ labelWidth: "80px",
359
+ onSubmit: _cache[3] || (_cache[3] = withModifiers(() => {
360
+ }, ["prevent"])),
361
+ class: "ele-tool-export-form"
362
+ }, {
363
+ default: withCtx(() => [
364
+ createVNode(_component_ElFormItem, {
365
+ label: _ctx.fileNameText,
366
+ prop: "fileName",
367
+ rules: _ctx.fileNameRules
368
+ }, {
369
+ default: withCtx(() => [
370
+ createVNode(_component_ElInput, {
371
+ maxlength: 20,
372
+ clearable: true,
373
+ modelValue: _ctx.form.fileName,
374
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.form.fileName = $event),
375
+ placeholder: _ctx.fileNamePlaceholderText
376
+ }, null, 8, ["modelValue", "placeholder"])
377
+ ]),
378
+ _: 1
379
+ }, 8, ["label", "rules"]),
380
+ createVNode(_component_ElFormItem, { label: _ctx.selectDataText }, {
381
+ default: withCtx(() => [
382
+ createVNode(_component_ElSelect, {
383
+ modelValue: _ctx.dataType,
384
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => _ctx.dataType = $event),
385
+ placeholder: _ctx.selectDataText
386
+ }, {
387
+ default: withCtx(() => [
388
+ _ctx.pageData != null ? (openBlock(), createBlock(_component_ElOption, {
389
+ key: 0,
390
+ value: "pageData",
391
+ label: _ctx.dataTypePageText
392
+ }, null, 8, ["label"])) : createCommentVNode("", true),
393
+ _ctx.selections != null ? (openBlock(), createBlock(_component_ElOption, {
394
+ key: 1,
395
+ value: "selections",
396
+ label: _ctx.dataTypeSelectedText
397
+ }, null, 8, ["label"])) : createCommentVNode("", true),
398
+ _ctx.datasource != null ? (openBlock(), createBlock(_component_ElOption, {
399
+ key: 2,
400
+ value: "data",
401
+ label: _ctx.dataTypeAllText
402
+ }, null, 8, ["label"])) : createCommentVNode("", true)
403
+ ]),
404
+ _: 1
405
+ }, 8, ["modelValue", "placeholder"])
406
+ ]),
407
+ _: 1
408
+ }, 8, ["label"]),
409
+ createVNode(_component_ElFormItem, { label: _ctx.selectColumnText }, {
410
+ default: withCtx(() => [
411
+ createElementVNode("div", _hoisted_1, [
412
+ createElementVNode("div", _hoisted_2, [
413
+ createElementVNode("div", _hoisted_3, [
414
+ createVNode(_component_ElCheckbox, {
415
+ label: _ctx.checkAllText,
416
+ modelValue: _ctx.isCheckAll,
417
+ indeterminate: _ctx.isIndeterminate,
418
+ "onUpdate:modelValue": _ctx.onCheckAllChange
419
+ }, null, 8, ["label", "modelValue", "indeterminate", "onUpdate:modelValue"])
420
+ ]),
421
+ createElementVNode("div", {
422
+ class: "ele-tool-column-link",
423
+ onClick: _cache[2] || (_cache[2] = (...args) => _ctx.onReset && _ctx.onReset(...args))
424
+ }, toDisplayString(_ctx.resetText), 1)
425
+ ]),
426
+ createVNode(_component_ToolColumnList, {
427
+ data: _ctx.colItems,
428
+ sortable: true,
429
+ onSortChange: _ctx.onSortChange,
430
+ onCheckedChange: _ctx.onCheckedChange
431
+ }, null, 8, ["data", "onSortChange", "onCheckedChange"])
432
+ ])
433
+ ]),
434
+ _: 1
435
+ }, 8, ["label"])
436
+ ]),
437
+ _: 1
438
+ }, 8, ["model"])
439
+ ]),
440
+ _: 1
441
+ }, 16, ["title", "modelValue"])
442
+ ]),
443
+ _: 1
444
+ }, 8, ["title", "placement", "onClick"]);
445
+ }
446
+ const toolExport = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
447
+ export {
448
+ toolExport as default
449
+ };
@@ -0,0 +1,35 @@
1
+ import { ExportDataItem } from '../types';
2
+ import { CustomRenderProps } from '../../ele-virtual-table/types';
3
+ import { StyleValues } from '../../ele-app/types';
4
+ import { PropType } from 'vue';
5
+
6
+ declare const _default: import('vue').DefineComponent<{
7
+ /** 列数据 */
8
+ col: {
9
+ type: PropType<ExportDataItem>;
10
+ required: true;
11
+ };
12
+ /** 列索引 */
13
+ columnIndex: NumberConstructor;
14
+ /** 单元格样式 */
15
+ bodyCellStyle: PropType<import("element-plus/es/components/table/src/table/defaults").CellStyle<import("../types").DataItem> | undefined>;
16
+ /** 单元格类名自定义 */
17
+ bodyCellClass: PropType<import("element-plus/es/components/table/src/table/defaults").CellCls<import("../types").DataItem> | undefined>;
18
+ }, {
19
+ renderOpt: import("vue").ComputedRef<CustomRenderProps>;
20
+ cellStyle: import("vue").ComputedRef<StyleValues | undefined>;
21
+ cellClass: import("vue").ComputedRef<string>;
22
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
23
+ /** 列数据 */
24
+ col: {
25
+ type: PropType<ExportDataItem>;
26
+ required: true;
27
+ };
28
+ /** 列索引 */
29
+ columnIndex: NumberConstructor;
30
+ /** 单元格样式 */
31
+ bodyCellStyle: PropType<import("element-plus/es/components/table/src/table/defaults").CellStyle<import("../types").DataItem> | undefined>;
32
+ /** 单元格类名自定义 */
33
+ bodyCellClass: PropType<import("element-plus/es/components/table/src/table/defaults").CellCls<import("../types").DataItem> | undefined>;
34
+ }>>, {}, {}>;
35
+ export default _default;
@@ -0,0 +1,88 @@
1
+ import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, normalizeStyle, normalizeClass, createVNode, normalizeProps, guardReactiveProps } from "vue";
2
+ import { CellRender } from "../../ele-virtual-table/util";
3
+ const _sfc_main = defineComponent({
4
+ name: "ToolPrintBodyCell",
5
+ components: { CellRender },
6
+ props: {
7
+ /** 列数据 */
8
+ col: {
9
+ type: Object,
10
+ required: true
11
+ },
12
+ /** 列索引 */
13
+ columnIndex: Number,
14
+ /** 单元格样式 */
15
+ bodyCellStyle: [Object, Function],
16
+ /** 单元格类名自定义 */
17
+ bodyCellClass: [String, Function]
18
+ },
19
+ setup(props, { slots }) {
20
+ const renderOpt = computed(() => {
21
+ const { text, row, column, index: $index } = props.col;
22
+ const params = [{ row, column, $index }];
23
+ if (column && !["expand", "selection", "index"].includes(column.type || "") && column.slot && typeof slots[column.slot] === "function") {
24
+ return { render: slots[column.slot], params };
25
+ }
26
+ return { render: () => text, params };
27
+ });
28
+ const cellParam = computed(() => {
29
+ return {
30
+ column: props.col.column,
31
+ columnIndex: props.columnIndex,
32
+ rowIndex: props.col.index,
33
+ row: props.col.row
34
+ };
35
+ });
36
+ const cellStyle = computed(() => {
37
+ if (typeof props.bodyCellStyle === "function") {
38
+ return props.bodyCellStyle(cellParam.value);
39
+ }
40
+ return props.bodyCellStyle;
41
+ });
42
+ const cellClass = computed(() => {
43
+ const classes = [];
44
+ const column = props.col.column;
45
+ if (column) {
46
+ if (column.align) {
47
+ classes.push("is-align-" + column.align);
48
+ }
49
+ if (typeof props.bodyCellClass === "function") {
50
+ const temp = props.bodyCellClass(cellParam.value);
51
+ if (temp) {
52
+ classes.push(temp);
53
+ }
54
+ } else if (props.bodyCellClass) {
55
+ classes.push(props.bodyCellClass);
56
+ }
57
+ if (column.className) {
58
+ classes.push(column.className);
59
+ }
60
+ }
61
+ return classes.join(" ");
62
+ });
63
+ return { renderOpt, cellStyle, cellClass };
64
+ }
65
+ });
66
+ const _export_sfc = (sfc, props) => {
67
+ const target = sfc.__vccOpts || sfc;
68
+ for (const [key, val] of props) {
69
+ target[key] = val;
70
+ }
71
+ return target;
72
+ };
73
+ const _hoisted_1 = ["colspan", "rowspan"];
74
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
75
+ const _component_CellRender = resolveComponent("CellRender");
76
+ return openBlock(), createElementBlock("td", {
77
+ colspan: _ctx.col.colspan,
78
+ rowspan: _ctx.col.rowspan,
79
+ style: normalizeStyle(_ctx.cellStyle),
80
+ class: normalizeClass(_ctx.cellClass)
81
+ }, [
82
+ createVNode(_component_CellRender, normalizeProps(guardReactiveProps(_ctx.renderOpt)), null, 16)
83
+ ], 14, _hoisted_1);
84
+ }
85
+ const toolPrintBodyCell = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
86
+ export {
87
+ toolPrintBodyCell as default
88
+ };
@@ -0,0 +1,35 @@
1
+ import { ExportDataItem } from '../types';
2
+ import { CustomRenderProps } from '../../ele-virtual-table/types';
3
+ import { StyleValues } from '../../ele-app/types';
4
+ import { PropType } from 'vue';
5
+
6
+ declare const _default: import('vue').DefineComponent<{
7
+ /** 列数据 */
8
+ col: {
9
+ type: PropType<ExportDataItem>;
10
+ required: true;
11
+ };
12
+ /** 列索引 */
13
+ columnIndex: NumberConstructor;
14
+ /** 单元格样式 */
15
+ headerCellStyle: PropType<import("element-plus/es/components/table/src/table/defaults").CellStyle<import("../types").DataItem> | undefined>;
16
+ /** 单元格类名自定义 */
17
+ headerCellClass: PropType<import("element-plus/es/components/table/src/table/defaults").CellCls<import("../types").DataItem> | undefined>;
18
+ }, {
19
+ renderOpt: import("vue").ComputedRef<CustomRenderProps>;
20
+ cellStyle: import("vue").ComputedRef<StyleValues | undefined>;
21
+ cellClass: import("vue").ComputedRef<string>;
22
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
23
+ /** 列数据 */
24
+ col: {
25
+ type: PropType<ExportDataItem>;
26
+ required: true;
27
+ };
28
+ /** 列索引 */
29
+ columnIndex: NumberConstructor;
30
+ /** 单元格样式 */
31
+ headerCellStyle: PropType<import("element-plus/es/components/table/src/table/defaults").CellStyle<import("../types").DataItem> | undefined>;
32
+ /** 单元格类名自定义 */
33
+ headerCellClass: PropType<import("element-plus/es/components/table/src/table/defaults").CellCls<import("../types").DataItem> | undefined>;
34
+ }>>, {}, {}>;
35
+ export default _default;
@@ -0,0 +1,88 @@
1
+ import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, normalizeStyle, normalizeClass, createVNode, normalizeProps, guardReactiveProps } from "vue";
2
+ import { CellRender } from "../../ele-virtual-table/util";
3
+ const _sfc_main = defineComponent({
4
+ name: "ToolPrintHeaderCell",
5
+ components: { CellRender },
6
+ props: {
7
+ /** 列数据 */
8
+ col: {
9
+ type: Object,
10
+ required: true
11
+ },
12
+ /** 列索引 */
13
+ columnIndex: Number,
14
+ /** 单元格样式 */
15
+ headerCellStyle: [Object, Function],
16
+ /** 单元格类名自定义 */
17
+ headerCellClass: [String, Function]
18
+ },
19
+ setup(props, { slots }) {
20
+ const renderOpt = computed(() => {
21
+ const { text, column } = props.col;
22
+ const params = [{ column, $index: props.columnIndex }];
23
+ if (column && "index" !== column.type && column.headerSlot && typeof slots[column.headerSlot] === "function") {
24
+ return { render: slots[column.headerSlot], params };
25
+ }
26
+ return { render: () => text, params };
27
+ });
28
+ const cellParam = computed(() => {
29
+ return {
30
+ column: props.col.column,
31
+ columnIndex: props.columnIndex,
32
+ rowIndex: props.col.index
33
+ };
34
+ });
35
+ const cellStyle = computed(() => {
36
+ if (typeof props.headerCellStyle === "function") {
37
+ return props.headerCellStyle(cellParam.value);
38
+ }
39
+ return props.headerCellStyle;
40
+ });
41
+ const cellClass = computed(() => {
42
+ const classes = [];
43
+ const column = props.col.column;
44
+ if (column) {
45
+ const align = column.headerAlign || column.align;
46
+ if (align) {
47
+ classes.push("is-align-" + align);
48
+ }
49
+ if (typeof props.headerCellClass === "function") {
50
+ const temp = props.headerCellClass(cellParam.value);
51
+ if (temp) {
52
+ classes.push(temp);
53
+ }
54
+ } else if (props.headerCellClass) {
55
+ classes.push(props.headerCellClass);
56
+ }
57
+ if (column.labelClassName) {
58
+ classes.push(column.labelClassName);
59
+ }
60
+ }
61
+ return classes.join(" ");
62
+ });
63
+ return { renderOpt, cellStyle, cellClass };
64
+ }
65
+ });
66
+ const _export_sfc = (sfc, props) => {
67
+ const target = sfc.__vccOpts || sfc;
68
+ for (const [key, val] of props) {
69
+ target[key] = val;
70
+ }
71
+ return target;
72
+ };
73
+ const _hoisted_1 = ["colspan", "rowspan"];
74
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
75
+ const _component_CellRender = resolveComponent("CellRender");
76
+ return openBlock(), createElementBlock("th", {
77
+ colspan: _ctx.col.colspan,
78
+ rowspan: _ctx.col.rowspan,
79
+ style: normalizeStyle(_ctx.cellStyle),
80
+ class: normalizeClass(_ctx.cellClass)
81
+ }, [
82
+ createVNode(_component_CellRender, normalizeProps(guardReactiveProps(_ctx.renderOpt)), null, 16)
83
+ ], 14, _hoisted_1);
84
+ }
85
+ const toolPrintHeaderCell = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
86
+ export {
87
+ toolPrintHeaderCell as default
88
+ };