ele-admin-plus 1.2.1-beta.1 → 1.2.1-beta.3

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 (477) hide show
  1. package/es/ele-admin-layout/index.d.ts +29 -24
  2. package/es/ele-admin-layout/props.d.ts +15 -11
  3. package/es/ele-admin-layout/props.js +4 -1
  4. package/es/ele-admin-layout/style/index.scss +7 -2
  5. package/es/ele-admin-layout/style/sidebar.scss +2 -0
  6. package/es/ele-alert/index.d.ts +15 -15
  7. package/es/ele-alert/index.js +3 -3
  8. package/es/ele-alert/props.d.ts +9 -8
  9. package/es/ele-app/components/message-body.d.ts +6 -5
  10. package/es/ele-app/components/message-body.js +2 -2
  11. package/es/ele-app/components/message-box-icon.d.ts +7 -6
  12. package/es/ele-app/plus.d.ts +3 -0
  13. package/es/ele-app/style/overwrite/input/index.scss +2 -0
  14. package/es/ele-avatar-group/index.d.ts +19 -18
  15. package/es/ele-avatar-group/index.js +15 -15
  16. package/es/ele-avatar-group/props.d.ts +10 -7
  17. package/es/ele-basic-select/index.d.ts +22 -19
  18. package/es/ele-basic-select/index.js +30 -23
  19. package/es/ele-basic-select/props.d.ts +11 -6
  20. package/es/ele-basic-select/props.js +3 -1
  21. package/es/ele-basic-select/util.d.ts +6 -0
  22. package/es/ele-basic-select/util.js +13 -0
  23. package/es/ele-bottom-bar/index.d.ts +4 -4
  24. package/es/ele-bottom-bar/props.d.ts +3 -2
  25. package/es/ele-breadcrumb/index.d.ts +3 -3
  26. package/es/ele-breadcrumb/props.d.ts +1 -1
  27. package/es/ele-card/index.d.ts +14 -14
  28. package/es/ele-card/props.d.ts +8 -6
  29. package/es/ele-check-card/components/card-item.d.ts +3 -2
  30. package/es/ele-check-card/index.d.ts +5 -5
  31. package/es/ele-check-card/index.js +12 -7
  32. package/es/ele-check-card/props.d.ts +3 -2
  33. package/es/ele-config-provider/index.d.ts +4 -4
  34. package/es/ele-config-provider/props.d.ts +3 -3
  35. package/es/ele-config-provider/types.d.ts +1 -0
  36. package/es/ele-copyable/index.d.ts +12 -12
  37. package/es/ele-copyable/index.js +6 -6
  38. package/es/ele-copyable/props.d.ts +7 -5
  39. package/es/ele-count-up/index.d.ts +1 -1
  40. package/es/ele-cropper/components/cropper-tools.d.ts +6 -5
  41. package/es/ele-cropper/components/cropper-tools.js +10 -10
  42. package/es/ele-cropper/index.d.ts +16 -16
  43. package/es/ele-cropper/index.js +39 -39
  44. package/es/ele-cropper/props.d.ts +2 -1
  45. package/es/ele-cropper-modal/index.d.ts +5 -5
  46. package/es/ele-cropper-modal/index.js +3 -3
  47. package/es/ele-cropper-modal/props.d.ts +1 -4
  48. package/es/ele-data-table/index.d.ts +22 -22
  49. package/es/ele-data-table/props.d.ts +16 -16
  50. package/es/ele-data-table/style/index.scss +1 -1
  51. package/es/ele-data-table/types.d.ts +2 -0
  52. package/es/ele-data-table/util.js +6 -2
  53. package/es/ele-drawer/index.d.ts +18 -18
  54. package/es/ele-drawer/index.js +18 -18
  55. package/es/ele-drawer/props.d.ts +11 -10
  56. package/es/ele-dropdown/index.d.ts +24 -24
  57. package/es/ele-dropdown/index.js +54 -48
  58. package/es/ele-dropdown/props.d.ts +13 -12
  59. package/es/ele-dropdown/types.d.ts +2 -0
  60. package/es/ele-edit-tag/index.d.ts +21 -19
  61. package/es/ele-edit-tag/index.js +10 -2
  62. package/es/ele-edit-tag/props.d.ts +13 -8
  63. package/es/ele-edit-tag/props.js +3 -1
  64. package/es/ele-ellipsis/index.d.ts +6 -5
  65. package/es/ele-ellipsis/index.js +3 -3
  66. package/es/ele-ellipsis/props.d.ts +1 -1
  67. package/es/ele-file-list/components/file-grid-item.d.ts +5 -5
  68. package/es/ele-file-list/components/file-grid-item.js +15 -15
  69. package/es/ele-file-list/components/file-grid.d.ts +6 -6
  70. package/es/ele-file-list/components/file-grid.js +15 -15
  71. package/es/ele-file-list/components/file-table-item.d.ts +5 -5
  72. package/es/ele-file-list/components/file-table-item.js +15 -15
  73. package/es/ele-file-list/components/file-table.d.ts +7 -7
  74. package/es/ele-file-list/components/file-table.js +19 -19
  75. package/es/ele-file-list/index.d.ts +10 -10
  76. package/es/ele-file-list/index.js +22 -22
  77. package/es/ele-file-list-tool/index.d.ts +1 -1
  78. package/es/ele-file-list-tool/index.js +2 -2
  79. package/es/ele-icon-select/components/icon-grid.d.ts +10 -8
  80. package/es/ele-icon-select/components/icon-grid.js +6 -6
  81. package/es/ele-icon-select/index.d.ts +44 -43
  82. package/es/ele-icon-select/index.js +29 -25
  83. package/es/ele-icon-select/props.d.ts +18 -14
  84. package/es/ele-icon-select/props.js +2 -0
  85. package/es/ele-loading/index.d.ts +4 -4
  86. package/es/ele-loading/props.d.ts +3 -2
  87. package/es/ele-map-picker/components/map-view.d.ts +26 -28
  88. package/es/ele-map-picker/components/map-view.js +1 -0
  89. package/es/ele-map-picker/index.d.ts +10 -10
  90. package/es/ele-map-picker/props.d.ts +6 -5
  91. package/es/ele-map-picker/style/index.scss +1 -1
  92. package/es/ele-menus/index.d.ts +2 -2
  93. package/es/ele-menus/index.js +15 -15
  94. package/es/ele-menus/props.d.ts +1 -1
  95. package/es/ele-menus/style/index.scss +5 -0
  96. package/es/ele-menus/util.d.ts +7 -0
  97. package/es/ele-menus/util.js +49 -26
  98. package/es/ele-modal/index.d.ts +30 -29
  99. package/es/ele-modal/index.js +48 -82
  100. package/es/ele-modal/props.d.ts +14 -13
  101. package/es/ele-modal/util.d.ts +31 -24
  102. package/es/ele-modal/util.js +235 -132
  103. package/es/ele-pagination/index.d.ts +20 -8
  104. package/es/ele-pagination/index.js +9 -8
  105. package/es/ele-pagination/props.d.ts +8 -2
  106. package/es/ele-pagination/style/index.scss +70 -0
  107. package/es/ele-popconfirm/index.d.ts +37 -47
  108. package/es/ele-popconfirm/index.js +15 -15
  109. package/es/ele-popconfirm/props.d.ts +18 -21
  110. package/es/ele-popover/index.d.ts +27 -37
  111. package/es/ele-popover/index.js +15 -15
  112. package/es/ele-popover/props.d.ts +11 -15
  113. package/es/ele-popover/props.js +1 -0
  114. package/es/ele-printer/index.d.ts +9 -9
  115. package/es/ele-printer/index.js +19 -22
  116. package/es/ele-printer/props.d.ts +6 -5
  117. package/es/ele-printer/style/index.scss +2 -2
  118. package/es/ele-printer/types.d.ts +0 -2
  119. package/es/ele-printer/util.d.ts +7 -28
  120. package/es/ele-printer/util.js +111 -77
  121. package/es/ele-pro-layout/index.d.ts +44 -48
  122. package/es/ele-pro-layout/index.js +2 -2
  123. package/es/ele-pro-layout/props.d.ts +17 -15
  124. package/es/ele-pro-layout/props.js +1 -1
  125. package/es/ele-pro-table/components/table-tools.d.ts +405 -35
  126. package/es/ele-pro-table/components/table-tools.js +227 -151
  127. package/es/ele-pro-table/components/tool-column-list.d.ts +21 -9
  128. package/es/ele-pro-table/components/tool-column-list.js +64 -37
  129. package/es/ele-pro-table/components/tool-column.d.ts +31 -44
  130. package/es/ele-pro-table/components/tool-column.js +87 -103
  131. package/es/ele-pro-table/components/tool-export.d.ts +37 -34
  132. package/es/ele-pro-table/components/tool-export.js +223 -215
  133. package/es/ele-pro-table/components/tool-print-body-cell.d.ts +5 -4
  134. package/es/ele-pro-table/components/tool-print-header-cell.d.ts +5 -4
  135. package/es/ele-pro-table/components/tool-print.d.ts +47 -43
  136. package/es/ele-pro-table/components/tool-print.js +380 -369
  137. package/es/ele-pro-table/index.d.ts +1020 -81
  138. package/es/ele-pro-table/index.js +103 -76
  139. package/es/ele-pro-table/props.d.ts +18 -19
  140. package/es/ele-pro-table/props.js +4 -2
  141. package/es/ele-pro-table/style/index.scss +44 -12
  142. package/es/ele-pro-table/types.d.ts +54 -0
  143. package/es/ele-pro-table/util.d.ts +84 -34
  144. package/es/ele-pro-table/util.js +186 -94
  145. package/es/ele-qr-code/components/canvas-render.d.ts +67 -0
  146. package/es/ele-qr-code/components/canvas-render.js +147 -0
  147. package/es/ele-qr-code/index.d.ts +5 -9
  148. package/es/ele-qr-code/index.js +33 -136
  149. package/es/ele-qr-code/props.d.ts +5 -2
  150. package/es/ele-qr-code/props.js +3 -1
  151. package/es/ele-qr-code/types.d.ts +5 -0
  152. package/es/ele-qr-code-svg/index.d.ts +6 -5
  153. package/es/ele-qr-code-svg/index.js +11 -14
  154. package/es/ele-segmented/index.d.ts +1 -1
  155. package/es/ele-segmented/index.js +6 -3
  156. package/es/ele-split-panel/index.d.ts +8 -8
  157. package/es/ele-split-panel/index.js +3 -3
  158. package/es/ele-split-panel/props.d.ts +4 -3
  159. package/es/ele-steps/index.d.ts +2 -2
  160. package/es/ele-steps/props.d.ts +2 -2
  161. package/es/ele-tab-wrap/components/tab-dropdown.d.ts +1 -1
  162. package/es/ele-tab-wrap/components/tab-dropdown.js +3 -3
  163. package/es/ele-table/index.d.ts +2 -2
  164. package/es/ele-table/props.d.ts +2 -1
  165. package/es/ele-table-select/index.d.ts +29 -27
  166. package/es/ele-table-select/index.js +47 -39
  167. package/es/ele-table-select/props.d.ts +11 -7
  168. package/es/ele-table-select/props.js +2 -0
  169. package/es/ele-tabs/index.d.ts +19 -34
  170. package/es/ele-tabs/index.js +133 -86
  171. package/es/ele-tabs/props.d.ts +10 -24
  172. package/es/ele-tabs/props.js +3 -1
  173. package/es/ele-tabs/style/index.scss +42 -2
  174. package/es/ele-tabs/types.d.ts +2 -11
  175. package/es/ele-text/index.d.ts +2 -2
  176. package/es/ele-text/props.d.ts +2 -1
  177. package/es/ele-tool/index.d.ts +11 -5
  178. package/es/ele-tool/index.js +32 -32
  179. package/es/ele-tool/props.d.ts +4 -1
  180. package/es/ele-tool/props.js +3 -1
  181. package/es/ele-tool/style/index.js +0 -1
  182. package/es/ele-toolbar/index.d.ts +3253 -7
  183. package/es/ele-toolbar/index.js +44 -5
  184. package/es/ele-toolbar/props.d.ts +10 -5
  185. package/es/ele-toolbar/props.js +2 -0
  186. package/es/ele-toolbar/style/index.js +1 -0
  187. package/es/ele-toolbar/types.d.ts +15 -0
  188. package/es/ele-tooltip/index.d.ts +22 -21
  189. package/es/ele-tooltip/index.js +25 -25
  190. package/es/ele-tooltip/props.d.ts +7 -6
  191. package/es/ele-tour/index.d.ts +4 -4
  192. package/es/ele-tour/index.js +10 -10
  193. package/es/ele-tree-select/index.d.ts +27 -27
  194. package/es/ele-tree-select/index.js +33 -30
  195. package/es/ele-tree-select/props.d.ts +12 -8
  196. package/es/ele-tree-select/props.js +3 -1
  197. package/es/ele-upload-list/components/list-item.d.ts +3 -3
  198. package/es/ele-upload-list/components/list-item.js +7 -7
  199. package/es/ele-upload-list/index.d.ts +11 -13
  200. package/es/ele-upload-list/index.js +13 -13
  201. package/es/ele-upload-list/props.d.ts +4 -3
  202. package/es/ele-upload-list/style/index.scss +4 -0
  203. package/es/ele-virtual-table/components/body-cell.d.ts +19 -35
  204. package/es/ele-virtual-table/components/body-cell.js +24 -24
  205. package/es/ele-virtual-table/components/body-row.d.ts +20 -36
  206. package/es/ele-virtual-table/components/body-row.js +21 -21
  207. package/es/ele-virtual-table/components/cell-checkbox.d.ts +4 -3
  208. package/es/ele-virtual-table/components/cell-checkbox.js +3 -3
  209. package/es/ele-virtual-table/components/cell-filter.d.ts +11 -11
  210. package/es/ele-virtual-table/components/cell-filter.js +18 -18
  211. package/es/ele-virtual-table/components/footer-row.d.ts +4 -4
  212. package/es/ele-virtual-table/components/footer-row.js +3 -3
  213. package/es/ele-virtual-table/components/header-cell.d.ts +12 -12
  214. package/es/ele-virtual-table/components/header-cell.js +15 -15
  215. package/es/ele-virtual-table/components/header-row.d.ts +12 -12
  216. package/es/ele-virtual-table/components/header-row.js +15 -15
  217. package/es/ele-virtual-table/index.d.ts +36 -35
  218. package/es/ele-virtual-table/index.js +50 -48
  219. package/es/ele-virtual-table/props.d.ts +11 -11
  220. package/es/ele-virtual-table/util.js +3 -3
  221. package/es/ele-watermark/index.d.ts +5 -4
  222. package/es/ele-watermark/index.js +1 -0
  223. package/es/ele-watermark/props.d.ts +2 -1
  224. package/es/ele-xg-player/index.d.ts +3 -3
  225. package/es/icons/SizeCompactOutlined.d.ts +2 -0
  226. package/es/icons/SizeCompactOutlined.js +34 -0
  227. package/es/icons/SizeSlackOutlined.d.ts +2 -0
  228. package/es/icons/SizeSlackOutlined.js +34 -0
  229. package/es/icons/index.d.ts +2 -0
  230. package/es/icons/index.js +46 -42
  231. package/es/lang/en_US.js +1 -0
  232. package/es/lang/zh_CN.js +1 -0
  233. package/es/lang/zh_TW.js +1 -0
  234. package/es/style/themes/default.scss +20 -13
  235. package/es/style/themes/rounded.scss +4 -9
  236. package/es/utils/core.d.ts +7 -1
  237. package/es/utils/hook.d.ts +75 -4
  238. package/es/utils/hook.js +155 -6
  239. package/lib/ele-admin-layout/index.d.ts +29 -24
  240. package/lib/ele-admin-layout/props.cjs +4 -1
  241. package/lib/ele-admin-layout/props.d.ts +15 -11
  242. package/lib/ele-admin-layout/style/index.scss +7 -2
  243. package/lib/ele-admin-layout/style/sidebar.scss +2 -0
  244. package/lib/ele-alert/index.cjs +3 -3
  245. package/lib/ele-alert/index.d.ts +15 -15
  246. package/lib/ele-alert/props.d.ts +9 -8
  247. package/lib/ele-app/components/message-body.cjs +2 -2
  248. package/lib/ele-app/components/message-body.d.ts +6 -5
  249. package/lib/ele-app/components/message-box-icon.d.ts +7 -6
  250. package/lib/ele-app/plus.d.ts +3 -0
  251. package/lib/ele-app/style/overwrite/input/index.scss +2 -0
  252. package/lib/ele-avatar-group/index.cjs +15 -15
  253. package/lib/ele-avatar-group/index.d.ts +19 -18
  254. package/lib/ele-avatar-group/props.d.ts +10 -7
  255. package/lib/ele-basic-select/index.cjs +30 -23
  256. package/lib/ele-basic-select/index.d.ts +22 -19
  257. package/lib/ele-basic-select/props.cjs +3 -1
  258. package/lib/ele-basic-select/props.d.ts +11 -6
  259. package/lib/ele-basic-select/util.cjs +13 -0
  260. package/lib/ele-basic-select/util.d.ts +6 -0
  261. package/lib/ele-bottom-bar/index.d.ts +4 -4
  262. package/lib/ele-bottom-bar/props.d.ts +3 -2
  263. package/lib/ele-breadcrumb/index.d.ts +3 -3
  264. package/lib/ele-breadcrumb/props.d.ts +1 -1
  265. package/lib/ele-card/index.d.ts +14 -14
  266. package/lib/ele-card/props.d.ts +8 -6
  267. package/lib/ele-check-card/components/card-item.d.ts +3 -2
  268. package/lib/ele-check-card/index.cjs +12 -7
  269. package/lib/ele-check-card/index.d.ts +5 -5
  270. package/lib/ele-check-card/props.d.ts +3 -2
  271. package/lib/ele-config-provider/index.d.ts +4 -4
  272. package/lib/ele-config-provider/props.d.ts +3 -3
  273. package/lib/ele-config-provider/types.d.ts +1 -0
  274. package/lib/ele-copyable/index.cjs +6 -6
  275. package/lib/ele-copyable/index.d.ts +12 -12
  276. package/lib/ele-copyable/props.d.ts +7 -5
  277. package/lib/ele-count-up/index.d.ts +1 -1
  278. package/lib/ele-cropper/components/cropper-tools.cjs +10 -10
  279. package/lib/ele-cropper/components/cropper-tools.d.ts +6 -5
  280. package/lib/ele-cropper/index.cjs +39 -39
  281. package/lib/ele-cropper/index.d.ts +16 -16
  282. package/lib/ele-cropper/props.d.ts +2 -1
  283. package/lib/ele-cropper-modal/index.cjs +3 -3
  284. package/lib/ele-cropper-modal/index.d.ts +5 -5
  285. package/lib/ele-cropper-modal/props.d.ts +1 -4
  286. package/lib/ele-data-table/index.d.ts +22 -22
  287. package/lib/ele-data-table/props.d.ts +16 -16
  288. package/lib/ele-data-table/style/index.scss +1 -1
  289. package/lib/ele-data-table/types.d.ts +2 -0
  290. package/lib/ele-data-table/util.cjs +6 -2
  291. package/lib/ele-drawer/index.cjs +18 -18
  292. package/lib/ele-drawer/index.d.ts +18 -18
  293. package/lib/ele-drawer/props.d.ts +11 -10
  294. package/lib/ele-dropdown/index.cjs +54 -48
  295. package/lib/ele-dropdown/index.d.ts +24 -24
  296. package/lib/ele-dropdown/props.d.ts +13 -12
  297. package/lib/ele-dropdown/types.d.ts +2 -0
  298. package/lib/ele-edit-tag/index.cjs +10 -2
  299. package/lib/ele-edit-tag/index.d.ts +21 -19
  300. package/lib/ele-edit-tag/props.cjs +3 -1
  301. package/lib/ele-edit-tag/props.d.ts +13 -8
  302. package/lib/ele-ellipsis/index.cjs +3 -3
  303. package/lib/ele-ellipsis/index.d.ts +6 -5
  304. package/lib/ele-ellipsis/props.d.ts +1 -1
  305. package/lib/ele-file-list/components/file-grid-item.cjs +15 -15
  306. package/lib/ele-file-list/components/file-grid-item.d.ts +5 -5
  307. package/lib/ele-file-list/components/file-grid.cjs +15 -15
  308. package/lib/ele-file-list/components/file-grid.d.ts +6 -6
  309. package/lib/ele-file-list/components/file-table-item.cjs +15 -15
  310. package/lib/ele-file-list/components/file-table-item.d.ts +5 -5
  311. package/lib/ele-file-list/components/file-table.cjs +19 -19
  312. package/lib/ele-file-list/components/file-table.d.ts +7 -7
  313. package/lib/ele-file-list/index.cjs +22 -22
  314. package/lib/ele-file-list/index.d.ts +10 -10
  315. package/lib/ele-file-list-tool/index.cjs +2 -2
  316. package/lib/ele-file-list-tool/index.d.ts +1 -1
  317. package/lib/ele-icon-select/components/icon-grid.cjs +6 -6
  318. package/lib/ele-icon-select/components/icon-grid.d.ts +10 -8
  319. package/lib/ele-icon-select/index.cjs +32 -28
  320. package/lib/ele-icon-select/index.d.ts +44 -43
  321. package/lib/ele-icon-select/props.cjs +2 -0
  322. package/lib/ele-icon-select/props.d.ts +18 -14
  323. package/lib/ele-loading/index.d.ts +4 -4
  324. package/lib/ele-loading/props.d.ts +3 -2
  325. package/lib/ele-map-picker/components/map-view.cjs +1 -0
  326. package/lib/ele-map-picker/components/map-view.d.ts +26 -28
  327. package/lib/ele-map-picker/index.d.ts +10 -10
  328. package/lib/ele-map-picker/props.d.ts +6 -5
  329. package/lib/ele-map-picker/style/index.scss +1 -1
  330. package/lib/ele-menus/index.cjs +15 -15
  331. package/lib/ele-menus/index.d.ts +2 -2
  332. package/lib/ele-menus/props.d.ts +1 -1
  333. package/lib/ele-menus/style/index.scss +5 -0
  334. package/lib/ele-menus/util.cjs +49 -26
  335. package/lib/ele-menus/util.d.ts +7 -0
  336. package/lib/ele-modal/index.cjs +46 -80
  337. package/lib/ele-modal/index.d.ts +30 -29
  338. package/lib/ele-modal/props.d.ts +14 -13
  339. package/lib/ele-modal/util.cjs +235 -132
  340. package/lib/ele-modal/util.d.ts +31 -24
  341. package/lib/ele-pagination/index.cjs +9 -8
  342. package/lib/ele-pagination/index.d.ts +20 -8
  343. package/lib/ele-pagination/props.d.ts +8 -2
  344. package/lib/ele-pagination/style/index.scss +70 -0
  345. package/lib/ele-popconfirm/index.cjs +15 -15
  346. package/lib/ele-popconfirm/index.d.ts +37 -47
  347. package/lib/ele-popconfirm/props.d.ts +18 -21
  348. package/lib/ele-popover/index.cjs +15 -15
  349. package/lib/ele-popover/index.d.ts +27 -37
  350. package/lib/ele-popover/props.cjs +1 -0
  351. package/lib/ele-popover/props.d.ts +11 -15
  352. package/lib/ele-printer/index.cjs +17 -20
  353. package/lib/ele-printer/index.d.ts +9 -9
  354. package/lib/ele-printer/props.d.ts +6 -5
  355. package/lib/ele-printer/style/index.scss +2 -2
  356. package/lib/ele-printer/types.d.ts +0 -2
  357. package/lib/ele-printer/util.cjs +111 -77
  358. package/lib/ele-printer/util.d.ts +7 -28
  359. package/lib/ele-pro-layout/index.cjs +2 -2
  360. package/lib/ele-pro-layout/index.d.ts +44 -48
  361. package/lib/ele-pro-layout/props.cjs +1 -1
  362. package/lib/ele-pro-layout/props.d.ts +17 -15
  363. package/lib/ele-pro-table/components/table-tools.cjs +225 -149
  364. package/lib/ele-pro-table/components/table-tools.d.ts +405 -35
  365. package/lib/ele-pro-table/components/tool-column-list.cjs +63 -36
  366. package/lib/ele-pro-table/components/tool-column-list.d.ts +21 -9
  367. package/lib/ele-pro-table/components/tool-column.cjs +86 -102
  368. package/lib/ele-pro-table/components/tool-column.d.ts +31 -44
  369. package/lib/ele-pro-table/components/tool-export.cjs +220 -212
  370. package/lib/ele-pro-table/components/tool-export.d.ts +37 -34
  371. package/lib/ele-pro-table/components/tool-print-body-cell.d.ts +5 -4
  372. package/lib/ele-pro-table/components/tool-print-header-cell.d.ts +5 -4
  373. package/lib/ele-pro-table/components/tool-print.cjs +377 -366
  374. package/lib/ele-pro-table/components/tool-print.d.ts +47 -43
  375. package/lib/ele-pro-table/index.cjs +100 -73
  376. package/lib/ele-pro-table/index.d.ts +1020 -81
  377. package/lib/ele-pro-table/props.cjs +4 -2
  378. package/lib/ele-pro-table/props.d.ts +18 -19
  379. package/lib/ele-pro-table/style/index.scss +44 -12
  380. package/lib/ele-pro-table/types.d.ts +54 -0
  381. package/lib/ele-pro-table/util.cjs +186 -94
  382. package/lib/ele-pro-table/util.d.ts +84 -34
  383. package/lib/ele-qr-code/components/canvas-render.cjs +146 -0
  384. package/lib/ele-qr-code/components/canvas-render.d.ts +67 -0
  385. package/lib/ele-qr-code/index.cjs +32 -135
  386. package/lib/ele-qr-code/index.d.ts +5 -9
  387. package/lib/ele-qr-code/props.cjs +3 -1
  388. package/lib/ele-qr-code/props.d.ts +5 -2
  389. package/lib/ele-qr-code/types.d.ts +5 -0
  390. package/lib/ele-qr-code-svg/index.cjs +10 -13
  391. package/lib/ele-qr-code-svg/index.d.ts +6 -5
  392. package/lib/ele-segmented/index.cjs +6 -3
  393. package/lib/ele-segmented/index.d.ts +1 -1
  394. package/lib/ele-split-panel/index.cjs +3 -3
  395. package/lib/ele-split-panel/index.d.ts +8 -8
  396. package/lib/ele-split-panel/props.d.ts +4 -3
  397. package/lib/ele-steps/index.d.ts +2 -2
  398. package/lib/ele-steps/props.d.ts +2 -2
  399. package/lib/ele-tab-wrap/components/tab-dropdown.cjs +3 -3
  400. package/lib/ele-tab-wrap/components/tab-dropdown.d.ts +1 -1
  401. package/lib/ele-table/index.d.ts +2 -2
  402. package/lib/ele-table/props.d.ts +2 -1
  403. package/lib/ele-table-select/index.cjs +62 -54
  404. package/lib/ele-table-select/index.d.ts +29 -27
  405. package/lib/ele-table-select/props.cjs +2 -0
  406. package/lib/ele-table-select/props.d.ts +11 -7
  407. package/lib/ele-tabs/index.cjs +132 -85
  408. package/lib/ele-tabs/index.d.ts +19 -34
  409. package/lib/ele-tabs/props.cjs +3 -1
  410. package/lib/ele-tabs/props.d.ts +10 -24
  411. package/lib/ele-tabs/style/index.scss +42 -2
  412. package/lib/ele-tabs/types.d.ts +2 -11
  413. package/lib/ele-text/index.d.ts +2 -2
  414. package/lib/ele-text/props.d.ts +2 -1
  415. package/lib/ele-tool/index.cjs +31 -31
  416. package/lib/ele-tool/index.d.ts +11 -5
  417. package/lib/ele-tool/props.cjs +3 -1
  418. package/lib/ele-tool/props.d.ts +4 -1
  419. package/lib/ele-tool/style/index.cjs +0 -1
  420. package/lib/ele-toolbar/index.cjs +42 -3
  421. package/lib/ele-toolbar/index.d.ts +3253 -7
  422. package/lib/ele-toolbar/props.cjs +2 -0
  423. package/lib/ele-toolbar/props.d.ts +10 -5
  424. package/lib/ele-toolbar/style/index.cjs +1 -0
  425. package/lib/ele-toolbar/types.d.ts +15 -0
  426. package/lib/ele-tooltip/index.cjs +25 -25
  427. package/lib/ele-tooltip/index.d.ts +22 -21
  428. package/lib/ele-tooltip/props.d.ts +7 -6
  429. package/lib/ele-tour/index.cjs +10 -10
  430. package/lib/ele-tour/index.d.ts +4 -4
  431. package/lib/ele-tree-select/index.cjs +32 -29
  432. package/lib/ele-tree-select/index.d.ts +27 -27
  433. package/lib/ele-tree-select/props.cjs +3 -1
  434. package/lib/ele-tree-select/props.d.ts +12 -8
  435. package/lib/ele-upload-list/components/list-item.cjs +7 -7
  436. package/lib/ele-upload-list/components/list-item.d.ts +3 -3
  437. package/lib/ele-upload-list/index.cjs +13 -13
  438. package/lib/ele-upload-list/index.d.ts +11 -13
  439. package/lib/ele-upload-list/props.d.ts +4 -3
  440. package/lib/ele-upload-list/style/index.scss +4 -0
  441. package/lib/ele-virtual-table/components/body-cell.cjs +24 -24
  442. package/lib/ele-virtual-table/components/body-cell.d.ts +19 -35
  443. package/lib/ele-virtual-table/components/body-row.cjs +21 -21
  444. package/lib/ele-virtual-table/components/body-row.d.ts +20 -36
  445. package/lib/ele-virtual-table/components/cell-checkbox.cjs +3 -3
  446. package/lib/ele-virtual-table/components/cell-checkbox.d.ts +4 -3
  447. package/lib/ele-virtual-table/components/cell-filter.cjs +18 -18
  448. package/lib/ele-virtual-table/components/cell-filter.d.ts +11 -11
  449. package/lib/ele-virtual-table/components/footer-row.cjs +3 -3
  450. package/lib/ele-virtual-table/components/footer-row.d.ts +4 -4
  451. package/lib/ele-virtual-table/components/header-cell.cjs +15 -15
  452. package/lib/ele-virtual-table/components/header-cell.d.ts +12 -12
  453. package/lib/ele-virtual-table/components/header-row.cjs +15 -15
  454. package/lib/ele-virtual-table/components/header-row.d.ts +12 -12
  455. package/lib/ele-virtual-table/index.cjs +50 -48
  456. package/lib/ele-virtual-table/index.d.ts +36 -35
  457. package/lib/ele-virtual-table/props.d.ts +11 -11
  458. package/lib/ele-virtual-table/util.cjs +3 -3
  459. package/lib/ele-watermark/index.cjs +1 -0
  460. package/lib/ele-watermark/index.d.ts +5 -4
  461. package/lib/ele-watermark/props.d.ts +2 -1
  462. package/lib/ele-xg-player/index.d.ts +3 -3
  463. package/lib/icons/SizeCompactOutlined.cjs +33 -0
  464. package/lib/icons/SizeCompactOutlined.d.ts +2 -0
  465. package/lib/icons/SizeSlackOutlined.cjs +33 -0
  466. package/lib/icons/SizeSlackOutlined.d.ts +2 -0
  467. package/lib/icons/index.cjs +4 -0
  468. package/lib/icons/index.d.ts +2 -0
  469. package/lib/lang/en_US.cjs +1 -0
  470. package/lib/lang/zh_CN.cjs +1 -0
  471. package/lib/lang/zh_TW.cjs +1 -0
  472. package/lib/style/themes/default.scss +20 -13
  473. package/lib/style/themes/rounded.scss +4 -9
  474. package/lib/utils/core.d.ts +7 -1
  475. package/lib/utils/hook.cjs +154 -5
  476. package/lib/utils/hook.d.ts +75 -4
  477. package/package.json +14 -13
