ele-admin-plus 1.1.3 → 1.1.4-beta.2

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 (284) hide show
  1. package/es/ele-alert/index.d.ts +10 -10
  2. package/es/ele-alert/props.d.ts +6 -6
  3. package/es/ele-app/style/message.scss +1 -0
  4. package/es/ele-app/style/overwrite.scss +84 -3
  5. package/es/ele-app/types/index.d.ts +7 -6
  6. package/es/ele-avatar-group/index.d.ts +7 -8
  7. package/es/ele-avatar-group/props.d.ts +3 -4
  8. package/es/ele-basic-select/style/index.scss +4 -6
  9. package/es/ele-bottom-bar/index.d.ts +4 -4
  10. package/es/ele-bottom-bar/props.d.ts +2 -3
  11. package/es/ele-card/index.d.ts +6 -6
  12. package/es/ele-card/props.d.ts +3 -4
  13. package/es/ele-check-card/components/card-item.d.ts +2 -3
  14. package/es/ele-check-card/index.d.ts +4 -4
  15. package/es/ele-check-card/props.d.ts +3 -3
  16. package/es/ele-config-provider/receiver.d.ts +1 -1
  17. package/es/ele-config-provider/receiver.js +29 -29
  18. package/es/ele-copyable/index.d.ts +8 -8
  19. package/es/ele-copyable/index.js +5 -4
  20. package/es/ele-copyable/props.d.ts +5 -5
  21. package/es/ele-copyable/style/index.scss +4 -0
  22. package/es/ele-count-up/index.d.ts +2 -2
  23. package/es/ele-count-up/index.js +2 -1
  24. package/es/ele-count-up/props.d.ts +1 -1
  25. package/es/ele-cropper/index.js +2 -2
  26. package/es/ele-dashboard/index.d.ts +1 -2
  27. package/es/ele-drawer/index.d.ts +16 -10
  28. package/es/ele-drawer/props.d.ts +7 -6
  29. package/es/ele-dropdown/index.d.ts +2 -2
  30. package/es/ele-dropdown/props.d.ts +1 -2
  31. package/es/ele-edit-tag/index.d.ts +4 -4
  32. package/es/ele-edit-tag/props.d.ts +2 -3
  33. package/es/ele-ellipsis/index.d.ts +4 -5
  34. package/es/ele-ellipsis/props.d.ts +1 -1
  35. package/es/ele-ellipsis/style/index.scss +4 -0
  36. package/es/ele-file-list/index.d.ts +2 -7
  37. package/es/ele-file-list/index.js +2 -2
  38. package/es/ele-file-list/types/index.d.ts +0 -4
  39. package/es/ele-icon-select/components/icon-grid.d.ts +5 -5
  40. package/es/ele-icon-select/components/icon-popper.d.ts +15 -15
  41. package/es/ele-icon-select/index.d.ts +15 -16
  42. package/es/ele-icon-select/props.d.ts +8 -8
  43. package/es/ele-loading/index.d.ts +26 -1
  44. package/es/ele-loading/index.js +53 -11
  45. package/es/ele-loading/props.d.ts +11 -1
  46. package/es/ele-loading/props.js +16 -1
  47. package/es/ele-loading/style/css-var.scss +7 -0
  48. package/es/ele-loading/style/index.js +1 -0
  49. package/es/ele-loading/style/index.scss +90 -0
  50. package/es/ele-loading/types/index.d.ts +17 -0
  51. package/es/ele-map-picker/components/map-view.d.ts +2 -2
  52. package/es/ele-map-picker/index.d.ts +2 -2
  53. package/es/ele-map-picker/props.d.ts +3 -3
  54. package/es/ele-menus/index.d.ts +2 -0
  55. package/es/ele-menus/index.js +11 -5
  56. package/es/ele-menus/props.d.ts +10 -0
  57. package/es/ele-menus/props.js +7 -1
  58. package/es/ele-menus/style/index.scss +18 -18
  59. package/es/ele-menus/types/index.d.ts +4 -0
  60. package/es/ele-menus/util.d.ts +4 -3
  61. package/es/ele-menus/util.js +23 -12
  62. package/es/ele-modal/index.d.ts +19 -13
  63. package/es/ele-modal/props.d.ts +8 -7
  64. package/es/ele-modal/types/index.d.ts +9 -0
  65. package/es/ele-modal/util.js +45 -32
  66. package/es/ele-pagination/index.d.ts +1 -1
  67. package/es/ele-popconfirm/index.d.ts +10 -10
  68. package/es/ele-popconfirm/index.js +8 -2
  69. package/es/ele-popconfirm/props.d.ts +6 -6
  70. package/es/ele-popover/index.d.ts +6 -6
  71. package/es/ele-popover/props.d.ts +3 -4
  72. package/es/ele-printer/index.d.ts +7 -6
  73. package/es/ele-printer/index.js +11 -4
  74. package/es/ele-printer/props.d.ts +3 -4
  75. package/es/ele-pro-layout/components/pro-header.d.ts +7 -2
  76. package/es/ele-pro-layout/components/pro-header.js +15 -5
  77. package/es/ele-pro-layout/components/pro-iframe.js +10 -7
  78. package/es/ele-pro-layout/components/pro-sidebar.d.ts +7 -2
  79. package/es/ele-pro-layout/components/pro-sidebar.js +14 -5
  80. package/es/ele-pro-layout/components/pro-sidebox.d.ts +11 -4
  81. package/es/ele-pro-layout/components/pro-sidebox.js +16 -5
  82. package/es/ele-pro-layout/components/tab-dropdown.js +1 -4
  83. package/es/ele-pro-layout/index.d.ts +17 -3
  84. package/es/ele-pro-layout/index.js +208 -105
  85. package/es/ele-pro-layout/props.d.ts +6 -1
  86. package/es/ele-pro-layout/props.js +10 -0
  87. package/es/ele-pro-layout/style/collapse.scss +9 -10
  88. package/es/ele-pro-layout/style/index.js +0 -1
  89. package/es/ele-pro-layout/style/layout-mobile.scss +1 -0
  90. package/es/ele-pro-layout/types/index.d.ts +9 -0
  91. package/es/ele-pro-layout/util.d.ts +4 -2
  92. package/es/ele-pro-layout/util.js +20 -17
  93. package/es/ele-pro-table/components/table-view.d.ts +9 -3
  94. package/es/ele-pro-table/components/table-view.js +27 -24
  95. package/es/ele-pro-table/components/tool-column.d.ts +2 -1
  96. package/es/ele-pro-table/components/tool-column.js +26 -18
  97. package/es/ele-pro-table/index.d.ts +46 -25
  98. package/es/ele-pro-table/index.js +182 -196
  99. package/es/ele-pro-table/props.d.ts +27 -15
  100. package/es/ele-pro-table/props.js +15 -3
  101. package/es/ele-pro-table/style/index.js +1 -1
  102. package/es/ele-pro-table/style/index.scss +64 -8
  103. package/es/ele-pro-table/types/index.d.ts +39 -5
  104. package/es/ele-pro-table/util.d.ts +84 -49
  105. package/es/ele-pro-table/util.js +193 -78
  106. package/es/ele-qr-code/index.d.ts +3 -3
  107. package/es/ele-qr-code/props.d.ts +1 -2
  108. package/es/ele-qr-code-svg/index.d.ts +3 -3
  109. package/es/ele-split-panel/index.d.ts +6 -6
  110. package/es/ele-split-panel/props.d.ts +3 -4
  111. package/es/ele-table/style/index.scss +1 -0
  112. package/es/ele-tabs/index.js +4 -3
  113. package/es/ele-tabs/types/index.d.ts +3 -0
  114. package/es/ele-text/index.d.ts +3 -3
  115. package/es/ele-text/props.d.ts +2 -2
  116. package/es/ele-toolbar/index.d.ts +6 -6
  117. package/es/ele-toolbar/props.d.ts +3 -4
  118. package/es/ele-tooltip/index.d.ts +3 -3
  119. package/es/ele-tooltip/props.d.ts +1 -2
  120. package/es/ele-tour/index.d.ts +2 -3
  121. package/es/ele-tour/style/index.scss +1 -1
  122. package/es/ele-tour/util.js +3 -3
  123. package/es/ele-upload-list/index.d.ts +8 -7
  124. package/es/ele-upload-list/index.js +18 -11
  125. package/es/ele-upload-list/props.d.ts +4 -4
  126. package/es/ele-upload-list/props.js +1 -1
  127. package/es/ele-watermark/index.d.ts +16 -8
  128. package/es/ele-watermark/index.js +18 -12
  129. package/es/ele-watermark/props.d.ts +3 -1
  130. package/es/ele-watermark/props.js +5 -1
  131. package/es/ele-watermark/util.js +1 -1
  132. package/es/ele-xg-player/index.js +1 -0
  133. package/es/style/index.scss +1 -0
  134. package/es/style/nprogress.scss +2 -2
  135. package/es/style/themes/default.scss +36 -12
  136. package/es/style/themes/rounded.scss +4 -2
  137. package/es/style/themes/theme-util.scss +2 -0
  138. package/es/utils/core.d.ts +1 -1
  139. package/es/utils/core.js +17 -15
  140. package/es/utils/resolvers.js +2 -2
  141. package/lib/ele-alert/index.d.ts +10 -10
  142. package/lib/ele-alert/props.d.ts +6 -6
  143. package/lib/ele-app/style/message.scss +1 -0
  144. package/lib/ele-app/style/overwrite.scss +84 -3
  145. package/lib/ele-app/types/index.d.ts +7 -6
  146. package/lib/ele-avatar-group/index.d.ts +7 -8
  147. package/lib/ele-avatar-group/props.d.ts +3 -4
  148. package/lib/ele-basic-select/style/index.scss +4 -6
  149. package/lib/ele-bottom-bar/index.d.ts +4 -4
  150. package/lib/ele-bottom-bar/props.d.ts +2 -3
  151. package/lib/ele-card/index.d.ts +6 -6
  152. package/lib/ele-card/props.d.ts +3 -4
  153. package/lib/ele-check-card/components/card-item.d.ts +2 -3
  154. package/lib/ele-check-card/index.d.ts +4 -4
  155. package/lib/ele-check-card/props.d.ts +3 -3
  156. package/lib/ele-config-provider/receiver.d.ts +1 -1
  157. package/lib/ele-config-provider/receiver.js +2 -2
  158. package/lib/ele-copyable/index.d.ts +8 -8
  159. package/lib/ele-copyable/index.js +4 -3
  160. package/lib/ele-copyable/props.d.ts +5 -5
  161. package/lib/ele-copyable/style/index.scss +4 -0
  162. package/lib/ele-count-up/index.d.ts +2 -2
  163. package/lib/ele-count-up/index.js +2 -1
  164. package/lib/ele-count-up/props.d.ts +1 -1
  165. package/lib/ele-cropper/index.js +2 -2
  166. package/lib/ele-dashboard/index.d.ts +1 -2
  167. package/lib/ele-drawer/index.d.ts +16 -10
  168. package/lib/ele-drawer/props.d.ts +7 -6
  169. package/lib/ele-dropdown/index.d.ts +2 -2
  170. package/lib/ele-dropdown/props.d.ts +1 -2
  171. package/lib/ele-edit-tag/index.d.ts +4 -4
  172. package/lib/ele-edit-tag/props.d.ts +2 -3
  173. package/lib/ele-ellipsis/index.d.ts +4 -5
  174. package/lib/ele-ellipsis/props.d.ts +1 -1
  175. package/lib/ele-ellipsis/style/index.scss +4 -0
  176. package/lib/ele-file-list/index.d.ts +2 -7
  177. package/lib/ele-file-list/index.js +2 -2
  178. package/lib/ele-file-list/types/index.d.ts +0 -4
  179. package/lib/ele-icon-select/components/icon-grid.d.ts +5 -5
  180. package/lib/ele-icon-select/components/icon-popper.d.ts +15 -15
  181. package/lib/ele-icon-select/index.d.ts +15 -16
  182. package/lib/ele-icon-select/props.d.ts +8 -8
  183. package/lib/ele-loading/index.d.ts +26 -1
  184. package/lib/ele-loading/index.js +52 -10
  185. package/lib/ele-loading/props.d.ts +11 -1
  186. package/lib/ele-loading/props.js +16 -1
  187. package/lib/ele-loading/style/css-var.scss +7 -0
  188. package/lib/ele-loading/style/index.js +1 -0
  189. package/lib/ele-loading/style/index.scss +90 -0
  190. package/lib/ele-loading/types/index.d.ts +17 -0
  191. package/lib/ele-map-picker/components/map-view.d.ts +2 -2
  192. package/lib/ele-map-picker/index.d.ts +2 -2
  193. package/lib/ele-map-picker/props.d.ts +3 -3
  194. package/lib/ele-menus/index.d.ts +2 -0
  195. package/lib/ele-menus/index.js +9 -3
  196. package/lib/ele-menus/props.d.ts +10 -0
  197. package/lib/ele-menus/props.js +6 -0
  198. package/lib/ele-menus/style/index.scss +18 -18
  199. package/lib/ele-menus/types/index.d.ts +4 -0
  200. package/lib/ele-menus/util.d.ts +4 -3
  201. package/lib/ele-menus/util.js +23 -12
  202. package/lib/ele-modal/index.d.ts +19 -13
  203. package/lib/ele-modal/props.d.ts +8 -7
  204. package/lib/ele-modal/types/index.d.ts +9 -0
  205. package/lib/ele-modal/util.js +45 -32
  206. package/lib/ele-pagination/index.d.ts +1 -1
  207. package/lib/ele-popconfirm/index.d.ts +10 -10
  208. package/lib/ele-popconfirm/index.js +8 -2
  209. package/lib/ele-popconfirm/props.d.ts +6 -6
  210. package/lib/ele-popover/index.d.ts +6 -6
  211. package/lib/ele-popover/props.d.ts +3 -4
  212. package/lib/ele-printer/index.d.ts +7 -6
  213. package/lib/ele-printer/index.js +10 -3
  214. package/lib/ele-printer/props.d.ts +3 -4
  215. package/lib/ele-pro-layout/components/pro-header.d.ts +7 -2
  216. package/lib/ele-pro-layout/components/pro-header.js +15 -5
  217. package/lib/ele-pro-layout/components/pro-iframe.js +10 -7
  218. package/lib/ele-pro-layout/components/pro-sidebar.d.ts +7 -2
  219. package/lib/ele-pro-layout/components/pro-sidebar.js +14 -5
  220. package/lib/ele-pro-layout/components/pro-sidebox.d.ts +11 -4
  221. package/lib/ele-pro-layout/components/pro-sidebox.js +16 -5
  222. package/lib/ele-pro-layout/components/tab-dropdown.js +1 -4
  223. package/lib/ele-pro-layout/index.d.ts +17 -3
  224. package/lib/ele-pro-layout/index.js +205 -102
  225. package/lib/ele-pro-layout/props.d.ts +6 -1
  226. package/lib/ele-pro-layout/props.js +10 -0
  227. package/lib/ele-pro-layout/style/collapse.scss +9 -10
  228. package/lib/ele-pro-layout/style/index.js +0 -1
  229. package/lib/ele-pro-layout/style/layout-mobile.scss +1 -0
  230. package/lib/ele-pro-layout/types/index.d.ts +9 -0
  231. package/lib/ele-pro-layout/util.d.ts +4 -2
  232. package/lib/ele-pro-layout/util.js +19 -16
  233. package/lib/ele-pro-table/components/table-view.d.ts +9 -3
  234. package/lib/ele-pro-table/components/table-view.js +25 -22
  235. package/lib/ele-pro-table/components/tool-column.d.ts +2 -1
  236. package/lib/ele-pro-table/components/tool-column.js +25 -17
  237. package/lib/ele-pro-table/index.d.ts +46 -25
  238. package/lib/ele-pro-table/index.js +180 -194
  239. package/lib/ele-pro-table/props.d.ts +27 -15
  240. package/lib/ele-pro-table/props.js +15 -3
  241. package/lib/ele-pro-table/style/index.js +1 -1
  242. package/lib/ele-pro-table/style/index.scss +64 -8
  243. package/lib/ele-pro-table/types/index.d.ts +39 -5
  244. package/lib/ele-pro-table/util.d.ts +84 -49
  245. package/lib/ele-pro-table/util.js +192 -77
  246. package/lib/ele-qr-code/index.d.ts +3 -3
  247. package/lib/ele-qr-code/props.d.ts +1 -2
  248. package/lib/ele-qr-code-svg/index.d.ts +3 -3
  249. package/lib/ele-split-panel/index.d.ts +6 -6
  250. package/lib/ele-split-panel/props.d.ts +3 -4
  251. package/lib/ele-table/style/index.scss +1 -0
  252. package/lib/ele-tabs/index.js +4 -3
  253. package/lib/ele-tabs/types/index.d.ts +3 -0
  254. package/lib/ele-text/index.d.ts +3 -3
  255. package/lib/ele-text/props.d.ts +2 -2
  256. package/lib/ele-toolbar/index.d.ts +6 -6
  257. package/lib/ele-toolbar/props.d.ts +3 -4
  258. package/lib/ele-tooltip/index.d.ts +3 -3
  259. package/lib/ele-tooltip/props.d.ts +1 -2
  260. package/lib/ele-tour/index.d.ts +2 -3
  261. package/lib/ele-tour/style/index.scss +1 -1
  262. package/lib/ele-tour/util.js +3 -3
  263. package/lib/ele-upload-list/index.d.ts +8 -7
  264. package/lib/ele-upload-list/index.js +17 -10
  265. package/lib/ele-upload-list/props.d.ts +4 -4
  266. package/lib/ele-upload-list/props.js +1 -1
  267. package/lib/ele-watermark/index.d.ts +16 -8
  268. package/lib/ele-watermark/index.js +17 -11
  269. package/lib/ele-watermark/props.d.ts +3 -1
  270. package/lib/ele-watermark/props.js +5 -1
  271. package/lib/ele-watermark/util.js +1 -1
  272. package/lib/ele-xg-player/index.js +1 -0
  273. package/lib/style/index.scss +1 -0
  274. package/lib/style/nprogress.scss +2 -2
  275. package/lib/style/themes/default.scss +36 -12
  276. package/lib/style/themes/rounded.scss +4 -2
  277. package/lib/style/themes/theme-util.scss +2 -0
  278. package/lib/utils/core.d.ts +1 -1
  279. package/lib/utils/core.js +17 -15
  280. package/lib/utils/resolvers.js +2 -2
  281. package/package.json +25 -23
  282. package/typings/global.d.ts +52 -52
  283. package/es/ele-alert/types/index.d.ts +0 -0
  284. package/lib/ele-alert/types/index.d.ts +0 -0
