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

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 (575) hide show
  1. package/es/ele-alert/index.d.ts +22 -22
  2. package/es/ele-alert/index.js +2 -2
  3. package/es/ele-app/el.d.ts +2 -1
  4. package/es/ele-app/index.d.ts +2 -2
  5. package/es/ele-avatar-group/index.d.ts +26 -26
  6. package/es/ele-bar-code/index.d.ts +6 -6
  7. package/es/ele-basic-select/index.d.ts +31 -31
  8. package/es/ele-basic-select/index.js +7 -1
  9. package/es/ele-basic-select/props.d.ts +1 -1
  10. package/es/ele-bottom-bar/index.d.ts +5 -5
  11. package/es/ele-breadcrumb/index.d.ts +8 -8
  12. package/es/ele-breadcrumb/props.d.ts +1 -1
  13. package/es/ele-card/index.d.ts +11 -11
  14. package/es/ele-check-card/components/card-item.d.ts +3 -3
  15. package/es/ele-check-card/index.d.ts +12 -12
  16. package/es/ele-config-provider/components/receiver-view.d.ts +2 -2
  17. package/es/ele-config-provider/index.d.ts +6 -6
  18. package/es/ele-config-provider/receiver.d.ts +1 -1
  19. package/es/ele-config-provider/receiver.js +4 -8
  20. package/es/ele-config-provider/types.d.ts +2 -18
  21. package/es/ele-copyable/index.d.ts +28 -28
  22. package/es/ele-count-up/index.d.ts +6 -6
  23. package/es/ele-cropper/components/cropper-preview.d.ts +2 -2
  24. package/es/ele-cropper/components/cropper-tools.d.ts +8 -8
  25. package/es/ele-cropper/index.d.ts +11 -11
  26. package/es/ele-cropper-modal/index.d.ts +13 -13
  27. package/es/ele-cropper-modal/index.js +1 -1
  28. package/es/ele-dashboard/index.d.ts +4 -4
  29. package/es/ele-data-table/index.d.ts +56 -56
  30. package/es/ele-dot/index.d.ts +3 -3
  31. package/es/ele-drawer/index.d.ts +72 -69
  32. package/es/ele-drawer/index.js +107 -113
  33. package/es/ele-drawer/props.d.ts +1 -1
  34. package/es/ele-drawer/style/index.scss +48 -105
  35. package/es/ele-dropdown/index.d.ts +62 -62
  36. package/es/ele-dropdown/props.d.ts +4 -4
  37. package/es/ele-edit-tag/index.d.ts +30 -30
  38. package/es/ele-edit-tag/index.js +1 -1
  39. package/es/ele-ellipsis/index.d.ts +19 -19
  40. package/es/ele-file-list/components/file-grid-item.d.ts +7 -7
  41. package/es/ele-file-list/components/file-grid-item.js +1 -1
  42. package/es/ele-file-list/components/file-grid.d.ts +4 -4
  43. package/es/ele-file-list/components/file-sort.d.ts +1 -1
  44. package/es/ele-file-list/components/file-table-item.d.ts +7 -7
  45. package/es/ele-file-list/components/file-table-item.js +1 -1
  46. package/es/ele-file-list/components/file-table.d.ts +4 -4
  47. package/es/ele-file-list/index.d.ts +32 -32
  48. package/es/ele-file-list-tool/index.d.ts +2 -2
  49. package/es/ele-icon-select/components/icon-grid.d.ts +11 -11
  50. package/es/ele-icon-select/components/icon-grid.js +1 -1
  51. package/es/ele-icon-select/index.d.ts +45 -45
  52. package/es/ele-icon-select/props.d.ts +1 -1
  53. package/es/ele-loading/index.d.ts +11 -15
  54. package/es/ele-loading/index.js +10 -16
  55. package/es/ele-map-picker/components/map-view.d.ts +25 -25
  56. package/es/ele-map-picker/components/map-view.js +1 -1
  57. package/es/ele-map-picker/index.d.ts +21 -21
  58. package/es/ele-map-picker/index.js +1 -1
  59. package/es/ele-menus/index.d.ts +56 -58
  60. package/es/ele-menus/index.js +1 -1
  61. package/es/ele-menus/props.d.ts +2 -4
  62. package/es/ele-menus/props.js +1 -3
  63. package/es/ele-menus/style/css-var.scss +1 -5
  64. package/es/ele-modal/index.d.ts +73 -67
  65. package/es/ele-modal/index.js +164 -186
  66. package/es/ele-modal/props.d.ts +3 -1
  67. package/es/ele-modal/props.js +2 -0
  68. package/es/ele-modal/style/index.scss +85 -146
  69. package/es/ele-modal/util.d.ts +18 -44
  70. package/es/ele-modal/util.js +53 -179
  71. package/es/ele-page/index.d.ts +1 -1
  72. package/es/ele-pagination/index.d.ts +39 -30
  73. package/es/ele-pagination/index.js +4 -1
  74. package/es/ele-pagination/props.d.ts +7 -2
  75. package/es/ele-pagination/props.js +5 -0
  76. package/es/ele-popconfirm/index.d.ts +86 -86
  77. package/es/ele-popconfirm/index.js +6 -28
  78. package/es/ele-popconfirm/props.d.ts +5 -5
  79. package/es/ele-popover/index.d.ts +67 -67
  80. package/es/ele-popover/index.js +6 -14
  81. package/es/ele-popover/props.d.ts +4 -4
  82. package/es/ele-printer/index.d.ts +17 -17
  83. package/es/ele-pro-layout/components/header-tool.d.ts +1 -1
  84. package/es/ele-pro-layout/components/pro-header.d.ts +81 -26
  85. package/es/ele-pro-layout/components/pro-header.js +110 -20
  86. package/es/ele-pro-layout/components/pro-iframe.d.ts +3 -4
  87. package/es/ele-pro-layout/components/pro-iframe.js +31 -41
  88. package/es/ele-pro-layout/components/pro-sidebar.d.ts +9 -14
  89. package/es/ele-pro-layout/components/pro-sidebar.js +2 -5
  90. package/es/ele-pro-layout/components/pro-sidebox.d.ts +11 -16
  91. package/es/ele-pro-layout/components/pro-sidebox.js +2 -5
  92. package/es/ele-pro-layout/components/pro-tabs.d.ts +6 -6
  93. package/es/ele-pro-layout/components/sidebar-tool.d.ts +1 -1
  94. package/es/ele-pro-layout/components/tab-dropdown.d.ts +3 -3
  95. package/es/ele-pro-layout/components/tab-dropdown.js +1 -1
  96. package/es/ele-pro-layout/index.d.ts +93 -94
  97. package/es/ele-pro-layout/index.js +62 -47
  98. package/es/ele-pro-layout/props.d.ts +4 -7
  99. package/es/ele-pro-layout/props.js +2 -4
  100. package/es/ele-pro-layout/style/css-var.scss +3 -18
  101. package/es/ele-pro-layout/style/header.scss +74 -9
  102. package/es/ele-pro-layout/style/layout-mobile.scss +2 -2
  103. package/es/ele-pro-layout/style/layout-style.scss +8 -3
  104. package/es/ele-pro-layout/style/layout-theme.scss +48 -23
  105. package/es/ele-pro-layout/style/layout.scss +38 -8
  106. package/es/ele-pro-layout/style/sidebar.scss +0 -1
  107. package/es/ele-pro-layout/style/tabs.scss +19 -11
  108. package/es/ele-pro-layout/types.d.ts +1 -1
  109. package/es/ele-pro-layout/util.d.ts +1 -2
  110. package/es/ele-pro-layout/util.js +2 -3
  111. package/es/ele-pro-table/components/table-tools.d.ts +17 -17
  112. package/es/ele-pro-table/components/tool-column-list.d.ts +2 -2
  113. package/es/ele-pro-table/components/tool-column.d.ts +9 -9
  114. package/es/ele-pro-table/components/tool-export.d.ts +15 -292
  115. package/es/ele-pro-table/components/tool-print-body-cell.d.ts +8 -8
  116. package/es/ele-pro-table/components/tool-print-header-cell.d.ts +8 -8
  117. package/es/ele-pro-table/components/tool-print.d.ts +23 -736
  118. package/es/ele-pro-table/components/tool-print.js +0 -3
  119. package/es/ele-pro-table/index.d.ts +124 -126
  120. package/es/ele-pro-table/index.js +32 -26
  121. package/es/ele-pro-table/props.d.ts +16 -16
  122. package/es/ele-pro-table/types.d.ts +11 -0
  123. package/es/ele-pro-table/util.d.ts +11 -15
  124. package/es/ele-pro-table/util.js +18 -15
  125. package/es/ele-qr-code/index.d.ts +13 -13
  126. package/es/ele-qr-code-svg/index.d.ts +17 -17
  127. package/es/ele-segmented/index.d.ts +7 -7
  128. package/es/ele-split-panel/index.d.ts +15 -15
  129. package/es/ele-steps/index.d.ts +32 -32
  130. package/es/ele-tab-tool/index.d.ts +1 -1
  131. package/es/ele-tab-wrap/index.d.ts +5 -5
  132. package/es/ele-tab-wrap/index.js +2 -1
  133. package/es/ele-table/index.d.ts +3 -3
  134. package/es/ele-table/props.d.ts +1 -1
  135. package/es/ele-table-select/index.d.ts +41 -40
  136. package/es/ele-table-select/index.js +29 -27
  137. package/es/ele-table-select/props.d.ts +1 -1
  138. package/es/ele-tabs/components/tab-title.d.ts +3 -3
  139. package/es/ele-tabs/index.d.ts +31 -31
  140. package/es/ele-tabs/index.js +1 -0
  141. package/es/ele-tabs/props.d.ts +4 -4
  142. package/es/ele-tabs/style/css-var.scss +1 -30
  143. package/es/ele-tabs/style/index.scss +372 -241
  144. package/es/ele-tabs/types.d.ts +2 -1
  145. package/es/ele-text/index.d.ts +11 -11
  146. package/es/ele-tool/index.d.ts +6 -6
  147. package/es/ele-tool/props.d.ts +1 -1
  148. package/es/ele-toolbar/index.d.ts +14 -14
  149. package/es/ele-tooltip/index.d.ts +56 -56
  150. package/es/ele-tooltip/index.js +3 -0
  151. package/es/ele-tooltip/props.d.ts +8 -3
  152. package/es/ele-tooltip/props.js +2 -0
  153. package/es/ele-tour/index.d.ts +10 -10
  154. package/es/ele-tree-select/index.d.ts +31 -31
  155. package/es/ele-tree-select/props.d.ts +1 -1
  156. package/es/ele-upload-list/components/list-item.d.ts +2 -2
  157. package/es/ele-upload-list/index.d.ts +22 -22
  158. package/es/ele-virtual-table/components/body-cell.d.ts +16 -16
  159. package/es/ele-virtual-table/components/body-row.d.ts +17 -17
  160. package/es/ele-virtual-table/components/cell-checkbox.d.ts +2 -2
  161. package/es/ele-virtual-table/components/cell-filter.d.ts +13 -13
  162. package/es/ele-virtual-table/components/expand-row.d.ts +1 -1
  163. package/es/ele-virtual-table/components/footer-row.d.ts +5 -5
  164. package/es/ele-virtual-table/components/header-cell.d.ts +11 -11
  165. package/es/ele-virtual-table/components/header-row.d.ts +7 -7
  166. package/es/ele-virtual-table/index.d.ts +71 -71
  167. package/es/ele-virtual-table/props.d.ts +21 -21
  168. package/es/ele-virtual-table/style/index.scss +1 -1
  169. package/es/ele-virtual-table/util.d.ts +1 -1
  170. package/es/ele-watermark/index.d.ts +12 -12
  171. package/es/ele-xg-player/index.d.ts +6 -6
  172. package/es/icons/AnalysisOutlined.d.ts +1 -1
  173. package/es/icons/ApplicationOutlined.d.ts +1 -1
  174. package/es/icons/AppstoreAddOutlined.d.ts +1 -1
  175. package/es/icons/AppstoreOutlined.d.ts +1 -1
  176. package/es/icons/ArrowDown.d.ts +1 -1
  177. package/es/icons/ArrowDownOutlined.d.ts +1 -1
  178. package/es/icons/ArrowLeft.d.ts +1 -1
  179. package/es/icons/ArrowLeftOutlined.d.ts +1 -1
  180. package/es/icons/ArrowRight.d.ts +1 -1
  181. package/es/icons/ArrowRightOutlined.d.ts +1 -1
  182. package/es/icons/ArrowUp.d.ts +1 -1
  183. package/es/icons/ArrowUpOutlined.d.ts +1 -1
  184. package/es/icons/BellOutlined.d.ts +1 -1
  185. package/es/icons/BookOutlined.d.ts +1 -1
  186. package/es/icons/CalendarOutlined.d.ts +1 -1
  187. package/es/icons/CaretDownFilled.d.ts +1 -1
  188. package/es/icons/CaretUpFilled.d.ts +1 -1
  189. package/es/icons/CheckCircleFilled.d.ts +1 -1
  190. package/es/icons/CheckCircleOutlined.d.ts +1 -1
  191. package/es/icons/CheckOutlined.d.ts +1 -1
  192. package/es/icons/CityOutlined.d.ts +1 -1
  193. package/es/icons/ClockCircleOutlined.d.ts +1 -1
  194. package/es/icons/CloseCircleFilled.d.ts +1 -1
  195. package/es/icons/CloseCircleOutlined.d.ts +1 -1
  196. package/es/icons/CloseOutlined.d.ts +1 -1
  197. package/es/icons/CloudUploadOutlined.d.ts +1 -1
  198. package/es/icons/ClusterOutlined.d.ts +1 -1
  199. package/es/icons/CodeOutlined.d.ts +1 -1
  200. package/es/icons/ColumnHeightOutlined.d.ts +1 -1
  201. package/es/icons/CompassOutlined.d.ts +1 -1
  202. package/es/icons/CompressOutlined.d.ts +1 -1
  203. package/es/icons/ConnectionOutlined.d.ts +1 -1
  204. package/es/icons/ControlOutlined.d.ts +1 -1
  205. package/es/icons/CopyOutlined.d.ts +1 -1
  206. package/es/icons/CpuOutlined.d.ts +1 -1
  207. package/es/icons/DashboardOutlined.d.ts +1 -1
  208. package/es/icons/DatabaseOutlined.d.ts +1 -1
  209. package/es/icons/DeleteOutlined.d.ts +1 -1
  210. package/es/icons/DesktopOutlined.d.ts +1 -1
  211. package/es/icons/DownloadOutlined.d.ts +1 -1
  212. package/es/icons/DragOutlined.d.ts +1 -1
  213. package/es/icons/EditOutlined.d.ts +1 -1
  214. package/es/icons/EllipsisOutlined.d.ts +1 -1
  215. package/es/icons/EnvironmentOutlined.d.ts +1 -1
  216. package/es/icons/ExclamationCircleFilled.d.ts +1 -1
  217. package/es/icons/ExpandOutlined.d.ts +1 -1
  218. package/es/icons/FileOutlined.d.ts +1 -1
  219. package/es/icons/FilterFilled.d.ts +1 -1
  220. package/es/icons/FolderAddOutlined.d.ts +1 -1
  221. package/es/icons/FolderOutlined.d.ts +1 -1
  222. package/es/icons/FormOutlined.d.ts +1 -1
  223. package/es/icons/FullscreenExitOutlined.d.ts +1 -1
  224. package/es/icons/FullscreenOutlined.d.ts +1 -1
  225. package/es/icons/FundOutlined.d.ts +1 -1
  226. package/es/icons/GlobalOutlined.d.ts +1 -1
  227. package/es/icons/HolderOutlined.d.ts +1 -1
  228. package/es/icons/HomeOutlined.d.ts +1 -1
  229. package/es/icons/IdcardOutlined.d.ts +1 -1
  230. package/es/icons/InfoCircleFilled.d.ts +1 -1
  231. package/es/icons/LinkOutlined.d.ts +1 -1
  232. package/es/icons/LoadingDotOutlined.d.ts +1 -1
  233. package/es/icons/LoadingOutlined.d.ts +1 -1
  234. package/es/icons/LockOutlined.d.ts +1 -1
  235. package/es/icons/LogOutlined.d.ts +1 -1
  236. package/es/icons/LogoutOutlined.d.ts +1 -1
  237. package/es/icons/MailOutlined.d.ts +1 -1
  238. package/es/icons/MenuFoldOutlined.d.ts +1 -1
  239. package/es/icons/MenuUnfoldOutlined.d.ts +1 -1
  240. package/es/icons/MessageOutlined.d.ts +1 -1
  241. package/es/icons/MinusCircleOutlined.d.ts +1 -1
  242. package/es/icons/MobileOutlined.d.ts +1 -1
  243. package/es/icons/MoonOutlined.d.ts +1 -1
  244. package/es/icons/MoreOutlined.d.ts +1 -1
  245. package/es/icons/PauseFilled.d.ts +1 -1
  246. package/es/icons/PieChartOutlined.d.ts +1 -1
  247. package/es/icons/PlayFilled.d.ts +1 -1
  248. package/es/icons/PlusCircleOutlined.d.ts +1 -1
  249. package/es/icons/PlusOutlined.d.ts +1 -1
  250. package/es/icons/PrinterOutlined.d.ts +1 -1
  251. package/es/icons/ProtectOutlined.d.ts +1 -1
  252. package/es/icons/QuestionCircleFilled.d.ts +1 -1
  253. package/es/icons/QuestionCircleOutlined.d.ts +1 -1
  254. package/es/icons/ReloadOutlined.d.ts +1 -1
  255. package/es/icons/ResizeOutlined.d.ts +2 -0
  256. package/es/icons/ResizeOutlined.js +30 -0
  257. package/es/icons/SearchOutlined.d.ts +1 -1
  258. package/es/icons/SettingOutlined.d.ts +1 -1
  259. package/es/icons/ShoppingOutlined.d.ts +1 -1
  260. package/es/icons/SortOutlined.d.ts +1 -1
  261. package/es/icons/StarFilled.d.ts +1 -1
  262. package/es/icons/StepBackwardFilled.d.ts +1 -1
  263. package/es/icons/StepForwardFilled.d.ts +1 -1
  264. package/es/icons/SuitcaseOutlined.d.ts +1 -1
  265. package/es/icons/SunOutlined.d.ts +1 -1
  266. package/es/icons/SwapOutlined.d.ts +1 -1
  267. package/es/icons/SyncOutlined.d.ts +1 -1
  268. package/es/icons/TableOutlined.d.ts +1 -1
  269. package/es/icons/TagOutlined.d.ts +1 -1
  270. package/es/icons/TimerOutlined.d.ts +1 -1
  271. package/es/icons/UndoOutlined.d.ts +1 -1
  272. package/es/icons/UnlockOutlined.d.ts +1 -1
  273. package/es/icons/UploadOutlined.d.ts +1 -1
  274. package/es/icons/UserOutlined.d.ts +1 -1
  275. package/es/icons/VerticalAlignMiddleOutlined.d.ts +1 -1
  276. package/es/icons/VerticalLeftOutlined.d.ts +1 -1
  277. package/es/icons/VerticalRightOutlined.d.ts +1 -1
  278. package/es/icons/WarningOutlined.d.ts +1 -1
  279. package/es/icons/ZoomInOutlined.d.ts +1 -1
  280. package/es/icons/ZoomOutOutlined.d.ts +1 -1
  281. package/es/icons/index.d.ts +1 -0
  282. package/es/icons/index.js +50 -48
  283. package/es/style/nprogress.scss +1 -0
  284. package/es/style/themes/dark.scss +9 -15
  285. package/es/style/themes/default.scss +56 -80
  286. package/es/style/themes/rounded.scss +16 -30
  287. package/es/utils/menu-util.js +2 -5
  288. package/lib/ele-alert/index.cjs +2 -2
  289. package/lib/ele-alert/index.d.ts +22 -22
  290. package/lib/ele-app/el.d.ts +2 -1
  291. package/lib/ele-app/index.d.ts +2 -2
  292. package/lib/ele-avatar-group/index.d.ts +26 -26
  293. package/lib/ele-bar-code/index.d.ts +6 -6
  294. package/lib/ele-basic-select/index.cjs +7 -1
  295. package/lib/ele-basic-select/index.d.ts +31 -31
  296. package/lib/ele-basic-select/props.d.ts +1 -1
  297. package/lib/ele-bottom-bar/index.d.ts +5 -5
  298. package/lib/ele-breadcrumb/index.d.ts +8 -8
  299. package/lib/ele-breadcrumb/props.d.ts +1 -1
  300. package/lib/ele-card/index.d.ts +11 -11
  301. package/lib/ele-check-card/components/card-item.d.ts +3 -3
  302. package/lib/ele-check-card/index.d.ts +12 -12
  303. package/lib/ele-config-provider/components/receiver-view.d.ts +2 -2
  304. package/lib/ele-config-provider/index.d.ts +6 -6
  305. package/lib/ele-config-provider/receiver.cjs +3 -7
  306. package/lib/ele-config-provider/receiver.d.ts +1 -1
  307. package/lib/ele-config-provider/types.d.ts +2 -18
  308. package/lib/ele-copyable/index.d.ts +28 -28
  309. package/lib/ele-count-up/index.d.ts +6 -6
  310. package/lib/ele-cropper/components/cropper-preview.d.ts +2 -2
  311. package/lib/ele-cropper/components/cropper-tools.d.ts +8 -8
  312. package/lib/ele-cropper/index.d.ts +11 -11
  313. package/lib/ele-cropper-modal/index.cjs +1 -1
  314. package/lib/ele-cropper-modal/index.d.ts +13 -13
  315. package/lib/ele-dashboard/index.d.ts +4 -4
  316. package/lib/ele-data-table/index.d.ts +56 -56
  317. package/lib/ele-dot/index.d.ts +3 -3
  318. package/lib/ele-drawer/index.cjs +105 -111
  319. package/lib/ele-drawer/index.d.ts +72 -69
  320. package/lib/ele-drawer/props.d.ts +1 -1
  321. package/lib/ele-drawer/style/index.scss +48 -105
  322. package/lib/ele-dropdown/index.d.ts +62 -62
  323. package/lib/ele-dropdown/props.d.ts +4 -4
  324. package/lib/ele-edit-tag/index.cjs +1 -1
  325. package/lib/ele-edit-tag/index.d.ts +30 -30
  326. package/lib/ele-ellipsis/index.d.ts +19 -19
  327. package/lib/ele-file-list/components/file-grid-item.cjs +1 -1
  328. package/lib/ele-file-list/components/file-grid-item.d.ts +7 -7
  329. package/lib/ele-file-list/components/file-grid.d.ts +4 -4
  330. package/lib/ele-file-list/components/file-sort.d.ts +1 -1
  331. package/lib/ele-file-list/components/file-table-item.cjs +1 -1
  332. package/lib/ele-file-list/components/file-table-item.d.ts +7 -7
  333. package/lib/ele-file-list/components/file-table.d.ts +4 -4
  334. package/lib/ele-file-list/index.d.ts +32 -32
  335. package/lib/ele-file-list-tool/index.d.ts +2 -2
  336. package/lib/ele-icon-select/components/icon-grid.cjs +1 -1
  337. package/lib/ele-icon-select/components/icon-grid.d.ts +11 -11
  338. package/lib/ele-icon-select/index.d.ts +45 -45
  339. package/lib/ele-icon-select/props.d.ts +1 -1
  340. package/lib/ele-loading/index.cjs +9 -15
  341. package/lib/ele-loading/index.d.ts +11 -15
  342. package/lib/ele-map-picker/components/map-view.cjs +1 -1
  343. package/lib/ele-map-picker/components/map-view.d.ts +25 -25
  344. package/lib/ele-map-picker/index.cjs +1 -1
  345. package/lib/ele-map-picker/index.d.ts +21 -21
  346. package/lib/ele-menus/index.cjs +1 -1
  347. package/lib/ele-menus/index.d.ts +56 -58
  348. package/lib/ele-menus/props.cjs +1 -3
  349. package/lib/ele-menus/props.d.ts +2 -4
  350. package/lib/ele-menus/style/css-var.scss +1 -5
  351. package/lib/ele-modal/index.cjs +176 -198
  352. package/lib/ele-modal/index.d.ts +73 -67
  353. package/lib/ele-modal/props.cjs +2 -0
  354. package/lib/ele-modal/props.d.ts +3 -1
  355. package/lib/ele-modal/style/index.scss +85 -146
  356. package/lib/ele-modal/util.cjs +53 -179
  357. package/lib/ele-modal/util.d.ts +18 -44
  358. package/lib/ele-page/index.d.ts +1 -1
  359. package/lib/ele-pagination/index.cjs +4 -1
  360. package/lib/ele-pagination/index.d.ts +39 -30
  361. package/lib/ele-pagination/props.cjs +5 -0
  362. package/lib/ele-pagination/props.d.ts +7 -2
  363. package/lib/ele-popconfirm/index.cjs +5 -27
  364. package/lib/ele-popconfirm/index.d.ts +86 -86
  365. package/lib/ele-popconfirm/props.d.ts +5 -5
  366. package/lib/ele-popover/index.cjs +5 -13
  367. package/lib/ele-popover/index.d.ts +67 -67
  368. package/lib/ele-popover/props.d.ts +4 -4
  369. package/lib/ele-printer/index.d.ts +17 -17
  370. package/lib/ele-pro-layout/components/header-tool.d.ts +1 -1
  371. package/lib/ele-pro-layout/components/pro-header.cjs +109 -19
  372. package/lib/ele-pro-layout/components/pro-header.d.ts +81 -26
  373. package/lib/ele-pro-layout/components/pro-iframe.cjs +30 -40
  374. package/lib/ele-pro-layout/components/pro-iframe.d.ts +3 -4
  375. package/lib/ele-pro-layout/components/pro-sidebar.cjs +2 -5
  376. package/lib/ele-pro-layout/components/pro-sidebar.d.ts +9 -14
  377. package/lib/ele-pro-layout/components/pro-sidebox.cjs +2 -5
  378. package/lib/ele-pro-layout/components/pro-sidebox.d.ts +11 -16
  379. package/lib/ele-pro-layout/components/pro-tabs.d.ts +6 -6
  380. package/lib/ele-pro-layout/components/sidebar-tool.d.ts +1 -1
  381. package/lib/ele-pro-layout/components/tab-dropdown.cjs +1 -1
  382. package/lib/ele-pro-layout/components/tab-dropdown.d.ts +3 -3
  383. package/lib/ele-pro-layout/index.cjs +61 -46
  384. package/lib/ele-pro-layout/index.d.ts +93 -94
  385. package/lib/ele-pro-layout/props.cjs +2 -4
  386. package/lib/ele-pro-layout/props.d.ts +4 -7
  387. package/lib/ele-pro-layout/style/css-var.scss +3 -18
  388. package/lib/ele-pro-layout/style/header.scss +74 -9
  389. package/lib/ele-pro-layout/style/layout-mobile.scss +2 -2
  390. package/lib/ele-pro-layout/style/layout-style.scss +8 -3
  391. package/lib/ele-pro-layout/style/layout-theme.scss +48 -23
  392. package/lib/ele-pro-layout/style/layout.scss +38 -8
  393. package/lib/ele-pro-layout/style/sidebar.scss +0 -1
  394. package/lib/ele-pro-layout/style/tabs.scss +19 -11
  395. package/lib/ele-pro-layout/types.d.ts +1 -1
  396. package/lib/ele-pro-layout/util.cjs +2 -3
  397. package/lib/ele-pro-layout/util.d.ts +1 -2
  398. package/lib/ele-pro-table/components/table-tools.d.ts +17 -17
  399. package/lib/ele-pro-table/components/tool-column-list.d.ts +2 -2
  400. package/lib/ele-pro-table/components/tool-column.d.ts +9 -9
  401. package/lib/ele-pro-table/components/tool-export.d.ts +15 -292
  402. package/lib/ele-pro-table/components/tool-print-body-cell.d.ts +8 -8
  403. package/lib/ele-pro-table/components/tool-print-header-cell.d.ts +8 -8
  404. package/lib/ele-pro-table/components/tool-print.cjs +0 -3
  405. package/lib/ele-pro-table/components/tool-print.d.ts +23 -736
  406. package/lib/ele-pro-table/index.cjs +30 -24
  407. package/lib/ele-pro-table/index.d.ts +124 -126
  408. package/lib/ele-pro-table/props.d.ts +16 -16
  409. package/lib/ele-pro-table/types.d.ts +11 -0
  410. package/lib/ele-pro-table/util.cjs +18 -15
  411. package/lib/ele-pro-table/util.d.ts +11 -15
  412. package/lib/ele-qr-code/index.d.ts +13 -13
  413. package/lib/ele-qr-code-svg/index.d.ts +17 -17
  414. package/lib/ele-segmented/index.d.ts +7 -7
  415. package/lib/ele-split-panel/index.d.ts +15 -15
  416. package/lib/ele-steps/index.d.ts +32 -32
  417. package/lib/ele-tab-tool/index.d.ts +1 -1
  418. package/lib/ele-tab-wrap/index.cjs +2 -1
  419. package/lib/ele-tab-wrap/index.d.ts +5 -5
  420. package/lib/ele-table/index.d.ts +3 -3
  421. package/lib/ele-table/props.d.ts +1 -1
  422. package/lib/ele-table-select/index.cjs +29 -27
  423. package/lib/ele-table-select/index.d.ts +41 -40
  424. package/lib/ele-table-select/props.d.ts +1 -1
  425. package/lib/ele-tabs/components/tab-title.d.ts +3 -3
  426. package/lib/ele-tabs/index.cjs +1 -0
  427. package/lib/ele-tabs/index.d.ts +31 -31
  428. package/lib/ele-tabs/props.d.ts +4 -4
  429. package/lib/ele-tabs/style/css-var.scss +1 -30
  430. package/lib/ele-tabs/style/index.scss +372 -241
  431. package/lib/ele-tabs/types.d.ts +2 -1
  432. package/lib/ele-text/index.d.ts +11 -11
  433. package/lib/ele-tool/index.d.ts +6 -6
  434. package/lib/ele-tool/props.d.ts +1 -1
  435. package/lib/ele-toolbar/index.d.ts +14 -14
  436. package/lib/ele-tooltip/index.cjs +3 -0
  437. package/lib/ele-tooltip/index.d.ts +56 -56
  438. package/lib/ele-tooltip/props.cjs +2 -0
  439. package/lib/ele-tooltip/props.d.ts +8 -3
  440. package/lib/ele-tour/index.d.ts +10 -10
  441. package/lib/ele-tree-select/index.d.ts +31 -31
  442. package/lib/ele-tree-select/props.d.ts +1 -1
  443. package/lib/ele-upload-list/components/list-item.d.ts +2 -2
  444. package/lib/ele-upload-list/index.d.ts +22 -22
  445. package/lib/ele-virtual-table/components/body-cell.d.ts +16 -16
  446. package/lib/ele-virtual-table/components/body-row.d.ts +17 -17
  447. package/lib/ele-virtual-table/components/cell-checkbox.d.ts +2 -2
  448. package/lib/ele-virtual-table/components/cell-filter.d.ts +13 -13
  449. package/lib/ele-virtual-table/components/expand-row.d.ts +1 -1
  450. package/lib/ele-virtual-table/components/footer-row.d.ts +5 -5
  451. package/lib/ele-virtual-table/components/header-cell.d.ts +11 -11
  452. package/lib/ele-virtual-table/components/header-row.d.ts +7 -7
  453. package/lib/ele-virtual-table/index.d.ts +71 -71
  454. package/lib/ele-virtual-table/props.d.ts +21 -21
  455. package/lib/ele-virtual-table/style/index.scss +1 -1
  456. package/lib/ele-virtual-table/util.d.ts +1 -1
  457. package/lib/ele-watermark/index.d.ts +12 -12
  458. package/lib/ele-xg-player/index.d.ts +6 -6
  459. package/lib/icons/AnalysisOutlined.d.ts +1 -1
  460. package/lib/icons/ApplicationOutlined.d.ts +1 -1
  461. package/lib/icons/AppstoreAddOutlined.d.ts +1 -1
  462. package/lib/icons/AppstoreOutlined.d.ts +1 -1
  463. package/lib/icons/ArrowDown.d.ts +1 -1
  464. package/lib/icons/ArrowDownOutlined.d.ts +1 -1
  465. package/lib/icons/ArrowLeft.d.ts +1 -1
  466. package/lib/icons/ArrowLeftOutlined.d.ts +1 -1
  467. package/lib/icons/ArrowRight.d.ts +1 -1
  468. package/lib/icons/ArrowRightOutlined.d.ts +1 -1
  469. package/lib/icons/ArrowUp.d.ts +1 -1
  470. package/lib/icons/ArrowUpOutlined.d.ts +1 -1
  471. package/lib/icons/BellOutlined.d.ts +1 -1
  472. package/lib/icons/BookOutlined.d.ts +1 -1
  473. package/lib/icons/CalendarOutlined.d.ts +1 -1
  474. package/lib/icons/CaretDownFilled.d.ts +1 -1
  475. package/lib/icons/CaretUpFilled.d.ts +1 -1
  476. package/lib/icons/CheckCircleFilled.d.ts +1 -1
  477. package/lib/icons/CheckCircleOutlined.d.ts +1 -1
  478. package/lib/icons/CheckOutlined.d.ts +1 -1
  479. package/lib/icons/CityOutlined.d.ts +1 -1
  480. package/lib/icons/ClockCircleOutlined.d.ts +1 -1
  481. package/lib/icons/CloseCircleFilled.d.ts +1 -1
  482. package/lib/icons/CloseCircleOutlined.d.ts +1 -1
  483. package/lib/icons/CloseOutlined.d.ts +1 -1
  484. package/lib/icons/CloudUploadOutlined.d.ts +1 -1
  485. package/lib/icons/ClusterOutlined.d.ts +1 -1
  486. package/lib/icons/CodeOutlined.d.ts +1 -1
  487. package/lib/icons/ColumnHeightOutlined.d.ts +1 -1
  488. package/lib/icons/CompassOutlined.d.ts +1 -1
  489. package/lib/icons/CompressOutlined.d.ts +1 -1
  490. package/lib/icons/ConnectionOutlined.d.ts +1 -1
  491. package/lib/icons/ControlOutlined.d.ts +1 -1
  492. package/lib/icons/CopyOutlined.d.ts +1 -1
  493. package/lib/icons/CpuOutlined.d.ts +1 -1
  494. package/lib/icons/DashboardOutlined.d.ts +1 -1
  495. package/lib/icons/DatabaseOutlined.d.ts +1 -1
  496. package/lib/icons/DeleteOutlined.d.ts +1 -1
  497. package/lib/icons/DesktopOutlined.d.ts +1 -1
  498. package/lib/icons/DownloadOutlined.d.ts +1 -1
  499. package/lib/icons/DragOutlined.d.ts +1 -1
  500. package/lib/icons/EditOutlined.d.ts +1 -1
  501. package/lib/icons/EllipsisOutlined.d.ts +1 -1
  502. package/lib/icons/EnvironmentOutlined.d.ts +1 -1
  503. package/lib/icons/ExclamationCircleFilled.d.ts +1 -1
  504. package/lib/icons/ExpandOutlined.d.ts +1 -1
  505. package/lib/icons/FileOutlined.d.ts +1 -1
  506. package/lib/icons/FilterFilled.d.ts +1 -1
  507. package/lib/icons/FolderAddOutlined.d.ts +1 -1
  508. package/lib/icons/FolderOutlined.d.ts +1 -1
  509. package/lib/icons/FormOutlined.d.ts +1 -1
  510. package/lib/icons/FullscreenExitOutlined.d.ts +1 -1
  511. package/lib/icons/FullscreenOutlined.d.ts +1 -1
  512. package/lib/icons/FundOutlined.d.ts +1 -1
  513. package/lib/icons/GlobalOutlined.d.ts +1 -1
  514. package/lib/icons/HolderOutlined.d.ts +1 -1
  515. package/lib/icons/HomeOutlined.d.ts +1 -1
  516. package/lib/icons/IdcardOutlined.d.ts +1 -1
  517. package/lib/icons/InfoCircleFilled.d.ts +1 -1
  518. package/lib/icons/LinkOutlined.d.ts +1 -1
  519. package/lib/icons/LoadingDotOutlined.d.ts +1 -1
  520. package/lib/icons/LoadingOutlined.d.ts +1 -1
  521. package/lib/icons/LockOutlined.d.ts +1 -1
  522. package/lib/icons/LogOutlined.d.ts +1 -1
  523. package/lib/icons/LogoutOutlined.d.ts +1 -1
  524. package/lib/icons/MailOutlined.d.ts +1 -1
  525. package/lib/icons/MenuFoldOutlined.d.ts +1 -1
  526. package/lib/icons/MenuUnfoldOutlined.d.ts +1 -1
  527. package/lib/icons/MessageOutlined.d.ts +1 -1
  528. package/lib/icons/MinusCircleOutlined.d.ts +1 -1
  529. package/lib/icons/MobileOutlined.d.ts +1 -1
  530. package/lib/icons/MoonOutlined.d.ts +1 -1
  531. package/lib/icons/MoreOutlined.d.ts +1 -1
  532. package/lib/icons/PauseFilled.d.ts +1 -1
  533. package/lib/icons/PieChartOutlined.d.ts +1 -1
  534. package/lib/icons/PlayFilled.d.ts +1 -1
  535. package/lib/icons/PlusCircleOutlined.d.ts +1 -1
  536. package/lib/icons/PlusOutlined.d.ts +1 -1
  537. package/lib/icons/PrinterOutlined.d.ts +1 -1
  538. package/lib/icons/ProtectOutlined.d.ts +1 -1
  539. package/lib/icons/QuestionCircleFilled.d.ts +1 -1
  540. package/lib/icons/QuestionCircleOutlined.d.ts +1 -1
  541. package/lib/icons/ReloadOutlined.d.ts +1 -1
  542. package/lib/icons/ResizeOutlined.cjs +29 -0
  543. package/lib/icons/ResizeOutlined.d.ts +2 -0
  544. package/lib/icons/SearchOutlined.d.ts +1 -1
  545. package/lib/icons/SettingOutlined.d.ts +1 -1
  546. package/lib/icons/ShoppingOutlined.d.ts +1 -1
  547. package/lib/icons/SortOutlined.d.ts +1 -1
  548. package/lib/icons/StarFilled.d.ts +1 -1
  549. package/lib/icons/StepBackwardFilled.d.ts +1 -1
  550. package/lib/icons/StepForwardFilled.d.ts +1 -1
  551. package/lib/icons/SuitcaseOutlined.d.ts +1 -1
  552. package/lib/icons/SunOutlined.d.ts +1 -1
  553. package/lib/icons/SwapOutlined.d.ts +1 -1
  554. package/lib/icons/SyncOutlined.d.ts +1 -1
  555. package/lib/icons/TableOutlined.d.ts +1 -1
  556. package/lib/icons/TagOutlined.d.ts +1 -1
  557. package/lib/icons/TimerOutlined.d.ts +1 -1
  558. package/lib/icons/UndoOutlined.d.ts +1 -1
  559. package/lib/icons/UnlockOutlined.d.ts +1 -1
  560. package/lib/icons/UploadOutlined.d.ts +1 -1
  561. package/lib/icons/UserOutlined.d.ts +1 -1
  562. package/lib/icons/VerticalAlignMiddleOutlined.d.ts +1 -1
  563. package/lib/icons/VerticalLeftOutlined.d.ts +1 -1
  564. package/lib/icons/VerticalRightOutlined.d.ts +1 -1
  565. package/lib/icons/WarningOutlined.d.ts +1 -1
  566. package/lib/icons/ZoomInOutlined.d.ts +1 -1
  567. package/lib/icons/ZoomOutOutlined.d.ts +1 -1
  568. package/lib/icons/index.cjs +2 -0
  569. package/lib/icons/index.d.ts +1 -0
  570. package/lib/style/nprogress.scss +1 -0
  571. package/lib/style/themes/dark.scss +9 -15
  572. package/lib/style/themes/default.scss +56 -80
  573. package/lib/style/themes/rounded.scss +16 -30
  574. package/lib/utils/menu-util.cjs +1 -4
  575. package/package.json +15 -15
