ele-admin-plus 1.2.2-beta.2 → 1.2.2-beta.3

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 (105) hide show
  1. package/es/ele-check-card/index.js +2 -2
  2. package/es/ele-check-card/types.d.ts +2 -0
  3. package/es/ele-config-provider/components/receiver-view.js +16 -14
  4. package/es/ele-dropdown/components/pro-dropdown.d.ts +3 -3
  5. package/es/ele-dropdown/index.d.ts +5 -5
  6. package/es/ele-dropdown/index.js +1 -1
  7. package/es/ele-dropdown/props.d.ts +6 -6
  8. package/es/ele-dropdown/props.js +2 -2
  9. package/es/ele-ellipsis/index.d.ts +2 -9
  10. package/es/ele-ellipsis/props.d.ts +1 -4
  11. package/es/ele-file-list/index.js +1 -1
  12. package/es/ele-printer/util.js +17 -12
  13. package/es/ele-pro-table/components/table-tools.js +1 -1
  14. package/es/ele-segmented/index.d.ts +3 -3
  15. package/es/ele-segmented/index.js +1 -1
  16. package/es/ele-segmented/props.d.ts +2 -2
  17. package/es/ele-segmented/props.js +2 -2
  18. package/es/ele-tab-wrap/components/tab-dropdown.js +1 -1
  19. package/es/ele-table/style/css-var.scss +4 -0
  20. package/es/ele-table/style/index.scss +7 -4
  21. package/es/ele-tabs/index.js +1 -1
  22. package/es/ele-tabs/style/index.scss +0 -1
  23. package/es/ele-text/index.d.ts +2 -9
  24. package/es/ele-text/index.js +1 -1
  25. package/es/ele-text/props.d.ts +1 -4
  26. package/es/ele-text/props.js +1 -4
  27. package/es/ele-upload-list/components/list-item.js +4 -1
  28. package/es/ele-upload-list/index.d.ts +2 -0
  29. package/es/ele-upload-list/index.js +22 -16
  30. package/es/ele-upload-list/props.d.ts +4 -2
  31. package/es/ele-upload-list/props.js +3 -1
  32. package/es/ele-upload-list/style/index.scss +2 -1
  33. package/es/ele-upload-list/types.d.ts +7 -0
  34. package/es/icons/InsertColumnOutlined.d.ts +2 -0
  35. package/es/icons/InsertColumnOutlined.js +35 -0
  36. package/es/icons/InsertRowOutlined.d.ts +2 -0
  37. package/es/icons/InsertRowOutlined.js +35 -0
  38. package/es/icons/PlusSquareDashOutlined.d.ts +2 -0
  39. package/es/icons/PlusSquareDashOutlined.js +29 -0
  40. package/es/icons/RecoverOutlined.d.ts +2 -0
  41. package/es/icons/RecoverOutlined.js +30 -0
  42. package/es/icons/RollbackOutlined.d.ts +2 -0
  43. package/es/icons/RollbackOutlined.js +30 -0
  44. package/es/icons/SizeCompactOutlined.js +5 -11
  45. package/es/icons/SizeMiddleOutlined.js +5 -11
  46. package/es/icons/SizeSlackOutlined.js +4 -4
  47. package/es/icons/index.d.ts +5 -0
  48. package/es/icons/index.js +116 -106
  49. package/es/utils/core.d.ts +1 -1
  50. package/es/utils/core.js +13 -6
  51. package/es/utils/hook.d.ts +0 -12
  52. package/es/utils/hook.js +1 -42
  53. package/lib/ele-check-card/index.cjs +2 -2
  54. package/lib/ele-check-card/types.d.ts +2 -0
  55. package/lib/ele-config-provider/components/receiver-view.cjs +2 -2
  56. package/lib/ele-dropdown/components/pro-dropdown.d.ts +3 -3
  57. package/lib/ele-dropdown/index.cjs +1 -1
  58. package/lib/ele-dropdown/index.d.ts +5 -5
  59. package/lib/ele-dropdown/props.cjs +2 -2
  60. package/lib/ele-dropdown/props.d.ts +6 -6
  61. package/lib/ele-ellipsis/index.d.ts +2 -9
  62. package/lib/ele-ellipsis/props.d.ts +1 -4
  63. package/lib/ele-file-list/index.cjs +1 -1
  64. package/lib/ele-printer/util.cjs +17 -12
  65. package/lib/ele-pro-table/components/table-tools.cjs +1 -1
  66. package/lib/ele-segmented/index.cjs +1 -1
  67. package/lib/ele-segmented/index.d.ts +3 -3
  68. package/lib/ele-segmented/props.cjs +2 -2
  69. package/lib/ele-segmented/props.d.ts +2 -2
  70. package/lib/ele-tab-wrap/components/tab-dropdown.cjs +1 -1
  71. package/lib/ele-table/style/css-var.scss +4 -0
  72. package/lib/ele-table/style/index.scss +7 -4
  73. package/lib/ele-tabs/index.cjs +1 -1
  74. package/lib/ele-tabs/style/index.scss +0 -1
  75. package/lib/ele-text/index.cjs +1 -1
  76. package/lib/ele-text/index.d.ts +2 -9
  77. package/lib/ele-text/props.cjs +1 -4
  78. package/lib/ele-text/props.d.ts +1 -4
  79. package/lib/ele-upload-list/components/list-item.cjs +4 -1
  80. package/lib/ele-upload-list/index.cjs +22 -16
  81. package/lib/ele-upload-list/index.d.ts +2 -0
  82. package/lib/ele-upload-list/props.cjs +3 -1
  83. package/lib/ele-upload-list/props.d.ts +4 -2
  84. package/lib/ele-upload-list/style/index.scss +2 -1
  85. package/lib/ele-upload-list/types.d.ts +7 -0
  86. package/lib/icons/InsertColumnOutlined.cjs +34 -0
  87. package/lib/icons/InsertColumnOutlined.d.ts +2 -0
  88. package/lib/icons/InsertRowOutlined.cjs +34 -0
  89. package/lib/icons/InsertRowOutlined.d.ts +2 -0
  90. package/lib/icons/PlusSquareDashOutlined.cjs +28 -0
  91. package/lib/icons/PlusSquareDashOutlined.d.ts +2 -0
  92. package/lib/icons/RecoverOutlined.cjs +29 -0
  93. package/lib/icons/RecoverOutlined.d.ts +2 -0
  94. package/lib/icons/RollbackOutlined.cjs +29 -0
  95. package/lib/icons/RollbackOutlined.d.ts +2 -0
  96. package/lib/icons/SizeCompactOutlined.cjs +4 -10
  97. package/lib/icons/SizeMiddleOutlined.cjs +4 -10
  98. package/lib/icons/SizeSlackOutlined.cjs +4 -4
  99. package/lib/icons/index.cjs +10 -0
  100. package/lib/icons/index.d.ts +5 -0
  101. package/lib/utils/core.cjs +13 -6
  102. package/lib/utils/core.d.ts +1 -1
  103. package/lib/utils/hook.cjs +0 -41
  104. package/lib/utils/hook.d.ts +0 -12
  105. package/package.json +1 -1
