vue-2024-ui 0.0.71 → 0.0.72
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 +234 -239
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { mergeModels as Oe, useModel as Ae, ref as
|
|
1
|
+
import Et, { ElForm as He, ElButtonGroup as We, ElButton as ke, ElPopover as Xe, ElMessage as De, ElMessageBox as mt, ElDialog as wt, ElDrawer as kt } from "element-plus";
|
|
2
|
+
import { mergeModels as Oe, useModel as Ae, ref as be, nextTick as pt, onMounted as Pe, resolveComponent as j, openBlock as n, createElementBlock as A, unref as o, createBlock as F, mergeProps as O, withCtx as h, renderSlot as p, Fragment as H, renderList as I, createTextVNode as _e, toDisplayString as ge, createSlots as ie, createVNode as Q, createCommentVNode as ve, normalizeProps as Ne, createElementVNode as G, useSlots as vt, inject as ot, useAttrs as rt, onUnmounted as _t, computed as xe, normalizeStyle as qe, withModifiers as it, guardReactiveProps as Ze, resolveDynamicComponent as Se, Transition as Ct, withDirectives as Dt, vShow as Vt, h as Fe, onBeforeUnmount as Ft, normalizeClass as yt, watchEffect as dt, watch as Tt, createApp as qt } from "vue";
|
|
3
3
|
import { FullScreen as Mt, Remove as St } from "@element-plus/icons-vue";
|
|
4
|
-
import
|
|
4
|
+
import ht from "sortablejs";
|
|
5
5
|
import { Dexie as Ot } from "dexie";
|
|
6
6
|
var At = {
|
|
7
7
|
name: "zh-cn",
|
|
@@ -184,20 +184,20 @@ var At = {
|
|
|
184
184
|
function Bt(c) {
|
|
185
185
|
return c && c.__esModule && Object.prototype.hasOwnProperty.call(c, "default") ? c.default : c;
|
|
186
186
|
}
|
|
187
|
-
var
|
|
187
|
+
var gt = { exports: {} };
|
|
188
188
|
(function(c, f) {
|
|
189
189
|
(function(t, e) {
|
|
190
190
|
c.exports = e();
|
|
191
191
|
})(xt, function() {
|
|
192
|
-
var t = 1e3, e = 6e4, r = 36e5, y = "millisecond",
|
|
192
|
+
var t = 1e3, e = 6e4, r = 36e5, y = "millisecond", T = "second", q = "minute", M = "hour", w = "day", k = "week", L = "month", de = "quarter", E = "year", u = "date", R = "Invalid Date", te = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, le = /\[([^\]]+)]|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, X = { 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(x) {
|
|
193
193
|
var g = ["th", "st", "nd", "rd"], $ = x % 100;
|
|
194
194
|
return "[" + x + (g[($ - 20) % 10] || g[$] || g[0]) + "]";
|
|
195
|
-
} },
|
|
195
|
+
} }, se = function(x, g, $) {
|
|
196
196
|
var V = String(x);
|
|
197
197
|
return !V || V.length >= g ? x : "" + Array(g + 1 - V.length).join($) + x;
|
|
198
|
-
}, Ee = { s:
|
|
198
|
+
}, Ee = { s: se, z: function(x) {
|
|
199
199
|
var g = -x.utcOffset(), $ = Math.abs(g), V = Math.floor($ / 60), i = $ % 60;
|
|
200
|
-
return (g <= 0 ? "+" : "-") +
|
|
200
|
+
return (g <= 0 ? "+" : "-") + se(V, 2, "0") + ":" + se(i, 2, "0");
|
|
201
201
|
}, m: function x(g, $) {
|
|
202
202
|
if (g.date() < $.date()) return -x($, g);
|
|
203
203
|
var V = 12 * ($.year() - g.year()) + ($.month() - g.month()), i = g.clone().add(V, L), d = $ - i < 0, S = g.clone().add(V + (d ? -1 : 1), L);
|
|
@@ -205,7 +205,7 @@ var bt = { exports: {} };
|
|
|
205
205
|
}, a: function(x) {
|
|
206
206
|
return x < 0 ? Math.ceil(x) || 0 : Math.floor(x);
|
|
207
207
|
}, p: function(x) {
|
|
208
|
-
return { M: L, y: E, w: k, d: w, D: u, h: M, m: q, s:
|
|
208
|
+
return { M: L, y: E, w: k, d: w, D: u, h: M, m: q, s: T, ms: y, Q: de }[x] || String(x || "").toLowerCase().replace(/s$/, "");
|
|
209
209
|
}, u: function(x) {
|
|
210
210
|
return x === void 0;
|
|
211
211
|
} }, fe = "en", me = {};
|
|
@@ -295,7 +295,7 @@ var bt = { exports: {} };
|
|
|
295
295
|
return Y(s + "Minutes", 1);
|
|
296
296
|
case q:
|
|
297
297
|
return Y(s + "Seconds", 2);
|
|
298
|
-
case
|
|
298
|
+
case T:
|
|
299
299
|
return Y(s + "Milliseconds", 3);
|
|
300
300
|
default:
|
|
301
301
|
return this.clone();
|
|
@@ -303,7 +303,7 @@ var bt = { exports: {} };
|
|
|
303
303
|
}, g.endOf = function($) {
|
|
304
304
|
return this.startOf($, !1);
|
|
305
305
|
}, g.$set = function($, V) {
|
|
306
|
-
var i, d = B.p($), S = "set" + (this.$u ? "UTC" : ""), P = (i = {}, i[w] = S + "Date", i[u] = S + "Date", i[L] = S + "Month", i[E] = S + "FullYear", i[M] = S + "Hours", i[q] = S + "Minutes", i[
|
|
306
|
+
var i, d = B.p($), S = "set" + (this.$u ? "UTC" : ""), P = (i = {}, i[w] = S + "Date", i[u] = S + "Date", i[L] = S + "Month", i[E] = S + "FullYear", i[M] = S + "Hours", i[q] = S + "Minutes", i[T] = S + "Seconds", i[y] = S + "Milliseconds", i)[d], Y = d === w ? this.$D + (V - this.$W) : V;
|
|
307
307
|
if (d === L || d === E) {
|
|
308
308
|
var oe = this.clone().set(u, 1);
|
|
309
309
|
oe.$d[P](Y), oe.init(), this.$d = oe.set(u, Math.min(this.$D, oe.daysInMonth())).$d;
|
|
@@ -324,7 +324,7 @@ var bt = { exports: {} };
|
|
|
324
324
|
if (S === E) return this.set(E, this.$y + $);
|
|
325
325
|
if (S === w) return P(1);
|
|
326
326
|
if (S === k) return P(7);
|
|
327
|
-
var Y = (i = {}, i[q] = e, i[M] = r, i[
|
|
327
|
+
var Y = (i = {}, i[q] = e, i[M] = r, i[T] = t, i)[S] || 1, oe = this.$d.getTime() + $ * Y;
|
|
328
328
|
return B.w(oe, this);
|
|
329
329
|
}, g.subtract = function($, V) {
|
|
330
330
|
return this.add(-1 * $, V);
|
|
@@ -407,7 +407,7 @@ var bt = { exports: {} };
|
|
|
407
407
|
case L:
|
|
408
408
|
d = pe();
|
|
409
409
|
break;
|
|
410
|
-
case
|
|
410
|
+
case de:
|
|
411
411
|
d = pe() / 3;
|
|
412
412
|
break;
|
|
413
413
|
case k:
|
|
@@ -422,7 +422,7 @@ var bt = { exports: {} };
|
|
|
422
422
|
case q:
|
|
423
423
|
d = ue / e;
|
|
424
424
|
break;
|
|
425
|
-
case
|
|
425
|
+
case T:
|
|
426
426
|
d = ue / t;
|
|
427
427
|
break;
|
|
428
428
|
default:
|
|
@@ -449,7 +449,7 @@ var bt = { exports: {} };
|
|
|
449
449
|
return this.$d.toUTCString();
|
|
450
450
|
}, x;
|
|
451
451
|
}(), re = J.prototype;
|
|
452
|
-
return b.prototype = re, [["$ms", y], ["$s",
|
|
452
|
+
return b.prototype = re, [["$ms", y], ["$s", T], ["$m", q], ["$H", M], ["$W", w], ["$M", L], ["$y", E], ["$D", u]].forEach(function(x) {
|
|
453
453
|
re[x[1]] = function(g) {
|
|
454
454
|
return this.$g(g, x[0], x[1]);
|
|
455
455
|
};
|
|
@@ -459,8 +459,8 @@ var bt = { exports: {} };
|
|
|
459
459
|
return b(1e3 * x);
|
|
460
460
|
}, b.en = me[fe], b.Ls = me, b.p = {}, b;
|
|
461
461
|
});
|
|
462
|
-
})(
|
|
463
|
-
var It =
|
|
462
|
+
})(gt);
|
|
463
|
+
var It = gt.exports;
|
|
464
464
|
const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
465
465
|
style: { display: "flex", width: "100%" },
|
|
466
466
|
class: "g-ctrl-container"
|
|
@@ -475,17 +475,17 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
475
475
|
}),
|
|
476
476
|
emits: ["update:modelValue"],
|
|
477
477
|
setup(c) {
|
|
478
|
-
const f = Ae(c, "modelValue"), t = c, e = t.item || {}, r = t.ctrlKey, y = t.ctrlType,
|
|
478
|
+
const f = Ae(c, "modelValue"), t = c, e = t.item || {}, r = t.ctrlKey, y = t.ctrlType, T = t.model, q = be([]), M = be([]), w = () => Object.keys(vt()).filter((E) => E.startsWith(`${t.t}-${r}-`)).map((E) => E.replace(`${t.t}-${r}-`, "")), k = be({
|
|
479
479
|
filterable: !0,
|
|
480
480
|
remote: !!(e && e["remote-method"]),
|
|
481
481
|
...e
|
|
482
|
-
}, L = (E) => {
|
|
482
|
+
}), L = be((E) => {
|
|
483
483
|
e["remote-method"](E, (u) => {
|
|
484
|
-
|
|
484
|
+
pt(() => {
|
|
485
485
|
M.value = u;
|
|
486
486
|
});
|
|
487
487
|
});
|
|
488
|
-
},
|
|
488
|
+
}), de = async (E = "options") => {
|
|
489
489
|
try {
|
|
490
490
|
const u = await (e == null ? void 0 : e.getDicts(t.formInfo));
|
|
491
491
|
if (typeof u == "string")
|
|
@@ -504,9 +504,9 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
504
504
|
};
|
|
505
505
|
return Pe(async () => {
|
|
506
506
|
var R, te;
|
|
507
|
-
e && e["remote-method"] && (k["remote-method"] = L), (te = (R =
|
|
508
|
-
const E = (le, X = "options",
|
|
509
|
-
typeof e.getDicts == "function" &&
|
|
507
|
+
e && e["remote-method"] && (k.value["remote-method"] = L), (te = (R = T[r]) == null ? void 0 : R.options) != null && te.length && (M.value = T[r].options);
|
|
508
|
+
const E = (le, X = "options", se = T[r]) => {
|
|
509
|
+
typeof e.getDicts == "function" && de(X).catch((Ee) => {
|
|
510
510
|
console.error(`Failed to load ${X} for ${le}:`, Ee);
|
|
511
511
|
});
|
|
512
512
|
};
|
|
@@ -517,23 +517,18 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
517
517
|
console.error("Failed to load data for tree-select:", X);
|
|
518
518
|
}
|
|
519
519
|
})();
|
|
520
|
-
}),
|
|
521
|
-
if (E !== u && typeof e.getDicts == "function") {
|
|
522
|
-
if (e != null && e.multiple) return;
|
|
523
|
-
se();
|
|
524
|
-
}
|
|
525
|
-
}, { deep: !0 }), (E, u) => {
|
|
520
|
+
}), (E, u) => {
|
|
526
521
|
var oe, ue, pe;
|
|
527
|
-
const R = j("el-radio"), te = j("el-radio-group"), le = j("el-radio-button"), X = j("el-checkbox"),
|
|
522
|
+
const R = j("el-radio"), te = j("el-radio-group"), le = j("el-radio-button"), X = j("el-checkbox"), se = j("el-checkbox-group"), Ee = j("el-checkbox-button"), fe = j("g-select-option"), me = j("el-option"), m = j("el-select"), D = j("el-tree-select"), _ = j("el-time-picker"), b = j("el-time-select"), B = j("el-date-picker"), J = j("el-color-picker"), re = j("el-rate"), x = j("el-slider"), g = j("el-switch"), $ = j("el-transfer"), V = j("el-cascader"), i = j("el-button"), d = j("el-upload"), S = j("el-autocomplete"), P = j("el-input-number"), Y = j("el-input");
|
|
528
523
|
return n(), A("div", Ut, [
|
|
529
|
-
o(y) == o(ce).RADIO ? (n(),
|
|
524
|
+
o(y) == o(ce).RADIO ? (n(), F(te, O({
|
|
530
525
|
key: 0,
|
|
531
526
|
modelValue: f.value,
|
|
532
527
|
"onUpdate:modelValue": u[0] || (u[0] = (s) => f.value = s)
|
|
533
528
|
}, o(e)), {
|
|
534
529
|
default: h(() => [
|
|
535
530
|
p(E.$slots, `${t.t}-${o(r)}`, { data: o(e) }, () => [
|
|
536
|
-
(n(!0), A(H, null, I(M.value, (s) => (n(),
|
|
531
|
+
(n(!0), A(H, null, I(M.value, (s) => (n(), F(R, O({ ref_for: !0 }, s), {
|
|
537
532
|
default: h(() => [
|
|
538
533
|
p(E.$slots, `${t.t}-${o(r)}-options`, { option: s })
|
|
539
534
|
]),
|
|
@@ -542,14 +537,14 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
542
537
|
])
|
|
543
538
|
]),
|
|
544
539
|
_: 3
|
|
545
|
-
}, 16, ["modelValue"])) : o(y) == o(ce).RADIOBUTTON ? (n(),
|
|
540
|
+
}, 16, ["modelValue"])) : o(y) == o(ce).RADIOBUTTON ? (n(), F(te, O({
|
|
546
541
|
key: 1,
|
|
547
542
|
modelValue: f.value,
|
|
548
543
|
"onUpdate:modelValue": u[1] || (u[1] = (s) => f.value = s)
|
|
549
544
|
}, o(e)), {
|
|
550
545
|
default: h(() => [
|
|
551
546
|
p(E.$slots, `${t.t}-${o(r)}`, { data: o(e) }, () => [
|
|
552
|
-
(n(!0), A(H, null, I(M.value, (s) => (n(),
|
|
547
|
+
(n(!0), A(H, null, I(M.value, (s) => (n(), F(le, O({ ref_for: !0 }, s), {
|
|
553
548
|
default: h(() => [
|
|
554
549
|
p(E.$slots, `${t.t}-${o(r)}-options`, { option: s })
|
|
555
550
|
]),
|
|
@@ -558,7 +553,7 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
558
553
|
])
|
|
559
554
|
]),
|
|
560
555
|
_: 3
|
|
561
|
-
}, 16, ["modelValue"])) : o(y) == o(ce).CHECKBOX ? (n(),
|
|
556
|
+
}, 16, ["modelValue"])) : o(y) == o(ce).CHECKBOX ? (n(), F(X, O({
|
|
562
557
|
key: 2,
|
|
563
558
|
modelValue: f.value,
|
|
564
559
|
"onUpdate:modelValue": u[2] || (u[2] = (s) => f.value = s)
|
|
@@ -569,14 +564,14 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
569
564
|
])
|
|
570
565
|
]),
|
|
571
566
|
_: 3
|
|
572
|
-
}, 16, ["modelValue"])) : o(y) == o(ce).CHECKBOXGROUP ? (n(),
|
|
567
|
+
}, 16, ["modelValue"])) : o(y) == o(ce).CHECKBOXGROUP ? (n(), F(se, O({
|
|
573
568
|
key: 3,
|
|
574
569
|
modelValue: f.value,
|
|
575
570
|
"onUpdate:modelValue": u[3] || (u[3] = (s) => f.value = s)
|
|
576
571
|
}, o(e)), {
|
|
577
572
|
default: h(() => [
|
|
578
573
|
p(E.$slots, `${t.t}-${o(r)}`, { data: o(e) }, () => [
|
|
579
|
-
(n(!0), A(H, null, I(M.value, (s) => (n(),
|
|
574
|
+
(n(!0), A(H, null, I(M.value, (s) => (n(), F(X, O({ ref_for: !0 }, s), {
|
|
580
575
|
default: h(() => [
|
|
581
576
|
p(E.$slots, `${t.t}-${o(r)}-options`, { option: s }, () => [
|
|
582
577
|
_e(ge(s.label), 1)
|
|
@@ -587,14 +582,14 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
587
582
|
])
|
|
588
583
|
]),
|
|
589
584
|
_: 3
|
|
590
|
-
}, 16, ["modelValue"])) : o(y) == o(ce).CHECKBOXGROUPBUTTON ? (n(),
|
|
585
|
+
}, 16, ["modelValue"])) : o(y) == o(ce).CHECKBOXGROUPBUTTON ? (n(), F(se, O({
|
|
591
586
|
key: 4,
|
|
592
587
|
modelValue: f.value,
|
|
593
588
|
"onUpdate:modelValue": u[4] || (u[4] = (s) => f.value = s)
|
|
594
589
|
}, o(e)), {
|
|
595
590
|
default: h(() => [
|
|
596
591
|
p(E.$slots, `${t.t}-${o(r)}`, { data: o(e) }, () => [
|
|
597
|
-
(n(!0), A(H, null, I(M.value, (s) => (n(),
|
|
592
|
+
(n(!0), A(H, null, I(M.value, (s) => (n(), F(Ee, O({ ref_for: !0 }, s), {
|
|
598
593
|
default: h(() => [
|
|
599
594
|
p(E.$slots, `${t.t}-${o(r)}-options`, { option: s })
|
|
600
595
|
]),
|
|
@@ -603,19 +598,19 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
603
598
|
])
|
|
604
599
|
]),
|
|
605
600
|
_: 3
|
|
606
|
-
}, 16, ["modelValue"])) : o(y) === o(ce).SELECT ? (n(),
|
|
601
|
+
}, 16, ["modelValue"])) : o(y) === o(ce).SELECT ? (n(), F(m, O({
|
|
607
602
|
key: 5,
|
|
608
603
|
modelValue: f.value,
|
|
609
604
|
"onUpdate:modelValue": u[5] || (u[5] = (s) => f.value = s),
|
|
610
|
-
placeholder: o(
|
|
611
|
-
}, k),
|
|
605
|
+
placeholder: o(T)[o(r)].label
|
|
606
|
+
}, k.value), ie({
|
|
612
607
|
default: h(() => [
|
|
613
608
|
p(E.$slots, `${t.t}-${o(r)}`, { options: M.value }, () => [
|
|
614
609
|
(n(!0), A(H, null, I(M.value, (s) => (n(), A(H, {
|
|
615
610
|
key: s.value
|
|
616
611
|
}, [
|
|
617
612
|
Q(me, O({ ref_for: !0 }, s, {
|
|
618
|
-
onClick: (W) => k.change && k.change(s)
|
|
613
|
+
onClick: (W) => k.value.change && k.value.change(s)
|
|
619
614
|
}), {
|
|
620
615
|
default: h(() => {
|
|
621
616
|
var W;
|
|
@@ -630,7 +625,7 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
630
625
|
columns: (ne = o(e)) == null ? void 0 : ne.columns,
|
|
631
626
|
data: s,
|
|
632
627
|
t: t.t
|
|
633
|
-
},
|
|
628
|
+
}, ie({ _: 2 }, [
|
|
634
629
|
I(E.$slots, (we, ye) => ({
|
|
635
630
|
name: ye,
|
|
636
631
|
fn: h((l) => [
|
|
@@ -647,11 +642,11 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
647
642
|
}),
|
|
648
643
|
_: 2
|
|
649
644
|
}, 1040, ["onClick"]),
|
|
650
|
-
s.children && s.children.length ? (n(!0), A(H, { key: 0 }, I(s.children, (W) => (n(),
|
|
645
|
+
s.children && s.children.length ? (n(!0), A(H, { key: 0 }, I(s.children, (W) => (n(), F(me, O({
|
|
651
646
|
key: W.value,
|
|
652
647
|
ref_for: !0
|
|
653
648
|
}, W, {
|
|
654
|
-
onClick: (ne) => k.change && k.change(W)
|
|
649
|
+
onClick: (ne) => k.value.change && k.value.change(W)
|
|
655
650
|
}), {
|
|
656
651
|
default: h(() => {
|
|
657
652
|
var ne;
|
|
@@ -666,7 +661,7 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
666
661
|
columns: (we = o(e)) == null ? void 0 : we.columns,
|
|
667
662
|
data: W,
|
|
668
663
|
t: t.t
|
|
669
|
-
},
|
|
664
|
+
}, ie({ _: 2 }, [
|
|
670
665
|
I(E.$slots, (ye, l) => ({
|
|
671
666
|
name: l,
|
|
672
667
|
fn: h((a) => [
|
|
@@ -697,7 +692,7 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
697
692
|
columns: (s = o(e)) == null ? void 0 : s.columns,
|
|
698
693
|
title: !0,
|
|
699
694
|
t: t.t
|
|
700
|
-
},
|
|
695
|
+
}, ie({ _: 2 }, [
|
|
701
696
|
I(E.$slots, (W, ne) => ({
|
|
702
697
|
name: ne,
|
|
703
698
|
fn: h((we) => [
|
|
@@ -715,107 +710,107 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
715
710
|
p(E.$slots, `${t.t}-${o(r)}-${s}`, { data: W })
|
|
716
711
|
])
|
|
717
712
|
}))
|
|
718
|
-
]), 1040, ["modelValue", "placeholder"])) : o(y) == o(ce).TREESELECT ? (n(),
|
|
713
|
+
]), 1040, ["modelValue", "placeholder"])) : o(y) == o(ce).TREESELECT ? (n(), F(D, O({
|
|
719
714
|
key: 6,
|
|
720
715
|
modelValue: f.value,
|
|
721
716
|
"onUpdate:modelValue": u[6] || (u[6] = (s) => f.value = s),
|
|
722
|
-
placeholder: o(
|
|
723
|
-
}, o(e), { data: q.value }),
|
|
717
|
+
placeholder: o(T)[o(r)].label
|
|
718
|
+
}, o(e), { data: q.value }), ie({ _: 2 }, [
|
|
724
719
|
I(w(), (s) => ({
|
|
725
720
|
name: s,
|
|
726
721
|
fn: h((W) => [
|
|
727
722
|
p(E.$slots, `${t.t}-${o(r)}-${s}`, { data: W })
|
|
728
723
|
])
|
|
729
724
|
}))
|
|
730
|
-
]), 1040, ["modelValue", "placeholder", "data"])) : o(y) == o(ce).TIME ? (n(),
|
|
725
|
+
]), 1040, ["modelValue", "placeholder", "data"])) : o(y) == o(ce).TIME ? (n(), F(_, O({
|
|
731
726
|
key: 7,
|
|
732
727
|
modelValue: f.value,
|
|
733
728
|
"onUpdate:modelValue": u[7] || (u[7] = (s) => f.value = s),
|
|
734
729
|
"arrow-control": ""
|
|
735
730
|
}, o(e), {
|
|
736
|
-
placeholder: o(
|
|
737
|
-
}), null, 16, ["modelValue", "placeholder"])) : o(y) == o(ce).TIMESELECT ? (n(),
|
|
731
|
+
placeholder: o(T)[o(r)].label
|
|
732
|
+
}), null, 16, ["modelValue", "placeholder"])) : o(y) == o(ce).TIMESELECT ? (n(), F(b, O({
|
|
738
733
|
key: 8,
|
|
739
734
|
modelValue: f.value,
|
|
740
735
|
"onUpdate:modelValue": u[8] || (u[8] = (s) => f.value = s),
|
|
741
736
|
start: "06:30",
|
|
742
737
|
step: "00:15",
|
|
743
738
|
end: "23:30",
|
|
744
|
-
placeholder: o(
|
|
745
|
-
}, o(e)), null, 16, ["modelValue", "placeholder"])) : o(y) == o(ce).DATE ? (n(),
|
|
739
|
+
placeholder: o(T)[o(r)].label
|
|
740
|
+
}, o(e)), null, 16, ["modelValue", "placeholder"])) : o(y) == o(ce).DATE ? (n(), F(B, O({
|
|
746
741
|
key: 9,
|
|
747
742
|
modelValue: f.value,
|
|
748
743
|
"onUpdate:modelValue": u[9] || (u[9] = (s) => f.value = s),
|
|
749
744
|
type: "date",
|
|
750
|
-
placeholder: o(
|
|
745
|
+
placeholder: o(T)[o(r)].label,
|
|
751
746
|
"value-format": "YYYY-MM-DD"
|
|
752
|
-
}, o(e)),
|
|
747
|
+
}, o(e)), ie({ _: 2 }, [
|
|
753
748
|
I(w(), (s) => ({
|
|
754
749
|
name: s,
|
|
755
750
|
fn: h((W) => [
|
|
756
751
|
p(E.$slots, `${t.t}-${o(r)}-${s}`, { data: W })
|
|
757
752
|
])
|
|
758
753
|
}))
|
|
759
|
-
]), 1040, ["modelValue", "placeholder"])) : o(y) == o(ce).DATETIME ? (n(),
|
|
754
|
+
]), 1040, ["modelValue", "placeholder"])) : o(y) == o(ce).DATETIME ? (n(), F(B, O({
|
|
760
755
|
key: 10,
|
|
761
756
|
modelValue: f.value,
|
|
762
757
|
"onUpdate:modelValue": u[10] || (u[10] = (s) => f.value = s),
|
|
763
758
|
type: o(ce).DATETIME,
|
|
764
|
-
placeholder: o(
|
|
759
|
+
placeholder: o(T)[o(r)].label,
|
|
765
760
|
"value-format": "YYYY-MM-DD HH:mm:ss"
|
|
766
|
-
}, o(e)),
|
|
761
|
+
}, o(e)), ie({ _: 2 }, [
|
|
767
762
|
I(w(), (s) => ({
|
|
768
763
|
name: s,
|
|
769
764
|
fn: h((W) => [
|
|
770
765
|
p(E.$slots, `${t.t}-${o(r)}-${s}`, { data: W })
|
|
771
766
|
])
|
|
772
767
|
}))
|
|
773
|
-
]), 1040, ["modelValue", "type", "placeholder"])) : o(y) == o(ce).COLOR ? (n(),
|
|
768
|
+
]), 1040, ["modelValue", "type", "placeholder"])) : o(y) == o(ce).COLOR ? (n(), F(J, O({
|
|
774
769
|
key: 11,
|
|
775
770
|
modelValue: f.value,
|
|
776
771
|
"onUpdate:modelValue": u[11] || (u[11] = (s) => f.value = s)
|
|
777
|
-
}, o(e)), null, 16, ["modelValue"])) : o(y) == o(ce).RATE ? (n(),
|
|
772
|
+
}, o(e)), null, 16, ["modelValue"])) : o(y) == o(ce).RATE ? (n(), F(re, O({
|
|
778
773
|
key: 12,
|
|
779
774
|
modelValue: f.value,
|
|
780
775
|
"onUpdate:modelValue": u[12] || (u[12] = (s) => f.value = s)
|
|
781
|
-
}, o(e)), null, 16, ["modelValue"])) : o(y) == o(ce).SLIDER ? (n(),
|
|
776
|
+
}, o(e)), null, 16, ["modelValue"])) : o(y) == o(ce).SLIDER ? (n(), F(x, O({
|
|
782
777
|
key: 13,
|
|
783
778
|
modelValue: f.value,
|
|
784
779
|
"onUpdate:modelValue": u[13] || (u[13] = (s) => f.value = s)
|
|
785
|
-
}, o(e)), null, 16, ["modelValue"])) : o(y) == o(ce).SWITCH ? (n(),
|
|
780
|
+
}, o(e)), null, 16, ["modelValue"])) : o(y) == o(ce).SWITCH ? (n(), F(g, O({
|
|
786
781
|
key: 14,
|
|
787
782
|
modelValue: f.value,
|
|
788
783
|
"onUpdate:modelValue": u[14] || (u[14] = (s) => f.value = s)
|
|
789
|
-
}, o(e)),
|
|
784
|
+
}, o(e)), ie({ _: 2 }, [
|
|
790
785
|
I(w(), (s) => ({
|
|
791
786
|
name: s,
|
|
792
787
|
fn: h((W) => [
|
|
793
788
|
p(E.$slots, `${t.t}-${o(r)}-${s}`, { data: W })
|
|
794
789
|
])
|
|
795
790
|
}))
|
|
796
|
-
]), 1040, ["modelValue"])) : o(y) == o(ce).TRANSFER ? (n(),
|
|
791
|
+
]), 1040, ["modelValue"])) : o(y) == o(ce).TRANSFER ? (n(), F($, O({
|
|
797
792
|
key: 15,
|
|
798
793
|
modelValue: f.value,
|
|
799
794
|
"onUpdate:modelValue": u[15] || (u[15] = (s) => f.value = s)
|
|
800
|
-
}, o(e)),
|
|
795
|
+
}, o(e)), ie({ _: 2 }, [
|
|
801
796
|
I(w(), (s) => ({
|
|
802
797
|
name: s,
|
|
803
798
|
fn: h((W) => [
|
|
804
799
|
p(E.$slots, `${t.t}-${o(r)}-${s}`, { data: W })
|
|
805
800
|
])
|
|
806
801
|
}))
|
|
807
|
-
]), 1040, ["modelValue"])) : o(y) == o(ce).CASCADER ? (n(),
|
|
802
|
+
]), 1040, ["modelValue"])) : o(y) == o(ce).CASCADER ? (n(), F(V, O({
|
|
808
803
|
key: 16,
|
|
809
804
|
modelValue: f.value,
|
|
810
805
|
"onUpdate:modelValue": u[16] || (u[16] = (s) => f.value = s)
|
|
811
|
-
}, o(e), { options: M.value }),
|
|
806
|
+
}, o(e), { options: M.value }), ie({ _: 2 }, [
|
|
812
807
|
I(w(), (s) => ({
|
|
813
808
|
name: s,
|
|
814
809
|
fn: h((W) => [
|
|
815
810
|
p(E.$slots, `${t.t}-${o(r)}-${s}`, { data: W })
|
|
816
811
|
])
|
|
817
812
|
}))
|
|
818
|
-
]), 1040, ["modelValue", "options"])) : o(y) == o(ce).IMAGE ? (n(),
|
|
813
|
+
]), 1040, ["modelValue", "options"])) : o(y) == o(ce).IMAGE ? (n(), F(d, Ne(O({ key: 17 }, o(e))), ie({
|
|
819
814
|
default: h(() => [
|
|
820
815
|
Q(i, { type: "primary" }, {
|
|
821
816
|
default: h(() => u[22] || (u[22] = [
|
|
@@ -832,27 +827,27 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
832
827
|
p(E.$slots, `${t.t}-${o(r)}-${s}`, { data: ne })
|
|
833
828
|
])
|
|
834
829
|
}))
|
|
835
|
-
]), 1040)) : o(y) == o(ce).AUTOCOMPLETE ? (n(),
|
|
830
|
+
]), 1040)) : o(y) == o(ce).AUTOCOMPLETE ? (n(), F(S, O({
|
|
836
831
|
key: 18,
|
|
837
832
|
modelValue: f.value,
|
|
838
833
|
"onUpdate:modelValue": u[17] || (u[17] = (s) => f.value = s)
|
|
839
834
|
}, o(e), {
|
|
840
|
-
placeholder: o(
|
|
841
|
-
}),
|
|
835
|
+
placeholder: o(T)[o(r)].label
|
|
836
|
+
}), ie({ _: 2 }, [
|
|
842
837
|
I(w(), (s, W) => ({
|
|
843
838
|
name: s,
|
|
844
839
|
fn: h((ne) => [
|
|
845
840
|
p(E.$slots, `${t.t}-${o(r)}-${s}`, { data: ne })
|
|
846
841
|
])
|
|
847
842
|
}))
|
|
848
|
-
]), 1040, ["modelValue", "placeholder"])) : o(y) == o(ce).INPUTNUMBER ? (n(),
|
|
843
|
+
]), 1040, ["modelValue", "placeholder"])) : o(y) == o(ce).INPUTNUMBER ? (n(), F(P, O({
|
|
849
844
|
key: 19,
|
|
850
845
|
modelValue: f.value,
|
|
851
846
|
"onUpdate:modelValue": u[18] || (u[18] = (s) => f.value = s),
|
|
852
847
|
min: 0,
|
|
853
848
|
max: 1e8,
|
|
854
|
-
placeholder: o(
|
|
855
|
-
}, o(e)),
|
|
849
|
+
placeholder: o(T)[o(r)].label
|
|
850
|
+
}, o(e)), ie({ _: 2 }, [
|
|
856
851
|
I(w(), (s, W) => ({
|
|
857
852
|
name: s,
|
|
858
853
|
fn: h((ne) => [
|
|
@@ -863,10 +858,10 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
863
858
|
Q(Y, O({
|
|
864
859
|
modelValue: f.value,
|
|
865
860
|
"onUpdate:modelValue": u[19] || (u[19] = (s) => f.value = s),
|
|
866
|
-
placeholder: o(
|
|
861
|
+
placeholder: o(T)[o(r)].label,
|
|
867
862
|
type: o(ce).NUMBER,
|
|
868
863
|
maxlength: ((ue = o(e)) == null ? void 0 : ue.max) || 25
|
|
869
|
-
}, { ...o(e), type: o(y) }),
|
|
864
|
+
}, { ...o(e), type: o(y) }), ie({
|
|
870
865
|
suffix: h(() => [
|
|
871
866
|
G("div", {
|
|
872
867
|
title: o(lt)(f.value),
|
|
@@ -882,14 +877,14 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
882
877
|
])
|
|
883
878
|
}))
|
|
884
879
|
]), 1040, ["modelValue", "placeholder", "type", "maxlength"])
|
|
885
|
-
])) : (n(),
|
|
880
|
+
])) : (n(), F(Y, O({
|
|
886
881
|
key: 21,
|
|
887
882
|
modelValue: f.value,
|
|
888
883
|
"onUpdate:modelValue": u[20] || (u[20] = (s) => f.value = s),
|
|
889
|
-
placeholder: o(
|
|
884
|
+
placeholder: o(T)[o(r)].label,
|
|
890
885
|
maxlength: ((pe = o(e)) == null ? void 0 : pe.max) || 25,
|
|
891
886
|
clearable: !0
|
|
892
|
-
}, { ...o(e), type: o(y) }),
|
|
887
|
+
}, { ...o(e), type: o(y) }), ie({ _: 2 }, [
|
|
893
888
|
I(w(), (s, W) => ({
|
|
894
889
|
name: s,
|
|
895
890
|
fn: h((ne) => [
|
|
@@ -911,8 +906,8 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
911
906
|
},
|
|
912
907
|
emits: /* @__PURE__ */ Oe(["submit", "reset"], ["update:modelValue"]),
|
|
913
908
|
setup(c, { emit: f }) {
|
|
914
|
-
var
|
|
915
|
-
const t = Ae(c, "modelValue"), e = f, r =
|
|
909
|
+
var se, Ee, fe, me;
|
|
910
|
+
const t = Ae(c, "modelValue"), e = f, r = be(null), y = ot("options"), T = {
|
|
916
911
|
inline: !0,
|
|
917
912
|
type: "hidden",
|
|
918
913
|
"scroll-to-error": !0,
|
|
@@ -922,7 +917,7 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
922
917
|
style: {
|
|
923
918
|
display: "flex",
|
|
924
919
|
flexWrap: "wrap",
|
|
925
|
-
...(
|
|
920
|
+
...(se = rt()) == null ? void 0 : se.style
|
|
926
921
|
},
|
|
927
922
|
// 表单底部属性
|
|
928
923
|
footer: {
|
|
@@ -964,14 +959,14 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
964
959
|
}
|
|
965
960
|
};
|
|
966
961
|
t.value.form = Ce(
|
|
967
|
-
|
|
962
|
+
T,
|
|
968
963
|
y == null ? void 0 : y.form,
|
|
969
964
|
(Ee = t.value) == null ? void 0 : Ee.form
|
|
970
965
|
);
|
|
971
966
|
const q = async (m, D) => {
|
|
972
967
|
let _ = 5;
|
|
973
968
|
for (; _ > 0; ) {
|
|
974
|
-
if (await
|
|
969
|
+
if (await pt(), r.value) {
|
|
975
970
|
r.value.validate((b, B) => {
|
|
976
971
|
b ? e("submit", m, D) : console.log("表单验证不通过!", B);
|
|
977
972
|
});
|
|
@@ -1046,14 +1041,14 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
1046
1041
|
return { ...b, ...$ };
|
|
1047
1042
|
}
|
|
1048
1043
|
return b;
|
|
1049
|
-
},
|
|
1044
|
+
}, de = (m) => {
|
|
1050
1045
|
var _, b, B, J, re;
|
|
1051
1046
|
const D = typeof m.editor == "function" ? m.editor(R.value, (_ = t.value.form) == null ? void 0 : _.modalState) : m.editor;
|
|
1052
1047
|
return ((b = t.value.form) == null ? void 0 : b.modalState) === "edit" ? ((B = D == null ? void 0 : D.ep) == null ? void 0 : B.type) ?? (D == null ? void 0 : D.type) ?? m.type : ((J = t.value.form) == null ? void 0 : J.modalState) === "add" ? ((re = D == null ? void 0 : D.ap) == null ? void 0 : re.type) ?? (D == null ? void 0 : D.type) ?? m.type : (D == null ? void 0 : D.type) ?? m.type;
|
|
1053
1048
|
};
|
|
1054
1049
|
Pe(() => {
|
|
1055
1050
|
E();
|
|
1056
|
-
}),
|
|
1051
|
+
}), _t(() => {
|
|
1057
1052
|
r.value = null;
|
|
1058
1053
|
});
|
|
1059
1054
|
const E = () => {
|
|
@@ -1102,7 +1097,7 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
1102
1097
|
], X = xe(() => le.filter((m) => !m.hidden).sort((m, D) => m.sort - D.sort || m.originalOrder - D.originalOrder));
|
|
1103
1098
|
return (m, D) => {
|
|
1104
1099
|
const _ = j("el-form-item"), b = j("el-col"), B = j("el-tab-pane"), J = j("el-tabs"), re = j("el-button"), x = j("el-form");
|
|
1105
|
-
return n(),
|
|
1100
|
+
return n(), F(x, O({
|
|
1106
1101
|
ref_key: "gform",
|
|
1107
1102
|
ref: r,
|
|
1108
1103
|
model: t.value,
|
|
@@ -1119,7 +1114,7 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
1119
1114
|
style: { width: "100%" }
|
|
1120
1115
|
}, t.value.form.tabs), {
|
|
1121
1116
|
default: h(() => [
|
|
1122
|
-
(n(!0), A(H, null, I(te.value, (i) => (n(),
|
|
1117
|
+
(n(!0), A(H, null, I(te.value, (i) => (n(), F(B, O({
|
|
1123
1118
|
key: i.groupName,
|
|
1124
1119
|
label: i.groupName,
|
|
1125
1120
|
name: i.groupName,
|
|
@@ -1127,7 +1122,7 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
1127
1122
|
ref_for: !0
|
|
1128
1123
|
}, i.tabPane), {
|
|
1129
1124
|
default: h(() => [
|
|
1130
|
-
(n(!0), A(H, null, I(i.items, (d, S) => (n(),
|
|
1125
|
+
(n(!0), A(H, null, I(i.items, (d, S) => (n(), F(b, O({ ref_for: !0 }, { ...t.value.form.cols, ...d == null ? void 0 : d.item.col }, {
|
|
1131
1126
|
key: d.key,
|
|
1132
1127
|
style: { width: "100%" }
|
|
1133
1128
|
}), {
|
|
@@ -1145,18 +1140,18 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
1145
1140
|
item: d == null ? void 0 : d.item,
|
|
1146
1141
|
model: t.value
|
|
1147
1142
|
}, () => [
|
|
1148
|
-
(n(),
|
|
1143
|
+
(n(), F(Ye, {
|
|
1149
1144
|
modelValue: t.value[d.key].value,
|
|
1150
1145
|
"onUpdate:modelValue": (oe) => t.value[d.key].value = oe,
|
|
1151
1146
|
item: L(d),
|
|
1152
1147
|
ctrlKey: d.key,
|
|
1153
|
-
ctrlType:
|
|
1148
|
+
ctrlType: de(d == null ? void 0 : d.item),
|
|
1154
1149
|
model: t.value,
|
|
1155
1150
|
key: d.key,
|
|
1156
1151
|
class: "g-ctrl-container",
|
|
1157
1152
|
t: "f",
|
|
1158
1153
|
formInfo: R.value
|
|
1159
|
-
},
|
|
1154
|
+
}, ie({ _: 2 }, [
|
|
1160
1155
|
I(m.$slots, (oe, ue) => ({
|
|
1161
1156
|
name: ue,
|
|
1162
1157
|
fn: h((pe) => [
|
|
@@ -1208,7 +1203,7 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
1208
1203
|
}) : p(m.$slots, "default", { key: 1 }, () => {
|
|
1209
1204
|
var g, $, V;
|
|
1210
1205
|
return [
|
|
1211
|
-
(n(!0), A(H, null, I(u.value, (i, d) => (n(),
|
|
1206
|
+
(n(!0), A(H, null, I(u.value, (i, d) => (n(), F(b, O({ ref_for: !0 }, { ...t.value.form.cols, ...i.col }, {
|
|
1212
1207
|
key: d,
|
|
1213
1208
|
style: { width: "100%" }
|
|
1214
1209
|
}), {
|
|
@@ -1235,18 +1230,18 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
1235
1230
|
item: i,
|
|
1236
1231
|
model: t.value
|
|
1237
1232
|
}, () => [
|
|
1238
|
-
(n(),
|
|
1233
|
+
(n(), F(Ye, {
|
|
1239
1234
|
modelValue: t.value[d].value,
|
|
1240
1235
|
"onUpdate:modelValue": (P) => t.value[d].value = P,
|
|
1241
1236
|
item: L(i, !0),
|
|
1242
1237
|
ctrlKey: d,
|
|
1243
|
-
ctrlType:
|
|
1238
|
+
ctrlType: de(i),
|
|
1244
1239
|
key: d,
|
|
1245
1240
|
model: t.value,
|
|
1246
1241
|
class: "g-ctrl-container",
|
|
1247
1242
|
t: "f",
|
|
1248
1243
|
formInfo: R.value
|
|
1249
|
-
},
|
|
1244
|
+
}, ie({ _: 2 }, [
|
|
1250
1245
|
I(m.$slots, (P, Y) => ({
|
|
1251
1246
|
name: Y,
|
|
1252
1247
|
fn: h((oe) => [
|
|
@@ -1305,7 +1300,7 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
1305
1300
|
}),
|
|
1306
1301
|
emits: ["update:modelValue", "update:info"],
|
|
1307
1302
|
setup(c) {
|
|
1308
|
-
const f = Ae(c, "modelValue"), t = c, e = Ae(c, "info"), r = (q) => xe(() => Object.fromEntries(Object.entries(f.value).filter((M) => M[1].search && M[1].search.more === q).map((M) => [M[0], M[1]]))).value, y = (q) => typeof q.search == "function" ? q.search(e.value) : q.search || {},
|
|
1303
|
+
const f = Ae(c, "modelValue"), t = c, e = Ae(c, "info"), r = (q) => xe(() => Object.fromEntries(Object.entries(f.value).filter((M) => M[1].search && M[1].search.more === q).map((M) => [M[0], M[1]]))).value, y = (q) => typeof q.search == "function" ? q.search(e.value) : q.search || {}, T = (q) => {
|
|
1309
1304
|
const M = y(q);
|
|
1310
1305
|
return (M == null ? void 0 : M.type) || q.type;
|
|
1311
1306
|
};
|
|
@@ -1329,18 +1324,18 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
1329
1324
|
default: h(() => [
|
|
1330
1325
|
Q(Ye, {
|
|
1331
1326
|
modelValue: e.value[L],
|
|
1332
|
-
"onUpdate:modelValue": (
|
|
1327
|
+
"onUpdate:modelValue": (de) => e.value[L] = de,
|
|
1333
1328
|
item: { ...k == null ? void 0 : k.editor, ...y(k) },
|
|
1334
1329
|
ctrlKey: L,
|
|
1335
|
-
ctrlType:
|
|
1330
|
+
ctrlType: T(k),
|
|
1336
1331
|
model: f.value,
|
|
1337
1332
|
t: "q",
|
|
1338
1333
|
formInfo: e.value
|
|
1339
|
-
},
|
|
1340
|
-
I(Object.keys(q.$slots), (
|
|
1341
|
-
name:
|
|
1334
|
+
}, ie({ _: 2 }, [
|
|
1335
|
+
I(Object.keys(q.$slots), (de) => ({
|
|
1336
|
+
name: de,
|
|
1342
1337
|
fn: h((E) => [
|
|
1343
|
-
p(q.$slots,
|
|
1338
|
+
p(q.$slots, de, {
|
|
1344
1339
|
data: E,
|
|
1345
1340
|
item: k,
|
|
1346
1341
|
model: f.value
|
|
@@ -1370,9 +1365,9 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
1370
1365
|
},
|
|
1371
1366
|
emits: /* @__PURE__ */ Oe(["query", "reset"], ["update:modelValue"]),
|
|
1372
1367
|
setup(c, { emit: f }) {
|
|
1373
|
-
const t = Ae(c, "modelValue"), e = f, r = ot("options"), y =
|
|
1374
|
-
let
|
|
1375
|
-
const q =
|
|
1368
|
+
const t = Ae(c, "modelValue"), e = f, r = ot("options"), y = be(!1);
|
|
1369
|
+
let T = Object.fromEntries(Object.entries(t.value).filter((u) => u[1].search).map(([u, R]) => [u, R.value]));
|
|
1370
|
+
const q = be(T), M = {
|
|
1376
1371
|
hidden: !1,
|
|
1377
1372
|
type: "hidden",
|
|
1378
1373
|
labelWidth: 100,
|
|
@@ -1398,7 +1393,7 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
1398
1393
|
hidden: !1,
|
|
1399
1394
|
plain: !1,
|
|
1400
1395
|
click: () => {
|
|
1401
|
-
q.value =
|
|
1396
|
+
q.value = be(T), e("reset", q.value);
|
|
1402
1397
|
}
|
|
1403
1398
|
},
|
|
1404
1399
|
query: {
|
|
@@ -1449,7 +1444,7 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
1449
1444
|
};
|
|
1450
1445
|
t.value.queryItems = Ce(k, r == null ? void 0 : r.queryItems, t.value.queryItems);
|
|
1451
1446
|
const L = (u, R) => {
|
|
1452
|
-
const te = Object.keys(u.slots).filter((le) => le !== "default").reduce((le, X) => (le[X] = (
|
|
1447
|
+
const te = Object.keys(u.slots).filter((le) => le !== "default").reduce((le, X) => (le[X] = (se) => u.slots[X]({
|
|
1453
1448
|
model: t.value
|
|
1454
1449
|
// 传递当前模型数据
|
|
1455
1450
|
}), le), {});
|
|
@@ -1460,8 +1455,8 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
1460
1455
|
"onUpdate:info": (le) => q.value = le,
|
|
1461
1456
|
more: R
|
|
1462
1457
|
}, te);
|
|
1463
|
-
},
|
|
1464
|
-
var te, le, X,
|
|
1458
|
+
}, de = vt(), E = () => {
|
|
1459
|
+
var te, le, X, se, Ee, fe, me, m, D;
|
|
1465
1460
|
const u = [
|
|
1466
1461
|
{
|
|
1467
1462
|
key: "query",
|
|
@@ -1476,7 +1471,7 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
1476
1471
|
},
|
|
1477
1472
|
{
|
|
1478
1473
|
key: "reset",
|
|
1479
|
-
hidden: (fe = (Ee = (
|
|
1474
|
+
hidden: (fe = (Ee = (se = t.value) == null ? void 0 : se.query) == null ? void 0 : Ee.reset) == null ? void 0 : fe.hidden,
|
|
1480
1475
|
component: ke,
|
|
1481
1476
|
props: {
|
|
1482
1477
|
...t.value.query.reset,
|
|
@@ -1498,7 +1493,7 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
1498
1493
|
content: t.value.query.more.mode === 3 ? () => Fe(He, {
|
|
1499
1494
|
class: "query-form",
|
|
1500
1495
|
...Ve(t.value.query, (_) => !["query", "more", "reset"].includes(_))
|
|
1501
|
-
}, () => L({ slots:
|
|
1496
|
+
}, () => L({ slots: de }, !0)) : null
|
|
1502
1497
|
}
|
|
1503
1498
|
];
|
|
1504
1499
|
return u.sort((_, b) => _.sort - b.sort), u.filter((_) => !_.hidden).map((_) => _.key === "more" && _.component === Xe ? Fe(Xe, _.props, {
|
|
@@ -1507,42 +1502,42 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
1507
1502
|
}) : (_.props.slot = "query-" + _.key, _.label ? Fe(_.component, _.props, () => _.label) : Fe(_.component, _.props)));
|
|
1508
1503
|
};
|
|
1509
1504
|
return (u, R) => {
|
|
1510
|
-
var X,
|
|
1505
|
+
var X, se, Ee, fe, me, m, D, _, b, B, J, re, x, g, $, V, i;
|
|
1511
1506
|
const te = j("el-form-item"), le = j("el-drawer");
|
|
1512
1507
|
return n(), A("div", {
|
|
1513
1508
|
class: "g-query-container",
|
|
1514
|
-
style: qe((
|
|
1509
|
+
style: qe((se = (X = t.value.query) == null ? void 0 : X.container) == null ? void 0 : se.style)
|
|
1515
1510
|
}, [
|
|
1516
1511
|
Q(o(He), Ne(Ze(o(Ve)(t.value.query, (d) => !["query", "more", "reset", "btns"].includes(d)))), {
|
|
1517
1512
|
default: h(() => {
|
|
1518
1513
|
var d, S;
|
|
1519
1514
|
return [
|
|
1520
|
-
(n(),
|
|
1521
|
-
((S = (d = t.value.query) == null ? void 0 : d.container) == null ? void 0 : S.inline) === !0 ? (n(),
|
|
1515
|
+
(n(), F(Se(L({ slots: u.$slots }, void 0)))),
|
|
1516
|
+
((S = (d = t.value.query) == null ? void 0 : d.container) == null ? void 0 : S.inline) === !0 ? (n(), F(te, { key: 0 }, {
|
|
1522
1517
|
default: h(() => {
|
|
1523
1518
|
var P, Y, oe, ue, pe;
|
|
1524
1519
|
return [
|
|
1525
1520
|
G("div", {
|
|
1526
1521
|
style: qe((Y = (P = t.value.query) == null ? void 0 : P.btns) == null ? void 0 : Y.style)
|
|
1527
1522
|
}, [
|
|
1528
|
-
t.value.query.group ? (n(),
|
|
1523
|
+
t.value.query.group ? (n(), F(o(We), { key: 0 }, {
|
|
1529
1524
|
default: h(() => [
|
|
1530
1525
|
(n(!0), A(H, null, I(E(), (s) => p(u.$slots, s.props.slot, {}, () => [
|
|
1531
|
-
(n(),
|
|
1526
|
+
(n(), F(Se(s)))
|
|
1532
1527
|
], !0)), 256)),
|
|
1533
1528
|
p(u.$slots, "q-btns", {}, void 0, !0)
|
|
1534
1529
|
]),
|
|
1535
1530
|
_: 3
|
|
1536
1531
|
})) : (n(), A(H, { key: 1 }, [
|
|
1537
|
-
(pe = (ue = (oe = t.value) == null ? void 0 : oe.query) == null ? void 0 : ue.btns) != null && pe.group ? (n(),
|
|
1532
|
+
(pe = (ue = (oe = t.value) == null ? void 0 : oe.query) == null ? void 0 : ue.btns) != null && pe.group ? (n(), F(o(We), { key: 0 }, {
|
|
1538
1533
|
default: h(() => [
|
|
1539
1534
|
(n(!0), A(H, null, I(E(), (s) => p(u.$slots, s.props.slot, {}, () => [
|
|
1540
|
-
(n(),
|
|
1535
|
+
(n(), F(Se(s)))
|
|
1541
1536
|
], !0)), 256))
|
|
1542
1537
|
]),
|
|
1543
1538
|
_: 3
|
|
1544
1539
|
})) : (n(!0), A(H, { key: 1 }, I(E(), (s) => p(u.$slots, s.props.slot, {}, () => [
|
|
1545
|
-
(n(),
|
|
1540
|
+
(n(), F(Se(s)))
|
|
1546
1541
|
], !0)), 256)),
|
|
1547
1542
|
p(u.$slots, "q-btns", {}, void 0, !0)
|
|
1548
1543
|
], 64))
|
|
@@ -1559,29 +1554,29 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
1559
1554
|
key: 0,
|
|
1560
1555
|
style: qe((D = (m = t.value.query) == null ? void 0 : m.btns) == null ? void 0 : D.style)
|
|
1561
1556
|
}, [
|
|
1562
|
-
t.value.query.group ? (n(),
|
|
1557
|
+
t.value.query.group ? (n(), F(o(We), { key: 0 }, {
|
|
1563
1558
|
default: h(() => [
|
|
1564
1559
|
(n(!0), A(H, null, I(E(), (d) => p(u.$slots, d.props.slot, {}, () => [
|
|
1565
|
-
(n(),
|
|
1560
|
+
(n(), F(Se(d)))
|
|
1566
1561
|
], !0)), 256)),
|
|
1567
1562
|
p(u.$slots, "q-btns", {}, void 0, !0)
|
|
1568
1563
|
]),
|
|
1569
1564
|
_: 3
|
|
1570
1565
|
})) : (n(), A(H, { key: 1 }, [
|
|
1571
|
-
(b = (_ = t.value.query) == null ? void 0 : _.btns) != null && b.group ? (n(),
|
|
1566
|
+
(b = (_ = t.value.query) == null ? void 0 : _.btns) != null && b.group ? (n(), F(o(We), { key: 0 }, {
|
|
1572
1567
|
default: h(() => [
|
|
1573
1568
|
(n(!0), A(H, null, I(E(), (d) => p(u.$slots, d.props.slot, {}, () => [
|
|
1574
|
-
(n(),
|
|
1569
|
+
(n(), F(Se(d)))
|
|
1575
1570
|
], !0)), 256))
|
|
1576
1571
|
]),
|
|
1577
1572
|
_: 3
|
|
1578
1573
|
})) : (n(!0), A(H, { key: 1 }, I(E(), (d) => p(u.$slots, d.props.slot, {}, () => [
|
|
1579
|
-
(n(),
|
|
1574
|
+
(n(), F(Se(d)))
|
|
1580
1575
|
], !0)), 256)),
|
|
1581
1576
|
p(u.$slots, "q-btns", {}, void 0, !0)
|
|
1582
1577
|
], 64))
|
|
1583
1578
|
], 4)) : ve("", !0),
|
|
1584
|
-
Q(
|
|
1579
|
+
Q(Ct, {
|
|
1585
1580
|
duration: 300,
|
|
1586
1581
|
name: "nested"
|
|
1587
1582
|
}, {
|
|
@@ -1590,13 +1585,13 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
1590
1585
|
return [
|
|
1591
1586
|
y.value && !((P = (S = (d = t.value) == null ? void 0 : d.query) == null ? void 0 : S.more) != null && P.hidden) && t.value.query.more.mode == 1 ? (n(), A("div", Nt, [
|
|
1592
1587
|
G("div", Pt, [
|
|
1593
|
-
t.value.query.more.mode == 1 ?
|
|
1588
|
+
t.value.query.more.mode == 1 ? Dt((n(), F(o(He), Ne(O({ key: 0 }, o(Ve)(t.value.query, (Y) => !["query", "more", "reset"].includes(Y)))), {
|
|
1594
1589
|
default: h(() => [
|
|
1595
|
-
(n(),
|
|
1590
|
+
(n(), F(Se(L({ slots: u.$slots }, !0))))
|
|
1596
1591
|
]),
|
|
1597
1592
|
_: 1
|
|
1598
1593
|
}, 16)), [
|
|
1599
|
-
[
|
|
1594
|
+
[Vt, y.value]
|
|
1600
1595
|
]) : ve("", !0)
|
|
1601
1596
|
])
|
|
1602
1597
|
])) : ve("", !0)
|
|
@@ -1604,13 +1599,13 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
1604
1599
|
}),
|
|
1605
1600
|
_: 1
|
|
1606
1601
|
}),
|
|
1607
|
-
y.value && !((re = (J = (B = t.value) == null ? void 0 : B.query) == null ? void 0 : J.more) != null && re.hidden) && t.value.query.more.mode == 2 ? (n(),
|
|
1602
|
+
y.value && !((re = (J = (B = t.value) == null ? void 0 : B.query) == null ? void 0 : J.more) != null && re.hidden) && t.value.query.more.mode == 2 ? (n(), F(le, O({
|
|
1608
1603
|
key: 1,
|
|
1609
1604
|
modelValue: y.value,
|
|
1610
1605
|
"onUpdate:modelValue": R[4] || (R[4] = (d) => y.value = d),
|
|
1611
1606
|
title: "更多查询",
|
|
1612
1607
|
"show-close": !1
|
|
1613
|
-
}, t.value.query.more.dialog),
|
|
1608
|
+
}, t.value.query.more.dialog), ie({
|
|
1614
1609
|
default: h(() => [
|
|
1615
1610
|
Q(o(He), O(o(Ve)(t.value.query, (d) => !["query", "more", "reset"].includes(d)), { style: { width: "98%" } }), {
|
|
1616
1611
|
default: h(() => [
|
|
@@ -1620,7 +1615,7 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
1620
1615
|
info: q.value,
|
|
1621
1616
|
"onUpdate:info": R[1] || (R[1] = (d) => q.value = d),
|
|
1622
1617
|
more: !0
|
|
1623
|
-
},
|
|
1618
|
+
}, ie({ _: 2 }, [
|
|
1624
1619
|
I(u.$slots, (d, S, P) => ({
|
|
1625
1620
|
name: S,
|
|
1626
1621
|
fn: h((Y) => [
|
|
@@ -1673,11 +1668,11 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
1673
1668
|
},
|
|
1674
1669
|
emits: ["excel"],
|
|
1675
1670
|
setup(c, { emit: f }) {
|
|
1676
|
-
const t = c, e = f, r =
|
|
1671
|
+
const t = c, e = f, r = be(t.items), y = () => {
|
|
1677
1672
|
r.value.forEach((M) => {
|
|
1678
1673
|
M.value = !0;
|
|
1679
1674
|
});
|
|
1680
|
-
},
|
|
1675
|
+
}, T = () => {
|
|
1681
1676
|
r.value.forEach((M) => {
|
|
1682
1677
|
M.value = !1;
|
|
1683
1678
|
});
|
|
@@ -1696,18 +1691,18 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
1696
1691
|
});
|
|
1697
1692
|
};
|
|
1698
1693
|
return Pe(() => {
|
|
1699
|
-
const M = new
|
|
1694
|
+
const M = new ht(document.getElementById("excelSortEl"), {
|
|
1700
1695
|
animation: 150,
|
|
1701
1696
|
onEnd: () => {
|
|
1702
1697
|
let k = M.toArray();
|
|
1703
1698
|
console.log(k);
|
|
1704
1699
|
}
|
|
1705
1700
|
}), w = M;
|
|
1706
|
-
|
|
1701
|
+
Ft(() => {
|
|
1707
1702
|
w && w.destroy();
|
|
1708
1703
|
});
|
|
1709
1704
|
}), (M, w) => {
|
|
1710
|
-
const k = j("el-divider"), L = j("el-alert"),
|
|
1705
|
+
const k = j("el-divider"), L = j("el-alert"), de = j("el-checkbox"), E = j("el-button");
|
|
1711
1706
|
return n(), A("div", Ht, [
|
|
1712
1707
|
G("div", Wt, [
|
|
1713
1708
|
G("div", Yt, [
|
|
@@ -1717,7 +1712,7 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
1717
1712
|
}, "全选"),
|
|
1718
1713
|
Q(k, { direction: "vertical" }),
|
|
1719
1714
|
G("a", {
|
|
1720
|
-
onClick:
|
|
1715
|
+
onClick: T,
|
|
1721
1716
|
style: { cursor: "pointer" }
|
|
1722
1717
|
}, "全不选")
|
|
1723
1718
|
]),
|
|
@@ -1730,7 +1725,7 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
1730
1725
|
}),
|
|
1731
1726
|
w[0] || (w[0] = G("div", { style: { margin: "1px 0" } }, null, -1)),
|
|
1732
1727
|
G("div", Gt, [
|
|
1733
|
-
(n(!0), A(H, null, I(r.value, (u) => (n(),
|
|
1728
|
+
(n(!0), A(H, null, I(r.value, (u) => (n(), F(de, {
|
|
1734
1729
|
class: "check-box-hover",
|
|
1735
1730
|
style: { width: "120px !important", height: "30px !important", border: "1px solid #dfe6ec", margin: "5px !important", "border-radius": "3px !important", "padding-left": "5px !important", display: "flex !important", "align-items": "center !important" },
|
|
1736
1731
|
"data-id": u.key,
|
|
@@ -1814,7 +1809,7 @@ const ol = {
|
|
|
1814
1809
|
}),
|
|
1815
1810
|
emits: ["update:modelValue"],
|
|
1816
1811
|
setup(c) {
|
|
1817
|
-
const f = c, t =
|
|
1812
|
+
const f = c, t = be([]), e = Ae(c, "modelValue"), r = async (w, k) => {
|
|
1818
1813
|
w ? e.value[k].showCol = !0 : e.value[k].showCol = !1;
|
|
1819
1814
|
try {
|
|
1820
1815
|
const L = await Re(e.value.table.user, f.name, k, { showCol: w });
|
|
@@ -1828,17 +1823,17 @@ const ol = {
|
|
|
1828
1823
|
}, y = () => {
|
|
1829
1824
|
const w = document.getElementById("cols");
|
|
1830
1825
|
if (w) {
|
|
1831
|
-
let k =
|
|
1826
|
+
let k = ht.create(w, {
|
|
1832
1827
|
animation: 150,
|
|
1833
1828
|
filter: ".filtered",
|
|
1834
1829
|
//
|
|
1835
1830
|
sort: !0,
|
|
1836
1831
|
onEnd: () => {
|
|
1837
|
-
k.toArray().forEach(async (
|
|
1838
|
-
e.value[
|
|
1839
|
-
let u = e.value[
|
|
1832
|
+
k.toArray().forEach(async (de, E) => {
|
|
1833
|
+
e.value[de].sort = E;
|
|
1834
|
+
let u = e.value[de].width || "auto";
|
|
1840
1835
|
try {
|
|
1841
|
-
const R = await Re(e.value.table.user, f.name,
|
|
1836
|
+
const R = await Re(e.value.table.user, f.name, de, { sort: E, width: u });
|
|
1842
1837
|
console.log(R);
|
|
1843
1838
|
} catch (R) {
|
|
1844
1839
|
console.error("列排序和宽度保存信息时出错:", R), De({
|
|
@@ -1850,7 +1845,7 @@ const ol = {
|
|
|
1850
1845
|
}
|
|
1851
1846
|
});
|
|
1852
1847
|
}
|
|
1853
|
-
},
|
|
1848
|
+
}, T = async () => {
|
|
1854
1849
|
try {
|
|
1855
1850
|
for (const w of t.value) {
|
|
1856
1851
|
w.showCol = !0, e.value[w.value].showCol = !0;
|
|
@@ -1911,16 +1906,16 @@ const ol = {
|
|
|
1911
1906
|
width: k.width || "auto"
|
|
1912
1907
|
})).sort((w, k) => w.sort - k.sort), y();
|
|
1913
1908
|
}), (w, k) => {
|
|
1914
|
-
const L = j("el-divider"),
|
|
1909
|
+
const L = j("el-divider"), de = j("el-alert"), E = j("el-checkbox");
|
|
1915
1910
|
return n(), A("div", null, [
|
|
1916
1911
|
G("div", ol, [
|
|
1917
|
-
G("a", { onClick:
|
|
1912
|
+
G("a", { onClick: T }, "全选"),
|
|
1918
1913
|
Q(L, { direction: "vertical" }),
|
|
1919
1914
|
G("a", { onClick: q }, "全不选"),
|
|
1920
1915
|
Q(L, { direction: "vertical" }),
|
|
1921
1916
|
G("a", { onClick: M }, "复位")
|
|
1922
1917
|
]),
|
|
1923
|
-
Q(
|
|
1918
|
+
Q(de, {
|
|
1924
1919
|
title: "拖动表格列标题可以改变表格列显示顺序 !",
|
|
1925
1920
|
type: "warning",
|
|
1926
1921
|
"show-icon": "",
|
|
@@ -1929,11 +1924,11 @@ const ol = {
|
|
|
1929
1924
|
}),
|
|
1930
1925
|
G("div", null, [
|
|
1931
1926
|
G("div", rl, [
|
|
1932
|
-
(n(!0), A(H, null, I(t.value, (u) => (n(),
|
|
1927
|
+
(n(!0), A(H, null, I(t.value, (u) => (n(), F(E, {
|
|
1933
1928
|
modelValue: u.showCol,
|
|
1934
1929
|
"onUpdate:modelValue": (R) => u.showCol = R,
|
|
1935
1930
|
"data-id": u.value,
|
|
1936
|
-
class:
|
|
1931
|
+
class: yt(["check-box-hover", u.value == "control" ? "filtered" : ""]),
|
|
1937
1932
|
onChange: (R) => r(R, u.value),
|
|
1938
1933
|
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" },
|
|
1939
1934
|
value: u.value,
|
|
@@ -1975,13 +1970,13 @@ const ol = {
|
|
|
1975
1970
|
emits: /* @__PURE__ */ Oe(["load", "open", "delete", "submit", "reset", "download", "row-save"], ["update:modelValue"]),
|
|
1976
1971
|
setup(c, { emit: f }) {
|
|
1977
1972
|
var ue, pe, s, W, ne, we, ye;
|
|
1978
|
-
const t = f, e = Ae(c, "modelValue"), r = ot("options"), y =
|
|
1973
|
+
const t = f, e = Ae(c, "modelValue"), r = ot("options"), y = be({});
|
|
1979
1974
|
dt(() => {
|
|
1980
1975
|
if (!e.value) return;
|
|
1981
1976
|
const l = Object.entries(e.value).filter(([a, v]) => (v == null ? void 0 : v.search) !== void 0).map(([a, v]) => [a, v.value]);
|
|
1982
1977
|
y.value = Object.fromEntries(l);
|
|
1983
1978
|
});
|
|
1984
|
-
const
|
|
1979
|
+
const T = be(!1), q = be(!1), M = ["type", "index", "label", "column-key", "prop", "width", "min-width", "fixed", "render-header", "sortable", "sort-method", "sort-by", "sort-orders", "resizable", "formatter", "show-overflow-tooltip", "align", "header-align", "class-name", "label-class-name", "selectable", "reserve-selection", "filters", "filter-placement", "filter-class-name", "filter-multiple", "filter-method", "filtered-value"], w = be([]), k = c, L = rt(), de = {
|
|
1985
1980
|
autoWatch: !1,
|
|
1986
1981
|
data: [],
|
|
1987
1982
|
border: !0,
|
|
@@ -2032,7 +2027,7 @@ const ol = {
|
|
|
2032
2027
|
dblclickType: "edit"
|
|
2033
2028
|
};
|
|
2034
2029
|
e.value.table = Ce(
|
|
2035
|
-
|
|
2030
|
+
de,
|
|
2036
2031
|
r == null ? void 0 : r.table,
|
|
2037
2032
|
e.value.table,
|
|
2038
2033
|
L
|
|
@@ -2153,7 +2148,7 @@ const ol = {
|
|
|
2153
2148
|
r == null ? void 0 : r.dialog,
|
|
2154
2149
|
(ye = e.value) == null ? void 0 : ye.dialog
|
|
2155
2150
|
);
|
|
2156
|
-
const X = Object.fromEntries(Object.entries(Ve(e.value, (l, a) => a.type != "control" && a.editor !== !1 && a.type != "hidden")).map(([l, a]) => [l, a.value])),
|
|
2151
|
+
const X = Object.fromEntries(Object.entries(Ve(e.value, (l, a) => a.type != "control" && a.editor !== !1 && a.type != "hidden")).map(([l, a]) => [l, a.value])), se = (l, a) => {
|
|
2157
2152
|
let v = a;
|
|
2158
2153
|
if (l.decimals && !isNaN(a) && (typeof l.decimals == "number" ? v = parseFloat(v).toFixed(l.decimals) : typeof l.decimals == "object" && l.decimals.num && (l.decimals.pad ? v = parseFloat(v).toFixed(l.decimals.num) : v = parseFloat(parseFloat(v).toFixed(l.decimals.num)).toString())), ["date", "datetime", "time", "time-select"].includes(l.type) && Je(a).isValid()) {
|
|
2159
2154
|
const Z = {
|
|
@@ -2172,20 +2167,20 @@ const ol = {
|
|
|
2172
2167
|
var a, v;
|
|
2173
2168
|
e.value.form.modalState = "add", (a = e.value.control) != null && a.validate("add", { m: l }) && ((v = e.value.control.add) != null && v.click ? e.value.control.add.click(l) : e.value.control.add.inline === !0 ? (e.value.table.data.unshift(X), q.value = !0, t("open", "row-add", { initFormData: X, addingRow: q.value })) : (e.value.form.disabled = !1, e.value.dialog.mode = e.value.control.add.mode, e.value.dialog.title = e.value.control.add.label, Object.keys(X).forEach((U) => {
|
|
2174
2169
|
e.value[U] && (e.value[U].value = X[U]);
|
|
2175
|
-
}),
|
|
2170
|
+
}), T.value = !0, t("open", "add", { m: l })));
|
|
2176
2171
|
}, m = (l, a, v, U) => {
|
|
2177
2172
|
var Z, K;
|
|
2178
|
-
e.value.form.modalState = "edit", (Z = e.value.control) != null && Z.validate("edit", { row: l, column: a, $index: v, m: U }) && ((K = e.value.control.edit) != null && K.click ? e.value.control.edit.click(l, a, v, U) : (e.value.form.disabled = !1, e.value.dialog.mode = e.value.control.edit.mode, e.value.dialog.title = e.value.control.edit.label, Object.keys(l).forEach((
|
|
2179
|
-
e.value[
|
|
2180
|
-
}),
|
|
2173
|
+
e.value.form.modalState = "edit", (Z = e.value.control) != null && Z.validate("edit", { row: l, column: a, $index: v, m: U }) && ((K = e.value.control.edit) != null && K.click ? e.value.control.edit.click(l, a, v, U) : (e.value.form.disabled = !1, e.value.dialog.mode = e.value.control.edit.mode, e.value.dialog.title = e.value.control.edit.label, Object.keys(l).forEach(($e) => {
|
|
2174
|
+
e.value[$e] && (e.value[$e].value = l[$e]);
|
|
2175
|
+
}), T.value = !0, t("open", "edit", { m: U, row: l, column: a, $index: v })));
|
|
2181
2176
|
}, D = (l, a, v, U) => {
|
|
2182
2177
|
var Z, K;
|
|
2183
2178
|
if ((Z = e.value.control) != null && Z.validate("delete", { row: l, column: a, $index: v, m: U }))
|
|
2184
2179
|
if ((K = e.value.control.delete) != null && K.click)
|
|
2185
2180
|
e.value.control.delete.click(l, a, v, U);
|
|
2186
2181
|
else {
|
|
2187
|
-
let { message:
|
|
2188
|
-
mt.confirm(
|
|
2182
|
+
let { message: $e, title: Me, options: Le } = e.value.control.delete.dialog;
|
|
2183
|
+
mt.confirm($e, Me, Le).then(() => {
|
|
2189
2184
|
t("delete", { row: l, column: a, $index: v }, (ze) => {
|
|
2190
2185
|
ze && (e.value.table.data.splice(v, 1), e.value.table.page.total--);
|
|
2191
2186
|
});
|
|
@@ -2194,9 +2189,9 @@ const ol = {
|
|
|
2194
2189
|
}
|
|
2195
2190
|
}, _ = (l, a, v, U) => {
|
|
2196
2191
|
var Z, K;
|
|
2197
|
-
e.value.form.modalState = void 0, (Z = e.value.control) != null && Z.validate("view", { row: l, column: a, $index: v, m: U }) && ((K = e.value.control.view) != null && K.click ? e.value.control.view.click(l, a, v, U) : (e.value.form.disabled = !0, e.value.dialog.mode = e.value.control.view.mode, e.value.dialog.title = e.value.control.view.label, Object.keys(l).forEach((
|
|
2198
|
-
e.value[
|
|
2199
|
-
}),
|
|
2192
|
+
e.value.form.modalState = void 0, (Z = e.value.control) != null && Z.validate("view", { row: l, column: a, $index: v, m: U }) && ((K = e.value.control.view) != null && K.click ? e.value.control.view.click(l, a, v, U) : (e.value.form.disabled = !0, e.value.dialog.mode = e.value.control.view.mode, e.value.dialog.title = e.value.control.view.label, Object.keys(l).forEach(($e) => {
|
|
2193
|
+
e.value[$e] && (e.value[$e].value = l[$e]);
|
|
2194
|
+
}), T.value = !0, t("open", "view", { m: U, row: l, column: a, $index: v })));
|
|
2200
2195
|
}, b = (l, a, v, U) => {
|
|
2201
2196
|
var Z;
|
|
2202
2197
|
(Z = e.value.control.save) != null && Z.click ? e.value.control.save.click(l, a, v, U) : t("row-save", { row: l, column: a, $index: v, data: e.value.table.data }, (K) => {
|
|
@@ -2204,7 +2199,7 @@ const ol = {
|
|
|
2204
2199
|
});
|
|
2205
2200
|
}, B = (l, a) => {
|
|
2206
2201
|
t("submit", e.value.form.modalState, l, a, (v) => {
|
|
2207
|
-
v && (
|
|
2202
|
+
v && (T.value = !1, a.table.load());
|
|
2208
2203
|
});
|
|
2209
2204
|
}, J = (l) => {
|
|
2210
2205
|
t("reset", l);
|
|
@@ -2264,21 +2259,21 @@ const ol = {
|
|
|
2264
2259
|
return a[U] || (a[U] = []), a[U].push(v), a;
|
|
2265
2260
|
}, {}), d = xe(() => Object.fromEntries(
|
|
2266
2261
|
Object.entries(e.value).filter(([l, a]) => a.type !== "hidden").filter(([l, a]) => a.visible !== !1).filter(([l, a]) => a.showCol !== !1).map(([l, a]) => (a.sort = typeof a.sort == "number" ? a.sort : 0, [l, a])).sort((l, a) => l[1].sort - a[1].sort)
|
|
2267
|
-
)), S =
|
|
2262
|
+
)), S = be({}), P = (l, a) => {
|
|
2268
2263
|
const v = (U, Z) => {
|
|
2269
2264
|
for (const K of U) {
|
|
2270
2265
|
if (K.value == Z) return K.label;
|
|
2271
2266
|
if (K.children) {
|
|
2272
|
-
const
|
|
2273
|
-
if (
|
|
2267
|
+
const $e = v(K.children, Z);
|
|
2268
|
+
if ($e) return $e;
|
|
2274
2269
|
}
|
|
2275
2270
|
}
|
|
2276
2271
|
return null;
|
|
2277
2272
|
};
|
|
2278
2273
|
if (l.getDicts) {
|
|
2279
2274
|
const U = a.toString();
|
|
2280
|
-
return S.value[U] ? (l.options = S.value[U], l.formatter || (l.formatter = (Z, K,
|
|
2281
|
-
S.value[U] = Z, l.options = Z, l.formatter || (l.formatter = (K,
|
|
2275
|
+
return S.value[U] ? (l.options = S.value[U], l.formatter || (l.formatter = (Z, K, $e, Me) => l.options && v(l.options, $e) || $e), Promise.resolve()) : l.getDicts(e.value.table.data).then((Z) => {
|
|
2276
|
+
S.value[U] = Z, l.options = Z, l.formatter || (l.formatter = (K, $e, Me, Le) => l.options && v(l.options, Me) || Me);
|
|
2282
2277
|
});
|
|
2283
2278
|
}
|
|
2284
2279
|
return Promise.resolve();
|
|
@@ -2341,7 +2336,7 @@ const ol = {
|
|
|
2341
2336
|
e.value.table.autoWatch || e.value.table.load();
|
|
2342
2337
|
}), (l, a) => {
|
|
2343
2338
|
var ze, at, ut, nt, st;
|
|
2344
|
-
const v = j("el-button-group"), U = j("el-table-column"), Z = j("el-table"), K = j("el-pagination"),
|
|
2339
|
+
const v = j("el-button-group"), U = j("el-table-column"), Z = j("el-table"), K = j("el-pagination"), $e = j("el-icon"), Me = j("el-dialog"), Le = j("el-drawer");
|
|
2345
2340
|
return n(), A(H, null, [
|
|
2346
2341
|
G("div", sl, [
|
|
2347
2342
|
((at = (ze = e.value) == null ? void 0 : ze.query) == null ? void 0 : at.hidden) != !0 ? (n(), A("div", il, [
|
|
@@ -2351,14 +2346,14 @@ const ol = {
|
|
|
2351
2346
|
"onUpdate:modelValue": a[0] || (a[0] = (N) => e.value = N),
|
|
2352
2347
|
onQuery: fe,
|
|
2353
2348
|
onReset: Ee
|
|
2354
|
-
},
|
|
2349
|
+
}, ie({
|
|
2355
2350
|
"q-btns": h(() => [
|
|
2356
2351
|
p(l.$slots, "q-btns", {}, () => [
|
|
2357
2352
|
(n(!0), A(H, null, I(i(["add", "download", "setting"]), (N, ae) => (n(), A(H, null, [
|
|
2358
2353
|
ae == "default" ? (n(!0), A(H, { key: 0 }, I(N, (C) => (n(), A(H, null, [
|
|
2359
2354
|
p(l.$slots, C.name + "-left", {}, void 0, !0),
|
|
2360
2355
|
(C.name === "control-add" ? C.attr.auth() && C.attr.inline === !1 : C.attr.auth()) ? p(l.$slots, C.name, { key: 0 }, () => [
|
|
2361
|
-
C.label ? (n(),
|
|
2356
|
+
C.label ? (n(), F(o(ke), O({
|
|
2362
2357
|
key: 0,
|
|
2363
2358
|
ref_for: !0
|
|
2364
2359
|
}, C.attr, {
|
|
@@ -2368,7 +2363,7 @@ const ol = {
|
|
|
2368
2363
|
_e(ge(C.label), 1)
|
|
2369
2364
|
]),
|
|
2370
2365
|
_: 2
|
|
2371
|
-
}, 1040, ["onClick"])) : (n(),
|
|
2366
|
+
}, 1040, ["onClick"])) : (n(), F(o(ke), O({
|
|
2372
2367
|
key: 1,
|
|
2373
2368
|
ref_for: !0
|
|
2374
2369
|
}, C.attr, {
|
|
@@ -2376,12 +2371,12 @@ const ol = {
|
|
|
2376
2371
|
}), null, 16, ["onClick"]))
|
|
2377
2372
|
], !0) : ve("", !0),
|
|
2378
2373
|
p(l.$slots, C.name + "-right", {}, void 0, !0)
|
|
2379
|
-
], 64))), 256)) : (n(),
|
|
2374
|
+
], 64))), 256)) : (n(), F(v, { key: 1 }, {
|
|
2380
2375
|
default: h(() => [
|
|
2381
2376
|
(n(!0), A(H, null, I(N, (C) => (n(), A(H, null, [
|
|
2382
2377
|
p(l.$slots, C.name + "-left", {}, void 0, !0),
|
|
2383
2378
|
(C.name === "control-add" ? C.attr.auth() && C.attr.inline === !1 : C.attr.auth()) ? p(l.$slots, C.name, { key: 0 }, () => [
|
|
2384
|
-
C.label ? (n(),
|
|
2379
|
+
C.label ? (n(), F(o(ke), O({
|
|
2385
2380
|
key: 0,
|
|
2386
2381
|
ref_for: !0
|
|
2387
2382
|
}, C.attr, {
|
|
@@ -2391,7 +2386,7 @@ const ol = {
|
|
|
2391
2386
|
_e(ge(C.label), 1)
|
|
2392
2387
|
]),
|
|
2393
2388
|
_: 2
|
|
2394
|
-
}, 1040, ["onClick"])) : (n(),
|
|
2389
|
+
}, 1040, ["onClick"])) : (n(), F(o(ke), O({
|
|
2395
2390
|
key: 1,
|
|
2396
2391
|
ref_for: !0
|
|
2397
2392
|
}, C.attr, {
|
|
@@ -2427,11 +2422,11 @@ const ol = {
|
|
|
2427
2422
|
]),
|
|
2428
2423
|
default: h(() => [
|
|
2429
2424
|
p(l.$slots, "default", {}, () => [
|
|
2430
|
-
(n(!0), A(H, null, I(d.value, (N, ae) => (n(),
|
|
2425
|
+
(n(!0), A(H, null, I(d.value, (N, ae) => (n(), F(U, O({
|
|
2431
2426
|
prop: ae,
|
|
2432
2427
|
key: ae,
|
|
2433
2428
|
ref_for: !0
|
|
2434
|
-
}, { ...e.value.tableColumns, ...o(Ve)(N, (C) => M.includes(C)) }, { "header-align": "center" }),
|
|
2429
|
+
}, { ...e.value.tableColumns, ...o(Ve)(N, (C) => M.includes(C)) }, { "header-align": "center" }), ie({
|
|
2435
2430
|
header: h(({ column: C, $index: z }) => [
|
|
2436
2431
|
ae == "control" ? p(l.$slots, `${ae}-header`, {
|
|
2437
2432
|
key: 0,
|
|
@@ -2440,7 +2435,7 @@ const ol = {
|
|
|
2440
2435
|
}, () => [
|
|
2441
2436
|
a[11] || (a[11] = G("span", null, "操作", -1)),
|
|
2442
2437
|
e.value.control.add.inline === !0 && !q.value ? (n(), A(H, { key: 0 }, [
|
|
2443
|
-
e.value.control.add.label ? (n(),
|
|
2438
|
+
e.value.control.add.label ? (n(), F(o(ke), O({
|
|
2444
2439
|
key: 0,
|
|
2445
2440
|
title: "新增",
|
|
2446
2441
|
size: "small",
|
|
@@ -2452,7 +2447,7 @@ const ol = {
|
|
|
2452
2447
|
_e(ge(e.value.control.add.label), 1)
|
|
2453
2448
|
]),
|
|
2454
2449
|
_: 1
|
|
2455
|
-
}, 16)) : (n(),
|
|
2450
|
+
}, 16)) : (n(), F(o(ke), O({
|
|
2456
2451
|
key: 1,
|
|
2457
2452
|
title: "新增",
|
|
2458
2453
|
size: "small",
|
|
@@ -2504,7 +2499,7 @@ const ol = {
|
|
|
2504
2499
|
var Ie, Ue;
|
|
2505
2500
|
return [
|
|
2506
2501
|
G("div", {
|
|
2507
|
-
class:
|
|
2502
|
+
class: yt(["control", (Ie = e.value.control) == null ? void 0 : Ie.class]),
|
|
2508
2503
|
style: qe((Ue = e.value.control) == null ? void 0 : Ue.style)
|
|
2509
2504
|
}, [
|
|
2510
2505
|
p(l.$slots, "control", {}, () => [
|
|
@@ -2526,7 +2521,7 @@ const ol = {
|
|
|
2526
2521
|
column: z,
|
|
2527
2522
|
$index: ee
|
|
2528
2523
|
}, () => [
|
|
2529
|
-
he.label ? (n(),
|
|
2524
|
+
he.label ? (n(), F(o(ke), O({
|
|
2530
2525
|
key: 0,
|
|
2531
2526
|
ref_for: !0
|
|
2532
2527
|
}, he.attr, {
|
|
@@ -2536,7 +2531,7 @@ const ol = {
|
|
|
2536
2531
|
_e(ge(he.label), 1)
|
|
2537
2532
|
]),
|
|
2538
2533
|
_: 2
|
|
2539
|
-
}, 1040, ["onClick"])) : (n(),
|
|
2534
|
+
}, 1040, ["onClick"])) : (n(), F(o(ke), O({
|
|
2540
2535
|
key: 1,
|
|
2541
2536
|
ref_for: !0
|
|
2542
2537
|
}, he.attr, {
|
|
@@ -2548,7 +2543,7 @@ const ol = {
|
|
|
2548
2543
|
column: z,
|
|
2549
2544
|
$index: ee
|
|
2550
2545
|
}, void 0, !0)
|
|
2551
|
-
], 64))), 256)) : (n(),
|
|
2546
|
+
], 64))), 256)) : (n(), F(v, { key: 1 }, {
|
|
2552
2547
|
default: h(() => [
|
|
2553
2548
|
(n(!0), A(H, null, I(je, (he) => (n(), A(H, null, [
|
|
2554
2549
|
p(l.$slots, he.name + "-left", {
|
|
@@ -2562,7 +2557,7 @@ const ol = {
|
|
|
2562
2557
|
column: z,
|
|
2563
2558
|
$index: ee
|
|
2564
2559
|
}, () => [
|
|
2565
|
-
he.label ? (n(),
|
|
2560
|
+
he.label ? (n(), F(o(ke), O({
|
|
2566
2561
|
key: 0,
|
|
2567
2562
|
ref_for: !0
|
|
2568
2563
|
}, he.attr, {
|
|
@@ -2572,7 +2567,7 @@ const ol = {
|
|
|
2572
2567
|
_e(ge(he.label), 1)
|
|
2573
2568
|
]),
|
|
2574
2569
|
_: 2
|
|
2575
|
-
}, 1040, ["onClick"])) : (n(),
|
|
2570
|
+
}, 1040, ["onClick"])) : (n(), F(o(ke), O({
|
|
2576
2571
|
key: 1,
|
|
2577
2572
|
ref_for: !0
|
|
2578
2573
|
}, he.attr, {
|
|
@@ -2610,7 +2605,7 @@ const ol = {
|
|
|
2610
2605
|
}, () => {
|
|
2611
2606
|
var Ie;
|
|
2612
2607
|
return [
|
|
2613
|
-
(n(),
|
|
2608
|
+
(n(), F(Ye, {
|
|
2614
2609
|
modelValue: C[ae],
|
|
2615
2610
|
"onUpdate:modelValue": (Ue) => C[ae] = Ue,
|
|
2616
2611
|
item: N == null ? void 0 : N.table(C, z, ee, q.value),
|
|
@@ -2621,7 +2616,7 @@ const ol = {
|
|
|
2621
2616
|
class: "g-ctrl-container",
|
|
2622
2617
|
t: "t",
|
|
2623
2618
|
formInfo: C
|
|
2624
|
-
},
|
|
2619
|
+
}, ie({ _: 2 }, [
|
|
2625
2620
|
I(l.$slots, (Ue, je) => ({
|
|
2626
2621
|
name: je,
|
|
2627
2622
|
fn: h((Ge) => [
|
|
@@ -2641,7 +2636,7 @@ const ol = {
|
|
|
2641
2636
|
$index: ee
|
|
2642
2637
|
}, () => [
|
|
2643
2638
|
G("div", {
|
|
2644
|
-
innerHTML:
|
|
2639
|
+
innerHTML: se(N, z.formatter(C, z, C[ae], ee))
|
|
2645
2640
|
}, null, 8, cl)
|
|
2646
2641
|
], !0)
|
|
2647
2642
|
]),
|
|
@@ -2667,13 +2662,13 @@ const ol = {
|
|
|
2667
2662
|
], !0)
|
|
2668
2663
|
])
|
|
2669
2664
|
]),
|
|
2670
|
-
e.value.dialog.mode == "dialog" &&
|
|
2665
|
+
e.value.dialog.mode == "dialog" && T.value ? (n(), A("div", ml, [
|
|
2671
2666
|
Q(Me, O({
|
|
2672
|
-
modelValue:
|
|
2673
|
-
"onUpdate:modelValue": a[8] || (a[8] = (N) =>
|
|
2667
|
+
modelValue: T.value,
|
|
2668
|
+
"onUpdate:modelValue": a[8] || (a[8] = (N) => T.value = N),
|
|
2674
2669
|
fullscreen: e.value.dialog.fullScreen
|
|
2675
2670
|
}, o(Ve)(e.value.dialog, (N) => !["size"].includes(N)), {
|
|
2676
|
-
width: o(
|
|
2671
|
+
width: o($t)(e.value.dialog.width) + 35
|
|
2677
2672
|
}), {
|
|
2678
2673
|
header: h(() => {
|
|
2679
2674
|
var N, ae, C, z;
|
|
@@ -2691,7 +2686,7 @@ const ol = {
|
|
|
2691
2686
|
}),
|
|
2692
2687
|
class: "max"
|
|
2693
2688
|
}, [
|
|
2694
|
-
Q(
|
|
2689
|
+
Q($e, null, {
|
|
2695
2690
|
default: h(() => [
|
|
2696
2691
|
Q(o(Mt))
|
|
2697
2692
|
]),
|
|
@@ -2705,7 +2700,7 @@ const ol = {
|
|
|
2705
2700
|
}),
|
|
2706
2701
|
class: "max"
|
|
2707
2702
|
}, [
|
|
2708
|
-
Q(
|
|
2703
|
+
Q($e, null, {
|
|
2709
2704
|
default: h(() => [
|
|
2710
2705
|
Q(o(St))
|
|
2711
2706
|
]),
|
|
@@ -2723,7 +2718,7 @@ const ol = {
|
|
|
2723
2718
|
"onUpdate:modelValue": a[7] || (a[7] = (N) => e.value = N),
|
|
2724
2719
|
onSubmit: B,
|
|
2725
2720
|
onReset: J
|
|
2726
|
-
},
|
|
2721
|
+
}, ie({ _: 2 }, [
|
|
2727
2722
|
I(l.$slots, (N, ae, C) => ({
|
|
2728
2723
|
name: ae,
|
|
2729
2724
|
fn: h((z) => [
|
|
@@ -2737,10 +2732,10 @@ const ol = {
|
|
|
2737
2732
|
_: 3
|
|
2738
2733
|
}, 16, ["modelValue", "fullscreen", "width"])
|
|
2739
2734
|
])) : ve("", !0),
|
|
2740
|
-
e.value.dialog.mode == "drawer" &&
|
|
2735
|
+
e.value.dialog.mode == "drawer" && T.value ? (n(), A("div", hl, [
|
|
2741
2736
|
Q(Le, O({
|
|
2742
|
-
modelValue:
|
|
2743
|
-
"onUpdate:modelValue": a[10] || (a[10] = (N) =>
|
|
2737
|
+
modelValue: T.value,
|
|
2738
|
+
"onUpdate:modelValue": a[10] || (a[10] = (N) => T.value = N)
|
|
2744
2739
|
}, o(Ve)(e.value.dialog, (N) => !["width"].includes(N))), {
|
|
2745
2740
|
header: h(() => [
|
|
2746
2741
|
G("div", gl, [
|
|
@@ -2758,7 +2753,7 @@ const ol = {
|
|
|
2758
2753
|
"onUpdate:modelValue": a[9] || (a[9] = (N) => e.value = N),
|
|
2759
2754
|
onSubmit: B,
|
|
2760
2755
|
onReset: J
|
|
2761
|
-
},
|
|
2756
|
+
}, ie({ _: 2 }, [
|
|
2762
2757
|
I(l.$slots, (N, ae, C) => ({
|
|
2763
2758
|
name: ae,
|
|
2764
2759
|
fn: h((z) => [
|
|
@@ -2785,17 +2780,17 @@ const ol = {
|
|
|
2785
2780
|
},
|
|
2786
2781
|
emits: /* @__PURE__ */ Oe(["load"], ["update:modelValue"]),
|
|
2787
2782
|
setup(c, { emit: f }) {
|
|
2788
|
-
const t = f, e = Ae(c, "modelValue"), r = rt(), y =
|
|
2783
|
+
const t = f, e = Ae(c, "modelValue"), r = rt(), y = be((r == null ? void 0 : r.width) || "180px"), T = be((r == null ? void 0 : r.search) === void 0 ? !0 : r == null ? void 0 : r.search), q = be({}), M = be(""), w = be(null), k = (E, u) => {
|
|
2789
2784
|
var te, le;
|
|
2790
2785
|
if (!E) return !0;
|
|
2791
2786
|
const R = ((le = (te = r.tree) == null ? void 0 : te.props) == null ? void 0 : le.label) || "label";
|
|
2792
2787
|
return u[R].includes(E);
|
|
2793
2788
|
}, L = (E, u) => {
|
|
2794
2789
|
t("load", q.value, E, u);
|
|
2795
|
-
},
|
|
2790
|
+
}, de = (E) => {
|
|
2796
2791
|
q.value = E, e.value.table.load();
|
|
2797
2792
|
};
|
|
2798
|
-
return
|
|
2793
|
+
return Tt(M, (E) => {
|
|
2799
2794
|
w.value.filter(E);
|
|
2800
2795
|
}), (E, u) => {
|
|
2801
2796
|
const R = j("el-input"), te = j("el-tree"), le = j("g-table");
|
|
@@ -2804,7 +2799,7 @@ const ol = {
|
|
|
2804
2799
|
class: "g-tree-left",
|
|
2805
2800
|
style: qe({ width: y.value })
|
|
2806
2801
|
}, [
|
|
2807
|
-
|
|
2802
|
+
T.value ? (n(), F(R, {
|
|
2808
2803
|
key: 0,
|
|
2809
2804
|
modelValue: M.value,
|
|
2810
2805
|
"onUpdate:modelValue": u[0] || (u[0] = (X) => M.value = X),
|
|
@@ -2819,22 +2814,22 @@ const ol = {
|
|
|
2819
2814
|
"expand-on-click-node": !1,
|
|
2820
2815
|
ref_key: "treeRef",
|
|
2821
2816
|
ref: w,
|
|
2822
|
-
onNodeClick:
|
|
2823
|
-
}, E.$attrs.tree),
|
|
2824
|
-
default: h(({ node: X, data:
|
|
2817
|
+
onNodeClick: de
|
|
2818
|
+
}, E.$attrs.tree), ie({
|
|
2819
|
+
default: h(({ node: X, data: se }) => [
|
|
2825
2820
|
p(E.$slots, "tree", {
|
|
2826
2821
|
node: X,
|
|
2827
|
-
data:
|
|
2822
|
+
data: se
|
|
2828
2823
|
}, () => [
|
|
2829
2824
|
G("span", null, ge(X.label), 1)
|
|
2830
2825
|
], !0)
|
|
2831
2826
|
]),
|
|
2832
2827
|
_: 2
|
|
2833
2828
|
}, [
|
|
2834
|
-
I(E.$slots, (X,
|
|
2835
|
-
name:
|
|
2829
|
+
I(E.$slots, (X, se, Ee) => ({
|
|
2830
|
+
name: se,
|
|
2836
2831
|
fn: h((fe) => [
|
|
2837
|
-
p(E.$slots,
|
|
2832
|
+
p(E.$slots, se, { data: fe }, void 0, !0)
|
|
2838
2833
|
])
|
|
2839
2834
|
}))
|
|
2840
2835
|
]), 1040, ["style"])
|
|
@@ -2844,11 +2839,11 @@ const ol = {
|
|
|
2844
2839
|
Q(le, O({
|
|
2845
2840
|
modelValue: e.value,
|
|
2846
2841
|
"onUpdate:modelValue": u[1] || (u[1] = (X) => e.value = X)
|
|
2847
|
-
}, E.$attrs, { onLoad: L }),
|
|
2848
|
-
I(E.$slots, (X,
|
|
2849
|
-
name:
|
|
2842
|
+
}, E.$attrs, { onLoad: L }), ie({ _: 2 }, [
|
|
2843
|
+
I(E.$slots, (X, se, Ee) => ({
|
|
2844
|
+
name: se,
|
|
2850
2845
|
fn: h((fe) => [
|
|
2851
|
-
p(E.$slots,
|
|
2846
|
+
p(E.$slots, se, { data: fe }, void 0, !0)
|
|
2852
2847
|
])
|
|
2853
2848
|
}))
|
|
2854
2849
|
]), 1040, ["modelValue"])
|
|
@@ -2905,15 +2900,15 @@ const ol = {
|
|
|
2905
2900
|
], 12, Tl))), 128))
|
|
2906
2901
|
]));
|
|
2907
2902
|
}
|
|
2908
|
-
}), Ml = /* @__PURE__ */ Be(ql, [["__scopeId", "data-v-ba0fcda6"]]), Sl = Object.freeze({}),
|
|
2903
|
+
}), Ml = /* @__PURE__ */ Be(ql, [["__scopeId", "data-v-ba0fcda6"]]), Sl = Object.freeze({}), bt = [El, Ke, Dl, Ml];
|
|
2909
2904
|
let et = {};
|
|
2910
2905
|
const Nl = {
|
|
2911
2906
|
install: (c, f = {}) => {
|
|
2912
|
-
et = Object.freeze({ ...Sl, ...f }),
|
|
2907
|
+
et = Object.freeze({ ...Sl, ...f }), bt.forEach((t) => {
|
|
2913
2908
|
c.component(t.name, t);
|
|
2914
2909
|
}), c.provide("options", et), c.config.globalProperties.$openModal = tt;
|
|
2915
2910
|
}
|
|
2916
|
-
}, Ol = (c) => ({ dialog:
|
|
2911
|
+
}, Ol = (c) => ({ dialog: wt, drawer: kt })[c] || null, tt = (c = {}, f = "dialog") => {
|
|
2917
2912
|
if (typeof document > "u") return () => {
|
|
2918
2913
|
};
|
|
2919
2914
|
const t = document.createElement("div");
|
|
@@ -2922,11 +2917,11 @@ const Nl = {
|
|
|
2922
2917
|
const r = Ol(f);
|
|
2923
2918
|
if (!r) return () => {
|
|
2924
2919
|
};
|
|
2925
|
-
const y =
|
|
2920
|
+
const y = be(!0), T = qt({
|
|
2926
2921
|
setup() {
|
|
2927
2922
|
return e = () => {
|
|
2928
2923
|
y.value = !1, setTimeout(() => {
|
|
2929
|
-
|
|
2924
|
+
T.unmount(), t.remove();
|
|
2930
2925
|
}, 300);
|
|
2931
2926
|
}, () => {
|
|
2932
2927
|
var q, M, w;
|
|
@@ -2944,11 +2939,11 @@ const Nl = {
|
|
|
2944
2939
|
};
|
|
2945
2940
|
}
|
|
2946
2941
|
});
|
|
2947
|
-
return
|
|
2948
|
-
|
|
2949
|
-
}),
|
|
2942
|
+
return bt.forEach((q) => {
|
|
2943
|
+
T.component(q.name, q);
|
|
2944
|
+
}), T.provide("options", et), T.use(Et, { locale: At }), document.body.appendChild(t), T.mount(t), e;
|
|
2950
2945
|
};
|
|
2951
|
-
function
|
|
2946
|
+
function $t(c, f = window.innerWidth) {
|
|
2952
2947
|
if (typeof c == "number")
|
|
2953
2948
|
return c;
|
|
2954
2949
|
if (c.endsWith("px"))
|
|
@@ -2970,7 +2965,7 @@ function Et(c, f = window.innerWidth) {
|
|
|
2970
2965
|
throw new Error("Invalid calc expression");
|
|
2971
2966
|
};
|
|
2972
2967
|
const r = c.slice(5, -1).trim();
|
|
2973
|
-
return y(r.replace(/([0-9.]+)([a-z%]+)/g, (q, M, w) =>
|
|
2968
|
+
return y(r.replace(/([0-9.]+)([a-z%]+)/g, (q, M, w) => $t(M + w, f)));
|
|
2974
2969
|
}
|
|
2975
2970
|
throw new Error("Unsupported unit in value: " + c);
|
|
2976
2971
|
}
|
|
@@ -2991,9 +2986,9 @@ function Al(c, f, t = "value", e = "label", r = "children") {
|
|
|
2991
2986
|
if (y[t] === f)
|
|
2992
2987
|
return y[e];
|
|
2993
2988
|
if (y[r] && y[r].length > 0) {
|
|
2994
|
-
const
|
|
2995
|
-
if (
|
|
2996
|
-
return
|
|
2989
|
+
const T = Al(y[r], f, t, e, r);
|
|
2990
|
+
if (T)
|
|
2991
|
+
return T;
|
|
2997
2992
|
}
|
|
2998
2993
|
}
|
|
2999
2994
|
return null;
|
|
@@ -3006,14 +3001,14 @@ function lt(c) {
|
|
|
3006
3001
|
], r = c < 0 ? "欠" : "";
|
|
3007
3002
|
c = Math.abs(c);
|
|
3008
3003
|
let y = "";
|
|
3009
|
-
for (let
|
|
3010
|
-
y += (t[Math.floor(c * 10 * Math.pow(10,
|
|
3004
|
+
for (let T = 0; T < f.length; T++)
|
|
3005
|
+
y += (t[Math.floor(c * 10 * Math.pow(10, T)) % 10] + f[T]).replace(/零./, "");
|
|
3011
3006
|
y = y || "整", c = Math.floor(c);
|
|
3012
|
-
for (let
|
|
3007
|
+
for (let T = 0; T < e[0].length && c > 0; T++) {
|
|
3013
3008
|
let q = "";
|
|
3014
3009
|
for (let M = 0; M < e[1].length && c > 0; M++)
|
|
3015
3010
|
q = t[c % 10] + e[1][M] + q, c = Math.floor(c / 10);
|
|
3016
|
-
y = q.replace(/(零.)*零$/, "").replace(/^$/, "零") + e[0][
|
|
3011
|
+
y = q.replace(/(零.)*零$/, "").replace(/^$/, "零") + e[0][T] + y;
|
|
3017
3012
|
}
|
|
3018
3013
|
return r + y.replace(/(零.)*零元/, "元").replace(/(零.)+/g, "零").replace(/^整$/, "零元整");
|
|
3019
3014
|
}
|
|
@@ -3054,7 +3049,7 @@ const ce = {
|
|
|
3054
3049
|
};
|
|
3055
3050
|
export {
|
|
3056
3051
|
ce as CT,
|
|
3057
|
-
|
|
3052
|
+
$t as convertToPx,
|
|
3058
3053
|
Nl as default,
|
|
3059
3054
|
Ve as filterObject,
|
|
3060
3055
|
Al as findTreeLabelByValue,
|