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
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ const vue = require("vue");
3
+ const _sfc_main = vue.defineComponent({
4
+ name: "SizeCompactOutlined"
5
+ });
6
+ const _export_sfc = (sfc, props) => {
7
+ const target = sfc.__vccOpts || sfc;
8
+ for (const [key, val] of props) {
9
+ target[key] = val;
10
+ }
11
+ return target;
12
+ };
13
+ const _hoisted_1 = {
14
+ viewBox: "0 0 48 48",
15
+ fill: "none",
16
+ stroke: "currentColor",
17
+ "stroke-width": "4"
18
+ };
19
+ const _hoisted_2 = /* @__PURE__ */ vue.createElementVNode("path", { d: "M47 14L41 19L35 14M41 1V19M47 34L41 29L35 34M41 47V29" }, null, -1);
20
+ const _hoisted_3 = /* @__PURE__ */ vue.createElementVNode("path", { d: "M3 7H31" }, null, -1);
21
+ const _hoisted_4 = /* @__PURE__ */ vue.createElementVNode("path", { d: "M3 41H31" }, null, -1);
22
+ const _hoisted_5 = /* @__PURE__ */ vue.createElementVNode("path", { d: "M3 24H31" }, null, -1);
23
+ const _hoisted_6 = [
24
+ _hoisted_2,
25
+ _hoisted_3,
26
+ _hoisted_4,
27
+ _hoisted_5
28
+ ];
29
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
30
+ return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1, _hoisted_6);
31
+ }
32
+ const SizeCompactOutlined = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
33
+ module.exports = SizeCompactOutlined;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}>;
2
+ export default _default;
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ const vue = require("vue");
3
+ const _sfc_main = vue.defineComponent({
4
+ name: "SizeSlackOutlined"
5
+ });
6
+ const _export_sfc = (sfc, props) => {
7
+ const target = sfc.__vccOpts || sfc;
8
+ for (const [key, val] of props) {
9
+ target[key] = val;
10
+ }
11
+ return target;
12
+ };
13
+ const _hoisted_1 = {
14
+ viewBox: "0 0 48 48",
15
+ fill: "none",
16
+ stroke: "currentColor",
17
+ "stroke-width": "4"
18
+ };
19
+ const _hoisted_2 = /* @__PURE__ */ vue.createElementVNode("path", { d: "M41 6V42M35 11L41 6L47 11M47 37L41 42L35 37" }, null, -1);
20
+ const _hoisted_3 = /* @__PURE__ */ vue.createElementVNode("path", { d: "M3 7H31" }, null, -1);
21
+ const _hoisted_4 = /* @__PURE__ */ vue.createElementVNode("path", { d: "M3 41H31" }, null, -1);
22
+ const _hoisted_5 = /* @__PURE__ */ vue.createElementVNode("path", { d: "M3 24H31" }, null, -1);
23
+ const _hoisted_6 = [
24
+ _hoisted_2,
25
+ _hoisted_3,
26
+ _hoisted_4,
27
+ _hoisted_5
28
+ ];
29
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
30
+ return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1, _hoisted_6);
31
+ }
32
+ const SizeSlackOutlined = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
33
+ module.exports = SizeSlackOutlined;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}>;
2
+ export default _default;
@@ -88,6 +88,8 @@ const ResizeOutlined = require("./ResizeOutlined");
88
88
  const SearchOutlined = require("./SearchOutlined");
89
89
  const SettingOutlined = require("./SettingOutlined");
90
90
  const ShoppingOutlined = require("./ShoppingOutlined");
91
+ const SizeCompactOutlined = require("./SizeCompactOutlined");
92
+ const SizeSlackOutlined = require("./SizeSlackOutlined");
91
93
  const SortOutlined = require("./SortOutlined");
92
94
  const StarFilled = require("./StarFilled");
93
95
  const StepBackwardFilled = require("./StepBackwardFilled");
@@ -197,6 +199,8 @@ exports.ResizeOutlined = ResizeOutlined;
197
199
  exports.SearchOutlined = SearchOutlined;
198
200
  exports.SettingOutlined = SettingOutlined;
199
201
  exports.ShoppingOutlined = ShoppingOutlined;