@@ -26,12 +26,12 @@ declare const _default: import("vue").DefineComponent<{
26
26
  type: NumberConstructor;
27
27
  default: number;
28
28
  };
29
- headerStyle: import("vue").PropType<import("../ele-app/types").StyleValue>;
30
- titleStyle: import("vue").PropType<import("../ele-app/types").StyleValue>;
31
- bodyStyle: import("vue").PropType<import("../ele-app/types").StyleValue>;
32
- footerStyle: import("vue").PropType<import("../ele-app/types").StyleValue>;
33
- closeBtnStyle: import("vue").PropType<import("../ele-app/types").StyleValue>;
34
- fullscreenBtnStyle: import("vue").PropType<import("../ele-app/types").StyleValue>;
29
+ headerStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
30
+ titleStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
31
+ bodyStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
32
+ footerStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
33
+ closeBtnStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
34
+ fullscreenBtnStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
35
35
  responsive: {
36
36
  type: BooleanConstructor;
37
37
  default: null;
@@ -71,6 +71,7 @@ declare const _default: import("vue").DefineComponent<{
71
71
  __epPropKey: true;
72
72
  };
73
73
  trapFocus: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
74
+ headerAriaLevel: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "2", boolean>;
74
75
  center: BooleanConstructor;
75
76
  alignCenter: BooleanConstructor;
76
77
  closeIcon: {
@@ -83,6 +84,7 @@ declare const _default: import("vue").DefineComponent<{
83
84
  fullscreen: BooleanConstructor;
84
85
  showClose: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
85
86
  title: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
87
+ ariaLevel: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "2", boolean>;
86
88
  }, {
87
89
  dialogRef: import("vue").Ref<ElDialogInstance>;
88
90
  container: import("vue").Ref<Element>;
@@ -133,12 +135,12 @@ declare const _default: import("vue").DefineComponent<{
133
135
  type: NumberConstructor;
134
136
  default: number;
135
137
  };
136
- headerStyle: import("vue").PropType<import("../ele-app/types").StyleValue>;
137
- titleStyle: import("vue").PropType<import("../ele-app/types").StyleValue>;
138
- bodyStyle: import("vue").PropType<import("../ele-app/types").StyleValue>;
139
- footerStyle: import("vue").PropType<import("../ele-app/types").StyleValue>;
140
- closeBtnStyle: import("vue").PropType<import("../ele-app/types").StyleValue>;
141
- fullscreenBtnStyle: import("vue").PropType<import("../ele-app/types").StyleValue>;
138
+ headerStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
139
+ titleStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
140
+ bodyStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
141
+ footerStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
142
+ closeBtnStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
143
+ fullscreenBtnStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
142
144
  responsive: {
143
145
  type: BooleanConstructor;
144
146
  default: null;
@@ -178,6 +180,7 @@ declare const _default: import("vue").DefineComponent<{
178
180
  __epPropKey: true;
179
181
  };
180
182
  trapFocus: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
183
+ headerAriaLevel: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "2", boolean>;
181
184
  center: BooleanConstructor;
182
185
  alignCenter: BooleanConstructor;
183
186
  closeIcon: {
@@ -190,6 +193,7 @@ declare const _default: import("vue").DefineComponent<{
190
193
  fullscreen: BooleanConstructor;
191
194
  showClose: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
192
195
  title: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
196
+ ariaLevel: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "2", boolean>;
193
197
  }>> & {
194
198
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
195
199
  onOpen?: (() => any) | undefined;
@@ -213,14 +217,16 @@ declare const _default: import("vue").DefineComponent<{
213
217
  openDelay: number;
214
218
  closeDelay: number;
215
219
  trapFocus: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
220
+ headerAriaLevel: string;
216
221
  alignCenter: boolean;
217
222
  customClass: string;
218
223
  draggable: boolean;
219
224
  fullscreen: boolean;
220
225
  showClose: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
226
+ ariaLevel: string;
221
227
  minWidth: number;
222
- responsive: boolean;
223
228
  minHeight: number;
229
+ responsive: boolean;
224
230
  multiple: boolean;
225
231
  resetOnClose: boolean;
226
232
  maxable: boolean;
@@ -1,6 +1,5 @@
1
1
  import type { PropType, ExtractPropTypes } from 'vue';
2
2
  import { dialogProps } from 'element-plus';
3
- import type { StyleValue } from '../ele-app/types';
4
3
  import type { Resizable, MoveOut, Position } from './types';
5
4
  /**
6
5
  * 属性
@@ -32,12 +31,12 @@ export declare const modalProps: {
32
31
  type: NumberConstructor;
33
32
  default: number;
34
33
  };
35
- headerStyle: PropType<StyleValue>;
36
- titleStyle: PropType<StyleValue>;
37
- bodyStyle: PropType<StyleValue>;
38
- footerStyle: PropType<StyleValue>;
39
- closeBtnStyle: PropType<StyleValue>;
40
- fullscreenBtnStyle: PropType<StyleValue>;
34
+ headerStyle: PropType<Partial<import("vue").CSSProperties>>;
35
+ titleStyle: PropType<Partial<import("vue").CSSProperties>>;
36
+ bodyStyle: PropType<Partial<import("vue").CSSProperties>>;
37
+ footerStyle: PropType<Partial<import("vue").CSSProperties>>;
38
+ closeBtnStyle: PropType<Partial<import("vue").CSSProperties>>;
39
+ fullscreenBtnStyle: PropType<Partial<import("vue").CSSProperties>>;
41
40
  responsive: {
42
41
  type: BooleanConstructor;
43
42
  default: null;
@@ -77,6 +76,7 @@ export declare const modalProps: {
77
76
  __epPropKey: true;
78
77
  };
79
78
  trapFocus: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
79
+ headerAriaLevel: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "2", boolean>;
80
80
  center: BooleanConstructor;
81
81
  alignCenter: BooleanConstructor;
82
82
  closeIcon: {
@@ -89,6 +89,7 @@ export declare const modalProps: {
89
89
  fullscreen: BooleanConstructor;
90
90
  showClose: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
91
91
  title: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
92
+ ariaLevel: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "2", boolean>;
92
93
  };
93
94
  export type ModalProps = ExtractPropTypes<typeof modalProps>;
94
95
  /**
@@ -25,3 +25,12 @@ export type PositionValue = 'top' | 'bottom' | 'left' | 'right' | 'leftTop' | 'l
25
25
  * 初始位置类型
26
26
  */
27
27
  export type Position = PositionValue | PositionObject;
28
+ /**
29
+ * 弹窗坐标
30
+ */
31
+ export interface Location {
32
+ top?: number;
33
+ left?: number;
34
+ topValue?: string;
35
+ leftValue?: string;
36
+ }
@@ -20,6 +20,8 @@ const singleSidebarClass = "ele-state-single-sidebar";
20
20
  const topLayoutClass = "ele-state-top-layout";
21
21
  const expandedClass = "ele-state-expanded";
22
22
  const mobileClass = "ele-state-mobile";
23
+ const fixTop = 0.65;
24
+ const fixLeft = 0.65;
23
25
  function initModalStyle(modalEl, resizable) {
24
26
  modalEl.style.top = modalEl.offsetTop + "px";
25
27
  modalEl.style.left = modalEl.offsetLeft + "px";
@@ -102,8 +104,8 @@ function handleMovable(event, props) {
102
104
  left: e.clientX - downX + downOL,
103
105
  top: e.clientY - downY + downOT
104
106
  };
105
- const limitL = wrapEl.clientWidth - modalEl.clientWidth - 1;
106
- const limitT = wrapEl.clientHeight - modalEl.clientHeight - 2;
107
+ const limitL = wrapEl.clientWidth - modalEl.clientWidth - fixLeft;
108
+ const limitT = wrapEl.clientHeight - modalEl.clientHeight - fixTop;
107
109
  if (!props.moveOut) {
108
110
  if (position.left < 0) {
109
111
  position.left = 0;
@@ -138,8 +140,8 @@ function handleMovable(event, props) {
138
140
  position.top = minLimitT;
139
141
  }
140
142
  }
141
- modalEl.style.left = `${position.left}px`;
142
- modalEl.style.top = `${position.top}px`;
143
+ modalEl.style.left = `${Math.floor(position.left)}px`;
144
+ modalEl.style.top = `${Math.floor(position.top)}px`;
143
145
  };
144
146
  const mouseupFn = function() {
145
147
  modalEl.style.userSelect = "";
@@ -182,7 +184,7 @@ function handleResizable(event, props) {
182
184
  const mousemoveFn = function(e) {
183
185
  if (props.resizable !== "vertical") {
184
186
  const w = e.clientX - downX + downW;
185
- const maxW = wrapEl.clientWidth - modalEl.offsetLeft - 1;
187
+ const maxW = wrapEl.clientWidth - modalEl.offsetLeft - fixLeft;
186
188
  const nw = (w < props.minWidth ? props.minWidth : !canMoveOut(props.moveOut, "right") && w > maxW ? maxW : w) + "px";
187
189
  modalEl.style.width = nw;
188
190
  modalEl.style.maxWidth = nw;
@@ -190,7 +192,7 @@ function handleResizable(event, props) {
190
192
  }
191
193
  if (props.resizable !== "horizontal") {
192
194
  const h = e.clientY - downY + downH;
193
- const maxH = wrapEl.clientHeight - modalEl.offsetTop - 1;
195
+ const maxH = wrapEl.clientHeight - modalEl.offsetTop - fixTop;
194
196
  const nh = (h < props.minHeight ? props.minHeight : !canMoveOut(props.moveOut, "bottom") && h > maxH ? maxH : h) + "px";
195
197
  modalEl.style.height = nh;
196
198
  modalEl.style.maxHeight = nh;
@@ -248,60 +250,71 @@ function setModalPosition(modalEl, resizable, position, moveOut) {
248
250
  if (!wrapEl) {
249
251
  return;
250
252
  }
253
+ const location = {};
251
254
  initModalStyle(modalEl, resizable);
252
255
  const canOutB = canMoveOut(moveOut, "bottom");
253
256
  const canOutR = canMoveOut(moveOut, "right");
254
- const t = wrapEl.clientHeight - modalEl.clientHeight - (canOutB ? 0 : 2);
257
+ const t = wrapEl.clientHeight - modalEl.clientHeight - (canOutB ? 0 : fixTop);
255
258
  const maxTop = t < 0 ? 0 : t;
256
- const l = wrapEl.clientWidth - modalEl.clientWidth - (canOutR ? 0 : 1);
259
+ const l = wrapEl.clientWidth - modalEl.clientWidth - (canOutR ? 0 : fixLeft);
257
260
  const maxLeft = l < 0 ? 0 : l;
258
261
  if (position === "top") {
259
- modalEl.style.top = "0px";
260
- modalEl.style.left = `${maxLeft / 2}px`;
262
+ location.top = 0;
263
+ location.left = maxLeft / 2;
261
264
  } else if (position === "bottom") {
262
- modalEl.style.top = `${maxTop}px`;
263
- modalEl.style.left = `${maxLeft / 2}px`;
265
+ location.top = maxTop;
266
+ location.left = maxLeft / 2;
264
267
  } else if (position === "left") {
265
- modalEl.style.top = `${maxTop / 2}px`;
266
- modalEl.style.left = "0px";
268
+ location.top = maxTop / 2;
269
+ location.left = 0;
267
270
  } else if (position === "right") {
268
- modalEl.style.top = `${maxTop / 2}px`;
269
- modalEl.style.left = `${maxLeft}px`;
271
+ location.top = maxTop / 2;
272
+ location.left = maxLeft;
270
273
  } else if (position === "leftTop") {
271
- modalEl.style.top = "0px";
272
- modalEl.style.left = "0px";
274
+ location.top = 0;
275
+ location.left = 0;
273
276
  } else if (position === "leftBottom") {
274
- modalEl.style.top = `${maxTop}px`;
275
- modalEl.style.left = "0px";
277
+ location.top = maxTop;
278
+ location.left = 0;
276
279
  } else if (position === "rightTop") {
277
- modalEl.style.top = "0px";
278
- modalEl.style.left = `${maxLeft}px`;
280
+ location.top = 0;
281
+ location.left = maxLeft;
279
282
  } else if (position === "rightBottom") {
280
- modalEl.style.top = `${maxTop}px`;
281
- modalEl.style.left = `${maxLeft}px`;
283
+ location.top = maxTop;
284
+ location.left = maxLeft;
282
285
  } else if (position === "center") {
283
- modalEl.style.top = `${maxTop / 2}px`;
284
- modalEl.style.left = `${maxLeft / 2}px`;
286
+ location.top = maxTop / 2;
287
+ location.left = maxLeft / 2;
285
288
  } else if (typeof position === "object") {
286
289
  if (position.top != null) {
287
290
  if (typeof position.top === "number") {
288
- modalEl.style.top = `${position.top}px`;
291
+ location.top = position.top;
289
292
  } else {
290
- modalEl.style.top = position.top;
293
+ location.topValue = position.top;
291
294
  }
292
295
  } else if (position.left != null) {
293
- modalEl.style.top = `${maxTop / 2}px`;
296
+ location.top = maxTop / 2;
294
297
  }
295
298
  if (position.left != null) {
296
299
  if (typeof position.left === "number") {
297
- modalEl.style.left = `${position.left}px`;
300
+ location.left = position.left;
298
301
  } else {
299
- modalEl.style.left = position.left;
302
+ location.leftValue = position.left;
300
303
  }
301
304
  } else if (position.top != null) {
302
- modalEl.style.left = `${maxLeft / 2}px`;
305
+ location.left = maxLeft / 2;
303
306
  }
304
307
  }
308
+ if (location.top != null) {
309
+ modalEl.style.top = `${Math.floor(location.top)}px`;
310
+ } else if (location.topValue != null) {
311
+ modalEl.style.top = location.topValue;
312
+ }
313
+ if (location.left != null) {
314
+ modalEl.style.left = `${Math.floor(location.left)}px`;
315
+ } else if (location.leftValue != null) {
316
+ modalEl.style.left = location.leftValue;
317
+ }
305
318
  }
306
319
  function setInitPosition(modalEl, resizable, position, moveOut, force) {
307
320
  const attr = "ele-position";
@@ -58,6 +58,7 @@ declare const _default: import("vue").DefineComponent<{
58
58
  popperClass: string;
59
59
  disabled: boolean;
60
60
  small: boolean;
61
+ background: boolean;
61
62
  pagerCount: number;
62
63
  layout: string;
63
64
  pageSizes: number[];
@@ -65,7 +66,6 @@ declare const _default: import("vue").DefineComponent<{
65
66
  prevIcon: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown>;
66
67
  nextText: string;
67
68
  nextIcon: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown>;
68
- background: boolean;
69
69
  hideOnSinglePage: boolean;
70
70
  }, {}>;
71
71
  export default _default;
@@ -23,15 +23,15 @@ declare const _default: import("vue").DefineComponent<{
23
23
  hideIcon: BooleanConstructor;
24
24
  hideConfirmButton: BooleanConstructor;
25
25
  hideCancelButton: BooleanConstructor;
26
- iconStyle: import("vue").PropType<import("../ele-app/types").StyleValue>;
26
+ iconStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
27
27
  iconProps: import("vue").PropType<ElIconProps>;
28
28
  confirmButtonProps: import("vue").PropType<import("../ele-app/types").ElButtonProps>;
29
29
  cancelButtonProps: import("vue").PropType<import("../ele-app/types").ElButtonProps>;
30
- footerStyle: import("vue").PropType<import("../ele-app/types").StyleValue>;
30
+ footerStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
31
31
  bodyClass: StringConstructor;
32
- bodyStyle: import("vue").PropType<import("../ele-app/types").StyleValue>;
33
- titleStyle: import("vue").PropType<import("../ele-app/types").StyleValue>;
34
- contentStyle: import("vue").PropType<import("../ele-app/types").StyleValue>;
32
+ bodyStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
33
+ titleStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
34
+ contentStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
35
35
  offset: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, undefined, boolean>;
36
36
  effect: {
37
37
  readonly default: "light";
@@ -113,15 +113,15 @@ declare const _default: import("vue").DefineComponent<{
113
113
  hideIcon: BooleanConstructor;
114
114
  hideConfirmButton: BooleanConstructor;
115
115
  hideCancelButton: BooleanConstructor;
116
- iconStyle: import("vue").PropType<import("../ele-app/types").StyleValue>;
116
+ iconStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
117
117
  iconProps: import("vue").PropType<ElIconProps>;
118
118
  confirmButtonProps: import("vue").PropType<import("../ele-app/types").ElButtonProps>;
119
119
  cancelButtonProps: import("vue").PropType<import("../ele-app/types").ElButtonProps>;
120
- footerStyle: import("vue").PropType<import("../ele-app/types").StyleValue>;
120
+ footerStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
121
121
  bodyClass: StringConstructor;
122
- bodyStyle: import("vue").PropType<import("../ele-app/types").StyleValue>;
123
- titleStyle: import("vue").PropType<import("../ele-app/types").StyleValue>;
124
- contentStyle: import("vue").PropType<import("../ele-app/types").StyleValue>;
122
+ bodyStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
123
+ titleStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
124
+ contentStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
125
125
  offset: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, undefined, boolean>;
126
126
  effect: {
127
127
  readonly default: "light";
@@ -59,9 +59,15 @@ const _sfc_main = defineComponent({
59
59
  }
60
60
  const classes = ["ele-popconfirm-icon"];
61
61
  if (options.class) {
62
- classes.push(options.class);
62
+ if (Array.isArray(options.class)) {
63
+ options.class.forEach((c) => {
64
+ classes.push(c);
65
+ });
66
+ } else {
67
+ classes.push(options.class);
68
+ }
63
69
  }
64
- options.class = classes.join(" ");
70
+ options.class = classes;
65
71
  return options;
66
72
  });
67
73
  const confirmText = computed(() => {
@@ -1,5 +1,5 @@
1
1
  import type { PropType, ExtractPropTypes } from 'vue';
2
- import type { StyleValue, ElIconProps, ElButtonProps } from '../ele-app/types';
2
+ import type { ElIconProps, ElButtonProps } from '../ele-app/types';
3
3
  /**
4
4
  * 属性
5
5
  */
@@ -26,15 +26,15 @@ export declare const popconfirmProps: {
26
26
  hideIcon: BooleanConstructor;
27
27
  hideConfirmButton: BooleanConstructor;
28
28
  hideCancelButton: BooleanConstructor;
29
- iconStyle: PropType<StyleValue>;
29
+ iconStyle: PropType<Partial<import("vue").CSSProperties>>;
30
30
  iconProps: PropType<ElIconProps>;
31
31
  confirmButtonProps: PropType<ElButtonProps>;
32
32
  cancelButtonProps: PropType<ElButtonProps>;
33
- footerStyle: PropType<StyleValue>;
33
+ footerStyle: PropType<Partial<import("vue").CSSProperties>>;
34
34
  bodyClass: StringConstructor;
35
- bodyStyle: PropType<StyleValue>;
36
- titleStyle: PropType<StyleValue>;
37
- contentStyle: PropType<StyleValue>;
35
+ bodyStyle: PropType<Partial<import("vue").CSSProperties>>;
36
+ titleStyle: PropType<Partial<import("vue").CSSProperties>>;
37
+ contentStyle: PropType<Partial<import("vue").CSSProperties>>;
38
38
  offset: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, undefined, boolean>;
39
39
  effect: {
40
40
  readonly default: "light";
@@ -1,9 +1,9 @@
1
1
  import type { ElPopoverProps, ElPopoverInstance, ElPopperInstance } from '../ele-app/types';
2
2
  declare const _default: import("vue").DefineComponent<{
3
3
  bodyClass: StringConstructor;
4
- bodyStyle: import("vue").PropType<import("../ele-app/types").StyleValue>;
5
- titleStyle: import("vue").PropType<import("../ele-app/types").StyleValue>;
6
- contentStyle: import("vue").PropType<import("../ele-app/types").StyleValue>;
4
+ bodyStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
5
+ titleStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
6
+ contentStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
7
7
  offset: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, undefined, boolean>;
8
8
  trigger: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => "hover" | "focus" | "click" | "contextmenu" | import("element-plus").TooltipTriggerType[]) | (() => import("element-plus/es/utils").Arrayable<import("element-plus").TooltipTriggerType>) | ((new (...args: any[]) => "hover" | "focus" | "click" | "contextmenu" | import("element-plus").TooltipTriggerType[]) | (() => import("element-plus/es/utils").Arrayable<import("element-plus").TooltipTriggerType>))[], unknown, unknown, "hover", boolean>;
9
9
  effect: {
@@ -60,9 +60,9 @@ declare const _default: import("vue").DefineComponent<{
60
60
  'after-leave': () => boolean;
61
61
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
62
62
  bodyClass: StringConstructor;
63
- bodyStyle: import("vue").PropType<import("../ele-app/types").StyleValue>;
64
- titleStyle: import("vue").PropType<import("../ele-app/types").StyleValue>;
65
- contentStyle: import("vue").PropType<import("../ele-app/types").StyleValue>;
63
+ bodyStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
64
+ titleStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
65
+ contentStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
66
66
  offset: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, undefined, boolean>;
67
67
  trigger: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => "hover" | "focus" | "click" | "contextmenu" | import("element-plus").TooltipTriggerType[]) | (() => import("element-plus/es/utils").Arrayable<import("element-plus").TooltipTriggerType>) | ((new (...args: any[]) => "hover" | "focus" | "click" | "contextmenu" | import("element-plus").TooltipTriggerType[]) | (() => import("element-plus/es/utils").Arrayable<import("element-plus").TooltipTriggerType>))[], unknown, unknown, "hover", boolean>;
68
68
  effect: {
@@ -1,13 +1,12 @@
1
1
  import type { PropType, ExtractPropTypes } from 'vue';
2
- import type { StyleValue } from '../ele-app/types';
3
2
  /**
4
3
  * 属性
5
4
  */
6
5
  export declare const popoverProps: {
7
6
  bodyClass: StringConstructor;
8
- bodyStyle: PropType<StyleValue>;
9
- titleStyle: PropType<StyleValue>;
10
- contentStyle: PropType<StyleValue>;
7
+ bodyStyle: PropType<Partial<import("vue").CSSProperties>>;
8
+ titleStyle: PropType<Partial<import("vue").CSSProperties>>;
9
+ contentStyle: PropType<Partial<import("vue").CSSProperties>>;
11
10
  offset: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, undefined, boolean>;
12
11
  trigger: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => "hover" | "focus" | "click" | "contextmenu" | import("element-plus").TooltipTriggerType[]) | (() => import("element-plus/es/utils").Arrayable<import("element-plus").TooltipTriggerType>) | ((new (...args: any[]) => "hover" | "focus" | "click" | "contextmenu" | import("element-plus").TooltipTriggerType[]) | (() => import("element-plus/es/utils").Arrayable<import("element-plus").TooltipTriggerType>))[], unknown, unknown, "hover", boolean>;
13
12
  effect: {
@@ -1,8 +1,8 @@
1
1
  declare const _default: import("vue").DefineComponent<{
2
2
  modelValue: BooleanConstructor;
3
- headerStyle: import("vue").PropType<import("../ele-app/types").StyleValue>;
4
- bodyStyle: import("vue").PropType<import("../ele-app/types").StyleValue>;
5
- footerStyle: import("vue").PropType<import("../ele-app/types").StyleValue>;
3
+ headerStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
4
+ bodyStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
5
+ footerStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
6
6
  title: StringConstructor;
7
7
  margin: (StringConstructor | NumberConstructor)[];
8
8
  direction: import("vue").PropType<import("./types").PrintDirection | null>;
@@ -12,15 +12,16 @@ declare const _default: import("vue").DefineComponent<{
12
12
  }, {
13
13
  container: import("vue").ShallowRef<Element>;
14
14
  visible: import("vue").Ref<boolean>;
15
+ isStatic: import("vue").ComputedRef<boolean>;
15
16
  print: () => void;
16
17
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
17
18
  'update:modelValue': (_value: boolean) => boolean;
18
19
  done: () => boolean;
19
20
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
20
21
  modelValue: BooleanConstructor;
21
- headerStyle: import("vue").PropType<import("../ele-app/types").StyleValue>;
22
- bodyStyle: import("vue").PropType<import("../ele-app/types").StyleValue>;
23
- footerStyle: import("vue").PropType<import("../ele-app/types").StyleValue>;
22
+ headerStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
23
+ bodyStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
24
+ footerStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
24
25
  title: StringConstructor;
25
26
  margin: (StringConstructor | NumberConstructor)[];
26
27
  direction: import("vue").PropType<import("./types").PrintDirection | null>;
@@ -1,4 +1,4 @@
1
- import { defineComponent, shallowRef, ref, watch, nextTick, openBlock, createBlock, Teleport, createElementVNode, normalizeClass, createElementBlock, normalizeStyle, renderSlot, createCommentVNode } from "vue";
1
+ import { defineComponent, shallowRef, ref, computed, watch, nextTick, openBlock, createBlock, Teleport, createElementVNode, normalizeClass, createElementBlock, normalizeStyle, renderSlot, createCommentVNode } from "vue";
2
2
  import { useLicense } from "../ele-config-provider/receiver";
3
3
  import { usePrinter, getPrintContainer, doPrintOnFrame, doPrint } from "./util";
4
4
  import { printerProps, printerEmits } from "./props";
@@ -14,6 +14,9 @@ const _sfc_main = defineComponent({
14
14
  });
15
15
  const container = shallowRef(getPrintContainer());
16
16
  const visible = ref(false);
17
+ const isStatic = computed(() => {
18
+ return props.static;
19
+ });
17
20
  const print = () => {
18
21
  if (!authenticated.value) {
19
22
  updateModelValue(false);
@@ -54,7 +57,7 @@ const _sfc_main = defineComponent({
54
57
  },
55
58
  { immediate: true }
56
59
  );
57
- return { container, visible, print };
60
+ return { container, visible, isStatic, print };
58
61
  }
59
62
  });
60
63
  const _export_sfc = (sfc, props) => {
@@ -69,10 +72,14 @@ const _hoisted_2 = { key: 1 };
69
72
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
70
73
  return openBlock(), createBlock(Teleport, {
71
74
  to: _ctx.container,
72
- disabled: _ctx.static && !_ctx.visible
75
+ disabled: _ctx.isStatic && !_ctx.visible
73
76
  }, [
74
77
  createElementVNode("table", {
75
- class: normalizeClass(["ele-printer", { "is-open": _ctx.visible }, { "is-static": _ctx.static }])
78
+ class: normalizeClass([
79
+ "ele-printer",
80
+ { "is-open": _ctx.visible },
81
+ { "is-static": _ctx.isStatic }
82
+ ])
76
83
  }, [
77
84
  _ctx.$slots.header ? (openBlock(), createElementBlock("thead", _hoisted_1, [
78
85
  createElementVNode("tr", null, [
@@ -1,14 +1,13 @@
1
1
  import type { PropType, ExtractPropTypes } from 'vue';
2
- import type { StyleValue } from '../ele-app/types';
3
2
  import type { PrintDirection, PrintOrientation, PrintTarget } from './types';
4
3
  /**
5
4
  * 属性
6
5
  */
7
6
  export declare const printerProps: {
8
7
  modelValue: BooleanConstructor;
9
- headerStyle: PropType<StyleValue>;
10
- bodyStyle: PropType<StyleValue>;
11
- footerStyle: PropType<StyleValue>;
8
+ headerStyle: PropType<Partial<import("vue").CSSProperties>>;
9
+ bodyStyle: PropType<Partial<import("vue").CSSProperties>>;
10
+ footerStyle: PropType<Partial<import("vue").CSSProperties>>;
12
11
  title: StringConstructor;
13
12
  margin: (StringConstructor | NumberConstructor)[];
14
13
  direction: PropType<PrintDirection | null>;
@@ -1,7 +1,7 @@
1
1
  import type { PropType } from 'vue';
2
2
  import { BreadcrumbItem } from '../../ele-breadcrumb/types';
3
3
  import type { EllipsisProps } from '../../ele-menus/types';
4
- import type { MenuItem, LevelItem, HeaderStyle } from '../types';
4
+ import type { MenuItem, LevelItem, HeaderStyle, MenuItemTrigger, MenuItemProps } from '../types';
5
5
  declare const _default: import("vue").DefineComponent<{
6
6
  menus: {
7
7
  type: PropType<MenuItem[]>;
@@ -12,6 +12,7 @@ declare const _default: import("vue").DefineComponent<{
12
12
  ellipsis: BooleanConstructor;
13
13
  ellipsisProps: PropType<EllipsisProps>;
14
14
  menuTrigger: PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "hover" | "click", unknown> | undefined>;
15
+ itemTrigger: PropType<MenuItemTrigger>;
15
16
  collapse: BooleanConstructor;
16
17
  sidebar: BooleanConstructor;
17
18
  titleSlot: StringConstructor;
@@ -26,17 +27,19 @@ declare const _default: import("vue").DefineComponent<{
26
27
  isHome: BooleanConstructor;
27
28
  }, {
28
29
  levelItems: import("vue").ShallowRef<BreadcrumbItem[]>;
29
- menuItems: import("vue").ComputedRef<import("../../ele-menus/types").MenuItem[]>;
30
+ menuItems: import("vue").ComputedRef<MenuItemProps[]>;
30
31
  isDark: import("vue").ComputedRef<boolean>;
31
32
  isPrimary: import("vue").ComputedRef<boolean>;
32
33
  isIconSeparator: import("vue").ComputedRef<boolean>;
33
34
  onLogoClick: () => void;
34
35
  onOpen: (index: string, indexPath: string[]) => void;
35
36
  onClose: (index: string, indexPath: string[]) => void;
37
+ onItemClick: (item: MenuItemProps) => void;
36
38
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
37
39
  logoClick: () => true;
38
40
  open: (_index: string, _indexPath: string[]) => true;
39
41
  close: (_index: string, _indexPath: string[]) => true;
42
+ itemClick: (_item: MenuItemProps) => true;
40
43
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
41
44
  menus: {
42
45
  type: PropType<MenuItem[]>;
@@ -47,6 +50,7 @@ declare const _default: import("vue").DefineComponent<{
47
50
  ellipsis: BooleanConstructor;
48
51
  ellipsisProps: PropType<EllipsisProps>;
49
52
  menuTrigger: PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "hover" | "click", unknown> | undefined>;
53
+ itemTrigger: PropType<MenuItemTrigger>;
50
54
  collapse: BooleanConstructor;
51
55
  sidebar: BooleanConstructor;
52
56
  titleSlot: StringConstructor;
@@ -62,6 +66,7 @@ declare const _default: import("vue").DefineComponent<{
62
66
  }>> & {
63
67
  onOpen?: ((_index: string, _indexPath: string[]) => any) | undefined;
64
68
  onClose?: ((_index: string, _indexPath: string[]) => any) | undefined;
69
+ onItemClick?: ((_item: MenuItemProps) => any) | undefined;
65
70
  onLogoClick?: (() => any) | undefined;
66
71
  }, {
67
72
  collapse: boolean;