ele-admin-plus 1.0.2 → 1.1.0

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 (655) hide show
  1. package/es/components.d.ts +5 -0
  2. package/es/components.js +86 -76
  3. package/es/ele-alert/index.d.ts +21 -21
  4. package/es/ele-alert/props.d.ts +11 -11
  5. package/es/ele-alert/style/css-var.scss +1 -1
  6. package/es/ele-alert/style/index.scss +39 -18
  7. package/es/ele-alert/types/index.d.ts +0 -0
  8. package/es/ele-app/index.d.ts +1 -1
  9. package/es/ele-app/style/common.scss +5 -172
  10. package/es/ele-app/style/css-var.scss +71 -13
  11. package/es/ele-app/style/index.js +1 -0
  12. package/es/ele-app/style/index.scss +1 -0
  13. package/es/ele-app/style/message.scss +30 -8
  14. package/es/ele-app/style/overwrite.js +1 -0
  15. package/es/ele-app/style/overwrite.scss +1465 -0
  16. package/es/ele-app/style/scrollbar.scss +2 -45
  17. package/es/ele-app/types/index.d.ts +57 -6
  18. package/es/ele-avatar-group/index.d.ts +19 -19
  19. package/es/ele-avatar-group/index.js +25 -13
  20. package/es/ele-avatar-group/props.d.ts +10 -10
  21. package/es/ele-avatar-group/style/index.js +2 -2
  22. package/es/ele-avatar-group/style/index.scss +2 -1
  23. package/es/ele-avatar-group/types/index.d.ts +20 -0
  24. package/es/ele-bar-code/index.d.ts +2 -2
  25. package/es/ele-basic-select/components/select-tag.d.ts +6 -6
  26. package/es/ele-basic-select/index.d.ts +11 -12
  27. package/es/ele-basic-select/index.js +7 -6
  28. package/es/ele-basic-select/props.d.ts +3 -3
  29. package/es/ele-basic-select/style/index.js +1 -1
  30. package/es/ele-basic-select/style/index.scss +13 -3
  31. package/es/ele-bottom-bar/index.d.ts +6 -6
  32. package/es/ele-bottom-bar/props.d.ts +4 -3
  33. package/es/ele-bottom-bar/style/css-var.scss +1 -1
  34. package/es/ele-bottom-bar/style/index.scss +1 -0
  35. package/es/ele-breadcrumb/index.d.ts +2 -2
  36. package/es/ele-breadcrumb/index.js +2 -2
  37. package/es/ele-breadcrumb/style/index.scss +1 -0
  38. package/es/ele-breadcrumb/types/index.d.ts +13 -16
  39. package/es/ele-card/index.d.ts +11 -9
  40. package/es/ele-card/index.js +7 -5
  41. package/es/ele-card/props.d.ts +6 -4
  42. package/es/ele-card/props.js +2 -0
  43. package/es/ele-card/style/css-var.scss +3 -3
  44. package/es/ele-card/style/index.scss +56 -36
  45. package/es/ele-check-card/components/card-item.d.ts +24 -0
  46. package/es/ele-check-card/components/card-item.js +50 -0
  47. package/es/ele-check-card/index.d.ts +51 -0
  48. package/es/ele-check-card/index.js +131 -0
  49. package/es/ele-check-card/props.d.ts +32 -0
  50. package/es/ele-check-card/props.js +38 -0
  51. package/es/ele-check-card/style/css-var.scss +7 -0
  52. package/es/ele-check-card/style/index.js +3 -0
  53. package/es/ele-check-card/style/index.scss +68 -0
  54. package/es/ele-check-card/types/index.d.ts +32 -0
  55. package/es/ele-config-provider/index.d.ts +2 -2
  56. package/es/ele-config-provider/props.d.ts +1 -1
  57. package/es/ele-config-provider/receiver.d.ts +1 -0
  58. package/es/ele-config-provider/receiver.js +98 -180
  59. package/es/ele-config-provider/types/index.d.ts +2 -2
  60. package/es/ele-count-up/index.d.ts +2 -2
  61. package/es/ele-cropper/components/cropper-preview.d.ts +2 -2
  62. package/es/ele-cropper/components/cropper-tools.d.ts +6 -6
  63. package/es/ele-cropper/components/cropper-tools.js +8 -4
  64. package/es/ele-cropper/index.d.ts +9 -9
  65. package/es/ele-cropper/props.d.ts +2 -2
  66. package/es/ele-cropper/style/index.js +1 -1
  67. package/es/ele-cropper/style/index.scss +2 -1
  68. package/es/ele-cropper-modal/index.d.ts +10 -10
  69. package/es/ele-cropper-modal/props.d.ts +1 -1
  70. package/es/ele-dashboard/index.d.ts +4 -4
  71. package/es/ele-dashboard/style/index.scss +2 -1
  72. package/es/ele-dot/index.d.ts +6 -4
  73. package/es/ele-dot/index.js +10 -4
  74. package/es/ele-dot/style/index.scss +1 -0
  75. package/es/ele-drawer/index.d.ts +20 -18
  76. package/es/ele-drawer/index.js +13 -9
  77. package/es/ele-drawer/props.d.ts +7 -5
  78. package/es/ele-drawer/props.js +2 -0
  79. package/es/ele-drawer/style/css-var.scss +3 -8
  80. package/es/ele-drawer/style/index.scss +41 -22
  81. package/es/ele-dropdown/index.d.ts +122 -0
  82. package/es/ele-dropdown/index.js +144 -0
  83. package/es/ele-dropdown/props.d.ts +57 -0
  84. package/es/ele-dropdown/props.js +26 -0
  85. package/es/ele-dropdown/style/css-var.scss +7 -0
  86. package/es/ele-dropdown/style/index.js +5 -0
  87. package/es/ele-dropdown/style/index.scss +80 -0
  88. package/es/ele-dropdown/types/index.d.ts +18 -0
  89. package/es/ele-edit-tag/index.d.ts +15 -15
  90. package/es/ele-edit-tag/index.js +7 -6
  91. package/es/ele-edit-tag/props.d.ts +9 -8
  92. package/es/ele-edit-tag/style/index.js +1 -1
  93. package/es/ele-edit-tag/style/index.scss +11 -0
  94. package/es/ele-ellipsis/index.d.ts +15 -11
  95. package/es/ele-ellipsis/index.js +24 -7
  96. package/es/ele-ellipsis/props.d.ts +3 -2
  97. package/es/ele-ellipsis/props.js +2 -0
  98. package/es/ele-ellipsis/style/index.js +1 -1
  99. package/es/ele-ellipsis/types/index.d.ts +2 -2
  100. package/es/ele-file-list/components/file-grid-item.d.ts +11 -7
  101. package/es/ele-file-list/components/file-grid-item.js +22 -19
  102. package/es/ele-file-list/components/file-grid.d.ts +162 -9
  103. package/es/ele-file-list/components/file-grid.js +8 -2
  104. package/es/ele-file-list/components/file-sort.d.ts +2 -2
  105. package/es/ele-file-list/components/file-table-item.d.ts +11 -7
  106. package/es/ele-file-list/components/file-table-item.js +27 -20
  107. package/es/ele-file-list/components/file-table.d.ts +10 -9
  108. package/es/ele-file-list/components/file-table.js +8 -2
  109. package/es/ele-file-list/index.d.ts +14 -5
  110. package/es/ele-file-list/index.js +10 -7
  111. package/es/ele-file-list/props.d.ts +13 -1
  112. package/es/ele-file-list/props.js +4 -0
  113. package/es/ele-file-list/style/css-var.scss +3 -3
  114. package/es/ele-file-list/style/index.js +1 -2
  115. package/es/ele-file-list/style/index.scss +57 -49
  116. package/es/ele-file-list/types/index.d.ts +26 -3
  117. package/es/ele-file-list-tool/index.d.ts +2 -2
  118. package/es/ele-icon-select/components/icon-grid.d.ts +13 -12
  119. package/es/ele-icon-select/components/icon-grid.js +10 -6
  120. package/es/ele-icon-select/components/icon-popper.d.ts +24 -23
  121. package/es/ele-icon-select/components/icon-popper.js +2 -2
  122. package/es/ele-icon-select/index.d.ts +31 -31
  123. package/es/ele-icon-select/props.d.ts +14 -13
  124. package/es/ele-icon-select/style/css-var.scss +7 -0
  125. package/es/ele-icon-select/style/index.js +1 -1
  126. package/es/ele-icon-select/style/index.scss +68 -45
  127. package/es/ele-loading/index.d.ts +2 -2
  128. package/es/ele-map-picker/components/map-view.d.ts +7 -6
  129. package/es/ele-map-picker/components/map-view.js +50 -36
  130. package/es/ele-map-picker/index.d.ts +13 -11
  131. package/es/ele-map-picker/props.d.ts +6 -4
  132. package/es/ele-map-picker/props.js +3 -1
  133. package/es/ele-map-picker/style/css-var.scss +7 -0
  134. package/es/ele-map-picker/style/index.scss +26 -16
  135. package/es/ele-menus/index.d.ts +16 -15
  136. package/es/ele-menus/index.js +107 -161
  137. package/es/ele-menus/props.d.ts +2 -1
  138. package/es/ele-menus/props.js +3 -1
  139. package/es/ele-menus/style/css-var.scss +5 -6
  140. package/es/ele-menus/style/index.scss +287 -109
  141. package/es/ele-menus/types/index.d.ts +35 -18
  142. package/es/ele-menus/util.d.ts +73 -0
  143. package/es/ele-menus/util.js +303 -0
  144. package/es/ele-modal/index.d.ts +30 -27
  145. package/es/ele-modal/index.js +10 -10
  146. package/es/ele-modal/props.d.ts +11 -8
  147. package/es/ele-modal/props.js +4 -0
  148. package/es/ele-modal/style/css-var.scss +1 -1
  149. package/es/ele-modal/style/index.scss +91 -72
  150. package/es/ele-modal/util.d.ts +0 -5
  151. package/es/ele-modal/util.js +17 -10
  152. package/es/ele-page/index.d.ts +2 -2
  153. package/es/ele-page/style/css-var.scss +1 -1
  154. package/es/ele-page/style/index.scss +6 -2
  155. package/es/ele-pagination/index.d.ts +5 -5
  156. package/es/ele-pagination/index.js +9 -3
  157. package/es/ele-pagination/style/css-var.scss +7 -0
  158. package/es/ele-pagination/style/index.scss +160 -23
  159. package/es/ele-popconfirm/index.d.ts +393 -0
  160. package/es/ele-popconfirm/index.js +225 -0
  161. package/es/ele-popconfirm/props.d.ts +187 -0
  162. package/es/ele-popconfirm/props.js +55 -0
  163. package/es/ele-popconfirm/style/css-var.scss +7 -0
  164. package/es/ele-popconfirm/style/index.js +2 -0
  165. package/es/ele-popconfirm/style/index.scss +41 -0
  166. package/es/ele-popover/index.d.ts +386 -0
  167. package/es/ele-popover/index.js +129 -0
  168. package/es/ele-popover/props.d.ts +143 -0
  169. package/es/ele-popover/props.js +17 -0
  170. package/es/ele-popover/style/css-var.scss +78 -0
  171. package/es/ele-popover/style/index.js +2 -0
  172. package/es/ele-popover/style/index.scss +34 -0
  173. package/es/ele-printer/index.d.ts +9 -9
  174. package/es/ele-printer/props.d.ts +5 -4
  175. package/es/ele-pro-layout/components/header-tool.d.ts +2 -2
  176. package/es/ele-pro-layout/components/pro-header.d.ts +5 -5
  177. package/es/ele-pro-layout/components/pro-header.js +17 -10
  178. package/es/ele-pro-layout/components/pro-iframe.d.ts +2 -2
  179. package/es/ele-pro-layout/components/pro-sidebar.d.ts +5 -4
  180. package/es/ele-pro-layout/components/pro-sidebar.js +44 -36
  181. package/es/ele-pro-layout/components/pro-sidebox.d.ts +4 -3
  182. package/es/ele-pro-layout/components/pro-sidebox.js +43 -35
  183. package/es/ele-pro-layout/components/pro-tabs.d.ts +14 -13
  184. package/es/ele-pro-layout/components/pro-tabs.js +7 -3
  185. package/es/ele-pro-layout/components/sidebar-tool.d.ts +2 -2
  186. package/es/ele-pro-layout/components/tab-dropdown.d.ts +25 -5
  187. package/es/ele-pro-layout/components/tab-dropdown.js +55 -21
  188. package/es/ele-pro-layout/index.d.ts +24 -22
  189. package/es/ele-pro-layout/index.js +22 -16
  190. package/es/ele-pro-layout/props.d.ts +6 -3
  191. package/es/ele-pro-layout/props.js +3 -1
  192. package/es/ele-pro-layout/style/collapse.scss +22 -23
  193. package/es/ele-pro-layout/style/css-var.scss +5 -1
  194. package/es/ele-pro-layout/style/header.scss +9 -5
  195. package/es/ele-pro-layout/style/index.js +1 -0
  196. package/es/ele-pro-layout/style/layout-mobile.scss +2 -1
  197. package/es/ele-pro-layout/style/layout-style.scss +2 -1
  198. package/es/ele-pro-layout/style/layout-theme.scss +11 -10
  199. package/es/ele-pro-layout/style/layout.scss +1 -0
  200. package/es/ele-pro-layout/style/sidebar.scss +119 -101
  201. package/es/ele-pro-layout/style/tabs.scss +2 -1
  202. package/es/ele-pro-layout/types/index.d.ts +8 -5
  203. package/es/ele-pro-layout/util.d.ts +4 -2
  204. package/es/ele-pro-layout/util.js +20 -9
  205. package/es/ele-pro-table/components/table-tools.d.ts +3 -3
  206. package/es/ele-pro-table/components/table-tools.js +17 -45
  207. package/es/ele-pro-table/components/table-view.d.ts +40 -29
  208. package/es/ele-pro-table/components/table-view.js +68 -2
  209. package/es/ele-pro-table/components/tool-column.d.ts +4 -4
  210. package/es/ele-pro-table/components/tool-column.js +16 -8
  211. package/es/ele-pro-table/index.d.ts +89 -76
  212. package/es/ele-pro-table/index.js +38 -25
  213. package/es/ele-pro-table/props.d.ts +50 -38
  214. package/es/ele-pro-table/props.js +13 -6
  215. package/es/ele-pro-table/style/css-var.scss +1 -1
  216. package/es/ele-pro-table/style/index.js +3 -5
  217. package/es/ele-pro-table/style/index.scss +274 -78
  218. package/es/ele-pro-table/types/index.d.ts +15 -11
  219. package/es/ele-pro-table/util.d.ts +31 -9
  220. package/es/ele-pro-table/util.js +30 -3
  221. package/es/ele-qr-code/index.d.ts +6 -6
  222. package/es/ele-qr-code/index.js +10 -5
  223. package/es/ele-qr-code/props.d.ts +3 -2
  224. package/es/ele-qr-code/qrcodegen.js +28 -28
  225. package/es/ele-qr-code-svg/index.d.ts +4 -4
  226. package/es/ele-segmented/index.d.ts +3 -3
  227. package/es/ele-segmented/style/css-var.scss +1 -1
  228. package/es/ele-segmented/style/index.scss +51 -15
  229. package/es/ele-segmented/types/index.d.ts +7 -7
  230. package/es/ele-split-panel/index.d.ts +11 -11
  231. package/es/ele-split-panel/props.d.ts +5 -4
  232. package/es/ele-split-panel/style/index.scss +2 -1
  233. package/es/ele-steps/index.d.ts +6 -5
  234. package/es/ele-steps/index.js +7 -2
  235. package/es/ele-steps/style/css-var.scss +7 -0
  236. package/es/ele-steps/style/index.scss +139 -71
  237. package/es/ele-steps/types/index.d.ts +3 -2
  238. package/es/ele-tab-tool/index.d.ts +2 -2
  239. package/es/ele-tab-wrap/index.d.ts +2 -2
  240. package/es/ele-table/index.d.ts +2 -2
  241. package/es/ele-table/style/css-var.scss +1 -1
  242. package/es/ele-table/style/index.scss +112 -39
  243. package/es/ele-table-select/index.d.ts +15 -15
  244. package/es/ele-table-select/props.d.ts +3 -3
  245. package/es/ele-table-select/style/css-var.scss +7 -0
  246. package/es/ele-table-select/style/index.scss +15 -2
  247. package/es/ele-table-select/types/index.d.ts +4 -1
  248. package/es/ele-tabs/components/tab-title.d.ts +11 -9
  249. package/es/ele-tabs/components/tab-title.js +27 -22
  250. package/es/ele-tabs/index.d.ts +157 -21
  251. package/es/ele-tabs/index.js +18 -4
  252. package/es/ele-tabs/props.d.ts +6 -5
  253. package/es/ele-tabs/props.js +3 -1
  254. package/es/ele-tabs/style/css-var.scss +10 -10
  255. package/es/ele-tabs/style/index.js +1 -2
  256. package/es/ele-tabs/style/index.scss +599 -209
  257. package/es/ele-tabs/types/index.d.ts +17 -2
  258. package/es/ele-text/index.d.ts +7 -7
  259. package/es/ele-text/props.d.ts +4 -4
  260. package/es/ele-text/style/css-var.scss +1 -1
  261. package/es/ele-text/style/index.scss +1 -0
  262. package/es/ele-tool/index.d.ts +5 -5
  263. package/es/ele-tool/index.js +5 -4
  264. package/es/ele-tool/props.d.ts +1 -1
  265. package/es/ele-tool/style/css-var.scss +1 -1
  266. package/es/ele-tool/style/index.js +1 -1
  267. package/es/ele-tool/style/index.scss +2 -1
  268. package/es/ele-toolbar/index.d.ts +8 -8
  269. package/es/ele-toolbar/props.d.ts +5 -4
  270. package/es/ele-toolbar/style/css-var.scss +1 -1
  271. package/es/ele-toolbar/style/index.scss +1 -0
  272. package/es/ele-tooltip/index.d.ts +727 -0
  273. package/es/ele-tooltip/index.js +167 -0
  274. package/es/ele-tooltip/props.d.ts +317 -0
  275. package/es/ele-tooltip/props.js +17 -0
  276. package/es/ele-tooltip/style/css-var.scss +7 -0
  277. package/es/ele-tooltip/style/index.js +3 -0
  278. package/es/ele-tooltip/style/index.scss +66 -0
  279. package/es/ele-tour/index.d.ts +6 -5
  280. package/es/ele-tour/index.js +5 -4
  281. package/es/ele-tour/style/index.js +1 -1
  282. package/es/ele-tour/style/index.scss +6 -4
  283. package/es/ele-tour/types/index.d.ts +2 -6
  284. package/es/ele-tour/util.d.ts +3 -2
  285. package/es/ele-upload-list/components/list-item.d.ts +6 -3
  286. package/es/ele-upload-list/components/list-item.js +13 -11
  287. package/es/ele-upload-list/index.d.ts +13 -11
  288. package/es/ele-upload-list/index.js +2 -1
  289. package/es/ele-upload-list/props.d.ts +5 -3
  290. package/es/ele-upload-list/props.js +2 -0
  291. package/es/ele-upload-list/style/index.js +1 -1
  292. package/es/ele-upload-list/style/index.scss +4 -0
  293. package/es/ele-upload-list/types/index.d.ts +5 -1
  294. package/es/ele-watermark/index.d.ts +5 -6
  295. package/es/ele-watermark/index.js +1 -4
  296. package/es/ele-watermark/props.d.ts +2 -2
  297. package/es/ele-watermark/util.js +4 -0
  298. package/es/ele-xg-player/index.d.ts +2 -2
  299. package/es/icons/ArrowDown.d.ts +2 -2
  300. package/es/icons/ArrowLeft.d.ts +2 -2
  301. package/es/icons/ArrowRight.d.ts +2 -2
  302. package/es/icons/ArrowUp.d.ts +2 -2
  303. package/es/icons/ColumnHeightOutlined.d.ts +2 -2
  304. package/es/icons/CompressOutlined.d.ts +2 -2
  305. package/es/icons/EllipsisOutlined.d.ts +2 -0
  306. package/es/icons/EllipsisOutlined.js +45 -0
  307. package/es/icons/ExpandOutlined.d.ts +2 -2
  308. package/es/icons/FullscreenExitOutlined.d.ts +2 -2
  309. package/es/icons/FullscreenOutlined.d.ts +2 -2
  310. package/es/icons/HolderOutlined.d.ts +2 -2
  311. package/es/icons/LoadingOutlined.d.ts +2 -2
  312. package/es/icons/VerticalLeftOutlined.d.ts +2 -2
  313. package/es/icons/VerticalRightOutlined.d.ts +2 -2
  314. package/es/icons/index.d.ts +1 -0
  315. package/es/icons/index.js +16 -14
  316. package/es/style/index.scss +5 -0
  317. package/es/style/themes/dark-css-var.scss +2 -38
  318. package/es/style/themes/dark.scss +71 -58
  319. package/es/style/themes/default.scss +697 -194
  320. package/es/style/themes/rounded-css-var.scss +6 -0
  321. package/es/style/themes/rounded.scss +231 -0
  322. package/es/style/themes/theme-util.scss +62 -0
  323. package/es/style/util.scss +47 -0
  324. package/es/utils/core.d.ts +5 -0
  325. package/es/utils/core.js +4 -0
  326. package/lib/components.d.ts +5 -0
  327. package/lib/components.js +86 -76
  328. package/lib/ele-alert/index.d.ts +21 -21
  329. package/lib/ele-alert/props.d.ts +11 -11
  330. package/lib/ele-alert/style/css-var.scss +1 -1
  331. package/lib/ele-alert/style/index.scss +39 -18
  332. package/lib/ele-alert/types/index.d.ts +0 -0
  333. package/lib/ele-app/index.d.ts +1 -1
  334. package/lib/ele-app/style/common.scss +5 -172
  335. package/lib/ele-app/style/css-var.scss +71 -13
  336. package/lib/ele-app/style/index.js +1 -0
  337. package/lib/ele-app/style/index.scss +1 -0
  338. package/lib/ele-app/style/message.scss +30 -8
  339. package/lib/ele-app/style/overwrite.js +2 -0
  340. package/lib/ele-app/style/overwrite.scss +1465 -0
  341. package/lib/ele-app/style/scrollbar.scss +2 -45
  342. package/lib/ele-app/types/index.d.ts +57 -6
  343. package/lib/ele-avatar-group/index.d.ts +19 -19
  344. package/lib/ele-avatar-group/index.js +23 -11
  345. package/lib/ele-avatar-group/props.d.ts +10 -10
  346. package/lib/ele-avatar-group/style/index.js +2 -2
  347. package/lib/ele-avatar-group/style/index.scss +2 -1
  348. package/lib/ele-avatar-group/types/index.d.ts +20 -0
  349. package/lib/ele-bar-code/index.d.ts +2 -2
  350. package/lib/ele-basic-select/components/select-tag.d.ts +6 -6
  351. package/lib/ele-basic-select/index.d.ts +11 -12
  352. package/lib/ele-basic-select/index.js +7 -6
  353. package/lib/ele-basic-select/props.d.ts +3 -3
  354. package/lib/ele-basic-select/style/index.js +1 -1
  355. package/lib/ele-basic-select/style/index.scss +13 -3
  356. package/lib/ele-bottom-bar/index.d.ts +6 -6
  357. package/lib/ele-bottom-bar/props.d.ts +4 -3
  358. package/lib/ele-bottom-bar/style/css-var.scss +1 -1
  359. package/lib/ele-bottom-bar/style/index.scss +1 -0
  360. package/lib/ele-breadcrumb/index.d.ts +2 -2
  361. package/lib/ele-breadcrumb/index.js +2 -2
  362. package/lib/ele-breadcrumb/style/index.scss +1 -0
  363. package/lib/ele-breadcrumb/types/index.d.ts +13 -16
  364. package/lib/ele-card/index.d.ts +11 -9
  365. package/lib/ele-card/index.js +6 -4
  366. package/lib/ele-card/props.d.ts +6 -4
  367. package/lib/ele-card/props.js +2 -0
  368. package/lib/ele-card/style/css-var.scss +3 -3
  369. package/lib/ele-card/style/index.scss +56 -36
  370. package/lib/ele-check-card/components/card-item.d.ts +24 -0
  371. package/lib/ele-check-card/components/card-item.js +49 -0
  372. package/lib/ele-check-card/index.d.ts +51 -0
  373. package/lib/ele-check-card/index.js +130 -0
  374. package/lib/ele-check-card/props.d.ts +32 -0
  375. package/lib/ele-check-card/props.js +38 -0
  376. package/lib/ele-check-card/style/css-var.scss +7 -0
  377. package/lib/ele-check-card/style/index.js +4 -0
  378. package/lib/ele-check-card/style/index.scss +68 -0
  379. package/lib/ele-check-card/types/index.d.ts +32 -0
  380. package/lib/ele-config-provider/index.d.ts +2 -2
  381. package/lib/ele-config-provider/props.d.ts +1 -1
  382. package/lib/ele-config-provider/receiver.d.ts +1 -0
  383. package/lib/ele-config-provider/receiver.js +2 -200
  384. package/lib/ele-config-provider/types/index.d.ts +2 -2
  385. package/lib/ele-count-up/index.d.ts +2 -2
  386. package/lib/ele-cropper/components/cropper-preview.d.ts +2 -2
  387. package/lib/ele-cropper/components/cropper-tools.d.ts +6 -6
  388. package/lib/ele-cropper/components/cropper-tools.js +8 -4
  389. package/lib/ele-cropper/index.d.ts +9 -9
  390. package/lib/ele-cropper/props.d.ts +2 -2
  391. package/lib/ele-cropper/style/index.js +1 -1
  392. package/lib/ele-cropper/style/index.scss +2 -1
  393. package/lib/ele-cropper-modal/index.d.ts +10 -10
  394. package/lib/ele-cropper-modal/props.d.ts +1 -1
  395. package/lib/ele-dashboard/index.d.ts +4 -4
  396. package/lib/ele-dashboard/style/index.scss +2 -1
  397. package/lib/ele-dot/index.d.ts +6 -4
  398. package/lib/ele-dot/index.js +9 -3
  399. package/lib/ele-dot/style/index.scss +1 -0
  400. package/lib/ele-drawer/index.d.ts +20 -18
  401. package/lib/ele-drawer/index.js +13 -9
  402. package/lib/ele-drawer/props.d.ts +7 -5
  403. package/lib/ele-drawer/props.js +2 -0
  404. package/lib/ele-drawer/style/css-var.scss +3 -8
  405. package/lib/ele-drawer/style/index.scss +41 -22
  406. package/lib/ele-dropdown/index.d.ts +122 -0
  407. package/lib/ele-dropdown/index.js +143 -0
  408. package/lib/ele-dropdown/props.d.ts +57 -0
  409. package/lib/ele-dropdown/props.js +26 -0
  410. package/lib/ele-dropdown/style/css-var.scss +7 -0
  411. package/lib/ele-dropdown/style/index.js +6 -0
  412. package/lib/ele-dropdown/style/index.scss +80 -0
  413. package/lib/ele-dropdown/types/index.d.ts +18 -0
  414. package/lib/ele-edit-tag/index.d.ts +15 -15
  415. package/lib/ele-edit-tag/index.js +7 -6
  416. package/lib/ele-edit-tag/props.d.ts +9 -8
  417. package/lib/ele-edit-tag/style/index.js +1 -1
  418. package/lib/ele-edit-tag/style/index.scss +11 -0
  419. package/lib/ele-ellipsis/index.d.ts +15 -11
  420. package/lib/ele-ellipsis/index.js +24 -7
  421. package/lib/ele-ellipsis/props.d.ts +3 -2
  422. package/lib/ele-ellipsis/props.js +2 -0
  423. package/lib/ele-ellipsis/style/index.js +1 -1
  424. package/lib/ele-ellipsis/types/index.d.ts +2 -2
  425. package/lib/ele-file-list/components/file-grid-item.d.ts +11 -7
  426. package/lib/ele-file-list/components/file-grid-item.js +21 -18
  427. package/lib/ele-file-list/components/file-grid.d.ts +162 -9
  428. package/lib/ele-file-list/components/file-grid.js +8 -2
  429. package/lib/ele-file-list/components/file-sort.d.ts +2 -2
  430. package/lib/ele-file-list/components/file-table-item.d.ts +11 -7
  431. package/lib/ele-file-list/components/file-table-item.js +26 -19
  432. package/lib/ele-file-list/components/file-table.d.ts +10 -9
  433. package/lib/ele-file-list/components/file-table.js +8 -2
  434. package/lib/ele-file-list/index.d.ts +14 -5
  435. package/lib/ele-file-list/index.js +9 -6
  436. package/lib/ele-file-list/props.d.ts +13 -1
  437. package/lib/ele-file-list/props.js +4 -0
  438. package/lib/ele-file-list/style/css-var.scss +3 -3
  439. package/lib/ele-file-list/style/index.js +1 -2
  440. package/lib/ele-file-list/style/index.scss +57 -49
  441. package/lib/ele-file-list/types/index.d.ts +26 -3
  442. package/lib/ele-file-list-tool/index.d.ts +2 -2
  443. package/lib/ele-icon-select/components/icon-grid.d.ts +13 -12
  444. package/lib/ele-icon-select/components/icon-grid.js +9 -5
  445. package/lib/ele-icon-select/components/icon-popper.d.ts +24 -23
  446. package/lib/ele-icon-select/components/icon-popper.js +2 -2
  447. package/lib/ele-icon-select/index.d.ts +31 -31
  448. package/lib/ele-icon-select/props.d.ts +14 -13
  449. package/lib/ele-icon-select/style/css-var.scss +7 -0
  450. package/lib/ele-icon-select/style/index.js +1 -1
  451. package/lib/ele-icon-select/style/index.scss +68 -45
  452. package/lib/ele-loading/index.d.ts +2 -2
  453. package/lib/ele-map-picker/components/map-view.d.ts +7 -6
  454. package/lib/ele-map-picker/components/map-view.js +48 -34
  455. package/lib/ele-map-picker/index.d.ts +13 -11
  456. package/lib/ele-map-picker/props.d.ts +6 -4
  457. package/lib/ele-map-picker/props.js +3 -1
  458. package/lib/ele-map-picker/style/css-var.scss +7 -0
  459. package/lib/ele-map-picker/style/index.scss +26 -16
  460. package/lib/ele-menus/index.d.ts +16 -15
  461. package/lib/ele-menus/index.js +103 -157
  462. package/lib/ele-menus/props.d.ts +2 -1
  463. package/lib/ele-menus/props.js +3 -1
  464. package/lib/ele-menus/style/css-var.scss +5 -6
  465. package/lib/ele-menus/style/index.scss +287 -109
  466. package/lib/ele-menus/types/index.d.ts +35 -18
  467. package/lib/ele-menus/util.d.ts +73 -0
  468. package/lib/ele-menus/util.js +303 -0
  469. package/lib/ele-modal/index.d.ts +30 -27
  470. package/lib/ele-modal/index.js +9 -9
  471. package/lib/ele-modal/props.d.ts +11 -8
  472. package/lib/ele-modal/props.js +4 -0
  473. package/lib/ele-modal/style/css-var.scss +1 -1
  474. package/lib/ele-modal/style/index.scss +91 -72
  475. package/lib/ele-modal/util.d.ts +0 -5
  476. package/lib/ele-modal/util.js +19 -12
  477. package/lib/ele-page/index.d.ts +2 -2
  478. package/lib/ele-page/style/css-var.scss +1 -1
  479. package/lib/ele-page/style/index.scss +6 -2
  480. package/lib/ele-pagination/index.d.ts +5 -5
  481. package/lib/ele-pagination/index.js +9 -3
  482. package/lib/ele-pagination/style/css-var.scss +7 -0
  483. package/lib/ele-pagination/style/index.scss +160 -23
  484. package/lib/ele-popconfirm/index.d.ts +393 -0
  485. package/lib/ele-popconfirm/index.js +224 -0
  486. package/lib/ele-popconfirm/props.d.ts +187 -0
  487. package/lib/ele-popconfirm/props.js +55 -0
  488. package/lib/ele-popconfirm/style/css-var.scss +7 -0
  489. package/lib/ele-popconfirm/style/index.js +3 -0
  490. package/lib/ele-popconfirm/style/index.scss +41 -0
  491. package/lib/ele-popover/index.d.ts +386 -0
  492. package/lib/ele-popover/index.js +128 -0
  493. package/lib/ele-popover/props.d.ts +143 -0
  494. package/lib/ele-popover/props.js +17 -0
  495. package/lib/ele-popover/style/css-var.scss +78 -0
  496. package/lib/ele-popover/style/index.js +3 -0
  497. package/lib/ele-popover/style/index.scss +34 -0
  498. package/lib/ele-printer/index.d.ts +9 -9
  499. package/lib/ele-printer/props.d.ts +5 -4
  500. package/lib/ele-pro-layout/components/header-tool.d.ts +2 -2
  501. package/lib/ele-pro-layout/components/pro-header.d.ts +5 -5
  502. package/lib/ele-pro-layout/components/pro-header.js +16 -9
  503. package/lib/ele-pro-layout/components/pro-iframe.d.ts +2 -2
  504. package/lib/ele-pro-layout/components/pro-sidebar.d.ts +5 -4
  505. package/lib/ele-pro-layout/components/pro-sidebar.js +43 -35
  506. package/lib/ele-pro-layout/components/pro-sidebox.d.ts +4 -3
  507. package/lib/ele-pro-layout/components/pro-sidebox.js +42 -34
  508. package/lib/ele-pro-layout/components/pro-tabs.d.ts +14 -13
  509. package/lib/ele-pro-layout/components/pro-tabs.js +7 -3
  510. package/lib/ele-pro-layout/components/sidebar-tool.d.ts +2 -2
  511. package/lib/ele-pro-layout/components/tab-dropdown.d.ts +25 -5
  512. package/lib/ele-pro-layout/components/tab-dropdown.js +54 -20
  513. package/lib/ele-pro-layout/index.d.ts +24 -22
  514. package/lib/ele-pro-layout/index.js +19 -13
  515. package/lib/ele-pro-layout/props.d.ts +6 -3
  516. package/lib/ele-pro-layout/props.js +3 -1
  517. package/lib/ele-pro-layout/style/collapse.scss +22 -23
  518. package/lib/ele-pro-layout/style/css-var.scss +5 -1
  519. package/lib/ele-pro-layout/style/header.scss +9 -5
  520. package/lib/ele-pro-layout/style/index.js +1 -0
  521. package/lib/ele-pro-layout/style/layout-mobile.scss +2 -1
  522. package/lib/ele-pro-layout/style/layout-style.scss +2 -1
  523. package/lib/ele-pro-layout/style/layout-theme.scss +11 -10
  524. package/lib/ele-pro-layout/style/layout.scss +1 -0
  525. package/lib/ele-pro-layout/style/sidebar.scss +119 -101
  526. package/lib/ele-pro-layout/style/tabs.scss +2 -1
  527. package/lib/ele-pro-layout/types/index.d.ts +8 -5
  528. package/lib/ele-pro-layout/util.d.ts +4 -2
  529. package/lib/ele-pro-layout/util.js +20 -9
  530. package/lib/ele-pro-table/components/table-tools.d.ts +3 -3
  531. package/lib/ele-pro-table/components/table-tools.js +15 -43
  532. package/lib/ele-pro-table/components/table-view.d.ts +40 -29
  533. package/lib/ele-pro-table/components/table-view.js +68 -2
  534. package/lib/ele-pro-table/components/tool-column.d.ts +4 -4
  535. package/lib/ele-pro-table/components/tool-column.js +16 -8
  536. package/lib/ele-pro-table/index.d.ts +89 -76
  537. package/lib/ele-pro-table/index.js +33 -20
  538. package/lib/ele-pro-table/props.d.ts +50 -38
  539. package/lib/ele-pro-table/props.js +13 -6
  540. package/lib/ele-pro-table/style/css-var.scss +1 -1
  541. package/lib/ele-pro-table/style/index.js +3 -5
  542. package/lib/ele-pro-table/style/index.scss +274 -78
  543. package/lib/ele-pro-table/types/index.d.ts +15 -11
  544. package/lib/ele-pro-table/util.d.ts +31 -9
  545. package/lib/ele-pro-table/util.js +30 -3
  546. package/lib/ele-qr-code/index.d.ts +6 -6
  547. package/lib/ele-qr-code/index.js +10 -5
  548. package/lib/ele-qr-code/props.d.ts +3 -2
  549. package/lib/ele-qr-code/qrcodegen.js +28 -28
  550. package/lib/ele-qr-code-svg/index.d.ts +4 -4
  551. package/lib/ele-segmented/index.d.ts +3 -3
  552. package/lib/ele-segmented/style/css-var.scss +1 -1
  553. package/lib/ele-segmented/style/index.scss +51 -15
  554. package/lib/ele-segmented/types/index.d.ts +7 -7
  555. package/lib/ele-split-panel/index.d.ts +11 -11
  556. package/lib/ele-split-panel/props.d.ts +5 -4
  557. package/lib/ele-split-panel/style/index.scss +2 -1
  558. package/lib/ele-steps/index.d.ts +6 -5
  559. package/lib/ele-steps/index.js +7 -2
  560. package/lib/ele-steps/style/css-var.scss +7 -0
  561. package/lib/ele-steps/style/index.scss +139 -71
  562. package/lib/ele-steps/types/index.d.ts +3 -2
  563. package/lib/ele-tab-tool/index.d.ts +2 -2
  564. package/lib/ele-tab-wrap/index.d.ts +2 -2
  565. package/lib/ele-table/index.d.ts +2 -2
  566. package/lib/ele-table/style/css-var.scss +1 -1
  567. package/lib/ele-table/style/index.scss +112 -39
  568. package/lib/ele-table-select/index.d.ts +15 -15
  569. package/lib/ele-table-select/props.d.ts +3 -3
  570. package/lib/ele-table-select/style/css-var.scss +7 -0
  571. package/lib/ele-table-select/style/index.scss +15 -2
  572. package/lib/ele-table-select/types/index.d.ts +4 -1
  573. package/lib/ele-tabs/components/tab-title.d.ts +11 -9
  574. package/lib/ele-tabs/components/tab-title.js +26 -21
  575. package/lib/ele-tabs/index.d.ts +157 -21
  576. package/lib/ele-tabs/index.js +18 -4
  577. package/lib/ele-tabs/props.d.ts +6 -5
  578. package/lib/ele-tabs/props.js +3 -1
  579. package/lib/ele-tabs/style/css-var.scss +10 -10
  580. package/lib/ele-tabs/style/index.js +1 -2
  581. package/lib/ele-tabs/style/index.scss +599 -209
  582. package/lib/ele-tabs/types/index.d.ts +17 -2
  583. package/lib/ele-text/index.d.ts +7 -7
  584. package/lib/ele-text/props.d.ts +4 -4
  585. package/lib/ele-text/style/css-var.scss +1 -1
  586. package/lib/ele-text/style/index.scss +1 -0
  587. package/lib/ele-tool/index.d.ts +5 -5
  588. package/lib/ele-tool/index.js +5 -4
  589. package/lib/ele-tool/props.d.ts +1 -1
  590. package/lib/ele-tool/style/css-var.scss +1 -1
  591. package/lib/ele-tool/style/index.js +1 -1
  592. package/lib/ele-tool/style/index.scss +2 -1
  593. package/lib/ele-toolbar/index.d.ts +8 -8
  594. package/lib/ele-toolbar/props.d.ts +5 -4
  595. package/lib/ele-toolbar/style/css-var.scss +1 -1
  596. package/lib/ele-toolbar/style/index.scss +1 -0
  597. package/lib/ele-tooltip/index.d.ts +727 -0
  598. package/lib/ele-tooltip/index.js +166 -0
  599. package/lib/ele-tooltip/props.d.ts +317 -0
  600. package/lib/ele-tooltip/props.js +17 -0
  601. package/lib/ele-tooltip/style/css-var.scss +7 -0
  602. package/lib/ele-tooltip/style/index.js +4 -0
  603. package/lib/ele-tooltip/style/index.scss +66 -0
  604. package/lib/ele-tour/index.d.ts +6 -5
  605. package/lib/ele-tour/index.js +4 -3
  606. package/lib/ele-tour/style/index.js +1 -1
  607. package/lib/ele-tour/style/index.scss +6 -4
  608. package/lib/ele-tour/types/index.d.ts +2 -6
  609. package/lib/ele-tour/util.d.ts +3 -2
  610. package/lib/ele-upload-list/components/list-item.d.ts +6 -3
  611. package/lib/ele-upload-list/components/list-item.js +12 -10
  612. package/lib/ele-upload-list/index.d.ts +13 -11
  613. package/lib/ele-upload-list/index.js +2 -1
  614. package/lib/ele-upload-list/props.d.ts +5 -3
  615. package/lib/ele-upload-list/props.js +2 -0
  616. package/lib/ele-upload-list/style/index.js +1 -1
  617. package/lib/ele-upload-list/style/index.scss +4 -0
  618. package/lib/ele-upload-list/types/index.d.ts +5 -1
  619. package/lib/ele-watermark/index.d.ts +5 -6
  620. package/lib/ele-watermark/index.js +0 -3
  621. package/lib/ele-watermark/props.d.ts +2 -2
  622. package/lib/ele-watermark/util.js +4 -0
  623. package/lib/ele-xg-player/index.d.ts +2 -2
  624. package/lib/icons/ArrowDown.d.ts +2 -2
  625. package/lib/icons/ArrowLeft.d.ts +2 -2
  626. package/lib/icons/ArrowRight.d.ts +2 -2
  627. package/lib/icons/ArrowUp.d.ts +2 -2
  628. package/lib/icons/ColumnHeightOutlined.d.ts +2 -2
  629. package/lib/icons/CompressOutlined.d.ts +2 -2
  630. package/lib/icons/EllipsisOutlined.d.ts +2 -0
  631. package/lib/icons/EllipsisOutlined.js +44 -0
  632. package/lib/icons/ExpandOutlined.d.ts +2 -2
  633. package/lib/icons/FullscreenExitOutlined.d.ts +2 -2
  634. package/lib/icons/FullscreenOutlined.d.ts +2 -2
  635. package/lib/icons/HolderOutlined.d.ts +2 -2
  636. package/lib/icons/LoadingOutlined.d.ts +2 -2
  637. package/lib/icons/VerticalLeftOutlined.d.ts +2 -2
  638. package/lib/icons/VerticalRightOutlined.d.ts +2 -2
  639. package/lib/icons/index.d.ts +1 -0
  640. package/lib/icons/index.js +2 -0
  641. package/lib/index.js +7 -7
  642. package/lib/style/index.scss +5 -0
  643. package/lib/style/themes/dark-css-var.scss +2 -38
  644. package/lib/style/themes/dark.scss +71 -58
  645. package/lib/style/themes/default.scss +697 -194
  646. package/lib/style/themes/rounded-css-var.scss +6 -0
  647. package/lib/style/themes/rounded.scss +231 -0
  648. package/lib/style/themes/theme-util.scss +62 -0
  649. package/lib/style/util.scss +47 -0
  650. package/lib/utils/core.d.ts +5 -0
  651. package/lib/utils/core.js +4 -0
  652. package/package.json +29 -29
  653. package/typings/global.d.ts +5 -0
  654. package/es/ele-menus/style/scrollbar.scss +0 -68
  655. package/lib/ele-menus/style/scrollbar.scss +0 -68
