vue-2024-ui 0.2.41 → 0.2.42
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/dist/index.es.js +239 -233
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -189,7 +189,7 @@ var Xt = { exports: {} };
|
|
|
189
189
|
(function(t, l) {
|
|
190
190
|
n.exports = l();
|
|
191
191
|
})(Tl, function() {
|
|
192
|
-
var t = 1e3, l = 6e4, o = 36e5, e = "millisecond", h = "second", c = "minute", D = "hour", f = "day", v = "week", u = "month", d = "quarter", $ = "year", ae = "date", O = "Invalid Date", G = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,
|
|
192
|
+
var t = 1e3, l = 6e4, o = 36e5, e = "millisecond", h = "second", c = "minute", D = "hour", f = "day", v = "week", u = "month", d = "quarter", $ = "year", ae = "date", O = "Invalid Date", G = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, M = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, se = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(w) {
|
|
193
193
|
var g = ["th", "st", "nd", "rd"], s = w % 100;
|
|
194
194
|
return "[" + w + (g[(s - 20) % 10] || g[s] || g[0]) + "]";
|
|
195
195
|
} }, ce = function(w, g, s) {
|
|
@@ -200,8 +200,8 @@ var Xt = { exports: {} };
|
|
|
200
200
|
return (g <= 0 ? "+" : "-") + ce(V, 2, "0") + ":" + ce(_, 2, "0");
|
|
201
201
|
}, m: function w(g, s) {
|
|
202
202
|
if (g.date() < s.date()) return -w(s, g);
|
|
203
|
-
var V = 12 * (s.year() - g.year()) + (s.month() - g.month()), _ = g.clone().add(V, u), q = s - _ < 0,
|
|
204
|
-
return +(-(V + (s - _) / (q ? _ -
|
|
203
|
+
var V = 12 * (s.year() - g.year()) + (s.month() - g.month()), _ = g.clone().add(V, u), q = s - _ < 0, F = g.clone().add(V + (q ? -1 : 1), u);
|
|
204
|
+
return +(-(V + (s - _) / (q ? _ - F : F - _)) || 0);
|
|
205
205
|
}, a: function(w) {
|
|
206
206
|
return w < 0 ? Math.ceil(w) || 0 : Math.floor(w);
|
|
207
207
|
}, p: function(w) {
|
|
@@ -218,8 +218,8 @@ var Xt = { exports: {} };
|
|
|
218
218
|
if (typeof g == "string") {
|
|
219
219
|
var q = g.toLowerCase();
|
|
220
220
|
fe[q] && (_ = q), s && (fe[q] = s, _ = q);
|
|
221
|
-
var
|
|
222
|
-
if (!_ &&
|
|
221
|
+
var F = g.split("-");
|
|
222
|
+
if (!_ && F.length > 1) return w(F[0]);
|
|
223
223
|
} else {
|
|
224
224
|
var Z = g.name;
|
|
225
225
|
fe[Z] = g, _ = Z;
|
|
@@ -245,10 +245,10 @@ var Xt = { exports: {} };
|
|
|
245
245
|
if (ee.u(_)) return /* @__PURE__ */ new Date();
|
|
246
246
|
if (_ instanceof Date) return new Date(_);
|
|
247
247
|
if (typeof _ == "string" && !/Z$/i.test(_)) {
|
|
248
|
-
var
|
|
249
|
-
if (
|
|
250
|
-
var Z =
|
|
251
|
-
return q ? new Date(Date.UTC(
|
|
248
|
+
var F = _.match(G);
|
|
249
|
+
if (F) {
|
|
250
|
+
var Z = F[2] - 1 || 0, ue = (F[7] || "0").substring(0, 3);
|
|
251
|
+
return q ? new Date(Date.UTC(F[1], Z, F[3] || 1, F[4] || 0, F[5] || 0, F[6] || 0, ue)) : new Date(F[1], Z, F[3] || 1, F[4] || 0, F[5] || 0, F[6] || 0, ue);
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
254
|
return new Date(_);
|
|
@@ -274,13 +274,13 @@ var Xt = { exports: {} };
|
|
|
274
274
|
}, g.valueOf = function() {
|
|
275
275
|
return this.$d.getTime();
|
|
276
276
|
}, g.startOf = function(s, V) {
|
|
277
|
-
var _ = this, q = !!ee.u(V) || V,
|
|
277
|
+
var _ = this, q = !!ee.u(V) || V, F = ee.p(s), Z = function(Fe, A) {
|
|
278
278
|
var C = ee.w(_.$u ? Date.UTC(_.$y, A, Fe) : new Date(_.$y, A, Fe), _);
|
|
279
279
|
return q ? C : C.endOf(f);
|
|
280
280
|
}, ue = function(Fe, A) {
|
|
281
281
|
return ee.w(_.toDate()[Fe].apply(_.toDate("s"), (q ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(A)), _);
|
|
282
282
|
}, re = this.$W, P = this.$M, N = this.$D, Se = "set" + (this.$u ? "UTC" : "");
|
|
283
|
-
switch (
|
|
283
|
+
switch (F) {
|
|
284
284
|
case $:
|
|
285
285
|
return q ? Z(1, 0) : Z(31, 11);
|
|
286
286
|
case u:
|
|
@@ -303,7 +303,7 @@ var Xt = { exports: {} };
|
|
|
303
303
|
}, g.endOf = function(s) {
|
|
304
304
|
return this.startOf(s, !1);
|
|
305
305
|
}, g.$set = function(s, V) {
|
|
306
|
-
var _, q = ee.p(s),
|
|
306
|
+
var _, q = ee.p(s), F = "set" + (this.$u ? "UTC" : ""), Z = (_ = {}, _[f] = F + "Date", _[ae] = F + "Date", _[u] = F + "Month", _[$] = F + "FullYear", _[D] = F + "Hours", _[c] = F + "Minutes", _[h] = F + "Seconds", _[e] = F + "Milliseconds", _)[q], ue = q === f ? this.$D + (V - this.$W) : V;
|
|
307
307
|
if (q === u || q === $) {
|
|
308
308
|
var re = this.clone().set(ae, 1);
|
|
309
309
|
re.$d[Z](ue), re.init(), this.$d = re.set(ae, Math.min(this.$D, re.daysInMonth())).$d;
|
|
@@ -316,22 +316,22 @@ var Xt = { exports: {} };
|
|
|
316
316
|
}, g.add = function(s, V) {
|
|
317
317
|
var _, q = this;
|
|
318
318
|
s = Number(s);
|
|
319
|
-
var
|
|
319
|
+
var F = ee.p(V), Z = function(P) {
|
|
320
320
|
var N = K(q);
|
|
321
321
|
return ee.w(N.date(N.date() + Math.round(P * s)), q);
|
|
322
322
|
};
|
|
323
|
-
if (
|
|
324
|
-
if (
|
|
325
|
-
if (
|
|
326
|
-
if (
|
|
327
|
-
var ue = (_ = {}, _[c] = l, _[D] = o, _[h] = t, _)[
|
|
323
|
+
if (F === u) return this.set(u, this.$M + s);
|
|
324
|
+
if (F === $) return this.set($, this.$y + s);
|
|
325
|
+
if (F === f) return Z(1);
|
|
326
|
+
if (F === v) return Z(7);
|
|
327
|
+
var ue = (_ = {}, _[c] = l, _[D] = o, _[h] = t, _)[F] || 1, re = this.$d.getTime() + s * ue;
|
|
328
328
|
return ee.w(re, this);
|
|
329
329
|
}, g.subtract = function(s, V) {
|
|
330
330
|
return this.add(-1 * s, V);
|
|
331
331
|
}, g.format = function(s) {
|
|
332
332
|
var V = this, _ = this.$locale();
|
|
333
333
|
if (!this.isValid()) return _.invalidDate || O;
|
|
334
|
-
var q = s || "YYYY-MM-DDTHH:mm:ssZ",
|
|
334
|
+
var q = s || "YYYY-MM-DDTHH:mm:ssZ", F = ee.z(this), Z = this.$H, ue = this.$m, re = this.$M, P = _.weekdays, N = _.months, Se = _.meridiem, he = function(A, C, Q, Ve) {
|
|
335
335
|
return A && (A[C] || A(V, q)) || Q[C].slice(0, Ve);
|
|
336
336
|
}, Me = function(A) {
|
|
337
337
|
return ee.s(Z % 12 || 12, A, "0");
|
|
@@ -339,7 +339,7 @@ var Xt = { exports: {} };
|
|
|
339
339
|
var Ve = A < 12 ? "AM" : "PM";
|
|
340
340
|
return Q ? Ve.toLowerCase() : Ve;
|
|
341
341
|
};
|
|
342
|
-
return q.replace(
|
|
342
|
+
return q.replace(M, function(A, C) {
|
|
343
343
|
return C || function(Q) {
|
|
344
344
|
switch (Q) {
|
|
345
345
|
case "YY":
|
|
@@ -389,16 +389,16 @@ var Xt = { exports: {} };
|
|
|
389
389
|
case "SSS":
|
|
390
390
|
return ee.s(V.$ms, 3, "0");
|
|
391
391
|
case "Z":
|
|
392
|
-
return
|
|
392
|
+
return F;
|
|
393
393
|
}
|
|
394
394
|
return null;
|
|
395
|
-
}(A) ||
|
|
395
|
+
}(A) || F.replace(":", "");
|
|
396
396
|
});
|
|
397
397
|
}, g.utcOffset = function() {
|
|
398
398
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
399
399
|
}, g.diff = function(s, V, _) {
|
|
400
|
-
var q,
|
|
401
|
-
return ee.m(
|
|
400
|
+
var q, F = this, Z = ee.p(V), ue = K(s), re = (ue.utcOffset() - this.utcOffset()) * l, P = this - ue, N = function() {
|
|
401
|
+
return ee.m(F, ue);
|
|
402
402
|
};
|
|
403
403
|
switch (Z) {
|
|
404
404
|
case $:
|
|
@@ -448,9 +448,9 @@ var Xt = { exports: {} };
|
|
|
448
448
|
}, g.toString = function() {
|
|
449
449
|
return this.$d.toUTCString();
|
|
450
450
|
}, w;
|
|
451
|
-
}(),
|
|
452
|
-
return K.prototype =
|
|
453
|
-
|
|
451
|
+
}(), T = Ue.prototype;
|
|
452
|
+
return K.prototype = T, [["$ms", e], ["$s", h], ["$m", c], ["$H", D], ["$W", f], ["$M", u], ["$y", $], ["$D", ae]].forEach(function(w) {
|
|
453
|
+
T[w[1]] = function(g) {
|
|
454
454
|
return this.$g(g, w[0], w[1]);
|
|
455
455
|
};
|
|
456
456
|
}), K.extend = function(w, g) {
|
|
@@ -532,9 +532,9 @@ const St = /* @__PURE__ */ Gt(Fl), Qt = {
|
|
|
532
532
|
}),
|
|
533
533
|
emits: ["update:modelValue"],
|
|
534
534
|
setup(n) {
|
|
535
|
-
var w, g, s, V, _, q,
|
|
535
|
+
var w, g, s, V, _, q, F, Z, ue, re, P, N, Se, he, Me, Fe;
|
|
536
536
|
const i = n, t = ne(i.item || {}), l = rt(n, "modelValue"), o = ne(i.ctrlKey), e = ne(i.ctrlType), h = ne(i.model), c = ne([]), D = ne([]), f = ne(!1), v = ne(!1), u = ne((g = (w = h == null ? void 0 : h.value) == null ? void 0 : w.form) != null && g["default-placeholder"] ? (V = (s = h == null ? void 0 : h.value) == null ? void 0 : s[o == null ? void 0 : o.value]) == null ? void 0 : V.label : "");
|
|
537
|
-
!((_ = e.value) != null && _.startsWith("text")) && !((q = e.value) != null && q.startsWith("link")) && !((
|
|
537
|
+
!((_ = e.value) != null && _.startsWith("text")) && !((q = e.value) != null && q.startsWith("link")) && !((F = e.value) != null && F.startsWith("tag")) && !((Z = e.value) != null && Z.startsWith("div")) && !((ue = e.value) != null && ue.startsWith("span")) && !((re = e.value) != null && re.startsWith("avatar")) && ((P = t.value) != null && P.style || (t.value.style = { width: ((Se = (N = t.value) == null ? void 0 : N.style) == null ? void 0 : Se.width) || "100%" }));
|
|
538
538
|
const d = ne({ display: "flex", flex: 1 }), $ = i.t === "t" ? "center" : "flex-start", ae = ((he = t.value) == null ? void 0 : he.style) || {};
|
|
539
539
|
d.value = { ...d.value, justifyContent: $, ...ae };
|
|
540
540
|
const O = () => {
|
|
@@ -545,7 +545,7 @@ const St = /* @__PURE__ */ Gt(Fl), Qt = {
|
|
|
545
545
|
"show-file-list": !1,
|
|
546
546
|
"file-list": [],
|
|
547
547
|
showDel: (Me = t.value) != null && Me.showDel ? (Fe = t.value) == null ? void 0 : Fe.showDel : i.t !== "t"
|
|
548
|
-
}),
|
|
548
|
+
}), M = ne(t.value.innerHtml), se = (A) => [
|
|
549
549
|
"year",
|
|
550
550
|
"years",
|
|
551
551
|
"month",
|
|
@@ -666,19 +666,19 @@ const St = /* @__PURE__ */ Gt(Fl), Qt = {
|
|
|
666
666
|
}
|
|
667
667
|
e.value == "image" && (t.value.width && ((He = ee.value) != null && He.$el) && ee.value.$el.style.setProperty("--up-width", typeof t.value.width == "number" ? t.value.width + "px" : t.value.width), t.value.height && ((Te = ee.value) != null && Te.$el) && ee.value.$el.style.setProperty("--up-height", typeof t.value.height == "number" ? t.value.height + "px" : t.value.height), t.value.fontSize && ((Ze = ee.value) != null && Ze.$el) && ee.value.$el.style.setProperty("--up-font-size", typeof t.value.fontSize == "number" ? t.value.fontSize + "px" : t.value.fontSize));
|
|
668
668
|
});
|
|
669
|
-
const
|
|
669
|
+
const T = ut(() => {
|
|
670
670
|
var A;
|
|
671
671
|
return t.value["file-list"] && t.value["file-list"].length ? (A = t.value["file-list"]) == null ? void 0 : A.map((C) => C == null ? void 0 : C.url) : [l.value];
|
|
672
672
|
});
|
|
673
673
|
return (A, C) => {
|
|
674
674
|
var ie, Je, Ke, Xe, Qe, nt, Y, Le, et, vt;
|
|
675
|
-
const Q = L("el-image-viewer"), Ve = L("el-radio"), He = L("el-radio-group"), Te = L("el-radio-button"), Ze = L("el-checkbox"), Re = L("el-checkbox-group"), Pe = L("el-checkbox-button"), Ne = L("g-select-option"), je = L("el-option"), mt = L("el-select"), a = L("el-tree-select"), r = L("el-time-picker"), p = L("el-time-select"), b = L("el-date-picker"),
|
|
675
|
+
const Q = L("el-image-viewer"), Ve = L("el-radio"), He = L("el-radio-group"), Te = L("el-radio-button"), Ze = L("el-checkbox"), Re = L("el-checkbox-group"), Pe = L("el-checkbox-button"), Ne = L("g-select-option"), je = L("el-option"), mt = L("el-select"), a = L("el-tree-select"), r = L("el-time-picker"), p = L("el-time-select"), b = L("el-date-picker"), x = L("el-color-picker"), U = L("el-rate"), j = L("el-slider"), ye = L("el-switch"), Ee = L("el-transfer"), Oe = L("el-cascader"), Ye = L("el-icon"), ze = L("el-image"), We = L("el-tooltip"), it = L("el-upload"), ht = L("el-autocomplete"), yt = L("el-input-number"), ct = L("el-input"), z = L("el-link"), de = L("el-text"), S = L("el-avatar"), J = L("el-tag");
|
|
676
676
|
return m(), R(le, null, [
|
|
677
677
|
X("div", null, [
|
|
678
678
|
f.value ? (m(), B(Q, {
|
|
679
679
|
key: 0,
|
|
680
680
|
teleported: !0,
|
|
681
|
-
"url-list":
|
|
681
|
+
"url-list": T.value,
|
|
682
682
|
onClose: C[0] || (C[0] = (y) => f.value = !1)
|
|
683
683
|
}, null, 8, ["url-list"])) : $e("", !0)
|
|
684
684
|
]),
|
|
@@ -932,7 +932,7 @@ const St = /* @__PURE__ */ Gt(Fl), Qt = {
|
|
|
932
932
|
k(A.$slots, `${i.t}-${o.value}-${y}`, { data: oe }, void 0, !0)
|
|
933
933
|
])
|
|
934
934
|
}))
|
|
935
|
-
]), 1040, ["modelValue", "type", "placeholder", "value-format", "disabled"])) : e.value == H(_e).COLOR ? (m(), B(
|
|
935
|
+
]), 1040, ["modelValue", "type", "placeholder", "value-format", "disabled"])) : e.value == H(_e).COLOR ? (m(), B(x, I({
|
|
936
936
|
key: 10,
|
|
937
937
|
modelValue: l.value,
|
|
938
938
|
"onUpdate:modelValue": C[12] || (C[12] = (y) => l.value = y)
|
|
@@ -1123,7 +1123,7 @@ const St = /* @__PURE__ */ Gt(Fl), Qt = {
|
|
|
1123
1123
|
}, [
|
|
1124
1124
|
te(z, I(t.value, {
|
|
1125
1125
|
type: e.value.replace("link-", ""),
|
|
1126
|
-
innerHTML:
|
|
1126
|
+
innerHTML: M.value || l.value
|
|
1127
1127
|
}), null, 16, ["type", "innerHTML"])
|
|
1128
1128
|
], 4)) : e.value != "textarea" && ((Xe = e.value) != null && Xe.startsWith("text")) ? (m(), R("div", {
|
|
1129
1129
|
key: 21,
|
|
@@ -1131,15 +1131,15 @@ const St = /* @__PURE__ */ Gt(Fl), Qt = {
|
|
|
1131
1131
|
}, [
|
|
1132
1132
|
te(de, I(t.value, {
|
|
1133
1133
|
type: e.value.replace("text-", ""),
|
|
1134
|
-
innerHTML:
|
|
1134
|
+
innerHTML: M.value || l.value
|
|
1135
1135
|
}), null, 16, ["type", "innerHTML"])
|
|
1136
1136
|
], 4)) : e.value == "avatar" ? (m(), R("div", {
|
|
1137
1137
|
key: 22,
|
|
1138
1138
|
style: Be(d.value)
|
|
1139
1139
|
}, [
|
|
1140
|
-
|
|
1140
|
+
M.value ? (m(), B(S, xt(I({ key: 0 }, t.value)), {
|
|
1141
1141
|
default: E(() => [
|
|
1142
|
-
X("div", { innerHTML:
|
|
1142
|
+
X("div", { innerHTML: M.value }, null, 8, Bl)
|
|
1143
1143
|
]),
|
|
1144
1144
|
_: 1
|
|
1145
1145
|
}, 16)) : (m(), B(S, xt(I({ key: 1 }, t.value)), null, 16))
|
|
@@ -1147,7 +1147,7 @@ const St = /* @__PURE__ */ Gt(Fl), Qt = {
|
|
|
1147
1147
|
key: 23,
|
|
1148
1148
|
style: Be(d.value)
|
|
1149
1149
|
}, [
|
|
1150
|
-
Array.isArray(
|
|
1150
|
+
Array.isArray(M.value) && M.value.length > 0 ? (m(!0), R(le, { key: 0 }, W(M.value, (y, oe) => (m(), R(le, { key: oe }, [
|
|
1151
1151
|
typeof y == "object" ? (m(), B(J, I({
|
|
1152
1152
|
key: 0,
|
|
1153
1153
|
"disable-transitions": "",
|
|
@@ -1169,13 +1169,13 @@ const St = /* @__PURE__ */ Gt(Fl), Qt = {
|
|
|
1169
1169
|
"disable-transitions": ""
|
|
1170
1170
|
}, t.value, {
|
|
1171
1171
|
type: e.value.replace("tag-", ""),
|
|
1172
|
-
innerHTML:
|
|
1172
|
+
innerHTML: M.value || l.value
|
|
1173
1173
|
}), null, 16, ["type", "innerHTML"]))
|
|
1174
1174
|
], 4)) : e.value == "div" ? (m(), R("div", I({ key: 24 }, t.value, {
|
|
1175
|
-
innerHTML:
|
|
1175
|
+
innerHTML: M.value || l.value,
|
|
1176
1176
|
style: d.value
|
|
1177
1177
|
}), null, 16, Ol)) : e.value == "span" ? (m(), R("span", I({ key: 25 }, t.value, {
|
|
1178
|
-
innerHTML:
|
|
1178
|
+
innerHTML: M.value || l.value,
|
|
1179
1179
|
style: d.value
|
|
1180
1180
|
}), null, 16, Il)) : (m(), B(ct, I({
|
|
1181
1181
|
key: 26,
|
|
@@ -1276,24 +1276,24 @@ const St = /* @__PURE__ */ Gt(Fl), Qt = {
|
|
|
1276
1276
|
(De = (xe = l.value) == null ? void 0 : xe.form) == null ? void 0 : De.style,
|
|
1277
1277
|
{ ...(K = Bt()) == null ? void 0 : K.style }
|
|
1278
1278
|
);
|
|
1279
|
-
const v = async (
|
|
1279
|
+
const v = async (T, w, g) => {
|
|
1280
1280
|
let s = 5;
|
|
1281
1281
|
for (; s > 0; ) {
|
|
1282
1282
|
if (await ft(), e.value) {
|
|
1283
1283
|
e.value.validate((V, _) => {
|
|
1284
|
-
V ? o("submit",
|
|
1284
|
+
V ? o("submit", T, w, g) : console.error("表单验证不通过!", _);
|
|
1285
1285
|
});
|
|
1286
1286
|
return;
|
|
1287
1287
|
}
|
|
1288
1288
|
s--, await new Promise((V) => setTimeout(V, 50));
|
|
1289
1289
|
}
|
|
1290
1290
|
console.error("表单实例获取失败,请检查组件状态");
|
|
1291
|
-
}, u = async (
|
|
1291
|
+
}, u = async (T, w) => {
|
|
1292
1292
|
let g = 5;
|
|
1293
1293
|
for (; g > 0; ) {
|
|
1294
1294
|
if (await ft(), e.value)
|
|
1295
1295
|
try {
|
|
1296
|
-
e.value.resetFields(), o("reset",
|
|
1296
|
+
e.value.resetFields(), o("reset", T, w);
|
|
1297
1297
|
return;
|
|
1298
1298
|
} catch (s) {
|
|
1299
1299
|
console.error("表单重置失败:", s);
|
|
@@ -1325,10 +1325,10 @@ const St = /* @__PURE__ */ Gt(Fl), Qt = {
|
|
|
1325
1325
|
(Ue = h == null ? void 0 : h.form) == null ? void 0 : Ue.cols,
|
|
1326
1326
|
l.value.form.cols
|
|
1327
1327
|
);
|
|
1328
|
-
const ae = (
|
|
1328
|
+
const ae = (T) => {
|
|
1329
1329
|
let w = [];
|
|
1330
|
-
if (
|
|
1331
|
-
w =
|
|
1330
|
+
if (T.rules)
|
|
1331
|
+
w = T.rules;
|
|
1332
1332
|
else {
|
|
1333
1333
|
const s = { ...{
|
|
1334
1334
|
required: void 0,
|
|
@@ -1338,7 +1338,7 @@ const St = /* @__PURE__ */ Gt(Fl), Qt = {
|
|
|
1338
1338
|
url: void 0,
|
|
1339
1339
|
pattern: void 0,
|
|
1340
1340
|
validate: void 0
|
|
1341
|
-
}, ...
|
|
1341
|
+
}, ...T };
|
|
1342
1342
|
s.required && w.push({
|
|
1343
1343
|
required: !0,
|
|
1344
1344
|
message: `${s.label}不能为空!`,
|
|
@@ -1366,16 +1366,16 @@ const St = /* @__PURE__ */ Gt(Fl), Qt = {
|
|
|
1366
1366
|
}), s.min !== void 0 && s.min !== null && s.min !== "" && s.max !== void 0 && s.max !== null && s.max !== "" && w.push({
|
|
1367
1367
|
validator: (V, _, q) => {
|
|
1368
1368
|
if (_ == null || _ === "") return q();
|
|
1369
|
-
const
|
|
1369
|
+
const F = Number(s.min), Z = Number(s.max);
|
|
1370
1370
|
s.type !== "number" && s.type !== "input-number" ? Number(s.min) < 1 ? q(
|
|
1371
1371
|
new Error(
|
|
1372
1372
|
`${s.label}长度最小值${s.min}设置错误!`
|
|
1373
1373
|
)
|
|
1374
|
-
) : _.toString().length <
|
|
1374
|
+
) : _.toString().length < F || _.toString().length > Z ? q(
|
|
1375
1375
|
new Error(
|
|
1376
|
-
`${s.label}长度必须在${
|
|
1376
|
+
`${s.label}长度必须在${F}-${Z}个字符之间!`
|
|
1377
1377
|
)
|
|
1378
|
-
) : q() : Number(_) <
|
|
1378
|
+
) : q() : Number(_) < F || _ > Z ? q(new Error(`${s.label}必须在${F}-${Z}之间!`)) : q();
|
|
1379
1379
|
}
|
|
1380
1380
|
}), s.type == "email" && w.push({ type: "email", message: "不是一个正确的邮箱地址!" }), s.type == "url" && w.push({ type: "url", message: "不是一个合正确的URL!" }), s.pattern && w.push({
|
|
1381
1381
|
pattern: s == null ? void 0 : s.pattern,
|
|
@@ -1385,65 +1385,65 @@ const St = /* @__PURE__ */ Gt(Fl), Qt = {
|
|
|
1385
1385
|
});
|
|
1386
1386
|
}
|
|
1387
1387
|
return w;
|
|
1388
|
-
}, O = (
|
|
1389
|
-
var V, _, q,
|
|
1390
|
-
const g = w ?
|
|
1388
|
+
}, O = (T, w = !1) => {
|
|
1389
|
+
var V, _, q, F, Z;
|
|
1390
|
+
const g = w ? T : T == null ? void 0 : T.item, s = typeof (g == null ? void 0 : g.editor) == "function" ? g.editor(c.value, (V = l.value.form) == null ? void 0 : V.modalState) : (g == null ? void 0 : g.editor) || {};
|
|
1391
1391
|
if (((_ = l.value.form) == null ? void 0 : _.modalState) === "edit") {
|
|
1392
1392
|
const ue = typeof (g == null ? void 0 : g.editor) == "object" ? (q = g.editor) == null ? void 0 : q.ep : typeof (g == null ? void 0 : g.editor) == "function" ? s == null ? void 0 : s.ep : {};
|
|
1393
1393
|
return { ...s, ...ue };
|
|
1394
1394
|
}
|
|
1395
|
-
if (((
|
|
1395
|
+
if (((F = l.value.form) == null ? void 0 : F.modalState) === "add") {
|
|
1396
1396
|
const ue = typeof (g == null ? void 0 : g.editor) == "object" ? (Z = g.editor) == null ? void 0 : Z.ap : typeof (g == null ? void 0 : g.editor) == "function" ? s == null ? void 0 : s.ap : {};
|
|
1397
1397
|
return { ...s, ...ue };
|
|
1398
1398
|
}
|
|
1399
1399
|
return s;
|
|
1400
|
-
}, G = (
|
|
1400
|
+
}, G = (T) => {
|
|
1401
1401
|
var g, s, V, _, q;
|
|
1402
|
-
const w = typeof
|
|
1403
|
-
return ((s = l.value.form) == null ? void 0 : s.modalState) === "edit" ? ((V = w == null ? void 0 : w.ep) == null ? void 0 : V.type) ?? (w == null ? void 0 : w.type) ??
|
|
1402
|
+
const w = typeof T.editor == "function" ? T.editor(c.value, (g = l.value.form) == null ? void 0 : g.modalState) : T.editor;
|
|
1403
|
+
return ((s = l.value.form) == null ? void 0 : s.modalState) === "edit" ? ((V = w == null ? void 0 : w.ep) == null ? void 0 : V.type) ?? (w == null ? void 0 : w.type) ?? T.type : ((_ = l.value.form) == null ? void 0 : _.modalState) === "add" ? ((q = w == null ? void 0 : w.ap) == null ? void 0 : q.type) ?? (w == null ? void 0 : w.type) ?? T.type : (w == null ? void 0 : w.type) ?? T.type;
|
|
1404
1404
|
};
|
|
1405
1405
|
pt(() => {
|
|
1406
|
-
|
|
1406
|
+
M(), f != null && f.editForm ? c.value = f.editForm : c.value = ce.value;
|
|
1407
1407
|
}), nl(() => {
|
|
1408
1408
|
e.value = null;
|
|
1409
1409
|
});
|
|
1410
|
-
const
|
|
1410
|
+
const M = () => {
|
|
1411
1411
|
D.value = Math.random().toString(36).substring(2);
|
|
1412
|
-
for (const [
|
|
1413
|
-
l.value[
|
|
1414
|
-
...l.value[
|
|
1412
|
+
for (const [T, w] of Object.entries(se.value))
|
|
1413
|
+
l.value[T].formItem = {
|
|
1414
|
+
...l.value[T].formItem,
|
|
1415
1415
|
...w.formItem
|
|
1416
|
-
}, l.value[
|
|
1417
|
-
...l.value[
|
|
1416
|
+
}, l.value[T].formItem.style = {
|
|
1417
|
+
...l.value[T].formItem.style,
|
|
1418
1418
|
...w.formItem.style
|
|
1419
1419
|
};
|
|
1420
1420
|
}, se = ut(
|
|
1421
1421
|
() => Object.fromEntries(
|
|
1422
|
-
Object.entries(l.value).filter((
|
|
1422
|
+
Object.entries(l.value).filter((T) => T[1].type != "hidden").filter((T) => T[1].hidden !== !0).filter((T) => T[1].edit !== !1).filter((T) => T[1].editor !== !1).filter((T) => T[1].type !== "control").filter((T) => !["table", "tableColumns", "query", "queryItems", "form", "formItems", "control", "dialog"].includes(T[0])).filter((T) => {
|
|
1423
1423
|
var g, s, V;
|
|
1424
|
-
const w = typeof
|
|
1424
|
+
const w = typeof T[1].editor == "function" ? T[1].editor(c.value, (g = l.value.form) == null ? void 0 : g.modalState) : T[1].editor;
|
|
1425
1425
|
return l.value.form.modalState === "edit" ? ((s = w == null ? void 0 : w.ep) == null ? void 0 : s.editor) !== !1 : l.value.form.modalState === "add" ? ((V = w == null ? void 0 : w.ap) == null ? void 0 : V.editor) !== !1 : !0;
|
|
1426
|
-
}).map((
|
|
1426
|
+
}).map((T) => [T[0], T[1]])
|
|
1427
1427
|
)
|
|
1428
1428
|
), ce = ut(
|
|
1429
1429
|
() => Object.fromEntries(
|
|
1430
|
-
Object.entries(l.value).filter((
|
|
1430
|
+
Object.entries(l.value).filter((T) => T[1].type != "hidden").filter((T) => T[1].type != "control").map((T) => [T[0], T[1].value])
|
|
1431
1431
|
)
|
|
1432
1432
|
), me = ut(() => {
|
|
1433
|
-
const
|
|
1433
|
+
const T = /* @__PURE__ */ new Map();
|
|
1434
1434
|
return Object.entries(se.value).forEach(([w, g]) => {
|
|
1435
1435
|
if (g.groupName) {
|
|
1436
1436
|
const s = g.groupName;
|
|
1437
|
-
|
|
1437
|
+
T.has(s) || T.set(s, {
|
|
1438
1438
|
groupName: s,
|
|
1439
1439
|
items: []
|
|
1440
|
-
}),
|
|
1440
|
+
}), T.get(s).items.push({ key: w, item: g });
|
|
1441
1441
|
}
|
|
1442
|
-
}),
|
|
1442
|
+
}), T.forEach((w) => {
|
|
1443
1443
|
w.tabPane = qe(
|
|
1444
1444
|
...w.items.map(({ item: g }) => g.tabPane || {})
|
|
1445
1445
|
);
|
|
1446
|
-
}), Array.from(
|
|
1446
|
+
}), Array.from(T.values());
|
|
1447
1447
|
}), ve = ne([
|
|
1448
1448
|
{
|
|
1449
1449
|
name: "f-submit",
|
|
@@ -1483,15 +1483,15 @@ const St = /* @__PURE__ */ Gt(Fl), Qt = {
|
|
|
1483
1483
|
originalOrder: 1
|
|
1484
1484
|
// 添加原始顺序标识
|
|
1485
1485
|
}
|
|
1486
|
-
]), fe = ut(() => ve.value.filter((
|
|
1486
|
+
]), fe = ut(() => ve.value.filter((T) => !T.hidden).sort((T, w) => T.sort - w.sort || T.originalOrder - w.originalOrder));
|
|
1487
1487
|
return i({
|
|
1488
1488
|
submit: v,
|
|
1489
1489
|
saveSubmit: v,
|
|
1490
1490
|
reset: u,
|
|
1491
1491
|
formData: c
|
|
1492
|
-
}), (
|
|
1492
|
+
}), (T, w) => {
|
|
1493
1493
|
var Z, ue, re;
|
|
1494
|
-
const g = L("el-form-item"), s = L("el-col"), V = L("el-tab-pane"), _ = L("el-tabs"), q = L("el-form"),
|
|
1494
|
+
const g = L("el-form-item"), s = L("el-col"), V = L("el-tab-pane"), _ = L("el-tabs"), q = L("el-form"), F = L("el-button");
|
|
1495
1495
|
return m(), R("div", zl, [
|
|
1496
1496
|
te(q, I(
|
|
1497
1497
|
{
|
|
@@ -1511,7 +1511,7 @@ const St = /* @__PURE__ */ Gt(Fl), Qt = {
|
|
|
1511
1511
|
)
|
|
1512
1512
|
), {
|
|
1513
1513
|
default: E(() => [
|
|
1514
|
-
me.value.length > 0 ? k(
|
|
1514
|
+
me.value.length > 0 ? k(T.$slots, "default", { key: 0 }, () => [
|
|
1515
1515
|
te(_, I({
|
|
1516
1516
|
class: "demo-tabs",
|
|
1517
1517
|
modelValue: me.value[0].groupName,
|
|
@@ -1541,7 +1541,7 @@ const St = /* @__PURE__ */ Gt(Fl), Qt = {
|
|
|
1541
1541
|
ref_for: !0
|
|
1542
1542
|
}, { ...(he = l.value) == null ? void 0 : he.formItems, ...(Me = N == null ? void 0 : N.item) == null ? void 0 : Me.formItem }, { style: { width: "100%" } }), {
|
|
1543
1543
|
default: E(() => [
|
|
1544
|
-
k(
|
|
1544
|
+
k(T.$slots, "f-" + N.key, {
|
|
1545
1545
|
item: N == null ? void 0 : N.item,
|
|
1546
1546
|
formInfo: c.value,
|
|
1547
1547
|
model: l.value,
|
|
@@ -1559,10 +1559,10 @@ const St = /* @__PURE__ */ Gt(Fl), Qt = {
|
|
|
1559
1559
|
t: "f",
|
|
1560
1560
|
formInfo: c.value
|
|
1561
1561
|
}, be({ _: 2 }, [
|
|
1562
|
-
W(
|
|
1562
|
+
W(T.$slots, (Fe, A) => ({
|
|
1563
1563
|
name: A,
|
|
1564
1564
|
fn: E((C) => [
|
|
1565
|
-
k(
|
|
1565
|
+
k(T.$slots, A, {
|
|
1566
1566
|
data: C,
|
|
1567
1567
|
item: N.item,
|
|
1568
1568
|
model: l.value
|
|
@@ -1584,7 +1584,7 @@ const St = /* @__PURE__ */ Gt(Fl), Qt = {
|
|
|
1584
1584
|
]),
|
|
1585
1585
|
_: 3
|
|
1586
1586
|
}, 16, ["modelValue"])
|
|
1587
|
-
], !0) : k(
|
|
1587
|
+
], !0) : k(T.$slots, "default", { key: 1 }, () => [
|
|
1588
1588
|
(m(!0), R(le, null, W(se.value, (P, N) => (m(), B(s, I({ ref_for: !0 }, { ...l.value.form.cols, ...P.col }, {
|
|
1589
1589
|
key: N,
|
|
1590
1590
|
style: { width: "100%" }
|
|
@@ -1599,7 +1599,7 @@ const St = /* @__PURE__ */ Gt(Fl), Qt = {
|
|
|
1599
1599
|
ref_for: !0
|
|
1600
1600
|
}, { ...(Se = l.value) == null ? void 0 : Se.formItems, ...P == null ? void 0 : P.formItem }, { style: { width: "100%" } }), {
|
|
1601
1601
|
label: E((he) => [
|
|
1602
|
-
k(
|
|
1602
|
+
k(T.$slots, `f-${N}-label`, {
|
|
1603
1603
|
data: he,
|
|
1604
1604
|
item: P,
|
|
1605
1605
|
model: l.value
|
|
@@ -1608,7 +1608,7 @@ const St = /* @__PURE__ */ Gt(Fl), Qt = {
|
|
|
1608
1608
|
], !0)
|
|
1609
1609
|
]),
|
|
1610
1610
|
default: E(() => [
|
|
1611
|
-
k(
|
|
1611
|
+
k(T.$slots, "f-" + N, {
|
|
1612
1612
|
item: P,
|
|
1613
1613
|
formInfo: c.value,
|
|
1614
1614
|
model: l.value,
|
|
@@ -1626,10 +1626,10 @@ const St = /* @__PURE__ */ Gt(Fl), Qt = {
|
|
|
1626
1626
|
t: "f",
|
|
1627
1627
|
formInfo: c.value
|
|
1628
1628
|
}, be({ _: 2 }, [
|
|
1629
|
-
W(
|
|
1629
|
+
W(T.$slots, (he, Me) => ({
|
|
1630
1630
|
name: Me,
|
|
1631
1631
|
fn: E((Fe) => [
|
|
1632
|
-
k(
|
|
1632
|
+
k(T.$slots, Me, {
|
|
1633
1633
|
data: Fe,
|
|
1634
1634
|
item: P,
|
|
1635
1635
|
model: l.value
|
|
@@ -1649,17 +1649,17 @@ const St = /* @__PURE__ */ Gt(Fl), Qt = {
|
|
|
1649
1649
|
]),
|
|
1650
1650
|
_: 3
|
|
1651
1651
|
}, 16, ["model"]),
|
|
1652
|
-
(re = (ue = (Z = l.value) == null ? void 0 : Z.form) == null ? void 0 : ue.footer) != null && re.hidden ? $e("", !0) : k(
|
|
1652
|
+
(re = (ue = (Z = l.value) == null ? void 0 : Z.form) == null ? void 0 : ue.footer) != null && re.hidden ? $e("", !0) : k(T.$slots, "f-footer", { key: 0 }, () => [
|
|
1653
1653
|
X("div", {
|
|
1654
1654
|
style: Be(l.value.form.footer.style)
|
|
1655
1655
|
}, [
|
|
1656
|
-
k(
|
|
1656
|
+
k(T.$slots, "f-footer-left", {}, void 0, !0),
|
|
1657
1657
|
(m(!0), R(le, null, W(fe.value, (P) => (m(), R(le, null, [
|
|
1658
|
-
k(
|
|
1659
|
-
k(
|
|
1658
|
+
k(T.$slots, P.name + "-left", {}, void 0, !0),
|
|
1659
|
+
k(T.$slots, P.name, {}, () => {
|
|
1660
1660
|
var N;
|
|
1661
1661
|
return [
|
|
1662
|
-
(N = P == null ? void 0 : P.info) != null && N.hidden ? $e("", !0) : (m(), B(
|
|
1662
|
+
(N = P == null ? void 0 : P.info) != null && N.hidden ? $e("", !0) : (m(), B(F, I({
|
|
1663
1663
|
key: 0,
|
|
1664
1664
|
ref_for: !0
|
|
1665
1665
|
}, P.info, {
|
|
@@ -1672,9 +1672,9 @@ const St = /* @__PURE__ */ Gt(Fl), Qt = {
|
|
|
1672
1672
|
}, 1040, ["onClick"]))
|
|
1673
1673
|
];
|
|
1674
1674
|
}, !0),
|
|
1675
|
-
k(
|
|
1675
|
+
k(T.$slots, P.name + "-right", {}, void 0, !0)
|
|
1676
1676
|
], 64))), 256)),
|
|
1677
|
-
k(
|
|
1677
|
+
k(T.$slots, "f-footer-right", {}, void 0, !0)
|
|
1678
1678
|
], 4)
|
|
1679
1679
|
], !0)
|
|
1680
1680
|
]);
|
|
@@ -1850,7 +1850,7 @@ const St = /* @__PURE__ */ Gt(Fl), Qt = {
|
|
|
1850
1850
|
};
|
|
1851
1851
|
t.value.queryItems = qe(f, o == null ? void 0 : o.queryItems, t.value.queryItems);
|
|
1852
1852
|
const v = (O, G) => {
|
|
1853
|
-
const
|
|
1853
|
+
const M = Object.keys(O.slots).filter((se) => se !== "default").reduce((se, ce) => (se[ce] = (me) => O.slots[ce]({
|
|
1854
1854
|
model: t.value
|
|
1855
1855
|
// 传递当前模型数据
|
|
1856
1856
|
}), se), {});
|
|
@@ -1860,13 +1860,13 @@ const St = /* @__PURE__ */ Gt(Fl), Qt = {
|
|
|
1860
1860
|
info: h.value,
|
|
1861
1861
|
"onUpdate:info": (se) => h.value = se,
|
|
1862
1862
|
more: G
|
|
1863
|
-
},
|
|
1863
|
+
}, M);
|
|
1864
1864
|
}, u = Yt(), d = () => {
|
|
1865
|
-
var
|
|
1865
|
+
var M, se, ce, me, ve, fe, ge, xe, De;
|
|
1866
1866
|
const O = [
|
|
1867
1867
|
{
|
|
1868
1868
|
key: "query",
|
|
1869
|
-
hidden: (ce = (se = (
|
|
1869
|
+
hidden: (ce = (se = (M = t.value) == null ? void 0 : M.query) == null ? void 0 : se.query) == null ? void 0 : ce.hidden,
|
|
1870
1870
|
component: Ie,
|
|
1871
1871
|
props: {
|
|
1872
1872
|
...t.value.query.query,
|
|
@@ -1913,8 +1913,8 @@ const St = /* @__PURE__ */ Gt(Fl), Qt = {
|
|
|
1913
1913
|
alert("查询设置,正在开发中......");
|
|
1914
1914
|
};
|
|
1915
1915
|
return (O, G) => {
|
|
1916
|
-
var ce, me, ve, fe, ge, xe, De, K, ee, Ue,
|
|
1917
|
-
const
|
|
1916
|
+
var ce, me, ve, fe, ge, xe, De, K, ee, Ue, T, w, g, s, V, _, q;
|
|
1917
|
+
const M = L("el-form-item"), se = L("el-drawer");
|
|
1918
1918
|
return m(), R(le, null, [
|
|
1919
1919
|
X("div", {
|
|
1920
1920
|
class: "g-query-container",
|
|
@@ -1924,12 +1924,12 @@ const St = /* @__PURE__ */ Gt(Fl), Qt = {
|
|
|
1924
1924
|
te(H(bt), I({
|
|
1925
1925
|
onSubmit: G[0] || (G[0] = Et(() => {
|
|
1926
1926
|
}, ["prevent"]))
|
|
1927
|
-
}, H(Ge)(t.value.query, (
|
|
1927
|
+
}, H(Ge)(t.value.query, (F) => !["query", "more", "reset", "btns"].includes(F))), {
|
|
1928
1928
|
default: E(() => {
|
|
1929
|
-
var
|
|
1929
|
+
var F, Z;
|
|
1930
1930
|
return [
|
|
1931
1931
|
(m(), B(tt(v({ slots: O.$slots }, void 0)))),
|
|
1932
|
-
((Z = (
|
|
1932
|
+
((Z = (F = t.value.query) == null ? void 0 : F.container) == null ? void 0 : Z.inline) === !0 ? (m(), B(M, { key: 0 }, {
|
|
1933
1933
|
default: E(() => {
|
|
1934
1934
|
var ue, re, P, N, Se;
|
|
1935
1935
|
return [
|
|
@@ -1972,8 +1972,8 @@ const St = /* @__PURE__ */ Gt(Fl), Qt = {
|
|
|
1972
1972
|
}, [
|
|
1973
1973
|
t.value.query.group ? (m(), B(H($t), { key: 0 }, {
|
|
1974
1974
|
default: E(() => [
|
|
1975
|
-
(m(!0), R(le, null, W(d(), (
|
|
1976
|
-
(m(), B(tt(
|
|
1975
|
+
(m(!0), R(le, null, W(d(), (F) => k(O.$slots, F.props.slot, {}, () => [
|
|
1976
|
+
(m(), B(tt(F)))
|
|
1977
1977
|
], !0)), 256)),
|
|
1978
1978
|
k(O.$slots, "q-btns", {}, void 0, !0)
|
|
1979
1979
|
]),
|
|
@@ -1981,22 +1981,22 @@ const St = /* @__PURE__ */ Gt(Fl), Qt = {
|
|
|
1981
1981
|
})) : (m(), R(le, { key: 1 }, [
|
|
1982
1982
|
(ee = (K = t.value.query) == null ? void 0 : K.btns) != null && ee.group ? (m(), B(H($t), { key: 0 }, {
|
|
1983
1983
|
default: E(() => [
|
|
1984
|
-
(m(!0), R(le, null, W(d(), (
|
|
1985
|
-
(m(), B(tt(
|
|
1984
|
+
(m(!0), R(le, null, W(d(), (F) => k(O.$slots, F.props.slot, {}, () => [
|
|
1985
|
+
(m(), B(tt(F)))
|
|
1986
1986
|
], !0)), 256))
|
|
1987
1987
|
]),
|
|
1988
1988
|
_: 3
|
|
1989
|
-
})) : (m(!0), R(le, { key: 1 }, W(d(), (
|
|
1990
|
-
(m(), B(tt(
|
|
1989
|
+
})) : (m(!0), R(le, { key: 1 }, W(d(), (F) => k(O.$slots, F.props.slot, {}, () => [
|
|
1990
|
+
(m(), B(tt(F)))
|
|
1991
1991
|
], !0)), 256)),
|
|
1992
1992
|
k(O.$slots, "q-btns", {}, void 0, !0)
|
|
1993
1993
|
], 64))
|
|
1994
1994
|
], 4)) : $e("", !0)
|
|
1995
1995
|
], 36),
|
|
1996
|
-
e.value && !((w = (
|
|
1996
|
+
e.value && !((w = (T = (Ue = t.value) == null ? void 0 : Ue.query) == null ? void 0 : T.more) != null && w.hidden) && t.value.query.more.mode == 2 ? (m(), B(se, I({
|
|
1997
1997
|
key: 0,
|
|
1998
1998
|
modelValue: e.value,
|
|
1999
|
-
"onUpdate:modelValue": G[6] || (G[6] = (
|
|
1999
|
+
"onUpdate:modelValue": G[6] || (G[6] = (F) => e.value = F),
|
|
2000
2000
|
title: "更多查询",
|
|
2001
2001
|
"show-close": !1
|
|
2002
2002
|
}, t.value.query.more.dialog), be({
|
|
@@ -2004,16 +2004,16 @@ const St = /* @__PURE__ */ Gt(Fl), Qt = {
|
|
|
2004
2004
|
te(H(bt), I({
|
|
2005
2005
|
onSubmit: G[3] || (G[3] = Et(() => {
|
|
2006
2006
|
}, ["prevent"]))
|
|
2007
|
-
}, H(Ge)(t.value.query, (
|
|
2007
|
+
}, H(Ge)(t.value.query, (F) => !["query", "more", "reset"].includes(F)), { style: { width: "98%" } }), {
|
|
2008
2008
|
default: E(() => [
|
|
2009
2009
|
te(Ot, {
|
|
2010
2010
|
modelValue: t.value,
|
|
2011
|
-
"onUpdate:modelValue": G[1] || (G[1] = (
|
|
2011
|
+
"onUpdate:modelValue": G[1] || (G[1] = (F) => t.value = F),
|
|
2012
2012
|
info: h.value,
|
|
2013
|
-
"onUpdate:info": G[2] || (G[2] = (
|
|
2013
|
+
"onUpdate:info": G[2] || (G[2] = (F) => h.value = F),
|
|
2014
2014
|
more: !0
|
|
2015
2015
|
}, be({ _: 2 }, [
|
|
2016
|
-
W(O.$slots, (
|
|
2016
|
+
W(O.$slots, (F, Z, ue) => ({
|
|
2017
2017
|
name: Z,
|
|
2018
2018
|
fn: E((re) => [
|
|
2019
2019
|
k(O.$slots, Z, { model: t.value }, void 0, !0)
|
|
@@ -2031,7 +2031,7 @@ const St = /* @__PURE__ */ Gt(Fl), Qt = {
|
|
|
2031
2031
|
fn: E(() => [
|
|
2032
2032
|
X("div", xt(ul(t.value.query.more.dialog.footer)), [
|
|
2033
2033
|
te(H(Ie), I(t.value.query.query, {
|
|
2034
|
-
onClick: G[4] || (G[4] = (
|
|
2034
|
+
onClick: G[4] || (G[4] = (F) => t.value.query.query.click())
|
|
2035
2035
|
}), {
|
|
2036
2036
|
default: E(() => [
|
|
2037
2037
|
Ae(ke(t.value.query.query.label), 1)
|
|
@@ -2039,7 +2039,7 @@ const St = /* @__PURE__ */ Gt(Fl), Qt = {
|
|
|
2039
2039
|
_: 1
|
|
2040
2040
|
}, 16),
|
|
2041
2041
|
te(H(Ie), I(t.value.query.reset, {
|
|
2042
|
-
onClick: G[5] || (G[5] = (
|
|
2042
|
+
onClick: G[5] || (G[5] = (F) => t.value.query.reset.click())
|
|
2043
2043
|
}), {
|
|
2044
2044
|
default: E(() => [
|
|
2045
2045
|
Ae(ke(t.value.query.reset.label), 1)
|
|
@@ -2057,9 +2057,9 @@ const St = /* @__PURE__ */ Gt(Fl), Qt = {
|
|
|
2057
2057
|
style: { padding: "10px" }
|
|
2058
2058
|
}, {
|
|
2059
2059
|
default: E(() => {
|
|
2060
|
-
var
|
|
2060
|
+
var F, Z, ue;
|
|
2061
2061
|
return [
|
|
2062
|
-
e.value && !((ue = (Z = (
|
|
2062
|
+
e.value && !((ue = (Z = (F = t.value) == null ? void 0 : F.query) == null ? void 0 : Z.more) != null && ue.hidden) && t.value.query.more.mode == 1 ? (m(), R("div", Nl, [
|
|
2063
2063
|
X("div", jl, [
|
|
2064
2064
|
t.value.query.more.mode == 1 ? il((m(), B(H(bt), I({
|
|
2065
2065
|
key: 0,
|
|
@@ -2417,21 +2417,21 @@ const va = { style: { padding: "15px", "box-sizing": "border-box" } }, pa = { st
|
|
|
2417
2417
|
]),
|
|
2418
2418
|
X("div", null, [
|
|
2419
2419
|
X("div", ha, [
|
|
2420
|
-
(m(!0), R(le, null, W(o.value, (
|
|
2421
|
-
modelValue:
|
|
2422
|
-
"onUpdate:modelValue": (se) =>
|
|
2423
|
-
"data-id":
|
|
2424
|
-
class: Lt(["check-box-hover",
|
|
2425
|
-
onChange: (se) => h(se,
|
|
2420
|
+
(m(!0), R(le, null, W(o.value, (M) => (m(), B(G, {
|
|
2421
|
+
modelValue: M.showCol,
|
|
2422
|
+
"onUpdate:modelValue": (se) => M.showCol = se,
|
|
2423
|
+
"data-id": M.value,
|
|
2424
|
+
class: Lt(["check-box-hover", M.value == "control" ? "filtered" : ""]),
|
|
2425
|
+
onChange: (se) => h(se, M.value),
|
|
2426
2426
|
style: { width: "125px !important", height: "30px !important", border: "1px solid #dfe6ec", margin: "5px !important", "border-radius": "2px !important", "padding-left": "5px !important", display: "flex !important", "align-items": "center !important" },
|
|
2427
|
-
value:
|
|
2428
|
-
title:
|
|
2429
|
-
disabled:
|
|
2430
|
-
key:
|
|
2427
|
+
value: M.value,
|
|
2428
|
+
title: M.label,
|
|
2429
|
+
disabled: M.alwaysShow,
|
|
2430
|
+
key: M.value
|
|
2431
2431
|
}, {
|
|
2432
2432
|
default: E(() => [
|
|
2433
2433
|
X("span", {
|
|
2434
|
-
textContent: ke(
|
|
2434
|
+
textContent: ke(M.label),
|
|
2435
2435
|
style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
|
|
2436
2436
|
}, null, 8, ya)
|
|
2437
2437
|
]),
|
|
@@ -2591,9 +2591,9 @@ function Da(n) {
|
|
|
2591
2591
|
for (var c = n.bytesToWords(e), D = e.length * 8, f = 1732584193, v = -271733879, u = -1732584194, d = 271733878, $ = 0; $ < c.length; $++)
|
|
2592
2592
|
c[$] = (c[$] << 8 | c[$] >>> 24) & 16711935 | (c[$] << 24 | c[$] >>> 8) & 4278255360;
|
|
2593
2593
|
c[D >>> 5] |= 128 << D % 32, c[(D + 64 >>> 9 << 4) + 14] = D;
|
|
2594
|
-
for (var ae = o._ff, O = o._gg, G = o._hh,
|
|
2594
|
+
for (var ae = o._ff, O = o._gg, G = o._hh, M = o._ii, $ = 0; $ < c.length; $ += 16) {
|
|
2595
2595
|
var se = f, ce = v, me = u, ve = d;
|
|
2596
|
-
f = ae(f, v, u, d, c[$ + 0], 7, -680876936), d = ae(d, f, v, u, c[$ + 1], 12, -389564586), u = ae(u, d, f, v, c[$ + 2], 17, 606105819), v = ae(v, u, d, f, c[$ + 3], 22, -1044525330), f = ae(f, v, u, d, c[$ + 4], 7, -176418897), d = ae(d, f, v, u, c[$ + 5], 12, 1200080426), u = ae(u, d, f, v, c[$ + 6], 17, -1473231341), v = ae(v, u, d, f, c[$ + 7], 22, -45705983), f = ae(f, v, u, d, c[$ + 8], 7, 1770035416), d = ae(d, f, v, u, c[$ + 9], 12, -1958414417), u = ae(u, d, f, v, c[$ + 10], 17, -42063), v = ae(v, u, d, f, c[$ + 11], 22, -1990404162), f = ae(f, v, u, d, c[$ + 12], 7, 1804603682), d = ae(d, f, v, u, c[$ + 13], 12, -40341101), u = ae(u, d, f, v, c[$ + 14], 17, -1502002290), v = ae(v, u, d, f, c[$ + 15], 22, 1236535329), f = O(f, v, u, d, c[$ + 1], 5, -165796510), d = O(d, f, v, u, c[$ + 6], 9, -1069501632), u = O(u, d, f, v, c[$ + 11], 14, 643717713), v = O(v, u, d, f, c[$ + 0], 20, -373897302), f = O(f, v, u, d, c[$ + 5], 5, -701558691), d = O(d, f, v, u, c[$ + 10], 9, 38016083), u = O(u, d, f, v, c[$ + 15], 14, -660478335), v = O(v, u, d, f, c[$ + 4], 20, -405537848), f = O(f, v, u, d, c[$ + 9], 5, 568446438), d = O(d, f, v, u, c[$ + 14], 9, -1019803690), u = O(u, d, f, v, c[$ + 3], 14, -187363961), v = O(v, u, d, f, c[$ + 8], 20, 1163531501), f = O(f, v, u, d, c[$ + 13], 5, -1444681467), d = O(d, f, v, u, c[$ + 2], 9, -51403784), u = O(u, d, f, v, c[$ + 7], 14, 1735328473), v = O(v, u, d, f, c[$ + 12], 20, -1926607734), f = G(f, v, u, d, c[$ + 5], 4, -378558), d = G(d, f, v, u, c[$ + 8], 11, -2022574463), u = G(u, d, f, v, c[$ + 11], 16, 1839030562), v = G(v, u, d, f, c[$ + 14], 23, -35309556), f = G(f, v, u, d, c[$ + 1], 4, -1530992060), d = G(d, f, v, u, c[$ + 4], 11, 1272893353), u = G(u, d, f, v, c[$ + 7], 16, -155497632), v = G(v, u, d, f, c[$ + 10], 23, -1094730640), f = G(f, v, u, d, c[$ + 13], 4, 681279174), d = G(d, f, v, u, c[$ + 0], 11, -358537222), u = G(u, d, f, v, c[$ + 3], 16, -722521979), v = G(v, u, d, f, c[$ + 6], 23, 76029189), f = G(f, v, u, d, c[$ + 9], 4, -640364487), d = G(d, f, v, u, c[$ + 12], 11, -421815835), u = G(u, d, f, v, c[$ + 15], 16, 530742520), v = G(v, u, d, f, c[$ + 2], 23, -995338651), f =
|
|
2596
|
+
f = ae(f, v, u, d, c[$ + 0], 7, -680876936), d = ae(d, f, v, u, c[$ + 1], 12, -389564586), u = ae(u, d, f, v, c[$ + 2], 17, 606105819), v = ae(v, u, d, f, c[$ + 3], 22, -1044525330), f = ae(f, v, u, d, c[$ + 4], 7, -176418897), d = ae(d, f, v, u, c[$ + 5], 12, 1200080426), u = ae(u, d, f, v, c[$ + 6], 17, -1473231341), v = ae(v, u, d, f, c[$ + 7], 22, -45705983), f = ae(f, v, u, d, c[$ + 8], 7, 1770035416), d = ae(d, f, v, u, c[$ + 9], 12, -1958414417), u = ae(u, d, f, v, c[$ + 10], 17, -42063), v = ae(v, u, d, f, c[$ + 11], 22, -1990404162), f = ae(f, v, u, d, c[$ + 12], 7, 1804603682), d = ae(d, f, v, u, c[$ + 13], 12, -40341101), u = ae(u, d, f, v, c[$ + 14], 17, -1502002290), v = ae(v, u, d, f, c[$ + 15], 22, 1236535329), f = O(f, v, u, d, c[$ + 1], 5, -165796510), d = O(d, f, v, u, c[$ + 6], 9, -1069501632), u = O(u, d, f, v, c[$ + 11], 14, 643717713), v = O(v, u, d, f, c[$ + 0], 20, -373897302), f = O(f, v, u, d, c[$ + 5], 5, -701558691), d = O(d, f, v, u, c[$ + 10], 9, 38016083), u = O(u, d, f, v, c[$ + 15], 14, -660478335), v = O(v, u, d, f, c[$ + 4], 20, -405537848), f = O(f, v, u, d, c[$ + 9], 5, 568446438), d = O(d, f, v, u, c[$ + 14], 9, -1019803690), u = O(u, d, f, v, c[$ + 3], 14, -187363961), v = O(v, u, d, f, c[$ + 8], 20, 1163531501), f = O(f, v, u, d, c[$ + 13], 5, -1444681467), d = O(d, f, v, u, c[$ + 2], 9, -51403784), u = O(u, d, f, v, c[$ + 7], 14, 1735328473), v = O(v, u, d, f, c[$ + 12], 20, -1926607734), f = G(f, v, u, d, c[$ + 5], 4, -378558), d = G(d, f, v, u, c[$ + 8], 11, -2022574463), u = G(u, d, f, v, c[$ + 11], 16, 1839030562), v = G(v, u, d, f, c[$ + 14], 23, -35309556), f = G(f, v, u, d, c[$ + 1], 4, -1530992060), d = G(d, f, v, u, c[$ + 4], 11, 1272893353), u = G(u, d, f, v, c[$ + 7], 16, -155497632), v = G(v, u, d, f, c[$ + 10], 23, -1094730640), f = G(f, v, u, d, c[$ + 13], 4, 681279174), d = G(d, f, v, u, c[$ + 0], 11, -358537222), u = G(u, d, f, v, c[$ + 3], 16, -722521979), v = G(v, u, d, f, c[$ + 6], 23, 76029189), f = G(f, v, u, d, c[$ + 9], 4, -640364487), d = G(d, f, v, u, c[$ + 12], 11, -421815835), u = G(u, d, f, v, c[$ + 15], 16, 530742520), v = G(v, u, d, f, c[$ + 2], 23, -995338651), f = M(f, v, u, d, c[$ + 0], 6, -198630844), d = M(d, f, v, u, c[$ + 7], 10, 1126891415), u = M(u, d, f, v, c[$ + 14], 15, -1416354905), v = M(v, u, d, f, c[$ + 5], 21, -57434055), f = M(f, v, u, d, c[$ + 12], 6, 1700485571), d = M(d, f, v, u, c[$ + 3], 10, -1894986606), u = M(u, d, f, v, c[$ + 10], 15, -1051523), v = M(v, u, d, f, c[$ + 1], 21, -2054922799), f = M(f, v, u, d, c[$ + 8], 6, 1873313359), d = M(d, f, v, u, c[$ + 15], 10, -30611744), u = M(u, d, f, v, c[$ + 6], 15, -1560198380), v = M(v, u, d, f, c[$ + 13], 21, 1309151649), f = M(f, v, u, d, c[$ + 4], 6, -145523070), d = M(d, f, v, u, c[$ + 11], 10, -1120210379), u = M(u, d, f, v, c[$ + 2], 15, 718787259), v = M(v, u, d, f, c[$ + 9], 21, -343485551), f = f + se >>> 0, v = v + ce >>> 0, u = u + me >>> 0, d = d + ve >>> 0;
|
|
2597
2597
|
}
|
|
2598
2598
|
return n.endian([f, v, u, d]);
|
|
2599
2599
|
};
|
|
@@ -2644,8 +2644,14 @@ const xa = /* @__PURE__ */ Gt(Sa), Ma = { key: 0 }, Ta = { style: { display: "fl
|
|
|
2644
2644
|
setup(n, { expose: i, emit: t }) {
|
|
2645
2645
|
var Te, Ze, Re, Pe, Ne, je, mt;
|
|
2646
2646
|
const l = ne(""), o = t, e = rt(n, "modelValue"), h = At("options"), c = ne({}), D = ne(null), f = ne(null), v = Object.entries(e.value).filter(([a, r]) => (r == null ? void 0 : r.search) !== void 0).map(([a, r]) => {
|
|
2647
|
-
var
|
|
2648
|
-
|
|
2647
|
+
var b;
|
|
2648
|
+
let p;
|
|
2649
|
+
if (typeof r.search == "function") {
|
|
2650
|
+
const x = r.search(c.value);
|
|
2651
|
+
p = (x == null ? void 0 : x.value) ?? r.value;
|
|
2652
|
+
} else
|
|
2653
|
+
p = ((b = r.search) == null ? void 0 : b.value) ?? r.value;
|
|
2654
|
+
return [a, p];
|
|
2649
2655
|
});
|
|
2650
2656
|
c.value = Object.fromEntries(v);
|
|
2651
2657
|
const u = ne(!1), d = [
|
|
@@ -2677,7 +2683,7 @@ const xa = /* @__PURE__ */ Gt(Sa), Ma = { key: 0 }, Ta = { style: { display: "fl
|
|
|
2677
2683
|
"filter-multiple",
|
|
2678
2684
|
"filter-method",
|
|
2679
2685
|
"filtered-value"
|
|
2680
|
-
], $ = ne([]), ae = Bt(), O = ne({}), G = ne([]),
|
|
2686
|
+
], $ = ne([]), ae = Bt(), O = ne({}), G = ne([]), M = ne(null), se = ne(""), ce = ne("/"), me = ne({
|
|
2681
2687
|
autoWatch: !1,
|
|
2682
2688
|
data: [],
|
|
2683
2689
|
border: !0,
|
|
@@ -2692,7 +2698,7 @@ const xa = /* @__PURE__ */ Gt(Sa), Ma = { key: 0 }, Ta = { style: { display: "fl
|
|
|
2692
2698
|
o(
|
|
2693
2699
|
"load",
|
|
2694
2700
|
{ currentPage: a, pageSize: r, ...c.value },
|
|
2695
|
-
(p = [], b = 0, { fields:
|
|
2701
|
+
(p = [], b = 0, { fields: x = [], sums: U = {} } = {}) => {
|
|
2696
2702
|
var j;
|
|
2697
2703
|
if (!Array.isArray(p)) {
|
|
2698
2704
|
console.error("从 load 事件回调中接收到的数据不是数组格式。"), lt.error("数据加载失败,请检查数据格式。");
|
|
@@ -2702,9 +2708,9 @@ const xa = /* @__PURE__ */ Gt(Sa), Ma = { key: 0 }, Ta = { style: { display: "fl
|
|
|
2702
2708
|
console.error("从 load 事件回调中接收到的 total 不是数字格式。"), lt.error("数据加载失败,请检查数据格式。");
|
|
2703
2709
|
return;
|
|
2704
2710
|
}
|
|
2705
|
-
e.value.table.data = p, ((j = e.value.control) == null ? void 0 : j.add(
|
|
2711
|
+
e.value.table.data = p, ((j = e.value.control) == null ? void 0 : j.add(M.value, e).inline) === !0 && e.value.table.data.unshift(M.value), e.value.table.page.total = b, G.value = x, O.value = U, A(), se.value = Math.random().toString(36).substring(2);
|
|
2706
2712
|
},
|
|
2707
|
-
|
|
2713
|
+
M.value
|
|
2708
2714
|
);
|
|
2709
2715
|
} catch (p) {
|
|
2710
2716
|
console.error("触发 load 事件时出现错误:", p), lt.error("数据加载时出现错误,请稍后重试。");
|
|
@@ -2767,8 +2773,8 @@ const xa = /* @__PURE__ */ Gt(Sa), Ma = { key: 0 }, Ta = { style: { display: "fl
|
|
|
2767
2773
|
mode: "dialog",
|
|
2768
2774
|
icon: () => we(El),
|
|
2769
2775
|
auth: () => {
|
|
2770
|
-
var
|
|
2771
|
-
return !(((
|
|
2776
|
+
var x;
|
|
2777
|
+
return !(((x = b == null ? void 0 : b.control) == null ? void 0 : x.add(a, b).inline) === !0 && p === 0);
|
|
2772
2778
|
}
|
|
2773
2779
|
}),
|
|
2774
2780
|
edit: (a, r, p, b) => ({
|
|
@@ -2778,8 +2784,8 @@ const xa = /* @__PURE__ */ Gt(Sa), Ma = { key: 0 }, Ta = { style: { display: "fl
|
|
|
2778
2784
|
mode: "dialog",
|
|
2779
2785
|
icon: () => we(_l),
|
|
2780
2786
|
auth: () => {
|
|
2781
|
-
var
|
|
2782
|
-
return ((
|
|
2787
|
+
var x;
|
|
2788
|
+
return ((x = b == null ? void 0 : b.control) == null ? void 0 : x.add(a, b).inline) !== !0;
|
|
2783
2789
|
}
|
|
2784
2790
|
}),
|
|
2785
2791
|
delete: (a, r, p, b) => ({
|
|
@@ -2788,8 +2794,8 @@ const xa = /* @__PURE__ */ Gt(Sa), Ma = { key: 0 }, Ta = { style: { display: "fl
|
|
|
2788
2794
|
type: "danger",
|
|
2789
2795
|
icon: () => we(Pt),
|
|
2790
2796
|
auth: () => {
|
|
2791
|
-
var
|
|
2792
|
-
return !(((
|
|
2797
|
+
var x;
|
|
2798
|
+
return !(((x = b.control) == null ? void 0 : x.add(a, b).inline) === !0 && p === 0);
|
|
2793
2799
|
},
|
|
2794
2800
|
dialog: {
|
|
2795
2801
|
message: "此操作将永久删除该文件, 是否继续?",
|
|
@@ -2802,9 +2808,9 @@ const xa = /* @__PURE__ */ Gt(Sa), Ma = { key: 0 }, Ta = { style: { display: "fl
|
|
|
2802
2808
|
}
|
|
2803
2809
|
}),
|
|
2804
2810
|
save: (a, r, p, b) => {
|
|
2805
|
-
var
|
|
2811
|
+
var x, U;
|
|
2806
2812
|
return {
|
|
2807
|
-
label: ((
|
|
2813
|
+
label: ((x = b.control) == null ? void 0 : x.add(a, b).inline) !== !0 ? "保存" : p === 0 ? "新增" : "保存",
|
|
2808
2814
|
text: !0,
|
|
2809
2815
|
icon: () => we(Ht),
|
|
2810
2816
|
type: ((U = b.control) == null ? void 0 : U.add(a, b).inline) !== !0 || p === 0 ? "primary" : "success",
|
|
@@ -2850,8 +2856,8 @@ const xa = /* @__PURE__ */ Gt(Sa), Ma = { key: 0 }, Ta = { style: { display: "fl
|
|
|
2850
2856
|
auth: () => !(b.control.add(a, b).inline === !0 && p == 0),
|
|
2851
2857
|
onClick: () => {
|
|
2852
2858
|
var U;
|
|
2853
|
-
let
|
|
2854
|
-
|
|
2859
|
+
let x = (U = ge(a, r, p, b)) == null ? void 0 : U.operate;
|
|
2860
|
+
x === "edit" ? g(a, r, p, b) : x === "delete" ? s(a, r, p, b) : x === "view" && V(a, r, p, b);
|
|
2855
2861
|
},
|
|
2856
2862
|
"button-props": { round: !0, plain: !0 }
|
|
2857
2863
|
})
|
|
@@ -2862,15 +2868,15 @@ const xa = /* @__PURE__ */ Gt(Sa), Ma = { key: 0 }, Ta = { style: { display: "fl
|
|
|
2862
2868
|
(Re = e.value) == null ? void 0 : Re.control
|
|
2863
2869
|
);
|
|
2864
2870
|
const fe = (a, r = !0) => {
|
|
2865
|
-
const p = e.value.control[a], b = r ? (
|
|
2871
|
+
const p = e.value.control[a], b = r ? (x, U, j, ye) => {
|
|
2866
2872
|
var ze, We, it;
|
|
2867
|
-
if (!
|
|
2873
|
+
if (!x || !U || j == null)
|
|
2868
2874
|
return console.warn(`merge${a.charAt(0).toUpperCase() + a.slice(1)}: 缺少必要的参数(row, column或index)`), {};
|
|
2869
|
-
const Ee = ((ze = ve[a]) == null ? void 0 : ze.call(ve,
|
|
2875
|
+
const Ee = ((ze = ve[a]) == null ? void 0 : ze.call(ve, x, U, j, ye)) || {}, Oe = ((it = (We = h == null ? void 0 : h.control) == null ? void 0 : We[a]) == null ? void 0 : it.call(We, x, U, j, ye)) || {}, Ye = (p == null ? void 0 : p(x, U, j, ye)) || {};
|
|
2870
2876
|
return qe(Ee, Oe, Ye) || {};
|
|
2871
|
-
} : (
|
|
2877
|
+
} : (x, U) => {
|
|
2872
2878
|
var Oe, Ye, ze;
|
|
2873
|
-
const j = ((Oe = ve[a]) == null ? void 0 : Oe.call(ve,
|
|
2879
|
+
const j = ((Oe = ve[a]) == null ? void 0 : Oe.call(ve, x, U)) || {}, ye = ((ze = (Ye = h == null ? void 0 : h.control) == null ? void 0 : Ye[a]) == null ? void 0 : ze.call(Ye, x, U)) || {}, Ee = (p == null ? void 0 : p(x, U)) || {};
|
|
2874
2880
|
return qe(j, ye, Ee) || {};
|
|
2875
2881
|
};
|
|
2876
2882
|
e.value.control[a] = b;
|
|
@@ -2880,8 +2886,8 @@ const xa = /* @__PURE__ */ Gt(Sa), Ma = { key: 0 }, Ta = { style: { display: "fl
|
|
|
2880
2886
|
var ye, Ee, Oe, Ye, ze, We;
|
|
2881
2887
|
if (!a || !r || p == null)
|
|
2882
2888
|
return console.warn("mergeDropdown: 缺少必要的参数(row, column或index)"), {};
|
|
2883
|
-
const
|
|
2884
|
-
return qe(
|
|
2889
|
+
const x = ((ye = ve.dropdown) == null ? void 0 : ye.call(ve, a, r, p, b)) || {}, U = ((Oe = (Ee = h == null ? void 0 : h.control) == null ? void 0 : Ee.dropdown) == null ? void 0 : Oe.call(Ee, a, r, p, b)) || {}, j = ((We = (ze = (Ye = e.value) == null ? void 0 : Ye.control) == null ? void 0 : ze.dropdown) == null ? void 0 : We.call(ze, a, r, p, b)) || {};
|
|
2890
|
+
return qe(x, U, j) || {};
|
|
2885
2891
|
}, xe = {
|
|
2886
2892
|
type: "hidden",
|
|
2887
2893
|
"min-width": 100,
|
|
@@ -2941,37 +2947,37 @@ const xa = /* @__PURE__ */ Gt(Sa), Ma = { key: 0 }, Ta = { style: { display: "fl
|
|
|
2941
2947
|
if (a.precision && !isNaN(parseFloat(r)) && (typeof a.precision == "number" ? p = parseFloat(p).toFixed(a.precision) : typeof a.precision == "object" && a.precision.num && (a.precision.pad ? p = parseFloat(p).toFixed(a.precision.num) : p = parseFloat(
|
|
2942
2948
|
parseFloat(p).toFixed(a.precision.num)
|
|
2943
2949
|
).toString())), ["date", "datetime", "time", "time-select"].includes(a.type) && St(r).isValid()) {
|
|
2944
|
-
const
|
|
2950
|
+
const x = {
|
|
2945
2951
|
date: "YYYY-MM-DD",
|
|
2946
2952
|
datetime: "YYYY-MM-DD HH:mm:ss",
|
|
2947
2953
|
time: "HH:mm:ss"
|
|
2948
2954
|
};
|
|
2949
|
-
p = a.format ? St(p).format(a.format) : St(p).format(
|
|
2955
|
+
p = a.format ? St(p).format(a.format) : St(p).format(x[a.type]);
|
|
2950
2956
|
}
|
|
2951
2957
|
return a.type === "money" && (a.align = a.align || "right", a.width = a.width || 130, p = `<span title="${qt(
|
|
2952
2958
|
parseFloat(p)
|
|
2953
2959
|
)}">${ar(parseFloat(p), (a == null ? void 0 : a.precision) || 2, (a == null ? void 0 : a.removeZero) || !1)}</span>`), a.prefix && p && (p = `<span>${a.prefix}${p}</span>`), a.suffix && p && (p = `${p}<span>${a.suffix}</span>`), p;
|
|
2954
2960
|
}, Ue = (a) => {
|
|
2955
2961
|
c.value = Object.fromEntries(v), e.value.table.load();
|
|
2956
|
-
},
|
|
2962
|
+
}, T = (a) => {
|
|
2957
2963
|
c.value = a, e.value.table.load();
|
|
2958
2964
|
}, w = async (a, r) => {
|
|
2959
2965
|
var p, b;
|
|
2960
2966
|
e.value.form.modalState = "add", l.value = "add";
|
|
2961
2967
|
try {
|
|
2962
|
-
if (!await ((p = e.value.control) == null ? void 0 : p.validate("add", { row:
|
|
2963
|
-
} catch (
|
|
2964
|
-
console.error("验证失败:",
|
|
2968
|
+
if (!await ((p = e.value.control) == null ? void 0 : p.validate("add", { row: M.value, m: r }))) return;
|
|
2969
|
+
} catch (x) {
|
|
2970
|
+
console.error("验证失败:", x);
|
|
2965
2971
|
return;
|
|
2966
2972
|
}
|
|
2967
|
-
(b = e.value.control.add(a, r)) != null && b.click ? e.value.control.add(a, r).click(
|
|
2968
|
-
e.value[
|
|
2969
|
-
}), u.value = !0, o("open", "add", { row:
|
|
2973
|
+
(b = e.value.control.add(a, r)) != null && b.click ? e.value.control.add(a, r).click(M.value, r) : e.value.control.add(a, r).inline === !0 ? (e.value.table.data.unshift(M.value), o("open", "row-add", { row: M.value })) : (e.value.form.disabled = !1, e.value.dialog.mode = e.value.control.add(a, r).mode, e.value.dialog.title = e.value.control.add(a, r).title || e.value.control.add(a, r).label || "新增", Object.keys(M.value).forEach((x) => {
|
|
2974
|
+
e.value[x] && (e.value[x].value = M.value[x]);
|
|
2975
|
+
}), u.value = !0, o("open", "add", { row: M.value, m: r }), _t());
|
|
2970
2976
|
}, g = async (a, r, p, b) => {
|
|
2971
|
-
var
|
|
2977
|
+
var x, U;
|
|
2972
2978
|
e.value.form.modalState = "edit", l.value = "edit";
|
|
2973
2979
|
try {
|
|
2974
|
-
if (!await ((
|
|
2980
|
+
if (!await ((x = e.value.control) == null ? void 0 : x.validate("edit", { row: a, column: r, index: p, m: b }))) return;
|
|
2975
2981
|
} catch (j) {
|
|
2976
2982
|
console.error("验证失败:", j);
|
|
2977
2983
|
return;
|
|
@@ -2980,9 +2986,9 @@ const xa = /* @__PURE__ */ Gt(Sa), Ma = { key: 0 }, Ta = { style: { display: "fl
|
|
|
2980
2986
|
e.value[j] && (e.value[j].value = a[j]);
|
|
2981
2987
|
}), u.value = !0, o("open", "edit", { m: b, row: a, column: r, index: p }), _t());
|
|
2982
2988
|
}, s = async (a, r, p, b) => {
|
|
2983
|
-
var
|
|
2989
|
+
var x, U;
|
|
2984
2990
|
try {
|
|
2985
|
-
if (!await ((
|
|
2991
|
+
if (!await ((x = e.value.control) == null ? void 0 : x.validate("delete", { row: a, column: r, index: p, m: b }))) return;
|
|
2986
2992
|
} catch (j) {
|
|
2987
2993
|
console.error("验证失败:", j);
|
|
2988
2994
|
return;
|
|
@@ -3003,10 +3009,10 @@ const xa = /* @__PURE__ */ Gt(Sa), Ma = { key: 0 }, Ta = { style: { display: "fl
|
|
|
3003
3009
|
});
|
|
3004
3010
|
}
|
|
3005
3011
|
}, V = async (a, r, p, b) => {
|
|
3006
|
-
var
|
|
3012
|
+
var x, U;
|
|
3007
3013
|
e.value.form.modalState = void 0, l.value = "view";
|
|
3008
3014
|
try {
|
|
3009
|
-
if (!await ((
|
|
3015
|
+
if (!await ((x = e.value.control) == null ? void 0 : x.validate("view", { row: a, column: r, index: p, m: b }))) return;
|
|
3010
3016
|
} catch (j) {
|
|
3011
3017
|
console.error("验证失败:", j);
|
|
3012
3018
|
return;
|
|
@@ -3015,13 +3021,13 @@ const xa = /* @__PURE__ */ Gt(Sa), Ma = { key: 0 }, Ta = { style: { display: "fl
|
|
|
3015
3021
|
e.value[j] && (e.value[j].value = a[j]);
|
|
3016
3022
|
}), u.value = !0, o("open", "view", { m: b, row: a, column: r, index: p }), _t());
|
|
3017
3023
|
}, _ = (a, r, p, b) => {
|
|
3018
|
-
var
|
|
3019
|
-
(
|
|
3024
|
+
var x;
|
|
3025
|
+
(x = e.value.control.save(a, r, p, b)) != null && x.click ? e.value.control.save(a, r, p, b).click(a, r, p, b) : o(
|
|
3020
3026
|
"row-save",
|
|
3021
3027
|
{ row: a, column: r, index: p, data: e.value.table.data },
|
|
3022
3028
|
(U = !0, j = !0) => {
|
|
3023
3029
|
U && e.value.table.load(), j && ft(() => {
|
|
3024
|
-
|
|
3030
|
+
M.value = Object.assign(
|
|
3025
3031
|
{},
|
|
3026
3032
|
Object.fromEntries(
|
|
3027
3033
|
Object.entries(
|
|
@@ -3034,20 +3040,20 @@ const xa = /* @__PURE__ */ Gt(Sa), Ma = { key: 0 }, Ta = { style: { display: "fl
|
|
|
3034
3040
|
);
|
|
3035
3041
|
}, q = rr((a, r, p) => {
|
|
3036
3042
|
o("submit", e.value.form.modalState, a, r, (b) => {
|
|
3037
|
-
b && (p === 1 && (u.value = !1), Object.keys(
|
|
3038
|
-
a[
|
|
3043
|
+
b && (p === 1 && (u.value = !1), Object.keys(M.value).forEach((x) => {
|
|
3044
|
+
a[x] = M.value[x];
|
|
3039
3045
|
}), r.table.load());
|
|
3040
3046
|
});
|
|
3041
|
-
}, 300),
|
|
3042
|
-
Object.keys(
|
|
3043
|
-
a[p] =
|
|
3047
|
+
}, 300), F = (a, r) => {
|
|
3048
|
+
Object.keys(M.value).forEach((p) => {
|
|
3049
|
+
a[p] = M.value[p];
|
|
3044
3050
|
}), o("reset", a, r);
|
|
3045
3051
|
}, Z = (a, r, p) => {
|
|
3046
3052
|
var b;
|
|
3047
3053
|
if ((b = r.control.download(a, r)) != null && b.click)
|
|
3048
3054
|
r.control.download(a, r).click(a, r, p);
|
|
3049
3055
|
else {
|
|
3050
|
-
let
|
|
3056
|
+
let x = Vt(
|
|
3051
3057
|
{
|
|
3052
3058
|
title: r.control.download(a, r).title || r.control.download(a, r).label || "下载",
|
|
3053
3059
|
size: r.control.download(a, r).size || 480,
|
|
@@ -3057,7 +3063,7 @@ const xa = /* @__PURE__ */ Gt(Sa), Ma = { key: 0 }, Ta = { style: { display: "fl
|
|
|
3057
3063
|
items: p,
|
|
3058
3064
|
commitText: r.control.download(a, r).excelLabel,
|
|
3059
3065
|
onExcel: (U, j) => {
|
|
3060
|
-
o("download", U, c.value, j),
|
|
3066
|
+
o("download", U, c.value, j), x();
|
|
3061
3067
|
}
|
|
3062
3068
|
})
|
|
3063
3069
|
}
|
|
@@ -3095,17 +3101,17 @@ const xa = /* @__PURE__ */ Gt(Sa), Ma = { key: 0 }, Ta = { style: { display: "fl
|
|
|
3095
3101
|
{ type: "edit", func: g },
|
|
3096
3102
|
{ type: "delete", func: s },
|
|
3097
3103
|
{ type: "save", func: _ }
|
|
3098
|
-
], N = (a, r, p, b,
|
|
3104
|
+
], N = (a, r, p, b, x) => P.filter((U) => a.includes(U.type)).map(({ type: U, func: j }) => {
|
|
3099
3105
|
var ye, Ee, Oe;
|
|
3100
3106
|
return {
|
|
3101
3107
|
name: `control-${U}`,
|
|
3102
|
-
attr: re == null ? void 0 : re[U](r, p, b,
|
|
3108
|
+
attr: re == null ? void 0 : re[U](r, p, b, x),
|
|
3103
3109
|
func: j,
|
|
3104
|
-
label: (ye = re == null ? void 0 : re[U](r, p, b,
|
|
3105
|
-
sort: ((Ee = re == null ? void 0 : re[U](r, p, b,
|
|
3106
|
-
groupName: ((Oe = re == null ? void 0 : re[U](r, p, b,
|
|
3110
|
+
label: (ye = re == null ? void 0 : re[U](r, p, b, x)) == null ? void 0 : ye.label,
|
|
3111
|
+
sort: ((Ee = re == null ? void 0 : re[U](r, p, b, x)) == null ? void 0 : Ee.sort) || 0,
|
|
3112
|
+
groupName: ((Oe = re == null ? void 0 : re[U](r, p, b, x)) == null ? void 0 : Oe.groupName) || "default"
|
|
3107
3113
|
};
|
|
3108
|
-
}).sort((U, j) => U.sort - j.sort), Se = (a, r, p, b,
|
|
3114
|
+
}).sort((U, j) => U.sort - j.sort), Se = (a, r, p, b, x) => N(a, r, p, b, x).reduce((U, j) => {
|
|
3109
3115
|
const ye = j.groupName || "default";
|
|
3110
3116
|
return U[ye] || (U[ye] = []), U[ye].push(j), U;
|
|
3111
3117
|
}, {}), he = ut(
|
|
@@ -3113,11 +3119,11 @@ const xa = /* @__PURE__ */ Gt(Sa), Ma = { key: 0 }, Ta = { style: { display: "fl
|
|
|
3113
3119
|
Object.entries(e.value).filter(([a, r]) => r.type !== "hidden").filter(([a, r]) => r.hidden !== !0).filter(([a, r]) => r.visible !== !1).filter(([a, r]) => r.showCol !== !1).map(([a, r]) => (r.sort = typeof r.sort == "number" ? r.sort : 0, [a, r])).sort((a, r) => a[1].sort - r[1].sort)
|
|
3114
3120
|
)
|
|
3115
3121
|
), Me = ne({}), Fe = (a, r) => {
|
|
3116
|
-
const p = (b,
|
|
3122
|
+
const p = (b, x) => {
|
|
3117
3123
|
for (const U of b) {
|
|
3118
|
-
if (U.value ==
|
|
3124
|
+
if (U.value == x) return U.label;
|
|
3119
3125
|
if (U.children) {
|
|
3120
|
-
const j = p(U.children,
|
|
3126
|
+
const j = p(U.children, x);
|
|
3121
3127
|
if (j) return j;
|
|
3122
3128
|
}
|
|
3123
3129
|
}
|
|
@@ -3125,8 +3131,8 @@ const xa = /* @__PURE__ */ Gt(Sa), Ma = { key: 0 }, Ta = { style: { display: "fl
|
|
|
3125
3131
|
};
|
|
3126
3132
|
if (a.getDicts) {
|
|
3127
3133
|
const b = r.toString();
|
|
3128
|
-
return Me.value[b] ? (a.options = Me.value[b], a.formatter || (a.formatter = (
|
|
3129
|
-
Me.value[b] =
|
|
3134
|
+
return Me.value[b] ? (a.options = Me.value[b], a.formatter || (a.formatter = (x, U, j, ye) => a.options && p(a.options, j) || j), Promise.resolve()) : a.getDicts(e.value.table.data).then((x) => {
|
|
3135
|
+
Me.value[b] = x, a.options = x, a.formatter || (a.formatter = (U, j, ye, Ee) => a.options && p(a.options, ye) || ye);
|
|
3130
3136
|
});
|
|
3131
3137
|
}
|
|
3132
3138
|
return Promise.resolve();
|
|
@@ -3136,8 +3142,8 @@ const xa = /* @__PURE__ */ Gt(Sa), Ma = { key: 0 }, Ta = { style: { display: "fl
|
|
|
3136
3142
|
if (e.value[r].getDicts) {
|
|
3137
3143
|
const p = Fe(e.value[r], r).then(() => {
|
|
3138
3144
|
e.value.table.data.forEach((b) => {
|
|
3139
|
-
var
|
|
3140
|
-
if (e.value[r].getDicts && ((
|
|
3145
|
+
var x;
|
|
3146
|
+
if (e.value[r].getDicts && ((x = e.value[r]) == null ? void 0 : x.forceString) !== !1) {
|
|
3141
3147
|
const U = b[r];
|
|
3142
3148
|
b[r] = U != null ? U.toString() : U;
|
|
3143
3149
|
}
|
|
@@ -3151,8 +3157,8 @@ const xa = /* @__PURE__ */ Gt(Sa), Ma = { key: 0 }, Ta = { style: { display: "fl
|
|
|
3151
3157
|
console.error("字典加载过程中发生错误:", r);
|
|
3152
3158
|
});
|
|
3153
3159
|
}, C = (a, r, p, b) => {
|
|
3154
|
-
var
|
|
3155
|
-
return a.table ? (
|
|
3160
|
+
var x, U;
|
|
3161
|
+
return a.table ? (x = a.table(r, p, b)) != null && x.auth ? (U = a.table(r, p, b)) == null ? void 0 : U.auth(r, p, b) : !0 : !1;
|
|
3156
3162
|
}, Q = () => {
|
|
3157
3163
|
if (e.value.dialog.mode == "drawer")
|
|
3158
3164
|
f.value.handleClose();
|
|
@@ -3176,14 +3182,14 @@ const xa = /* @__PURE__ */ Gt(Sa), Ma = { key: 0 }, Ta = { style: { display: "fl
|
|
|
3176
3182
|
ua(ce.value)
|
|
3177
3183
|
]);
|
|
3178
3184
|
a && Array.isArray(a) && a.forEach((b) => {
|
|
3179
|
-
const
|
|
3180
|
-
|
|
3181
|
-
}), r && Array.isArray(r) && r.forEach((b,
|
|
3185
|
+
const x = e.value[b.key];
|
|
3186
|
+
x && (x.width = b.width);
|
|
3187
|
+
}), r && Array.isArray(r) && r.forEach((b, x) => {
|
|
3182
3188
|
const U = e.value[b];
|
|
3183
|
-
U && (U.sort =
|
|
3189
|
+
U && (U.sort = x);
|
|
3184
3190
|
}), p && Array.isArray(p) && p.length > 0 ? p.forEach((b) => {
|
|
3185
|
-
const
|
|
3186
|
-
|
|
3191
|
+
const x = e.value[b];
|
|
3192
|
+
x && (x.showCol = !1);
|
|
3187
3193
|
}) : Object.keys(e.value).filter((b) => e.value[b].type !== "control").forEach((b) => {
|
|
3188
3194
|
e.value[b].showCol = !0;
|
|
3189
3195
|
});
|
|
@@ -3206,16 +3212,16 @@ const xa = /* @__PURE__ */ Gt(Sa), Ma = { key: 0 }, Ta = { style: { display: "fl
|
|
|
3206
3212
|
const a = Object.entries(e.value).filter(
|
|
3207
3213
|
([r, p]) => p.type !== "control" && p.editor !== !1 && p.type !== "hidden"
|
|
3208
3214
|
);
|
|
3209
|
-
|
|
3215
|
+
M.value = Object.fromEntries(
|
|
3210
3216
|
a.map(([r, p]) => [r, p.value])
|
|
3211
3217
|
), await Ve();
|
|
3212
3218
|
} catch (a) {
|
|
3213
3219
|
console.error("Error during component initialization:", a);
|
|
3214
3220
|
}
|
|
3215
3221
|
e.value.table.autoWatch || e.value.table.load();
|
|
3216
|
-
}), i({ addRow: w, editRow: g, deleteRow: s, readForm: V, saveRowData: _, closeDialog: Q, formData:
|
|
3222
|
+
}), i({ addRow: w, editRow: g, deleteRow: s, readForm: V, saveRowData: _, closeDialog: Q, formData: M }), (a, r) => {
|
|
3217
3223
|
var We, it, ht, yt, ct;
|
|
3218
|
-
const p = L("el-icon"), b = L("el-dialog"),
|
|
3224
|
+
const p = L("el-icon"), b = L("el-dialog"), x = L("el-drawer"), U = L("el-button-group"), j = L("el-dropdown-item"), ye = L("el-dropdown-menu"), Ee = L("el-dropdown"), Oe = L("el-table-column"), Ye = L("el-table"), ze = L("el-pagination");
|
|
3219
3225
|
return m(), R(le, null, [
|
|
3220
3226
|
e.value.dialog.mode == "dialog" && u.value ? (m(), R("div", Ma, [
|
|
3221
3227
|
te(b, I(
|
|
@@ -3283,7 +3289,7 @@ const xa = /* @__PURE__ */ Gt(Sa), Ma = { key: 0 }, Ta = { style: { display: "fl
|
|
|
3283
3289
|
modelValue: e.value,
|
|
3284
3290
|
"onUpdate:modelValue": r[2] || (r[2] = (z) => e.value = z),
|
|
3285
3291
|
onSubmit: r[3] || (r[3] = (z, de, S) => H(q)(z, de, S)),
|
|
3286
|
-
onReset:
|
|
3292
|
+
onReset: F,
|
|
3287
3293
|
flag: l.value
|
|
3288
3294
|
}, be({ _: 2 }, [
|
|
3289
3295
|
W(a.$slots, (z, de, S) => ({
|
|
@@ -3300,7 +3306,7 @@ const xa = /* @__PURE__ */ Gt(Sa), Ma = { key: 0 }, Ta = { style: { display: "fl
|
|
|
3300
3306
|
}, 16, ["modelValue", "fullscreen", "width"])
|
|
3301
3307
|
])) : $e("", !0),
|
|
3302
3308
|
e.value.dialog.mode == "drawer" && u.value ? (m(), R("div", Aa, [
|
|
3303
|
-
te(
|
|
3309
|
+
te(x, I({
|
|
3304
3310
|
ref_key: "drawerRef",
|
|
3305
3311
|
ref: f,
|
|
3306
3312
|
modelValue: u.value,
|
|
@@ -3321,7 +3327,7 @@ const xa = /* @__PURE__ */ Gt(Sa), Ma = { key: 0 }, Ta = { style: { display: "fl
|
|
|
3321
3327
|
modelValue: e.value,
|
|
3322
3328
|
"onUpdate:modelValue": r[5] || (r[5] = (z) => e.value = z),
|
|
3323
3329
|
onSubmit: r[6] || (r[6] = (z, de, S) => H(q)(z, de, S)),
|
|
3324
|
-
onReset:
|
|
3330
|
+
onReset: F,
|
|
3325
3331
|
flag: l.value
|
|
3326
3332
|
}, be({ _: 2 }, [
|
|
3327
3333
|
W(a.$slots, (z, de, S) => ({
|
|
@@ -3344,12 +3350,12 @@ const xa = /* @__PURE__ */ Gt(Sa), Ma = { key: 0 }, Ta = { style: { display: "fl
|
|
|
3344
3350
|
"onUpdate:modelValue": r[8] || (r[8] = (z) => e.value = z),
|
|
3345
3351
|
info: c.value,
|
|
3346
3352
|
"onUpdate:info": r[9] || (r[9] = (z) => c.value = z),
|
|
3347
|
-
onQuery:
|
|
3353
|
+
onQuery: T,
|
|
3348
3354
|
onReset: Ue
|
|
3349
3355
|
}, be({
|
|
3350
3356
|
"q-btns": E(() => [
|
|
3351
3357
|
k(a.$slots, "q-btns", {}, () => [
|
|
3352
|
-
(m(!0), R(le, null, W(Se(["add", "download", "setting"],
|
|
3358
|
+
(m(!0), R(le, null, W(Se(["add", "download", "setting"], M.value, e.value), (z, de) => (m(), R(le, null, [
|
|
3353
3359
|
de == "default" ? (m(!0), R(le, { key: 0 }, W(z, (S) => (m(), R(le, null, [
|
|
3354
3360
|
k(a.$slots, S.name + "-left", {}, void 0, !0),
|
|
3355
3361
|
(S.name === "control-add" ? S.attr.auth() && S.attr.inline === !1 : S.attr.auth()) ? k(a.$slots, S.name, { key: 0 }, () => [
|
|
@@ -3358,7 +3364,7 @@ const xa = /* @__PURE__ */ Gt(Sa), Ma = { key: 0 }, Ta = { style: { display: "fl
|
|
|
3358
3364
|
title: S.label,
|
|
3359
3365
|
ref_for: !0
|
|
3360
3366
|
}, S.attr, {
|
|
3361
|
-
onClick: (J) => S.func(
|
|
3367
|
+
onClick: (J) => S.func(M.value, e.value, $.value)
|
|
3362
3368
|
}), {
|
|
3363
3369
|
default: E(() => [
|
|
3364
3370
|
Ae(ke(S.label), 1)
|
|
@@ -3369,7 +3375,7 @@ const xa = /* @__PURE__ */ Gt(Sa), Ma = { key: 0 }, Ta = { style: { display: "fl
|
|
|
3369
3375
|
title: S.label,
|
|
3370
3376
|
ref_for: !0
|
|
3371
3377
|
}, S.attr, {
|
|
3372
|
-
onClick: (J) => S.func(
|
|
3378
|
+
onClick: (J) => S.func(M.value, e.value, $.value)
|
|
3373
3379
|
}), null, 16, ["title", "onClick"]))
|
|
3374
3380
|
], !0) : $e("", !0),
|
|
3375
3381
|
k(a.$slots, S.name + "-right", {}, void 0, !0)
|
|
@@ -3383,7 +3389,7 @@ const xa = /* @__PURE__ */ Gt(Sa), Ma = { key: 0 }, Ta = { style: { display: "fl
|
|
|
3383
3389
|
title: S.label,
|
|
3384
3390
|
ref_for: !0
|
|
3385
3391
|
}, S.attr, {
|
|
3386
|
-
onClick: (J) => S.func(
|
|
3392
|
+
onClick: (J) => S.func(M.value, e.value, $.value)
|
|
3387
3393
|
}), {
|
|
3388
3394
|
default: E(() => [
|
|
3389
3395
|
Ae(ke(S.label), 1)
|
|
@@ -3394,7 +3400,7 @@ const xa = /* @__PURE__ */ Gt(Sa), Ma = { key: 0 }, Ta = { style: { display: "fl
|
|
|
3394
3400
|
title: S.label,
|
|
3395
3401
|
ref_for: !0
|
|
3396
3402
|
}, S.attr, {
|
|
3397
|
-
onClick: (J) => S.func(
|
|
3403
|
+
onClick: (J) => S.func(M.value, e.value, $.value)
|
|
3398
3404
|
}), null, 16, ["title", "onClick"]))
|
|
3399
3405
|
], !0) : $e("", !0),
|
|
3400
3406
|
k(a.$slots, S.name + "-right", {}, void 0, !0)
|
|
@@ -3728,7 +3734,7 @@ const xa = /* @__PURE__ */ Gt(Sa), Ma = { key: 0 }, Ta = { style: { display: "fl
|
|
|
3728
3734
|
], 64);
|
|
3729
3735
|
};
|
|
3730
3736
|
}
|
|
3731
|
-
}), za = /* @__PURE__ */ ot(Ha, [["__scopeId", "data-v-
|
|
3737
|
+
}), za = /* @__PURE__ */ ot(Ha, [["__scopeId", "data-v-4b6cf957"]]), Pa = { class: "g-tree-table" }, Na = { class: "g-tree-container" }, ja = { class: "g-tree-table-container" }, Wa = /* @__PURE__ */ Object.assign({
|
|
3732
3738
|
name: "g-tree-table",
|
|
3733
3739
|
inheritAttrs: !1
|
|
3734
3740
|
}, {
|
|
@@ -3742,19 +3748,19 @@ const xa = /* @__PURE__ */ Gt(Sa), Ma = { key: 0 }, Ta = { style: { display: "fl
|
|
|
3742
3748
|
var $, ae, O, G;
|
|
3743
3749
|
const t = i, l = rt(n, "modelValue"), o = Bt(), e = ne(
|
|
3744
3750
|
typeof (($ = o == null ? void 0 : o.tree) == null ? void 0 : $.width) == "number" ? `${o.tree.width}px` : ((ae = o == null ? void 0 : o.tree) == null ? void 0 : ae.width) || "180px"
|
|
3745
|
-
), h = ne(((O = o == null ? void 0 : o.tree) == null ? void 0 : O.search) === void 0 ? !0 : (G = o == null ? void 0 : o.tree) == null ? void 0 : G.search), c = ne({}), D = ne(""), f = ne(null), v = (
|
|
3751
|
+
), h = ne(((O = o == null ? void 0 : o.tree) == null ? void 0 : O.search) === void 0 ? !0 : (G = o == null ? void 0 : o.tree) == null ? void 0 : G.search), c = ne({}), D = ne(""), f = ne(null), v = (M, se) => {
|
|
3746
3752
|
var me, ve;
|
|
3747
|
-
if (!
|
|
3753
|
+
if (!M) return !0;
|
|
3748
3754
|
const ce = ((ve = (me = o.tree) == null ? void 0 : me.props) == null ? void 0 : ve.label) || "label";
|
|
3749
|
-
return se[ce].includes(
|
|
3750
|
-
}, u = (
|
|
3751
|
-
t("load", c.value,
|
|
3752
|
-
}, d = (
|
|
3753
|
-
c.value =
|
|
3755
|
+
return se[ce].includes(M);
|
|
3756
|
+
}, u = (M, se) => {
|
|
3757
|
+
t("load", c.value, M, se);
|
|
3758
|
+
}, d = (M) => {
|
|
3759
|
+
c.value = M, l.value.table.load();
|
|
3754
3760
|
};
|
|
3755
|
-
return pl(D, (
|
|
3756
|
-
f.value.filter(
|
|
3757
|
-
}), (
|
|
3761
|
+
return pl(D, (M) => {
|
|
3762
|
+
f.value.filter(M);
|
|
3763
|
+
}), (M, se) => {
|
|
3758
3764
|
const ce = L("el-input"), me = L("el-tree"), ve = L("g-table");
|
|
3759
3765
|
return m(), R("div", Pa, [
|
|
3760
3766
|
X("div", {
|
|
@@ -3777,9 +3783,9 @@ const xa = /* @__PURE__ */ Gt(Sa), Ma = { key: 0 }, Ta = { style: { display: "fl
|
|
|
3777
3783
|
ref_key: "treeRef",
|
|
3778
3784
|
ref: f,
|
|
3779
3785
|
onNodeClick: d
|
|
3780
|
-
},
|
|
3786
|
+
}, M.$attrs.tree), be({
|
|
3781
3787
|
default: E(({ node: fe, data: ge }) => [
|
|
3782
|
-
k(
|
|
3788
|
+
k(M.$slots, "tree", {
|
|
3783
3789
|
node: fe,
|
|
3784
3790
|
data: ge
|
|
3785
3791
|
}, () => [
|
|
@@ -3788,10 +3794,10 @@ const xa = /* @__PURE__ */ Gt(Sa), Ma = { key: 0 }, Ta = { style: { display: "fl
|
|
|
3788
3794
|
]),
|
|
3789
3795
|
_: 2
|
|
3790
3796
|
}, [
|
|
3791
|
-
W(
|
|
3797
|
+
W(M.$slots, (fe, ge, xe) => ({
|
|
3792
3798
|
name: ge,
|
|
3793
3799
|
fn: E((De) => [
|
|
3794
|
-
k(
|
|
3800
|
+
k(M.$slots, ge, { data: De }, void 0, !0)
|
|
3795
3801
|
])
|
|
3796
3802
|
}))
|
|
3797
3803
|
]), 1040, ["style"])
|
|
@@ -3801,11 +3807,11 @@ const xa = /* @__PURE__ */ Gt(Sa), Ma = { key: 0 }, Ta = { style: { display: "fl
|
|
|
3801
3807
|
te(ve, I({
|
|
3802
3808
|
modelValue: l.value,
|
|
3803
3809
|
"onUpdate:modelValue": se[1] || (se[1] = (fe) => l.value = fe)
|
|
3804
|
-
},
|
|
3805
|
-
W(
|
|
3810
|
+
}, M.$attrs, { onLoad: u }), be({ _: 2 }, [
|
|
3811
|
+
W(M.$slots, (fe, ge, xe) => ({
|
|
3806
3812
|
name: ge,
|
|
3807
3813
|
fn: E((De) => [
|
|
3808
|
-
k(
|
|
3814
|
+
k(M.$slots, ge, { data: De }, void 0, !0)
|
|
3809
3815
|
])
|
|
3810
3816
|
}))
|
|
3811
3817
|
]), 1040, ["modelValue"])
|