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
@@ -1,9 +1,10 @@
1
- import { defineComponent, ref, computed, watch, nextTick, resolveComponent, openBlock, createElementBlock, renderSlot, createElementVNode, createVNode, createSlots, withCtx, normalizeProps, guardReactiveProps } from "vue";
1
+ import { defineComponent, ref, computed, watch, nextTick, resolveComponent, openBlock, createElementBlock, renderSlot, createVNode, withCtx, createSlots, normalizeProps, guardReactiveProps } from "vue";
2
+ import { ElScrollbar } from "element-plus";
2
3
  import EleMenus from "../../ele-menus/index";
3
4
  import { useMenuScroll, getMenuItems } from "../util";
4
5
  const _sfc_main = defineComponent({
5
6
  name: "ProSidebox",
6
- components: { EleMenus },
7
+ components: { ElScrollbar, EleMenus },
7
8
  props: {
8
9
  // 菜单数据
9
10
  menus: {
@@ -28,7 +29,10 @@ const _sfc_main = defineComponent({
28
29
  iconSlot: String
29
30
  },
30
31
  setup(props) {
31
- const { scrollIntoView } = useMenuScroll(() => menusRef.value);
32
+ const { scrollIntoView } = useMenuScroll(() => {
33
+ var _a;
34
+ return (_a = menusRef.value) == null ? void 0 : _a.$el;
35
+ });
32
36
  const menusRef = ref(null);
33
37
  const menuItems = computed(() => getMenuItems(props.menus));
34
38
  watch(
@@ -50,42 +54,46 @@ const _export_sfc = (sfc, props) => {
50
54
  return target;
51
55
  };
52
56
  const _hoisted_1 = { class: "ele-admin-sidebox" };
53
- const _hoisted_2 = {
54
- ref: "menusRef",
55
- class: "ele-admin-menus"
56
- };
57
57
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
58
58
  const _component_EleMenus = resolveComponent("EleMenus");
59
+ const _component_ElScrollbar = resolveComponent("ElScrollbar");
59
60
  return openBlock(), createElementBlock("div", _hoisted_1, [
60
61
  renderSlot(_ctx.$slots, "boxTop"),
61
- createElementVNode("div", _hoisted_2, [
62
- createVNode(_component_EleMenus, {
63
- items: _ctx.menuItems,
64
- theme: _ctx.sidebarStyle,
65
- popupColorful: _ctx.colorfulIcon,
66
- collapse: _ctx.compact || _ctx.collapse,
67
- defaultActive: _ctx.active,
68
- uniqueOpened: true,
69
- popperEffect: _ctx.popperEffect,
70
- firstPopperClass: "ele-admin-sidebox-popup",
71
- tooltipDisabled: !_ctx.compact
72
- }, createSlots({ _: 2 }, [
73
- _ctx.iconSlot && _ctx.$slots[_ctx.iconSlot] ? {
74
- name: "icon",
75
- fn: withCtx((slotProps) => [
76
- renderSlot(_ctx.$slots, _ctx.iconSlot, normalizeProps(guardReactiveProps(slotProps || {})))
77
- ]),
78
- key: "0"
79
- } : void 0,
80
- _ctx.titleSlot && _ctx.$slots[_ctx.titleSlot] ? {
81
- name: "title",
82
- fn: withCtx((slotProps) => [
83
- renderSlot(_ctx.$slots, _ctx.titleSlot, normalizeProps(guardReactiveProps(slotProps || {})))
84
- ]),
85
- key: "1"
86
- } : void 0
87
- ]), 1032, ["items", "theme", "popupColorful", "collapse", "defaultActive", "popperEffect", "tooltipDisabled"])
88
- ], 512),
62
+ createVNode(_component_ElScrollbar, {
63
+ ref: "menusRef",
64
+ class: "ele-admin-menus"
65
+ }, {
66
+ default: withCtx(() => [
67
+ createVNode(_component_EleMenus, {
68
+ items: _ctx.menuItems,
69
+ theme: _ctx.sidebarStyle,
70
+ popupColorful: _ctx.colorfulIcon,
71
+ collapse: _ctx.compact || _ctx.collapse,
72
+ defaultActive: _ctx.active,
73
+ uniqueOpened: true,
74
+ popperEffect: _ctx.popperEffect,
75
+ collapseTransition: false,
76
+ firstPopperClass: "ele-admin-sidebox-popup",
77
+ tooltipDisabled: !_ctx.compact
78
+ }, createSlots({ _: 2 }, [
79
+ _ctx.iconSlot && _ctx.$slots[_ctx.iconSlot] ? {
80
+ name: "icon",
81
+ fn: withCtx((slotProps) => [
82
+ renderSlot(_ctx.$slots, _ctx.iconSlot, normalizeProps(guardReactiveProps(slotProps || {})))
83
+ ]),
84
+ key: "0"
85
+ } : void 0,
86
+ _ctx.titleSlot && _ctx.$slots[_ctx.titleSlot] ? {
87
+ name: "title",
88
+ fn: withCtx((slotProps) => [
89
+ renderSlot(_ctx.$slots, _ctx.titleSlot, normalizeProps(guardReactiveProps(slotProps || {})))
90
+ ]),
91
+ key: "1"
92
+ } : void 0
93
+ ]), 1032, ["items", "theme", "popupColorful", "collapse", "defaultActive", "popperEffect", "tooltipDisabled"])
94
+ ]),
95
+ _: 3
96
+ }, 512),
89
97
  renderSlot(_ctx.$slots, "boxBottom")
90
98
  ]);
91
99
  }
@@ -1,8 +1,8 @@
1
1
  import type { PropType } from 'vue';
2
- import type { TabPaneItem, TabEventOption } from '../../ele-tabs/types';
3
- import type { ElDropdownInstance } from '../../ele-app/types';
4
- import type { TabItem, TabStyle, TabItemEventOption } from '../types';
5
- declare const _sfc_main: import("vue").DefineComponent<{
2
+ import type { TabPaneItem, TabEventOption, ContextMenus } from '../../ele-tabs/types';
3
+ import type { EleDropdownProps, DropdownInstance } from '../../ele-file-list/types';
4
+ import type { TabItem, TabStyle, TabItemEventOption, TabTitleInstance, EleTabsInstance } from '../types';
5
+ declare const _default: import("vue").DefineComponent<{
6
6
  tabs: {
7
7
  type: PropType<TabItem[]>;
8
8
  required: true;
@@ -15,16 +15,17 @@ declare const _sfc_main: import("vue").DefineComponent<{
15
15
  homePath: StringConstructor;
16
16
  isHome: BooleanConstructor;
17
17
  tabStyle: PropType<TabStyle>;
18
- tabContextMenu: BooleanConstructor;
18
+ tabContextMenu: PropType<boolean | EleDropdownProps>;
19
+ tabContextMenus: PropType<ContextMenus>;
19
20
  tabSortable: BooleanConstructor;
20
21
  }, {
21
- homeRef: any;
22
- tabRef: any;
22
+ homeRef: import("vue").Ref<TabTitleInstance>;
23
+ tabRef: import("vue").Ref<EleTabsInstance>;
23
24
  items: import("vue").ComputedRef<TabPaneItem[]>;
24
25
  onTabRemove: (key: string) => void;
25
26
  onTabItemClick: (opt: TabEventOption) => void;
26
27
  onTabContextMenu: (opt: TabEventOption) => void;
27
- onTabContextOpen: (ref: ElDropdownInstance) => void;
28
+ onTabContextOpen: (ref: DropdownInstance) => void;
28
29
  onTabSortChange: (data: TabPaneItem[]) => void;
29
30
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
30
31
  tabClick: (_opt: TabItemEventOption) => true;
@@ -44,17 +45,17 @@ declare const _sfc_main: import("vue").DefineComponent<{
44
45
  homePath: StringConstructor;
45
46
  isHome: BooleanConstructor;
46
47
  tabStyle: PropType<TabStyle>;
47
- tabContextMenu: BooleanConstructor;
48
+ tabContextMenu: PropType<boolean | EleDropdownProps>;
49
+ tabContextMenus: PropType<ContextMenus>;
48
50
  tabSortable: BooleanConstructor;
49
51
  }>> & {
50
- onTabClick?: ((_opt: TabItemEventOption) => any) | undefined;
51
- onTabRemove?: ((_opt: TabItemEventOption) => any) | undefined;
52
52
  onTabContextMenu?: ((_opt: TabItemEventOption) => any) | undefined;
53
53
  onTabSortChange?: ((_data: TabItem[]) => any) | undefined;
54
+ onTabClick?: ((_opt: TabItemEventOption) => any) | undefined;
55
+ onTabRemove?: ((_opt: TabItemEventOption) => any) | undefined;
54
56
  }, {
55
- tabContextMenu: boolean;
56
57
  fixedHome: boolean;
57
58
  isHome: boolean;
58
59
  tabSortable: boolean;
59
60
  }, {}>;
60
- export default _sfc_main;
61
+ export default _default;
@@ -28,7 +28,9 @@ const _sfc_main = defineComponent({
28
28
  // 页签风格
29
29
  tabStyle: String,
30
30
  // 是否支持右键菜单
31
- tabContextMenu: Boolean,
31
+ tabContextMenu: [Boolean, Object],
32
+ // 右键菜单
33
+ tabContextMenus: [Array, Function],
32
34
  // 是否支持拖动排序
33
35
  tabSortable: Boolean
34
36
  },
@@ -134,6 +136,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
134
136
  tabName: _ctx.homePath,
135
137
  handleClick: true,
136
138
  contextMenu: _ctx.tabContextMenu,
139
+ contextMenus: typeof _ctx.tabContextMenus === "function" ? _ctx.tabContextMenus() : _ctx.tabContextMenus,
137
140
  onContextMenu: _ctx.onTabContextMenu,
138
141
  onContextOpen: _ctx.onTabContextOpen,
139
142
  onItemClick: _ctx.onTabItemClick
@@ -160,7 +163,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
160
163
  ]),
161
164
  key: "0"
162
165
  } : void 0
163
- ]), 1032, ["active", "tabName", "contextMenu", "onContextMenu", "onContextOpen", "onItemClick"])
166
+ ]), 1032, ["active", "tabName", "contextMenu", "contextMenus", "onContextMenu", "onContextOpen", "onItemClick"])
164
167
  ]),
