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

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 (269) 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 +79 -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-cropper/index.js +2 -2
  23. package/es/ele-dashboard/index.d.ts +1 -2
  24. package/es/ele-drawer/index.d.ts +16 -10
  25. package/es/ele-drawer/props.d.ts +7 -6
  26. package/es/ele-dropdown/index.d.ts +2 -2
  27. package/es/ele-dropdown/props.d.ts +1 -2
  28. package/es/ele-edit-tag/index.d.ts +4 -4
  29. package/es/ele-edit-tag/props.d.ts +2 -3
  30. package/es/ele-ellipsis/index.d.ts +4 -5
  31. package/es/ele-ellipsis/props.d.ts +1 -1
  32. package/es/ele-ellipsis/style/index.scss +4 -0
  33. package/es/ele-file-list/index.d.ts +2 -7
  34. package/es/ele-file-list/index.js +2 -2
  35. package/es/ele-file-list/types/index.d.ts +0 -4
  36. package/es/ele-icon-select/components/icon-grid.d.ts +5 -5
  37. package/es/ele-icon-select/components/icon-popper.d.ts +15 -15
  38. package/es/ele-icon-select/index.d.ts +15 -16
  39. package/es/ele-icon-select/props.d.ts +8 -8
  40. package/es/ele-loading/index.d.ts +26 -1
  41. package/es/ele-loading/index.js +53 -11
  42. package/es/ele-loading/props.d.ts +11 -1
  43. package/es/ele-loading/props.js +16 -1
  44. package/es/ele-loading/style/css-var.scss +7 -0
  45. package/es/ele-loading/style/index.js +1 -0
  46. package/es/ele-loading/style/index.scss +90 -0
  47. package/es/ele-loading/types/index.d.ts +17 -0
  48. package/es/ele-map-picker/components/map-view.d.ts +2 -2
  49. package/es/ele-map-picker/index.d.ts +2 -2
  50. package/es/ele-map-picker/props.d.ts +3 -3
  51. package/es/ele-menus/index.d.ts +2 -0
  52. package/es/ele-menus/index.js +11 -5
  53. package/es/ele-menus/props.d.ts +10 -0
  54. package/es/ele-menus/props.js +7 -1
  55. package/es/ele-menus/style/index.scss +18 -18
  56. package/es/ele-menus/types/index.d.ts +4 -0
  57. package/es/ele-menus/util.d.ts +4 -3
  58. package/es/ele-menus/util.js +23 -12
  59. package/es/ele-modal/index.d.ts +19 -13
  60. package/es/ele-modal/props.d.ts +8 -7
  61. package/es/ele-modal/util.js +2 -2
  62. package/es/ele-pagination/index.d.ts +1 -1
  63. package/es/ele-popconfirm/index.d.ts +10 -10
  64. package/es/ele-popconfirm/index.js +8 -2
  65. package/es/ele-popconfirm/props.d.ts +6 -6
  66. package/es/ele-popover/index.d.ts +6 -6
  67. package/es/ele-popover/props.d.ts +3 -4
  68. package/es/ele-printer/index.d.ts +6 -6
  69. package/es/ele-printer/props.d.ts +3 -4
  70. package/es/ele-pro-layout/components/pro-header.d.ts +7 -2
  71. package/es/ele-pro-layout/components/pro-header.js +15 -5
  72. package/es/ele-pro-layout/components/pro-iframe.js +10 -7
  73. package/es/ele-pro-layout/components/pro-sidebar.d.ts +7 -2
  74. package/es/ele-pro-layout/components/pro-sidebar.js +14 -5
  75. package/es/ele-pro-layout/components/pro-sidebox.d.ts +11 -4
  76. package/es/ele-pro-layout/components/pro-sidebox.js +16 -5
  77. package/es/ele-pro-layout/components/tab-dropdown.js +1 -4
  78. package/es/ele-pro-layout/index.d.ts +17 -3
  79. package/es/ele-pro-layout/index.js +208 -105
  80. package/es/ele-pro-layout/props.d.ts +6 -1
  81. package/es/ele-pro-layout/props.js +10 -0
  82. package/es/ele-pro-layout/style/collapse.scss +9 -10
  83. package/es/ele-pro-layout/style/index.js +0 -1
  84. package/es/ele-pro-layout/types/index.d.ts +9 -0
  85. package/es/ele-pro-layout/util.d.ts +4 -2
  86. package/es/ele-pro-layout/util.js +20 -17
  87. package/es/ele-pro-table/components/table-view.d.ts +9 -3
  88. package/es/ele-pro-table/components/table-view.js +27 -24
  89. package/es/ele-pro-table/components/tool-column.d.ts +2 -1
  90. package/es/ele-pro-table/components/tool-column.js +26 -18
  91. package/es/ele-pro-table/index.d.ts +46 -25
  92. package/es/ele-pro-table/index.js +182 -196
  93. package/es/ele-pro-table/props.d.ts +27 -15
  94. package/es/ele-pro-table/props.js +15 -3
  95. package/es/ele-pro-table/style/index.js +1 -1
  96. package/es/ele-pro-table/style/index.scss +64 -8
  97. package/es/ele-pro-table/types/index.d.ts +39 -5
  98. package/es/ele-pro-table/util.d.ts +84 -49
  99. package/es/ele-pro-table/util.js +193 -78
  100. package/es/ele-qr-code/index.d.ts +3 -3
  101. package/es/ele-qr-code/props.d.ts +1 -2
  102. package/es/ele-qr-code-svg/index.d.ts +3 -3
  103. package/es/ele-split-panel/index.d.ts +6 -6
  104. package/es/ele-split-panel/props.d.ts +3 -4
  105. package/es/ele-table/style/index.scss +1 -0
  106. package/es/ele-tabs/index.js +3 -3
  107. package/es/ele-tabs/types/index.d.ts +3 -0
  108. package/es/ele-text/index.d.ts +3 -3
  109. package/es/ele-text/props.d.ts +2 -2
  110. package/es/ele-toolbar/index.d.ts +6 -6
  111. package/es/ele-toolbar/props.d.ts +3 -4
  112. package/es/ele-tooltip/index.d.ts +3 -3
  113. package/es/ele-tooltip/props.d.ts +1 -2
  114. package/es/ele-tour/index.d.ts +2 -3
  115. package/es/ele-tour/style/index.scss +1 -1
  116. package/es/ele-tour/util.js +3 -3
  117. package/es/ele-upload-list/index.d.ts +8 -7
  118. package/es/ele-upload-list/index.js +18 -11
  119. package/es/ele-upload-list/props.d.ts +4 -4
  120. package/es/ele-upload-list/props.js +1 -1
  121. package/es/ele-watermark/index.d.ts +16 -8
  122. package/es/ele-watermark/index.js +18 -12
  123. package/es/ele-watermark/props.d.ts +3 -1
  124. package/es/ele-watermark/props.js +5 -1
  125. package/es/ele-watermark/util.js +1 -1
  126. package/es/style/index.scss +1 -0
  127. package/es/style/nprogress.scss +2 -2
  128. package/es/style/themes/default.scss +36 -12
  129. package/es/style/themes/rounded.scss +4 -2
  130. package/es/style/themes/theme-util.scss +2 -0
  131. package/es/utils/core.d.ts +1 -1
  132. package/es/utils/core.js +17 -15
  133. package/es/utils/resolvers.js +2 -2
  134. package/lib/ele-alert/index.d.ts +10 -10
  135. package/lib/ele-alert/props.d.ts +6 -6
  136. package/lib/ele-app/style/message.scss +1 -0
  137. package/lib/ele-app/style/overwrite.scss +79 -3
  138. package/lib/ele-app/types/index.d.ts +7 -6
  139. package/lib/ele-avatar-group/index.d.ts +7 -8
  140. package/lib/ele-avatar-group/props.d.ts +3 -4
  141. package/lib/ele-basic-select/style/index.scss +4 -6
  142. package/lib/ele-bottom-bar/index.d.ts +4 -4
  143. package/lib/ele-bottom-bar/props.d.ts +2 -3
  144. package/lib/ele-card/index.d.ts +6 -6
  145. package/lib/ele-card/props.d.ts +3 -4
  146. package/lib/ele-check-card/components/card-item.d.ts +2 -3
  147. package/lib/ele-check-card/index.d.ts +4 -4
  148. package/lib/ele-check-card/props.d.ts +3 -3
  149. package/lib/ele-config-provider/receiver.d.ts +1 -1
  150. package/lib/ele-config-provider/receiver.js +2 -2
  151. package/lib/ele-copyable/index.d.ts +8 -8
  152. package/lib/ele-copyable/index.js +4 -3
  153. package/lib/ele-copyable/props.d.ts +5 -5
  154. package/lib/ele-copyable/style/index.scss +4 -0
  155. package/lib/ele-cropper/index.js +2 -2
  156. package/lib/ele-dashboard/index.d.ts +1 -2
  157. package/lib/ele-drawer/index.d.ts +16 -10
  158. package/lib/ele-drawer/props.d.ts +7 -6
  159. package/lib/ele-dropdown/index.d.ts +2 -2
  160. package/lib/ele-dropdown/props.d.ts +1 -2
  161. package/lib/ele-edit-tag/index.d.ts +4 -4
  162. package/lib/ele-edit-tag/props.d.ts +2 -3
  163. package/lib/ele-ellipsis/index.d.ts +4 -5
  164. package/lib/ele-ellipsis/props.d.ts +1 -1
  165. package/lib/ele-ellipsis/style/index.scss +4 -0
  166. package/lib/ele-file-list/index.d.ts +2 -7
  167. package/lib/ele-file-list/index.js +2 -2
  168. package/lib/ele-file-list/types/index.d.ts +0 -4
  169. package/lib/ele-icon-select/components/icon-grid.d.ts +5 -5
  170. package/lib/ele-icon-select/components/icon-popper.d.ts +15 -15
  171. package/lib/ele-icon-select/index.d.ts +15 -16
  172. package/lib/ele-icon-select/props.d.ts +8 -8
  173. package/lib/ele-loading/index.d.ts +26 -1
  174. package/lib/ele-loading/index.js +52 -10
  175. package/lib/ele-loading/props.d.ts +11 -1
  176. package/lib/ele-loading/props.js +16 -1
  177. package/lib/ele-loading/style/css-var.scss +7 -0
  178. package/lib/ele-loading/style/index.js +1 -0
  179. package/lib/ele-loading/style/index.scss +90 -0
  180. package/lib/ele-loading/types/index.d.ts +17 -0
  181. package/lib/ele-map-picker/components/map-view.d.ts +2 -2
  182. package/lib/ele-map-picker/index.d.ts +2 -2
  183. package/lib/ele-map-picker/props.d.ts +3 -3
  184. package/lib/ele-menus/index.d.ts +2 -0
  185. package/lib/ele-menus/index.js +9 -3
  186. package/lib/ele-menus/props.d.ts +10 -0
  187. package/lib/ele-menus/props.js +6 -0
  188. package/lib/ele-menus/style/index.scss +18 -18
  189. package/lib/ele-menus/types/index.d.ts +4 -0
  190. package/lib/ele-menus/util.d.ts +4 -3
  191. package/lib/ele-menus/util.js +23 -12
  192. package/lib/ele-modal/index.d.ts +19 -13
  193. package/lib/ele-modal/props.d.ts +8 -7
  194. package/lib/ele-modal/util.js +2 -2
  195. package/lib/ele-pagination/index.d.ts +1 -1
  196. package/lib/ele-popconfirm/index.d.ts +10 -10
  197. package/lib/ele-popconfirm/index.js +8 -2
  198. package/lib/ele-popconfirm/props.d.ts +6 -6
  199. package/lib/ele-popover/index.d.ts +6 -6
  200. package/lib/ele-popover/props.d.ts +3 -4
  201. package/lib/ele-printer/index.d.ts +6 -6
  202. package/lib/ele-printer/props.d.ts +3 -4
  203. package/lib/ele-pro-layout/components/pro-header.d.ts +7 -2
  204. package/lib/ele-pro-layout/components/pro-header.js +15 -5
  205. package/lib/ele-pro-layout/components/pro-iframe.js +10 -7
  206. package/lib/ele-pro-layout/components/pro-sidebar.d.ts +7 -2
  207. package/lib/ele-pro-layout/components/pro-sidebar.js +14 -5
  208. package/lib/ele-pro-layout/components/pro-sidebox.d.ts +11 -4
  209. package/lib/ele-pro-layout/components/pro-sidebox.js +16 -5
  210. package/lib/ele-pro-layout/components/tab-dropdown.js +1 -4
  211. package/lib/ele-pro-layout/index.d.ts +17 -3
  212. package/lib/ele-pro-layout/index.js +205 -102
  213. package/lib/ele-pro-layout/props.d.ts +6 -1
  214. package/lib/ele-pro-layout/props.js +10 -0
  215. package/lib/ele-pro-layout/style/collapse.scss +9 -10
  216. package/lib/ele-pro-layout/style/index.js +0 -1
  217. package/lib/ele-pro-layout/types/index.d.ts +9 -0
  218. package/lib/ele-pro-layout/util.d.ts +4 -2
  219. package/lib/ele-pro-layout/util.js +19 -16
  220. package/lib/ele-pro-table/components/table-view.d.ts +9 -3
  221. package/lib/ele-pro-table/components/table-view.js +25 -22
  222. package/lib/ele-pro-table/components/tool-column.d.ts +2 -1
  223. package/lib/ele-pro-table/components/tool-column.js +25 -17
  224. package/lib/ele-pro-table/index.d.ts +46 -25
  225. package/lib/ele-pro-table/index.js +180 -194
  226. package/lib/ele-pro-table/props.d.ts +27 -15
  227. package/lib/ele-pro-table/props.js +15 -3
  228. package/lib/ele-pro-table/style/index.js +1 -1
  229. package/lib/ele-pro-table/style/index.scss +64 -8
  230. package/lib/ele-pro-table/types/index.d.ts +39 -5
  231. package/lib/ele-pro-table/util.d.ts +84 -49
  232. package/lib/ele-pro-table/util.js +192 -77
  233. package/lib/ele-qr-code/index.d.ts +3 -3
  234. package/lib/ele-qr-code/props.d.ts +1 -2
  235. package/lib/ele-qr-code-svg/index.d.ts +3 -3
  236. package/lib/ele-split-panel/index.d.ts +6 -6
  237. package/lib/ele-split-panel/props.d.ts +3 -4
  238. package/lib/ele-table/style/index.scss +1 -0
  239. package/lib/ele-tabs/index.js +3 -3
  240. package/lib/ele-tabs/types/index.d.ts +3 -0
  241. package/lib/ele-text/index.d.ts +3 -3
  242. package/lib/ele-text/props.d.ts +2 -2
  243. package/lib/ele-toolbar/index.d.ts +6 -6
  244. package/lib/ele-toolbar/props.d.ts +3 -4
  245. package/lib/ele-tooltip/index.d.ts +3 -3
  246. package/lib/ele-tooltip/props.d.ts +1 -2
  247. package/lib/ele-tour/index.d.ts +2 -3
  248. package/lib/ele-tour/style/index.scss +1 -1
  249. package/lib/ele-tour/util.js +3 -3
  250. package/lib/ele-upload-list/index.d.ts +8 -7
  251. package/lib/ele-upload-list/index.js +17 -10
  252. package/lib/ele-upload-list/props.d.ts +4 -4
  253. package/lib/ele-upload-list/props.js +1 -1
  254. package/lib/ele-watermark/index.d.ts +16 -8
  255. package/lib/ele-watermark/index.js +17 -11
  256. package/lib/ele-watermark/props.d.ts +3 -1
  257. package/lib/ele-watermark/props.js +5 -1
  258. package/lib/ele-watermark/util.js +1 -1
  259. package/lib/style/index.scss +1 -0
  260. package/lib/style/nprogress.scss +2 -2
  261. package/lib/style/themes/default.scss +36 -12
  262. package/lib/style/themes/rounded.scss +4 -2
  263. package/lib/style/themes/theme-util.scss +2 -0
  264. package/lib/utils/core.d.ts +1 -1
  265. package/lib/utils/core.js +17 -15
  266. package/lib/utils/resolvers.js +2 -2
  267. package/package.json +26 -24
  268. package/es/ele-alert/types/index.d.ts +0 -0
  269. package/lib/ele-alert/types/index.d.ts +0 -0
