ra-element 0.1.74 → 0.1.75
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/lib/ra-element.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as N, useSlots as Ma, ref as W, computed as I, watch as de, nextTick as gt, onMounted as Fa, onUnmounted as La, createElementBlock as
|
|
1
|
+
import { defineComponent as N, useSlots as Ma, ref as W, computed as I, watch as de, nextTick as gt, onMounted as Fa, onUnmounted as La, createElementBlock as h, openBlock as s, createElementVNode as z, normalizeStyle as Ce, createCommentVNode as B, renderSlot as O, Fragment as M, renderList as J, createBlock as $, resolveDynamicComponent as Ge, useTemplateRef as ee, unref as w, mergeProps as A, createSlots as ne, withCtx as v, normalizeProps as Qe, guardReactiveProps as et, createTextVNode as Y, toDisplayString as k, mergeModels as ke, useModel as tt, reactive as qt, resolveComponent as fe, createVNode as U, withModifiers as Oe, defineAsyncComponent as ae, useAttrs as Ua, withDirectives as za } from "vue";
|
|
2
2
|
import { ElButton as Ba, ElCheckboxGroup as Da, ElCheckboxButton as Na, ElCheckbox as at, dayjs as le, ElDatePicker as Ha, ElDialog as Ga, ElIcon as Ee, ElCollapse as Ya, ElCollapseItem as qa, ElForm as Wa, ElFormItem as Wt, ElInput as Kt, ElRadioGroup as Ka, ElRadioButton as Xa, ElRadio as Ja, ElSelect as Za, ElOption as Qa, ElTreeSelect as en, ElPagination as Ye, ElTableColumn as qe, ElTable as tn, vLoading as an, ElTooltip as nn, ElUpload as rn, ElMessage as yt } from "element-plus";
|
|
3
3
|
const ln = /* @__PURE__ */ N({
|
|
4
4
|
name: "RaAutoScroll",
|
|
@@ -20,15 +20,15 @@ const ln = /* @__PURE__ */ N({
|
|
|
20
20
|
itemGap: { type: Number, default: 15 }
|
|
21
21
|
},
|
|
22
22
|
setup(e, { expose: t }) {
|
|
23
|
-
const a = e, n = Ma(), l = W(null), r = W(null), d = W(!1), o = W(!1), f = W(0), c = W(0), i = W(0), u = W(0),
|
|
23
|
+
const a = e, n = Ma(), l = W(null), r = W(null), d = W(!1), o = W(!1), f = W(0), c = W(0), i = W(0), u = W(0), b = W(null), R = W(0), y = I(() => (n?.default())[0]?.children?.length || 0), E = I(() => y.value > a.showItems), j = I(() => a.showItems), L = I(() => {
|
|
24
24
|
if (!E.value || !n.default)
|
|
25
25
|
return [];
|
|
26
|
-
const
|
|
26
|
+
const T = n?.default();
|
|
27
27
|
if (a.direction === "right") {
|
|
28
|
-
const V = Math.max(0,
|
|
29
|
-
return
|
|
28
|
+
const V = Math.max(0, T[0]?.children?.length - j.value);
|
|
29
|
+
return T[0]?.children?.slice(V);
|
|
30
30
|
} else
|
|
31
|
-
return
|
|
31
|
+
return T[0]?.children?.slice(0, j.value);
|
|
32
32
|
}), g = I(() => ({
|
|
33
33
|
display: "flex",
|
|
34
34
|
flexDirection: "row",
|
|
@@ -41,28 +41,28 @@ const ln = /* @__PURE__ */ N({
|
|
|
41
41
|
a.pauseOnHover && (o.value = !1, d.value = !1);
|
|
42
42
|
}, x = () => {
|
|
43
43
|
if (!l.value || !r.value) return;
|
|
44
|
-
const
|
|
44
|
+
const T = Array.from(r.value.children);
|
|
45
45
|
if (a.itemWidth <= 0 && y.value > 0) {
|
|
46
46
|
let V = 0;
|
|
47
|
-
a.direction === "right" &&
|
|
48
|
-
const G =
|
|
47
|
+
a.direction === "right" && L.value.length > 0 && (V = L.value.length);
|
|
48
|
+
const G = T[V], m = window.getComputedStyle(G), ye = parseFloat(m.marginLeft) || 0, C = parseFloat(m.marginRight) || 0;
|
|
49
49
|
u.value = ye + C || a.itemGap, i.value = G.offsetWidth + ye + C;
|
|
50
50
|
} else
|
|
51
51
|
i.value = a.itemWidth + a.itemGap, u.value = a.itemGap;
|
|
52
52
|
y.value <= a.showItems && (P(), R.value = 0), l.value && (c.value = a.showItems * i.value + u.value, l.value.style.width = c.value + "px", l.value.style.paddingLeft = u.value + "px"), f.value = i.value * (y.value + j.value);
|
|
53
53
|
}, q = () => {
|
|
54
54
|
if (a.disabled || d.value || o.value || y.value <= a.showItems) {
|
|
55
|
-
|
|
55
|
+
b.value = requestAnimationFrame(q);
|
|
56
56
|
return;
|
|
57
57
|
}
|
|
58
|
-
const
|
|
58
|
+
const T = a.direction === "left" ? -1 : 1, V = a.speed / 60 * T;
|
|
59
59
|
R.value += V;
|
|
60
60
|
const G = i.value * y.value;
|
|
61
|
-
a.direction === "left" ? Math.abs(R.value) >= G && (R.value = R.value + G) : R.value >= 0 && (R.value = R.value - G),
|
|
61
|
+
a.direction === "left" ? Math.abs(R.value) >= G && (R.value = R.value + G) : R.value >= 0 && (R.value = R.value - G), b.value = requestAnimationFrame(q);
|
|
62
62
|
}, S = () => {
|
|
63
|
-
x(), !(y.value <= a.showItems) && (
|
|
63
|
+
x(), !(y.value <= a.showItems) && (b.value && cancelAnimationFrame(b.value), a.direction === "right" ? R.value = -(i.value * (y.value + j.value) - c.value + u.value) : R.value = 0, b.value = requestAnimationFrame(q));
|
|
64
64
|
}, P = () => {
|
|
65
|
-
|
|
65
|
+
b.value && (cancelAnimationFrame(b.value), b.value = null);
|
|
66
66
|
};
|
|
67
67
|
de([() => a.showItems, () => a.disabled, () => a.speed, () => a.direction, () => a.itemWidth], () => {
|
|
68
68
|
gt(() => {
|
|
@@ -81,7 +81,7 @@ const ln = /* @__PURE__ */ N({
|
|
|
81
81
|
}), t({
|
|
82
82
|
start: S,
|
|
83
83
|
stop: P
|
|
84
|
-
}), (
|
|
84
|
+
}), (T, V) => (s(), h("div", {
|
|
85
85
|
ref_key: "containerRef",
|
|
86
86
|
ref: l,
|
|
87
87
|
class: "ra-auto-scroll",
|
|
@@ -89,19 +89,19 @@ const ln = /* @__PURE__ */ N({
|
|
|
89
89
|
onMouseenter: p,
|
|
90
90
|
onMouseleave: _
|
|
91
91
|
}, [
|
|
92
|
-
|
|
92
|
+
z("div", {
|
|
93
93
|
ref_key: "wrapperRef",
|
|
94
94
|
ref: r,
|
|
95
95
|
class: "ra-auto-scroll-wrapper",
|
|
96
96
|
style: Ce(g.value)
|
|
97
97
|
}, [
|
|
98
|
-
E.value && a.direction === "right" ? (s(!0),
|
|
98
|
+
E.value && a.direction === "right" ? (s(!0), h(M, { key: 0 }, J(L.value, (G, m) => (s(), $(Ge(G), {
|
|
99
99
|
key: "clone" + m
|
|
100
|
-
}))), 128)) :
|
|
101
|
-
O(
|
|
102
|
-
E.value && a.direction === "left" ? (s(!0),
|
|
100
|
+
}))), 128)) : B("", !0),
|
|
101
|
+
O(T.$slots, "default", {}, void 0, !0),
|
|
102
|
+
E.value && a.direction === "left" ? (s(!0), h(M, { key: 1 }, J(L.value, (G, m) => (s(), $(Ge(G), {
|
|
103
103
|
key: "clone" + m
|
|
104
|
-
}))), 128)) :
|
|
104
|
+
}))), 128)) : B("", !0)
|
|
105
105
|
], 4)
|
|
106
106
|
], 544));
|
|
107
107
|
}
|
|
@@ -125,9 +125,9 @@ const ln = /* @__PURE__ */ N({
|
|
|
125
125
|
l.click ? (r.value = !0, await l.click(), r.value = !1) : n("click");
|
|
126
126
|
}, o = I(() => l.cssStyle === "1" ? "common-style" : ""), f = ee("componentRef"), c = ["ref", "size", "type", "disabled", "shouldAddSpace"], i = {};
|
|
127
127
|
return c.forEach((u) => {
|
|
128
|
-
i[u] = (...
|
|
128
|
+
i[u] = (...b) => {
|
|
129
129
|
if (f.value && typeof f.value[u] == "function")
|
|
130
|
-
return f.value[u](...
|
|
130
|
+
return f.value[u](...b);
|
|
131
131
|
if (f.value && f.value[u] !== void 0)
|
|
132
132
|
return f.value[u];
|
|
133
133
|
};
|
|
@@ -135,7 +135,7 @@ const ln = /* @__PURE__ */ N({
|
|
|
135
135
|
// @doc 方法,获取原element组件实例
|
|
136
136
|
component: () => f.value,
|
|
137
137
|
...i
|
|
138
|
-
}), (u,
|
|
138
|
+
}), (u, b) => (s(), $(w(Ba), A({
|
|
139
139
|
class: [o.value],
|
|
140
140
|
ref_key: "componentRef",
|
|
141
141
|
ref: f
|
|
@@ -144,7 +144,7 @@ const ln = /* @__PURE__ */ N({
|
|
|
144
144
|
onClick: d
|
|
145
145
|
}), ne({
|
|
146
146
|
default: v(() => [
|
|
147
|
-
u.$slots.default ? O(u.$slots, "default", { key: 0 }, void 0, !0) :
|
|
147
|
+
u.$slots.default ? O(u.$slots, "default", { key: 0 }, void 0, !0) : B("", !0)
|
|
148
148
|
]),
|
|
149
149
|
_: 2
|
|
150
150
|
}, [
|
|
@@ -180,7 +180,7 @@ const ln = /* @__PURE__ */ N({
|
|
|
180
180
|
return (t, a) => (s(), $(w(Da), Qe(et(t.$attrs)), {
|
|
181
181
|
default: v(() => [
|
|
182
182
|
O(t.$slots, "default"),
|
|
183
|
-
(s(!0),
|
|
183
|
+
(s(!0), h(M, null, J(e.options, (n) => (s(), h(M, {
|
|
184
184
|
key: n.value
|
|
185
185
|
}, [
|
|
186
186
|
e.isButton ? (s(), $(w(Na), A({
|
|
@@ -279,14 +279,14 @@ const ln = /* @__PURE__ */ N({
|
|
|
279
279
|
}, i.$attrs, {
|
|
280
280
|
shortcuts: d.value,
|
|
281
281
|
modelValue: l.value,
|
|
282
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
283
|
-
onChange: u[1] || (u[1] = (
|
|
282
|
+
"onUpdate:modelValue": u[0] || (u[0] = (b) => l.value = b),
|
|
283
|
+
onChange: u[1] || (u[1] = (b) => l.value = b),
|
|
284
284
|
valueFormat: r.value,
|
|
285
285
|
type: e.type,
|
|
286
286
|
style: { width: "100%" }
|
|
287
287
|
}), ne({
|
|
288
288
|
default: v(() => [
|
|
289
|
-
i.$slots.default ? O(i.$slots, "default", { key: 0 }) :
|
|
289
|
+
i.$slots.default ? O(i.$slots, "default", { key: 0 }) : B("", !0)
|
|
290
290
|
]),
|
|
291
291
|
_: 2
|
|
292
292
|
}, [
|
|
@@ -366,7 +366,7 @@ const ln = /* @__PURE__ */ N({
|
|
|
366
366
|
overflow: e.overflow
|
|
367
367
|
}), ne({
|
|
368
368
|
default: v(() => [
|
|
369
|
-
o.$slots.default ? O(o.$slots, "default", { key: 0 }) :
|
|
369
|
+
o.$slots.default ? O(o.$slots, "default", { key: 0 }) : B("", !0)
|
|
370
370
|
]),
|
|
371
371
|
_: 2
|
|
372
372
|
}, [
|
|
@@ -392,15 +392,15 @@ var sn = /* @__PURE__ */ N({
|
|
|
392
392
|
name: "CircleClose",
|
|
393
393
|
__name: "circle-close",
|
|
394
394
|
setup(e) {
|
|
395
|
-
return (t, a) => (s(),
|
|
395
|
+
return (t, a) => (s(), h("svg", {
|
|
396
396
|
xmlns: "http://www.w3.org/2000/svg",
|
|
397
397
|
viewBox: "0 0 1024 1024"
|
|
398
398
|
}, [
|
|
399
|
-
|
|
399
|
+
z("path", {
|
|
400
400
|
fill: "currentColor",
|
|
401
401
|
d: "m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"
|
|
402
402
|
}),
|
|
403
|
-
|
|
403
|
+
z("path", {
|
|
404
404
|
fill: "currentColor",
|
|
405
405
|
d: "M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"
|
|
406
406
|
})
|
|
@@ -410,11 +410,11 @@ var sn = /* @__PURE__ */ N({
|
|
|
410
410
|
name: "Delete",
|
|
411
411
|
__name: "delete",
|
|
412
412
|
setup(e) {
|
|
413
|
-
return (t, a) => (s(),
|
|
413
|
+
return (t, a) => (s(), h("svg", {
|
|
414
414
|
xmlns: "http://www.w3.org/2000/svg",
|
|
415
415
|
viewBox: "0 0 1024 1024"
|
|
416
416
|
}, [
|
|
417
|
-
|
|
417
|
+
z("path", {
|
|
418
418
|
fill: "currentColor",
|
|
419
419
|
d: "M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"
|
|
420
420
|
})
|
|
@@ -424,11 +424,11 @@ var sn = /* @__PURE__ */ N({
|
|
|
424
424
|
name: "Download",
|
|
425
425
|
__name: "download",
|
|
426
426
|
setup(e) {
|
|
427
|
-
return (t, a) => (s(),
|
|
427
|
+
return (t, a) => (s(), h("svg", {
|
|
428
428
|
xmlns: "http://www.w3.org/2000/svg",
|
|
429
429
|
viewBox: "0 0 1024 1024"
|
|
430
430
|
}, [
|
|
431
|
-
|
|
431
|
+
z("path", {
|
|
432
432
|
fill: "currentColor",
|
|
433
433
|
d: "M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-253.696 236.288-236.352 45.248 45.248L508.8 704 192 387.2l45.248-45.248L480 584.704V128h64z"
|
|
434
434
|
})
|
|
@@ -438,11 +438,11 @@ var sn = /* @__PURE__ */ N({
|
|
|
438
438
|
name: "Plus",
|
|
439
439
|
__name: "plus",
|
|
440
440
|
setup(e) {
|
|
441
|
-
return (t, a) => (s(),
|
|
441
|
+
return (t, a) => (s(), h("svg", {
|
|
442
442
|
xmlns: "http://www.w3.org/2000/svg",
|
|
443
443
|
viewBox: "0 0 1024 1024"
|
|
444
444
|
}, [
|
|
445
|
-
|
|
445
|
+
z("path", {
|
|
446
446
|
fill: "currentColor",
|
|
447
447
|
d: "M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"
|
|
448
448
|
})
|
|
@@ -1130,9 +1130,9 @@ var zt = he && he.isMap, No = zt ? ot(zt) : Do, Ho = "[object Set]";
|
|
|
1130
1130
|
function Go(e) {
|
|
1131
1131
|
return ue(e) && Q(e) == Ho;
|
|
1132
1132
|
}
|
|
1133
|
-
var Bt = he && he.isSet, Yo = Bt ? ot(Bt) : Go, qo = 1, Wo = 2, Ko = 4, wa = "[object Arguments]", Xo = "[object Array]", Jo = "[object Boolean]", Zo = "[object Date]", Qo = "[object Error]", xa = "[object Function]", eu = "[object GeneratorFunction]", tu = "[object Map]", au = "[object Number]", Ca = "[object Object]", nu = "[object RegExp]", ru = "[object Set]", lu = "[object String]", ou = "[object Symbol]", uu = "[object WeakMap]", su = "[object ArrayBuffer]", iu = "[object DataView]", cu = "[object Float32Array]", du = "[object Float64Array]", fu = "[object Int8Array]", pu = "[object Int16Array]", mu = "[object Int32Array]", vu = "[object Uint8Array]", gu = "[object Uint8ClampedArray]", yu = "[object Uint16Array]", hu = "[object Uint32Array]",
|
|
1134
|
-
|
|
1135
|
-
|
|
1133
|
+
var Bt = he && he.isSet, Yo = Bt ? ot(Bt) : Go, qo = 1, Wo = 2, Ko = 4, wa = "[object Arguments]", Xo = "[object Array]", Jo = "[object Boolean]", Zo = "[object Date]", Qo = "[object Error]", xa = "[object Function]", eu = "[object GeneratorFunction]", tu = "[object Map]", au = "[object Number]", Ca = "[object Object]", nu = "[object RegExp]", ru = "[object Set]", lu = "[object String]", ou = "[object Symbol]", uu = "[object WeakMap]", su = "[object ArrayBuffer]", iu = "[object DataView]", cu = "[object Float32Array]", du = "[object Float64Array]", fu = "[object Int8Array]", pu = "[object Int16Array]", mu = "[object Int32Array]", vu = "[object Uint8Array]", gu = "[object Uint8ClampedArray]", yu = "[object Uint16Array]", hu = "[object Uint32Array]", D = {};
|
|
1134
|
+
D[wa] = D[Xo] = D[su] = D[iu] = D[Jo] = D[Zo] = D[cu] = D[du] = D[fu] = D[pu] = D[mu] = D[tu] = D[au] = D[Ca] = D[nu] = D[ru] = D[lu] = D[ou] = D[vu] = D[gu] = D[yu] = D[hu] = !0;
|
|
1135
|
+
D[Qo] = D[xa] = D[uu] = !1;
|
|
1136
1136
|
function Se(e, t, a, n, l, r) {
|
|
1137
1137
|
var d, o = t & qo, f = t & Wo, c = t & Ko;
|
|
1138
1138
|
if (a && (d = l ? a(e, n, l, r) : a(e)), d !== void 0)
|
|
@@ -1144,14 +1144,14 @@ function Se(e, t, a, n, l, r) {
|
|
|
1144
1144
|
if (d = mo(e), !o)
|
|
1145
1145
|
return Gn(e, d);
|
|
1146
1146
|
} else {
|
|
1147
|
-
var u = Q(e),
|
|
1147
|
+
var u = Q(e), b = u == xa || u == eu;
|
|
1148
1148
|
if (Pe(e))
|
|
1149
1149
|
return Zl(e, o);
|
|
1150
|
-
if (u == Ca || u == wa ||
|
|
1151
|
-
if (d = f ||
|
|
1150
|
+
if (u == Ca || u == wa || b && !l) {
|
|
1151
|
+
if (d = f || b ? {} : zo(e), !o)
|
|
1152
1152
|
return f ? ro(e, Xl(d, e)) : ao(e, Kl(d, e));
|
|
1153
1153
|
} else {
|
|
1154
|
-
if (!
|
|
1154
|
+
if (!D[u])
|
|
1155
1155
|
return l ? e : {};
|
|
1156
1156
|
d = Uo(e, u, o);
|
|
1157
1157
|
}
|
|
@@ -1162,12 +1162,12 @@ function Se(e, t, a, n, l, r) {
|
|
|
1162
1162
|
return R;
|
|
1163
1163
|
r.set(e, d), Yo(e) ? e.forEach(function(j) {
|
|
1164
1164
|
d.add(Se(j, t, a, j, e, r));
|
|
1165
|
-
}) : No(e) && e.forEach(function(j,
|
|
1166
|
-
d.set(
|
|
1165
|
+
}) : No(e) && e.forEach(function(j, L) {
|
|
1166
|
+
d.set(L, Se(j, t, a, L, e, r));
|
|
1167
1167
|
});
|
|
1168
1168
|
var y = c ? f ? Sa : Ke : f ? st : ut, E = i ? void 0 : y(e);
|
|
1169
|
-
return Qn(E || e, function(j,
|
|
1170
|
-
E && (
|
|
1169
|
+
return Qn(E || e, function(j, L) {
|
|
1170
|
+
E && (L = j, j = e[L]), oa(d, L, Se(j, t, a, L, e, r));
|
|
1171
1171
|
}), d;
|
|
1172
1172
|
}
|
|
1173
1173
|
var bu = 1, Tu = 4;
|
|
@@ -1205,7 +1205,7 @@ function _a(e, t, a, n, l, r) {
|
|
|
1205
1205
|
var c = r.get(e), i = r.get(t);
|
|
1206
1206
|
if (c && i)
|
|
1207
1207
|
return c == t && i == e;
|
|
1208
|
-
var u = -1,
|
|
1208
|
+
var u = -1, b = !0, R = a & Au ? new Me() : void 0;
|
|
1209
1209
|
for (r.set(e, t), r.set(t, e); ++u < o; ) {
|
|
1210
1210
|
var y = e[u], E = t[u];
|
|
1211
1211
|
if (n)
|
|
@@ -1213,23 +1213,23 @@ function _a(e, t, a, n, l, r) {
|
|
|
1213
1213
|
if (j !== void 0) {
|
|
1214
1214
|
if (j)
|
|
1215
1215
|
continue;
|
|
1216
|
-
|
|
1216
|
+
b = !1;
|
|
1217
1217
|
break;
|
|
1218
1218
|
}
|
|
1219
1219
|
if (R) {
|
|
1220
|
-
if (!xu(t, function(
|
|
1221
|
-
if (!Cu(R, g) && (y ===
|
|
1220
|
+
if (!xu(t, function(L, g) {
|
|
1221
|
+
if (!Cu(R, g) && (y === L || l(y, L, a, n, r)))
|
|
1222
1222
|
return R.push(g);
|
|
1223
1223
|
})) {
|
|
1224
|
-
|
|
1224
|
+
b = !1;
|
|
1225
1225
|
break;
|
|
1226
1226
|
}
|
|
1227
1227
|
} else if (!(y === E || l(y, E, a, n, r))) {
|
|
1228
|
-
|
|
1228
|
+
b = !1;
|
|
1229
1229
|
break;
|
|
1230
1230
|
}
|
|
1231
1231
|
}
|
|
1232
|
-
return r.delete(e), r.delete(t),
|
|
1232
|
+
return r.delete(e), r.delete(t), b;
|
|
1233
1233
|
}
|
|
1234
1234
|
function Ou(e) {
|
|
1235
1235
|
var t = -1, a = Array(e.size);
|
|
@@ -1285,8 +1285,8 @@ function qu(e, t, a, n, l, r) {
|
|
|
1285
1285
|
if (f != i && !d)
|
|
1286
1286
|
return !1;
|
|
1287
1287
|
for (var u = f; u--; ) {
|
|
1288
|
-
var
|
|
1289
|
-
if (!(d ?
|
|
1288
|
+
var b = o[u];
|
|
1289
|
+
if (!(d ? b in t : Yu.call(t, b)))
|
|
1290
1290
|
return !1;
|
|
1291
1291
|
}
|
|
1292
1292
|
var R = r.get(e), y = r.get(t);
|
|
@@ -1295,15 +1295,15 @@ function qu(e, t, a, n, l, r) {
|
|
|
1295
1295
|
var E = !0;
|
|
1296
1296
|
r.set(e, t), r.set(t, e);
|
|
1297
1297
|
for (var j = d; ++u < f; ) {
|
|
1298
|
-
|
|
1299
|
-
var
|
|
1298
|
+
b = o[u];
|
|
1299
|
+
var L = e[b], g = t[b];
|
|
1300
1300
|
if (n)
|
|
1301
|
-
var p = d ? n(g,
|
|
1302
|
-
if (!(p === void 0 ?
|
|
1301
|
+
var p = d ? n(g, L, b, t, e, r) : n(L, g, b, e, t, r);
|
|
1302
|
+
if (!(p === void 0 ? L === g || l(L, g, a, n, r) : p)) {
|
|
1303
1303
|
E = !1;
|
|
1304
1304
|
break;
|
|
1305
1305
|
}
|
|
1306
|
-
j || (j =
|
|
1306
|
+
j || (j = b == "constructor");
|
|
1307
1307
|
}
|
|
1308
1308
|
if (E && !j) {
|
|
1309
1309
|
var _ = e.constructor, x = t.constructor;
|
|
@@ -1315,13 +1315,13 @@ var Wu = 1, Nt = "[object Arguments]", Ht = "[object Array]", Re = "[object Obje
|
|
|
1315
1315
|
function Xu(e, t, a, n, l, r) {
|
|
1316
1316
|
var d = se(e), o = se(t), f = d ? Ht : Q(e), c = o ? Ht : Q(t);
|
|
1317
1317
|
f = f == Nt ? Re : f, c = c == Nt ? Re : c;
|
|
1318
|
-
var i = f == Re, u = c == Re,
|
|
1319
|
-
if (
|
|
1318
|
+
var i = f == Re, u = c == Re, b = f == c;
|
|
1319
|
+
if (b && Pe(e)) {
|
|
1320
1320
|
if (!Pe(t))
|
|
1321
1321
|
return !1;
|
|
1322
1322
|
d = !0, i = !1;
|
|
1323
1323
|
}
|
|
1324
|
-
if (
|
|
1324
|
+
if (b && !i)
|
|
1325
1325
|
return r || (r = new oe()), d || pa(e) ? _a(e, t, a, n, l, r) : Nu(e, t, f, a, n, l, r);
|
|
1326
1326
|
if (!(a & Wu)) {
|
|
1327
1327
|
var R = i && Gt.call(e, "__wrapped__"), y = u && Gt.call(t, "__wrapped__");
|
|
@@ -1330,7 +1330,7 @@ function Xu(e, t, a, n, l, r) {
|
|
|
1330
1330
|
return r || (r = new oe()), l(E, j, a, n, r);
|
|
1331
1331
|
}
|
|
1332
1332
|
}
|
|
1333
|
-
return
|
|
1333
|
+
return b ? (r || (r = new oe()), qu(e, t, a, n, l, r)) : !1;
|
|
1334
1334
|
}
|
|
1335
1335
|
function Aa(e, t, a, n, l) {
|
|
1336
1336
|
return e === t ? !0 : e == null || t == null || !ue(e) && !ue(t) ? e !== e && t !== t : Xu(e, t, a, n, Aa, l);
|
|
@@ -1424,7 +1424,7 @@ const ls = ["title"], os = {
|
|
|
1424
1424
|
);
|
|
1425
1425
|
const u = () => {
|
|
1426
1426
|
l.value = !0;
|
|
1427
|
-
},
|
|
1427
|
+
}, b = () => {
|
|
1428
1428
|
const g = [];
|
|
1429
1429
|
Object.keys(d).forEach((p) => {
|
|
1430
1430
|
d[p] && g.push(p);
|
|
@@ -1449,41 +1449,41 @@ const ls = ["title"], os = {
|
|
|
1449
1449
|
_.value && !_.disabled && (d[_.value] = !1);
|
|
1450
1450
|
});
|
|
1451
1451
|
});
|
|
1452
|
-
},
|
|
1452
|
+
}, L = (g) => {
|
|
1453
1453
|
a.options.forEach((p) => {
|
|
1454
1454
|
Array.isArray(p.children) && p.children.forEach((_) => {
|
|
1455
1455
|
_.value === g && (_.disabled || (d[_.value] = !1));
|
|
1456
1456
|
});
|
|
1457
|
-
}),
|
|
1457
|
+
}), b();
|
|
1458
1458
|
};
|
|
1459
1459
|
return (g, p) => {
|
|
1460
1460
|
const _ = fe("ra-svg");
|
|
1461
|
-
return s(),
|
|
1462
|
-
|
|
1461
|
+
return s(), h(M, null, [
|
|
1462
|
+
z("div", {
|
|
1463
1463
|
class: "chose-wrap",
|
|
1464
1464
|
style: Ce({ width: e.width + "px" }),
|
|
1465
1465
|
onClick: u,
|
|
1466
1466
|
title: c.value.map((x) => x.label).join(";")
|
|
1467
1467
|
}, [
|
|
1468
1468
|
Y(k(c.value.length ? "" : e.placeholder) + " ", 1),
|
|
1469
|
-
c.value.length && i.value ? (s(),
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
onClick: p[0] || (p[0] = Oe((x) =>
|
|
1469
|
+
c.value.length && i.value ? (s(), h("div", os, [
|
|
1470
|
+
z("p", null, k(i.value.label), 1),
|
|
1471
|
+
U(w(Ee), {
|
|
1472
|
+
onClick: p[0] || (p[0] = Oe((x) => L(c.value[1]?.value || ""), ["stop"]))
|
|
1473
1473
|
}, {
|
|
1474
1474
|
default: v(() => [
|
|
1475
|
-
|
|
1475
|
+
U(w(cn))
|
|
1476
1476
|
]),
|
|
1477
1477
|
_: 1
|
|
1478
1478
|
})
|
|
1479
|
-
])) : c.value.length > 0 ? (s(),
|
|
1480
|
-
|
|
1481
|
-
])) :
|
|
1482
|
-
c.value.length > 1 ? (s(),
|
|
1483
|
-
|
|
1484
|
-
])) :
|
|
1479
|
+
])) : c.value.length > 0 ? (s(), h("div", us, [
|
|
1480
|
+
z("p", null, k(c.value[0].label || ""), 1)
|
|
1481
|
+
])) : B("", !0),
|
|
1482
|
+
c.value.length > 1 ? (s(), h("div", ss, [
|
|
1483
|
+
z("p", null, "+" + k(c.value.length - 1), 1)
|
|
1484
|
+
])) : B("", !0)
|
|
1485
1485
|
], 12, ls),
|
|
1486
|
-
|
|
1486
|
+
U(Zt, {
|
|
1487
1487
|
title: e.dialogTitle,
|
|
1488
1488
|
modelValue: l.value,
|
|
1489
1489
|
"onUpdate:modelValue": p[5] || (p[5] = (x) => l.value = x),
|
|
@@ -1492,13 +1492,13 @@ const ls = ["title"], os = {
|
|
|
1492
1492
|
onClose: R
|
|
1493
1493
|
}, {
|
|
1494
1494
|
default: v(() => [
|
|
1495
|
-
|
|
1496
|
-
|
|
1495
|
+
z("div", is, [
|
|
1496
|
+
U(te, {
|
|
1497
1497
|
link: "",
|
|
1498
1498
|
onClick: p[1] || (p[1] = (x) => y())
|
|
1499
1499
|
}, {
|
|
1500
1500
|
default: v(() => [
|
|
1501
|
-
|
|
1501
|
+
U(_, {
|
|
1502
1502
|
icon: "#quanxuan2beifen",
|
|
1503
1503
|
class: "iconfont"
|
|
1504
1504
|
}),
|
|
@@ -1506,12 +1506,12 @@ const ls = ["title"], os = {
|
|
|
1506
1506
|
]),
|
|
1507
1507
|
_: 1
|
|
1508
1508
|
}),
|
|
1509
|
-
|
|
1509
|
+
U(te, {
|
|
1510
1510
|
link: "",
|
|
1511
1511
|
onClick: p[2] || (p[2] = (x) => E())
|
|
1512
1512
|
}, {
|
|
1513
1513
|
default: v(() => [
|
|
1514
|
-
|
|
1514
|
+
U(_, {
|
|
1515
1515
|
icon: "#fanxuanbeifen",
|
|
1516
1516
|
class: "iconfont"
|
|
1517
1517
|
}),
|
|
@@ -1519,12 +1519,12 @@ const ls = ["title"], os = {
|
|
|
1519
1519
|
]),
|
|
1520
1520
|
_: 1
|
|
1521
1521
|
}),
|
|
1522
|
-
|
|
1522
|
+
U(te, {
|
|
1523
1523
|
link: "",
|
|
1524
1524
|
onClick: p[3] || (p[3] = (x) => j())
|
|
1525
1525
|
}, {
|
|
1526
1526
|
default: v(() => [
|
|
1527
|
-
|
|
1527
|
+
U(_, {
|
|
1528
1528
|
icon: "#shanchu3",
|
|
1529
1529
|
class: "iconfont"
|
|
1530
1530
|
}),
|
|
@@ -1533,70 +1533,70 @@ const ls = ["title"], os = {
|
|
|
1533
1533
|
_: 1
|
|
1534
1534
|
})
|
|
1535
1535
|
]),
|
|
1536
|
-
|
|
1536
|
+
U(w(Ya), {
|
|
1537
1537
|
class: "collapse-wrap",
|
|
1538
1538
|
style: { padding: "0 1.04167vw" },
|
|
1539
1539
|
modelValue: o.value,
|
|
1540
1540
|
"onUpdate:modelValue": p[4] || (p[4] = (x) => o.value = x)
|
|
1541
1541
|
}, {
|
|
1542
1542
|
default: v(() => [
|
|
1543
|
-
(s(!0),
|
|
1543
|
+
(s(!0), h(M, null, J(e.options, (x, q) => (s(), $(w(qa), {
|
|
1544
1544
|
key: q + "level1",
|
|
1545
1545
|
title: x.label,
|
|
1546
1546
|
name: x.value
|
|
1547
1547
|
}, {
|
|
1548
1548
|
title: v(() => [
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
x.value && o.value.includes(x.value) ? (s(),
|
|
1553
|
-
|
|
1549
|
+
z("div", cs, [
|
|
1550
|
+
z("p", null, k(x.label), 1),
|
|
1551
|
+
z("div", ds, [
|
|
1552
|
+
x.value && o.value.includes(x.value) ? (s(), h(M, { key: 0 }, [
|
|
1553
|
+
U(te, {
|
|
1554
1554
|
link: "",
|
|
1555
1555
|
onClick: Oe((S) => y(x.value), ["stop"]),
|
|
1556
1556
|
title: "全选"
|
|
1557
1557
|
}, {
|
|
1558
1558
|
default: v(() => [
|
|
1559
|
-
|
|
1559
|
+
U(_, {
|
|
1560
1560
|
icon: "#quanxuan2beifen",
|
|
1561
1561
|
class: "iconfont"
|
|
1562
1562
|
})
|
|
1563
1563
|
]),
|
|
1564
1564
|
_: 1
|
|
1565
1565
|
}, 8, ["onClick"]),
|
|
1566
|
-
|
|
1566
|
+
U(te, {
|
|
1567
1567
|
link: "",
|
|
1568
1568
|
onClick: Oe((S) => E(x.value), ["stop"]),
|
|
1569
1569
|
title: "反选"
|
|
1570
1570
|
}, {
|
|
1571
1571
|
default: v(() => [
|
|
1572
|
-
|
|
1572
|
+
U(_, {
|
|
1573
1573
|
icon: "#fanxuanbeifen",
|
|
1574
1574
|
class: "iconfont"
|
|
1575
1575
|
})
|
|
1576
1576
|
]),
|
|
1577
1577
|
_: 1
|
|
1578
1578
|
}, 8, ["onClick"]),
|
|
1579
|
-
|
|
1579
|
+
U(te, {
|
|
1580
1580
|
link: "",
|
|
1581
1581
|
onClick: Oe((S) => j(x.value), ["stop"]),
|
|
1582
1582
|
title: "清空"
|
|
1583
1583
|
}, {
|
|
1584
1584
|
default: v(() => [
|
|
1585
|
-
|
|
1585
|
+
U(_, {
|
|
1586
1586
|
icon: "#shanchu3",
|
|
1587
1587
|
class: "iconfont"
|
|
1588
1588
|
})
|
|
1589
1589
|
]),
|
|
1590
1590
|
_: 1
|
|
1591
1591
|
}, 8, ["onClick"])
|
|
1592
|
-
], 64)) :
|
|
1593
|
-
|
|
1592
|
+
], 64)) : B("", !0),
|
|
1593
|
+
z("p", null, k(!x.value || !o.value.includes(x.value) ? "展开" : "收起"), 1)
|
|
1594
1594
|
])
|
|
1595
1595
|
])
|
|
1596
1596
|
]),
|
|
1597
1597
|
default: v(() => [
|
|
1598
|
-
x?.children?.length ? (s(),
|
|
1599
|
-
(s(!0),
|
|
1598
|
+
x?.children?.length ? (s(), h("div", fs, [
|
|
1599
|
+
(s(!0), h(M, null, J(x.children, (S, P) => (s(), $(w(at), {
|
|
1600
1600
|
class: "item-checkbox",
|
|
1601
1601
|
key: q + P + "level2",
|
|
1602
1602
|
modelValue: d[S.value],
|
|
@@ -1609,25 +1609,25 @@ const ls = ["title"], os = {
|
|
|
1609
1609
|
]),
|
|
1610
1610
|
_: 2
|
|
1611
1611
|
}, 1032, ["modelValue", "onUpdate:modelValue", "title", "disabled"]))), 128))
|
|
1612
|
-
])) :
|
|
1612
|
+
])) : B("", !0)
|
|
1613
1613
|
]),
|
|
1614
1614
|
_: 2
|
|
1615
1615
|
}, 1032, ["title", "name"]))), 128))
|
|
1616
1616
|
]),
|
|
1617
1617
|
_: 1
|
|
1618
1618
|
}, 8, ["modelValue"]),
|
|
1619
|
-
|
|
1620
|
-
|
|
1619
|
+
z("div", ps, [
|
|
1620
|
+
U(te, {
|
|
1621
1621
|
size: "small",
|
|
1622
1622
|
type: "primary",
|
|
1623
|
-
onClick:
|
|
1623
|
+
onClick: b
|
|
1624
1624
|
}, {
|
|
1625
1625
|
default: v(() => [...p[9] || (p[9] = [
|
|
1626
1626
|
Y("确定", -1)
|
|
1627
1627
|
])]),
|
|
1628
1628
|
_: 1
|
|
1629
1629
|
}),
|
|
1630
|
-
|
|
1630
|
+
U(te, {
|
|
1631
1631
|
size: "small",
|
|
1632
1632
|
onClick: R
|
|
1633
1633
|
}, {
|
|
@@ -1691,29 +1691,29 @@ const Ts = {
|
|
|
1691
1691
|
},
|
|
1692
1692
|
emits: ["update:modelValue", "itemChange"],
|
|
1693
1693
|
setup(e, { expose: t, emit: a }) {
|
|
1694
|
-
const n = ae(() => Promise.resolve().then(() => xs)), l = ae(() => Promise.resolve().then(() => _s)), r = ae(() => import("./index-DE9tcA5I.js")), d = ae(() => import("./index-DN2aloZb.js")), o = ae(() => import("./index-DUdhhr_j.js")), f = ae(() => Promise.resolve().then(() => Os)), c = ae(() => Promise.resolve().then(() => Xt)), i = a, u = e,
|
|
1694
|
+
const n = ae(() => Promise.resolve().then(() => xs)), l = ae(() => Promise.resolve().then(() => _s)), r = ae(() => import("./index-DE9tcA5I.js")), d = ae(() => import("./index-DN2aloZb.js")), o = ae(() => import("./index-DUdhhr_j.js")), f = ae(() => Promise.resolve().then(() => Os)), c = ae(() => Promise.resolve().then(() => Xt)), i = a, u = e, b = I(() => u.cssStyle === "1" ? "common-style" : ""), R = W({}), y = I({
|
|
1695
1695
|
get() {
|
|
1696
1696
|
return u.modelValue || R.value;
|
|
1697
1697
|
},
|
|
1698
|
-
set(
|
|
1699
|
-
u.modelValue !== void 0 ? i("update:modelValue",
|
|
1698
|
+
set(T) {
|
|
1699
|
+
u.modelValue !== void 0 ? i("update:modelValue", T) : R.value = T;
|
|
1700
1700
|
}
|
|
1701
1701
|
}), E = I(() => {
|
|
1702
|
-
const
|
|
1702
|
+
const T = [];
|
|
1703
1703
|
return u.options.forEach((V) => {
|
|
1704
|
-
V.itemRatio ?
|
|
1705
|
-
}),
|
|
1706
|
-
}), j = (
|
|
1704
|
+
V.itemRatio ? T.push(V.itemRatio) : T.push(1);
|
|
1705
|
+
}), T;
|
|
1706
|
+
}), j = (T, V) => T?.length ? T.reduce((G, m, ye) => (ye <= V ? G += m : G += 0, G), 0) : 0, L = (T, V) => {
|
|
1707
1707
|
if (u.inline && !u.inlineNumber)
|
|
1708
1708
|
return { ...V };
|
|
1709
1709
|
let G = { width: "100%", "margin-right": u.itemMarginRight + "px" };
|
|
1710
|
-
return u.inlineNumber ? (G.width = `calc(((100% - (${u.itemMarginRight} * ${u.inlineNumber - 1}px)) / ${u.inlineNumber}) * ${E.value[
|
|
1711
|
-
}, g = I(() => Te(u.options).map((
|
|
1710
|
+
return u.inlineNumber ? (G.width = `calc(((100% - (${u.itemMarginRight} * ${u.inlineNumber - 1}px)) / ${u.inlineNumber}) * ${E.value[T]} + ${u.itemMarginRight} * ${E.value[T] - 1}px)`, j(E.value, T) % u.inlineNumber === 0 && (G["margin-right"] = "0")) : G.width = "", V && (G = { ...G, ...V }), G;
|
|
1711
|
+
}, g = I(() => Te(u.options).map((T) => (T.prop || (T.prop = Ra()), T))), p = (T = !1) => {
|
|
1712
1712
|
u.options.forEach((V) => {
|
|
1713
|
-
|
|
1713
|
+
T ? ["multipleSelect", "dataRange", "dateTimeRange", "checkbox", "multipleTreeSelect"].includes(V.formType) ? y.value[V.prop] = V.defaultValue_raw || [] : y.value[V.prop] = V.defaultValue_raw || "" : V.prop && (y.value[V.prop] === void 0 || y.value[V.prop] === null) && (["multipleSelect", "dataRange", "dateTimeRange", "checkbox", "multipleTreeSelect"].includes(V.formType) ? y.value[V.prop] = V.defaultValue_raw || [] : y.value[V.prop] = V.defaultValue_raw || "");
|
|
1714
1714
|
});
|
|
1715
|
-
}, _ = (
|
|
1716
|
-
y.value[
|
|
1715
|
+
}, _ = (T) => {
|
|
1716
|
+
y.value[T.key] = T.value.value;
|
|
1717
1717
|
};
|
|
1718
1718
|
de(
|
|
1719
1719
|
() => u.options,
|
|
@@ -1723,20 +1723,20 @@ const Ts = {
|
|
|
1723
1723
|
{ deep: !0, immediate: !0 }
|
|
1724
1724
|
), de(
|
|
1725
1725
|
() => y.value,
|
|
1726
|
-
(
|
|
1727
|
-
u.modelValue === void 0 && (R.value =
|
|
1726
|
+
(T) => {
|
|
1727
|
+
u.modelValue === void 0 && (R.value = T);
|
|
1728
1728
|
},
|
|
1729
1729
|
{ deep: !0 }
|
|
1730
1730
|
);
|
|
1731
|
-
const x = (
|
|
1732
|
-
i("itemChange",
|
|
1731
|
+
const x = (T, V) => {
|
|
1732
|
+
i("itemChange", T, V);
|
|
1733
1733
|
}, q = ee("componentRef"), S = ["validate", "validateField", "resetFields", "scrollToField", "clearValidate", "fields", "getField"], P = {};
|
|
1734
|
-
return S.forEach((
|
|
1735
|
-
P[
|
|
1736
|
-
if (q.value && typeof q.value[
|
|
1737
|
-
return q.value[
|
|
1738
|
-
if (q.value && q.value[
|
|
1739
|
-
return q.value[
|
|
1734
|
+
return S.forEach((T) => {
|
|
1735
|
+
P[T] = (...V) => {
|
|
1736
|
+
if (q.value && typeof q.value[T] == "function")
|
|
1737
|
+
return q.value[T](...V);
|
|
1738
|
+
if (q.value && q.value[T] !== void 0)
|
|
1739
|
+
return q.value[T];
|
|
1740
1740
|
};
|
|
1741
1741
|
}), t({
|
|
1742
1742
|
// 保留Element Plus的所有原生方法
|
|
@@ -1750,23 +1750,23 @@ const Ts = {
|
|
|
1750
1750
|
initFormFields: p,
|
|
1751
1751
|
// @doc 方法,设置form独立数据
|
|
1752
1752
|
setValue: _
|
|
1753
|
-
}), (
|
|
1753
|
+
}), (T, V) => {
|
|
1754
1754
|
const G = fe("ra-textarea");
|
|
1755
1755
|
return s(), $(w(Wa), A({
|
|
1756
|
-
class: ["base-form-wrap",
|
|
1756
|
+
class: ["base-form-wrap", b.value],
|
|
1757
1757
|
ref_key: "componentRef",
|
|
1758
1758
|
ref: q
|
|
1759
|
-
},
|
|
1759
|
+
}, T.$attrs, {
|
|
1760
1760
|
model: y.value,
|
|
1761
1761
|
inline: e.inlineNumber ? !0 : e.inline
|
|
1762
1762
|
}), {
|
|
1763
1763
|
default: v(() => [
|
|
1764
|
-
O(
|
|
1765
|
-
(s(!0),
|
|
1764
|
+
O(T.$slots, "default", {}, void 0, !0),
|
|
1765
|
+
(s(!0), h(M, null, J(g.value, (m, ye) => (s(), $(w(Wt), A({
|
|
1766
1766
|
key: m.prop,
|
|
1767
1767
|
ref_for: !0
|
|
1768
1768
|
}, m, {
|
|
1769
|
-
style:
|
|
1769
|
+
style: L(ye, m?.formItemStyle)
|
|
1770
1770
|
}), {
|
|
1771
1771
|
default: v(() => [
|
|
1772
1772
|
m.formType === "input" ? (s(), $(w(n), A({
|
|
@@ -1775,7 +1775,7 @@ const Ts = {
|
|
|
1775
1775
|
"onUpdate:modelValue": (C) => y.value[m.prop] = C
|
|
1776
1776
|
}, { ref_for: !0 }, m, {
|
|
1777
1777
|
onChange: (C) => x(m.prop, C)
|
|
1778
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "onChange"])) :
|
|
1778
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "onChange"])) : B("", !0),
|
|
1779
1779
|
m.formType === "textarea" ? (s(), $(G, A({
|
|
1780
1780
|
key: 1,
|
|
1781
1781
|
modelValue: y.value[m.prop],
|
|
@@ -1850,8 +1850,8 @@ const Ts = {
|
|
|
1850
1850
|
multiple: "",
|
|
1851
1851
|
"collapse-tags-tooltip": "",
|
|
1852
1852
|
onChange: (C) => x(m.prop, C)
|
|
1853
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "onChange"])) : m.formType === "slot" ? O(
|
|
1854
|
-
(s(!0),
|
|
1853
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "onChange"])) : m.formType === "slot" ? O(T.$slots, m.slotName, { key: 12 }, void 0, !0) : m.formType === "buttons" ? (s(), h("div", Ts, [
|
|
1854
|
+
(s(!0), h(M, null, J(m.buttons, (C, ja) => (s(), $(w(c), A({
|
|
1855
1855
|
key: "button" + ja
|
|
1856
1856
|
}, { ref_for: !0 }, C, {
|
|
1857
1857
|
cssStyle: C.cssStyle || "1"
|
|
@@ -1861,7 +1861,7 @@ const Ts = {
|
|
|
1861
1861
|
]),
|
|
1862
1862
|
_: 2
|
|
1863
1863
|
}, 1040, ["cssStyle"]))), 128))
|
|
1864
|
-
])) :
|
|
1864
|
+
])) : B("", !0)
|
|
1865
1865
|
]),
|
|
1866
1866
|
_: 2
|
|
1867
1867
|
}, 1040, ["style"]))), 128))
|
|
@@ -1983,7 +1983,7 @@ const Ts = {
|
|
|
1983
1983
|
return (t, a) => (s(), $(w(Ka), Qe(et(t.$attrs)), {
|
|
1984
1984
|
default: v(() => [
|
|
1985
1985
|
O(t.$slots, "default"),
|
|
1986
|
-
(s(!0),
|
|
1986
|
+
(s(!0), h(M, null, J(e.options, (n) => (s(), h(M, {
|
|
1987
1987
|
key: n.value
|
|
1988
1988
|
}, [
|
|
1989
1989
|
e.isButton ? (s(), $(w(Xa), A({
|
|
@@ -2030,16 +2030,16 @@ const Ts = {
|
|
|
2030
2030
|
emits: ["update:modelValue"],
|
|
2031
2031
|
setup(e, { expose: t }) {
|
|
2032
2032
|
const a = e, n = I(() => a.cssStyle === "1" ? "common-style" : ""), l = tt(e, "modelValue"), r = W(!1), d = W(!1), o = (u) => {
|
|
2033
|
-
d.value = !1, u ? l.value = a.options.map((
|
|
2033
|
+
d.value = !1, u ? l.value = a.options.map((b) => b.value) : l.value = [];
|
|
2034
2034
|
};
|
|
2035
2035
|
a.multiple && de(l, (u) => {
|
|
2036
2036
|
Array.isArray(u) && (l.value = u, u.length === 0 ? (r.value = !1, d.value = !1) : u.length === a.options.length ? (r.value = !0, d.value = !1) : d.value = !0);
|
|
2037
2037
|
});
|
|
2038
2038
|
const f = ee("componentRef"), c = ["focus", "blur", "selectedLabel"], i = {};
|
|
2039
2039
|
return c.forEach((u) => {
|
|
2040
|
-
i[u] = (...
|
|
2040
|
+
i[u] = (...b) => {
|
|
2041
2041
|
if (f.value && typeof f.value[u] == "function")
|
|
2042
|
-
return f.value[u](...
|
|
2042
|
+
return f.value[u](...b);
|
|
2043
2043
|
if (f.value && f.value[u] !== void 0)
|
|
2044
2044
|
return f.value[u];
|
|
2045
2045
|
};
|
|
@@ -2047,20 +2047,20 @@ const Ts = {
|
|
|
2047
2047
|
// @doc 方法,获取原element组件实例
|
|
2048
2048
|
component: () => f.value,
|
|
2049
2049
|
...i
|
|
2050
|
-
}), (u,
|
|
2050
|
+
}), (u, b) => (s(), $(w(Za), A({
|
|
2051
2051
|
class: [n.value],
|
|
2052
2052
|
ref_key: "componentRef",
|
|
2053
2053
|
ref: f
|
|
2054
2054
|
}, u.$attrs, {
|
|
2055
2055
|
modelValue: l.value,
|
|
2056
|
-
"onUpdate:modelValue":
|
|
2056
|
+
"onUpdate:modelValue": b[1] || (b[1] = (R) => l.value = R),
|
|
2057
2057
|
multiple: e.multiple,
|
|
2058
2058
|
collapseTags: e.collapseTags,
|
|
2059
2059
|
clearable: e.clearable
|
|
2060
2060
|
}), ne({
|
|
2061
2061
|
default: v(() => [
|
|
2062
2062
|
O(u.$slots, "default", {}, void 0, !0),
|
|
2063
|
-
(s(!0),
|
|
2063
|
+
(s(!0), h(M, null, J(e.options, (R) => (s(), $(w(Qa), {
|
|
2064
2064
|
key: R.prop,
|
|
2065
2065
|
label: R.label,
|
|
2066
2066
|
value: R.value
|
|
@@ -2071,13 +2071,13 @@ const Ts = {
|
|
|
2071
2071
|
e.multiple ? {
|
|
2072
2072
|
name: "header",
|
|
2073
2073
|
fn: v(() => [
|
|
2074
|
-
|
|
2074
|
+
U(w(at), {
|
|
2075
2075
|
modelValue: r.value,
|
|
2076
|
-
"onUpdate:modelValue":
|
|
2076
|
+
"onUpdate:modelValue": b[0] || (b[0] = (R) => r.value = R),
|
|
2077
2077
|
indeterminate: d.value,
|
|
2078
2078
|
onChange: o
|
|
2079
2079
|
}, {
|
|
2080
|
-
default: v(() => [...
|
|
2080
|
+
default: v(() => [...b[2] || (b[2] = [
|
|
2081
2081
|
Y("全部", -1)
|
|
2082
2082
|
])]),
|
|
2083
2083
|
_: 1
|
|
@@ -2198,7 +2198,7 @@ const Ts = {
|
|
|
2198
2198
|
} else if (a.itemType === "checkbox" || a.itemType === "multipleSelect" || a.itemType === "treeMultipleSelect") {
|
|
2199
2199
|
const i = n.value;
|
|
2200
2200
|
if (i !== void 0 && Array.isArray(i))
|
|
2201
|
-
return c.filter((
|
|
2201
|
+
return c.filter((b) => i.includes(b.value)).map((b) => b.label).join(",");
|
|
2202
2202
|
}
|
|
2203
2203
|
return n.value;
|
|
2204
2204
|
}), f = I(() => {
|
|
@@ -2216,19 +2216,19 @@ const Ts = {
|
|
|
2216
2216
|
required: e.required
|
|
2217
2217
|
}, {
|
|
2218
2218
|
default: v(() => [
|
|
2219
|
-
e.itemType === "input" ? (s(),
|
|
2219
|
+
e.itemType === "input" ? (s(), h(M, { key: 0 }, [
|
|
2220
2220
|
e.actionType === "create" || e.actionType === "update" ? (s(), $(vt, A({ key: 0 }, c.$attrs, {
|
|
2221
2221
|
modelValue: n.value,
|
|
2222
2222
|
"onUpdate:modelValue": i[0] || (i[0] = (u) => n.value = u),
|
|
2223
2223
|
onChange: r
|
|
2224
|
-
}), null, 16, ["modelValue"])) : (s(),
|
|
2225
|
-
], 64)) : e.itemType === "select" ? (s(),
|
|
2224
|
+
}), null, 16, ["modelValue"])) : (s(), h("div", Rs, k(o.value), 1))
|
|
2225
|
+
], 64)) : e.itemType === "select" ? (s(), h(M, { key: 1 }, [
|
|
2226
2226
|
e.actionType === "create" || e.actionType === "update" ? (s(), $(Fe, A({ key: 0 }, c.$attrs, {
|
|
2227
2227
|
modelValue: n.value,
|
|
2228
2228
|
"onUpdate:modelValue": i[1] || (i[1] = (u) => n.value = u),
|
|
2229
2229
|
onChange: r
|
|
2230
|
-
}), null, 16, ["modelValue"])) : (s(),
|
|
2231
|
-
], 64)) : e.itemType === "multipleSelect" ? (s(),
|
|
2230
|
+
}), null, 16, ["modelValue"])) : (s(), h("div", Es, k(o.value), 1))
|
|
2231
|
+
], 64)) : e.itemType === "multipleSelect" ? (s(), h(M, { key: 2 }, [
|
|
2232
2232
|
e.actionType === "create" || e.actionType === "update" ? (s(), $(Fe, A({
|
|
2233
2233
|
key: 0,
|
|
2234
2234
|
multiple: ""
|
|
@@ -2236,8 +2236,8 @@ const Ts = {
|
|
|
2236
2236
|
modelValue: n.value,
|
|
2237
2237
|
"onUpdate:modelValue": i[2] || (i[2] = (u) => n.value = u),
|
|
2238
2238
|
onChange: r
|
|
2239
|
-
}), null, 16, ["modelValue"])) : (s(),
|
|
2240
|
-
], 64)) : e.itemType === "datetime" ? (s(),
|
|
2239
|
+
}), null, 16, ["modelValue"])) : (s(), h("div", Vs, k(o.value), 1))
|
|
2240
|
+
], 64)) : e.itemType === "datetime" ? (s(), h(M, { key: 3 }, [
|
|
2241
2241
|
e.actionType === "create" || e.actionType === "update" ? (s(), $(Ve, A({
|
|
2242
2242
|
key: 0,
|
|
2243
2243
|
type: "datetime"
|
|
@@ -2245,8 +2245,8 @@ const Ts = {
|
|
|
2245
2245
|
modelValue: n.value,
|
|
2246
2246
|
"onUpdate:modelValue": i[3] || (i[3] = (u) => n.value = u),
|
|
2247
2247
|
onChange: r
|
|
2248
|
-
}), null, 16, ["modelValue"])) : (s(),
|
|
2249
|
-
], 64)) : e.itemType === "date" ? (s(),
|
|
2248
|
+
}), null, 16, ["modelValue"])) : (s(), h("div", ks, k(o.value), 1))
|
|
2249
|
+
], 64)) : e.itemType === "date" ? (s(), h(M, { key: 4 }, [
|
|
2250
2250
|
e.actionType === "create" || e.actionType === "update" ? (s(), $(Ve, A({
|
|
2251
2251
|
key: 0,
|
|
2252
2252
|
type: "date"
|
|
@@ -2254,8 +2254,8 @@ const Ts = {
|
|
|
2254
2254
|
modelValue: n.value,
|
|
2255
2255
|
"onUpdate:modelValue": i[4] || (i[4] = (u) => n.value = u),
|
|
2256
2256
|
onChange: r
|
|
2257
|
-
}), null, 16, ["modelValue"])) : (s(),
|
|
2258
|
-
], 64)) : e.itemType === "dateRange" ? (s(),
|
|
2257
|
+
}), null, 16, ["modelValue"])) : (s(), h("div", Is, k(o.value), 1))
|
|
2258
|
+
], 64)) : e.itemType === "dateRange" ? (s(), h(M, { key: 5 }, [
|
|
2259
2259
|
e.actionType === "create" || e.actionType === "update" ? (s(), $(Ve, A({
|
|
2260
2260
|
key: 0,
|
|
2261
2261
|
type: "daterange"
|
|
@@ -2263,38 +2263,38 @@ const Ts = {
|
|
|
2263
2263
|
modelValue: n.value,
|
|
2264
2264
|
"onUpdate:modelValue": i[5] || (i[5] = (u) => n.value = u),
|
|
2265
2265
|
onChange: r
|
|
2266
|
-
}), null, 16, ["modelValue"])) : (s(),
|
|
2267
|
-
], 64)) : e.itemType === "radio" ? (s(),
|
|
2266
|
+
}), null, 16, ["modelValue"])) : (s(), h("div", Ps, k(o.value), 1))
|
|
2267
|
+
], 64)) : e.itemType === "radio" ? (s(), h(M, { key: 6 }, [
|
|
2268
2268
|
e.actionType === "create" || e.actionType === "update" ? (s(), $(Va, A({ key: 0 }, c.$attrs, {
|
|
2269
2269
|
modelValue: n.value,
|
|
2270
2270
|
"onUpdate:modelValue": i[6] || (i[6] = (u) => n.value = u),
|
|
2271
2271
|
onChange: r
|
|
2272
|
-
}), null, 16, ["modelValue"])) : (s(),
|
|
2273
|
-
], 64)) : e.itemType === "checkbox" ? (s(),
|
|
2272
|
+
}), null, 16, ["modelValue"])) : (s(), h("div", js, k(o.value), 1))
|
|
2273
|
+
], 64)) : e.itemType === "checkbox" ? (s(), h(M, { key: 7 }, [
|
|
2274
2274
|
e.actionType === "create" || e.actionType === "update" ? (s(), $(Jt, A({ key: 0 }, c.$attrs, {
|
|
2275
2275
|
modelValue: n.value,
|
|
2276
2276
|
"onUpdate:modelValue": i[7] || (i[7] = (u) => n.value = u),
|
|
2277
2277
|
onChange: r
|
|
2278
|
-
}), null, 16, ["modelValue"])) : (s(),
|
|
2279
|
-
], 64)) : e.itemType === "treeSelect" ? (s(),
|
|
2278
|
+
}), null, 16, ["modelValue"])) : (s(), h("div", Ms, k(o.value), 1))
|
|
2279
|
+
], 64)) : e.itemType === "treeSelect" ? (s(), h(M, { key: 8 }, [
|
|
2280
2280
|
e.actionType === "create" || e.actionType === "update" ? (s(), $(Le, A({ key: 0 }, c.$attrs, {
|
|
2281
2281
|
modelValue: n.value,
|
|
2282
2282
|
"onUpdate:modelValue": i[8] || (i[8] = (u) => n.value = u),
|
|
2283
2283
|
onChange: r
|
|
2284
|
-
}), null, 16, ["modelValue"])) : (s(),
|
|
2285
|
-
], 64)) : e.itemType === "multipleTreeSelect" ? (s(),
|
|
2284
|
+
}), null, 16, ["modelValue"])) : (s(), h("div", Fs, k(o.value), 1))
|
|
2285
|
+
], 64)) : e.itemType === "multipleTreeSelect" ? (s(), h(M, { key: 9 }, [
|
|
2286
2286
|
e.actionType === "create" || e.actionType === "update" ? (s(), $(Le, A({ key: 0 }, c.$attrs, {
|
|
2287
2287
|
modelValue: n.value,
|
|
2288
2288
|
"onUpdate:modelValue": i[9] || (i[9] = (u) => n.value = u),
|
|
2289
2289
|
multiple: "",
|
|
2290
2290
|
onChange: r
|
|
2291
|
-
}), null, 16, ["modelValue"])) : (s(),
|
|
2292
|
-
], 64)) : e.itemType === "textarea" ? (s(),
|
|
2291
|
+
}), null, 16, ["modelValue"])) : (s(), h("div", Ls, k(o.value), 1))
|
|
2292
|
+
], 64)) : e.itemType === "textarea" ? (s(), h(M, { key: 10 }, [
|
|
2293
2293
|
e.actionType === "create" || e.actionType === "update" ? (s(), $(Ea, A({ key: 0 }, c.$attrs, {
|
|
2294
2294
|
modelValue: n.value,
|
|
2295
2295
|
"onUpdate:modelValue": i[10] || (i[10] = (u) => n.value = u),
|
|
2296
2296
|
onChange: r
|
|
2297
|
-
}), null, 16, ["modelValue"])) : (s(),
|
|
2297
|
+
}), null, 16, ["modelValue"])) : (s(), h("div", {
|
|
2298
2298
|
key: 1,
|
|
2299
2299
|
class: "detail",
|
|
2300
2300
|
style: Ce(f.value)
|
|
@@ -2326,11 +2326,11 @@ const Ts = {
|
|
|
2326
2326
|
], !0)
|
|
2327
2327
|
]),
|
|
2328
2328
|
default: v(() => [
|
|
2329
|
-
e.tipText ? (s(),
|
|
2329
|
+
e.tipText ? (s(), h("div", {
|
|
2330
2330
|
key: 0,
|
|
2331
2331
|
innerHTML: e.tipText
|
|
2332
|
-
}, null, 8, Bs)) :
|
|
2333
|
-
|
|
2332
|
+
}, null, 8, Bs)) : B("", !0),
|
|
2333
|
+
U(n, {
|
|
2334
2334
|
icon: "#icon-help",
|
|
2335
2335
|
class: "help_icon_tooltip",
|
|
2336
2336
|
style: Ce({ width: e.width + "px", height: e.width + "px", ...e.helpStyle })
|
|
@@ -2387,11 +2387,11 @@ const Ts = {
|
|
|
2387
2387
|
icon: { type: String, required: !0 }
|
|
2388
2388
|
},
|
|
2389
2389
|
setup(e) {
|
|
2390
|
-
return (t, a) => (s(),
|
|
2390
|
+
return (t, a) => (s(), h("svg", A({
|
|
2391
2391
|
class: "svg-icon",
|
|
2392
2392
|
"aria-hidden": "true"
|
|
2393
2393
|
}, t.$attrs), [
|
|
2394
|
-
|
|
2394
|
+
z("use", { "xlink:href": e.icon }, null, 8, Ys)
|
|
2395
2395
|
], 16));
|
|
2396
2396
|
}
|
|
2397
2397
|
}), Ws = /* @__PURE__ */ X(qs, [["__scopeId", "data-v-8a7fbe76"]]), Ks = {
|
|
@@ -2413,16 +2413,16 @@ const Ts = {
|
|
|
2413
2413
|
let i = o[f.property];
|
|
2414
2414
|
return i == null || i === "" ? "-" : (c?.prefixText && (i = c.prefixText + i), c?.suffixText && (i = i + c.suffixText), i);
|
|
2415
2415
|
};
|
|
2416
|
-
return (o, f) => (s(!0),
|
|
2416
|
+
return (o, f) => (s(!0), h(M, null, J(e.options, (c) => (s(), $(w(qe), A({ ref_for: !0 }, w(Oa)(c, "children", "align"), {
|
|
2417
2417
|
key: c.prop,
|
|
2418
2418
|
formatter: (i, u) => d(i, u, c),
|
|
2419
2419
|
align: c.align ?? "center",
|
|
2420
2420
|
showOverflowTooltip: typeof c.showOverflowTooltip == "boolean" ? c.showOverflowTooltip : !0
|
|
2421
2421
|
}), ne({
|
|
2422
2422
|
default: v(() => [
|
|
2423
|
-
c?.children?.length ? (s(),
|
|
2423
|
+
c?.children?.length ? (s(), h(M, { key: 0 }, [
|
|
2424
2424
|
O(o.$slots, "default", {}, void 0, !0),
|
|
2425
|
-
|
|
2425
|
+
U(w(t), {
|
|
2426
2426
|
options: c.children
|
|
2427
2427
|
}, ne({ _: 2 }, [
|
|
2428
2428
|
J(Object.keys(o.$slots).filter((i) => i.match("slot_")), (i) => ({
|
|
@@ -2432,16 +2432,16 @@ const Ts = {
|
|
|
2432
2432
|
])
|
|
2433
2433
|
}))
|
|
2434
2434
|
]), 1032, ["options"])
|
|
2435
|
-
], 64)) :
|
|
2435
|
+
], 64)) : B("", !0)
|
|
2436
2436
|
]),
|
|
2437
2437
|
_: 2
|
|
2438
2438
|
}, [
|
|
2439
2439
|
c.itemType ? {
|
|
2440
2440
|
name: "default",
|
|
2441
2441
|
fn: v((i) => [
|
|
2442
|
-
c.itemType === "operation" ? (s(),
|
|
2443
|
-
(s(!0),
|
|
2444
|
-
key: "button" +
|
|
2442
|
+
c.itemType === "operation" ? (s(), h("div", Ks, [
|
|
2443
|
+
(s(!0), h(M, null, J(c.buttons?.filter((u) => c?.opShow?.(i.row, u.label, u.name) ?? !0), (u, b) => (s(), $(w(l), A({
|
|
2444
|
+
key: "button" + b
|
|
2445
2445
|
}, { ref_for: !0 }, u, {
|
|
2446
2446
|
click: () => u?.click?.(i.row)
|
|
2447
2447
|
}), {
|
|
@@ -2450,8 +2450,8 @@ const Ts = {
|
|
|
2450
2450
|
]),
|
|
2451
2451
|
_: 2
|
|
2452
2452
|
}, 1040, ["click"]))), 128))
|
|
2453
|
-
])) : c.itemType === "button" ? (s(),
|
|
2454
|
-
|
|
2453
|
+
])) : c.itemType === "button" ? (s(), h("div", Xs, [
|
|
2454
|
+
U(w(l), A({ class: "button-item" }, { ref_for: !0 }, c, {
|
|
2455
2455
|
click: () => c?.click?.(i.row)
|
|
2456
2456
|
}), {
|
|
2457
2457
|
default: v(() => [
|
|
@@ -2459,9 +2459,9 @@ const Ts = {
|
|
|
2459
2459
|
]),
|
|
2460
2460
|
_: 2
|
|
2461
2461
|
}, 1040, ["click"])
|
|
2462
|
-
])) : c.itemType === "formatTime" ? (s(),
|
|
2462
|
+
])) : c.itemType === "formatTime" ? (s(), h(M, { key: 2 }, [
|
|
2463
2463
|
Y(k(r(i.row[c.prop], c.format)), 1)
|
|
2464
|
-
], 64)) : c.itemType === "appendStr" ? (s(),
|
|
2464
|
+
], 64)) : c.itemType === "appendStr" ? (s(), h(M, { key: 3 }, [
|
|
2465
2465
|
Y(k(i.row[c.prop]) + k(c.appendStr), 1)
|
|
2466
2466
|
], 64)) : c.itemType === "slot" ? O(o.$slots, c.slotName, A({
|
|
2467
2467
|
key: 4,
|
|
@@ -2473,7 +2473,7 @@ const Ts = {
|
|
|
2473
2473
|
ref_for: !0
|
|
2474
2474
|
}, c, {
|
|
2475
2475
|
row: i.row
|
|
2476
|
-
}), null, 16, ["row"])) :
|
|
2476
|
+
}), null, 16, ["row"])) : B("", !0)
|
|
2477
2477
|
]),
|
|
2478
2478
|
key: "0"
|
|
2479
2479
|
} : void 0
|
|
@@ -2513,11 +2513,11 @@ const Ts = {
|
|
|
2513
2513
|
}
|
|
2514
2514
|
return (o, f) => {
|
|
2515
2515
|
const c = fe("ra-tree-select"), i = fe("ra-button");
|
|
2516
|
-
return s(),
|
|
2517
|
-
|
|
2516
|
+
return s(), h("div", Qs, [
|
|
2517
|
+
z("div", ei, [
|
|
2518
2518
|
O(o.$slots, "topModuleLeft", {}, void 0, !0)
|
|
2519
2519
|
]),
|
|
2520
|
-
|
|
2520
|
+
z("div", ti, [
|
|
2521
2521
|
O(o.$slots, "rightModuleLeft", {}, void 0, !0),
|
|
2522
2522
|
e.enableFilterColumn ? (s(), $(c, {
|
|
2523
2523
|
key: 0,
|
|
@@ -2532,7 +2532,7 @@ const Ts = {
|
|
|
2532
2532
|
multiple: !0,
|
|
2533
2533
|
placeholder: "显示列",
|
|
2534
2534
|
"value-consists-of": "LEAF_PRIORITY"
|
|
2535
|
-
}, null, 8, ["modelValue", "options"])) :
|
|
2535
|
+
}, null, 8, ["modelValue", "options"])) : B("", !0),
|
|
2536
2536
|
O(o.$slots, "rightModuleCenter", {}, void 0, !0),
|
|
2537
2537
|
l.value ? (s(), $(i, {
|
|
2538
2538
|
key: 1,
|
|
@@ -2546,7 +2546,7 @@ const Ts = {
|
|
|
2546
2546
|
Y(k(e.exportButtonText), 1)
|
|
2547
2547
|
]),
|
|
2548
2548
|
_: 1
|
|
2549
|
-
}, 8, ["icon"])) :
|
|
2549
|
+
}, 8, ["icon"])) : B("", !0),
|
|
2550
2550
|
O(o.$slots, "rightModuleRight", {}, void 0, !0)
|
|
2551
2551
|
])
|
|
2552
2552
|
]);
|
|
@@ -2598,16 +2598,16 @@ const ri = {
|
|
|
2598
2598
|
}, l = (r) => {
|
|
2599
2599
|
a("update:pageSize", r), a("sizeChange", r);
|
|
2600
2600
|
};
|
|
2601
|
-
return (r, d) => e.pageReqType ? (s(),
|
|
2602
|
-
|
|
2601
|
+
return (r, d) => e.pageReqType ? (s(), h("div", ri, [
|
|
2602
|
+
z("div", {
|
|
2603
2603
|
style: Ce({ paddingTop: r.$slots.pageLeft ? "0.52083vw" : "0" })
|
|
2604
2604
|
}, [
|
|
2605
2605
|
O(r.$slots, "pageLeft", {}, void 0, !0)
|
|
2606
2606
|
], 4),
|
|
2607
|
-
|
|
2608
|
-
r.$slots.pageTotalLeft ? (s(),
|
|
2607
|
+
z("div", li, [
|
|
2608
|
+
r.$slots.pageTotalLeft ? (s(), h("div", oi, [
|
|
2609
2609
|
O(r.$slots, "pageTotalLeft", {}, void 0, !0)
|
|
2610
|
-
])) :
|
|
2610
|
+
])) : B("", !0),
|
|
2611
2611
|
e.pageReqType === "manually" ? (s(), $(w(Ye), {
|
|
2612
2612
|
key: 1,
|
|
2613
2613
|
onCurrentChange: n,
|
|
@@ -2618,7 +2618,7 @@ const ri = {
|
|
|
2618
2618
|
total: e.pageTotal,
|
|
2619
2619
|
background: !0,
|
|
2620
2620
|
"pager-count": e.paginationButtonNumber
|
|
2621
|
-
}, null, 8, ["current-page", "page-size", "layout", "total", "pager-count"])) :
|
|
2621
|
+
}, null, 8, ["current-page", "page-size", "layout", "total", "pager-count"])) : B("", !0),
|
|
2622
2622
|
e.pageReqType === "axios" ? (s(), $(w(Ye), {
|
|
2623
2623
|
key: 2,
|
|
2624
2624
|
onCurrentChange: n,
|
|
@@ -2629,9 +2629,9 @@ const ri = {
|
|
|
2629
2629
|
total: e.pageTotal,
|
|
2630
2630
|
background: !0,
|
|
2631
2631
|
"pager-count": e.paginationButtonNumber
|
|
2632
|
-
}, null, 8, ["current-page", "page-size", "layout", "total", "pager-count"])) :
|
|
2632
|
+
}, null, 8, ["current-page", "page-size", "layout", "total", "pager-count"])) : B("", !0)
|
|
2633
2633
|
])
|
|
2634
|
-
])) :
|
|
2634
|
+
])) : B("", !0);
|
|
2635
2635
|
}
|
|
2636
2636
|
}), si = /* @__PURE__ */ X(ui, [["__scopeId", "data-v-42a4e899"]]), ii = { class: "table-group" }, ci = /* @__PURE__ */ N({
|
|
2637
2637
|
name: "RaTable",
|
|
@@ -2705,7 +2705,7 @@ const ri = {
|
|
|
2705
2705
|
const S = [];
|
|
2706
2706
|
u?.value?.forEach((P) => {
|
|
2707
2707
|
if (P?.children?.length) {
|
|
2708
|
-
const F = P.children.filter((
|
|
2708
|
+
const F = P.children.filter((T) => !T.firstHide).map((T) => T.value);
|
|
2709
2709
|
F?.length && (S.push(P.value), S.push(...F));
|
|
2710
2710
|
} else
|
|
2711
2711
|
P.firstHide || S.push(P.value);
|
|
@@ -2713,17 +2713,17 @@ const ri = {
|
|
|
2713
2713
|
},
|
|
2714
2714
|
{ deep: !0, immediate: !0 }
|
|
2715
2715
|
);
|
|
2716
|
-
const
|
|
2716
|
+
const b = I(() => {
|
|
2717
2717
|
if (n.enableFilterColumn) {
|
|
2718
|
-
const S = Te(n.options).find((
|
|
2718
|
+
const S = Te(n.options).find((T) => T.itemType && ["operation"].includes(T.itemType)), P = Te(n.options).filter((T) => !T.itemType || !["operation"].includes(T.itemType)), F = Pa(i.value, P, "prop");
|
|
2719
2719
|
return S && F.push(S), F;
|
|
2720
2720
|
} else
|
|
2721
2721
|
return Te(n.options);
|
|
2722
2722
|
}), R = (S, P = "12px Microsoft YaHei") => {
|
|
2723
|
-
const
|
|
2724
|
-
if (!
|
|
2725
|
-
|
|
2726
|
-
const V =
|
|
2723
|
+
const T = document.createElement("canvas").getContext("2d");
|
|
2724
|
+
if (!T) return 60;
|
|
2725
|
+
T.font = P;
|
|
2726
|
+
const V = T.measureText(S);
|
|
2727
2727
|
return Math.ceil(V.width);
|
|
2728
2728
|
}, y = I(() => {
|
|
2729
2729
|
const P = (r.pageNum - 1) * r.pageSize + 1 + r.pageSize - 1, F = R(String(P)) + 20;
|
|
@@ -2732,7 +2732,7 @@ const ri = {
|
|
|
2732
2732
|
l("exportTable");
|
|
2733
2733
|
}, j = () => {
|
|
2734
2734
|
l("currentChange", { pageNum: r.pageNum, pageSize: r.pageSize }), l("pageChange", { pageNum: r.pageNum, pageSize: r.pageSize });
|
|
2735
|
-
},
|
|
2735
|
+
}, L = () => {
|
|
2736
2736
|
r.pageNum = 1, l("sizeChange", { pageNum: r.pageNum, pageSize: r.pageSize }), l("pageChange", { pageNum: r.pageNum, pageSize: r.pageSize });
|
|
2737
2737
|
}, g = (S = 0) => {
|
|
2738
2738
|
r.pageTotal = S;
|
|
@@ -2768,7 +2768,7 @@ const ri = {
|
|
|
2768
2768
|
// 暴露自定义方法
|
|
2769
2769
|
setTotal: g,
|
|
2770
2770
|
getPageInfo: p
|
|
2771
|
-
}), (S, P) => (s(),
|
|
2771
|
+
}), (S, P) => (s(), h("div", ii, [
|
|
2772
2772
|
e.enableTopLine ? (s(), $(ni, {
|
|
2773
2773
|
key: 0,
|
|
2774
2774
|
modelValue: i.value,
|
|
@@ -2793,7 +2793,7 @@ const ri = {
|
|
|
2793
2793
|
O(S.$slots, "rightModuleRight", {}, void 0, !0)
|
|
2794
2794
|
]),
|
|
2795
2795
|
_: 3
|
|
2796
|
-
}, 8, ["modelValue", "pageTotal", "selectOptions", "enableFilterColumn", "exportButtonText", "exportNumberLimit"])) :
|
|
2796
|
+
}, 8, ["modelValue", "pageTotal", "selectOptions", "enableFilterColumn", "exportButtonText", "exportNumberLimit"])) : B("", !0),
|
|
2797
2797
|
za((s(), $(w(tn), A({
|
|
2798
2798
|
key: e.tableKey,
|
|
2799
2799
|
class: ["table-wrap", d.value],
|
|
@@ -2810,7 +2810,7 @@ const ri = {
|
|
|
2810
2810
|
type: "selection",
|
|
2811
2811
|
"reserve-selection": !0,
|
|
2812
2812
|
width: "43"
|
|
2813
|
-
})) :
|
|
2813
|
+
})) : B("", !0),
|
|
2814
2814
|
e.enableIndex ? (s(), $(w(qe), {
|
|
2815
2815
|
key: 1,
|
|
2816
2816
|
label: e.indexName,
|
|
@@ -2819,23 +2819,23 @@ const ri = {
|
|
|
2819
2819
|
fixed: e.indexFixed
|
|
2820
2820
|
}, {
|
|
2821
2821
|
default: v((F) => [
|
|
2822
|
-
|
|
2822
|
+
z("span", null, k((r.pageNum - 1) * r.pageSize + F.$index + 1), 1)
|
|
2823
2823
|
]),
|
|
2824
2824
|
_: 1
|
|
2825
|
-
}, 8, ["label", "width", "fixed"])) :
|
|
2825
|
+
}, 8, ["label", "width", "fixed"])) : B("", !0),
|
|
2826
2826
|
O(S.$slots, "default", {}, void 0, !0),
|
|
2827
2827
|
O(S.$slots, "tableColumnBefore", {}, void 0, !0),
|
|
2828
|
-
|
|
2828
|
+
b.value?.length ? (s(), $(ka, {
|
|
2829
2829
|
key: 2,
|
|
2830
|
-
options:
|
|
2830
|
+
options: b.value
|
|
2831
2831
|
}, ne({ _: 2 }, [
|
|
2832
2832
|
J(Object.keys(S.$slots).filter((F) => F.match("slot_")), (F) => ({
|
|
2833
2833
|
name: F,
|
|
2834
|
-
fn: v((
|
|
2835
|
-
O(S.$slots, F, Qe(et(
|
|
2834
|
+
fn: v((T) => [
|
|
2835
|
+
O(S.$slots, F, Qe(et(T)), void 0, !0)
|
|
2836
2836
|
])
|
|
2837
2837
|
}))
|
|
2838
|
-
]), 1032, ["options"])) :
|
|
2838
|
+
]), 1032, ["options"])) : B("", !0)
|
|
2839
2839
|
]),
|
|
2840
2840
|
_: 2
|
|
2841
2841
|
}, [
|
|
@@ -2856,14 +2856,14 @@ const ri = {
|
|
|
2856
2856
|
]), 1040, ["class", "data", "border", "stripe"])), [
|
|
2857
2857
|
[w(an), e.loading]
|
|
2858
2858
|
]),
|
|
2859
|
-
|
|
2859
|
+
U(si, {
|
|
2860
2860
|
pageReqType: e.paginationType,
|
|
2861
2861
|
pageSize: r.pageSize,
|
|
2862
2862
|
"onUpdate:pageSize": P[1] || (P[1] = (F) => r.pageSize = F),
|
|
2863
2863
|
pageNum: r.pageNum,
|
|
2864
2864
|
"onUpdate:pageNum": P[2] || (P[2] = (F) => r.pageNum = F),
|
|
2865
2865
|
onCurrentChange: j,
|
|
2866
|
-
onSizeChange:
|
|
2866
|
+
onSizeChange: L,
|
|
2867
2867
|
paginationLayout: e.layout,
|
|
2868
2868
|
pageTotal: r.pageTotal,
|
|
2869
2869
|
paginationButtonNumber: e.paginationButtonNumber
|
|
@@ -2945,7 +2945,9 @@ const ri = {
|
|
|
2945
2945
|
// @doc 是否显示文件列表
|
|
2946
2946
|
showFileList: { type: Boolean, default: !0 },
|
|
2947
2947
|
// @doc 最大文件大小(MB)
|
|
2948
|
-
maxSize: { type: Number, default: 10 }
|
|
2948
|
+
maxSize: { type: Number, default: 10 },
|
|
2949
|
+
// @doc 展示下载按钮
|
|
2950
|
+
showDownload: { type: Boolean, default: !1 }
|
|
2949
2951
|
},
|
|
2950
2952
|
emits: [
|
|
2951
2953
|
// @doc fileList双向绑定
|
|
@@ -2991,16 +2993,16 @@ const ri = {
|
|
|
2991
2993
|
l("update:modelValue", p), l("remove", g);
|
|
2992
2994
|
}, u = (g) => {
|
|
2993
2995
|
E.value?.handleRemove(g);
|
|
2994
|
-
},
|
|
2996
|
+
}, b = (g) => {
|
|
2995
2997
|
l("download", g);
|
|
2996
2998
|
}, R = (g, p) => {
|
|
2997
2999
|
yt.error(`文件超出限制,最多只能上传 ${n.limit} 个文件!`), l("exceed", g, p);
|
|
2998
3000
|
}, y = (g) => {
|
|
2999
3001
|
const p = n.maxSize * 1024 * 1024;
|
|
3000
3002
|
return g.size > p ? (yt.error(`文件大小不能超过 ${n.maxSize}MB!`), !1) : !0;
|
|
3001
|
-
}, E = ee("componentRef"), j = ["abort", "submit", "clearFiles", "handleStart", "handleRemove"],
|
|
3003
|
+
}, E = ee("componentRef"), j = ["abort", "submit", "clearFiles", "handleStart", "handleRemove"], L = {};
|
|
3002
3004
|
return j.forEach((g) => {
|
|
3003
|
-
|
|
3005
|
+
L[g] = (...p) => {
|
|
3004
3006
|
if (E.value && typeof E.value[g] == "function")
|
|
3005
3007
|
return E.value[g](...p);
|
|
3006
3008
|
if (E.value && E.value[g] !== void 0)
|
|
@@ -3009,11 +3011,11 @@ const ri = {
|
|
|
3009
3011
|
}), t({
|
|
3010
3012
|
// @doc 方法,获取原element组件实例
|
|
3011
3013
|
component: () => E.value,
|
|
3012
|
-
...
|
|
3014
|
+
...L
|
|
3013
3015
|
}), (g, p) => {
|
|
3014
3016
|
const _ = fe("ra-button");
|
|
3015
|
-
return s(),
|
|
3016
|
-
|
|
3017
|
+
return s(), h("div", mi, [
|
|
3018
|
+
U(w(rn), A({
|
|
3017
3019
|
ref_key: "componentRef",
|
|
3018
3020
|
ref: E,
|
|
3019
3021
|
"file-list": r.value,
|
|
@@ -3027,15 +3029,15 @@ const ri = {
|
|
|
3027
3029
|
"on-exceed": R
|
|
3028
3030
|
}), ne({
|
|
3029
3031
|
default: v(() => [
|
|
3030
|
-
e.listType === "text" ? (s(),
|
|
3031
|
-
e.drag ? (s(),
|
|
3032
|
-
p[1] || (p[1] =
|
|
3032
|
+
e.listType === "text" ? (s(), h(M, { key: 0 }, [
|
|
3033
|
+
e.drag ? (s(), h(M, { key: 0 }, [
|
|
3034
|
+
p[1] || (p[1] = z("img", {
|
|
3033
3035
|
src: pi,
|
|
3034
3036
|
alt: "",
|
|
3035
3037
|
class: "el-icon-upload"
|
|
3036
3038
|
}, null, -1)),
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
+
z("div", vi, k(e.dragText), 1),
|
|
3040
|
+
z("div", gi, " 支持拓展名:" + k(n.accept), 1)
|
|
3039
3041
|
], 64)) : (s(), $(_, {
|
|
3040
3042
|
key: 1,
|
|
3041
3043
|
type: "primary",
|
|
@@ -3051,7 +3053,7 @@ const ri = {
|
|
|
3051
3053
|
class: "avatar-uploader-icon"
|
|
3052
3054
|
}, {
|
|
3053
3055
|
default: v(() => [
|
|
3054
|
-
|
|
3056
|
+
U(w(vn))
|
|
3055
3057
|
]),
|
|
3056
3058
|
_: 1
|
|
3057
3059
|
}))
|
|
@@ -3061,9 +3063,9 @@ const ri = {
|
|
|
3061
3063
|
e.tipText ? {
|
|
3062
3064
|
name: "tip",
|
|
3063
3065
|
fn: v(() => [
|
|
3064
|
-
|
|
3066
|
+
z("div", yi, [
|
|
3065
3067
|
Y(k(e.tipText) + " ", 1),
|
|
3066
|
-
e.maxSize ? (s(),
|
|
3068
|
+
e.maxSize ? (s(), h("span", hi, "文件大小不能超过 " + k(e.maxSize) + "MB", 1)) : B("", !0)
|
|
3067
3069
|
])
|
|
3068
3070
|
]),
|
|
3069
3071
|
key: "0"
|
|
@@ -3071,31 +3073,32 @@ const ri = {
|
|
|
3071
3073
|
e.listType === "text" ? {
|
|
3072
3074
|
name: "file",
|
|
3073
3075
|
fn: v(({ file: x }) => [
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
+
z("div", bi, [
|
|
3077
|
+
z("div", {
|
|
3076
3078
|
class: "file-name",
|
|
3077
3079
|
title: x.name
|
|
3078
3080
|
}, k(x.name), 9, Ti),
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
+
z("div", $i, [
|
|
3082
|
+
e.showDownload ? (s(), h("span", {
|
|
3083
|
+
key: 0,
|
|
3081
3084
|
class: "el-upload__download",
|
|
3082
|
-
onClick: (q) =>
|
|
3085
|
+
onClick: (q) => b(x)
|
|
3083
3086
|
}, [
|
|
3084
|
-
|
|
3087
|
+
U(w(Ee), null, {
|
|
3085
3088
|
default: v(() => [
|
|
3086
|
-
|
|
3089
|
+
U(w(Qt))
|
|
3087
3090
|
]),
|
|
3088
3091
|
_: 1
|
|
3089
3092
|
})
|
|
3090
|
-
], 8, Si),
|
|
3091
|
-
e.disabled ?
|
|
3092
|
-
key:
|
|
3093
|
+
], 8, Si)) : B("", !0),
|
|
3094
|
+
e.disabled ? B("", !0) : (s(), h("span", {
|
|
3095
|
+
key: 1,
|
|
3093
3096
|
class: "el-upload__delete",
|
|
3094
3097
|
onClick: (q) => u(x)
|
|
3095
3098
|
}, [
|
|
3096
|
-
|
|
3099
|
+
U(w(Ee), null, {
|
|
3097
3100
|
default: v(() => [
|
|
3098
|
-
|
|
3101
|
+
U(w(fn))
|
|
3099
3102
|
]),
|
|
3100
3103
|
_: 1
|
|
3101
3104
|
})
|
|
@@ -3109,7 +3112,7 @@ const ri = {
|
|
|
3109
3112
|
]);
|
|
3110
3113
|
};
|
|
3111
3114
|
}
|
|
3112
|
-
}), Ci = /* @__PURE__ */ X(xi, [["__scopeId", "data-v-
|
|
3115
|
+
}), Ci = /* @__PURE__ */ X(xi, [["__scopeId", "data-v-e9c0f9c7"]]), _i = [
|
|
3113
3116
|
on,
|
|
3114
3117
|
te,
|
|
3115
3118
|
Jt,
|