ele-admin-plus 1.1.9-beta.9 → 1.1.9

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 (703) hide show
  1. package/es/core-installer.d.ts +2 -2
  2. package/es/ele-alert/index.d.ts +23 -23
  3. package/es/ele-alert/index.js +2 -2
  4. package/es/ele-alert/props.d.ts +10 -9
  5. package/es/ele-app/el.d.ts +2 -1
  6. package/es/ele-app/index.d.ts +2 -2
  7. package/es/ele-app/style/overwrite/date-picker/index.scss +32 -5
  8. package/es/ele-avatar-group/index.d.ts +29 -28
  9. package/es/ele-avatar-group/props.d.ts +10 -9
  10. package/es/ele-bar-code/index.d.ts +11 -10
  11. package/es/ele-bar-code/props.d.ts +4 -3
  12. package/es/ele-basic-select/index.d.ts +37 -35
  13. package/es/ele-basic-select/index.js +24 -7
  14. package/es/ele-basic-select/props.d.ts +9 -8
  15. package/es/ele-basic-select/util.d.ts +2 -1
  16. package/es/ele-bottom-bar/index.d.ts +6 -6
  17. package/es/ele-bottom-bar/props.d.ts +4 -3
  18. package/es/ele-breadcrumb/index.d.ts +11 -10
  19. package/es/ele-breadcrumb/props.d.ts +5 -4
  20. package/es/ele-card/index.d.ts +12 -12
  21. package/es/ele-card/props.d.ts +7 -6
  22. package/es/ele-check-card/components/card-item.d.ts +7 -6
  23. package/es/ele-check-card/index.d.ts +15 -14
  24. package/es/ele-check-card/props.d.ts +6 -5
  25. package/es/ele-config-provider/components/receiver-view.d.ts +3 -3
  26. package/es/ele-config-provider/components/receiver-view.js +119 -30
  27. package/es/ele-config-provider/index.d.ts +7 -7
  28. package/es/ele-config-provider/props.d.ts +4 -3
  29. package/es/ele-config-provider/receiver.d.ts +6 -10
  30. package/es/ele-config-provider/receiver.js +32 -117
  31. package/es/ele-config-provider/types.d.ts +3 -29
  32. package/es/ele-copyable/index.d.ts +32 -31
  33. package/es/ele-copyable/props.d.ts +9 -8
  34. package/es/ele-count-up/index.d.ts +8 -7
  35. package/es/ele-count-up/props.d.ts +3 -2
  36. package/es/ele-cropper/components/cropper-preview.d.ts +3 -3
  37. package/es/ele-cropper/components/cropper-tools.d.ts +12 -11
  38. package/es/ele-cropper/index.d.ts +16 -15
  39. package/es/ele-cropper/props.d.ts +4 -3
  40. package/es/ele-cropper-modal/index.d.ts +16 -15
  41. package/es/ele-cropper-modal/index.js +1 -1
  42. package/es/ele-cropper-modal/props.d.ts +7 -6
  43. package/es/ele-dashboard/index.d.ts +5 -5
  44. package/es/ele-dashboard/props.d.ts +3 -2
  45. package/es/ele-data-table/index.d.ts +63 -68
  46. package/es/ele-data-table/props.d.ts +36 -41
  47. package/es/ele-data-table/types.d.ts +8 -16
  48. package/es/ele-data-table/util.d.ts +10 -9
  49. package/es/ele-dot/index.d.ts +4 -4
  50. package/es/ele-dot/props.d.ts +3 -2
  51. package/es/ele-drawer/index.d.ts +75 -71
  52. package/es/ele-drawer/index.js +107 -113
  53. package/es/ele-drawer/props.d.ts +26 -25
  54. package/es/ele-drawer/style/index.scss +48 -105
  55. package/es/ele-dropdown/index.d.ts +66 -65
  56. package/es/ele-dropdown/props.d.ts +22 -21
  57. package/es/ele-edit-tag/index.d.ts +33 -32
  58. package/es/ele-edit-tag/index.js +1 -1
  59. package/es/ele-edit-tag/props.d.ts +10 -9
  60. package/es/ele-ellipsis/index.d.ts +23 -22
  61. package/es/ele-ellipsis/props.d.ts +8 -7
  62. package/es/ele-file-list/components/file-grid-item.d.ts +13 -12
  63. package/es/ele-file-list/components/file-grid-item.js +1 -1
  64. package/es/ele-file-list/components/file-grid.d.ts +10 -9
  65. package/es/ele-file-list/components/file-sort.d.ts +2 -2
  66. package/es/ele-file-list/components/file-table-item.d.ts +13 -12
  67. package/es/ele-file-list/components/file-table-item.js +1 -1
  68. package/es/ele-file-list/components/file-table.d.ts +10 -9
  69. package/es/ele-file-list/icons.d.ts +2 -1
  70. package/es/ele-file-list/index.d.ts +36 -35
  71. package/es/ele-file-list/props.d.ts +6 -5
  72. package/es/ele-file-list-tool/index.d.ts +3 -3
  73. package/es/ele-icon-select/components/icon-grid.d.ts +15 -14
  74. package/es/ele-icon-select/components/icon-grid.js +1 -1
  75. package/es/ele-icon-select/index.d.ts +49 -48
  76. package/es/ele-icon-select/props.d.ts +17 -16
  77. package/es/ele-loading/index.d.ts +12 -15
  78. package/es/ele-loading/index.js +10 -16
  79. package/es/ele-loading/props.d.ts +5 -4
  80. package/es/ele-map-picker/components/map-view.d.ts +29 -28
  81. package/es/ele-map-picker/components/map-view.js +1 -1
  82. package/es/ele-map-picker/index.d.ts +27 -26
  83. package/es/ele-map-picker/index.js +1 -1
  84. package/es/ele-map-picker/props.d.ts +8 -7
  85. package/es/ele-menus/index.d.ts +61 -62
  86. package/es/ele-menus/index.js +1 -1
  87. package/es/ele-menus/props.d.ts +16 -17
  88. package/es/ele-menus/props.js +1 -3
  89. package/es/ele-menus/style/css-var.scss +1 -5
  90. package/es/ele-menus/util.d.ts +3 -2
  91. package/es/ele-modal/index.d.ts +75 -68
  92. package/es/ele-modal/index.js +164 -186
  93. package/es/ele-modal/props.d.ts +26 -23
  94. package/es/ele-modal/props.js +2 -0
  95. package/es/ele-modal/style/index.scss +85 -146
  96. package/es/ele-modal/util.d.ts +20 -45
  97. package/es/ele-modal/util.js +55 -179
  98. package/es/ele-page/index.d.ts +2 -2
  99. package/es/ele-page/props.d.ts +2 -1
  100. package/es/ele-pagination/index.d.ts +40 -31
  101. package/es/ele-pagination/index.js +4 -1
  102. package/es/ele-pagination/props.d.ts +17 -11
  103. package/es/ele-pagination/props.js +5 -0
  104. package/es/ele-popconfirm/index.d.ts +90 -89
  105. package/es/ele-popconfirm/index.js +6 -28
  106. package/es/ele-popconfirm/props.d.ts +32 -31
  107. package/es/ele-popover/index.d.ts +69 -68
  108. package/es/ele-popover/index.js +6 -14
  109. package/es/ele-popover/props.d.ts +26 -25
  110. package/es/ele-printer/index.d.ts +18 -18
  111. package/es/ele-printer/props.d.ts +6 -5
  112. package/es/ele-printer/util.d.ts +2 -1
  113. package/es/ele-pro-layout/components/header-tool.d.ts +1 -1
  114. package/es/ele-pro-layout/components/pro-header.d.ts +84 -28
  115. package/es/ele-pro-layout/components/pro-header.js +110 -20
  116. package/es/ele-pro-layout/components/pro-iframe.d.ts +7 -7
  117. package/es/ele-pro-layout/components/pro-iframe.js +31 -41
  118. package/es/ele-pro-layout/components/pro-sidebar.d.ts +14 -18
  119. package/es/ele-pro-layout/components/pro-sidebar.js +2 -5
  120. package/es/ele-pro-layout/components/pro-sidebox.d.ts +16 -20
  121. package/es/ele-pro-layout/components/pro-sidebox.js +2 -5
  122. package/es/ele-pro-layout/components/pro-tabs.d.ts +12 -11
  123. package/es/ele-pro-layout/components/sidebar-tool.d.ts +1 -1
  124. package/es/ele-pro-layout/components/tab-dropdown.d.ts +8 -7
  125. package/es/ele-pro-layout/components/tab-dropdown.js +1 -1
  126. package/es/ele-pro-layout/index.d.ts +97 -97
  127. package/es/ele-pro-layout/index.js +62 -47
  128. package/es/ele-pro-layout/props.d.ts +11 -13
  129. package/es/ele-pro-layout/props.js +2 -4
  130. package/es/ele-pro-layout/style/css-var.scss +3 -18
  131. package/es/ele-pro-layout/style/header.scss +74 -9
  132. package/es/ele-pro-layout/style/layout-mobile.scss +2 -2
  133. package/es/ele-pro-layout/style/layout-style.scss +8 -3
  134. package/es/ele-pro-layout/style/layout-theme.scss +48 -23
  135. package/es/ele-pro-layout/style/layout.scss +38 -8
  136. package/es/ele-pro-layout/style/sidebar.scss +0 -1
  137. package/es/ele-pro-layout/style/tabs.scss +19 -11
  138. package/es/ele-pro-layout/types.d.ts +1 -1
  139. package/es/ele-pro-layout/util.d.ts +6 -6
  140. package/es/ele-pro-layout/util.js +2 -3
  141. package/es/ele-pro-table/components/table-tools.d.ts +22 -21
  142. package/es/ele-pro-table/components/table-tools.js +1 -1
  143. package/es/ele-pro-table/components/tool-column-list.d.ts +6 -5
  144. package/es/ele-pro-table/components/tool-column-list.js +3 -7
  145. package/es/ele-pro-table/components/tool-column.d.ts +14 -13
  146. package/es/ele-pro-table/components/tool-column.js +3 -7
  147. package/es/ele-pro-table/components/tool-export.d.ts +24 -302
  148. package/es/ele-pro-table/components/tool-export.js +10 -12
  149. package/es/ele-pro-table/components/tool-print-body-cell.d.ts +13 -12
  150. package/es/ele-pro-table/components/tool-print-header-cell.d.ts +13 -12
  151. package/es/ele-pro-table/components/tool-print.d.ts +30 -747
  152. package/es/ele-pro-table/components/tool-print.js +26 -18
  153. package/es/ele-pro-table/index.d.ts +131 -143
  154. package/es/ele-pro-table/index.js +51 -29
  155. package/es/ele-pro-table/props.d.ts +44 -46
  156. package/es/ele-pro-table/types.d.ts +13 -0
  157. package/es/ele-pro-table/util.d.ts +26 -22
  158. package/es/ele-pro-table/util.js +49 -28
  159. package/es/ele-qr-code/index.d.ts +16 -15
  160. package/es/ele-qr-code/props.d.ts +4 -3
  161. package/es/ele-qr-code/util.d.ts +3 -2
  162. package/es/ele-qr-code-svg/index.d.ts +18 -18
  163. package/es/ele-segmented/index.d.ts +10 -9
  164. package/es/ele-segmented/props.d.ts +3 -2
  165. package/es/ele-split-panel/index.d.ts +18 -17
  166. package/es/ele-split-panel/props.d.ts +5 -4
  167. package/es/ele-steps/index.d.ts +33 -33
  168. package/es/ele-steps/props.d.ts +10 -9
  169. package/es/ele-tab-tool/index.d.ts +2 -2
  170. package/es/ele-tab-tool/props.d.ts +2 -1
  171. package/es/ele-tab-wrap/index.d.ts +6 -6
  172. package/es/ele-tab-wrap/index.js +2 -1
  173. package/es/ele-tab-wrap/props.d.ts +3 -2
  174. package/es/ele-table/index.d.ts +4 -4
  175. package/es/ele-table/props.d.ts +3 -2
  176. package/es/ele-table-select/index.d.ts +45 -43
  177. package/es/ele-table-select/index.js +29 -27
  178. package/es/ele-table-select/props.d.ts +11 -10
  179. package/es/ele-tabs/components/tab-title.d.ts +9 -8
  180. package/es/ele-tabs/index.d.ts +43 -55
  181. package/es/ele-tabs/index.js +1 -0
  182. package/es/ele-tabs/props.d.ts +17 -23
  183. package/es/ele-tabs/style/css-var.scss +1 -30
  184. package/es/ele-tabs/style/index.scss +372 -241
  185. package/es/ele-tabs/types.d.ts +2 -1
  186. package/es/ele-text/index.d.ts +12 -12
  187. package/es/ele-text/props.d.ts +5 -4
  188. package/es/ele-tool/index.d.ts +7 -7
  189. package/es/ele-tool/props.d.ts +3 -2
  190. package/es/ele-toolbar/index.d.ts +15 -15
  191. package/es/ele-toolbar/props.d.ts +7 -6
  192. package/es/ele-tooltip/index.d.ts +59 -58
  193. package/es/ele-tooltip/index.js +3 -0
  194. package/es/ele-tooltip/props.d.ts +28 -22
  195. package/es/ele-tooltip/props.js +2 -0
  196. package/es/ele-tour/index.d.ts +15 -14
  197. package/es/ele-tour/props.d.ts +3 -2
  198. package/es/ele-tour/util.d.ts +3 -2
  199. package/es/ele-tree-select/index.d.ts +37 -36
  200. package/es/ele-tree-select/props.d.ts +12 -11
  201. package/es/ele-tree-select/util.d.ts +3 -2
  202. package/es/ele-upload-list/components/list-item.d.ts +7 -6
  203. package/es/ele-upload-list/index.d.ts +26 -25
  204. package/es/ele-upload-list/props.d.ts +6 -5
  205. package/es/ele-virtual-table/components/body-cell.d.ts +100 -64
  206. package/es/ele-virtual-table/components/body-cell.js +52 -70
  207. package/es/ele-virtual-table/components/body-row.d.ts +89 -65
  208. package/es/ele-virtual-table/components/body-row.js +57 -52
  209. package/es/ele-virtual-table/components/cell-checkbox.d.ts +5 -4
  210. package/es/ele-virtual-table/components/cell-filter.d.ts +18 -17
  211. package/es/ele-virtual-table/components/cell-filter.js +8 -12
  212. package/es/ele-virtual-table/components/expand-row.d.ts +11 -10
  213. package/es/ele-virtual-table/components/expand-row.js +3 -3
  214. package/es/ele-virtual-table/components/footer-row.d.ts +36 -17
  215. package/es/ele-virtual-table/components/footer-row.js +19 -14
  216. package/es/ele-virtual-table/components/header-cell.d.ts +16 -15
  217. package/es/ele-virtual-table/components/header-row.d.ts +12 -11
  218. package/es/ele-virtual-table/index.d.ts +91 -100
  219. package/es/ele-virtual-table/index.js +134 -136
  220. package/es/ele-virtual-table/props.d.ts +49 -51
  221. package/es/ele-virtual-table/style/index.scss +1 -1
  222. package/es/ele-virtual-table/types.d.ts +88 -68
  223. package/es/ele-virtual-table/util.d.ts +13 -11
  224. package/es/ele-virtual-table/util.js +25 -22
  225. package/es/ele-watermark/index.d.ts +15 -14
  226. package/es/ele-watermark/props.d.ts +4 -3
  227. package/es/ele-watermark/util.d.ts +3 -2
  228. package/es/ele-xg-player/index.d.ts +10 -10
  229. package/es/icons/AnalysisOutlined.d.ts +1 -1
  230. package/es/icons/ApplicationOutlined.d.ts +1 -1
  231. package/es/icons/AppstoreAddOutlined.d.ts +1 -1
  232. package/es/icons/AppstoreOutlined.d.ts +1 -1
  233. package/es/icons/ArrowDown.d.ts +1 -1
  234. package/es/icons/ArrowDownOutlined.d.ts +1 -1
  235. package/es/icons/ArrowLeft.d.ts +1 -1
  236. package/es/icons/ArrowLeftOutlined.d.ts +1 -1
  237. package/es/icons/ArrowRight.d.ts +1 -1
  238. package/es/icons/ArrowRightOutlined.d.ts +1 -1
  239. package/es/icons/ArrowUp.d.ts +1 -1
  240. package/es/icons/ArrowUpOutlined.d.ts +1 -1
  241. package/es/icons/BellOutlined.d.ts +1 -1
  242. package/es/icons/BookOutlined.d.ts +1 -1
  243. package/es/icons/CalendarOutlined.d.ts +1 -1
  244. package/es/icons/CaretDownFilled.d.ts +1 -1
  245. package/es/icons/CaretUpFilled.d.ts +1 -1
  246. package/es/icons/CheckCircleFilled.d.ts +1 -1
  247. package/es/icons/CheckCircleOutlined.d.ts +1 -1
  248. package/es/icons/CheckOutlined.d.ts +1 -1
  249. package/es/icons/CityOutlined.d.ts +1 -1
  250. package/es/icons/ClockCircleOutlined.d.ts +1 -1
  251. package/es/icons/CloseCircleFilled.d.ts +1 -1
  252. package/es/icons/CloseCircleOutlined.d.ts +1 -1
  253. package/es/icons/CloseOutlined.d.ts +1 -1
  254. package/es/icons/CloudUploadOutlined.d.ts +1 -1
  255. package/es/icons/ClusterOutlined.d.ts +1 -1
  256. package/es/icons/CodeOutlined.d.ts +1 -1
  257. package/es/icons/ColumnHeightOutlined.d.ts +1 -1
  258. package/es/icons/CompassOutlined.d.ts +1 -1
  259. package/es/icons/CompressOutlined.d.ts +1 -1
  260. package/es/icons/ConnectionOutlined.d.ts +1 -1
  261. package/es/icons/ControlOutlined.d.ts +1 -1
  262. package/es/icons/CopyOutlined.d.ts +1 -1
  263. package/es/icons/CpuOutlined.d.ts +1 -1
  264. package/es/icons/DashboardOutlined.d.ts +1 -1
  265. package/es/icons/DatabaseOutlined.d.ts +1 -1
  266. package/es/icons/DeleteOutlined.d.ts +1 -1
  267. package/es/icons/DesktopOutlined.d.ts +1 -1
  268. package/es/icons/DownloadOutlined.d.ts +1 -1
  269. package/es/icons/DragOutlined.d.ts +1 -1
  270. package/es/icons/EditOutlined.d.ts +1 -1
  271. package/es/icons/EllipsisOutlined.d.ts +1 -1
  272. package/es/icons/EnvironmentOutlined.d.ts +1 -1
  273. package/es/icons/ExclamationCircleFilled.d.ts +1 -1
  274. package/es/icons/ExpandOutlined.d.ts +1 -1
  275. package/es/icons/FileOutlined.d.ts +1 -1
  276. package/es/icons/FilterFilled.d.ts +1 -1
  277. package/es/icons/FolderAddOutlined.d.ts +1 -1
  278. package/es/icons/FolderOutlined.d.ts +1 -1
  279. package/es/icons/FormOutlined.d.ts +1 -1
  280. package/es/icons/FullscreenExitOutlined.d.ts +1 -1
  281. package/es/icons/FullscreenOutlined.d.ts +1 -1
  282. package/es/icons/FundOutlined.d.ts +1 -1
  283. package/es/icons/GlobalOutlined.d.ts +1 -1
  284. package/es/icons/HolderOutlined.d.ts +1 -1
  285. package/es/icons/HomeOutlined.d.ts +1 -1
  286. package/es/icons/IdcardOutlined.d.ts +1 -1
  287. package/es/icons/InfoCircleFilled.d.ts +1 -1
  288. package/es/icons/LinkOutlined.d.ts +1 -1
  289. package/es/icons/LoadingDotOutlined.d.ts +1 -1
  290. package/es/icons/LoadingOutlined.d.ts +1 -1
  291. package/es/icons/LockOutlined.d.ts +1 -1
  292. package/es/icons/LogOutlined.d.ts +1 -1
  293. package/es/icons/LogoutOutlined.d.ts +1 -1
  294. package/es/icons/MailOutlined.d.ts +1 -1
  295. package/es/icons/MenuFoldOutlined.d.ts +1 -1
  296. package/es/icons/MenuUnfoldOutlined.d.ts +1 -1
  297. package/es/icons/MessageOutlined.d.ts +1 -1
  298. package/es/icons/MinusCircleOutlined.d.ts +1 -1
  299. package/es/icons/MobileOutlined.d.ts +1 -1
  300. package/es/icons/MoonOutlined.d.ts +1 -1
  301. package/es/icons/MoreOutlined.d.ts +1 -1
  302. package/es/icons/PauseFilled.d.ts +1 -1
  303. package/es/icons/PieChartOutlined.d.ts +1 -1
  304. package/es/icons/PlayFilled.d.ts +1 -1
  305. package/es/icons/PlusCircleOutlined.d.ts +1 -1
  306. package/es/icons/PlusOutlined.d.ts +1 -1
  307. package/es/icons/PrinterOutlined.d.ts +1 -1
  308. package/es/icons/ProtectOutlined.d.ts +1 -1
  309. package/es/icons/QuestionCircleFilled.d.ts +1 -1
  310. package/es/icons/QuestionCircleOutlined.d.ts +1 -1
  311. package/es/icons/ReloadOutlined.d.ts +1 -1
  312. package/es/icons/ResizeOutlined.d.ts +2 -0
  313. package/es/icons/ResizeOutlined.js +30 -0
  314. package/es/icons/SearchOutlined.d.ts +1 -1
  315. package/es/icons/SettingOutlined.d.ts +1 -1
  316. package/es/icons/ShoppingOutlined.d.ts +1 -1
  317. package/es/icons/SortOutlined.d.ts +1 -1
  318. package/es/icons/StarFilled.d.ts +1 -1
  319. package/es/icons/StepBackwardFilled.d.ts +1 -1
  320. package/es/icons/StepForwardFilled.d.ts +1 -1
  321. package/es/icons/SuitcaseOutlined.d.ts +1 -1
  322. package/es/icons/SunOutlined.d.ts +1 -1
  323. package/es/icons/SwapOutlined.d.ts +1 -1
  324. package/es/icons/SyncOutlined.d.ts +1 -1
  325. package/es/icons/TableOutlined.d.ts +1 -1
  326. package/es/icons/TagOutlined.d.ts +1 -1
  327. package/es/icons/TimerOutlined.d.ts +1 -1
  328. package/es/icons/UndoOutlined.d.ts +1 -1
  329. package/es/icons/UnlockOutlined.d.ts +1 -1
  330. package/es/icons/UploadOutlined.d.ts +1 -1
  331. package/es/icons/UserOutlined.d.ts +1 -1
  332. package/es/icons/VerticalAlignMiddleOutlined.d.ts +1 -1
  333. package/es/icons/VerticalLeftOutlined.d.ts +1 -1
  334. package/es/icons/VerticalRightOutlined.d.ts +1 -1
  335. package/es/icons/WarningOutlined.d.ts +1 -1
  336. package/es/icons/ZoomInOutlined.d.ts +1 -1
  337. package/es/icons/ZoomOutOutlined.d.ts +1 -1
  338. package/es/icons/index.d.ts +1 -0
  339. package/es/icons/index.js +50 -48
  340. package/es/installer.d.ts +2 -2
  341. package/es/lang/en_US.d.ts +2 -2
  342. package/es/lang/zh_CN.d.ts +2 -2
  343. package/es/lang/zh_TW.d.ts +2 -2
  344. package/es/style/nprogress.scss +1 -0
  345. package/es/style/themes/dark.scss +9 -15
  346. package/es/style/themes/default.scss +58 -81
  347. package/es/style/themes/rounded.scss +16 -30
  348. package/es/utils/menu-util.d.ts +3 -2
  349. package/es/utils/menu-util.js +2 -5
  350. package/es/utils/message.d.ts +4 -3
  351. package/es/utils/resolvers.d.ts +2 -2
  352. package/lib/core-installer.d.ts +2 -2
  353. package/lib/ele-alert/index.cjs +2 -2
  354. package/lib/ele-alert/index.d.ts +23 -23
  355. package/lib/ele-alert/props.d.ts +10 -9
  356. package/lib/ele-app/el.d.ts +2 -1
  357. package/lib/ele-app/index.d.ts +2 -2
  358. package/lib/ele-app/style/overwrite/date-picker/index.scss +32 -5
  359. package/lib/ele-avatar-group/index.d.ts +29 -28
  360. package/lib/ele-avatar-group/props.d.ts +10 -9
  361. package/lib/ele-bar-code/index.d.ts +11 -10
  362. package/lib/ele-bar-code/props.d.ts +4 -3
  363. package/lib/ele-basic-select/index.cjs +23 -6
  364. package/lib/ele-basic-select/index.d.ts +37 -35
  365. package/lib/ele-basic-select/props.d.ts +9 -8
  366. package/lib/ele-basic-select/util.d.ts +2 -1
  367. package/lib/ele-bottom-bar/index.d.ts +6 -6
  368. package/lib/ele-bottom-bar/props.d.ts +4 -3
  369. package/lib/ele-breadcrumb/index.d.ts +11 -10
  370. package/lib/ele-breadcrumb/props.d.ts +5 -4
  371. package/lib/ele-card/index.d.ts +12 -12
  372. package/lib/ele-card/props.d.ts +7 -6
  373. package/lib/ele-check-card/components/card-item.d.ts +7 -6
  374. package/lib/ele-check-card/index.d.ts +15 -14
  375. package/lib/ele-check-card/props.d.ts +6 -5
  376. package/lib/ele-config-provider/components/receiver-view.cjs +2 -44
  377. package/lib/ele-config-provider/components/receiver-view.d.ts +3 -3
  378. package/lib/ele-config-provider/index.d.ts +7 -7
  379. package/lib/ele-config-provider/props.d.ts +4 -3
  380. package/lib/ele-config-provider/receiver.cjs +41 -2
  381. package/lib/ele-config-provider/receiver.d.ts +6 -10
  382. package/lib/ele-config-provider/types.d.ts +3 -29
  383. package/lib/ele-copyable/index.d.ts +32 -31
  384. package/lib/ele-copyable/props.d.ts +9 -8
  385. package/lib/ele-count-up/index.d.ts +8 -7
  386. package/lib/ele-count-up/props.d.ts +3 -2
  387. package/lib/ele-cropper/components/cropper-preview.d.ts +3 -3
  388. package/lib/ele-cropper/components/cropper-tools.d.ts +12 -11
  389. package/lib/ele-cropper/index.d.ts +16 -15
  390. package/lib/ele-cropper/props.d.ts +4 -3
  391. package/lib/ele-cropper-modal/index.cjs +1 -1
  392. package/lib/ele-cropper-modal/index.d.ts +16 -15
  393. package/lib/ele-cropper-modal/props.d.ts +7 -6
  394. package/lib/ele-dashboard/index.d.ts +5 -5
  395. package/lib/ele-dashboard/props.d.ts +3 -2
  396. package/lib/ele-data-table/index.d.ts +63 -68
  397. package/lib/ele-data-table/props.d.ts +36 -41
  398. package/lib/ele-data-table/types.d.ts +8 -16
  399. package/lib/ele-data-table/util.d.ts +10 -9
  400. package/lib/ele-dot/index.d.ts +4 -4
  401. package/lib/ele-dot/props.d.ts +3 -2
  402. package/lib/ele-drawer/index.cjs +105 -111
  403. package/lib/ele-drawer/index.d.ts +75 -71
  404. package/lib/ele-drawer/props.d.ts +26 -25
  405. package/lib/ele-drawer/style/index.scss +48 -105
  406. package/lib/ele-dropdown/index.d.ts +66 -65
  407. package/lib/ele-dropdown/props.d.ts +22 -21
  408. package/lib/ele-edit-tag/index.cjs +1 -1
  409. package/lib/ele-edit-tag/index.d.ts +33 -32
  410. package/lib/ele-edit-tag/props.d.ts +10 -9
  411. package/lib/ele-ellipsis/index.d.ts +23 -22
  412. package/lib/ele-ellipsis/props.d.ts +8 -7
  413. package/lib/ele-file-list/components/file-grid-item.cjs +1 -1
  414. package/lib/ele-file-list/components/file-grid-item.d.ts +13 -12
  415. package/lib/ele-file-list/components/file-grid.d.ts +10 -9
  416. package/lib/ele-file-list/components/file-sort.d.ts +2 -2
  417. package/lib/ele-file-list/components/file-table-item.cjs +1 -1
  418. package/lib/ele-file-list/components/file-table-item.d.ts +13 -12
  419. package/lib/ele-file-list/components/file-table.d.ts +10 -9
  420. package/lib/ele-file-list/icons.d.ts +2 -1
  421. package/lib/ele-file-list/index.d.ts +36 -35
  422. package/lib/ele-file-list/props.d.ts +6 -5
  423. package/lib/ele-file-list-tool/index.d.ts +3 -3
  424. package/lib/ele-icon-select/components/icon-grid.cjs +1 -1
  425. package/lib/ele-icon-select/components/icon-grid.d.ts +15 -14
  426. package/lib/ele-icon-select/index.d.ts +49 -48
  427. package/lib/ele-icon-select/props.d.ts +17 -16
  428. package/lib/ele-loading/index.cjs +9 -15
  429. package/lib/ele-loading/index.d.ts +12 -15
  430. package/lib/ele-loading/props.d.ts +5 -4
  431. package/lib/ele-map-picker/components/map-view.cjs +1 -1
  432. package/lib/ele-map-picker/components/map-view.d.ts +29 -28
  433. package/lib/ele-map-picker/index.cjs +1 -1
  434. package/lib/ele-map-picker/index.d.ts +27 -26
  435. package/lib/ele-map-picker/props.d.ts +8 -7
  436. package/lib/ele-menus/index.cjs +1 -1
  437. package/lib/ele-menus/index.d.ts +61 -62
  438. package/lib/ele-menus/props.cjs +1 -3
  439. package/lib/ele-menus/props.d.ts +16 -17
  440. package/lib/ele-menus/style/css-var.scss +1 -5
  441. package/lib/ele-menus/util.d.ts +3 -2
  442. package/lib/ele-modal/index.cjs +176 -198
  443. package/lib/ele-modal/index.d.ts +75 -68
  444. package/lib/ele-modal/props.cjs +2 -0
  445. package/lib/ele-modal/props.d.ts +26 -23
  446. package/lib/ele-modal/style/index.scss +85 -146
  447. package/lib/ele-modal/util.cjs +55 -179
  448. package/lib/ele-modal/util.d.ts +20 -45
  449. package/lib/ele-page/index.d.ts +2 -2
  450. package/lib/ele-page/props.d.ts +2 -1
  451. package/lib/ele-pagination/index.cjs +4 -1
  452. package/lib/ele-pagination/index.d.ts +40 -31
  453. package/lib/ele-pagination/props.cjs +5 -0
  454. package/lib/ele-pagination/props.d.ts +17 -11
  455. package/lib/ele-popconfirm/index.cjs +5 -27
  456. package/lib/ele-popconfirm/index.d.ts +90 -89
  457. package/lib/ele-popconfirm/props.d.ts +32 -31
  458. package/lib/ele-popover/index.cjs +5 -13
  459. package/lib/ele-popover/index.d.ts +69 -68
  460. package/lib/ele-popover/props.d.ts +26 -25
  461. package/lib/ele-printer/index.d.ts +18 -18
  462. package/lib/ele-printer/props.d.ts +6 -5
  463. package/lib/ele-printer/util.d.ts +2 -1
  464. package/lib/ele-pro-layout/components/header-tool.d.ts +1 -1
  465. package/lib/ele-pro-layout/components/pro-header.cjs +109 -19
  466. package/lib/ele-pro-layout/components/pro-header.d.ts +84 -28
  467. package/lib/ele-pro-layout/components/pro-iframe.cjs +30 -40
  468. package/lib/ele-pro-layout/components/pro-iframe.d.ts +7 -7
  469. package/lib/ele-pro-layout/components/pro-sidebar.cjs +2 -5
  470. package/lib/ele-pro-layout/components/pro-sidebar.d.ts +14 -18
  471. package/lib/ele-pro-layout/components/pro-sidebox.cjs +2 -5
  472. package/lib/ele-pro-layout/components/pro-sidebox.d.ts +16 -20
  473. package/lib/ele-pro-layout/components/pro-tabs.d.ts +12 -11
  474. package/lib/ele-pro-layout/components/sidebar-tool.d.ts +1 -1
  475. package/lib/ele-pro-layout/components/tab-dropdown.cjs +1 -1
  476. package/lib/ele-pro-layout/components/tab-dropdown.d.ts +8 -7
  477. package/lib/ele-pro-layout/index.cjs +61 -46
  478. package/lib/ele-pro-layout/index.d.ts +97 -97
  479. package/lib/ele-pro-layout/props.cjs +2 -4
  480. package/lib/ele-pro-layout/props.d.ts +11 -13
  481. package/lib/ele-pro-layout/style/css-var.scss +3 -18
  482. package/lib/ele-pro-layout/style/header.scss +74 -9
  483. package/lib/ele-pro-layout/style/layout-mobile.scss +2 -2
  484. package/lib/ele-pro-layout/style/layout-style.scss +8 -3
  485. package/lib/ele-pro-layout/style/layout-theme.scss +48 -23
  486. package/lib/ele-pro-layout/style/layout.scss +38 -8
  487. package/lib/ele-pro-layout/style/sidebar.scss +0 -1
  488. package/lib/ele-pro-layout/style/tabs.scss +19 -11
  489. package/lib/ele-pro-layout/types.d.ts +1 -1
  490. package/lib/ele-pro-layout/util.cjs +2 -3
  491. package/lib/ele-pro-layout/util.d.ts +6 -6
  492. package/lib/ele-pro-table/components/table-tools.cjs +1 -1
  493. package/lib/ele-pro-table/components/table-tools.d.ts +22 -21
  494. package/lib/ele-pro-table/components/tool-column-list.cjs +2 -6
  495. package/lib/ele-pro-table/components/tool-column-list.d.ts +6 -5
  496. package/lib/ele-pro-table/components/tool-column.cjs +2 -6
  497. package/lib/ele-pro-table/components/tool-column.d.ts +14 -13
  498. package/lib/ele-pro-table/components/tool-export.cjs +9 -11
  499. package/lib/ele-pro-table/components/tool-export.d.ts +24 -302
  500. package/lib/ele-pro-table/components/tool-print-body-cell.d.ts +13 -12
  501. package/lib/ele-pro-table/components/tool-print-header-cell.d.ts +13 -12
  502. package/lib/ele-pro-table/components/tool-print.cjs +24 -16
  503. package/lib/ele-pro-table/components/tool-print.d.ts +30 -747
  504. package/lib/ele-pro-table/index.cjs +49 -27
  505. package/lib/ele-pro-table/index.d.ts +131 -143
  506. package/lib/ele-pro-table/props.d.ts +44 -46
  507. package/lib/ele-pro-table/types.d.ts +13 -0
  508. package/lib/ele-pro-table/util.cjs +48 -27
  509. package/lib/ele-pro-table/util.d.ts +26 -22
  510. package/lib/ele-qr-code/index.d.ts +16 -15
  511. package/lib/ele-qr-code/props.d.ts +4 -3
  512. package/lib/ele-qr-code/util.d.ts +3 -2
  513. package/lib/ele-qr-code-svg/index.d.ts +18 -18
  514. package/lib/ele-segmented/index.d.ts +10 -9
  515. package/lib/ele-segmented/props.d.ts +3 -2
  516. package/lib/ele-split-panel/index.d.ts +18 -17
  517. package/lib/ele-split-panel/props.d.ts +5 -4
  518. package/lib/ele-steps/index.d.ts +33 -33
  519. package/lib/ele-steps/props.d.ts +10 -9
  520. package/lib/ele-tab-tool/index.d.ts +2 -2
  521. package/lib/ele-tab-tool/props.d.ts +2 -1
  522. package/lib/ele-tab-wrap/index.cjs +2 -1
  523. package/lib/ele-tab-wrap/index.d.ts +6 -6
  524. package/lib/ele-tab-wrap/props.d.ts +3 -2
  525. package/lib/ele-table/index.d.ts +4 -4
  526. package/lib/ele-table/props.d.ts +3 -2
  527. package/lib/ele-table-select/index.cjs +29 -27
  528. package/lib/ele-table-select/index.d.ts +45 -43
  529. package/lib/ele-table-select/props.d.ts +11 -10
  530. package/lib/ele-tabs/components/tab-title.d.ts +9 -8
  531. package/lib/ele-tabs/index.cjs +1 -0
  532. package/lib/ele-tabs/index.d.ts +43 -55
  533. package/lib/ele-tabs/props.d.ts +17 -23
  534. package/lib/ele-tabs/style/css-var.scss +1 -30
  535. package/lib/ele-tabs/style/index.scss +372 -241
  536. package/lib/ele-tabs/types.d.ts +2 -1
  537. package/lib/ele-text/index.d.ts +12 -12
  538. package/lib/ele-text/props.d.ts +5 -4
  539. package/lib/ele-tool/index.d.ts +7 -7
  540. package/lib/ele-tool/props.d.ts +3 -2
  541. package/lib/ele-toolbar/index.d.ts +15 -15
  542. package/lib/ele-toolbar/props.d.ts +7 -6
  543. package/lib/ele-tooltip/index.cjs +3 -0
  544. package/lib/ele-tooltip/index.d.ts +59 -58
  545. package/lib/ele-tooltip/props.cjs +2 -0
  546. package/lib/ele-tooltip/props.d.ts +28 -22
  547. package/lib/ele-tour/index.d.ts +15 -14
  548. package/lib/ele-tour/props.d.ts +3 -2
  549. package/lib/ele-tour/util.d.ts +3 -2
  550. package/lib/ele-tree-select/index.d.ts +37 -36
  551. package/lib/ele-tree-select/props.d.ts +12 -11
  552. package/lib/ele-tree-select/util.d.ts +3 -2
  553. package/lib/ele-upload-list/components/list-item.d.ts +7 -6
  554. package/lib/ele-upload-list/index.d.ts +26 -25
  555. package/lib/ele-upload-list/props.d.ts +6 -5
  556. package/lib/ele-virtual-table/components/body-cell.cjs +52 -70
  557. package/lib/ele-virtual-table/components/body-cell.d.ts +100 -64
  558. package/lib/ele-virtual-table/components/body-row.cjs +57 -52
  559. package/lib/ele-virtual-table/components/body-row.d.ts +89 -65
  560. package/lib/ele-virtual-table/components/cell-checkbox.d.ts +5 -4
  561. package/lib/ele-virtual-table/components/cell-filter.cjs +7 -11
  562. package/lib/ele-virtual-table/components/cell-filter.d.ts +18 -17
  563. package/lib/ele-virtual-table/components/expand-row.cjs +3 -3
  564. package/lib/ele-virtual-table/components/expand-row.d.ts +11 -10
  565. package/lib/ele-virtual-table/components/footer-row.cjs +19 -14
  566. package/lib/ele-virtual-table/components/footer-row.d.ts +36 -17
  567. package/lib/ele-virtual-table/components/header-cell.d.ts +16 -15
  568. package/lib/ele-virtual-table/components/header-row.d.ts +12 -11
  569. package/lib/ele-virtual-table/index.cjs +132 -134
  570. package/lib/ele-virtual-table/index.d.ts +91 -100
  571. package/lib/ele-virtual-table/props.d.ts +49 -51
  572. package/lib/ele-virtual-table/style/index.scss +1 -1
  573. package/lib/ele-virtual-table/types.d.ts +88 -68
  574. package/lib/ele-virtual-table/util.cjs +25 -22
  575. package/lib/ele-virtual-table/util.d.ts +13 -11
  576. package/lib/ele-watermark/index.d.ts +15 -14
  577. package/lib/ele-watermark/props.d.ts +4 -3
  578. package/lib/ele-watermark/util.d.ts +3 -2
  579. package/lib/ele-xg-player/index.d.ts +10 -10
  580. package/lib/icons/AnalysisOutlined.d.ts +1 -1
  581. package/lib/icons/ApplicationOutlined.d.ts +1 -1
  582. package/lib/icons/AppstoreAddOutlined.d.ts +1 -1
  583. package/lib/icons/AppstoreOutlined.d.ts +1 -1
  584. package/lib/icons/ArrowDown.d.ts +1 -1
  585. package/lib/icons/ArrowDownOutlined.d.ts +1 -1
  586. package/lib/icons/ArrowLeft.d.ts +1 -1
  587. package/lib/icons/ArrowLeftOutlined.d.ts +1 -1
  588. package/lib/icons/ArrowRight.d.ts +1 -1
  589. package/lib/icons/ArrowRightOutlined.d.ts +1 -1
  590. package/lib/icons/ArrowUp.d.ts +1 -1
  591. package/lib/icons/ArrowUpOutlined.d.ts +1 -1
  592. package/lib/icons/BellOutlined.d.ts +1 -1
  593. package/lib/icons/BookOutlined.d.ts +1 -1
  594. package/lib/icons/CalendarOutlined.d.ts +1 -1
  595. package/lib/icons/CaretDownFilled.d.ts +1 -1
  596. package/lib/icons/CaretUpFilled.d.ts +1 -1
  597. package/lib/icons/CheckCircleFilled.d.ts +1 -1
  598. package/lib/icons/CheckCircleOutlined.d.ts +1 -1
  599. package/lib/icons/CheckOutlined.d.ts +1 -1
  600. package/lib/icons/CityOutlined.d.ts +1 -1
  601. package/lib/icons/ClockCircleOutlined.d.ts +1 -1
  602. package/lib/icons/CloseCircleFilled.d.ts +1 -1
  603. package/lib/icons/CloseCircleOutlined.d.ts +1 -1
  604. package/lib/icons/CloseOutlined.d.ts +1 -1
  605. package/lib/icons/CloudUploadOutlined.d.ts +1 -1
  606. package/lib/icons/ClusterOutlined.d.ts +1 -1
  607. package/lib/icons/CodeOutlined.d.ts +1 -1
  608. package/lib/icons/ColumnHeightOutlined.d.ts +1 -1
  609. package/lib/icons/CompassOutlined.d.ts +1 -1
  610. package/lib/icons/CompressOutlined.d.ts +1 -1
  611. package/lib/icons/ConnectionOutlined.d.ts +1 -1
  612. package/lib/icons/ControlOutlined.d.ts +1 -1
  613. package/lib/icons/CopyOutlined.d.ts +1 -1
  614. package/lib/icons/CpuOutlined.d.ts +1 -1
  615. package/lib/icons/DashboardOutlined.d.ts +1 -1
  616. package/lib/icons/DatabaseOutlined.d.ts +1 -1
  617. package/lib/icons/DeleteOutlined.d.ts +1 -1
  618. package/lib/icons/DesktopOutlined.d.ts +1 -1
  619. package/lib/icons/DownloadOutlined.d.ts +1 -1
  620. package/lib/icons/DragOutlined.d.ts +1 -1
  621. package/lib/icons/EditOutlined.d.ts +1 -1
  622. package/lib/icons/EllipsisOutlined.d.ts +1 -1
  623. package/lib/icons/EnvironmentOutlined.d.ts +1 -1
  624. package/lib/icons/ExclamationCircleFilled.d.ts +1 -1
  625. package/lib/icons/ExpandOutlined.d.ts +1 -1
  626. package/lib/icons/FileOutlined.d.ts +1 -1
  627. package/lib/icons/FilterFilled.d.ts +1 -1
  628. package/lib/icons/FolderAddOutlined.d.ts +1 -1
  629. package/lib/icons/FolderOutlined.d.ts +1 -1
  630. package/lib/icons/FormOutlined.d.ts +1 -1
  631. package/lib/icons/FullscreenExitOutlined.d.ts +1 -1
  632. package/lib/icons/FullscreenOutlined.d.ts +1 -1
  633. package/lib/icons/FundOutlined.d.ts +1 -1
  634. package/lib/icons/GlobalOutlined.d.ts +1 -1
  635. package/lib/icons/HolderOutlined.d.ts +1 -1
  636. package/lib/icons/HomeOutlined.d.ts +1 -1
  637. package/lib/icons/IdcardOutlined.d.ts +1 -1
  638. package/lib/icons/InfoCircleFilled.d.ts +1 -1
  639. package/lib/icons/LinkOutlined.d.ts +1 -1
  640. package/lib/icons/LoadingDotOutlined.d.ts +1 -1
  641. package/lib/icons/LoadingOutlined.d.ts +1 -1
  642. package/lib/icons/LockOutlined.d.ts +1 -1
  643. package/lib/icons/LogOutlined.d.ts +1 -1
  644. package/lib/icons/LogoutOutlined.d.ts +1 -1
  645. package/lib/icons/MailOutlined.d.ts +1 -1
  646. package/lib/icons/MenuFoldOutlined.d.ts +1 -1
  647. package/lib/icons/MenuUnfoldOutlined.d.ts +1 -1
  648. package/lib/icons/MessageOutlined.d.ts +1 -1
  649. package/lib/icons/MinusCircleOutlined.d.ts +1 -1
  650. package/lib/icons/MobileOutlined.d.ts +1 -1
  651. package/lib/icons/MoonOutlined.d.ts +1 -1
  652. package/lib/icons/MoreOutlined.d.ts +1 -1
  653. package/lib/icons/PauseFilled.d.ts +1 -1
  654. package/lib/icons/PieChartOutlined.d.ts +1 -1
  655. package/lib/icons/PlayFilled.d.ts +1 -1
  656. package/lib/icons/PlusCircleOutlined.d.ts +1 -1
  657. package/lib/icons/PlusOutlined.d.ts +1 -1
  658. package/lib/icons/PrinterOutlined.d.ts +1 -1
  659. package/lib/icons/ProtectOutlined.d.ts +1 -1
  660. package/lib/icons/QuestionCircleFilled.d.ts +1 -1
  661. package/lib/icons/QuestionCircleOutlined.d.ts +1 -1
  662. package/lib/icons/ReloadOutlined.d.ts +1 -1
  663. package/lib/icons/ResizeOutlined.cjs +29 -0
  664. package/lib/icons/ResizeOutlined.d.ts +2 -0
  665. package/lib/icons/SearchOutlined.d.ts +1 -1
  666. package/lib/icons/SettingOutlined.d.ts +1 -1
  667. package/lib/icons/ShoppingOutlined.d.ts +1 -1
  668. package/lib/icons/SortOutlined.d.ts +1 -1
  669. package/lib/icons/StarFilled.d.ts +1 -1
  670. package/lib/icons/StepBackwardFilled.d.ts +1 -1
  671. package/lib/icons/StepForwardFilled.d.ts +1 -1
  672. package/lib/icons/SuitcaseOutlined.d.ts +1 -1
  673. package/lib/icons/SunOutlined.d.ts +1 -1
  674. package/lib/icons/SwapOutlined.d.ts +1 -1
  675. package/lib/icons/SyncOutlined.d.ts +1 -1
  676. package/lib/icons/TableOutlined.d.ts +1 -1
  677. package/lib/icons/TagOutlined.d.ts +1 -1
  678. package/lib/icons/TimerOutlined.d.ts +1 -1
  679. package/lib/icons/UndoOutlined.d.ts +1 -1
  680. package/lib/icons/UnlockOutlined.d.ts +1 -1
  681. package/lib/icons/UploadOutlined.d.ts +1 -1
  682. package/lib/icons/UserOutlined.d.ts +1 -1
  683. package/lib/icons/VerticalAlignMiddleOutlined.d.ts +1 -1
  684. package/lib/icons/VerticalLeftOutlined.d.ts +1 -1
  685. package/lib/icons/VerticalRightOutlined.d.ts +1 -1
  686. package/lib/icons/WarningOutlined.d.ts +1 -1
  687. package/lib/icons/ZoomInOutlined.d.ts +1 -1
  688. package/lib/icons/ZoomOutOutlined.d.ts +1 -1
  689. package/lib/icons/index.cjs +2 -0
  690. package/lib/icons/index.d.ts +1 -0
  691. package/lib/installer.d.ts +2 -2
  692. package/lib/lang/en_US.d.ts +2 -2
  693. package/lib/lang/zh_CN.d.ts +2 -2
  694. package/lib/lang/zh_TW.d.ts +2 -2
  695. package/lib/style/nprogress.scss +1 -0
  696. package/lib/style/themes/dark.scss +9 -15
  697. package/lib/style/themes/default.scss +58 -81
  698. package/lib/style/themes/rounded.scss +16 -30
  699. package/lib/utils/menu-util.cjs +1 -4
  700. package/lib/utils/menu-util.d.ts +3 -2
  701. package/lib/utils/message.d.ts +4 -3
  702. package/lib/utils/resolvers.d.ts +2 -2
  703. package/package.json +23 -22
