z-ui-pc 0.4.1 → 0.5.0
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/README.md +3 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +27 -3
- package/dist/index.js +730 -721
- package/package.json +2 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref as
|
|
1
|
+
import { ref as T, defineComponent as K, resolveComponent as S, createBlock as V, openBlock as v, unref as i, createSlots as pt, withCtx as E, createElementVNode as F, normalizeStyle as Wt, toDisplayString as $, useCssVars as Te, computed as P, createElementBlock as I, renderSlot as fe, createTextVNode as j, normalizeClass as re, createCommentVNode as Z, provide as No, inject as Ro, resolveDynamicComponent as jt, mergeProps as se, toHandlers as we, watch as mt, nextTick as ne, isRef as be, normalizeProps as Vo, guardReactiveProps as Oo, mergeModels as Ge, useModel as Ve, createVNode as _, Fragment as q, renderList as le, useSlots as Kt, resolveDirective as ve, withDirectives as pe, onBeforeUnmount as Oe, markRaw as kt, watchEffect as Je, getCurrentScope as ft, onScopeDispose as gt, withModifiers as _e, watchPostEffect as ht, onActivated as Lo, onDeactivated as Ho, onMounted as $e, onUnmounted as vt, useTemplateRef as Uo, Teleport as Qo, withKeys as Yo, h as At, isVNode as zo, getCurrentInstance as qt, defineAsyncComponent as Zo, render as St } from "vue";
|
|
2
2
|
import R, { isNumber as Gt, cloneDeep as ge, isUndefined as Ze, isEqual as Xo, merge as Pe, mergeWith as Wo, isObject as Xe, isString as Jt, isFunction as $t, sortBy as jo, debounce as Ko, isNull as Tt } from "lodash";
|
|
3
3
|
import De from "dayjs";
|
|
4
4
|
import { CircleClose as eo, Search as to, Close as lt, EditPen as oo, CloseBold as Ct, Plus as no, Loading as qo, ArrowDownBold as Jo, ArrowUp as $o, ArrowDown as en, Delete as tn, CircleCloseFilled as on, QuestionFilled as Mt } from "@element-plus/icons-vue";
|
|
@@ -12,7 +12,7 @@ const cn = (t, e) => (o) => {
|
|
|
12
12
|
return;
|
|
13
13
|
}
|
|
14
14
|
o.component(n, t);
|
|
15
|
-
}, Ce = (t, e) => (t.install = cn(t, e), t), te =
|
|
15
|
+
}, Ce = (t, e) => (t.install = cn(t, e), t), te = T({
|
|
16
16
|
visible: !1,
|
|
17
17
|
content: "",
|
|
18
18
|
rect: {},
|
|
@@ -23,7 +23,7 @@ const cn = (t, e) => (o) => {
|
|
|
23
23
|
name: "ZAutoTooltip",
|
|
24
24
|
__name: "index",
|
|
25
25
|
setup(t) {
|
|
26
|
-
const e =
|
|
26
|
+
const e = T({
|
|
27
27
|
getBoundingClientRect() {
|
|
28
28
|
return te.value.rect;
|
|
29
29
|
}
|
|
@@ -157,7 +157,7 @@ const cn = (t, e) => (o) => {
|
|
|
157
157
|
}), wn = Ce(ao, "ZEmpty"), so = Symbol(
|
|
158
158
|
"advancedFormBuilderProvideKey"
|
|
159
159
|
), Bn = () => {
|
|
160
|
-
const t =
|
|
160
|
+
const t = T();
|
|
161
161
|
return No(so, t), {
|
|
162
162
|
advancedFormBuilder: t,
|
|
163
163
|
setAdvancedFormBuilder: (o) => {
|
|
@@ -217,25 +217,25 @@ function Mn() {
|
|
|
217
217
|
})(Tn, function() {
|
|
218
218
|
var o, n, a = 1e3, s = 6e4, l = 36e5, g = 864e5, c = /\[([^\]]+)]|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, p = 31536e6, u = 2628e6, f = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/, h = { years: p, months: u, days: g, hours: l, minutes: s, seconds: a, milliseconds: 1, weeks: 6048e5 }, r = function(w) {
|
|
219
219
|
return w instanceof G;
|
|
220
|
-
},
|
|
220
|
+
}, m = function(w, B, A) {
|
|
221
221
|
return new G(w, A, B.$l);
|
|
222
|
-
},
|
|
222
|
+
}, d = function(w) {
|
|
223
223
|
return n.p(w) + "s";
|
|
224
|
-
},
|
|
224
|
+
}, y = function(w) {
|
|
225
225
|
return w < 0;
|
|
226
|
-
}, b = function(w) {
|
|
227
|
-
return _(w) ? Math.ceil(w) : Math.floor(w);
|
|
228
226
|
}, C = function(w) {
|
|
227
|
+
return y(w) ? Math.ceil(w) : Math.floor(w);
|
|
228
|
+
}, b = function(w) {
|
|
229
229
|
return Math.abs(w);
|
|
230
230
|
}, k = function(w, B) {
|
|
231
|
-
return w ?
|
|
231
|
+
return w ? y(w) ? { negative: !0, format: "" + b(w) + B } : { negative: !1, format: "" + w + B } : { negative: !1, format: "" };
|
|
232
232
|
}, G = function() {
|
|
233
233
|
function w(A, N, W) {
|
|
234
234
|
var x = this;
|
|
235
|
-
if (this.$d = {}, this.$l = W, A === void 0 && (this.$ms = 0, this.parseFromMilliseconds()), N) return
|
|
235
|
+
if (this.$d = {}, this.$l = W, A === void 0 && (this.$ms = 0, this.parseFromMilliseconds()), N) return m(A * h[d(N)], this);
|
|
236
236
|
if (typeof A == "number") return this.$ms = A, this.parseFromMilliseconds(), this;
|
|
237
237
|
if (typeof A == "object") return Object.keys(A).forEach(function(D) {
|
|
238
|
-
x.$d[
|
|
238
|
+
x.$d[d(D)] = A[D];
|
|
239
239
|
}), this.calMilliseconds(), this;
|
|
240
240
|
if (typeof A == "string") {
|
|
241
241
|
var O = A.match(f);
|
|
@@ -256,7 +256,7 @@ function Mn() {
|
|
|
256
256
|
}, 0);
|
|
257
257
|
}, B.parseFromMilliseconds = function() {
|
|
258
258
|
var A = this.$ms;
|
|
259
|
-
this.$d.years =
|
|
259
|
+
this.$d.years = C(A / p), A %= p, this.$d.months = C(A / u), A %= u, this.$d.days = C(A / g), A %= g, this.$d.hours = C(A / l), A %= l, this.$d.minutes = C(A / s), A %= s, this.$d.seconds = C(A / a), A %= a, this.$d.milliseconds = A;
|
|
260
260
|
}, B.toISOString = function() {
|
|
261
261
|
var A = k(this.$d.years, "Y"), N = k(this.$d.months, "M"), W = +this.$d.days || 0;
|
|
262
262
|
this.$d.weeks && (W += 7 * this.$d.weeks);
|
|
@@ -272,20 +272,20 @@ function Mn() {
|
|
|
272
272
|
return O || String(W[x]);
|
|
273
273
|
});
|
|
274
274
|
}, B.as = function(A) {
|
|
275
|
-
return this.$ms / h[
|
|
275
|
+
return this.$ms / h[d(A)];
|
|
276
276
|
}, B.get = function(A) {
|
|
277
|
-
var N = this.$ms, W =
|
|
278
|
-
return W === "milliseconds" ? N %= 1e3 : N = W === "weeks" ?
|
|
277
|
+
var N = this.$ms, W = d(A);
|
|
278
|
+
return W === "milliseconds" ? N %= 1e3 : N = W === "weeks" ? C(N / h[W]) : this.$d[W], N || 0;
|
|
279
279
|
}, B.add = function(A, N, W) {
|
|
280
280
|
var x;
|
|
281
|
-
return x = N ? A * h[
|
|
281
|
+
return x = N ? A * h[d(N)] : r(A) ? A.$ms : m(A, this).$ms, m(this.$ms + x * (W ? -1 : 1), this);
|
|
282
282
|
}, B.subtract = function(A, N) {
|
|
283
283
|
return this.add(A, N, !0);
|
|
284
284
|
}, B.locale = function(A) {
|
|
285
285
|
var N = this.clone();
|
|
286
286
|
return N.$l = A, N;
|
|
287
287
|
}, B.clone = function() {
|
|
288
|
-
return
|
|
288
|
+
return m(this.$ms, this);
|
|
289
289
|
}, B.humanize = function(A) {
|
|
290
290
|
return o().add(this.$ms, "ms").locale(this.$l).fromNow(!A);
|
|
291
291
|
}, B.valueOf = function() {
|
|
@@ -323,19 +323,19 @@ function Mn() {
|
|
|
323
323
|
}, B.asYears = function() {
|
|
324
324
|
return this.as("years");
|
|
325
325
|
}, w;
|
|
326
|
-
}(),
|
|
326
|
+
}(), M = function(w, B, A) {
|
|
327
327
|
return w.add(B.years() * A, "y").add(B.months() * A, "M").add(B.days() * A, "d").add(B.hours() * A, "h").add(B.minutes() * A, "m").add(B.seconds() * A, "s").add(B.milliseconds() * A, "ms");
|
|
328
328
|
};
|
|
329
329
|
return function(w, B, A) {
|
|
330
330
|
o = A, n = A().$utils(), A.duration = function(x, O) {
|
|
331
331
|
var Q = A.locale();
|
|
332
|
-
return
|
|
332
|
+
return m(x, { $l: Q }, O);
|
|
333
333
|
}, A.isDuration = r;
|
|
334
334
|
var N = B.prototype.add, W = B.prototype.subtract;
|
|
335
335
|
B.prototype.add = function(x, O) {
|
|
336
|
-
return r(x) ?
|
|
336
|
+
return r(x) ? M(this, x, 1) : N.bind(this)(x, O);
|
|
337
337
|
}, B.prototype.subtract = function(x, O) {
|
|
338
|
-
return r(x) ?
|
|
338
|
+
return r(x) ? M(this, x, -1) : W.bind(this)(x, O);
|
|
339
339
|
};
|
|
340
340
|
};
|
|
341
341
|
});
|
|
@@ -345,13 +345,13 @@ var xn = Mn();
|
|
|
345
345
|
const Fn = /* @__PURE__ */ Gn(xn);
|
|
346
346
|
De.extend(Fn);
|
|
347
347
|
const et = "YYYY-MM-DD HH:mm:ss", Pn = (t, e = et) => [De(t).startOf("day"), De(t).endOf("day")].map((o) => o.format(e)), lo = (t = et) => Pn(void 0, t);
|
|
348
|
-
function
|
|
348
|
+
function or(t) {
|
|
349
349
|
return De.duration(Math.ceil(Number(t) || 0), "seconds").format("mm:ss");
|
|
350
350
|
}
|
|
351
|
-
const
|
|
351
|
+
const nr = (t, e = "HH:mm:ss") => {
|
|
352
352
|
const o = new Date(t * 1e3), n = o.getUTCHours(), a = o.getUTCMinutes(), s = o.getUTCSeconds();
|
|
353
353
|
return e.replace("HH", n.toString().padStart(2, "0")).replace("mm", a.toString().padStart(2, "0")).replace("ss", s.toString().padStart(2, "0"));
|
|
354
|
-
}, de = (t, e = et, o = "day") => [De().subtract(t, o), De()].map((n) => n.format(e)),
|
|
354
|
+
}, de = (t, e = et, o = "day") => [De().subtract(t, o), De()].map((n) => n.format(e)), ar = (t) => t.getTime() > Date.now(), Nn = (t, e, o, n) => {
|
|
355
355
|
if (!t)
|
|
356
356
|
return t;
|
|
357
357
|
const a = De(t).format(e || et);
|
|
@@ -413,8 +413,8 @@ const tr = (t, e = "HH:mm:ss") => {
|
|
|
413
413
|
e("update:modelValue", n);
|
|
414
414
|
}
|
|
415
415
|
})
|
|
416
|
-
}), io = (t) => t instanceof Promise || typeof t == "object" && typeof t.then == "function" && typeof t.catch == "function", Vn = (t) => typeof t > "u" || typeof t == "object" && t === null || t === "",
|
|
417
|
-
const o =
|
|
416
|
+
}), io = (t) => t instanceof Promise || typeof t == "object" && typeof t.then == "function" && typeof t.catch == "function", Vn = (t) => typeof t > "u" || typeof t == "object" && t === null || t === "", sr = (t) => /[\u4e00-\u9fa5]/.test(t), On = (t) => typeof t == "function", lr = (t) => !t || !Number(t) || isNaN(Number(t)), co = (t) => !t || !t.offsetParent || !t.offsetWidth || getComputedStyle(t).display === "none", bt = (t, e) => {
|
|
417
|
+
const o = T([]), n = T(!1);
|
|
418
418
|
let a = !1;
|
|
419
419
|
const s = (l) => {
|
|
420
420
|
o.value = l, n.value = !1, a || (a = !0, ne().then(() => {
|
|
@@ -479,34 +479,34 @@ const tr = (t, e = "HH:mm:ss") => {
|
|
|
479
479
|
},
|
|
480
480
|
emits: ["update:modelValue", "change"],
|
|
481
481
|
setup(t, { emit: e }) {
|
|
482
|
-
Te((
|
|
482
|
+
Te((m) => ({
|
|
483
483
|
"50b6e6e6": h.value
|
|
484
484
|
}));
|
|
485
485
|
const o = t, n = e, { parseOptions: a, loadingOptions: s } = bt(o), { value: l } = ke(o, n), g = P(() => R.omit(o.on, ["blur", "change"])), c = P(() => Se(R.omit(o, ["on", "options", "modelValue"]))), p = () => {
|
|
486
486
|
n("change", l.value);
|
|
487
487
|
};
|
|
488
488
|
let u;
|
|
489
|
-
const f = async (
|
|
490
|
-
|
|
491
|
-
}, h = P(() => o.width || "100%"), r = (
|
|
492
|
-
const
|
|
493
|
-
|
|
489
|
+
const f = async (m) => {
|
|
490
|
+
m ? u = ge(l.value) : (await ne(), Xo(u, l.value) || p(), u = void 0), o.on.visibleChange?.(m);
|
|
491
|
+
}, h = P(() => o.width || "100%"), r = (m, d) => {
|
|
492
|
+
const y = Reflect.get(o.on, m);
|
|
493
|
+
y && y(d), p(), u = ge(o.props.multiple ? d ?? [] : d);
|
|
494
494
|
};
|
|
495
|
-
return (
|
|
496
|
-
const
|
|
497
|
-
return v(), V(
|
|
495
|
+
return (m, d) => {
|
|
496
|
+
const y = S("el-cascader");
|
|
497
|
+
return v(), V(y, se({
|
|
498
498
|
modelValue: i(l),
|
|
499
|
-
"onUpdate:modelValue":
|
|
499
|
+
"onUpdate:modelValue": d[0] || (d[0] = (C) => be(l) ? l.value = C : null),
|
|
500
500
|
loading: i(s)
|
|
501
501
|
}, c.value, { options: i(a) }, we(g.value), {
|
|
502
502
|
onVisibleChange: f,
|
|
503
|
-
onClear:
|
|
504
|
-
onRemoveTag:
|
|
503
|
+
onClear: d[1] || (d[1] = (C) => r("clear", C)),
|
|
504
|
+
onRemoveTag: d[2] || (d[2] = (C) => r("removeTag", C))
|
|
505
505
|
}), pt({ _: 2 }, [
|
|
506
|
-
|
|
506
|
+
m.$slots.default ? {
|
|
507
507
|
name: "default",
|
|
508
|
-
fn: E(({ node:
|
|
509
|
-
fe(
|
|
508
|
+
fn: E(({ node: C, data: b }) => [
|
|
509
|
+
fe(m.$slots, "default", Vo(Oo({ node: C, data: b })))
|
|
510
510
|
]),
|
|
511
511
|
key: "0"
|
|
512
512
|
} : void 0
|
|
@@ -598,17 +598,17 @@ const tr = (t, e = "HH:mm:ss") => {
|
|
|
598
598
|
), p = P(() => {
|
|
599
599
|
if (o.useDefaultTimeToDay)
|
|
600
600
|
return [new Date(2e3, 1, 1, 0, 0, 0), new Date(2e3, 1, 1, 23, 59, 59)];
|
|
601
|
-
}), u = (r,
|
|
601
|
+
}), u = (r, m) => {
|
|
602
602
|
if (!r)
|
|
603
603
|
return r;
|
|
604
|
-
const
|
|
605
|
-
return o.autoAddSeconds &&
|
|
604
|
+
const d = o.format || "", y = De(r).format(d);
|
|
605
|
+
return o.autoAddSeconds && d === "YYYY-MM-DD HH:mm" ? `${y}:${m ? "59" : "00"}` : y;
|
|
606
606
|
}, f = P(() => ({
|
|
607
607
|
...o.on,
|
|
608
608
|
"update:modelValue": (r) => {
|
|
609
609
|
if (Array.isArray(r)) {
|
|
610
|
-
const [
|
|
611
|
-
a("update:modelValue", [u(
|
|
610
|
+
const [m, d] = r;
|
|
611
|
+
a("update:modelValue", [u(m), u(d, !0)]);
|
|
612
612
|
} else
|
|
613
613
|
a("update:modelValue", u(r, !0));
|
|
614
614
|
g();
|
|
@@ -619,19 +619,19 @@ const tr = (t, e = "HH:mm:ss") => {
|
|
|
619
619
|
})
|
|
620
620
|
})), h = P(
|
|
621
621
|
() => o.shortcuts?.map((r) => {
|
|
622
|
-
const { value:
|
|
622
|
+
const { value: m, text: d } = r;
|
|
623
623
|
return {
|
|
624
|
-
text:
|
|
624
|
+
text: d,
|
|
625
625
|
value: () => (l({
|
|
626
626
|
expression: "GET_DATE_RANGE",
|
|
627
|
-
params: [
|
|
628
|
-
}), typeof
|
|
627
|
+
params: [d, o.format || "", o.autoAddSeconds]
|
|
628
|
+
}), typeof m == "function" ? m() : m)
|
|
629
629
|
};
|
|
630
630
|
})
|
|
631
631
|
);
|
|
632
|
-
return (r,
|
|
633
|
-
const
|
|
634
|
-
return v(), V(
|
|
632
|
+
return (r, m) => {
|
|
633
|
+
const d = S("el-date-picker");
|
|
634
|
+
return v(), V(d, se(c.value, {
|
|
635
635
|
"popper-class": `z-base-date-popper ${o.popperClass || ""}`,
|
|
636
636
|
"model-value": i(s),
|
|
637
637
|
"default-time": p.value,
|
|
@@ -702,23 +702,23 @@ const tr = (t, e = "HH:mm:ss") => {
|
|
|
702
702
|
setup(t, { emit: e }) {
|
|
703
703
|
const o = t, n = Ve(t, "dynamicExpression"), a = e, s = P(() => Se(R.omit(o, ["options", "on", "modelValue"]))), { value: l } = ke(o, a), g = () => {
|
|
704
704
|
ne().then(() => {
|
|
705
|
-
const [r,
|
|
706
|
-
r &&
|
|
705
|
+
const [r, m, d] = l.value;
|
|
706
|
+
r && m && d ? a("change", l.value) : !r && !m && !d && a("change", []);
|
|
707
707
|
});
|
|
708
708
|
}, c = P({
|
|
709
709
|
get() {
|
|
710
710
|
return o.modelValue[2];
|
|
711
711
|
},
|
|
712
712
|
set(r) {
|
|
713
|
-
const [
|
|
714
|
-
l.value = [
|
|
713
|
+
const [m, d] = o.modelValue;
|
|
714
|
+
l.value = [m, d, r], g(), p(n.value, r);
|
|
715
715
|
}
|
|
716
|
-
}), p = (r,
|
|
716
|
+
}), p = (r, m) => {
|
|
717
717
|
if (r) {
|
|
718
|
-
const { params: [
|
|
718
|
+
const { params: [d] = [] } = r;
|
|
719
719
|
n.value = {
|
|
720
720
|
expression: "GET_DATE_RANGE_SELECT_GROUP",
|
|
721
|
-
params: [
|
|
721
|
+
params: [d, m ?? ""]
|
|
722
722
|
};
|
|
723
723
|
} else
|
|
724
724
|
n.value = void 0;
|
|
@@ -727,14 +727,14 @@ const tr = (t, e = "HH:mm:ss") => {
|
|
|
727
727
|
return o.modelValue.slice(0, 2);
|
|
728
728
|
},
|
|
729
729
|
set(r) {
|
|
730
|
-
const
|
|
731
|
-
o.disabledSelectByEmptyData ? (l.value = r ? [...r,
|
|
730
|
+
const m = o.modelValue[2];
|
|
731
|
+
o.disabledSelectByEmptyData ? (l.value = r ? [...r, m] : [], g()) : (l.value = [...r ?? ["", ""], l.value?.[2]], a("change", l.value));
|
|
732
732
|
}
|
|
733
733
|
}), f = P(() => {
|
|
734
734
|
if (!o.disabledSelectByEmptyData)
|
|
735
735
|
return !1;
|
|
736
|
-
const [r,
|
|
737
|
-
return !r || !
|
|
736
|
+
const [r, m] = o.modelValue;
|
|
737
|
+
return !r || !m;
|
|
738
738
|
}), h = P({
|
|
739
739
|
get() {
|
|
740
740
|
return ge(n.value);
|
|
@@ -743,8 +743,8 @@ const tr = (t, e = "HH:mm:ss") => {
|
|
|
743
743
|
p(r, l.value?.[2]);
|
|
744
744
|
}
|
|
745
745
|
});
|
|
746
|
-
return (r,
|
|
747
|
-
const
|
|
746
|
+
return (r, m) => {
|
|
747
|
+
const d = S("el-option"), y = S("el-select");
|
|
748
748
|
return v(), I("div", {
|
|
749
749
|
class: re([
|
|
750
750
|
"base-date-range-and-select-group__container",
|
|
@@ -754,25 +754,25 @@ const tr = (t, e = "HH:mm:ss") => {
|
|
|
754
754
|
])
|
|
755
755
|
}, [
|
|
756
756
|
F("div", Qn, [
|
|
757
|
-
|
|
757
|
+
_(rt, se({
|
|
758
758
|
"dynamic-expression": h.value,
|
|
759
|
-
"onUpdate:dynamicExpression":
|
|
759
|
+
"onUpdate:dynamicExpression": m[0] || (m[0] = (C) => h.value = C),
|
|
760
760
|
modelValue: u.value,
|
|
761
|
-
"onUpdate:modelValue":
|
|
761
|
+
"onUpdate:modelValue": m[1] || (m[1] = (C) => u.value = C)
|
|
762
762
|
}, s.value), null, 16, ["dynamic-expression", "modelValue"])
|
|
763
763
|
]),
|
|
764
764
|
F("div", Yn, [
|
|
765
|
-
y
|
|
765
|
+
_(y, se({
|
|
766
766
|
modelValue: c.value,
|
|
767
|
-
"onUpdate:modelValue":
|
|
767
|
+
"onUpdate:modelValue": m[2] || (m[2] = (C) => c.value = C)
|
|
768
768
|
}, r.selectOptions ?? {}, {
|
|
769
769
|
style: { width: r.selectWidth },
|
|
770
770
|
disabled: f.value ?? r.disabled,
|
|
771
771
|
clearable: !1
|
|
772
772
|
}), {
|
|
773
773
|
default: E(() => [
|
|
774
|
-
(v(!0), I(q, null, le(r.options, (
|
|
775
|
-
key:
|
|
774
|
+
(v(!0), I(q, null, le(r.options, (C) => (v(), V(d, se({ ref_for: !0 }, C, {
|
|
775
|
+
key: C.value
|
|
776
776
|
}), null, 16))), 128))
|
|
777
777
|
]),
|
|
778
778
|
_: 1
|
|
@@ -856,20 +856,20 @@ const tr = (t, e = "HH:mm:ss") => {
|
|
|
856
856
|
g(h);
|
|
857
857
|
return;
|
|
858
858
|
}
|
|
859
|
-
const { min: r, max:
|
|
859
|
+
const { min: r, max: m } = o;
|
|
860
860
|
if (h && !c().test(h)) {
|
|
861
861
|
g(l);
|
|
862
862
|
return;
|
|
863
863
|
}
|
|
864
|
-
const
|
|
865
|
-
g(
|
|
864
|
+
const d = Number(h), y = typeof r < "u" && d < r, C = typeof m < "u" && d > m;
|
|
865
|
+
g(C ? m : y ? r : h), o.on?.input?.(l);
|
|
866
866
|
}, f = P(() => R.omit(o.on, ["change", "input"]));
|
|
867
867
|
return (h, r) => {
|
|
868
|
-
const
|
|
868
|
+
const m = S("el-input"), d = ve("paste-trim");
|
|
869
869
|
return v(), I("div", Wn, [
|
|
870
|
-
pe((v(), V(
|
|
870
|
+
pe((v(), V(m, se(s.value, {
|
|
871
871
|
modelValue: i(a),
|
|
872
|
-
"onUpdate:modelValue": r[0] || (r[0] = (
|
|
872
|
+
"onUpdate:modelValue": r[0] || (r[0] = (y) => be(a) ? a.value = y : null)
|
|
873
873
|
}, we(f.value), {
|
|
874
874
|
onInput: u,
|
|
875
875
|
onChange: p
|
|
@@ -879,7 +879,7 @@ const tr = (t, e = "HH:mm:ss") => {
|
|
|
879
879
|
]),
|
|
880
880
|
_: 3
|
|
881
881
|
}, 16, ["modelValue"])), [
|
|
882
|
-
[
|
|
882
|
+
[d]
|
|
883
883
|
])
|
|
884
884
|
]);
|
|
885
885
|
};
|
|
@@ -919,15 +919,15 @@ const Fe = [], Qe = [], _t = () => ({
|
|
|
919
919
|
},
|
|
920
920
|
emits: ["update:modelValue", "change"],
|
|
921
921
|
setup(t, { emit: e }) {
|
|
922
|
-
Te((
|
|
923
|
-
"6fae3be1":
|
|
922
|
+
Te((b) => ({
|
|
923
|
+
"6fae3be1": b.inputWidth
|
|
924
924
|
}));
|
|
925
|
-
const o = t, n = e, { value: a } = ke(o, n), s = () => a.value?.map?.((
|
|
926
|
-
const k = parseFloat(String(
|
|
925
|
+
const o = t, n = e, { value: a } = ke(o, n), s = () => a.value?.map?.((b) => {
|
|
926
|
+
const k = parseFloat(String(b));
|
|
927
927
|
return isNaN(k) ? void 0 : k;
|
|
928
|
-
}) ?? [], l = P(() => R.omit(o.on, ["focus", "input", "change"])), g = (
|
|
929
|
-
if (Reflect.has(o.on,
|
|
930
|
-
const k = Reflect.get(o.on,
|
|
928
|
+
}) ?? [], l = P(() => R.omit(o.on, ["focus", "input", "change"])), g = (b) => {
|
|
929
|
+
if (Reflect.has(o.on, b)) {
|
|
930
|
+
const k = Reflect.get(o.on, b);
|
|
931
931
|
R.isFunction(k) && k(a.value);
|
|
932
932
|
}
|
|
933
933
|
}, { startAsyncTask: c, taskComplete: p } = _t();
|
|
@@ -937,45 +937,45 @@ const Fe = [], Qe = [], _t = () => ({
|
|
|
937
937
|
}, h = () => {
|
|
938
938
|
f(), g("focus");
|
|
939
939
|
}, r = () => {
|
|
940
|
-
let
|
|
941
|
-
return o.precision && (
|
|
940
|
+
let b = "^\\d+$";
|
|
941
|
+
return o.precision && (b = `^\\d+(\\.)?(\\d{1,${o.precision}})?$`), new RegExp(b);
|
|
942
942
|
};
|
|
943
|
-
let
|
|
944
|
-
const
|
|
945
|
-
|
|
946
|
-
},
|
|
947
|
-
if (typeof
|
|
948
|
-
|
|
943
|
+
let m = [...a.value];
|
|
944
|
+
const d = (b) => {
|
|
945
|
+
m = [...b], n("update:modelValue", [...b]);
|
|
946
|
+
}, y = (b, k) => {
|
|
947
|
+
if (typeof b != "number" && !b) {
|
|
948
|
+
m[k] = b;
|
|
949
949
|
return;
|
|
950
950
|
}
|
|
951
|
-
const { min: G, max:
|
|
952
|
-
if (
|
|
953
|
-
m
|
|
951
|
+
const { min: G, max: M } = o, w = [...a.value];
|
|
952
|
+
if (b && !r().test(b)) {
|
|
953
|
+
d(m);
|
|
954
954
|
return;
|
|
955
955
|
}
|
|
956
|
-
const B = Number(
|
|
957
|
-
N || A ? (w.splice(k, 1, N ?
|
|
958
|
-
},
|
|
956
|
+
const B = Number(b), A = typeof G < "u" && B < G, N = typeof M < "u" && B > M;
|
|
957
|
+
N || A ? (w.splice(k, 1, N ? M : G), d(w)) : m[k] = b;
|
|
958
|
+
}, C = () => {
|
|
959
959
|
c(), u = setTimeout(() => {
|
|
960
960
|
g("change"), n("change", s()), p();
|
|
961
|
-
}, 200),
|
|
961
|
+
}, 200), d(s());
|
|
962
962
|
};
|
|
963
963
|
return Oe(() => {
|
|
964
964
|
f();
|
|
965
|
-
}), (
|
|
966
|
-
const G = S("el-input"),
|
|
965
|
+
}), (b, k) => {
|
|
966
|
+
const G = S("el-input"), M = ve("paste-trim");
|
|
967
967
|
return v(), I("div", qn, [
|
|
968
968
|
(v(), I(q, null, le([0, 1], (w) => (v(), I(q, { key: w }, [
|
|
969
|
-
pe(
|
|
969
|
+
pe(_(G, se({ ref_for: !0 }, w === 0 ? b.minProps : b.maxProps, {
|
|
970
970
|
modelValue: i(a)[w],
|
|
971
971
|
"onUpdate:modelValue": (B) => i(a)[w] = B,
|
|
972
|
-
disabled:
|
|
972
|
+
disabled: b.disabled
|
|
973
973
|
}, we(l.value), {
|
|
974
974
|
onFocus: h,
|
|
975
|
-
onChange:
|
|
976
|
-
onInput: (B) =>
|
|
975
|
+
onChange: C,
|
|
976
|
+
onInput: (B) => y(B, w)
|
|
977
977
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "disabled", "onInput"]), [
|
|
978
|
-
[
|
|
978
|
+
[M]
|
|
979
979
|
]),
|
|
980
980
|
w === 0 ? (v(), I("div", Jn, "至")) : Z("", !0)
|
|
981
981
|
], 64))), 64))
|
|
@@ -1038,13 +1038,13 @@ const Fe = [], Qe = [], _t = () => ({
|
|
|
1038
1038
|
onClick: g
|
|
1039
1039
|
}, {
|
|
1040
1040
|
default: E(() => [
|
|
1041
|
-
|
|
1041
|
+
_(i(eo))
|
|
1042
1042
|
]),
|
|
1043
1043
|
_: 1
|
|
1044
1044
|
})) : Z("", !0),
|
|
1045
|
-
|
|
1045
|
+
_(u, null, {
|
|
1046
1046
|
default: E(() => [
|
|
1047
|
-
|
|
1047
|
+
_(i(to))
|
|
1048
1048
|
]),
|
|
1049
1049
|
_: 1
|
|
1050
1050
|
})
|
|
@@ -1143,7 +1143,10 @@ const Fe = [], Qe = [], _t = () => ({
|
|
|
1143
1143
|
R.isString(o) ? e.style = `width: ${t}; ${o}` : R.isObject(o) && (o.width || (o.width = t));
|
|
1144
1144
|
}
|
|
1145
1145
|
return e;
|
|
1146
|
-
}, ra =
|
|
1146
|
+
}, ra = BigInt("9223372036854775807"), ia = (t) => {
|
|
1147
|
+
const e = t.replace(/[^0-9]/g, "");
|
|
1148
|
+
return e && BigInt(e) > ra ? e.slice(0, -1) : e;
|
|
1149
|
+
}, ca = { class: "input_icons" }, ua = /* @__PURE__ */ K({
|
|
1147
1150
|
__name: "GroupSelectInput",
|
|
1148
1151
|
props: {
|
|
1149
1152
|
selectAttrs: {},
|
|
@@ -1194,22 +1197,25 @@ const Fe = [], Qe = [], _t = () => ({
|
|
|
1194
1197
|
return Object.assign({}, d);
|
|
1195
1198
|
}), c = () => {
|
|
1196
1199
|
n("change", a.value);
|
|
1197
|
-
}, p = (
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1200
|
+
}, p = P(() => s.value.find((y) => y.value === a.value[1])?.placeholder ?? o.placeholder), u = P(
|
|
1201
|
+
() => s.value.find((d) => d.value === a.value[1])
|
|
1202
|
+
), f = (d) => {
|
|
1203
|
+
const [, y] = a.value;
|
|
1204
|
+
let C = d;
|
|
1205
|
+
u.value?.type === "id" && (C = ia(d)), n("update:modelValue", [C, y || ""]);
|
|
1206
|
+
}, h = () => {
|
|
1201
1207
|
const d = a.value[0];
|
|
1202
|
-
|
|
1203
|
-
},
|
|
1208
|
+
f(""), (o.changeOnSelect || d) && c();
|
|
1209
|
+
}, r = P(
|
|
1204
1210
|
() => Se(
|
|
1205
1211
|
R.omit(o, ["modelValue", "groupSelectInputAttrs", "placeholder", "options", "className", "class"])
|
|
1206
1212
|
)
|
|
1207
|
-
),
|
|
1208
|
-
|
|
1213
|
+
), m = () => {
|
|
1214
|
+
f(""), c();
|
|
1209
1215
|
};
|
|
1210
|
-
return (d,
|
|
1211
|
-
const
|
|
1212
|
-
return pe((v(), V(
|
|
1216
|
+
return (d, y) => {
|
|
1217
|
+
const C = S("el-icon"), b = S("el-option"), k = S("el-select"), G = S("el-input"), M = ve("paste-trim");
|
|
1218
|
+
return pe((v(), V(G, se({
|
|
1213
1219
|
class: [
|
|
1214
1220
|
"group-select-input",
|
|
1215
1221
|
d.className || "",
|
|
@@ -1217,57 +1223,58 @@ const Fe = [], Qe = [], _t = () => ({
|
|
|
1217
1223
|
"is-reverse": d.selectToFirst
|
|
1218
1224
|
}
|
|
1219
1225
|
]
|
|
1220
|
-
},
|
|
1226
|
+
}, r.value, {
|
|
1221
1227
|
"model-value": i(a)[0],
|
|
1222
|
-
placeholder:
|
|
1228
|
+
placeholder: p.value,
|
|
1223
1229
|
clearable: !1,
|
|
1224
|
-
|
|
1230
|
+
maxlength: u.value?.maxLength ?? r.value.maxlength,
|
|
1231
|
+
"onUpdate:modelValue": f,
|
|
1225
1232
|
onChange: c
|
|
1226
1233
|
}), {
|
|
1227
1234
|
suffix: E(() => [
|
|
1228
|
-
F("div",
|
|
1229
|
-
i(a)[0] ? (v(), V(
|
|
1235
|
+
F("div", ca, [
|
|
1236
|
+
i(a)[0] ? (v(), V(C, {
|
|
1230
1237
|
key: 0,
|
|
1231
|
-
onClick:
|
|
1238
|
+
onClick: m
|
|
1232
1239
|
}, {
|
|
1233
1240
|
default: E(() => [
|
|
1234
|
-
|
|
1241
|
+
_(i(eo))
|
|
1235
1242
|
]),
|
|
1236
1243
|
_: 1
|
|
1237
1244
|
})) : Z("", !0),
|
|
1238
|
-
|
|
1245
|
+
_(C, null, {
|
|
1239
1246
|
default: E(() => [
|
|
1240
|
-
|
|
1247
|
+
_(i(to))
|
|
1241
1248
|
]),
|
|
1242
1249
|
_: 1
|
|
1243
1250
|
})
|
|
1244
1251
|
])
|
|
1245
1252
|
]),
|
|
1246
1253
|
prepend: E(() => [
|
|
1247
|
-
|
|
1254
|
+
_(k, se({
|
|
1248
1255
|
modelValue: i(a)[1],
|
|
1249
|
-
"onUpdate:modelValue":
|
|
1256
|
+
"onUpdate:modelValue": y[0] || (y[0] = (w) => i(a)[1] = w)
|
|
1250
1257
|
}, g.value, {
|
|
1251
1258
|
disabled: g.value.disabled ?? d.disabled,
|
|
1252
1259
|
loading: i(l),
|
|
1253
|
-
onChange:
|
|
1260
|
+
onChange: h
|
|
1254
1261
|
}), {
|
|
1255
1262
|
default: E(() => [
|
|
1256
|
-
(v(!0), I(q, null, le(i(s), (
|
|
1257
|
-
key:
|
|
1258
|
-
}, { ref_for: !0 },
|
|
1263
|
+
(v(!0), I(q, null, le(i(s), (w) => (v(), V(b, se({
|
|
1264
|
+
key: w.value
|
|
1265
|
+
}, { ref_for: !0 }, w), null, 16))), 128))
|
|
1259
1266
|
]),
|
|
1260
1267
|
_: 1
|
|
1261
1268
|
}, 16, ["modelValue", "disabled", "loading"])
|
|
1262
1269
|
]),
|
|
1263
1270
|
_: 1
|
|
1264
|
-
}, 16, ["class", "model-value", "placeholder"])), [
|
|
1265
|
-
[
|
|
1271
|
+
}, 16, ["class", "model-value", "placeholder", "maxlength"])), [
|
|
1272
|
+
[M]
|
|
1266
1273
|
]);
|
|
1267
1274
|
};
|
|
1268
1275
|
}
|
|
1269
|
-
}),
|
|
1270
|
-
[oe.GROUP_SELECT_INPUT]:
|
|
1276
|
+
}), da = /* @__PURE__ */ ae(ua, [["__scopeId", "data-v-78a9e404"]]), Pt = {
|
|
1277
|
+
[oe.GROUP_SELECT_INPUT]: da,
|
|
1271
1278
|
[oe.SELECT]: sa,
|
|
1272
1279
|
[oe.SEARCH_INPUT]: na,
|
|
1273
1280
|
[oe.DATE]: rt,
|
|
@@ -1277,13 +1284,13 @@ const Fe = [], Qe = [], _t = () => ({
|
|
|
1277
1284
|
[oe.DATE_RANGE_AND_SELECT_GROUP]: Zn,
|
|
1278
1285
|
[oe.NUMBER_INPUT]: Kn,
|
|
1279
1286
|
[oe.INPUT]: Xn
|
|
1280
|
-
},
|
|
1287
|
+
}, pa = "__custom-component__", Ee = /* @__PURE__ */ new Map(), Ie = (t) => `${pa}${t}`, uo = (t) => Ee.has(Ie(t));
|
|
1281
1288
|
function it(t, e) {
|
|
1282
1289
|
Ee.has(Ie(t)) && console.warn(`${t} 组件已经存在,重复定义会覆盖原有的组件`), Ee.set(Ie(t), e);
|
|
1283
1290
|
}
|
|
1284
|
-
const
|
|
1291
|
+
const ma = (t) => Ee.get(Ie(t)), fa = (t) => Ee.has(Ie(t)), ga = (t) => Ee.get(Ie(t))?.component, ha = (t) => {
|
|
1285
1292
|
Ee.has(Ie(t)) && Ee.delete(Ie(t));
|
|
1286
|
-
},
|
|
1293
|
+
}, va = 99999999, Aa = [
|
|
1287
1294
|
{
|
|
1288
1295
|
text: "今日",
|
|
1289
1296
|
value: () => lo()
|
|
@@ -1373,7 +1380,7 @@ const da = (t) => Ee.get(Ie(t)), pa = (t) => Ee.has(Ie(t)), ma = (t) => Ee.get(I
|
|
|
1373
1380
|
/* 默认选择时间的时候从开始时间的 00:00 到结束时间的 23:59 */
|
|
1374
1381
|
useDefaultTimeToDay: !0,
|
|
1375
1382
|
/* 默认都带上快捷时间 */
|
|
1376
|
-
shortcuts:
|
|
1383
|
+
shortcuts: Aa
|
|
1377
1384
|
})
|
|
1378
1385
|
),
|
|
1379
1386
|
[oe.GROUP_SELECT_INPUT]: (t) => Pe(
|
|
@@ -1436,7 +1443,7 @@ const da = (t) => Ee.get(Ie(t)), pa = (t) => Ee.has(Ie(t)), ma = (t) => Ee.get(I
|
|
|
1436
1443
|
},
|
|
1437
1444
|
separator: "至",
|
|
1438
1445
|
min: 0,
|
|
1439
|
-
max:
|
|
1446
|
+
max: va
|
|
1440
1447
|
})
|
|
1441
1448
|
);
|
|
1442
1449
|
},
|
|
@@ -1456,19 +1463,19 @@ const da = (t) => Ee.get(Ie(t)), pa = (t) => Ee.has(Ie(t)), ma = (t) => Ee.get(I
|
|
|
1456
1463
|
min: 0
|
|
1457
1464
|
}), t;
|
|
1458
1465
|
}
|
|
1459
|
-
},
|
|
1466
|
+
}, Ca = (t) => typeof t == "string", ya = (t) => {
|
|
1460
1467
|
const { tag: e } = t;
|
|
1461
1468
|
if (Jt(e) && Reflect.has(ct, e))
|
|
1462
1469
|
return Reflect.get(ct, e)(t);
|
|
1463
|
-
if (
|
|
1464
|
-
const o =
|
|
1470
|
+
if (Ca(e) && uo(e)) {
|
|
1471
|
+
const o = ma(e);
|
|
1465
1472
|
if (o?.defaultPraseStrategy && $t(o.defaultPraseStrategy))
|
|
1466
1473
|
return o.defaultPraseStrategy(t);
|
|
1467
1474
|
}
|
|
1468
1475
|
};
|
|
1469
|
-
let
|
|
1476
|
+
let ba = 0;
|
|
1470
1477
|
class po {
|
|
1471
|
-
id =
|
|
1478
|
+
id = ba++;
|
|
1472
1479
|
_customTagName;
|
|
1473
1480
|
tag;
|
|
1474
1481
|
label;
|
|
@@ -1519,7 +1526,7 @@ class po {
|
|
|
1519
1526
|
*/
|
|
1520
1527
|
stopStacks = /* @__PURE__ */ new Set();
|
|
1521
1528
|
get getFormComponent() {
|
|
1522
|
-
return this.tag ? this._customTagName || uo(this.tag) ? kt(
|
|
1529
|
+
return this.tag ? this._customTagName || uo(this.tag) ? kt(ga(this.tag)) : Reflect.has(Pt, this.tag) ? kt(Pt[this.tag]) : this.tag : this.tag;
|
|
1523
1530
|
}
|
|
1524
1531
|
constructor(e) {
|
|
1525
1532
|
e && this.initProps(e);
|
|
@@ -1536,11 +1543,11 @@ class po {
|
|
|
1536
1543
|
update(e) {
|
|
1537
1544
|
if (Xe(e.tag)) {
|
|
1538
1545
|
const o = `vertical__${Ln(e.tag) || e.prop}`;
|
|
1539
|
-
|
|
1546
|
+
fa(o) || it(o, {
|
|
1540
1547
|
component: e.tag
|
|
1541
1548
|
}), this._customTagName = o, e.tag = o;
|
|
1542
1549
|
}
|
|
1543
|
-
R.merge(this,
|
|
1550
|
+
R.merge(this, ya(e) || e);
|
|
1544
1551
|
}
|
|
1545
1552
|
/**
|
|
1546
1553
|
* 校验当前是否可见。
|
|
@@ -1582,11 +1589,11 @@ class po {
|
|
|
1582
1589
|
* 实例销毁
|
|
1583
1590
|
*/
|
|
1584
1591
|
destroy() {
|
|
1585
|
-
this.stopStacks.forEach((e) => e()), this.stopStacks.clear(), this._customTagName &&
|
|
1592
|
+
this.stopStacks.forEach((e) => e()), this.stopStacks.clear(), this._customTagName && ha(this._customTagName);
|
|
1586
1593
|
}
|
|
1587
1594
|
}
|
|
1588
1595
|
function mo(t) {
|
|
1589
|
-
const e = R.isFunction(t), o = e ? t() : t, n =
|
|
1596
|
+
const e = R.isFunction(t), o = e ? t() : t, n = T(new po(o));
|
|
1590
1597
|
if (e) {
|
|
1591
1598
|
const a = Je(() => {
|
|
1592
1599
|
const s = e ? t() : t;
|
|
@@ -1598,7 +1605,7 @@ function mo(t) {
|
|
|
1598
1605
|
}
|
|
1599
1606
|
return i(n);
|
|
1600
1607
|
}
|
|
1601
|
-
const
|
|
1608
|
+
const _a = (t) => {
|
|
1602
1609
|
const { formItemAttrs: e, prop: o, label: n } = t;
|
|
1603
1610
|
return {
|
|
1604
1611
|
label: n,
|
|
@@ -1610,7 +1617,7 @@ const ya = (t) => {
|
|
|
1610
1617
|
return;
|
|
1611
1618
|
const { defaultValue: o } = t;
|
|
1612
1619
|
return ge(o) ?? void 0;
|
|
1613
|
-
},
|
|
1620
|
+
}, wa = (t) => {
|
|
1614
1621
|
const { prop: e, readonly: o, defaultChecked: n } = t, a = {
|
|
1615
1622
|
prop: e,
|
|
1616
1623
|
readonly: !!o,
|
|
@@ -1624,9 +1631,9 @@ const ya = (t) => {
|
|
|
1624
1631
|
columns: []
|
|
1625
1632
|
}, n = t.length;
|
|
1626
1633
|
for (let a = 0; a < n; ++a)
|
|
1627
|
-
o.columns.push(
|
|
1634
|
+
o.columns.push(wa(t[a]));
|
|
1628
1635
|
return o;
|
|
1629
|
-
},
|
|
1636
|
+
}, Ba = (t) => {
|
|
1630
1637
|
const e = {}, o = t.length;
|
|
1631
1638
|
for (let n = 0; n < o; ++n) {
|
|
1632
1639
|
const { classifyName: a } = t[n], s = a ?? je;
|
|
@@ -1634,7 +1641,7 @@ const ya = (t) => {
|
|
|
1634
1641
|
l || Reflect.set(e, s, l = []), l.push(t[n]);
|
|
1635
1642
|
}
|
|
1636
1643
|
return e;
|
|
1637
|
-
},
|
|
1644
|
+
}, Da = (t) => Array.isArray(t), Ea = (t, e) => {
|
|
1638
1645
|
const o = tt(e, Re), n = new Map(o.columns.map((a) => [a.prop, a]));
|
|
1639
1646
|
return t.forEach(({ prop: a, checked: s }, l) => {
|
|
1640
1647
|
const g = n.get(a);
|
|
@@ -1651,8 +1658,8 @@ const ya = (t) => {
|
|
|
1651
1658
|
}
|
|
1652
1659
|
return n;
|
|
1653
1660
|
}, ho = (t, e) => {
|
|
1654
|
-
if (
|
|
1655
|
-
return
|
|
1661
|
+
if (Da(t))
|
|
1662
|
+
return Ea(t, e);
|
|
1656
1663
|
const { groups: o = [], useGroup: n = je } = t, a = [], s = tt(e, je).columns, l = (g) => {
|
|
1657
1664
|
const { groupName: c, columns: p } = g, u = new Map(p.map((f) => [f.prop, f]));
|
|
1658
1665
|
a.push({
|
|
@@ -1672,37 +1679,37 @@ const ya = (t) => {
|
|
|
1672
1679
|
useGroup: n,
|
|
1673
1680
|
groups: a
|
|
1674
1681
|
};
|
|
1675
|
-
},
|
|
1682
|
+
}, Ia = { class: "advanced-filter-form__container" }, Rt = "advanced_filter_", ka = /* @__PURE__ */ K({
|
|
1676
1683
|
__name: "AdvancedFilterForm",
|
|
1677
1684
|
setup(t) {
|
|
1678
|
-
const e = Me(), o =
|
|
1679
|
-
const r =
|
|
1685
|
+
const e = Me(), o = T(), n = T(), a = P(() => {
|
|
1686
|
+
const r = Ba(e.columns);
|
|
1680
1687
|
return {
|
|
1681
1688
|
groupNames: Reflect.ownKeys(r),
|
|
1682
1689
|
formItems: r
|
|
1683
1690
|
};
|
|
1684
|
-
}), s =
|
|
1685
|
-
(
|
|
1691
|
+
}), s = T(a.value?.groupNames?.[0] ?? ""), l = (r) => a.value.formItems[r].every(
|
|
1692
|
+
(m) => !!e.activeGroupColumnsMap.get(m.prop)?.checked
|
|
1686
1693
|
), g = (r) => {
|
|
1687
|
-
const
|
|
1688
|
-
(
|
|
1694
|
+
const m = a.value.formItems[r], d = m.filter(
|
|
1695
|
+
(y) => !!e.activeGroupColumnsMap.get(y.prop)?.checked
|
|
1689
1696
|
).length;
|
|
1690
|
-
return
|
|
1691
|
-
}, c = (r,
|
|
1692
|
-
a.value.formItems[r].forEach((
|
|
1693
|
-
e.updateActiveGroupColumnChecked(
|
|
1697
|
+
return d > 0 && d < m.length;
|
|
1698
|
+
}, c = (r, m) => {
|
|
1699
|
+
a.value.formItems[r].forEach((d) => {
|
|
1700
|
+
e.updateActiveGroupColumnChecked(d.prop, m);
|
|
1694
1701
|
});
|
|
1695
|
-
}, p = (r) => !!e.activeGroupColumnsMap.get(r)?.checked, u = (r,
|
|
1702
|
+
}, p = (r) => !!e.activeGroupColumnsMap.get(r)?.checked, u = (r, m) => `${m ? "#" : ""}${Rt}${r}`, f = (r) => {
|
|
1696
1703
|
r.preventDefault();
|
|
1697
1704
|
}, h = (r) => {
|
|
1698
1705
|
s.value = r ? r.replace(`#${Rt}`, "") : a.value?.groupNames?.[0] ?? "";
|
|
1699
1706
|
};
|
|
1700
1707
|
return e.on(ue.UPDATE_ACTIVE_GROUP, () => {
|
|
1701
1708
|
n.value?.scrollTo(u(a.value.groupNames[0], !0));
|
|
1702
|
-
}), (r,
|
|
1703
|
-
const
|
|
1704
|
-
return v(), I("div",
|
|
1705
|
-
|
|
1709
|
+
}), (r, m) => {
|
|
1710
|
+
const d = S("el-anchor-link"), y = S("el-checkbox"), C = S("el-col"), b = S("el-row"), k = S("el-form"), G = ve("ellipsis");
|
|
1711
|
+
return v(), I("div", Ia, [
|
|
1712
|
+
_(i(nn), {
|
|
1706
1713
|
ref_key: "anchorRef",
|
|
1707
1714
|
ref: n,
|
|
1708
1715
|
class: "advanced-filter-form__groups",
|
|
@@ -1716,13 +1723,13 @@ const ya = (t) => {
|
|
|
1716
1723
|
onChange: h
|
|
1717
1724
|
}, {
|
|
1718
1725
|
default: E(() => [
|
|
1719
|
-
(v(!0), I(q, null, le(a.value.groupNames, (
|
|
1720
|
-
key:
|
|
1721
|
-
class: re(["group-item", { "is-active":
|
|
1722
|
-
href: u(
|
|
1726
|
+
(v(!0), I(q, null, le(a.value.groupNames, (M) => (v(), V(d, {
|
|
1727
|
+
key: M,
|
|
1728
|
+
class: re(["group-item", { "is-active": M === s.value }]),
|
|
1729
|
+
href: u(M, !0)
|
|
1723
1730
|
}, {
|
|
1724
1731
|
default: E(() => [
|
|
1725
|
-
j($(
|
|
1732
|
+
j($(M), 1)
|
|
1726
1733
|
]),
|
|
1727
1734
|
_: 2
|
|
1728
1735
|
}, 1032, ["class", "href"]))), 128))
|
|
@@ -1734,41 +1741,41 @@ const ya = (t) => {
|
|
|
1734
1741
|
ref: o,
|
|
1735
1742
|
class: "advanced-filter-form__content"
|
|
1736
1743
|
}, [
|
|
1737
|
-
|
|
1744
|
+
_(k, {
|
|
1738
1745
|
model: i(e).formData,
|
|
1739
|
-
onSubmit:
|
|
1746
|
+
onSubmit: m[0] || (m[0] = _e(() => {
|
|
1740
1747
|
}, ["prevent"]))
|
|
1741
1748
|
}, {
|
|
1742
1749
|
default: E(() => [
|
|
1743
|
-
|
|
1750
|
+
_(b, { span: 24 }, {
|
|
1744
1751
|
default: E(() => [
|
|
1745
|
-
(v(!0), I(q, null, le(a.value.groupNames, (
|
|
1746
|
-
|
|
1747
|
-
id: u(
|
|
1752
|
+
(v(!0), I(q, null, le(a.value.groupNames, (M) => (v(), I(q, { key: M }, [
|
|
1753
|
+
_(C, {
|
|
1754
|
+
id: u(M),
|
|
1748
1755
|
class: "advanced-filter-form__item advanced-filter-form__group-title",
|
|
1749
1756
|
span: 24
|
|
1750
1757
|
}, {
|
|
1751
1758
|
default: E(() => [
|
|
1752
|
-
y
|
|
1753
|
-
"model-value": l(
|
|
1754
|
-
indeterminate: g(
|
|
1755
|
-
onChange: (w) => c(
|
|
1759
|
+
_(y, {
|
|
1760
|
+
"model-value": l(M),
|
|
1761
|
+
indeterminate: g(M),
|
|
1762
|
+
onChange: (w) => c(M, w)
|
|
1756
1763
|
}, {
|
|
1757
1764
|
default: E(() => [
|
|
1758
|
-
j($(
|
|
1765
|
+
j($(M), 1)
|
|
1759
1766
|
]),
|
|
1760
1767
|
_: 2
|
|
1761
1768
|
}, 1032, ["model-value", "indeterminate", "onChange"])
|
|
1762
1769
|
]),
|
|
1763
1770
|
_: 2
|
|
1764
1771
|
}, 1032, ["id"]),
|
|
1765
|
-
(v(!0), I(q, null, le(a.value.formItems[
|
|
1772
|
+
(v(!0), I(q, null, le(a.value.formItems[M], (w) => (v(), V(C, {
|
|
1766
1773
|
key: w.prop,
|
|
1767
1774
|
class: "advanced-filter-form__item",
|
|
1768
1775
|
span: 12
|
|
1769
1776
|
}, {
|
|
1770
1777
|
default: E(() => [
|
|
1771
|
-
y
|
|
1778
|
+
_(y, {
|
|
1772
1779
|
disabled: w.readonly,
|
|
1773
1780
|
"model-value": p(w.prop),
|
|
1774
1781
|
onChange: (B) => i(e).updateActiveGroupColumnChecked(w.prop, B)
|
|
@@ -1782,7 +1789,7 @@ const ya = (t) => {
|
|
|
1782
1789
|
]),
|
|
1783
1790
|
_: 2
|
|
1784
1791
|
}, 1032, ["disabled", "model-value", "onChange"]),
|
|
1785
|
-
|
|
1792
|
+
_(In, {
|
|
1786
1793
|
prop: w.prop,
|
|
1787
1794
|
disabled: w.unConfigurable
|
|
1788
1795
|
}, null, 8, ["prop", "disabled"])
|
|
@@ -1800,10 +1807,10 @@ const ya = (t) => {
|
|
|
1800
1807
|
]);
|
|
1801
1808
|
};
|
|
1802
1809
|
}
|
|
1803
|
-
}),
|
|
1810
|
+
}), Sa = /* @__PURE__ */ ae(ka, [["__scopeId", "data-v-574f4e4e"]]), Ke = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAKg0lEQVR4Xu3dT4hdZxnH8W6yaBdBSroIVXBRKZVSUjcBu3HRUrpwowTEbqQIYlAQCrPpxkVcOospzp1z599OS7CEzGIQXXSTwOhGSoK0KSJIDJJQYkK7yUafH3Os8TfvJHdm3ve9857z/cCPljC57/s8T3Jz7rn3nPvEEwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAzMPa2tpzXde9PZ1Or6ysrHwU/38n8u/I7fi165EPIm/Gzz3tvxe71Bv1SL2Kvl2L3Io8iNyN3IhcVY/Va/+9OKZimK/G0Lb6vwyz5H5keXV19QV/rLFSL9STvjfer/2ypd77Y+GYmEwmL8eANhODmzX3IheWlpZO+mOPhWpXD/peeH9mimagWfhjY45iID+P4XzuwzpMdDgWj/e6rzF0qrk/FN3Tk0Pkc83E18AcxFB/lxjQkTOmAfdPMHt6cNRoNr4WKtILSB9KziwvL7/kaw6NavS6c0Yz8jVRQTT/rA8jd3T2ZnFx8UlfeyhUW3+Gak/tmXPW10Zh0fTtxCBK5IKvPRSqLVFviWz72iio9KGV5d4QTwH3p3IPfbbqoOFQq6Jo+I4PoHCWfQ+tU02JOktmx/eAAqLR5xLNL5p49vtsY2PjGd9Lq1SLavI6K+Sc7wWZRZMvJhpfPPEH6rzvpVWqxeurlIu+F2SWaHqV6GyP76VVlc5cJeN7QUbR4FPe8Iq55vtplWpJ1Fcrp3w/yGR9ff35RMNr5Zbvp1WqJVFflWiGvh9kMplMXvGGV8wD30+rVEuivirRDH0/yCSOnc94wyvmru+nVaolUV+VaIa+H2QSzz7PesMr5obvp1WqJVFflWiGvh9kEg0+4Q2vmKu+n1aplkR9tXLC94OMuoNdLZgzb/teWqVaEvXVyJbvBZlV/hzWFxnSddf99fp7aiwdPo9VgW4kEM2+6c0vnME986mmRJ0lc5MbZFQSzV5IDKBYpgO8GYFq8joLZ8H3gEL6C30+TAwhe2KdTV9/KFSb11simtWQLzw7lqLpb/kgCkQ3HxjsHTpUm2pM1J01mpWvjQqi+Zd9GDkzhhs3lLphw0O57GuiosRAsmRMd+QodWcYxdfCHOR+Fhzj6cjcp8/H8K9vUzTgDC/cdSOI0d6BQ7X3PfC+zBzNYIxPME3QmZJu9xTwQd8n2WGo/9P/a3LQ6/7V8wXOVjWgv+b6/PTxV87p8l2uk96HetP3yPv2RdRj9XpI1+yPSrf7AcfTcUz8YuRb8YL06wzz4KKHp3Sxk67niL8QZ/pPVvPBQwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAGKysrLw2nU6/13XdT/S1YPouC33vhb4KwX8WaepV9O270bcfRd6J/CzyffXWfxYNiGG+EcNbiiHe9y98sXzcf7/hN/wxxk496XvzcaJvD+e+eq2e+2PgmFlbW3slBvZeYoiPy4MY8C/jD8RX/THHRj1QL9STRJ8el/c0A39MHAMxnHcTAzto/hlZ8MceC9Xe98D7ctC864+NOdFXqkX+nhjSoRPPoFd8naFTzd6Ho0Qz0Wx8HVQU/5w/7YPJmL/5ekOlWhP1Z4lm5OuhkhjAJR9I5gz+cEs1JurOmUu+Jiroz7D4MLInDhO+7WsPhWrzektEs/K1UVD8s/1cNP5TH0Sh/MHXHwrVlqi3RD7VzHx9FNK/x+FDKJZ4BvyB76F1qsnrLBnNzPeAAnRmxJtfIX/yfbRONSXqLBrOalVQ67WHZ0gfTVEtXl+N8Fqkgul0et0bXyPx7Pcr30urVIvXVyOane8FGUWTn/Km10oM94++n1apFq+vYp7y/SCTjY2NryQaXiXxrPtX30+rVIvXVyuaoe8HmcQx7Mve8Ir5l++nVaolUV+VaIa+H2QShwbf9IZXzAPfT6tUS6K+KtEMfT/IJA4NvuYNr5ibvp9WqZZEfVWiGfp+kMnm5uaXvOEV82ffT6tUS6K+KtEMfT/IKP6J/oc3vUbime/XvpdWqRavr0Y0O98LMpvXG4VDuqRUtXh9NcIbhRVEo8964yvkE99H61RTos7SOev7QAHR6PcTzS+Zd3wPrVNNiTpL5n3fAwqp/FmivywtLZ30PbRONam2RL1FMqTPsjUhmr7qQyiUH/vaQ6HaEvWWyKqvjcJWV1e/HI2/kxhGtsSL2d/7ukOjGr3uzLmjWfm6qCCafy4xkGwZ4qGV6w+19tSeMed8TVRU6Mq4u/HMesbXGirVqpoTfThShnglZpP6a9S3fUCHyZgvDc14KfM216AfQ/FM+NPukOf34/d+EH9AvuOPOTbqgXrh/Zkxn2gG/pg4RnSjMr1jO53xysP+D8MP/XHGTj2Z9S+Keq2ec5O4xvTvl1yIrER+2w/8oi451UC5icDjqUf9x3t07+Pf9Ge9LsWvT+O/v+D9DQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABH1nXdicjpyWTyom5yphuhbWxsPOM/h0eLHp5aX19/Pnr4im52Hf99Vr31n0MDdAvMGOKbMcCth2+RmUg3HdCXc+am3qhHib49nC31mtuONmBxcfHJGNhC5GZikI/KjobsjzdW/ZPLTqJPj4p6vqAZ+OPhGIihvhX5MDG4g2Q7DsFe88ceC9WuHiT6MnM0A83CHxtzFIO57IM6YhZ9jaFTzYk+HCWXfQ3MQWIwuXLJ1xoq1ZqoP0t8LVTU35Z/z1ByZQxfqKMave6c0Yx8TVTQv5DcM5DMubu8vPySrz0Uqk01JurOGk6AVKYzJRlekM+UWGfT1x8K1eb1lohmxdmtirrdU7l7BlEqMeBXfQ+tU01eZ+Es+B5QgN4F7w7+PsdRs+X7aJ1qStRZMjf5BEMF8cx3PtH84hnS9xmqFq+vRjQ73wsym874zau5M6SzMaXP/u0Xzc73goy63Q8e7ml8jcRwr/h+WqVavL6K4QOOpURzTycaXiVxWPKR76dVqsXrq5jTvh9koo+sJxpeK3d8P61SLYn6qkQz9P0gE13P4Q2vGd9Pq7yumtEMfT/IZF5nX/rc9v20SrUk6quSIZ0NPHb690D2NL1G4oXtdd9Pq1SL11crvBdSmDe8VoZ0inJep8oV3wsy63btaXzpTAf0gTvV4vVVSud7QWbT3eukvfGlc39I11yrFtWUqLNoNDvfCwroDn699FGz7HtonWpK1FkyO74HFFL5EOHe6urqC76H1qkm1Zaot0iGdIjahO6INxc4QC742kOh2hL1lsi2r43C+jtw+CCyRh/JWFpaOulrD4Vqq/GxkzHfKWauuvx34vi/TCaT133NoVGNXnfmjO4OMcdKV+iOHEP6ePvjFPz4+2juDHOs9XfmyHLzAb2JNuQbNexHNWd8A/HuGO4I05R+wJuJYc0andG5MOabC/S3btUL90Of3dIMxvgE04zp7s0IZr7eOn7+s/jv8hBP5R5Wfwp4ue/Nnp7tE93EenA3txgsfWpUx9YxtCv9mZr/XgNxO37tug4nIuf58Nz+1Bv1qD/0uha5FXnQ7R7O3ohcVY/5hC4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAYG7+A6qAtBODi1MzAAAAAElFTkSuQmCC", Ga = { class: "advanced-filter-selected-list__container" }, Ta = { class: "selected-item__label" }, Ma = {
|
|
1804
1811
|
key: 0,
|
|
1805
1812
|
class: "selected-item__icon"
|
|
1806
|
-
},
|
|
1813
|
+
}, xa = /* @__PURE__ */ K({
|
|
1807
1814
|
__name: "AdvancedFilterSelectedList",
|
|
1808
1815
|
setup(t) {
|
|
1809
1816
|
const e = Me(), o = P({
|
|
@@ -1818,8 +1825,8 @@ const ya = (t) => {
|
|
|
1818
1825
|
);
|
|
1819
1826
|
return (a, s) => {
|
|
1820
1827
|
const l = S("el-icon"), g = ve("ellipsis");
|
|
1821
|
-
return v(), I("div",
|
|
1822
|
-
|
|
1828
|
+
return v(), I("div", Ga, [
|
|
1829
|
+
_(i(We), {
|
|
1823
1830
|
modelValue: o.value,
|
|
1824
1831
|
"onUpdate:modelValue": s[0] || (s[0] = (c) => o.value = c),
|
|
1825
1832
|
draggable: ".selected-item-drag"
|
|
@@ -1833,17 +1840,17 @@ const ya = (t) => {
|
|
|
1833
1840
|
src: Ke,
|
|
1834
1841
|
alt: "... "
|
|
1835
1842
|
}, null, -1)),
|
|
1836
|
-
pe((v(), I("span",
|
|
1843
|
+
pe((v(), I("span", Ta, [
|
|
1837
1844
|
j($(n.value(c.prop)), 1)
|
|
1838
1845
|
])), [
|
|
1839
1846
|
[g]
|
|
1840
1847
|
]),
|
|
1841
|
-
c.readonly ? Z("", !0) : (v(), I("div",
|
|
1842
|
-
|
|
1848
|
+
c.readonly ? Z("", !0) : (v(), I("div", Ma, [
|
|
1849
|
+
_(l, {
|
|
1843
1850
|
onClick: (p) => i(e).updateActiveGroupColumnChecked(c.prop, !1)
|
|
1844
1851
|
}, {
|
|
1845
1852
|
default: E(() => [
|
|
1846
|
-
|
|
1853
|
+
_(i(lt))
|
|
1847
1854
|
]),
|
|
1848
1855
|
_: 2
|
|
1849
1856
|
}, 1032, ["onClick"])
|
|
@@ -1855,19 +1862,19 @@ const ya = (t) => {
|
|
|
1855
1862
|
]);
|
|
1856
1863
|
};
|
|
1857
1864
|
}
|
|
1858
|
-
}),
|
|
1865
|
+
}), Fa = /* @__PURE__ */ ae(xa, [["__scopeId", "data-v-56e6a2a4"]]), Pa = { class: "advanced-filter-tab__container" }, Na = { class: "advanced-filter-tab__content advanced-filter-tab__form" }, Ra = { class: "advanced-filter-tab__content advanced-filter-tab__selected" }, Va = { class: "title" }, Oa = /* @__PURE__ */ K({
|
|
1859
1866
|
__name: "AdvancedFilterTab",
|
|
1860
1867
|
setup(t) {
|
|
1861
1868
|
const e = Me(), o = P(
|
|
1862
1869
|
() => e.activeGroupColumns?.filter((n) => n.checked).length || 0
|
|
1863
1870
|
);
|
|
1864
|
-
return (n, a) => (v(), I("div",
|
|
1865
|
-
F("div",
|
|
1871
|
+
return (n, a) => (v(), I("div", Pa, [
|
|
1872
|
+
F("div", Na, [
|
|
1866
1873
|
a[1] || (a[1] = F("div", { class: "title" }, "搜索列", -1)),
|
|
1867
|
-
|
|
1874
|
+
_(Sa)
|
|
1868
1875
|
]),
|
|
1869
|
-
F("div",
|
|
1870
|
-
F("div",
|
|
1876
|
+
F("div", Ra, [
|
|
1877
|
+
F("div", Va, [
|
|
1871
1878
|
j(" 已选 " + $(o.value) + " 个 ", 1),
|
|
1872
1879
|
F("div", {
|
|
1873
1880
|
class: "reset-btn",
|
|
@@ -1875,19 +1882,19 @@ const ya = (t) => {
|
|
|
1875
1882
|
(...s) => i(e).resetActiveGroupColumnsStatus && i(e).resetActiveGroupColumnsStatus(...s))
|
|
1876
1883
|
}, "重置")
|
|
1877
1884
|
]),
|
|
1878
|
-
|
|
1885
|
+
_(Fa)
|
|
1879
1886
|
])
|
|
1880
1887
|
]));
|
|
1881
1888
|
}
|
|
1882
|
-
}),
|
|
1883
|
-
function
|
|
1889
|
+
}), La = /* @__PURE__ */ ae(Oa, [["__scopeId", "data-v-dbdfb6cf"]]);
|
|
1890
|
+
function Ha(t) {
|
|
1884
1891
|
yt.success({
|
|
1885
1892
|
message: t,
|
|
1886
1893
|
plain: !0,
|
|
1887
1894
|
grouping: !0
|
|
1888
1895
|
});
|
|
1889
1896
|
}
|
|
1890
|
-
function
|
|
1897
|
+
function Ua(t, e) {
|
|
1891
1898
|
yt.warning({
|
|
1892
1899
|
message: t,
|
|
1893
1900
|
plain: !0,
|
|
@@ -1915,7 +1922,7 @@ async function Ao(t, e) {
|
|
|
1915
1922
|
return !1;
|
|
1916
1923
|
}
|
|
1917
1924
|
}
|
|
1918
|
-
const
|
|
1925
|
+
const Qa = { class: "advanced-filter-tab-item__footer" }, Ya = /* @__PURE__ */ K({
|
|
1919
1926
|
__name: "AdvancedFilterTabItem",
|
|
1920
1927
|
props: {
|
|
1921
1928
|
modelValue: {
|
|
@@ -1926,7 +1933,7 @@ const Ha = { class: "advanced-filter-tab-item__footer" }, Ua = /* @__PURE__ */ K
|
|
|
1926
1933
|
},
|
|
1927
1934
|
emits: ["update:modelValue"],
|
|
1928
1935
|
setup(t) {
|
|
1929
|
-
const e = Ve(t, "modelValue"), o =
|
|
1936
|
+
const e = Ve(t, "modelValue"), o = T(), n = Me(), a = P(() => e.value === Re), s = T(e.value), l = async () => {
|
|
1930
1937
|
await Ao(`确定删除${e.value}吗?`) && n.removeGroup(e.value);
|
|
1931
1938
|
}, g = () => {
|
|
1932
1939
|
o.value?.hide(), s.value = e.value;
|
|
@@ -1936,7 +1943,7 @@ const Ha = { class: "advanced-filter-tab-item__footer" }, Ua = /* @__PURE__ */ K
|
|
|
1936
1943
|
n.updateGroupName(e.value, s.value), g();
|
|
1937
1944
|
};
|
|
1938
1945
|
return (p, u) => {
|
|
1939
|
-
const f = S("el-icon"), h = S("el-input"), r = S("el-button"),
|
|
1946
|
+
const f = S("el-icon"), h = S("el-input"), r = S("el-button"), m = S("el-popover");
|
|
1940
1947
|
return v(), I("div", {
|
|
1941
1948
|
class: re([
|
|
1942
1949
|
"advanced-filter-tab-item__container",
|
|
@@ -1944,10 +1951,10 @@ const Ha = { class: "advanced-filter-tab-item__footer" }, Ua = /* @__PURE__ */ K
|
|
|
1944
1951
|
"is-active": e.value === i(n).activeGroupName
|
|
1945
1952
|
}
|
|
1946
1953
|
]),
|
|
1947
|
-
onClick: u[1] || (u[1] = _e((
|
|
1954
|
+
onClick: u[1] || (u[1] = _e((d) => i(n).updateActiveGroup(e.value, !0), ["stop"]))
|
|
1948
1955
|
}, [
|
|
1949
1956
|
j($(e.value) + " ", 1),
|
|
1950
|
-
a.value ? Z("", !0) : (v(), V(
|
|
1957
|
+
a.value ? Z("", !0) : (v(), V(m, {
|
|
1951
1958
|
key: 0,
|
|
1952
1959
|
ref_key: "popoverRef",
|
|
1953
1960
|
ref: o,
|
|
@@ -1956,30 +1963,30 @@ const Ha = { class: "advanced-filter-tab-item__footer" }, Ua = /* @__PURE__ */ K
|
|
|
1956
1963
|
trigger: "click"
|
|
1957
1964
|
}, {
|
|
1958
1965
|
reference: E(() => [
|
|
1959
|
-
|
|
1966
|
+
_(f, null, {
|
|
1960
1967
|
default: E(() => [
|
|
1961
|
-
|
|
1968
|
+
_(i(oo))
|
|
1962
1969
|
]),
|
|
1963
1970
|
_: 1
|
|
1964
1971
|
})
|
|
1965
1972
|
]),
|
|
1966
1973
|
default: E(() => [
|
|
1967
|
-
|
|
1974
|
+
_(h, {
|
|
1968
1975
|
modelValue: s.value,
|
|
1969
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
1976
|
+
"onUpdate:modelValue": u[0] || (u[0] = (d) => s.value = d),
|
|
1970
1977
|
placeholder: "请输入分组名称",
|
|
1971
1978
|
maxlength: "8",
|
|
1972
1979
|
"show-word-limit": ""
|
|
1973
1980
|
}, null, 8, ["modelValue"]),
|
|
1974
|
-
F("div",
|
|
1975
|
-
|
|
1981
|
+
F("div", Qa, [
|
|
1982
|
+
_(r, { onClick: g }, {
|
|
1976
1983
|
default: E(() => u[2] || (u[2] = [
|
|
1977
1984
|
j("取消", -1)
|
|
1978
1985
|
])),
|
|
1979
1986
|
_: 1,
|
|
1980
1987
|
__: [2]
|
|
1981
1988
|
}),
|
|
1982
|
-
|
|
1989
|
+
_(r, {
|
|
1983
1990
|
type: "primary",
|
|
1984
1991
|
onClick: c
|
|
1985
1992
|
}, {
|
|
@@ -1998,27 +2005,27 @@ const Ha = { class: "advanced-filter-tab-item__footer" }, Ua = /* @__PURE__ */ K
|
|
|
1998
2005
|
onClick: _e(l, ["stop"])
|
|
1999
2006
|
}, {
|
|
2000
2007
|
default: E(() => [
|
|
2001
|
-
|
|
2008
|
+
_(i(Ct))
|
|
2002
2009
|
]),
|
|
2003
2010
|
_: 1
|
|
2004
2011
|
}))
|
|
2005
2012
|
], 2);
|
|
2006
2013
|
};
|
|
2007
2014
|
}
|
|
2008
|
-
}),
|
|
2015
|
+
}), za = /* @__PURE__ */ ae(Ya, [["__scopeId", "data-v-c568c2b5"]]), Za = { class: "advanced-content__container" }, Xa = { class: "advanced-content__tab-header" }, Wa = /* @__PURE__ */ K({
|
|
2009
2016
|
__name: "AdvancedFilterContent",
|
|
2010
2017
|
setup(t) {
|
|
2011
2018
|
const e = Me();
|
|
2012
2019
|
return (o, n) => {
|
|
2013
2020
|
const a = S("el-button");
|
|
2014
|
-
return v(), I("div",
|
|
2015
|
-
F("div",
|
|
2021
|
+
return v(), I("div", Za, [
|
|
2022
|
+
F("div", Xa, [
|
|
2016
2023
|
n[2] || (n[2] = F("div", { class: "title" }, "常用筛选", -1)),
|
|
2017
2024
|
(v(!0), I(q, null, le(i(e).groups, (s) => (v(), I("div", {
|
|
2018
2025
|
key: s.groupName,
|
|
2019
2026
|
class: "advanced-content__tabs"
|
|
2020
2027
|
}, [
|
|
2021
|
-
|
|
2028
|
+
_(za, {
|
|
2022
2029
|
modelValue: s.groupName,
|
|
2023
2030
|
"onUpdate:modelValue": (l) => s.groupName = l
|
|
2024
2031
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
@@ -2037,12 +2044,12 @@ const Ha = { class: "advanced-filter-tab-item__footer" }, Ua = /* @__PURE__ */ K
|
|
|
2037
2044
|
__: [1]
|
|
2038
2045
|
}, 8, ["icon"])) : Z("", !0)
|
|
2039
2046
|
]),
|
|
2040
|
-
i(e).groups.length ? (v(), V(
|
|
2047
|
+
i(e).groups.length ? (v(), V(La, { key: 0 })) : Z("", !0)
|
|
2041
2048
|
]);
|
|
2042
2049
|
};
|
|
2043
2050
|
}
|
|
2044
|
-
}),
|
|
2045
|
-
class
|
|
2051
|
+
}), ja = /* @__PURE__ */ ae(Wa, [["__scopeId", "data-v-8e9ecdf6"]]);
|
|
2052
|
+
class Ka {
|
|
2046
2053
|
config;
|
|
2047
2054
|
/**
|
|
2048
2055
|
* 传入配置
|
|
@@ -2077,7 +2084,7 @@ class Wa {
|
|
|
2077
2084
|
}
|
|
2078
2085
|
}
|
|
2079
2086
|
}
|
|
2080
|
-
const Ne = new
|
|
2087
|
+
const Ne = new Ka();
|
|
2081
2088
|
class Co {
|
|
2082
2089
|
/**
|
|
2083
2090
|
* 当前激活的分组名称
|
|
@@ -2235,7 +2242,7 @@ class Co {
|
|
|
2235
2242
|
this.formItems.forEach((e) => e.destroy()), this.formItems = [];
|
|
2236
2243
|
}
|
|
2237
2244
|
}
|
|
2238
|
-
class
|
|
2245
|
+
class qa extends Co {
|
|
2239
2246
|
async initGroups(e, o) {
|
|
2240
2247
|
await super.initGroups(e, o), this.groups.forEach(({ groupName: n, columns: a }) => {
|
|
2241
2248
|
this.updateGroupSelectedColumns(
|
|
@@ -2306,7 +2313,7 @@ class ja extends Co {
|
|
|
2306
2313
|
}
|
|
2307
2314
|
}
|
|
2308
2315
|
}
|
|
2309
|
-
class
|
|
2316
|
+
class Ja {
|
|
2310
2317
|
config = {};
|
|
2311
2318
|
get getFormAttrs() {
|
|
2312
2319
|
return R.omit(this.config, ["useRowLayout", "rowAttrs", "modelValue", "className", "hideExpandBtn"]);
|
|
@@ -2325,7 +2332,7 @@ class Ka {
|
|
|
2325
2332
|
return Object.assign(this.config, e), this.config;
|
|
2326
2333
|
}
|
|
2327
2334
|
}
|
|
2328
|
-
class
|
|
2335
|
+
class $a {
|
|
2329
2336
|
formData = {};
|
|
2330
2337
|
/**
|
|
2331
2338
|
* 初始化表单数据
|
|
@@ -2378,7 +2385,7 @@ class qa {
|
|
|
2378
2385
|
}, {});
|
|
2379
2386
|
}
|
|
2380
2387
|
}
|
|
2381
|
-
class
|
|
2388
|
+
class es {
|
|
2382
2389
|
instance;
|
|
2383
2390
|
componentInstanceRefs;
|
|
2384
2391
|
/**
|
|
@@ -2420,9 +2427,9 @@ class yo {
|
|
|
2420
2427
|
*/
|
|
2421
2428
|
isLoaded = !1;
|
|
2422
2429
|
columnManagement = new Co();
|
|
2423
|
-
formDataStore = new
|
|
2424
|
-
configManagement = new
|
|
2425
|
-
formInstanceManagement = new
|
|
2430
|
+
formDataStore = new $a();
|
|
2431
|
+
configManagement = new Ja();
|
|
2432
|
+
formInstanceManagement = new es();
|
|
2426
2433
|
hiddenProps = /* @__PURE__ */ new Set();
|
|
2427
2434
|
/**
|
|
2428
2435
|
* 用于存储获取原始列的信息
|
|
@@ -2586,8 +2593,8 @@ class yo {
|
|
|
2586
2593
|
this.columnManagement.destroy(), this.emitter.all.clear();
|
|
2587
2594
|
}
|
|
2588
2595
|
}
|
|
2589
|
-
class
|
|
2590
|
-
columnManagement = new
|
|
2596
|
+
class ts extends yo {
|
|
2597
|
+
columnManagement = new qa();
|
|
2591
2598
|
get formItems() {
|
|
2592
2599
|
return this.columnManagement.formItems;
|
|
2593
2600
|
}
|
|
@@ -2678,7 +2685,7 @@ class $a extends yo {
|
|
|
2678
2685
|
}
|
|
2679
2686
|
}
|
|
2680
2687
|
function ut(t) {
|
|
2681
|
-
const e =
|
|
2688
|
+
const e = T(!1);
|
|
2682
2689
|
let o;
|
|
2683
2690
|
const n = (s) => {
|
|
2684
2691
|
e.value = s;
|
|
@@ -2695,29 +2702,29 @@ function ut(t) {
|
|
|
2695
2702
|
}) : o?.close();
|
|
2696
2703
|
}), [e, a];
|
|
2697
2704
|
}
|
|
2698
|
-
const
|
|
2705
|
+
const os = {
|
|
2699
2706
|
key: 0,
|
|
2700
2707
|
class: "advanced-filter__loading"
|
|
2701
|
-
},
|
|
2708
|
+
}, ns = { class: "advanced-filter__loading-content" }, as = /* @__PURE__ */ K({
|
|
2702
2709
|
__name: "AdvancedFilter",
|
|
2703
2710
|
props: {
|
|
2704
2711
|
formBuilder: {}
|
|
2705
2712
|
},
|
|
2706
2713
|
setup(t) {
|
|
2707
|
-
const e =
|
|
2714
|
+
const e = T(!1), { setAdvancedFormBuilder: o, advancedFormBuilder: n } = Bn(), a = () => {
|
|
2708
2715
|
e.value = !1, n.value?.destroy(), n.value = void 0;
|
|
2709
2716
|
}, { onTaskAllComplete: s } = _t(), [l, g] = ut(), c = () => {
|
|
2710
2717
|
l.value = !0, s(() => {
|
|
2711
2718
|
g(async () => {
|
|
2712
2719
|
await ne(), n.value?.updateActiveGroupColumnsValue(), await n.value?.saveAdvancedFilterData(), n.value && (t.formBuilder.updateGroupsByAdvancedFilter(
|
|
2713
2720
|
ho(n.value.columnManagement.getFormatSaveGroups(), t.formBuilder.columns)
|
|
2714
|
-
), await ne()), n.value?.emit(ue.SAVE_CONFIG), t.formBuilder.emit(ue.SAVE_CONFIG),
|
|
2721
|
+
), await ne()), n.value?.emit(ue.SAVE_CONFIG), t.formBuilder.emit(ue.SAVE_CONFIG), Ha("操作成功");
|
|
2715
2722
|
});
|
|
2716
2723
|
});
|
|
2717
2724
|
}, [p, u] = ut(), f = (h) => {
|
|
2718
2725
|
u(async () => {
|
|
2719
2726
|
o(
|
|
2720
|
-
new
|
|
2727
|
+
new ts([], {
|
|
2721
2728
|
pageId: t.formBuilder.config.pageId
|
|
2722
2729
|
})
|
|
2723
2730
|
), await ne(), n.value && n.value.init(t.formBuilder.baseColumnsGetter?.(n.value) ?? []), await ne(), await n.value?.initGroups(), await ne(), h && n.value?.updateActiveGroup(h), n.value?.on(ue.SAVE_CONFIG, a), n.value?.onChange(() => {
|
|
@@ -2730,10 +2737,10 @@ const es = {
|
|
|
2730
2737
|
f(h);
|
|
2731
2738
|
});
|
|
2732
2739
|
}), (h, r) => {
|
|
2733
|
-
const
|
|
2734
|
-
return v(), V(
|
|
2740
|
+
const m = S("el-icon"), d = S("el-button"), y = S("el-dialog");
|
|
2741
|
+
return v(), V(y, {
|
|
2735
2742
|
modelValue: e.value,
|
|
2736
|
-
"onUpdate:modelValue": r[0] || (r[0] = (
|
|
2743
|
+
"onUpdate:modelValue": r[0] || (r[0] = (C) => e.value = C),
|
|
2737
2744
|
class: "advanced-filter__dialog",
|
|
2738
2745
|
width: "1300px",
|
|
2739
2746
|
title: "高级筛选",
|
|
@@ -2741,7 +2748,7 @@ const es = {
|
|
|
2741
2748
|
"close-on-press-escape": !1
|
|
2742
2749
|
}, {
|
|
2743
2750
|
footer: E(() => [
|
|
2744
|
-
|
|
2751
|
+
_(d, {
|
|
2745
2752
|
loading: i(l),
|
|
2746
2753
|
onClick: a
|
|
2747
2754
|
}, {
|
|
@@ -2751,7 +2758,7 @@ const es = {
|
|
|
2751
2758
|
_: 1,
|
|
2752
2759
|
__: [2]
|
|
2753
2760
|
}, 8, ["loading"]),
|
|
2754
|
-
|
|
2761
|
+
_(d, {
|
|
2755
2762
|
loading: i(l),
|
|
2756
2763
|
type: "primary",
|
|
2757
2764
|
onClick: c
|
|
@@ -2764,18 +2771,18 @@ const es = {
|
|
|
2764
2771
|
}, 8, ["loading"])
|
|
2765
2772
|
]),
|
|
2766
2773
|
default: E(() => [
|
|
2767
|
-
i(p) ? (v(), I("div",
|
|
2768
|
-
F("div",
|
|
2769
|
-
|
|
2774
|
+
i(p) ? (v(), I("div", os, [
|
|
2775
|
+
F("div", ns, [
|
|
2776
|
+
_(m, { class: "is-loading" }, {
|
|
2770
2777
|
default: E(() => [
|
|
2771
|
-
|
|
2778
|
+
_(i(qo))
|
|
2772
2779
|
]),
|
|
2773
2780
|
_: 1
|
|
2774
2781
|
}),
|
|
2775
2782
|
r[1] || (r[1] = F("div", { class: "text" }, "加载中", -1))
|
|
2776
2783
|
])
|
|
2777
2784
|
])) : Z("", !0),
|
|
2778
|
-
i(n) && e.value && !i(p) ? (v(), V(
|
|
2785
|
+
i(n) && e.value && !i(p) ? (v(), V(ja, {
|
|
2779
2786
|
key: 1,
|
|
2780
2787
|
"advanced-form-builder": i(n)
|
|
2781
2788
|
}, null, 8, ["advanced-form-builder"])) : Z("", !0)
|
|
@@ -2784,52 +2791,52 @@ const es = {
|
|
|
2784
2791
|
}, 8, ["modelValue"]);
|
|
2785
2792
|
};
|
|
2786
2793
|
}
|
|
2787
|
-
}),
|
|
2788
|
-
const e =
|
|
2789
|
-
const { prop:
|
|
2790
|
-
|
|
2791
|
-
}, s =
|
|
2794
|
+
}), ss = (t) => {
|
|
2795
|
+
const e = T(), o = T(!1), n = T({}), a = (d, y) => {
|
|
2796
|
+
const { prop: C } = y;
|
|
2797
|
+
C && Reflect.set(n.value, C, d);
|
|
2798
|
+
}, s = T(!1), l = () => {
|
|
2792
2799
|
s.value = !s.value;
|
|
2793
|
-
}, g =
|
|
2800
|
+
}, g = T(!1), c = T([]), p = 5, u = async () => {
|
|
2794
2801
|
if (co(e.value?.$el))
|
|
2795
2802
|
return;
|
|
2796
2803
|
t.hiddenProps.clear();
|
|
2797
|
-
const
|
|
2798
|
-
const G = k.$el,
|
|
2799
|
-
return
|
|
2804
|
+
const d = c.value.reduce((b, k) => {
|
|
2805
|
+
const G = k.$el, M = G?.getAttribute("data-prop");
|
|
2806
|
+
return M && b.set(M, G), b;
|
|
2800
2807
|
}, /* @__PURE__ */ new Map());
|
|
2801
2808
|
if (!s.value) {
|
|
2802
2809
|
await ne();
|
|
2803
|
-
let
|
|
2810
|
+
let b = 0;
|
|
2804
2811
|
t.getShowColumns.forEach((k) => {
|
|
2805
2812
|
const { prop: G } = k;
|
|
2806
2813
|
if (R.isString(G)) {
|
|
2807
|
-
const
|
|
2808
|
-
if (
|
|
2809
|
-
const { top: w } =
|
|
2810
|
-
|
|
2814
|
+
const M = d.get(G);
|
|
2815
|
+
if (M) {
|
|
2816
|
+
const { top: w } = M.getBoundingClientRect() ?? {};
|
|
2817
|
+
b ? Math.abs(w - b) > p ? t.hiddenProps.add(G) : t.hiddenProps.delete(G) : (b = w, t.hiddenProps.delete(G));
|
|
2811
2818
|
} else
|
|
2812
2819
|
t.hiddenProps.add(G);
|
|
2813
2820
|
}
|
|
2814
2821
|
});
|
|
2815
2822
|
}
|
|
2816
2823
|
await ne();
|
|
2817
|
-
const
|
|
2818
|
-
if (
|
|
2819
|
-
const
|
|
2820
|
-
if (
|
|
2821
|
-
const { top: G } =
|
|
2824
|
+
const y = t.getShowColumns[0], C = t.getShowColumns.at(-1);
|
|
2825
|
+
if (y && C) {
|
|
2826
|
+
const b = d.get(y.prop), k = d.get(C.prop);
|
|
2827
|
+
if (b && k) {
|
|
2828
|
+
const { top: G } = b.getBoundingClientRect() ?? {}, { top: M } = k.getBoundingClientRect() ?? {}, w = Math.abs(G - M) > p;
|
|
2822
2829
|
g.value = !w;
|
|
2823
2830
|
}
|
|
2824
|
-
|
|
2831
|
+
b && !k && (g.value = !1);
|
|
2825
2832
|
}
|
|
2826
2833
|
};
|
|
2827
2834
|
let f = !0;
|
|
2828
2835
|
const h = mt(
|
|
2829
|
-
() => t.columns.map((
|
|
2830
|
-
visible:
|
|
2836
|
+
() => t.columns.map((d) => ({
|
|
2837
|
+
visible: d.validateIsHidden(t.formData),
|
|
2831
2838
|
/* 读取下 sort,当sort变化的时候需要触发监听 */
|
|
2832
|
-
sort:
|
|
2839
|
+
sort: d.sort
|
|
2833
2840
|
})).concat([t.config.hideExpandBtn, s.value]),
|
|
2834
2841
|
() => {
|
|
2835
2842
|
!t.config.hideExpandBtn && t.columns && u(), e.value && n.value && t.formInstanceManagement.init(e, n);
|
|
@@ -2837,13 +2844,13 @@ const es = {
|
|
|
2837
2844
|
{ flush: "post", deep: !0 }
|
|
2838
2845
|
);
|
|
2839
2846
|
let r;
|
|
2840
|
-
const
|
|
2847
|
+
const m = async () => {
|
|
2841
2848
|
if (t.config.pageId) {
|
|
2842
2849
|
o.value = !0;
|
|
2843
2850
|
try {
|
|
2844
2851
|
await t.initGroups(), t.updateActiveGroup(t.activeGroupName);
|
|
2845
|
-
} catch (
|
|
2846
|
-
throw o.value = !1,
|
|
2852
|
+
} catch (d) {
|
|
2853
|
+
throw o.value = !1, d;
|
|
2847
2854
|
}
|
|
2848
2855
|
} else
|
|
2849
2856
|
t.columnManagement.showAllFormItems();
|
|
@@ -2856,7 +2863,7 @@ const es = {
|
|
|
2856
2863
|
}), Ho(() => {
|
|
2857
2864
|
f = !1;
|
|
2858
2865
|
}), $e(() => {
|
|
2859
|
-
|
|
2866
|
+
m().finally(() => {
|
|
2860
2867
|
ne().then(() => {
|
|
2861
2868
|
t.emit(ue.COLUMNS_LOADED);
|
|
2862
2869
|
});
|
|
@@ -2872,7 +2879,7 @@ const es = {
|
|
|
2872
2879
|
colRefs: c,
|
|
2873
2880
|
loadingConfigColumns: o
|
|
2874
2881
|
};
|
|
2875
|
-
},
|
|
2882
|
+
}, ls = { class: "base-form__body" }, rs = /* @__PURE__ */ K({
|
|
2876
2883
|
name: "ZForm",
|
|
2877
2884
|
__name: "index",
|
|
2878
2885
|
props: {
|
|
@@ -2880,45 +2887,45 @@ const es = {
|
|
|
2880
2887
|
},
|
|
2881
2888
|
emits: ["change"],
|
|
2882
2889
|
setup(t, { emit: e }) {
|
|
2883
|
-
const o = e, { baseFormRef: n, isExpand: a, autoHiddenExpand: s, colRefs: l, loadingConfigColumns: g, collectionRef: c, updateExpand: p } =
|
|
2884
|
-
() => (
|
|
2885
|
-
t.formBuilder.emit(ue.CHANGE), o("change", ...
|
|
2890
|
+
const o = e, { baseFormRef: n, isExpand: a, autoHiddenExpand: s, colRefs: l, loadingConfigColumns: g, collectionRef: c, updateExpand: p } = ss(t.formBuilder), { configManagement: u, config: f } = t.formBuilder, h = (y, C) => C ? Jt(C) ? `${Object.keys(y).reduce((k, G) => (k.push(`${G}:${Reflect.get(y, G)}`), k), []).join(";")} ${C}` : { ...y, ...C } : y, r = P(
|
|
2891
|
+
() => (y) => y.parseColumnEvent((...C) => {
|
|
2892
|
+
t.formBuilder.emit(ue.CHANGE), o("change", ...C);
|
|
2886
2893
|
})
|
|
2887
|
-
),
|
|
2888
|
-
t.formBuilder.updateFormData(
|
|
2889
|
-
},
|
|
2894
|
+
), m = (y, C) => {
|
|
2895
|
+
t.formBuilder.updateFormData(y.prop, C);
|
|
2896
|
+
}, d = () => {
|
|
2890
2897
|
a.value || (a.value = !0);
|
|
2891
2898
|
};
|
|
2892
2899
|
return t.formBuilder.on(ue.SAVE_CONFIG, async () => {
|
|
2893
|
-
t.formBuilder.resetFormDataByActiveGroup(), t.formBuilder.emit(ue.CHANGE), await ne(),
|
|
2894
|
-
}), t.formBuilder.on(ue.UPDATE_ACTIVE_GROUP,
|
|
2895
|
-
const
|
|
2900
|
+
t.formBuilder.resetFormDataByActiveGroup(), t.formBuilder.emit(ue.CHANGE), await ne(), d();
|
|
2901
|
+
}), t.formBuilder.on(ue.UPDATE_ACTIVE_GROUP, d), (y, C) => {
|
|
2902
|
+
const b = S("el-form-item"), k = S("el-col"), G = S("el-row"), M = S("el-form"), w = S("el-icon"), B = ve("loading");
|
|
2896
2903
|
return v(), I(q, null, [
|
|
2897
2904
|
F("div", {
|
|
2898
2905
|
class: re([
|
|
2899
2906
|
"base-form__container z-form",
|
|
2900
2907
|
i(f).className || "",
|
|
2901
2908
|
i(f).useRowLayout ? "base-form__layout-container" : "base-form__no-layout-container",
|
|
2902
|
-
|
|
2909
|
+
y.formBuilder.getShowColumns.length ? "base-form__has-columns" : ""
|
|
2903
2910
|
])
|
|
2904
2911
|
}, [
|
|
2905
|
-
pe((v(), I("div",
|
|
2906
|
-
i(g) ? Z("", !0) : (v(), V(
|
|
2912
|
+
pe((v(), I("div", ls, [
|
|
2913
|
+
i(g) ? Z("", !0) : (v(), V(M, se({
|
|
2907
2914
|
key: 0,
|
|
2908
2915
|
ref_key: "baseFormRef",
|
|
2909
2916
|
ref: n,
|
|
2910
2917
|
class: "base-form__form"
|
|
2911
2918
|
}, i(u).getFormAttrs, {
|
|
2912
|
-
model:
|
|
2913
|
-
onSubmit:
|
|
2919
|
+
model: y.formBuilder.formData,
|
|
2920
|
+
onSubmit: C[0] || (C[0] = _e(() => {
|
|
2914
2921
|
}, ["prevent"]))
|
|
2915
2922
|
}), {
|
|
2916
2923
|
default: E(() => [
|
|
2917
|
-
|
|
2924
|
+
_(G, se({ class: "base-form__row" }, i(u).getRowAttrs, {
|
|
2918
2925
|
style: h({ marginLeft: "0", marginRight: "0" }, i(f).rowAttrs?.style)
|
|
2919
2926
|
}), {
|
|
2920
2927
|
default: E(() => [
|
|
2921
|
-
(v(!0), I(q, null, le(
|
|
2928
|
+
(v(!0), I(q, null, le(y.formBuilder.getShowColumns, (A) => (v(), V(k, se({ ref_for: !0 }, A.elColAttrs ?? {}, {
|
|
2922
2929
|
key: A.prop,
|
|
2923
2930
|
ref_for: !0,
|
|
2924
2931
|
ref_key: "colRefs",
|
|
@@ -2929,16 +2936,16 @@ const es = {
|
|
|
2929
2936
|
"data-visible": A.visible
|
|
2930
2937
|
}), {
|
|
2931
2938
|
default: E(() => [
|
|
2932
|
-
|
|
2939
|
+
_(b, se({ ref_for: !0 }, i(_a)(A), {
|
|
2933
2940
|
class: A.className
|
|
2934
2941
|
}), {
|
|
2935
2942
|
default: E(() => [
|
|
2936
2943
|
(v(), V(jt(A.getFormComponent), se({ ref_for: !0 }, A.attrs, {
|
|
2937
2944
|
ref_for: !0,
|
|
2938
2945
|
ref: (N) => i(c)(N, A),
|
|
2939
|
-
"model-value":
|
|
2946
|
+
"model-value": y.formBuilder.formData[A.prop]
|
|
2940
2947
|
}, we(r.value(A)), {
|
|
2941
|
-
"onUpdate:modelValue": (N) =>
|
|
2948
|
+
"onUpdate:modelValue": (N) => m(A, N)
|
|
2942
2949
|
}), null, 16, ["model-value", "onUpdate:modelValue"]))
|
|
2943
2950
|
]),
|
|
2944
2951
|
_: 2
|
|
@@ -2959,13 +2966,13 @@ const es = {
|
|
|
2959
2966
|
i(s) ? Z("", !0) : (v(), I("div", {
|
|
2960
2967
|
key: 0,
|
|
2961
2968
|
class: re(["expand-btn", { "expand-btn__expand": i(a) }]),
|
|
2962
|
-
style: Wt({ display:
|
|
2963
|
-
onClick:
|
|
2969
|
+
style: Wt({ display: y.formBuilder.getShowColumns.length ? "" : "none" }),
|
|
2970
|
+
onClick: C[1] || (C[1] = //@ts-ignore
|
|
2964
2971
|
(...A) => i(p) && i(p)(...A))
|
|
2965
2972
|
}, [
|
|
2966
|
-
|
|
2973
|
+
_(w, null, {
|
|
2967
2974
|
default: E(() => [
|
|
2968
|
-
|
|
2975
|
+
_(i(Jo))
|
|
2969
2976
|
]),
|
|
2970
2977
|
_: 1
|
|
2971
2978
|
}),
|
|
@@ -2973,11 +2980,11 @@ const es = {
|
|
|
2973
2980
|
], 6))
|
|
2974
2981
|
], 64))
|
|
2975
2982
|
], 2),
|
|
2976
|
-
|
|
2983
|
+
_(as, { "form-builder": y.formBuilder }, null, 8, ["form-builder"])
|
|
2977
2984
|
], 64);
|
|
2978
2985
|
};
|
|
2979
2986
|
}
|
|
2980
|
-
}),
|
|
2987
|
+
}), is = /* @__PURE__ */ ae(rs, [["__scopeId", "data-v-ea0a1557"]]), cs = Ce(is, "ZForm"), us = /* @__PURE__ */ K({
|
|
2981
2988
|
name: "ZPlusBold",
|
|
2982
2989
|
__name: "index",
|
|
2983
2990
|
setup(t) {
|
|
@@ -2985,22 +2992,22 @@ const es = {
|
|
|
2985
2992
|
const n = S("el-icon");
|
|
2986
2993
|
return v(), V(n, { class: "z-plus-bold__container" }, {
|
|
2987
2994
|
default: E(() => [
|
|
2988
|
-
|
|
2995
|
+
_(i(Ct))
|
|
2989
2996
|
]),
|
|
2990
2997
|
_: 1
|
|
2991
2998
|
});
|
|
2992
2999
|
};
|
|
2993
3000
|
}
|
|
2994
|
-
}),
|
|
3001
|
+
}), ds = /* @__PURE__ */ ae(us, [["__scopeId", "data-v-c6fd2334"]]), ps = Ce(ds, "ZPlusBold"), ms = {
|
|
2995
3002
|
class: "z-show-to-tags__container"
|
|
2996
|
-
},
|
|
3003
|
+
}, fs = {
|
|
2997
3004
|
class: "z-show-to-tags__list"
|
|
2998
|
-
},
|
|
3005
|
+
}, gs = {
|
|
2999
3006
|
key: 0,
|
|
3000
3007
|
class: "show-to-tags__count-button"
|
|
3001
|
-
},
|
|
3008
|
+
}, hs = {
|
|
3002
3009
|
class: "z-add-tag__tooltip-tag-list"
|
|
3003
|
-
},
|
|
3010
|
+
}, vs = /* @__PURE__ */ K({
|
|
3004
3011
|
name: "ZShowToTags",
|
|
3005
3012
|
__name: "index",
|
|
3006
3013
|
props: {
|
|
@@ -3012,7 +3019,7 @@ const es = {
|
|
|
3012
3019
|
},
|
|
3013
3020
|
emits: ["update:modelValue"],
|
|
3014
3021
|
setup(t) {
|
|
3015
|
-
const e = Ve(t, "modelValue"), o = P(() => e.value ? Array.isArray(e.value) ? e.value : [e.value] : []), n =
|
|
3022
|
+
const e = Ve(t, "modelValue"), o = P(() => e.value ? Array.isArray(e.value) ? e.value : [e.value] : []), n = T(), a = T(!1);
|
|
3016
3023
|
let s;
|
|
3017
3024
|
return ht(() => {
|
|
3018
3025
|
!s && n.value && (s = new ResizeObserver(() => {
|
|
@@ -3024,30 +3031,30 @@ const es = {
|
|
|
3024
3031
|
s?.disconnect();
|
|
3025
3032
|
}), (l, g) => {
|
|
3026
3033
|
const c = S("el-tag"), p = S("el-tooltip");
|
|
3027
|
-
return v(), I("div",
|
|
3034
|
+
return v(), I("div", ms, [_(p, {
|
|
3028
3035
|
disabled: !o.value.length || !a.value,
|
|
3029
3036
|
effect: "light",
|
|
3030
3037
|
placement: "top",
|
|
3031
3038
|
"popper-class": "z-show-to-tags__tooltip"
|
|
3032
3039
|
}, {
|
|
3033
|
-
content: E(() => [F("div",
|
|
3040
|
+
content: E(() => [F("div", hs, [(v(!0), I(q, null, le(o.value, (u) => (v(), V(c, {
|
|
3034
3041
|
key: u,
|
|
3035
3042
|
type: "primary"
|
|
3036
3043
|
}, {
|
|
3037
3044
|
default: E(() => [j($(u), 1)]),
|
|
3038
3045
|
_: 2
|
|
3039
3046
|
}, 1024))), 128))])]),
|
|
3040
|
-
default: E(() => [F("div",
|
|
3047
|
+
default: E(() => [F("div", fs, [F("div", {
|
|
3041
3048
|
ref_key: "contentRef",
|
|
3042
3049
|
ref: n,
|
|
3043
3050
|
class: "z-show-to-tags__content"
|
|
3044
|
-
}, $(o.value?.join("、")), 513), a.value && o.value.length ? (v(), I("div",
|
|
3051
|
+
}, $(o.value?.join("、")), 513), a.value && o.value.length ? (v(), I("div", gs, "+" + $(o.value.length), 1)) : Z("", !0)])]),
|
|
3045
3052
|
_: 1
|
|
3046
3053
|
}, 8, ["disabled"])]);
|
|
3047
3054
|
};
|
|
3048
3055
|
}
|
|
3049
|
-
}),
|
|
3050
|
-
const e =
|
|
3056
|
+
}), As = /* @__PURE__ */ ae(vs, [["__scopeId", "data-v-2c568d65"]]), Cs = Ce(As, "ZShowToTags"), ys = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAAACQElEQVR4Xu2YzXGDMBCFXUJKoISU4AYAHYH4wCUZID7QQdKB3UHcgdOBS6EESki0DGDpgYyQUOJk+GZ0gdXqod3VD5vNyso/h7Hyge32W3x+N5C4MM4vQZLXQZx/saj00OZX6QVycWLzkyJFWySIXw/UV9VYnDPsMxsKcZgUHyjw2ooj9kHGPrBvSfaO9rNhUeZxZxU6D3nY+eBnP8lS+hDshyiFuhQZxNlRR5yIQmhNY6DtLEgIiuSDVdzxFm11UAilVs39aAnMyVakh3a6iEIpbSTffCy014LybkmRRC+U5yT5Ip/iGGxnECkKh+QkeX5Em7k0QoXCoRSCybgI5tP4fD2THJiGBRjLbSpK41kN4+IsdbYM+S1Y2hSs2ay6mM1bwGpQa60ALNpLecOi6a3RFixcrfDz/baUhboLe0e7qfRj8hop0WYAJje+d4W8rk6fGyg/T4LQCt+7gsbqxtWqiz8kVAp9je9dIYypF/phMbk/uRsVE25rOid3W8yWp5RO8tcKnLVTGIKnNHyvBM+NWjuFIRj2IMo+0UYJhj94yg9jNvjMBJzN2Re8wawKeRNExdsSKUFHR3EMOp+izSSDWW0PziSydWoltA15JU2G6bkCt9PuZ4Ot0DGRWou8imYFGL2BmgulHxgDkbaXO6K528BFzERoe6M9jPixvos1dDmJTUcoiaMNAwvzx0TqCh3kuNSyk3W4CT9+YSRG1eiHF/ZBcGvsPnCpNXgxul2n/Ud1fwJFSNwiIV5ZuXO+AeSMxwCzcroLAAAAAElFTkSuQmCC", bs = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAAABdUlEQVR4Xu2V0W3DIBCGM0JG6CheIPY9RcbyQx7B6oM3SEboBu0GHaEjdASP0BFajhhKzlgl5VJV7X0SinX4hy8G481GEM7U3XCqlXl3zV7T/lsRzwu9rmj/AhH9gh8V5cqKqIcrK6IerqyIeriyIurhyhaJAozbRpmXWg2voMwYRQJr2ZidMmD7p0YNzzimr7OJNt3wGOpKP0SRwFo2BrP+Hhwz1DlE48HdE42eREwqS4HDuMUxqGyxaN3qY44kQrO030NlXa5I1O4lf9105m3XG4D+vqItmZ1F8Y/R+7HhXsUxU3N9RzS3TYts2DafArntT4uGSXCZ7LEE0Opq0eZ9mxJFFvdji5Z+/g1zXS+K17d4meDyZYK9lXZndIGoqyn9lCObylIWkq0+YJ1F1NUvZHkO/LrTJ19nE8WzDz97tj7hUkWRwFo2Bj+/VBJhE80hN2uX+47WfqVoChFNUZIV0RQlWRFNUZIVUW5ElJurRYX/wgexw+vYgAE1fgAAAABJRU5ErkJggg==", Vt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAAAB00lEQVR4Xu1Y0ZGCMBC1hCvBEizhSrgSLIEOpAR/GAw6gx1cCZZgCZRgCXf7xoRZH+ESDxL94M28EZPd5LGEzZLVasGCedC27Rrk9rdAXdfbpmkuxpib8McRbcIt22dHVVUbEdRpcSPs5GbW7J8FVuRDBAO8SXQ3PE5SIDqIkkdIK7+F5RltbJM1slZQLwBrUV6gD7aDKOn7Zlu2SwIbTR2ljm0YIu6qfWSMT7aZHeb+WHWEgusOwujmCraZHfQog9F0gK26uZb7Z4fNl0+vt//6BXE8HvG48JhLYh8Ze839Ywz5FU9nBBG5U4NmJeZmPV7YSA4GyMmorHA4HPbsmJun02nPugYw9x3FOUW/1VOBudy8UVlhERpAVqEqpRW45v6/kEUoSj7ez51/bG5MLtQWKVzOaUaVdsmF6q1xjDFbZlKhqEFJ0BVttg59WAq+elUjqVDexfSOIv+/xvp8SCpUBsR3Uy9GWLo+Q3XrS4UCZviJ3GIL1G2R4yQXWpKoASWaJfsxkgsFRIj2YZFntvchi1Cgvp+W9G86UlLzxClJNqFTsQidG1OFIvWUmdinuVihD4n6RQwfUNj9u/M452J0aegOty6eQZISc0aLXLDgzfALQFYngxmEg2kAAAAASUVORK5CYII=", _s = (t) => {
|
|
3057
|
+
const e = T(""), o = T(!0), n = T(i(t.groupName) || ""), a = T([]), s = T([]), l = T([]), g = T({}), c = P(() => Object.keys(g.value) ?? []), p = P(
|
|
3051
3058
|
() => (D) => g.value[D]
|
|
3052
3059
|
), u = (D = g.value) => {
|
|
3053
3060
|
const L = [];
|
|
@@ -3069,26 +3076,26 @@ const es = {
|
|
|
3069
3076
|
const ce = X.get(J.prop);
|
|
3070
3077
|
J.readonly ? s.value.push(h(J, { fixed: J.fixed })) : ie(J, ce ? ce.checked : J.checked, ce);
|
|
3071
3078
|
}), a.value = L, l.value = t.hasLockColumns ? U : L.concat(U);
|
|
3072
|
-
},
|
|
3079
|
+
}, m = (D, L) => {
|
|
3073
3080
|
g.value[L].forEach((X) => {
|
|
3074
3081
|
X.readonly ? X.checked = !0 : X.checked = D;
|
|
3075
3082
|
}), r(u());
|
|
3076
|
-
},
|
|
3083
|
+
}, d = P(
|
|
3077
3084
|
() => u().filter((D) => D.checked || D.readonly).length
|
|
3078
|
-
),
|
|
3085
|
+
), y = (D) => {
|
|
3079
3086
|
const L = g.value[D];
|
|
3080
3087
|
return L.filter((X) => X.checked).length === L.length;
|
|
3081
|
-
},
|
|
3088
|
+
}, C = (D, L) => {
|
|
3082
3089
|
if (L && a.value.length >= 5 && !D.fixed)
|
|
3083
3090
|
return;
|
|
3084
3091
|
D.fixed = L;
|
|
3085
3092
|
const U = L ? l.value : a.value, X = L ? a.value : l.value, ie = U.findIndex((J) => J.prop === D.prop);
|
|
3086
3093
|
ie !== -1 && U.splice(ie, 1), X.push(D);
|
|
3087
|
-
},
|
|
3094
|
+
}, b = (D, L) => {
|
|
3088
3095
|
const U = L.fixed ? a.value : l.value, X = U.findIndex((ie) => ie.prop === L.prop);
|
|
3089
3096
|
X === -1 ? U.push(L) : (h(L, { checked: D }), U.splice(X, 1));
|
|
3090
3097
|
}, k = (D) => {
|
|
3091
|
-
|
|
3098
|
+
b(!1, D);
|
|
3092
3099
|
}, G = (D) => {
|
|
3093
3100
|
u().forEach((U) => {
|
|
3094
3101
|
h(U, { checked: U.defaultChecked ?? !1 });
|
|
@@ -3103,7 +3110,7 @@ const es = {
|
|
|
3103
3110
|
g.value = R.cloneDeep(t.initialGroupData), G("init"), e.value = t.defaultActiveTab || c.value[0];
|
|
3104
3111
|
})();
|
|
3105
3112
|
let w = !1, B;
|
|
3106
|
-
const A =
|
|
3113
|
+
const A = T(), N = T(), W = T(), x = (D, L = !1) => {
|
|
3107
3114
|
if (e.value = D, L) {
|
|
3108
3115
|
w = !0, clearTimeout(B);
|
|
3109
3116
|
const U = c.value.indexOf(D);
|
|
@@ -3147,55 +3154,55 @@ const es = {
|
|
|
3147
3154
|
checkedUnfixedColumns: l,
|
|
3148
3155
|
checkedFixedColumns: a,
|
|
3149
3156
|
readonlyColumns: s,
|
|
3150
|
-
getAllCheckedColumnsLength:
|
|
3157
|
+
getAllCheckedColumnsLength: d,
|
|
3151
3158
|
scrollbarRef: W,
|
|
3152
3159
|
groupNameRefs: A,
|
|
3153
3160
|
observerRootElementRef: N,
|
|
3154
|
-
isCheckAll:
|
|
3161
|
+
isCheckAll: y,
|
|
3155
3162
|
getAllColumns: u,
|
|
3156
|
-
checkAll:
|
|
3163
|
+
checkAll: m,
|
|
3157
3164
|
updateActiveTab: x,
|
|
3158
|
-
updateFixed:
|
|
3165
|
+
updateFixed: C,
|
|
3159
3166
|
deleteChecked: k,
|
|
3160
|
-
checkItem:
|
|
3167
|
+
checkItem: b,
|
|
3161
3168
|
initAndReset: G
|
|
3162
3169
|
};
|
|
3163
|
-
},
|
|
3170
|
+
}, ws = {
|
|
3164
3171
|
class: "config-columns__container"
|
|
3165
|
-
},
|
|
3172
|
+
}, Bs = {
|
|
3166
3173
|
class: "config-columns__search-container"
|
|
3167
|
-
},
|
|
3174
|
+
}, Ds = {
|
|
3168
3175
|
class: "content"
|
|
3169
|
-
},
|
|
3176
|
+
}, Es = {
|
|
3170
3177
|
class: "tabs"
|
|
3171
|
-
},
|
|
3178
|
+
}, Is = ["onClick"], ks = ["data-group-name"], Ss = {
|
|
3172
3179
|
class: "check-sub"
|
|
3173
|
-
},
|
|
3180
|
+
}, Gs = {
|
|
3174
3181
|
class: "config-columns__select-container"
|
|
3175
|
-
},
|
|
3182
|
+
}, Ts = {
|
|
3176
3183
|
class: "title"
|
|
3177
|
-
},
|
|
3184
|
+
}, Ms = {
|
|
3178
3185
|
class: "count"
|
|
3179
|
-
},
|
|
3186
|
+
}, xs = {
|
|
3180
3187
|
class: "content"
|
|
3181
|
-
},
|
|
3188
|
+
}, Fs = {
|
|
3182
3189
|
key: 0,
|
|
3183
3190
|
class: "fixed-container"
|
|
3184
|
-
},
|
|
3191
|
+
}, Ps = {
|
|
3185
3192
|
class: "select-list select-not-fixed"
|
|
3186
|
-
},
|
|
3193
|
+
}, Ns = ["data-prop"], Rs = ["src"], Vs = {
|
|
3187
3194
|
class: "select-item__label"
|
|
3188
|
-
},
|
|
3195
|
+
}, Os = {
|
|
3189
3196
|
class: "select-item__icon"
|
|
3190
|
-
},
|
|
3197
|
+
}, Ls = ["src", "onClick"], Hs = {
|
|
3191
3198
|
class: "config-columns__footer"
|
|
3192
|
-
},
|
|
3199
|
+
}, Us = {
|
|
3193
3200
|
class: "left"
|
|
3194
|
-
},
|
|
3201
|
+
}, Qs = {
|
|
3195
3202
|
class: "tips"
|
|
3196
|
-
},
|
|
3203
|
+
}, Ys = {
|
|
3197
3204
|
class: "right"
|
|
3198
|
-
},
|
|
3205
|
+
}, zs = /* @__PURE__ */ K({
|
|
3199
3206
|
__name: "ConfigColumns",
|
|
3200
3207
|
props: {
|
|
3201
3208
|
defaultActiveTab: {},
|
|
@@ -3226,17 +3233,17 @@ const es = {
|
|
|
3226
3233
|
checkedFixedColumns: f,
|
|
3227
3234
|
readonlyColumns: h,
|
|
3228
3235
|
getAllCheckedColumnsLength: r,
|
|
3229
|
-
scrollbarRef:
|
|
3230
|
-
groupNameRefs:
|
|
3231
|
-
observerRootElementRef:
|
|
3232
|
-
isCheckAll:
|
|
3233
|
-
checkAll:
|
|
3236
|
+
scrollbarRef: m,
|
|
3237
|
+
groupNameRefs: d,
|
|
3238
|
+
observerRootElementRef: y,
|
|
3239
|
+
isCheckAll: C,
|
|
3240
|
+
checkAll: b,
|
|
3234
3241
|
updateActiveTab: k,
|
|
3235
3242
|
updateFixed: G,
|
|
3236
|
-
deleteChecked:
|
|
3243
|
+
deleteChecked: M,
|
|
3237
3244
|
checkItem: w,
|
|
3238
3245
|
initAndReset: B
|
|
3239
|
-
} =
|
|
3246
|
+
} = _s(o), A = T(!1), N = () => {
|
|
3240
3247
|
A.value = !1;
|
|
3241
3248
|
}, W = () => {
|
|
3242
3249
|
n("cancel");
|
|
@@ -3247,45 +3254,45 @@ const es = {
|
|
|
3247
3254
|
item: D,
|
|
3248
3255
|
draggable: L
|
|
3249
3256
|
} = Q;
|
|
3250
|
-
return
|
|
3257
|
+
return _("div", {
|
|
3251
3258
|
class: ["select-item", L ? "select-item-drag" : ""]
|
|
3252
|
-
}, [
|
|
3259
|
+
}, [_("img", {
|
|
3253
3260
|
src: Ke,
|
|
3254
3261
|
alt: "..."
|
|
3255
|
-
}, null),
|
|
3262
|
+
}, null), _("span", {
|
|
3256
3263
|
class: "select-item__label"
|
|
3257
|
-
}, [D.label]), D.readonly ? null :
|
|
3264
|
+
}, [D.label]), D.readonly ? null : _("div", {
|
|
3258
3265
|
class: "select-item__icon"
|
|
3259
|
-
}, [
|
|
3266
|
+
}, [_("img", {
|
|
3260
3267
|
src: Vt,
|
|
3261
3268
|
alt: "锁",
|
|
3262
3269
|
onClick: () => G(D, void 0)
|
|
3263
|
-
}, null),
|
|
3264
|
-
onClick: () =>
|
|
3270
|
+
}, null), _(S("el-icon"), {
|
|
3271
|
+
onClick: () => M(D)
|
|
3265
3272
|
}, {
|
|
3266
|
-
default: () => [
|
|
3273
|
+
default: () => [_(lt, null, null)]
|
|
3267
3274
|
})])]);
|
|
3268
3275
|
};
|
|
3269
3276
|
return (Q, D) => {
|
|
3270
3277
|
const L = S("el-scrollbar"), U = S("el-checkbox"), X = S("el-icon"), ie = S("el-input"), J = S("el-button"), ce = ve("ellipsis");
|
|
3271
|
-
return v(), I(q, null, [F("div",
|
|
3278
|
+
return v(), I(q, null, [F("div", ws, [F("div", Bs, [D[5] || (D[5] = F("div", {
|
|
3272
3279
|
class: "title"
|
|
3273
|
-
}, "搜索列", -1)), F("div",
|
|
3280
|
+
}, "搜索列", -1)), F("div", Ds, [F("div", Es, [_(L, {
|
|
3274
3281
|
class: "position__scrollbar"
|
|
3275
3282
|
}, {
|
|
3276
3283
|
default: E(() => [(v(!0), I(q, null, le(i(a), (Y) => pe((v(), I("div", {
|
|
3277
3284
|
key: Y,
|
|
3278
3285
|
class: re(["tab-item", Y === i(g) ? "is-active" : ""]),
|
|
3279
3286
|
onClick: (me) => i(k)(Y, !0)
|
|
3280
|
-
}, [j($(Y), 1)], 10,
|
|
3287
|
+
}, [j($(Y), 1)], 10, Is)), [[ce]])), 128))]),
|
|
3281
3288
|
_: 1
|
|
3282
3289
|
})]), F("div", {
|
|
3283
3290
|
ref_key: "observerRootElementRef",
|
|
3284
|
-
ref:
|
|
3291
|
+
ref: y,
|
|
3285
3292
|
class: "active-tab-content"
|
|
3286
|
-
}, [
|
|
3293
|
+
}, [_(L, {
|
|
3287
3294
|
ref_key: "scrollbarRef",
|
|
3288
|
-
ref:
|
|
3295
|
+
ref: m,
|
|
3289
3296
|
class: "position__scrollbar"
|
|
3290
3297
|
}, {
|
|
3291
3298
|
default: E(() => [(v(!0), I(q, null, le(i(a), (Y) => (v(), I(q, {
|
|
@@ -3293,20 +3300,20 @@ const es = {
|
|
|
3293
3300
|
}, [F("div", {
|
|
3294
3301
|
ref_for: !0,
|
|
3295
3302
|
ref_key: "groupNameRefs",
|
|
3296
|
-
ref:
|
|
3303
|
+
ref: d,
|
|
3297
3304
|
class: "check-tab",
|
|
3298
3305
|
"data-group-name": Y
|
|
3299
|
-
}, [
|
|
3300
|
-
"model-value": i(
|
|
3306
|
+
}, [_(U, {
|
|
3307
|
+
"model-value": i(C)(Y),
|
|
3301
3308
|
indeterminate: i(c)(Y),
|
|
3302
|
-
onChange: (me) => i(
|
|
3309
|
+
onChange: (me) => i(b)(me, Y)
|
|
3303
3310
|
}, {
|
|
3304
3311
|
default: E(() => [pe((v(), I("div", null, [j($(Y), 1)])), [[ce]])]),
|
|
3305
3312
|
_: 2
|
|
3306
|
-
}, 1032, ["model-value", "indeterminate", "onChange"])], 8,
|
|
3313
|
+
}, 1032, ["model-value", "indeterminate", "onChange"])], 8, ks), F("div", Ss, [(v(!0), I(q, null, le(i(p)(Y), (me) => (v(), I("div", {
|
|
3307
3314
|
key: me.prop,
|
|
3308
3315
|
class: "check-sub__item"
|
|
3309
|
-
}, [
|
|
3316
|
+
}, [_(U, {
|
|
3310
3317
|
modelValue: me.checked,
|
|
3311
3318
|
"onUpdate:modelValue": (xe) => me.checked = xe,
|
|
3312
3319
|
disabled: me.readonly,
|
|
@@ -3316,16 +3323,16 @@ const es = {
|
|
|
3316
3323
|
_: 2
|
|
3317
3324
|
}, 1032, ["modelValue", "onUpdate:modelValue", "disabled", "onChange"])]))), 128))])], 64))), 128))]),
|
|
3318
3325
|
_: 1
|
|
3319
|
-
}, 512)], 512)])]), F("div",
|
|
3326
|
+
}, 512)], 512)])]), F("div", Gs, [F("div", Ts, [F("div", Ms, "已选 " + $(i(r)) + " 个", 1), F("div", {
|
|
3320
3327
|
class: "reset",
|
|
3321
3328
|
onClick: D[0] || (D[0] = (Y) => i(B)("reset"))
|
|
3322
|
-
}, "重置")]), F("div",
|
|
3329
|
+
}, "重置")]), F("div", xs, [_(L, {
|
|
3323
3330
|
class: "position__scrollbar-no-right"
|
|
3324
3331
|
}, {
|
|
3325
|
-
default: E(() => [Q.hasLockColumns ? (v(), I("div",
|
|
3332
|
+
default: E(() => [Q.hasLockColumns ? (v(), I("div", Fs, [(v(!0), I(q, null, le(i(h), (Y) => (v(), V(O, {
|
|
3326
3333
|
key: Y.prop,
|
|
3327
3334
|
item: Y
|
|
3328
|
-
}, null, 8, ["item"]))), 128)),
|
|
3335
|
+
}, null, 8, ["item"]))), 128)), _(i(We), {
|
|
3329
3336
|
modelValue: i(f),
|
|
3330
3337
|
"onUpdate:modelValue": D[1] || (D[1] = (Y) => be(f) ? f.value = Y : null),
|
|
3331
3338
|
draggable: ".select-item-drag"
|
|
@@ -3338,7 +3345,7 @@ const es = {
|
|
|
3338
3345
|
_: 1
|
|
3339
3346
|
}, 8, ["modelValue"]), D[6] || (D[6] = F("div", {
|
|
3340
3347
|
class: "select-fixed__tips"
|
|
3341
|
-
}, "最多可横向锁定5列", -1))])) : Z("", !0), F("div",
|
|
3348
|
+
}, "最多可横向锁定5列", -1))])) : Z("", !0), F("div", Ps, [_(i(We), {
|
|
3342
3349
|
modelValue: i(u),
|
|
3343
3350
|
"onUpdate:modelValue": D[2] || (D[2] = (Y) => be(u) ? u.value = Y : null),
|
|
3344
3351
|
draggable: ".select-item-drag"
|
|
@@ -3350,7 +3357,7 @@ const es = {
|
|
|
3350
3357
|
}, [F("img", {
|
|
3351
3358
|
src: i(Ke),
|
|
3352
3359
|
alt: "..."
|
|
3353
|
-
}, null, 8,
|
|
3360
|
+
}, null, 8, Rs), pe((v(), I("span", Vs, [j($(Y.label), 1)])), [[ce]]), F("div", Os, [Q.hasLockColumns ? (v(), I("img", {
|
|
3354
3361
|
key: 0,
|
|
3355
3362
|
class: re({
|
|
3356
3363
|
"not-lock": i(f).length >= 5
|
|
@@ -3358,24 +3365,24 @@ const es = {
|
|
|
3358
3365
|
src: i(Vt),
|
|
3359
3366
|
alt: "锁",
|
|
3360
3367
|
onClick: (me) => i(G)(Y, "left")
|
|
3361
|
-
}, null, 10,
|
|
3368
|
+
}, null, 10, Ls)) : Z("", !0), Y.readonly ? Z("", !0) : (v(), V(X, {
|
|
3362
3369
|
key: 1,
|
|
3363
|
-
onClick: (me) => i(
|
|
3370
|
+
onClick: (me) => i(M)(Y)
|
|
3364
3371
|
}, {
|
|
3365
|
-
default: E(() => [
|
|
3372
|
+
default: E(() => [_(i(lt))]),
|
|
3366
3373
|
_: 2
|
|
3367
|
-
}, 1032, ["onClick"]))])], 10,
|
|
3374
|
+
}, 1032, ["onClick"]))])], 10, Ns))), 128))]),
|
|
3368
3375
|
_: 1
|
|
3369
3376
|
}, 8, ["modelValue"])])]),
|
|
3370
3377
|
_: 1
|
|
3371
|
-
})])])]), F("div",
|
|
3378
|
+
})])])]), F("div", Hs, [F("div", Us, [_(U, {
|
|
3372
3379
|
modelValue: i(s),
|
|
3373
3380
|
"onUpdate:modelValue": D[3] || (D[3] = (Y) => be(s) ? s.value = Y : null)
|
|
3374
3381
|
}, {
|
|
3375
3382
|
default: E(() => D[7] || (D[7] = [j("保存为常用自定义列", -1)])),
|
|
3376
3383
|
_: 1,
|
|
3377
3384
|
__: [7]
|
|
3378
|
-
}, 8, ["modelValue"]),
|
|
3385
|
+
}, 8, ["modelValue"]), _(ie, {
|
|
3379
3386
|
modelValue: i(l),
|
|
3380
3387
|
"onUpdate:modelValue": D[4] || (D[4] = (Y) => be(l) ? l.value = Y : null),
|
|
3381
3388
|
class: re(A.value ? "is-error" : ""),
|
|
@@ -3385,14 +3392,14 @@ const es = {
|
|
|
3385
3392
|
}, {
|
|
3386
3393
|
suffix: E(() => [j($(i(l)?.length || 0) + "/10", 1)]),
|
|
3387
3394
|
_: 1
|
|
3388
|
-
}, 8, ["modelValue", "class"]), pe((v(), I("div",
|
|
3395
|
+
}, 8, ["modelValue", "class"]), pe((v(), I("div", Qs, [j("设置会将应用于" + $(o.pageName) + "列表", 1)])), [[ce]])]), F("div", Ys, [_(J, {
|
|
3389
3396
|
loading: Q.loading,
|
|
3390
3397
|
onClick: W
|
|
3391
3398
|
}, {
|
|
3392
3399
|
default: E(() => D[8] || (D[8] = [j("取消", -1)])),
|
|
3393
3400
|
_: 1,
|
|
3394
3401
|
__: [8]
|
|
3395
|
-
}, 8, ["loading"]),
|
|
3402
|
+
}, 8, ["loading"]), _(J, {
|
|
3396
3403
|
loading: Q.loading,
|
|
3397
3404
|
type: "primary",
|
|
3398
3405
|
onClick: x
|
|
@@ -3403,39 +3410,39 @@ const es = {
|
|
|
3403
3410
|
}, 8, ["loading"])])])], 64);
|
|
3404
3411
|
};
|
|
3405
3412
|
}
|
|
3406
|
-
}),
|
|
3413
|
+
}), Zs = /* @__PURE__ */ ae(zs, [["__scopeId", "data-v-82a38bbc"]]), Xs = /* @__PURE__ */ K({
|
|
3407
3414
|
__name: "BaseTableConfigColumnsDialog",
|
|
3408
3415
|
props: {
|
|
3409
3416
|
columnConfig: {}
|
|
3410
3417
|
},
|
|
3411
3418
|
emits: ["saveColumns"],
|
|
3412
3419
|
setup(t, { expose: e, emit: o }) {
|
|
3413
|
-
const n = o, [a, s] = ut(!0), l =
|
|
3420
|
+
const n = o, [a, s] = ut(!0), l = T({}), g = T(void 0), c = T(!1), p = T("");
|
|
3414
3421
|
let u;
|
|
3415
|
-
const f = async (
|
|
3416
|
-
l.value = ge(
|
|
3422
|
+
const f = async (m, d) => {
|
|
3423
|
+
l.value = ge(m.groupData), p.value = m.groupName, a.value = !0, await ne();
|
|
3417
3424
|
try {
|
|
3418
|
-
g.value =
|
|
3425
|
+
g.value = d;
|
|
3419
3426
|
} finally {
|
|
3420
3427
|
s(() => {
|
|
3421
3428
|
c.value = !0;
|
|
3422
3429
|
});
|
|
3423
3430
|
}
|
|
3424
|
-
return new Promise((
|
|
3425
|
-
u =
|
|
3431
|
+
return new Promise((y) => {
|
|
3432
|
+
u = y;
|
|
3426
3433
|
});
|
|
3427
3434
|
}, h = () => {
|
|
3428
3435
|
c.value = !1;
|
|
3429
|
-
}, r = (
|
|
3430
|
-
if (
|
|
3431
|
-
|
|
3436
|
+
}, r = (m, d, y) => {
|
|
3437
|
+
if (m.length === 0) {
|
|
3438
|
+
Ua("至少保留一列");
|
|
3432
3439
|
return;
|
|
3433
3440
|
}
|
|
3434
3441
|
a.value = !1, u({
|
|
3435
3442
|
data: {
|
|
3436
|
-
updateData:
|
|
3437
|
-
groupName:
|
|
3438
|
-
isSave:
|
|
3443
|
+
updateData: m,
|
|
3444
|
+
groupName: d,
|
|
3445
|
+
isSave: y
|
|
3439
3446
|
},
|
|
3440
3447
|
close: () => {
|
|
3441
3448
|
s(() => {
|
|
@@ -3446,23 +3453,23 @@ const es = {
|
|
|
3446
3453
|
};
|
|
3447
3454
|
return e({
|
|
3448
3455
|
openDialog: f
|
|
3449
|
-
}), (
|
|
3450
|
-
const
|
|
3451
|
-
return v(), V(
|
|
3456
|
+
}), (m, d) => {
|
|
3457
|
+
const y = S("el-dialog");
|
|
3458
|
+
return v(), V(y, {
|
|
3452
3459
|
modelValue: c.value,
|
|
3453
|
-
"onUpdate:modelValue":
|
|
3460
|
+
"onUpdate:modelValue": d[0] || (d[0] = (C) => c.value = C),
|
|
3454
3461
|
class: "config-columns-dialog",
|
|
3455
3462
|
title: "自定义列",
|
|
3456
3463
|
"close-on-click-modal": !1,
|
|
3457
3464
|
"destroy-on-close": ""
|
|
3458
3465
|
}, {
|
|
3459
3466
|
default: E(() => [
|
|
3460
|
-
c.value ? (v(), V(
|
|
3467
|
+
c.value ? (v(), V(Zs, {
|
|
3461
3468
|
key: 0,
|
|
3462
3469
|
"initial-group-data": l.value,
|
|
3463
3470
|
"saved-columns-data": g.value,
|
|
3464
3471
|
"group-name": p.value,
|
|
3465
|
-
"page-name":
|
|
3472
|
+
"page-name": m.columnConfig?.pageName,
|
|
3466
3473
|
loading: i(a),
|
|
3467
3474
|
onConfirm: r,
|
|
3468
3475
|
onCancel: h
|
|
@@ -3472,7 +3479,7 @@ const es = {
|
|
|
3472
3479
|
}, 8, ["modelValue"]);
|
|
3473
3480
|
};
|
|
3474
3481
|
}
|
|
3475
|
-
}),
|
|
3482
|
+
}), Ws = () => {
|
|
3476
3483
|
const t = Uo("listenElementRef"), e = () => t?.value || document.body, o = [], n = (s, l, g) => {
|
|
3477
3484
|
o.push({ event: s, fn: l, options: g }), e().addEventListener(s, l, g);
|
|
3478
3485
|
}, a = () => {
|
|
@@ -3483,86 +3490,86 @@ const es = {
|
|
|
3483
3490
|
on: n,
|
|
3484
3491
|
listenElementRef: t
|
|
3485
3492
|
};
|
|
3486
|
-
},
|
|
3493
|
+
}, js = {
|
|
3487
3494
|
key: 0,
|
|
3488
3495
|
class: "base-table__column-search"
|
|
3489
|
-
},
|
|
3496
|
+
}, Ks = { class: "base-table__column-search__count" }, qs = { class: "base-table__column-search__icon" }, Js = /* @__PURE__ */ K({
|
|
3490
3497
|
__name: "ColumnSearch",
|
|
3491
3498
|
props: {
|
|
3492
3499
|
count: {}
|
|
3493
3500
|
},
|
|
3494
3501
|
emits: ["find", "hidden"],
|
|
3495
3502
|
setup(t, { emit: e }) {
|
|
3496
|
-
const o = e, n =
|
|
3497
|
-
n.value =
|
|
3503
|
+
const o = e, n = T(0), a = T(""), s = T(!1), l = T(), { on: g } = Ws(), c = (d) => {
|
|
3504
|
+
n.value = d, o("find", a.value, d);
|
|
3498
3505
|
}, p = Ko(() => {
|
|
3499
3506
|
c(0);
|
|
3500
3507
|
}, 500), u = () => {
|
|
3501
|
-
const
|
|
3502
|
-
c(
|
|
3508
|
+
const d = n.value > 0 ? n.value - 1 : t.count - 1;
|
|
3509
|
+
c(d);
|
|
3503
3510
|
}, f = () => {
|
|
3504
|
-
const
|
|
3505
|
-
c(
|
|
3511
|
+
const d = n.value + 1 < t.count ? n.value + 1 : 0;
|
|
3512
|
+
c(d);
|
|
3506
3513
|
}, h = async () => {
|
|
3507
3514
|
s.value = !0, await ne(), l.value?.focus();
|
|
3508
3515
|
}, r = () => {
|
|
3509
3516
|
s.value = !1, a.value = "", n.value = 0, o("hidden");
|
|
3510
|
-
},
|
|
3517
|
+
}, m = P(() => t.count ? n.value + 1 : 0);
|
|
3511
3518
|
return $e(() => {
|
|
3512
|
-
g("keydown", (
|
|
3513
|
-
const
|
|
3514
|
-
switch (
|
|
3519
|
+
g("keydown", (d) => {
|
|
3520
|
+
const y = d.target, C = l.value?.$el?.contains?.(y), { key: b, metaKey: k, ctrlKey: G } = d;
|
|
3521
|
+
switch (b) {
|
|
3515
3522
|
case "f":
|
|
3516
|
-
(k || G) && (
|
|
3523
|
+
(k || G) && (d.preventDefault(), h());
|
|
3517
3524
|
break;
|
|
3518
3525
|
case "Escape":
|
|
3519
3526
|
r();
|
|
3520
3527
|
break;
|
|
3521
3528
|
case "ArrowUp":
|
|
3522
|
-
|
|
3529
|
+
C && d.preventDefault(), u();
|
|
3523
3530
|
break;
|
|
3524
3531
|
case "ArrowDown":
|
|
3525
|
-
|
|
3532
|
+
C && d.preventDefault(), f();
|
|
3526
3533
|
break;
|
|
3527
3534
|
}
|
|
3528
3535
|
});
|
|
3529
|
-
}), (
|
|
3530
|
-
const
|
|
3536
|
+
}), (d, y) => {
|
|
3537
|
+
const C = S("el-icon");
|
|
3531
3538
|
return v(), V(Qo, { to: "body" }, [
|
|
3532
|
-
s.value ? (v(), I("div",
|
|
3533
|
-
|
|
3539
|
+
s.value ? (v(), I("div", js, [
|
|
3540
|
+
_(i(ln), {
|
|
3534
3541
|
ref_key: "inputRef",
|
|
3535
3542
|
ref: l,
|
|
3536
3543
|
modelValue: a.value,
|
|
3537
|
-
"onUpdate:modelValue":
|
|
3544
|
+
"onUpdate:modelValue": y[0] || (y[0] = (b) => a.value = b),
|
|
3538
3545
|
placeholder: "请输入搜索关键字",
|
|
3539
3546
|
onInput: i(p),
|
|
3540
3547
|
onKeydown: Yo(f, ["enter"])
|
|
3541
3548
|
}, {
|
|
3542
3549
|
append: E(() => [
|
|
3543
|
-
F("div",
|
|
3544
|
-
F("div",
|
|
3545
|
-
|
|
3546
|
-
class: re(
|
|
3550
|
+
F("div", Ks, $(m.value) + "/" + $(d.count), 1),
|
|
3551
|
+
F("div", qs, [
|
|
3552
|
+
_(C, {
|
|
3553
|
+
class: re(d.count ? "is-active" : "is-disable"),
|
|
3547
3554
|
onClick: u
|
|
3548
3555
|
}, {
|
|
3549
3556
|
default: E(() => [
|
|
3550
|
-
|
|
3557
|
+
_(i($o))
|
|
3551
3558
|
]),
|
|
3552
3559
|
_: 1
|
|
3553
3560
|
}, 8, ["class"]),
|
|
3554
|
-
|
|
3555
|
-
class: re(
|
|
3561
|
+
_(C, {
|
|
3562
|
+
class: re(d.count ? "is-active" : "is-disable"),
|
|
3556
3563
|
onClick: f
|
|
3557
3564
|
}, {
|
|
3558
3565
|
default: E(() => [
|
|
3559
|
-
|
|
3566
|
+
_(i(en))
|
|
3560
3567
|
]),
|
|
3561
3568
|
_: 1
|
|
3562
3569
|
}, 8, ["class"]),
|
|
3563
|
-
|
|
3570
|
+
_(C, { onClick: r }, {
|
|
3564
3571
|
default: E(() => [
|
|
3565
|
-
|
|
3572
|
+
_(i(Ct))
|
|
3566
3573
|
]),
|
|
3567
3574
|
_: 1
|
|
3568
3575
|
})
|
|
@@ -3574,7 +3581,7 @@ const es = {
|
|
|
3574
3581
|
]);
|
|
3575
3582
|
};
|
|
3576
3583
|
}
|
|
3577
|
-
}),
|
|
3584
|
+
}), $s = /* @__PURE__ */ ae(Js, [["__scopeId", "data-v-d3a01d9a"]]), el = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAAADGklEQVR4Xu1Y0ZEaMQy9ElICJVACDWCcj0zYzc2En8zA5j7oIHRw6SDXQUqgBErYEigh8TN2Yr/Vyobc3keGN6OBYyVZlp5k7z083HHHbbB2/86u9zNN2ObNYZvd3jS7s5NfBenfN18/s/2bwK63MyEgTc7IPvuZHCGbHIwqy0+7PfuZHKtmd4wBuO/9st1uJFm1f6mxarsf7OfVEDLXm6Y7Ofm+bJ4sl10LwG3iZ6Lryw8f8BX9Lttuw3ZXARnh8kniNmPZNqKWIvZxu2DbKmDnxu946JRFaxLOviI921bBrLtv7EhwrpY9IuVzZss+2+7Atio4C3Dof8dwd2UGv8A9p3fQshlhN6iOtzni09ktvC/3e9ps5toRhiylgdr1P5Jdgf044PAz64i4ZGyYzRJwVGJOXjbppoP7jsqwngSmQFVjGTYqLIbnYxz0G3WBV/hYUHKOrJPhMt/yRVgnReBytrER6UvB8mbVrA7nZnfSyC0FieagBrn8rmTpMgpxoFQGKnTh6AK8KfAMJYzP8b2Ge1KQ3peSIA/bfpkPghUokJYqBDljHc/f9Kx3I411xCAFXyKkYPk8Lm0kwj1/SXSzCTJSlVmqU4QzfE6d8KmhPUuBZ6lu9izfBCbMIX1ehHB8Di4epZJG5N3cndJnOEh4neo3ASiysWmHOx2Mk7abs459fMrno0ARZJHXKwYb5mIxSICHtJMzeIyAcUqFkmc8l7oeMEQB2Kldz+Q2hXOXs1oQ1Zdhvip33EGWxmZoRLgVZeNFkpIfwPDMLXU/Z2msXCnAMx7uPkDXcDUvdFxJicsDCDwtnxIBqEh8qUtPKQ1hveuyGWEKM/Q1MVxLbl4Rwpl/xi79uHFBB3r0NVc4ADp/bPDpfMAXVw/0YdsihJu3KLc0ypjc/CZR09F+AYXD9kM3Z31Z8lPrKvC4SqRP/9Y6m9/r+bITpYZCKpARcBHiuzlkr/ZfNem4ixz0fPfnvHszBc/dbY3tXg24iCQZOcfNsOTZHN/QZOCS1oh6LE4FYYSpgrJrTTcp/JtAmI+aQGdSHt7xP+M34WzNZBUBRu8AAAAASUVORK5CYII=", tl = ["src", "alt"], ol = ["src", "alt"], nl = /* @__PURE__ */ K({
|
|
3578
3585
|
name: "OperationIconButton",
|
|
3579
3586
|
__name: "OperationIconButton",
|
|
3580
3587
|
props: {
|
|
@@ -3601,7 +3608,7 @@ const es = {
|
|
|
3601
3608
|
F("img", {
|
|
3602
3609
|
src: n.src,
|
|
3603
3610
|
alt: n.alt || n.tips
|
|
3604
|
-
}, null, 8,
|
|
3611
|
+
}, null, 8, tl)
|
|
3605
3612
|
])
|
|
3606
3613
|
]),
|
|
3607
3614
|
_: 1
|
|
@@ -3613,27 +3620,27 @@ const es = {
|
|
|
3613
3620
|
F("img", {
|
|
3614
3621
|
src: n.src,
|
|
3615
3622
|
alt: n.alt
|
|
3616
|
-
}, null, 8,
|
|
3623
|
+
}, null, 8, ol)
|
|
3617
3624
|
]));
|
|
3618
3625
|
};
|
|
3619
3626
|
}
|
|
3620
|
-
}), dt = /* @__PURE__ */ ae(
|
|
3627
|
+
}), dt = /* @__PURE__ */ ae(nl, [["__scopeId", "data-v-987e12ea"]]), bo = (t) => {
|
|
3621
3628
|
const e = {
|
|
3622
3629
|
defaultChecked: !0,
|
|
3623
3630
|
// 如果设置了 _render 则不显示 showOverflowTooltip
|
|
3624
3631
|
showOverflowTooltip: !t._render
|
|
3625
3632
|
};
|
|
3626
3633
|
return t.prop ? Object.assign(e, t) : t;
|
|
3627
|
-
},
|
|
3634
|
+
}, rr = (t) => t.map(bo), _o = "-", Ot = "base-table__column__is-draggable", at = _("span", {
|
|
3628
3635
|
style: {
|
|
3629
3636
|
color: "#999",
|
|
3630
3637
|
fontSize: "12px"
|
|
3631
3638
|
}
|
|
3632
|
-
}, [_o]), qe = "-1",
|
|
3639
|
+
}, [_o]), qe = "-1", al = "-2", sl = "列信息", Lt = {
|
|
3633
3640
|
layout: "total, prev, pager, next, sizes",
|
|
3634
3641
|
pageSize: 20,
|
|
3635
3642
|
pageSizes: [10, 20, 50, 100]
|
|
3636
|
-
},
|
|
3643
|
+
}, ll = {
|
|
3637
3644
|
background: "#fafafc",
|
|
3638
3645
|
color: "var(--app-text-default-color)"
|
|
3639
3646
|
}, ze = {
|
|
@@ -3647,12 +3654,12 @@ const es = {
|
|
|
3647
3654
|
type: "selection",
|
|
3648
3655
|
width: 55
|
|
3649
3656
|
}
|
|
3650
|
-
},
|
|
3657
|
+
}, ir = () => bo({
|
|
3651
3658
|
prop: "_sort",
|
|
3652
3659
|
width: 55,
|
|
3653
3660
|
label: "排序",
|
|
3654
3661
|
renderToEmpty: !0,
|
|
3655
|
-
_render: () =>
|
|
3662
|
+
_render: () => _("div", {
|
|
3656
3663
|
style: {
|
|
3657
3664
|
display: "flex",
|
|
3658
3665
|
alignItems: "center",
|
|
@@ -3661,7 +3668,7 @@ const es = {
|
|
|
3661
3668
|
outline: "none",
|
|
3662
3669
|
userSelect: "none"
|
|
3663
3670
|
}
|
|
3664
|
-
}, [
|
|
3671
|
+
}, [_("img", {
|
|
3665
3672
|
style: {
|
|
3666
3673
|
cursor: "move",
|
|
3667
3674
|
width: "100%",
|
|
@@ -3688,28 +3695,28 @@ const es = {
|
|
|
3688
3695
|
id: l,
|
|
3689
3696
|
name: g
|
|
3690
3697
|
} = s;
|
|
3691
|
-
return
|
|
3698
|
+
return _(S("el-dropdown-item"), {
|
|
3692
3699
|
class: n(l),
|
|
3693
3700
|
onClick: _e(() => {
|
|
3694
3701
|
l !== t.groupId && o("change", l);
|
|
3695
3702
|
}, ["stop"])
|
|
3696
3703
|
}, {
|
|
3697
|
-
default: () => [pe(
|
|
3704
|
+
default: () => [pe(_("div", {
|
|
3698
3705
|
class: "config-columns__btn-item-name"
|
|
3699
|
-
}, [g]), [[ve("ellipsis")]]), l !== qe ?
|
|
3706
|
+
}, [g]), [[ve("ellipsis")]]), l !== qe ? _("div", {
|
|
3700
3707
|
class: "config-columns__btn-operation"
|
|
3701
|
-
}, [
|
|
3708
|
+
}, [_(S("el-icon"), {
|
|
3702
3709
|
class: "edit-icon",
|
|
3703
3710
|
onClick: _e(() => o("edit", l), ["stop"])
|
|
3704
3711
|
}, {
|
|
3705
|
-
default: () => [
|
|
3706
|
-
}),
|
|
3712
|
+
default: () => [_(oo, null, null)]
|
|
3713
|
+
}), _(S("el-icon"), {
|
|
3707
3714
|
class: "delete-icon",
|
|
3708
3715
|
onClick: _e(async () => {
|
|
3709
3716
|
await Ao("是否确定删除该列") && o("delete", l);
|
|
3710
3717
|
}, ["stop"])
|
|
3711
3718
|
}, {
|
|
3712
|
-
default: () => [
|
|
3719
|
+
default: () => [_(tn, null, null)]
|
|
3713
3720
|
})]) : null]
|
|
3714
3721
|
});
|
|
3715
3722
|
};
|
|
@@ -3720,19 +3727,19 @@ const es = {
|
|
|
3720
3727
|
trigger: "hover",
|
|
3721
3728
|
placement: "bottom-end"
|
|
3722
3729
|
}, {
|
|
3723
|
-
dropdown: E(() => [
|
|
3724
|
-
default: E(() => [
|
|
3730
|
+
dropdown: E(() => [_(p, null, {
|
|
3731
|
+
default: E(() => [_(g, {
|
|
3725
3732
|
disabled: ""
|
|
3726
3733
|
}, {
|
|
3727
3734
|
default: E(() => l[1] || (l[1] = [j("系统推荐", -1)])),
|
|
3728
3735
|
_: 1,
|
|
3729
3736
|
__: [1]
|
|
3730
|
-
}),
|
|
3737
|
+
}), _(a, {
|
|
3731
3738
|
id: i(qe),
|
|
3732
3739
|
name: s.columnConfig?.systemGroupName || "系统默认"
|
|
3733
3740
|
}, null, 8, ["id", "name"]), l[3] || (l[3] = F("div", {
|
|
3734
3741
|
class: "config-columns__btn-item__line"
|
|
3735
|
-
}, null, -1)),
|
|
3742
|
+
}, null, -1)), _(g, {
|
|
3736
3743
|
disabled: ""
|
|
3737
3744
|
}, {
|
|
3738
3745
|
default: E(() => [j("常用自定义列(" + $(s.columnGroups?.length || 0) + "/10)", 1)]),
|
|
@@ -3745,7 +3752,7 @@ const es = {
|
|
|
3745
3752
|
key: 0,
|
|
3746
3753
|
class: "config-columns__btn-add"
|
|
3747
3754
|
}, {
|
|
3748
|
-
default: E(() => [
|
|
3755
|
+
default: E(() => [_(c, {
|
|
3749
3756
|
link: "",
|
|
3750
3757
|
icon: i(no),
|
|
3751
3758
|
type: "primary",
|
|
@@ -3760,15 +3767,15 @@ const es = {
|
|
|
3760
3767
|
_: 1,
|
|
3761
3768
|
__: [3]
|
|
3762
3769
|
})]),
|
|
3763
|
-
default: E(() => [
|
|
3764
|
-
src: i(
|
|
3770
|
+
default: E(() => [_(dt, {
|
|
3771
|
+
src: i(el),
|
|
3765
3772
|
alt: "自定义列"
|
|
3766
3773
|
}, null, 8, ["src"])]),
|
|
3767
3774
|
_: 1
|
|
3768
3775
|
});
|
|
3769
3776
|
};
|
|
3770
3777
|
}
|
|
3771
|
-
}),
|
|
3778
|
+
}), rl = /* @__PURE__ */ K({
|
|
3772
3779
|
name: "ZTableLinkButton",
|
|
3773
3780
|
__name: "index",
|
|
3774
3781
|
emits: ["click"],
|
|
@@ -3781,11 +3788,11 @@ const es = {
|
|
|
3781
3788
|
fe(n.$slots, "default", {}, void 0, !0)
|
|
3782
3789
|
]));
|
|
3783
3790
|
}
|
|
3784
|
-
}), wo = /* @__PURE__ */ ae(
|
|
3785
|
-
function
|
|
3791
|
+
}), wo = /* @__PURE__ */ ae(rl, [["__scopeId", "data-v-a44085cd"]]);
|
|
3792
|
+
function il(t) {
|
|
3786
3793
|
return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !zo(t);
|
|
3787
3794
|
}
|
|
3788
|
-
function
|
|
3795
|
+
function cl(t) {
|
|
3789
3796
|
const {
|
|
3790
3797
|
column: e,
|
|
3791
3798
|
data: o,
|
|
@@ -3804,44 +3811,44 @@ function rl(t) {
|
|
|
3804
3811
|
if (a) {
|
|
3805
3812
|
const {
|
|
3806
3813
|
$tableData: r,
|
|
3807
|
-
$index:
|
|
3808
|
-
$defaultSort:
|
|
3809
|
-
$rowKey:
|
|
3814
|
+
$index: m,
|
|
3815
|
+
$defaultSort: d,
|
|
3816
|
+
$rowKey: y
|
|
3810
3817
|
} = o;
|
|
3811
|
-
let
|
|
3812
|
-
|
|
3813
|
-
const
|
|
3814
|
-
return typeof
|
|
3818
|
+
let C = m;
|
|
3819
|
+
d && (y ? C = r.findIndex((k) => Reflect.get(k, y) === Reflect.get(n, y)) : console.warn("如果设置了default-sort,必须要设置row-key,否则可能会导致自定义渲染内容错乱!"));
|
|
3820
|
+
const b = a(At, o ?? {}, Reflect.get(r, C) ?? {});
|
|
3821
|
+
return typeof b != "number" && (!b || b === _o) ? at : b;
|
|
3815
3822
|
}
|
|
3816
3823
|
const u = c ?? at;
|
|
3817
3824
|
if (!p)
|
|
3818
3825
|
return u;
|
|
3819
3826
|
const f = Reflect.get(o, p);
|
|
3820
3827
|
if (s) {
|
|
3821
|
-
const r = s.find((
|
|
3822
|
-
return r?._color ?
|
|
3828
|
+
const r = s.find((d) => d.value === f), m = r?.label ?? u;
|
|
3829
|
+
return r?._color ? _("span", {
|
|
3823
3830
|
style: {
|
|
3824
3831
|
color: r._color
|
|
3825
3832
|
}
|
|
3826
|
-
}, [
|
|
3833
|
+
}, [m]) : r?._status ? _("span", {
|
|
3827
3834
|
class: "custom-status__color",
|
|
3828
3835
|
style: {
|
|
3829
3836
|
"--status-color": r._status
|
|
3830
3837
|
}
|
|
3831
|
-
}, [
|
|
3838
|
+
}, [m]) : m;
|
|
3832
3839
|
}
|
|
3833
3840
|
const h = Vn(f) || f == c;
|
|
3834
3841
|
if (l) {
|
|
3835
|
-
const r =
|
|
3842
|
+
const r = _(wo, {
|
|
3836
3843
|
onClick: () => l?.(t.data)
|
|
3837
|
-
},
|
|
3844
|
+
}, il(f) ? f : {
|
|
3838
3845
|
default: () => [f]
|
|
3839
3846
|
});
|
|
3840
3847
|
return g ? r : h ? u : r;
|
|
3841
3848
|
}
|
|
3842
3849
|
return h ? u : f;
|
|
3843
3850
|
}
|
|
3844
|
-
function
|
|
3851
|
+
function ul(t) {
|
|
3845
3852
|
const {
|
|
3846
3853
|
column: e,
|
|
3847
3854
|
headerColumn: o,
|
|
@@ -3852,8 +3859,8 @@ function il(t) {
|
|
|
3852
3859
|
} = e;
|
|
3853
3860
|
return a ? a(At, o, n, e) : s;
|
|
3854
3861
|
}
|
|
3855
|
-
const st = (t) => typeof t == "boolean" ? t ? "left" : void 0 : t,
|
|
3856
|
-
const e =
|
|
3862
|
+
const st = (t) => typeof t == "boolean" ? t ? "left" : void 0 : t, dl = (t) => {
|
|
3863
|
+
const e = T([]), o = async () => {
|
|
3857
3864
|
if (t.columnConfig?.pageId) {
|
|
3858
3865
|
const c = await Ne.loadViewConfig({ pageId: t.columnConfig.pageId, type: 2 });
|
|
3859
3866
|
if (c?.length) {
|
|
@@ -3864,13 +3871,13 @@ const st = (t) => typeof t == "boolean" ? t ? "left" : void 0 : t, cl = (t) => {
|
|
|
3864
3871
|
}, n = (c) => {
|
|
3865
3872
|
const p = {}, u = t.columns.length;
|
|
3866
3873
|
for (let h = 0; h < u; ++h) {
|
|
3867
|
-
const { groupName: r =
|
|
3868
|
-
if (!
|
|
3874
|
+
const { groupName: r = sl, prop: m, label: d, defaultChecked: y, readonly: C, fixed: b } = t.columns[h];
|
|
3875
|
+
if (!m || !d)
|
|
3869
3876
|
continue;
|
|
3870
3877
|
let k = Reflect.get(p, r);
|
|
3871
3878
|
k || Reflect.set(p, r, k = []);
|
|
3872
|
-
const G = { prop:
|
|
3873
|
-
|
|
3879
|
+
const G = { prop: m, label: d, defaultChecked: y, fixed: st(b) };
|
|
3880
|
+
C && (G.defaultChecked = !0, G.readonly = !0), k.push(G);
|
|
3874
3881
|
}
|
|
3875
3882
|
return {
|
|
3876
3883
|
groupName: c && e.value.find((h) => h.id === c)?.groupName || "",
|
|
@@ -3907,24 +3914,24 @@ const st = (t) => typeof t == "boolean" ? t ? "left" : void 0 : t, cl = (t) => {
|
|
|
3907
3914
|
);
|
|
3908
3915
|
},
|
|
3909
3916
|
saveConfigColumns: async (c, p, u) => {
|
|
3910
|
-
const f = new Map(c.map((
|
|
3911
|
-
(
|
|
3912
|
-
prop:
|
|
3913
|
-
checked: f.has(
|
|
3914
|
-
fixed: f.get(
|
|
3917
|
+
const f = new Map(c.map((m, d) => [m.prop, { ...m, index: d }])), h = t.columns.filter((m) => m.prop && m.label), r = R.sortBy(h, (m) => f.get(m.prop)?.index ?? -1).map(
|
|
3918
|
+
(m) => ({
|
|
3919
|
+
prop: m.prop,
|
|
3920
|
+
checked: f.has(m.prop),
|
|
3921
|
+
fixed: f.get(m.prop)?.fixed
|
|
3915
3922
|
})
|
|
3916
3923
|
);
|
|
3917
3924
|
if (u) {
|
|
3918
|
-
const { id:
|
|
3919
|
-
|
|
3925
|
+
const { id: m, groupName: d } = p, y = e.value.find((C) => C.id === m);
|
|
3926
|
+
y ? (y.columns = r, y.groupName = d) : e.value.push({ ...p, columns: r });
|
|
3920
3927
|
try {
|
|
3921
3928
|
await Ne.saveViewConfig({
|
|
3922
3929
|
pageId: t.columnConfig?.pageId,
|
|
3923
3930
|
type: 2,
|
|
3924
3931
|
config: JSON.stringify(e.value)
|
|
3925
3932
|
});
|
|
3926
|
-
} catch (
|
|
3927
|
-
console.log(
|
|
3933
|
+
} catch (C) {
|
|
3934
|
+
console.log(C);
|
|
3928
3935
|
}
|
|
3929
3936
|
}
|
|
3930
3937
|
return a(r);
|
|
@@ -3939,7 +3946,7 @@ const st = (t) => typeof t == "boolean" ? t ? "left" : void 0 : t, cl = (t) => {
|
|
|
3939
3946
|
},
|
|
3940
3947
|
columnGroups: e
|
|
3941
3948
|
};
|
|
3942
|
-
},
|
|
3949
|
+
}, pl = (t) => {
|
|
3943
3950
|
const {
|
|
3944
3951
|
initGroupData: e,
|
|
3945
3952
|
getCheckedColumnsById: o,
|
|
@@ -3947,50 +3954,50 @@ const st = (t) => typeof t == "boolean" ? t ? "left" : void 0 : t, cl = (t) => {
|
|
|
3947
3954
|
getGroupedColumnInfo: a,
|
|
3948
3955
|
saveConfigColumns: s,
|
|
3949
3956
|
columnGroups: l
|
|
3950
|
-
} =
|
|
3951
|
-
const k = new Map(
|
|
3957
|
+
} = dl(t), g = T(!0), c = T(t.columnConfig?.groupId ?? qe), p = T([]), u = T(), f = (b) => {
|
|
3958
|
+
const k = new Map(b.map((w, B) => [w.prop, { ...w, index: B }])), G = [];
|
|
3952
3959
|
t.columns.forEach((w) => w.readonly && G.push(w));
|
|
3953
|
-
const
|
|
3960
|
+
const M = R.sortBy(
|
|
3954
3961
|
t.columns.filter((w) => !w.readonly && (k.get(w.prop)?.checked || !w.prop)),
|
|
3955
3962
|
(w) => k.get(w.prop)?.index ?? -1
|
|
3956
3963
|
);
|
|
3957
|
-
G.reverse().forEach((w) =>
|
|
3964
|
+
G.reverse().forEach((w) => M.unshift(w)), p.value = M.map(
|
|
3958
3965
|
(w) => ({
|
|
3959
3966
|
...w,
|
|
3960
3967
|
fixed: w.prop ? k.get(w.prop)?.fixed : w.fixed
|
|
3961
3968
|
})
|
|
3962
3969
|
);
|
|
3963
|
-
}, h = (
|
|
3964
|
-
c.value =
|
|
3965
|
-
}, r = (
|
|
3966
|
-
u.value?.openDialog(a(
|
|
3970
|
+
}, h = (b, k) => {
|
|
3971
|
+
c.value = b, f(k ?? o(b));
|
|
3972
|
+
}, r = (b) => {
|
|
3973
|
+
u.value?.openDialog(a(b), o(b)).then(async (k) => {
|
|
3967
3974
|
const {
|
|
3968
|
-
data: { updateData: G, groupName:
|
|
3975
|
+
data: { updateData: G, groupName: M, isSave: w },
|
|
3969
3976
|
close: B
|
|
3970
|
-
} = k, A =
|
|
3971
|
-
B(), w ? A === c.value ? f(o(
|
|
3977
|
+
} = k, A = b || `${(/* @__PURE__ */ new Date()).valueOf()}`, N = await s(G, { groupName: M, id: A }, w);
|
|
3978
|
+
B(), w ? A === c.value ? f(o(b)) : h(A) : h(al, N);
|
|
3972
3979
|
});
|
|
3973
|
-
},
|
|
3974
|
-
p.value = t.columns.filter(({ type:
|
|
3980
|
+
}, m = () => {
|
|
3981
|
+
p.value = t.columns.filter(({ type: b, defaultChecked: k, readonly: G, prop: M }) => G || b && Reflect.has(ze, b) || !M ? !0 : !!k);
|
|
3975
3982
|
};
|
|
3976
3983
|
(async () => {
|
|
3977
3984
|
if (t.columnConfig?.pageId)
|
|
3978
3985
|
try {
|
|
3979
3986
|
await e();
|
|
3980
|
-
} catch (
|
|
3981
|
-
console.log(
|
|
3987
|
+
} catch (b) {
|
|
3988
|
+
console.log(b);
|
|
3982
3989
|
}
|
|
3983
|
-
|
|
3990
|
+
m(), g.value = !1;
|
|
3984
3991
|
})();
|
|
3985
|
-
const
|
|
3986
|
-
r(
|
|
3987
|
-
},
|
|
3988
|
-
await n(
|
|
3992
|
+
const y = (b) => {
|
|
3993
|
+
r(b);
|
|
3994
|
+
}, C = async (b) => {
|
|
3995
|
+
await n(b), b === c.value && h(qe);
|
|
3989
3996
|
};
|
|
3990
3997
|
return mt(
|
|
3991
3998
|
() => t.columns,
|
|
3992
3999
|
() => {
|
|
3993
|
-
t.columnConfig?.pageId ? f(o(c.value)) :
|
|
4000
|
+
t.columnConfig?.pageId ? f(o(c.value)) : m();
|
|
3994
4001
|
},
|
|
3995
4002
|
{
|
|
3996
4003
|
deep: !0,
|
|
@@ -4004,10 +4011,10 @@ const st = (t) => typeof t == "boolean" ? t ? "left" : void 0 : t, cl = (t) => {
|
|
|
4004
4011
|
columnGroups: l,
|
|
4005
4012
|
openConfigColumnDialog: r,
|
|
4006
4013
|
changeGroupId: h,
|
|
4007
|
-
editGroupByGroupId:
|
|
4008
|
-
deleteGroupByGroupId:
|
|
4014
|
+
editGroupByGroupId: y,
|
|
4015
|
+
deleteGroupByGroupId: C
|
|
4009
4016
|
};
|
|
4010
|
-
},
|
|
4017
|
+
}, ml = (t) => {
|
|
4011
4018
|
const {
|
|
4012
4019
|
groupId: e,
|
|
4013
4020
|
configColumns: o,
|
|
@@ -4018,14 +4025,14 @@ const st = (t) => typeof t == "boolean" ? t ? "left" : void 0 : t, cl = (t) => {
|
|
|
4018
4025
|
openConfigColumnDialog: g,
|
|
4019
4026
|
editGroupByGroupId: c,
|
|
4020
4027
|
deleteGroupByGroupId: p
|
|
4021
|
-
} =
|
|
4028
|
+
} = pl(t), u = T(), f = T(), h = T({
|
|
4022
4029
|
current: 1,
|
|
4023
4030
|
size: t.paginationProps?.pageSize || Lt.pageSize,
|
|
4024
4031
|
total: 0
|
|
4025
|
-
}), r = P(() => ({ ...Lt, ...t.paginationProps })),
|
|
4032
|
+
}), r = P(() => ({ ...Lt, ...t.paginationProps })), m = T(""), d = () => {
|
|
4026
4033
|
const x = u.value?.getBoundingClientRect();
|
|
4027
|
-
|
|
4028
|
-
},
|
|
4034
|
+
m.value = `${x?.width}px`;
|
|
4035
|
+
}, y = new ResizeObserver(() => requestAnimationFrame(d)), C = T([]), b = P(() => {
|
|
4029
4036
|
const x = R.omit(t, [
|
|
4030
4037
|
"tableData",
|
|
4031
4038
|
"columns",
|
|
@@ -4038,7 +4045,7 @@ const st = (t) => typeof t == "boolean" ? t ? "left" : void 0 : t, cl = (t) => {
|
|
|
4038
4045
|
return R.mergeWith({ height: "100%" }, x, (O, Q) => O && Q && R.isObject(O) && R.isObject(Q) ? R.merge(Q, O) : Q ?? O);
|
|
4039
4046
|
}), k = P(
|
|
4040
4047
|
() => (x) => R.omit(x, ["_render", "renderHeader", "hidden", "className", "isOperation"])
|
|
4041
|
-
), G = P(() => (Array.isArray(t.operationBtnList) ? t.operationBtnList : [t.operationBtnList])?.map((O) => R.isString(O) ? { type: O } : O)),
|
|
4048
|
+
), G = P(() => (Array.isArray(t.operationBtnList) ? t.operationBtnList : [t.operationBtnList])?.map((O) => R.isString(O) ? { type: O } : O)), M = P(
|
|
4042
4049
|
() => o.value.filter(
|
|
4043
4050
|
(x) => (
|
|
4044
4051
|
// 处理列的显示隐藏
|
|
@@ -4049,9 +4056,9 @@ const st = (t) => typeof t == "boolean" ? t ? "left" : void 0 : t, cl = (t) => {
|
|
|
4049
4056
|
return O && Reflect.has(ze, O) ? { ...Reflect.get(ze, O), ...x } : x;
|
|
4050
4057
|
})
|
|
4051
4058
|
), w = P(() => {
|
|
4052
|
-
const x = G.value.some((Q) => Q.type === "configColumns"), O =
|
|
4053
|
-
return (Q, D) => !t.columnConfig?.pageId || x ? !1 : O ? Q.isOperation : D ===
|
|
4054
|
-
}), B =
|
|
4059
|
+
const x = G.value.some((Q) => Q.type === "configColumns"), O = M.value.some((Q) => Q.isOperation);
|
|
4060
|
+
return (Q, D) => !t.columnConfig?.pageId || x ? !1 : O ? Q.isOperation : D === M.value.length - 1;
|
|
4061
|
+
}), B = T(!1), A = async (x = h.value) => {
|
|
4055
4062
|
B.value = !0;
|
|
4056
4063
|
try {
|
|
4057
4064
|
const O = t.loadMethod;
|
|
@@ -4062,32 +4069,32 @@ const st = (t) => typeof t == "boolean" ? t ? "left" : void 0 : t, cl = (t) => {
|
|
|
4062
4069
|
if (x.current > ce)
|
|
4063
4070
|
return x.current = ce, A(x);
|
|
4064
4071
|
}
|
|
4065
|
-
|
|
4072
|
+
C.value = X, h.value.total = isNaN(J) ? 0 : J;
|
|
4066
4073
|
} else
|
|
4067
4074
|
Je(() => {
|
|
4068
|
-
|
|
4075
|
+
C.value = t.tableData ?? [];
|
|
4069
4076
|
});
|
|
4070
4077
|
} finally {
|
|
4071
4078
|
B.value = !1;
|
|
4072
4079
|
}
|
|
4073
|
-
}, N =
|
|
4080
|
+
}, N = T(1), W = () => {
|
|
4074
4081
|
N.value++;
|
|
4075
4082
|
};
|
|
4076
4083
|
return $e(() => {
|
|
4077
|
-
u.value &&
|
|
4084
|
+
u.value && y.observe(u.value);
|
|
4078
4085
|
}), Oe(() => {
|
|
4079
|
-
stop(),
|
|
4086
|
+
stop(), y?.disconnect();
|
|
4080
4087
|
}), {
|
|
4081
4088
|
baseTableContainerRef: u,
|
|
4082
4089
|
baseTableRef: f,
|
|
4083
4090
|
pagination: h,
|
|
4084
4091
|
getPaginationProps: r,
|
|
4085
|
-
paginationWidth:
|
|
4086
|
-
tableData:
|
|
4087
|
-
getTableAttrs:
|
|
4092
|
+
paginationWidth: m,
|
|
4093
|
+
tableData: C,
|
|
4094
|
+
getTableAttrs: b,
|
|
4088
4095
|
getColumnAttrs: k,
|
|
4089
4096
|
specialColumnMap: ze,
|
|
4090
|
-
getTableRenderColumns:
|
|
4097
|
+
getTableRenderColumns: M,
|
|
4091
4098
|
isOperationColumn: w,
|
|
4092
4099
|
configColumnsDialogRef: n,
|
|
4093
4100
|
getParseOperationBtnList: G,
|
|
@@ -4122,7 +4129,7 @@ const st = (t) => typeof t == "boolean" ? t ? "left" : void 0 : t, cl = (t) => {
|
|
|
4122
4129
|
"sort-change",
|
|
4123
4130
|
"filter-change",
|
|
4124
4131
|
"header-dragend"
|
|
4125
|
-
],
|
|
4132
|
+
], fl = (t, e) => {
|
|
4126
4133
|
const o = async (a, ...s) => {
|
|
4127
4134
|
e && typeof e == "function" && await e(a, ...s), t(a, ...s);
|
|
4128
4135
|
};
|
|
@@ -4132,25 +4139,25 @@ const st = (t) => typeof t == "boolean" ? t ? "left" : void 0 : t, cl = (t) => {
|
|
|
4132
4139
|
{}
|
|
4133
4140
|
)
|
|
4134
4141
|
};
|
|
4135
|
-
},
|
|
4136
|
-
const e =
|
|
4142
|
+
}, gl = (t) => {
|
|
4143
|
+
const e = T(0), o = () => {
|
|
4137
4144
|
const p = [], u = t.value?.$el?.querySelector(".el-table__inner-wrapper");
|
|
4138
4145
|
if (u) {
|
|
4139
4146
|
const f = u.querySelectorAll(".el-table__header-wrapper");
|
|
4140
4147
|
if (f.length) {
|
|
4141
|
-
const r = Array.from(f).filter((
|
|
4142
|
-
const { display:
|
|
4143
|
-
return
|
|
4148
|
+
const r = Array.from(f).filter((m) => {
|
|
4149
|
+
const { display: d } = getComputedStyle(m);
|
|
4150
|
+
return d !== "none";
|
|
4144
4151
|
}).pop()?.querySelectorAll(".el-table__cell");
|
|
4145
4152
|
if (r?.length) {
|
|
4146
|
-
const
|
|
4147
|
-
let k = Math.abs(
|
|
4148
|
-
if (
|
|
4149
|
-
const A =
|
|
4150
|
-
k = W + x -
|
|
4153
|
+
const m = Array.from(r), [d] = m, y = m.find((A) => !A.classList.contains("el-table-fixed-column--left")), C = y?.getBoundingClientRect().left ?? 0, b = u.getBoundingClientRect().left;
|
|
4154
|
+
let k = Math.abs(C - b);
|
|
4155
|
+
if (d !== y) {
|
|
4156
|
+
const A = m.findLastIndex((O) => O.classList.contains("el-table-fixed-column--left")), N = m[A], { left: W, width: x } = N.getBoundingClientRect();
|
|
4157
|
+
k = W + x - C;
|
|
4151
4158
|
}
|
|
4152
|
-
const { width: G } = t.value.$el.getBoundingClientRect(),
|
|
4153
|
-
|
|
4159
|
+
const { width: G } = t.value.$el.getBoundingClientRect(), M = u.querySelector(".el-scrollbar__thumb"), w = M ? M.getBoundingClientRect().width : 0, B = w ? w / 2 : 0;
|
|
4160
|
+
m.forEach((A) => {
|
|
4154
4161
|
const { top: N, left: W } = A.getBoundingClientRect();
|
|
4155
4162
|
p.push({ element: A, rect: { top: N, left: W + k - G / 2 - B } });
|
|
4156
4163
|
});
|
|
@@ -4175,8 +4182,8 @@ const st = (t) => typeof t == "boolean" ? t ? "left" : void 0 : t, cl = (t) => {
|
|
|
4175
4182
|
const f = o();
|
|
4176
4183
|
if (f?.length) {
|
|
4177
4184
|
const h = f.filter(({ element: r }) => {
|
|
4178
|
-
const
|
|
4179
|
-
return
|
|
4185
|
+
const m = r.textContent;
|
|
4186
|
+
return m ? n(m, p) : !1;
|
|
4180
4187
|
});
|
|
4181
4188
|
if (h.length) {
|
|
4182
4189
|
h.forEach(l);
|
|
@@ -4188,10 +4195,10 @@ const st = (t) => typeof t == "boolean" ? t ? "left" : void 0 : t, cl = (t) => {
|
|
|
4188
4195
|
},
|
|
4189
4196
|
clear: s
|
|
4190
4197
|
};
|
|
4191
|
-
},
|
|
4198
|
+
}, hl = "__base-table-sticky-container", Do = "data-sticky", vl = (t) => t.setAttribute(Do, "true"), Al = (t) => t.removeAttribute(Do), Cl = (t) => {
|
|
4192
4199
|
const e = () => null;
|
|
4193
4200
|
return t ? R.isString(t) ? () => document.querySelector(t) : R.isFunction(t) ? t : t instanceof HTMLElement ? () => t : (console.warn("未知的选择器类型"), e) : e;
|
|
4194
|
-
},
|
|
4201
|
+
}, yl = (t) => Cl(t)(), bl = (t, e) => {
|
|
4195
4202
|
const o = [], n = (l) => {
|
|
4196
4203
|
o.includes(l) || o.push(l);
|
|
4197
4204
|
}, a = new IntersectionObserver(([l]) => {
|
|
@@ -4208,7 +4215,7 @@ const st = (t) => typeof t == "boolean" ? t ? "left" : void 0 : t, cl = (t) => {
|
|
|
4208
4215
|
a?.disconnect(), o.length = 0;
|
|
4209
4216
|
}
|
|
4210
4217
|
};
|
|
4211
|
-
},
|
|
4218
|
+
}, _l = (t) => {
|
|
4212
4219
|
const e = [], o = (a) => {
|
|
4213
4220
|
e.includes(a) || e.push(a);
|
|
4214
4221
|
}, n = new ResizeObserver(
|
|
@@ -4220,7 +4227,7 @@ const st = (t) => typeof t == "boolean" ? t ? "left" : void 0 : t, cl = (t) => {
|
|
|
4220
4227
|
n?.disconnect(), e.length = 0;
|
|
4221
4228
|
}
|
|
4222
4229
|
};
|
|
4223
|
-
},
|
|
4230
|
+
}, wl = (t, e) => {
|
|
4224
4231
|
const o = document.createElement("div");
|
|
4225
4232
|
return o.classList.add(e), Object.assign(o.style, {
|
|
4226
4233
|
position: "relative",
|
|
@@ -4230,13 +4237,13 @@ const st = (t) => typeof t == "boolean" ? t ? "left" : void 0 : t, cl = (t) => {
|
|
|
4230
4237
|
backgroundColor: "transparent",
|
|
4231
4238
|
pointerEvents: "none"
|
|
4232
4239
|
}), t.parentElement?.insertBefore(o, t), o;
|
|
4233
|
-
},
|
|
4240
|
+
}, Bl = (t) => {
|
|
4234
4241
|
const e = [];
|
|
4235
4242
|
if (!t) return e;
|
|
4236
4243
|
const o = t.querySelector(".el-table__header-wrapper");
|
|
4237
4244
|
return o && e.push(o), e;
|
|
4238
|
-
},
|
|
4239
|
-
const e = () =>
|
|
4245
|
+
}, Dl = (t) => {
|
|
4246
|
+
const e = () => yl(t.stickyTriggerSelector ?? `.${hl}`), o = [], n = (f) => {
|
|
4240
4247
|
let h, r = f.style.display;
|
|
4241
4248
|
return {
|
|
4242
4249
|
insert: () => {
|
|
@@ -4251,66 +4258,66 @@ const st = (t) => typeof t == "boolean" ? t ? "left" : void 0 : t, cl = (t) => {
|
|
|
4251
4258
|
getCloneElement: () => h
|
|
4252
4259
|
};
|
|
4253
4260
|
}, a = (f) => f.style.display === "none", s = (f, h) => {
|
|
4254
|
-
const r = R.cloneDeep(getComputedStyle(f)), { insert:
|
|
4255
|
-
o.push(
|
|
4256
|
-
let
|
|
4261
|
+
const r = R.cloneDeep(getComputedStyle(f)), { insert: m, hidden: d, remove: y, getCloneElement: C } = n(f);
|
|
4262
|
+
o.push(y);
|
|
4263
|
+
let b;
|
|
4257
4264
|
return {
|
|
4258
4265
|
update: (k) => {
|
|
4259
4266
|
if (co(f))
|
|
4260
4267
|
return;
|
|
4261
|
-
|
|
4262
|
-
const G =
|
|
4263
|
-
|
|
4268
|
+
m();
|
|
4269
|
+
const G = C(), { top: M } = h.getBoundingClientRect(), { left: w, width: B } = f.getBoundingClientRect();
|
|
4270
|
+
vl(f), Object.assign(
|
|
4264
4271
|
f.style,
|
|
4265
4272
|
{
|
|
4266
4273
|
position: "fixed",
|
|
4267
|
-
top: `${
|
|
4274
|
+
top: `${M}px`,
|
|
4268
4275
|
left: `${w}px`,
|
|
4269
4276
|
width: `${B}px`,
|
|
4270
4277
|
zIndex: 100
|
|
4271
4278
|
},
|
|
4272
4279
|
k ?? {}
|
|
4273
4280
|
);
|
|
4274
|
-
const { onUpdate: A, onStop: N } =
|
|
4281
|
+
const { onUpdate: A, onStop: N } = _l(G);
|
|
4275
4282
|
A(() => {
|
|
4276
4283
|
if (!a(G)) {
|
|
4277
4284
|
const { width: W, left: x } = G.getBoundingClientRect();
|
|
4278
4285
|
f.style.width = `${W}px`, f.style.left = `${x}px`;
|
|
4279
4286
|
}
|
|
4280
|
-
}),
|
|
4287
|
+
}), b = N;
|
|
4281
4288
|
},
|
|
4282
4289
|
reset: () => {
|
|
4283
|
-
|
|
4290
|
+
Al(f), Object.assign(f.style, {
|
|
4284
4291
|
position: r.position ?? "",
|
|
4285
4292
|
top: r.top ?? "",
|
|
4286
4293
|
left: r.left ?? "",
|
|
4287
4294
|
width: r.width ?? "",
|
|
4288
4295
|
zIndex: r.zIndex ?? ""
|
|
4289
|
-
}),
|
|
4296
|
+
}), d(), b?.();
|
|
4290
4297
|
}
|
|
4291
4298
|
};
|
|
4292
|
-
}, l = (f, h, r,
|
|
4293
|
-
const { update:
|
|
4294
|
-
h((
|
|
4295
|
-
!
|
|
4299
|
+
}, l = (f, h, r, m) => {
|
|
4300
|
+
const { update: d, reset: y } = s(f, r);
|
|
4301
|
+
h((C, b) => {
|
|
4302
|
+
!C && r && b === "top" ? d(m) : y();
|
|
4296
4303
|
});
|
|
4297
4304
|
}, g = (f) => {
|
|
4298
4305
|
const h = e();
|
|
4299
4306
|
if (!h)
|
|
4300
4307
|
return;
|
|
4301
|
-
const { onWatchVisible: r, onStopWatchVisible:
|
|
4302
|
-
if (!
|
|
4308
|
+
const { onWatchVisible: r, onStopWatchVisible: m } = bl(f, { root: h }), { baseTableOperationElement: d, baseTableRef: y } = t;
|
|
4309
|
+
if (!d.value)
|
|
4303
4310
|
return;
|
|
4304
|
-
l(
|
|
4305
|
-
const
|
|
4306
|
-
|
|
4311
|
+
l(d.value, r, h);
|
|
4312
|
+
const C = Bl(y.value?.$el), { top: b } = h.getBoundingClientRect(), { height: k } = d.value.getBoundingClientRect();
|
|
4313
|
+
C.forEach(
|
|
4307
4314
|
(G) => l(G, r, h, {
|
|
4308
|
-
top: `${
|
|
4315
|
+
top: `${b + k}px`
|
|
4309
4316
|
})
|
|
4310
|
-
), o.push(
|
|
4317
|
+
), o.push(m);
|
|
4311
4318
|
}, c = () => {
|
|
4312
4319
|
const { baseTableOperationElement: f } = t;
|
|
4313
|
-
f.value && g(
|
|
4320
|
+
f.value && g(wl(f.value, "base-table-watch-sticky__operation"));
|
|
4314
4321
|
}, p = () => {
|
|
4315
4322
|
o.forEach((f) => f()), o.length = 0;
|
|
4316
4323
|
};
|
|
@@ -4320,7 +4327,7 @@ const st = (t) => typeof t == "boolean" ? t ? "left" : void 0 : t, cl = (t) => {
|
|
|
4320
4327
|
p(), await ne(), c();
|
|
4321
4328
|
}
|
|
4322
4329
|
};
|
|
4323
|
-
},
|
|
4330
|
+
}, El = () => {
|
|
4324
4331
|
let t;
|
|
4325
4332
|
const e = (n, a) => {
|
|
4326
4333
|
if (!ResizeObserver) {
|
|
@@ -4339,16 +4346,16 @@ const st = (t) => typeof t == "boolean" ? t ? "left" : void 0 : t, cl = (t) => {
|
|
|
4339
4346
|
onResize: e,
|
|
4340
4347
|
stopResize: o
|
|
4341
4348
|
};
|
|
4342
|
-
},
|
|
4349
|
+
}, Il = {
|
|
4343
4350
|
key: 1,
|
|
4344
4351
|
class: "base-table__header-slot"
|
|
4345
|
-
},
|
|
4352
|
+
}, kl = {
|
|
4346
4353
|
key: 2,
|
|
4347
4354
|
class: "base-table__header-operation"
|
|
4348
|
-
},
|
|
4355
|
+
}, Sl = { class: "base-table__table-header-content" }, Gl = {
|
|
4349
4356
|
key: 1,
|
|
4350
4357
|
class: "base-table__pagination"
|
|
4351
|
-
},
|
|
4358
|
+
}, Tl = /* @__PURE__ */ K({
|
|
4352
4359
|
name: "ZTable",
|
|
4353
4360
|
__name: "index",
|
|
4354
4361
|
props: /* @__PURE__ */ Ge({
|
|
@@ -4439,7 +4446,7 @@ const st = (t) => typeof t == "boolean" ? t ? "left" : void 0 : t, cl = (t) => {
|
|
|
4439
4446
|
"50d5f176": Et.value,
|
|
4440
4447
|
"64c07aa2": i(h)
|
|
4441
4448
|
}));
|
|
4442
|
-
const n = t, a = Ve(t, "selectList"), s = o, l = Kt(), { baseTableEventMap: g } =
|
|
4449
|
+
const n = t, a = Ve(t, "selectList"), s = o, l = Kt(), { baseTableEventMap: g } = fl(s, (H, ...z) => {
|
|
4443
4450
|
H === "selection-change" && (a.value = z[0]);
|
|
4444
4451
|
}), {
|
|
4445
4452
|
baseTableRef: c,
|
|
@@ -4448,14 +4455,14 @@ const st = (t) => typeof t == "boolean" ? t ? "left" : void 0 : t, cl = (t) => {
|
|
|
4448
4455
|
getPaginationProps: f,
|
|
4449
4456
|
paginationWidth: h,
|
|
4450
4457
|
tableData: r,
|
|
4451
|
-
getTableAttrs:
|
|
4452
|
-
getColumnAttrs:
|
|
4453
|
-
specialColumnMap:
|
|
4454
|
-
getTableRenderColumns:
|
|
4455
|
-
isOperationColumn:
|
|
4458
|
+
getTableAttrs: m,
|
|
4459
|
+
getColumnAttrs: d,
|
|
4460
|
+
specialColumnMap: y,
|
|
4461
|
+
getTableRenderColumns: C,
|
|
4462
|
+
isOperationColumn: b,
|
|
4456
4463
|
configColumnsDialogRef: k,
|
|
4457
4464
|
getParseOperationBtnList: G,
|
|
4458
|
-
loadingConfigColumns:
|
|
4465
|
+
loadingConfigColumns: M,
|
|
4459
4466
|
loadDataLoading: w,
|
|
4460
4467
|
groupId: B,
|
|
4461
4468
|
resetKey: A,
|
|
@@ -4466,7 +4473,7 @@ const st = (t) => typeof t == "boolean" ? t ? "left" : void 0 : t, cl = (t) => {
|
|
|
4466
4473
|
loadData: Q,
|
|
4467
4474
|
openConfigColumnDialog: D,
|
|
4468
4475
|
resetColumnsWidth: L
|
|
4469
|
-
} =
|
|
4476
|
+
} = ml(n), { count: U, find: X, clear: ie } = gl(c);
|
|
4470
4477
|
let J = !1;
|
|
4471
4478
|
const ce = () => {
|
|
4472
4479
|
J || (Q(), s("paginationChange"));
|
|
@@ -4474,20 +4481,20 @@ const st = (t) => typeof t == "boolean" ? t ? "left" : void 0 : t, cl = (t) => {
|
|
|
4474
4481
|
J = !0, H && Object.assign(u.value, {
|
|
4475
4482
|
current: 1
|
|
4476
4483
|
}), await ne(), await Q(), s("refreshed"), await ne(), J = !1;
|
|
4477
|
-
}, me =
|
|
4484
|
+
}, me = T(), { start: xe, reset: Eo } = Dl({
|
|
4478
4485
|
baseTableOperationElement: me,
|
|
4479
4486
|
baseTableRef: c,
|
|
4480
4487
|
stickyTriggerSelector: n.stickyTriggerSelector
|
|
4481
4488
|
}), wt = async (H, z) => {
|
|
4482
4489
|
H === B.value && !z || (W(H, z), await Eo(), s("changeGroup", H));
|
|
4483
|
-
}, ot =
|
|
4490
|
+
}, ot = T(!1), Bt = async () => {
|
|
4484
4491
|
try {
|
|
4485
4492
|
n.autoLoad && await Q();
|
|
4486
4493
|
} finally {
|
|
4487
4494
|
ot.value = !0;
|
|
4488
4495
|
}
|
|
4489
4496
|
}, Io = () => u.value, Dt = P(() => R.omit(u.value, "total")), ko = Je(() => {
|
|
4490
|
-
!
|
|
4497
|
+
!M.value && ot.value && (s("loaded"), n.stickyHeader && ne(xe), ko());
|
|
4491
4498
|
}), So = P(() => (H) => {
|
|
4492
4499
|
const z = n.enableDragProps;
|
|
4493
4500
|
return z && (Array.isArray(z) ? z : [z]).includes(H.prop || "") ? Ot : "";
|
|
@@ -4514,14 +4521,14 @@ const st = (t) => typeof t == "boolean" ? t ? "left" : void 0 : t, cl = (t) => {
|
|
|
4514
4521
|
await ne(), n.formBuilder ? n.formBuilder.onColumnsLoaded(Bt) : await Bt();
|
|
4515
4522
|
});
|
|
4516
4523
|
const Fo = () => {
|
|
4517
|
-
const H = Object.values(
|
|
4518
|
-
return
|
|
4524
|
+
const H = Object.values(y).map((z) => z.prop);
|
|
4525
|
+
return C.value.reduce((z, he) => {
|
|
4519
4526
|
const { prop: ye, exportProp: Be } = he;
|
|
4520
4527
|
return ye && !H.includes(ye) && (Be ? (Array.isArray(Be) ? Be : [Be]).forEach((Le) => {
|
|
4521
4528
|
z.includes(Le) || z.push(Le);
|
|
4522
4529
|
}) : !z.includes(ye) && z.push(ye)), z;
|
|
4523
4530
|
}, []);
|
|
4524
|
-
}, Et =
|
|
4531
|
+
}, Et = T(""), { onResize: Po } = El();
|
|
4525
4532
|
return Po(
|
|
4526
4533
|
() => c?.value?.$el,
|
|
4527
4534
|
() => {
|
|
@@ -4576,19 +4583,19 @@ const st = (t) => typeof t == "boolean" ? t ? "left" : void 0 : t, cl = (t) => {
|
|
|
4576
4583
|
])
|
|
4577
4584
|
}, [
|
|
4578
4585
|
j(" 已选 " + $(a.value.length) + " 项 ", 1),
|
|
4579
|
-
|
|
4586
|
+
_(he, { onClick: Go }, {
|
|
4580
4587
|
default: E(() => [
|
|
4581
|
-
|
|
4588
|
+
_(i(on))
|
|
4582
4589
|
]),
|
|
4583
4590
|
_: 1
|
|
4584
4591
|
})
|
|
4585
4592
|
], 2),
|
|
4586
4593
|
fe(H.$slots, "selectSlot", {}, void 0, !0)
|
|
4587
4594
|
], 2)) : Z("", !0),
|
|
4588
|
-
!l.selectSlot || !a.value.length ? (v(), I("div",
|
|
4595
|
+
!l.selectSlot || !a.value.length ? (v(), I("div", Il, [
|
|
4589
4596
|
fe(H.$slots, "header", { pagination: Dt.value }, void 0, !0)
|
|
4590
4597
|
])) : Z("", !0),
|
|
4591
|
-
H.hasDefaultOperation && (!l.selectSlot || !a.value.length) ? (v(), I("div",
|
|
4598
|
+
H.hasDefaultOperation && (!l.selectSlot || !a.value.length) ? (v(), I("div", kl, [
|
|
4592
4599
|
fe(H.$slots, "operation", { pagination: Dt.value }, void 0, !0),
|
|
4593
4600
|
(v(!0), I(q, null, le(i(G), (ee) => (v(), I(q, {
|
|
4594
4601
|
key: ee.type
|
|
@@ -4596,12 +4603,12 @@ const st = (t) => typeof t == "boolean" ? t ? "left" : void 0 : t, cl = (t) => {
|
|
|
4596
4603
|
ee.type === "refresh" ? (v(), V(dt, {
|
|
4597
4604
|
key: 0,
|
|
4598
4605
|
tips: "刷新",
|
|
4599
|
-
src: i(
|
|
4606
|
+
src: i(ys),
|
|
4600
4607
|
onClick: z[0] || (z[0] = (He) => Y(!1))
|
|
4601
4608
|
}, null, 8, ["src"])) : Z("", !0),
|
|
4602
4609
|
ee.type === "resetColumnsWidth" ? (v(), V(dt, {
|
|
4603
4610
|
key: 1,
|
|
4604
|
-
src: i(
|
|
4611
|
+
src: i(bs),
|
|
4605
4612
|
tips: "重置列宽",
|
|
4606
4613
|
onClick: i(L)
|
|
4607
4614
|
}, null, 8, ["src", "onClick"])) : Z("", !0),
|
|
@@ -4627,7 +4634,7 @@ const st = (t) => typeof t == "boolean" ? t ? "left" : void 0 : t, cl = (t) => {
|
|
|
4627
4634
|
}
|
|
4628
4635
|
])
|
|
4629
4636
|
}, [
|
|
4630
|
-
!i(
|
|
4637
|
+
!i(M) && ot.value ? (v(), V(i(We), {
|
|
4631
4638
|
key: 0,
|
|
4632
4639
|
modelValue: i(r),
|
|
4633
4640
|
"onUpdate:modelValue": [
|
|
@@ -4644,7 +4651,7 @@ const st = (t) => typeof t == "boolean" ? t ? "left" : void 0 : t, cl = (t) => {
|
|
|
4644
4651
|
onChange: xo
|
|
4645
4652
|
}, {
|
|
4646
4653
|
default: E(() => [
|
|
4647
|
-
|
|
4654
|
+
_(Be, se({
|
|
4648
4655
|
ref_key: "baseTableRef",
|
|
4649
4656
|
ref: c,
|
|
4650
4657
|
class: [
|
|
@@ -4654,36 +4661,36 @@ const st = (t) => typeof t == "boolean" ? t ? "left" : void 0 : t, cl = (t) => {
|
|
|
4654
4661
|
"is-empty__table": !i(r).length
|
|
4655
4662
|
}
|
|
4656
4663
|
]
|
|
4657
|
-
}, i(
|
|
4658
|
-
"header-cell-style": i(
|
|
4664
|
+
}, i(m), {
|
|
4665
|
+
"header-cell-style": i(ll),
|
|
4659
4666
|
data: i(r),
|
|
4660
4667
|
"show-overflow-tooltip": ""
|
|
4661
4668
|
}, we(i(g))), {
|
|
4662
4669
|
empty: E(() => [
|
|
4663
4670
|
fe(H.$slots, "empty", {}, () => [
|
|
4664
|
-
|
|
4671
|
+
_(ao)
|
|
4665
4672
|
], !0)
|
|
4666
4673
|
]),
|
|
4667
4674
|
default: E(() => [
|
|
4668
|
-
(v(!0), I(q, null, le(i(
|
|
4675
|
+
(v(!0), I(q, null, le(i(C), (ee, He) => (v(), V(ye, se({ ref_for: !0 }, i(d)(ee), {
|
|
4669
4676
|
key: ee.prop,
|
|
4670
|
-
"class-name": `${So.value(ee)} ${ee.className ?? ""} ${i(
|
|
4677
|
+
"class-name": `${So.value(ee)} ${ee.className ?? ""} ${i(b)(ee, He) ? "base-table__table-column-operation" : ""}`
|
|
4671
4678
|
}), {
|
|
4672
4679
|
header: E(({ column: Ue, $index: nt }) => [
|
|
4673
4680
|
F("div", {
|
|
4674
4681
|
class: re({
|
|
4675
4682
|
"base-table__table-header-cell": !0,
|
|
4676
|
-
"base-table__table-header-cell--operation": i(
|
|
4683
|
+
"base-table__table-header-cell--operation": i(b)(ee, He)
|
|
4677
4684
|
})
|
|
4678
4685
|
}, [
|
|
4679
|
-
F("div",
|
|
4680
|
-
|
|
4686
|
+
F("div", Sl, [
|
|
4687
|
+
_(i(ul), {
|
|
4681
4688
|
column: ee,
|
|
4682
4689
|
"header-column": Ue,
|
|
4683
4690
|
index: nt
|
|
4684
4691
|
}, null, 8, ["column", "header-column", "index"])
|
|
4685
4692
|
]),
|
|
4686
|
-
i(
|
|
4693
|
+
i(b)(ee, He) ? (v(), V(Ht, {
|
|
4687
4694
|
key: 0,
|
|
4688
4695
|
"group-id": i(B),
|
|
4689
4696
|
"column-groups": i(N),
|
|
@@ -4695,7 +4702,7 @@ const st = (t) => typeof t == "boolean" ? t ? "left" : void 0 : t, cl = (t) => {
|
|
|
4695
4702
|
], 2)
|
|
4696
4703
|
]),
|
|
4697
4704
|
default: E(({ row: Ue, $index: nt }) => [
|
|
4698
|
-
!ee.type || !i(
|
|
4705
|
+
!ee.type || !i(y)[ee.type] ? (v(), V(i(cl), {
|
|
4699
4706
|
key: 0,
|
|
4700
4707
|
column: ee,
|
|
4701
4708
|
row: Ue,
|
|
@@ -4711,9 +4718,9 @@ const st = (t) => typeof t == "boolean" ? t ? "left" : void 0 : t, cl = (t) => {
|
|
|
4711
4718
|
_: 3
|
|
4712
4719
|
}, 8, ["modelValue", "disabled", "item-key", "handle", "animation"])) : Z("", !0)
|
|
4713
4720
|
], 2)), [
|
|
4714
|
-
[Le, i(
|
|
4721
|
+
[Le, i(M) || i(w)]
|
|
4715
4722
|
]),
|
|
4716
|
-
H.hasPagination ? (v(), I("div",
|
|
4723
|
+
H.hasPagination ? (v(), I("div", Gl, [
|
|
4717
4724
|
F("div", {
|
|
4718
4725
|
class: re({
|
|
4719
4726
|
"base-table__pagination-fixed": H.fixedPagination,
|
|
@@ -4721,7 +4728,7 @@ const st = (t) => typeof t == "boolean" ? t ? "left" : void 0 : t, cl = (t) => {
|
|
|
4721
4728
|
"base-table__pagination-right": H.paginationPosition === "right"
|
|
4722
4729
|
})
|
|
4723
4730
|
}, [
|
|
4724
|
-
|
|
4731
|
+
_(It, se(i(f), {
|
|
4725
4732
|
"current-page": i(u).current,
|
|
4726
4733
|
"onUpdate:currentPage": z[3] || (z[3] = (ee) => i(u).current = ee),
|
|
4727
4734
|
"page-size": i(u).size,
|
|
@@ -4732,13 +4739,13 @@ const st = (t) => typeof t == "boolean" ? t ? "left" : void 0 : t, cl = (t) => {
|
|
|
4732
4739
|
], 2)
|
|
4733
4740
|
])) : Z("", !0)
|
|
4734
4741
|
], 2),
|
|
4735
|
-
|
|
4742
|
+
_(Xs, {
|
|
4736
4743
|
ref_key: "configColumnsDialogRef",
|
|
4737
4744
|
ref: k,
|
|
4738
4745
|
"column-config": n.columnConfig,
|
|
4739
4746
|
onSaveColumns: z[5] || (z[5] = (ee) => s("saveColumns"))
|
|
4740
4747
|
}, null, 8, ["column-config"]),
|
|
4741
|
-
H.enableColumnSearch ? (v(), V(
|
|
4748
|
+
H.enableColumnSearch ? (v(), V($s, {
|
|
4742
4749
|
key: 0,
|
|
4743
4750
|
count: i(U),
|
|
4744
4751
|
onFind: i(X),
|
|
@@ -4747,7 +4754,7 @@ const st = (t) => typeof t == "boolean" ? t ? "left" : void 0 : t, cl = (t) => {
|
|
|
4747
4754
|
], 64);
|
|
4748
4755
|
};
|
|
4749
4756
|
}
|
|
4750
|
-
}),
|
|
4757
|
+
}), Ml = /* @__PURE__ */ ae(Tl, [["__scopeId", "data-v-bfebe083"]]), xl = Ce(Ml, "ZTable"), Fl = Ce(wo, "ZTableLinkButton"), Pl = { class: "z-tips-form-item__container" }, Nl = /* @__PURE__ */ K({
|
|
4751
4758
|
name: "ZTipsFormItem",
|
|
4752
4759
|
__name: "index",
|
|
4753
4760
|
props: {
|
|
@@ -4770,7 +4777,7 @@ const st = (t) => typeof t == "boolean" ? t ? "left" : void 0 : t, cl = (t) => {
|
|
|
4770
4777
|
prop: a.prop
|
|
4771
4778
|
}, {
|
|
4772
4779
|
label: E(() => [
|
|
4773
|
-
F("div",
|
|
4780
|
+
F("div", Pl, [
|
|
4774
4781
|
j($(a.label) + " ", 1),
|
|
4775
4782
|
a.content ? (v(), V(g, {
|
|
4776
4783
|
key: 0,
|
|
@@ -4783,9 +4790,9 @@ const st = (t) => typeof t == "boolean" ? t ? "left" : void 0 : t, cl = (t) => {
|
|
|
4783
4790
|
class: "tips__icon",
|
|
4784
4791
|
onClick: _e(n, ["stop", "prevent"])
|
|
4785
4792
|
}, [
|
|
4786
|
-
|
|
4793
|
+
_(l, null, {
|
|
4787
4794
|
default: E(() => [
|
|
4788
|
-
|
|
4795
|
+
_(i(Mt))
|
|
4789
4796
|
]),
|
|
4790
4797
|
_: 1
|
|
4791
4798
|
})
|
|
@@ -4798,9 +4805,9 @@ const st = (t) => typeof t == "boolean" ? t ? "left" : void 0 : t, cl = (t) => {
|
|
|
4798
4805
|
class: "tips__icon",
|
|
4799
4806
|
onClick: _e(n, ["stop", "prevent"])
|
|
4800
4807
|
}, [
|
|
4801
|
-
|
|
4808
|
+
_(l, null, {
|
|
4802
4809
|
default: E(() => [
|
|
4803
|
-
|
|
4810
|
+
_(i(Mt))
|
|
4804
4811
|
]),
|
|
4805
4812
|
_: 1
|
|
4806
4813
|
}),
|
|
@@ -4815,19 +4822,19 @@ const st = (t) => typeof t == "boolean" ? t ? "left" : void 0 : t, cl = (t) => {
|
|
|
4815
4822
|
}, 8, ["prop"]);
|
|
4816
4823
|
};
|
|
4817
4824
|
}
|
|
4818
|
-
}),
|
|
4825
|
+
}), Rl = /* @__PURE__ */ ae(Nl, [["__scopeId", "data-v-af10c35f"]]), Vl = Ce(Rl, "ZTipsFormItem"), Ut = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4819
4826
|
__proto__: null,
|
|
4820
4827
|
ZAutoTooltip: dn,
|
|
4821
4828
|
ZCircleText: gn,
|
|
4822
4829
|
ZClassifyTitle: bn,
|
|
4823
4830
|
ZEmpty: wn,
|
|
4824
|
-
ZForm:
|
|
4825
|
-
ZPlusBold:
|
|
4826
|
-
ZShowToTags:
|
|
4827
|
-
ZTable:
|
|
4828
|
-
ZTableLinkButton:
|
|
4829
|
-
ZTipsFormItem:
|
|
4830
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
4831
|
+
ZForm: cs,
|
|
4832
|
+
ZPlusBold: ps,
|
|
4833
|
+
ZShowToTags: Cs,
|
|
4834
|
+
ZTable: xl,
|
|
4835
|
+
ZTableLinkButton: Fl,
|
|
4836
|
+
ZTipsFormItem: Vl
|
|
4837
|
+
}, Symbol.toStringTag, { value: "Module" })), Ol = {
|
|
4831
4838
|
created(t) {
|
|
4832
4839
|
const e = t.querySelector(".el-input__wrapper > input") || t, o = (n) => {
|
|
4833
4840
|
n.preventDefault();
|
|
@@ -4856,7 +4863,7 @@ const st = (t) => typeof t == "boolean" ? t ? "left" : void 0 : t, cl = (t) => {
|
|
|
4856
4863
|
const e = t.querySelector("input") || t;
|
|
4857
4864
|
t._handlePaste && (e.removeEventListener("paste", t._handlePaste), delete t._handlePaste);
|
|
4858
4865
|
}
|
|
4859
|
-
},
|
|
4866
|
+
}, Ll = (t, e) => {
|
|
4860
4867
|
t._mouseenterHandler && t.removeEventListener("mouseenter", t._mouseenterHandler, !1), t._mouseleaveHandler && t.removeEventListener("mouseleave", t._mouseleaveHandler, !1), t.style.overflow = "hidden", t.style.textOverflow = "ellipsis", t.style.wordBreak = "break-all";
|
|
4861
4868
|
let o = 1;
|
|
4862
4869
|
typeof e.value == "object" && e.value.line && (o = e.value.line), o > 1 ? (t.style.display = "-webkit-box", t.style.webkitBoxOrient = "vertical", t.style.webkitLineClamp = String(o)) : t.style.whiteSpace = "nowrap", t.addEventListener("mouseenter", () => {
|
|
@@ -4868,47 +4875,47 @@ const st = (t) => typeof t == "boolean" ? t ? "left" : void 0 : t, cl = (t) => {
|
|
|
4868
4875
|
}), t.addEventListener("mouseleave", () => {
|
|
4869
4876
|
(t.scrollWidth > t.clientWidth || o > 1 && t.scrollHeight > t.clientHeight) && (te.value.visible = !1);
|
|
4870
4877
|
});
|
|
4871
|
-
},
|
|
4878
|
+
}, Hl = {
|
|
4872
4879
|
install(t) {
|
|
4873
|
-
t.directive("ellipsis",
|
|
4880
|
+
t.directive("ellipsis", Ll), t.directive("paste-trim", Ol);
|
|
4874
4881
|
}
|
|
4875
|
-
},
|
|
4882
|
+
}, Ul = {
|
|
4876
4883
|
injectDirective: !0
|
|
4877
|
-
},
|
|
4878
|
-
...
|
|
4884
|
+
}, Ql = (t) => ({
|
|
4885
|
+
...Ul,
|
|
4879
4886
|
...t ?? {}
|
|
4880
|
-
}),
|
|
4881
|
-
version:
|
|
4887
|
+
}), Yl = "0.5.0", zl = {
|
|
4888
|
+
version: Yl
|
|
4882
4889
|
};
|
|
4883
|
-
function
|
|
4890
|
+
function cr(t, e, o) {
|
|
4884
4891
|
if (Xe(t))
|
|
4885
4892
|
for (const [n, a] of Object.entries(t))
|
|
4886
4893
|
it(n, a);
|
|
4887
4894
|
else
|
|
4888
4895
|
it(t, { component: o, defaultPraseStrategy: e });
|
|
4889
4896
|
}
|
|
4890
|
-
function
|
|
4897
|
+
function ur(t) {
|
|
4891
4898
|
return mo(t);
|
|
4892
4899
|
}
|
|
4893
|
-
const
|
|
4894
|
-
const o = new yo(t, e), n =
|
|
4900
|
+
const Zl = (t, e) => {
|
|
4901
|
+
const o = new yo(t, e), n = T(o);
|
|
4895
4902
|
return t?.length && n.value.setBaseColumnsGetter(() => ge(t)), e?.baseTableRef && n.value.onChange(() => {
|
|
4896
4903
|
e.baseTableRef?.value?.refresh();
|
|
4897
4904
|
}), {
|
|
4898
4905
|
formBuilder: i(n)
|
|
4899
4906
|
};
|
|
4900
|
-
},
|
|
4901
|
-
const { formBuilder: o } =
|
|
4907
|
+
}, dr = (t, e) => {
|
|
4908
|
+
const { formBuilder: o } = Zl([], e);
|
|
4902
4909
|
return o.init(t?.(o) ?? []), t && o.setBaseColumnsGetter(t), {
|
|
4903
4910
|
formBuilder: o
|
|
4904
4911
|
};
|
|
4905
|
-
},
|
|
4912
|
+
}, pr = (t) => (e) => t.reduce((o, n, a) => (Reflect.set(o, n, e?.[a] ?? void 0), o), {}), mr = (t) => {
|
|
4906
4913
|
const [e, o] = t || [];
|
|
4907
4914
|
if (e)
|
|
4908
4915
|
return {
|
|
4909
4916
|
[o]: e
|
|
4910
4917
|
};
|
|
4911
|
-
},
|
|
4918
|
+
}, fr = (t, e) => (o) => {
|
|
4912
4919
|
const [n, a] = o, s = {};
|
|
4913
4920
|
return t && Reflect.set(s, t, a), e && Reflect.set(s, e, n), s;
|
|
4914
4921
|
}, Qt = {
|
|
@@ -4923,7 +4930,7 @@ const Yl = (t, e) => {
|
|
|
4923
4930
|
}, Yt = "__dialog_root__", zt = () => {
|
|
4924
4931
|
let t = document.getElementById(Yt);
|
|
4925
4932
|
return t || (t = document.createElement("div"), t.id = Yt, document.body.appendChild(t)), t;
|
|
4926
|
-
},
|
|
4933
|
+
}, Xl = () => {
|
|
4927
4934
|
const t = qt()?.appContext, e = (n) => {
|
|
4928
4935
|
n && (zt()?.removeChild(n), St(null, n));
|
|
4929
4936
|
};
|
|
@@ -4931,7 +4938,7 @@ const Yl = (t, e) => {
|
|
|
4931
4938
|
mount: (n, a) => {
|
|
4932
4939
|
if (!n)
|
|
4933
4940
|
throw new Error("component is required");
|
|
4934
|
-
const s =
|
|
4941
|
+
const s = _(n);
|
|
4935
4942
|
return s.appContext = t || s.appContext, zt().appendChild(a), St(s, a), {
|
|
4936
4943
|
unmount: e
|
|
4937
4944
|
};
|
|
@@ -4943,9 +4950,9 @@ let Zt = 0;
|
|
|
4943
4950
|
const Xt = (t) => {
|
|
4944
4951
|
const [e, ...o] = t.toString();
|
|
4945
4952
|
return `on${e.toUpperCase() + o.join("")}`;
|
|
4946
|
-
},
|
|
4953
|
+
}, gr = () => {
|
|
4947
4954
|
qt()?.appContext || console.warn("useOpenDialog must be called in setup");
|
|
4948
|
-
const e =
|
|
4955
|
+
const e = T([]), { mount: o } = Xl(), n = (l, g) => {
|
|
4949
4956
|
if (l) {
|
|
4950
4957
|
const c = e.value.findIndex((p) => p.id === l);
|
|
4951
4958
|
if (c > -1)
|
|
@@ -4969,28 +4976,28 @@ const Xt = (t) => {
|
|
|
4969
4976
|
await ne();
|
|
4970
4977
|
const u = c ?? Zt--, f = document.createElement("div");
|
|
4971
4978
|
return new Promise((h, r) => {
|
|
4972
|
-
const { unmount:
|
|
4979
|
+
const { unmount: m } = o(
|
|
4973
4980
|
At(p, {
|
|
4974
4981
|
inheritAttrs: !0,
|
|
4975
4982
|
...g,
|
|
4976
4983
|
modelValue: !0,
|
|
4977
|
-
"onUpdate:modelValue": (
|
|
4978
|
-
|
|
4979
|
-
e.value.find((
|
|
4984
|
+
"onUpdate:modelValue": (d) => {
|
|
4985
|
+
d || ne(() => {
|
|
4986
|
+
e.value.find((y) => y.id === u) && (n(u), r());
|
|
4980
4987
|
});
|
|
4981
4988
|
},
|
|
4982
|
-
[Xt(Qt.CONFIRM)]: (
|
|
4983
|
-
h(
|
|
4989
|
+
[Xt(Qt.CONFIRM)]: (d) => {
|
|
4990
|
+
h(d), n();
|
|
4984
4991
|
},
|
|
4985
|
-
[Xt(Qt.CANCEL)]: (
|
|
4986
|
-
r(
|
|
4992
|
+
[Xt(Qt.CANCEL)]: (d) => {
|
|
4993
|
+
r(d), n();
|
|
4987
4994
|
}
|
|
4988
4995
|
}),
|
|
4989
4996
|
f
|
|
4990
4997
|
);
|
|
4991
4998
|
e.value.push({
|
|
4992
4999
|
id: u,
|
|
4993
|
-
cleanup: () =>
|
|
5000
|
+
cleanup: () => m(f)
|
|
4994
5001
|
});
|
|
4995
5002
|
});
|
|
4996
5003
|
};
|
|
@@ -5007,15 +5014,15 @@ const Xt = (t) => {
|
|
|
5007
5014
|
},
|
|
5008
5015
|
closeDialog: n
|
|
5009
5016
|
};
|
|
5010
|
-
},
|
|
5011
|
-
const o =
|
|
5017
|
+
}, Wl = (t, e) => {
|
|
5018
|
+
const o = Ql(e);
|
|
5012
5019
|
(o?.components ?? Object.keys(Ut)).forEach((a) => {
|
|
5013
5020
|
const s = Reflect.get(Ut, a);
|
|
5014
5021
|
s.install ? t.use(s, e) : console.error(`组件${a}不存在`);
|
|
5015
|
-
}), o.injectDirective && t.use(
|
|
5016
|
-
},
|
|
5017
|
-
install:
|
|
5018
|
-
version:
|
|
5022
|
+
}), o.injectDirective && t.use(Hl);
|
|
5023
|
+
}, hr = {
|
|
5024
|
+
install: Wl,
|
|
5025
|
+
version: zl.version
|
|
5019
5026
|
};
|
|
5020
5027
|
export {
|
|
5021
5028
|
Hn as BaseCascader,
|
|
@@ -5027,66 +5034,68 @@ export {
|
|
|
5027
5034
|
ea as BaseNumberRange,
|
|
5028
5035
|
na as BaseSearchInput,
|
|
5029
5036
|
sa as BaseSelect,
|
|
5030
|
-
|
|
5037
|
+
Aa as DATE_SHORTCUTS,
|
|
5031
5038
|
et as DEFAULT_FORMAT,
|
|
5032
5039
|
qe as DEFAULT_GROUP_CHECKED_ID,
|
|
5033
|
-
|
|
5040
|
+
sl as DEFAULT_GROUP_NAME,
|
|
5034
5041
|
Lt as DEFAULT_PAGINATION_PROPS,
|
|
5035
5042
|
ue as EBaseFormEvent,
|
|
5036
5043
|
Qt as EDialogEvent,
|
|
5037
5044
|
oe as EFormComponentType,
|
|
5038
5045
|
yo as FormBuilder,
|
|
5039
|
-
|
|
5040
|
-
|
|
5041
|
-
|
|
5046
|
+
da as GroupSelectInput,
|
|
5047
|
+
ra as LONG_MAX_VALUE,
|
|
5048
|
+
va as MAX_MONEY,
|
|
5049
|
+
hl as STICKY_CONTAINER_CLASS,
|
|
5042
5050
|
Ot as TABLE_DRAGGABLE_CLASS,
|
|
5043
5051
|
at as TABLE_EMPTY_NODE,
|
|
5044
5052
|
_o as TABLE_EMPTY_VALUE,
|
|
5045
|
-
|
|
5046
|
-
|
|
5053
|
+
ll as TABLE_HEADER_CELL_STYLE,
|
|
5054
|
+
al as TEMP_GROUP_ID,
|
|
5047
5055
|
dn as ZAutoTooltip,
|
|
5048
5056
|
gn as ZCircleText,
|
|
5049
5057
|
bn as ZClassifyTitle,
|
|
5050
5058
|
wn as ZEmpty,
|
|
5051
|
-
|
|
5052
|
-
|
|
5053
|
-
|
|
5054
|
-
|
|
5055
|
-
|
|
5056
|
-
|
|
5059
|
+
cs as ZForm,
|
|
5060
|
+
ps as ZPlusBold,
|
|
5061
|
+
Cs as ZShowToTags,
|
|
5062
|
+
xl as ZTable,
|
|
5063
|
+
Fl as ZTableLinkButton,
|
|
5064
|
+
Vl as ZTipsFormItem,
|
|
5057
5065
|
Pt as baseFormComponents,
|
|
5058
5066
|
mo as createBaseFormItem,
|
|
5059
5067
|
bo as createBaseTableColumn,
|
|
5060
|
-
|
|
5061
|
-
|
|
5062
|
-
|
|
5063
|
-
|
|
5064
|
-
|
|
5065
|
-
|
|
5066
|
-
|
|
5067
|
-
|
|
5068
|
-
|
|
5069
|
-
|
|
5068
|
+
rr as createBaseTableColumns,
|
|
5069
|
+
ur as createCustomFormItem,
|
|
5070
|
+
ir as createSortColumn,
|
|
5071
|
+
hr as default,
|
|
5072
|
+
cr as defineCustomFormComponent,
|
|
5073
|
+
pr as formatArrayKeyToObjectValue,
|
|
5074
|
+
fr as formatGroupSelectInputToObject,
|
|
5075
|
+
or as formatSecond,
|
|
5076
|
+
nr as formatSeconds,
|
|
5077
|
+
mr as formatSelectAndInputGroupValue,
|
|
5070
5078
|
Pn as getAppointDateRange,
|
|
5071
5079
|
lo as getCurrentDateRange,
|
|
5072
5080
|
de as getDaysRange,
|
|
5073
|
-
|
|
5074
|
-
|
|
5081
|
+
ia as handleLongMaxValue,
|
|
5082
|
+
Hl as initZUiDirectives,
|
|
5083
|
+
ar as isAfterNow,
|
|
5075
5084
|
On as isAsyncComponent,
|
|
5076
|
-
|
|
5085
|
+
sr as isChinese,
|
|
5077
5086
|
Vn as isEmptyCellValue,
|
|
5078
|
-
|
|
5087
|
+
lr as isEmptyNumber,
|
|
5079
5088
|
co as isHiddenNode,
|
|
5080
5089
|
io as isPromise,
|
|
5081
5090
|
ze as specialColumnMap,
|
|
5082
5091
|
Ne as uiConfigService,
|
|
5083
5092
|
ut as useAsyncLoader,
|
|
5084
|
-
|
|
5085
|
-
|
|
5086
|
-
|
|
5087
|
-
|
|
5088
|
-
|
|
5093
|
+
ml as useBaseTable,
|
|
5094
|
+
Zl as useCreateFormBuilder,
|
|
5095
|
+
dr as useDynamicCreateFormBuilder,
|
|
5096
|
+
Ws as useListenEvent,
|
|
5097
|
+
gr as useOpenDialog,
|
|
5089
5098
|
bt as useOptions,
|
|
5090
|
-
|
|
5091
|
-
|
|
5099
|
+
El as useResizeObserver,
|
|
5100
|
+
Dl as useTableSticky
|
|
5092
5101
|
};
|