@@ -0,0 +1,38 @@
1
+ const checkCardProps = {
2
+ // 选中值
3
+ modelValue: [Array, String, Number, Boolean],
4
+ // 数据
5
+ items: Array,
6
+ // 是否多选
7
+ multiple: Boolean,
8
+ // 是否禁用
9
+ disabled: Boolean,
10
+ // 是否显示边框
11
+ bordered: {
12
+ type: Boolean,
13
+ default: true
14
+ },
15
+ // 是否需要选中箭头
16
+ arrow: {
17
+ type: Boolean,
18
+ default: true
19
+ },
20
+ // 选中箭头样式
21
+ arrowStyle: Object,
22
+ // 自定义卡片类名
23
+ itemClass: String,
24
+ // 自定义卡片样式
25
+ itemStyle: Object,
26
+ // 是否使用栅格布局
27
+ row: [Boolean, Object]
28
+ };
29
+ const checkCardEmits = {
30
+ // 更新选中值
31
+ "update:modelValue": (_value) => true,
32
+ // 选中改变事件
33
+ change: (_value) => true
34
+ };
35
+ export {
36
+ checkCardEmits,
37
+ checkCardProps
38
+ };
@@ -0,0 +1,7 @@
1
+ @use '../../style/util.scss' as *;
2
+
3
+ @mixin set-check-card-var($var) {
4
+ .ele-check-card {
5
+ @include set-ele-var('check-card', $var);
6
+ }
7
+ }
@@ -0,0 +1,3 @@
1
+ import 'element-plus/es/components/row/style/index';
2
+ import 'element-plus/es/components/col/style/index';
3
+ import './index.scss';
@@ -0,0 +1,68 @@
1
+ @use '../../style/themes/default.scss' as *;
2
+ @use '../../style/util.scss' as *;
3
+ @use './css-var.scss' as *;
4
+
5
+ @include set-check-card-var($ele);
6
+
7
+ .ele-check-card {
8
+ box-sizing: border-box;
9
+ transition: color $ele-transition, border-color $ele-transition,
10
+ border-width $ele-transition, box-shadow $ele-transition;
11
+ position: relative;
12
+ cursor: pointer;
13
+
14
+ // 选中箭头
15
+ .ele-check-card-arrow {
16
+ position: absolute;
17
+ top: 3px;
18
+ right: 3px;
19
+ width: 0;
20
+ height: 0;
21
+ border: eleVar('check-card', 'arrow-size') solid transparent;
22
+ border-top-color: eleVar('check-card', 'arrow-color');
23
+ border-right-color: eleVar('check-card', 'arrow-color');
24
+ border-top-right-radius: eleVar('check-card', 'arrow-radius');
25
+ box-sizing: border-box;
26
+ display: none;
27
+ }
28
+
29
+ // 边框
30
+ &.is-bordered {
31
+ border: 1px solid eleVar('check-card', 'border-color');
32
+ border-radius: eleVar('check-card', 'radius');
33
+
34
+ &:not(.is-disabled):not(.is-checked):hover {
35
+ border-color: eleVar('check-card', 'hover-border-color');
36
+ background: eleVar('check-card', 'hover-bg');
37
+ }
38
+
39
+ &.is-checked {
40
+ border-color: eleVar('check-card', 'active-border-color');
41
+ }
42
+ }
43
+
44
+ // 选中
45
+ &.is-checked {
46
+ background: eleVar('check-card', 'active-bg');
47
+
48
+ & > .ele-check-card-arrow {
49
+ display: block;
50
+ }
51
+ }
52
+
53
+ // 禁用
54
+ &.is-disabled {
55
+ background: eleVar('check-card', 'disabled-bg');
56
+ opacity: eleVar('check-card', 'disabled-opacity');
57
+ cursor: not-allowed;
58
+
59
+ &.is-bordered.is-checked {
60
+ border-color: eleVar('check-card', 'disabled-border-color');
61
+ }
62
+
63
+ &.is-checked > .ele-check-card-arrow {
64
+ border-top-color: eleVar('check-card', 'arrow-disabled-color');
65
+ border-right-color: eleVar('check-card', 'arrow-disabled-color');
66
+ }
67
+ }
68
+ }
@@ -0,0 +1,32 @@
1
+ import type { StyleValue, ElColProps } from '../../ele-app/types';
2
+ /**
3
+ * 单选值
4
+ */
5
+ export type SingleValue = string | number | boolean;
6
+ /**
7
+ * 多选值
8
+ */
9
+ export type MultipleValue = Array<SingleValue>;
10
+ /**
11
+ * 值
12
+ */
13
+ export type CheckedValue = SingleValue | MultipleValue | undefined | null;
14
+ /**
15
+ * 多选卡片数据
16
+ */
17
+ export interface CheckCardItem extends Record<keyof any, any> {
18
+ /** 循环的 key */
19
+ key?: string | number | symbol;
20
+ /** 值 */
21
+ value?: string | number | boolean;
22
+ /** 是否禁用 */
23
+ disabled?: boolean;
24
+ /** 是否显示边框 */
25
+ bordered?: boolean;
26
+ /** 自定义类名 */
27
+ class?: string;
28
+ /** 自定义样式 */
29
+ style?: StyleValue;
30
+ /** 栅格属性 */
31
+ col?: ElColProps;
32
+ }
@@ -1,12 +1,12 @@
1
1
  declare const _default: import("vue").DefineComponent<{
2
- table: import("vue").PropType<Partial<Pick<import("../ele-pro-table/props").ProTableProps, "size" | "stripe" | "border" | "request" | "response" | "parseData" | "tools" | "maximizedIndex" | "pagination">>>;
2
+ table: import("vue").PropType<Partial<Pick<import("../ele-pro-table/props").ProTableProps, "size" | "stripe" | "border" | "request" | "response" | "parseData" | "tools" | "maximizedIndex" | "pagination" | "emptyProps">>>;
3
3
  mapKey: StringConstructor;
4
4
  license: StringConstructor;
5
5
  locale: import("vue").PropType<import("./types").EleLocale>;
6
6
  }, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