@@ -1,11 +1,10 @@
1
- import { defineComponent, ref, computed, unref, watch, onActivated, onDeactivated, nextTick, resolveComponent, openBlock, createBlock, Teleport, createVNode, mergeProps, createSlots, withCtx, createElementVNode, normalizeStyle, createElementBlock, renderSlot, createTextVNode, toDisplayString, createCommentVNode } from "vue";
1
+ import { defineComponent, ref, computed, watch, onMounted, onActivated, onDeactivated, nextTick, unref, resolveComponent, openBlock, createBlock, Teleport, createVNode, mergeProps, createSlots, withCtx, createElementVNode, normalizeStyle, renderSlot, createTextVNode, toDisplayString, createElementBlock, withModifiers, createCommentVNode, resolveDynamicComponent, normalizeClass } from "vue";
2
2
  import { ElDialog, ElIcon } from "element-plus";
3
- import { CloseOutlined, CompressOutlined, ExpandOutlined } from "../icons";
4
- import { pick } from "../utils/core";
3
+ import { CloseOutlined, CompressOutlined, ExpandOutlined, ResizeOutlined } from "../icons";
5
4
  import { useLayoutState } from "../ele-config-provider/receiver";
6
5
  import ReceiverView from "../ele-config-provider/components/receiver-view";