@@ -92,7 +92,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
92
92
  }, {
93
93
  default: withCtx((slotProps) => [
94
94
  renderSlot(_ctx.$slots, "item", mergeProps({ ref_for: true }, slotProps || {}), () => [
95
- createTextVNode(toDisplayString(item.value), 1)
95
+ createTextVNode(toDisplayString(item.label ?? item.value), 1)
96
96
  ])
97
97
  ]),
98
98
  _: 2
@@ -118,7 +118,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
118
118
  }, {
119
119
  default: withCtx((slotProps) => [
120
120
  renderSlot(_ctx.$slots, "item", mergeProps({ ref_for: true }, slotProps || {}), () => [
121
- createTextVNode(toDisplayString(item.value), 1)
121
+ createTextVNode(toDisplayString(item.label ?? item.value), 1)
122
122
  ])
123
123
  ]),
124
124
  _: 2
@@ -24,6 +24,8 @@ export interface CheckCardItem extends Record<keyof any, any> {
24
24
  key?: string | number | symbol;
25
25
  /** 值 */
26
26
  value?: string | number | boolean;
27
+ /** 显示文本 */
28
+ label?: string;
27
29
  /** 是否禁用 */
28
30
  disabled?: boolean;
29
31
  /** 是否显示边框 */
@@ -12,24 +12,24 @@ function J(t) {
12
12
  for (let E = 0; E < l.length; E++)
13
13
  E < S ? $[E] = l[k + E] : $[E] = l[E - S];
14
14
  return $;
15
- })(v.split(""), a).join(""), C = [];
15
+ })(v.split(""), a).join(""), F = [];
16
16
  let w = 0;
17
17
  for (; w < s.length; ) {
18
18
  let l = w + D;
19
19
  l > s.length && (l = s.length);
20
20
  const S = s.substring(w, l);
21
- C.push(S.split("").reverse().join("")), w = l;
21
+ F.push(S.split("").reverse().join("")), w = l;
22
22
  }
23
- return C.join("");
23
+ return F.join("");
24
24
  }, e = "BAFEDIHGLKJONMRQPUTSXWVaZYdcbgfejihmlkponsrqvutyxw10z432765+98/C", i = t.indexOf("="), o = i === -1 ? t : t.substring(0, i), u = i === -1 ? "" : t.substring(i), c = (r(o, 12, 3) + u).replace(/[^A-Za-z0-9\+\/\=]/g, ""), h = r(e, 3, 1) + "=";
25
- let n = "", B, f, g, F, p, _, b, A = 0;
25
+ let n = "", _, f, g, C, p, b, B, A = 0;
26
26
  for (; A < c.length; )