@@ -39,72 +39,69 @@
39
39
  }
40
40
  }
41
41
  }
42
+ }
42
43
 
43
- /* header */
44
- .ele-modal-header {
45
- display: flex;
46
- align-items: center;
47
- box-sizing: border-box;
48
- padding: eleVar('modal', 'header-padding');
49
- border-bottom: eleVar('modal', 'header-border');
50
- }
44
+ /* header */
45
+ .ele-modal-header {
46
+ display: flex;
47
+ align-items: center;
48
+ box-sizing: border-box;
49
+ padding: eleVar('modal', 'header-padding');
50
+ border-bottom: eleVar('modal', 'header-border');
51
+ }
51
52
 
52
- .ele-modal-title {
53
- flex: 1;
54
- color: eleVar('modal', 'header-color');
55
- font-size: eleVar('modal', 'header-font-size');
56
- line-height: eleVar('modal', 'header-line-height');
57
- font-weight: eleVar('modal', 'header-font-weight');
58
- box-sizing: border-box;
59
- }
53
+ .ele-modal-title {
54
+ flex: 1;
55
+ color: eleVar('modal', 'header-color');
56
+ font-size: eleVar('modal', 'header-font-size');
57
+ line-height: eleVar('modal', 'header-line-height');
58
+ font-weight: eleVar('modal', 'header-font-weight');
59
+ box-sizing: border-box;
60
+ }
60
61
 