165
168
  _: 3
166
169
  }, 8, ["active"])) : createCommentVNode("", true),
@@ -172,6 +175,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
172
175
  handleClick: true,
173
176
  sortable: _ctx.tabSortable,
174
177
  contextMenu: _ctx.tabContextMenu,
178
+ contextMenus: _ctx.tabContextMenus,
175
179
  mousewheel: true,
176
180
  onTabRemove: _ctx.onTabRemove,
177
181
  onTabItemClick: _ctx.onTabItemClick,
@@ -193,7 +197,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
193
197
  ]),
194
198
  key: "1"
195
199
  } : void 0
196
- ]), 1032, ["items", "type", "modelValue", "sortable", "contextMenu", "onTabRemove", "onTabItemClick", "onTabContextMenu", "onTabContextOpen", "onTabSortChange"]),
200
+ ]), 1032, ["items", "type", "modelValue", "sortable", "contextMenu", "contextMenus", "onTabRemove", "onTabItemClick", "onTabContextMenu", "onTabContextOpen", "onTabSortChange"]),
197
201
  renderSlot(_ctx.$slots, "tabExtra", { active: _ctx.active })
198
202
  ]),
199
203
  _: 3
@@ -1,2 +1,2 @@
1
- declare const _sfc_main: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
2
- export default _sfc_main;
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
2
+ export default _default;
@@ -1,8 +1,28 @@
1
- declare const _sfc_main: import("vue").DefineComponent<{}, {
1
+ import type { PropType } from 'vue';
2
+ import type { DropdownItem } from '../../ele-dropdown/types';
3
+ import type { EleDropdownProps, DropdownInstance } from '../../ele-file-list/types';
4
+ declare const _default: import("vue").DefineComponent<{
5
+ items: PropType<DropdownItem[]>;
6
+ dropdownProps: PropType<EleDropdownProps>;
7
+ autoClose: {
8
+ type: BooleanConstructor;
9
+ default: boolean;
10
+ };
11
+ }, {
12
+ dropdownRef: import("vue").Ref<DropdownInstance>;
2
13
  onCommand: (command: string) => void;
3
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
14
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
4
15
  menuClick: (_command: string) => true;
5
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
16
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
17
+ items: PropType<DropdownItem[]>;
18
+ dropdownProps: PropType<EleDropdownProps>;
19
+ autoClose: {
20
+ type: BooleanConstructor;
21
+ default: boolean;
22
+ };
23
+ }>> & {
6
24
  onMenuClick?: ((_command: string) => any) | undefined;
7
- }, {}, {}>;
8
- export default _sfc_main;
25
+ }, {
26
+ autoClose: boolean;
27
+ }, {}>;
28
+ export default _default;
@@ -1,19 +1,46 @@
1
- import { defineComponent, resolveComponent, openBlock, createBlock, withCtx, createVNode, renderSlot, createElementVNode } from "vue";
1
+ import { defineComponent, ref, onBeforeUnmount, resolveComponent, openBlock, createBlock, withCtx, createVNode, mergeProps, createSlots, createElementVNode, renderSlot } from "vue";
2
+ import { ElIcon } from "element-plus";
2
3
  import { ArrowDown } from "@element-plus/icons-vue";