202
+ exports.SizeCompactOutlined = SizeCompactOutlined;
203
+ exports.SizeSlackOutlined = SizeSlackOutlined;
200
204
  exports.SortOutlined = SortOutlined;
201
205
  exports.StarFilled = StarFilled;
202
206
  exports.StepBackwardFilled = StepBackwardFilled;
@@ -86,6 +86,8 @@ export { default as ResizeOutlined } from './ResizeOutlined';
86
86
  export { default as SearchOutlined } from './SearchOutlined';
87
87
  export { default as SettingOutlined } from './SettingOutlined';
88
88
  export { default as ShoppingOutlined } from './ShoppingOutlined';
89
+ export { default as SizeCompactOutlined } from './SizeCompactOutlined';
90
+ export { default as SizeSlackOutlined } from './SizeSlackOutlined';
89
91
  export { default as SortOutlined } from './SortOutlined';
90
92
  export { default as StarFilled } from './StarFilled';
91
93
  export { default as StepBackwardFilled } from './StepBackwardFilled';
@@ -47,6 +47,7 @@ const localeValues = {
47
47
  columnExpand: "Expand",
48
48
  columnFixedLeft: "Pin to left",
49
49
  columnFixedRight: "Pin to right",
50
+ columnWidth: "Width",
50
51
  exportOk: "Ok",
51
52
  exportCancel: "Cancel",
52
53
  exportFileName: "Filename",
@@ -47,6 +47,7 @@ const localeValues = {
47
47
  columnExpand: "展开列",
48
48
  columnFixedLeft: "固定在左侧",
49
49
  columnFixedRight: "固定在右侧",
50
+ columnWidth: "列宽",
50
51
  exportOk: "确定",
51
52
  exportCancel: "取消",
52
53
  exportFileName: "文件名",
@@ -47,6 +47,7 @@ const localeValues = {
47
47
  columnExpand: "展開列",
48
48
  columnFixedLeft: "固定在左側",
49
49
  columnFixedRight: "固定在右側",
50
+ columnWidth: "列寬",
50
51
  exportOk: "確認",
51
52
  exportCancel: "取消",
52
53
  exportFileName: "檔名",
@@ -505,7 +505,13 @@ $ele: map.deep-merge(
505
505
  'sm-radius': 24px,
506
506
  'sm-space': 4px,
507
507
  'sm-gap': 8px,
508
- 'sm-font-size': 14px
508
+ 'sm-font-size': 14px,
509
+ 'lg-height': 40px,
510
+ 'lg-padding': 0 8px,
511
+ 'lg-radius': 40px,
512
+ 'lg-space': 8px,
513
+ 'lg-gap': 8px 12px,
514
+ 'lg-font-size': 14px
509
515
  ),
510
516
  'segmented': (
511
517
  // 分段器
@@ -714,15 +720,16 @@ $ele: map.deep-merge(
714
720
  // 高级表格列配置
715
721
  'width': 220px,
716
722
  'max-height': 480px,
717
- 'header-padding': 6px 16px 4px 12px,
723
+ 'header-padding': 6px 14px 4px 14px,
718
724
  'header-border': 1px solid elVar('border-color', 'light'),
719
725
  'body-padding': 6px 0,
720
- 'item-padding': 12px,
726
+ 'item-padding': 14px,
721
727
  'item-height': 28px,
722
728
  'item-hover-bg': elVar('color-primary', 'light-9'),
723
729
  'item-radius': 0,
724
- 'btn-space': 0,
725
- 'btn-padding': 3px,
730
+ 'btn-space': 1px,
731
+ 'btn-size': 18px,
732
+ 'btn-offset': -6px,
726
733
  'btn-radius': elVar('border-radius', 'small'),
727
734
  'btn-color': elVar('text-color', 'placeholder'),
728
735
  'btn-hover-color': elVar('text-color', 'primary'),
@@ -860,7 +867,7 @@ $ele: map.deep-merge(
860
867
  'width': 380px,
861
868
  'radius': elVar('border-radius', 'base'),
862
869
  'header-color': elVar('text-color', 'primary'),
863
- 'header-font-size': elVar('font-size', 'large'),
870
+ 'header-font-size': elVar('font-size', 'medium'),
864
871
  'header-font-weight': normal,
865
872
  'header-line-height': 24px,
866
873
  'header-padding': 18px 20px 8px 20px,
@@ -872,7 +879,7 @@ $ele: map.deep-merge(
872
879
  'icon-hover-bg': transparent,
873
880
  'icon-radius': elVar('border-radius', 'small'),
874
881
  'body-padding': 12px 20px,
875
- 'status-size': 24px,
882
+ 'status-size': 22px,
876
883
  'input-margin': 8px 0 6px 0,
877
884
  'footer-padding': 8px 20px 18px 20px,
878
885
  'footer-border': none,
@@ -1170,20 +1177,20 @@ $ele: map.deep-merge(
1170
1177
  // 时间选择器
1171
1178
  'width': 180px,
1172
1179
  'height': 220px,
1173
- 'padding': 8px 0,
1180
+ 'padding': 8px 4px,
1174
1181
  'item-size': elVar('font-size', 'base'),
1175
1182
  'item-color': elVar('text-color', 'regular'),
1176
- 'item-height': 32px,
1177
- 'item-radius': 0,
1183
+ 'item-height': 28px,
1184
+ 'item-radius': 14px,
1178
1185
  'item-hover-bg': elVar('fill-color', 'light'),
1179
1186
  'item-hover-color': elVar('text-color', 'primary'),
1180
- 'item-active-bg': transparent,
1187
+ 'item-active-bg': elVar('color-primary', 'light-9'),
1181
1188
  'item-active-color': elVar('color-primary'),
1182
1189
  'item-disabled-color': elVar('disabled', 'text-color'),
1183
1190
  'item-disabled-bg': transparent,
1184
1191
  'line': 1px solid elVar('border-color', 'light'),
1185
- 'line-padding': 0px,
1186
- 'line-margin': 8px,
1192
+ 'line-padding': 3px,
1193
+ 'line-margin': 4px,
1187
1194
  'arrow-color': elVar('text-color', 'secondary'),
1188
1195
  'arrow-size': elVar('font-size', 'base'),
1189
1196
  'footer-padding': 6px 10px,
@@ -109,7 +109,8 @@ $ele-rounded: map.deep-merge(
109
109
  'active-bg': none,
110
110
  'active-border': 1px solid elVar('color', 'primary'),
111
111
  'active-font-weight': bold,
112
- 'sm-radius': elVar('border-radius', 'base')
112
+ 'sm-radius': elVar('border-radius', 'base'),
113
+ 'lg-radius': $radius-large
113
114
  ),
114
115
  'segmented': (
115
116
  'radius': elVar('border-radius', 'small')
@@ -164,7 +165,7 @@ $ele-rounded: map.deep-merge(
164
165
  ),
165
166
  'tool-column': (
166
167
  'body-padding': 6px 4px,
167
- 'item-padding': 8px,
168
+ 'item-padding': 10px,
168
169
  'item-radius': elVar('border-radius', 'small'),
169
170
  'btn-hover-bg': elVar('color-primary', 'light-8'),
170
171
  'btn-active-bg': elVar('color-primary', 'light-7')
@@ -206,7 +207,6 @@ $ele-rounded: map.deep-merge(
206
207
  ),
207
208
  'message-box': (
208
209
  'radius': $radius-large,
209
- 'header-font-size': elVar('font-size', 'medium'),
210
210
  'header-font-weight': bold,
211
211
  'icon-hover-bg': elVar('fill-color', 'light')
212
212
  ),
@@ -250,12 +250,7 @@ $ele-rounded: map.deep-merge(
250
250
  'shortcut-radius': elVar('border-radius', 'small')
251
251
  ),
252
252
  'timepicker': (
253
- 'padding': 8px 4px,
254
- 'item-height': 28px,
255
- 'item-radius': elVar('border-radius', 'small'),
256
- 'item-active-bg': elVar('color-primary', 'light-9'),
257
- 'line-padding': 3px,
258
- 'line-margin': 4px
253
+ 'item-radius': elVar('border-radius', 'small')
259
254
  )
260
255
  ),
261
256
  $ele-rounded
@@ -29,6 +29,7 @@ export declare function toTree<T>(option: ToTreeOption<T>): T[];
29
29
  * @param data 数据
30
30
  * @param callback 回调
31
31
  * @param childrenField children 字段名
32
+ * @param parent 当前的父级
32
33
  */
33
34
  export declare function eachTree<T>(data?: T[], callback?: (item: T, index: number, parent?: T) => void | boolean, childrenField?: string, parent?: T): void;
34
35
  /**
@@ -37,6 +38,7 @@ export declare function eachTree<T>(data?: T[], callback?: (item: T, index: numb
37
38
  * @param formatter 格式器
38
39
  * @param childrenField children 字段名
39
40
  * @param resultChildrenField 返回后的 children 字段名
41
+ * @param parent 当前的父级
40
42
  */
41
43
  export declare function mapTree<T, K>(data: T[] | undefined | null, formatter: (item: T, index?: number, parent?: K) => K | void | undefined, childrenField?: string, resultChildrenField?: string, parent?: K): K[];
42
44
  /**
@@ -90,6 +92,7 @@ export declare function getCurrentStyle(el: Element): CSSStyleDeclaration;
90
92
  /**
91
93
  * 判断元素内容是否溢出省略
92
94
  * @param el 元素节点
95
+ * @param direction 只判断单个方向是否溢出
93
96
  */
94
97
  export declare function contentIsEllipsis(el: HTMLElement, direction?: 'horizontal' | 'vertical'): boolean;
95
98
  /**
@@ -124,7 +127,10 @@ export declare function bd09ToGcj02(point: Point): Point;
124
127
  * @param point 坐标
125
128
  */
126
129
  export declare function gcj02ToBd09(point: Point): Point;
127
- /** 复制字符串 */
130
+ /**
131
+ * 复制字符串
132
+ * @param text 字符串
133
+ */
128
134
  export declare function copyText(text: string): Promise<undefined>;
129
135
  /**
130
136
  * 根据字段路径获取值
@@ -3,23 +3,28 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const vue = require("vue");
4
4
  function useTimer(ms, cb) {
5
5
  let timer = null;
6
+ const waiting = vue.ref(false);
6
7
  const stopTimer = () => {
7
8
  if (timer != null) {
8
9
  clearTimeout(timer);
9
10
  timer = null;
10
11
  }
12
+ waiting.value = false;
11
13
  };
12
14
  const startTimer = (callback, timeout) => {
13
15
  stopTimer();
14
- timer = setTimeout(
15
- callback ?? cb,
16
- timeout ?? (typeof ms === "function" ? ms() : ms)
17
- );
16
+ waiting.value = true;
17
+ const to = timeout ?? (typeof ms === "function" ? ms() : ms);
18
+ timer = setTimeout(() => {
19
+ const func = callback ?? cb;
20
+ func && func();
21
+ waiting.value = false;
22
+ }, to);
18
23
  };
19
24
  vue.onBeforeUnmount(() => {
20
25
  stopTimer();
21
26
  });
22
- return [startTimer, stopTimer];
27
+ return [startTimer, stopTimer, waiting];
23
28
  }
24
29
  function useMediaQuery(query, onChange) {
25
30
  const mediaQuery = window.matchMedia(query);
@@ -105,7 +110,151 @@ function useCollapseAnim() {
105
110
  handleAfterLeave
106
111
  };
107
112
  }
113
+ function useMousewheel(cb) {
114
+ const handleMousewheel = (e) => {
115
+ const delta = e.wheelDelta || e.detail;
116
+ cb && cb({ e, direction: delta > 0 ? "up" : "down" });
117
+ };
118
+ const handleFirefoxMousewheel = (e) => {
119
+ const delta = e.wheelDelta || e.detail;
120
+ cb && cb({ e, direction: delta < 0 ? "up" : "down" });
121
+ };
122
+ const bindMousewheel = (el) => {
123
+ el.addEventListener("mousewheel", handleMousewheel, { passive: false });
124
+ el.addEventListener("DOMMouseScroll", handleFirefoxMousewheel);
125
+ };
126
+ const unbindMousewheel = (el) => {
127
+ el.removeEventListener("mousewheel", handleMousewheel);
128
+ el.removeEventListener("DOMMouseScroll", handleFirefoxMousewheel);
129
+ };
130
+ return {
131
+ handleMousewheel,
132
+ handleFirefoxMousewheel,
133
+ bindMousewheel,
134
+ unbindMousewheel
135
+ };
136
+ }
137
+ function useTouchEvent(option) {
138
+ let startX = null;
139
+ let startY = null;
140
+ let distanceX = null;
141
+ let distanceY = null;
142
+ const handleTouchStart = (e) => {
143
+ startX = e.touches[0].clientX;
144
+ startY = e.touches[0].clientY;
145
+ if (option && option.start) {
146
+ option.start({ e, startX, startY });
147
+ }
148
+ };
149
+ const handleTouchMove = (e) => {
150
+ if (startX != null && startY != null) {
151
+ const currentX = e.touches[0].clientX;
152
+ const currentY = e.touches[0].clientY;
153
+ distanceX = currentX - startX;
154
+ distanceY = currentY - startY;
155
+ if (option && option.move) {
156
+ option.move({ e, startX, startY, distanceX, distanceY });
157
+ }
158
+ }
159
+ };
160
+ const handleTouchEnd = (e) => {
161
+ if (option && option.end) {
162
+ option.end({ e, startX, startY, distanceX, distanceY });
163
+ }
164
+ startX = null;
165
+ startY = null;
166
+ distanceX = null;
167
+ distanceY = null;
168
+ };
169
+ const bindTouchEvent = (el) => {
170
+ el.addEventListener("touchstart", handleTouchStart);
171
+ el.addEventListener("touchmove", handleTouchMove);
172
+ el.addEventListener("touchend", handleTouchEnd);
173
+ };
174
+ const unbindTouchEvent = (el) => {
175
+ el.removeEventListener("touchstart", handleTouchStart);
176
+ el.removeEventListener("touchmove", handleTouchMove);
177
+ el.removeEventListener("touchend", handleTouchEnd);
178
+ };
179
+ return {
180
+ handleTouchStart,
181
+ handleTouchMove,
182
+ handleTouchEnd,
183
+ bindTouchEvent,
184
+ unbindTouchEvent
185
+ };
186
+ }
187
+ function useMoveEvent(option) {
188
+ let startX = null;
189
+ let startY = null;
190
+ let distanceX = null;
191
+ let distanceY = null;
192
+ const unbindEvent = () => {
193
+ document.removeEventListener("mousemove", mousemoveFn);
194
+ document.removeEventListener("mouseup", mouseupFn);
195
+ document.removeEventListener("touchmove", touchmoveFn);
196
+ document.removeEventListener("touchend", touchendFn);
197
+ };
198
+ const emitStart = (clientX, clientY, e) => {
199
+ startX = clientX;
200
+ startY = clientY;
201
+ if (option && option.start) {
202
+ option.start({ e, startX, startY });
203
+ }
204
+ };
205
+ const emitMove = (currentX, currentY, e) => {
206
+ if (startX != null && startY != null) {
207
+ distanceX = currentX - startX;
208
+ distanceY = currentY - startY;
209
+ if (option && option.move) {
210
+ option.move({ e, startX, startY, distanceX, distanceY });
211
+ }
212
+ }
213
+ };
214
+ const emitEnd = (e) => {
215
+ unbindEvent();
216
+ if (option && option.end) {
217
+ option.end({ e, startX, startY, distanceX, distanceY });
218
+ }
219
+ startX = null;
220
+ startY = null;
221
+ distanceX = null;
222
+ distanceY = null;
223
+ };
224
+ const mousemoveFn = function(e) {
225
+ emitMove(e.clientX, e.clientY, e);
226
+ };
227
+ const touchmoveFn = function(e) {
228
+ emitMove(e.touches[0].clientX, e.touches[0].clientY, e);
229
+ };
230
+ const mouseupFn = (e) => {
231
+ emitEnd(e);
232
+ };
233
+ const touchendFn = (e) => {
234
+ emitEnd(e);
235
+ };
236
+ const handleMousedown = (e) => {
237
+ emitStart(e.clientX, e.clientY, e);
238
+ document.addEventListener("mousemove", mousemoveFn);
239
+ document.addEventListener("mouseup", mouseupFn);
240
+ };
241
+ const handleTouchstart = (e) => {
242
+ emitStart(e.touches[0].clientX, e.touches[0].clientY, e);
243
+ document.addEventListener("touchmove", touchmoveFn);
244
+ document.addEventListener("touchend", touchendFn);
245
+ };
246
+ vue.onBeforeUnmount(() => {
247
+ unbindEvent();
248
+ });
249
+ return {
250
+ handleMousedown,
251
+ handleTouchstart
252
+ };
253
+ }
108
254
  exports.useCollapseAnim = useCollapseAnim;
109
255
  exports.useMediaQuery = useMediaQuery;
256
+ exports.useMousewheel = useMousewheel;
257
+ exports.useMoveEvent = useMoveEvent;
110
258
  exports.useTimer = useTimer;
259
+ exports.useTouchEvent = useTouchEvent;
111
260
  exports.useWindowListener = useWindowListener;
@@ -1,9 +1,12 @@
1
+ import { Ref } from 'vue';
2
+
1
3
  /**
2
- * useTimer返回结果
4
+ * useTimer 返回结果
3
5
  */
4
6
  export type UseTimerResult = [
5
- (callback: () => void, timeout?: number) => void,
6
- () => void
7
+ (callback?: () => void, timeout?: number) => void,
8
+ () => void,
9
+ Ref<boolean>
7
10
  ];
8
11
  /**
9
12
  * 定时器
@@ -12,7 +15,7 @@ export type UseTimerResult = [
12
15
  */
13
16
  export declare function useTimer(ms?: number | (() => number), cb?: () => void): UseTimerResult;
14
17
  /**
15
- * useMediaQuery返回结果
18
+ * useMediaQuery 返回结果
16
19
  */
17
20
  export type UseMediaQueryResult = [MediaQueryList, () => void, () => void];
18
21
  /**
@@ -38,3 +41,71 @@ export declare function useCollapseAnim(): {
38
41
  handleLeave: (el: HTMLElement) => void;
39
42
  handleAfterLeave: (el: HTMLElement) => void;
40
43
  };
44
+ /**
45
+ * 鼠标滚轮事件回调方法参数
46
+ */
47
+ export interface UseMousewheelCallbackParam {
48
+ /** 事件对象 */
49
+ e: MouseEvent;
50
+ /** 方向 */
51
+ direction: 'up' | 'down';
52
+ }
53
+ /**
54
+ * 鼠标滚轮事件
55
+ * @param cb 回调
56
+ */
57
+ export declare function useMousewheel(cb?: (p: UseMousewheelCallbackParam) => void): {
58
+ handleMousewheel: (e: MouseEvent) => void;
59
+ handleFirefoxMousewheel: (e: MouseEvent) => void;
60
+ bindMousewheel: (el: HTMLElement) => void;
61
+ unbindMousewheel: (el: HTMLElement) => void;
62
+ };
63
+ /**
64
+ * 触摸事件回调参数
65
+ */
66
+ export interface UseTouchEventCallbackParam<T> {
67
+ /** 事件对象 */
68
+ e: T;
69
+ /** 开始横向位置 */
70
+ startX: number | null;
71
+ /** 开始纵向位置 */
72
+ startY: number | null;
73
+ /** 横向移动距离 */
74
+ distanceX?: number | null;
75
+ /** 纵向移动距离 */
76
+ distanceY?: number | null;
77
+ }
78
+ /**
79
+ * 触摸事件参数
80
+ */
81
+ export interface UseTouchEventOption<T> {
82
+ /** 触摸开始的回调 */
83
+ start?: (param: UseTouchEventCallbackParam<T>) => void;
84
+ /** 触摸移动的回调 */
85
+ move?: (param: UseTouchEventCallbackParam<T>) => void;
86
+ /** 触摸结束的回调 */
87
+ end?: (param: UseTouchEventCallbackParam<T>) => void;
88
+ }
89
+ /**
90
+ * 触摸事件
91
+ * @param option 参数
92
+ */
93
+ export declare function useTouchEvent(option?: UseTouchEventOption<TouchEvent>): {
94
+ handleTouchStart: (e: TouchEvent) => void;
95
+ handleTouchMove: (e: TouchEvent) => void;
96
+ handleTouchEnd: (e: TouchEvent) => void;
97
+ bindTouchEvent: (el: HTMLElement) => void;
98
+ unbindTouchEvent: (el: HTMLElement) => void;
99
+ };
100
+ /**
101
+ * 移动事件对象
102
+ */
103
+ export type MoveEvent = MouseEvent | TouchEvent;
104
+ /**
105
+ * 鼠标移动事件或触摸移动事件
106
+ * @param option 参数
107
+ */
108
+ export declare function useMoveEvent(option?: UseTouchEventOption<MoveEvent>): {
109
+ handleMousedown: (e: MouseEvent) => void;
110
+ handleTouchstart: (e: TouchEvent) => void;
111
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ele-admin-plus",
3
- "version": "1.2.1-beta.1",
3
+ "version": "1.2.1-beta.3",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite --host --config vite.global.ts",
@@ -24,14 +24,14 @@
24
24
  "@bytemd/plugin-highlight": "^1.21.0",
25
25
  "@element-plus/icons-vue": "^2.3.1",
26
26
  "@types/fs-extra": "^11.0.4",
27
- "@types/node": "^20.14.2",
27
+ "@types/node": "^20.14.8",
28
28
  "@types/nprogress": "^0.2.3",
29
29
  "@types/sortablejs": "^1.15.8",
30
- "@typescript-eslint/eslint-plugin": "^7.13.0",
31
- "@typescript-eslint/parser": "^7.13.0",
30
+ "@typescript-eslint/eslint-plugin": "^7.13.1",
31
+ "@typescript-eslint/parser": "^7.13.1",
32
32
  "@vitejs/plugin-vue": "^5.0.5",
33
33
  "@vitejs/plugin-vue-jsx": "^4.0.0",
34
- "@vue/compiler-sfc": "^3.4.29",
34
+ "@vue/compiler-sfc": "^3.4.30",
35
35
  "@vueuse/core": "^10.11.0",
36
36
  "axios": "^1.7.2",
37
37
  "bytemd": "^1.21.0",
@@ -41,37 +41,38 @@
41
41
  "dayjs": "^1.11.11",
42
42
  "echarts": "^5.5.0",
43
43
  "echarts-wordcloud": "^2.1.0",
44
- "element-plus": "^2.7.5",
44
+ "element-plus": "^2.7.6",
45
45
  "eslint": "^8.57.0",
46
46
  "eslint-config-prettier": "^9.1.0",
47
47
  "eslint-plugin-prettier": "^5.1.3",
48
48
  "eslint-plugin-vue": "^9.26.0",
49
49
  "esno": "^4.7.0",
50
50
  "exceljs": "^4.4.0",
51
- "execa": "^9.2.0",
52
- "github-markdown-css": "^5.6.0",
51
+ "execa": "^9.3.0",
52
+ "github-markdown-css": "^5.6.1",
53
53
  "highlight.js": "^11.9.0",
54
54
  "jsbarcode": "^3.11.6",
55
55
  "lodash-es": "^4.17.21",
56
+ "monaco-editor": "^0.50.0",
56
57
  "nprogress": "^0.2.0",
57
58
  "p-limit": "^5.0.0",
58
59
  "pinia": "^2.1.7",
59
60
  "postcss": "^8.4.38",
60
61
  "prettier": "^3.3.2",
61
62
  "rimraf": "^5.0.7",
62
- "sass": "^1.77.5",
63
+ "sass": "^1.77.6",
63
64
  "sortablejs": "^1.15.2",
64
65
  "tinymce": "^5.10.9",
65
- "typescript": "^5.4.5",
66
+ "typescript": "^5.5.2",
66
67
  "unplugin-vue-components": "^0.27.0",
67
68
  "vite": "^5.3.1",
68
69
  "vite-plugin-dts": "^3.9.1",
69
- "vue": "^3.4.29",
70
+ "vue": "^3.4.30",
70
71
  "vue-echarts": "^6.7.3",
71
72
  "vue-eslint-parser": "^9.4.3",
72
73
  "vue-i18n": "^9.13.1",
73
- "vue-router": "^4.3.3",
74
- "vue-tsc": "^2.0.21",
74
+ "vue-router": "^4.4.0",
75
+ "vue-tsc": "^2.0.22",
75
76
  "vuedraggable": "^4.1.0",
76
77
  "xgplayer": "^3.0.18",
77
78
  "xgplayer-hls": "^3.0.18",