7
7
  [key: string]: any;
8
8
  }>[] | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
9
- table: import("vue").PropType<Partial<Pick<import("../ele-pro-table/props").ProTableProps, "size" | "stripe" | "border" | "request" | "response" | "parseData" | "tools" | "maximizedIndex" | "pagination">>>;
9
+ table: import("vue").PropType<Partial<Pick<import("../ele-pro-table/props").ProTableProps, "size" | "stripe" | "border" | "request" | "response" | "parseData" | "tools" | "maximizedIndex" | "pagination" | "emptyProps">>>;
10
10
  mapKey: StringConstructor;
11
11
  license: StringConstructor;
12
12
  locale: import("vue").PropType<import("./types").EleLocale>;
@@ -4,7 +4,7 @@ import type { EleLocale } from './types';
4
4
  * 属性
5
5
  */
6
6
  export declare const configProviderProps: {
7
- table: PropType<Partial<Pick<import("../ele-pro-table/props").ProTableProps, "size" | "stripe" | "border" | "request" | "response" | "parseData" | "tools" | "maximizedIndex" | "pagination">>>;
7
+ table: PropType<Partial<Pick<import("../ele-pro-table/props").ProTableProps, "size" | "stripe" | "border" | "request" | "response" | "parseData" | "tools" | "maximizedIndex" | "pagination" | "emptyProps">>>;
8
8
  mapKey: StringConstructor;
9
9
  license: StringConstructor;
10
10
  locale: PropType<EleLocale>;
@@ -1,6 +1,7 @@
1
1
  import type { Ref } from 'vue';
2
2
  import { LAYOUT_KEY } from './props';
3
3
  import type { EleGlobalProvide, LocaleProps, UseLicenseResult, UseLocaleResult, LayoutProvide, ResponsiveProps } from './types';
4
+ export declare const UNAUTHORIZED_TIP = "\u6388\u6743\u7801\u68C0\u9A8C\u5931\u8D25, \u8BF7\u524D\u5F80 https://eleadmin.com \u83B7\u53D6\u6388\u6743\u7801.";
4
5
  /**
5
6
  * 获取全局配置
6
7
  */
@@ -1,198 +1,116 @@
1
- import { inject, computed, ref, watch, unref } from "vue";
2
- import { PROVIDE_KEY, LAYOUT_KEY } from "./props";
3
- import { LAYOUT_KEY as LAYOUT_KEY2 } from "./props";
4
- import defaultLocale from "../lang/zh_CN";
5
- const KEY_ENCRYPT = "BAFEDIHGLKJONMRQPUTSXWVaZYdcbgfejihmlkponsrqvutyxw10z432765+98/C";
6
- const VERSION_TIMESTAMP = 1686851682;
7
- const VERSION_NAME = "1.0";
8
- function useReceiver() {
9
- return inject(PROVIDE_KEY, {});
1
+ import { inject as R, computed as v, ref as T, watch as I, unref as N } from "vue";
2
+ import { PROVIDE_KEY as P, LAYOUT_KEY as _ } from "./props";
3
+ import { LAYOUT_KEY as W } from "./props";
4
+ import B from "../lang/zh_CN";
5
+ const K = "\u6388\u6743\u7801\u68C0\u9A8C\u5931\u8D25, \u8BF7\u524D\u5F80 https://eleadmin.com \u83B7\u53D6\u6388\u6743\u7801.", U = "BAFEDIHGLKJONMRQPUTSXWVaZYdcbgfejihmlkponsrqvutyxw10z432765+98/C", $ = 1691081914, L = "1.1";
6
+ function Y() {
7
+ return R(P, {});
10
8
  }
11
- function useGlobalProps(name) {
12
- const globalConfig = useReceiver();
13
- return computed(() => globalConfig[name] ?? {});
9
+ function H(t) {
10
+ const r = Y();
11
+ return v(() => r[t] ?? {});
14
12
  }
15
- function useLocale(name, props) {
16
- const globalConfig = useReceiver();
17
- const lang = computed(() => {
18
- const temp = globalConfig.locale ?? defaultLocale;
19
- if (name) {
20
- return Object.assign({}, temp[name] ?? {}, props == null ? void 0 : props.locale);
21
- }
22
- return temp;
23
- });
24
- return { lang, globalConfig };
13
+ function J(t, r) {
14
+ const n = Y();
15
+ return { lang: v(() => {
16
+ const s = n.locale ?? B;
17
+ return t ? Object.assign({}, s[t] ?? {}, r == null ? void 0 : r.locale) : s;
18
+ }), globalConfig: n };
25
19
  }
26
- function useLicense() {
27
- const globalConfig = useReceiver();
28
- const license = computed(() => globalConfig.license);
29
- const authenticated = ref(false);
30
- const printError = (v, e, d, h) => {
31
- const tips = [new Array(60).join("*")];
32
- tips.push("授权码检验失败, 请前往 https://eleadmin.com 获取授权码.");
33
- if (v) {
34
- tips.push(`授权版本号不匹配, 请使用: ${v}, 当前版本: ${VERSION_NAME}`);
35
- }
36
- if (typeof e === "number") {
37
- tips.push(`授权已失效, 到期时间: ${new Date(e * 1e3).toLocaleString()}`);
38
- }
39
- if (d) {
40
- tips.push(`域名不匹配, 请部署在: ${d} 下, 当前域名: ${h}`);
41
- }
42
- tips.push(new Array(60).join("*"));
43
- console.error(tips.join("\n"));
44
- authenticated.value = false;
20
+ function k() {
21
+ const t = Y(), r = v(() => t.license), n = T(!1), i = (s, D, o, l) => {
22
+ const e = [new Array(60).join("*")];
23
+ e.push(K), s && e.push(`\u6388\u6743\u7248\u672C\u53F7\u4E0D\u5339\u914D, \u8BF7\u4F7F\u7528: ${s}, \u5F53\u524D\u7248\u672C: ${L}`), typeof D == "number" && e.push(`\u6388\u6743\u5DF2\u5931\u6548, \u5230\u671F\u65F6\u95F4: ${new Date(D * 1e3).toLocaleString()}`), o && e.push(`\u57DF\u540D\u4E0D\u5339\u914D, \u8BF7\u90E8\u7F72\u5728: ${o} \u4E0B, \u5F53\u524D\u57DF\u540D: ${l}`), e.push(new Array(60).join("*")), console.error(e.join(`
24
+ `)), n.value = !1;
45
25
  };
46
- watch(
47
- license,
48
- (value) => {
49
- var _a;
50
- if (typeof value !== "string" || !value) {
51
- return printError();
52
- }
26
+ return I(
27
+ r,
28
+ (s) => {
29
+ var D;
30
+ if (typeof s != "string" || !s)
31
+ return i();
53
32
  try {
54
- const certificate = JSON.parse(decodeCode(value));
55
- if (certificate.product !== "EleAdminPlus") {
56
- return printError();
57
- }
58
- const { version, expiration, domain } = certificate;
59
- if (version && version !== VERSION_NAME) {
60
- return printError(version);
61
- }
62
- if (expiration && expiration < VERSION_TIMESTAMP) {
63
- return printError(void 0, expiration);
64
- }
65
- if (domain) {
66
- const hostname = (_a = window == null ? void 0 : window.location) == null ? void 0 : _a.hostname;
67
- if (!hostname) {
68
- return printError(void 0, void 0, domain, "");
69
- }
70
- if ("localhost" !== hostname && "127.0.0.1" !== hostname) {
71
- const t1 = domain.split(".");
72
- const t2 = hostname.split(".");
73
- for (let i = t1.length - 1; i >= 0; i--) {
74
- if (t1[i] !== t2[i]) {
75
- return printError(void 0, void 0, domain, hostname);
76
- }
77
- }
78
- if (t2.length > t1.length && t2[t2.length - t1.length - 1] !== "www") {
79
- return printError(void 0, void 0, domain, hostname);
80
- }
33
+ const o = JSON.parse(M(s));
34
+ if (o.product !== "EleAdminPlus")
35
+ return i();
36
+ const { version: l, expiration: e, domain: a } = o;
37
+ if (l && l !== L)
38
+ return i(l);
39
+ if (e && e < $)
40
+ return i(void 0, e);
41
+ if (a) {
42
+ const h = (D = window == null ? void 0 : window.location) == null ? void 0 : D.hostname;
43
+ if (!h)
44
+ return i(void 0, void 0, a, "");
45
+ if (h !== "localhost" && h !== "127.0.0.1") {
46
+ const g = a.split("."), m = h.split(".");
47
+ for (let d = g.length - 1; d >= 0; d--)
48
+ if (g[d] !== m[d])
49
+ return i(void 0, void 0, a, h);
50
+ if (m.length > g.length && m[m.length - g.length - 1] !== "www")
51
+ return i(void 0, void 0, a, h);
81
52
  }
82
53
  }
83
- } catch (e) {
84
- console.error(e);
85
- return printError();
54
+ } catch (o) {
55
+ return console.error(o), i();
86
56
  }
87
- authenticated.value = true;
57
+ n.value = !0;
88
58
  },
89
- { immediate: true }
90
- );
91
- return { authenticated, globalConfig };
59
+ { immediate: !0 }
60
+ ), { authenticated: n, globalConfig: t };
92
61
  }
93
- function decodeCode(encrypt) {
94
- const format = (encrypt2, length, offset) => {
95
- const content = ((array, offset2) => {
96
- const max = array.length - offset2;
97
- if (max <= 0) {
98
- return array;
99
- }
100
- const result = new Array(array.length);
101
- for (let i2 = 0; i2 < array.length; i2++) {
102
- if (i2 < offset2) {
103
- result[i2] = array[max + i2];
104
- } else {
105
- result[i2] = array[i2 - offset2];
106
- }
107
- }
108
- return result;
109
- })(encrypt2.split(""), offset).join("");
110
- const sb = [];
111
- let start = 0;
112
- while (start < content.length) {
113
- let end = start + length;
114
- if (end > content.length) {
115
- end = content.length;
116
- }
117
- const item = content.substring(start, end);
118
- sb.push(item.split("").reverse().join(""));
119
- start = end;
120
- }
121
- return sb.join("");
122
- };
123
- const index = encrypt.indexOf("=");
124
- const body = index === -1 ? encrypt : encrypt.substring(0, index);
125
- const suffix = index === -1 ? "" : encrypt.substring(index);
126
- const temp = format(body, 12, 3) + suffix;
127
- const input = temp.replace(/[^A-Za-z0-9\+\/\=]/g, "");
128
- const KEYS = format(KEY_ENCRYPT, 3, 1) + "=";
129
- let output = "";
130
- let chr1, chr2, chr3;
131
- let enc1, enc2, enc3, enc4;
132
- let i = 0;
133
- while (i < input.length) {
134
- enc1 = KEYS.indexOf(input.charAt(i++));
135
- enc2 = KEYS.indexOf(input.charAt(i++));
136
- enc3 = KEYS.indexOf(input.charAt(i++));
137
- enc4 = KEYS.indexOf(input.charAt(i++));
138
- chr1 = enc1 << 2 | enc2 >> 4;
139
- chr2 = (enc2 & 15) << 4 | enc3 >> 2;
140
- chr3 = (enc3 & 3) << 6 | enc4;
141
- output = output + String.fromCharCode(chr1);
142
- if (enc3 != 64) {
143
- output = output + String.fromCharCode(chr2);
144
- }
145
- if (enc4 != 64) {
146
- output = output + String.fromCharCode(chr3);
147
- }
148
- }
149
- output = ((utftext) => {
150
- let string = "";
151
- let i2 = 0;
152
- let c = 0;
153
- let c2 = 0;
154
- let c3 = 0;
155
- while (i2 < utftext.length) {
156
- c = utftext.charCodeAt(i2);
157
- if (c < 128) {
158
- string += String.fromCharCode(c);
159
- i2++;
160
- } else if (c > 191 && c < 224) {
161
- c2 = utftext.charCodeAt(i2 + 1);
162
- string += String.fromCharCode((c & 31) << 6 | c2 & 63);
163
- i2 += 2;
164
- } else {
165
- c2 = utftext.charCodeAt(i2 + 1);
166
- c3 = utftext.charCodeAt(i2 + 2);
167
- string += String.fromCharCode(
168
- (c & 15) << 12 | (c2 & 63) << 6 | c3 & 63
169
- );
170
- i2 += 3;
171
- }
62
+ function M(t) {
63
+ const r = (C, F, f) => {
64
+ const u = ((c, O) => {
65
+ const x = c.length - O;
66
+ if (x <= 0)
67
+ return c;
68
+ const j = new Array(c.length);
69
+ for (let E = 0; E < c.length; E++)
70
+ E < O ? j[E] = c[x + E] : j[E] = c[E - O];
71
+ return j;
72
+ })(C.split(""), f).join(""), p = [];
73
+ let A = 0;
74
+ for (; A < u.length; ) {
75
+ let c = A + F;
76
+ c > u.length && (c = u.length);
77
+ const O = u.substring(A, c);
78
+ p.push(O.split("").reverse().join("")), A = c;
172
79
  }
173
- return string;
174
- })(output);
175
- return output;
80
+ return p.join("");
81
+ }, n = t.indexOf("="), i = n === -1 ? t : t.substring(0, n), s = n === -1 ? "" : t.substring(n), o = (r(i, 12, 3) + s).replace(/[^A-Za-z0-9\+\/\=]/g, ""), l = r(U, 3, 1) + "=";
82
+ let e = "", a, h, g, m, d, S, b, w = 0;
83
+ for (; w < o.length; )
84
+ m = l.indexOf(o.charAt(w++)), d = l.indexOf(o.charAt(w++)), S = l.indexOf(o.charAt(w++)), b = l.indexOf(o.charAt(w++)), a = m << 2 | d >> 4, h = (d & 15) << 4 | S >> 2, g = (S & 3) << 6 | b, e = e + String.fromCharCode(a), S != 64 && (e = e + String.fromCharCode(h)), b != 64 && (e = e + String.fromCharCode(g));
85
+ return e = ((C) => {
86
+ let F = "", f = 0, u = 0, p = 0, A = 0;
87
+ for (; f < C.length; )
88
+ u = C.charCodeAt(f), u < 128 ? (F += String.fromCharCode(u), f++) : u > 191 && u < 224 ? (p = C.charCodeAt(f + 1), F += String.fromCharCode((u & 31) << 6 | p & 63), f += 2) : (p = C.charCodeAt(f + 1), A = C.charCodeAt(f + 2), F += String.fromCharCode(
89
+ (u & 15) << 12 | (p & 63) << 6 | A & 63
90
+ ), f += 3);
91
+ return F;
92
+ })(e), e;
176
93
  }
177
- function useLayoutState(defaultValue) {
178
- return inject(
179
- LAYOUT_KEY,
180
- defaultValue ?? ref({})
94
+ function V(t) {
95
+ return R(
96
+ _,
97
+ t ?? T({})
181
98
  );
182
99
  }
183
- function useResponsive(props) {
184
- const state = useLayoutState();
185
- return computed(() => {
186
- var _a;
187
- return props.responsive ?? ((_a = unref(state)) == null ? void 0 : _a.responsive) ?? true;
100
+ function q(t) {
101
+ const r = V();
102
+ return v(() => {
103
+ var n;
104
+ return t.responsive ?? ((n = N(r)) == null ? void 0 : n.responsive) ?? !0;
188
105
  });
189
106
  }
190
107
  export {
191
- LAYOUT_KEY2 as LAYOUT_KEY,
192
- useGlobalProps,
193
- useLayoutState,
194
- useLicense,
195
- useLocale,
196
- useReceiver,
197
- useResponsive
108
+ W as LAYOUT_KEY,
109
+ K as UNAUTHORIZED_TIP,
110
+ H as useGlobalProps,
111
+ V as useLayoutState,
112
+ k as useLicense,
113
+ J as useLocale,
114
+ Y as useReceiver,
115
+ q as useResponsive
198
116
  };
@@ -24,7 +24,7 @@ export interface EleGlobalProvide {
24
24
  /**
25
25
  * 表格配置
26
26
  */
27
- export type TableGlobalConfig = Partial<Pick<ProTableProps, 'stripe' | 'border' | 'request' | 'response' | 'parseData' | 'size' | 'tools' | 'maximizedIndex' | 'pagination'>>;
27
+ export type TableGlobalConfig = Partial<Pick<ProTableProps, 'stripe' | 'border' | 'request' | 'response' | 'parseData' | 'size' | 'tools' | 'maximizedIndex' | 'pagination' | 'emptyProps'>>;
28
28
  /**
29
29
  * 国际化
30
30
  */
@@ -64,7 +64,7 @@ export interface UseLocaleResult<T> {
64
64
  * 带国际化的组件属性
65
65
  */
66
66
  export interface LocaleProps<T> extends Record<keyof any, any> {
67
- locale?: T;
67
+ locale?: Partial<T>;
68
68
  }
69
69
  /**
70
70
  * 带响应式的组件属性
@@ -1,5 +1,5 @@
1
1
  import { CountUp } from 'countup.js';
2
- declare const _sfc_main: import("vue").DefineComponent<{
2
+ declare const _default: import("vue").DefineComponent<{
3
3
  delay: {
4
4
  type: NumberConstructor;
5
5
  default: number;
@@ -33,4 +33,4 @@ declare const _sfc_main: import("vue").DefineComponent<{
33
33
  }, {
34
34
  delay: number;
35
35
  }, {}>;
36
- export default _sfc_main;
36
+ export default _default;
@@ -1,4 +1,4 @@
1
- declare const _sfc_main: import("vue").DefineComponent<{
1
+ declare const _default: import("vue").DefineComponent<{
2
2
  previewWidth: {
3
3
  type: NumberConstructor;
4
4
  required: true;
@@ -14,4 +14,4 @@ declare const _sfc_main: import("vue").DefineComponent<{
14
14
  };
15
15
  aspectRatio: NumberConstructor;
16
16
  }>>, {}, {}>;
17
- export default _sfc_main;
17
+ export default _default;
@@ -1,11 +1,11 @@
1
1
  import type { PropType } from 'vue';
2
- import type { ElTooltipProps } from 'element-plus';
2
+ import type { EleTooltipProps } from '../../ele-avatar-group/types';
3
3
  import type { UploadOption, ToolName, ToolGroup, ToolItem, CropperLocale } from '../types';
4
- declare const _sfc_main: import("vue").DefineComponent<{
4
+ declare const _default: import("vue").DefineComponent<{
5
5
  tools: StringConstructor;
6
6
  accept: StringConstructor;
7
7
  tooltip: BooleanConstructor;
8
- tooltipProps: PropType<Partial<ElTooltipProps>>;
8
+ tooltipProps: PropType<EleTooltipProps>;
9
9
  locale: PropType<CropperLocale>;
10
10
  }, {
11
11
  lang: import("vue").ComputedRef<CropperLocale>;
@@ -33,9 +33,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
33
33
  tools: StringConstructor;
34
34
  accept: StringConstructor;
35
35
  tooltip: BooleanConstructor;
36
- tooltipProps: PropType<Partial<ElTooltipProps>>;
36
+ tooltipProps: PropType<EleTooltipProps>;
37
37
  locale: PropType<CropperLocale>;
38
38
  }>> & {
39
+ onReset?: (() => any) | undefined;
39
40
  onZoomIn?: (() => any) | undefined;
40
41
  onZoomOut?: (() => any) | undefined;
41
42
  onMoveLeft?: (() => any) | undefined;
@@ -46,10 +47,9 @@ declare const _sfc_main: import("vue").DefineComponent<{
46
47
  onRotateRight?: (() => any) | undefined;
47
48
  onFlipX?: (() => any) | undefined;
48
49
  onFlipY?: (() => any) | undefined;
49
- onReset?: (() => any) | undefined;
50
50
  onUpload?: ((_option?: UploadOption | undefined) => any) | undefined;
51
51
  onOk?: (() => any) | undefined;
52
52
  }, {
53
53
  tooltip: boolean;
54
54
  }, {}>;
55
- export default _sfc_main;
55
+ export default _default;
@@ -1,6 +1,7 @@
1
1
  import { defineComponent, shallowRef, ref, watch, resolveComponent, openBlock, createElementBlock, Fragment, renderList, createBlock, withCtx, createVNode, normalizeClass, createTextVNode, toDisplayString, createCommentVNode, mergeProps } from "vue";
2
- import { ElButtonGroup, ElButton, ElUpload, ElTooltip } from "element-plus";
3
2
  import { ZoomIn, ZoomOut, Back, Right, Top, Bottom, RefreshLeft, RefreshRight, Switch, Sort, Refresh, Upload, Check } from "@element-plus/icons-vue";
3
+ import { ElButtonGroup, ElButton, ElUpload } from "element-plus";
4
+ import EleTooltip from "../../ele-tooltip/index";
4
5
  import { useLocale } from "../../ele-config-provider/receiver";
5
6
  const TOOL_ICONS = {
6
7
  zoomIn: ZoomIn,
@@ -19,7 +20,7 @@ const TOOL_ICONS = {
19
20
  };
20
21
  const _sfc_main = defineComponent({
21
22
  name: "CropperTools",
22
- components: { ElButtonGroup, ElButton, ElUpload, ElTooltip },
23
+ components: { ElButtonGroup, ElButton, ElUpload, EleTooltip },
23
24
  props: {
24
25
  // 操作按钮布局
25
26
  tools: String,
@@ -123,7 +124,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
123
124
  const _component_ElButton = resolveComponent("ElButton");
124
125
  const _component_ElUpload = resolveComponent("ElUpload");
125
126
  const _component_ElButtonGroup = resolveComponent("ElButtonGroup");
126
- const _component_ElTooltip = resolveComponent("ElTooltip");
127
+ const _component_EleTooltip = resolveComponent("EleTooltip");
127
128
  return openBlock(), createElementBlock("div", _hoisted_1, [
128
129
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.groups, (group) => {
129
130
  return openBlock(), createBlock(_component_ElButtonGroup, {
@@ -173,7 +174,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
173
174
  _: 2
174
175
  }, 1024);
175
176
  }), 128)),
176
- createVNode(_component_ElTooltip, mergeProps({ placement: "top" }, _ctx.tooltipProps, {
177
+ createVNode(_component_EleTooltip, mergeProps({
178
+ placement: "top",
179
+ offset: 6
180
+ }, _ctx.tooltipProps || {}, {
177
181
  content: _ctx.tooltipContent,
178
182
  virtualRef: _ctx.virtualRef,
179
183
  virtualTriggering: true