3
- import { ElDropdown, ElDropdownMenu, ElIcon } from "element-plus";
4
+ import EleDropdown from "../../ele-dropdown/index";
4
5
  import EleTabTool from "../../ele-tab-tool/index";
5
6
  const _sfc_main = defineComponent({
6
7
  name: "TabDropdown",
7
- components: { ElDropdown, ElDropdownMenu, ElIcon, ArrowDown, EleTabTool },
8
+ components: { ElIcon, ArrowDown, EleDropdown, EleTabTool },
9
+ props: {
10
+ // 右键菜单
11
+ items: Array,
12
+ // 右键菜单属性
13
+ dropdownProps: Object,
14
+ // 是否点击后自动关闭菜单
15
+ autoClose: {
16
+ type: Boolean,
17
+ default: true
18
+ }
19
+ },
8
20
  emits: {
9
21
  menuClick: (_command) => true
10
22
  },
11
- setup(_props, { emit }) {
12
- return {
13
- onCommand: (command) => {
14
- emit("menuClick", command);
23
+ setup(props, { emit }) {
24
+ const state = { timer: null };
25
+ const dropdownRef = ref(null);
26
+ const clearTimer = () => {
27
+ state.timer && clearTimeout(state.timer);
28
+ };
29
+ const onCommand = (command) => {
30
+ emit("menuClick", command);
31
+ clearTimer();
32
+ if (props.autoClose) {
33
+ state.timer = setTimeout(() => {
34
+ if (dropdownRef.value) {
35
+ dropdownRef.value.handleClose();
36
+ }
37
+ }, 100);
15
38
  }
16
39
  };
40
+ onBeforeUnmount(() => {
41
+ clearTimer();
42
+ });
43
+ return { dropdownRef, onCommand };
17
44
  }
18
45
  });
19
46
  const _export_sfc = (sfc, props) => {
@@ -27,24 +54,23 @@ const _hoisted_1 = { style: { "text-align": "center", "outline": "none" } };
27
54
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
28
55
  const _component_ArrowDown = resolveComponent("ArrowDown");
29
56
  const _component_ElIcon = resolveComponent("ElIcon");
30
- const _component_ElDropdownMenu = resolveComponent("ElDropdownMenu");
31
- const _component_ElDropdown = resolveComponent("ElDropdown");
57
+ const _component_EleDropdown = resolveComponent("EleDropdown");
32
58
  const _component_EleTabTool = resolveComponent("EleTabTool");
33
59
  return openBlock(), createBlock(_component_EleTabTool, null, {
34
60
  default: withCtx(() => [
35
- createVNode(_component_ElDropdown, {
61
+ createVNode(_component_EleDropdown, mergeProps(_ctx.dropdownProps, {
62
+ ref: "dropdownRef",
36
63
  placement: "bottom-end",
37
64
  popperClass: "ele-tab-popup",
65
+ popperOptions: {
66
+ modifiers: [
67
+ { name: "arrow", options: { padding: 12 } },
68
+ { name: "offset", options: { offset: [12, 8] } }
69
+ ]
70
+ },
71
+ items: _ctx.items,
38
72
  onCommand: _ctx.onCommand
39
- }, {
40
- dropdown: withCtx(() => [
41
- createVNode(_component_ElDropdownMenu, null, {
42
- default: withCtx(() => [
43
- renderSlot(_ctx.$slots, "default")
44
- ]),
45
- _: 3
46
- })
47
- ]),
73
+ }), createSlots({
48
74
  default: withCtx(() => [
49
75
  createElementVNode("div", _hoisted_1, [
50
76
  renderSlot(_ctx.$slots, "icon", {}, () => [
@@ -60,8 +86,16 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
60
86
  ])
61
87
  ])
62
88
  ]),
63
- _: 3
64
- }, 8, ["onCommand"])
89
+ _: 2
90
+ }, [
91
+ _ctx.$slots.default ? {
92
+ name: "dropdownMenu",
93
+ fn: withCtx(() => [
94
+ renderSlot(_ctx.$slots, "default")
95
+ ]),
96
+ key: "0"
97
+ } : void 0
98
+ ]), 1040, ["items", "onCommand"])
65
99
  ]),
66
100
  _: 3
67
101
  });
@@ -1,7 +1,7 @@
1
1
  import type { Ref } from 'vue';
2
- import type { ClassValue } from '../ele-app/types';
2
+ import type { ClassValues } from '../ele-app/types';
3
3
  import type { MenuItem, TabItem, LevelItem, TabItemEventOption } from './types';
4
- declare const _sfc_main: import("vue").DefineComponent<{
4
+ declare const _default: import("vue").DefineComponent<{
5
5
  menus: import("vue").PropType<MenuItem[] | null>;
6
6
  tabs: import("vue").PropType<TabItem[] | null>;
7
7
  collapse: BooleanConstructor;
@@ -40,7 +40,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
40
40
  default: boolean;
41
41
  };
42
42
  menuTrigger: {
43
- type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "hover" | "click", unknown>>;
43
+ type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "hover" | "click", unknown> | undefined>;
44
44
  default: string;
45
45
  };
46
46
  layout: {
@@ -93,7 +93,8 @@ declare const _sfc_main: import("vue").DefineComponent<{
93
93
  locale: StringConstructor;
94
94
  i18n: import("vue").PropType<import("./types").MenuI18n>;
95
95
  sidebarOpeneds: import("vue").PropType<string[]>;
96
- tabContextMenu: BooleanConstructor;
96
+ tabContextMenu: import("vue").PropType<boolean | import("../ele-file-list/types").EleDropdownProps>;
97
+ tabContextMenus: import("vue").PropType<import("../ele-tabs/types").ContextMenus>;
97
98
  tabSortable: BooleanConstructor;
98
99
  autoScrollTop: {
99
100
  type: BooleanConstructor;
@@ -123,7 +124,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
123
124
  type: StringConstructor;
124
125
  default: string;
125
126
  };
126
- tooltipEffect: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "light" | "dark", unknown>>;
127
+ tooltipEffect: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "light" | "dark", unknown> | undefined>;
127
128
  keepAlive: BooleanConstructor;
128
129
  transitionName: StringConstructor;
129
130
  transitionDelay: {
@@ -135,6 +136,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
135
136
  default: boolean;
136
137
  };
137
138
  }, {
139
+ UNAUTHORIZED_TIP: string;
138
140
  authenticated: Ref<boolean>;
139
141
  contentRef: Ref<HTMLElement | null>;
140
142
  levelData: import("vue").ShallowRef<LevelItem[]>;
@@ -151,7 +153,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
151
153
  isHome: Ref<boolean>;
152
154
  sidebox: import("vue").ComputedRef<boolean>;
153
155
  sidebar: import("vue").ComputedRef<boolean>;
154
- layoutClass: import("vue").ComputedRef<ClassValue>;
156
+ layoutClass: import("vue").ComputedRef<ClassValues>;
155
157
  sidebarCollapse: import("vue").ComputedRef<boolean>;
156
158
  sidebarTheme: import("vue").ComputedRef<"light" | "dark">;
157
159
  updateCollapse: (val?: boolean | MouseEvent) => void;
@@ -217,7 +219,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
217
219
  default: boolean;
218
220
  };
219
221
  menuTrigger: {
220
- type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "hover" | "click", unknown>>;
222
+ type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "hover" | "click", unknown> | undefined>;
221
223
  default: string;
222
224
  };
223
225
  layout: {
@@ -270,7 +272,8 @@ declare const _sfc_main: import("vue").DefineComponent<{
270
272
  locale: StringConstructor;
271
273
  i18n: import("vue").PropType<import("./types").MenuI18n>;
272
274
  sidebarOpeneds: import("vue").PropType<string[]>;
273
- tabContextMenu: BooleanConstructor;
275
+ tabContextMenu: import("vue").PropType<boolean | import("../ele-file-list/types").EleDropdownProps>;
276
+ tabContextMenus: import("vue").PropType<import("../ele-tabs/types").ContextMenus>;
274
277
  tabSortable: BooleanConstructor;
275
278
  autoScrollTop: {
276
279
  type: BooleanConstructor;
@@ -300,7 +303,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
300
303
  type: StringConstructor;
301
304
  default: string;
302
305
  };
303
- tooltipEffect: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "light" | "dark", unknown>>;
306
+ tooltipEffect: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "light" | "dark", unknown> | undefined>;
304
307
  keepAlive: BooleanConstructor;
305
308
  transitionName: StringConstructor;
306
309
  transitionDelay: {
@@ -312,14 +315,14 @@ declare const _sfc_main: import("vue").DefineComponent<{
312
315
  default: boolean;
313
316
  };
314
317
  }>> & {
315
- "onUpdate:collapse"?: ((_collapse: boolean) => any) | undefined;
316
- "onUpdate:maximized"?: ((_val: boolean) => any) | undefined;
317
- onTabAdd?: ((_data: TabItem) => any) | undefined;
318
- onTabClick?: ((_option: TabItemEventOption) => any) | undefined;
319
- onTabRemove?: ((_option: TabItemEventOption) => any) | undefined;
320
318
  onTabContextMenu?: ((_option: TabItemEventOption) => any) | undefined;
321
319
  onTabSortChange?: ((_data: TabItem[]) => any) | undefined;
320
+ onTabClick?: ((_option: TabItemEventOption) => any) | undefined;
321
+ onTabRemove?: ((_option: TabItemEventOption) => any) | undefined;
322
+ onTabAdd?: ((_data: TabItem) => any) | undefined;
322
323
  onLogoClick?: ((_isHome: boolean) => any) | undefined;
324
+ "onUpdate:collapse"?: ((_collapse: boolean) => any) | undefined;
325
+ "onUpdate:maximized"?: ((_val: boolean) => any) | undefined;
323
326
  onSideMenuOpen?: ((_index: string, _indexPath: string[]) => any) | undefined;
324
327
  onSideMenuClose?: ((_index: string, _indexPath: string[]) => any) | undefined;
325
328
  onHeadMenuOpen?: ((_index: string, _indexPath: string[]) => any) | undefined;
@@ -327,20 +330,22 @@ declare const _sfc_main: import("vue").DefineComponent<{
327
330
  onBodySizeChange?: ((_option: import("./types").BodySizeChangeOption) => any) | undefined;
328
331
  }, {
329
332
  uniqueOpened: boolean;
330
- menuTrigger: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "hover" | "click", unknown>;
333
+ menuTrigger: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "hover" | "click", unknown> | undefined;
331
334
  collapse: boolean;
332
335
  ellipsis: boolean;
333
- tabContextMenu: boolean;
334
- compact: boolean;
336
+ layout: import("./types").Layout;
335
337
  maximized: boolean;
338
+ compact: boolean;
339
+ expanded: boolean;
336
340
  tabBar: boolean;
341
+ keepAlive: boolean;
342
+ responsive: boolean;
337
343
  breadcrumb: boolean;
338
344
  breadcrumbSeparator: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown> | undefined;
339
345
  backTop: boolean;
340
346
  backTopVisibilityHeight: number;
341
347
  backTopRight: number;
342
348
  backTopBottom: number;
343
- layout: import("./types").Layout;
344
349
  sidebarLayout: import("./types").SidebarLayout;
345
350
  headerStyle: import("./types").HeaderStyle;
346
351
  sidebarStyle: import("./types").SidebarStyle;
@@ -351,7 +356,6 @@ declare const _sfc_main: import("vue").DefineComponent<{
351
356
  fluid: boolean;
352
357
  logoInHeader: boolean;
353
358
  colorfulIcon: boolean;
354
- expanded: boolean;
355
359
  compressOnEsc: boolean;
356
360
  fixedHome: boolean;
357
361
  redirectPath: string;
@@ -363,8 +367,6 @@ declare const _sfc_main: import("vue").DefineComponent<{
363
367
  sidebarIconSlot: string;
364
368
  sideboxTitleSlot: string;
365
369
  sideboxIconSlot: string;
366
- keepAlive: boolean;
367
370
  transitionDelay: number;
368
- responsive: boolean;
369
371
  }, {}>;
370
- export default _sfc_main;
372
+ export default _default;
@@ -1,14 +1,14 @@
1
- import { defineComponent, ref, shallowRef, computed, watch, unref, provide, resolveComponent, openBlock, createElementBlock, normalizeClass, createVNode, createSlots, renderList, withCtx, renderSlot, normalizeProps, guardReactiveProps, createElementVNode, createBlock, createCommentVNode } from "vue";
1
+ import { defineComponent, ref, shallowRef, computed, watch, unref, provide, resolveComponent, openBlock, createElementBlock, normalizeClass, createVNode, createSlots, renderList, withCtx, renderSlot, normalizeProps, guardReactiveProps, createElementVNode, createBlock, createCommentVNode, toDisplayString } from "vue";
2
2
  import { useRouter } from "vue-router";
3
3
  import { ElBacktop } from "element-plus";
4
4
  import { mapTree } from "../utils/core";
5
- import { useLicense, LAYOUT_KEY } from "../ele-config-provider/receiver";
5
+ import { useLicense, LAYOUT_KEY, UNAUTHORIZED_TIP } from "../ele-config-provider/receiver";
6
6
  import ProHeader from "./components/pro-header";
7
7
  import ProSidebar from "./components/pro-sidebar";
8
8
  import ProSidebox from "./components/pro-sidebox";
9
9
  import ProTabs from "./components/pro-tabs";
10
10
  import ProIframe from "./components/pro-iframe";
11
- import { getHomePath, getRouteMatched, disableTransition, useWindowListener, getMatchedLevels, getRouteTab, getMixActive, getActiveChilds, findTabByPath, findMenuByPath } from "./util";
11
+ import { useDisableTransition, getHomePath, getRouteMatched, useWindowListener, getMatchedLevels, getRouteTab, getMixActive, getActiveChilds, findTabByPath, findMenuByPath } from "./util";
12
12
  import { proLayoutProps, proLayoutEmits } from "./props";
13
13
  const _sfc_main = defineComponent({
14
14
  name: "EleProLayout",
@@ -23,9 +23,9 @@ const _sfc_main = defineComponent({
23
23
  props: proLayoutProps,
24
24
  emits: proLayoutEmits,
25
25
  setup(props, { emit }) {
26
- const state = { timer: null };
27
26
  const { authenticated } = useLicense();
28
27
  const { currentRoute } = useRouter();
28
+ const { disableTransition } = useDisableTransition();
29
29
  const contentRef = ref(null);
30
30
  const levelData = shallowRef([]);
31
31
  const tabData = shallowRef([]);
@@ -392,8 +392,7 @@ const _sfc_main = defineComponent({
392
392
  mobile
393
393
  ],
394
394
  () => {
395
- state.timer && clearTimeout(state.timer);
396
- state.timer = disableTransition();
395
+ disableTransition();
397
396
  }
398
397
  );
399
398
  watch(
@@ -428,7 +427,7 @@ const _sfc_main = defineComponent({
428
427
  props
429
428
  );
430
429
  const layoutProvide = computed(() => {
431
- const state2 = {
430
+ const state = {
432
431
  mobile: mobile.value,
433
432
  collapse: props.collapse,
434
433
  compact: props.compact,
@@ -441,10 +440,11 @@ const _sfc_main = defineComponent({
441
440
  keepAlive: props.tabBar && props.keepAlive,
442
441
  responsive: props.responsive
443
442
  };
444
- return state2;
443
+ return state;
445
444
  });
446
445
  provide(LAYOUT_KEY, layoutProvide);
447
446
  return {
447
+ UNAUTHORIZED_TIP,
448
448
  authenticated,
449
449
  contentRef,
450
450
  levelData,
@@ -487,9 +487,15 @@ const _export_sfc = (sfc, props) => {
487
487
  const _hoisted_1 = { class: "ele-admin-main" };
488
488
  const _hoisted_2 = { class: "ele-admin-body" };
489
489
  const _hoisted_3 = {
490
+ key: 1,
490
491
  ref: "contentRef",
491
492
  class: "ele-admin-content"
492
493
  };
494
+ const _hoisted_4 = {
495
+ key: 2,
496
+ class: "ele-admin-content",
497
+ style: { "padding": "26px" }
498
+ };
493
499
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
494
500
  const _component_ProHeader = resolveComponent("ProHeader");
495
501
  const _component_ProSidebox = resolveComponent("ProSidebox");
@@ -497,8 +503,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
497
503
  const _component_ProTabs = resolveComponent("ProTabs");
498
504
  const _component_ProIframe = resolveComponent("ProIframe");
499
505
  const _component_ElBacktop = resolveComponent("ElBacktop");
500
- return _ctx.authenticated ? (openBlock(), createElementBlock("div", {
501
- key: 0,
506
+ return openBlock(), createElementBlock("div", {
502
507
  class: normalizeClass(_ctx.layoutClass)
503
508
  }, [
504
509
  createVNode(_component_ProHeader, {
@@ -553,7 +558,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
553
558
  ]), 1032, ["menus", "sidebarStyle", "colorfulIcon", "active", "compact", "collapse", "popperEffect", "titleSlot", "iconSlot"])) : createCommentVNode("", true),
554
559
  _ctx.sidebar ? (openBlock(), createBlock(_component_ProSidebar, {
555
560
  key: 1,
556
- menus: _ctx.sidebarData,
561
+ menus: _ctx.authenticated ? _ctx.sidebarData : [],
557
562
  sidebarStyle: _ctx.sidebarTheme,
558
563
  colorfulIcon: _ctx.colorfulIcon,
559
564
  active: _ctx.sidebarActive,
@@ -576,7 +581,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
576
581
  })
577
582
  ]), 1032, ["menus", "sidebarStyle", "colorfulIcon", "active", "collapse", "uniqueOpened", "defaultOpeneds", "popperEffect", "titleSlot", "iconSlot", "onOpen", "onClsoe"])) : createCommentVNode("", true),
578
583
  createElementVNode("div", _hoisted_2, [
579
- _ctx.tabBar ? (openBlock(), createBlock(_component_ProTabs, {
584
+ _ctx.authenticated && _ctx.tabBar ? (openBlock(), createBlock(_component_ProTabs, {
580
585
  key: 0,
581
586
  tabs: _ctx.tabData,
582
587
  active: _ctx.tabActive,
@@ -585,6 +590,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
585
590
  homePath: _ctx.homeMenuPath,
586
591
  isHome: _ctx.isHome,
587
592
  tabContextMenu: _ctx.tabContextMenu,
593
+ tabContextMenus: _ctx.tabContextMenus,
588
594
  tabSortable: _ctx.tabSortable,
589
595
  onTabClick: _ctx.onTabClick,
590
596
  onTabRemove: _ctx.onTabRemove,
@@ -599,8 +605,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
599
605
  ])
600
606
  };
601
607
  })
602
- ]), 1032, ["tabs", "active", "tabStyle", "fixedHome", "homePath", "isHome", "tabContextMenu", "tabSortable", "onTabClick", "onTabRemove", "onTabContextMenu", "onTabSortChange"])) : createCommentVNode("", true),
603
- createElementVNode("div", _hoisted_3, [
608
+ ]), 1032, ["tabs", "active", "tabStyle", "fixedHome", "homePath", "isHome", "tabContextMenu", "tabContextMenus", "tabSortable", "onTabClick", "onTabRemove", "onTabContextMenu", "onTabSortChange"])) : createCommentVNode("", true),
609
+ _ctx.authenticated ? (openBlock(), createElementBlock("div", _hoisted_3, [
604
610
  _ctx.tabBar && _ctx.keepAlive ? (openBlock(), createBlock(_component_ProIframe, {
605
611
  key: 0,
606
612
  keepAlive: _ctx.keepAlive,
@@ -611,7 +617,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
611
617
  }, null, 8, ["keepAlive", "transitionName", "transitionDelay", "tabData", "tabActive"])) : createCommentVNode("", true),
612
618
  renderSlot(_ctx.$slots, "default"),
613
619
  !_ctx.hideFooter ? renderSlot(_ctx.$slots, "footer", { key: 1 }) : createCommentVNode("", true)
614
- ], 512)
620
+ ], 512)) : (openBlock(), createElementBlock("div", _hoisted_4, toDisplayString(_ctx.UNAUTHORIZED_TIP), 1))
615
621
  ])
616
622
  ]),
617
623
  createElementVNode("div", {
@@ -625,7 +631,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
625
631
  visibilityHeight: _ctx.backTopVisibilityHeight,
626
632
  target: _ctx.fixedBody ? ".ele-admin-layout .ele-admin-content" : void 0
627
633
  }, null, 8, ["right", "bottom", "visibilityHeight", "target"])) : createCommentVNode("", true)
628
- ], 2)) : createCommentVNode("", true);
634
+ ], 2);
629
635
  }
630
636
  const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
631
637
  export {