vue-2024-ui 0.2.59 → 0.2.60
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 +167 -167
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import Wt, { ElForm as _t, ElButtonGroup as Ct, ElButton as Fe, ElPopover as
|
|
2
|
-
import { ref as re, useModel as et, nextTick as ht, onMounted as yt, computed as
|
|
1
|
+
import Wt, { ElForm as _t, ElButtonGroup as Ct, ElButton as Fe, ElPopover as Dt, ElIcon as Bt, ElMessage as nt, ElMessageBox as Gt, ElDrawer as vl, ElDialog as pl } from "element-plus";
|
|
2
|
+
import { ref as re, useModel as et, nextTick as ht, onMounted as yt, computed as Ke, resolveComponent as N, openBlock as p, createElementBlock as R, Fragment as le, createElementVNode as Z, createBlock as O, createCommentVNode as be, unref as Y, mergeProps as L, withCtx as $, renderSlot as C, renderList as X, createTextVNode as Le, toDisplayString as Se, createSlots as ge, createVNode as ie, normalizeStyle as Ye, normalizeProps as Mt, resolveDynamicComponent as Xe, mergeModels as ot, useSlots as Xt, inject as Lt, withModifiers as dt, guardReactiveProps as ml, Transition as hl, withDirectives as yl, vShow as gl, h as we, useAttrs as Vt, onUnmounted as bl, onBeforeUnmount as $l, normalizeClass as Qt, watchEffect as wl, onBeforeMount as kl, watch as Zt, createApp as Jt } from "vue";
|
|
3
3
|
import { Plus as _l, ZoomIn as Cl, Delete as Kt, Search as Sl, Refresh as el, More as Ml, CircleCheckFilled as xl, CircleCheck as Ot, Minus as Tl, Switch as Vl, FullScreen as El, InfoFilled as tl, Download as ll, DocumentCopy as Dl, Setting as Il, CirclePlus as Ol, Edit as ql, View as Al } from "@element-plus/icons-vue";
|
|
4
4
|
import al from "sortablejs";
|
|
5
5
|
import { Dexie as zl } from "dexie";
|
|
@@ -277,15 +277,15 @@ var ol = { exports: {} };
|
|
|
277
277
|
return q ? A : A.endOf(c);
|
|
278
278
|
}, se = function(De, Me) {
|
|
279
279
|
return ue.w(_.toDate()[De].apply(_.toDate("s"), (q ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(Me)), _);
|
|
280
|
-
}, pe = this.$W,
|
|
280
|
+
}, pe = this.$W, H = this.$M, B = this.$D, Ee = "set" + (this.$u ? "UTC" : "");
|
|
281
281
|
switch (E) {
|
|
282
282
|
case g:
|
|
283
283
|
return q ? Q(1, 0) : Q(31, 11);
|
|
284
284
|
case o:
|
|
285
|
-
return q ? Q(1,
|
|
285
|
+
return q ? Q(1, H) : Q(0, H + 1);
|
|
286
286
|
case v:
|
|
287
287
|
var he = this.$locale().weekStart || 0, Ue = (pe < he ? pe + 7 : pe) - he;
|
|
288
|
-
return Q(q ? B - Ue : B + (6 - Ue),
|
|
288
|
+
return Q(q ? B - Ue : B + (6 - Ue), H);
|
|
289
289
|
case c:
|
|
290
290
|
case J:
|
|
291
291
|
return se(Ee + "Hours", 0);
|
|
@@ -314,9 +314,9 @@ var ol = { exports: {} };
|
|
|
314
314
|
}, b.add = function(i, D) {
|
|
315
315
|
var _, q = this;
|
|
316
316
|
i = Number(i);
|
|
317
|
-
var E = ue.p(D), Q = function(
|
|
317
|
+
var E = ue.p(D), Q = function(H) {
|
|
318
318
|
var B = ee(q);
|
|
319
|
-
return ue.w(B.date(B.date() + Math.round(
|
|
319
|
+
return ue.w(B.date(B.date() + Math.round(H * i)), q);
|
|
320
320
|
};
|
|
321
321
|
if (E === o) return this.set(o, this.$M + i);
|
|
322
322
|
if (E === g) return this.set(g, this.$y + i);
|
|
@@ -329,7 +329,7 @@ var ol = { exports: {} };
|
|
|
329
329
|
}, b.format = function(i) {
|
|
330
330
|
var D = this, _ = this.$locale();
|
|
331
331
|
if (!this.isValid()) return _.invalidDate || x;
|
|
332
|
-
var q = i || "YYYY-MM-DDTHH:mm:ssZ", E = ue.z(this), Q = this.$H, se = this.$m, pe = this.$M,
|
|
332
|
+
var q = i || "YYYY-MM-DDTHH:mm:ssZ", E = ue.z(this), Q = this.$H, se = this.$m, pe = this.$M, H = _.weekdays, B = _.months, Ee = _.meridiem, he = function(Me, A, M, W) {
|
|
333
333
|
return Me && (Me[A] || Me(D, q)) || M[A].slice(0, W);
|
|
334
334
|
}, Ue = function(Me) {
|
|
335
335
|
return ue.s(Q % 12 || 12, Me, "0");
|
|
@@ -359,11 +359,11 @@ var ol = { exports: {} };
|
|
|
359
359
|
case "d":
|
|
360
360
|
return String(D.$W);
|
|
361
361
|
case "dd":
|
|
362
|
-
return he(_.weekdaysMin, D.$W,
|
|
362
|
+
return he(_.weekdaysMin, D.$W, H, 2);
|
|
363
363
|
case "ddd":
|
|
364
|
-
return he(_.weekdaysShort, D.$W,
|
|
364
|
+
return he(_.weekdaysShort, D.$W, H, 3);
|
|
365
365
|
case "dddd":
|
|
366
|
-
return
|
|
366
|
+
return H[D.$W];
|
|
367
367
|
case "H":
|
|
368
368
|
return String(Q);
|
|
369
369
|
case "HH":
|
|
@@ -395,7 +395,7 @@ var ol = { exports: {} };
|
|
|
395
395
|
}, b.utcOffset = function() {
|
|
396
396
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
397
397
|
}, b.diff = function(i, D, _) {
|
|
398
|
-
var q, E = this, Q = ue.p(D), se = ee(i), pe = (se.utcOffset() - this.utcOffset()) * l,
|
|
398
|
+
var q, E = this, Q = ue.p(D), se = ee(i), pe = (se.utcOffset() - this.utcOffset()) * l, H = this - se, B = function() {
|
|
399
399
|
return ue.m(E, se);
|
|
400
400
|
};
|
|
401
401
|
switch (Q) {
|
|
@@ -409,22 +409,22 @@ var ol = { exports: {} };
|
|
|
409
409
|
q = B() / 3;
|
|
410
410
|
break;
|
|
411
411
|
case v:
|
|
412
|
-
q = (
|
|
412
|
+
q = (H - pe) / 6048e5;
|
|
413
413
|
break;
|
|
414
414
|
case c:
|
|
415
|
-
q = (
|
|
415
|
+
q = (H - pe) / 864e5;
|
|
416
416
|
break;
|
|
417
417
|
case S:
|
|
418
|
-
q =
|
|
418
|
+
q = H / n;
|
|
419
419
|
break;
|
|
420
420
|
case f:
|
|
421
|
-
q =
|
|
421
|
+
q = H / l;
|
|
422
422
|
break;
|
|
423
423
|
case h:
|
|
424
|
-
q =
|
|
424
|
+
q = H / t;
|
|
425
425
|
break;
|
|
426
426
|
default:
|
|
427
|
-
q =
|
|
427
|
+
q = H;
|
|
428
428
|
}
|
|
429
429
|
return _ ? q : ue.a(q);
|
|
430
430
|
}, b.daysInMonth = function() {
|
|
@@ -459,7 +459,7 @@ var ol = { exports: {} };
|
|
|
459
459
|
});
|
|
460
460
|
})(ol);
|
|
461
461
|
var Ul = ol.exports;
|
|
462
|
-
const
|
|
462
|
+
const It = /* @__PURE__ */ nl(Ul), tt = (r, s) => {
|
|
463
463
|
const t = r.__vccOpts || r;
|
|
464
464
|
for (const [l, n] of s)
|
|
465
465
|
t[l] = n;
|
|
@@ -475,9 +475,9 @@ const Dt = /* @__PURE__ */ nl(Ul), tt = (r, s) => {
|
|
|
475
475
|
}),
|
|
476
476
|
emits: ["update:modelValue"],
|
|
477
477
|
setup(r) {
|
|
478
|
-
var b, i, D, _, q, E, Q, se, pe,
|
|
478
|
+
var b, i, D, _, q, E, Q, se, pe, H, B, Ee, he, Ue, De, Me;
|
|
479
479
|
const s = r, t = re(s.item || {}), l = et(r, "modelValue"), n = re(s.ctrlKey), e = re(s.ctrlType), h = re(s.model), f = re([]), S = re([]), c = re(!1), v = re(!1), o = re(0), d = re((i = (b = h == null ? void 0 : h.value) == null ? void 0 : b.form) != null && i["default-placeholder"] ? (_ = (D = h == null ? void 0 : h.value) == null ? void 0 : D[n == null ? void 0 : n.value]) == null ? void 0 : _.label : "");
|
|
480
|
-
!((q = e.value) != null && q.startsWith("text")) && !((E = e.value) != null && E.startsWith("link")) && !((Q = e.value) != null && Q.startsWith("tag")) && !((se = e.value) != null && se.startsWith("div")) && !((pe = e.value) != null && pe.startsWith("span")) && !((
|
|
480
|
+
!((q = e.value) != null && q.startsWith("text")) && !((E = e.value) != null && E.startsWith("link")) && !((Q = e.value) != null && Q.startsWith("tag")) && !((se = e.value) != null && se.startsWith("div")) && !((pe = e.value) != null && pe.startsWith("span")) && !((H = e.value) != null && H.startsWith("avatar")) && ((B = t.value) != null && B.style || (t.value.style = { width: ((he = (Ee = t.value) == null ? void 0 : Ee.style) == null ? void 0 : he.width) || "100%" }));
|
|
481
481
|
const g = re({ display: "flex", flex: 1 }), J = s.t === "t" ? "center" : "flex-start", x = ((Ue = t.value) == null ? void 0 : Ue.style) || {};
|
|
482
482
|
g.value = { ...g.value, justifyContent: J, ...x };
|
|
483
483
|
const U = () => {
|
|
@@ -582,13 +582,13 @@ const Dt = /* @__PURE__ */ nl(Ul), tt = (r, s) => {
|
|
|
582
582
|
W = W.substring(0, Oe + 1) + W.substring(Oe + 1).replace(/\./g, "");
|
|
583
583
|
}
|
|
584
584
|
if (W = W.replace(/^-\./, "-0."), W = W.replace(/^\./, "0."), W = W.replace(/^-0+(\d)/, "-$1"), W = W.replace(/^0+(\d)/, "$1"), (W === "-" || W === "" || W === ".") && (W = "0"), M >= 0 && W.includes(".")) {
|
|
585
|
-
const [Oe,
|
|
586
|
-
|
|
585
|
+
const [Oe, Ze] = W.split(".");
|
|
586
|
+
Ze.length > M && (W = Oe + "." + Ze.substring(0, M));
|
|
587
587
|
}
|
|
588
588
|
l.value = W;
|
|
589
589
|
};
|
|
590
590
|
yt(async () => {
|
|
591
|
-
var W, _e, Ae, Oe,
|
|
591
|
+
var W, _e, Ae, Oe, Ze;
|
|
592
592
|
t.value && t.value["remote-method"] && (oe.value["remote-method"] = ve), (_e = (W = h.value[n.value]) == null ? void 0 : W.options) != null && _e.length && (S.value = h.value[n.value].options);
|
|
593
593
|
const A = (He, Pe = "options", Ne = h.value[n.value]) => {
|
|
594
594
|
typeof t.value.getDicts == "function" && ke(Pe).catch((je) => {
|
|
@@ -627,15 +627,15 @@ const Dt = /* @__PURE__ */ nl(Ul), tt = (r, s) => {
|
|
|
627
627
|
(je = (Ne = h.value) == null ? void 0 : Ne.table) == null || je.load();
|
|
628
628
|
});
|
|
629
629
|
}
|
|
630
|
-
e.value == "image" && (t.value.width && ((Ae = Te.value) != null && Ae.$el) && Te.value.$el.style.setProperty("--up-width", typeof t.value.width == "number" ? t.value.width + "px" : t.value.width), t.value.height && ((Oe = Te.value) != null && Oe.$el) && Te.value.$el.style.setProperty("--up-height", typeof t.value.height == "number" ? t.value.height + "px" : t.value.height), t.value.fontSize && ((
|
|
630
|
+
e.value == "image" && (t.value.width && ((Ae = Te.value) != null && Ae.$el) && Te.value.$el.style.setProperty("--up-width", typeof t.value.width == "number" ? t.value.width + "px" : t.value.width), t.value.height && ((Oe = Te.value) != null && Oe.$el) && Te.value.$el.style.setProperty("--up-height", typeof t.value.height == "number" ? t.value.height + "px" : t.value.height), t.value.fontSize && ((Ze = Te.value) != null && Ze.$el) && Te.value.$el.style.setProperty("--up-font-size", typeof t.value.fontSize == "number" ? t.value.fontSize + "px" : t.value.fontSize));
|
|
631
631
|
});
|
|
632
|
-
const k =
|
|
632
|
+
const k = Ke(() => {
|
|
633
633
|
var A;
|
|
634
634
|
return t.value["file-list"] && t.value["file-list"].length ? (A = t.value["file-list"]) == null ? void 0 : A.map((M) => M == null ? void 0 : M.url) : [l.value];
|
|
635
635
|
});
|
|
636
636
|
return (A, M) => {
|
|
637
637
|
var ut, lt, at, ct, G, rt, ft, vt, wt, Ft, Yt, Ht;
|
|
638
|
-
const W = N("el-image-viewer"), _e = N("el-radio"), Ae = N("el-radio-group"), Oe = N("el-radio-button"),
|
|
638
|
+
const W = N("el-image-viewer"), _e = N("el-radio"), Ae = N("el-radio-group"), Oe = N("el-radio-button"), Ze = N("el-checkbox"), He = N("el-checkbox-group"), Pe = N("el-checkbox-button"), Ne = N("g-select-option"), je = N("el-option"), gt = N("el-select"), a = N("el-tree-select"), u = N("el-time-picker"), m = N("el-time-select"), w = N("el-date-picker"), I = N("el-color-picker"), P = N("el-rate"), F = N("el-slider"), $e = N("el-switch"), qe = N("el-transfer"), Ie = N("el-cascader"), Re = N("el-icon"), Be = N("el-image"), We = N("el-tooltip"), it = N("el-upload"), bt = N("el-autocomplete"), $t = N("el-input-number"), K = N("el-input-tag"), me = N("el-input"), V = N("el-link"), te = N("el-text"), ne = N("el-avatar"), Ge = N("el-tag");
|
|
639
639
|
return p(), R(le, null, [
|
|
640
640
|
Z("div", null, [
|
|
641
641
|
c.value ? (p(), O(W, {
|
|
@@ -647,7 +647,7 @@ const Dt = /* @__PURE__ */ nl(Ul), tt = (r, s) => {
|
|
|
647
647
|
}, null, 8, ["initial-index", "url-list"])) : be("", !0)
|
|
648
648
|
]),
|
|
649
649
|
Z("div", Rl, [
|
|
650
|
-
e.value ==
|
|
650
|
+
e.value == Y(Ce).RADIO ? (p(), O(Ae, L({
|
|
651
651
|
key: 0,
|
|
652
652
|
modelValue: l.value,
|
|
653
653
|
"onUpdate:modelValue": M[1] || (M[1] = (y) => l.value = y),
|
|
@@ -664,7 +664,7 @@ const Dt = /* @__PURE__ */ nl(Ul), tt = (r, s) => {
|
|
|
664
664
|
], !0)
|
|
665
665
|
]),
|
|
666
666
|
_: 3
|
|
667
|
-
}, 16, ["modelValue", "disabled"])) : e.value ==
|
|
667
|
+
}, 16, ["modelValue", "disabled"])) : e.value == Y(Ce).RADIOBUTTON ? (p(), O(Ae, L({
|
|
668
668
|
key: 1,
|
|
669
669
|
modelValue: l.value,
|
|
670
670
|
"onUpdate:modelValue": M[2] || (M[2] = (y) => l.value = y),
|
|
@@ -681,7 +681,7 @@ const Dt = /* @__PURE__ */ nl(Ul), tt = (r, s) => {
|
|
|
681
681
|
], !0)
|
|
682
682
|
]),
|
|
683
683
|
_: 3
|
|
684
|
-
}, 16, ["modelValue", "disabled"])) : e.value ==
|
|
684
|
+
}, 16, ["modelValue", "disabled"])) : e.value == Y(Ce).CHECKBOX ? (p(), O(Ze, L({
|
|
685
685
|
key: 2,
|
|
686
686
|
modelValue: l.value,
|
|
687
687
|
"onUpdate:modelValue": M[3] || (M[3] = (y) => l.value = y),
|
|
@@ -693,7 +693,7 @@ const Dt = /* @__PURE__ */ nl(Ul), tt = (r, s) => {
|
|
|
693
693
|
], !0)
|
|
694
694
|
]),
|
|
695
695
|
_: 3
|
|
696
|
-
}, 16, ["modelValue", "disabled"])) : e.value ==
|
|
696
|
+
}, 16, ["modelValue", "disabled"])) : e.value == Y(Ce).CHECKBOXGROUP ? (p(), O(He, L({
|
|
697
697
|
key: 3,
|
|
698
698
|
modelValue: l.value,
|
|
699
699
|
"onUpdate:modelValue": M[4] || (M[4] = (y) => l.value = y),
|
|
@@ -701,7 +701,7 @@ const Dt = /* @__PURE__ */ nl(Ul), tt = (r, s) => {
|
|
|
701
701
|
}, t.value), {
|
|
702
702
|
default: $(() => [
|
|
703
703
|
C(A.$slots, `${s.t}-${n.value}`, { data: t.value }, () => [
|
|
704
|
-
(p(!0), R(le, null, X(S.value, (y) => (p(), O(
|
|
704
|
+
(p(!0), R(le, null, X(S.value, (y) => (p(), O(Ze, L({ ref_for: !0 }, y), {
|
|
705
705
|
default: $(() => [
|
|
706
706
|
C(A.$slots, `${s.t}-${n.value}-options`, { option: y }, () => [
|
|
707
707
|
Le(Se(y.label), 1)
|
|
@@ -712,12 +712,12 @@ const Dt = /* @__PURE__ */ nl(Ul), tt = (r, s) => {
|
|
|
712
712
|
], !0)
|
|
713
713
|
]),
|
|
714
714
|
_: 3
|
|
715
|
-
}, 16, ["modelValue", "disabled"])) : e.value ==
|
|
715
|
+
}, 16, ["modelValue", "disabled"])) : e.value == Y(Ce).CHECKBOXGROUPBUTTON ? (p(), O(He, L({
|
|
716
716
|
key: 4,
|
|
717
717
|
modelValue: l.value,
|
|
718
718
|
"onUpdate:modelValue": M[5] || (M[5] = (y) => l.value = y),
|
|
719
719
|
disabled: h.value[n.value].disabled
|
|
720
|
-
},
|
|
720
|
+
}, Y(Qe)(t.value, (y) => y != "type")), {
|
|
721
721
|
default: $(() => [
|
|
722
722
|
C(A.$slots, `${s.t}-${n.value}`, { data: t.value }, () => [
|
|
723
723
|
(p(!0), R(le, null, X(S.value, (y) => (p(), O(Pe, L({ ref_for: !0 }, y), {
|
|
@@ -729,7 +729,7 @@ const Dt = /* @__PURE__ */ nl(Ul), tt = (r, s) => {
|
|
|
729
729
|
], !0)
|
|
730
730
|
]),
|
|
731
731
|
_: 3
|
|
732
|
-
}, 16, ["modelValue", "disabled"])) : e.value ===
|
|
732
|
+
}, 16, ["modelValue", "disabled"])) : e.value === Y(Ce).SELECT ? (p(), O(gt, L({
|
|
733
733
|
key: 5,
|
|
734
734
|
modelValue: l.value,
|
|
735
735
|
"onUpdate:modelValue": M[6] || (M[6] = (y) => l.value = y),
|
|
@@ -750,7 +750,7 @@ const Dt = /* @__PURE__ */ nl(Ul), tt = (r, s) => {
|
|
|
750
750
|
(p(!0), R(le, null, X(S.value, (ce) => (p(), R(le, {
|
|
751
751
|
key: ce.value
|
|
752
752
|
}, [
|
|
753
|
-
ie(je, L({ ref_for: !0 },
|
|
753
|
+
ie(je, L({ ref_for: !0 }, Y(Qe)(ce, (fe) => fe != "children"), {
|
|
754
754
|
onClick: (fe) => {
|
|
755
755
|
oe.value.change && oe.value.change(ce), Ve();
|
|
756
756
|
}
|
|
@@ -762,17 +762,17 @@ const Dt = /* @__PURE__ */ nl(Ul), tt = (r, s) => {
|
|
|
762
762
|
key: 0,
|
|
763
763
|
option: ce
|
|
764
764
|
}, () => {
|
|
765
|
-
var
|
|
765
|
+
var Je;
|
|
766
766
|
return [
|
|
767
767
|
ie(Ne, {
|
|
768
|
-
columns: (
|
|
768
|
+
columns: (Je = t.value) == null ? void 0 : Je.columns,
|
|
769
769
|
data: ce,
|
|
770
770
|
t: s.t
|
|
771
771
|
}, ge({ _: 2 }, [
|
|
772
|
-
X(A.$slots, (pt,
|
|
773
|
-
name:
|
|
772
|
+
X(A.$slots, (pt, Et) => ({
|
|
773
|
+
name: Et,
|
|
774
774
|
fn: $((kt) => [
|
|
775
|
-
C(A.$slots,
|
|
775
|
+
C(A.$slots, Et, {
|
|
776
776
|
option: ce,
|
|
777
777
|
data: kt,
|
|
778
778
|
form: r.formInfo
|
|
@@ -789,15 +789,15 @@ const Dt = /* @__PURE__ */ nl(Ul), tt = (r, s) => {
|
|
|
789
789
|
ce.children && ce.children.length ? (p(!0), R(le, { key: 0 }, X(ce.children, (fe) => (p(), O(je, L({
|
|
790
790
|
style: { "margin-left": "20px" },
|
|
791
791
|
key: fe.value
|
|
792
|
-
}, { ref_for: !0 },
|
|
793
|
-
onClick: (
|
|
792
|
+
}, { ref_for: !0 }, Y(Qe)(fe, (Je) => Je != "children"), {
|
|
793
|
+
onClick: (Je) => {
|
|
794
794
|
oe.value.change && oe.value.change(fe), Ve();
|
|
795
795
|
}
|
|
796
796
|
}), {
|
|
797
797
|
default: $(() => {
|
|
798
|
-
var
|
|
798
|
+
var Je;
|
|
799
799
|
return [
|
|
800
|
-
(
|
|
800
|
+
(Je = t.value) != null && Je.columns ? C(A.$slots, `${s.t}-${n.value}-options`, {
|
|
801
801
|
key: 0,
|
|
802
802
|
option: fe
|
|
803
803
|
}, () => {
|
|
@@ -808,7 +808,7 @@ const Dt = /* @__PURE__ */ nl(Ul), tt = (r, s) => {
|
|
|
808
808
|
data: fe,
|
|
809
809
|
t: s.t
|
|
810
810
|
}, ge({ _: 2 }, [
|
|
811
|
-
X(A.$slots, (
|
|
811
|
+
X(A.$slots, (Et, kt) => ({
|
|
812
812
|
name: kt,
|
|
813
813
|
fn: $((fl) => [
|
|
814
814
|
C(A.$slots, kt, {
|
|
@@ -843,8 +843,8 @@ const Dt = /* @__PURE__ */ nl(Ul), tt = (r, s) => {
|
|
|
843
843
|
}, ge({ _: 2 }, [
|
|
844
844
|
X(A.$slots, (ce, fe) => ({
|
|
845
845
|
name: fe,
|
|
846
|
-
fn: $((
|
|
847
|
-
C(A.$slots, fe, { data:
|
|
846
|
+
fn: $((Je) => [
|
|
847
|
+
C(A.$slots, fe, { data: Je }, void 0, !0)
|
|
848
848
|
])
|
|
849
849
|
}))
|
|
850
850
|
]), 1032, ["columns", "t"])
|
|
@@ -858,7 +858,7 @@ const Dt = /* @__PURE__ */ nl(Ul), tt = (r, s) => {
|
|
|
858
858
|
C(A.$slots, `${s.t}-${n.value}-${y}`, { form: r.formInfo }, void 0, !0)
|
|
859
859
|
])
|
|
860
860
|
}))
|
|
861
|
-
]), 1040, ["modelValue", "placeholder", "disabled"])) : e.value ==
|
|
861
|
+
]), 1040, ["modelValue", "placeholder", "disabled"])) : e.value == Y(Ce).TREESELECT ? (p(), O(a, L({
|
|
862
862
|
key: 6,
|
|
863
863
|
modelValue: l.value,
|
|
864
864
|
"onUpdate:modelValue": M[8] || (M[8] = (y) => l.value = y),
|
|
@@ -871,13 +871,13 @@ const Dt = /* @__PURE__ */ nl(Ul), tt = (r, s) => {
|
|
|
871
871
|
C(A.$slots, `${s.t}-${n.value}-${y}`, { data: ce }, void 0, !0)
|
|
872
872
|
])
|
|
873
873
|
}))
|
|
874
|
-
]), 1040, ["modelValue", "placeholder", "disabled", "data"])) : e.value ==
|
|
874
|
+
]), 1040, ["modelValue", "placeholder", "disabled", "data"])) : e.value == Y(Ce).TIME ? (p(), O(u, L({
|
|
875
875
|
key: 7,
|
|
876
876
|
modelValue: l.value,
|
|
877
877
|
"onUpdate:modelValue": M[9] || (M[9] = (y) => l.value = y),
|
|
878
878
|
"arrow-control": "",
|
|
879
879
|
disabled: h.value[n.value].disabled
|
|
880
|
-
}, t.value, { placeholder: d.value }), null, 16, ["modelValue", "disabled", "placeholder"])) : e.value ==
|
|
880
|
+
}, t.value, { placeholder: d.value }), null, 16, ["modelValue", "disabled", "placeholder"])) : e.value == Y(Ce).TIMESELECT ? (p(), O(m, L({
|
|
881
881
|
key: 8,
|
|
882
882
|
modelValue: l.value,
|
|
883
883
|
"onUpdate:modelValue": M[10] || (M[10] = (y) => l.value = y),
|
|
@@ -901,21 +901,21 @@ const Dt = /* @__PURE__ */ nl(Ul), tt = (r, s) => {
|
|
|
901
901
|
C(A.$slots, `${s.t}-${n.value}-${y}`, { data: ce }, void 0, !0)
|
|
902
902
|
])
|
|
903
903
|
}))
|
|
904
|
-
]), 1040, ["modelValue", "type", "placeholder", "value-format", "disabled"])) : e.value ==
|
|
904
|
+
]), 1040, ["modelValue", "type", "placeholder", "value-format", "disabled"])) : e.value == Y(Ce).COLOR ? (p(), O(I, L({
|
|
905
905
|
key: 10,
|
|
906
906
|
modelValue: l.value,
|
|
907
907
|
"onUpdate:modelValue": M[12] || (M[12] = (y) => l.value = y)
|
|
908
|
-
}, t.value), null, 16, ["modelValue"])) : e.value ==
|
|
908
|
+
}, t.value), null, 16, ["modelValue"])) : e.value == Y(Ce).RATE ? (p(), O(P, L({
|
|
909
909
|
key: 11,
|
|
910
910
|
modelValue: l.value,
|
|
911
911
|
"onUpdate:modelValue": M[13] || (M[13] = (y) => l.value = y),
|
|
912
912
|
disabled: h.value[n.value].disabled
|
|
913
|
-
}, t.value), null, 16, ["modelValue", "disabled"])) : e.value ==
|
|
913
|
+
}, t.value), null, 16, ["modelValue", "disabled"])) : e.value == Y(Ce).SLIDER ? (p(), O(F, L({
|
|
914
914
|
key: 12,
|
|
915
915
|
modelValue: l.value,
|
|
916
916
|
"onUpdate:modelValue": M[14] || (M[14] = (y) => l.value = y),
|
|
917
917
|
disabled: h.value[n.value].disabled
|
|
918
|
-
}, t.value), null, 16, ["modelValue", "disabled"])) : e.value ==
|
|
918
|
+
}, t.value), null, 16, ["modelValue", "disabled"])) : e.value == Y(Ce).SWITCH ? (p(), O($e, L({
|
|
919
919
|
key: 13,
|
|
920
920
|
modelValue: l.value,
|
|
921
921
|
"onUpdate:modelValue": M[15] || (M[15] = (y) => l.value = y),
|
|
@@ -928,7 +928,7 @@ const Dt = /* @__PURE__ */ nl(Ul), tt = (r, s) => {
|
|
|
928
928
|
C(A.$slots, `${s.t}-${n.value}-${y}`, { data: ce }, void 0, !0)
|
|
929
929
|
])
|
|
930
930
|
}))
|
|
931
|
-
]), 1040, ["modelValue", "disabled"])) : e.value ==
|
|
931
|
+
]), 1040, ["modelValue", "disabled"])) : e.value == Y(Ce).TRANSFER ? (p(), O(qe, L({
|
|
932
932
|
key: 14,
|
|
933
933
|
modelValue: l.value,
|
|
934
934
|
"onUpdate:modelValue": M[16] || (M[16] = (y) => l.value = y)
|
|
@@ -939,7 +939,7 @@ const Dt = /* @__PURE__ */ nl(Ul), tt = (r, s) => {
|
|
|
939
939
|
C(A.$slots, `${s.t}-${n.value}-${y}`, { data: ce }, void 0, !0)
|
|
940
940
|
])
|
|
941
941
|
}))
|
|
942
|
-
]), 1040, ["modelValue"])) : e.value ==
|
|
942
|
+
]), 1040, ["modelValue"])) : e.value == Y(Ce).CASCADER ? (p(), O(Ie, L({
|
|
943
943
|
key: 15,
|
|
944
944
|
modelValue: l.value,
|
|
945
945
|
"onUpdate:modelValue": M[17] || (M[17] = (y) => l.value = y)
|
|
@@ -950,7 +950,7 @@ const Dt = /* @__PURE__ */ nl(Ul), tt = (r, s) => {
|
|
|
950
950
|
C(A.$slots, `${s.t}-${n.value}-${y}`, { data: ce }, void 0, !0)
|
|
951
951
|
])
|
|
952
952
|
}))
|
|
953
|
-
]), 1040, ["modelValue", "options"])) : e.value ==
|
|
953
|
+
]), 1040, ["modelValue", "options"])) : e.value == Y(Ce).IMAGE ? (p(), O(it, L({
|
|
954
954
|
key: 16,
|
|
955
955
|
"file-list": t.value["file-list"],
|
|
956
956
|
"onUpdate:fileList": M[21] || (M[21] = (y) => t.value["file-list"] = y),
|
|
@@ -966,7 +966,7 @@ const Dt = /* @__PURE__ */ nl(Ul), tt = (r, s) => {
|
|
|
966
966
|
return [
|
|
967
967
|
!l.value || ((y = t.value) == null ? void 0 : y.multiple) === !0 ? (p(), O(Re, { key: 0 }, {
|
|
968
968
|
default: $(() => [
|
|
969
|
-
ie(
|
|
969
|
+
ie(Y(_l))
|
|
970
970
|
]),
|
|
971
971
|
_: 1
|
|
972
972
|
})) : (p(), R("div", {
|
|
@@ -979,7 +979,7 @@ const Dt = /* @__PURE__ */ nl(Ul), tt = (r, s) => {
|
|
|
979
979
|
style: { width: "var(--up-width)", height: "var(--up-height)" },
|
|
980
980
|
src: l.value
|
|
981
981
|
}, { fit: "cover", lazy: !0, ...(ce = t.value) == null ? void 0 : ce.img }), ge({ _: 2 }, [
|
|
982
|
-
X(U(), (fe,
|
|
982
|
+
X(U(), (fe, Je) => ({
|
|
983
983
|
name: fe,
|
|
984
984
|
fn: $((pt) => [
|
|
985
985
|
C(A.$slots, `${s.t}-${n.value}-${fe}`, { data: pt }, void 0, !0)
|
|
@@ -999,7 +999,7 @@ const Dt = /* @__PURE__ */ nl(Ul), tt = (r, s) => {
|
|
|
999
999
|
placement: "top"
|
|
1000
1000
|
}, {
|
|
1001
1001
|
default: $(() => [
|
|
1002
|
-
ie(
|
|
1002
|
+
ie(Y(Cl), {
|
|
1003
1003
|
style: { width: "1.5em", height: "1.5em", "margin-right": "12px" },
|
|
1004
1004
|
color: "white",
|
|
1005
1005
|
onClick: ue
|
|
@@ -1013,7 +1013,7 @@ const Dt = /* @__PURE__ */ nl(Ul), tt = (r, s) => {
|
|
|
1013
1013
|
placement: "top"
|
|
1014
1014
|
}, {
|
|
1015
1015
|
default: $(() => [
|
|
1016
|
-
ie(
|
|
1016
|
+
ie(Y(Kt), {
|
|
1017
1017
|
style: { width: "1.5em", height: "1.5em" },
|
|
1018
1018
|
color: "white",
|
|
1019
1019
|
onClick: xe
|
|
@@ -1033,7 +1033,7 @@ const Dt = /* @__PURE__ */ nl(Ul), tt = (r, s) => {
|
|
|
1033
1033
|
C(A.$slots, `${s.t}-${n.value}-${y}`, { data: fe }, void 0, !0)
|
|
1034
1034
|
])
|
|
1035
1035
|
}))
|
|
1036
|
-
]), 1040, ["file-list"])) : e.value ==
|
|
1036
|
+
]), 1040, ["file-list"])) : e.value == Y(Ce).AUTOCOMPLETE ? (p(), O(bt, L({
|
|
1037
1037
|
key: 17,
|
|
1038
1038
|
modelValue: l.value,
|
|
1039
1039
|
"onUpdate:modelValue": M[22] || (M[22] = (y) => l.value = y)
|
|
@@ -1044,7 +1044,7 @@ const Dt = /* @__PURE__ */ nl(Ul), tt = (r, s) => {
|
|
|
1044
1044
|
C(A.$slots, `${s.t}-${n.value}-${y}`, { data: fe }, void 0, !0)
|
|
1045
1045
|
])
|
|
1046
1046
|
}))
|
|
1047
|
-
]), 1040, ["modelValue", "placeholder"])) : e.value ==
|
|
1047
|
+
]), 1040, ["modelValue", "placeholder"])) : e.value == Y(Ce).INPUTNUMBER ? (p(), O($t, L({
|
|
1048
1048
|
key: 18,
|
|
1049
1049
|
modelValue: l.value,
|
|
1050
1050
|
"onUpdate:modelValue": M[23] || (M[23] = (y) => l.value = y),
|
|
@@ -1101,7 +1101,7 @@ const Dt = /* @__PURE__ */ nl(Ul), tt = (r, s) => {
|
|
|
1101
1101
|
}, void 0, !0)
|
|
1102
1102
|
])
|
|
1103
1103
|
}))
|
|
1104
|
-
]), 1040, ["modelValue", "placeholder", "disabled"])) : e.value ==
|
|
1104
|
+
]), 1040, ["modelValue", "placeholder", "disabled"])) : e.value == Y(Ce).MONEY ? (p(), R("div", {
|
|
1105
1105
|
key: 20,
|
|
1106
1106
|
style: Ye([{ position: "relative" }, g.value])
|
|
1107
1107
|
}, [
|
|
@@ -1115,9 +1115,9 @@ const Dt = /* @__PURE__ */ nl(Ul), tt = (r, s) => {
|
|
|
1115
1115
|
}, { ...t.value, type: e.value }), ge({
|
|
1116
1116
|
suffix: $(() => [
|
|
1117
1117
|
Z("div", {
|
|
1118
|
-
title:
|
|
1118
|
+
title: Y(zt)(l.value),
|
|
1119
1119
|
style: { "font-size": "10px", display: "block", width: "80px", "text-align": "right", overflow: "hidden", "text-overflow": "ellipsis" }
|
|
1120
|
-
}, Se(
|
|
1120
|
+
}, Se(Y(zt)(l.value)), 9, Bl)
|
|
1121
1121
|
]),
|
|
1122
1122
|
_: 2
|
|
1123
1123
|
}, [
|
|
@@ -1148,12 +1148,12 @@ const Dt = /* @__PURE__ */ nl(Ul), tt = (r, s) => {
|
|
|
1148
1148
|
key: 23,
|
|
1149
1149
|
style: Ye(g.value)
|
|
1150
1150
|
}, [
|
|
1151
|
-
j.value ? (p(), O(ne,
|
|
1151
|
+
j.value ? (p(), O(ne, Mt(L({ key: 0 }, t.value)), {
|
|
1152
1152
|
default: $(() => [
|
|
1153
1153
|
Z("div", { innerHTML: j.value }, null, 8, Pl)
|
|
1154
1154
|
]),
|
|
1155
1155
|
_: 1
|
|
1156
|
-
}, 16)) : (p(), O(ne,
|
|
1156
|
+
}, 16)) : (p(), O(ne, Mt(L({ key: 1 }, t.value)), null, 16))
|
|
1157
1157
|
], 4)) : (ft = e.value) != null && ft.startsWith("tag") ? (p(), R("div", {
|
|
1158
1158
|
key: 24,
|
|
1159
1159
|
style: Ye(g.value)
|
|
@@ -1186,8 +1186,8 @@ const Dt = /* @__PURE__ */ nl(Ul), tt = (r, s) => {
|
|
|
1186
1186
|
}), null, 16, Nl)) : e.value == "span" ? (p(), R("span", L({ key: 26 }, t.value, {
|
|
1187
1187
|
innerHTML: j.value || l.value,
|
|
1188
1188
|
style: g.value
|
|
1189
|
-
}), null, 16, jl)) : (p(), O(me, L({
|
|
1190
|
-
key:
|
|
1189
|
+
}), null, 16, jl)) : e.value == "custom" ? (p(), O(Xe(t.value.component), Mt(L({ key: 27 }, Y(Qe)(t.value, (y) => y != "component"))), null, 16)) : (p(), O(me, L({
|
|
1190
|
+
key: 28,
|
|
1191
1191
|
modelValue: l.value,
|
|
1192
1192
|
"onUpdate:modelValue": M[27] || (M[27] = (y) => l.value = y),
|
|
1193
1193
|
placeholder: d.value,
|
|
@@ -1195,13 +1195,13 @@ const Dt = /* @__PURE__ */ nl(Ul), tt = (r, s) => {
|
|
|
1195
1195
|
clearable: !0,
|
|
1196
1196
|
onInput: M[28] || (M[28] = (y) => {
|
|
1197
1197
|
var ce;
|
|
1198
|
-
return e.value ==
|
|
1198
|
+
return e.value == Y(Ce).NUMBER ? T(y, ((ce = t.value) == null ? void 0 : ce.precision) || 2) : y;
|
|
1199
1199
|
}),
|
|
1200
1200
|
onClear: M[29] || (M[29] = () => {
|
|
1201
1201
|
s.t == "q" && h.value.table.load();
|
|
1202
1202
|
}),
|
|
1203
1203
|
disabled: h.value[n.value].disabled
|
|
1204
|
-
}, { ...
|
|
1204
|
+
}, { ...Y(Qe)(t.value, (y) => !["suffix", "prefix", "append", "prepend"].includes(y)), type: e.value }), ge({ _: 2 }, [
|
|
1205
1205
|
(wt = t.value) != null && wt.suffix ? {
|
|
1206
1206
|
name: "suffix",
|
|
1207
1207
|
fn: $(() => {
|
|
@@ -1264,7 +1264,7 @@ const Dt = /* @__PURE__ */ nl(Ul), tt = (r, s) => {
|
|
|
1264
1264
|
], 64);
|
|
1265
1265
|
};
|
|
1266
1266
|
}
|
|
1267
|
-
}),
|
|
1267
|
+
}), xt = /* @__PURE__ */ tt(Zl, [["__scopeId", "data-v-685d6ffa"]]), Pt = {
|
|
1268
1268
|
__name: "g-query-item",
|
|
1269
1269
|
props: /* @__PURE__ */ ot(["more"], {
|
|
1270
1270
|
modelValue: { required: !0 },
|
|
@@ -1295,7 +1295,7 @@ const Dt = /* @__PURE__ */ nl(Ul), tt = (r, s) => {
|
|
|
1295
1295
|
return U - z;
|
|
1296
1296
|
});
|
|
1297
1297
|
let v = Object.fromEntries(c);
|
|
1298
|
-
return
|
|
1298
|
+
return Ke(() => v).value;
|
|
1299
1299
|
}, e = (S) => typeof S.search == "function" ? S.search(l.value, s.value.table) : S.search || {}, h = (S) => {
|
|
1300
1300
|
const c = e(S);
|
|
1301
1301
|
return (c == null ? void 0 : c.type) || S.type;
|
|
@@ -1324,7 +1324,7 @@ const Dt = /* @__PURE__ */ nl(Ul), tt = (r, s) => {
|
|
|
1324
1324
|
})
|
|
1325
1325
|
]),
|
|
1326
1326
|
default: $(() => [
|
|
1327
|
-
ie(
|
|
1327
|
+
ie(xt, {
|
|
1328
1328
|
modelValue: l.value[d],
|
|
1329
1329
|
"onUpdate:modelValue": (g) => l.value[d] = g,
|
|
1330
1330
|
item: { getDicts: o == null ? void 0 : o.getDicts, ...o == null ? void 0 : o.editor, ...e(o) },
|
|
@@ -1488,7 +1488,7 @@ const Dt = /* @__PURE__ */ nl(Ul), tt = (r, s) => {
|
|
|
1488
1488
|
{
|
|
1489
1489
|
key: "more",
|
|
1490
1490
|
hidden: (xe = (Ve = (ke = t.value) == null ? void 0 : ke.query) == null ? void 0 : Ve.more) == null ? void 0 : xe.hidden,
|
|
1491
|
-
component: t.value.query.more.mode === 3 ?
|
|
1491
|
+
component: t.value.query.more.mode === 3 ? Dt : Fe,
|
|
1492
1492
|
props: t.value.query.more.mode === 3 ? { ...t.value.query.more.dialog } : {
|
|
1493
1493
|
...t.value.query.more,
|
|
1494
1494
|
onClick: t.value.query.more.click
|
|
@@ -1497,15 +1497,15 @@ const Dt = /* @__PURE__ */ nl(Ul), tt = (r, s) => {
|
|
|
1497
1497
|
sort: t.value.query.more.sort || 0,
|
|
1498
1498
|
content: t.value.query.more.mode === 3 ? () => we(_t, {
|
|
1499
1499
|
class: "query-form",
|
|
1500
|
-
...
|
|
1500
|
+
...Qe(t.value.query, (ee) => !["query", "more", "reset"].includes(ee))
|
|
1501
1501
|
}, () => v({ slots: o }, !0)) : null
|
|
1502
1502
|
}
|
|
1503
1503
|
];
|
|
1504
|
-
return x.sort((ee, ue) => ee.sort - ue.sort), x.filter((ee) => !ee.hidden).map((ee) => ee.key === "more" && ee.component ===
|
|
1504
|
+
return x.sort((ee, ue) => ee.sort - ue.sort), x.filter((ee) => !ee.hidden).map((ee) => ee.key === "more" && ee.component === Dt ? we(Dt, ee.props, {
|
|
1505
1505
|
reference: () => we(Fe, t.value.query.more, () => ee.label),
|
|
1506
1506
|
default: ee.content
|
|
1507
1507
|
}) : (ee.props.slot = "query-" + ee.key, ee.label ? we(ee.component, ee.props, () => ee.label) : we(ee.component, ee.props)));
|
|
1508
|
-
}, g =
|
|
1508
|
+
}, g = Ke(() => ({
|
|
1509
1509
|
diplay: "flex",
|
|
1510
1510
|
flexDirection: t.value.query.container.mode === "row" ? "row" : "column"
|
|
1511
1511
|
})), J = () => {
|
|
@@ -1520,22 +1520,22 @@ const Dt = /* @__PURE__ */ nl(Ul), tt = (r, s) => {
|
|
|
1520
1520
|
style: Ye({ ...g.value, ...((ae = (de = t.value.query) == null ? void 0 : de.container) == null ? void 0 : ae.style) || {} }),
|
|
1521
1521
|
onDblclick: J
|
|
1522
1522
|
}, [
|
|
1523
|
-
ie(
|
|
1523
|
+
ie(Y(_t), L({
|
|
1524
1524
|
onSubmit: U[0] || (U[0] = dt(() => {
|
|
1525
1525
|
}, ["prevent"]))
|
|
1526
|
-
},
|
|
1526
|
+
}, Y(Qe)(t.value.query, (E) => !["query", "more", "reset", "btns"].includes(E))), {
|
|
1527
1527
|
default: $(() => {
|
|
1528
1528
|
var E, Q;
|
|
1529
1529
|
return [
|
|
1530
1530
|
(p(), O(Xe(v({ slots: x.$slots }, void 0)))),
|
|
1531
1531
|
((Q = (E = t.value.query) == null ? void 0 : E.container) == null ? void 0 : Q.inline) === !0 ? (p(), O(z, { key: 0 }, {
|
|
1532
1532
|
default: $(() => {
|
|
1533
|
-
var se, pe,
|
|
1533
|
+
var se, pe, H, B, Ee;
|
|
1534
1534
|
return [
|
|
1535
1535
|
Z("div", {
|
|
1536
1536
|
style: Ye((pe = (se = t.value.query) == null ? void 0 : se.btns) == null ? void 0 : pe.style)
|
|
1537
1537
|
}, [
|
|
1538
|
-
t.value.query.group ? (p(), O(
|
|
1538
|
+
t.value.query.group ? (p(), O(Y(Ct), { key: 0 }, {
|
|
1539
1539
|
default: $(() => [
|
|
1540
1540
|
(p(!0), R(le, null, X(d(), (he) => C(x.$slots, he.props.slot, {}, () => [
|
|
1541
1541
|
(p(), O(Xe(he)))
|
|
@@ -1544,7 +1544,7 @@ const Dt = /* @__PURE__ */ nl(Ul), tt = (r, s) => {
|
|
|
1544
1544
|
]),
|
|
1545
1545
|
_: 3
|
|
1546
1546
|
})) : (p(), R(le, { key: 1 }, [
|
|
1547
|
-
(Ee = (B = (
|
|
1547
|
+
(Ee = (B = (H = t.value) == null ? void 0 : H.query) == null ? void 0 : B.btns) != null && Ee.group ? (p(), O(Y(Ct), { key: 0 }, {
|
|
1548
1548
|
default: $(() => [
|
|
1549
1549
|
(p(!0), R(le, null, X(d(), (he) => C(x.$slots, he.props.slot, {}, () => [
|
|
1550
1550
|
(p(), O(Xe(he)))
|
|
@@ -1569,7 +1569,7 @@ const Dt = /* @__PURE__ */ nl(Ul), tt = (r, s) => {
|
|
|
1569
1569
|
key: 0,
|
|
1570
1570
|
style: Ye((xe = (Ve = t.value.query) == null ? void 0 : Ve.btns) == null ? void 0 : xe.style)
|
|
1571
1571
|
}, [
|
|
1572
|
-
t.value.query.group ? (p(), O(
|
|
1572
|
+
t.value.query.group ? (p(), O(Y(Ct), { key: 0 }, {
|
|
1573
1573
|
default: $(() => [
|
|
1574
1574
|
(p(!0), R(le, null, X(d(), (E) => C(x.$slots, E.props.slot, {}, () => [
|
|
1575
1575
|
(p(), O(Xe(E)))
|
|
@@ -1578,7 +1578,7 @@ const Dt = /* @__PURE__ */ nl(Ul), tt = (r, s) => {
|
|
|
1578
1578
|
]),
|
|
1579
1579
|
_: 3
|
|
1580
1580
|
})) : (p(), R(le, { key: 1 }, [
|
|
1581
|
-
(ue = (ee = t.value.query) == null ? void 0 : ee.btns) != null && ue.group ? (p(), O(
|
|
1581
|
+
(ue = (ee = t.value.query) == null ? void 0 : ee.btns) != null && ue.group ? (p(), O(Y(Ct), { key: 0 }, {
|
|
1582
1582
|
default: $(() => [
|
|
1583
1583
|
(p(!0), R(le, null, X(d(), (E) => C(x.$slots, E.props.slot, {}, () => [
|
|
1584
1584
|
(p(), O(Xe(E)))
|
|
@@ -1600,10 +1600,10 @@ const Dt = /* @__PURE__ */ nl(Ul), tt = (r, s) => {
|
|
|
1600
1600
|
"show-close": !1
|
|
1601
1601
|
}, t.value.query.more.dialog), ge({
|
|
1602
1602
|
default: $(() => [
|
|
1603
|
-
ie(
|
|
1603
|
+
ie(Y(_t), L({
|
|
1604
1604
|
onSubmit: U[3] || (U[3] = dt(() => {
|
|
1605
1605
|
}, ["prevent"]))
|
|
1606
|
-
},
|
|
1606
|
+
}, Y(Qe)(t.value.query, (E) => !["query", "more", "reset"].includes(E)), { style: { width: "98%" } }), {
|
|
1607
1607
|
default: $(() => [
|
|
1608
1608
|
ie(Pt, {
|
|
1609
1609
|
modelValue: t.value,
|
|
@@ -1628,8 +1628,8 @@ const Dt = /* @__PURE__ */ nl(Ul), tt = (r, s) => {
|
|
|
1628
1628
|
(q = (_ = (D = (i = (b = t.value) == null ? void 0 : b.query) == null ? void 0 : i.more) == null ? void 0 : D.dialog) == null ? void 0 : _.footer) != null && q.hidden ? void 0 : {
|
|
1629
1629
|
name: "footer",
|
|
1630
1630
|
fn: $(() => [
|
|
1631
|
-
Z("div",
|
|
1632
|
-
ie(
|
|
1631
|
+
Z("div", Mt(ml(t.value.query.more.dialog.footer)), [
|
|
1632
|
+
ie(Y(Fe), L(t.value.query.query, {
|
|
1633
1633
|
onClick: U[4] || (U[4] = (E) => t.value.query.query.click())
|
|
1634
1634
|
}), {
|
|
1635
1635
|
default: $(() => [
|
|
@@ -1637,7 +1637,7 @@ const Dt = /* @__PURE__ */ nl(Ul), tt = (r, s) => {
|
|
|
1637
1637
|
]),
|
|
1638
1638
|
_: 1
|
|
1639
1639
|
}, 16),
|
|
1640
|
-
ie(
|
|
1640
|
+
ie(Y(Fe), L(t.value.query.reset, {
|
|
1641
1641
|
onClick: U[5] || (U[5] = (E) => t.value.query.reset.click())
|
|
1642
1642
|
}), {
|
|
1643
1643
|
default: $(() => [
|
|
@@ -1660,11 +1660,11 @@ const Dt = /* @__PURE__ */ nl(Ul), tt = (r, s) => {
|
|
|
1660
1660
|
return [
|
|
1661
1661
|
e.value && !((se = (Q = (E = t.value) == null ? void 0 : E.query) == null ? void 0 : Q.more) != null && se.hidden) && t.value.query.more.mode == 1 ? (p(), R("div", Jl, [
|
|
1662
1662
|
Z("div", Kl, [
|
|
1663
|
-
t.value.query.more.mode == 1 ? yl((p(), O(
|
|
1663
|
+
t.value.query.more.mode == 1 ? yl((p(), O(Y(_t), L({
|
|
1664
1664
|
key: 0,
|
|
1665
1665
|
onSubmit: U[7] || (U[7] = dt(() => {
|
|
1666
1666
|
}, ["prevent"]))
|
|
1667
|
-
},
|
|
1667
|
+
}, Y(Qe)(t.value.query, (pe) => !["query", "more", "reset"].includes(pe))), {
|
|
1668
1668
|
default: $(() => [
|
|
1669
1669
|
(p(), O(Xe(v({ slots: x.$slots }, !0))))
|
|
1670
1670
|
]),
|
|
@@ -1755,7 +1755,7 @@ const Dt = /* @__PURE__ */ nl(Ul), tt = (r, s) => {
|
|
|
1755
1755
|
(ke = l.value) == null ? void 0 : ke.form
|
|
1756
1756
|
), l.value.form.style = ze(
|
|
1757
1757
|
(xe = (Ve = l.value) == null ? void 0 : Ve.form) == null ? void 0 : xe.style,
|
|
1758
|
-
{ ...(ee =
|
|
1758
|
+
{ ...(ee = Vt()) == null ? void 0 : ee.style }
|
|
1759
1759
|
);
|
|
1760
1760
|
const v = async (T, k, b) => {
|
|
1761
1761
|
let i = 5;
|
|
@@ -1898,7 +1898,7 @@ const Dt = /* @__PURE__ */ nl(Ul), tt = (r, s) => {
|
|
|
1898
1898
|
...l.value[T].formItem.style,
|
|
1899
1899
|
...k.formItem.style
|
|
1900
1900
|
};
|
|
1901
|
-
}, j =
|
|
1901
|
+
}, j = Ke(
|
|
1902
1902
|
() => Object.fromEntries(
|
|
1903
1903
|
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) => {
|
|
1904
1904
|
var b, i, D;
|
|
@@ -1906,11 +1906,11 @@ const Dt = /* @__PURE__ */ nl(Ul), tt = (r, s) => {
|
|
|
1906
1906
|
return l.value.form.modalState === "edit" ? ((i = k == null ? void 0 : k.ep) == null ? void 0 : i.editor) !== !1 : l.value.form.modalState === "add" ? ((D = k == null ? void 0 : k.ap) == null ? void 0 : D.editor) !== !1 : !0;
|
|
1907
1907
|
}).map((T) => [T[0], T[1]])
|
|
1908
1908
|
)
|
|
1909
|
-
), de =
|
|
1909
|
+
), de = Ke(
|
|
1910
1910
|
() => Object.fromEntries(
|
|
1911
1911
|
Object.entries(l.value).filter((T) => T[1].type != "hidden").filter((T) => T[1].type != "control").map((T) => [T[0], T[1].value])
|
|
1912
1912
|
)
|
|
1913
|
-
), ae =
|
|
1913
|
+
), ae = Ke(() => {
|
|
1914
1914
|
const T = /* @__PURE__ */ new Map();
|
|
1915
1915
|
return Object.entries(j.value).forEach(([k, b]) => {
|
|
1916
1916
|
if (b.groupName) {
|
|
@@ -1964,7 +1964,7 @@ const Dt = /* @__PURE__ */ nl(Ul), tt = (r, s) => {
|
|
|
1964
1964
|
originalOrder: 1
|
|
1965
1965
|
// 添加原始顺序标识
|
|
1966
1966
|
}
|
|
1967
|
-
]), ve =
|
|
1967
|
+
]), ve = Ke(() => oe.value.filter((T) => !T.hidden).sort((T, k) => T.sort - k.sort || T.originalOrder - k.originalOrder));
|
|
1968
1968
|
return s({
|
|
1969
1969
|
submit: v,
|
|
1970
1970
|
saveSubmit: v,
|
|
@@ -1986,9 +1986,9 @@ const Dt = /* @__PURE__ */ nl(Ul), tt = (r, s) => {
|
|
|
1986
1986
|
"box-sizing": "border-box"
|
|
1987
1987
|
}
|
|
1988
1988
|
},
|
|
1989
|
-
|
|
1989
|
+
Y(Qe)(
|
|
1990
1990
|
l.value.form,
|
|
1991
|
-
(
|
|
1991
|
+
(H) => !["footer", "submit", "reset", "slots", "type", "sort"].includes(H)
|
|
1992
1992
|
)
|
|
1993
1993
|
), {
|
|
1994
1994
|
default: $(() => [
|
|
@@ -1996,18 +1996,18 @@ const Dt = /* @__PURE__ */ nl(Ul), tt = (r, s) => {
|
|
|
1996
1996
|
ie(_, L({
|
|
1997
1997
|
class: "demo-tabs",
|
|
1998
1998
|
modelValue: ae.value[0].groupName,
|
|
1999
|
-
"onUpdate:modelValue": k[0] || (k[0] = (
|
|
1999
|
+
"onUpdate:modelValue": k[0] || (k[0] = (H) => ae.value[0].groupName = H),
|
|
2000
2000
|
style: { width: "100%" }
|
|
2001
2001
|
}, l.value.form.tabs), {
|
|
2002
2002
|
default: $(() => [
|
|
2003
|
-
(p(!0), R(le, null, X(ae.value, (
|
|
2004
|
-
key:
|
|
2005
|
-
label:
|
|
2006
|
-
name:
|
|
2003
|
+
(p(!0), R(le, null, X(ae.value, (H) => (p(), O(D, L({
|
|
2004
|
+
key: H.groupName,
|
|
2005
|
+
label: H.groupName,
|
|
2006
|
+
name: H.groupName,
|
|
2007
2007
|
style: { width: "100%", display: "flex", "flex-wrap": "wrap" }
|
|
2008
|
-
}, { ref_for: !0 },
|
|
2008
|
+
}, { ref_for: !0 }, H.tabPane), {
|
|
2009
2009
|
default: $(() => [
|
|
2010
|
-
(p(!0), R(le, null, X(
|
|
2010
|
+
(p(!0), R(le, null, X(H.items, (B, Ee) => (p(), O(i, L({ ref_for: !0 }, { ...l.value.form.cols, ...B == null ? void 0 : B.item.col }, {
|
|
2011
2011
|
key: B.key,
|
|
2012
2012
|
style: { width: "100%" }
|
|
2013
2013
|
}), {
|
|
@@ -2026,7 +2026,7 @@ const Dt = /* @__PURE__ */ nl(Ul), tt = (r, s) => {
|
|
|
2026
2026
|
model: l.value,
|
|
2027
2027
|
form: f.value
|
|
2028
2028
|
}, () => [
|
|
2029
|
-
(p(), O(
|
|
2029
|
+
(p(), O(xt, {
|
|
2030
2030
|
modelValue: f.value[B.key],
|
|
2031
2031
|
"onUpdate:modelValue": (De) => f.value[B.key] = De,
|
|
2032
2032
|
item: x(B),
|
|
@@ -2064,7 +2064,7 @@ const Dt = /* @__PURE__ */ nl(Ul), tt = (r, s) => {
|
|
|
2064
2064
|
_: 3
|
|
2065
2065
|
}, 16, ["modelValue"])
|
|
2066
2066
|
], !0) : C(T.$slots, "default", { key: 1 }, () => [
|
|
2067
|
-
(p(!0), R(le, null, X(j.value, (
|
|
2067
|
+
(p(!0), R(le, null, X(j.value, (H, B) => (p(), O(i, L({ ref_for: !0 }, { ...l.value.form.cols, ...H.col }, {
|
|
2068
2068
|
key: B,
|
|
2069
2069
|
style: { width: "100%" }
|
|
2070
2070
|
}), {
|
|
@@ -2072,32 +2072,32 @@ const Dt = /* @__PURE__ */ nl(Ul), tt = (r, s) => {
|
|
|
2072
2072
|
var Ee;
|
|
2073
2073
|
return [
|
|
2074
2074
|
ie(b, L({
|
|
2075
|
-
label:
|
|
2075
|
+
label: H.label,
|
|
2076
2076
|
prop: B,
|
|
2077
|
-
rules: J(
|
|
2078
|
-
}, { ref_for: !0 }, { ...(Ee = l.value) == null ? void 0 : Ee.formItems, ...
|
|
2077
|
+
rules: J(H)
|
|
2078
|
+
}, { ref_for: !0 }, { ...(Ee = l.value) == null ? void 0 : Ee.formItems, ...H == null ? void 0 : H.formItem }, { style: { width: "100%" } }), {
|
|
2079
2079
|
label: $((he) => [
|
|
2080
2080
|
C(T.$slots, `f-${B}-label`, {
|
|
2081
2081
|
data: he,
|
|
2082
|
-
item:
|
|
2082
|
+
item: H,
|
|
2083
2083
|
model: l.value
|
|
2084
2084
|
}, () => [
|
|
2085
|
-
Le(Se(
|
|
2085
|
+
Le(Se(H.label), 1)
|
|
2086
2086
|
], !0)
|
|
2087
2087
|
]),
|
|
2088
2088
|
default: $(() => [
|
|
2089
2089
|
C(T.$slots, "f-" + B, {
|
|
2090
|
-
item:
|
|
2090
|
+
item: H,
|
|
2091
2091
|
formInfo: f.value,
|
|
2092
2092
|
model: l.value,
|
|
2093
2093
|
form: f.value
|
|
2094
2094
|
}, () => [
|
|
2095
|
-
(p(), O(
|
|
2095
|
+
(p(), O(xt, {
|
|
2096
2096
|
modelValue: f.value[B],
|
|
2097
2097
|
"onUpdate:modelValue": (he) => f.value[B] = he,
|
|
2098
|
-
item: x(
|
|
2098
|
+
item: x(H, !0),
|
|
2099
2099
|
ctrlKey: B,
|
|
2100
|
-
ctrlType: U(
|
|
2100
|
+
ctrlType: U(H),
|
|
2101
2101
|
key: `${B}-${S.value}`,
|
|
2102
2102
|
model: l.value,
|
|
2103
2103
|
class: "g-ctrl-container",
|
|
@@ -2109,7 +2109,7 @@ const Dt = /* @__PURE__ */ nl(Ul), tt = (r, s) => {
|
|
|
2109
2109
|
fn: $((De) => [
|
|
2110
2110
|
C(T.$slots, Ue, {
|
|
2111
2111
|
data: De,
|
|
2112
|
-
item:
|
|
2112
|
+
item: H,
|
|
2113
2113
|
model: l.value
|
|
2114
2114
|
}, void 0, !0)
|
|
2115
2115
|
])
|
|
@@ -2132,25 +2132,25 @@ const Dt = /* @__PURE__ */ nl(Ul), tt = (r, s) => {
|
|
|
2132
2132
|
style: Ye(l.value.form.footer.style)
|
|
2133
2133
|
}, [
|
|
2134
2134
|
C(T.$slots, "f-footer-left", {}, void 0, !0),
|
|
2135
|
-
(p(!0), R(le, null, X(ve.value, (
|
|
2136
|
-
C(T.$slots,
|
|
2137
|
-
C(T.$slots,
|
|
2135
|
+
(p(!0), R(le, null, X(ve.value, (H) => (p(), R(le, null, [
|
|
2136
|
+
C(T.$slots, H.name + "-left", {}, void 0, !0),
|
|
2137
|
+
C(T.$slots, H.name, {}, () => {
|
|
2138
2138
|
var B;
|
|
2139
2139
|
return [
|
|
2140
|
-
(B =
|
|
2140
|
+
(B = H == null ? void 0 : H.info) != null && B.hidden ? be("", !0) : (p(), O(E, L({
|
|
2141
2141
|
key: 0,
|
|
2142
2142
|
ref_for: !0
|
|
2143
|
-
},
|
|
2144
|
-
onClick: dt((Ee) =>
|
|
2143
|
+
}, H.info, {
|
|
2144
|
+
onClick: dt((Ee) => H.click(f.value, l.value, H.flag), ["stop"])
|
|
2145
2145
|
}), {
|
|
2146
2146
|
default: $(() => [
|
|
2147
|
-
Le(Se(
|
|
2147
|
+
Le(Se(H == null ? void 0 : H.label), 1)
|
|
2148
2148
|
]),
|
|
2149
2149
|
_: 2
|
|
2150
2150
|
}, 1040, ["onClick"]))
|
|
2151
2151
|
];
|
|
2152
2152
|
}, !0),
|
|
2153
|
-
C(T.$slots,
|
|
2153
|
+
C(T.$slots, H.name + "-right", {}, void 0, !0)
|
|
2154
2154
|
], 64))), 256)),
|
|
2155
2155
|
C(T.$slots, "f-footer-right", {}, void 0, !0)
|
|
2156
2156
|
], 4)
|
|
@@ -2199,7 +2199,7 @@ const Dt = /* @__PURE__ */ nl(Ul), tt = (r, s) => {
|
|
|
2199
2199
|
"restore"
|
|
2200
2200
|
],
|
|
2201
2201
|
setup(r, { expose: s, emit: t }) {
|
|
2202
|
-
const l = r, n =
|
|
2202
|
+
const l = r, n = Vt(), e = t, h = Ke(() => l.type === "drawer" ? "el-drawer" : "el-dialog"), f = Ke(() => {
|
|
2203
2203
|
const de = {
|
|
2204
2204
|
modal: l.modal,
|
|
2205
2205
|
...n
|
|
@@ -2213,7 +2213,7 @@ const Dt = /* @__PURE__ */ nl(Ul), tt = (r, s) => {
|
|
|
2213
2213
|
direction: l.direction,
|
|
2214
2214
|
size: v.value ? "100%" : l.size
|
|
2215
2215
|
};
|
|
2216
|
-
}), S =
|
|
2216
|
+
}), S = Ke({
|
|
2217
2217
|
get() {
|
|
2218
2218
|
return l.modelValue;
|
|
2219
2219
|
},
|
|
@@ -2277,7 +2277,7 @@ const Dt = /* @__PURE__ */ nl(Ul), tt = (r, s) => {
|
|
|
2277
2277
|
Z("span", null, Se(r.title), 1)
|
|
2278
2278
|
], !0),
|
|
2279
2279
|
Z("div", oa, [
|
|
2280
|
-
r.minimize ? (p(), O(
|
|
2280
|
+
r.minimize ? (p(), O(Y(Bt), {
|
|
2281
2281
|
key: 0,
|
|
2282
2282
|
class: "btn-icon",
|
|
2283
2283
|
onClick: dt(z, ["stop"])
|
|
@@ -2287,7 +2287,7 @@ const Dt = /* @__PURE__ */ nl(Ul), tt = (r, s) => {
|
|
|
2287
2287
|
]),
|
|
2288
2288
|
_: 1
|
|
2289
2289
|
})) : be("", !0),
|
|
2290
|
-
r.maximize ? (p(), O(
|
|
2290
|
+
r.maximize ? (p(), O(Y(Bt), {
|
|
2291
2291
|
key: 1,
|
|
2292
2292
|
class: "btn-icon",
|
|
2293
2293
|
onClick: dt(U, ["stop"])
|
|
@@ -2391,7 +2391,7 @@ const Dt = /* @__PURE__ */ nl(Ul), tt = (r, s) => {
|
|
|
2391
2391
|
default: $(() => [
|
|
2392
2392
|
ie(o, { size: "16" }, {
|
|
2393
2393
|
default: $(() => [
|
|
2394
|
-
ie(
|
|
2394
|
+
ie(Y(tl))
|
|
2395
2395
|
]),
|
|
2396
2396
|
_: 1
|
|
2397
2397
|
}),
|
|
@@ -2426,7 +2426,7 @@ const Dt = /* @__PURE__ */ nl(Ul), tt = (r, s) => {
|
|
|
2426
2426
|
ie(J, {
|
|
2427
2427
|
type: "primary",
|
|
2428
2428
|
onClick: f,
|
|
2429
|
-
icon:
|
|
2429
|
+
icon: Y(ll),
|
|
2430
2430
|
disabled: n.value.filter((x) => x.value).length < 1
|
|
2431
2431
|
}, {
|
|
2432
2432
|
default: $(() => [
|
|
@@ -2650,7 +2650,7 @@ const Ma = { style: { padding: "15px", "box-sizing": "border-box" } }, xa = { st
|
|
|
2650
2650
|
default: $(() => [
|
|
2651
2651
|
ie(J, { size: "16" }, {
|
|
2652
2652
|
default: $(() => [
|
|
2653
|
-
ie(
|
|
2653
|
+
ie(Y(tl))
|
|
2654
2654
|
]),
|
|
2655
2655
|
_: 1
|
|
2656
2656
|
}),
|
|
@@ -2661,7 +2661,7 @@ const Ma = { style: { padding: "15px", "box-sizing": "border-box" } }, xa = { st
|
|
|
2661
2661
|
]),
|
|
2662
2662
|
Z("div", null, [
|
|
2663
2663
|
Z("div", Va, [
|
|
2664
|
-
(p(!0), R(le, null, X(
|
|
2664
|
+
(p(!0), R(le, null, X(Y(n), (z) => (p(), O(U, {
|
|
2665
2665
|
modelValue: z.showCol,
|
|
2666
2666
|
"onUpdate:modelValue": (j) => z.showCol = j,
|
|
2667
2667
|
"data-id": z.value,
|
|
@@ -2713,7 +2713,7 @@ const Ma = { style: { padding: "15px", "box-sizing": "border-box" } }, xa = { st
|
|
|
2713
2713
|
onClick: t,
|
|
2714
2714
|
title: "复制内容"
|
|
2715
2715
|
}, [
|
|
2716
|
-
ie(
|
|
2716
|
+
ie(Y(Dl))
|
|
2717
2717
|
])
|
|
2718
2718
|
]),
|
|
2719
2719
|
Z("div", qa, Se(s.content), 1)
|
|
@@ -2886,7 +2886,7 @@ const Ya = /* @__PURE__ */ nl(Fa), Ha = { class: "g-table-container" }, Ba = {
|
|
|
2886
2886
|
"batch"
|
|
2887
2887
|
], ["update:modelValue", "update:selectedRows"]),
|
|
2888
2888
|
setup(r, { expose: s, emit: t }) {
|
|
2889
|
-
var Oe,
|
|
2889
|
+
var Oe, Ze, He, Pe, Ne, je, gt;
|
|
2890
2890
|
const l = re(""), n = t, e = et(r, "modelValue"), h = Lt("options"), f = re({}), S = Object.entries(e.value).filter(([a, u]) => (u == null ? void 0 : u.search) !== void 0).map(([a, u]) => {
|
|
2891
2891
|
var w;
|
|
2892
2892
|
let m;
|
|
@@ -2927,7 +2927,7 @@ const Ya = /* @__PURE__ */ nl(Fa), Ha = { class: "g-table-container" }, Ba = {
|
|
|
2927
2927
|
"filter-multiple",
|
|
2928
2928
|
"filter-method",
|
|
2929
2929
|
"filtered-value"
|
|
2930
|
-
], o = re([]), d =
|
|
2930
|
+
], o = re([]), d = Vt(), g = re({}), J = re([]), x = re(null), U = re(""), z = re("/"), j = et(r, "selectedRows"), de = re({
|
|
2931
2931
|
autoWatch: !1,
|
|
2932
2932
|
data: [],
|
|
2933
2933
|
border: !0,
|
|
@@ -3012,7 +3012,7 @@ const Ya = /* @__PURE__ */ nl(Fa), Ha = { class: "g-table-container" }, Ba = {
|
|
|
3012
3012
|
"min-width": 100,
|
|
3013
3013
|
width: 160,
|
|
3014
3014
|
fixed: "right",
|
|
3015
|
-
style: { ...(
|
|
3015
|
+
style: { ...(Ze = (Oe = e.value) == null ? void 0 : Oe.control) == null ? void 0 : Ze.style },
|
|
3016
3016
|
validate: async (a) => await !0,
|
|
3017
3017
|
view: (a, u, m, w) => ({
|
|
3018
3018
|
label: "查看",
|
|
@@ -3193,13 +3193,13 @@ const Ya = /* @__PURE__ */ nl(Fa), Ha = { class: "g-table-container" }, Ba = {
|
|
|
3193
3193
|
let m = u;
|
|
3194
3194
|
if (a.precision && !isNaN(parseFloat(u)) && (typeof a.precision == "number" ? m = parseFloat(m).toFixed(a.precision) : typeof a.precision == "object" && a.precision.num && (a.precision.pad ? m = parseFloat(m).toFixed(a.precision.num) : m = parseFloat(
|
|
3195
3195
|
parseFloat(m).toFixed(a.precision.num)
|
|
3196
|
-
).toString())), ["date", "datetime", "time", "time-select"].includes(a.type) &&
|
|
3196
|
+
).toString())), ["date", "datetime", "time", "time-select"].includes(a.type) && It(u).isValid()) {
|
|
3197
3197
|
const I = {
|
|
3198
3198
|
date: "YYYY-MM-DD",
|
|
3199
3199
|
datetime: "YYYY-MM-DD HH:mm:ss",
|
|
3200
3200
|
time: "HH:mm:ss"
|
|
3201
3201
|
};
|
|
3202
|
-
m = a.format ?
|
|
3202
|
+
m = a.format ? It(m).format(a.format) : It(m).format(I[a.type]);
|
|
3203
3203
|
}
|
|
3204
3204
|
return a.type === "money" && (a.align = a.align || "right", a.width = a.width || 130, m = `<span title="${zt(
|
|
3205
3205
|
parseFloat(m)
|
|
@@ -3339,7 +3339,7 @@ const Ya = /* @__PURE__ */ nl(Fa), Ha = { class: "g-table-container" }, Ba = {
|
|
|
3339
3339
|
},
|
|
3340
3340
|
u.control.setting(a, u).mode
|
|
3341
3341
|
);
|
|
3342
|
-
},
|
|
3342
|
+
}, H = e.value.control, B = {
|
|
3343
3343
|
add: T,
|
|
3344
3344
|
batch: k,
|
|
3345
3345
|
download: se,
|
|
@@ -3349,7 +3349,7 @@ const Ya = /* @__PURE__ */ nl(Fa), Ha = { class: "g-table-container" }, Ba = {
|
|
|
3349
3349
|
delete: i,
|
|
3350
3350
|
save: q
|
|
3351
3351
|
}, Ee = (a, u, m, w, I) => a.filter((P) => B[P]).map((P) => {
|
|
3352
|
-
const F =
|
|
3352
|
+
const F = H == null ? void 0 : H[P](u, m, w, I);
|
|
3353
3353
|
return {
|
|
3354
3354
|
name: `control-${P}`,
|
|
3355
3355
|
attr: F,
|
|
@@ -3361,7 +3361,7 @@ const Ya = /* @__PURE__ */ nl(Fa), Ha = { class: "g-table-container" }, Ba = {
|
|
|
3361
3361
|
}).sort((P, F) => P.sort - F.sort), he = (a, u, m, w, I) => Ee(a, u, m, w, I).reduce((P, F) => {
|
|
3362
3362
|
const $e = F.groupName || "default";
|
|
3363
3363
|
return P[$e] || (P[$e] = []), P[$e].push(F), P;
|
|
3364
|
-
}, {}), Ue =
|
|
3364
|
+
}, {}), Ue = Ke(() => Object.fromEntries(
|
|
3365
3365
|
Object.entries(e.value).filter(
|
|
3366
3366
|
([a, u]) => u.type !== "hidden" && u.hidden !== !0 && u.visible !== !1 && u.showCol !== !1
|
|
3367
3367
|
).map(([a, u]) => (u.sort = typeof u.sort == "number" ? u.sort : 0, [a, u])).sort((a, u) => a[1].sort - u[1].sort)
|
|
@@ -3462,7 +3462,7 @@ const Ya = /* @__PURE__ */ nl(Fa), Ha = { class: "g-table-container" }, Ba = {
|
|
|
3462
3462
|
key: 0,
|
|
3463
3463
|
modelValue: e.value,
|
|
3464
3464
|
"onUpdate:modelValue": u[0] || (u[0] = (K) => e.value = K),
|
|
3465
|
-
onSubmit: u[1] || (u[1] = (K, me, V) =>
|
|
3465
|
+
onSubmit: u[1] || (u[1] = (K, me, V) => Y(E)(K, me, V)),
|
|
3466
3466
|
onReset: Q,
|
|
3467
3467
|
flag: l.value
|
|
3468
3468
|
}, ge({ _: 2 }, [
|
|
@@ -3527,7 +3527,7 @@ const Ya = /* @__PURE__ */ nl(Fa), Ha = { class: "g-table-container" }, Ba = {
|
|
|
3527
3527
|
(V.name === "control-add" ? V.attr.auth() && V.attr.inline === !1 : V.attr.auth()) ? C(a.$slots, V.name, { key: 0 }, () => {
|
|
3528
3528
|
var te, ne;
|
|
3529
3529
|
return [
|
|
3530
|
-
V.label ? (p(), O(
|
|
3530
|
+
V.label ? (p(), O(Y(Fe), L({
|
|
3531
3531
|
key: 0,
|
|
3532
3532
|
title: V.label,
|
|
3533
3533
|
disabled: V.name === "control-batch" && ((te = j.value) == null ? void 0 : te.length) === 0
|
|
@@ -3538,7 +3538,7 @@ const Ya = /* @__PURE__ */ nl(Fa), Ha = { class: "g-table-container" }, Ba = {
|
|
|
3538
3538
|
Le(Se(V.label), 1)
|
|
3539
3539
|
]),
|
|
3540
3540
|
_: 2
|
|
3541
|
-
}, 1040, ["title", "disabled", "onClick"])) : (p(), O(
|
|
3541
|
+
}, 1040, ["title", "disabled", "onClick"])) : (p(), O(Y(Fe), L({
|
|
3542
3542
|
key: 1,
|
|
3543
3543
|
title: V.label,
|
|
3544
3544
|
disabled: V.name === "control-batch" && ((ne = j.value) == null ? void 0 : ne.length) === 0
|
|
@@ -3555,7 +3555,7 @@ const Ya = /* @__PURE__ */ nl(Fa), Ha = { class: "g-table-container" }, Ba = {
|
|
|
3555
3555
|
(V.name === "control-add" ? V.attr.auth() && V.attr.inline === !1 : V.attr.auth()) ? C(a.$slots, V.name, { key: 0 }, () => {
|
|
3556
3556
|
var te, ne;
|
|
3557
3557
|
return [
|
|
3558
|
-
V.label ? (p(), O(
|
|
3558
|
+
V.label ? (p(), O(Y(Fe), L({
|
|
3559
3559
|
key: 0,
|
|
3560
3560
|
title: V.label,
|
|
3561
3561
|
disabled: V.name === "control-batch" && ((te = j.value) == null ? void 0 : te.length) === 0,
|
|
@@ -3567,7 +3567,7 @@ const Ya = /* @__PURE__ */ nl(Fa), Ha = { class: "g-table-container" }, Ba = {
|
|
|
3567
3567
|
Le(Se(V.label), 1)
|
|
3568
3568
|
]),
|
|
3569
3569
|
_: 2
|
|
3570
|
-
}, 1040, ["title", "disabled", "onClick"])) : (p(), O(
|
|
3570
|
+
}, 1040, ["title", "disabled", "onClick"])) : (p(), O(Y(Fe), L({
|
|
3571
3571
|
key: 1,
|
|
3572
3572
|
title: V.label,
|
|
3573
3573
|
disabled: V.name === "control-batch" && ((ne = j.value) == null ? void 0 : ne.length) === 0
|
|
@@ -3602,7 +3602,7 @@ const Ya = /* @__PURE__ */ nl(Fa), Ha = { class: "g-table-container" }, Ba = {
|
|
|
3602
3602
|
Z("div", Pa, [
|
|
3603
3603
|
ie($e, L({
|
|
3604
3604
|
...a.$attrs,
|
|
3605
|
-
...
|
|
3605
|
+
...Y(Qe)(
|
|
3606
3606
|
e.value.table,
|
|
3607
3607
|
(K) => !["dblclickType", "page"].includes(K)
|
|
3608
3608
|
)
|
|
@@ -3626,7 +3626,7 @@ const Ya = /* @__PURE__ */ nl(Fa), Ha = { class: "g-table-container" }, Ba = {
|
|
|
3626
3626
|
key: me
|
|
3627
3627
|
}, { ref_for: !0 }, {
|
|
3628
3628
|
...e.value.tableColumns,
|
|
3629
|
-
...
|
|
3629
|
+
...Y(Qe)(K, (V) => v.includes(V))
|
|
3630
3630
|
}), ge({
|
|
3631
3631
|
header: $(({ column: V, $index: te }) => [
|
|
3632
3632
|
me == "control" ? C(a.$slots, `${me}-header`, {
|
|
@@ -3686,7 +3686,7 @@ const Ya = /* @__PURE__ */ nl(Fa), Ha = { class: "g-table-container" }, Ba = {
|
|
|
3686
3686
|
column: te,
|
|
3687
3687
|
index: ne
|
|
3688
3688
|
}, () => [
|
|
3689
|
-
G.label ? (p(), O(
|
|
3689
|
+
G.label ? (p(), O(Y(Fe), L({
|
|
3690
3690
|
key: 0,
|
|
3691
3691
|
title: G.label
|
|
3692
3692
|
}, { ref_for: !0 }, G.attr, {
|
|
@@ -3696,7 +3696,7 @@ const Ya = /* @__PURE__ */ nl(Fa), Ha = { class: "g-table-container" }, Ba = {
|
|
|
3696
3696
|
Le(Se(G.label), 1)
|
|
3697
3697
|
]),
|
|
3698
3698
|
_: 2
|
|
3699
|
-
}, 1040, ["title", "onClick"])) : (p(), O(
|
|
3699
|
+
}, 1040, ["title", "onClick"])) : (p(), O(Y(Fe), L({
|
|
3700
3700
|
key: 1,
|
|
3701
3701
|
title: G.label
|
|
3702
3702
|
}, { ref_for: !0 }, G.attr, {
|
|
@@ -3738,7 +3738,7 @@ const Ya = /* @__PURE__ */ nl(Fa), Ha = { class: "g-table-container" }, Ba = {
|
|
|
3738
3738
|
column: te,
|
|
3739
3739
|
index: ne
|
|
3740
3740
|
}, () => [
|
|
3741
|
-
G.label ? (p(), O(
|
|
3741
|
+
G.label ? (p(), O(Y(Fe), L({
|
|
3742
3742
|
key: 0,
|
|
3743
3743
|
title: G.label
|
|
3744
3744
|
}, { ref_for: !0 }, G.attr, {
|
|
@@ -3748,7 +3748,7 @@ const Ya = /* @__PURE__ */ nl(Fa), Ha = { class: "g-table-container" }, Ba = {
|
|
|
3748
3748
|
Le(Se(G.label), 1)
|
|
3749
3749
|
]),
|
|
3750
3750
|
_: 2
|
|
3751
|
-
}, 1040, ["title", "onClick"])) : (p(), O(
|
|
3751
|
+
}, 1040, ["title", "onClick"])) : (p(), O(Y(Fe), L({
|
|
3752
3752
|
key: 1,
|
|
3753
3753
|
title: G.label
|
|
3754
3754
|
}, { ref_for: !0 }, G.attr, {
|
|
@@ -3791,7 +3791,7 @@ const Ya = /* @__PURE__ */ nl(Fa), Ha = { class: "g-table-container" }, Ba = {
|
|
|
3791
3791
|
column: te,
|
|
3792
3792
|
index: ne
|
|
3793
3793
|
}, () => [
|
|
3794
|
-
G.label ? (p(), O(
|
|
3794
|
+
G.label ? (p(), O(Y(Fe), L({
|
|
3795
3795
|
key: 0,
|
|
3796
3796
|
title: G.label
|
|
3797
3797
|
}, { ref_for: !0 }, G.attr, {
|
|
@@ -3801,7 +3801,7 @@ const Ya = /* @__PURE__ */ nl(Fa), Ha = { class: "g-table-container" }, Ba = {
|
|
|
3801
3801
|
Le(Se(G.label), 1)
|
|
3802
3802
|
]),
|
|
3803
3803
|
_: 2
|
|
3804
|
-
}, 1040, ["title", "onClick"])) : (p(), O(
|
|
3804
|
+
}, 1040, ["title", "onClick"])) : (p(), O(Y(Fe), L({
|
|
3805
3805
|
key: 1,
|
|
3806
3806
|
title: G.label
|
|
3807
3807
|
}, { ref_for: !0 }, G.attr, {
|
|
@@ -3840,7 +3840,7 @@ const Ya = /* @__PURE__ */ nl(Fa), Ha = { class: "g-table-container" }, Ba = {
|
|
|
3840
3840
|
}, () => {
|
|
3841
3841
|
var Ge;
|
|
3842
3842
|
return [
|
|
3843
|
-
(p(), O(
|
|
3843
|
+
(p(), O(xt, {
|
|
3844
3844
|
modelValue: V[me],
|
|
3845
3845
|
"onUpdate:modelValue": (ut) => V[me] = ut,
|
|
3846
3846
|
item: K == null ? void 0 : K.table(V, te, ne),
|
|
@@ -3916,7 +3916,7 @@ const Ya = /* @__PURE__ */ nl(Fa), Ha = { class: "g-table-container" }, Ba = {
|
|
|
3916
3916
|
emits: /* @__PURE__ */ ot(["load"], ["update:modelValue"]),
|
|
3917
3917
|
setup(r, { emit: s }) {
|
|
3918
3918
|
var g, J, x, U;
|
|
3919
|
-
const t = s, l = et(r, "modelValue"), n =
|
|
3919
|
+
const t = s, l = et(r, "modelValue"), n = Vt(), e = re(
|
|
3920
3920
|
typeof ((g = n == null ? void 0 : n.tree) == null ? void 0 : g.width) == "number" ? `${n.tree.width}px` : ((J = n == null ? void 0 : n.tree) == null ? void 0 : J.width) || "180px"
|
|
3921
3921
|
), h = re(((x = n == null ? void 0 : n.tree) == null ? void 0 : x.search) === void 0 ? !0 : (U = n == null ? void 0 : n.tree) == null ? void 0 : U.search), f = re({}), S = re(""), c = re(null), v = (z, j) => {
|
|
3922
3922
|
var ae, oe;
|
|
@@ -4040,12 +4040,12 @@ const Ya = /* @__PURE__ */ nl(Fa), Ha = { class: "g-table-container" }, Ba = {
|
|
|
4040
4040
|
]));
|
|
4041
4041
|
}
|
|
4042
4042
|
}), ar = /* @__PURE__ */ tt(lr, [["__scopeId", "data-v-c0ac6b77"]]), rr = Object.freeze({}), Rt = [Wa, sl, Ja, ar, Ut];
|
|
4043
|
-
let
|
|
4043
|
+
let Tt = {};
|
|
4044
4044
|
const br = {
|
|
4045
4045
|
install: (r, s = {}) => {
|
|
4046
|
-
|
|
4046
|
+
Tt = Object.freeze({ ...rr, ...s }), Rt.forEach((t) => {
|
|
4047
4047
|
r.component(t.name, t);
|
|
4048
|
-
}), r.provide("options",
|
|
4048
|
+
}), r.provide("options", Tt), r.config.globalProperties.$openModal = At, r.config.globalProperties.$open = or;
|
|
4049
4049
|
}
|
|
4050
4050
|
}, nr = (r) => ({ dialog: pl, drawer: vl })[r] || null, At = (r = {}, s = "dialog") => {
|
|
4051
4051
|
if (typeof document > "u") return () => {
|
|
@@ -4087,7 +4087,7 @@ const br = {
|
|
|
4087
4087
|
});
|
|
4088
4088
|
return Rt.forEach((f) => {
|
|
4089
4089
|
h.component(f.name, f);
|
|
4090
|
-
}), h.provide("options",
|
|
4090
|
+
}), h.provide("options", Tt), h.use(Wt, { locale: rl }), document.body.appendChild(t), h.mount(t), l;
|
|
4091
4091
|
}, or = (r = {}) => {
|
|
4092
4092
|
if (typeof document > "u") return () => {
|
|
4093
4093
|
};
|
|
@@ -4119,7 +4119,7 @@ const br = {
|
|
|
4119
4119
|
});
|
|
4120
4120
|
return Rt.forEach((e) => {
|
|
4121
4121
|
n.component(e.name, e);
|
|
4122
|
-
}), n.provide("options",
|
|
4122
|
+
}), n.provide("options", Tt), n.use(Wt, { locale: rl }), document.body.appendChild(s), n.mount(s), t;
|
|
4123
4123
|
};
|
|
4124
4124
|
function ur(r, s = window.innerWidth) {
|
|
4125
4125
|
if (typeof r == "number")
|
|
@@ -4153,7 +4153,7 @@ const ze = (...r) => {
|
|
|
4153
4153
|
}), l);
|
|
4154
4154
|
return r.forEach((l = {}) => t(s, l)), s;
|
|
4155
4155
|
};
|
|
4156
|
-
function
|
|
4156
|
+
function Qe(r, s = (t, l) => l != null) {
|
|
4157
4157
|
const t = {};
|
|
4158
4158
|
for (const l in r)
|
|
4159
4159
|
r.hasOwnProperty(l) && s(l, r[l]) && (t[l] = r[l]);
|
|
@@ -4293,7 +4293,7 @@ export {
|
|
|
4293
4293
|
ur as convertToPx,
|
|
4294
4294
|
dr as debounce,
|
|
4295
4295
|
br as default,
|
|
4296
|
-
|
|
4296
|
+
Qe as filterObject,
|
|
4297
4297
|
sr as findTreeLabelByValue,
|
|
4298
4298
|
ir as formatAmount,
|
|
4299
4299
|
ze as mergeObjects,
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.custom-upload[data-v-
|
|
1
|
+
.custom-upload[data-v-685d6ffa]{--up-width: 100px;--up-height: 100px;--up-font-size: 18px}[data-v-685d6ffa] .custom-upload img{width:100%;height:100%}[data-v-685d6ffa] .custom-upload .el-upload--picture-card,[data-v-685d6ffa] .custom-upload .el-upload-dragger,[data-v-685d6ffa] .custom-upload .el-upload-list__item{width:var(--up-width);height:var(--up-height);line-height:var(--up-height);box-sizing:border-box}[data-v-685d6ffa] .custom-upload .el-upload-dragger{display:flex;align-items:center;justify-content:center;border:1px dashed var(--el-border-color);border-radius:6px;background-color:var(--el-fill-color-light);transition:border-color .3s}[data-v-685d6ffa] .custom-upload .el-upload-dragger:hover{border-color:var(--el-color-primary)}[data-v-685d6ffa] .custom-upload .el-icon{font-size:var(--up-font-size)}.up-view[data-v-685d6ffa]:hover{background-color:#0003}.g-query-container[data-v-fbc339ad]{position:relative;display:flex;flex:1;flex-direction:column;padding:10px;box-sizing:border-box}.outer[data-v-fbc339ad]{min-height:100px;border-radius:4px;background-color:var(--el-bg-color);top:60px;padding-top:10px;width:100%;box-sizing:border-box}.inner[data-v-fbc339ad]{border-radius:4px;min-height:100px;border:1px solid var(--el-border-color);padding:18px 18px 0;box-sizing:border-box;width:100%;background-color:var(--el-bg-color)}.nested-enter-active[data-v-fbc339ad],.nested-leave-active[data-v-fbc339ad]{transition:all .3s ease-in-out}.nested-leave-active[data-v-fbc339ad]{transition-delay:.25s}.nested-enter-from[data-v-fbc339ad],.nested-leave-to[data-v-fbc339ad]{transform:translateY(-100px);opacity:0}.nested-enter-active .inner[data-v-fbc339ad],.nested-leave-active .inner[data-v-fbc339ad]{transition:all .3s ease-in-out}.nested-enter-active .inner[data-v-fbc339ad]{transition-delay:.25s}.nested-enter-from .inner[data-v-fbc339ad],.nested-leave-to .inner[data-v-fbc339ad]{transform:translateY(-100px);opacity:.001}.query-form[data-v-fbc339ad]{padding:20px;background-color:var(--el-bg-color);border:1px solid var(--el-border-color);margin:5px;border-radius:4px}.g-form-container[data-v-3b3ffd4d]{width:100%;display:flex;flex-direction:column}.dialog-extend-container[data-v-ae995f57]{position:relative}.custom-header[data-v-ae995f57]{display:flex;justify-content:space-between;align-items:center;width:100%;height:100%;cursor:move;padding-left:10px;box-sizing:border-box;color:var(--el-text-color-regular)}.header-btn-group[data-v-ae995f57]{display:flex;align-items:center;gap:2px}.header-btn-group .btn-icon[data-v-ae995f57]{display:flex;align-items:center;justify-content:center;width:34px;height:100%;font-size:14px;cursor:pointer;border-radius:4px}.header-btn-group .btn-icon[data-v-ae995f57]:hover{background:var(--el-fill-color-light);color:var(--el-color-primary)}[data-v-ae995f57] .dialog-maximize.el-dialog{width:100vw!important;height:100vh!important;--el-dialog-width: 100vw !important;--el-dialog-margin-top: 0 !important;margin:0!important;padding:0!important;max-width:100vw!important;max-height:100vh!important;z-index:2005!important;display:flex!important;flex-direction:column!important}[data-v-ae995f57] .el-dialog__header{height:44px;margin:0!important;border-bottom:1px solid var(--el-border-color);flex-shrink:0;display:flex!important;align-items:center!important}[data-v-ae995f57] .show-close{height:44px!important;margin:0!important;padding:0!important}[data-v-ae995f57] .dialog-maximize.el-dialog .el-dialog__body{display:flex!important;flex:1;overflow-x:hidden;margin:0!important;padding:0!important;box-sizing:border-box}[data-v-ae995f57] .el-dialog__footer{padding:10px 20px;margin:0!important;border-top:1px solid var(--el-border-color)}[data-v-ae995f57] .el-drawer__header{margin:0!important;border-bottom:1px solid var(--el-border-color);flex-shrink:0;height:44px;display:flex!important;align-items:center!important;padding:0;box-sizing:border-box}[data-v-ae995f57] .el-drawer__footer{padding:10px 20px;margin:0!important;border-top:1px solid var(--el-border-color)}[data-v-ae995f57] .dialog-maximize .el-overlay{overflow:hidden}.minimize-ball[data-v-ae995f57]{position:fixed;right:30px;bottom:30px;width:180px;height:42px;line-height:42px;background:var(--el-bg-color);border:1px solid var(--el-border-color);border-radius:6px;box-shadow:var(--el-box-shadow-light);text-align:center;cursor:pointer;z-index:9999;color:var(--el-text-color-regular);font-size:14px;transition:all .2s}.minimize-ball[data-v-ae995f57]:hover{border-color:var(--el-color-primary-light-7);background:var(--el-fill-color-light);color:var(--el-color-primary)}[data-v-ae995f57] .el-dialog__close{font-size:18px!important}[data-v-ae995f57] .el-drawer__close{margin-right:20px}[data-v-ae995f57] .el-dialog{padding:0!important}.check-box-hover[data-v-13575747]:hover,.check-box-hover[data-v-11d261e3]:hover{background:var(--el-border-color)}.allcheck a[data-v-11d261e3]{cursor:pointer}.filtered[data-v-11d261e3]{pointer-events:none}.g-cell-toopTip[data-v-f28912da]{max-height:400px;border-radius:var(--el-border-radius-base);padding:12px;transition:all .3s ease}.g-cell-toopTip .title[data-v-f28912da]{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;height:24px;border-bottom:1px solid var(--el-border-color)}.g-cell-toopTip .title .title-text[data-v-f28912da]{font-weight:700;line-height:24px}.g-cell-toopTip .content[data-v-f28912da]{max-height:300px;overflow-y:auto;line-height:1.5;padding:4px 0}.copy-btn[data-v-f28912da]{width:16px;height:16px;cursor:pointer}.copy-btn[data-v-f28912da]:hover{color:var(--el-color-success)}.control .el-button[data-v-0e1fe5b9]{padding:0 3px;margin:0 3px}.g-table-container[data-v-0e1fe5b9]{margin:0;padding:0;width:100%;height:100%}.table-query-container[data-v-0e1fe5b9]{background-color:var(--el-bg-color);margin-bottom:10px;border:1px solid var(--el-border-color-lighter)}.table-container[data-v-0e1fe5b9]{box-sizing:border-box;background-color:var(--el-bg-color)}.max[data-v-0e1fe5b9]{cursor:pointer;color:var(--el-text-color)}.max[data-v-0e1fe5b9]:hover{color:var(--el-color-primary)}.btns[data-v-0e1fe5b9]{display:flex}[data-v-0e1fe5b9] .drag-dialog{resize:both;overflow:auto}[data-v-0e1fe5b9] .el-dialog__header,[data-v-0e1fe5b9] .el-dialog__body{pointer-events:auto!important}.g-tree-table[data-v-c888e4fc]{width:100%;display:flex;box-sizing:border-box}.g-tree-container[data-v-c888e4fc]{display:flex;width:100%;box-sizing:border-box;border-radius:4px;overflow:auto;height:100%;border:1px solid var(--el-border-color-lighter)}.g-tree-table-container[data-v-c888e4fc]{display:flex;flex:1;overflow:auto}.g-tree-left[data-v-c888e4fc]{display:flex;flex-direction:column;box-sizing:border-box;margin-right:10px;overflow:auto}.op-group[data-v-c0ac6b77]{display:flex;justify-content:space-between;align-items:center;font-weight:700;color:#fff;padding:5px 25px;box-sizing:border-box;background-color:var(--el-color-primary-light-3)}.op-items[data-v-c0ac6b77]{display:flex;justify-content:space-between;align-items:center;color:#666;margin-left:12px}.op-items span[data-v-c0ac6b77]{background-color:var(--el-color-primary-light-7);border-radius:3px;margin:2px 2px 0 0;display:block;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}
|