27
- F = h.indexOf(c.charAt(A++)), p = h.indexOf(c.charAt(A++)), _ = h.indexOf(c.charAt(A++)), b = h.indexOf(c.charAt(A++)), B = F << 2 | p >> 4, f = (p & 15) << 4 | _ >> 2, g = (_ & 3) << 6 | b, n = n + String.fromCharCode(B), _ != 64 && (n = n + String.fromCharCode(f)), b != 64 && (n = n + String.fromCharCode(g));
27
+ C = h.indexOf(c.charAt(A++)), p = h.indexOf(c.charAt(A++)), b = h.indexOf(c.charAt(A++)), B = h.indexOf(c.charAt(A++)), _ = C << 2 | p >> 4, f = (p & 15) << 4 | b >> 2, g = (b & 3) << 6 | B, n = n + String.fromCharCode(_), b != 64 && (n = n + String.fromCharCode(f)), B != 64 && (n = n + String.fromCharCode(g));
28
28
  return n = ((v) => {
29
- let D = "", a = 0, s = 0, C = 0, w = 0;
29
+ let D = "", a = 0, s = 0, F = 0, w = 0;
30
30
  for (; a < v.length; )
31
- s = v.charCodeAt(a), s < 128 ? (D += String.fromCharCode(s), a++) : s > 191 && s < 224 ? (C = v.charCodeAt(a + 1), D += String.fromCharCode((s & 31) << 6 | C & 63), a += 2) : (C = v.charCodeAt(a + 1), w = v.charCodeAt(a + 2), D += String.fromCharCode(
32
- (s & 15) << 12 | (C & 63) << 6 | w & 63
31
+ s = v.charCodeAt(a), s < 128 ? (D += String.fromCharCode(s), a++) : s > 191 && s < 224 ? (F = v.charCodeAt(a + 1), D += String.fromCharCode((s & 31) << 6 | F & 63), a += 2) : (F = v.charCodeAt(a + 1), w = v.charCodeAt(a + 2), D += String.fromCharCode(
32
+ (s & 15) << 12 | (F & 63) << 6 | w & 63
33
33
  ), a += 3);
34
34
  return D;
35
35
  })(n), n;
@@ -37,7 +37,9 @@ function J(t) {
37
37
  const P = "EleAdminPlus\u9700\u8981\u6388\u6743\u4F7F\u7528,\u8BF7\u524D\u5F80eleadmin.com\u8D2D\u4E70\u6388\u6743";
38
38
  function m(t, r, e, i) {
39
39
  const o = new Array(60).join("*"), u = [o];
40
- if (u.push(P), t == null && r == null && e == null && i == null && u.push("\u8BF7\u5148\u914D\u7F6E\u81EA\u5DF1\u7684\u6388\u6743\u7801;"), !t && r == null && !e && u.push("\u8BF7\u4F7F\u7528\u6B63\u786E\u683C\u5F0F\u7684\u6388\u6743\u7801;"), t && u.push(`\u6388\u6743\u7248\u672C\u53F7\u4E0D\u5339\u914D, \u8BF7\u4F7F\u7528: ${t}, \u5F53\u524D\u7248\u672C: ${O};`), typeof r == "number") {
40
+ if (u.push(P), t == null && r == null && e == null && i == null && u.push("\u8BF7\u5148\u914D\u7F6E\u81EA\u5DF1\u7684\u6388\u6743\u7801;"), !t && r == null && !e && u.push("\u8BF7\u4F7F\u7528\u6B63\u786E\u683C\u5F0F\u7684\u6388\u6743\u7801;"), t && u.push(
41
+ `\u6388\u6743\u7248\u672C\u53F7\u4E0D\u5339\u914D, \u6388\u6743\u7801\u7248\u672C: ${t}, \u5F53\u524D\u7248\u672C: ${O};`
42
+ ), typeof r == "number") {
41
43
  const d = new Date(r * 1e3).toLocaleString();
42
44
  u.push(`\u6388\u6743\u5DF2\u5931\u6548, \u5230\u671F\u65F6\u95F4: ${d};`);
43
45
  }
@@ -67,12 +69,12 @@ const L = j({
67
69
  return;
68
70
  }
69
71
  try {
70
- const d = JSON.parse(J(o)), { version: c, expiration: h, domain: n, product: B } = d;
72
+ const d = JSON.parse(J(o)), { version: c, expiration: h, domain: n, product: _ } = d;
71
73
  if (c && c !== O) {
72
74
  e.value = !1, m(c);
73
75
  return;
74
76
  }
75
- if (B !== "EleAdminPlus") {
77
+ if (_ !== "EleAdminPlus") {
76
78
  e.value = !1, m("");
77
79
  return;
78
80
  }
@@ -87,13 +89,13 @@ const L = j({
87
89
  return;
88
90
  }
89
91
  if (f !== "localhost" && f !== "127.0.0.1") {
90
- const g = n.split("."), F = f.split(".");
92
+ const g = n.split("."), C = f.split(".");
91
93
  for (let p = g.length - 1; p >= 0; p--)
92
- if (g[p] !== F[p]) {
94
+ if (g[p] !== C[p]) {
93
95
  e.value = !1, m(void 0, void 0, n, f);
94
96
  return;
95
97
  }
96
- if (F.length > g.length && F[F.length - g.length - 1] !== "www") {
98
+ if (C.length > g.length && C[C.length - g.length - 1] !== "www") {
97
99
  e.value = !1, m(void 0, void 0, n, f);
98
100
  return;
99
101
  }
@@ -17,7 +17,7 @@ declare const _default: import('vue').DefineComponent<{
17
17
  preventContextmenu: BooleanConstructor;
18
18
  splitButtonProps: PropType<import('../../ele-app/el').ElButtonProps>;
19
19
  caretButtonProps: PropType<import('../../ele-app/el').ElButtonProps>;
20
- formValidate: {
20
+ validateEvent: {
21
21
  type: BooleanConstructor;
22
22
  default: boolean;
23
23
  };
@@ -132,7 +132,7 @@ declare const _default: import('vue').DefineComponent<{
132
132
  preventContextmenu: BooleanConstructor;
133
133
  splitButtonProps: PropType<import('../../ele-app/el').ElButtonProps>;
134
134
  caretButtonProps: PropType<import('../../ele-app/el').ElButtonProps>;
135
- formValidate: {
135
+ validateEvent: {
136
136
  type: BooleanConstructor;
137
137
  default: boolean;
138
138
  };
@@ -222,6 +222,7 @@ declare const _default: import('vue').DefineComponent<{
222
222
  teleported: import('element-plus/es/utils/index').EpPropMergeType<BooleanConstructor, unknown, unknown>;
223
223
  disabled: boolean;
224
224
  offset: number;
225
+ validateEvent: boolean;
225
226
  persistent: import('element-plus/es/utils/index').EpPropMergeType<BooleanConstructor, unknown, unknown>;
226
227
  visible: import('element-plus/es/utils/index').EpPropMergeType<(new (...args: any[]) => (boolean | null) & {}) | (() => boolean | null) | ((new (...args: any[]) => (boolean | null) & {}) | (() => boolean | null))[], unknown, unknown>;
227
228
  trigger: import('element-plus/es/utils/index').EpPropMergeType<(new (...args: any[]) => import('element-plus/es/utils/typescript').Arrayable<import('element-plus').TooltipTriggerType> & {}) | (() => import('element-plus/es/utils/typescript').Arrayable<import('element-plus').TooltipTriggerType>) | ((new (...args: any[]) => import('element-plus/es/utils/typescript').Arrayable<import('element-plus').TooltipTriggerType> & {}) | (() => import('element-plus/es/utils/typescript').Arrayable<import('element-plus').TooltipTriggerType>))[], unknown, unknown>;
@@ -242,6 +243,5 @@ declare const _default: import('vue').DefineComponent<{
242
243
  virtualTriggering: boolean;
243
244
  gpuAcceleration: import('element-plus/es/utils/index').EpPropMergeType<BooleanConstructor, unknown, unknown>;
244
245
  preventContextmenu: boolean;
245
- formValidate: boolean;
246
246
  }, {}>;
247
247
  export default _default;
@@ -17,7 +17,7 @@ declare const _default: import('vue').DefineComponent<{
17
17
  preventContextmenu: BooleanConstructor;
18
18
  splitButtonProps: import('vue').PropType<import('../ele-app/el').ElButtonProps>;
19
19
  caretButtonProps: import('vue').PropType<import('../ele-app/el').ElButtonProps>;
20
- formValidate: {
20
+ validateEvent: {
21
21
  type: BooleanConstructor;
22
22
  default: boolean;
23
23
  };
@@ -34,7 +34,7 @@ declare const _default: import('vue').DefineComponent<{
34
34
  readonly validator: ((val: unknown) => boolean) | undefined;
35
35
  readonly __epPropKey: true;
36
36
  };
37
- placement: import('element-plus/es/utils/index').EpPropFinalized<(new (... /** 关闭下拉菜单 */args: any[]) => import('element-plus').Placement & {}) | (() => import('element-plus').Placement) | ((new (...args: any[]) => import('element-plus').Placement & {}) | (() => import('element-plus').Placement))[], unknown, unknown, "bottom", boolean>;
37
+ placement: import('element-plus/es/utils/index').EpPropFinalized<(new (...args: any[]) => import('element-plus').Placement & {}) | (() => import('element-plus').Placement) | ((new (...args: any[]) => import('element-plus').Placement & {}) | (() => import('element-plus').Placement))[], unknown, unknown, "bottom", boolean>;
38
38
  popperClass: import('element-plus/es/utils/index').EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
39
39
  teleported: import('element-plus/es/utils/index').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
40
40
  disabled: BooleanConstructor;
@@ -124,7 +124,7 @@ declare const _default: import('vue').DefineComponent<{
124
124
  preventContextmenu: BooleanConstructor;
125
125
  splitButtonProps: import('vue').PropType<import('../ele-app/el').ElButtonProps>;
126
126
  caretButtonProps: import('vue').PropType<import('../ele-app/el').ElButtonProps>;
127
- formValidate: {
127
+ validateEvent: {
128
128
  type: BooleanConstructor;
129
129
  default: boolean;
130
130
  };
@@ -141,7 +141,7 @@ declare const _default: import('vue').DefineComponent<{
141
141
  readonly validator: ((val: unknown) => boolean) | undefined;
142
142
  readonly __epPropKey: true;
143
143
  };
144
- placement: import('element-plus/es/utils/index').EpPropFinalized<(new (... /** 关闭下拉菜单 */args: any[]) => import('element-plus').Placement & {}) | (() => import('element-plus').Placement) | ((new (...args: any[]) => import('element-plus').Placement & {}) | (() => import('element-plus').Placement))[], unknown, unknown, "bottom", boolean>;
144
+ placement: import('element-plus/es/utils/index').EpPropFinalized<(new (...args: any[]) => import('element-plus').Placement & {}) | (() => import('element-plus').Placement) | ((new (...args: any[]) => import('element-plus').Placement & {}) | (() => import('element-plus').Placement))[], unknown, unknown, "bottom", boolean>;
145
145
  popperClass: import('element-plus/es/utils/index').EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
146
146
  teleported: import('element-plus/es/utils/index').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
147
147
  disabled: BooleanConstructor;
@@ -214,6 +214,7 @@ declare const _default: import('vue').DefineComponent<{
214
214
  teleported: import('element-plus/es/utils/index').EpPropMergeType<BooleanConstructor, unknown, unknown>;
215
215
  disabled: boolean;
216
216
  offset: number;
217
+ validateEvent: boolean;
217
218
  persistent: import('element-plus/es/utils/index').EpPropMergeType<BooleanConstructor, unknown, unknown>;
218
219
  visible: import('element-plus/es/utils/index').EpPropMergeType<(new (...args: any[]) => (boolean | null) & {}) | (() => boolean | null) | ((new (...args: any[]) => (boolean | null) & {}) | (() => boolean | null))[], unknown, unknown>;
219
220
  trigger: import('element-plus/es/utils/index').EpPropMergeType<(new (...args: any[]) => import('element-plus/es/utils/typescript').Arrayable<import('element-plus').TooltipTriggerType> & {}) | (() => import('element-plus/es/utils/typescript').Arrayable<import('element-plus').TooltipTriggerType>) | ((new (...args: any[]) => import('element-plus/es/utils/typescript').Arrayable<import('element-plus').TooltipTriggerType> & {}) | (() => import('element-plus/es/utils/typescript').Arrayable<import('element-plus').TooltipTriggerType>))[], unknown, unknown>;
@@ -234,6 +235,5 @@ declare const _default: import('vue').DefineComponent<{
234
235
  virtualTriggering: boolean;
235
236
  gpuAcceleration: import('element-plus/es/utils/index').EpPropMergeType<BooleanConstructor, unknown, unknown>;
236
237
  preventContextmenu: boolean;
237
- formValidate: boolean;
238
238
  }, {}>;
239
239
  export default _default;
@@ -38,7 +38,7 @@ const _sfc_main = defineComponent({
38
38
  const updateModelValue = (value) => {
39
39
  if (value !== props.modelValue) {
40
40
  emit("update:modelValue", value);
41
- if (props.formValidate) {
41
+ if (props.validateEvent) {
42
42
  validateChange();
43
43
  }
44
44
  emit("change", value);
@@ -15,8 +15,8 @@ declare const normalizeDropdownProps: import('../ele-app/types').Mutable<Omit<{
15
15
  };
16
16
  readonly type: {
17
17
  readonly type: import('vue').PropType<import('element-plus/es/utils/index').EpPropMergeType<(new (
18
- /** 是否支持表单验证 */
19
- ... /** 是否支持表单验证 */args: any[]) => import('element-plus/es/utils/index').EpPropMergeType<StringConstructor, "" | "text" | "default" | "success" | "warning" | "info" | "primary" | "danger", unknown> & {}) | (() => import('element-plus/es/utils/index').EpPropMergeType<StringConstructor, "" | "text" | "default" | "success" | "warning" | "info" | "primary" | "danger", unknown>) | ((new (...args: any[]) => import('element-plus/es/utils/index').EpPropMergeType<StringConstructor, "" | "text" | "default" | "success" | "warning" | "info" | "primary" | "danger", unknown> & {}) | (() => import('element-plus/es/utils/index').EpPropMergeType<StringConstructor, "" | "text" | "default" | "success" | "warning" | "info" | "primary" | "danger", unknown>))[], unknown, unknown>>;
18
+ /** 是否触发表单验证 */
19
+ ... /** 是否触发表单验证 */args: any[]) => import('element-plus/es/utils/index').EpPropMergeType<StringConstructor, "" | "text" | "default" | "success" | "warning" | "info" | "primary" | "danger", unknown> & {}) | (() => import('element-plus/es/utils/index').EpPropMergeType<StringConstructor, "" | "text" | "default" | "success" | "warning" | "info" | "primary" | "danger", unknown>) | ((new (...args: any[]) => import('element-plus/es/utils/index').EpPropMergeType<StringConstructor, "" | "text" | "default" | "success" | "warning" | "info" | "primary" | "danger", unknown> & {}) | (() => import('element-plus/es/utils/index').EpPropMergeType<StringConstructor, "" | "text" | "default" | "success" | "warning" | "info" | "primary" | "danger", unknown>))[], unknown, unknown>>;
20
20
  readonly required: false;
21
21
  readonly validator: ((val: unknown) => boolean) | undefined;
22
22
  __epPropKey: true;
@@ -68,15 +68,15 @@ export declare const dropdownProps: {
68
68
  splitButtonProps: PropType<ElButtonProps>;
69
69
  /** 箭头按钮属性 */
70
70
  caretButtonProps: PropType<ElButtonProps>;
71
- /** 是否支持表单验证 */
72
- formValidate: {
71
+ /** 是否触发表单验证 */
72
+ validateEvent: {
73
73
  type: BooleanConstructor;
74
74
  default: boolean;
75
75
  };
76
76
  type: {
77
77
  readonly type: import('vue').PropType<import('element-plus/es/utils/index').EpPropMergeType<(new (
78
- /** 是否支持表单验证 */
79
- ... /** 是否支持表单验证 */args: any[]) => import('element-plus/es/utils/index').EpPropMergeType<StringConstructor, "" | "text" | "default" | "success" | "warning" | "info" | "primary" | "danger", unknown> & {}) | (() => import('element-plus/es/utils/index').EpPropMergeType<StringConstructor, "" | "text" | "default" | "success" | "warning" | "info" | "primary" | "danger", unknown>) | ((new (...args: any[]) => import('element-plus/es/utils/index').EpPropMergeType<StringConstructor, "" | "text" | "default" | "success" | "warning" | "info" | "primary" | "danger", unknown> & {}) | (() => import('element-plus/es/utils/index').EpPropMergeType<StringConstructor, "" | "text" | "default" | "success" | "warning" | "info" | "primary" | "danger", unknown>))[], unknown, unknown>>;
78
+ /** 是否触发表单验证 */
79
+ ... /** 是否触发表单验证 */args: any[]) => import('element-plus/es/utils/index').EpPropMergeType<StringConstructor, "" | "text" | "default" | "success" | "warning" | "info" | "primary" | "danger", unknown> & {}) | (() => import('element-plus/es/utils/index').EpPropMergeType<StringConstructor, "" | "text" | "default" | "success" | "warning" | "info" | "primary" | "danger", unknown>) | ((new (...args: any[]) => import('element-plus/es/utils/index').EpPropMergeType<StringConstructor, "" | "text" | "default" | "success" | "warning" | "info" | "primary" | "danger", unknown> & {}) | (() => import('element-plus/es/utils/index').EpPropMergeType<StringConstructor, "" | "text" | "default" | "success" | "warning" | "info" | "primary" | "danger", unknown>))[], unknown, unknown>>;
80
80
  readonly required: false;
81
81
  readonly validator: ((val: unknown) => boolean) | undefined;
82
82
  __epPropKey: true;
@@ -51,8 +51,8 @@ const dropdownProps = {
51
51
  splitButtonProps: Object,
52
52
  /** 箭头按钮属性 */
53
53
  caretButtonProps: Object,
54
- /** 是否支持表单验证 */
55
- formValidate: {
54
+ /** 是否触发表单验证 */
55
+ validateEvent: {
56
56
  type: Boolean,
57
57
  default: true
58
58
  }
@@ -11,10 +11,7 @@ declare const _default: import('vue').DefineComponent<{
11
11
  original: boolean;
12
12
  };
13
13
  };
14
- tag: {
15
- type: StringConstructor;
16
- default: string;
17
- };
14
+ tag: StringConstructor;
18
15
  type: import('vue').PropType<import('../ele-text/types').TextType>;
19
16
  size: import('vue').PropType<import('../ele-text/types').TextSize>;
20
17
  deleted: BooleanConstructor;
@@ -41,10 +38,7 @@ declare const _default: import('vue').DefineComponent<{
41
38
  original: boolean;
42
39
  };
43
40
  };
44
- tag: {
45
- type: StringConstructor;
46
- default: string;
47
- };
41
+ tag: StringConstructor;
48
42
  type: import('vue').PropType<import('../ele-text/types').TextType>;
49
43
  size: import('vue').PropType<import('../ele-text/types').TextSize>;
50
44
  deleted: BooleanConstructor;
@@ -55,7 +49,6 @@ declare const _default: import('vue').DefineComponent<{
55
49
  iconProps: import('vue').PropType<import('../ele-app/el').ElIconProps>;
56
50
  iconStyle: import('vue').PropType<StyleValue>;
57
51
  }>>, {
58
- tag: string;
59
52
  underline: boolean;
60
53
  tooltip: boolean | EllipsisTooltip;
61
54
  strong: boolean;
@@ -16,10 +16,7 @@ export declare const ellipsisProps: {
16
16
  original: boolean;
17
17
  };
18
18
  };
19
- tag: {
20
- type: StringConstructor;
21
- default: string;
22
- };
19
+ tag: StringConstructor;
23
20
  type: PropType<import('../ele-text/types').TextType>;
24
21
  size: PropType<import('../ele-text/types').TextSize>;
25
22
  deleted: BooleanConstructor;
@@ -357,7 +357,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
357
357
  persistent: false,
358
358
  placement: "bottom-start",
359
359
  popperClass: "ele-file-list-item-context",
360
- formValidate: false
360
+ validateEvent: false
361
361
  }, _ctx.contextMenuProps || {}, {
362
362
  ref: "ctxMenuDropdownRef",
363
363
  componentType: "pro",
@@ -64,7 +64,7 @@ function getPrintFrame() {
64
64
  elem.focus();
65
65
  return elem;
66
66
  }
67
- function doPrintOnFrame(opt, printId) {
67
+ function doPrintOnFrame(opt, printId, timeout) {
68
68
  var _a;
69
69
  const pFrame = getPrintFrame();
70
70
  const pWin = pFrame.contentWindow;
@@ -97,8 +97,10 @@ function doPrintOnFrame(opt, printId) {
97
97
  if(${opt.title == null ? 0 : 1}) {
98
98
  document.title = '${opt.title}';
99
99
  }
100
- window.print(${printOption});
101
- window.parent.postMessage('elePrintDone_${printId}', '*');
100
+ ${"setTimeout(() => {"}
101
+ window.print(${printOption});
102
+ window.parent.postMessage('elePrintDone_${printId}', '*');
103
+ ${"}, " + timeout + ");"}
102
104
  };
103
105
  <\/script>
104
106
  `;
@@ -111,10 +113,11 @@ function doPrintOnFrame(opt, printId) {
111
113
  function usePrinter(done) {
112
114
  printIdNum++;
113
115
  const printId = printIdNum;
114
- const [startPrintTimer] = useTimer(500);
116
+ const printTimeout = 500;
117
+ const [startPrintTimer] = useTimer(printTimeout);
115
118
  const doPrint = (option, target) => {
116
119
  if (target === "_iframe") {
117
- doPrintOnFrame(option, printId);
120
+ doPrintOnFrame(option, printId, printTimeout);
118
121
  return;
119
122
  }
120
123
  const $html = document.querySelector("html");
@@ -132,14 +135,16 @@ function usePrinter(done) {
132
135
  if (option.title != null && option.title !== "") {
133
136
  document.title = option.title;
134
137
  }
135
- window.print(option.options);
136
138
  startPrintTimer(() => {
137
- $html.classList.remove(printingClass);
138
- document.body.removeChild(elem);
139
- if (option.title != null) {
140
- document.title = title;
141
- }
142
- done && done();
139
+ window.print(option.options);
140
+ startPrintTimer(() => {
141
+ $html.classList.remove(printingClass);
142
+ document.body.removeChild(elem);
143
+ if (option.title != null) {
144
+ document.title = title;
145
+ }
146
+ done && done();
147
+ });
143
148
  });
144
149
  };
145
150
  const handleMessage = (e) => {
@@ -306,7 +306,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
306
306
  createVNode(_component_EleDropdown, {
307
307
  trigger: "click",
308
308
  placement: "bottom",
309
- formValidate: false,
309
+ validateEvent: false,
310
310
  popperClass: "ele-tool-size-popper",
311
311
  modelValue: _ctx.size,
312
312
  items: _ctx.sizeDropdownItems,
@@ -9,7 +9,7 @@ declare const _default: import('vue').DefineComponent<{
9
9
  required: boolean;
10
10
  };
11
11
  size: import('vue').PropType<import('./types').SegmentedSize>;
12
- formValidate: {
12
+ validateEvent: {
13
13
  type: BooleanConstructor;
14
14
  default: boolean;
15
15
  };
@@ -30,7 +30,7 @@ declare const _default: import('vue').DefineComponent<{
30
30
  required: boolean;
31
31
  };
32
32
  size: import('vue').PropType<import('./types').SegmentedSize>;
33
- formValidate: {
33
+ validateEvent: {
34
34
  type: BooleanConstructor;
35
35
  default: boolean;
36
36
  };
@@ -39,7 +39,7 @@ declare const _default: import('vue').DefineComponent<{
39
39
  onChange?: ((_active: string | number) => any) | undefined;
40
40
  }, {
41
41
  disabled: boolean;
42
+ validateEvent: boolean;
42
43
  block: boolean;
43
- formValidate: boolean;
44
44
  }, {}>;
45
45
  export default _default;
@@ -16,7 +16,7 @@ const _sfc_main = defineComponent({
16
16
  const handleUpdateModelValue = (value) => {
17
17
  if (props.modelValue !== value) {
18
18
  emit("update:modelValue", value);
19
- if (props.formValidate) {
19
+ if (props.validateEvent) {
20
20
  validateChange();
21
21
  }
22
22
  emit("change", value);
@@ -18,8 +18,8 @@ export declare const segmentedProps: {
18
18
  };
19
19
  /** 尺寸 */
20
20
  size: PropType<SegmentedSize>;
21
- /** 是否支持表单验证 */
22
- formValidate: {
21
+ /** 是否触发表单验证 */
22
+ validateEvent: {
23
23
  type: BooleanConstructor;
24
24
  default: boolean;
25
25
  };
@@ -12,8 +12,8 @@ const segmentedProps = {
12
12
  },
13
13
  /** 尺寸 */
14
14
  size: String,
15
- /** 是否支持表单验证 */
16
- formValidate: {
15
+ /** 是否触发表单验证 */
16
+ validateEvent: {
17
17
  type: Boolean,
18
18
  default: true
19
19
  }
@@ -58,7 +58,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
58
58
  popperOptions: {
59
59
  modifiers: [{ name: "offset", options: { offset: [12, 8] } }]
60
60
  },
61
- formValidate: false
61
+ validateEvent: false
62
62
  }, _ctx.dropdownProps || {}, {
63
63
  ref: "dropdownRef",
64
64
  items: _ctx.items,
@@ -12,6 +12,7 @@
12
12
  & > thead > tr:first-child > th:first-child,
13
13
  & > thead > tr:first-child > td:first-child,
14
14
  &.is-border:not(.has-header) > tr:first-child > td:first-child,
15
+ &.is-border:not(.has-header) > tr:first-child > th:first-child,
15
16
  &.is-border:not(.has-header) > tbody > tr:first-child > td:first-child {
16
17
  border-top-left-radius: $radius;
17
18
  }
@@ -19,17 +20,20 @@
19
20
  & > thead > tr:first-child > th:last-child,
20
21
  & > thead > tr:first-child > td:last-child,
21
22
  &.is-border:not(.has-header) > tr:first-child > td:last-child,
23
+ &.is-border:not(.has-header) > tr:first-child > th:last-child,
22
24
  &.is-border:not(.has-header) > tbody > tr:first-child > td:last-child {
23
25
  border-top-right-radius: $radius;
24
26
  }
25
27
 
26
28
  &.is-border:not(.has-footer) > tr:last-child > td:first-child,
29
+ &.is-border:not(.has-footer) > tr:last-child > th:first-child,
27
30
  &.is-border:not(.has-footer) > tbody > tr:last-child > td:first-child,
28
31
  & > tfoot > tr:last-child > td:first-child {
29
32
  border-bottom-left-radius: $radius;
30
33
  }
31
34
 
32
35
  &.is-border:not(.has-footer) > tr:last-child > td:last-child,
36
+ &.is-border:not(.has-footer) > tr:last-child > th:last-child,
33
37
  &.is-border:not(.has-footer) > tbody > tr:last-child > td:last-child,
34
38
  & > tfoot > tr:last-child > td:last-child {
35
39
  border-bottom-right-radius: $radius;
@@ -9,6 +9,9 @@
9
9
  width: 100%;
10
10
  border-spacing: 0;
11
11
  border-collapse: separate;
12
+ border-width: 0;
13
+ border-style: solid;
14
+ border-color: eleVar('table', 'border-color');
12
15
 
13
16
  /* 单元格样式 */
14
17
  & > tr,
@@ -159,8 +162,8 @@
159
162
 
160
163
  /* 全边框 */
161
164
  &.is-border {
162
- border-top: 1px solid eleVar('table', 'border-color');
163
- border-left: 1px solid eleVar('table', 'border-color');
165
+ border-top-width: 1px;
166
+ border-left-width: 1px;
164
167
 
165
168
  & > tr,
166
169
  & > thead > tr,
@@ -174,7 +177,7 @@
174
177
  }
175
178
 
176
179
  &:not(.has-header) {
177
- border-top: 1px solid eleVar('table', 'border-color');
180
+ border-top-width: 1px;
178
181
  }
179
182
 
180
183
  /* 表格内组件样式优化 */
@@ -187,7 +190,7 @@
187
190
  word-break: break-all;
188
191
 
189
192
  &.is-border {
190
- border-right: 2px solid eleVar('table', 'border-color');
193
+ border-right-width: 2px;
191
194
 
192
195
  & > tr,
193
196
  & > thead > tr,
@@ -436,7 +436,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
436
436
  key: 0,
437
437
  triggerKeys: [],
438
438
  persistent: false,
439
- formValidate: false,
439
+ validateEvent: false,
440
440
  placement: "bottom-start",
441
441
  popperClass: "ele-tab-popup",
442
442
  popperOptions: {
@@ -727,7 +727,6 @@
727
727
 
728
728
  &.sortable-chosen {
729
729
  background: elVar('bg-color');
730
- cursor: move;
731
730
  }
732
731
  }
733
732
 
@@ -1,8 +1,5 @@
1
1
  declare const _default: import('vue').DefineComponent<{
2
- tag: {
3
- type: StringConstructor;
4
- default: string;
5
- };
2
+ tag: StringConstructor;
6
3
  type: import('vue').PropType<import('./types').TextType>;
7
4
  size: import('vue').PropType<import('./types').TextSize>;
8
5
  deleted: BooleanConstructor;
@@ -13,10 +10,7 @@ declare const _default: import('vue').DefineComponent<{
13
10
  iconProps: import('vue').PropType<import('../ele-app/el').ElIconProps>;
14
11
  iconStyle: import('vue').PropType<import('../ele-app/types').StyleValue>;
15
12
  }, unknown, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
16
- tag: {
17
- type: StringConstructor;
18
- default: string;
19
- };
13
+ tag: StringConstructor;
20
14
  type: import('vue').PropType<import('./types').TextType>;
21
15
  size: import('vue').PropType<import('./types').TextSize>;
22
16
  deleted: BooleanConstructor;
@@ -27,7 +21,6 @@ declare const _default: import('vue').DefineComponent<{
27
21
  iconProps: import('vue').PropType<import('../ele-app/el').ElIconProps>;
28
22
  iconStyle: import('vue').PropType<import('../ele-app/types').StyleValue>;
29
23
  }>>, {
30
- tag: string;
31
24
  underline: boolean;
32
25
  deleted: boolean;
33
26
  strong: boolean;
@@ -15,7 +15,7 @@ const _export_sfc = (sfc, props) => {
15
15
  };
16
16
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
17
17
  const _component_ElIcon = resolveComponent("ElIcon");
18
- return openBlock(), createBlock(resolveDynamicComponent(_ctx.tag), {
18
+ return openBlock(), createBlock(resolveDynamicComponent(_ctx.tag || "div"), {
19
19
  class: normalizeClass([
20
20
  "ele-text",
21
21
  { "is-heading": _ctx.type === "heading" },
@@ -8,10 +8,7 @@ import { TextType, TextSize, TextIcon } from './types';
8
8
  */
9
9
  export declare const textProps: {
10
10
  /** 渲染标签 */
11
- tag: {
12
- type: StringConstructor;
13
- default: string;
14
- };
11
+ tag: StringConstructor;
15
12
  /** 类型 */
16
13
  type: PropType<TextType>;
17
14
  /** 文字大小 */
@@ -1,9 +1,6 @@
1
1
  const textProps = {
2
2
  /** 渲染标签 */
3
- tag: {
4
- type: String,
5
- default: "div"
6
- },
3
+ tag: String,
7
4
  /** 类型 */
8
5
  type: String,
9
6
  /** 文字大小 */
@@ -51,6 +51,9 @@ const _sfc_main = defineComponent({
51
51
  setup(props, { emit }) {
52
52
  const imageUrl = computed(() => {
53
53
  var _a;
54
+ if (props.item.thumbnail && props.item.thumbnail !== true) {
55
+ return props.item.thumbnail;
56
+ }
54
57
  if (props.item.url) {
55
58
  return props.item.url;
56
59
  }
@@ -143,7 +146,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
143
146
  item: _ctx.item,
144
147
  imageUrl: _ctx.imageUrl
145
148
  }, () => [
146
- _ctx.listType === "file" || !_ctx.imageUrl ? (openBlock(), createElementBlock("div", _hoisted_2, [
149
+ _ctx.listType === "file" || _ctx.item.thumbnail === false || !_ctx.imageUrl ? (openBlock(), createElementBlock("div", _hoisted_2, [
147
150
  createVNode(_component_ElIcon, { class: "ele-upload-thumbnail-icon" }, {
148
151
  default: withCtx(() => [
149
152
  createVNode(_component_FileOutlined)
@@ -31,6 +31,7 @@ declare const _default: import('vue').DefineComponent<{
31
31
  listType: import('vue').PropType<import('./types').ListType>;
32
32
  beforeUploadClick: import('vue').PropType<import('./types').BeforeUploadClick>;
33
33
  beforeItemEdit: import('vue').PropType<import('./types').BeforeItemEdit>;
34
+ beforePreview: import('vue').PropType<import('./types').BeforePreview>;
34
35
  locale: import('vue').PropType<Partial<UploadLocale>>;
35
36
  }, {
36
37
  ownSlots: string[];
@@ -103,6 +104,7 @@ declare const _default: import('vue').DefineComponent<{
103
104
  listType: import('vue').PropType<import('./types').ListType>;
104
105
  beforeUploadClick: import('vue').PropType<import('./types').BeforeUploadClick>;
105
106
  beforeItemEdit: import('vue').PropType<import('./types').BeforeItemEdit>;
107
+ beforePreview: import('vue').PropType<import('./types').BeforePreview>;
106
108
  locale: import('vue').PropType<Partial<UploadLocale>>;
107
109
  }>> & {
108
110
  "onUpdate:modelValue"?: ((_value: UploadItem[]) => any) | undefined;