ele-admin-plus 1.2.2-beta.2 → 1.2.2-beta.4
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.
- package/es/ele-check-card/index.js +2 -2
- package/es/ele-check-card/types.d.ts +2 -0
- package/es/ele-config-provider/components/receiver-view.js +16 -14
- package/es/ele-dropdown/components/pro-dropdown.d.ts +3 -3
- package/es/ele-dropdown/index.d.ts +5 -5
- package/es/ele-dropdown/index.js +1 -1
- package/es/ele-dropdown/props.d.ts +6 -6
- package/es/ele-dropdown/props.js +2 -2
- package/es/ele-ellipsis/index.d.ts +2 -9
- package/es/ele-ellipsis/props.d.ts +1 -4
- package/es/ele-file-list/index.js +1 -1
- package/es/ele-printer/util.js +17 -12
- package/es/ele-pro-table/components/table-tools.js +1 -1
- package/es/ele-segmented/index.d.ts +3 -3
- package/es/ele-segmented/index.js +1 -1
- package/es/ele-segmented/props.d.ts +2 -2
- package/es/ele-segmented/props.js +2 -2
- package/es/ele-tab-wrap/components/tab-dropdown.js +1 -1
- package/es/ele-table/style/css-var.scss +4 -0
- package/es/ele-table/style/index.scss +7 -4
- package/es/ele-tabs/index.js +1 -1
- package/es/ele-tabs/style/index.scss +0 -1
- package/es/ele-text/index.d.ts +2 -9
- package/es/ele-text/index.js +1 -1
- package/es/ele-text/props.d.ts +1 -4
- package/es/ele-text/props.js +1 -4
- package/es/ele-tree-select/index.d.ts +1 -0
- package/es/ele-tree-select/index.js +2 -6
- package/es/ele-upload-list/components/list-item.js +4 -1
- package/es/ele-upload-list/index.d.ts +2 -0
- package/es/ele-upload-list/index.js +22 -16
- package/es/ele-upload-list/props.d.ts +4 -2
- package/es/ele-upload-list/props.js +3 -1
- package/es/ele-upload-list/style/index.scss +2 -1
- package/es/ele-upload-list/types.d.ts +7 -0
- package/es/icons/InsertColumnOutlined.d.ts +2 -0
- package/es/icons/InsertColumnOutlined.js +35 -0
- package/es/icons/InsertRowOutlined.d.ts +2 -0
- package/es/icons/InsertRowOutlined.js +35 -0
- package/es/icons/PlusSquareDashOutlined.d.ts +2 -0
- package/es/icons/PlusSquareDashOutlined.js +29 -0
- package/es/icons/RecoverOutlined.d.ts +2 -0
- package/es/icons/RecoverOutlined.js +30 -0
- package/es/icons/RollbackOutlined.d.ts +2 -0
- package/es/icons/RollbackOutlined.js +30 -0
- package/es/icons/SizeCompactOutlined.js +5 -11
- package/es/icons/SizeMiddleOutlined.js +5 -11
- package/es/icons/SizeSlackOutlined.js +4 -4
- package/es/icons/index.d.ts +5 -0
- package/es/icons/index.js +116 -106
- package/es/utils/core.d.ts +1 -1
- package/es/utils/core.js +13 -6
- package/es/utils/hook.d.ts +0 -12
- package/es/utils/hook.js +1 -42
- package/lib/ele-check-card/index.cjs +2 -2
- package/lib/ele-check-card/types.d.ts +2 -0
- package/lib/ele-config-provider/components/receiver-view.cjs +2 -2
- package/lib/ele-dropdown/components/pro-dropdown.d.ts +3 -3
- package/lib/ele-dropdown/index.cjs +1 -1
- package/lib/ele-dropdown/index.d.ts +5 -5
- package/lib/ele-dropdown/props.cjs +2 -2
- package/lib/ele-dropdown/props.d.ts +6 -6
- package/lib/ele-ellipsis/index.d.ts +2 -9
- package/lib/ele-ellipsis/props.d.ts +1 -4
- package/lib/ele-file-list/index.cjs +1 -1
- package/lib/ele-printer/util.cjs +17 -12
- package/lib/ele-pro-table/components/table-tools.cjs +1 -1
- package/lib/ele-segmented/index.cjs +1 -1
- package/lib/ele-segmented/index.d.ts +3 -3
- package/lib/ele-segmented/props.cjs +2 -2
- package/lib/ele-segmented/props.d.ts +2 -2
- package/lib/ele-tab-wrap/components/tab-dropdown.cjs +1 -1
- package/lib/ele-table/style/css-var.scss +4 -0
- package/lib/ele-table/style/index.scss +7 -4
- package/lib/ele-tabs/index.cjs +1 -1
- package/lib/ele-tabs/style/index.scss +0 -1
- package/lib/ele-text/index.cjs +1 -1
- package/lib/ele-text/index.d.ts +2 -9
- package/lib/ele-text/props.cjs +1 -4
- package/lib/ele-text/props.d.ts +1 -4
- package/lib/ele-tree-select/index.cjs +2 -6
- package/lib/ele-tree-select/index.d.ts +1 -0
- package/lib/ele-upload-list/components/list-item.cjs +4 -1
- package/lib/ele-upload-list/index.cjs +22 -16
- package/lib/ele-upload-list/index.d.ts +2 -0
- package/lib/ele-upload-list/props.cjs +3 -1
- package/lib/ele-upload-list/props.d.ts +4 -2
- package/lib/ele-upload-list/style/index.scss +2 -1
- package/lib/ele-upload-list/types.d.ts +7 -0
- package/lib/icons/InsertColumnOutlined.cjs +34 -0
- package/lib/icons/InsertColumnOutlined.d.ts +2 -0
- package/lib/icons/InsertRowOutlined.cjs +34 -0
- package/lib/icons/InsertRowOutlined.d.ts +2 -0
- package/lib/icons/PlusSquareDashOutlined.cjs +28 -0
- package/lib/icons/PlusSquareDashOutlined.d.ts +2 -0
- package/lib/icons/RecoverOutlined.cjs +29 -0
- package/lib/icons/RecoverOutlined.d.ts +2 -0
- package/lib/icons/RollbackOutlined.cjs +29 -0
- package/lib/icons/RollbackOutlined.d.ts +2 -0
- package/lib/icons/SizeCompactOutlined.cjs +4 -10
- package/lib/icons/SizeMiddleOutlined.cjs +4 -10
- package/lib/icons/SizeSlackOutlined.cjs +4 -4
- package/lib/icons/index.cjs +10 -0
- package/lib/icons/index.d.ts +5 -0
- package/lib/utils/core.cjs +13 -6
- package/lib/utils/core.d.ts +1 -1
- package/lib/utils/hook.cjs +0 -41
- package/lib/utils/hook.d.ts +0 -12
- 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
|
|
@@ -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(""),
|
|
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
|
-
|
|
21
|
+
F.push(S.split("").reverse().join("")), w = l;
|
|
22
22
|
}
|
|
23
|
-
return
|
|
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 = "",
|
|
25
|
+
let n = "", _, f, g, C, p, b, B, A = 0;
|
|
26
26
|
for (; A < c.length; )
|
|
27
|
-
|
|
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,
|
|
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 ? (
|
|
32
|
-
(s & 15) << 12 | (
|
|
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(
|
|
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:
|
|
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 (
|
|
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("."),
|
|
92
|
+
const g = n.split("."), C = f.split(".");
|
|
91
93
|
for (let p = g.length - 1; p >= 0; p--)
|
|
92
|
-
if (g[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 (
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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 (...
|
|
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
|
-
|
|
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 (...
|
|
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;
|
package/es/ele-dropdown/index.js
CHANGED
|
@@ -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.
|
|
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
|
-
... /**
|
|
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
|
-
|
|
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
|
-
... /**
|
|
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;
|
package/es/ele-dropdown/props.js
CHANGED
|
@@ -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
|
-
|
|
360
|
+
validateEvent: false
|
|
361
361
|
}, _ctx.contextMenuProps || {}, {
|
|
362
362
|
ref: "ctxMenuDropdownRef",
|
|
363
363
|
componentType: "pro",
|
package/es/ele-printer/util.js
CHANGED
|
@@ -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
|
-
|
|
101
|
-
|
|
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
|
|
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
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
document.
|
|
141
|
-
|
|
142
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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.
|
|
19
|
+
if (props.validateEvent) {
|
|
20
20
|
validateChange();
|
|
21
21
|
}
|
|
22
22
|
emit("change", value);
|
|
@@ -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
|
-
|
|
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
|
|
163
|
-
border-left: 1px
|
|
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
|
|
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
|
|
193
|
+
border-right-width: 2px;
|
|
191
194
|
|
|
192
195
|
& > tr,
|
|
193
196
|
& > thead > tr,
|
package/es/ele-tabs/index.js
CHANGED
|
@@ -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
|
-
|
|
439
|
+
validateEvent: false,
|
|
440
440
|
placement: "bottom-start",
|
|
441
441
|
popperClass: "ele-tab-popup",
|
|
442
442
|
popperOptions: {
|
package/es/ele-text/index.d.ts
CHANGED
|
@@ -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;
|
package/es/ele-text/index.js
CHANGED
|
@@ -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" },
|
package/es/ele-text/props.d.ts
CHANGED
|
@@ -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
|
/** 文字大小 */
|
package/es/ele-text/props.js
CHANGED
|
@@ -66,6 +66,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
66
66
|
updatePopover: () => void;
|
|
67
67
|
treeFilter: (keywords: string, item: DataItem) => any;
|
|
68
68
|
updateVisible: (visible: boolean) => void;
|
|
69
|
+
updateSelectedItems: (modelValue: SelectValue) => void;
|
|
69
70
|
handleSelectFilter: (keywords: string) => void;
|
|
70
71
|
handleSelectRemove: (item: SelectedItem) => void;
|
|
71
72
|
handleSelectClear: () => void;
|
|
@@ -259,12 +259,7 @@ const _sfc_main = defineComponent({
|
|
|
259
259
|
watch(
|
|
260
260
|
() => props.modelValue,
|
|
261
261
|
(modelValue) => {
|
|
262
|
-
|
|
263
|
-
updateSelectedItems(modelValue);
|
|
264
|
-
} else {
|
|
265
|
-
const keys = treeRef.value && treeRef.value.getCheckedKeys() || [];
|
|
266
|
-
updateSelectedItems(keys);
|
|
267
|
-
}
|
|
262
|
+
updateSelectedItems(modelValue);
|
|
268
263
|
},
|
|
269
264
|
{ deep: true }
|
|
270
265
|
);
|
|
@@ -355,6 +350,7 @@ const _sfc_main = defineComponent({
|
|
|
355
350
|
updatePopover,
|
|
356
351
|
treeFilter,
|
|
357
352
|
updateVisible,
|
|
353
|
+
updateSelectedItems,
|
|
358
354
|
handleSelectFilter,
|
|
359
355
|
handleSelectRemove,
|
|
360
356
|
handleSelectClear,
|