@bscjc/webui 1.6.0 → 1.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/JcInputTag/index.d.ts +5 -0
- package/dist/components/JcInputTag/index.vue.d.ts +9 -4
- package/dist/es/index.mjs +497 -486
- package/dist/index.css +2 -2
- package/dist/lib/index.cjs +5 -5
- package/dist/types/components/JcInputTag/index.d.ts +4 -0
- package/dist/types/components/JcInputTag/index.vue.d.ts +4 -0
- package/package.json +2 -2
package/dist/es/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { nextTick as te, pushScopeId as Zt, popScopeId as es, withScopeId as ts, createBlock as re, openBlock as N, markRaw as ss, shallowReactive as ls, resolveComponent as le, resolveDirective as ns, withDirectives as Me, createElementBlock as W, normalizeClass as we, createCommentVNode as fe, createVNode as E, renderSlot as
|
|
1
|
+
import { nextTick as te, pushScopeId as Zt, popScopeId as es, withScopeId as ts, createBlock as re, openBlock as N, markRaw as ss, shallowReactive as ls, resolveComponent as le, resolveDirective as ns, withDirectives as Me, createElementBlock as W, normalizeClass as we, createCommentVNode as fe, createVNode as E, renderSlot as he, resolveDynamicComponent as vt, normalizeStyle as Ue, withCtx as A, Fragment as be, renderList as _e, mergeProps as pe, toHandlers as is, reactive as $t, defineComponent as ve, ref as M, watch as ne, onMounted as Et, onUnmounted as Ft, unref as $, createSlots as zt, createElementVNode as S, vModelText as os, createTextVNode as J, toDisplayString as G, withModifiers as It, vShow as je, computed as se, normalizeProps as rs, guardReactiveProps as as, toRef as Ie, withKeys as us } from "vue";
|
|
2
2
|
import { isEmpty as cs, isNil as mt, isObject as gt, isArray as Ve, cloneDeep as Re, findIndex as ds, filter as fs, includes as hs } from "lodash-es";
|
|
3
3
|
import { createInjectionState as ps } from "@vueuse/shared";
|
|
4
4
|
import { Search as Qe, CirclePlus as vs, Close as Mt, Grid as Tt, Delete as ms, Operation as gs, InfoFilled as ys, Setting as bs } from "@element-plus/icons-vue";
|
|
5
|
-
import { ElSelect as ut, ElOption as ct, ElCheckbox as yt, ElCheckboxGroup as
|
|
5
|
+
import { ElSelect as ut, ElOption as ct, ElCheckbox as yt, ElCheckboxGroup as _s, ElButton as de, ElInput as Le, ElIcon as Te, ElPopover as dt, ElMessage as ie, ElTag as Vt, ElTooltip as Cs, ElCard as bt, ElLoading as Lt, ElMessageBox as ks } from "element-plus";
|
|
6
6
|
import "element-plus/es/components/select/style/index";
|
|
7
7
|
import "element-plus/es/components/option/style/index";
|
|
8
8
|
import "element-plus/es/components/checkbox-group/style/index";
|
|
@@ -151,7 +151,7 @@ function Is(t, e) {
|
|
|
151
151
|
function Ms(t, e, s) {
|
|
152
152
|
return e && Is(t.prototype, e), t;
|
|
153
153
|
}
|
|
154
|
-
function
|
|
154
|
+
function _t(t) {
|
|
155
155
|
return Ts(t) || Vs(t) || Ls(t) || Bs();
|
|
156
156
|
}
|
|
157
157
|
function Ts(t) {
|
|
@@ -189,8 +189,8 @@ function Os(t, e) {
|
|
|
189
189
|
d[m - 1] = arguments[m];
|
|
190
190
|
if (i = d, !(l && u === n)) {
|
|
191
191
|
var v = s.leading;
|
|
192
|
-
typeof v == "function" && (v = v(u, n)), (!l || u !== n) && v && t.apply(void 0, [u].concat(
|
|
193
|
-
t.apply(void 0, [u].concat(
|
|
192
|
+
typeof v == "function" && (v = v(u, n)), (!l || u !== n) && v && t.apply(void 0, [u].concat(_t(i))), n = u, clearTimeout(l), l = setTimeout(function() {
|
|
193
|
+
t.apply(void 0, [u].concat(_t(i))), l = 0;
|
|
194
194
|
}, e);
|
|
195
195
|
}
|
|
196
196
|
};
|
|
@@ -301,7 +301,7 @@ var Je = function(e, s) {
|
|
|
301
301
|
}, Qs = function(e) {
|
|
302
302
|
return Ks.test(Us(e));
|
|
303
303
|
};
|
|
304
|
-
function
|
|
304
|
+
function Ct(t) {
|
|
305
305
|
if (t instanceof HTMLElement || t instanceof SVGElement) {
|
|
306
306
|
for (var e = Rt(t.parentNode, []), s = 0; s < e.length; s += 1)
|
|
307
307
|
if (Qs(e[s]))
|
|
@@ -550,12 +550,12 @@ var ft = {
|
|
|
550
550
|
})) : this.$emit("hidden"));
|
|
551
551
|
},
|
|
552
552
|
updateVisibleItems(t, e = !1) {
|
|
553
|
-
const s = this.itemSize, l = this.gridItems || 1, n = this.itemSecondarySize || s, i = this.$_computedMinItemSize, r = this.typeField, o = this.simpleArray ? null : this.keyField, u = this.items, c = u.length, d = this.sizes, m = this.$_views, v = this.$_unusedViews,
|
|
554
|
-
let
|
|
553
|
+
const s = this.itemSize, l = this.gridItems || 1, n = this.itemSecondarySize || s, i = this.$_computedMinItemSize, r = this.typeField, o = this.simpleArray ? null : this.keyField, u = this.items, c = u.length, d = this.sizes, m = this.$_views, v = this.$_unusedViews, C = this.pool, T = this.itemIndexByKey;
|
|
554
|
+
let k, f, y, h, V;
|
|
555
555
|
if (!c)
|
|
556
|
-
|
|
556
|
+
k = f = h = V = y = 0;
|
|
557
557
|
else if (this.$_prerender)
|
|
558
|
-
|
|
558
|
+
k = h = 0, f = V = Math.min(this.prerender, u.length), y = null;
|
|
559
559
|
else {
|
|
560
560
|
const D = this.getScroll();
|
|
561
561
|
if (e) {
|
|
@@ -568,8 +568,8 @@ var ft = {
|
|
|
568
568
|
this.$_lastUpdateScrollPosition = D.start;
|
|
569
569
|
const g = this.buffer;
|
|
570
570
|
D.start -= g, D.end += g;
|
|
571
|
-
let
|
|
572
|
-
if (this.$refs.before && (
|
|
571
|
+
let _ = 0;
|
|
572
|
+
if (this.$refs.before && (_ = this.$refs.before.scrollHeight, D.start -= _), this.$refs.after) {
|
|
573
573
|
const F = this.$refs.after.scrollHeight;
|
|
574
574
|
D.end += F;
|
|
575
575
|
}
|
|
@@ -578,48 +578,48 @@ var ft = {
|
|
|
578
578
|
do
|
|
579
579
|
x = a, F = d[a].accumulator, F < D.start ? I = a : a < c - 1 && d[a + 1].accumulator > D.start && (R = a), a = ~~((I + R) / 2);
|
|
580
580
|
while (a !== x);
|
|
581
|
-
for (a < 0 && (a = 0),
|
|
582
|
-
for (f === -1 ? f = u.length - 1 : (f++, f > c && (f = c)), h =
|
|
583
|
-
for (V = h; V < c &&
|
|
581
|
+
for (a < 0 && (a = 0), k = a, y = d[c - 1].accumulator, f = a; f < c && d[f].accumulator < D.end; f++) ;
|
|
582
|
+
for (f === -1 ? f = u.length - 1 : (f++, f > c && (f = c)), h = k; h < c && _ + d[h].accumulator < D.start; h++) ;
|
|
583
|
+
for (V = h; V < c && _ + d[V].accumulator < D.end; V++) ;
|
|
584
584
|
} else {
|
|
585
|
-
|
|
586
|
-
const F =
|
|
587
|
-
|
|
585
|
+
k = ~~(D.start / s * l);
|
|
586
|
+
const F = k % l;
|
|
587
|
+
k -= F, f = Math.ceil(D.end / s * l), h = Math.max(0, Math.floor((D.start - _) / s * l)), V = Math.floor((D.end - _) / s * l), k < 0 && (k = 0), f > c && (f = c), h < 0 && (h = 0), V > c && (V = c), y = Math.ceil(c / l) * s;
|
|
588
588
|
}
|
|
589
589
|
}
|
|
590
|
-
f -
|
|
590
|
+
f - k > Ps.itemsLimit && this.itemsLimitError(), this.totalSize = y;
|
|
591
591
|
let p;
|
|
592
|
-
const L =
|
|
592
|
+
const L = k <= this.$_endIndex && f >= this.$_startIndex;
|
|
593
593
|
if (L)
|
|
594
|
-
for (let D = 0, g =
|
|
595
|
-
p =
|
|
594
|
+
for (let D = 0, g = C.length; D < g; D++)
|
|
595
|
+
p = C[D], p.nr.used && (t && (p.nr.index = T[p.item[o]]), (p.nr.index == null || p.nr.index < k || p.nr.index >= f) && this.unuseView(p));
|
|
596
596
|
const z = L ? null : /* @__PURE__ */ new Map();
|
|
597
|
-
let
|
|
598
|
-
for (let D =
|
|
599
|
-
|
|
600
|
-
const g = o ?
|
|
597
|
+
let w, P, K;
|
|
598
|
+
for (let D = k; D < f; D++) {
|
|
599
|
+
w = u[D];
|
|
600
|
+
const g = o ? w[o] : w;
|
|
601
601
|
if (g == null)
|
|
602
602
|
throw new Error(`Key is ${g} on item (keyField is '${o}')`);
|
|
603
603
|
if (p = m.get(g), !s && !d[D].size) {
|
|
604
604
|
p && this.unuseView(p);
|
|
605
605
|
continue;
|
|
606
606
|
}
|
|
607
|
-
P =
|
|
608
|
-
let
|
|
607
|
+
P = w[r];
|
|
608
|
+
let _ = v.get(P), F = !1;
|
|
609
609
|
if (!p)
|
|
610
|
-
L ?
|
|
611
|
-
else if (!p.nr.used && (p.nr.used = !0, F = !0,
|
|
612
|
-
const I =
|
|
613
|
-
I !== -1 &&
|
|
610
|
+
L ? _ && _.length ? p = _.pop() : p = this.addView(C, D, w, g, P) : (K = z.get(P) || 0, (!_ || K >= _.length) && (p = this.addView(C, D, w, g, P), this.unuseView(p, !0), _ = v.get(P)), p = _[K], z.set(P, K + 1)), m.delete(p.nr.key), p.nr.used = !0, p.nr.index = D, p.nr.key = g, p.nr.type = P, m.set(g, p), F = !0;
|
|
611
|
+
else if (!p.nr.used && (p.nr.used = !0, F = !0, _)) {
|
|
612
|
+
const I = _.indexOf(p);
|
|
613
|
+
I !== -1 && _.splice(I, 1);
|
|
614
614
|
}
|
|
615
|
-
p.item =
|
|
615
|
+
p.item = w, F && (D === u.length - 1 && this.$emit("scroll-end"), D === 0 && this.$emit("scroll-start")), s === null ? (p.position = d[D - 1].accumulator, p.offset = 0) : (p.position = Math.floor(D / l) * s, p.offset = D % l * n);
|
|
616
616
|
}
|
|
617
|
-
return this.$_startIndex =
|
|
617
|
+
return this.$_startIndex = k, this.$_endIndex = f, this.emitUpdate && this.$emit("update", k, f, h, V), clearTimeout(this.$_sortTimer), this.$_sortTimer = setTimeout(this.sortViews, this.updateInterval + 300), {
|
|
618
618
|
continuous: L
|
|
619
619
|
};
|
|
620
620
|
},
|
|
621
621
|
getListenerTarget() {
|
|
622
|
-
let t =
|
|
622
|
+
let t = Ct(this.$el);
|
|
623
623
|
return window.document && (t === window.document.documentElement || t === window.document.body) && (t = window), t;
|
|
624
624
|
},
|
|
625
625
|
getScroll() {
|
|
@@ -661,7 +661,7 @@ var ft = {
|
|
|
661
661
|
const e = this.direction === "vertical" ? { scroll: "scrollTop", start: "top" } : { scroll: "scrollLeft", start: "left" };
|
|
662
662
|
let s, l, n;
|
|
663
663
|
if (this.pageMode) {
|
|
664
|
-
const i =
|
|
664
|
+
const i = Ct(this.$el), r = i.tagName === "HTML" ? 0 : i[e.scroll], o = i.getBoundingClientRect(), c = this.$el.getBoundingClientRect()[e.start] - o[e.start];
|
|
665
665
|
s = i, l = e.scroll, n = t + r + c;
|
|
666
666
|
} else
|
|
667
667
|
s = this.$el, l = e.scroll, n = t;
|
|
@@ -703,7 +703,7 @@ function Xs(t, e, s, l, n, i) {
|
|
|
703
703
|
"div",
|
|
704
704
|
Gs,
|
|
705
705
|
[
|
|
706
|
-
|
|
706
|
+
he(t.$slots, "before")
|
|
707
707
|
],
|
|
708
708
|
512
|
|
709
709
|
/* NEED_PATCH */
|
|
@@ -713,11 +713,11 @@ function Xs(t, e, s, l, n, i) {
|
|
|
713
713
|
style: Ue({ [t.direction === "vertical" ? "minHeight" : "minWidth"]: n.totalSize + "px" }),
|
|
714
714
|
class: we(["vue-recycle-scroller__item-wrapper", s.listClass])
|
|
715
715
|
}, {
|
|
716
|
-
default:
|
|
716
|
+
default: A(() => [
|
|
717
717
|
(N(!0), W(
|
|
718
718
|
be,
|
|
719
719
|
null,
|
|
720
|
-
|
|
720
|
+
_e(n.pool, (u) => (N(), re(vt(s.itemTag), pe({
|
|
721
721
|
key: u.nr.id,
|
|
722
722
|
style: n.ready ? {
|
|
723
723
|
transform: `translate${t.direction === "vertical" ? "Y" : "X"}(${u.position}px) translate${t.direction === "vertical" ? "X" : "Y"}(${u.offset}px)`,
|
|
@@ -738,8 +738,8 @@ function Xs(t, e, s, l, n, i) {
|
|
|
738
738
|
n.hoverKey = null;
|
|
739
739
|
}
|
|
740
740
|
})), {
|
|
741
|
-
default:
|
|
742
|
-
|
|
741
|
+
default: A(() => [
|
|
742
|
+
he(t.$slots, "default", {
|
|
743
743
|
item: u.item,
|
|
744
744
|
index: u.nr.index,
|
|
745
745
|
active: u.nr.used
|
|
@@ -751,7 +751,7 @@ function Xs(t, e, s, l, n, i) {
|
|
|
751
751
|
128
|
|
752
752
|
/* KEYED_FRAGMENT */
|
|
753
753
|
)),
|
|
754
|
-
|
|
754
|
+
he(t.$slots, "empty")
|
|
755
755
|
]),
|
|
756
756
|
_: 3
|
|
757
757
|
/* FORWARDED */
|
|
@@ -760,7 +760,7 @@ function Xs(t, e, s, l, n, i) {
|
|
|
760
760
|
"div",
|
|
761
761
|
Ys,
|
|
762
762
|
[
|
|
763
|
-
|
|
763
|
+
he(t.$slots, "after")
|
|
764
764
|
],
|
|
765
765
|
512
|
|
766
766
|
/* NEED_PATCH */
|
|
@@ -1087,17 +1087,17 @@ function yl(t, e, s, {
|
|
|
1087
1087
|
if (e.length > Fe)
|
|
1088
1088
|
throw new Error(il(Fe));
|
|
1089
1089
|
const d = e.length, m = t.length, v = Math.max(0, Math.min(l, m));
|
|
1090
|
-
let
|
|
1091
|
-
const
|
|
1090
|
+
let C = i, T = v;
|
|
1091
|
+
const k = o > 1 || u, f = k ? Array(m) : [];
|
|
1092
1092
|
let y;
|
|
1093
1093
|
for (; (y = t.indexOf(e, T)) > -1; ) {
|
|
1094
|
-
let
|
|
1094
|
+
let w = Be(e, {
|
|
1095
1095
|
currentLocation: y,
|
|
1096
1096
|
expectedLocation: v,
|
|
1097
1097
|
distance: n,
|
|
1098
1098
|
ignoreLocation: c
|
|
1099
1099
|
});
|
|
1100
|
-
if (
|
|
1100
|
+
if (C = Math.min(w, C), T = y + d, k) {
|
|
1101
1101
|
let P = 0;
|
|
1102
1102
|
for (; P < d; )
|
|
1103
1103
|
f[y + P] = 1, P += 1;
|
|
@@ -1106,51 +1106,51 @@ function yl(t, e, s, {
|
|
|
1106
1106
|
T = -1;
|
|
1107
1107
|
let h = [], V = 1, p = d + m;
|
|
1108
1108
|
const L = 1 << d - 1;
|
|
1109
|
-
for (let
|
|
1109
|
+
for (let w = 0; w < d; w += 1) {
|
|
1110
1110
|
let P = 0, K = p;
|
|
1111
1111
|
for (; P < K; )
|
|
1112
1112
|
Be(e, {
|
|
1113
|
-
errors:
|
|
1113
|
+
errors: w,
|
|
1114
1114
|
currentLocation: v + K,
|
|
1115
1115
|
expectedLocation: v,
|
|
1116
1116
|
distance: n,
|
|
1117
1117
|
ignoreLocation: c
|
|
1118
|
-
}) <=
|
|
1118
|
+
}) <= C ? P = K : p = K, K = Math.floor((p - P) / 2 + P);
|
|
1119
1119
|
p = K;
|
|
1120
|
-
let D = Math.max(1, v - K + 1), g = r ? m : Math.min(v + K, m) + d,
|
|
1121
|
-
|
|
1120
|
+
let D = Math.max(1, v - K + 1), g = r ? m : Math.min(v + K, m) + d, _ = Array(g + 2);
|
|
1121
|
+
_[g + 1] = (1 << w) - 1;
|
|
1122
1122
|
for (let I = g; I >= D; I -= 1) {
|
|
1123
1123
|
let R = I - 1, a = s[t.charAt(R)];
|
|
1124
|
-
if (
|
|
1125
|
-
errors:
|
|
1124
|
+
if (k && (f[R] = +!!a), _[I] = (_[I + 1] << 1 | 1) & a, w && (_[I] |= (h[I + 1] | h[I]) << 1 | 1 | h[I + 1]), _[I] & L && (V = Be(e, {
|
|
1125
|
+
errors: w,
|
|
1126
1126
|
currentLocation: R,
|
|
1127
1127
|
expectedLocation: v,
|
|
1128
1128
|
distance: n,
|
|
1129
1129
|
ignoreLocation: c
|
|
1130
|
-
}), V <=
|
|
1131
|
-
if (
|
|
1130
|
+
}), V <= C)) {
|
|
1131
|
+
if (C = V, T = R, T <= v)
|
|
1132
1132
|
break;
|
|
1133
1133
|
D = Math.max(1, 2 * v - T);
|
|
1134
1134
|
}
|
|
1135
1135
|
}
|
|
1136
1136
|
if (Be(e, {
|
|
1137
|
-
errors:
|
|
1137
|
+
errors: w + 1,
|
|
1138
1138
|
currentLocation: v,
|
|
1139
1139
|
expectedLocation: v,
|
|
1140
1140
|
distance: n,
|
|
1141
1141
|
ignoreLocation: c
|
|
1142
|
-
}) >
|
|
1142
|
+
}) > C)
|
|
1143
1143
|
break;
|
|
1144
|
-
h =
|
|
1144
|
+
h = _;
|
|
1145
1145
|
}
|
|
1146
1146
|
const z = {
|
|
1147
1147
|
isMatch: T >= 0,
|
|
1148
1148
|
// Count exact matches (those with a score of 0) to be "almost" exact
|
|
1149
1149
|
score: Math.max(1e-3, V)
|
|
1150
1150
|
};
|
|
1151
|
-
if (
|
|
1152
|
-
const
|
|
1153
|
-
|
|
1151
|
+
if (k) {
|
|
1152
|
+
const w = gl(f, o);
|
|
1153
|
+
w.length ? u && (z.indices = w) : z.isMatch = !1;
|
|
1154
1154
|
}
|
|
1155
1155
|
return z;
|
|
1156
1156
|
}
|
|
@@ -1187,18 +1187,18 @@ class qt {
|
|
|
1187
1187
|
ignoreLocation: d
|
|
1188
1188
|
}, e = u ? e : e.toLowerCase(), e = c ? Ne(e) : e, this.pattern = e, this.chunks = [], !this.pattern.length)
|
|
1189
1189
|
return;
|
|
1190
|
-
const m = (
|
|
1190
|
+
const m = (C, T) => {
|
|
1191
1191
|
this.chunks.push({
|
|
1192
|
-
pattern:
|
|
1193
|
-
alphabet: bl(
|
|
1192
|
+
pattern: C,
|
|
1193
|
+
alphabet: bl(C),
|
|
1194
1194
|
startIndex: T
|
|
1195
1195
|
});
|
|
1196
1196
|
}, v = this.pattern.length;
|
|
1197
1197
|
if (v > Fe) {
|
|
1198
|
-
let
|
|
1199
|
-
const T = v % Fe,
|
|
1200
|
-
for (;
|
|
1201
|
-
m(this.pattern.substr(
|
|
1198
|
+
let C = 0;
|
|
1199
|
+
const T = v % Fe, k = v - T;
|
|
1200
|
+
for (; C < k; )
|
|
1201
|
+
m(this.pattern.substr(C, Fe), C), C += Fe;
|
|
1202
1202
|
if (T) {
|
|
1203
1203
|
const f = v - Fe;
|
|
1204
1204
|
m(this.pattern.substr(f), f);
|
|
@@ -1209,11 +1209,11 @@ class qt {
|
|
|
1209
1209
|
searchIn(e) {
|
|
1210
1210
|
const { isCaseSensitive: s, ignoreDiacritics: l, includeMatches: n } = this.options;
|
|
1211
1211
|
if (e = s ? e : e.toLowerCase(), e = l ? Ne(e) : e, this.pattern === e) {
|
|
1212
|
-
let
|
|
1212
|
+
let k = {
|
|
1213
1213
|
isMatch: !0,
|
|
1214
1214
|
score: 0
|
|
1215
1215
|
};
|
|
1216
|
-
return n && (
|
|
1216
|
+
return n && (k.indices = [[0, e.length - 1]]), k;
|
|
1217
1217
|
}
|
|
1218
1218
|
const {
|
|
1219
1219
|
location: i,
|
|
@@ -1223,9 +1223,9 @@ class qt {
|
|
|
1223
1223
|
minMatchCharLength: c,
|
|
1224
1224
|
ignoreLocation: d
|
|
1225
1225
|
} = this.options;
|
|
1226
|
-
let m = [], v = 0,
|
|
1227
|
-
this.chunks.forEach(({ pattern:
|
|
1228
|
-
const { isMatch: h, score: V, indices: p } = yl(e,
|
|
1226
|
+
let m = [], v = 0, C = !1;
|
|
1227
|
+
this.chunks.forEach(({ pattern: k, alphabet: f, startIndex: y }) => {
|
|
1228
|
+
const { isMatch: h, score: V, indices: p } = yl(e, k, f, {
|
|
1229
1229
|
location: i + y,
|
|
1230
1230
|
distance: r,
|
|
1231
1231
|
threshold: o,
|
|
@@ -1234,13 +1234,13 @@ class qt {
|
|
|
1234
1234
|
includeMatches: n,
|
|
1235
1235
|
ignoreLocation: d
|
|
1236
1236
|
});
|
|
1237
|
-
h && (
|
|
1237
|
+
h && (C = !0), v += V, h && p && (m = [...m, ...p]);
|
|
1238
1238
|
});
|
|
1239
1239
|
let T = {
|
|
1240
|
-
isMatch:
|
|
1241
|
-
score:
|
|
1240
|
+
isMatch: C,
|
|
1241
|
+
score: C ? v / this.chunks.length : 1
|
|
1242
1242
|
};
|
|
1243
|
-
return
|
|
1243
|
+
return C && n && (T.indices = m), T;
|
|
1244
1244
|
}
|
|
1245
1245
|
}
|
|
1246
1246
|
class Ae {
|
|
@@ -1260,7 +1260,7 @@ function St(t, e) {
|
|
|
1260
1260
|
const s = t.match(e);
|
|
1261
1261
|
return s ? s[1] : null;
|
|
1262
1262
|
}
|
|
1263
|
-
class
|
|
1263
|
+
class _l extends Ae {
|
|
1264
1264
|
constructor(e) {
|
|
1265
1265
|
super(e);
|
|
1266
1266
|
}
|
|
@@ -1282,7 +1282,7 @@ class Cl extends Ae {
|
|
|
1282
1282
|
};
|
|
1283
1283
|
}
|
|
1284
1284
|
}
|
|
1285
|
-
class
|
|
1285
|
+
class Cl extends Ae {
|
|
1286
1286
|
constructor(e) {
|
|
1287
1287
|
super(e);
|
|
1288
1288
|
}
|
|
@@ -1456,13 +1456,13 @@ class Wt extends Ae {
|
|
|
1456
1456
|
}
|
|
1457
1457
|
}
|
|
1458
1458
|
const st = [
|
|
1459
|
-
|
|
1459
|
+
_l,
|
|
1460
1460
|
Wt,
|
|
1461
1461
|
kl,
|
|
1462
1462
|
wl,
|
|
1463
1463
|
Al,
|
|
1464
1464
|
Sl,
|
|
1465
|
-
|
|
1465
|
+
Cl,
|
|
1466
1466
|
Ht
|
|
1467
1467
|
], At = st.length, xl = / +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/, $l = "|";
|
|
1468
1468
|
function El(t, e = {}) {
|
|
@@ -1530,9 +1530,9 @@ class zl {
|
|
|
1530
1530
|
for (let c = 0, d = s.length; c < d; c += 1) {
|
|
1531
1531
|
const m = s[c];
|
|
1532
1532
|
o.length = 0, r = 0;
|
|
1533
|
-
for (let v = 0,
|
|
1534
|
-
const T = m[v], { isMatch:
|
|
1535
|
-
if (
|
|
1533
|
+
for (let v = 0, C = m.length; v < C; v += 1) {
|
|
1534
|
+
const T = m[v], { isMatch: k, indices: f, score: y } = T.search(e);
|
|
1535
|
+
if (k) {
|
|
1536
1536
|
if (r += 1, u += y, l) {
|
|
1537
1537
|
const h = T.constructor.type;
|
|
1538
1538
|
Fl.has(h) ? o = [...o, ...f] : o.push(f);
|
|
@@ -1710,22 +1710,22 @@ class Se {
|
|
|
1710
1710
|
_searchLogical(e) {
|
|
1711
1711
|
const s = Jt(e, this.options), l = (o, u, c) => {
|
|
1712
1712
|
if (!o.children) {
|
|
1713
|
-
const { keyId: m, searcher: v } = o,
|
|
1713
|
+
const { keyId: m, searcher: v } = o, C = this._findMatches({
|
|
1714
1714
|
key: this._keyStore.get(m),
|
|
1715
1715
|
value: this._myIndex.getValueForItemAtKeyId(u, m),
|
|
1716
1716
|
searcher: v
|
|
1717
1717
|
});
|
|
1718
|
-
return
|
|
1718
|
+
return C && C.length ? [
|
|
1719
1719
|
{
|
|
1720
1720
|
idx: c,
|
|
1721
1721
|
item: u,
|
|
1722
|
-
matches:
|
|
1722
|
+
matches: C
|
|
1723
1723
|
}
|
|
1724
1724
|
] : [];
|
|
1725
1725
|
}
|
|
1726
1726
|
const d = [];
|
|
1727
1727
|
for (let m = 0, v = o.children.length; m < v; m += 1) {
|
|
1728
|
-
const
|
|
1728
|
+
const C = o.children[m], T = l(C, u, c);
|
|
1729
1729
|
if (T.length)
|
|
1730
1730
|
d.push(...T);
|
|
1731
1731
|
else if (o.operator === Pe.AND)
|
|
@@ -1802,27 +1802,27 @@ const xe = (t) => {
|
|
|
1802
1802
|
Y(m) && gt(m) ? n.queryForm[d] = void 0 : n.queryForm[d] = m;
|
|
1803
1803
|
}
|
|
1804
1804
|
function r(d) {
|
|
1805
|
-
let { key: m, label: v, value:
|
|
1806
|
-
if (Y(
|
|
1805
|
+
let { key: m, label: v, value: C } = d;
|
|
1806
|
+
if (Y(C) && !gt(C))
|
|
1807
1807
|
return;
|
|
1808
|
-
let T = "",
|
|
1809
|
-
if (typeof
|
|
1810
|
-
T = `${v}:${
|
|
1811
|
-
else if (Ve(
|
|
1808
|
+
let T = "", k = C == null ? void 0 : C.toString();
|
|
1809
|
+
if (typeof C == "number" || typeof C == "boolean" || typeof C == "string")
|
|
1810
|
+
T = `${v}:${k}`, k.length > 50 && (T = `${v}:${k.slice(0, 50)}...`);
|
|
1811
|
+
else if (Ve(C) && (T = `${v}:${k}`, k.length > 50)) {
|
|
1812
1812
|
let h = 0, V = 0;
|
|
1813
|
-
for (let L = 0; L <
|
|
1814
|
-
if (V +=
|
|
1813
|
+
for (let L = 0; L < C.length; L++)
|
|
1814
|
+
if (V += C[L].length + 1, V > 50) {
|
|
1815
1815
|
h = L + 1;
|
|
1816
1816
|
break;
|
|
1817
1817
|
}
|
|
1818
|
-
let p =
|
|
1819
|
-
T = `${v}:${p.join(",").slice(0, 50)}...`,
|
|
1818
|
+
let p = C.slice(0, h);
|
|
1819
|
+
T = `${v}:${p.join(",").slice(0, 50)}...`, C.length > h && (T += `等其余${C.length - h}项`);
|
|
1820
1820
|
}
|
|
1821
1821
|
const f = {
|
|
1822
1822
|
key: m,
|
|
1823
1823
|
label: v,
|
|
1824
1824
|
showStr: T,
|
|
1825
|
-
value:
|
|
1825
|
+
value: k
|
|
1826
1826
|
}, y = n.tags.findIndex((h) => h.key === m);
|
|
1827
1827
|
y === -1 ? n.tags.push(f) : n.tags.splice(y, 1, f);
|
|
1828
1828
|
}
|
|
@@ -1844,7 +1844,7 @@ const xe = (t) => {
|
|
|
1844
1844
|
{ injectionKey: t }
|
|
1845
1845
|
);
|
|
1846
1846
|
return { useProvideQueryStore: e, useQueryStore: s };
|
|
1847
|
-
}, Ol = { class: "el-select-pop-search-container" }, jl = { class: "el-select-dropdown__wrap virtual-scroll-wrap" }, Rl = { class: "check-all ak-relative el-select-dropdown__item" }, Nl = ["title"], Pl = ["onClick"], Kl = { class: "el-select-dropdown__empty" }, Ul = { class: "custom-multi-footer" }, Ql = { class: "counts" }, ql = /* @__PURE__ */
|
|
1847
|
+
}, Ol = { class: "el-select-pop-search-container" }, jl = { class: "el-select-dropdown__wrap virtual-scroll-wrap" }, Rl = { class: "check-all ak-relative el-select-dropdown__item" }, Nl = ["title"], Pl = ["onClick"], Kl = { class: "el-select-dropdown__empty" }, Ul = { class: "custom-multi-footer" }, Ql = { class: "counts" }, ql = /* @__PURE__ */ ve({
|
|
1848
1848
|
name: "JcSelectQuery",
|
|
1849
1849
|
__name: "index",
|
|
1850
1850
|
props: {
|
|
@@ -1861,7 +1861,7 @@ const xe = (t) => {
|
|
|
1861
1861
|
injectionKey: { default: "jc-query-injection-key" }
|
|
1862
1862
|
},
|
|
1863
1863
|
setup(t, { expose: e }) {
|
|
1864
|
-
const s = t, l = M(), n = M([]), i = M(""), r = M(), o = M([]), u = M([]), c = M([]), d = M(!1), m = M(!1), v = M(!1), { useQueryStore:
|
|
1864
|
+
const s = t, l = M(), n = M([]), i = M(""), r = M(), o = M([]), u = M([]), c = M([]), d = M(!1), m = M(!1), v = M(!1), { useQueryStore: C } = xe(s.injectionKey), { state: T, setQuery: k } = C();
|
|
1865
1865
|
let f = -1, y = !1;
|
|
1866
1866
|
const h = M(), V = (a) => {
|
|
1867
1867
|
a.shiftKey && (y = !0);
|
|
@@ -1876,8 +1876,8 @@ const xe = (t) => {
|
|
|
1876
1876
|
c.value = c.value.filter(
|
|
1877
1877
|
(x) => x.value !== a.value
|
|
1878
1878
|
);
|
|
1879
|
-
},
|
|
1880
|
-
v.value = !0,
|
|
1879
|
+
}, w = (a) => {
|
|
1880
|
+
v.value = !0, k(s.field, a), te(() => {
|
|
1881
1881
|
v.value = !1;
|
|
1882
1882
|
});
|
|
1883
1883
|
}, P = () => {
|
|
@@ -1890,13 +1890,13 @@ const xe = (t) => {
|
|
|
1890
1890
|
}), c.value.push({
|
|
1891
1891
|
label: i.value,
|
|
1892
1892
|
value: i.value
|
|
1893
|
-
}), n.value = c.value,
|
|
1893
|
+
}), n.value = c.value, k(s.field, n.value), te(() => {
|
|
1894
1894
|
h.value = new Se(o.value, {
|
|
1895
1895
|
keys: s.keyField
|
|
1896
1896
|
}), P();
|
|
1897
1897
|
}));
|
|
1898
1898
|
}, D = (a) => {
|
|
1899
|
-
c.value = a ? u.value : [], m.value = !1, s.isNeedFooter || (n.value = c.value,
|
|
1899
|
+
c.value = a ? u.value : [], m.value = !1, s.isNeedFooter || (n.value = c.value, k(s.field, n.value));
|
|
1900
1900
|
}, g = (a) => {
|
|
1901
1901
|
if (a.length === 0) {
|
|
1902
1902
|
d.value = !1, m.value = !1;
|
|
@@ -1918,8 +1918,8 @@ const xe = (t) => {
|
|
|
1918
1918
|
ds(a, O[We]) === -1 && c.value.push(O[We]), ue++;
|
|
1919
1919
|
}
|
|
1920
1920
|
}
|
|
1921
|
-
s.isNeedFooter || (n.value = c.value,
|
|
1922
|
-
},
|
|
1921
|
+
s.isNeedFooter || (n.value = c.value, k(s.field, n.value));
|
|
1922
|
+
}, _ = (a) => {
|
|
1923
1923
|
!y && !c.value.includes(a) && (f = o.value.findIndex((x) => x.value === a.value));
|
|
1924
1924
|
}, F = (a) => {
|
|
1925
1925
|
c.value = [a], R();
|
|
@@ -1927,11 +1927,11 @@ const xe = (t) => {
|
|
|
1927
1927
|
var a;
|
|
1928
1928
|
(a = l.value) == null || a.blur();
|
|
1929
1929
|
}, R = () => {
|
|
1930
|
-
v.value = !0, n.value = c.value,
|
|
1930
|
+
v.value = !0, n.value = c.value, k(s.field, n.value), I(), te(() => {
|
|
1931
1931
|
v.value = !1;
|
|
1932
1932
|
});
|
|
1933
1933
|
};
|
|
1934
|
-
return
|
|
1934
|
+
return ne(
|
|
1935
1935
|
() => s.options,
|
|
1936
1936
|
() => {
|
|
1937
1937
|
var a;
|
|
@@ -1944,7 +1944,7 @@ const xe = (t) => {
|
|
|
1944
1944
|
immediate: !0,
|
|
1945
1945
|
deep: !0
|
|
1946
1946
|
}
|
|
1947
|
-
),
|
|
1947
|
+
), ne(
|
|
1948
1948
|
() => T.queryForm[s.field],
|
|
1949
1949
|
(a) => {
|
|
1950
1950
|
v.value || (Y(a) ? (n.value = [], c.value = []) : n.value = Ve(a) ? a : []);
|
|
@@ -1973,7 +1973,7 @@ const xe = (t) => {
|
|
|
1973
1973
|
var a;
|
|
1974
1974
|
return (a = l.value) == null ? void 0 : a.selectedLabel;
|
|
1975
1975
|
}
|
|
1976
|
-
}), (a, x) => (N(), re($(ut),
|
|
1976
|
+
}), (a, x) => (N(), re($(ut), pe({
|
|
1977
1977
|
ref_key: "selectRef",
|
|
1978
1978
|
ref: l,
|
|
1979
1979
|
modelValue: n.value,
|
|
@@ -1992,16 +1992,16 @@ const xe = (t) => {
|
|
|
1992
1992
|
placeholder: "请选择",
|
|
1993
1993
|
onVisibleChange: L,
|
|
1994
1994
|
onRemoveTag: z,
|
|
1995
|
-
onChange:
|
|
1995
|
+
onChange: w
|
|
1996
1996
|
}), zt({
|
|
1997
|
-
default:
|
|
1997
|
+
default: A(() => [
|
|
1998
1998
|
E($(ct), {
|
|
1999
1999
|
value: "1",
|
|
2000
2000
|
hidden: ""
|
|
2001
2001
|
}),
|
|
2002
|
-
|
|
2002
|
+
S("div", Ol, [
|
|
2003
2003
|
E($(Qe), { class: "selcet-icon search-icon" }),
|
|
2004
|
-
Me(
|
|
2004
|
+
Me(S("input", {
|
|
2005
2005
|
ref_key: "searchInputRef",
|
|
2006
2006
|
ref: r,
|
|
2007
2007
|
"onUpdate:modelValue": x[0] || (x[0] = (O) => i.value = O),
|
|
@@ -2016,8 +2016,8 @@ const xe = (t) => {
|
|
|
2016
2016
|
onClick: K
|
|
2017
2017
|
})) : fe("", !0)
|
|
2018
2018
|
]),
|
|
2019
|
-
Me(
|
|
2020
|
-
|
|
2019
|
+
Me(S("div", jl, [
|
|
2020
|
+
S("li", Rl, [
|
|
2021
2021
|
E($(yt), {
|
|
2022
2022
|
modelValue: d.value,
|
|
2023
2023
|
"onUpdate:modelValue": x[1] || (x[1] = (O) => d.value = O),
|
|
@@ -2025,20 +2025,20 @@ const xe = (t) => {
|
|
|
2025
2025
|
size: a.size,
|
|
2026
2026
|
onChange: D
|
|
2027
2027
|
}, {
|
|
2028
|
-
default:
|
|
2028
|
+
default: A(() => x[5] || (x[5] = [
|
|
2029
2029
|
J("全选")
|
|
2030
2030
|
])),
|
|
2031
2031
|
_: 1,
|
|
2032
2032
|
__: [5]
|
|
2033
2033
|
}, 8, ["modelValue", "indeterminate", "size"])
|
|
2034
2034
|
]),
|
|
2035
|
-
E($(
|
|
2035
|
+
E($(_s), {
|
|
2036
2036
|
modelValue: c.value,
|
|
2037
2037
|
"onUpdate:modelValue": x[2] || (x[2] = (O) => c.value = O),
|
|
2038
2038
|
onChange: x[3] || (x[3] = (O) => g(O)),
|
|
2039
2039
|
size: a.size
|
|
2040
2040
|
}, {
|
|
2041
|
-
default:
|
|
2041
|
+
default: A(() => [
|
|
2042
2042
|
E($(ft), {
|
|
2043
2043
|
class: "recycle-scroller",
|
|
2044
2044
|
items: u.value,
|
|
@@ -2046,8 +2046,8 @@ const xe = (t) => {
|
|
|
2046
2046
|
"key-field": "value",
|
|
2047
2047
|
style: Ue({ maxHeight: a.maxScrollHeight })
|
|
2048
2048
|
}, {
|
|
2049
|
-
default:
|
|
2050
|
-
|
|
2049
|
+
default: A(({ item: O }) => [
|
|
2050
|
+
S("li", {
|
|
2051
2051
|
class: "el-select-dropdown__item",
|
|
2052
2052
|
title: O.label
|
|
2053
2053
|
}, [
|
|
@@ -2056,11 +2056,11 @@ const xe = (t) => {
|
|
|
2056
2056
|
value: O,
|
|
2057
2057
|
label: O,
|
|
2058
2058
|
disabled: O.disabled,
|
|
2059
|
-
onClick: (X) =>
|
|
2059
|
+
onClick: (X) => _(O)
|
|
2060
2060
|
}, {
|
|
2061
|
-
default:
|
|
2062
|
-
|
|
2063
|
-
|
|
2061
|
+
default: A(() => [
|
|
2062
|
+
he(a.$slots, "default", { scope: O }, () => [
|
|
2063
|
+
S("span", null, G(O.label), 1)
|
|
2064
2064
|
])
|
|
2065
2065
|
]),
|
|
2066
2066
|
_: 2
|
|
@@ -2070,7 +2070,7 @@ const xe = (t) => {
|
|
|
2070
2070
|
class: "select-tag",
|
|
2071
2071
|
onClick: It((X) => F(O), ["stop"])
|
|
2072
2072
|
}, x[6] || (x[6] = [
|
|
2073
|
-
|
|
2073
|
+
S("span", null, "仅筛选此项", -1)
|
|
2074
2074
|
]), 8, Pl)) : fe("", !0)
|
|
2075
2075
|
], 8, Nl)
|
|
2076
2076
|
]),
|
|
@@ -2082,7 +2082,7 @@ const xe = (t) => {
|
|
|
2082
2082
|
], 512), [
|
|
2083
2083
|
[je, u.value.length > 0]
|
|
2084
2084
|
]),
|
|
2085
|
-
Me(
|
|
2085
|
+
Me(S("p", Kl, "无数据", 512), [
|
|
2086
2086
|
[je, u.value.length === 0]
|
|
2087
2087
|
])
|
|
2088
2088
|
]),
|
|
@@ -2090,19 +2090,19 @@ const xe = (t) => {
|
|
|
2090
2090
|
}, [
|
|
2091
2091
|
a.isNeedFooter ? {
|
|
2092
2092
|
name: "footer",
|
|
2093
|
-
fn:
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
x[7] || (x[7] =
|
|
2093
|
+
fn: A(() => [
|
|
2094
|
+
S("div", Ul, [
|
|
2095
|
+
S("span", null, [
|
|
2096
|
+
S("span", Ql, "已选 " + G(c.value.length) + " 项", 1),
|
|
2097
|
+
x[7] || (x[7] = S("span", { class: "shift-tips" }, "(按住Shift可以快速多选)", -1))
|
|
2098
2098
|
]),
|
|
2099
|
-
|
|
2099
|
+
S("span", null, [
|
|
2100
2100
|
E($(de), {
|
|
2101
2101
|
size: a.size,
|
|
2102
2102
|
onClick: I,
|
|
2103
2103
|
plain: ""
|
|
2104
2104
|
}, {
|
|
2105
|
-
default:
|
|
2105
|
+
default: A(() => x[8] || (x[8] = [
|
|
2106
2106
|
J("关闭")
|
|
2107
2107
|
])),
|
|
2108
2108
|
_: 1,
|
|
@@ -2114,7 +2114,7 @@ const xe = (t) => {
|
|
|
2114
2114
|
onClick: R,
|
|
2115
2115
|
plain: ""
|
|
2116
2116
|
}, {
|
|
2117
|
-
default:
|
|
2117
|
+
default: A(() => [
|
|
2118
2118
|
J(G(a.footerBtnName), 1)
|
|
2119
2119
|
]),
|
|
2120
2120
|
_: 1
|
|
@@ -2126,10 +2126,10 @@ const xe = (t) => {
|
|
|
2126
2126
|
} : void 0
|
|
2127
2127
|
]), 1040, ["modelValue", "size", "style"]));
|
|
2128
2128
|
}
|
|
2129
|
-
}),
|
|
2129
|
+
}), me = (t) => (t.install = (e) => {
|
|
2130
2130
|
const s = t.name;
|
|
2131
2131
|
e.component(s, t);
|
|
2132
|
-
}, t), Hl =
|
|
2132
|
+
}, t), Hl = me(ql), Wl = { class: "jc-cascader-item" }, Jl = { title: "{{ data.label }}" }, Gl = ["onClick"], Yl = { class: "custom-multi-footer" }, Xl = /* @__PURE__ */ ve({
|
|
2133
2133
|
name: "JcCascader",
|
|
2134
2134
|
__name: "index",
|
|
2135
2135
|
props: {
|
|
@@ -2146,30 +2146,30 @@ const xe = (t) => {
|
|
|
2146
2146
|
},
|
|
2147
2147
|
setup(t, { expose: e }) {
|
|
2148
2148
|
const s = t, l = M(), n = M([]), i = (p, L) => {
|
|
2149
|
-
const z = String(p.label).trim().toLowerCase(),
|
|
2150
|
-
return z.indexOf(
|
|
2149
|
+
const z = String(p.label).trim().toLowerCase(), w = L.trim().toLowerCase();
|
|
2150
|
+
return z.indexOf(w) !== -1;
|
|
2151
2151
|
}, r = {
|
|
2152
2152
|
multiple: !0,
|
|
2153
2153
|
expandTrigger: "hover"
|
|
2154
|
-
}, o = M(!1), { useQueryStore: u } = xe(s.injectionKey), { state: c, setQuery: d } = u(), m = M(!1), v = M(!1),
|
|
2154
|
+
}, o = M(!1), { useQueryStore: u } = xe(s.injectionKey), { state: c, setQuery: d } = u(), m = M(!1), v = M(!1), C = se(() => {
|
|
2155
2155
|
var z;
|
|
2156
2156
|
const p = [], L = s.options.map(
|
|
2157
|
-
(
|
|
2157
|
+
(w) => ({ node: w, path: [w.value] })
|
|
2158
2158
|
);
|
|
2159
2159
|
for (; L.length > 0; ) {
|
|
2160
|
-
const { node:
|
|
2161
|
-
(z =
|
|
2160
|
+
const { node: w, path: P } = L.shift();
|
|
2161
|
+
(z = w.children) != null && z.length ? w.children.forEach((K) => {
|
|
2162
2162
|
L.push({ node: K, path: [...P, K.value] });
|
|
2163
2163
|
}) : p.push(P);
|
|
2164
2164
|
}
|
|
2165
2165
|
return p;
|
|
2166
2166
|
});
|
|
2167
|
-
|
|
2168
|
-
p.length === 0 ? (m.value = !1, v.value = !1) : p.length ===
|
|
2167
|
+
ne(n, (p) => {
|
|
2168
|
+
p.length === 0 ? (m.value = !1, v.value = !1) : p.length === C.value.length ? (m.value = !0, v.value = !1) : v.value = !0;
|
|
2169
2169
|
});
|
|
2170
2170
|
const T = (p) => {
|
|
2171
|
-
v.value = !1, n.value = p ?
|
|
2172
|
-
},
|
|
2171
|
+
v.value = !1, n.value = p ? C.value : [];
|
|
2172
|
+
}, k = () => {
|
|
2173
2173
|
var p;
|
|
2174
2174
|
n.value = [], m.value = !1, v.value = !1, (p = l.value) == null || p.togglePopperVisible(!1);
|
|
2175
2175
|
}, f = () => {
|
|
@@ -2184,12 +2184,12 @@ const xe = (t) => {
|
|
|
2184
2184
|
}, h = () => {
|
|
2185
2185
|
n.value = [], f();
|
|
2186
2186
|
}, V = (p) => {
|
|
2187
|
-
const L =
|
|
2187
|
+
const L = C.value.filter(
|
|
2188
2188
|
(z) => z.includes(p.value)
|
|
2189
2189
|
);
|
|
2190
2190
|
n.value = L, f();
|
|
2191
2191
|
};
|
|
2192
|
-
return
|
|
2192
|
+
return ne(
|
|
2193
2193
|
() => c.queryForm[s.field],
|
|
2194
2194
|
(p) => {
|
|
2195
2195
|
o.value || (Y(p) ? n.value = [] : n.value = Ve(p) ? p : []);
|
|
@@ -2221,8 +2221,8 @@ const xe = (t) => {
|
|
|
2221
2221
|
return (p = l.value) == null ? void 0 : p.presentText;
|
|
2222
2222
|
}
|
|
2223
2223
|
}), (p, L) => {
|
|
2224
|
-
const z = le("el-checkbox"),
|
|
2225
|
-
return N(), re(P,
|
|
2224
|
+
const z = le("el-checkbox"), w = le("el-button"), P = le("el-cascader");
|
|
2225
|
+
return N(), re(P, pe({
|
|
2226
2226
|
ref_key: "cascaderRef",
|
|
2227
2227
|
ref: l,
|
|
2228
2228
|
class: "jc-cascader",
|
|
@@ -2244,39 +2244,39 @@ const xe = (t) => {
|
|
|
2244
2244
|
onRemoveTag: y,
|
|
2245
2245
|
onClear: h
|
|
2246
2246
|
}), zt({
|
|
2247
|
-
default:
|
|
2248
|
-
|
|
2249
|
-
|
|
2247
|
+
default: A(({ data: K }) => [
|
|
2248
|
+
S("div", Wl, [
|
|
2249
|
+
S("span", Jl, G(K.label), 1),
|
|
2250
2250
|
p.isNeedOnlySelect ? (N(), W("span", {
|
|
2251
2251
|
key: 0,
|
|
2252
2252
|
class: "select-tag",
|
|
2253
2253
|
onClick: It((D) => V(K), ["stop"])
|
|
2254
2254
|
}, L[3] || (L[3] = [
|
|
2255
|
-
|
|
2255
|
+
S("span", null, "仅筛选此项", -1)
|
|
2256
2256
|
]), 8, Gl)) : fe("", !0)
|
|
2257
2257
|
])
|
|
2258
2258
|
]),
|
|
2259
|
-
footer:
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
E(
|
|
2259
|
+
footer: A(() => [
|
|
2260
|
+
S("div", Yl, [
|
|
2261
|
+
S("span", null, [
|
|
2262
|
+
E(w, {
|
|
2263
2263
|
size: p.size,
|
|
2264
|
-
onClick:
|
|
2264
|
+
onClick: k,
|
|
2265
2265
|
plain: ""
|
|
2266
2266
|
}, {
|
|
2267
|
-
default:
|
|
2267
|
+
default: A(() => L[4] || (L[4] = [
|
|
2268
2268
|
J("关闭")
|
|
2269
2269
|
])),
|
|
2270
2270
|
_: 1,
|
|
2271
2271
|
__: [4]
|
|
2272
2272
|
}, 8, ["size"]),
|
|
2273
|
-
E(
|
|
2273
|
+
E(w, {
|
|
2274
2274
|
type: "primary",
|
|
2275
2275
|
size: p.size,
|
|
2276
2276
|
onClick: f,
|
|
2277
2277
|
plain: ""
|
|
2278
2278
|
}, {
|
|
2279
|
-
default:
|
|
2279
|
+
default: A(() => [
|
|
2280
2280
|
J(G(p.footerBtnName), 1)
|
|
2281
2281
|
]),
|
|
2282
2282
|
_: 1
|
|
@@ -2288,8 +2288,8 @@ const xe = (t) => {
|
|
|
2288
2288
|
}, [
|
|
2289
2289
|
p.isNeedHeader ? {
|
|
2290
2290
|
name: "header",
|
|
2291
|
-
fn:
|
|
2292
|
-
|
|
2291
|
+
fn: A(() => [
|
|
2292
|
+
S("div", null, [
|
|
2293
2293
|
E(z, {
|
|
2294
2294
|
style: { "margin-left": "10px" },
|
|
2295
2295
|
size: p.size,
|
|
@@ -2298,7 +2298,7 @@ const xe = (t) => {
|
|
|
2298
2298
|
indeterminate: v.value,
|
|
2299
2299
|
onChange: T
|
|
2300
2300
|
}, {
|
|
2301
|
-
default:
|
|
2301
|
+
default: A(() => L[2] || (L[2] = [
|
|
2302
2302
|
J(" 全部 ")
|
|
2303
2303
|
])),
|
|
2304
2304
|
_: 1,
|
|
@@ -2311,7 +2311,7 @@ const xe = (t) => {
|
|
|
2311
2311
|
]), 1040, ["modelValue", "options", "size", "style"]);
|
|
2312
2312
|
};
|
|
2313
2313
|
}
|
|
2314
|
-
}), Zl =
|
|
2314
|
+
}), Zl = me(Xl), en = { style: { "max-width": "100px" } }, tn = /* @__PURE__ */ ve({
|
|
2315
2315
|
name: "JcDatePicker",
|
|
2316
2316
|
__name: "index",
|
|
2317
2317
|
props: {
|
|
@@ -2323,20 +2323,20 @@ const xe = (t) => {
|
|
|
2323
2323
|
},
|
|
2324
2324
|
emits: ["fieldChange"],
|
|
2325
2325
|
setup(t, { expose: e, emit: s }) {
|
|
2326
|
-
const l = t, n = s, i = M([]), r = M([]), o = M(""), u = M(""), c = M(!1), { useQueryStore: d } = xe(l.injectionKey), { state: m, setQuery: v } = d(),
|
|
2326
|
+
const l = t, n = s, i = M([]), r = M([]), o = M(""), u = M(""), c = M(!1), { useQueryStore: d } = xe(l.injectionKey), { state: m, setQuery: v } = d(), C = () => {
|
|
2327
2327
|
l.fieldList.forEach((y) => {
|
|
2328
2328
|
v(y.value, void 0);
|
|
2329
2329
|
});
|
|
2330
2330
|
}, T = (y) => {
|
|
2331
|
-
Y(i.value) || (c.value = !0,
|
|
2331
|
+
Y(i.value) || (c.value = !0, C(), v(y, i.value), te(() => {
|
|
2332
2332
|
c.value = !1;
|
|
2333
2333
|
})), n("fieldChange", y);
|
|
2334
|
-
},
|
|
2334
|
+
}, k = () => {
|
|
2335
2335
|
c.value = !0, u.value = o.value, r.value = i.value, v(o.value, i.value), te(() => {
|
|
2336
2336
|
c.value = !1;
|
|
2337
2337
|
});
|
|
2338
2338
|
};
|
|
2339
|
-
|
|
2339
|
+
ne(
|
|
2340
2340
|
() => l.fieldList,
|
|
2341
2341
|
(y) => {
|
|
2342
2342
|
(!Y(y) && Y(o.value) || o.value && !l.fieldList.map((h) => h.value).includes(o.value)) && (o.value = y[0].value, i.value = []);
|
|
@@ -2345,7 +2345,7 @@ const xe = (t) => {
|
|
|
2345
2345
|
immediate: !0,
|
|
2346
2346
|
deep: !0
|
|
2347
2347
|
}
|
|
2348
|
-
),
|
|
2348
|
+
), ne(
|
|
2349
2349
|
l.fieldList.map((y) => () => m.queryForm[y.value]),
|
|
2350
2350
|
(y) => {
|
|
2351
2351
|
if (!c.value) {
|
|
@@ -2381,7 +2381,7 @@ const xe = (t) => {
|
|
|
2381
2381
|
class: "jc-date-picker",
|
|
2382
2382
|
style: Ue({ width: y.width })
|
|
2383
2383
|
}, [
|
|
2384
|
-
|
|
2384
|
+
S("div", en, [
|
|
2385
2385
|
E(p, {
|
|
2386
2386
|
modelValue: o.value,
|
|
2387
2387
|
"onUpdate:modelValue": h[0] || (h[0] = (z) => o.value = z),
|
|
@@ -2389,11 +2389,11 @@ const xe = (t) => {
|
|
|
2389
2389
|
class: "select-field",
|
|
2390
2390
|
onChange: T
|
|
2391
2391
|
}, {
|
|
2392
|
-
prefix:
|
|
2392
|
+
prefix: A(() => [
|
|
2393
2393
|
J(G((y.fieldList.find((z) => z.value === o.value) || {}).label), 1)
|
|
2394
2394
|
]),
|
|
2395
|
-
default:
|
|
2396
|
-
(N(!0), W(be, null,
|
|
2395
|
+
default: A(() => [
|
|
2396
|
+
(N(!0), W(be, null, _e(y.fieldList, (z) => (N(), re(V, {
|
|
2397
2397
|
key: z.value,
|
|
2398
2398
|
label: z.label,
|
|
2399
2399
|
value: z.value
|
|
@@ -2402,7 +2402,7 @@ const xe = (t) => {
|
|
|
2402
2402
|
_: 1
|
|
2403
2403
|
}, 8, ["modelValue", "size"])
|
|
2404
2404
|
]),
|
|
2405
|
-
E(L,
|
|
2405
|
+
E(L, pe({
|
|
2406
2406
|
ref_key: "datePickerRef",
|
|
2407
2407
|
ref: f,
|
|
2408
2408
|
modelValue: i.value,
|
|
@@ -2414,12 +2414,12 @@ const xe = (t) => {
|
|
|
2414
2414
|
"end-placeholder": "结束时间",
|
|
2415
2415
|
size: y.size,
|
|
2416
2416
|
"value-format": y.type === "daterange" ? "YYYY-MM-DD" : "YYYY-MM",
|
|
2417
|
-
onChange:
|
|
2417
|
+
onChange: k
|
|
2418
2418
|
}), null, 16, ["modelValue", "type", "size", "value-format"])
|
|
2419
2419
|
], 4);
|
|
2420
2420
|
};
|
|
2421
2421
|
}
|
|
2422
|
-
}), sn =
|
|
2422
|
+
}), sn = me(tn), ln = { class: "suffixContent" }, nn = /* @__PURE__ */ ve({
|
|
2423
2423
|
name: "JcInputSwitch",
|
|
2424
2424
|
__name: "index",
|
|
2425
2425
|
props: {
|
|
@@ -2430,16 +2430,16 @@ const xe = (t) => {
|
|
|
2430
2430
|
},
|
|
2431
2431
|
emits: ["fieldChange"],
|
|
2432
2432
|
setup(t, { expose: e, emit: s }) {
|
|
2433
|
-
const l = t, n = s, i = M(""), r = M(""), o = M(""), u = M(""), { useQueryStore: c } = xe(l.injectionKey), { state: d, setQuery: m } = c(), v = M(!1),
|
|
2433
|
+
const l = t, n = s, i = M(""), r = M(""), o = M(""), u = M(""), { useQueryStore: c } = xe(l.injectionKey), { state: d, setQuery: m } = c(), v = M(!1), C = () => {
|
|
2434
2434
|
l.fieldList.forEach((h) => {
|
|
2435
2435
|
m(h.value, void 0);
|
|
2436
2436
|
});
|
|
2437
2437
|
}, T = () => {
|
|
2438
|
-
v.value = !0, i.value = "",
|
|
2438
|
+
v.value = !0, i.value = "", C(), te(() => {
|
|
2439
2439
|
v.value = !1;
|
|
2440
2440
|
});
|
|
2441
|
-
},
|
|
2442
|
-
i.value && (v.value = !0,
|
|
2441
|
+
}, k = (h) => {
|
|
2442
|
+
i.value && (v.value = !0, C(), m(h, i.value), te(() => {
|
|
2443
2443
|
v.value = !1;
|
|
2444
2444
|
})), n("fieldChange", h);
|
|
2445
2445
|
}, f = () => {
|
|
@@ -2447,7 +2447,7 @@ const xe = (t) => {
|
|
|
2447
2447
|
v.value = !1;
|
|
2448
2448
|
});
|
|
2449
2449
|
};
|
|
2450
|
-
|
|
2450
|
+
ne(
|
|
2451
2451
|
() => l.fieldList,
|
|
2452
2452
|
(h) => {
|
|
2453
2453
|
(!Y(h) && Y(o.value) || o.value && !l.fieldList.map((V) => V.value).includes(o.value)) && (o.value = h[0].value, i.value = "");
|
|
@@ -2456,12 +2456,12 @@ const xe = (t) => {
|
|
|
2456
2456
|
immediate: !0,
|
|
2457
2457
|
deep: !0
|
|
2458
2458
|
}
|
|
2459
|
-
),
|
|
2459
|
+
), ne(
|
|
2460
2460
|
() => d.queryForm.resetCount,
|
|
2461
2461
|
() => {
|
|
2462
2462
|
T();
|
|
2463
2463
|
}
|
|
2464
|
-
),
|
|
2464
|
+
), ne(
|
|
2465
2465
|
l.fieldList.map((h) => () => d.queryForm[h.value]),
|
|
2466
2466
|
(h) => {
|
|
2467
2467
|
if (!v.value) {
|
|
@@ -2515,7 +2515,7 @@ const xe = (t) => {
|
|
|
2515
2515
|
var h;
|
|
2516
2516
|
return (h = y.value) == null ? void 0 : h.isComposing;
|
|
2517
2517
|
}
|
|
2518
|
-
}), (h, V) => (N(), re($(Le),
|
|
2518
|
+
}), (h, V) => (N(), re($(Le), pe({
|
|
2519
2519
|
ref_key: "inputRef",
|
|
2520
2520
|
ref: y,
|
|
2521
2521
|
modelValue: i.value,
|
|
@@ -2527,19 +2527,19 @@ const xe = (t) => {
|
|
|
2527
2527
|
size: h.size,
|
|
2528
2528
|
class: "jc-input jc-input-switch"
|
|
2529
2529
|
}), {
|
|
2530
|
-
prepend:
|
|
2530
|
+
prepend: A(() => [
|
|
2531
2531
|
E($(ut), {
|
|
2532
2532
|
modelValue: o.value,
|
|
2533
2533
|
"onUpdate:modelValue": V[0] || (V[0] = (p) => o.value = p),
|
|
2534
2534
|
size: h.size,
|
|
2535
2535
|
class: "select-field",
|
|
2536
|
-
onChange:
|
|
2536
|
+
onChange: k
|
|
2537
2537
|
}, {
|
|
2538
|
-
prefix:
|
|
2538
|
+
prefix: A(() => [
|
|
2539
2539
|
J(G((h.fieldList.find((p) => p.value === o.value) || {}).label), 1)
|
|
2540
2540
|
]),
|
|
2541
|
-
default:
|
|
2542
|
-
(N(!0), W(be, null,
|
|
2541
|
+
default: A(() => [
|
|
2542
|
+
(N(!0), W(be, null, _e(h.fieldList, (p) => (N(), re($(ct), {
|
|
2543
2543
|
key: p.value,
|
|
2544
2544
|
label: p.label,
|
|
2545
2545
|
value: p.value
|
|
@@ -2548,13 +2548,13 @@ const xe = (t) => {
|
|
|
2548
2548
|
_: 1
|
|
2549
2549
|
}, 8, ["modelValue", "size"])
|
|
2550
2550
|
]),
|
|
2551
|
-
suffix:
|
|
2552
|
-
|
|
2551
|
+
suffix: A(() => [
|
|
2552
|
+
S("div", ln, [
|
|
2553
2553
|
Me(E($(Te), {
|
|
2554
2554
|
class: "el-input__icon",
|
|
2555
2555
|
onClick: T
|
|
2556
2556
|
}, {
|
|
2557
|
-
default:
|
|
2557
|
+
default: A(() => [
|
|
2558
2558
|
E($(Mt))
|
|
2559
2559
|
]),
|
|
2560
2560
|
_: 1
|
|
@@ -2565,7 +2565,7 @@ const xe = (t) => {
|
|
|
2565
2565
|
class: "el-input__icon",
|
|
2566
2566
|
onClick: f
|
|
2567
2567
|
}, {
|
|
2568
|
-
default:
|
|
2568
|
+
default: A(() => [
|
|
2569
2569
|
E($(Qe))
|
|
2570
2570
|
]),
|
|
2571
2571
|
_: 1
|
|
@@ -2575,7 +2575,7 @@ const xe = (t) => {
|
|
|
2575
2575
|
_: 1
|
|
2576
2576
|
}, 16, ["modelValue", "style", "size"]));
|
|
2577
2577
|
}
|
|
2578
|
-
}), on =
|
|
2578
|
+
}), on = me(nn), rn = { class: "suffixContent" }, an = { class: "popover-body" }, un = { class: "popover-btn" }, cn = { class: "popover-btn-right" }, dn = /* @__PURE__ */ ve({
|
|
2579
2579
|
name: "JcInputComplex",
|
|
2580
2580
|
__name: "index",
|
|
2581
2581
|
props: {
|
|
@@ -2591,28 +2591,28 @@ const xe = (t) => {
|
|
|
2591
2591
|
var a;
|
|
2592
2592
|
return ((a = l.fieldList.find((x) => x.value === o.value)) == null ? void 0 : a.label) || "";
|
|
2593
2593
|
}
|
|
2594
|
-
), v = M(""),
|
|
2594
|
+
), v = M(""), C = M(!1), { useQueryStore: T } = xe(l.injectionKey), { state: k, setQuery: f, addTag: y, reduceTag: h } = T(), V = {}, p = {};
|
|
2595
2595
|
l.fieldList.forEach((a) => {
|
|
2596
2596
|
V[a.value] = void 0, p[a.value + "List"] = [];
|
|
2597
2597
|
});
|
|
2598
2598
|
const L = (a) => {
|
|
2599
2599
|
c.value = !1, z(), n("fieldChange", a);
|
|
2600
2600
|
}, z = () => {
|
|
2601
|
-
|
|
2601
|
+
k.queryForm[d.value] ? v.value = k.queryForm[d.value].join(`
|
|
2602
2602
|
`) : v.value = "";
|
|
2603
|
-
},
|
|
2604
|
-
|
|
2605
|
-
|
|
2603
|
+
}, w = () => {
|
|
2604
|
+
C.value = !0, i.value = "", f(o.value, void 0), D(), te(() => {
|
|
2605
|
+
C.value = !1;
|
|
2606
2606
|
});
|
|
2607
2607
|
}, P = () => {
|
|
2608
2608
|
for (const a in V)
|
|
2609
2609
|
f(a, void 0);
|
|
2610
2610
|
}, K = () => {
|
|
2611
|
-
|
|
2612
|
-
|
|
2611
|
+
C.value = !0, v.value = "", r.value = i.value, u.value = o.value, P(), f(d.value, void 0), h({ key: d.value }), f(o.value, i.value.trim()), te(() => {
|
|
2612
|
+
C.value = !1;
|
|
2613
2613
|
});
|
|
2614
2614
|
}, D = () => {
|
|
2615
|
-
|
|
2615
|
+
C.value = !0;
|
|
2616
2616
|
const a = v.value.split(`
|
|
2617
2617
|
`).filter((x) => !Y(x));
|
|
2618
2618
|
if (a.length > 0) {
|
|
@@ -2627,7 +2627,7 @@ const xe = (t) => {
|
|
|
2627
2627
|
`
|
|
2628
2628
|
`
|
|
2629
2629
|
)}`;
|
|
2630
|
-
|
|
2630
|
+
ie.warning(ae);
|
|
2631
2631
|
}
|
|
2632
2632
|
v.value = x.join(`
|
|
2633
2633
|
`), P(), f(d.value, x), y({
|
|
@@ -2638,11 +2638,11 @@ const xe = (t) => {
|
|
|
2638
2638
|
} else
|
|
2639
2639
|
f(d.value, void 0), h({ key: d.value });
|
|
2640
2640
|
g(), te(() => {
|
|
2641
|
-
|
|
2641
|
+
C.value = !1;
|
|
2642
2642
|
});
|
|
2643
2643
|
}, g = () => {
|
|
2644
2644
|
c.value = !1;
|
|
2645
|
-
},
|
|
2645
|
+
}, _ = () => {
|
|
2646
2646
|
i.value = "", v.value = "", r.value = "", g();
|
|
2647
2647
|
}, F = (a) => {
|
|
2648
2648
|
Object.keys(a).forEach((x) => {
|
|
@@ -2652,7 +2652,7 @@ const xe = (t) => {
|
|
|
2652
2652
|
}, I = () => {
|
|
2653
2653
|
!Y(i.value) && (i.value !== r.value || o.value !== u.value) ? (r.value = i.value, u.value = o.value, P(), f(d.value, void 0), h({ key: d.value }), f(o.value, i.value.trim())) : Y(i.value) && (r.value = i.value, f(o.value, void 0));
|
|
2654
2654
|
};
|
|
2655
|
-
|
|
2655
|
+
ne(
|
|
2656
2656
|
() => l.fieldList,
|
|
2657
2657
|
(a) => {
|
|
2658
2658
|
(!Y(a) && Y(o.value) || o.value && !l.fieldList.map((x) => x.value).includes(o.value)) && (o.value = a[0].value, i.value = "", v.value = "");
|
|
@@ -2661,37 +2661,37 @@ const xe = (t) => {
|
|
|
2661
2661
|
immediate: !0,
|
|
2662
2662
|
deep: !0
|
|
2663
2663
|
}
|
|
2664
|
-
),
|
|
2665
|
-
() =>
|
|
2664
|
+
), ne(
|
|
2665
|
+
() => k.queryForm.resetCount,
|
|
2666
2666
|
() => {
|
|
2667
|
-
|
|
2667
|
+
_();
|
|
2668
2668
|
}
|
|
2669
|
-
),
|
|
2669
|
+
), ne(
|
|
2670
2670
|
l.fieldList.flatMap((a) => [
|
|
2671
|
-
() =>
|
|
2672
|
-
() =>
|
|
2671
|
+
() => k.queryForm[a.value],
|
|
2672
|
+
() => k.queryForm[a.value + "List"]
|
|
2673
2673
|
]),
|
|
2674
2674
|
(a) => {
|
|
2675
|
-
if (!
|
|
2675
|
+
if (!C.value) {
|
|
2676
2676
|
if (a.findIndex((X) => !Y(X)) === -1) {
|
|
2677
|
-
|
|
2677
|
+
_();
|
|
2678
2678
|
return;
|
|
2679
2679
|
}
|
|
2680
2680
|
let O = !1;
|
|
2681
2681
|
l.fieldList.forEach((X) => {
|
|
2682
2682
|
var ae;
|
|
2683
2683
|
const Z = X.value + "List";
|
|
2684
|
-
if (v.value = ((ae =
|
|
2685
|
-
`)) || "", Ve(
|
|
2684
|
+
if (v.value = ((ae = k.queryForm[Z]) == null ? void 0 : ae.join(`
|
|
2685
|
+
`)) || "", Ve(k.queryForm[Z]) && !Y(k.queryForm[Z])) {
|
|
2686
2686
|
y({
|
|
2687
2687
|
key: Z,
|
|
2688
2688
|
label: X.label,
|
|
2689
|
-
value:
|
|
2689
|
+
value: k.queryForm[Z]
|
|
2690
2690
|
});
|
|
2691
2691
|
return;
|
|
2692
2692
|
} else
|
|
2693
2693
|
h({ key: Z });
|
|
2694
|
-
|
|
2694
|
+
k.queryForm[X.value] ? (O = !0, o.value = X.value, i.value = k.queryForm[X.value] || "") : O || (i.value = "");
|
|
2695
2695
|
});
|
|
2696
2696
|
}
|
|
2697
2697
|
},
|
|
@@ -2743,7 +2743,7 @@ const xe = (t) => {
|
|
|
2743
2743
|
var a;
|
|
2744
2744
|
return (a = R.value) == null ? void 0 : a.isComposing;
|
|
2745
2745
|
}
|
|
2746
|
-
}), (a, x) => (N(), re($(Le),
|
|
2746
|
+
}), (a, x) => (N(), re($(Le), pe({
|
|
2747
2747
|
ref_key: "inputRef",
|
|
2748
2748
|
ref: R,
|
|
2749
2749
|
modelValue: i.value,
|
|
@@ -2755,7 +2755,7 @@ const xe = (t) => {
|
|
|
2755
2755
|
class: "jc-input jc-input-complex search-input",
|
|
2756
2756
|
size: a.size
|
|
2757
2757
|
}), {
|
|
2758
|
-
prepend:
|
|
2758
|
+
prepend: A(() => [
|
|
2759
2759
|
E($(ut), {
|
|
2760
2760
|
ref: "selectRef",
|
|
2761
2761
|
modelValue: o.value,
|
|
@@ -2764,11 +2764,11 @@ const xe = (t) => {
|
|
|
2764
2764
|
class: "select-field",
|
|
2765
2765
|
onChange: L
|
|
2766
2766
|
}, {
|
|
2767
|
-
prefix:
|
|
2767
|
+
prefix: A(() => [
|
|
2768
2768
|
J(G((a.fieldList.find((O) => O.value === o.value) || {}).label), 1)
|
|
2769
2769
|
]),
|
|
2770
|
-
default:
|
|
2771
|
-
(N(!0), W(be, null,
|
|
2770
|
+
default: A(() => [
|
|
2771
|
+
(N(!0), W(be, null, _e(a.fieldList, (O) => (N(), re($(ct), {
|
|
2772
2772
|
key: O.value,
|
|
2773
2773
|
label: O.label,
|
|
2774
2774
|
value: O.value
|
|
@@ -2777,13 +2777,13 @@ const xe = (t) => {
|
|
|
2777
2777
|
_: 1
|
|
2778
2778
|
}, 8, ["modelValue", "size"])
|
|
2779
2779
|
]),
|
|
2780
|
-
suffix:
|
|
2781
|
-
|
|
2780
|
+
suffix: A(() => [
|
|
2781
|
+
S("div", rn, [
|
|
2782
2782
|
Me(E($(Te), {
|
|
2783
2783
|
class: "el-input__icon",
|
|
2784
|
-
onClick:
|
|
2784
|
+
onClick: w
|
|
2785
2785
|
}, {
|
|
2786
|
-
default:
|
|
2786
|
+
default: A(() => [
|
|
2787
2787
|
E($(Mt))
|
|
2788
2788
|
]),
|
|
2789
2789
|
_: 1
|
|
@@ -2794,7 +2794,7 @@ const xe = (t) => {
|
|
|
2794
2794
|
class: "el-input__icon",
|
|
2795
2795
|
onClick: K
|
|
2796
2796
|
}, {
|
|
2797
|
-
default:
|
|
2797
|
+
default: A(() => [
|
|
2798
2798
|
E($(Qe))
|
|
2799
2799
|
]),
|
|
2800
2800
|
_: 1
|
|
@@ -2808,21 +2808,21 @@ const xe = (t) => {
|
|
|
2808
2808
|
"popper-class": "jc-input-pop",
|
|
2809
2809
|
trigger: "click"
|
|
2810
2810
|
}, {
|
|
2811
|
-
reference:
|
|
2811
|
+
reference: A(() => [
|
|
2812
2812
|
E($(Te), {
|
|
2813
2813
|
class: "el-input__icon mult-trigger-icon",
|
|
2814
2814
|
title: "多项搜索",
|
|
2815
2815
|
onClick: z
|
|
2816
2816
|
}, {
|
|
2817
|
-
default:
|
|
2817
|
+
default: A(() => [
|
|
2818
2818
|
E($(Tt))
|
|
2819
2819
|
]),
|
|
2820
2820
|
_: 1
|
|
2821
2821
|
})
|
|
2822
2822
|
]),
|
|
2823
|
-
default:
|
|
2824
|
-
|
|
2825
|
-
E($(Le),
|
|
2823
|
+
default: A(() => [
|
|
2824
|
+
S("div", an, [
|
|
2825
|
+
E($(Le), pe({
|
|
2826
2826
|
modelValue: v.value,
|
|
2827
2827
|
"onUpdate:modelValue": x[1] || (x[1] = (O) => v.value = O),
|
|
2828
2828
|
type: "textarea"
|
|
@@ -2832,25 +2832,25 @@ const xe = (t) => {
|
|
|
2832
2832
|
class: "popover-textarea",
|
|
2833
2833
|
wrap: "off"
|
|
2834
2834
|
}), null, 16, ["modelValue", "size"]),
|
|
2835
|
-
|
|
2835
|
+
S("div", un, [
|
|
2836
2836
|
E($(de), {
|
|
2837
2837
|
size: a.size,
|
|
2838
2838
|
onClick: x[2] || (x[2] = (O) => v.value = ""),
|
|
2839
2839
|
plain: ""
|
|
2840
2840
|
}, {
|
|
2841
|
-
default:
|
|
2841
|
+
default: A(() => x[6] || (x[6] = [
|
|
2842
2842
|
J("清空")
|
|
2843
2843
|
])),
|
|
2844
2844
|
_: 1,
|
|
2845
2845
|
__: [6]
|
|
2846
2846
|
}, 8, ["size"]),
|
|
2847
|
-
|
|
2847
|
+
S("div", cn, [
|
|
2848
2848
|
E($(de), {
|
|
2849
2849
|
size: a.size,
|
|
2850
2850
|
plain: "",
|
|
2851
2851
|
onClick: g
|
|
2852
2852
|
}, {
|
|
2853
|
-
default:
|
|
2853
|
+
default: A(() => x[7] || (x[7] = [
|
|
2854
2854
|
J("关闭")
|
|
2855
2855
|
])),
|
|
2856
2856
|
_: 1,
|
|
@@ -2862,7 +2862,7 @@ const xe = (t) => {
|
|
|
2862
2862
|
size: a.size,
|
|
2863
2863
|
onClick: x[3] || (x[3] = (O) => D())
|
|
2864
2864
|
}, {
|
|
2865
|
-
default:
|
|
2865
|
+
default: A(() => x[8] || (x[8] = [
|
|
2866
2866
|
J("搜索")
|
|
2867
2867
|
])),
|
|
2868
2868
|
_: 1,
|
|
@@ -2879,7 +2879,7 @@ const xe = (t) => {
|
|
|
2879
2879
|
_: 1
|
|
2880
2880
|
}, 16, ["modelValue", "style", "size"]));
|
|
2881
2881
|
}
|
|
2882
|
-
}), fn =
|
|
2882
|
+
}), fn = me(dn), hn = { style: { display: "flex", "flex-wrap": "wrap", flex: "1", "flex-basis": "calc(100% - 50px)", "font-size": "12px", "margin-top": "4px" } }, pn = /* @__PURE__ */ ve({
|
|
2883
2883
|
name: "JcTagQuery",
|
|
2884
2884
|
__name: "index",
|
|
2885
2885
|
props: {
|
|
@@ -2888,20 +2888,20 @@ const xe = (t) => {
|
|
|
2888
2888
|
setup(t) {
|
|
2889
2889
|
const e = t, { useQueryStore: s } = xe(e.injectionKey), { state: l, reduceTag: n, reduceAllTag: i } = s();
|
|
2890
2890
|
return (r, o) => (N(), W("div", hn, [
|
|
2891
|
-
(N(!0), W(be, null,
|
|
2891
|
+
(N(!0), W(be, null, _e($(l).tags, (u, c) => (N(), re($(Vt), pe({ ref_for: !0 }, r.$attrs, {
|
|
2892
2892
|
key: u.label,
|
|
2893
2893
|
closable: "",
|
|
2894
2894
|
style: [{ height: "auto", "max-height": "28px", "white-space": "normal", "text-align": "left", "max-width": "1800px", overflow: "hidden", "word-break": "break-word", "text-overflow": "ellipsis" }, { marginLeft: c > 0 ? "4px" : "0px" }],
|
|
2895
2895
|
onClose: (d) => $(n)(u, c)
|
|
2896
2896
|
}), {
|
|
2897
|
-
default:
|
|
2898
|
-
E($(
|
|
2897
|
+
default: A(() => [
|
|
2898
|
+
E($(Cs), {
|
|
2899
2899
|
content: u.value,
|
|
2900
2900
|
placement: "bottom",
|
|
2901
2901
|
effect: "light"
|
|
2902
2902
|
}, {
|
|
2903
|
-
default:
|
|
2904
|
-
|
|
2903
|
+
default: A(() => [
|
|
2904
|
+
S("span", null, G(u.showStr), 1)
|
|
2905
2905
|
]),
|
|
2906
2906
|
_: 2
|
|
2907
2907
|
}, 1032, ["content"])
|
|
@@ -2915,7 +2915,7 @@ const xe = (t) => {
|
|
|
2915
2915
|
(...u) => $(i) && $(i)(...u))
|
|
2916
2916
|
}, [
|
|
2917
2917
|
E($(Te), null, {
|
|
2918
|
-
default:
|
|
2918
|
+
default: A(() => [
|
|
2919
2919
|
E($(ms))
|
|
2920
2920
|
]),
|
|
2921
2921
|
_: 1
|
|
@@ -2928,7 +2928,7 @@ const xe = (t) => {
|
|
|
2928
2928
|
for (const [l, n] of e)
|
|
2929
2929
|
s[l] = n;
|
|
2930
2930
|
return s;
|
|
2931
|
-
}, vn = /* @__PURE__ */ He(pn, [["__scopeId", "data-v-48ad67de"]]), mn =
|
|
2931
|
+
}, vn = /* @__PURE__ */ He(pn, [["__scopeId", "data-v-48ad67de"]]), mn = me(vn), gn = { class: "popover-btn" }, yn = { class: "popover-btn-right" }, bn = /* @__PURE__ */ ve({
|
|
2932
2932
|
name: "JcMoreQueryContain",
|
|
2933
2933
|
__name: "index",
|
|
2934
2934
|
props: {
|
|
@@ -2949,7 +2949,7 @@ const xe = (t) => {
|
|
|
2949
2949
|
}), s.value = !1, te(() => {
|
|
2950
2950
|
d.value = !1;
|
|
2951
2951
|
});
|
|
2952
|
-
},
|
|
2952
|
+
}, C = (f, y) => {
|
|
2953
2953
|
var h;
|
|
2954
2954
|
typeof l.value[f] > "u" || (typeof l.value[f] == "string" || typeof l.value[f] == "number" ? u({
|
|
2955
2955
|
key: f,
|
|
@@ -2965,37 +2965,37 @@ const xe = (t) => {
|
|
|
2965
2965
|
for (const f in l.value) {
|
|
2966
2966
|
o(f, Y(l.value[f]) ? void 0 : l.value[f]);
|
|
2967
2967
|
const y = n.fieldList.find((h) => h.value === f);
|
|
2968
|
-
y === void 0 &&
|
|
2968
|
+
y === void 0 && ie.warning("传入的fieldList和表单绑定的字段不匹配"), C(f, y.label);
|
|
2969
2969
|
}
|
|
2970
2970
|
s.value = !1, te(() => {
|
|
2971
2971
|
d.value = !1;
|
|
2972
2972
|
});
|
|
2973
2973
|
};
|
|
2974
|
-
|
|
2974
|
+
ne(
|
|
2975
2975
|
() => r.queryForm.resetCount,
|
|
2976
2976
|
() => {
|
|
2977
2977
|
v();
|
|
2978
2978
|
}
|
|
2979
|
-
),
|
|
2979
|
+
), ne(
|
|
2980
2980
|
n.fieldList.map((f) => () => r.queryForm[f.value]),
|
|
2981
2981
|
() => {
|
|
2982
2982
|
d.value || n.fieldList.forEach((f) => {
|
|
2983
|
-
l.value[f.value] = r.queryForm[f.value], Y(r.queryForm[f.value]) ? c({ key: f.value }) :
|
|
2983
|
+
l.value[f.value] = r.queryForm[f.value], Y(r.queryForm[f.value]) ? c({ key: f.value }) : C(f.value, f.label);
|
|
2984
2984
|
});
|
|
2985
2985
|
},
|
|
2986
2986
|
{
|
|
2987
2987
|
deep: !0
|
|
2988
2988
|
}
|
|
2989
2989
|
);
|
|
2990
|
-
const
|
|
2990
|
+
const k = M();
|
|
2991
2991
|
return e({
|
|
2992
2992
|
hide: () => {
|
|
2993
2993
|
var f;
|
|
2994
|
-
return (f =
|
|
2994
|
+
return (f = k.value) == null ? void 0 : f.hide();
|
|
2995
2995
|
}
|
|
2996
|
-
}), (f, y) => (N(), re($(dt),
|
|
2996
|
+
}), (f, y) => (N(), re($(dt), pe({
|
|
2997
2997
|
ref_key: "popoverRef",
|
|
2998
|
-
ref:
|
|
2998
|
+
ref: k
|
|
2999
2999
|
}, f.$attrs, {
|
|
3000
3000
|
visible: s.value,
|
|
3001
3001
|
placement: "bottom",
|
|
@@ -3004,34 +3004,34 @@ const xe = (t) => {
|
|
|
3004
3004
|
"popper-class": "moreQuery-pop",
|
|
3005
3005
|
trigger: "click"
|
|
3006
3006
|
}), {
|
|
3007
|
-
reference:
|
|
3007
|
+
reference: A(() => [
|
|
3008
3008
|
E($(de), {
|
|
3009
3009
|
size: f.size,
|
|
3010
3010
|
icon: $(gs),
|
|
3011
3011
|
onClick: m
|
|
3012
3012
|
}, null, 8, ["size", "icon"])
|
|
3013
3013
|
]),
|
|
3014
|
-
default:
|
|
3015
|
-
|
|
3016
|
-
|
|
3014
|
+
default: A(() => [
|
|
3015
|
+
he(f.$slots, "default", { scopeForm: l.value }),
|
|
3016
|
+
S("div", gn, [
|
|
3017
3017
|
E($(de), {
|
|
3018
3018
|
size: f.size,
|
|
3019
3019
|
onClick: v,
|
|
3020
3020
|
plain: ""
|
|
3021
3021
|
}, {
|
|
3022
|
-
default:
|
|
3022
|
+
default: A(() => y[1] || (y[1] = [
|
|
3023
3023
|
J("清空")
|
|
3024
3024
|
])),
|
|
3025
3025
|
_: 1,
|
|
3026
3026
|
__: [1]
|
|
3027
3027
|
}, 8, ["size"]),
|
|
3028
|
-
|
|
3028
|
+
S("div", yn, [
|
|
3029
3029
|
E($(de), {
|
|
3030
3030
|
size: f.size,
|
|
3031
3031
|
onClick: y[0] || (y[0] = (h) => s.value = !1),
|
|
3032
3032
|
plain: ""
|
|
3033
3033
|
}, {
|
|
3034
|
-
default:
|
|
3034
|
+
default: A(() => y[2] || (y[2] = [
|
|
3035
3035
|
J("关闭")
|
|
3036
3036
|
])),
|
|
3037
3037
|
_: 1,
|
|
@@ -3043,7 +3043,7 @@ const xe = (t) => {
|
|
|
3043
3043
|
size: f.size,
|
|
3044
3044
|
onClick: T
|
|
3045
3045
|
}, {
|
|
3046
|
-
default:
|
|
3046
|
+
default: A(() => y[3] || (y[3] = [
|
|
3047
3047
|
J("搜索")
|
|
3048
3048
|
])),
|
|
3049
3049
|
_: 1,
|
|
@@ -3055,40 +3055,40 @@ const xe = (t) => {
|
|
|
3055
3055
|
_: 3
|
|
3056
3056
|
}, 16, ["visible", "width"]));
|
|
3057
3057
|
}
|
|
3058
|
-
}),
|
|
3058
|
+
}), _n = me(bn), Cn = { class: "jc-list-layout" }, kn = {
|
|
3059
3059
|
key: 1,
|
|
3060
3060
|
class: "bottom-header"
|
|
3061
|
-
}, wn = /* @__PURE__ */
|
|
3061
|
+
}, wn = /* @__PURE__ */ ve({
|
|
3062
3062
|
name: "JcListLayout",
|
|
3063
3063
|
__name: "index",
|
|
3064
3064
|
setup(t) {
|
|
3065
|
-
return (e, s) => (N(), W("div",
|
|
3065
|
+
return (e, s) => (N(), W("div", Cn, [
|
|
3066
3066
|
e.$slots["top-body"] ? (N(), re($(bt), {
|
|
3067
3067
|
key: 0,
|
|
3068
3068
|
class: "top-card",
|
|
3069
3069
|
shadow: "never"
|
|
3070
3070
|
}, {
|
|
3071
|
-
default:
|
|
3072
|
-
|
|
3071
|
+
default: A(() => [
|
|
3072
|
+
he(e.$slots, "top-body")
|
|
3073
3073
|
]),
|
|
3074
3074
|
_: 3
|
|
3075
3075
|
})) : fe("", !0),
|
|
3076
3076
|
e.$slots["bottom-header"] ? (N(), W("div", kn, [
|
|
3077
|
-
|
|
3077
|
+
he(e.$slots, "bottom-header")
|
|
3078
3078
|
])) : fe("", !0),
|
|
3079
3079
|
e.$slots["bottom-body"] ? (N(), re($(bt), {
|
|
3080
3080
|
key: 2,
|
|
3081
3081
|
class: "bottom-card",
|
|
3082
3082
|
shadow: "never"
|
|
3083
3083
|
}, {
|
|
3084
|
-
default:
|
|
3085
|
-
|
|
3084
|
+
default: A(() => [
|
|
3085
|
+
he(e.$slots, "bottom-body")
|
|
3086
3086
|
]),
|
|
3087
3087
|
_: 3
|
|
3088
3088
|
})) : fe("", !0)
|
|
3089
3089
|
]));
|
|
3090
3090
|
}
|
|
3091
|
-
}), Sn =
|
|
3091
|
+
}), Sn = me(wn), An = { class: "jc-import-dialog" }, xn = { id: "import-wrapper" }, $n = { class: "basic-btn" }, En = { class: "import-info" }, Fn = /* @__PURE__ */ ve({
|
|
3092
3092
|
name: "JcImportDialog",
|
|
3093
3093
|
__name: "index",
|
|
3094
3094
|
props: {
|
|
@@ -3110,7 +3110,7 @@ const xe = (t) => {
|
|
|
3110
3110
|
});
|
|
3111
3111
|
}, u = (d) => {
|
|
3112
3112
|
if (!s.uploadFileFn) {
|
|
3113
|
-
|
|
3113
|
+
ie.warning("导入函数未定义");
|
|
3114
3114
|
return;
|
|
3115
3115
|
}
|
|
3116
3116
|
const m = Lt.service({
|
|
@@ -3121,28 +3121,28 @@ const xe = (t) => {
|
|
|
3121
3121
|
});
|
|
3122
3122
|
i.value.clearFiles();
|
|
3123
3123
|
const v = new FormData();
|
|
3124
|
-
v.append("file", d.file), s.uploadFileFn(v).then((
|
|
3125
|
-
m.close(),
|
|
3124
|
+
v.append("file", d.file), s.uploadFileFn(v).then((C) => {
|
|
3125
|
+
m.close(), C.code === 200 ? (ie.success("导入成功"), n.value = !1, l("onSuccess")) : (ie.warning(C.message || "导入失败"), l("onError"));
|
|
3126
3126
|
});
|
|
3127
3127
|
}, c = () => {
|
|
3128
3128
|
if (!s.downloadFileFn) {
|
|
3129
|
-
|
|
3129
|
+
ie.warning("下载函数未定义");
|
|
3130
3130
|
return;
|
|
3131
3131
|
}
|
|
3132
3132
|
r.value = !0, s.downloadFileFn().then((d) => {
|
|
3133
|
-
r.value = !1, d.code === 200 ?
|
|
3133
|
+
r.value = !1, d.code === 200 ? ie.success("下载导入模版成功") : ie.warning(d.message || "下载导入模版失败");
|
|
3134
3134
|
});
|
|
3135
3135
|
};
|
|
3136
3136
|
return (d, m) => {
|
|
3137
|
-
const v = le("el-button"),
|
|
3137
|
+
const v = le("el-button"), C = le("el-upload"), T = le("el-icon"), k = le("el-dialog");
|
|
3138
3138
|
return N(), W("div", An, [
|
|
3139
|
-
E(v,
|
|
3140
|
-
default:
|
|
3139
|
+
E(v, pe(d.$attrs, { onClick: o }), {
|
|
3140
|
+
default: A(() => [
|
|
3141
3141
|
J(G(d.btnName), 1)
|
|
3142
3142
|
]),
|
|
3143
3143
|
_: 1
|
|
3144
3144
|
}, 16),
|
|
3145
|
-
E(
|
|
3145
|
+
E(k, pe({
|
|
3146
3146
|
modelValue: n.value,
|
|
3147
3147
|
"onUpdate:modelValue": m[0] || (m[0] = (f) => n.value = f),
|
|
3148
3148
|
title: d.title,
|
|
@@ -3152,11 +3152,11 @@ const xe = (t) => {
|
|
|
3152
3152
|
top: "10vh",
|
|
3153
3153
|
style: { height: "calc(100vh - 200px)" }
|
|
3154
3154
|
}), {
|
|
3155
|
-
default:
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
E(
|
|
3155
|
+
default: A(() => [
|
|
3156
|
+
S("div", xn, [
|
|
3157
|
+
S("div", $n, [
|
|
3158
|
+
S("div", null, [
|
|
3159
|
+
E(C, {
|
|
3160
3160
|
ref_key: "importUploadRef",
|
|
3161
3161
|
ref: i,
|
|
3162
3162
|
"http-request": u,
|
|
@@ -3166,9 +3166,9 @@ const xe = (t) => {
|
|
|
3166
3166
|
limit: 1,
|
|
3167
3167
|
style: { margin: "0 10px 0px 0px" }
|
|
3168
3168
|
}, {
|
|
3169
|
-
default:
|
|
3169
|
+
default: A(() => [
|
|
3170
3170
|
E(v, { type: "primary" }, {
|
|
3171
|
-
default:
|
|
3171
|
+
default: A(() => [
|
|
3172
3172
|
J(G(d.title), 1)
|
|
3173
3173
|
]),
|
|
3174
3174
|
_: 1
|
|
@@ -3183,29 +3183,29 @@ const xe = (t) => {
|
|
|
3183
3183
|
loading: r.value,
|
|
3184
3184
|
onClick: c
|
|
3185
3185
|
}, {
|
|
3186
|
-
default:
|
|
3186
|
+
default: A(() => m[1] || (m[1] = [
|
|
3187
3187
|
J("下载导入模板")
|
|
3188
3188
|
])),
|
|
3189
3189
|
_: 1,
|
|
3190
3190
|
__: [1]
|
|
3191
3191
|
}, 8, ["loading"])
|
|
3192
3192
|
]),
|
|
3193
|
-
|
|
3194
|
-
|
|
3193
|
+
S("div", En, [
|
|
3194
|
+
S("div", null, [
|
|
3195
3195
|
E(T, {
|
|
3196
3196
|
color: "var(--el-color-primary)",
|
|
3197
3197
|
size: 18,
|
|
3198
3198
|
class: "icon"
|
|
3199
3199
|
}, {
|
|
3200
|
-
default:
|
|
3200
|
+
default: A(() => [
|
|
3201
3201
|
E($(ys))
|
|
3202
3202
|
]),
|
|
3203
3203
|
_: 1
|
|
3204
3204
|
})
|
|
3205
3205
|
]),
|
|
3206
|
-
|
|
3207
|
-
(N(!0), W(be, null,
|
|
3208
|
-
|
|
3206
|
+
S("ol", null, [
|
|
3207
|
+
(N(!0), W(be, null, _e(d.importInfoArr, (f, y) => (N(), W("li", { key: y }, [
|
|
3208
|
+
S("span", null, G(f), 1)
|
|
3209
3209
|
]))), 128))
|
|
3210
3210
|
])
|
|
3211
3211
|
])
|
|
@@ -3216,7 +3216,7 @@ const xe = (t) => {
|
|
|
3216
3216
|
]);
|
|
3217
3217
|
};
|
|
3218
3218
|
}
|
|
3219
|
-
}), zn = /* @__PURE__ */ He(Fn, [["__scopeId", "data-v-176c145c"]]), In =
|
|
3219
|
+
}), zn = /* @__PURE__ */ He(Fn, [["__scopeId", "data-v-176c145c"]]), In = me(zn), Mn = { class: "jc-import-button" }, Tn = /* @__PURE__ */ ve({
|
|
3220
3220
|
name: "JcImportButton",
|
|
3221
3221
|
__name: "index",
|
|
3222
3222
|
props: {
|
|
@@ -3227,7 +3227,7 @@ const xe = (t) => {
|
|
|
3227
3227
|
setup(t, { emit: e }) {
|
|
3228
3228
|
const s = t, l = e, n = M(), i = (r) => {
|
|
3229
3229
|
if (!s.uploadFileFn) {
|
|
3230
|
-
|
|
3230
|
+
ie.warning("导入函数未定义");
|
|
3231
3231
|
return;
|
|
3232
3232
|
}
|
|
3233
3233
|
const o = Lt.service({
|
|
@@ -3239,13 +3239,13 @@ const xe = (t) => {
|
|
|
3239
3239
|
n.value.clearFiles();
|
|
3240
3240
|
const u = new FormData();
|
|
3241
3241
|
u.append("file", r.file), s.uploadFileFn(u).then((c) => {
|
|
3242
|
-
o.close(), c.code === 200 ? (
|
|
3242
|
+
o.close(), c.code === 200 ? (ie.success("导入成功"), l("onSuccess")) : (ie.warning(c.message || "导入失败"), l("onError"));
|
|
3243
3243
|
});
|
|
3244
3244
|
};
|
|
3245
3245
|
return (r, o) => {
|
|
3246
3246
|
const u = le("el-button"), c = le("el-upload");
|
|
3247
3247
|
return N(), W("div", Mn, [
|
|
3248
|
-
E(c,
|
|
3248
|
+
E(c, pe({
|
|
3249
3249
|
ref_key: "importUploadRef",
|
|
3250
3250
|
ref: n,
|
|
3251
3251
|
"http-request": i,
|
|
@@ -3254,9 +3254,9 @@ const xe = (t) => {
|
|
|
3254
3254
|
accept: ".xlsx,.xls,.txt",
|
|
3255
3255
|
limit: 1
|
|
3256
3256
|
}, r.$attrs), {
|
|
3257
|
-
default:
|
|
3257
|
+
default: A(() => [
|
|
3258
3258
|
E(u, rs(as(r.$attrs)), {
|
|
3259
|
-
default:
|
|
3259
|
+
default: A(() => [
|
|
3260
3260
|
J(G(r.btnName), 1)
|
|
3261
3261
|
]),
|
|
3262
3262
|
_: 1
|
|
@@ -3267,7 +3267,7 @@ const xe = (t) => {
|
|
|
3267
3267
|
]);
|
|
3268
3268
|
};
|
|
3269
3269
|
}
|
|
3270
|
-
}), Vn =
|
|
3270
|
+
}), Vn = me(Tn), Ln = "VXE_TABLE_CUSTOM_COLUMN_", rt = 1, Bn = ["checkbox", "seq", "radio", "expand"], pt = (t, e) => `${e}${t}`, Ke = (t, e) => {
|
|
3271
3271
|
try {
|
|
3272
3272
|
const s = pt(t, e), l = localStorage.getItem(s);
|
|
3273
3273
|
if (!l) return null;
|
|
@@ -3326,24 +3326,24 @@ function Rn(t) {
|
|
|
3326
3326
|
defaultVisibleFields: r
|
|
3327
3327
|
} = t, o = M([]), u = M([]), c = M([]), d = M([]), m = se(() => c.value.map((b) => o.value.find((B) => B.field === b)).filter((b) => b !== void 0)), v = se(
|
|
3328
3328
|
() => o.value.filter((b) => b.visible).sort((b, B) => b.sortNumber - B.sortNumber)
|
|
3329
|
-
),
|
|
3329
|
+
), C = se(() => v.value.length), T = se(
|
|
3330
3330
|
() => v.value.filter((b) => b.fixed === "left").length
|
|
3331
|
-
),
|
|
3331
|
+
), k = se(
|
|
3332
3332
|
() => v.value.filter((b) => b.fixed === "right").length
|
|
3333
3333
|
), f = se(
|
|
3334
|
-
() => T.value +
|
|
3334
|
+
() => T.value + k.value
|
|
3335
3335
|
), y = se(() => o.value.length > 0 && o.value.every((b) => b.visible)), h = se(() => {
|
|
3336
3336
|
const b = o.value.filter((B) => B.visible).length;
|
|
3337
3337
|
return b > 0 && b < o.value.length;
|
|
3338
3338
|
}), V = (b) => b.fixed === "left" ? !0 : f.value < l.value, p = (b) => b.fixed === "right" ? !0 : f.value < l.value, L = (b) => !!(b.type && Bn.includes(
|
|
3339
3339
|
b.type
|
|
3340
3340
|
)), z = () => {
|
|
3341
|
-
const b = i.value || [], B = o.value.map((ee) => ee.field), U = /* @__PURE__ */ new Set(), q = b.map((ee,
|
|
3341
|
+
const b = i.value || [], B = o.value.map((ee) => ee.field), U = /* @__PURE__ */ new Set(), q = b.map((ee, Ce) => {
|
|
3342
3342
|
const ze = ee.fields.filter(
|
|
3343
3343
|
($e) => B.includes($e)
|
|
3344
3344
|
);
|
|
3345
3345
|
return ze.forEach(($e) => U.add($e)), {
|
|
3346
|
-
id: `group_${
|
|
3346
|
+
id: `group_${Ce}`,
|
|
3347
3347
|
title: ee.title,
|
|
3348
3348
|
fields: ze
|
|
3349
3349
|
};
|
|
@@ -3360,7 +3360,7 @@ function Rn(t) {
|
|
|
3360
3360
|
q.unshift(ee);
|
|
3361
3361
|
}
|
|
3362
3362
|
u.value = q;
|
|
3363
|
-
},
|
|
3363
|
+
}, w = () => {
|
|
3364
3364
|
const b = e.value;
|
|
3365
3365
|
if (!b || d.value.length > 0) return;
|
|
3366
3366
|
const B = b.getTableColumn(), U = B.fullColumn || B.tableColumn || b.getColumns();
|
|
@@ -3374,18 +3374,18 @@ function Rn(t) {
|
|
|
3374
3374
|
}, P = () => {
|
|
3375
3375
|
const b = e.value;
|
|
3376
3376
|
if (!b || !b.id) return;
|
|
3377
|
-
const B = b.id, U = b.getTableColumn(), q = U.fullColumn || U.tableColumn || b.getColumns(), Q = Ke(B, n.value), ee = new Map((Q == null ? void 0 : Q.columns.map((H) => [H.field, H])) || []),
|
|
3377
|
+
const B = b.id, U = b.getTableColumn(), q = U.fullColumn || U.tableColumn || b.getColumns(), Q = Ke(B, n.value), ee = new Map((Q == null ? void 0 : Q.columns.map((H) => [H.field, H])) || []), Ce = q.filter(
|
|
3378
3378
|
(H) => !L(H) && H.field
|
|
3379
|
-
), ze = r.value.length > 0, $e =
|
|
3379
|
+
), ze = r.value.length > 0, $e = Ce.map(
|
|
3380
3380
|
(H, oe) => {
|
|
3381
|
-
const Ee = H.field,
|
|
3381
|
+
const Ee = H.field, ge = ee.get(Ee), Yt = s.value.includes(Ee), Xt = ge ? ge.visible : ze ? r.value.includes(Ee) : H.visible !== !1;
|
|
3382
3382
|
return {
|
|
3383
3383
|
field: Ee,
|
|
3384
3384
|
title: H.title || Ee || "未命名",
|
|
3385
3385
|
visible: Xt,
|
|
3386
|
-
fixed: (
|
|
3387
|
-
width: (
|
|
3388
|
-
sortNumber: (
|
|
3386
|
+
fixed: (ge == null ? void 0 : ge.fixed) || H.fixed || void 0,
|
|
3387
|
+
width: (ge == null ? void 0 : ge.width) || H.renderWidth || void 0,
|
|
3388
|
+
sortNumber: (ge == null ? void 0 : ge.sortNumber) ?? oe,
|
|
3389
3389
|
visibleLocked: Yt,
|
|
3390
3390
|
originalIndex: oe
|
|
3391
3391
|
};
|
|
@@ -3427,8 +3427,8 @@ function Rn(t) {
|
|
|
3427
3427
|
(H) => L(H)
|
|
3428
3428
|
), ee = q.filter(
|
|
3429
3429
|
(H) => !L(H)
|
|
3430
|
-
),
|
|
3431
|
-
const oe =
|
|
3430
|
+
), Ce = new Map(b.map((H) => [H.field, H])), ze = ee.map((H) => {
|
|
3431
|
+
const oe = Ce.get(H.field);
|
|
3432
3432
|
return oe && (H.visible = oe.visible, H.fixed = oe.fixed || "", oe.width && (H.width = oe.width)), {
|
|
3433
3433
|
column: H,
|
|
3434
3434
|
sortNumber: (oe == null ? void 0 : oe.sortNumber) ?? 9999
|
|
@@ -3443,9 +3443,9 @@ function Rn(t) {
|
|
|
3443
3443
|
originalOrder: c,
|
|
3444
3444
|
filteredColumns: m,
|
|
3445
3445
|
selectedColumns: v,
|
|
3446
|
-
selectedCount:
|
|
3446
|
+
selectedCount: C,
|
|
3447
3447
|
leftFixedCount: T,
|
|
3448
|
-
rightFixedCount:
|
|
3448
|
+
rightFixedCount: k,
|
|
3449
3449
|
totalFixedCount: f,
|
|
3450
3450
|
selectAll: y,
|
|
3451
3451
|
isIndeterminate: h,
|
|
@@ -3458,7 +3458,7 @@ function Rn(t) {
|
|
|
3458
3458
|
loadStoredConfig: async () => {
|
|
3459
3459
|
const b = e.value;
|
|
3460
3460
|
if (!b || !b.id) return;
|
|
3461
|
-
|
|
3461
|
+
w();
|
|
3462
3462
|
const B = Ke(b.id, n.value);
|
|
3463
3463
|
if (B && B.columns.length)
|
|
3464
3464
|
await g(B.columns);
|
|
@@ -3489,7 +3489,7 @@ function Rn(t) {
|
|
|
3489
3489
|
if (!B || !B.id) return;
|
|
3490
3490
|
const { column: U } = b, q = U.field, Q = U.renderWidth;
|
|
3491
3491
|
if (!q || !Q) return;
|
|
3492
|
-
const ee = o.value.find((
|
|
3492
|
+
const ee = o.value.find((Ce) => Ce.field === q);
|
|
3493
3493
|
ee && (ee.width = Q), On(
|
|
3494
3494
|
B.id,
|
|
3495
3495
|
n.value,
|
|
@@ -3524,7 +3524,7 @@ function Rn(t) {
|
|
|
3524
3524
|
moveToTop: (b, B) => {
|
|
3525
3525
|
var Q;
|
|
3526
3526
|
if (B === 0) return;
|
|
3527
|
-
const q = ((Q = o.value.filter((ee) => ee.visible).sort((ee,
|
|
3527
|
+
const q = ((Q = o.value.filter((ee) => ee.visible).sort((ee, Ce) => ee.sortNumber - Ce.sortNumber)[0]) == null ? void 0 : Q.sortNumber) ?? 0;
|
|
3528
3528
|
b.sortNumber = q - 1;
|
|
3529
3529
|
},
|
|
3530
3530
|
removeFromSelected: (b) => b.visibleLocked ? !1 : (b.visible = !1, b.fixed && (b.fixed = void 0), !0),
|
|
@@ -3554,7 +3554,7 @@ function Rn(t) {
|
|
|
3554
3554
|
const Nn = { class: "toolbar-column-config" }, Pn = { class: "column-config-body" }, Kn = { class: "column-list-left" }, Un = { class: "left-header" }, Qn = { class: "column-grid-wrapper" }, qn = { class: "group-header" }, Hn = { class: "group-title" }, Wn = { class: "group-count" }, Jn = { class: "column-grid" }, Gn = ["title"], Yn = {
|
|
3555
3555
|
key: 0,
|
|
3556
3556
|
class: "vxe-icon-lock lock-icon"
|
|
3557
|
-
}, Xn = { class: "column-list-right" }, Zn = { class: "right-header" }, ei = { class: "selected-list-wrapper" }, ti = { class: "selected-item" }, si = { class: "index" }, li = ["title"], ni = { class: "item-actions" }, ii = ["onClick"], oi = ["onClick"], ri = ["onClick"], ai = ["onClick"], ui = { class: "drawer-footer" }, ci = { class: "footer-right" }, di = /* @__PURE__ */
|
|
3557
|
+
}, Xn = { class: "column-list-right" }, Zn = { class: "right-header" }, ei = { class: "selected-list-wrapper" }, ti = { class: "selected-item" }, si = { class: "index" }, li = ["title"], ni = { class: "item-actions" }, ii = ["onClick"], oi = ["onClick"], ri = ["onClick"], ai = ["onClick"], ui = { class: "drawer-footer" }, ci = { class: "footer-right" }, di = /* @__PURE__ */ ve({
|
|
3558
3558
|
name: "JcColumnConfig",
|
|
3559
3559
|
__name: "index",
|
|
3560
3560
|
props: {
|
|
@@ -3579,16 +3579,16 @@ const Nn = { class: "toolbar-column-config" }, Pn = { class: "column-config-body
|
|
|
3579
3579
|
}), r = M(!1), o = M(""), u = se(() => {
|
|
3580
3580
|
const z = i.filteredColumns.value;
|
|
3581
3581
|
if (!o.value) return z;
|
|
3582
|
-
const
|
|
3583
|
-
return z.filter((P) => (P.title || P.field || "").toLowerCase().includes(
|
|
3582
|
+
const w = o.value.toLowerCase();
|
|
3583
|
+
return z.filter((P) => (P.title || P.field || "").toLowerCase().includes(w));
|
|
3584
3584
|
}), c = se(() => i.columnGroups.value.map((z) => ({
|
|
3585
3585
|
...z,
|
|
3586
|
-
columns: u.value.filter((
|
|
3586
|
+
columns: u.value.filter((w) => w.groupId === z.id),
|
|
3587
3587
|
checkState: i.getGroupCheckState(z.id)
|
|
3588
|
-
})).filter((z) => z.columns.length > 0)), d = (z,
|
|
3589
|
-
i.onGroupSelectChange(z,
|
|
3588
|
+
})).filter((z) => z.columns.length > 0)), d = (z, w) => {
|
|
3589
|
+
i.onGroupSelectChange(z, w);
|
|
3590
3590
|
};
|
|
3591
|
-
|
|
3591
|
+
ne(
|
|
3592
3592
|
() => l.table,
|
|
3593
3593
|
async (z) => {
|
|
3594
3594
|
z && z.id && (await te(), await V());
|
|
@@ -3597,25 +3597,25 @@ const Nn = { class: "toolbar-column-config" }, Pn = { class: "column-config-body
|
|
|
3597
3597
|
);
|
|
3598
3598
|
const m = () => {
|
|
3599
3599
|
if (!l.table) {
|
|
3600
|
-
|
|
3600
|
+
ie.warning("表格实例未就绪");
|
|
3601
3601
|
return;
|
|
3602
3602
|
}
|
|
3603
3603
|
i.initColumns(), r.value = !0;
|
|
3604
3604
|
}, v = () => {
|
|
3605
3605
|
r.value = !1;
|
|
3606
|
-
},
|
|
3606
|
+
}, C = () => {
|
|
3607
3607
|
r.value = !1;
|
|
3608
3608
|
}, T = (z) => {
|
|
3609
3609
|
i.onSelectAllChange(z);
|
|
3610
|
-
},
|
|
3611
|
-
i.toggleFixed(z,
|
|
3610
|
+
}, k = (z, w) => {
|
|
3611
|
+
i.toggleFixed(z, w) || ie.warning(`最多只能固定 ${l.maxFixedCount} 列`);
|
|
3612
3612
|
}, f = (z) => {
|
|
3613
|
-
i.removeFromSelected(z) ||
|
|
3613
|
+
i.removeFromSelected(z) || ie.warning("该列不能取消选中");
|
|
3614
3614
|
}, y = async () => {
|
|
3615
3615
|
try {
|
|
3616
|
-
await i.saveAndApply(), n("saved", i.allColumns.value),
|
|
3616
|
+
await i.saveAndApply(), n("saved", i.allColumns.value), ie.success("列配置已保存并应用"), r.value = !1;
|
|
3617
3617
|
} catch (z) {
|
|
3618
|
-
console.error("保存列配置失败:", z),
|
|
3618
|
+
console.error("保存列配置失败:", z), ie.error("保存列配置失败");
|
|
3619
3619
|
}
|
|
3620
3620
|
}, h = async () => {
|
|
3621
3621
|
try {
|
|
@@ -3627,7 +3627,7 @@ const Nn = { class: "toolbar-column-config" }, Pn = { class: "column-config-body
|
|
|
3627
3627
|
cancelButtonText: "取消",
|
|
3628
3628
|
type: "warning"
|
|
3629
3629
|
}
|
|
3630
|
-
), await i.resetToDefault(), n("reset"),
|
|
3630
|
+
), await i.resetToDefault(), n("reset"), ie.success("已恢复默认配置");
|
|
3631
3631
|
} catch {
|
|
3632
3632
|
}
|
|
3633
3633
|
}, V = async () => {
|
|
@@ -3641,21 +3641,21 @@ const Nn = { class: "toolbar-column-config" }, Pn = { class: "column-config-body
|
|
|
3641
3641
|
saveAndApply: y,
|
|
3642
3642
|
onResizableChange: (z) => {
|
|
3643
3643
|
i.onResizableChange(z);
|
|
3644
|
-
const
|
|
3645
|
-
|
|
3644
|
+
const w = z.column.field, P = z.column.renderWidth;
|
|
3645
|
+
w && P && n("width-change", { field: w, width: P });
|
|
3646
3646
|
},
|
|
3647
3647
|
hasStoredConfig: () => i.checkHasStoredConfig()
|
|
3648
|
-
}), (z,
|
|
3649
|
-
const P = le("el-icon"), K = le("el-button"), D = le("el-input"), g = le("el-checkbox"),
|
|
3648
|
+
}), (z, w) => {
|
|
3649
|
+
const P = le("el-icon"), K = le("el-button"), D = le("el-input"), g = le("el-checkbox"), _ = le("el-tooltip"), F = le("el-drawer");
|
|
3650
3650
|
return N(), W("div", Nn, [
|
|
3651
3651
|
E(K, {
|
|
3652
3652
|
link: "",
|
|
3653
3653
|
class: "config-trigger-btn",
|
|
3654
3654
|
onClick: m
|
|
3655
3655
|
}, {
|
|
3656
|
-
default:
|
|
3656
|
+
default: A(() => [
|
|
3657
3657
|
E(P, { size: 16 }, {
|
|
3658
|
-
default:
|
|
3658
|
+
default: A(() => [
|
|
3659
3659
|
E($(bs))
|
|
3660
3660
|
]),
|
|
3661
3661
|
_: 1
|
|
@@ -3665,30 +3665,30 @@ const Nn = { class: "toolbar-column-config" }, Pn = { class: "column-config-body
|
|
|
3665
3665
|
}),
|
|
3666
3666
|
E(F, {
|
|
3667
3667
|
modelValue: r.value,
|
|
3668
|
-
"onUpdate:modelValue":
|
|
3668
|
+
"onUpdate:modelValue": w[1] || (w[1] = (I) => r.value = I),
|
|
3669
3669
|
title: "列配置",
|
|
3670
3670
|
direction: "rtl",
|
|
3671
3671
|
size: z.drawerWidth,
|
|
3672
3672
|
"close-on-click-modal": !1,
|
|
3673
3673
|
class: "column-config-drawer"
|
|
3674
3674
|
}, {
|
|
3675
|
-
header:
|
|
3676
|
-
|
|
3677
|
-
|
|
3675
|
+
header: A(() => w[2] || (w[2] = [
|
|
3676
|
+
S("div", { class: "drawer-header" }, [
|
|
3677
|
+
S("span", { class: "drawer-title" }, "列配置")
|
|
3678
3678
|
], -1)
|
|
3679
3679
|
])),
|
|
3680
|
-
footer:
|
|
3681
|
-
|
|
3680
|
+
footer: A(() => [
|
|
3681
|
+
S("div", ui, [
|
|
3682
3682
|
E(K, { onClick: h }, {
|
|
3683
|
-
default:
|
|
3683
|
+
default: A(() => w[9] || (w[9] = [
|
|
3684
3684
|
J("恢复默认")
|
|
3685
3685
|
])),
|
|
3686
3686
|
_: 1,
|
|
3687
3687
|
__: [9]
|
|
3688
3688
|
}),
|
|
3689
|
-
|
|
3690
|
-
E(K, { onClick:
|
|
3691
|
-
default:
|
|
3689
|
+
S("div", ci, [
|
|
3690
|
+
E(K, { onClick: C }, {
|
|
3691
|
+
default: A(() => w[10] || (w[10] = [
|
|
3692
3692
|
J("取消")
|
|
3693
3693
|
])),
|
|
3694
3694
|
_: 1,
|
|
@@ -3698,7 +3698,7 @@ const Nn = { class: "toolbar-column-config" }, Pn = { class: "column-config-body
|
|
|
3698
3698
|
type: "primary",
|
|
3699
3699
|
onClick: y
|
|
3700
3700
|
}, {
|
|
3701
|
-
default:
|
|
3701
|
+
default: A(() => w[11] || (w[11] = [
|
|
3702
3702
|
J("保存并应用")
|
|
3703
3703
|
])),
|
|
3704
3704
|
_: 1,
|
|
@@ -3707,13 +3707,13 @@ const Nn = { class: "toolbar-column-config" }, Pn = { class: "column-config-body
|
|
|
3707
3707
|
])
|
|
3708
3708
|
])
|
|
3709
3709
|
]),
|
|
3710
|
-
default:
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
3710
|
+
default: A(() => [
|
|
3711
|
+
S("div", Pn, [
|
|
3712
|
+
S("div", Kn, [
|
|
3713
|
+
S("div", Un, [
|
|
3714
3714
|
E(D, {
|
|
3715
3715
|
modelValue: o.value,
|
|
3716
|
-
"onUpdate:modelValue":
|
|
3716
|
+
"onUpdate:modelValue": w[0] || (w[0] = (I) => o.value = I),
|
|
3717
3717
|
placeholder: "搜索",
|
|
3718
3718
|
clearable: "",
|
|
3719
3719
|
"prefix-icon": $(Qe),
|
|
@@ -3725,34 +3725,34 @@ const Nn = { class: "toolbar-column-config" }, Pn = { class: "column-config-body
|
|
|
3725
3725
|
class: "select-all-checkbox",
|
|
3726
3726
|
onChange: T
|
|
3727
3727
|
}, {
|
|
3728
|
-
default:
|
|
3728
|
+
default: A(() => w[3] || (w[3] = [
|
|
3729
3729
|
J(" 全选 ")
|
|
3730
3730
|
])),
|
|
3731
3731
|
_: 1,
|
|
3732
3732
|
__: [3]
|
|
3733
3733
|
}, 8, ["model-value", "indeterminate"])
|
|
3734
3734
|
]),
|
|
3735
|
-
|
|
3736
|
-
(N(!0), W(be, null,
|
|
3735
|
+
S("div", Qn, [
|
|
3736
|
+
(N(!0), W(be, null, _e(c.value, (I) => (N(), W("div", {
|
|
3737
3737
|
key: I.id,
|
|
3738
3738
|
class: "column-group"
|
|
3739
3739
|
}, [
|
|
3740
|
-
|
|
3740
|
+
S("div", qn, [
|
|
3741
3741
|
E(g, {
|
|
3742
3742
|
"model-value": I.checkState.checked,
|
|
3743
3743
|
indeterminate: I.checkState.indeterminate,
|
|
3744
3744
|
onChange: (R) => d(I.id, R),
|
|
3745
3745
|
size: "small"
|
|
3746
3746
|
}, {
|
|
3747
|
-
default:
|
|
3748
|
-
|
|
3749
|
-
|
|
3747
|
+
default: A(() => [
|
|
3748
|
+
S("span", Hn, G(I.title), 1),
|
|
3749
|
+
S("span", Wn, "(" + G(I.columns.length) + ")", 1)
|
|
3750
3750
|
]),
|
|
3751
3751
|
_: 2
|
|
3752
3752
|
}, 1032, ["model-value", "indeterminate", "onChange"])
|
|
3753
3753
|
]),
|
|
3754
|
-
|
|
3755
|
-
(N(!0), W(be, null,
|
|
3754
|
+
S("div", Jn, [
|
|
3755
|
+
(N(!0), W(be, null, _e(I.columns, (R) => (N(), W("div", {
|
|
3756
3756
|
key: R.field,
|
|
3757
3757
|
class: "column-checkbox-item",
|
|
3758
3758
|
style: Ue({ width: z.itemWidth + "px" })
|
|
@@ -3764,8 +3764,8 @@ const Nn = { class: "toolbar-column-config" }, Pn = { class: "column-config-body
|
|
|
3764
3764
|
onChange: (a) => $(i).onColumnVisibleChange(R),
|
|
3765
3765
|
size: "small"
|
|
3766
3766
|
}, {
|
|
3767
|
-
default:
|
|
3768
|
-
|
|
3767
|
+
default: A(() => [
|
|
3768
|
+
S("span", {
|
|
3769
3769
|
class: "column-title",
|
|
3770
3770
|
title: R.title
|
|
3771
3771
|
}, [
|
|
@@ -3780,12 +3780,12 @@ const Nn = { class: "toolbar-column-config" }, Pn = { class: "column-config-body
|
|
|
3780
3780
|
]))), 128))
|
|
3781
3781
|
])
|
|
3782
3782
|
]),
|
|
3783
|
-
|
|
3784
|
-
|
|
3785
|
-
|
|
3786
|
-
|
|
3783
|
+
S("div", Xn, [
|
|
3784
|
+
S("div", Zn, [
|
|
3785
|
+
S("span", null, "已选(" + G($(i).selectedCount.value) + ")", 1),
|
|
3786
|
+
w[4] || (w[4] = S("span", { class: "drag-hint" }, "编号可拖拽排序", -1))
|
|
3787
3787
|
]),
|
|
3788
|
-
|
|
3788
|
+
S("div", ei, [
|
|
3789
3789
|
E($(ws), {
|
|
3790
3790
|
"item-key": "field",
|
|
3791
3791
|
animation: 200,
|
|
@@ -3794,78 +3794,78 @@ const Nn = { class: "toolbar-column-config" }, Pn = { class: "column-config-body
|
|
|
3794
3794
|
"onUpdate:modelValue": $(i).updateSelectedOrder,
|
|
3795
3795
|
onEnd: $(i).onDragEnd
|
|
3796
3796
|
}, {
|
|
3797
|
-
item:
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
|
|
3797
|
+
item: A(({ element: I, index: R }) => [
|
|
3798
|
+
S("div", ti, [
|
|
3799
|
+
S("span", si, G(R + 1), 1),
|
|
3800
|
+
S("span", {
|
|
3801
3801
|
class: "title",
|
|
3802
3802
|
title: I.title
|
|
3803
3803
|
}, G(I.title || I.field), 9, li),
|
|
3804
|
-
|
|
3805
|
-
E(
|
|
3804
|
+
S("div", ni, [
|
|
3805
|
+
E(_, {
|
|
3806
3806
|
content: "取消选中",
|
|
3807
3807
|
placement: "top",
|
|
3808
3808
|
"show-after": 500,
|
|
3809
3809
|
disabled: I.visibleLocked
|
|
3810
3810
|
}, {
|
|
3811
|
-
default:
|
|
3812
|
-
|
|
3811
|
+
default: A(() => [
|
|
3812
|
+
S("span", {
|
|
3813
3813
|
class: we(["action-btn remove-btn", { "is-hidden": I.visibleLocked }]),
|
|
3814
3814
|
onClick: (a) => !I.visibleLocked && f(I)
|
|
3815
|
-
},
|
|
3816
|
-
|
|
3815
|
+
}, w[5] || (w[5] = [
|
|
3816
|
+
S("i", { class: "vxe-icon-close" }, null, -1)
|
|
3817
3817
|
]), 10, ii)
|
|
3818
3818
|
]),
|
|
3819
3819
|
_: 2
|
|
3820
3820
|
}, 1032, ["disabled"]),
|
|
3821
|
-
E(
|
|
3821
|
+
E(_, {
|
|
3822
3822
|
content: "置顶",
|
|
3823
3823
|
placement: "top",
|
|
3824
3824
|
"show-after": 500,
|
|
3825
3825
|
disabled: R === 0
|
|
3826
3826
|
}, {
|
|
3827
|
-
default:
|
|
3828
|
-
|
|
3827
|
+
default: A(() => [
|
|
3828
|
+
S("span", {
|
|
3829
3829
|
class: we(["action-btn", { "is-hidden": R === 0 }]),
|
|
3830
3830
|
onClick: (a) => R !== 0 && $(i).moveToTop(I, R)
|
|
3831
|
-
},
|
|
3832
|
-
|
|
3831
|
+
}, w[6] || (w[6] = [
|
|
3832
|
+
S("i", { class: "vxe-icon-caret-up" }, null, -1)
|
|
3833
3833
|
]), 10, oi)
|
|
3834
3834
|
]),
|
|
3835
3835
|
_: 2
|
|
3836
3836
|
}, 1032, ["disabled"]),
|
|
3837
|
-
E(
|
|
3837
|
+
E(_, {
|
|
3838
3838
|
content: "固定到左侧",
|
|
3839
3839
|
placement: "top",
|
|
3840
3840
|
"show-after": 500
|
|
3841
3841
|
}, {
|
|
3842
|
-
default:
|
|
3843
|
-
|
|
3842
|
+
default: A(() => [
|
|
3843
|
+
S("span", {
|
|
3844
3844
|
class: we(["fixed-btn", {
|
|
3845
3845
|
"is-active": I.fixed === "left",
|
|
3846
3846
|
"is-disabled": !$(i).canFixLeft(I)
|
|
3847
3847
|
}]),
|
|
3848
|
-
onClick: (a) =>
|
|
3849
|
-
},
|
|
3850
|
-
|
|
3848
|
+
onClick: (a) => k(I, "left")
|
|
3849
|
+
}, w[7] || (w[7] = [
|
|
3850
|
+
S("i", { class: "vxe-icon-fixed-left" }, null, -1)
|
|
3851
3851
|
]), 10, ri)
|
|
3852
3852
|
]),
|
|
3853
3853
|
_: 2
|
|
3854
3854
|
}, 1024),
|
|
3855
|
-
E(
|
|
3855
|
+
E(_, {
|
|
3856
3856
|
content: "固定到右侧",
|
|
3857
3857
|
placement: "top",
|
|
3858
3858
|
"show-after": 500
|
|
3859
3859
|
}, {
|
|
3860
|
-
default:
|
|
3861
|
-
|
|
3860
|
+
default: A(() => [
|
|
3861
|
+
S("span", {
|
|
3862
3862
|
class: we(["fixed-btn", {
|
|
3863
3863
|
"is-active": I.fixed === "right",
|
|
3864
3864
|
"is-disabled": !$(i).canFixRight(I)
|
|
3865
3865
|
}]),
|
|
3866
|
-
onClick: (a) =>
|
|
3867
|
-
},
|
|
3868
|
-
|
|
3866
|
+
onClick: (a) => k(I, "right")
|
|
3867
|
+
}, w[8] || (w[8] = [
|
|
3868
|
+
S("i", { class: "vxe-icon-fixed-right" }, null, -1)
|
|
3869
3869
|
]), 10, ai)
|
|
3870
3870
|
]),
|
|
3871
3871
|
_: 2
|
|
@@ -3884,10 +3884,10 @@ const Nn = { class: "toolbar-column-config" }, Pn = { class: "column-config-body
|
|
|
3884
3884
|
]);
|
|
3885
3885
|
};
|
|
3886
3886
|
}
|
|
3887
|
-
}), fi = /* @__PURE__ */ He(di, [["__scopeId", "data-v-1fadcb1f"]]), hi =
|
|
3887
|
+
}), fi = /* @__PURE__ */ He(di, [["__scopeId", "data-v-1fadcb1f"]]), hi = me(fi), pi = {
|
|
3888
3888
|
key: 0,
|
|
3889
3889
|
class: "jc-input-tag__tabs"
|
|
3890
|
-
}, vi = ["onClick"], mi = { class: "jc-input-tag__tab-label" }, gi = { class: "jc-input-tag__tab-count" }, yi = { class: "jc-input-tag__header" }, bi = { class: "jc-input-tag__count" }, Ci = { class: "jc-input-tag__tags" },
|
|
3890
|
+
}, vi = ["onClick"], mi = { class: "jc-input-tag__tab-label" }, gi = { class: "jc-input-tag__tab-count" }, yi = { class: "jc-input-tag__header" }, bi = { class: "jc-input-tag__count" }, _i = { class: "jc-input-tag__header-actions" }, Ci = { class: "jc-input-tag__tags" }, ki = { class: "jc-input-tag__input" }, wi = { class: "jc-input-tag__bulk-content" }, Si = { class: "jc-input-tag__bulk-footer" }, Ai = /* @__PURE__ */ ve({
|
|
3891
3891
|
name: "JcInputTag",
|
|
3892
3892
|
__name: "index",
|
|
3893
3893
|
props: {
|
|
@@ -3907,35 +3907,40 @@ const Nn = { class: "toolbar-column-config" }, Pn = { class: "column-config-body
|
|
|
3907
3907
|
() => Object.fromEntries(
|
|
3908
3908
|
l.fields.map((g) => [g.key, (l.modelValue[g.key] || []).length])
|
|
3909
3909
|
)
|
|
3910
|
-
),
|
|
3911
|
-
const g = l.fields.find((
|
|
3910
|
+
), C = se(() => l.fields.length <= 1), T = se(() => {
|
|
3911
|
+
const g = l.fields.find((_) => _.key === i.value);
|
|
3912
3912
|
return (g == null ? void 0 : g.maxTags) ?? l.maxTags;
|
|
3913
|
-
}),
|
|
3913
|
+
}), k = se(
|
|
3914
3914
|
() => m.value.length >= T.value
|
|
3915
|
-
)
|
|
3916
|
-
|
|
3915
|
+
);
|
|
3916
|
+
ne(k, (g) => {
|
|
3917
|
+
var _;
|
|
3918
|
+
g && c.value && (c.value = !1, (_ = d.value) == null || _.blur());
|
|
3919
|
+
});
|
|
3920
|
+
const f = M("");
|
|
3921
|
+
ne(i, (g) => {
|
|
3917
3922
|
f.value = r.value[g] || "";
|
|
3918
|
-
}),
|
|
3923
|
+
}), ne(f, (g) => {
|
|
3919
3924
|
i.value && (r.value[i.value] = g);
|
|
3920
3925
|
});
|
|
3921
3926
|
const y = se(() => {
|
|
3922
|
-
if (
|
|
3927
|
+
if (k.value)
|
|
3923
3928
|
return `已达上限 ${T.value} 个`;
|
|
3924
|
-
const g = l.fields.find((
|
|
3929
|
+
const g = l.fields.find((_) => _.key === i.value);
|
|
3925
3930
|
return (g == null ? void 0 : g.placeholder) ?? l.placeholder;
|
|
3926
3931
|
});
|
|
3927
|
-
|
|
3932
|
+
ne(
|
|
3928
3933
|
() => l.fields,
|
|
3929
3934
|
(g) => {
|
|
3930
|
-
g.length > 0 && !g.some((
|
|
3935
|
+
g.length > 0 && !g.some((_) => _.key === i.value) && (i.value = g[0].key);
|
|
3931
3936
|
},
|
|
3932
3937
|
{ immediate: !0 }
|
|
3933
3938
|
);
|
|
3934
3939
|
function h(g) {
|
|
3935
|
-
const
|
|
3936
|
-
return (
|
|
3940
|
+
const _ = l.fields.find((F) => F.key === g);
|
|
3941
|
+
return (_ == null ? void 0 : _.maxTags) ?? l.maxTags;
|
|
3937
3942
|
}
|
|
3938
|
-
function V(g,
|
|
3943
|
+
function V(g, _) {
|
|
3939
3944
|
const F = i.value;
|
|
3940
3945
|
if (!F) return;
|
|
3941
3946
|
const I = [...l.modelValue[F] || []], R = h(F), a = R - I.length, x = new Set(I), O = [];
|
|
@@ -3946,32 +3951,32 @@ const Nn = { class: "toolbar-column-config" }, Pn = { class: "column-config-body
|
|
|
3946
3951
|
const X = O.slice(0, a), Z = O.slice(a);
|
|
3947
3952
|
if (X.length > 0) {
|
|
3948
3953
|
const ae = { ...l.modelValue, [F]: [...I, ...X] };
|
|
3949
|
-
n("update:modelValue", ae), X.forEach((ue) => n("add", { key: F, tag: ue, source:
|
|
3954
|
+
n("update:modelValue", ae), X.forEach((ue) => n("add", { key: F, tag: ue, source: _ })), n("change", { key: F, tags: ae[F] });
|
|
3950
3955
|
}
|
|
3951
|
-
Z.length > 0 && (n("exceed", { key: F, max: R, attempted: Z }),
|
|
3956
|
+
Z.length > 0 && (n("exceed", { key: F, max: R, attempted: Z }), ie.warning(`已达上限,${Z.length} 个标签未添加`));
|
|
3952
3957
|
}
|
|
3953
3958
|
function p(g) {
|
|
3954
|
-
const
|
|
3955
|
-
n("update:modelValue", I), n("remove", { key:
|
|
3959
|
+
const _ = i.value, F = l.modelValue[_] || [], I = { ...l.modelValue, [_]: F.filter((R) => R !== g) };
|
|
3960
|
+
n("update:modelValue", I), n("remove", { key: _, tag: g }), n("change", { key: _, tags: I[_] });
|
|
3956
3961
|
}
|
|
3957
3962
|
function L() {
|
|
3958
|
-
const g = i.value,
|
|
3959
|
-
n("update:modelValue",
|
|
3963
|
+
const g = i.value, _ = { ...l.modelValue, [g]: [] };
|
|
3964
|
+
n("update:modelValue", _), n("clear", { key: g }), n("change", { key: g, tags: [] });
|
|
3960
3965
|
}
|
|
3961
3966
|
function z(g) {
|
|
3962
|
-
const
|
|
3963
|
-
if (
|
|
3964
|
-
|
|
3967
|
+
const _ = g;
|
|
3968
|
+
if (_.isComposing) return;
|
|
3969
|
+
_.preventDefault();
|
|
3965
3970
|
const F = f.value.trim();
|
|
3966
3971
|
F && (V([F], "enter"), f.value = "");
|
|
3967
3972
|
}
|
|
3968
|
-
function
|
|
3973
|
+
function w(g) {
|
|
3969
3974
|
var F;
|
|
3970
|
-
const
|
|
3971
|
-
if (
|
|
3975
|
+
const _ = ((F = g.clipboardData) == null ? void 0 : F.getData("text")) || "";
|
|
3976
|
+
if (_.includes(`
|
|
3972
3977
|
`)) {
|
|
3973
3978
|
g.preventDefault();
|
|
3974
|
-
const I =
|
|
3979
|
+
const I = _.split(/\r?\n/);
|
|
3975
3980
|
V(I, "paste");
|
|
3976
3981
|
}
|
|
3977
3982
|
}
|
|
@@ -3981,8 +3986,8 @@ const Nn = { class: "toolbar-column-config" }, Pn = { class: "column-config-body
|
|
|
3981
3986
|
}
|
|
3982
3987
|
function K(g) {
|
|
3983
3988
|
if (g !== i.value) {
|
|
3984
|
-
const
|
|
3985
|
-
i.value = g, n("tab-change", { from:
|
|
3989
|
+
const _ = i.value;
|
|
3990
|
+
i.value = g, n("tab-change", { from: _, to: g });
|
|
3986
3991
|
}
|
|
3987
3992
|
}
|
|
3988
3993
|
return e({
|
|
@@ -4001,42 +4006,48 @@ const Nn = { class: "toolbar-column-config" }, Pn = { class: "column-config-body
|
|
|
4001
4006
|
return i.value;
|
|
4002
4007
|
},
|
|
4003
4008
|
setActiveKey: (g) => {
|
|
4004
|
-
l.fields.some((
|
|
4009
|
+
l.fields.some((_) => _.key === g) && (i.value = g);
|
|
4005
4010
|
}
|
|
4006
|
-
}), (g,
|
|
4011
|
+
}), (g, _) => (N(), W("div", {
|
|
4007
4012
|
class: we(["jc-input-tag", {
|
|
4008
4013
|
"is-disabled": g.disabled,
|
|
4009
4014
|
"is-focused": c.value
|
|
4010
4015
|
}])
|
|
4011
4016
|
}, [
|
|
4012
|
-
|
|
4013
|
-
(N(!0), W(be, null,
|
|
4017
|
+
C.value ? fe("", !0) : (N(), W("div", pi, [
|
|
4018
|
+
(N(!0), W(be, null, _e(g.fields, (F) => (N(), W("div", {
|
|
4014
4019
|
key: F.key,
|
|
4015
4020
|
class: we(["jc-input-tag__tab", { "is-active": i.value === F.key }]),
|
|
4016
4021
|
onClick: (I) => K(F.key)
|
|
4017
4022
|
}, [
|
|
4018
|
-
|
|
4019
|
-
|
|
4023
|
+
S("span", mi, G(F.label), 1),
|
|
4024
|
+
S("span", gi, G(v.value[F.key]), 1)
|
|
4020
4025
|
], 10, vi))), 128))
|
|
4021
4026
|
])),
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
|
|
4030
|
-
|
|
4031
|
-
|
|
4032
|
-
|
|
4033
|
-
|
|
4034
|
-
|
|
4035
|
-
|
|
4036
|
-
|
|
4027
|
+
S("div", yi, [
|
|
4028
|
+
S("span", bi, " 已填 " + G(m.value.length) + "/" + G(T.value) + " 个 ", 1),
|
|
4029
|
+
S("div", _i, [
|
|
4030
|
+
he(g.$slots, "suffix", {
|
|
4031
|
+
fieldKey: i.value,
|
|
4032
|
+
tags: m.value
|
|
4033
|
+
}, void 0, !0),
|
|
4034
|
+
g.clearable && m.value.length > 0 && !g.disabled ? (N(), re($(de), {
|
|
4035
|
+
key: 0,
|
|
4036
|
+
type: "primary",
|
|
4037
|
+
link: "",
|
|
4038
|
+
size: g.size,
|
|
4039
|
+
onClick: L
|
|
4040
|
+
}, {
|
|
4041
|
+
default: A(() => _[6] || (_[6] = [
|
|
4042
|
+
J(" 清空 ")
|
|
4043
|
+
])),
|
|
4044
|
+
_: 1,
|
|
4045
|
+
__: [6]
|
|
4046
|
+
}, 8, ["size"])) : fe("", !0)
|
|
4047
|
+
])
|
|
4037
4048
|
]),
|
|
4038
|
-
|
|
4039
|
-
m.value.length > 0 ? (N(!0), W(be, { key: 0 },
|
|
4049
|
+
S("div", Ci, [
|
|
4050
|
+
m.value.length > 0 ? (N(!0), W(be, { key: 0 }, _e(m.value, (F, I) => he(g.$slots, "tag", {
|
|
4040
4051
|
key: `${F}-${I}`,
|
|
4041
4052
|
tag: F,
|
|
4042
4053
|
index: I,
|
|
@@ -4048,65 +4059,65 @@ const Nn = { class: "toolbar-column-config" }, Pn = { class: "column-config-body
|
|
|
4048
4059
|
size: g.size,
|
|
4049
4060
|
onClose: (R) => p(F)
|
|
4050
4061
|
}, {
|
|
4051
|
-
default:
|
|
4062
|
+
default: A(() => [
|
|
4052
4063
|
J(G(F), 1)
|
|
4053
4064
|
]),
|
|
4054
4065
|
_: 2
|
|
4055
4066
|
}, 1032, ["closable", "size", "onClose"])
|
|
4056
|
-
], !0)), 128)) :
|
|
4067
|
+
], !0)), 128)) : he(g.$slots, "empty", {
|
|
4057
4068
|
key: 1,
|
|
4058
4069
|
fieldKey: i.value
|
|
4059
4070
|
}, () => [
|
|
4060
|
-
|
|
4071
|
+
_[7] || (_[7] = S("span", { class: "jc-input-tag__empty" }, "暂无标签", -1))
|
|
4061
4072
|
], !0)
|
|
4062
4073
|
]),
|
|
4063
|
-
|
|
4074
|
+
S("div", ki, [
|
|
4064
4075
|
E($(Le), {
|
|
4065
4076
|
ref_key: "inputRef",
|
|
4066
4077
|
ref: d,
|
|
4067
4078
|
modelValue: f.value,
|
|
4068
|
-
"onUpdate:modelValue":
|
|
4079
|
+
"onUpdate:modelValue": _[0] || (_[0] = (F) => f.value = F),
|
|
4069
4080
|
placeholder: y.value,
|
|
4070
|
-
disabled: g.disabled ||
|
|
4081
|
+
disabled: g.disabled || k.value,
|
|
4071
4082
|
size: g.size,
|
|
4072
4083
|
onKeydown: us(z, ["enter"]),
|
|
4073
|
-
onPaste:
|
|
4074
|
-
onFocus:
|
|
4075
|
-
onBlur:
|
|
4084
|
+
onPaste: w,
|
|
4085
|
+
onFocus: _[1] || (_[1] = (F) => c.value = !0),
|
|
4086
|
+
onBlur: _[2] || (_[2] = (F) => c.value = !1)
|
|
4076
4087
|
}, null, 8, ["modelValue", "placeholder", "disabled", "size"]),
|
|
4077
4088
|
g.bulkAdd ? (N(), re($(dt), {
|
|
4078
4089
|
key: 0,
|
|
4079
4090
|
visible: o.value,
|
|
4080
|
-
"onUpdate:visible":
|
|
4091
|
+
"onUpdate:visible": _[5] || (_[5] = (F) => o.value = F),
|
|
4081
4092
|
placement: "bottom-end",
|
|
4082
4093
|
width: 300,
|
|
4083
4094
|
trigger: "click",
|
|
4084
4095
|
disabled: g.disabled
|
|
4085
4096
|
}, {
|
|
4086
|
-
reference:
|
|
4097
|
+
reference: A(() => [
|
|
4087
4098
|
E($(de), {
|
|
4088
4099
|
icon: $(Tt),
|
|
4089
4100
|
size: g.size,
|
|
4090
|
-
disabled: g.disabled ||
|
|
4101
|
+
disabled: g.disabled || k.value,
|
|
4091
4102
|
class: "jc-input-tag__bulk-btn"
|
|
4092
4103
|
}, null, 8, ["icon", "size", "disabled"])
|
|
4093
4104
|
]),
|
|
4094
|
-
default:
|
|
4095
|
-
|
|
4096
|
-
|
|
4105
|
+
default: A(() => [
|
|
4106
|
+
S("div", wi, [
|
|
4107
|
+
_[10] || (_[10] = S("div", { class: "jc-input-tag__bulk-title" }, "批量添加(一行一个)", -1)),
|
|
4097
4108
|
E($(Le), {
|
|
4098
4109
|
modelValue: u.value,
|
|
4099
|
-
"onUpdate:modelValue":
|
|
4110
|
+
"onUpdate:modelValue": _[3] || (_[3] = (F) => u.value = F),
|
|
4100
4111
|
type: "textarea",
|
|
4101
4112
|
rows: 6,
|
|
4102
4113
|
placeholder: "请输入内容,每行一个"
|
|
4103
4114
|
}, null, 8, ["modelValue"]),
|
|
4104
|
-
|
|
4115
|
+
S("div", Si, [
|
|
4105
4116
|
E($(de), {
|
|
4106
4117
|
size: "small",
|
|
4107
|
-
onClick:
|
|
4118
|
+
onClick: _[4] || (_[4] = (F) => o.value = !1)
|
|
4108
4119
|
}, {
|
|
4109
|
-
default:
|
|
4120
|
+
default: A(() => _[8] || (_[8] = [
|
|
4110
4121
|
J("取消")
|
|
4111
4122
|
])),
|
|
4112
4123
|
_: 1,
|
|
@@ -4117,7 +4128,7 @@ const Nn = { class: "toolbar-column-config" }, Pn = { class: "column-config-body
|
|
|
4117
4128
|
size: "small",
|
|
4118
4129
|
onClick: P
|
|
4119
4130
|
}, {
|
|
4120
|
-
default:
|
|
4131
|
+
default: A(() => _[9] || (_[9] = [
|
|
4121
4132
|
J(" 确定 ")
|
|
4122
4133
|
])),
|
|
4123
4134
|
_: 1,
|
|
@@ -4131,7 +4142,7 @@ const Nn = { class: "toolbar-column-config" }, Pn = { class: "column-config-body
|
|
|
4131
4142
|
])
|
|
4132
4143
|
], 2));
|
|
4133
4144
|
}
|
|
4134
|
-
}),
|
|
4145
|
+
}), xi = /* @__PURE__ */ He(Ai, [["__scopeId", "data-v-d4715928"]]), $i = me(xi), Ei = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, JcCascader: Zl, JcColumnConfig: hi, JcDatePicker: sn, JcImportButton: Vn, JcImportDialog: In, JcInputComplex: fn, JcInputSwitch: on, JcInputTag: $i, JcListLayout: Sn, JcMoreQueryContain: _n, JcSelectQuery: Hl, JcTagQuery: mn }, Symbol.toStringTag, { value: "Module" })), Gi = (t = {}, e = "jc-query-injection-key") => {
|
|
4135
4146
|
t.resetCount = 0;
|
|
4136
4147
|
const s = Re(t), l = $t({ queryForm: s, tags: [] }), { useProvideQueryStore: n } = xe(e), {
|
|
4137
4148
|
state: i,
|
|
@@ -4151,9 +4162,9 @@ const Nn = { class: "toolbar-column-config" }, Pn = { class: "column-config-body
|
|
|
4151
4162
|
reduceAllTag: c,
|
|
4152
4163
|
clearQuery: m
|
|
4153
4164
|
};
|
|
4154
|
-
},
|
|
4165
|
+
}, Yi = {
|
|
4155
4166
|
install: (t) => {
|
|
4156
|
-
for (const e of Object.values(
|
|
4167
|
+
for (const e of Object.values(Ei))
|
|
4157
4168
|
t.use(e);
|
|
4158
4169
|
}
|
|
4159
4170
|
};
|
|
@@ -4165,11 +4176,11 @@ export {
|
|
|
4165
4176
|
In as JcImportDialog,
|
|
4166
4177
|
fn as JcInputComplex,
|
|
4167
4178
|
on as JcInputSwitch,
|
|
4168
|
-
|
|
4179
|
+
$i as JcInputTag,
|
|
4169
4180
|
Sn as JcListLayout,
|
|
4170
|
-
|
|
4181
|
+
_n as JcMoreQueryContain,
|
|
4171
4182
|
Hl as JcSelectQuery,
|
|
4172
4183
|
mn as JcTagQuery,
|
|
4173
|
-
|
|
4174
|
-
|
|
4184
|
+
Yi as default,
|
|
4185
|
+
Gi as reactiveQuery
|
|
4175
4186
|
};
|