@bscjc/webui 1.1.1 → 1.1.3
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/JcCascader/index.d.ts +1 -1
- package/dist/components/JcCascader/index.vue.d.ts +1 -1
- package/dist/components/JcSelectQuery/index.d.ts +15 -0
- package/dist/components/JcSelectQuery/index.vue.d.ts +9 -0
- package/dist/es/index.mjs +295 -290
- package/dist/index.css +2 -2
- package/dist/lib/index.cjs +8 -8
- package/dist/types/components/JcCascader/index.d.ts +1 -1
- package/dist/types/components/JcCascader/index.vue.d.ts +1 -1
- package/dist/types/components/JcSelectQuery/index.d.ts +15 -0
- package/dist/types/components/JcSelectQuery/index.vue.d.ts +9 -0
- package/package.json +2 -2
package/dist/es/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { nextTick as q, pushScopeId as _r, popScopeId as Ar, withScopeId as wr, createBlock as
|
|
1
|
+
import { nextTick as q, pushScopeId as _r, popScopeId as Ar, withScopeId as wr, createBlock as Y, openBlock as L, markRaw as $r, shallowReactive as Sr, resolveComponent as $e, resolveDirective as Cr, withDirectives as Ie, createElementBlock as W, normalizeClass as Ht, createCommentVNode as oe, createVNode as F, renderSlot as ae, resolveDynamicComponent as Gt, normalizeStyle as Ct, withCtx as x, Fragment as De, renderList as Re, mergeProps as ce, toHandlers as xr, getCurrentInstance as On, hasInjectionContext as Tr, inject as Er, provide as Ir, reactive as me, defineComponent as be, ref as M, watch as X, onMounted as ye, onUnmounted as Mn, unref as $, createSlots as Fn, createElementVNode as D, vModelText as Or, createTextVNode as J, toDisplayString as ue, withModifiers as zn, vShow as Ge, computed as ot } from "vue";
|
|
2
2
|
import { Search as xt, CirclePlus as Mr, Close as jn, Grid as Fr, Delete as zr, Operation as jr } from "@element-plus/icons-vue";
|
|
3
3
|
import { ElSelect as Tt, ElOption as Et, ElCheckbox as qt, ElCheckboxGroup as Lr, ElButton as le, ElInput as ut, ElIcon as Oe, ElPopover as Ln, ElMessage as Pn, ElTag as Pr, ElTooltip as Br, ElCard as Kt } from "element-plus";
|
|
4
4
|
import "element-plus/es/components/select/style/index";
|
|
@@ -32,12 +32,12 @@ var Gr = "[object Null]", qr = "[object Undefined]", Qt = ie ? ie.toStringTag :
|
|
|
32
32
|
function Ce(e) {
|
|
33
33
|
return e == null ? e === void 0 ? qr : Gr : Qt && Qt in Object(e) ? Nr(e) : Hr(e);
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function fe(e) {
|
|
36
36
|
return e != null && typeof e == "object";
|
|
37
37
|
}
|
|
38
38
|
var Kr = "[object Symbol]";
|
|
39
39
|
function Je(e) {
|
|
40
|
-
return typeof e == "symbol" ||
|
|
40
|
+
return typeof e == "symbol" || fe(e) && Ce(e) == Kr;
|
|
41
41
|
}
|
|
42
42
|
function Rn(e, t) {
|
|
43
43
|
for (var n = -1, r = e == null ? 0 : e.length, i = Array(r); ++n < r; )
|
|
@@ -65,7 +65,7 @@ var Jr = /^\s+/;
|
|
|
65
65
|
function Yr(e) {
|
|
66
66
|
return e && e.slice(0, Wr(e) + 1).replace(Jr, "");
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function de(e) {
|
|
69
69
|
var t = typeof e;
|
|
70
70
|
return e != null && (t == "object" || t == "function");
|
|
71
71
|
}
|
|
@@ -75,9 +75,9 @@ function ni(e) {
|
|
|
75
75
|
return e;
|
|
76
76
|
if (Je(e))
|
|
77
77
|
return Yt;
|
|
78
|
-
if (
|
|
78
|
+
if (de(e)) {
|
|
79
79
|
var t = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
80
|
-
e =
|
|
80
|
+
e = de(t) ? t + "" : t;
|
|
81
81
|
}
|
|
82
82
|
if (typeof e != "string")
|
|
83
83
|
return e === 0 ? e : +e;
|
|
@@ -104,7 +104,7 @@ function ai(e) {
|
|
|
104
104
|
}
|
|
105
105
|
var li = "[object AsyncFunction]", oi = "[object Function]", ui = "[object GeneratorFunction]", ci = "[object Proxy]";
|
|
106
106
|
function Nn(e) {
|
|
107
|
-
if (!
|
|
107
|
+
if (!de(e))
|
|
108
108
|
return !1;
|
|
109
109
|
var t = Ce(e);
|
|
110
110
|
return t == oi || t == ui || t == li || t == ci;
|
|
@@ -134,7 +134,7 @@ var pi = /[\\^$.*+?()[\]{}|]/g, vi = /^\[object .+?Constructor\]$/, gi = Functio
|
|
|
134
134
|
"^" + mi.call(bi).replace(pi, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
135
135
|
);
|
|
136
136
|
function Ai(e) {
|
|
137
|
-
if (!
|
|
137
|
+
if (!de(e) || fi(e))
|
|
138
138
|
return !1;
|
|
139
139
|
var t = Nn(e) ? _i : vi;
|
|
140
140
|
return t.test(xe(e));
|
|
@@ -150,7 +150,7 @@ var ct = Te(se, "WeakMap"), en = Object.create, $i = /* @__PURE__ */ function()
|
|
|
150
150
|
function e() {
|
|
151
151
|
}
|
|
152
152
|
return function(t) {
|
|
153
|
-
if (!
|
|
153
|
+
if (!de(t))
|
|
154
154
|
return {};
|
|
155
155
|
if (en)
|
|
156
156
|
return en(t);
|
|
@@ -228,12 +228,12 @@ function Pi(e, t) {
|
|
|
228
228
|
}
|
|
229
229
|
var Bi = "[object Arguments]";
|
|
230
230
|
function nn(e) {
|
|
231
|
-
return
|
|
231
|
+
return fe(e) && Ce(e) == Bi;
|
|
232
232
|
}
|
|
233
233
|
var Hn = Object.prototype, Di = Hn.hasOwnProperty, Ri = Hn.propertyIsEnumerable, Ft = nn(/* @__PURE__ */ function() {
|
|
234
234
|
return arguments;
|
|
235
235
|
}()) ? nn : function(e) {
|
|
236
|
-
return
|
|
236
|
+
return fe(e) && Di.call(e, "callee") && !Ri.call(e, "callee");
|
|
237
237
|
};
|
|
238
238
|
function ki() {
|
|
239
239
|
return !1;
|
|
@@ -242,7 +242,7 @@ var Gn = typeof exports == "object" && exports && !exports.nodeType && exports,
|
|
|
242
242
|
N[is] = N[ss] = N[as] = N[ls] = N[os] = N[us] = N[cs] = N[fs] = N[ds] = !0;
|
|
243
243
|
N[Ui] = N[Hi] = N[ns] = N[Gi] = N[rs] = N[qi] = N[Ki] = N[Qi] = N[Wi] = N[Ji] = N[Yi] = N[Xi] = N[Zi] = N[es] = N[ts] = !1;
|
|
244
244
|
function hs(e) {
|
|
245
|
-
return
|
|
245
|
+
return fe(e) && Ot(e.length) && !!N[Ce(e)];
|
|
246
246
|
}
|
|
247
247
|
function zt(e) {
|
|
248
248
|
return function(t) {
|
|
@@ -357,23 +357,23 @@ function ks(e, t) {
|
|
|
357
357
|
var n = this.__data__, r = Ze(n, e);
|
|
358
358
|
return r < 0 ? (++this.size, n.push([e, t])) : n[r][1] = t, this;
|
|
359
359
|
}
|
|
360
|
-
function
|
|
360
|
+
function pe(e) {
|
|
361
361
|
var t = -1, n = e == null ? 0 : e.length;
|
|
362
362
|
for (this.clear(); ++t < n; ) {
|
|
363
363
|
var r = e[t];
|
|
364
364
|
this.set(r[0], r[1]);
|
|
365
365
|
}
|
|
366
366
|
}
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
367
|
+
pe.prototype.clear = js;
|
|
368
|
+
pe.prototype.delete = Bs;
|
|
369
|
+
pe.prototype.get = Ds;
|
|
370
|
+
pe.prototype.has = Rs;
|
|
371
|
+
pe.prototype.set = ks;
|
|
372
372
|
var Be = Te(se, "Map");
|
|
373
373
|
function Ns() {
|
|
374
374
|
this.size = 0, this.__data__ = {
|
|
375
375
|
hash: new Se(),
|
|
376
|
-
map: new (Be ||
|
|
376
|
+
map: new (Be || pe)(),
|
|
377
377
|
string: new Se()
|
|
378
378
|
};
|
|
379
379
|
}
|
|
@@ -399,18 +399,18 @@ function qs(e, t) {
|
|
|
399
399
|
var n = et(this, e), r = n.size;
|
|
400
400
|
return n.set(e, t), this.size += n.size == r ? 0 : 1, this;
|
|
401
401
|
}
|
|
402
|
-
function
|
|
402
|
+
function ve(e) {
|
|
403
403
|
var t = -1, n = e == null ? 0 : e.length;
|
|
404
404
|
for (this.clear(); ++t < n; ) {
|
|
405
405
|
var r = e[t];
|
|
406
406
|
this.set(r[0], r[1]);
|
|
407
407
|
}
|
|
408
408
|
}
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
409
|
+
ve.prototype.clear = Ns;
|
|
410
|
+
ve.prototype.delete = Us;
|
|
411
|
+
ve.prototype.get = Hs;
|
|
412
|
+
ve.prototype.has = Gs;
|
|
413
|
+
ve.prototype.set = qs;
|
|
414
414
|
var Ks = "Expected a function";
|
|
415
415
|
function Pt(e, t) {
|
|
416
416
|
if (typeof e != "function" || t != null && typeof t != "function")
|
|
@@ -422,9 +422,9 @@ function Pt(e, t) {
|
|
|
422
422
|
var a = e.apply(this, r);
|
|
423
423
|
return n.cache = s.set(i, a) || s, a;
|
|
424
424
|
};
|
|
425
|
-
return n.cache = new (Pt.Cache ||
|
|
425
|
+
return n.cache = new (Pt.Cache || ve)(), n;
|
|
426
426
|
}
|
|
427
|
-
Pt.Cache =
|
|
427
|
+
Pt.Cache = ve;
|
|
428
428
|
var Qs = 500;
|
|
429
429
|
function Ws(e) {
|
|
430
430
|
var t = Pt(e, function(r) {
|
|
@@ -467,7 +467,7 @@ function ta(e, t) {
|
|
|
467
467
|
}
|
|
468
468
|
var na = Kn(Object.getPrototypeOf, Object);
|
|
469
469
|
function ra() {
|
|
470
|
-
this.__data__ = new
|
|
470
|
+
this.__data__ = new pe(), this.size = 0;
|
|
471
471
|
}
|
|
472
472
|
function ia(e) {
|
|
473
473
|
var t = this.__data__, n = t.delete(e);
|
|
@@ -482,16 +482,16 @@ function aa(e) {
|
|
|
482
482
|
var la = 200;
|
|
483
483
|
function oa(e, t) {
|
|
484
484
|
var n = this.__data__;
|
|
485
|
-
if (n instanceof
|
|
485
|
+
if (n instanceof pe) {
|
|
486
486
|
var r = n.__data__;
|
|
487
487
|
if (!Be || r.length < la - 1)
|
|
488
488
|
return r.push([e, t]), this.size = ++n.size, this;
|
|
489
|
-
n = this.__data__ = new
|
|
489
|
+
n = this.__data__ = new ve(r);
|
|
490
490
|
}
|
|
491
491
|
return n.set(e, t), this.size = n.size, this;
|
|
492
492
|
}
|
|
493
493
|
function re(e) {
|
|
494
|
-
var t = this.__data__ = new
|
|
494
|
+
var t = this.__data__ = new pe(e);
|
|
495
495
|
this.size = t.size;
|
|
496
496
|
}
|
|
497
497
|
re.prototype.clear = ra;
|
|
@@ -610,11 +610,11 @@ function Ja(e) {
|
|
|
610
610
|
}
|
|
611
611
|
var Ya = "[object Map]";
|
|
612
612
|
function Xa(e) {
|
|
613
|
-
return
|
|
613
|
+
return fe(e) && te(e) == Ya;
|
|
614
614
|
}
|
|
615
615
|
var yn = Fe && Fe.isMap, Za = yn ? zt(yn) : Xa, el = "[object Set]";
|
|
616
616
|
function tl(e) {
|
|
617
|
-
return
|
|
617
|
+
return fe(e) && te(e) == el;
|
|
618
618
|
}
|
|
619
619
|
var mn = Fe && Fe.isSet, nl = mn ? zt(mn) : tl, Zn = "[object Arguments]", rl = "[object Array]", il = "[object Boolean]", sl = "[object Date]", al = "[object Error]", er = "[object Function]", ll = "[object GeneratorFunction]", ol = "[object Map]", ul = "[object Number]", tr = "[object Object]", cl = "[object RegExp]", fl = "[object Set]", dl = "[object String]", hl = "[object Symbol]", pl = "[object WeakMap]", vl = "[object ArrayBuffer]", gl = "[object DataView]", yl = "[object Float32Array]", ml = "[object Float64Array]", bl = "[object Int8Array]", _l = "[object Int16Array]", Al = "[object Int32Array]", wl = "[object Uint8Array]", $l = "[object Uint8ClampedArray]", Sl = "[object Uint16Array]", Cl = "[object Uint32Array]", k = {};
|
|
620
620
|
k[Zn] = k[rl] = k[vl] = k[gl] = k[il] = k[sl] = k[yl] = k[ml] = k[bl] = k[_l] = k[Al] = k[ol] = k[ul] = k[tr] = k[cl] = k[fl] = k[dl] = k[hl] = k[wl] = k[$l] = k[Sl] = k[Cl] = !0;
|
|
@@ -623,7 +623,7 @@ function Ve(e, t, n, r, i, s) {
|
|
|
623
623
|
var a;
|
|
624
624
|
if (a !== void 0)
|
|
625
625
|
return a;
|
|
626
|
-
if (!
|
|
626
|
+
if (!de(e))
|
|
627
627
|
return e;
|
|
628
628
|
var l = K(e);
|
|
629
629
|
if (l)
|
|
@@ -667,7 +667,7 @@ function Ol(e) {
|
|
|
667
667
|
}
|
|
668
668
|
function Ke(e) {
|
|
669
669
|
var t = -1, n = e == null ? 0 : e.length;
|
|
670
|
-
for (this.__data__ = new
|
|
670
|
+
for (this.__data__ = new ve(); ++t < n; )
|
|
671
671
|
this.add(e[t]);
|
|
672
672
|
}
|
|
673
673
|
Ke.prototype.add = Ke.prototype.push = Il;
|
|
@@ -782,16 +782,16 @@ function eo(e, t, n, r, i, s) {
|
|
|
782
782
|
d = l[h];
|
|
783
783
|
var v = e[d], g = t[d];
|
|
784
784
|
if (r)
|
|
785
|
-
var
|
|
786
|
-
if (!(
|
|
785
|
+
var C = a ? r(g, v, d, t, e, s) : r(v, g, d, e, t, s);
|
|
786
|
+
if (!(C === void 0 ? v === g || i(v, g, n, r, s) : C)) {
|
|
787
787
|
m = !1;
|
|
788
788
|
break;
|
|
789
789
|
}
|
|
790
790
|
f || (f = d == "constructor");
|
|
791
791
|
}
|
|
792
792
|
if (m && !f) {
|
|
793
|
-
var p = e.constructor,
|
|
794
|
-
p !=
|
|
793
|
+
var p = e.constructor, I = t.constructor;
|
|
794
|
+
p != I && "constructor" in e && "constructor" in t && !(typeof p == "function" && p instanceof p && typeof I == "function" && I instanceof I) && (m = !1);
|
|
795
795
|
}
|
|
796
796
|
return s.delete(e), s.delete(t), m;
|
|
797
797
|
}
|
|
@@ -817,7 +817,7 @@ function ro(e, t, n, r, i, s) {
|
|
|
817
817
|
return d ? (s || (s = new re()), eo(e, t, n, r, i, s)) : !1;
|
|
818
818
|
}
|
|
819
819
|
function Dt(e, t, n, r, i) {
|
|
820
|
-
return e === t ? !0 : e == null || t == null || !
|
|
820
|
+
return e === t ? !0 : e == null || t == null || !fe(e) && !fe(t) ? e !== e && t !== t : ro(e, t, n, r, Dt, i);
|
|
821
821
|
}
|
|
822
822
|
var io = 1, so = 2;
|
|
823
823
|
function ao(e, t, n, r) {
|
|
@@ -844,7 +844,7 @@ function ao(e, t, n, r) {
|
|
|
844
844
|
return !0;
|
|
845
845
|
}
|
|
846
846
|
function ir(e) {
|
|
847
|
-
return e === e && !
|
|
847
|
+
return e === e && !de(e);
|
|
848
848
|
}
|
|
849
849
|
function lo(e) {
|
|
850
850
|
for (var t = Xe(e), n = t.length; n--; ) {
|
|
@@ -948,7 +948,7 @@ function xo(e, t, n) {
|
|
|
948
948
|
}
|
|
949
949
|
var To = "[object String]";
|
|
950
950
|
function Eo(e) {
|
|
951
|
-
return typeof e == "string" || !K(e) &&
|
|
951
|
+
return typeof e == "string" || !K(e) && fe(e) && Ce(e) == To;
|
|
952
952
|
}
|
|
953
953
|
function Io(e, t) {
|
|
954
954
|
return Rn(t, function(n) {
|
|
@@ -1050,7 +1050,7 @@ const Ro = {
|
|
|
1050
1050
|
tabindex: "-1"
|
|
1051
1051
|
};
|
|
1052
1052
|
Ar();
|
|
1053
|
-
const ko = /* @__PURE__ */ Do((e, t, n, r, i, s) => (
|
|
1053
|
+
const ko = /* @__PURE__ */ Do((e, t, n, r, i, s) => (L(), Y("div", Ro)));
|
|
1054
1054
|
nt.render = ko;
|
|
1055
1055
|
nt.__scopeId = "data-v-b329ee4c";
|
|
1056
1056
|
nt.__file = "src/components/ResizeObserver.vue";
|
|
@@ -1475,11 +1475,11 @@ var Rt = {
|
|
|
1475
1475
|
},
|
|
1476
1476
|
updateVisibleItems(e, t = !1) {
|
|
1477
1477
|
const n = this.itemSize, r = this.gridItems || 1, i = this.itemSecondarySize || n, s = this.$_computedMinItemSize, a = this.typeField, l = this.simpleArray ? null : this.keyField, o = this.items, u = o.length, c = this.sizes, h = this.$_views, d = this.$_unusedViews, y = this.pool, _ = this.itemIndexByKey;
|
|
1478
|
-
let m, f, v, g,
|
|
1478
|
+
let m, f, v, g, C;
|
|
1479
1479
|
if (!u)
|
|
1480
|
-
m = f = g =
|
|
1480
|
+
m = f = g = C = v = 0;
|
|
1481
1481
|
else if (this.$_prerender)
|
|
1482
|
-
m = g = 0, f =
|
|
1482
|
+
m = g = 0, f = C = Math.min(this.prerender, o.length), v = null;
|
|
1483
1483
|
else {
|
|
1484
1484
|
const T = this.getScroll();
|
|
1485
1485
|
if (t) {
|
|
@@ -1492,33 +1492,33 @@ var Rt = {
|
|
|
1492
1492
|
this.$_lastUpdateScrollPosition = T.start;
|
|
1493
1493
|
const V = this.buffer;
|
|
1494
1494
|
T.start -= V, T.end += V;
|
|
1495
|
-
let
|
|
1496
|
-
if (this.$refs.before && (
|
|
1495
|
+
let B = 0;
|
|
1496
|
+
if (this.$refs.before && (B = this.$refs.before.scrollHeight, T.start -= B), this.$refs.after) {
|
|
1497
1497
|
const U = this.$refs.after.scrollHeight;
|
|
1498
1498
|
T.end += U;
|
|
1499
1499
|
}
|
|
1500
1500
|
if (n === null) {
|
|
1501
|
-
let U, b = 0, w = u - 1, A = ~~(u / 2),
|
|
1501
|
+
let U, b = 0, w = u - 1, A = ~~(u / 2), E;
|
|
1502
1502
|
do
|
|
1503
|
-
|
|
1504
|
-
while (A !==
|
|
1503
|
+
E = A, U = c[A].accumulator, U < T.start ? b = A : A < u - 1 && c[A + 1].accumulator > T.start && (w = A), A = ~~((b + w) / 2);
|
|
1504
|
+
while (A !== E);
|
|
1505
1505
|
for (A < 0 && (A = 0), m = A, v = c[u - 1].accumulator, f = A; f < u && c[f].accumulator < T.end; f++) ;
|
|
1506
|
-
for (f === -1 ? f = o.length - 1 : (f++, f > u && (f = u)), g = m; g < u &&
|
|
1507
|
-
for (
|
|
1506
|
+
for (f === -1 ? f = o.length - 1 : (f++, f > u && (f = u)), g = m; g < u && B + c[g].accumulator < T.start; g++) ;
|
|
1507
|
+
for (C = g; C < u && B + c[C].accumulator < T.end; C++) ;
|
|
1508
1508
|
} else {
|
|
1509
1509
|
m = ~~(T.start / n * r);
|
|
1510
1510
|
const U = m % r;
|
|
1511
|
-
m -= U, f = Math.ceil(T.end / n * r), g = Math.max(0, Math.floor((T.start -
|
|
1511
|
+
m -= U, f = Math.ceil(T.end / n * r), g = Math.max(0, Math.floor((T.start - B) / n * r)), C = Math.floor((T.end - B) / n * r), m < 0 && (m = 0), f > u && (f = u), g < 0 && (g = 0), C > u && (C = u), v = Math.ceil(u / r) * n;
|
|
1512
1512
|
}
|
|
1513
1513
|
}
|
|
1514
1514
|
f - m > Zo.itemsLimit && this.itemsLimitError(), this.totalSize = v;
|
|
1515
1515
|
let p;
|
|
1516
|
-
const
|
|
1517
|
-
if (
|
|
1516
|
+
const I = m <= this.$_endIndex && f >= this.$_startIndex;
|
|
1517
|
+
if (I)
|
|
1518
1518
|
for (let T = 0, V = y.length; T < V; T++)
|
|
1519
1519
|
p = y[T], p.nr.used && (e && (p.nr.index = _[p.item[l]]), (p.nr.index == null || p.nr.index < m || p.nr.index >= f) && this.unuseView(p));
|
|
1520
|
-
const z =
|
|
1521
|
-
let O,
|
|
1520
|
+
const z = I ? null : /* @__PURE__ */ new Map();
|
|
1521
|
+
let O, P, j;
|
|
1522
1522
|
for (let T = m; T < f; T++) {
|
|
1523
1523
|
O = o[T];
|
|
1524
1524
|
const V = l ? O[l] : O;
|
|
@@ -1528,18 +1528,18 @@ var Rt = {
|
|
|
1528
1528
|
p && this.unuseView(p);
|
|
1529
1529
|
continue;
|
|
1530
1530
|
}
|
|
1531
|
-
|
|
1532
|
-
let
|
|
1531
|
+
P = O[a];
|
|
1532
|
+
let B = d.get(P), U = !1;
|
|
1533
1533
|
if (!p)
|
|
1534
|
-
|
|
1535
|
-
else if (!p.nr.used && (p.nr.used = !0, U = !0,
|
|
1536
|
-
const b =
|
|
1537
|
-
b !== -1 &&
|
|
1534
|
+
I ? B && B.length ? p = B.pop() : p = this.addView(y, T, O, V, P) : (j = z.get(P) || 0, (!B || j >= B.length) && (p = this.addView(y, T, O, V, P), this.unuseView(p, !0), B = d.get(P)), p = B[j], z.set(P, j + 1)), h.delete(p.nr.key), p.nr.used = !0, p.nr.index = T, p.nr.key = V, p.nr.type = P, h.set(V, p), U = !0;
|
|
1535
|
+
else if (!p.nr.used && (p.nr.used = !0, U = !0, B)) {
|
|
1536
|
+
const b = B.indexOf(p);
|
|
1537
|
+
b !== -1 && B.splice(b, 1);
|
|
1538
1538
|
}
|
|
1539
1539
|
p.item = O, U && (T === o.length - 1 && this.$emit("scroll-end"), T === 0 && this.$emit("scroll-start")), n === null ? (p.position = c[T - 1].accumulator, p.offset = 0) : (p.position = Math.floor(T / r) * n, p.offset = T % r * i);
|
|
1540
1540
|
}
|
|
1541
|
-
return this.$_startIndex = m, this.$_endIndex = f, this.emitUpdate && this.$emit("update", m, f, g,
|
|
1542
|
-
continuous:
|
|
1541
|
+
return this.$_startIndex = m, this.$_endIndex = f, this.emitUpdate && this.$emit("update", m, f, g, C), clearTimeout(this.$_sortTimer), this.$_sortTimer = setTimeout(this.sortViews, this.updateInterval + 300), {
|
|
1542
|
+
continuous: I
|
|
1543
1543
|
};
|
|
1544
1544
|
},
|
|
1545
1545
|
getListenerTarget() {
|
|
@@ -1612,7 +1612,7 @@ const lu = {
|
|
|
1612
1612
|
};
|
|
1613
1613
|
function uu(e, t, n, r, i, s) {
|
|
1614
1614
|
const a = $e("ResizeObserver"), l = Cr("observe-visibility");
|
|
1615
|
-
return Ie((
|
|
1615
|
+
return Ie((L(), W(
|
|
1616
1616
|
"div",
|
|
1617
1617
|
{
|
|
1618
1618
|
class: Ht(["vue-recycle-scroller", {
|
|
@@ -1623,7 +1623,7 @@ function uu(e, t, n, r, i, s) {
|
|
|
1623
1623
|
onScrollPassive: t[0] || (t[0] = (...o) => s.handleScroll && s.handleScroll(...o))
|
|
1624
1624
|
},
|
|
1625
1625
|
[
|
|
1626
|
-
e.$slots.before ? (
|
|
1626
|
+
e.$slots.before ? (L(), W(
|
|
1627
1627
|
"div",
|
|
1628
1628
|
lu,
|
|
1629
1629
|
[
|
|
@@ -1631,17 +1631,17 @@ function uu(e, t, n, r, i, s) {
|
|
|
1631
1631
|
],
|
|
1632
1632
|
512
|
|
1633
1633
|
/* NEED_PATCH */
|
|
1634
|
-
)) :
|
|
1635
|
-
(
|
|
1634
|
+
)) : oe("v-if", !0),
|
|
1635
|
+
(L(), Y(Gt(n.listTag), {
|
|
1636
1636
|
ref: "wrapper",
|
|
1637
1637
|
style: Ct({ [e.direction === "vertical" ? "minHeight" : "minWidth"]: i.totalSize + "px" }),
|
|
1638
1638
|
class: Ht(["vue-recycle-scroller__item-wrapper", n.listClass])
|
|
1639
1639
|
}, {
|
|
1640
|
-
default:
|
|
1641
|
-
(
|
|
1640
|
+
default: x(() => [
|
|
1641
|
+
(L(!0), W(
|
|
1642
1642
|
De,
|
|
1643
1643
|
null,
|
|
1644
|
-
Re(i.pool, (o) => (
|
|
1644
|
+
Re(i.pool, (o) => (L(), Y(Gt(n.itemTag), ce({
|
|
1645
1645
|
key: o.nr.id,
|
|
1646
1646
|
style: i.ready ? {
|
|
1647
1647
|
transform: `translate${e.direction === "vertical" ? "Y" : "X"}(${o.position}px) translate${e.direction === "vertical" ? "X" : "Y"}(${o.offset}px)`,
|
|
@@ -1662,7 +1662,7 @@ function uu(e, t, n, r, i, s) {
|
|
|
1662
1662
|
i.hoverKey = null;
|
|
1663
1663
|
}
|
|
1664
1664
|
})), {
|
|
1665
|
-
default:
|
|
1665
|
+
default: x(() => [
|
|
1666
1666
|
ae(e.$slots, "default", {
|
|
1667
1667
|
item: o.item,
|
|
1668
1668
|
index: o.nr.index,
|
|
@@ -1680,7 +1680,7 @@ function uu(e, t, n, r, i, s) {
|
|
|
1680
1680
|
_: 3
|
|
1681
1681
|
/* FORWARDED */
|
|
1682
1682
|
}, 8, ["style", "class"])),
|
|
1683
|
-
e.$slots.after ? (
|
|
1683
|
+
e.$slots.after ? (L(), W(
|
|
1684
1684
|
"div",
|
|
1685
1685
|
ou,
|
|
1686
1686
|
[
|
|
@@ -1688,7 +1688,7 @@ function uu(e, t, n, r, i, s) {
|
|
|
1688
1688
|
],
|
|
1689
1689
|
512
|
|
1690
1690
|
/* NEED_PATCH */
|
|
1691
|
-
)) :
|
|
1691
|
+
)) : oe("v-if", !0),
|
|
1692
1692
|
F(a, { onNotify: s.handleResize }, null, 8, ["onNotify"])
|
|
1693
1693
|
],
|
|
1694
1694
|
34
|
|
@@ -1699,7 +1699,7 @@ function uu(e, t, n, r, i, s) {
|
|
|
1699
1699
|
}
|
|
1700
1700
|
Rt.render = uu;
|
|
1701
1701
|
Rt.__file = "src/components/RecycleScroller.vue";
|
|
1702
|
-
function
|
|
1702
|
+
function he(e) {
|
|
1703
1703
|
return Array.isArray ? Array.isArray(e) : hr(e) === "[object Array]";
|
|
1704
1704
|
}
|
|
1705
1705
|
function cu(e) {
|
|
@@ -1759,7 +1759,7 @@ class bu {
|
|
|
1759
1759
|
}
|
|
1760
1760
|
function pr(e) {
|
|
1761
1761
|
let t = null, n = null, r = null, i = 1, s = null;
|
|
1762
|
-
if (ne(e) ||
|
|
1762
|
+
if (ne(e) || he(e))
|
|
1763
1763
|
r = e, t = xn(e), n = bt(e);
|
|
1764
1764
|
else {
|
|
1765
1765
|
if (!Cn.call(e, "name"))
|
|
@@ -1772,10 +1772,10 @@ function pr(e) {
|
|
|
1772
1772
|
return { path: t, id: n, weight: i, src: r, getFn: s };
|
|
1773
1773
|
}
|
|
1774
1774
|
function xn(e) {
|
|
1775
|
-
return
|
|
1775
|
+
return he(e) ? e : e.split(".");
|
|
1776
1776
|
}
|
|
1777
1777
|
function bt(e) {
|
|
1778
|
-
return
|
|
1778
|
+
return he(e) ? e.join(".") : e;
|
|
1779
1779
|
}
|
|
1780
1780
|
function _u(e, t) {
|
|
1781
1781
|
let n = [], r = !1;
|
|
@@ -1790,7 +1790,7 @@ function _u(e, t) {
|
|
|
1790
1790
|
return;
|
|
1791
1791
|
if (l === a.length - 1 && (ne(u) || fr(u) || du(u)))
|
|
1792
1792
|
n.push(fu(u));
|
|
1793
|
-
else if (
|
|
1793
|
+
else if (he(u)) {
|
|
1794
1794
|
r = !0;
|
|
1795
1795
|
for (let c = 0, h = u.length; c < h; c += 1)
|
|
1796
1796
|
i(u[c], a, l + 1);
|
|
@@ -1931,7 +1931,7 @@ class kt {
|
|
|
1931
1931
|
this.keys.forEach((i, s) => {
|
|
1932
1932
|
let a = i.getFn ? i.getFn(t) : this.getFn(t, i.path);
|
|
1933
1933
|
if (Z(a)) {
|
|
1934
|
-
if (
|
|
1934
|
+
if (he(a)) {
|
|
1935
1935
|
let l = [];
|
|
1936
1936
|
const o = [{ nestedArrIndex: -1, value: a }];
|
|
1937
1937
|
for (; o.length; ) {
|
|
@@ -1944,7 +1944,7 @@ class kt {
|
|
|
1944
1944
|
n: this.norm.get(c)
|
|
1945
1945
|
};
|
|
1946
1946
|
l.push(h);
|
|
1947
|
-
} else
|
|
1947
|
+
} else he(c) && c.forEach((h, d) => {
|
|
1948
1948
|
o.push({
|
|
1949
1949
|
nestedArrIndex: d,
|
|
1950
1950
|
value: h
|
|
@@ -2022,37 +2022,37 @@ function Iu(e, t, n, {
|
|
|
2022
2022
|
ignoreLocation: u
|
|
2023
2023
|
});
|
|
2024
2024
|
if (y = Math.min(O, y), _ = v + c, m) {
|
|
2025
|
-
let
|
|
2026
|
-
for (;
|
|
2027
|
-
f[v +
|
|
2025
|
+
let P = 0;
|
|
2026
|
+
for (; P < c; )
|
|
2027
|
+
f[v + P] = 1, P += 1;
|
|
2028
2028
|
}
|
|
2029
2029
|
}
|
|
2030
2030
|
_ = -1;
|
|
2031
|
-
let g = [],
|
|
2032
|
-
const
|
|
2031
|
+
let g = [], C = 1, p = c + h;
|
|
2032
|
+
const I = 1 << c - 1;
|
|
2033
2033
|
for (let O = 0; O < c; O += 1) {
|
|
2034
|
-
let
|
|
2035
|
-
for (;
|
|
2034
|
+
let P = 0, j = p;
|
|
2035
|
+
for (; P < j; )
|
|
2036
2036
|
Ne(t, {
|
|
2037
2037
|
errors: O,
|
|
2038
2038
|
currentLocation: d + j,
|
|
2039
2039
|
expectedLocation: d,
|
|
2040
2040
|
distance: i,
|
|
2041
2041
|
ignoreLocation: u
|
|
2042
|
-
}) <= y ?
|
|
2042
|
+
}) <= y ? P = j : p = j, j = Math.floor((p - P) / 2 + P);
|
|
2043
2043
|
p = j;
|
|
2044
|
-
let T = Math.max(1, d - j + 1), V = a ? h : Math.min(d + j, h) + c,
|
|
2045
|
-
|
|
2044
|
+
let T = Math.max(1, d - j + 1), V = a ? h : Math.min(d + j, h) + c, B = Array(V + 2);
|
|
2045
|
+
B[V + 1] = (1 << O) - 1;
|
|
2046
2046
|
for (let b = V; b >= T; b -= 1) {
|
|
2047
2047
|
let w = b - 1, A = n[e.charAt(w)];
|
|
2048
|
-
if (m && (f[w] = +!!A),
|
|
2048
|
+
if (m && (f[w] = +!!A), B[b] = (B[b + 1] << 1 | 1) & A, O && (B[b] |= (g[b + 1] | g[b]) << 1 | 1 | g[b + 1]), B[b] & I && (C = Ne(t, {
|
|
2049
2049
|
errors: O,
|
|
2050
2050
|
currentLocation: w,
|
|
2051
2051
|
expectedLocation: d,
|
|
2052
2052
|
distance: i,
|
|
2053
2053
|
ignoreLocation: u
|
|
2054
|
-
}),
|
|
2055
|
-
if (y =
|
|
2054
|
+
}), C <= y)) {
|
|
2055
|
+
if (y = C, _ = w, _ <= d)
|
|
2056
2056
|
break;
|
|
2057
2057
|
T = Math.max(1, 2 * d - _);
|
|
2058
2058
|
}
|
|
@@ -2065,12 +2065,12 @@ function Iu(e, t, n, {
|
|
|
2065
2065
|
ignoreLocation: u
|
|
2066
2066
|
}) > y)
|
|
2067
2067
|
break;
|
|
2068
|
-
g =
|
|
2068
|
+
g = B;
|
|
2069
2069
|
}
|
|
2070
2070
|
const z = {
|
|
2071
2071
|
isMatch: _ >= 0,
|
|
2072
2072
|
// Count exact matches (those with a score of 0) to be "almost" exact
|
|
2073
|
-
score: Math.max(1e-3,
|
|
2073
|
+
score: Math.max(1e-3, C)
|
|
2074
2074
|
};
|
|
2075
2075
|
if (m) {
|
|
2076
2076
|
const O = Eu(f, l);
|
|
@@ -2149,7 +2149,7 @@ class gr {
|
|
|
2149
2149
|
} = this.options;
|
|
2150
2150
|
let h = [], d = 0, y = !1;
|
|
2151
2151
|
this.chunks.forEach(({ pattern: m, alphabet: f, startIndex: v }) => {
|
|
2152
|
-
const { isMatch: g, score:
|
|
2152
|
+
const { isMatch: g, score: C, indices: p } = Iu(t, m, f, {
|
|
2153
2153
|
location: s + v,
|
|
2154
2154
|
distance: a,
|
|
2155
2155
|
threshold: l,
|
|
@@ -2158,7 +2158,7 @@ class gr {
|
|
|
2158
2158
|
includeMatches: i,
|
|
2159
2159
|
ignoreLocation: c
|
|
2160
2160
|
});
|
|
2161
|
-
g && (y = !0), d +=
|
|
2161
|
+
g && (y = !0), d += C, g && p && (h = [...h, ...p]);
|
|
2162
2162
|
});
|
|
2163
2163
|
let _ = {
|
|
2164
2164
|
isMatch: y,
|
|
@@ -2498,7 +2498,7 @@ const We = {
|
|
|
2498
2498
|
}, $t = {
|
|
2499
2499
|
PATH: "$path",
|
|
2500
2500
|
PATTERN: "$val"
|
|
2501
|
-
}, St = (e) => !!(e[We.AND] || e[We.OR]), Uu = (e) => !!e[$t.PATH], Hu = (e) => !
|
|
2501
|
+
}, St = (e) => !!(e[We.AND] || e[We.OR]), Uu = (e) => !!e[$t.PATH], Hu = (e) => !he(e) && dr(e) && !St(e), In = (e) => ({
|
|
2502
2502
|
[We.AND]: Object.keys(e).map((t) => ({
|
|
2503
2503
|
[t]: e[t]
|
|
2504
2504
|
}))
|
|
@@ -2525,7 +2525,7 @@ function br(e, t, { auto: n = !0 } = {}) {
|
|
|
2525
2525
|
};
|
|
2526
2526
|
return s.forEach((o) => {
|
|
2527
2527
|
const u = i[o];
|
|
2528
|
-
|
|
2528
|
+
he(u) && u.forEach((c) => {
|
|
2529
2529
|
l.children.push(r(c));
|
|
2530
2530
|
});
|
|
2531
2531
|
}), l;
|
|
@@ -2691,7 +2691,7 @@ class ge {
|
|
|
2691
2691
|
if (!Z(n))
|
|
2692
2692
|
return [];
|
|
2693
2693
|
let i = [];
|
|
2694
|
-
if (
|
|
2694
|
+
if (he(n))
|
|
2695
2695
|
n.forEach(({ v: s, i: a, n: l }) => {
|
|
2696
2696
|
if (!Z(s))
|
|
2697
2697
|
return;
|
|
@@ -2746,11 +2746,11 @@ const [Xu, Ee] = Yu(
|
|
|
2746
2746
|
(e) => {
|
|
2747
2747
|
const t = me(e);
|
|
2748
2748
|
function n(l, o) {
|
|
2749
|
-
H(o) &&
|
|
2749
|
+
H(o) && de(o) ? t.queryForm[l] = void 0 : t.queryForm[l] = o;
|
|
2750
2750
|
}
|
|
2751
2751
|
function r(l) {
|
|
2752
2752
|
let { key: o, label: u, value: c } = l;
|
|
2753
|
-
if (H(c) && !
|
|
2753
|
+
if (H(c) && !de(c))
|
|
2754
2754
|
return;
|
|
2755
2755
|
let h = "", d = c == null ? void 0 : c.toString();
|
|
2756
2756
|
if (typeof c == "number" || typeof c == "boolean" || typeof c == "string")
|
|
@@ -2804,7 +2804,7 @@ const [Xu, Ee] = Yu(
|
|
|
2804
2804
|
},
|
|
2805
2805
|
allowCreate: {
|
|
2806
2806
|
type: Boolean,
|
|
2807
|
-
default: !
|
|
2807
|
+
default: !1
|
|
2808
2808
|
},
|
|
2809
2809
|
keyField: {
|
|
2810
2810
|
type: Array,
|
|
@@ -2830,6 +2830,10 @@ const [Xu, Ee] = Yu(
|
|
|
2830
2830
|
isNeedFooter: {
|
|
2831
2831
|
type: Boolean,
|
|
2832
2832
|
default: !0
|
|
2833
|
+
},
|
|
2834
|
+
isNeedOnlySelect: {
|
|
2835
|
+
type: Boolean,
|
|
2836
|
+
default: !0
|
|
2833
2837
|
}
|
|
2834
2838
|
},
|
|
2835
2839
|
setup(e, { expose: t }) {
|
|
@@ -2837,7 +2841,7 @@ const [Xu, Ee] = Yu(
|
|
|
2837
2841
|
{}
|
|
2838
2842
|
), a = M(""), l = M(), o = M([]), u = M([]), c = M([]), h = M(!1), d = M(!1), y = M(!1), { state: _, setQuery: m } = Ee();
|
|
2839
2843
|
let f = -1, v = !1;
|
|
2840
|
-
const g = M(),
|
|
2844
|
+
const g = M(), C = (b) => {
|
|
2841
2845
|
b && (c.value = i.value, a.value = "", u.value = o.value, j(c.value), q(() => {
|
|
2842
2846
|
var w;
|
|
2843
2847
|
(w = l.value) == null || w.focus();
|
|
@@ -2846,7 +2850,7 @@ const [Xu, Ee] = Yu(
|
|
|
2846
2850
|
c.value = c.value.filter(
|
|
2847
2851
|
(w) => w.value !== b.value
|
|
2848
2852
|
);
|
|
2849
|
-
},
|
|
2853
|
+
}, I = (b) => {
|
|
2850
2854
|
y.value = !0, m(n.field, b), q(() => {
|
|
2851
2855
|
y.value = !1;
|
|
2852
2856
|
});
|
|
@@ -2865,7 +2869,7 @@ const [Xu, Ee] = Yu(
|
|
|
2865
2869
|
keys: n.keyField
|
|
2866
2870
|
}), z();
|
|
2867
2871
|
}));
|
|
2868
|
-
},
|
|
2872
|
+
}, P = (b) => {
|
|
2869
2873
|
c.value = b ? u.value : [], d.value = !1, n.isNeedFooter || (i.value = c.value, m(n.field, i.value));
|
|
2870
2874
|
}, j = (b) => {
|
|
2871
2875
|
if (b.length === 0) {
|
|
@@ -2875,13 +2879,13 @@ const [Xu, Ee] = Yu(
|
|
|
2875
2879
|
const w = b.length;
|
|
2876
2880
|
h.value = w === u.value.length, d.value = w > 0 && w < u.value.length;
|
|
2877
2881
|
const { options: A } = n;
|
|
2878
|
-
let
|
|
2882
|
+
let E = 0;
|
|
2879
2883
|
if (b.length > 0) {
|
|
2880
2884
|
const R = b[b.length - 1];
|
|
2881
|
-
|
|
2885
|
+
E = A.findIndex((Q) => Q.value === R.value);
|
|
2882
2886
|
}
|
|
2883
2887
|
if (v) {
|
|
2884
|
-
const R = Math.abs(f -
|
|
2888
|
+
const R = Math.abs(f - E) + 1, Q = Math.min(f, E);
|
|
2885
2889
|
let G = 0;
|
|
2886
2890
|
for (; G < R; ) {
|
|
2887
2891
|
const ee = Q + G;
|
|
@@ -2893,11 +2897,11 @@ const [Xu, Ee] = Yu(
|
|
|
2893
2897
|
!v && !c.value.includes(b) && (f = o.value.findIndex((w) => w.value === b.value));
|
|
2894
2898
|
}, V = (b) => {
|
|
2895
2899
|
c.value = [b], U();
|
|
2896
|
-
},
|
|
2900
|
+
}, B = () => {
|
|
2897
2901
|
var b;
|
|
2898
2902
|
(b = r.value) == null || b.blur();
|
|
2899
2903
|
}, U = () => {
|
|
2900
|
-
y.value = !0, i.value = c.value, m(n.field, i.value),
|
|
2904
|
+
y.value = !0, i.value = c.value, m(n.field, i.value), B(), q(() => {
|
|
2901
2905
|
y.value = !1;
|
|
2902
2906
|
});
|
|
2903
2907
|
};
|
|
@@ -2941,7 +2945,7 @@ const [Xu, Ee] = Yu(
|
|
|
2941
2945
|
}), ye(() => {
|
|
2942
2946
|
var b;
|
|
2943
2947
|
r.value && (s.focus = r.value.focus, s.blur = r.value.blur, s.selectedLabel = (b = r.value) == null ? void 0 : b.selectedLabel);
|
|
2944
|
-
}), t(s), (b, w) => (
|
|
2948
|
+
}), t(s), (b, w) => (L(), Y($(Tt), ce({
|
|
2945
2949
|
ref_key: "selectRef",
|
|
2946
2950
|
ref: r,
|
|
2947
2951
|
modelValue: i.value,
|
|
@@ -2958,18 +2962,18 @@ const [Xu, Ee] = Yu(
|
|
|
2958
2962
|
class: "jc-select",
|
|
2959
2963
|
"popper-class": "jc-select-popper",
|
|
2960
2964
|
placeholder: "请选择",
|
|
2961
|
-
onVisibleChange:
|
|
2965
|
+
onVisibleChange: C,
|
|
2962
2966
|
onRemoveTag: p,
|
|
2963
|
-
onChange:
|
|
2967
|
+
onChange: I
|
|
2964
2968
|
}), Fn({
|
|
2965
|
-
default:
|
|
2969
|
+
default: x(() => [
|
|
2966
2970
|
F($(Et), {
|
|
2967
2971
|
value: "1",
|
|
2968
2972
|
hidden: ""
|
|
2969
2973
|
}),
|
|
2970
|
-
|
|
2974
|
+
D("div", Zu, [
|
|
2971
2975
|
F($(xt), { class: "selcet-icon search-icon" }),
|
|
2972
|
-
Ie(
|
|
2976
|
+
Ie(D("input", {
|
|
2973
2977
|
ref_key: "searchInputRef",
|
|
2974
2978
|
ref: l,
|
|
2975
2979
|
"onUpdate:modelValue": w[0] || (w[0] = (A) => a.value = A),
|
|
@@ -2978,23 +2982,23 @@ const [Xu, Ee] = Yu(
|
|
|
2978
2982
|
}, null, 544), [
|
|
2979
2983
|
[Or, a.value]
|
|
2980
2984
|
]),
|
|
2981
|
-
e.allowCreate ? (
|
|
2985
|
+
e.allowCreate ? (L(), Y($(Mr), {
|
|
2982
2986
|
key: 0,
|
|
2983
2987
|
class: "selcet-icon circle-icon",
|
|
2984
2988
|
onClick: O
|
|
2985
|
-
})) :
|
|
2989
|
+
})) : oe("", !0)
|
|
2986
2990
|
]),
|
|
2987
|
-
Ie(
|
|
2988
|
-
|
|
2991
|
+
Ie(D("div", ec, [
|
|
2992
|
+
D("li", tc, [
|
|
2989
2993
|
F($(qt), {
|
|
2990
2994
|
modelValue: h.value,
|
|
2991
2995
|
"onUpdate:modelValue": w[1] || (w[1] = (A) => h.value = A),
|
|
2992
2996
|
indeterminate: d.value,
|
|
2993
2997
|
size: e.size,
|
|
2994
|
-
onChange:
|
|
2998
|
+
onChange: P
|
|
2995
2999
|
}, {
|
|
2996
|
-
default:
|
|
2997
|
-
|
|
3000
|
+
default: x(() => w[4] || (w[4] = [
|
|
3001
|
+
J("全选")
|
|
2998
3002
|
])),
|
|
2999
3003
|
_: 1,
|
|
3000
3004
|
__: [4]
|
|
@@ -3006,7 +3010,7 @@ const [Xu, Ee] = Yu(
|
|
|
3006
3010
|
onChange: j,
|
|
3007
3011
|
size: e.size
|
|
3008
3012
|
}, {
|
|
3009
|
-
default:
|
|
3013
|
+
default: x(() => [
|
|
3010
3014
|
F($(Rt), {
|
|
3011
3015
|
class: "recycle-scroller",
|
|
3012
3016
|
items: u.value,
|
|
@@ -3014,8 +3018,8 @@ const [Xu, Ee] = Yu(
|
|
|
3014
3018
|
"key-field": "value",
|
|
3015
3019
|
style: Ct({ maxHeight: e.maxScrollHeight })
|
|
3016
3020
|
}, {
|
|
3017
|
-
default:
|
|
3018
|
-
|
|
3021
|
+
default: x(({ item: A }) => [
|
|
3022
|
+
D("li", {
|
|
3019
3023
|
class: "el-select-dropdown__item",
|
|
3020
3024
|
title: A.label
|
|
3021
3025
|
}, [
|
|
@@ -3024,21 +3028,22 @@ const [Xu, Ee] = Yu(
|
|
|
3024
3028
|
value: A,
|
|
3025
3029
|
label: A,
|
|
3026
3030
|
disabled: A.disabled,
|
|
3027
|
-
onClick: (
|
|
3031
|
+
onClick: (E) => T(A)
|
|
3028
3032
|
}, {
|
|
3029
|
-
default:
|
|
3033
|
+
default: x(() => [
|
|
3030
3034
|
ae(b.$slots, "default", { scope: A }, () => [
|
|
3031
|
-
|
|
3035
|
+
D("span", null, ue(A.label), 1)
|
|
3032
3036
|
])
|
|
3033
3037
|
]),
|
|
3034
3038
|
_: 2
|
|
3035
3039
|
}, 1032, ["size", "value", "label", "disabled", "onClick"]),
|
|
3036
|
-
|
|
3040
|
+
e.isNeedOnlySelect ? (L(), W("div", {
|
|
3041
|
+
key: 0,
|
|
3037
3042
|
class: "select-tag",
|
|
3038
|
-
onClick: zn((
|
|
3043
|
+
onClick: zn((E) => V(A), ["stop"])
|
|
3039
3044
|
}, w[5] || (w[5] = [
|
|
3040
|
-
|
|
3041
|
-
]), 8, rc)
|
|
3045
|
+
D("span", null, "仅筛选此项", -1)
|
|
3046
|
+
]), 8, rc)) : oe("", !0)
|
|
3042
3047
|
], 8, nc)
|
|
3043
3048
|
]),
|
|
3044
3049
|
_: 3
|
|
@@ -3049,7 +3054,7 @@ const [Xu, Ee] = Yu(
|
|
|
3049
3054
|
], 512), [
|
|
3050
3055
|
[Ge, u.value.length > 0]
|
|
3051
3056
|
]),
|
|
3052
|
-
Ie(
|
|
3057
|
+
Ie(D("p", ic, "无数据", 512), [
|
|
3053
3058
|
[Ge, u.value.length === 0]
|
|
3054
3059
|
])
|
|
3055
3060
|
]),
|
|
@@ -3057,20 +3062,20 @@ const [Xu, Ee] = Yu(
|
|
|
3057
3062
|
}, [
|
|
3058
3063
|
e.isNeedFooter ? {
|
|
3059
3064
|
name: "footer",
|
|
3060
|
-
fn:
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
w[6] || (w[6] =
|
|
3065
|
+
fn: x(() => [
|
|
3066
|
+
D("div", sc, [
|
|
3067
|
+
D("span", null, [
|
|
3068
|
+
D("span", ac, "已选 " + ue(c.value.length) + " 项", 1),
|
|
3069
|
+
w[6] || (w[6] = D("span", { class: "shift-tips" }, "(按住Shift可以快速多选)", -1))
|
|
3065
3070
|
]),
|
|
3066
|
-
|
|
3071
|
+
D("span", null, [
|
|
3067
3072
|
F($(le), {
|
|
3068
3073
|
size: e.size,
|
|
3069
|
-
onClick:
|
|
3074
|
+
onClick: B,
|
|
3070
3075
|
plain: ""
|
|
3071
3076
|
}, {
|
|
3072
|
-
default:
|
|
3073
|
-
|
|
3077
|
+
default: x(() => w[7] || (w[7] = [
|
|
3078
|
+
J("关闭")
|
|
3074
3079
|
])),
|
|
3075
3080
|
_: 1,
|
|
3076
3081
|
__: [7]
|
|
@@ -3081,8 +3086,8 @@ const [Xu, Ee] = Yu(
|
|
|
3081
3086
|
onClick: U,
|
|
3082
3087
|
plain: ""
|
|
3083
3088
|
}, {
|
|
3084
|
-
default:
|
|
3085
|
-
|
|
3089
|
+
default: x(() => [
|
|
3090
|
+
J(ue(e.footerBtnName), 1)
|
|
3086
3091
|
]),
|
|
3087
3092
|
_: 1
|
|
3088
3093
|
}, 8, ["size"])
|
|
@@ -3140,22 +3145,22 @@ const [Xu, Ee] = Yu(
|
|
|
3140
3145
|
}
|
|
3141
3146
|
},
|
|
3142
3147
|
setup(e, { expose: t }) {
|
|
3143
|
-
const n = e, r = M(), i = M([]), s = me({}), a = (p,
|
|
3144
|
-
const z = String(p.label).trim().toLowerCase(), O =
|
|
3148
|
+
const n = e, r = M(), i = M([]), s = me({}), a = (p, I) => {
|
|
3149
|
+
const z = String(p.label).trim().toLowerCase(), O = I.trim().toLowerCase();
|
|
3145
3150
|
return z.indexOf(O) !== -1;
|
|
3146
3151
|
}, l = {
|
|
3147
3152
|
multiple: !0,
|
|
3148
3153
|
expandTrigger: "hover"
|
|
3149
3154
|
}, o = M(!1), { state: u, setQuery: c } = Ee(), h = M(!1), d = M(!1), y = ot(() => {
|
|
3150
3155
|
var z;
|
|
3151
|
-
const p = [],
|
|
3156
|
+
const p = [], I = n.options.map(
|
|
3152
3157
|
(O) => ({ node: O, path: [O.value] })
|
|
3153
3158
|
);
|
|
3154
|
-
for (;
|
|
3155
|
-
const { node: O, path:
|
|
3159
|
+
for (; I.length > 0; ) {
|
|
3160
|
+
const { node: O, path: P } = I.shift();
|
|
3156
3161
|
(z = O.children) != null && z.length ? O.children.forEach((j) => {
|
|
3157
|
-
|
|
3158
|
-
}) : p.push(
|
|
3162
|
+
I.push({ node: j, path: [...P, j.value] });
|
|
3163
|
+
}) : p.push(P);
|
|
3159
3164
|
}
|
|
3160
3165
|
return p;
|
|
3161
3166
|
});
|
|
@@ -3178,11 +3183,11 @@ const [Xu, Ee] = Yu(
|
|
|
3178
3183
|
});
|
|
3179
3184
|
}, g = () => {
|
|
3180
3185
|
i.value = [], f();
|
|
3181
|
-
},
|
|
3182
|
-
const
|
|
3186
|
+
}, C = (p) => {
|
|
3187
|
+
const I = y.value.filter(
|
|
3183
3188
|
(z) => z.includes(p.value)
|
|
3184
3189
|
);
|
|
3185
|
-
i.value =
|
|
3190
|
+
i.value = I, f();
|
|
3186
3191
|
};
|
|
3187
3192
|
return X(
|
|
3188
3193
|
() => u.queryForm[n.field],
|
|
@@ -3195,17 +3200,17 @@ const [Xu, Ee] = Yu(
|
|
|
3195
3200
|
), ye(() => {
|
|
3196
3201
|
}), Mn(() => {
|
|
3197
3202
|
}), ye(() => {
|
|
3198
|
-
var p,
|
|
3199
|
-
r.value && (s.getCheckedNodes = r.value.getCheckedNodes, s.cascaderPanelRef = r.value.cascaderPanelRef, s.togglePopperVisible = (p = r.value) == null ? void 0 : p.togglePopperVisible, s.contentRef = (
|
|
3200
|
-
}), t(s), (p,
|
|
3201
|
-
const z = $e("el-checkbox"), O = $e("el-button"),
|
|
3202
|
-
return
|
|
3203
|
+
var p, I, z;
|
|
3204
|
+
r.value && (s.getCheckedNodes = r.value.getCheckedNodes, s.cascaderPanelRef = r.value.cascaderPanelRef, s.togglePopperVisible = (p = r.value) == null ? void 0 : p.togglePopperVisible, s.contentRef = (I = r.value) == null ? void 0 : I.contentRef, s.presentText = (z = r.value) == null ? void 0 : z.presentText);
|
|
3205
|
+
}), t(s), (p, I) => {
|
|
3206
|
+
const z = $e("el-checkbox"), O = $e("el-button"), P = $e("el-cascader");
|
|
3207
|
+
return L(), Y(P, ce({
|
|
3203
3208
|
ref_key: "cascaderRef",
|
|
3204
3209
|
ref: r,
|
|
3205
3210
|
class: "jc-cascader",
|
|
3206
3211
|
"popper-class": "jc-cascader-popper",
|
|
3207
3212
|
modelValue: i.value,
|
|
3208
|
-
"onUpdate:modelValue":
|
|
3213
|
+
"onUpdate:modelValue": I[1] || (I[1] = (j) => i.value = j)
|
|
3209
3214
|
}, p.$attrs, {
|
|
3210
3215
|
props: l,
|
|
3211
3216
|
options: e.options,
|
|
@@ -3221,28 +3226,28 @@ const [Xu, Ee] = Yu(
|
|
|
3221
3226
|
onRemoveTag: v,
|
|
3222
3227
|
onClear: g
|
|
3223
3228
|
}), Fn({
|
|
3224
|
-
default:
|
|
3225
|
-
|
|
3226
|
-
|
|
3227
|
-
e.isNeedOnlySelect ? (
|
|
3229
|
+
default: x(({ data: j }) => [
|
|
3230
|
+
D("div", cc, [
|
|
3231
|
+
D("span", fc, ue(j.label), 1),
|
|
3232
|
+
e.isNeedOnlySelect ? (L(), W("span", {
|
|
3228
3233
|
key: 0,
|
|
3229
3234
|
class: "select-tag",
|
|
3230
|
-
onClick: zn((T) =>
|
|
3231
|
-
},
|
|
3232
|
-
|
|
3233
|
-
]), 8, dc)) :
|
|
3235
|
+
onClick: zn((T) => C(j), ["stop"])
|
|
3236
|
+
}, I[3] || (I[3] = [
|
|
3237
|
+
D("span", null, "仅筛选此项", -1)
|
|
3238
|
+
]), 8, dc)) : oe("", !0)
|
|
3234
3239
|
])
|
|
3235
3240
|
]),
|
|
3236
|
-
footer:
|
|
3237
|
-
|
|
3238
|
-
|
|
3241
|
+
footer: x(() => [
|
|
3242
|
+
D("div", hc, [
|
|
3243
|
+
D("span", null, [
|
|
3239
3244
|
F(O, {
|
|
3240
3245
|
size: e.size,
|
|
3241
3246
|
onClick: m,
|
|
3242
3247
|
plain: ""
|
|
3243
3248
|
}, {
|
|
3244
|
-
default:
|
|
3245
|
-
|
|
3249
|
+
default: x(() => I[4] || (I[4] = [
|
|
3250
|
+
J("关闭")
|
|
3246
3251
|
])),
|
|
3247
3252
|
_: 1,
|
|
3248
3253
|
__: [4]
|
|
@@ -3253,8 +3258,8 @@ const [Xu, Ee] = Yu(
|
|
|
3253
3258
|
onClick: f,
|
|
3254
3259
|
plain: ""
|
|
3255
3260
|
}, {
|
|
3256
|
-
default:
|
|
3257
|
-
|
|
3261
|
+
default: x(() => [
|
|
3262
|
+
J(ue(e.footerBtnName), 1)
|
|
3258
3263
|
]),
|
|
3259
3264
|
_: 1
|
|
3260
3265
|
}, 8, ["size"])
|
|
@@ -3265,18 +3270,18 @@ const [Xu, Ee] = Yu(
|
|
|
3265
3270
|
}, [
|
|
3266
3271
|
e.isNeedHeader ? {
|
|
3267
3272
|
name: "header",
|
|
3268
|
-
fn:
|
|
3269
|
-
|
|
3273
|
+
fn: x(() => [
|
|
3274
|
+
D("div", null, [
|
|
3270
3275
|
F(z, {
|
|
3271
3276
|
style: { "margin-left": "10px" },
|
|
3272
3277
|
size: e.size,
|
|
3273
3278
|
modelValue: h.value,
|
|
3274
|
-
"onUpdate:modelValue":
|
|
3279
|
+
"onUpdate:modelValue": I[0] || (I[0] = (j) => h.value = j),
|
|
3275
3280
|
indeterminate: d.value,
|
|
3276
3281
|
onChange: _
|
|
3277
3282
|
}, {
|
|
3278
|
-
default:
|
|
3279
|
-
|
|
3283
|
+
default: x(() => I[2] || (I[2] = [
|
|
3284
|
+
J(" 全部 ")
|
|
3280
3285
|
])),
|
|
3281
3286
|
_: 1,
|
|
3282
3287
|
__: [2]
|
|
@@ -3333,7 +3338,7 @@ const [Xu, Ee] = Yu(
|
|
|
3333
3338
|
X(
|
|
3334
3339
|
() => r.fieldList,
|
|
3335
3340
|
(v) => {
|
|
3336
|
-
!H(v) && H(l.value) && (l.value = v[0].value, s.value = []);
|
|
3341
|
+
(!H(v) && H(l.value) || l.value && !r.fieldList.map((g) => g.value).includes(l.value)) && (l.value = v[0].value, s.value = []);
|
|
3337
3342
|
},
|
|
3338
3343
|
{
|
|
3339
3344
|
immediate: !0,
|
|
@@ -3343,7 +3348,7 @@ const [Xu, Ee] = Yu(
|
|
|
3343
3348
|
r.fieldList.map((v) => () => c.queryForm[v.value]),
|
|
3344
3349
|
(v) => {
|
|
3345
3350
|
if (!u.value) {
|
|
3346
|
-
const g = v.findIndex((
|
|
3351
|
+
const g = v.findIndex((C) => !H(C));
|
|
3347
3352
|
g === -1 ? (l.value = r.fieldList[0].value, s.value = []) : (l.value = r.fieldList[g].value, s.value = v[g] || []);
|
|
3348
3353
|
}
|
|
3349
3354
|
},
|
|
@@ -3353,15 +3358,15 @@ const [Xu, Ee] = Yu(
|
|
|
3353
3358
|
);
|
|
3354
3359
|
const m = M(), f = me({});
|
|
3355
3360
|
return ye(() => {
|
|
3356
|
-
var v, g,
|
|
3357
|
-
m.value && (f.focus = (v = m.value) == null ? void 0 : v.focus, f.blur = (g = m.value) == null ? void 0 : g.blur, f.handleOpen = (
|
|
3361
|
+
var v, g, C, p;
|
|
3362
|
+
m.value && (f.focus = (v = m.value) == null ? void 0 : v.focus, f.blur = (g = m.value) == null ? void 0 : g.blur, f.handleOpen = (C = m.value) == null ? void 0 : C.handleOpen, f.handleClose = (p = m.value) == null ? void 0 : p.handleClose);
|
|
3358
3363
|
}), t(f), (v, g) => {
|
|
3359
|
-
const
|
|
3360
|
-
return
|
|
3364
|
+
const C = $e("el-option"), p = $e("el-select"), I = $e("el-date-picker");
|
|
3365
|
+
return L(), W("div", {
|
|
3361
3366
|
class: "jc-date-picker",
|
|
3362
3367
|
style: Ct({ width: e.width })
|
|
3363
3368
|
}, [
|
|
3364
|
-
|
|
3369
|
+
D("div", yc, [
|
|
3365
3370
|
F(p, {
|
|
3366
3371
|
modelValue: l.value,
|
|
3367
3372
|
"onUpdate:modelValue": g[0] || (g[0] = (z) => l.value = z),
|
|
@@ -3369,11 +3374,11 @@ const [Xu, Ee] = Yu(
|
|
|
3369
3374
|
class: "select-field",
|
|
3370
3375
|
onChange: y
|
|
3371
3376
|
}, {
|
|
3372
|
-
prefix:
|
|
3373
|
-
|
|
3377
|
+
prefix: x(() => [
|
|
3378
|
+
J(ue((e.fieldList.find((z) => z.value === l.value) || {}).label), 1)
|
|
3374
3379
|
]),
|
|
3375
|
-
default:
|
|
3376
|
-
(
|
|
3380
|
+
default: x(() => [
|
|
3381
|
+
(L(!0), W(De, null, Re(e.fieldList, (z) => (L(), Y(C, {
|
|
3377
3382
|
key: z.value,
|
|
3378
3383
|
label: z.label,
|
|
3379
3384
|
value: z.value
|
|
@@ -3382,7 +3387,7 @@ const [Xu, Ee] = Yu(
|
|
|
3382
3387
|
_: 1
|
|
3383
3388
|
}, 8, ["modelValue", "size"])
|
|
3384
3389
|
]),
|
|
3385
|
-
F(
|
|
3390
|
+
F(I, ce({
|
|
3386
3391
|
ref_key: "datePickerRef",
|
|
3387
3392
|
ref: m,
|
|
3388
3393
|
modelValue: s.value,
|
|
@@ -3443,7 +3448,7 @@ const [Xu, Ee] = Yu(
|
|
|
3443
3448
|
X(
|
|
3444
3449
|
() => r.fieldList,
|
|
3445
3450
|
(g) => {
|
|
3446
|
-
!H(g) && H(l.value) && (l.value = g[0].value, s.value = "");
|
|
3451
|
+
(!H(g) && H(l.value) || l.value && !r.fieldList.map((C) => C.value).includes(l.value)) && (l.value = g[0].value, s.value = "");
|
|
3447
3452
|
},
|
|
3448
3453
|
{
|
|
3449
3454
|
immediate: !0,
|
|
@@ -3458,8 +3463,8 @@ const [Xu, Ee] = Yu(
|
|
|
3458
3463
|
r.fieldList.map((g) => () => u.queryForm[g.value]),
|
|
3459
3464
|
(g) => {
|
|
3460
3465
|
if (!h.value) {
|
|
3461
|
-
const
|
|
3462
|
-
|
|
3466
|
+
const C = g.findIndex((p) => !H(p));
|
|
3467
|
+
C === -1 ? (l.value = r.fieldList[0].value, s.value = "") : (l.value = r.fieldList[C].value, s.value = g[C] || "");
|
|
3463
3468
|
}
|
|
3464
3469
|
},
|
|
3465
3470
|
{
|
|
@@ -3468,13 +3473,13 @@ const [Xu, Ee] = Yu(
|
|
|
3468
3473
|
);
|
|
3469
3474
|
const f = M(), v = me({});
|
|
3470
3475
|
return ye(() => {
|
|
3471
|
-
var g,
|
|
3472
|
-
f.value && (v.blur = (g = f.value) == null ? void 0 : g.blur, v.clear = (
|
|
3473
|
-
}), t(v), (g,
|
|
3476
|
+
var g, C, p, I, z, O, P, j, T, V;
|
|
3477
|
+
f.value && (v.blur = (g = f.value) == null ? void 0 : g.blur, v.clear = (C = f.value) == null ? void 0 : C.clear, v.focus = (p = f.value) == null ? void 0 : p.focus, v.input = (I = f.value) == null ? void 0 : I.input, v.ref = (z = f.value) == null ? void 0 : z.ref, v.resizeTextarea = (O = f.value) == null ? void 0 : O.resizeTextarea, v.select = (P = f.value) == null ? void 0 : P.select, v.textarea = (j = f.value) == null ? void 0 : j.textarea, v.textareaStyle = (T = f.value) == null ? void 0 : T.textareaStyle, v.isComposing = (V = f.value) == null ? void 0 : V.isComposing);
|
|
3478
|
+
}), t(v), (g, C) => (L(), Y($(ut), ce({
|
|
3474
3479
|
ref_key: "inputRef",
|
|
3475
3480
|
ref: f,
|
|
3476
3481
|
modelValue: s.value,
|
|
3477
|
-
"onUpdate:modelValue":
|
|
3482
|
+
"onUpdate:modelValue": C[1] || (C[1] = (p) => s.value = p),
|
|
3478
3483
|
modelModifiers: { trim: !0 }
|
|
3479
3484
|
}, g.$attrs, {
|
|
3480
3485
|
placeholder: "请输入内容",
|
|
@@ -3482,19 +3487,19 @@ const [Xu, Ee] = Yu(
|
|
|
3482
3487
|
size: e.size,
|
|
3483
3488
|
class: "jc-input jc-input-switch"
|
|
3484
3489
|
}), {
|
|
3485
|
-
prepend:
|
|
3490
|
+
prepend: x(() => [
|
|
3486
3491
|
F($(Tt), {
|
|
3487
3492
|
modelValue: l.value,
|
|
3488
|
-
"onUpdate:modelValue":
|
|
3493
|
+
"onUpdate:modelValue": C[0] || (C[0] = (p) => l.value = p),
|
|
3489
3494
|
size: e.size,
|
|
3490
3495
|
class: "select-field",
|
|
3491
3496
|
onChange: _
|
|
3492
3497
|
}, {
|
|
3493
|
-
prefix:
|
|
3494
|
-
|
|
3498
|
+
prefix: x(() => [
|
|
3499
|
+
J(ue((e.fieldList.find((p) => p.value === l.value) || {}).label), 1)
|
|
3495
3500
|
]),
|
|
3496
|
-
default:
|
|
3497
|
-
(
|
|
3501
|
+
default: x(() => [
|
|
3502
|
+
(L(!0), W(De, null, Re(e.fieldList, (p) => (L(), Y($(Et), {
|
|
3498
3503
|
key: p.value,
|
|
3499
3504
|
label: p.label,
|
|
3500
3505
|
value: p.value
|
|
@@ -3503,13 +3508,13 @@ const [Xu, Ee] = Yu(
|
|
|
3503
3508
|
_: 1
|
|
3504
3509
|
}, 8, ["modelValue", "size"])
|
|
3505
3510
|
]),
|
|
3506
|
-
suffix:
|
|
3507
|
-
|
|
3511
|
+
suffix: x(() => [
|
|
3512
|
+
D("div", Ac, [
|
|
3508
3513
|
Ie(F($(Oe), {
|
|
3509
3514
|
class: "el-input__icon",
|
|
3510
3515
|
onClick: y
|
|
3511
3516
|
}, {
|
|
3512
|
-
default:
|
|
3517
|
+
default: x(() => [
|
|
3513
3518
|
F($(jn))
|
|
3514
3519
|
]),
|
|
3515
3520
|
_: 1
|
|
@@ -3520,7 +3525,7 @@ const [Xu, Ee] = Yu(
|
|
|
3520
3525
|
class: "el-input__icon",
|
|
3521
3526
|
onClick: m
|
|
3522
3527
|
}, {
|
|
3523
|
-
default:
|
|
3528
|
+
default: x(() => [
|
|
3524
3529
|
F($(xt))
|
|
3525
3530
|
]),
|
|
3526
3531
|
_: 1
|
|
@@ -3557,15 +3562,15 @@ const [Xu, Ee] = Yu(
|
|
|
3557
3562
|
const r = e, i = n, s = M(""), a = M(""), l = M(""), o = M(""), u = M(!1), c = ot(() => l.value + "List"), h = ot(
|
|
3558
3563
|
() => {
|
|
3559
3564
|
var A;
|
|
3560
|
-
return ((A = r.fieldList.find((
|
|
3565
|
+
return ((A = r.fieldList.find((E) => E.value === l.value)) == null ? void 0 : A.label) || "";
|
|
3561
3566
|
}
|
|
3562
|
-
), d = M(""), y = M(!1), { state: _, setQuery: m, addTag: f, reduceTag: v } = Ee(), g = {},
|
|
3567
|
+
), d = M(""), y = M(!1), { state: _, setQuery: m, addTag: f, reduceTag: v } = Ee(), g = {}, C = {};
|
|
3563
3568
|
r.fieldList.forEach((A) => {
|
|
3564
|
-
g[A.value] = void 0,
|
|
3569
|
+
g[A.value] = void 0, C[A.value + "List"] = [];
|
|
3565
3570
|
});
|
|
3566
3571
|
const p = (A) => {
|
|
3567
|
-
u.value = !1,
|
|
3568
|
-
},
|
|
3572
|
+
u.value = !1, I(), i("fieldChange", A);
|
|
3573
|
+
}, I = () => {
|
|
3569
3574
|
_.queryForm[c.value] ? d.value = _.queryForm[c.value].join(`
|
|
3570
3575
|
`) : d.value = "";
|
|
3571
3576
|
}, z = () => {
|
|
@@ -3575,16 +3580,16 @@ const [Xu, Ee] = Yu(
|
|
|
3575
3580
|
}, O = () => {
|
|
3576
3581
|
for (const A in g)
|
|
3577
3582
|
m(A, void 0);
|
|
3578
|
-
},
|
|
3583
|
+
}, P = () => {
|
|
3579
3584
|
y.value = !0, d.value = "", a.value = s.value, o.value = l.value, O(), m(c.value, void 0), v({ key: c.value }), m(l.value, s.value.trim()), q(() => {
|
|
3580
3585
|
y.value = !1;
|
|
3581
3586
|
});
|
|
3582
3587
|
}, j = () => {
|
|
3583
3588
|
y.value = !0;
|
|
3584
3589
|
const A = d.value.split(`
|
|
3585
|
-
`).filter((
|
|
3590
|
+
`).filter((E) => !H(E));
|
|
3586
3591
|
if (A.length > 0) {
|
|
3587
|
-
const
|
|
3592
|
+
const E = [...new Set(A)], R = Co(
|
|
3588
3593
|
A,
|
|
3589
3594
|
(G, ee, Ae) => Fo(Ae, G, ee + 1)
|
|
3590
3595
|
), Q = [...new Set(R)];
|
|
@@ -3597,11 +3602,11 @@ const [Xu, Ee] = Yu(
|
|
|
3597
3602
|
)}`;
|
|
3598
3603
|
Pn.warning(ee);
|
|
3599
3604
|
}
|
|
3600
|
-
d.value =
|
|
3601
|
-
`), O(), m(c.value,
|
|
3605
|
+
d.value = E.join(`
|
|
3606
|
+
`), O(), m(c.value, E), f({
|
|
3602
3607
|
key: c.value,
|
|
3603
3608
|
label: h.value,
|
|
3604
|
-
value:
|
|
3609
|
+
value: E
|
|
3605
3610
|
});
|
|
3606
3611
|
} else
|
|
3607
3612
|
m(c.value, void 0), v({ key: c.value });
|
|
@@ -3612,9 +3617,9 @@ const [Xu, Ee] = Yu(
|
|
|
3612
3617
|
u.value = !1;
|
|
3613
3618
|
}, V = () => {
|
|
3614
3619
|
s.value = "", d.value = "", a.value = "", T();
|
|
3615
|
-
},
|
|
3616
|
-
Object.keys(A).forEach((
|
|
3617
|
-
l.value =
|
|
3620
|
+
}, B = (A) => {
|
|
3621
|
+
Object.keys(A).forEach((E) => {
|
|
3622
|
+
l.value = E.replace("List", ""), d.value = A[E].join(`
|
|
3618
3623
|
`), j();
|
|
3619
3624
|
});
|
|
3620
3625
|
}, U = () => {
|
|
@@ -3623,7 +3628,7 @@ const [Xu, Ee] = Yu(
|
|
|
3623
3628
|
X(
|
|
3624
3629
|
() => r.fieldList,
|
|
3625
3630
|
(A) => {
|
|
3626
|
-
!H(A) && H(l.value) && (l.value = A[0].value, s.value = "", d.value = "");
|
|
3631
|
+
(!H(A) && H(l.value) || l.value && !r.fieldList.map((E) => E.value).includes(l.value)) && (l.value = A[0].value, s.value = "", d.value = "");
|
|
3627
3632
|
},
|
|
3628
3633
|
{
|
|
3629
3634
|
immediate: !0,
|
|
@@ -3669,13 +3674,13 @@ const [Xu, Ee] = Yu(
|
|
|
3669
3674
|
);
|
|
3670
3675
|
const b = M(), w = me({});
|
|
3671
3676
|
return ye(() => {
|
|
3672
|
-
var A,
|
|
3673
|
-
b.value && (w.blur = (A = b.value) == null ? void 0 : A.blur, w.clear = (
|
|
3674
|
-
}), w.setInputValueMult =
|
|
3677
|
+
var A, E, R, Q, G, ee, Ae, Nt, Vt, Ut;
|
|
3678
|
+
b.value && (w.blur = (A = b.value) == null ? void 0 : A.blur, w.clear = (E = b.value) == null ? void 0 : E.clear, w.focus = (R = b.value) == null ? void 0 : R.focus, w.input = (Q = b.value) == null ? void 0 : Q.input, w.ref = (G = b.value) == null ? void 0 : G.ref, w.resizeTextarea = (ee = b.value) == null ? void 0 : ee.resizeTextarea, w.select = (Ae = b.value) == null ? void 0 : Ae.select, w.textarea = (Nt = b.value) == null ? void 0 : Nt.textarea, w.textareaStyle = (Vt = b.value) == null ? void 0 : Vt.textareaStyle, w.isComposing = (Ut = b.value) == null ? void 0 : Ut.isComposing);
|
|
3679
|
+
}), w.setInputValueMult = B, w.setInputByOutside = U, t(w), (A, E) => (L(), Y($(ut), ce({
|
|
3675
3680
|
ref_key: "inputRef",
|
|
3676
3681
|
ref: b,
|
|
3677
3682
|
modelValue: s.value,
|
|
3678
|
-
"onUpdate:modelValue":
|
|
3683
|
+
"onUpdate:modelValue": E[5] || (E[5] = (R) => s.value = R),
|
|
3679
3684
|
modelModifiers: { trim: !0 }
|
|
3680
3685
|
}, A.$attrs, {
|
|
3681
3686
|
placeholder: "请输入内容",
|
|
@@ -3683,20 +3688,20 @@ const [Xu, Ee] = Yu(
|
|
|
3683
3688
|
class: "jc-input jc-input-complex search-input",
|
|
3684
3689
|
size: e.size
|
|
3685
3690
|
}), {
|
|
3686
|
-
prepend:
|
|
3691
|
+
prepend: x(() => [
|
|
3687
3692
|
F($(Tt), {
|
|
3688
3693
|
ref: "selectRef",
|
|
3689
3694
|
modelValue: l.value,
|
|
3690
|
-
"onUpdate:modelValue":
|
|
3695
|
+
"onUpdate:modelValue": E[0] || (E[0] = (R) => l.value = R),
|
|
3691
3696
|
size: e.size,
|
|
3692
3697
|
class: "select-field",
|
|
3693
3698
|
onChange: p
|
|
3694
3699
|
}, {
|
|
3695
|
-
prefix:
|
|
3696
|
-
|
|
3700
|
+
prefix: x(() => [
|
|
3701
|
+
J(ue((e.fieldList.find((R) => R.value === l.value) || {}).label), 1)
|
|
3697
3702
|
]),
|
|
3698
|
-
default:
|
|
3699
|
-
(
|
|
3703
|
+
default: x(() => [
|
|
3704
|
+
(L(!0), W(De, null, Re(e.fieldList, (R) => (L(), Y($(Et), {
|
|
3700
3705
|
key: R.value,
|
|
3701
3706
|
label: R.label,
|
|
3702
3707
|
value: R.value
|
|
@@ -3705,13 +3710,13 @@ const [Xu, Ee] = Yu(
|
|
|
3705
3710
|
_: 1
|
|
3706
3711
|
}, 8, ["modelValue", "size"])
|
|
3707
3712
|
]),
|
|
3708
|
-
suffix:
|
|
3709
|
-
|
|
3713
|
+
suffix: x(() => [
|
|
3714
|
+
D("div", Cc, [
|
|
3710
3715
|
Ie(F($(Oe), {
|
|
3711
3716
|
class: "el-input__icon",
|
|
3712
3717
|
onClick: z
|
|
3713
3718
|
}, {
|
|
3714
|
-
default:
|
|
3719
|
+
default: x(() => [
|
|
3715
3720
|
F($(jn))
|
|
3716
3721
|
]),
|
|
3717
3722
|
_: 1
|
|
@@ -3720,40 +3725,40 @@ const [Xu, Ee] = Yu(
|
|
|
3720
3725
|
]),
|
|
3721
3726
|
F($(Oe), {
|
|
3722
3727
|
class: "el-input__icon",
|
|
3723
|
-
onClick:
|
|
3728
|
+
onClick: P
|
|
3724
3729
|
}, {
|
|
3725
|
-
default:
|
|
3730
|
+
default: x(() => [
|
|
3726
3731
|
F($(xt))
|
|
3727
3732
|
]),
|
|
3728
3733
|
_: 1
|
|
3729
3734
|
}),
|
|
3730
3735
|
F($(Ln), {
|
|
3731
3736
|
visible: u.value,
|
|
3732
|
-
"onUpdate:visible":
|
|
3737
|
+
"onUpdate:visible": E[4] || (E[4] = (R) => u.value = R),
|
|
3733
3738
|
placement: "bottom-end",
|
|
3734
3739
|
width: "240",
|
|
3735
3740
|
"show-arrow": !1,
|
|
3736
3741
|
"popper-class": "jc-input-pop",
|
|
3737
3742
|
trigger: "click"
|
|
3738
3743
|
}, {
|
|
3739
|
-
reference:
|
|
3744
|
+
reference: x(() => [
|
|
3740
3745
|
F($(Oe), {
|
|
3741
3746
|
class: "el-input__icon",
|
|
3742
3747
|
title: "多项搜索",
|
|
3743
3748
|
style: { "background-color": "#f0f2f5" },
|
|
3744
|
-
onClick:
|
|
3749
|
+
onClick: I
|
|
3745
3750
|
}, {
|
|
3746
|
-
default:
|
|
3751
|
+
default: x(() => [
|
|
3747
3752
|
F($(Fr))
|
|
3748
3753
|
]),
|
|
3749
3754
|
_: 1
|
|
3750
3755
|
})
|
|
3751
3756
|
]),
|
|
3752
|
-
default:
|
|
3753
|
-
|
|
3754
|
-
F($(ut),
|
|
3757
|
+
default: x(() => [
|
|
3758
|
+
D("div", xc, [
|
|
3759
|
+
F($(ut), ce({
|
|
3755
3760
|
modelValue: d.value,
|
|
3756
|
-
"onUpdate:modelValue":
|
|
3761
|
+
"onUpdate:modelValue": E[1] || (E[1] = (R) => d.value = R),
|
|
3757
3762
|
type: "textarea"
|
|
3758
3763
|
}, A.$attrs, {
|
|
3759
3764
|
size: e.size,
|
|
@@ -3761,26 +3766,26 @@ const [Xu, Ee] = Yu(
|
|
|
3761
3766
|
class: "popover-textarea",
|
|
3762
3767
|
wrap: "off"
|
|
3763
3768
|
}), null, 16, ["modelValue", "size"]),
|
|
3764
|
-
|
|
3769
|
+
D("div", Tc, [
|
|
3765
3770
|
F($(le), {
|
|
3766
3771
|
size: e.size,
|
|
3767
|
-
onClick:
|
|
3772
|
+
onClick: E[2] || (E[2] = (R) => d.value = ""),
|
|
3768
3773
|
plain: ""
|
|
3769
3774
|
}, {
|
|
3770
|
-
default:
|
|
3771
|
-
|
|
3775
|
+
default: x(() => E[6] || (E[6] = [
|
|
3776
|
+
J("清空")
|
|
3772
3777
|
])),
|
|
3773
3778
|
_: 1,
|
|
3774
3779
|
__: [6]
|
|
3775
3780
|
}, 8, ["size"]),
|
|
3776
|
-
|
|
3781
|
+
D("div", Ec, [
|
|
3777
3782
|
F($(le), {
|
|
3778
3783
|
size: e.size,
|
|
3779
3784
|
plain: "",
|
|
3780
3785
|
onClick: T
|
|
3781
3786
|
}, {
|
|
3782
|
-
default:
|
|
3783
|
-
|
|
3787
|
+
default: x(() => E[7] || (E[7] = [
|
|
3788
|
+
J("关闭")
|
|
3784
3789
|
])),
|
|
3785
3790
|
_: 1,
|
|
3786
3791
|
__: [7]
|
|
@@ -3789,10 +3794,10 @@ const [Xu, Ee] = Yu(
|
|
|
3789
3794
|
type: "primary",
|
|
3790
3795
|
plain: "",
|
|
3791
3796
|
size: e.size,
|
|
3792
|
-
onClick:
|
|
3797
|
+
onClick: E[3] || (E[3] = (R) => j())
|
|
3793
3798
|
}, {
|
|
3794
|
-
default:
|
|
3795
|
-
|
|
3799
|
+
default: x(() => E[8] || (E[8] = [
|
|
3800
|
+
J("搜索")
|
|
3796
3801
|
])),
|
|
3797
3802
|
_: 1,
|
|
3798
3803
|
__: [8]
|
|
@@ -3816,40 +3821,40 @@ const [Xu, Ee] = Yu(
|
|
|
3816
3821
|
__name: "index",
|
|
3817
3822
|
setup(e) {
|
|
3818
3823
|
const { state: t, reduceTag: n, reduceAllTag: r } = Ee();
|
|
3819
|
-
return (i, s) => (
|
|
3820
|
-
(
|
|
3824
|
+
return (i, s) => (L(), W("div", Fc, [
|
|
3825
|
+
(L(!0), W(De, null, Re($(t).tags, (a, l) => (L(), Y($(Pr), ce({ ref_for: !0 }, i.$attrs, {
|
|
3821
3826
|
key: a.label,
|
|
3822
3827
|
closable: "",
|
|
3823
3828
|
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: l > 0 ? "4px" : "0px" }],
|
|
3824
3829
|
onClose: (o) => $(n)(a, l)
|
|
3825
3830
|
}), {
|
|
3826
|
-
default:
|
|
3831
|
+
default: x(() => [
|
|
3827
3832
|
F($(Br), {
|
|
3828
3833
|
content: a.value,
|
|
3829
3834
|
placement: "bottom",
|
|
3830
3835
|
effect: "light"
|
|
3831
3836
|
}, {
|
|
3832
|
-
default:
|
|
3833
|
-
|
|
3837
|
+
default: x(() => [
|
|
3838
|
+
D("span", null, ue(a.showStr), 1)
|
|
3834
3839
|
]),
|
|
3835
3840
|
_: 2
|
|
3836
3841
|
}, 1032, ["content"])
|
|
3837
3842
|
]),
|
|
3838
3843
|
_: 2
|
|
3839
3844
|
}, 1040, ["style", "onClose"]))), 128)),
|
|
3840
|
-
$(t).tags.length > 1 ? (
|
|
3845
|
+
$(t).tags.length > 1 ? (L(), W("span", {
|
|
3841
3846
|
key: 0,
|
|
3842
3847
|
style: { "margin-left": "10px", "margin-top": "2px", display: "block" },
|
|
3843
3848
|
onClick: s[0] || (s[0] = //@ts-ignore
|
|
3844
3849
|
(...a) => $(r) && $(r)(...a))
|
|
3845
3850
|
}, [
|
|
3846
3851
|
F($(Oe), null, {
|
|
3847
|
-
default:
|
|
3852
|
+
default: x(() => [
|
|
3848
3853
|
F($(zr))
|
|
3849
3854
|
]),
|
|
3850
3855
|
_: 1
|
|
3851
3856
|
})
|
|
3852
|
-
])) :
|
|
3857
|
+
])) : oe("", !0)
|
|
3853
3858
|
]));
|
|
3854
3859
|
}
|
|
3855
3860
|
}), jc = (e, t) => {
|
|
@@ -3936,7 +3941,7 @@ const [Xu, Ee] = Yu(
|
|
|
3936
3941
|
return ye(() => {
|
|
3937
3942
|
var f;
|
|
3938
3943
|
_.value && (m.hide = (f = _.value) == null ? void 0 : f.hide);
|
|
3939
|
-
}), t(m), (f, v) => (
|
|
3944
|
+
}), t(m), (f, v) => (L(), Y($(Ln), ce({
|
|
3940
3945
|
ref_key: "popoverRef",
|
|
3941
3946
|
ref: _
|
|
3942
3947
|
}, f.$attrs, {
|
|
@@ -3947,35 +3952,35 @@ const [Xu, Ee] = Yu(
|
|
|
3947
3952
|
"popper-class": "moreQuery-pop",
|
|
3948
3953
|
trigger: "click"
|
|
3949
3954
|
}), {
|
|
3950
|
-
reference:
|
|
3955
|
+
reference: x(() => [
|
|
3951
3956
|
F($(le), {
|
|
3952
3957
|
size: e.size,
|
|
3953
3958
|
icon: $(jr),
|
|
3954
3959
|
onClick: c
|
|
3955
3960
|
}, null, 8, ["size", "icon"])
|
|
3956
3961
|
]),
|
|
3957
|
-
default:
|
|
3962
|
+
default: x(() => [
|
|
3958
3963
|
ae(f.$slots, "default", { scopeForm: r.value }),
|
|
3959
|
-
|
|
3964
|
+
D("div", Dc, [
|
|
3960
3965
|
F($(le), {
|
|
3961
3966
|
size: e.size,
|
|
3962
3967
|
onClick: h,
|
|
3963
3968
|
plain: ""
|
|
3964
3969
|
}, {
|
|
3965
|
-
default:
|
|
3966
|
-
|
|
3970
|
+
default: x(() => v[1] || (v[1] = [
|
|
3971
|
+
J("清空")
|
|
3967
3972
|
])),
|
|
3968
3973
|
_: 1,
|
|
3969
3974
|
__: [1]
|
|
3970
3975
|
}, 8, ["size"]),
|
|
3971
|
-
|
|
3976
|
+
D("div", Rc, [
|
|
3972
3977
|
F($(le), {
|
|
3973
3978
|
size: e.size,
|
|
3974
3979
|
onClick: v[0] || (v[0] = (g) => n.value = !1),
|
|
3975
3980
|
plain: ""
|
|
3976
3981
|
}, {
|
|
3977
|
-
default:
|
|
3978
|
-
|
|
3982
|
+
default: x(() => v[2] || (v[2] = [
|
|
3983
|
+
J("关闭")
|
|
3979
3984
|
])),
|
|
3980
3985
|
_: 1,
|
|
3981
3986
|
__: [2]
|
|
@@ -3986,8 +3991,8 @@ const [Xu, Ee] = Yu(
|
|
|
3986
3991
|
size: e.size,
|
|
3987
3992
|
onClick: y
|
|
3988
3993
|
}, {
|
|
3989
|
-
default:
|
|
3990
|
-
|
|
3994
|
+
default: x(() => v[3] || (v[3] = [
|
|
3995
|
+
J("搜索")
|
|
3991
3996
|
])),
|
|
3992
3997
|
_: 1,
|
|
3993
3998
|
__: [3]
|
|
@@ -4008,30 +4013,30 @@ const [Xu, Ee] = Yu(
|
|
|
4008
4013
|
name: "JcListLayout",
|
|
4009
4014
|
__name: "index",
|
|
4010
4015
|
setup(e) {
|
|
4011
|
-
return (t, n) => (
|
|
4012
|
-
t.$slots["top-body"] ? (
|
|
4016
|
+
return (t, n) => (L(), W("div", Uc, [
|
|
4017
|
+
t.$slots["top-body"] ? (L(), Y($(Kt), {
|
|
4013
4018
|
key: 0,
|
|
4014
4019
|
class: "top-card",
|
|
4015
4020
|
shadow: "never"
|
|
4016
4021
|
}, {
|
|
4017
|
-
default:
|
|
4022
|
+
default: x(() => [
|
|
4018
4023
|
ae(t.$slots, "top-body")
|
|
4019
4024
|
]),
|
|
4020
4025
|
_: 3
|
|
4021
|
-
})) :
|
|
4022
|
-
t.$slots["bottom-header"] ? (
|
|
4026
|
+
})) : oe("", !0),
|
|
4027
|
+
t.$slots["bottom-header"] ? (L(), W("div", Hc, [
|
|
4023
4028
|
ae(t.$slots, "bottom-header")
|
|
4024
|
-
])) :
|
|
4025
|
-
t.$slots["bottom-body"] ? (
|
|
4029
|
+
])) : oe("", !0),
|
|
4030
|
+
t.$slots["bottom-body"] ? (L(), Y($(Kt), {
|
|
4026
4031
|
key: 2,
|
|
4027
4032
|
class: "bottom-card",
|
|
4028
4033
|
shadow: "never"
|
|
4029
4034
|
}, {
|
|
4030
|
-
default:
|
|
4035
|
+
default: x(() => [
|
|
4031
4036
|
ae(t.$slots, "bottom-body")
|
|
4032
4037
|
]),
|
|
4033
4038
|
_: 3
|
|
4034
|
-
})) :
|
|
4039
|
+
})) : oe("", !0)
|
|
4035
4040
|
]));
|
|
4036
4041
|
}
|
|
4037
4042
|
}), qc = (e) => (e.install = (t) => {
|