7
- import { getModalContainer, resizableClass, multipleClass, fullscreenClass, closedClass, hideClass, innerClass, collapseClass, compactClass, maximizedClass, hasTabClass, mixSidebarClass, singleSidebarClass, topLayoutClass, expandedClass, mobileClass, setInitPosition, wrapperClass, responsiveClass, movableClass, setModalTop, resetModalStyle, handleMovable, handleResizable } from "./util";
8
- import { modalProps, modalEmits, dialogPropKeys } from "./props";
6
+ import { getModalContainer, wrapperClass, closedClass, getPositionMargin, handleMove, handleResize, topModal, resetModalStyle } from "./util";
7
+ import { modalProps, modalEmits } from "./props";
9
8
  const _sfc_main = defineComponent({
10
9
  name: "EleModal",
11
10
  components: {
@@ -14,129 +13,80 @@ const _sfc_main = defineComponent({
14
13
  CloseOutlined,
15
14
  CompressOutlined,
16
15
  ExpandOutlined,
16
+ ResizeOutlined,
17
17
  ReceiverView
18
18
  },
19
19
  inheritAttrs: false,
20
20
  props: modalProps,
21
21
  emits: modalEmits,
22
- setup(props, { emit, attrs }) {
22
+ setup(props, { emit }) {
23
+ const state = { isInit: true };
23
24
  const layoutProvide = useLayoutState();
24
25
  const dialogRef = ref(null);
25
- const teleportTo = ref(
26
- getModalContainer(props.multiple, props.appendTo)
27
- );
28
26
  const isFullscreen = ref(props.fullscreen ?? false);
29
27
  const isActivated = ref(true);
30
- const dialogEnable = ref(
31
- props.destroyOnClose && !props.modelValue ? false : true
32
- );
33
28
  const dialogClass = computed(() => {
34
- const layoutState = unref(layoutProvide);
35
29
  const classes = [wrapperClass];
36
- if (props.responsive ?? (layoutState == null ? void 0 : layoutState.responsive) ?? true) {
37
- classes.push(responsiveClass);
30
+ if (props.responsive ?? layoutProvide.responsive ?? true) {
31
+ classes.push("ele-modal-responsive");
38
32
  }
39
- if (props.form) {
40
- classes.push("ele-modal-form");
41
- }
42
- if (props.position) {
43
- if (props.position === "top") {
44
- classes.push("ele-modal-top");
45
- } else if (props.position === "bottom") {
46
- classes.push("ele-modal-bottom");
47
- } else if (props.position === "left") {
48
- classes.push("ele-modal-left");
49
- } else if (props.position === "right") {
50
- classes.push("ele-modal-right");
51
- } else if (props.position === "leftTop") {
52
- classes.push("ele-modal-left-top");
53
- } else if (props.position === "leftBottom") {
54
- classes.push("ele-modal-left-bottom");
55
- } else if (props.position === "rightTop") {
56
- classes.push("ele-modal-right-top");
57
- } else if (props.position === "rightBottom") {
58
- classes.push("ele-modal-right-bottom");
59
- } else if (props.position === "center") {
60
- classes.push("ele-modal-center");
61
- }
62
- } else if (props.alignCenter) {
33
+ if (props.alignCenter || props.position === "center") {
63
34
  classes.push("ele-modal-center");
35
+ } else if (props.position === "top") {
36
+ classes.push("ele-modal-top");
37
+ } else if (props.position === "bottom") {
38
+ classes.push("ele-modal-bottom");
39
+ } else if (props.position === "left") {
40
+ classes.push("ele-modal-left");
41
+ } else if (props.position === "right") {
42
+ classes.push("ele-modal-right");
43
+ } else if (props.position === "leftTop") {
44
+ classes.push("ele-modal-left-top");
45
+ } else if (props.position === "leftBottom") {
46
+ classes.push("ele-modal-left-bottom");
47
+ } else if (props.position === "rightTop") {
48
+ classes.push("ele-modal-right-top");
49
+ } else if (props.position === "rightBottom") {
50
+ classes.push("ele-modal-right-bottom");
64
51
  }
65
52
  if (props.draggable) {
66
- classes.push(movableClass);
53
+ classes.push("ele-modal-movable");
67
54
  }
68
55
  if (props.resizable) {
69
- classes.push(resizableClass);
70
- if (typeof props.resizable === "string") {
71
- classes.push(resizableClass + "-" + props.resizable);
72
- }
56
+ classes.push("ele-modal-resizable");
73
57
  }
74
58
  if (props.multiple) {
75
- classes.push(multipleClass);
59
+ classes.push("ele-modal-multiple");
76
60
  }
77
61
  if (isFullscreen.value) {
78
- classes.push(fullscreenClass);
62
+ classes.push("ele-modal-fullscreen");
79
63
  }
80
64
  if (!props.modelValue) {
81
65
  classes.push(closedClass);
82
66
  }
83
67
  if (!isActivated.value && props.modelValue) {
84
- classes.push(hideClass);
68
+ classes.push("ele-modal-hide");
85
69
  }
86
70
  if (props.inner) {
87
- classes.push(innerClass);
88
- if (layoutState && layoutState.sidebar != null) {
89
- if (layoutState.collapse && !layoutState.topLayout) {
90
- classes.push(collapseClass);
91
- }
92
- if (layoutState.compact && layoutState.mixSidebar && !layoutState.topLayout) {
93
- classes.push(compactClass);
94
- }
95
- if (layoutState.maximized) {
96
- classes.push(maximizedClass);
97
- }
98
- if (layoutState.tabBar) {
99
- classes.push(hasTabClass);
100
- }
101
- if (layoutState.mixSidebar && !layoutState.topLayout) {
102
- classes.push(mixSidebarClass);
103
- if (!layoutState.sidebar) {
104
- classes.push(singleSidebarClass);
105
- }
106
- }
107
- if (layoutState.topLayout) {
108
- classes.push(topLayoutClass);
109
- }
110
- if (layoutState.maximized && layoutState.expanded) {
111
- classes.push(expandedClass);
112
- }
113
- if (layoutState.mobile) {
114
- classes.push(mobileClass);
115
- }
116
- }
71
+ classes.push("ele-modal-inner");
117
72
  }
118
73
  if (props.modalClass) {
119
74
  classes.push(props.modalClass);
120
75
  }
121
76
  return classes.join(" ");
122
77
  });
123
- const dialogProps = computed(() => {
124
- const option = {
125
- fullscreen: false,
126
- modal: props.multiple ? false : props.modal,
127
- appendToBody: false,
128
- showClose: false,
129
- draggable: false,
130
- alignCenter: false,
131
- destroyOnClose: false,
132
- modalClass: dialogClass.value
133
- };
134
- return Object.assign({}, attrs, pick(props, dialogPropKeys), option);
78
+ const teleportTo = computed(() => {
79
+ return getModalContainer(
80
+ props.inner,
81
+ props.multiple,
82
+ props.appendTo,
83
+ layoutProvide.modalsEl
84
+ );
135
85
  });
136
86
  const teleportDisabled = computed(() => {
137
87
  const appendTo = props.appendTo || "body";
138
88
  const disabled = appendTo === "body" ? !props.appendToBody : false;
139
- return props.multiple ? false : disabled;
89
+ return props.multiple || props.inner ? false : disabled;
140
90
  });
141
91
  const getModalEl = () => {
142
92
  var _a, _b;
@@ -145,64 +95,84 @@ const _sfc_main = defineComponent({
145
95
  const getZIndex = () => {
146
96
  return props.zIndex ?? 2e3;
147
97
  };
98
+ const getPosition = () => {
99
+ if (props.alignCenter) {
100
+ return "center";
101
+ }
102
+ if (props.top != null && props.top !== "") {
103
+ return { top: props.top };
104
+ }
105
+ return props.position;
106
+ };
107
+ const setInitPosition = () => {
108
+ if (state.isInit) {
109
+ state.isInit = false;
110
+ const modalEl = getModalEl();
111
+ const margin = getPositionMargin(getPosition());
112
+ if (modalEl && margin != null) {
113
+ modalEl.style.margin = margin;
114
+ }
115
+ }
116
+ };
117
+ const mousedownListener = (event) => {
118
+ if (props.multiple) {
119
+ topModal(event.currentTarget, getZIndex());
120
+ }
121
+ };
122
+ const handleHeaderMousedown = (event) => {
123
+ const modalEl = getModalEl();
124
+ if (!modalEl || !props.draggable || isFullscreen.value) {
125
+ return;
126
+ }
127
+ handleMove(modalEl, event, props);
128
+ };
129
+ const handleResizeMousedown = (event) => {
130
+ const modalEl = getModalEl();
131
+ if (!modalEl || !props.resizable || isFullscreen.value) {
132
+ return;
133
+ }
134
+ handleResize(modalEl, event, props);
135
+ };
148
136
  const updateModelValue = (modelValue) => {
149
137
  emit("update:modelValue", modelValue);
150
138
  };
151
139
  const toggleFullscreen = (fullscreen) => {
152
- isFullscreen.value = fullscreen == null ? !isFullscreen.value : fullscreen;
140
+ isFullscreen.value = fullscreen ?? !isFullscreen.value;
153
141
  nextTick(() => {
154
- setModalTop(getModalEl(), getZIndex());
142
+ topModal(getModalEl(), getZIndex());
155
143
  });
156
144
  emit("update:fullscreen", isFullscreen.value);
157
145
  };
158
- const mousedownListener = (event) => {
159
- handleMovable(event, props);
160
- handleResizable(event, props);
161
- setModalTop(event.currentTarget, getZIndex());
162
- };
163
146
  const onOpen = () => {
164
147
  if (props.resetOnClose || props.destroyOnClose) {
165
148
  isFullscreen.value = props.fullscreen ?? false;
166
149
  }
167
- if (!dialogEnable.value) {
168
- dialogEnable.value = true;
169
- }
170
150
  nextTick(() => {
171
151
  const modalEl = getModalEl();
172
152
  if (props.resetOnClose) {
173
- resetModalStyle(modalEl, props.width, props.top);
174
- }
175
- if (props.position && typeof props.position === "object") {
176
- setInitPosition(
177
- modalEl,
178
- props.resizable,
179
- props.position,
180
- props.moveOut,
181
- props.resetOnClose
182
- );
153
+ resetModalStyle(modalEl, props.width, getPosition());
154
+ } else {
155
+ setInitPosition();
183
156
  }
184
- setModalTop(modalEl, getZIndex());
157
+ topModal(modalEl, getZIndex());
185
158
  });
186
159
  emit("open");
187
160
  };
188
161
  const onOpened = () => {
189
- const el = getModalEl();
190
- if (el) {
191
- el.addEventListener("mousedown", mousedownListener);
162
+ const modalEl = getModalEl();
163
+ if (modalEl) {
164
+ modalEl.addEventListener("mousedown", mousedownListener);
192
165
  }
193
166
  emit("opened");
194
167
  };
195
168
  const onClose = () => {
196
- const el = getModalEl();
197
- if (el) {
198
- el.removeEventListener("mousedown", mousedownListener);
169
+ const modalEl = getModalEl();
170
+ if (modalEl) {
171
+ modalEl.removeEventListener("mousedown", mousedownListener);
199
172
  }
200
173
  emit("close");
201
174
  };
202
175
  const onClosed = () => {
203
- if (props.destroyOnClose && dialogEnable.value) {
204
- dialogEnable.value = false;
205
- }
206
176
  emit("closed");
207
177
  };
208
178
  const onOpenAutoFocus = () => {
@@ -211,52 +181,17 @@ const _sfc_main = defineComponent({
211
181
  const onCloseAutoFocus = () => {
212
182
  emit("closeAutoFocus");
213
183
  };
214
- watch(
215
- () => props.multiple,
216
- (multiple) => {
217
- teleportTo.value = getModalContainer(multiple, props.appendTo);
218
- }
219
- );
220
- watch(
221
- () => props.appendTo,
222
- (appendTo) => {
223
- if (!props.multiple) {
224
- teleportTo.value = getModalContainer(false, appendTo);
225
- }
226
- }
227
- );
228
184
  watch(
229
185
  () => props.fullscreen,
230
186
  (fullscreen) => {
231
187
  isFullscreen.value = fullscreen ?? false;
232
188
  }
233
189
  );
234
- watch(
235
- () => props.position,
236
- (position) => {
237
- if (props.modelValue && position && typeof position === "object") {
238
- setInitPosition(
239
- getModalEl(),
240
- props.resizable,
241
- position,
242
- props.moveOut,
243
- true
244
- );
245
- }
246
- }
247
- );
248
- watch(
249
- () => props.destroyOnClose,
250
- (destroyOnClose) => {
251
- if (destroyOnClose) {
252
- if (!props.modelValue && dialogEnable.value) {
253
- dialogEnable.value = false;
254
- }
255
- } else if (!dialogEnable.value) {
256
- dialogEnable.value = true;
257
- }
190
+ onMounted(() => {
191
+ if (props.modelValue) {
192
+ setInitPosition();
258
193
  }
259
- );
194
+ });
260
195
  onActivated(() => {
261
196
  isActivated.value = true;
262
197
  });
@@ -265,11 +200,12 @@ const _sfc_main = defineComponent({
265
200
  });
266
201
  return {
267
202
  dialogRef,
268
- teleportTo,
269
203
  isFullscreen,
270
- dialogEnable,
271
- dialogProps,
204
+ dialogClass,
205
+ teleportTo,
272
206
  teleportDisabled,
207
+ handleHeaderMousedown,
208
+ handleResizeMousedown,
273
209
  updateModelValue,
274
210
  toggleFullscreen,
275
211
  onOpen,
@@ -288,20 +224,41 @@ const _export_sfc = (sfc, props) => {
288
224
  }
289
225
  return target;
290
226
  };
291
- const _hoisted_1 = ["onClick"];
292
227
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
293
228
  const _component_CompressOutlined = resolveComponent("CompressOutlined");
294
229
  const _component_ExpandOutlined = resolveComponent("ExpandOutlined");
295
230
  const _component_ElIcon = resolveComponent("ElIcon");
296
231
  const _component_CloseOutlined = resolveComponent("CloseOutlined");
232
+ const _component_ResizeOutlined = resolveComponent("ResizeOutlined");
297
233
  const _component_ReceiverView = resolveComponent("ReceiverView");
298
234
  const _component_ElDialog = resolveComponent("ElDialog");
299
235
  return openBlock(), createBlock(Teleport, {
300
236
  to: _ctx.teleportTo,
301
237
  disabled: _ctx.teleportDisabled
302
238
  }, [
303
- createVNode(_component_ElDialog, mergeProps(_ctx.dialogProps, {
239
+ createVNode(_component_ElDialog, mergeProps(_ctx.$attrs, {
304
240
  ref: "dialogRef",
241
+ modelValue: _ctx.modelValue,
242
+ title: _ctx.title,
243
+ width: _ctx.width,
244
+ fullscreen: false,
245
+ modal: _ctx.multiple ? false : _ctx.modal,
246
+ modalClass: _ctx.dialogClass,
247
+ appendToBody: false,
248
+ lockScroll: _ctx.inner || _ctx.multiple ? false : _ctx.lockScroll,
249
+ openDelay: _ctx.openDelay,
250
+ closeDelay: _ctx.closeDelay,
251
+ closeOnClickModal: _ctx.closeOnClickModal,
252
+ closeOnPressEscape: _ctx.closeOnPressEscape,
253
+ showClose: false,
254
+ beforeClose: _ctx.beforeClose,
255
+ draggable: false,
256
+ overflow: false,
257
+ center: _ctx.center,
258
+ alignCenter: false,
259
+ destroyOnClose: _ctx.destroyOnClose,
260
+ zIndex: _ctx.zIndex,
261
+ headerAriaLevel: _ctx.headerAriaLevel,
305
262
  "onUpdate:modelValue": _ctx.updateModelValue,
306
263
  onOpen: _ctx.onOpen,
307
264
  onOpened: _ctx.onOpened,
@@ -312,11 +269,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
312
269
  }), createSlots({
313
270
  header: withCtx(({ close, titleId, titleClass }) => [
314
271
  createElementVNode("div", {
272
+ style: normalizeStyle(_ctx.headerStyle),
315
273
  class: "ele-modal-header",
316
- style: normalizeStyle(_ctx.headerStyle)
274
+ onMousedown: _cache[4] || (_cache[4] = (...args) => _ctx.handleHeaderMousedown && _ctx.handleHeaderMousedown(...args))
317
275
  }, [
318
- _ctx.dialogEnable ? (openBlock(), createElementBlock("div", {
319
- key: 0,
276
+ createElementVNode("div", {
320
277
  class: "ele-modal-title",
321
278
  style: normalizeStyle(_ctx.titleStyle)
322
279
  }, [
@@ -327,12 +284,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
327
284
  }, () => [
328
285
  createTextVNode(toDisplayString(_ctx.title), 1)
329
286
  ])
330
- ], 4)) : createCommentVNode("", true),
331
- _ctx.dialogEnable && _ctx.maxable ? (openBlock(), createElementBlock("div", {
332
- key: 1,
287
+ ], 4),
288
+ _ctx.maxable ? (openBlock(), createElementBlock("div", {
289
+ key: 0,
333
290
  class: "ele-modal-tool",
334
291
  style: normalizeStyle(_ctx.fullscreenBtnStyle),
335
- onClick: _cache[0] || (_cache[0] = ($event) => _ctx.toggleFullscreen())
292
+ onClick: _cache[0] || (_cache[0] = ($event) => _ctx.toggleFullscreen()),
293
+ onMousedown: _cache[1] || (_cache[1] = withModifiers(() => {
294
+ }, ["stop"]))
336
295
  }, [
337
296
  renderSlot(_ctx.$slots, "maxIcon", { fullscreen: _ctx.isFullscreen }, () => [
338
297
  createVNode(_component_ElIcon, null, {
@@ -342,53 +301,72 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
342
301
  _: 1
343
302
  })
344
303
  ])
345
- ], 4)) : createCommentVNode("", true),
346
- _ctx.dialogEnable && _ctx.showClose ? (openBlock(), createElementBlock("div", {
347
- key: 2,
304
+ ], 36)) : createCommentVNode("", true),
305
+ _ctx.showClose ? (openBlock(), createElementBlock("div", {
306
+ key: 1,
348
307
  class: "ele-modal-tool",
349
308
  style: normalizeStyle(_ctx.closeBtnStyle),
350
- onClick: close
309
+ onClick: _cache[2] || (_cache[2] = ($event) => _ctx.updateModelValue(false)),
310
+ onMousedown: _cache[3] || (_cache[3] = withModifiers(() => {
311
+ }, ["stop"]))
351
312
  }, [
352
313
  renderSlot(_ctx.$slots, "closeIcon", {}, () => [
353
314
  createVNode(_component_ElIcon, null, {
354
315
  default: withCtx(() => [
355
- createVNode(_component_CloseOutlined)
316
+ _ctx.closeIcon ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.closeIcon), { key: 0 })) : (openBlock(), createBlock(_component_CloseOutlined, { key: 1 }))
356
317
  ]),
357
318
  _: 1
358
319
  })
359
320
  ])
360
- ], 12, _hoisted_1)) : createCommentVNode("", true)
361
- ], 4)
321
+ ], 36)) : createCommentVNode("", true)
322
+ ], 36),
323
+ _ctx.resizable ? (openBlock(), createElementBlock("div", {
324
+ key: 0,
325
+ class: normalizeClass([
326
+ "ele-modal-resize-icon",
327
+ { "is-horizontal": _ctx.resizable === "horizontal" },
328
+ { "is-vertical": _ctx.resizable === "vertical" }
329
+ ]),
330
+ style: normalizeStyle(_ctx.resizeIconStyle),
331
+ onMousedown: _cache[5] || (_cache[5] = (...args) => _ctx.handleResizeMousedown && _ctx.handleResizeMousedown(...args))
332
+ }, [
333
+ renderSlot(_ctx.$slots, "resizeIcon", {}, () => [
334
+ createVNode(_component_ElIcon, null, {
335
+ default: withCtx(() => [
336
+ createVNode(_component_ResizeOutlined)
337
+ ]),
338
+ _: 1
339
+ })
340
+ ])
341
+ ], 38)) : createCommentVNode("", true)
362
342
  ]),
363
343
  default: withCtx(() => [
364
- _ctx.dialogEnable ? (openBlock(), createBlock(_component_ReceiverView, {
365
- key: 0,
344
+ createVNode(_component_ReceiverView, {
366
345
  wrapPosition: false,
367
- class: "ele-modal-body",
346
+ class: normalizeClass(["ele-modal-body", { "is-form": _ctx.form }]),
368
347
  style: normalizeStyle(_ctx.bodyStyle)
369
348
  }, {
370
349
  default: withCtx(() => [
371
350
  renderSlot(_ctx.$slots, "default")
372
351
  ]),
373
352
  _: 3
374
- }, 8, ["style"])) : createCommentVNode("", true)
353
+ }, 8, ["class", "style"])
375
354
  ]),
376
355
  _: 2
377
356
  }, [
378
357
  _ctx.$slots.footer ? {
379
358
  name: "footer",
380
359
  fn: withCtx(() => [
381
- _ctx.dialogEnable ? (openBlock(), createElementBlock("div", {
382
- key: 0,
360
+ createElementVNode("div", {
383
361
  class: "ele-modal-footer",
384
362
  style: normalizeStyle(_ctx.footerStyle)
385
363
  }, [
386
364
  renderSlot(_ctx.$slots, "footer")
387
- ], 4)) : createCommentVNode("", true)
365
+ ], 4)
388
366
  ]),
389
367
  key: "0"
390
368
  } : void 0
391
- ]), 1040, ["onUpdate:modelValue", "onOpen", "onOpened", "onClose", "onClosed", "onOpenAutoFocus", "onCloseAutoFocus"])
369
+ ]), 1040, ["modelValue", "title", "width", "modal", "modalClass", "lockScroll", "openDelay", "closeDelay", "closeOnClickModal", "closeOnPressEscape", "beforeClose", "center", "destroyOnClose", "zIndex", "headerAriaLevel", "onUpdate:modelValue", "onOpen", "onOpened", "onClose", "onClosed", "onOpenAutoFocus", "onCloseAutoFocus"])
392
370
  ], 8, ["to", "disabled"]);
393
371
  }
394
372
  const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
@@ -53,6 +53,8 @@ export declare const modalProps: {
53
53
  closeBtnStyle: PropType<Partial<import('vue').CSSProperties>>;
54
54
  /** 自定义全屏按钮样式 */
55
55
  fullscreenBtnStyle: PropType<Partial<import('vue').CSSProperties>>;
56
+ /** 拉伸图标样式 */
57
+ resizeIconStyle: PropType<Partial<import('vue').CSSProperties>>;
56
58
  /** 是否开启响应式 */
57
59
  responsive: {
58
60
  type: BooleanConstructor;
@@ -99,7 +101,7 @@ export declare const modalProps: {
99
101
  center: BooleanConstructor;
100
102
  alignCenter: BooleanConstructor;
101
103
  closeIcon: {
102
- readonly type: PropType<import('element-plus/es/utils/index').EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>))[], unknown, unknown>>;
104
+ readonly type: PropType<import('element-plus/es/utils/index').EpPropMergeType<(new (...args: any[]) => (string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>) & {}) | (() => string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>) | ((new (...args: any[]) => (string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>) & {}) | (() => string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>))[], unknown, unknown>>;
103
105
  readonly required: false;
104
106
  readonly validator: ((val: unknown) => boolean) | undefined;
105
107
  __epPropKey: true;
@@ -48,6 +48,8 @@ const modalProps = {
48
48
  closeBtnStyle: Object,
49
49
  /** 自定义全屏按钮样式 */
50
50
  fullscreenBtnStyle: Object,
51
+ /** 拉伸图标样式 */
52
+ resizeIconStyle: Object,
51
53
  /** 是否开启响应式 */
52
54
  responsive: {
53
55
  type: Boolean,