61
- /* 图标按钮 */
62
- .ele-modal-tool {
63
- flex-shrink: 0;
64
- display: flex;
65
- align-items: center;
66
- justify-content: center;
67
- width: eleVar('modal', 'icon-size');
68
- height: eleVar('modal', 'icon-size');
69
- line-height: eleVar('modal', 'icon-size');
70
- color: eleVar('modal', 'icon-color');
71
- font-size: eleVar('modal', 'icon-font-size');
72
- border-radius: eleVar('modal', 'icon-radius');
73
- transition: (color $ele-transition, background-color $ele-transition);
74
- box-sizing: border-box;
75
- cursor: pointer;
76
-
77
- &:hover {
78
- color: eleVar('modal', 'icon-hover-color');
79
- background: eleVar('modal', 'icon-hover-bg');
80
- }
62
+ /* 图标按钮 */
63
+ .ele-modal-tool {
64
+ flex-shrink: 0;
65
+ display: flex;
66
+ align-items: center;
67
+ justify-content: center;
68
+ width: eleVar('modal', 'icon-size');
69
+ height: eleVar('modal', 'icon-size');
70
+ line-height: eleVar('modal', 'icon-size');
71
+ color: eleVar('modal', 'icon-color');
72
+ font-size: eleVar('modal', 'icon-font-size');
73
+ border-radius: eleVar('modal', 'icon-radius');
74
+ transition: (color $ele-transition, background-color $ele-transition);
75
+ box-sizing: border-box;
76
+ cursor: pointer;
81
77
 
82
- & + .ele-modal-tool {
83
- margin-left: eleVar('modal', 'icon-space');
84
- }
78
+ &:hover {
79
+ color: eleVar('modal', 'icon-hover-color');
80
+ background: eleVar('modal', 'icon-hover-bg');
85
81
  }
86
82
 
87
- /* body */
88
- .ele-modal-body {
89
- padding: eleVar('modal', 'body-padding');
90
- box-sizing: border-box;
83
+ & + .ele-modal-tool {
84
+ margin-left: eleVar('modal', 'icon-space');
91
85
  }
86
+ }
92
87
 
93
- /* footer */
94
- .ele-modal-footer {
95
- padding: eleVar('modal', 'footer-padding');
96
- border-top: eleVar('modal', 'footer-border');
97
- box-sizing: border-box;
98
- }
88
+ /* body */
89
+ .ele-modal-body {
90
+ padding: eleVar('modal', 'body-padding');
91
+ box-sizing: border-box;
99
92
 
100
- /* 表单弹窗 */
101
- &.ele-modal-form > .el-overlay-dialog > .el-dialog > .el-dialog__body {
102
- & > .ele-modal-body {
103
- padding: eleVar('modal', 'form-body-padding');
104
- }
93
+ &.is-form {
94
+ padding: eleVar('modal', 'form-body-padding');
105
95
  }
106
96
  }
107
97
 
98
+ /* footer */
99
+ .ele-modal-footer {
100
+ padding: eleVar('modal', 'footer-padding');
101
+ border-top: eleVar('modal', 'footer-border');
102
+ box-sizing: border-box;
103
+ }
104
+
108
105
  /* 默认位置 */
109
106
  .ele-modal-top > .el-overlay-dialog > .el-dialog {
110
107
  margin: 0;
@@ -149,26 +146,24 @@
149
146
  }
150
147
 
151
148
  /* 支持拉伸 */
152
- .ele-modal-resizable > .el-overlay-dialog > .el-dialog::after {
153
- content: '';
149
+ .ele-modal-resize-icon {
154
150
  position: absolute;
155
- right: 0;
156
- bottom: 0;
157
- width: 12px;
158
- height: 12px;
151
+ right: 2px;
152
+ bottom: 2px;
153
+ display: flex;
154
+ align-items: center;
155
+ justify-content: center;
156
+ color: eleVar('modal', 'icon-color');
157
+ font-size: 12px;
159
158
  cursor: se-resize;
160
- background-image: eleVar('modal', 'resize-bg');
161
- background-position: 0 0;
162
- background-size: 10px 10px;
163
- background-repeat: no-repeat;
164
- }
165
159
 
166
- .ele-modal-resizable-horizontal > .el-overlay-dialog > .el-dialog::after {
167
- cursor: e-resize;
168
- }
160
+ &.is-horizontal {
161
+ cursor: e-resize;
162
+ }
169
163
 
170
- .ele-modal-resizable-vertical > .el-overlay-dialog > .el-dialog::after {
171
- cursor: s-resize;
164
+ &.is-vertical {
165
+ cursor: s-resize;
166
+ }
172
167
  }
173
168
 
174
169
  .ele-modal-resizable > .el-overlay-dialog > .el-dialog,
@@ -190,35 +185,36 @@
190
185
  width: 100% !important;
191
186
  height: 100% !important;
192
187
  display: flex !important;
193
- max-width: inherit !important;
194
- min-width: inherit !important;
195
- max-height: inherit !important;
196
- min-height: inherit !important;
197
- border: eleVar('modal', 'fullscreen-border');
198
- border-radius: 0;
188
+ max-width: none !important;
189
+ min-width: auto !important;
190
+ max-height: none !important;
191
+ min-height: auto !important;
192
+ border-radius: 0 !important;
199
193
 
200
194
  & > .el-dialog__header {
201
- cursor: default !important;
202
- }
195
+ cursor: default;
203
196
 
204
- &::after {
205
- display: none;
197
+ & > .ele-modal-resize-icon {
198
+ display: none;
199
+ }
206
200
  }
207
201
  }
208
202
 
209
- /* 支持打开多个 */
210
- #ele-modal-container {
203
+ /* 同时打开多个 */
204
+ .ele-modal-container {
211
205
  position: absolute;
212
206
  top: 0;
213
207
  left: 0;
214
208
  right: 0;
215
209
  bottom: 0;
210
+ width: 100%;
211
+ height: 100%;
216
212
  pointer-events: none;
217
213
  z-index: elVar('index', 'popper');
218
214
  }
219
215
 
220
216
  .ele-modal-multiple {
221
- pointer-events: none;
217
+ pointer-events: none !important;
222
218
  position: absolute !important;
223
219
 
224
220
  & > .el-overlay-dialog {
@@ -236,70 +232,13 @@
236
232
  display: none !important;
237
233
  }
238
234
 
239
- /* 移动端 */
235
+ /* 最大宽度适应屏幕 */
240
236
  .ele-modal-responsive > .el-overlay-dialog > .el-dialog {
241
- max-width: calc(100vw - #{eleVar('modal', 'mobile-space')} * 2);
237
+ max-width: calc(100% - #{eleVar('modal', 'mobile-space')} * 2);
242
238
  }
243
239
 
244
- /* 限制在内部并适配布局状态 */
245
- .ele-modal-inner {
246
- &.ele-modal {
247
- top: eleVar('header', 'height', 0);
248
- left: eleVar('sidebar', 'width', 0);
249
- }
250
-
251
- &:not(.dialog-fade-leave-active):not(.dialog-fade-enter-active) {
252
- transition: (width $ele-transition, left $ele-transition);
253
- }
254
-
255
- &.ele-state-has-tab {
256
- top: calc(#{eleVar('header', 'height')} + #{eleVar('tab', 'height')});
257
- }
258
-
259
- &.ele-state-collapse {
260
- left: eleVar('sidebar', 'collapse-width');
261
- }
262
-
263
- &.ele-state-mix-sidebar {
264
- $box-width: eleVar('sidebox', 'width');
265
- left: calc(#{$box-width} + #{eleVar('sidebar', 'mix-width')});
266
-
267
- &.ele-state-collapse {
268
- left: $box-width;
269
- }
270
-
271
- &.ele-state-single-sidebar {
272
- left: $box-width;
273
- }
274
- }
275
-
276
- &.ele-state-compact {
277
- $collapse-width: eleVar('sidebar', 'collapse-width');
278
- left: calc(#{$collapse-width} + #{eleVar('sidebar', 'mix-width')});
279
-
280
- &.ele-state-single-sidebar {
281
- left: $collapse-width;
282
- }
283
-
284
- &.ele-state-collapse {
285
- left: $collapse-width;
286
- }
287
- }
288
-
289
- &.ele-state-top-layout {
290
- left: 0;
291
- }
292
-
293
- &.ele-state-maximized {
294
- top: eleVar('tab', 'height');
295
- left: 0 !important;
296
- }
297
-
298
- &.ele-state-expanded {
299
- top: 0 !important;
300
- }
301
-
302
- &.ele-state-mobile {
303
- left: 0 !important;
304
- }
240
+ /* 限制在主体区域 */
241
+ .ele-admin-modals > .ele-modal {
242
+ pointer-events: auto;
243
+ position: absolute !important;
305
244
  }
@@ -1,70 +1,45 @@
1
- import type { Resizable, PositionObject, MoveOut } from './types';
2
- import type { ModalProps } from './props';
1
+ import { ModalProps } from './props';
2
+ import { Position } from './types';
3
+
4
+ export declare const containerClass = "ele-modal-container";
3
5
  export declare const wrapperClass = "ele-modal";
4
- export declare const containerId = "ele-modal-container";
5
- export declare const movableClass = "ele-modal-movable";
6
- export declare const resizableClass = "ele-modal-resizable";
7
- export declare const multipleClass = "ele-modal-multiple";
8
- export declare const fullscreenClass = "ele-modal-fullscreen";
9
- export declare const innerClass = "ele-modal-inner";
10
- export declare const responsiveClass = "ele-modal-responsive";
11
6
  export declare const closedClass = "ele-modal-closed";
12
- export declare const hideClass = "ele-modal-hide";
13
- export declare const collapseClass = "ele-state-collapse";
14
- export declare const compactClass = "ele-state-compact";
15
- export declare const maximizedClass = "ele-state-maximized";
16
- export declare const hasTabClass = "ele-state-has-tab";
17
- export declare const mixSidebarClass = "ele-state-mix-sidebar";
18
- export declare const singleSidebarClass = "ele-state-single-sidebar";
19
- export declare const topLayoutClass = "ele-state-top-layout";
20
- export declare const expandedClass = "ele-state-expanded";
21
- export declare const mobileClass = "ele-state-mobile";
22
7
  /**
23
- * 创建并获取弹窗容器
8
+ * 获取弹窗容器
9
+ * @param inner 是否限制在主体内部
24
10
  * @param multiple 是否支持同时打开多个
25
- * @param appendTo 自定义插入的位置
11
+ * @param appendTo 自定义插入的容器
12
+ * @param modalsEl 限制在主体内部时的容器
26
13
  */
27
- export declare function getModalContainer(multiple?: boolean, appendTo?: string): Element | string;
14
+ export declare function getModalContainer(inner?: boolean, multiple?: boolean, appendTo?: string, modalsEl?: HTMLElement | null): Element | string;
28
15
  /**
29
16
  * 弹窗移动事件处理
17
+ * @param modalEl 弹窗节点
30
18
  * @param event 事件
31
19
  * @param props 属性
32
20
  */
33
- export declare function handleMovable(event: MouseEvent, props: ModalProps): void;
21
+ export declare function handleMove(modalEl: HTMLElement, event: MouseEvent, props: ModalProps): void;
34
22
  /**
35
23
  * 弹窗拉伸事件处理
36
24
  * @param event 事件
37
25
  * @param props 属性
38
26
  */
39
- export declare function handleResizable(event: MouseEvent, props: ModalProps): void;
27
+ export declare function handleResize(modalEl: HTMLElement, event: MouseEvent, props: ModalProps): void;
40
28
  /**
41
29
  * 置顶弹窗
42
- * @param modalEl 弹窗节点
30
+ * @param modalEl 弹窗
43
31
  * @param zIndex 弹窗初始层级
44
- * @returns
45
32
  */
46
- export declare function setModalTop(modalEl?: HTMLElement, zIndex?: number): void;
33
+ export declare function topModal(modalEl?: HTMLElement, zIndex?: number): void;
47
34
  /**
48
- * 重置弹窗位置及大小
49
- * @param modalEl 弹窗节点
50
- * @param width 初始宽度
51
- * @param top 初始顶部距离
52
- */
53
- export declare function resetModalStyle(modalEl?: HTMLElement, width?: string | number, top?: string | number): void;
54
- /**
55
- * 设置弹窗位置
56
- * @param modalEl 弹窗节点
35
+ * 获取位置对应的外间距值
57
36
  * @param position 位置
58
- * @param resizable 是否可以拉伸
59
- * @param moveOut 是否可以拉出容器
60
37
  */
61
- export declare function setModalPosition(modalEl?: HTMLElement, resizable?: Resizable, position?: PositionObject, moveOut?: MoveOut): void;
38
+ export declare function getPositionMargin(position?: Position): string | undefined;
62
39
  /**
63
- * 设置弹窗初始位置
40
+ * 重置弹窗位置及大小
64
41
  * @param modalEl 弹窗节点
65
- * @param position 位置
66
- * @param resizable 是否可以拉伸
67
- * @param moveOut 是否可以拉出容器
68
- * @param force 是否强制更新
42
+ * @param width 初始宽度
43
+ * @param top 初始顶部距离
69
44
  */
70
- export declare function setInitPosition(modalEl?: HTMLElement, resizable?: Resizable, position?: PositionObject, moveOut?: MoveOut, force?: boolean): void;
45
+ export declare function resetModalStyle(modalEl?: HTMLElement, width?: string | number, position?: Position): void;
@@ -1,102 +1,49 @@
1
1
  import { getCurrentStyle } from "../utils/core";
2
- const titleClass = "ele-modal-title";
3
- const headerClass = "ele-modal-header";
2
+ const containerClass = "ele-modal-container";
4
3
  const wrapperClass = "ele-modal";
5
- const containerId = "ele-modal-container";
6
- const movableClass = "ele-modal-movable";
7
- const resizableClass = "ele-modal-resizable";
8
- const multipleClass = "ele-modal-multiple";
9
- const fullscreenClass = "ele-modal-fullscreen";
10
- const innerClass = "ele-modal-inner";
11
- const responsiveClass = "ele-modal-responsive";
12
4
  const closedClass = "ele-modal-closed";
13
- const hideClass = "ele-modal-hide";
14
- const collapseClass = "ele-state-collapse";
15
- const compactClass = "ele-state-compact";
16
- const maximizedClass = "ele-state-maximized";
17
- const hasTabClass = "ele-state-has-tab";
18
- const mixSidebarClass = "ele-state-mix-sidebar";
19
- const singleSidebarClass = "ele-state-single-sidebar";
20
- const topLayoutClass = "ele-state-top-layout";
21
- const expandedClass = "ele-state-expanded";
22
- const mobileClass = "ele-state-mobile";
23
5
  const fixTop = 0.65;
24
6
  const fixLeft = 0.65;
25
- function initModalStyle(modalEl, resizable) {
7
+ function initModalStyle(modalEl) {
26
8
  modalEl.style.top = modalEl.offsetTop + "px";
27
9
  modalEl.style.left = modalEl.offsetLeft + "px";
28
- modalEl.style.bottom = "auto";
29
10
  modalEl.style.right = "auto";
30
- modalEl.style.margin = "0";
11
+ modalEl.style.bottom = "auto";
31
12
  modalEl.style.position = "absolute";
32
- modalEl.style.display = resizable ? "inline-flex" : "inline-block";
33
- modalEl.style.verticalAlign = "top";
34
- }
35
- function getModalContainer(multiple, appendTo) {
36
- if (!multiple) {
37
- return appendTo || "body";
38
- }
39
- const container = document.getElementById(containerId);
40
- if (container) {
41
- return container;
42
- }
43
- const elem = document.createElement("div");
44
- elem.id = containerId;
45
- document.body.appendChild(elem);
46
- return elem;
47
- }
48
- function getVisibleModals() {
49
- const el = getModalContainer(true);
50
- const modals = el.querySelectorAll(`.${wrapperClass}:not(.${closedClass})`);
51
- return modals ? Array.from(modals) : [];
52
- }
53
- function getModalMaxIndex(el) {
54
- const modals = getVisibleModals();
55
- let maxIndex = 0;
56
- modals.forEach((modalEl) => {
57
- const zIndex = getCurrentStyle(modalEl).zIndex;
58
- if (zIndex != null) {
59
- const index = Number(zIndex);
60
- if (index >= maxIndex && (!el || modalEl !== el)) {
61
- maxIndex = index + 1;
62
- }
63
- }
64
- });
65
- return maxIndex;
13
+ modalEl.style.margin = "0";
66
14
  }
67
15
  function canMoveOut(moveOut, direction) {
68
- if (direction && moveOut != null && typeof moveOut === "object" && typeof moveOut.includes === "function") {
16
+ if (direction && moveOut != null && Array.isArray(moveOut)) {
69
17
  return moveOut.includes(direction);
70
18
  }
71
19
  return false;
72
20
  }
73
- function handleMovable(event, props) {
74
- var _a;
75
- if (!props.draggable) {
76
- return;
21
+ function getModalContainer(inner, multiple, appendTo, modalsEl) {
22
+ if (multiple) {
23
+ const parent = (inner ? modalsEl : void 0) || document.body;
24
+ const wrapper = Array.from(parent.children).find(
25
+ (el) => el.classList.contains(containerClass)
26
+ );
27
+ if (wrapper) {
28
+ return wrapper;
29
+ }
30
+ const elem = document.createElement("div");
31
+ elem.classList.add(containerClass);
32
+ parent.appendChild(elem);
33
+ return elem;
77
34
  }
78
- const modalEl = event.currentTarget;
79
- if (!modalEl) {
80
- return;
35
+ if (inner && modalsEl) {
36
+ return modalsEl;
81
37
  }
38
+ return appendTo || "body";
39
+ }
40
+ function handleMove(modalEl, event, props) {
82
41
  const wrapEl = modalEl.parentElement;
83
42
  if (!wrapEl) {
84
43
  return;
85
44
  }
86
- const headerEl = modalEl.querySelector("." + headerClass);
87
- if (!headerEl) {
88
- return;
89
- }
90
- const titleEl = headerEl.querySelector("." + titleClass);
91
- if (!titleEl || event.target !== headerEl && event.target !== titleEl) {
92
- return;
93
- }
94
- const modalClass = (_a = wrapEl.parentElement) == null ? void 0 : _a.classList;
95
- if (modalClass && modalClass.contains(fullscreenClass)) {
96
- return;
97
- }
98
45
  modalEl.style.userSelect = "none";
99
- initModalStyle(modalEl, props.resizable);
46
+ initModalStyle(modalEl);
100
47
  const downX = event.clientX;
101
48
  const downY = event.clientY;
102
49
  const downOL = modalEl.offsetLeft;
@@ -153,32 +100,13 @@ function handleMovable(event, props) {
153
100
  document.addEventListener("mousemove", mousemoveFn);
154
101
  document.addEventListener("mouseup", mouseupFn);
155
102
  }
156
- function handleResizable(event, props) {
157
- if (!props.resizable) {
158
- return;
159
- }
160
- const modalEl = event.currentTarget;
161
- if (!modalEl) {
162
- return;
163
- }
103
+ function handleResize(modalEl, event, props) {
164
104
  const wrapEl = modalEl.parentElement;
165
105
  if (!wrapEl) {
166
106
  return;
167
107
  }
168
- const overlayEl = wrapEl.parentElement;
169
- if (!overlayEl) {
170
- return;
171
- }
172
- if (overlayEl.classList.contains(fullscreenClass)) {
173
- return;
174
- }
175
- const limitX = modalEl.clientWidth + modalEl.offsetLeft - wrapEl.scrollLeft + overlayEl.offsetLeft;
176
- const limitY = modalEl.clientHeight + modalEl.offsetTop - wrapEl.scrollTop + overlayEl.offsetTop;
177
- if (event.clientX > limitX || limitX - event.clientX > 12 || event.clientY > limitY || limitY - event.clientY > 12) {
178
- return;
179
- }
180
108
  modalEl.style.userSelect = "none";
181
- initModalStyle(modalEl, true);
109
+ initModalStyle(modalEl);
182
110
  const downX = event.clientX;
183
111
  const downY = event.clientY;
184
112
  const downW = modalEl.clientWidth;
@@ -209,34 +137,45 @@ function handleResizable(event, props) {
209
137
  document.addEventListener("mousemove", mousemoveFn);
210
138
  document.addEventListener("mouseup", mouseupFn);
211
139
  }
212
- function setModalTop(modalEl, zIndex) {
140
+ function topModal(modalEl, zIndex) {
213
141
  var _a;
214
- if (!modalEl) {
215
- return;
216
- }
217
- const overlayEl = (_a = modalEl.parentElement) == null ? void 0 : _a.parentElement;
218
- if (!overlayEl || !overlayEl.classList || !overlayEl.classList.contains(multipleClass)) {
142
+ const overlayEl = (_a = modalEl == null ? void 0 : modalEl.parentElement) == null ? void 0 : _a.parentElement;
143
+ if (!overlayEl) {
219
144
  return;
220
145
  }
221
146
  const currentIndex = getCurrentStyle(overlayEl).zIndex;
222
- const maxIndex = getModalMaxIndex(overlayEl);
147
+ const containerEl = overlayEl.parentElement;
148
+ const modals = containerEl ? containerEl.querySelectorAll(`.${wrapperClass}:not(.${closedClass})`) : void 0;
149
+ let maxIndex = 0;
150
+ (modals ? Array.from(modals) : []).forEach((modalEl2) => {
151
+ const zIndex2 = getCurrentStyle(modalEl2).zIndex;
152
+ if (zIndex2 != null) {
153
+ const index = Number(zIndex2);
154
+ if (index >= maxIndex && (!overlayEl || modalEl2 !== overlayEl)) {
155
+ maxIndex = index + 1;
156
+ }
157
+ }
158
+ });
223
159
  if (maxIndex > Number(currentIndex || zIndex || 0)) {
224
160
  overlayEl.style.zIndex = String(maxIndex);
225
161
  }
226
162
  }
227
- function resetModalStyle(modalEl, width, top) {
163
+ function getPositionMargin(position) {
164
+ if (position == null || typeof position !== "object" || position.top == null && position.right == null && position.bottom == null && position.left == null) {
165
+ return;
166
+ }
167
+ return [position.top, position.right, position.bottom, position.left].map((p) => typeof p === "number" ? `${p}px` : p || "auto").join(" ");
168
+ }
169
+ function resetModalStyle(modalEl, width, position) {
228
170
  if (!modalEl) {
229
171
  return;
230
172
  }
173
+ modalEl.style.margin = getPositionMargin(position) || "";
174
+ modalEl.style.position = "";
231
175
  modalEl.style.top = "";
232
176
  modalEl.style.left = "";
233
177
  modalEl.style.right = "";
234
178
  modalEl.style.bottom = "";
235
- modalEl.style.margin = "";
236
- modalEl.style.marginTop = typeof top === "number" ? `${top}px` : top ?? "";
237
- modalEl.style.display = "";
238
- modalEl.style.position = "";
239
- modalEl.style.verticalAlign = "";
240
179
  modalEl.style.height = "";
241
180
  modalEl.style.maxHeight = "";
242
181
  modalEl.style.minHeight = "";
@@ -244,77 +183,14 @@ function resetModalStyle(modalEl, width, top) {
244
183
  modalEl.style.maxWidth = "";
245
184
  modalEl.style.minWidth = "";
246
185
  }
247
- function setModalPosition(modalEl, resizable, position, moveOut) {
248
- if (!position || typeof position !== "object" || !modalEl) {
249
- return;
250
- }
251
- const wrapEl = modalEl.parentElement;
252
- if (!wrapEl) {
253
- return;
254
- }
255
- initModalStyle(modalEl, resizable);
256
- const location = {};
257
- const canOutB = canMoveOut(moveOut, "bottom");
258
- const canOutR = canMoveOut(moveOut, "right");
259
- const t = wrapEl.clientHeight - modalEl.clientHeight - (canOutB ? 0 : fixTop);
260
- const maxTop = t < 0 ? 0 : t;
261
- const l = wrapEl.clientWidth - modalEl.clientWidth - (canOutR ? 0 : fixLeft);
262
- const maxLeft = l < 0 ? 0 : l;
263
- if (position.top != null) {
264
- location.top = position.top;
265
- } else if (position.bottom != null) {
266
- location.bottom = position.bottom;
267
- } else if (position.left != null || position.right != null) {
268
- location.top = maxTop / 2;
269
- }
270
- if (position.left != null) {
271
- location.left = position.left;
272
- } else if (position.right != null) {
273
- location.right = position.right;
274
- } else if (position.top != null || position.bottom != null) {
275
- location.left = maxLeft / 2;
276
- }
277
- Object.keys(location).forEach((key) => {
278
- const value = location[key];
279
- if (typeof value === "number") {
280
- modalEl.style[key] = `${Math.floor(value)}px`;
281
- } else if (value != null) {
282
- modalEl.style[key] = value;
283
- }
284
- });
285
- }
286
- function setInitPosition(modalEl, resizable, position, moveOut, force) {
287
- const attr = "ele-position";
288
- if (modalEl && position && (force || !modalEl.getAttribute(attr))) {
289
- modalEl.setAttribute(attr, "1");
290
- setModalPosition(modalEl, resizable, position, moveOut);
291
- }
292
- }
293
186
  export {
294
187
  closedClass,
295
- collapseClass,
296
- compactClass,
297
- containerId,
298
- expandedClass,
299
- fullscreenClass,
188
+ containerClass,
300
189
  getModalContainer,
301
- handleMovable,
302
- handleResizable,
303
- hasTabClass,
304
- hideClass,
305
- innerClass,
306
- maximizedClass,
307
- mixSidebarClass,
308
- mobileClass,
309
- movableClass,
310
- multipleClass,
190
+ getPositionMargin,
191
+ handleMove,
192
+ handleResize,
311
193
  resetModalStyle,
312
- resizableClass,
313
- responsiveClass,
314
- setInitPosition,
315
- setModalPosition,
316
- setModalTop,
317
- singleSidebarClass,
318
- topLayoutClass,
194
+ topModal,
319
195
  wrapperClass
320
196
  };