@@ -1,5 +1,5 @@
1
1
  import type { PropType, ExtractPropTypes } from 'vue';
2
- import type { StyleValue, ElIconProps } from '../ele-app/types';
2
+ import type { ElIconProps } from '../ele-app/types';
3
3
  /**
4
4
  * 属性
5
5
  */
@@ -15,13 +15,13 @@ export declare const alertProps: {
15
15
  closeText: StringConstructor;
16
16
  showIcon: BooleanConstructor;
17
17
  effect: PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "light" | "dark", unknown> | undefined>;
18
- iconStyle: PropType<StyleValue>;
18
+ iconStyle: PropType<Partial<import("vue").CSSProperties>>;
19
19
  iconProps: PropType<ElIconProps>;
20
- closeIconStyle: PropType<StyleValue>;
20
+ closeIconStyle: PropType<Partial<import("vue").CSSProperties>>;
21
21
  closeIconProps: PropType<ElIconProps>;
22
- bodyStyle: PropType<StyleValue>;
23
- titleStyle: PropType<StyleValue>;
24
- descriptionStyle: PropType<StyleValue>;
22
+ bodyStyle: PropType<Partial<import("vue").CSSProperties>>;
23
+ titleStyle: PropType<Partial<import("vue").CSSProperties>>;
24
+ descriptionStyle: PropType<Partial<import("vue").CSSProperties>>;
25
25
  transitionName: {
26
26
  type: StringConstructor;
27
27
  default: string;
@@ -6,6 +6,7 @@
6
6
 
7
7
  /* 消息提示 */
8
8
  .ele-message.el-message {
9
+ width: max-content;
9
10
  padding: eleVar('message', 'padding');
10
11
  border-radius: eleVar('message', 'radius');
11
12
  box-shadow: eleVar('message', 'shadow');
@@ -108,6 +108,10 @@
108
108
  border-radius: inherit;
109
109
  }
110
110
 
111
+ .el-select .el-select-tags-wrapper.has-prefix {
112
+ margin-left: 6px !important;
113
+ }
114
+
111
115
  /* Autocomplete */
112
116
  .el-autocomplete__popper {
113
117
  .el-autocomplete-suggestion {
@@ -274,7 +278,9 @@
274
278
  .el-table-filter {
275
279
  .el-table-filter__list {
276
280
  padding: eleVar('table-filter', 'padding');
281
+ max-height: eleVar('table-filter', 'max-height');
277
282
  box-sizing: border-box;
283
+ overflow: auto;
278
284
  }
279
285
 
280
286
  .el-table-filter__list-item {
@@ -367,6 +373,18 @@
367
373
  border-top: eleVar('message-box', 'footer-border');
368
374
  box-sizing: border-box;
369
375
  }
376
+
377
+ .el-message-box__input {
378
+ padding-top: eleVar('message-box', 'input-padding');
379
+ }
380
+
381
+ .el-message-box__errormsg {
382
+ line-height: 18px;
383
+ }
384
+ }
385
+
386
+ body .el-overlay.is-message-box > .el-overlay-message-box {
387
+ overflow-x: hidden;
370
388
  }
371
389
 
372
390
  /* Radio */
@@ -665,6 +683,12 @@ body .el-color-picker .el-color-picker__empty {
665
683
  font-size: 13px;
666
684
  }
667
685
 
686
+ /* Backtop */
687
+ body .el-backtop {
688
+ box-shadow: elVar('box-shadow', 'light');
689
+ transition: (color $ele-transition, background-color $ele-transition);
690
+ }
691
+
668
692
  /* ImageViewer */
669
693
  .el-image-viewer__wrapper {
670
694
  #{elVarName('text-color', 'regular')}: eleVar('image-viewer', 'tool-bg');
@@ -818,7 +842,7 @@ body .el-color-picker .el-color-picker__empty {
818
842
  .el-date-picker,
819
843
  .el-date-range-picker {
820
844
  .el-picker-panel__sidebar {
821
- flex-shrink: 0;
845
+ flex-shrink: 1;
822
846
  background: none;
823
847
  width: eleVar('datepicker', 'sidebar-width');
824
848
  padding: eleVar('datepicker', 'sidebar-padding');
@@ -1013,7 +1037,7 @@ body .el-color-picker .el-color-picker__empty {
1013
1037
 
1014
1038
  // 范围选择
1015
1039
  .el-date-range-picker {
1016
- .el-date-range-picker__header {
1040
+ .el-date-range-picker__content .el-date-range-picker__header {
1017
1041
  display: flex;
1018
1042
  align-items: center;
1019
1043
  height: eleVar('datepicker', 'header-height');
@@ -1073,6 +1097,7 @@ body .el-color-picker .el-color-picker__empty {
1073
1097
 
1074
1098
  .el-picker-panel__body {
1075
1099
  display: flex;
1100
+ flex-shrink: 0;
1076
1101
  }
1077
1102
 
1078
1103
  .el-date-range-picker__content {
@@ -1486,7 +1511,7 @@ body .el-color-picker .el-color-picker__empty {
1486
1511
  }
1487
1512
 
1488
1513
  .el-time-range-picker__cell {
1489
- flex-shrink: 0;
1514
+ flex-shrink: 1;
1490
1515
  padding: 0;
1491
1516
 
1492
1517
  & + .el-time-range-picker__cell .el-time-range-picker__body {
@@ -1521,3 +1546,54 @@ body .el-color-picker .el-color-picker__empty {
1521
1546
  .el-popper .el-time-range-picker {
1522
1547
  width: auto;
1523
1548
  }
1549
+
1550
+ .el-popper.is-light.el-picker__popper {
1551
+ max-width: calc(100% - 32px);
1552
+ }
1553
+
1554
+ /* 日期选择小屏幕自适应 */
1555
+ @media screen and (max-width: 768px) {
1556
+ .el-date-range-picker {
1557
+ .el-picker-panel__body {
1558
+ flex-direction: column;
1559
+ }
1560
+
1561
+ .el-date-range-picker__content.is-left table {
1562
+ box-shadow: 0 0.8px 0 0 eleVar('datepicker', 'inner-border');
1563
+ }
1564
+
1565
+ &.has-time .el-picker-panel__body {
1566
+ display: flex;
1567
+ }
1568
+ }
1569
+
1570
+ .el-date-range-picker .el-date-range-picker__time-header {
1571
+ width: eleVar('datepicker', 'body-width');
1572
+ }
1573
+
1574
+ .el-date-range-picker__editors-wrap {
1575
+ & > .el-date-range-picker__time-picker-wrap:first-child {
1576
+ display: none;
1577
+ }
1578
+ }
1579
+
1580
+ .el-popper .el-picker-panel .el-time-panel {
1581
+ left: auto;
1582
+ right: 0;
1583
+
1584
+ &::after {
1585
+ left: auto;
1586
+ right: 20px;
1587
+ }
1588
+ }
1589
+
1590
+ .el-date-range-picker__editors-wrap:not(.is-right) .el-time-panel {
1591
+ left: 0;
1592
+ right: auto;
1593
+
1594
+ &::after {
1595
+ left: 20px;
1596
+ right: auto;
1597
+ }
1598
+ }
1599
+ }
@@ -1,16 +1,16 @@
1
1
  import type { ExtractPropTypes, CSSProperties } from 'vue';
2
- import type { IconProps, RowProps, ColProps, BreadcrumbProps, BreadcrumbItemProps, InputProps, TagProps, AvatarProps, PopoverProps, ElTooltipProps as TooltipProps, PopconfirmProps, AlertProps, ButtonProps, CardProps, EmptyProps, ProgressProps, MenuProps, MenuItemProps, SubMenuProps, MenuItemGroupProps, BadgeProps, DialogProps, StepProps, TabsProps, TabPaneProps, TableProps, ElPopper, ElPopover, ElTooltip, ElBreadcrumb, ElDrawer, ElInput, ElDropdown, ElMenu, ElSubMenu, ElDialog, ElTable, ElTabs, ElImage, ElScrollbar } from 'element-plus';
2
+ import type { IconProps, RowProps, ColProps, BreadcrumbProps, BreadcrumbItemProps, InputProps, TagProps, AvatarProps, PopoverProps, ElTooltipProps as TooltipProps, PopconfirmProps, AlertProps, ButtonProps, CardProps, EmptyProps, ProgressProps, MenuProps, MenuItemProps, SubMenuProps, MenuItemGroupProps, BadgeProps, LinkProps, DialogProps, StepProps, TabsProps, TabPaneProps, TableProps, ElPopper, ElPopover, ElTooltip, ElBreadcrumb, ElDrawer, ElInput, ElDropdown, ElMenu, ElSubMenu, ElDialog, ElTable, ElTabs, ElImage, ElScrollbar } from 'element-plus';
3
3
  import type { dropdownProps } from 'element-plus';
4
4
  import type { dropdownItemProps } from 'element-plus';
5
5
  import type columnProps from 'element-plus/es/components/table/src/table-column/defaults';
6
6
  /**
7
7
  * 样式值
8
8
  */
9
- export type StyleValue = string | CSSProperties;
9
+ export type StyleValue = Partial<CSSProperties>;
10
10
  /**
11
11
  * 样式多个值
12
12
  */
13
- export type StyleValues = Array<StyleValue>;
13
+ export type StyleValues = StyleValue | Array<StyleValue>;
14
14
  /**
15
15
  * 类名值
16
16
  */
@@ -18,15 +18,15 @@ export type ClassValue = string | Record<string, boolean | undefined>;
18
18
  /**
19
19
  * 类名多个值
20
20
  */
21
- export type ClassValues = Array<ClassValue>;
21
+ export type ClassValues = ClassValue | Array<ClassValue>;
22
22
  /**
23
23
  * 组件属性
24
24
  */
25
25
  export type ComponentProps<T> = Partial<T> & {
26
26
  /** 类名 */
27
- class?: string;
27
+ class?: ClassValues;
28
28
  /** 样式 */
29
- style?: Exclude<StyleValue, string>;
29
+ style?: StyleValues;
30
30
  };
31
31
  /**
32
32
  * ElementPlus 组件属性
@@ -54,6 +54,7 @@ export type ElMenuItemProps = ComponentProps<MenuItemProps>;
54
54
  export type ElSubMenuProps = ComponentProps<SubMenuProps>;
55
55
  export type ElMenuItemGroupProps = ComponentProps<MenuItemGroupProps>;
56
56
  export type ElBadgeProps = ComponentProps<BadgeProps>;
57
+ export type ElLinkProps = ComponentProps<LinkProps>;
57
58
  export type ElDialogProps = ComponentProps<DialogProps>;
58
59
  export type ElStepProps = ComponentProps<StepProps>;
59
60
  export type ElTabsProps = ComponentProps<TabsProps>;
@@ -1,4 +1,3 @@
1
- import type { StyleValue } from '../ele-app/types';
2
1
  import type { AvatarItem, AvatarErrorOption } from './types';
3
2
  declare const _default: import("vue").DefineComponent<{
4
3
  data: {
@@ -8,9 +7,9 @@ declare const _default: import("vue").DefineComponent<{
8
7
  maxCount: NumberConstructor;
9
8
  shape: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "circle" | "square", unknown> | undefined>;
10
9
  size: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<readonly [NumberConstructor, StringConstructor], "" | "default" | "small" | "large", number> | undefined>;
11
- itemStyle: import("vue").PropType<StyleValue>;
12
- avatarStyle: import("vue").PropType<StyleValue>;
13
- moreStyle: import("vue").PropType<StyleValue>;
10
+ itemStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
11
+ avatarStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
12
+ moreStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
14
13
  tooltip: {
15
14
  type: BooleanConstructor;
16
15
  default: boolean;
@@ -26,7 +25,7 @@ declare const _default: import("vue").DefineComponent<{
26
25
  tooltipContent: import("vue").Ref<string>;
27
26
  virtualRef: import("vue").Ref<any>;
28
27
  overflowVisible: import("vue").Ref<boolean>;
29
- commonStyle: import("vue").ComputedRef<StyleValue>;
28
+ commonStyle: import("vue").ComputedRef<Partial<import("vue").CSSProperties>>;
30
29
  isOverflow: import("vue").ComputedRef<boolean>;
31
30
  avatarData: import("vue").ComputedRef<AvatarItem[]>;
32
31
  overflowCount: import("vue").ComputedRef<number>;
@@ -47,9 +46,9 @@ declare const _default: import("vue").DefineComponent<{
47
46
  maxCount: NumberConstructor;
48
47
  shape: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "circle" | "square", unknown> | undefined>;
49
48
  size: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<readonly [NumberConstructor, StringConstructor], "" | "default" | "small" | "large", number> | undefined>;
50
- itemStyle: import("vue").PropType<StyleValue>;
51
- avatarStyle: import("vue").PropType<StyleValue>;
52
- moreStyle: import("vue").PropType<StyleValue>;
49
+ itemStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
50
+ avatarStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
51
+ moreStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
53
52
  tooltip: {
54
53
  type: BooleanConstructor;
55
54
  default: boolean;
@@ -1,5 +1,4 @@
1
1
  import type { PropType, ExtractPropTypes } from 'vue';
2
- import type { StyleValue } from '../ele-app/types';
3
2
  import type { AvatarItem, AvatarErrorOption, EleTooltipProps, ElePopoverProps } from './types';
4
3
  /**
5
4
  * 属性
@@ -12,9 +11,9 @@ export declare const avatarGroupProps: {
12
11
  maxCount: NumberConstructor;
13
12
  shape: PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "circle" | "square", unknown> | undefined>;
14
13
  size: PropType<import("element-plus/es/utils").EpPropMergeType<readonly [NumberConstructor, StringConstructor], "" | "default" | "small" | "large", number> | undefined>;
15
- itemStyle: PropType<StyleValue>;
16
- avatarStyle: PropType<StyleValue>;
17
- moreStyle: PropType<StyleValue>;
14
+ itemStyle: PropType<Partial<import("vue").CSSProperties>>;
15
+ avatarStyle: PropType<Partial<import("vue").CSSProperties>>;
16
+ moreStyle: PropType<Partial<import("vue").CSSProperties>>;
18
17
  tooltip: {
19
18
  type: BooleanConstructor;
20
19
  default: boolean;
@@ -6,13 +6,10 @@
6
6
  position: relative;
7
7
  cursor: pointer;
8
8
 
9
+ .el-input,
10
+ .el-input__wrapper,
9
11
  .el-input__inner {
10
- cursor: pointer;
11
-
12
- &::selection {
13
- color: elVar('input', 'text-color');
14
- background: transparent;
15
- }
12
+ cursor: inherit;
16
13
  }
17
14
 
18
15
  .el-input__prefix-inner {
@@ -108,6 +105,7 @@
108
105
  min-height: elVar('component-size', 'large');
109
106
  }
110
107
 
108
+ .el-input.is-disabled,
111
109
  .el-input.is-disabled + .ele-select-tags {
112
110
  cursor: not-allowed;
113
111
  }
@@ -1,8 +1,8 @@
1
1
  declare const _default: import("vue").DefineComponent<{
2
- bodyStyle: import("vue").PropType<import("../ele-app/types").StyleValue>;
3
- extraStyle: import("vue").PropType<import("../ele-app/types").StyleValue>;
2
+ bodyStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
3
+ extraStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
4
4
  }, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
5
- bodyStyle: import("vue").PropType<import("../ele-app/types").StyleValue>;
6
- extraStyle: import("vue").PropType<import("../ele-app/types").StyleValue>;
5
+ bodyStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
6
+ extraStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
7
7
  }>>, {}, {}>;
8
8
  export default _default;
@@ -1,10 +1,9 @@
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 bottomBarProps: {
7
- bodyStyle: PropType<StyleValue>;
8
- extraStyle: PropType<StyleValue>;
6
+ bodyStyle: PropType<Partial<import("vue").CSSProperties>>;
7
+ extraStyle: PropType<Partial<import("vue").CSSProperties>>;
9
8
  };
10
9
  export type BottomBarProps = ExtractPropTypes<typeof bottomBarProps>;
@@ -1,24 +1,24 @@
1
1
  declare const _default: import("vue").DefineComponent<{
2
2
  header: StringConstructor;
3
- bodyStyle: import("vue").PropType<import("../ele-app/types").StyleValue>;
3
+ bodyStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
4
4
  shadow: {
5
5
  type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "hover" | "always" | "never", unknown> | undefined>;
6
6
  default: string;
7
7
  };
8
8
  bordered: BooleanConstructor;
9
- headerStyle: import("vue").PropType<import("../ele-app/types").StyleValue>;
10
- titleStyle: import("vue").PropType<import("../ele-app/types").StyleValue>;
9
+ headerStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
10
+ titleStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
11
11
  flexTable: BooleanConstructor;
12
12
  }, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
13
13
  header: StringConstructor;
14
- bodyStyle: import("vue").PropType<import("../ele-app/types").StyleValue>;
14
+ bodyStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
15
15
  shadow: {
16
16
  type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "hover" | "always" | "never", unknown> | undefined>;
17
17
  default: string;
18
18
  };
19
19
  bordered: BooleanConstructor;
20
- headerStyle: import("vue").PropType<import("../ele-app/types").StyleValue>;
21
- titleStyle: import("vue").PropType<import("../ele-app/types").StyleValue>;
20
+ headerStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
21
+ titleStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
22
22
  flexTable: BooleanConstructor;
23
23
  }>>, {
24
24
  shadow: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "hover" | "always" | "never", unknown> | undefined;
@@ -1,18 +1,17 @@
1
1
  import type { ExtractPropTypes, PropType } from 'vue';
2
- import type { StyleValue } from '../ele-app/types';
3
2
  /**
4
3
  * 属性
5
4
  */
6
5
  export declare const cardProps: {
7
6
  header: StringConstructor;
8
- bodyStyle: PropType<StyleValue>;
7
+ bodyStyle: PropType<Partial<import("vue").CSSProperties>>;
9
8
  shadow: {
10
9
  type: PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "hover" | "always" | "never", unknown> | undefined>;
11
10
  default: string;
12
11
  };
13
12
  bordered: BooleanConstructor;
14
- headerStyle: PropType<StyleValue>;
15
- titleStyle: PropType<StyleValue>;
13
+ headerStyle: PropType<Partial<import("vue").CSSProperties>>;
14
+ titleStyle: PropType<Partial<import("vue").CSSProperties>>;
16
15
  flexTable: BooleanConstructor;
17
16
  };
18
17
  export type CardProps = ExtractPropTypes<typeof cardProps>;
@@ -1,5 +1,4 @@
1
1
  import type { PropType } from 'vue';
2
- import type { StyleValue } from '../../ele-app/types';
3
2
  import type { CheckCardItem } from '../types';
4
3
  declare const _default: import("vue").DefineComponent<{
5
4
  item: PropType<CheckCardItem>;
@@ -7,14 +6,14 @@ declare const _default: import("vue").DefineComponent<{
7
6
  disabled: BooleanConstructor;
8
7
  bordered: BooleanConstructor;
9
8
  arrow: BooleanConstructor;
10
- arrowStyle: PropType<StyleValue>;
9
+ arrowStyle: PropType<Partial<import("vue").CSSProperties>>;
11
10
  }, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
12
11
  item: PropType<CheckCardItem>;
13
12
  checked: BooleanConstructor;
14
13
  disabled: BooleanConstructor;
15
14
  bordered: BooleanConstructor;
16
15
  arrow: BooleanConstructor;
17
- arrowStyle: PropType<StyleValue>;
16
+ arrowStyle: PropType<Partial<import("vue").CSSProperties>>;
18
17
  }>>, {
19
18
  disabled: boolean;
20
19
  bordered: boolean;
@@ -12,9 +12,9 @@ declare const _default: import("vue").DefineComponent<{
12
12
  type: BooleanConstructor;
13
13
  default: boolean;
14
14
  };
15
- arrowStyle: import("vue").PropType<import("../ele-app/types").StyleValue>;
15
+ arrowStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
16
16
  itemClass: StringConstructor;
17
- itemStyle: import("vue").PropType<import("../ele-app/types").StyleValue>;
17
+ itemStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
18
18
  row: import("vue").PropType<boolean | import("../ele-app/types").ElRowProps>;
19
19
  }, {
20
20
  isChecked: (item: CheckCardItem) => boolean;
@@ -35,9 +35,9 @@ declare const _default: import("vue").DefineComponent<{
35
35
  type: BooleanConstructor;
36
36
  default: boolean;
37
37
  };
38
- arrowStyle: import("vue").PropType<import("../ele-app/types").StyleValue>;
38
+ arrowStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
39
39
  itemClass: StringConstructor;
40
- itemStyle: import("vue").PropType<import("../ele-app/types").StyleValue>;
40
+ itemStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
41
41
  row: import("vue").PropType<boolean | import("../ele-app/types").ElRowProps>;
42
42
  }>> & {
43
43
  "onUpdate:modelValue"?: ((_value: CheckedValue) => any) | undefined;
@@ -1,5 +1,5 @@
1
1
  import type { ExtractPropTypes, PropType } from 'vue';
2
- import type { StyleValue, ElRowProps } from '../ele-app/types';
2
+ import type { ElRowProps } from '../ele-app/types';
3
3
  import type { CheckCardItem, CheckedValue } from './types';
4
4
  /**
5
5
  * 属性
@@ -17,9 +17,9 @@ export declare const checkCardProps: {
17
17
  type: BooleanConstructor;
18
18
  default: boolean;
19
19
  };
20
- arrowStyle: PropType<StyleValue>;
20
+ arrowStyle: PropType<Partial<import("vue").CSSProperties>>;
21
21
  itemClass: StringConstructor;
22
- itemStyle: PropType<StyleValue>;
22
+ itemStyle: PropType<Partial<import("vue").CSSProperties>>;
23
23
  row: PropType<boolean | ElRowProps>;
24
24
  };
25
25
  export type CheckCardProps = ExtractPropTypes<typeof checkCardProps>;
@@ -1,7 +1,7 @@
1
1
  import type { Ref } from 'vue';
2
2
  import { LAYOUT_KEY } from './props';
3
3
  import type { EleGlobalProvide, LocaleProps, UseLicenseResult, UseLocaleResult, LayoutProvide, ResponsiveProps } from './types';
4
- export declare const UNAUTHORIZED_TIP = "EleAdminPlus \u4E3A\u5546\u4E1A\u4EA7\u54C1, \u8BF7\u524D\u5F80 https://eleadmin.com \u8D2D\u4E70\u6388\u6743\u540E\u518D\u4F7F\u7528.";
4
+ export declare const UNAUTHORIZED_TIP = "EleAdminPlus \u4E3A\u5546\u4E1A\u4EA7\u54C1\u9700\u8981\u6388\u6743\u4F7F\u7528, \u8BF7\u524D\u5F80\u5B98\u7F51 www.eleadmin.com \u8D2D\u4E70\u6388\u6743";
5
5
  /**
6
6
  * 获取全局配置
7
7
  */
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("vue"),P=require("./props"),_=require("../lang/zh_CN"),Y="EleAdminPlus \u4E3A\u5546\u4E1A\u4EA7\u54C1, \u8BF7\u524D\u5F80 https://eleadmin.com \u8D2D\u4E70\u6388\u6743\u540E\u518D\u4F7F\u7528.",B="BAFEDIHGLKJONMRQPUTSXWVaZYdcbgfejihmlkponsrqvutyxw10z432765+98/C",N=1691081914,R="1.1";function w(){return h.inject(P.PROVIDE_KEY,{})}function U(t){const o=w();return h.computed(()=>o[t]??{})}function K(t,o){const u=w();return{lang:h.computed(()=>{const r=u.locale??_;return t?Object.assign({},r[t]??{},o==null?void 0:o.locale):r}),globalConfig:u}}function x(){const t=w(),o=h.computed(()=>t.license),u=h.ref(!1),s=(r,p,n,l)=>{const e=[new Array(60).join("*")];if(e.push(Y),o.value?!r&&p==null&&!n&&e.push("\u8BF7\u4F7F\u7528\u6B63\u786E\u683C\u5F0F\u7684\u6388\u6743\u7801;"):e.push("\u8BF7\u5148\u914D\u7F6E\u81EA\u5DF1\u7684\u6388\u6743\u7801;"),r&&e.push(`\u6388\u6743\u7248\u672C\u53F7\u4E0D\u5339\u914D, \u8BF7\u4F7F\u7528: ${r}, \u5F53\u524D\u7248\u672C: ${R};`),typeof p=="number"){const a=new Date(p*1e3).toLocaleString();e.push(`\u6388\u6743\u5DF2\u5931\u6548, \u5230\u671F\u65F6\u95F4: ${a};`)}n&&e.push(`\u57DF\u540D\u4E0D\u5339\u914D, \u8BF7\u90E8\u7F72\u5728: ${n} \u4E0B, \u5F53\u524D\u57DF\u540D: ${l};`),e.push(new Array(60).join("*")),console.error(e.join(`
2
- `)),u.value=!1};return h.watch(o,r=>{var p;if(typeof r!="string"||!r)return s();try{const n=JSON.parse(y(r));if(n.product!=="EleAdminPlus")return s();const{version:l,expiration:e,domain:a}=n;if(l&&l!==R)return s(l);if(e&&e<N)return s(void 0,e);if(a){const d=(p=window==null?void 0:window.location)==null?void 0:p.hostname;if(!d)return s(void 0,void 0,a,"");if(d!=="localhost"&&d!=="127.0.0.1"){const E=a.split("."),m=d.split(".");for(let g=E.length-1;g>=0;g--)if(E[g]!==m[g])return s(void 0,void 0,a,d);if(m.length>E.length&&m[m.length-E.length-1]!=="www")return s(void 0,void 0,a,d)}}}catch(n){return console.error(n),s()}u.value=!0},{immediate:!0}),{authenticated:u,globalConfig:t}}function y(t){const o=(F,O,f)=>{const i=((c,v)=>{const T=c.length-v;if(T<=0)return c;const L=new Array(c.length);for(let D=0;D<c.length;D++)D<v?L[D]=c[T+D]:L[D]=c[D-v];return L})(F.split(""),f).join(""),A=[];let C=0;for(;C<i.length;){let c=C+O;c>i.length&&(c=i.length);const v=i.substring(C,c);A.push(v.split("").reverse().join("")),C=c}return A.join("")},u=t.indexOf("="),s=u===-1?t:t.substring(0,u),r=u===-1?"":t.substring(u),n=(o(s,12,3)+r).replace(/[^A-Za-z0-9\+\/\=]/g,""),l=o(B,3,1)+"=";let e="",a,d,E,m,g,S,j,b=0;for(;b<n.length;)m=l.indexOf(n.charAt(b++)),g=l.indexOf(n.charAt(b++)),S=l.indexOf(n.charAt(b++)),j=l.indexOf(n.charAt(b++)),a=m<<2|g>>4,d=(g&15)<<4|S>>2,E=(S&3)<<6|j,e=e+String.fromCharCode(a),S!=64&&(e=e+String.fromCharCode(d)),j!=64&&(e=e+String.fromCharCode(E));return e=(F=>{let O="",f=0,i=0,A=0,C=0;for(;f<F.length;)i=F.charCodeAt(f),i<128?(O+=String.fromCharCode(i),f++):i>191&&i<224?(A=F.charCodeAt(f+1),O+=String.fromCharCode((i&31)<<6|A&63),f+=2):(A=F.charCodeAt(f+1),C=F.charCodeAt(f+2),O+=String.fromCharCode((i&15)<<12|(A&63)<<6|C&63),f+=3);return O})(e),e}function I(t){return h.inject(P.LAYOUT_KEY,t??h.ref({}))}function M(t){const o=I();return h.computed(()=>{var u;return t.responsive??((u=h.unref(o))==null?void 0:u.responsive)??!0})}Object.defineProperty(exports,"LAYOUT_KEY",{enumerable:!0,get:()=>P.LAYOUT_KEY});exports.UNAUTHORIZED_TIP=Y;exports.useGlobalProps=U;exports.useLayoutState=I;exports.useLicense=x;exports.useLocale=K;exports.useReceiver=w;exports.useResponsive=M;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("vue"),P=require("./props"),I=require("../lang/zh_CN"),Y="EleAdminPlus \u4E3A\u5546\u4E1A\u4EA7\u54C1\u9700\u8981\u6388\u6743\u4F7F\u7528, \u8BF7\u524D\u5F80\u5B98\u7F51 www.eleadmin.com \u8D2D\u4E70\u6388\u6743",_="BAFEDIHGLKJONMRQPUTSXWVaZYdcbgfejihmlkponsrqvutyxw10z432765+98/C",N=1691081914,R="1.1";function S(){return h.inject(P.PROVIDE_KEY,{})}function U(t){const o=S();return h.computed(()=>o[t]??{})}function K(t,o){const u=S();return{lang:h.computed(()=>{const r=u.locale??I;return t?Object.assign({},r[t]??{},o==null?void 0:o.locale):r}),globalConfig:u}}function x(){const t=S(),o=h.computed(()=>t.license),u=h.ref(!1),s=(r,p,n,l)=>{const e=[new Array(60).join("*")];if(e.push(Y),o.value?!r&&p==null&&!n&&e.push("\u8BF7\u4F7F\u7528\u6B63\u786E\u683C\u5F0F\u7684\u6388\u6743\u7801;"):e.push("\u8BF7\u5148\u914D\u7F6E\u81EA\u5DF1\u7684\u6388\u6743\u7801;"),r&&e.push(`\u6388\u6743\u7248\u672C\u53F7\u4E0D\u5339\u914D, \u8BF7\u4F7F\u7528: ${r}, \u5F53\u524D\u7248\u672C: ${R};`),typeof p=="number"){const a=new Date(p*1e3).toLocaleString();e.push(`\u6388\u6743\u5DF2\u5931\u6548, \u5230\u671F\u65F6\u95F4: ${a};`)}n&&e.push(`\u57DF\u540D\u4E0D\u5339\u914D, \u8BF7\u90E8\u7F72\u5728: ${n} \u4E0B, \u5F53\u524D\u57DF\u540D: ${l};`),e.push(new Array(60).join("*")),console.error(e.join(`
2
+ `)),u.value=!1};return h.watch(o,r=>{var p;if(typeof r!="string"||!r)return s();try{const n=JSON.parse(y(r));if(n.product!=="EleAdminPlus")return s();const{version:l,expiration:e,domain:a}=n;if(l&&l!==R)return s(l);if(e&&e<N)return s(void 0,e);if(a){const d=(p=window==null?void 0:window.location)==null?void 0:p.hostname;if(!d)return s(void 0,void 0,a,"");if(d!=="localhost"&&d!=="127.0.0.1"){const E=a.split("."),m=d.split(".");for(let g=E.length-1;g>=0;g--)if(E[g]!==m[g])return s(void 0,void 0,a,d);if(m.length>E.length&&m[m.length-E.length-1]!=="www")return s(void 0,void 0,a,d)}}}catch(n){return console.error(n),s()}u.value=!0},{immediate:!0}),{authenticated:u,globalConfig:t}}function y(t){const o=(F,O,f)=>{const i=((c,v)=>{const T=c.length-v;if(T<=0)return c;const L=new Array(c.length);for(let D=0;D<c.length;D++)D<v?L[D]=c[T+D]:L[D]=c[D-v];return L})(F.split(""),f).join(""),A=[];let C=0;for(;C<i.length;){let c=C+O;c>i.length&&(c=i.length);const v=i.substring(C,c);A.push(v.split("").reverse().join("")),C=c}return A.join("")},u=t.indexOf("="),s=u===-1?t:t.substring(0,u),r=u===-1?"":t.substring(u),n=(o(s,12,3)+r).replace(/[^A-Za-z0-9\+\/\=]/g,""),l=o(_,3,1)+"=";let e="",a,d,E,m,g,w,j,b=0;for(;b<n.length;)m=l.indexOf(n.charAt(b++)),g=l.indexOf(n.charAt(b++)),w=l.indexOf(n.charAt(b++)),j=l.indexOf(n.charAt(b++)),a=m<<2|g>>4,d=(g&15)<<4|w>>2,E=(w&3)<<6|j,e=e+String.fromCharCode(a),w!=64&&(e=e+String.fromCharCode(d)),j!=64&&(e=e+String.fromCharCode(E));return e=(F=>{let O="",f=0,i=0,A=0,C=0;for(;f<F.length;)i=F.charCodeAt(f),i<128?(O+=String.fromCharCode(i),f++):i>191&&i<224?(A=F.charCodeAt(f+1),O+=String.fromCharCode((i&31)<<6|A&63),f+=2):(A=F.charCodeAt(f+1),C=F.charCodeAt(f+2),O+=String.fromCharCode((i&15)<<12|(A&63)<<6|C&63),f+=3);return O})(e),e}function B(t){return h.inject(P.LAYOUT_KEY,t??h.ref({}))}function M(t){const o=B();return h.computed(()=>{var u;return t.responsive??((u=h.unref(o))==null?void 0:u.responsive)??!0})}Object.defineProperty(exports,"LAYOUT_KEY",{enumerable:!0,get:()=>P.LAYOUT_KEY});exports.UNAUTHORIZED_TIP=Y;exports.useGlobalProps=U;exports.useLayoutState=B;exports.useLicense=x;exports.useLocale=K;exports.useReceiver=S;exports.useResponsive=M;
@@ -1,14 +1,14 @@
1
1
  import type { CopyableLocale, EleTooltipInstance } from './types';
2
2
  declare const _default: import("vue").DefineComponent<{
3
3
  text: StringConstructor;
4
- innerStyle: import("vue").PropType<import("../ele-app/types").StyleValue>;
5
- customStyle: import("vue").PropType<import("../ele-app/types").StyleValue>;
4
+ innerStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
5
+ customStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
6
6
  icon: import("vue").PropType<import("./types").CopyableIcon>;
7
7
  iconProps: import("vue").PropType<import("../ele-app/types").ElIconProps>;
8
- iconStyle: import("vue").PropType<import("../ele-app/types").StyleValue>;
8
+ iconStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
9
9
  copiedIcon: import("vue").PropType<import("./types").CopyableIcon>;
10
10
  copiedIconProps: import("vue").PropType<import("../ele-app/types").ElIconProps>;
11
- copiedIconStyle: import("vue").PropType<import("../ele-app/types").StyleValue>;
11
+ copiedIconStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
12
12
  tooltip: {
13
13
  type: import("vue").PropType<boolean | import("../ele-avatar-group/types").EleTooltipProps>;
14
14
  default: boolean;
@@ -30,14 +30,14 @@ declare const _default: import("vue").DefineComponent<{
30
30
  copy: (_error?: any) => boolean;
31
31
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
32
32
  text: StringConstructor;
33
- innerStyle: import("vue").PropType<import("../ele-app/types").StyleValue>;
34
- customStyle: import("vue").PropType<import("../ele-app/types").StyleValue>;
33
+ innerStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
34
+ customStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
35
35
  icon: import("vue").PropType<import("./types").CopyableIcon>;
36
36
  iconProps: import("vue").PropType<import("../ele-app/types").ElIconProps>;
37
- iconStyle: import("vue").PropType<import("../ele-app/types").StyleValue>;
37
+ iconStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
38
38
  copiedIcon: import("vue").PropType<import("./types").CopyableIcon>;
39
39
  copiedIconProps: import("vue").PropType<import("../ele-app/types").ElIconProps>;
40
- copiedIconStyle: import("vue").PropType<import("../ele-app/types").StyleValue>;
40
+ copiedIconStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
41
41
  tooltip: {
42
42
  type: import("vue").PropType<boolean | import("../ele-avatar-group/types").EleTooltipProps>;
43
43
  default: boolean;
@@ -84,13 +84,14 @@ const _export_sfc = (sfc, props2) => {
84
84
  }
85
85
  return target;
86
86
  };
87
- const _hoisted_1 = { class: "ele-copyable" };
88
87
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
89
88
  const _component_Check = vue.resolveComponent("Check");
90
89
  const _component_ElIcon = vue.resolveComponent("ElIcon");
91
90
  const _component_DocumentCopy = vue.resolveComponent("DocumentCopy");
92
91
  const _component_EleTooltip = vue.resolveComponent("EleTooltip");
93
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
92
+ return vue.openBlock(), vue.createElementBlock("div", {
93
+ class: vue.normalizeClass(["ele-copyable", { "ele-copyable-done": _ctx.copied }])
94
+ }, [
94
95
  vue.createElementVNode("div", {
95
96
  ref: "innerRef",
96
97
  class: "ele-copyable-inner",
@@ -137,7 +138,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
137
138
  virtualTriggering: true,
138
139
  ref: "tooltipRef"
139
140
  }), null, 16, ["content", "virtualRef"])
140
- ]);
141
+ ], 2);
141
142
  }
142
143
  const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
143
144
  module.exports = index;
@@ -1,5 +1,5 @@
1
1
  import type { PropType, ExtractPropTypes } from 'vue';
2
- import type { StyleValue, ElIconProps } from '../ele-app/types';
2
+ import type { ElIconProps } from '../ele-app/types';
3
3
  import type { EleTooltipProps } from '../ele-avatar-group/types';
4
4
  import type { CopyableIcon, CopyableLocale } from './types';
5
5
  /**
@@ -7,14 +7,14 @@ import type { CopyableIcon, CopyableLocale } from './types';
7
7
  */
8
8
  export declare const copyableProps: {
9
9
  text: StringConstructor;
10
- innerStyle: PropType<StyleValue>;
11
- customStyle: PropType<StyleValue>;
10
+ innerStyle: PropType<Partial<import("vue").CSSProperties>>;
11
+ customStyle: PropType<Partial<import("vue").CSSProperties>>;
12
12
  icon: PropType<CopyableIcon>;
13
13
  iconProps: PropType<ElIconProps>;
14
- iconStyle: PropType<StyleValue>;
14
+ iconStyle: PropType<Partial<import("vue").CSSProperties>>;
15
15
  copiedIcon: PropType<CopyableIcon>;
16
16
  copiedIconProps: PropType<ElIconProps>;
17
- copiedIconStyle: PropType<StyleValue>;
17
+ copiedIconStyle: PropType<Partial<import("vue").CSSProperties>>;
18
18
  tooltip: {
19
19
  type: PropType<boolean | EleTooltipProps>;
20
20
  default: boolean;
@@ -20,3 +20,7 @@
20
20
  cursor: pointer;
21
21
  }
22
22
  }
23
+
24
+ .ele-copyable-done .ele-copyable-icon {
25
+ color: elVar('color-success');
26
+ }
@@ -178,8 +178,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
178
178
  vue.createElementVNode("img", {
179
179
  ref: "imageRef",
180
180
  src: _ctx.src,
181
- style: vue.normalizeStyle(_ctx.src ? void 0 : { display: "none" })
182
- }, null, 12, _hoisted_2)
181
+ style: { display: "none" }
182
+ }, null, 8, _hoisted_2)
183
183
  ], 4),
184
184
  _ctx.preview ? (vue.openBlock(), vue.createBlock(_component_CropperPreview, {
185
185
  key: 0,
@@ -1,4 +1,3 @@
1
- import type { StyleValue } from '../ele-app/types';
2
1
  declare const _default: import("vue").DefineComponent<{
3
2
  type: import("vue").PropType<import("./types").DashboardType>;
4
3
  color: StringConstructor;
@@ -6,7 +5,7 @@ declare const _default: import("vue").DefineComponent<{
6
5
  space: (StringConstructor | NumberConstructor)[];
7
6
  }, {
8
7
  authenticated: import("vue").Ref<boolean>;
9
- rootStyle: import("vue").ComputedRef<StyleValue>;
8
+ rootStyle: import("vue").ComputedRef<Partial<import("vue").CSSProperties>>;
10
9
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
11
10
  type: import("vue").PropType<import("./types").DashboardType>;
12
11
  color: StringConstructor;