@@ -2,7 +2,7 @@ import { defineComponent, ref, computed, watch, onMounted, nextTick, resolveComp
2
2
  import { ElTreeV2 } from "element-plus";
3
3
  import { findTree } from "../utils/core";
4
4
  import EleBasicSelect from "../ele-basic-select/index";
5
- import { isEmptyValue, valueIsChanged } from "../ele-basic-select/util";
5
+ import { useFormValidate, isEmptyValue, valueIsChanged } from "../ele-basic-select/util";
6
6
  import { getModelValue, getNormalSelectedItems, checkSelectedItems, getTreeSelectedItems, isCheckAll } from "./util";
7
7
  import { treeSelectProps, treeSelectEmits } from "./props";
8
8
  const _sfc_main = defineComponent({
@@ -11,6 +11,7 @@ const _sfc_main = defineComponent({
11
11
  props: treeSelectProps,
12
12
  emits: treeSelectEmits,
13
13
  setup(props, { emit }) {
14
+ const { validateChange } = useFormValidate();
14
15
  const selectRef = ref(null);
15
16
  const treeRef = ref(null);
16
17
  const selectVisible = ref(false);
@@ -133,7 +134,7 @@ const _sfc_main = defineComponent({
133
134
  const label = item[treeOptions.value.label];
134
135
  return label != null && label.includes(keywords);
135
136
  };
136
- const onSelectFilter = (keywords) => {
137
+ const handleSelectFilter = (keywords) => {
137
138
  treeRef.value && treeRef.value.filter(keywords);
138
139
  };
139
140
  const focusSearchInput = () => {
@@ -142,19 +143,20 @@ const _sfc_main = defineComponent({
142
143
  const updateModelValue = (modelValue) => {
143
144
  if (valueIsChanged(modelValue, props.modelValue, props.multiple)) {
144
145
  emit("update:modelValue", modelValue);
146
+ validateChange();
145
147
  emit("change", modelValue);
146
148
  }
147
149
  };
148
150
  const updateVisible = (visible) => {
149
151
  if (visible) {
150
- onSelectFilter("");
152
+ handleSelectFilter("");
151
153
  }
152
154
  if (selectVisible.value !== visible) {
153
155
  selectVisible.value = visible;
154
156
  emit("visibleChange", visible);
155
157
  }
156
158
  };
157
- const onSelectRemove = (item) => {
159
+ const handleSelectRemove = (item) => {
158
160
  treeRef.value && treeRef.value.setChecked(item.value, false);
159
161
  const keys = treeRef.value && treeRef.value.getCheckedKeys() || [];
160
162
  selectedItems.value = getMultipleSelected(keys);
@@ -163,18 +165,18 @@ const _sfc_main = defineComponent({
163
165
  );
164
166
  emit("removeTag", item.value);
165
167
  };
166
- const onSelectClear = () => {
168
+ const handleSelectClear = () => {
167
169
  updateModelValue(props.multiple ? [] : null);
168
170
  updateVisible(false);
169
171
  emit("clear");
170
172
  };
171
- const onSelectFocus = (e) => {
173
+ const handleSelectFocus = (e) => {
172
174
  emit("focus", e);
173
175
  };
174
- const onSelectBlur = (e) => {
176
+ const handleSelectBlur = (e) => {
175
177
  emit("blur", e);
176
178
  };
177
- const onTreeClick = (item, _node, e) => {
179
+ const handleTreeClick = (item, _node, e) => {
178
180
  var _a, _b, _c;
179
181
  e.stopPropagation();
180
182
  const valueKey = treeOptions.value.value;
@@ -240,7 +242,7 @@ const _sfc_main = defineComponent({
240
242
  );
241
243
  }
242
244
  };
243
- const onTreeCheck = () => {
245
+ const handleTreeCheck = () => {
244
246
  const keys = treeRef.value && treeRef.value.getCheckedKeys() || [];
245
247
  selectedItems.value = getMultipleSelected(keys);
246
248
  updateModelValue(
@@ -248,10 +250,10 @@ const _sfc_main = defineComponent({
248
250
  );
249
251
  focusSearchInput();
250
252
  };
251
- const onTreeExpand = () => {
253
+ const handleTreeExpand = () => {
252
254
  focusSearchInput();
253
255
  };
254
- const onTreeCollapse = () => {
256
+ const handleTreeCollapse = () => {
255
257
  focusSearchInput();
256
258
  };
257
259
  watch(
@@ -353,15 +355,15 @@ const _sfc_main = defineComponent({
353
355
  updatePopover,
354
356
  treeFilter,
355
357
  updateVisible,
356
- onSelectFilter,
357
- onSelectRemove,
358
- onSelectClear,
359
- onSelectFocus,
360
- onSelectBlur,
361
- onTreeClick,
362
- onTreeCheck,
363
- onTreeExpand,
364
- onTreeCollapse
358
+ handleSelectFilter,
359
+ handleSelectRemove,
360
+ handleSelectClear,
361
+ handleSelectFocus,
362
+ handleSelectBlur,
363
+ handleTreeClick,
364
+ handleTreeCheck,
365
+ handleTreeExpand,
366
+ handleTreeCollapse
365
367
  };
366
368
  }
367
369
  });
@@ -398,15 +400,16 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
398
400
  popperClass: _ctx.selectPopperClass,
399
401
  selectStyle: _ctx.selectStyle,
400
402
  inputStyle: _ctx.inputStyle,
403
+ selectTagsStyle: _ctx.selectTagsStyle,
401
404
  selectedLabel: _ctx.selectedLabel,
402
405
  selected: _ctx.selectedItems.filter((d) => !d.hide),
403
406
  visible: _ctx.selectVisible,
404
407
  "onUpdate:visible": _ctx.updateVisible,
405
- onFilterChange: _ctx.onSelectFilter,
406
- onRemoveTag: _ctx.onSelectRemove,
407
- onClear: _ctx.onSelectClear,
408
- onFocus: _ctx.onSelectFocus,
409
- onBlur: _ctx.onSelectBlur
408
+ onFilterChange: _ctx.handleSelectFilter,
409
+ onRemoveTag: _ctx.handleSelectRemove,
410
+ onClear: _ctx.handleSelectClear,
411
+ onFocus: _ctx.handleSelectFocus,
412
+ onBlur: _ctx.handleSelectBlur
410
413
  }, createSlots({
411
414
  default: withCtx(() => [
412
415
  createVNode(_component_ElTreeV2, mergeProps({
@@ -419,10 +422,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
419
422
  showCheckbox: !!_ctx.multiple,
420
423
  checkOnClickNode: false,
421
424
  defaultCheckedKeys: _ctx.multiple ? _ctx.modelValue : void 0,
422
- onCheck: _ctx.onTreeCheck,
423
- onNodeClick: _ctx.onTreeClick,
424
- onNodeExpand: _ctx.onTreeExpand,
425
- onNodeCollapse: _ctx.onTreeCollapse
425
+ onCheck: _ctx.handleTreeCheck,
426
+ onNodeClick: _ctx.handleTreeClick,
427
+ onNodeExpand: _ctx.handleTreeExpand,
428
+ onNodeCollapse: _ctx.handleTreeCollapse
426
429
  }), {
427
430
  default: withCtx((slotProps) => [
428
431
  createElementVNode("span", {
@@ -449,7 +452,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
449
452
  ]),
450
453
  key: "0"
451
454
  } : void 0
452
- ]), 1032, ["value", "multiple", "disabled", "size", "clearable", "placeholder", "maxTagCount", "maxTagTextLength", "tagType", "automaticDropdown", "filterable", "teleported", "persistent", "placement", "transition", "popperWidth", "popperOptions", "popperClass", "selectStyle", "inputStyle", "selectedLabel", "selected", "visible", "onUpdate:visible", "onFilterChange", "onRemoveTag", "onClear", "onFocus", "onBlur"]);
455
+ ]), 1032, ["value", "multiple", "disabled", "size", "clearable", "placeholder", "maxTagCount", "maxTagTextLength", "tagType", "automaticDropdown", "filterable", "teleported", "persistent", "placement", "transition", "popperWidth", "popperOptions", "popperClass", "selectStyle", "inputStyle", "selectTagsStyle", "selectedLabel", "selected", "visible", "onUpdate:visible", "onFilterChange", "onRemoveTag", "onClear", "onFocus", "onBlur"]);
453
456
  }
454
457
  const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
455
458
  export {
@@ -1,5 +1,7 @@
1
1
  import { PropType, ExtractPropTypes } from 'vue';
2
- import { ElTreeV2Props } from '../ele-app/el';
2
+ import { StyleValue } from '../ele-app/types';
3
+ import { ElInputProps, ElTagProps, ElTreeV2Props } from '../ele-app/el';
4
+ import { EleTooltipProps } from '../ele-app/plus';
3
5
  import { SelectValue, SingleValue } from '../ele-basic-select/types';
4
6
  import { ShowCheckedStrategy } from './types';
5
7
 
@@ -17,13 +19,13 @@ export declare const treeSelectProps: {
17
19
  /** 是否禁用 */
18
20
  disabled: BooleanConstructor;
19
21
  /** 尺寸 */
20
- size: PropType<import('element-plus/es/utils/index').EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never> | undefined>;
22
+ size: PropType<ElInputProps["size"]>;
21
23
  /** 是否支持清除 */
22
24
  clearable: BooleanConstructor;
23
25
  /** 无选中时提示文本 */
24
26
  placeholder: StringConstructor;
25
27
  /** 缓存数据 */
26
- cacheData: PropType<import('element-plus/es/components/tree-v2/src/types').TreeData | undefined>;
28
+ cacheData: PropType<ElTreeV2Props["data"]>;
27
29
  /** 树配置 */
28
30
  treeProps: {
29
31
  type: PropType<ElTreeV2Props>;
@@ -39,7 +41,7 @@ export declare const treeSelectProps: {
39
41
  maxTagTextLength: NumberConstructor;
40
42
  /** 多选标签类型 */
41
43
  tagType: {
42
- type: PropType<import('element-plus/es/utils/index').EpPropMergeType<StringConstructor, "success" | "warning" | "info" | "primary" | "danger", unknown> | undefined>;
44
+ type: PropType<ElTagProps["type"]>;
43
45
  default: string;
44
46
  };
45
47
  /** 是否在输入框获得焦点后自动弹出选项菜单 */
@@ -58,7 +60,7 @@ export declare const treeSelectProps: {
58
60
  };
59
61
  /** 下拉框位置 */
60
62
  placement: {
61
- type: PropType<import('element-plus/es/utils/index').EpPropMergeType<StringConstructor, import('element-plus').Placement, unknown> | undefined>;
63
+ type: PropType<EleTooltipProps["placement"]>;
62
64
  default: string;
63
65
  };
64
66
  /** 下拉框渐变动画 */
@@ -67,15 +69,17 @@ export declare const treeSelectProps: {
67
69
  default: string;
68
70
  };
69
71
  /** popper.js 参数 */
70
- popperOptions: PropType<Partial<import('element-plus').Options> | undefined>;
72
+ popperOptions: PropType<EleTooltipProps["popperOptions"]>;
71
73
  /** 下拉框类名 */
72
74
  popperClass: StringConstructor;
73
75
  /** 下拉框宽度 */
74
76
  popperWidth: (StringConstructor | NumberConstructor)[];
75
77
  /** 自定义样式 */
76
- selectStyle: PropType<Partial<import('vue').CSSProperties>>;
78
+ selectStyle: PropType<StyleValue>;
77
79
  /** 自定义输入框样式 */
78
- inputStyle: PropType<Partial<import('vue').CSSProperties>>;
80
+ inputStyle: PropType<StyleValue>;
81
+ /** 自定义多选标签容器样式 */
82
+ selectTagsStyle: PropType<StyleValue>;
79
83
  };
80
84
  export type TreeSelectProps = ExtractPropTypes<typeof treeSelectProps>;
81
85
  /**
@@ -69,7 +69,9 @@ const treeSelectProps = {
69
69
  /** 自定义样式 */
70
70
  selectStyle: Object,
71
71
  /** 自定义输入框样式 */
72
- inputStyle: Object
72
+ inputStyle: Object,
73
+ /** 自定义多选标签容器样式 */
74
+ selectTagsStyle: Object
73
75
  };
74
76
  const treeSelectEmits = {
75
77
  /** 更新选中值 */
@@ -22,9 +22,9 @@ declare const _default: import('vue').DefineComponent<{
22
22
  required: true;
23
23
  };
24
24
  }, {
25
- onRemove: () => void;
26
- onItemClick: () => void;
27
- onRetry: () => void;
25
+ handleRemove: () => void;
26
+ handleItemClick: () => void;
27
+ handleRetry: () => void;
28
28
  }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
29
29
  itemClick: (_item: UploadItem) => true;
30
30
  remove: (_item: UploadItem) => true;
@@ -39,16 +39,16 @@ const _sfc_main = defineComponent({
39
39
  retry: (_item) => true
40
40
  },
41
41
  setup(props, { emit }) {
42
- const onRemove = () => {
42
+ const handleRemove = () => {
43
43
  emit("remove", props.item);
44
44
  };
45
- const onItemClick = () => {
45
+ const handleItemClick = () => {
46
46
  emit("itemClick", props.item);
47
47
  };
48
- const onRetry = () => {
48
+ const handleRetry = () => {
49
49
  emit("retry", props.item);
50
50
  };
51
- return { onRemove, onItemClick, onRetry };
51
+ return { handleRemove, handleItemClick, handleRetry };
52
52
  }
53
53
  });
54
54
  const _export_sfc = (sfc, props) => {
@@ -83,7 +83,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
83
83
  return openBlock(), createElementBlock("div", {
84
84
  title: _ctx.item.name,
85
85
  class: "ele-upload-item",
86
- onClick: _cache[2] || (_cache[2] = (...args) => _ctx.onItemClick && _ctx.onItemClick(...args))
86
+ onClick: _cache[2] || (_cache[2] = (...args) => _ctx.handleItemClick && _ctx.handleItemClick(...args))
87
87
  }, [
88
88
  renderSlot(_ctx.$slots, "thumbnail", { item: _ctx.item }, () => [
89
89
  _ctx.item.url ? (openBlock(), createBlock(_component_ElImage, mergeProps({
@@ -103,7 +103,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
103
103
  !_ctx.readonly && !_ctx.disabled && !_ctx.item.readonly ? (openBlock(), createElementBlock("div", {
104
104
  key: 0,
105
105
  class: "ele-upload-remove",
106
- onClick: _cache[0] || (_cache[0] = withModifiers((...args) => _ctx.onRemove && _ctx.onRemove(...args), ["stop"]))
106
+ onClick: _cache[0] || (_cache[0] = withModifiers((...args) => _ctx.handleRemove && _ctx.handleRemove(...args), ["stop"]))
107
107
  }, [
108
108
  renderSlot(_ctx.$slots, "remove", { item: _ctx.item }, () => [
109
109
  createVNode(_component_ElIcon, null, {
@@ -125,7 +125,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
125
125
  _ctx.item.status === "exception" ? (openBlock(), createElementBlock("div", {
126
126
  key: 0,
127
127
  class: "ele-upload-retry",
128
- onClick: _cache[1] || (_cache[1] = withModifiers((...args) => _ctx.onRetry && _ctx.onRetry(...args), ["stop"]))
128
+ onClick: _cache[1] || (_cache[1] = withModifiers((...args) => _ctx.handleRetry && _ctx.handleRetry(...args), ["stop"]))
129
129
  }, [
130
130
  createVNode(_component_EleTooltip, {
131
131
  content: _ctx.locale.retry,
@@ -19,33 +19,32 @@ declare const _default: import('vue').DefineComponent<{
19
19
  type: StringConstructor;
20
20
  default: string;
21
21
  };
22
- itemStyle: import('vue').PropType<Partial<import('vue').CSSProperties>>;
23
- buttonStyle: import('vue').PropType<Partial<import('vue').CSSProperties>>;
22
+ itemStyle: import('vue').PropType<import('../ele-app/types').StyleValue>;
23
+ buttonStyle: import('vue').PropType<import('../ele-app/types').StyleValue>;
24
24
  sortable: {
25
- type: import('vue').PropType<boolean | Record<string | number | symbol, any>>;
25
+ type: import('vue').PropType<boolean | Record<keyof any, any>>;
26
26
  default: boolean;
27
27
  };
28
28
  imageProps: import('vue').PropType<import('../ele-app/el').ElImageProps>;
29
29
  progressProps: import('vue').PropType<import('../ele-app/el').ElProgressProps>;
30
30
  previewProps: import('vue').PropType<import('../ele-app/el').ElImageProps>;
31
- /** 当前图片地址 */
32
31
  locale: import('vue').PropType<Partial<UploadLocale>>;
33
32
  }, {
34
33
  lang: import('vue').ComputedRef<UploadLocale>;
35
34
  previewRef: import('vue').Ref<ElImageInstance>;
36
35
  previewOption: {
37
36
  visible: boolean;
38
- current?: string | undefined;
37
+ current?: string;
39
38
  currentIndex: number;
40
39
  images: string[];
41
40
  };
42
41
  uploadEnable: import('vue').ComputedRef<boolean>;
43
42
  draggableProps: import('vue').ComputedRef<Record<string | number | symbol, any>>;
44
43
  updateModelValue: (value: UploadItem[]) => void;
45
- onUpload: (file: File) => boolean;
46
- onItemRemove: (item: UploadItem) => void;
47
- onItemClick: (item: UploadItem) => void;
48
- onItemRetry: (item: UploadItem) => void;
44
+ handleUpload: (file: File) => boolean;
45
+ handleItemRemove: (item: UploadItem) => void;
46
+ handleItemClick: (item: UploadItem) => void;
47
+ handleItemRetry: (item: UploadItem) => void;
49
48
  }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
50
49
  'update:modelValue': (_value: UploadItem[]) => boolean;
51
50
  itemClick: (_item: UploadItem) => boolean;
@@ -70,16 +69,15 @@ declare const _default: import('vue').DefineComponent<{
70
69
  type: StringConstructor;
71
70
  default: string;
72
71
  };
73
- itemStyle: import('vue').PropType<Partial<import('vue').CSSProperties>>;
74
- buttonStyle: import('vue').PropType<Partial<import('vue').CSSProperties>>;
72
+ itemStyle: import('vue').PropType<import('../ele-app/types').StyleValue>;
73
+ buttonStyle: import('vue').PropType<import('../ele-app/types').StyleValue>;
75
74
  sortable: {
76
- type: import('vue').PropType<boolean | Record<string | number | symbol, any>>;
75
+ type: import('vue').PropType<boolean | Record<keyof any, any>>;
77
76
  default: boolean;
78
77
  };
79
78
  imageProps: import('vue').PropType<import('../ele-app/el').ElImageProps>;
80
79
  progressProps: import('vue').PropType<import('../ele-app/el').ElProgressProps>;
81
80
  previewProps: import('vue').PropType<import('../ele-app/el').ElImageProps>;
82
- /** 当前图片地址 */
83
81
  locale: import('vue').PropType<Partial<UploadLocale>>;
84
82
  }>> & {
85
83
  "onUpdate:modelValue"?: ((_value: UploadItem[]) => any) | undefined;
@@ -51,7 +51,7 @@ const _sfc_main = defineComponent({
51
51
  const updateModelValue = (value) => {
52
52
  emit("update:modelValue", value);
53
53
  };
54
- const onUpload = (file) => {
54
+ const handleUpload = (file) => {
55
55
  if (!uploadEnable.value || props.disabled) {
56
56
  return false;
57
57
  }
@@ -63,15 +63,15 @@ const _sfc_main = defineComponent({
63
63
  file
64
64
  };
65
65
  if (file.type.startsWith("image")) {
66
- item.url = window.URL.createObjectURL(file);
66
+ item.url = URL.createObjectURL(file);
67
67
  }
68
68
  emit("upload", item);
69
69
  return false;
70
70
  };
71
- const onItemRemove = (item) => {
71
+ const handleItemRemove = (item) => {
72
72
  emit("remove", item);
73
73
  };
74
- const onItemClick = (item) => {
74
+ const handleItemClick = (item) => {
75
75
  if (props.preview && item.url && props.modelValue != null) {
76
76
  const temp = props.modelValue.filter((d) => !!d.url);
77
77
  const i = temp.findIndex((t) => t.key === item.key);
@@ -92,7 +92,7 @@ const _sfc_main = defineComponent({
92
92
  }
93
93
  emit("itemClick", item);
94
94
  };
95
- const onItemRetry = (item) => {
95
+ const handleItemRetry = (item) => {
96
96
  emit("retry", item);
97
97
  };
98
98
  onDeactivated(() => {
@@ -105,10 +105,10 @@ const _sfc_main = defineComponent({
105
105
  uploadEnable,
106
106
  draggableProps,
107
107
  updateModelValue,
108
- onUpload,
109
- onItemRemove,
110
- onItemClick,
111
- onItemRetry
108
+ handleUpload,
109
+ handleItemRemove,
110
+ handleItemClick,
111
+ handleItemRetry
112
112
  };
113
113
  }
114
114
  });
@@ -140,9 +140,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
140
140
  class: normalizeClass({
141
141
  "ele-draggable": _ctx.sortable && !_ctx.readonly && !_ctx.disabled && _ctx.limit !== 1
142
142
  }),
143
- onItemClick: _ctx.onItemClick,
144
- onRemove: _ctx.onItemRemove,
145
- onRetry: _ctx.onItemRetry
143
+ onItemClick: _ctx.handleItemClick,
144
+ onRemove: _ctx.handleItemRemove,
145
+ onRetry: _ctx.handleItemRetry
146
146
  }, createSlots({ _: 2 }, [
147
147
  renderList(Object.keys(_ctx.$slots), (name) => {
148
148
  return {
@@ -167,7 +167,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
167
167
  multiple: _ctx.multiple,
168
168
  disabled: _ctx.disabled,
169
169
  showUploadList: false,
170
- beforeUpload: _ctx.onUpload
170
+ beforeUpload: _ctx.handleUpload
171
171
  }, {
172
172
  default: withCtx(() => [
173
173
  renderSlot(_ctx.$slots, "icon", {}, () => [
@@ -1,4 +1,5 @@
1
1
  import { PropType, ExtractPropTypes } from 'vue';
2
+ import { StyleValue } from '../ele-app/types';
2
3
  import { ElProgressProps, ElImageProps } from '../ele-app/el';
3
4
  import { UploadItem, UploadLocale } from './types';
4
5
 
@@ -32,12 +33,12 @@ export declare const uploadListProps: {
32
33
  default: string;
33
34
  };
34
35
  /** 自定义条目样式 */
35
- itemStyle: PropType<Partial<import('vue').CSSProperties>>;
36
+ itemStyle: PropType<StyleValue>;
36
37
  /** 自定义上传按钮样式 */
37
- buttonStyle: PropType<Partial<import('vue').CSSProperties>>;
38
+ buttonStyle: PropType<StyleValue>;
38
39
  /** 是否开启拖拽排序 */
39
40
  sortable: {
40
- type: PropType<boolean | Record<string | number | symbol, any>>;
41
+ type: PropType<boolean | Record<keyof any, any>>;
41
42
  default: boolean;
42
43
  };
43
44
  /** 自定义图片属性 */
@@ -117,6 +117,10 @@
117
117
  &.sortable-ghost {
118
118
  opacity: 0;
119
119
  }
120
+
121
+ &.sortable-chosen {
122
+ user-select: none;
123
+ }
120
124
  }
121
125
 
122
126
  .ele-upload-button {
@@ -1,6 +1,6 @@
1
1
  import { PropType } from 'vue';
2
2
  import { StyleValues } from '../../ele-app/types';
3
- import { DataItem, Column } from '../../ele-data-table/types';
3
+ import { DataItem, Column, TableSize, CellClass, CellStyle, SpanMethod, ShowOverflowTooltip } from '../../ele-data-table/types';
4
4
  import { BodyColumn, CustomRenderProps, ColSize } from '../types';
5
5
 
6
6
  declare const _default: import('vue').DefineComponent<{
@@ -30,21 +30,13 @@ declare const _default: import('vue').DefineComponent<{
30
30
  required: true;
31
31
  };
32
32
  /** 单元格类名自定义 */
33
- bodyCellClass: PropType<import('element-plus').CellCls<DataItem> | undefined>;
33
+ bodyCellClass: PropType<CellClass>;
34
34
  /** 单元格样式自定义 */
35
- bodyCellStyle: PropType<import('element-plus').CellStyle<DataItem> | undefined>;
35
+ bodyCellStyle: PropType<CellStyle>;
36
36
  /** 单元格合并行列方法 */
37
- spanMethod: PropType<((data: {
38
- row: DataItem;
39
- rowIndex: number;
40
- column: import('element-plus').TableColumnCtx<DataItem>;
41
- columnIndex: number;
42
- }) => number[] | {
43
- rowspan: number;
44
- colspan: number;
45
- } | undefined) | undefined>;
37
+ spanMethod: PropType<SpanMethod>;
46
38
  /** 溢出提示组件全局属性 */
47
- tableTooltipProps: PropType<boolean | Partial<Pick<import('element-plus').ElTooltipProps, "effect" | "placement" | "popperClass" | "offset" | "popperOptions" | "appendTo" | "transition" | "enterable" | "showAfter" | "hideAfter" | "showArrow">> | undefined>;
39
+ tableTooltipProps: PropType<ShowOverflowTooltip>;
48
40
  /** 序号列起始编号 */
49
41
  pageIndex: NumberConstructor;
50
42
  /** 表格行高 */
@@ -54,7 +46,7 @@ declare const _default: import('vue').DefineComponent<{
54
46
  /** 多选当前行是否禁用 */
55
47
  isDisabled: BooleanConstructor;
56
48
  /** 表格尺寸 */
57
- tableSize: PropType<"" | "small" | "default" | "large" | undefined>;
49
+ tableSize: PropType<TableSize>;
58
50
  /** 树表格展开图标的列 */
59
51
  expandColumnKey: StringConstructor;
60
52
  /** 树表格当前行是否有子级 */
@@ -76,14 +68,14 @@ declare const _default: import('vue').DefineComponent<{
76
68
  cellText: import('vue').ComputedRef<string | undefined>;
77
69
  isExpandCol: import('vue').ComputedRef<boolean>;
78
70
  renderOpt: import('vue').ComputedRef<CustomRenderProps>;
79
- onTextClick: (e: MouseEvent) => void;
80
- onCheckedChange: (checked: boolean) => void;
81
- onExpandChange: () => void;
82
- onClick: (e: MouseEvent) => void;
83
- onDblclick: (e: MouseEvent) => void;
84
- onContextmenu: (e: MouseEvent) => void;
85
- onMouseenter: (e: MouseEvent) => void;
86
- onMouseleave: (e: MouseEvent) => void;
71
+ handleTextClick: (e: MouseEvent) => void;
72
+ handleCheckedChange: (checked: boolean) => void;
73
+ handleExpandChange: () => void;
74
+ handleClick: (e: MouseEvent) => void;
75
+ handleDblclick: (e: MouseEvent) => void;
76
+ handleContextmenu: (e: MouseEvent) => void;
77
+ handleMouseenter: (e: MouseEvent) => void;
78
+ handleMouseleave: (e: MouseEvent) => void;
87
79
  }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
88
80
  /** 多选框选中改变事件 */
89
81
  checkedChange: (_checked: boolean) => true;
@@ -126,21 +118,13 @@ declare const _default: import('vue').DefineComponent<{
126
118
  required: true;
127
119
  };
128
120
  /** 单元格类名自定义 */
129
- bodyCellClass: PropType<import('element-plus').CellCls<DataItem> | undefined>;
121
+ bodyCellClass: PropType<CellClass>;
130
122
  /** 单元格样式自定义 */
131
- bodyCellStyle: PropType<import('element-plus').CellStyle<DataItem> | undefined>;
123
+ bodyCellStyle: PropType<CellStyle>;
132
124
  /** 单元格合并行列方法 */
133
- spanMethod: PropType<((data: {
134
- row: DataItem;
135
- rowIndex: number;
136
- column: import('element-plus').TableColumnCtx<DataItem>;
137
- columnIndex: number;
138
- }) => number[] | {
139
- rowspan: number;
140
- colspan: number;
141
- } | undefined) | undefined>;
125
+ spanMethod: PropType<SpanMethod>;
142
126
  /** 溢出提示组件全局属性 */
143
- tableTooltipProps: PropType<boolean | Partial<Pick<import('element-plus').ElTooltipProps, "effect" | "placement" | "popperClass" | "offset" | "popperOptions" | "appendTo" | "transition" | "enterable" | "showAfter" | "hideAfter" | "showArrow">> | undefined>;
127
+ tableTooltipProps: PropType<ShowOverflowTooltip>;
144
128
  /** 序号列起始编号 */
145
129
  pageIndex: NumberConstructor;
146
130
  /** 表格行高 */
@@ -150,7 +134,7 @@ declare const _default: import('vue').DefineComponent<{
150
134
  /** 多选当前行是否禁用 */
151
135
  isDisabled: BooleanConstructor;
152
136
  /** 表格尺寸 */
153
- tableSize: PropType<"" | "small" | "default" | "large" | undefined>;
137
+ tableSize: PropType<TableSize>;
154
138
  /** 树表格展开图标的列 */
155
139
  expandColumnKey: StringConstructor;
156
140
  /** 树表格当前行是否有子级 */