@es-plus/vue2 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.
@@ -1,1465 +1,45 @@
1
- import { getNestedValue as te, setNestedValue as Y, resolveFormLayProps as ut, getRowColsAlgorithm as ro, configFormField as io, formatConfigOut as ao, getEveryFormQueryField as so, queryTableListMethod as lo, getGlobalConfig as Pe, getButtonPosition as en, createSelectionState as co, restoreSelectionForPage as uo, clearAllSelection as fo, applySelectionChange as po, isObject as ke, findValueByKey as vo, configureEsPlus as go } from "@es-plus/core";
2
- import { configureEsPlus as Ui } from "@es-plus/core";
3
- import * as mo from "vue";
4
- import mn from "vue";
5
- import { MessageBox as tn } from "element-ui";
6
- var Nt = function(t, e) {
7
- return Nt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(o, n) {
8
- o.__proto__ = n;
9
- } || function(o, n) {
10
- for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (o[r] = n[r]);
11
- }, Nt(t, e);
12
- };
13
- function yo(t, e) {
14
- if (typeof e != "function" && e !== null)
15
- throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
16
- Nt(t, e);
17
- function o() {
18
- this.constructor = t;
19
- }
20
- t.prototype = e === null ? Object.create(e) : (o.prototype = e.prototype, new o());
21
- }
22
- var Fe = function() {
23
- return Fe = Object.assign || function(e) {
24
- for (var o, n = 1, r = arguments.length; n < r; n++) {
25
- o = arguments[n];
26
- for (var a in o) Object.prototype.hasOwnProperty.call(o, a) && (e[a] = o[a]);
27
- }
28
- return e;
29
- }, Fe.apply(this, arguments);
30
- };
31
- function et(t) {
32
- var e = typeof Symbol == "function" && Symbol.iterator, o = e && t[e], n = 0;
33
- if (o) return o.call(t);
34
- if (t && typeof t.length == "number") return {
35
- next: function() {
36
- return t && n >= t.length && (t = void 0), { value: t && t[n++], done: !t };
37
- }
38
- };
39
- throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
40
- }
41
- function yn(t, e) {
42
- var o = typeof Symbol == "function" && t[Symbol.iterator];
43
- if (!o) return t;
44
- var n = o.call(t), r, a = [], i;
45
- try {
46
- for (; (e === void 0 || e-- > 0) && !(r = n.next()).done; ) a.push(r.value);
47
- } catch (l) {
48
- i = { error: l };
49
- } finally {
50
- try {
51
- r && !r.done && (o = n.return) && o.call(n);
52
- } finally {
53
- if (i) throw i.error;
54
- }
55
- }
56
- return a;
57
- }
58
- function hn(t, e, o) {
59
- if (arguments.length === 2) for (var n = 0, r = e.length, a; n < r; n++)
60
- (a || !(n in e)) && (a || (a = Array.prototype.slice.call(e, 0, n)), a[n] = e[n]);
61
- return t.concat(a || Array.prototype.slice.call(e));
62
- }
63
- function Ht(t) {
64
- var e;
65
- D(t, (e = he()) === null || e === void 0 ? void 0 : e.proxy);
66
- }
67
- var je, ft = [], bn = (
68
- /** @class */
69
- function() {
70
- function t(e) {
71
- this.active = !0, this.effects = [], this.cleanups = [], this.vm = e;
72
- }
73
- return t.prototype.run = function(e) {
74
- if (this.active)
75
- try {
76
- return this.on(), e();
77
- } finally {
78
- this.off();
79
- }
80
- else process.env.NODE_ENV !== "production" && Ht("cannot run an inactive effect scope.");
81
- }, t.prototype.on = function() {
82
- this.active && (ft.push(this), je = this);
83
- }, t.prototype.off = function() {
84
- this.active && (ft.pop(), je = ft[ft.length - 1]);
85
- }, t.prototype.stop = function() {
86
- this.active && (this.vm.$destroy(), this.effects.forEach(function(e) {
87
- return e.stop();
88
- }), this.cleanups.forEach(function(e) {
89
- return e();
90
- }), this.active = !1);
91
- }, t;
92
- }()
93
- ), _n = (
94
- /** @class */
95
- function(t) {
96
- yo(e, t);
97
- function e(o) {
98
- o === void 0 && (o = !1);
99
- var n = this, r = void 0;
100
- return wo(function() {
101
- r = Me(pe());
102
- }), n = t.call(this, r) || this, o || ho(n), n;
103
- }
104
- return e;
105
- }(bn)
106
- );
107
- function ho(t, e) {
108
- var o;
109
- if (e = e || je, e && e.active) {
110
- e.effects.push(t);
111
- return;
112
- }
113
- var n = (o = he()) === null || o === void 0 ? void 0 : o.proxy;
114
- n && n.$on("hook:destroyed", function() {
115
- return t.stop();
116
- });
117
- }
118
- function bo(t) {
119
- return new _n(t);
120
- }
121
- function Sn() {
122
- return je;
123
- }
124
- function _o(t) {
125
- je ? je.cleanups.push(t) : process.env.NODE_ENV !== "production" && Ht("onScopeDispose() is called when there is no active effect scope to be associated with.");
126
- }
127
- function Cn() {
128
- var t, e;
129
- return ((t = Sn()) === null || t === void 0 ? void 0 : t.vm) || ((e = he()) === null || e === void 0 ? void 0 : e.proxy);
130
- }
131
- function So(t) {
132
- if (!t.scope) {
133
- var e = new bn(t.proxy);
134
- t.scope = e, t.proxy.$on("hook:destroyed", function() {
135
- return e.stop();
136
- });
137
- }
138
- return t.scope;
139
- }
140
- var Dt = void 0;
141
- try {
142
- var Be = require("vue");
143
- Be && nn(Be) ? Dt = Be : Be && "default" in Be && nn(Be.default) && (Dt = Be.default);
144
- } catch (t) {
145
- }
146
- var $e = null, He = null, pt = !0, On = "__composition_api_installed__";
147
- function nn(t) {
148
- return t && oe(t) && t.name === "Vue";
149
- }
150
- function Co(t) {
151
- return $e && fe(t, On);
152
- }
153
- function pe() {
154
- return process.env.NODE_ENV !== "production" && wt($e, "must call Vue.use(VueCompositionAPI) before using any function."), $e;
155
- }
156
- function wn() {
157
- var t = $e || Dt;
158
- return process.env.NODE_ENV !== "production" && wt(t, "No vue dependency found."), t;
159
- }
160
- function Oo(t) {
161
- process.env.NODE_ENV !== "production" && $e && t.__proto__ !== $e.__proto__ && D("[vue-composition-api] another instance of Vue installed"), $e = t, Object.defineProperty(t, On, {
162
- configurable: !0,
163
- writable: !0,
164
- value: !0
165
- });
166
- }
167
- function wo(t) {
168
- var e = pt;
169
- pt = !1;
170
- try {
171
- t();
172
- } finally {
173
- pt = e;
174
- }
175
- }
176
- function mt(t) {
177
- if (pt) {
178
- var e = He;
179
- e == null || e.scope.off(), He = t, He == null || He.scope.on();
180
- }
181
- }
182
- function he() {
183
- return He;
184
- }
185
- var kt = /* @__PURE__ */ new WeakMap();
186
- function yt(t) {
187
- if (kt.has(t))
188
- return kt.get(t);
189
- var e = {
190
- proxy: t,
191
- update: t.$forceUpdate,
192
- type: t.$options,
193
- uid: t._uid,
194
- // $emit is defined on prototype and it expected to be bound
195
- emit: t.$emit.bind(t),
196
- parent: null,
197
- root: null
198
- // to be immediately set
199
- };
200
- So(e);
201
- var o = [
202
- "data",
203
- "props",
204
- "attrs",
205
- "refs",
206
- "vnode",
207
- "slots"
208
- ];
209
- return o.forEach(function(n) {
210
- G(e, n, {
211
- get: function() {
212
- return t["$".concat(n)];
213
- }
214
- });
215
- }), G(e, "isMounted", {
216
- get: function() {
217
- return t._isMounted;
218
- }
219
- }), G(e, "isUnmounted", {
220
- get: function() {
221
- return t._isDestroyed;
222
- }
223
- }), G(e, "isDeactivated", {
224
- get: function() {
225
- return t._inactive;
226
- }
227
- }), G(e, "emitted", {
228
- get: function() {
229
- return t._events;
230
- }
231
- }), kt.set(t, e), t.$parent && (e.parent = yt(t.$parent)), t.$root && (e.root = yt(t.$root)), e;
232
- }
233
- var Eo = function(t) {
234
- return Object.prototype.toString.call(t);
235
- };
236
- function on(t) {
237
- return typeof t == "function" && /native code/.test(t.toString());
238
- }
239
- var En = typeof Symbol != "undefined" && on(Symbol) && typeof Reflect != "undefined" && on(Reflect.ownKeys), _e = function(t) {
240
- return t;
241
- };
242
- function G(t, e, o) {
243
- var n = o.get, r = o.set;
244
- Object.defineProperty(t, e, {
245
- enumerable: !0,
246
- configurable: !0,
247
- get: n || _e,
248
- set: r || _e
249
- });
250
- }
251
- function Ot(t, e, o, n) {
252
- Object.defineProperty(t, e, {
253
- value: o,
254
- enumerable: !!n,
255
- writable: !0,
256
- configurable: !0
257
- });
258
- }
259
- function fe(t, e) {
260
- return Object.hasOwnProperty.call(t, e);
261
- }
262
- function wt(t, e) {
263
- if (!t)
264
- throw new Error("[vue-composition-api] ".concat(e));
265
- }
266
- function xn(t) {
267
- return typeof t == "string" || typeof t == "number" || // $flow-disable-line
268
- typeof t == "symbol" || typeof t == "boolean";
269
- }
270
- function re(t) {
271
- return Array.isArray(t);
272
- }
273
- var xo = Object.prototype.toString, In = function(t) {
274
- return xo.call(t);
275
- }, Io = function(t) {
276
- return In(t) === "[object Map]";
277
- }, Fo = function(t) {
278
- return In(t) === "[object Set]";
279
- }, Ro = 4294967295;
280
- function Fn(t) {
281
- var e = parseFloat(String(t));
282
- return e >= 0 && Math.floor(e) === e && isFinite(t) && e <= Ro;
283
- }
284
- function Ee(t) {
285
- return t !== null && typeof t == "object";
286
- }
287
- function de(t) {
288
- return Eo(t) === "[object Object]";
289
- }
290
- function oe(t) {
291
- return typeof t == "function";
292
- }
293
- function Rn(t) {
294
- return t == null;
295
- }
296
- function D(t, e) {
297
- var o = wn();
298
- !o || !o.util ? console.warn("[vue-composition-api] ".concat(t)) : o.util.warn(t, e);
299
- }
300
- function Bo(t, e, o) {
301
- if (process.env.NODE_ENV !== "production" && D("Error in ".concat(o, ': "').concat(t.toString(), '"'), e), typeof window != "undefined" && typeof console != "undefined")
302
- console.error(t);
303
- else
304
- throw t;
305
- }
306
- function ko(t, e) {
307
- return t === e ? t !== 0 || 1 / t === 1 / e : t !== t && e !== e;
308
- }
309
- function Bn(t, e) {
310
- return e = e || he(), process.env.NODE_ENV !== "production" && !e && D("".concat(t, " is called when there is no active component instance to be ") + "associated with. Lifecycle injection APIs can only be used during execution of setup()."), e;
311
- }
312
- function Me(t, e) {
313
- e === void 0 && (e = {});
314
- var o = t.config.silent;
315
- t.config.silent = !0;
316
- var n = new t(e);
317
- return t.config.silent = o, n;
318
- }
319
- function $o(t) {
320
- var e = pe();
321
- return e && t instanceof e;
322
- }
323
- function Po(t, e) {
324
- return function() {
325
- for (var o = [], n = 0; n < arguments.length; n++)
326
- o[n] = arguments[n];
327
- return t.$scopedSlots[e] ? t.$scopedSlots[e].apply(t, o) : process.env.NODE_ENV !== "production" ? D("slots.".concat(e, '() got called outside of the "render()" scope'), t) : void 0;
328
- };
329
- }
330
- function No(t, e) {
331
- var o;
332
- if (!t)
333
- o = {};
334
- else {
335
- if (t._normalized)
336
- return t._normalized;
337
- o = {};
338
- for (var n in t)
339
- t[n] && n[0] !== "$" && (o[n] = !0);
340
- }
341
- for (var n in e)
342
- n in o || (o[n] = !0);
343
- return o;
344
- }
345
- var $t, Do = function() {
346
- if (!$t) {
347
- var t = Me(pe(), {
348
- computed: {
349
- value: function() {
350
- return 0;
351
- }
352
- }
353
- }), e = t._computedWatchers.value.constructor, o = t._data.__ob__.dep.constructor;
354
- $t = {
355
- Watcher: e,
356
- Dep: o
357
- }, t.$destroy();
358
- }
359
- return $t;
360
- };
361
- function kn(t) {
362
- return En ? Symbol.for(t) : t;
363
- }
364
- var Ve = kn("composition-api.preFlushQueue"), Je = kn("composition-api.postFlushQueue"), Z = "composition-api.refKey", rn = /* @__PURE__ */ new WeakMap(), $n = /* @__PURE__ */ new WeakMap(), Et = /* @__PURE__ */ new WeakMap();
365
- function Pn(t, e, o) {
366
- var n = pe(), r = n.util, a = r.warn, i = r.defineReactive;
367
- process.env.NODE_ENV !== "production" && (Rn(t) || xn(t)) && a("Cannot set reactive property on undefined, null, or primitive value: ".concat(t));
368
- var l = t.__ob__;
369
- function y() {
370
- l && Ee(o) && !fe(o, "__ob__") && zt(o);
371
- }
372
- if (re(t)) {
373
- if (Fn(e))
374
- return t.length = Math.max(t.length, e), t.splice(e, 1, o), y(), o;
375
- if (e === "length" && o !== t.length)
376
- return t.length = o, l == null || l.dep.notify(), o;
377
- }
378
- return e in t && !(e in Object.prototype) ? (t[e] = o, y(), o) : t._isVue || l && l.vmCount ? (process.env.NODE_ENV !== "production" && a("Avoid adding reactive properties to a Vue instance or its root $data at runtime - declare it upfront in the data option."), o) : l ? (i(l.value, e, o), Tn(t, e, o), y(), l.dep.notify(), o) : (t[e] = o, o);
379
- }
380
- var Nn = !1;
381
- function Ao() {
382
- return Nn;
383
- }
384
- function an(t) {
385
- Nn = t;
386
- }
387
- var Lt = (
388
- /** @class */
389
- /* @__PURE__ */ function() {
390
- function t(e) {
391
- var o = e.get, n = e.set;
392
- G(this, "value", {
393
- get: o,
394
- set: n
395
- });
396
- }
397
- return t;
398
- }()
399
- );
400
- function qe(t, e, o) {
401
- e === void 0 && (e = !1), o === void 0 && (o = !1);
402
- var n = new Lt(t);
403
- o && (n.effect = !0);
404
- var r = Object.seal(n);
405
- return e && Et.set(r, !0), r;
406
- }
407
- function ht(t) {
408
- var e;
409
- if (V(t))
410
- return t;
411
- var o = tt((e = {}, e[Z] = t, e));
412
- return qe({
413
- get: function() {
414
- return o[Z];
415
- },
416
- set: function(n) {
417
- return o[Z] = n;
418
- }
419
- });
420
- }
421
- function V(t) {
422
- return t instanceof Lt;
423
- }
424
- function At(t) {
425
- return V(t) ? t.value : t;
426
- }
427
- function Dn(t) {
428
- if (process.env.NODE_ENV !== "production" && !ue(t) && D("toRefs() expects a reactive object but received a plain one."), !de(t))
429
- return t;
430
- var e = {};
431
- for (var o in t)
432
- e[o] = An(t, o);
433
- return e;
434
- }
435
- function To(t) {
436
- var e = ht(0);
437
- return qe(t(function() {
438
- return void e.value;
439
- }, function() {
440
- ++e.value;
441
- }));
442
- }
443
- function An(t, e) {
444
- e in t || Pn(t, e, void 0);
445
- var o = t[e];
446
- return V(o) ? o : qe({
447
- get: function() {
448
- return t[e];
449
- },
450
- set: function(n) {
451
- return t[e] = n;
452
- }
453
- });
454
- }
455
- function Ho(t) {
456
- var e;
457
- if (V(t))
458
- return t;
459
- var o = Ln((e = {}, e[Z] = t, e));
460
- return qe({
461
- get: function() {
462
- return o[Z];
463
- },
464
- set: function(n) {
465
- return o[Z] = n;
466
- }
467
- });
468
- }
469
- function Lo(t) {
470
- V(t) && (an(!0), t.value = t.value, an(!1));
471
- }
472
- function Vo(t) {
473
- var e, o, n;
474
- if (ue(t))
475
- return t;
476
- var r = tt((e = {}, e[Z] = t, e));
477
- Ot(r, Z, r[Z], !1);
478
- var a = function(c) {
479
- G(r, c, {
480
- get: function() {
481
- return V(r[Z][c]) ? r[Z][c].value : r[Z][c];
482
- },
483
- set: function(p) {
484
- if (V(r[Z][c]))
485
- return r[Z][c].value = At(p);
486
- r[Z][c] = At(p);
487
- }
488
- });
489
- };
490
- try {
491
- for (var i = et(Object.keys(t)), l = i.next(); !l.done; l = i.next()) {
492
- var y = l.value;
493
- a(y);
494
- }
495
- } catch (c) {
496
- o = { error: c };
497
- } finally {
498
- try {
499
- l && !l.done && (n = i.return) && n.call(i);
500
- } finally {
501
- if (o) throw o.error;
502
- }
503
- }
504
- return r;
505
- }
506
- var Vt = "__v_skip";
507
- function xe(t) {
508
- var e;
509
- return !!(t && fe(t, "__ob__") && typeof t.__ob__ == "object" && (!((e = t.__ob__) === null || e === void 0) && e[Vt]));
510
- }
511
- function ue(t) {
512
- var e;
513
- return !!(t && fe(t, "__ob__") && typeof t.__ob__ == "object" && !(!((e = t.__ob__) === null || e === void 0) && e[Vt]));
514
- }
515
- function Tt(t) {
516
- if (!(!de(t) || xe(t) || re(t) || V(t) || $o(t) || rn.has(t))) {
517
- rn.set(t, !0);
518
- for (var e = Object.keys(t), o = 0; o < e.length; o++)
519
- Tn(t, e[o]);
520
- }
521
- }
522
- function Tn(t, e, o) {
523
- if (e !== "__ob__" && !xe(t[e])) {
524
- var n, r, a = Object.getOwnPropertyDescriptor(t, e);
525
- if (a) {
526
- if (a.configurable === !1)
527
- return;
528
- n = a.get, r = a.set, (!n || r) && arguments.length === 2 && (o = t[e]);
529
- }
530
- Tt(o), G(t, e, {
531
- get: function() {
532
- var l = n ? n.call(t) : o;
533
- return e !== Z && V(l) ? l.value : l;
534
- },
535
- set: function(l) {
536
- n && !r || (e !== Z && V(o) && !V(l) ? o.value = l : (r && r.call(t, l), o = l), Tt(l));
537
- }
538
- });
539
- }
540
- }
541
- function xt(t) {
542
- var e = wn(), o;
543
- if (e.observable)
544
- o = e.observable(t);
545
- else {
546
- var n = Me(e, {
547
- data: {
548
- $$state: t
549
- }
550
- });
551
- o = n._data.$$state;
552
- }
553
- return fe(o, "__ob__") || zt(o), o;
554
- }
555
- function zt(t, e) {
556
- var o, n;
557
- if (e === void 0 && (e = /* @__PURE__ */ new Set()), !(e.has(t) || fe(t, "__ob__") || !Object.isExtensible(t))) {
558
- Ot(t, "__ob__", zo(t)), e.add(t);
559
- try {
560
- for (var r = et(Object.keys(t)), a = r.next(); !a.done; a = r.next()) {
561
- var i = a.value, l = t[i];
562
- !(de(l) || re(l)) || xe(l) || !Object.isExtensible(l) || zt(l, e);
563
- }
564
- } catch (y) {
565
- o = { error: y };
566
- } finally {
567
- try {
568
- a && !a.done && (n = r.return) && n.call(r);
569
- } finally {
570
- if (o) throw o.error;
571
- }
572
- }
573
- }
574
- }
575
- function zo(t) {
576
- return t === void 0 && (t = {}), {
577
- value: t,
578
- dep: {
579
- notify: _e,
580
- depend: _e,
581
- addSub: _e,
582
- removeSub: _e
583
- }
584
- };
585
- }
586
- function Hn() {
587
- return xt({}).__ob__;
588
- }
589
- function Ln(t) {
590
- var e, o;
591
- if (!Ee(t))
592
- return process.env.NODE_ENV !== "production" && D('"shallowReactive()" must be called on an object.'), t;
593
- if (!(de(t) || re(t)) || xe(t) || !Object.isExtensible(t))
594
- return t;
595
- var n = xt(re(t) ? [] : {}), r = n.__ob__, a = function(c) {
596
- var p = t[c], s, m, v = Object.getOwnPropertyDescriptor(t, c);
597
- if (v) {
598
- if (v.configurable === !1)
599
- return "continue";
600
- s = v.get, m = v.set;
601
- }
602
- G(n, c, {
603
- get: function() {
604
- var f;
605
- return (f = r.dep) === null || f === void 0 || f.depend(), p;
606
- },
607
- set: function(f) {
608
- var S;
609
- s && !m || !Ao() && p === f || (m ? m.call(t, f) : p = f, (S = r.dep) === null || S === void 0 || S.notify());
610
- }
611
- });
612
- };
613
- try {
614
- for (var i = et(Object.keys(t)), l = i.next(); !l.done; l = i.next()) {
615
- var y = l.value;
616
- a(y);
617
- }
618
- } catch (c) {
619
- e = { error: c };
620
- } finally {
621
- try {
622
- l && !l.done && (o = i.return) && o.call(i);
623
- } finally {
624
- if (e) throw e.error;
625
- }
626
- }
627
- return n;
628
- }
629
- function tt(t) {
630
- if (!Ee(t))
631
- return process.env.NODE_ENV !== "production" && D('"reactive()" must be called on an object.'), t;
632
- if (!(de(t) || re(t)) || xe(t) || !Object.isExtensible(t))
633
- return t;
634
- var e = xt(t);
635
- return Tt(e), e;
636
- }
637
- function jo(t) {
638
- if (!(de(t) || re(t)) || !Object.isExtensible(t))
639
- return t;
640
- var e = Hn();
641
- return e[Vt] = !0, Ot(t, "__ob__", e), $n.set(t, !0), t;
642
- }
643
- function Mo(t) {
644
- var e;
645
- return xe(t) || !Object.isExtensible(t) ? t : ((e = t == null ? void 0 : t.__ob__) === null || e === void 0 ? void 0 : e.value) || t;
646
- }
647
- function qo(t) {
648
- return Et.has(t);
649
- }
650
- function Wo(t) {
651
- return process.env.NODE_ENV !== "production" && !Ee(t) ? D("value cannot be made reactive: ".concat(String(t))) : Et.set(t, !0), t;
652
- }
653
- function Uo(t) {
654
- var e, o;
655
- if (!Ee(t))
656
- return process.env.NODE_ENV !== "production" && D("value cannot be made reactive: ".concat(String(t))), t;
657
- if (!(de(t) || re(t)) || !Object.isExtensible(t) && !V(t))
658
- return t;
659
- var n = V(t) ? new Lt({}) : ue(t) ? xt({}) : {}, r = tt({}), a = r.__ob__, i = function(p) {
660
- var s = t[p], m, v = Object.getOwnPropertyDescriptor(t, p);
661
- if (v) {
662
- if (v.configurable === !1 && !V(t))
663
- return "continue";
664
- m = v.get;
665
- }
666
- G(n, p, {
667
- get: function() {
668
- var f = m ? m.call(t) : s;
669
- return a.dep.depend(), f;
670
- },
671
- set: function(h) {
672
- process.env.NODE_ENV !== "production" && D('Set operation on key "'.concat(p, '" failed: target is readonly.'));
673
- }
674
- });
675
- };
676
- try {
677
- for (var l = et(Object.keys(t)), y = l.next(); !y.done; y = l.next()) {
678
- var c = y.value;
679
- i(c);
680
- }
681
- } catch (p) {
682
- e = { error: p };
683
- } finally {
684
- try {
685
- y && !y.done && (o = l.return) && o.call(l);
686
- } finally {
687
- if (e) throw e.error;
688
- }
689
- }
690
- return Et.set(n, !0), n;
691
- }
692
- function Ko(t, e) {
693
- var o = pe(), n = o.util.warn;
694
- if (process.env.NODE_ENV !== "production" && (Rn(t) || xn(t)) && n("Cannot delete reactive property on undefined, null, or primitive value: ".concat(t)), re(t) && Fn(e)) {
695
- t.splice(e, 1);
696
- return;
697
- }
698
- var r = t.__ob__;
699
- if (t._isVue || r && r.vmCount) {
700
- process.env.NODE_ENV !== "production" && n("Avoid deleting properties on a Vue instance or its root $data - just set it to null.");
701
- return;
702
- }
703
- fe(t, e) && (delete t[e], r && r.dep.notify());
704
- }
705
- var Qo = function(t) {
706
- return "on".concat(t[0].toUpperCase() + t.slice(1));
707
- };
708
- function Oe(t) {
709
- return function(e, o) {
710
- var n = Bn(Qo(t), o);
711
- return n && Jo(pe(), n, t, e);
712
- };
713
- }
714
- function Jo(t, e, o, n) {
715
- var r = e.proxy.$options, a = t.config.optionMergeStrategies[o], i = Go(e, n);
716
- return r[o] = a(r[o], i), i;
717
- }
718
- function Go(t, e) {
719
- return function() {
720
- for (var o = [], n = 0; n < arguments.length; n++)
721
- o[n] = arguments[n];
722
- var r = he();
723
- mt(t);
724
- try {
725
- return e.apply(void 0, hn([], yn(o), !1));
726
- } finally {
727
- mt(r);
728
- }
729
- };
730
- }
731
- var Yo = Oe("beforeMount"), Zo = Oe("mounted"), Xo = Oe("beforeUpdate"), er = Oe("updated"), tr = Oe("beforeDestroy"), nr = Oe("destroyed"), or = Oe("errorCaptured"), rr = Oe("activated"), ir = Oe("deactivated"), ar = Oe("serverPrefetch"), vt;
732
- function sr() {
733
- bt(this, Ve);
734
- }
735
- function lr() {
736
- bt(this, Je);
737
- }
738
- function cr(t) {
739
- return t[Ve] !== void 0;
740
- }
741
- function ur(t) {
742
- t[Ve] = [], t[Je] = [], t.$on("hook:beforeUpdate", sr), t.$on("hook:updated", lr);
743
- }
744
- function fr(t) {
745
- return Fe({
746
- immediate: !1,
747
- deep: !1,
748
- flush: "pre"
749
- }, t);
750
- }
751
- function dr(t) {
752
- return Fe({
753
- flush: "pre"
754
- }, t);
755
- }
756
- function Vn() {
757
- var t = Cn();
758
- return t ? cr(t) || ur(t) : (vt || (vt = Me(pe())), t = vt), t;
759
- }
760
- function bt(t, e) {
761
- for (var o = t[e], n = 0; n < o.length; n++)
762
- o[n]();
763
- o.length = 0;
764
- }
765
- function pr(t, e, o) {
766
- var n = function() {
767
- t.$nextTick(function() {
768
- t[Ve].length && bt(t, Ve), t[Je].length && bt(t, Je);
769
- });
770
- };
771
- switch (o) {
772
- case "pre":
773
- n(), t[Ve].push(e);
774
- break;
775
- case "post":
776
- n(), t[Je].push(e);
777
- break;
778
- default:
779
- wt(!1, 'flush must be one of ["post", "pre", "sync"], but got '.concat(o));
780
- break;
781
- }
782
- }
783
- function vr(t, e, o, n) {
784
- var r = t._watchers.length;
785
- return t.$watch(e, o, {
786
- immediate: n.immediateInvokeCallback,
787
- deep: n.deep,
788
- lazy: n.noRun,
789
- sync: n.sync,
790
- before: n.before
791
- }), t._watchers[r];
792
- }
793
- function sn(t, e) {
794
- var o = t.teardown;
795
- t.teardown = function() {
796
- for (var n = [], r = 0; r < arguments.length; r++)
797
- n[r] = arguments[r];
798
- o.apply(t, n), e();
799
- };
800
- }
801
- function zn(t, e, o, n) {
802
- var r;
803
- process.env.NODE_ENV !== "production" && !o && (n.immediate !== void 0 && D('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'), n.deep !== void 0 && D('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'));
804
- var a = n.flush, i = a === "sync", l, y = function(O) {
805
- l = function() {
806
- try {
807
- O();
808
- } catch (u) {
809
- Bo(u, t, "onCleanup()");
810
- }
811
- };
812
- }, c = function() {
813
- l && (l(), l = null);
814
- }, p = function(O) {
815
- return i || /* without a current active instance, ignore pre|post mode */
816
- t === vt ? O : function() {
817
- for (var u = [], g = 0; g < arguments.length; g++)
818
- u[g] = arguments[g];
819
- return pr(t, function() {
820
- O.apply(void 0, hn([], yn(u), !1));
821
- }, a);
822
- };
823
- };
824
- if (o === null) {
825
- var s = !1, m = function() {
826
- if (!s)
827
- try {
828
- s = !0, e(y);
829
- } finally {
830
- s = !1;
831
- }
832
- }, v = vr(t, m, _e, {
833
- deep: n.deep || !1,
834
- sync: i,
835
- before: c
836
- });
837
- sn(v, c), v.lazy = !1;
838
- var h = v.get.bind(v);
839
- return v.get = p(h), function() {
840
- v.teardown();
841
- };
842
- }
843
- var f = n.deep, S = !1, F;
844
- if (V(e) ? F = function() {
845
- return e.value;
846
- } : ue(e) ? (F = function() {
847
- return e;
848
- }, f = !0) : re(e) ? (S = !0, F = function() {
849
- return e.map(function(O) {
850
- return V(O) ? O.value : ue(O) ? Le(O) : oe(O) ? O() : (process.env.NODE_ENV !== "production" && D("Invalid watch source: ".concat(JSON.stringify(O), `.
851
- A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.`), t), _e);
852
- });
853
- }) : oe(e) ? F = e : (F = _e, process.env.NODE_ENV !== "production" && D("Invalid watch source: ".concat(JSON.stringify(e), `.
854
- A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.`), t)), f) {
855
- var H = F;
856
- F = function() {
857
- return Le(H());
858
- };
859
- }
860
- var M = function(O, u) {
861
- if (!(!f && S && O.every(function(g, _) {
862
- return ko(g, u[_]);
863
- })))
864
- return c(), o(O, u, y);
865
- }, W = p(M);
866
- if (n.immediate) {
867
- var U = W, J = function(O, u) {
868
- return J = U, M(O, re(O) ? [] : u);
869
- };
870
- W = function(O, u) {
871
- return J(O, u);
872
- };
873
- }
874
- var K = t.$watch(F, W, {
875
- immediate: n.immediate,
876
- deep: f,
877
- sync: i
878
- }), Q = t._watchers[t._watchers.length - 1];
879
- return ue(Q.value) && (!((r = Q.value.__ob__) === null || r === void 0) && r.dep) && f && Q.value.__ob__.dep.addSub({
880
- update: function() {
881
- Q.run();
882
- }
883
- }), sn(Q, c), function() {
884
- K();
885
- };
886
- }
887
- function jt(t, e) {
888
- var o = dr(e), n = Vn();
889
- return zn(n, t, null, o);
890
- }
891
- function gr(t) {
892
- return jt(t, { flush: "post" });
893
- }
894
- function mr(t) {
895
- return jt(t, { flush: "sync" });
896
- }
897
- function yr(t, e, o) {
898
- var n = null;
899
- oe(e) ? n = e : (process.env.NODE_ENV !== "production" && D("`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."), o = e, n = null);
900
- var r = fr(o), a = Vn();
901
- return zn(a, t, n, r);
902
- }
903
- function Le(t, e) {
904
- if (e === void 0 && (e = /* @__PURE__ */ new Set()), !Ee(t) || e.has(t) || $n.has(t))
905
- return t;
906
- if (e.add(t), V(t))
907
- Le(t.value, e);
908
- else if (re(t))
909
- for (var o = 0; o < t.length; o++)
910
- Le(t[o], e);
911
- else if (Fo(t) || Io(t))
912
- t.forEach(function(r) {
913
- Le(r, e);
914
- });
915
- else if (de(t))
916
- for (var n in t)
917
- Le(t[n], e);
918
- return t;
919
- }
920
- function hr(t) {
921
- var e = Cn(), o, n;
922
- oe(t) ? o = t : (o = t.get, n = t.set);
923
- var r, a;
924
- if (e && !e.$isServer) {
925
- var i = Do(), l = i.Watcher, y = i.Dep, c;
926
- a = function() {
927
- return c || (c = new l(e, o, _e, { lazy: !0 })), c.dirty && c.evaluate(), y.target && c.depend(), c.value;
928
- }, r = function(s) {
929
- if (process.env.NODE_ENV !== "production" && !n) {
930
- D("Write operation failed: computed value is readonly.", e);
931
- return;
932
- }
933
- n && n(s);
934
- };
935
- } else {
936
- var p = Me(pe(), {
937
- computed: {
938
- $$state: {
939
- get: o,
940
- set: n
941
- }
942
- }
943
- });
944
- e && e.$on("hook:destroyed", function() {
945
- return p.$destroy();
946
- }), a = function() {
947
- return p.$$state;
948
- }, r = function(s) {
949
- if (process.env.NODE_ENV !== "production" && !n) {
950
- D("Write operation failed: computed value is readonly.", e);
951
- return;
952
- }
953
- p.$$state = s;
954
- };
955
- }
956
- return qe({
957
- get: a,
958
- set: r
959
- }, !n, !0);
960
- }
961
- var jn = {};
962
- function br(t, e) {
963
- for (var o = e; o; ) {
964
- if (o._provided && fe(o._provided, t))
965
- return o._provided[t];
966
- o = o.$parent;
967
- }
968
- return jn;
969
- }
970
- function _r(t, e) {
971
- var o, n = (o = Bn("provide")) === null || o === void 0 ? void 0 : o.proxy;
972
- if (n) {
973
- if (!n._provided) {
974
- var r = {};
975
- G(n, "_provided", {
976
- get: function() {
977
- return r;
978
- },
979
- set: function(a) {
980
- return Object.assign(r, a);
981
- }
982
- });
983
- }
984
- n._provided[t] = e;
985
- }
986
- }
987
- function Sr(t, e, o) {
988
- var n;
989
- o === void 0 && (o = !1);
990
- var r = (n = he()) === null || n === void 0 ? void 0 : n.proxy;
991
- if (!r) {
992
- process.env.NODE_ENV !== "production" && D("inject() can only be used inside setup() or functional components.");
993
- return;
994
- }
995
- if (!t)
996
- return process.env.NODE_ENV !== "production" && D('injection "'.concat(String(t), '" not found.'), r), e;
997
- var a = br(t, r);
998
- if (a !== jn)
999
- return a;
1000
- if (arguments.length > 1)
1001
- return o && oe(e) ? e() : e;
1002
- process.env.NODE_ENV !== "production" && D('Injection "'.concat(String(t), '" not found.'), r);
1003
- }
1004
- var ln = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {}, Mn = function(t) {
1005
- var e;
1006
- t === void 0 && (t = "$style");
1007
- var o = he();
1008
- if (!o)
1009
- return process.env.NODE_ENV !== "production" && D("useCssModule must be called inside setup()"), ln;
1010
- var n = (e = o.proxy) === null || e === void 0 ? void 0 : e[t];
1011
- return n || (process.env.NODE_ENV !== "production" && D('Current instance does not have CSS module named "'.concat(t, '".')), ln);
1012
- }, Cr = Mn;
1013
- function Or(t, e) {
1014
- e === void 0 && (e = void 0);
1015
- var o = pe(), n = void 0, r = {}, a = {
1016
- config: o.config,
1017
- use: o.use.bind(o),
1018
- mixin: o.mixin.bind(o),
1019
- component: o.component.bind(o),
1020
- provide: function(i, l) {
1021
- return r[i] = l, this;
1022
- },
1023
- directive: function(i, l) {
1024
- return l ? (o.directive(i, l), a) : o.directive(i);
1025
- },
1026
- mount: function(i, l) {
1027
- return n ? (process.env.NODE_ENV !== "production" && D("App has already been mounted.\nIf you want to remount the same app, move your app creation logic into a factory function and create fresh app instances for each mount - e.g. `const createMyApp = () => createApp(App)`"), n) : (n = new o(Fe(Fe({ propsData: e }, t), { provide: Fe(Fe({}, r), t.provide) })), n.$mount(i, l), n);
1028
- },
1029
- unmount: function() {
1030
- n ? (n.$destroy(), n = void 0) : process.env.NODE_ENV !== "production" && D("Cannot unmount an app that is not mounted.");
1031
- }
1032
- };
1033
- return a;
1034
- }
1035
- var wr = function() {
1036
- for (var e, o = [], n = 0; n < arguments.length; n++)
1037
- o[n] = arguments[n];
1038
- return (e = pe()) === null || e === void 0 ? void 0 : e.nextTick.apply(this, o);
1039
- }, dt, Er = function() {
1040
- for (var e, o = [], n = 0; n < arguments.length; n++)
1041
- o[n] = arguments[n];
1042
- var r = (this === null || this === void 0 ? void 0 : this.proxy) || ((e = he()) === null || e === void 0 ? void 0 : e.proxy);
1043
- return r ? r.$createElement.apply(r, o) : (process.env.NODE_ENV !== "production" && D("`createElement()` has been called outside of render function."), dt || (dt = Me(pe()).$createElement), dt.apply(dt, o));
1044
- };
1045
- function xr() {
1046
- return qn().slots;
1047
- }
1048
- function Ir() {
1049
- return qn().attrs;
1050
- }
1051
- function qn() {
1052
- var t = he();
1053
- return process.env.NODE_ENV !== "production" && !t && D("useContext() called without active instance."), t.setupContext;
1054
- }
1055
- function Fr(t, e, o) {
1056
- var n = t.__composition_api_state__ = t.__composition_api_state__ || {};
1057
- n[e] = o;
1058
- }
1059
- function Rr(t, e) {
1060
- return (t.__composition_api_state__ || {})[e];
1061
- }
1062
- var Re = {
1063
- set: Fr,
1064
- get: Rr
1065
- };
1066
- function Br(t, e, o) {
1067
- var n = t.$options.props;
1068
- !(e in t) && !(n && fe(n, e)) ? (V(o) ? G(t, e, {
1069
- get: function() {
1070
- return o.value;
1071
- },
1072
- set: function(r) {
1073
- o.value = r;
1074
- }
1075
- }) : G(t, e, {
1076
- get: function() {
1077
- return ue(o) && o.__ob__.dep.depend(), o;
1078
- },
1079
- set: function(r) {
1080
- o = r;
1081
- }
1082
- }), process.env.NODE_ENV !== "production" && t.$nextTick(function() {
1083
- Object.keys(t._data).indexOf(e) === -1 && (V(o) ? G(t._data, e, {
1084
- get: function() {
1085
- return o.value;
1086
- },
1087
- set: function(r) {
1088
- o.value = r;
1089
- }
1090
- }) : G(t._data, e, {
1091
- get: function() {
1092
- return o;
1093
- },
1094
- set: function(r) {
1095
- o = r;
1096
- }
1097
- }));
1098
- })) : process.env.NODE_ENV !== "production" && (n && fe(n, e) ? D('The setup binding property "'.concat(e, '" is already declared as a prop.'), t) : D('The setup binding property "'.concat(e, '" is already declared.'), t));
1099
- }
1100
- function kr(t) {
1101
- var e = Re.get(t, "rawBindings") || {};
1102
- if (!(!e || !Object.keys(e).length)) {
1103
- for (var o = t.$refs, n = Re.get(t, "refs") || [], r = 0; r < n.length; r++) {
1104
- var a = n[r], i = e[a];
1105
- !o[a] && i && V(i) && (i.value = null);
1106
- }
1107
- for (var l = Object.keys(o), y = [], r = 0; r < l.length; r++) {
1108
- var a = l[r], i = e[a];
1109
- o[a] && i && V(i) && (i.value = o[a], y.push(a));
1110
- }
1111
- Re.set(t, "refs", y);
1112
- }
1113
- }
1114
- function cn(t) {
1115
- for (var e = [t._vnode]; e.length; ) {
1116
- var o = e.pop();
1117
- if (o && (o.context && kr(o.context), o.children))
1118
- for (var n = 0; n < o.children.length; ++n)
1119
- e.push(o.children[n]);
1120
- }
1121
- }
1122
- function un(t, e) {
1123
- var o, n;
1124
- if (t) {
1125
- var r = Re.get(t, "attrBindings");
1126
- if (!(!r && !e)) {
1127
- if (!r) {
1128
- var a = tt({});
1129
- r = { ctx: e, data: a }, Re.set(t, "attrBindings", r), G(e, "attrs", {
1130
- get: function() {
1131
- return r == null ? void 0 : r.data;
1132
- },
1133
- set: function() {
1134
- process.env.NODE_ENV !== "production" && D("Cannot assign to '$attrs' because it is a read-only property", t);
1135
- }
1136
- });
1137
- }
1138
- var i = t.$attrs, l = function(s) {
1139
- fe(r.data, s) || G(r.data, s, {
1140
- get: function() {
1141
- return t.$attrs[s];
1142
- }
1143
- });
1144
- };
1145
- try {
1146
- for (var y = et(Object.keys(i)), c = y.next(); !c.done; c = y.next()) {
1147
- var p = c.value;
1148
- l(p);
1149
- }
1150
- } catch (s) {
1151
- o = { error: s };
1152
- } finally {
1153
- try {
1154
- c && !c.done && (n = y.return) && n.call(y);
1155
- } finally {
1156
- if (o) throw o.error;
1157
- }
1158
- }
1159
- }
1160
- }
1161
- }
1162
- function fn(t, e) {
1163
- var o = t.$options._parentVnode;
1164
- if (o) {
1165
- for (var n = Re.get(t, "slots") || [], r = No(o.data.scopedSlots, t.$slots), a = 0; a < n.length; a++) {
1166
- var i = n[a];
1167
- r[i] || delete e[i];
1168
- }
1169
- for (var l = Object.keys(r), a = 0; a < l.length; a++) {
1170
- var i = l[a];
1171
- e[i] || (e[i] = Po(t, i));
1172
- }
1173
- Re.set(t, "slots", l);
1174
- }
1175
- }
1176
- function Pt(t, e, o) {
1177
- var n = he();
1178
- mt(t);
1179
- try {
1180
- return e(t);
1181
- } catch (r) {
1182
- throw r;
1183
- } finally {
1184
- mt(n);
1185
- }
1186
- }
1187
- function $r(t) {
1188
- t.mixin({
1189
- beforeCreate: e,
1190
- mounted: function() {
1191
- cn(this);
1192
- },
1193
- beforeUpdate: function() {
1194
- un(this);
1195
- },
1196
- updated: function() {
1197
- cn(this);
1198
- }
1199
- });
1200
- function e() {
1201
- var i = this, l = i.$options, y = l.setup, c = l.render;
1202
- if (c && (l.render = function() {
1203
- for (var s = this, m = [], v = 0; v < arguments.length; v++)
1204
- m[v] = arguments[v];
1205
- return Pt(yt(i), function() {
1206
- return c.apply(s, m);
1207
- });
1208
- }), !!y) {
1209
- if (!oe(y)) {
1210
- process.env.NODE_ENV !== "production" && D('The "setup" option should be a function that returns a object in component definitions.', i);
1211
- return;
1212
- }
1213
- var p = l.data;
1214
- l.data = function() {
1215
- return o(i, i.$props), oe(p) ? p.call(i, i) : p || {};
1216
- };
1217
- }
1218
- }
1219
- function o(i, l) {
1220
- l === void 0 && (l = {});
1221
- var y = i.$options.setup, c = a(i), p = yt(i);
1222
- p.setupContext = c, Ot(l, "__ob__", Hn()), fn(i, c.slots);
1223
- var s;
1224
- if (Pt(p, function() {
1225
- s = y(l, c);
1226
- }), !!s) {
1227
- if (oe(s)) {
1228
- var m = s;
1229
- i.$options.render = function() {
1230
- return fn(i, c.slots), Pt(p, function() {
1231
- return m();
1232
- });
1233
- };
1234
- return;
1235
- } else if (Ee(s)) {
1236
- ue(s) && (s = Dn(s)), Re.set(i, "rawBindings", s);
1237
- var v = s;
1238
- Object.keys(v).forEach(function(h) {
1239
- var f = v[h];
1240
- if (!V(f))
1241
- if (ue(f))
1242
- re(f) && (f = ht(f));
1243
- else if (oe(f)) {
1244
- var S = f;
1245
- f = f.bind(i), Object.keys(S).forEach(function(F) {
1246
- f[F] = S[F];
1247
- });
1248
- } else Ee(f) ? r(f) && n(f) : f = ht(f);
1249
- Br(i, h, f);
1250
- });
1251
- return;
1252
- }
1253
- process.env.NODE_ENV !== "production" && wt(!1, '"setup" must return a "Object" or a "Function", got "'.concat(Object.prototype.toString.call(s).slice(8, -1), '"'));
1254
- }
1255
- }
1256
- function n(i, l) {
1257
- if (l === void 0 && (l = /* @__PURE__ */ new Set()), !l.has(i) && !(!de(i) || V(i) || ue(i) || xe(i))) {
1258
- var y = pe(), c = y.util.defineReactive;
1259
- Object.keys(i).forEach(function(p) {
1260
- var s = i[p];
1261
- c(i, p, s), s && (l.add(s), n(s, l));
1262
- });
1263
- }
1264
- }
1265
- function r(i, l) {
1266
- return l === void 0 && (l = /* @__PURE__ */ new Map()), l.has(i) ? l.get(i) : (l.set(i, !1), re(i) && ue(i) ? (l.set(i, !0), !0) : !de(i) || xe(i) || V(i) ? !1 : Object.keys(i).some(function(y) {
1267
- return r(i[y], l);
1268
- }));
1269
- }
1270
- function a(i) {
1271
- var l = { slots: {} }, y = [
1272
- "root",
1273
- "parent",
1274
- "refs",
1275
- "listeners",
1276
- "isServer",
1277
- "ssrContext"
1278
- ], c = ["emit"];
1279
- return y.forEach(function(p) {
1280
- var s = "$".concat(p);
1281
- G(l, p, {
1282
- get: function() {
1283
- return i[s];
1284
- },
1285
- set: function() {
1286
- process.env.NODE_ENV !== "production" && D("Cannot assign to '".concat(p, "' because it is a read-only property"), i);
1287
- }
1288
- });
1289
- }), un(i, l), c.forEach(function(p) {
1290
- var s = "$".concat(p);
1291
- G(l, p, {
1292
- get: function() {
1293
- return function() {
1294
- for (var m = [], v = 0; v < arguments.length; v++)
1295
- m[v] = arguments[v];
1296
- var h = i[s];
1297
- h.apply(i, m);
1298
- };
1299
- }
1300
- });
1301
- }), process.env.NODE_ENV === "test" && (l._vm = i), l;
1302
- }
1303
- }
1304
- function Wn(t, e) {
1305
- if (!t)
1306
- return e;
1307
- if (!e)
1308
- return t;
1309
- for (var o, n, r, a = En ? Reflect.ownKeys(t) : Object.keys(t), i = 0; i < a.length; i++)
1310
- o = a[i], o !== "__ob__" && (n = e[o], r = t[o], fe(e, o) ? n !== r && de(n) && !V(n) && de(r) && !V(r) && Wn(r, n) : e[o] = r);
1311
- return e;
1312
- }
1313
- function Pr(t) {
1314
- if (Co(t)) {
1315
- process.env.NODE_ENV !== "production" && D("[vue-composition-api] already installed. Vue.use(VueCompositionAPI) should be called only once.");
1316
- return;
1317
- }
1318
- process.env.NODE_ENV !== "production" && (t.version ? (t.version[0] !== "2" || t.version[1] !== ".") && D("[vue-composition-api] only works with Vue 2, v".concat(t.version, " found.")) : D("[vue-composition-api] no Vue version found")), t.config.optionMergeStrategies.setup = function(e, o) {
1319
- return function(r, a) {
1320
- return Wn(oe(e) ? e(r, a) || {} : void 0, oe(o) ? o(r, a) || {} : void 0);
1321
- };
1322
- }, Oo(t), $r(t);
1323
- }
1324
- var Ge = {
1325
- install: function(t) {
1326
- return Pr(t);
1327
- }
1328
- };
1329
- function Nr(t) {
1330
- return t;
1331
- }
1332
- function Dr(t) {
1333
- oe(t) && (t = { loader: t });
1334
- var e = t.loader, o = t.loadingComponent, n = t.errorComponent, r = t.delay, a = r === void 0 ? 200 : r, i = t.timeout, l = t.suspensible, y = l === void 0 ? !1 : l, c = t.onError;
1335
- process.env.NODE_ENV !== "production" && y && D("The suspensiblbe option for async components is not supported in Vue2. It is ignored.");
1336
- var p = null, s = 0, m = function() {
1337
- return s++, p = null, v();
1338
- }, v = function() {
1339
- var h;
1340
- return p || (h = p = e().catch(function(f) {
1341
- if (f = f instanceof Error ? f : new Error(String(f)), c)
1342
- return new Promise(function(S, F) {
1343
- var H = function() {
1344
- return S(m());
1345
- }, M = function() {
1346
- return F(f);
1347
- };
1348
- c(f, H, M, s + 1);
1349
- });
1350
- throw f;
1351
- }).then(function(f) {
1352
- if (h !== p && p)
1353
- return p;
1354
- if (process.env.NODE_ENV !== "production" && !f && D("Async component loader resolved to undefined. If you are using retry(), make sure to return its return value."), f && (f.__esModule || f[Symbol.toStringTag] === "Module") && (f = f.default), process.env.NODE_ENV !== "production" && f && !Ee(f) && !oe(f))
1355
- throw new Error("Invalid async component load result: ".concat(f));
1356
- return f;
1357
- }));
1358
- };
1359
- return function() {
1360
- var h = v();
1361
- return {
1362
- component: h,
1363
- delay: a,
1364
- timeout: i,
1365
- error: n,
1366
- loading: o
1367
- };
1368
- };
1369
- }
1370
- var Ar = "1.7.2";
1371
- typeof window != "undefined" && window.Vue && window.Vue.use(Ge);
1372
- const Un = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1373
- __proto__: null,
1374
- EffectScope: _n,
1375
- computed: hr,
1376
- createApp: Or,
1377
- createRef: qe,
1378
- customRef: To,
1379
- default: Ge,
1380
- defineAsyncComponent: Dr,
1381
- defineComponent: Nr,
1382
- del: Ko,
1383
- effectScope: bo,
1384
- getCurrentInstance: he,
1385
- getCurrentScope: Sn,
1386
- h: Er,
1387
- inject: Sr,
1388
- isRaw: xe,
1389
- isReactive: ue,
1390
- isReadonly: qo,
1391
- isRef: V,
1392
- markRaw: jo,
1393
- nextTick: wr,
1394
- onActivated: rr,
1395
- onBeforeMount: Yo,
1396
- onBeforeUnmount: tr,
1397
- onBeforeUpdate: Xo,
1398
- onDeactivated: ir,
1399
- onErrorCaptured: or,
1400
- onMounted: Zo,
1401
- onScopeDispose: _o,
1402
- onServerPrefetch: ar,
1403
- onUnmounted: nr,
1404
- onUpdated: er,
1405
- provide: _r,
1406
- proxyRefs: Vo,
1407
- reactive: tt,
1408
- readonly: Wo,
1409
- ref: ht,
1410
- set: Pn,
1411
- shallowReactive: Ln,
1412
- shallowReadonly: Uo,
1413
- shallowRef: Ho,
1414
- toRaw: Mo,
1415
- toRef: An,
1416
- toRefs: Dn,
1417
- triggerRef: Lo,
1418
- unref: At,
1419
- useAttrs: Ir,
1420
- useCSSModule: Cr,
1421
- useCssModule: Mn,
1422
- useSlots: xr,
1423
- version: Ar,
1424
- warn: Ht,
1425
- watch: yr,
1426
- watchEffect: jt,
1427
- watchPostEffect: gr,
1428
- watchSyncEffect: mr
1429
- }, Symbol.toStringTag, { value: "Module" })), Tr = mn.version || "", [Hr = "0", Lr = "0"] = Tr.split("."), Vr = Number(Hr), zr = Number(Lr), Kn = Vr === 2 && zr >= 7, se = Kn ? mo : Un, L = se.ref, _t = se.reactive, E = se.computed, we = se.watch, Mt = se.onMounted, jr = se.onBeforeUnmount, Mr = se.onUpdated, be = se.defineComponent, Se = se.inject, Qn = se.provide, Xe = se.nextTick, qt = se.getCurrentInstance, Ce = se.h, dn = Ge != null ? Ge : Un;
1430
- function Qe(t) {
1431
- if (Array.isArray(t)) return t;
1432
- if (typeof t == "function") {
1433
- const e = t();
1
+ import { getNestedValue as G, setNestedValue as K, resolveFormLayProps as Ae, getRowColsAlgorithm as Ct, configFormField as St, formatConfigOut as Bt, getEveryFormQueryField as Ft, queryTableListMethod as kt, getGlobalConfig as me, getButtonPosition as nt, createSelectionState as xt, restoreSelectionForPage as It, clearAllSelection as Rt, applySelectionChange as Ot, isObject as pe, findValueByKey as wt, configureEsPlus as Pt } from "@es-plus/core";
2
+ import { configureEsPlus as Mn } from "@es-plus/core";
3
+ import * as $t from "vue";
4
+ import ct from "vue";
5
+ import * as Ve from "@vue/composition-api";
6
+ import { MessageBox as ot } from "element-ui";
7
+ const Ht = ct.version || "", [Tt = "0", At = "0"] = Ht.split("."), Lt = Number(Tt), zt = Number(At), ut = Lt === 2 && zt >= 7, te = ut ? $t : Ve, z = te.ref, ze = te.reactive, S = te.computed, de = te.watch, Ue = te.onMounted, jt = te.onBeforeUnmount, Et = te.onUpdated, ie = te.defineComponent, ce = te.inject, dt = te.provide, xe = te.nextTick, Ke = te.getCurrentInstance, ue = te.h;
8
+ var it;
9
+ const st = (it = Ve.default) != null ? it : Ve;
10
+ function Be(n) {
11
+ if (Array.isArray(n)) return n;
12
+ if (typeof n == "function") {
13
+ const e = n();
1434
14
  return Array.isArray(e) ? e : [];
1435
15
  }
1436
16
  return [];
1437
17
  }
1438
- function ne(t) {
1439
- const e = { ...t.attrs || {} };
18
+ function Y(n) {
19
+ const e = { ...n.attrs || {} };
1440
20
  return typeof e.disabled == "function" && (e.disabled = e.disabled()), e;
1441
21
  }
1442
- function ce(t, e) {
1443
- const o = t.on || {}, n = {};
1444
- for (const [r, a] of Object.entries(o))
1445
- typeof a == "function" && (n[r] = a);
1446
- return typeof n.input != "function" && (n.input = e), n;
22
+ function oe(n, e) {
23
+ const o = n.on || {}, t = {};
24
+ for (const [i, l] of Object.entries(o))
25
+ typeof l == "function" && (t[i] = l);
26
+ return typeof t.input != "function" && (t.input = e), t;
1447
27
  }
1448
- function qr() {
28
+ function Dt() {
1449
29
  return { formInputComponents: (e) => {
1450
- var y;
30
+ var F;
1451
31
  const o = /* @__PURE__ */ new Map([
1452
32
  // ─────────────────────────────────────────────────────────────────
1453
33
  // Input - 文本输入
1454
34
  // ─────────────────────────────────────────────────────────────────
1455
35
  [
1456
36
  "Input",
1457
- (c, p, { row: s }) => {
1458
- const m = ne(s), v = te(p, s.prop), h = ce(s, (f) => Y(p, s.prop, f));
1459
- return c("el-input", {
1460
- attrs: m,
1461
- props: { value: v, ...s.props },
1462
- on: h
37
+ (f, p, { row: a }) => {
38
+ const h = Y(a), d = G(p, a.prop), v = oe(a, (m) => K(p, a.prop, m));
39
+ return f("el-input", {
40
+ attrs: h,
41
+ props: { value: d, ...a.props },
42
+ on: v
1463
43
  });
1464
44
  }
1465
45
  ],
@@ -1468,12 +48,12 @@ function qr() {
1468
48
  // ─────────────────────────────────────────────────────────────────
1469
49
  [
1470
50
  "InputNumber",
1471
- (c, p, { row: s }) => {
1472
- const m = ne(s), v = te(p, s.prop), h = ce(s, (f) => Y(p, s.prop, f));
1473
- return c("el-input-number", {
1474
- attrs: m,
1475
- props: { value: v, ...s.props },
1476
- on: h
51
+ (f, p, { row: a }) => {
52
+ const h = Y(a), d = G(p, a.prop), v = oe(a, (m) => K(p, a.prop, m));
53
+ return f("el-input-number", {
54
+ attrs: h,
55
+ props: { value: d, ...a.props },
56
+ on: v
1477
57
  });
1478
58
  }
1479
59
  ],
@@ -1482,19 +62,19 @@ function qr() {
1482
62
  // ─────────────────────────────────────────────────────────────────
1483
63
  [
1484
64
  "Select",
1485
- (c, p, { row: s }) => {
1486
- const m = ne(s), v = te(p, s.prop), h = Qe(s.dataOptions), f = ce(s, (S) => Y(p, s.prop, S));
1487
- return c(
65
+ (f, p, { row: a }) => {
66
+ const h = Y(a), d = G(p, a.prop), v = Be(a.dataOptions), m = oe(a, (_) => K(p, a.prop, _));
67
+ return f(
1488
68
  "el-select",
1489
69
  {
1490
- attrs: m,
1491
- props: { value: v, ...s.props },
1492
- on: f
70
+ attrs: h,
71
+ props: { value: d, ...a.props },
72
+ on: m
1493
73
  },
1494
- h.map(
1495
- (S, F) => c("el-option", {
1496
- key: F,
1497
- props: { value: S.value, label: S.label, disabled: S.disabled }
74
+ v.map(
75
+ (_, T) => f("el-option", {
76
+ key: T,
77
+ props: { value: _.value, label: _.label, disabled: _.disabled }
1498
78
  })
1499
79
  )
1500
80
  );
@@ -1506,12 +86,12 @@ function qr() {
1506
86
  // ─────────────────────────────────────────────────────────────────
1507
87
  [
1508
88
  "datePicker",
1509
- (c, p, { row: s }) => {
1510
- const m = ne(s), v = te(p, s.prop), h = ce(s, (f) => Y(p, s.prop, f));
1511
- return c("el-date-picker", {
1512
- attrs: m,
1513
- props: { value: v, ...s.props },
1514
- on: h
89
+ (f, p, { row: a }) => {
90
+ const h = Y(a), d = G(p, a.prop), v = oe(a, (m) => K(p, a.prop, m));
91
+ return f("el-date-picker", {
92
+ attrs: h,
93
+ props: { value: d, ...a.props },
94
+ on: v
1515
95
  });
1516
96
  }
1517
97
  ],
@@ -1520,12 +100,12 @@ function qr() {
1520
100
  // ─────────────────────────────────────────────────────────────────
1521
101
  [
1522
102
  "timePicker",
1523
- (c, p, { row: s }) => {
1524
- const m = ne(s), v = te(p, s.prop), h = ce(s, (f) => Y(p, s.prop, f));
1525
- return c("el-time-picker", {
1526
- attrs: m,
1527
- props: { value: v, ...s.props },
1528
- on: h
103
+ (f, p, { row: a }) => {
104
+ const h = Y(a), d = G(p, a.prop), v = oe(a, (m) => K(p, a.prop, m));
105
+ return f("el-time-picker", {
106
+ attrs: h,
107
+ props: { value: d, ...a.props },
108
+ on: v
1529
109
  });
1530
110
  }
1531
111
  ],
@@ -1534,12 +114,12 @@ function qr() {
1534
114
  // ─────────────────────────────────────────────────────────────────
1535
115
  [
1536
116
  "Slider",
1537
- (c, p, { row: s }) => {
1538
- const m = ne(s), v = te(p, s.prop), h = ce(s, (f) => Y(p, s.prop, f));
1539
- return c("el-slider", {
1540
- attrs: m,
1541
- props: { value: v, ...s.props },
1542
- on: h
117
+ (f, p, { row: a }) => {
118
+ const h = Y(a), d = G(p, a.prop), v = oe(a, (m) => K(p, a.prop, m));
119
+ return f("el-slider", {
120
+ attrs: h,
121
+ props: { value: d, ...a.props },
122
+ on: v
1543
123
  });
1544
124
  }
1545
125
  ],
@@ -1550,14 +130,14 @@ function qr() {
1550
130
  // ─────────────────────────────────────────────────────────────────
1551
131
  [
1552
132
  "ColorPicker",
1553
- (c, p, { row: s }) => {
1554
- const m = ne(s), v = te(p, s.prop), h = s.on || {}, f = {};
1555
- for (const [S, F] of Object.entries(h))
1556
- typeof F == "function" && (f[S] = F);
1557
- return typeof f.change != "function" && (f.change = (S) => Y(p, s.prop, S)), c("el-color-picker", {
1558
- attrs: m,
1559
- props: { value: v, ...s.props },
1560
- on: f
133
+ (f, p, { row: a }) => {
134
+ const h = Y(a), d = G(p, a.prop), v = a.on || {}, m = {};
135
+ for (const [_, T] of Object.entries(v))
136
+ typeof T == "function" && (m[_] = T);
137
+ return typeof m.change != "function" && (m.change = (_) => K(p, a.prop, _)), f("el-color-picker", {
138
+ attrs: h,
139
+ props: { value: d, ...a.props },
140
+ on: m
1561
141
  });
1562
142
  }
1563
143
  ],
@@ -1567,16 +147,16 @@ function qr() {
1567
147
  // ─────────────────────────────────────────────────────────────────
1568
148
  [
1569
149
  "Transfer",
1570
- (c, p, { row: s }) => {
1571
- const m = ne(s), v = te(p, s.prop), h = Qe(s.dataOptions), f = ce(s, (S) => Y(p, s.prop, S));
1572
- return c("el-transfer", {
1573
- attrs: m,
150
+ (f, p, { row: a }) => {
151
+ const h = Y(a), d = G(p, a.prop), v = Be(a.dataOptions), m = oe(a, (_) => K(p, a.prop, _));
152
+ return f("el-transfer", {
153
+ attrs: h,
1574
154
  props: {
1575
- value: v,
1576
- data: h.map((S) => ({ key: S.value, label: S.label, disabled: S.disabled })),
1577
- ...s.props
155
+ value: d,
156
+ data: v.map((_) => ({ key: _.value, label: _.label, disabled: _.disabled })),
157
+ ...a.props
1578
158
  },
1579
- on: f
159
+ on: m
1580
160
  });
1581
161
  }
1582
162
  ],
@@ -1585,18 +165,18 @@ function qr() {
1585
165
  // ─────────────────────────────────────────────────────────────────
1586
166
  [
1587
167
  "Cascader",
1588
- (c, p, { row: s }) => {
1589
- const m = ne(s), v = te(p, s.prop), h = Qe(s.dataOptions), f = ce(s, (S) => Y(p, s.prop, S));
1590
- return c("el-cascader", {
168
+ (f, p, { row: a }) => {
169
+ const h = Y(a), d = G(p, a.prop), v = Be(a.dataOptions), m = oe(a, (_) => K(p, a.prop, _));
170
+ return f("el-cascader", {
1591
171
  // key 强制 dataOptions 变化时重渲染,Element UI 内部 cache 否则不刷新
1592
- key: JSON.stringify(h),
1593
- attrs: m,
172
+ key: JSON.stringify(v),
173
+ attrs: h,
1594
174
  props: {
1595
- value: v,
1596
- options: h,
1597
- ...s.props
175
+ value: d,
176
+ options: v,
177
+ ...a.props
1598
178
  },
1599
- on: f
179
+ on: m
1600
180
  });
1601
181
  }
1602
182
  ],
@@ -1605,24 +185,24 @@ function qr() {
1605
185
  // ─────────────────────────────────────────────────────────────────
1606
186
  [
1607
187
  "Radio",
1608
- (c, p, { row: s }) => {
1609
- const m = ne(s), v = te(p, s.prop), h = Qe(s.dataOptions), f = ce(s, (S) => Y(p, s.prop, S));
1610
- return c(
188
+ (f, p, { row: a }) => {
189
+ const h = Y(a), d = G(p, a.prop), v = Be(a.dataOptions), m = oe(a, (_) => K(p, a.prop, _));
190
+ return f(
1611
191
  "el-radio-group",
1612
192
  {
1613
- attrs: m,
1614
- props: { value: v, ...s.props },
1615
- on: f
193
+ attrs: h,
194
+ props: { value: d, ...a.props },
195
+ on: m
1616
196
  },
1617
- h.map(
1618
- (S, F) => c(
197
+ v.map(
198
+ (_, T) => f(
1619
199
  "el-radio",
1620
200
  {
1621
- key: F,
201
+ key: T,
1622
202
  // Element UI 中 el-radio 使用 :label 作为值
1623
- props: { label: S.value, disabled: S.disabled || m.disabled }
203
+ props: { label: _.value, disabled: _.disabled || h.disabled }
1624
204
  },
1625
- [S.label]
205
+ [_.label]
1626
206
  )
1627
207
  )
1628
208
  );
@@ -1633,23 +213,23 @@ function qr() {
1633
213
  // ─────────────────────────────────────────────────────────────────
1634
214
  [
1635
215
  "Checkbox",
1636
- (c, p, { row: s }) => {
1637
- const m = ne(s), v = te(p, s.prop), h = Qe(s.dataOptions), f = ce(s, (S) => Y(p, s.prop, S));
1638
- return c(
216
+ (f, p, { row: a }) => {
217
+ const h = Y(a), d = G(p, a.prop), v = Be(a.dataOptions), m = oe(a, (_) => K(p, a.prop, _));
218
+ return f(
1639
219
  "el-checkbox-group",
1640
220
  {
1641
- attrs: m,
1642
- props: { value: v, ...s.props },
1643
- on: f
221
+ attrs: h,
222
+ props: { value: d, ...a.props },
223
+ on: m
1644
224
  },
1645
- h.map(
1646
- (S, F) => c(
225
+ v.map(
226
+ (_, T) => f(
1647
227
  "el-checkbox",
1648
228
  {
1649
- key: F,
1650
- props: { label: S.value, disabled: S.disabled || m.disabled }
229
+ key: T,
230
+ props: { label: _.value, disabled: _.disabled || h.disabled }
1651
231
  },
1652
- [S.label]
232
+ [_.label]
1653
233
  )
1654
234
  )
1655
235
  );
@@ -1660,12 +240,12 @@ function qr() {
1660
240
  // ─────────────────────────────────────────────────────────────────
1661
241
  [
1662
242
  "Switch",
1663
- (c, p, { row: s }) => {
1664
- const m = ne(s), v = te(p, s.prop), h = ce(s, (f) => Y(p, s.prop, f));
1665
- return c("el-switch", {
1666
- attrs: m,
1667
- props: { value: v, ...s.props },
1668
- on: h
243
+ (f, p, { row: a }) => {
244
+ const h = Y(a), d = G(p, a.prop), v = oe(a, (m) => K(p, a.prop, m));
245
+ return f("el-switch", {
246
+ attrs: h,
247
+ props: { value: d, ...a.props },
248
+ on: v
1669
249
  });
1670
250
  }
1671
251
  ],
@@ -1674,12 +254,12 @@ function qr() {
1674
254
  // ─────────────────────────────────────────────────────────────────
1675
255
  [
1676
256
  "Rate",
1677
- (c, p, { row: s }) => {
1678
- const m = ne(s), v = te(p, s.prop), h = ce(s, (f) => Y(p, s.prop, f));
1679
- return c("el-rate", {
1680
- attrs: m,
1681
- props: { value: v, ...s.props },
1682
- on: h
257
+ (f, p, { row: a }) => {
258
+ const h = Y(a), d = G(p, a.prop), v = oe(a, (m) => K(p, a.prop, m));
259
+ return f("el-rate", {
260
+ attrs: h,
261
+ props: { value: d, ...a.props },
262
+ on: v
1683
263
  });
1684
264
  }
1685
265
  ],
@@ -1688,24 +268,24 @@ function qr() {
1688
268
  // ─────────────────────────────────────────────────────────────────
1689
269
  [
1690
270
  "Upload",
1691
- (c, p, { row: s }) => {
1692
- const m = s.prop, v = ne(s), h = s.props || {}, f = s.on || {}, S = te(p, m) || [], F = typeof s.httpRequest == "function", H = s.triggerRender, M = s.fileRender, W = H ? H(c) : c("el-button", { props: { size: "mini", type: "primary" } }, ["选择文件"]), U = (u, g, _) => {
1693
- var T, x;
1694
- const k = (u == null ? void 0 : u.link) || (u == null ? void 0 : u.url) || ((T = u == null ? void 0 : u.data) == null ? void 0 : T.link) || ((x = u == null ? void 0 : u.data) == null ? void 0 : x.url);
1695
- k && (g.url = k), g.status = "success", g.response = u, typeof f.success == "function" && f.success(u, g, _), Y(p, m, [..._]);
1696
- }, J = (u, g, _) => {
1697
- g.status = "fail", g.error = u, typeof f.error == "function" && f.error(u, g, _), Y(p, m, [..._]);
1698
- }, K = F ? (u) => {
1699
- const g = s.httpRequest;
1700
- g({
1701
- file: u.file,
1702
- filename: u.file.name,
1703
- onProgress: u.onProgress
1704
- }).then((_) => {
1705
- const k = (_ == null ? void 0 : _.data) || _;
1706
- u.onSuccess(k);
1707
- }).catch((_) => u.onError(_));
1708
- } : void 0, Q = {
271
+ (f, p, { row: a }) => {
272
+ const h = a.prop, d = Y(a), v = a.props || {}, m = a.on || {}, _ = G(p, h) || [], T = typeof a.httpRequest == "function", j = a.triggerRender, N = a.fileRender, U = j ? j(f) : f("el-button", { props: { size: "mini", type: "primary" } }, ["选择文件"]), M = (r, u, y) => {
273
+ var L, k;
274
+ const w = (r == null ? void 0 : r.link) || (r == null ? void 0 : r.url) || ((L = r == null ? void 0 : r.data) == null ? void 0 : L.link) || ((k = r == null ? void 0 : r.data) == null ? void 0 : k.url);
275
+ w && (u.url = w), u.status = "success", u.response = r, typeof m.success == "function" && m.success(r, u, y), K(p, h, [...y]);
276
+ }, W = (r, u, y) => {
277
+ u.status = "fail", u.error = r, typeof m.error == "function" && m.error(r, u, y), K(p, h, [...y]);
278
+ }, V = T ? (r) => {
279
+ const u = a.httpRequest;
280
+ u({
281
+ file: r.file,
282
+ filename: r.file.name,
283
+ onProgress: r.onProgress
284
+ }).then((y) => {
285
+ const w = (y == null ? void 0 : y.data) || y;
286
+ r.onSuccess(w);
287
+ }).catch((y) => r.onError(y));
288
+ } : void 0, J = {
1709
289
  preview: "onPreview",
1710
290
  change: "onChange",
1711
291
  success: "onSuccess",
@@ -1713,136 +293,136 @@ function qr() {
1713
293
  progress: "onProgress",
1714
294
  remove: "onRemove",
1715
295
  exceed: "onExceed"
1716
- }, O = {};
1717
- for (const [u, g] of Object.entries(f)) {
1718
- if (typeof g != "function" || u === "success" || u === "error" || u === "remove") continue;
1719
- const _ = Q[u];
1720
- _ && (O[_] = g);
296
+ }, R = {};
297
+ for (const [r, u] of Object.entries(m)) {
298
+ if (typeof u != "function" || r === "success" || r === "error" || r === "remove") continue;
299
+ const y = J[r];
300
+ y && (R[y] = u);
1721
301
  }
1722
- return O.onSuccess = U, O.onError = J, O.onRemove = (u, g) => {
1723
- typeof f.remove == "function" && f.remove(u, g), Y(p, m, [...g]);
1724
- }, c(
302
+ return R.onSuccess = M, R.onError = W, R.onRemove = (r, u) => {
303
+ typeof m.remove == "function" && m.remove(r, u), K(p, h, [...u]);
304
+ }, f(
1725
305
  "el-upload",
1726
306
  {
1727
307
  attrs: {
1728
- ...v,
1729
- action: h.action || v.action || "#",
1730
- "file-list": S
308
+ ...d,
309
+ action: v.action || d.action || "#",
310
+ "file-list": _
1731
311
  },
1732
312
  props: {
1733
- ...h,
1734
- fileList: S,
313
+ ...v,
314
+ fileList: _,
1735
315
  // 自定义上传时禁用 auto-upload,由 httpRequest 接管
1736
- autoUpload: F ? !1 : h.autoUpload !== !1,
1737
- httpRequest: K,
316
+ autoUpload: T ? !1 : v.autoUpload !== !1,
317
+ httpRequest: V,
1738
318
  // 把 row.on.* 转换为 onXxx prop(覆盖在 userProps 之上:
1739
319
  // 若用户已直接在 props 里给了 onPreview,这里仍以 row.on 为优先权来源)
1740
- ...O
320
+ ...R
1741
321
  },
1742
322
  // Vue 2 的 scopedSlots 用于自定义文件项渲染
1743
- scopedSlots: M ? {
1744
- file: ({ file: u }) => M(c, u, () => {
1745
- const g = S.filter((_) => _ !== u);
1746
- Y(p, m, g);
323
+ scopedSlots: N ? {
324
+ file: ({ file: r }) => N(f, r, () => {
325
+ const u = _.filter((y) => y !== r);
326
+ K(p, h, u);
1747
327
  })
1748
328
  } : void 0
1749
329
  },
1750
- [W]
330
+ [U]
1751
331
  );
1752
332
  }
1753
333
  ]
1754
- ]), n = (y = e.formtype) != null ? y : "";
1755
- if (!n) return () => null;
1756
- const r = o.get(n);
1757
- if (r) return r;
1758
- const a = n[0] ? n[0] === n[0].toLowerCase() ? n[0].toUpperCase() + n.slice(1) : n[0].toLowerCase() + n.slice(1) : n, i = o.get(a);
334
+ ]), t = (F = e.formtype) != null ? F : "";
335
+ if (!t) return () => null;
336
+ const i = o.get(t);
1759
337
  if (i) return i;
1760
- const l = n.toLowerCase();
1761
- for (const [c, p] of o)
1762
- if (c.toLowerCase() === l) return p;
338
+ const l = t[0] ? t[0] === t[0].toLowerCase() ? t[0].toUpperCase() + t.slice(1) : t[0].toLowerCase() + t.slice(1) : t, c = o.get(l);
339
+ if (c) return c;
340
+ const B = t.toLowerCase();
341
+ for (const [f, p] of o)
342
+ if (f.toLowerCase() === B) return p;
1763
343
  return () => null;
1764
344
  } };
1765
345
  }
1766
- function Wr(t) {
1767
- const e = L(!1), o = E(() => {
1768
- var f;
1769
- const m = ut(t.layoutFormProps);
1770
- if (!m || !Object.keys(m).length) return !1;
1771
- const v = m.isBtnHiden, h = m.isBtnHidden;
1772
- return !!((f = v != null ? v : h) != null && f);
1773
- }), n = E(() => {
1774
- var v;
346
+ function qt(n) {
347
+ const e = z(!1), o = S(() => {
348
+ var m;
349
+ const h = Ae(n.layoutFormProps);
350
+ if (!h || !Object.keys(h).length) return !1;
351
+ const d = h.isBtnHiden, v = h.isBtnHidden;
352
+ return !!((m = d != null ? d : v) != null && m);
353
+ }), t = S(() => {
354
+ var d;
1775
355
  return {
1776
356
  type: "flex",
1777
357
  gutter: 20,
1778
- ...((v = t.layoutFormProps) == null ? void 0 : v.rowLayProps) || {}
358
+ ...((d = n.layoutFormProps) == null ? void 0 : d.rowLayProps) || {}
1779
359
  };
1780
- }), r = E(() => ut(t.layoutFormProps)), a = E(() => {
360
+ }), i = S(() => Ae(n.layoutFormProps)), l = S(() => {
361
+ var h;
362
+ return (h = n.layoutFormProps) == null ? void 0 : h.setOptions;
363
+ }), c = S(
364
+ () => Ct(n.formItemList || [])
365
+ ), B = () => {
1781
366
  var m;
1782
- return (m = t.layoutFormProps) == null ? void 0 : m.setOptions;
1783
- }), i = E(
1784
- () => ro(t.formItemList || [])
1785
- ), l = () => {
1786
- var f;
1787
- const m = ut(t.layoutFormProps);
1788
- if (!m || !Object.keys(m).length) return 0;
1789
- const v = m.minfoldRows, h = m.minFoldRows;
1790
- return Number((f = v != null ? v : h) != null ? f : 0) || 0;
1791
- }, y = E(() => {
1792
- const m = l();
1793
- return m > 0 && m < i.value.rowNum;
1794
- }), c = E(() => {
1795
- var H;
1796
- const { rowNum: m, columnRow: v } = i.value, h = v[m - 1] || [], f = Number((H = ut(t.layoutFormProps)) == null ? void 0 : H.btnColSpan) || 0, F = 24 - h.reduce(
1797
- (M, W) => {
1798
- var U;
1799
- return M + (((U = t.formItemList[W]) == null ? void 0 : U.span) || 24);
367
+ const h = Ae(n.layoutFormProps);
368
+ if (!h || !Object.keys(h).length) return 0;
369
+ const d = h.minfoldRows, v = h.minFoldRows;
370
+ return Number((m = d != null ? d : v) != null ? m : 0) || 0;
371
+ }, F = S(() => {
372
+ const h = B();
373
+ return h > 0 && h < c.value.rowNum;
374
+ }), f = S(() => {
375
+ var j;
376
+ const { rowNum: h, columnRow: d } = c.value, v = d[h - 1] || [], m = Number((j = Ae(n.layoutFormProps)) == null ? void 0 : j.btnColSpan) || 0, T = 24 - v.reduce(
377
+ (N, U) => {
378
+ var M;
379
+ return N + (((M = n.formItemList[U]) == null ? void 0 : M.span) || 24);
1800
380
  },
1801
381
  0
1802
382
  );
1803
- return !e.value && f <= F ? F : 24;
1804
- }), p = E(() => {
1805
- var h, f;
1806
- const m = l(), { columnNodeIndex: v } = i.value;
383
+ return !e.value && m <= T ? T : 24;
384
+ }), p = S(() => {
385
+ var v, m;
386
+ const h = B(), { columnNodeIndex: d } = c.value;
1807
387
  if (e.value) {
1808
- const S = (f = (h = v[m - 1]) != null ? h : v[v.length - 1]) != null ? f : 9999;
1809
- return (t.formItemList || []).map((F, H) => ({
1810
- ...F,
1811
- isFold: H > S
388
+ const _ = (m = (v = d[h - 1]) != null ? v : d[d.length - 1]) != null ? m : 9999;
389
+ return (n.formItemList || []).map((T, j) => ({
390
+ ...T,
391
+ isFold: j > _
1812
392
  }));
1813
393
  }
1814
- return (t.formItemList || []).map((S) => ({ ...S, isFold: !1 }));
394
+ return (n.formItemList || []).map((_) => ({ ..._, isFold: !1 }));
1815
395
  });
1816
- return we(
1817
- y,
1818
- (m) => {
1819
- e.value = m;
396
+ return de(
397
+ F,
398
+ (h) => {
399
+ e.value = h;
1820
400
  },
1821
401
  { immediate: !0 }
1822
402
  ), {
1823
403
  folded: e,
1824
404
  isBtnHidden: o,
1825
- rowLayout: n,
1826
- formLayout: r,
1827
- getSetOptionsStatus: a,
1828
- getRowColsAlgorithm: i,
1829
- isFold: y,
1830
- getBtnColSpan: c,
405
+ rowLayout: t,
406
+ formLayout: i,
407
+ getSetOptionsStatus: l,
408
+ getRowColsAlgorithm: c,
409
+ isFold: F,
410
+ getBtnColSpan: f,
1831
411
  formItem: p,
1832
412
  changeFolded: () => {
1833
413
  e.value = !e.value;
1834
414
  }
1835
415
  };
1836
416
  }
1837
- function Ur(t) {
417
+ function Nt(n) {
1838
418
  return {
1839
- queryTableListMethod: (a, i = {}) => lo(a, i, t),
1840
- getEveryFormQueryField: (a, i) => so(a, t, i),
1841
- formatConfigOut: (a, i, l = {}, y) => ao(a, i, l, y),
1842
- configFormField: (a = {}, i) => io(a, i)
419
+ queryTableListMethod: (l, c = {}) => kt(l, c, n),
420
+ getEveryFormQueryField: (l, c) => Ft(l, n, c),
421
+ formatConfigOut: (l, c, B = {}, F) => Bt(l, c, B, F),
422
+ configFormField: (l = {}, c) => St(l, c)
1843
423
  };
1844
424
  }
1845
- const Kr = {
425
+ const Mt = {
1846
426
  large: "medium",
1847
427
  default: "small",
1848
428
  small: "mini",
@@ -1850,13 +430,13 @@ const Kr = {
1850
430
  medium: "medium",
1851
431
  mini: "mini"
1852
432
  };
1853
- function St(t) {
1854
- if (t == null || t === "") return;
1855
- const e = String(t).trim();
433
+ function je(n) {
434
+ if (n == null || n === "") return;
435
+ const e = String(n).trim();
1856
436
  if (e)
1857
- return Kr[e];
437
+ return Mt[e];
1858
438
  }
1859
- const Qr = be({
439
+ const Vt = ie({
1860
440
  name: "RenderDomForm",
1861
441
  functional: !0,
1862
442
  props: {
@@ -1865,13 +445,13 @@ const Qr = be({
1865
445
  render: { type: Function, default: void 0 },
1866
446
  model: { type: Object, default: () => ({}) }
1867
447
  },
1868
- render(t, e) {
1869
- const { row: o, index: n, model: r, render: a } = e.props;
1870
- if (typeof a != "function") return null;
1871
- const l = a(t, r || {}, { row: o || {}, index: n });
1872
- return typeof l == "string" ? t("span", l) : l;
448
+ render(n, e) {
449
+ const { row: o, index: t, model: i, render: l } = e.props;
450
+ if (typeof l != "function") return null;
451
+ const B = l(n, i || {}, { row: o || {}, index: t });
452
+ return typeof B == "string" ? n("span", B) : B;
1873
453
  }
1874
- }), Jr = be({
454
+ }), Ut = ie({
1875
455
  name: "RenderBtn",
1876
456
  functional: !0,
1877
457
  props: {
@@ -1880,15 +460,15 @@ const Qr = be({
1880
460
  formModel: { type: Object, default: () => ({}) },
1881
461
  render: { type: Function, default: void 0 }
1882
462
  },
1883
- render(t, e) {
1884
- const { formItemList: o, formModel: n, row: r, render: a } = e.props;
1885
- if (typeof a != "function") return null;
1886
- const i = a(r, n, o, t) || "";
1887
- return typeof i == "string" ? t("span", i) : i;
463
+ render(n, e) {
464
+ const { formItemList: o, formModel: t, row: i, render: l } = e.props;
465
+ if (typeof l != "function") return null;
466
+ const c = l(i, t, o, n) || "";
467
+ return typeof c == "string" ? n("span", c) : c;
1888
468
  }
1889
- }), Gr = be({
469
+ }), Kt = ie({
1890
470
  name: "EsForm",
1891
- components: { RenderDomForm: Qr, RenderBtn: Jr },
471
+ components: { RenderDomForm: Vt, RenderBtn: Ut },
1892
472
  props: {
1893
473
  /** 表单 model 数据 */
1894
474
  model: { type: Object, default: () => ({}) },
@@ -1907,264 +487,264 @@ const Qr = be({
1907
487
  /** 字段映射注入函数 */
1908
488
  fieldFieldOutput: { type: Function, default: void 0 }
1909
489
  },
1910
- setup(t, e) {
1911
- var at, st, Ue, Ae, lt;
1912
- const o = qt(), n = () => {
1913
- const b = o == null ? void 0 : o.proxy;
1914
- return (b == null ? void 0 : b.$refs) || {};
1915
- }, r = E(() => {
1916
- var A, N;
1917
- const b = o == null ? void 0 : o.proxy, C = (N = (A = b == null ? void 0 : b.$vnode) == null ? void 0 : A.data) == null ? void 0 : N.model;
1918
- return C && typeof C == "object" && typeof C.callback != "function" ? C : t.model;
1919
- }), a = (st = (at = Se("$esPlusForm", null)) != null ? at : Pe().EsForm) != null ? st : {}, i = (Ae = (Ue = Se("$EsPlus", null)) != null ? Ue : Pe()) != null ? Ae : {}, l = (b) => {
1920
- if (!b) return !0;
1921
- const C = i.permission;
1922
- return typeof C == "function" ? C(b) : !0;
1923
- }, y = (b) => b.labelKey && typeof i.t == "function" ? i.t(b.labelKey) : b.label, c = Se("getTableInstantce", null), p = E(() => {
1924
- if (c)
1925
- return typeof c == "function" ? c() : c;
1926
- const b = o == null ? void 0 : o.proxy, C = b == null ? void 0 : b.getTableInstantce;
1927
- return typeof C == "function" ? C() : C;
1928
- }), s = E(() => {
1929
- const b = p.value;
1930
- return !!(b && Object.keys(b).length);
1931
- }), m = (b) => b ? b.startsWith("el-icon-") ? b : `el-icon-${b.replace(/([a-z])([A-Z])/g, "$1-$2").replace(/[\s_]+/g, "-").toLowerCase()}` : void 0, v = (b) => {
1932
- const { icon: C, ...A } = b;
490
+ setup(n, e) {
491
+ var Pe, $e, Ce, he, He;
492
+ const o = Ke(), t = () => {
493
+ const g = o == null ? void 0 : o.proxy;
494
+ return (g == null ? void 0 : g.$refs) || {};
495
+ }, i = S(() => {
496
+ var A, H;
497
+ const g = o == null ? void 0 : o.proxy, b = (H = (A = g == null ? void 0 : g.$vnode) == null ? void 0 : A.data) == null ? void 0 : H.model;
498
+ return b && typeof b == "object" && typeof b.callback != "function" ? b : n.model;
499
+ }), l = ($e = (Pe = ce("$esPlusForm", null)) != null ? Pe : me().EsForm) != null ? $e : {}, c = (he = (Ce = ce("$EsPlus", null)) != null ? Ce : me()) != null ? he : {}, B = (g) => {
500
+ if (!g) return !0;
501
+ const b = c.permission;
502
+ return typeof b == "function" ? b(g) : !0;
503
+ }, F = (g) => g.labelKey && typeof c.t == "function" ? c.t(g.labelKey) : g.label, f = ce("getTableInstantce", null), p = S(() => {
504
+ if (f)
505
+ return typeof f == "function" ? f() : f;
506
+ const g = o == null ? void 0 : o.proxy, b = g == null ? void 0 : g.getTableInstantce;
507
+ return typeof b == "function" ? b() : b;
508
+ }), a = S(() => {
509
+ const g = p.value;
510
+ return !!(g && Object.keys(g).length);
511
+ }), h = (g) => g ? g.startsWith("el-icon-") ? g : `el-icon-${g.replace(/([a-z])([A-Z])/g, "$1-$2").replace(/[\s_]+/g, "-").toLowerCase()}` : void 0, d = (g) => {
512
+ const { icon: b, ...A } = g;
1933
513
  if (A.size !== void 0) {
1934
- const N = St(A.size);
1935
- N !== void 0 && (A.size = N);
514
+ const H = je(A.size);
515
+ H !== void 0 && (A.size = H);
1936
516
  } else
1937
517
  A.size = "mini";
1938
518
  return A;
1939
- }, h = (b) => {
1940
- const C = b.disabled;
1941
- return typeof C == "function" ? !!C() : !!C;
1942
- }, f = L({}), S = L(t.formItemList || []), { formInputComponents: F } = qr(), H = (a == null ? void 0 : a.$httpRequest) || void 0, M = t.fieldFieldOutput || (a == null ? void 0 : a.fieldFieldOutput), { getEveryFormQueryField: W } = Ur(H), U = L(
1943
- ((lt = t.layoutFormProps) == null ? void 0 : lt.fromLayProps) || {}
1944
- ), J = E(() => {
1945
- const C = {
519
+ }, v = (g) => {
520
+ const b = g.disabled;
521
+ return typeof b == "function" ? !!b() : !!b;
522
+ }, m = z({}), _ = z(n.formItemList || []), { formInputComponents: T } = Dt(), j = (l == null ? void 0 : l.$httpRequest) || void 0, N = n.fieldFieldOutput || (l == null ? void 0 : l.fieldFieldOutput), { getEveryFormQueryField: U } = Nt(j), M = z(
523
+ ((He = n.layoutFormProps) == null ? void 0 : He.fromLayProps) || {}
524
+ ), W = S(() => {
525
+ const b = {
1946
526
  size: "mini",
1947
- ...U.value || {},
1948
- model: r.value,
1949
- rules: t.rules,
527
+ ...M.value || {},
528
+ model: i.value,
529
+ rules: n.rules,
1950
530
  validateOnRuleChange: !1
1951
- }, A = St(C.size);
1952
- return A !== void 0 && (C.size = A), (C.labelWidth === void 0 || C.labelWidth === "" || C.labelWidth === null) && (C.labelWidth = "auto"), C;
1953
- }), K = L(/* @__PURE__ */ new Set());
1954
- we(
1955
- () => t.formItemList,
1956
- async (b) => {
1957
- const C = Array.isArray(b) ? b : [], A = C.filter(
1958
- (I) => I && I.isInitRun !== !1 && !K.value.has(I.prop)
531
+ }, A = je(b.size);
532
+ return A !== void 0 && (b.size = A), (b.labelWidth === void 0 || b.labelWidth === "" || b.labelWidth === null) && (b.labelWidth = "auto"), b;
533
+ }), V = z(/* @__PURE__ */ new Set());
534
+ de(
535
+ () => n.formItemList,
536
+ async (g) => {
537
+ const b = Array.isArray(g) ? g : [], A = b.filter(
538
+ (x) => x && x.isInitRun !== !1 && !V.value.has(x.prop)
1959
539
  );
1960
540
  if (!A.length) {
1961
- S.value = C.map((I) => {
1962
- var j;
1963
- if (!I) return null;
1964
- const P = S.value.find((ie) => ie && ie.prop === I.prop);
1965
- return (j = P == null ? void 0 : P.dataOptions) != null && j.length ? { ...I, dataOptions: P.dataOptions } : I;
1966
- }).filter((I) => !!I);
541
+ _.value = b.map((x) => {
542
+ var D;
543
+ if (!x) return null;
544
+ const $ = _.value.find((X) => X && X.prop === x.prop);
545
+ return (D = $ == null ? void 0 : $.dataOptions) != null && D.length ? { ...x, dataOptions: $.dataOptions } : x;
546
+ }).filter((x) => !!x);
1967
547
  return;
1968
548
  }
1969
- const N = await W(A, M);
1970
- A.forEach((I) => K.value.add(I.prop)), S.value = C.map((I) => {
1971
- var ie;
1972
- if (!I) return null;
1973
- const P = N.find((ae) => ae && ae.prop === I.prop), j = S.value.find((ae) => ae && ae.prop === I.prop);
1974
- return P ? {
1975
- ...I,
1976
- dataOptions: P.listData
1977
- } : (ie = j == null ? void 0 : j.dataOptions) != null && ie.length ? { ...I, dataOptions: j.dataOptions } : I;
1978
- }).filter((I) => !!I);
549
+ const H = await U(A, N);
550
+ A.forEach((x) => V.value.add(x.prop)), _.value = b.map((x) => {
551
+ var X;
552
+ if (!x) return null;
553
+ const $ = H.find((ee) => ee && ee.prop === x.prop), D = _.value.find((ee) => ee && ee.prop === x.prop);
554
+ return $ ? {
555
+ ...x,
556
+ dataOptions: $.listData
557
+ } : (X = D == null ? void 0 : D.dataOptions) != null && X.length ? { ...x, dataOptions: D.dataOptions } : x;
558
+ }).filter((x) => !!x);
1979
559
  },
1980
560
  { immediate: !0, deep: !0 }
1981
561
  );
1982
- const Q = E(() => {
1983
- const C = (S.value || []).map((P) => P ? { ...P, dataOptions: P.dataOptions || [] } : null).filter((P) => {
1984
- if (!P) return !1;
1985
- const j = P.isHiden, ie = P.isHidden, ae = typeof j == "function" ? j : typeof ie == "function" ? ie : null;
1986
- return ae ? !ae(r.value, P, J.value) : !0;
1987
- }), N = C.filter((P) => !P.span).length;
1988
- let I = 6;
1989
- if (N > 0) {
1990
- const P = C.reduce((ie, ae) => ie + (ae.span || 0), 0), j = 24 - (P % 24 || (P ? 24 : 0));
1991
- P === 0 ? N === 1 ? I = 24 : N === 2 ? I = 12 : N === 3 ? I = 8 : I = 6 : (I = j >= N ? Math.floor(j / N) : 6, I > 12 && (I = 12), I < 4 && (I = 6));
562
+ const J = S(() => {
563
+ const b = (_.value || []).map(($) => $ ? { ...$, dataOptions: $.dataOptions || [] } : null).filter(($) => {
564
+ if (!$) return !1;
565
+ const D = $.isHiden, X = $.isHidden, ee = typeof D == "function" ? D : typeof X == "function" ? X : null;
566
+ return ee ? !ee(i.value, $, W.value) : !0;
567
+ }), H = b.filter(($) => !$.span).length;
568
+ let x = 6;
569
+ if (H > 0) {
570
+ const $ = b.reduce((X, ee) => X + (ee.span || 0), 0), D = 24 - ($ % 24 || ($ ? 24 : 0));
571
+ $ === 0 ? H === 1 ? x = 24 : H === 2 ? x = 12 : H === 3 ? x = 8 : x = 6 : (x = D >= H ? Math.floor(D / H) : 6, x > 12 && (x = 12), x < 4 && (x = 6));
1992
572
  }
1993
- return C.map((P) => ({ ...P, span: P.span || I }));
1994
- }), O = Wr({
1995
- layoutFormProps: t.layoutFormProps,
573
+ return b.map(($) => ({ ...$, span: $.span || x }));
574
+ }), R = qt({
575
+ layoutFormProps: n.layoutFormProps,
1996
576
  get formItemList() {
1997
- return Q.value;
577
+ return J.value;
1998
578
  }
1999
579
  }), {
2000
- folded: u,
2001
- isBtnHidden: g,
2002
- rowLayout: _,
2003
- formLayout: k,
2004
- getRowColsAlgorithm: T,
2005
- isFold: x,
2006
- getBtnColSpan: z,
2007
- formItem: X,
580
+ folded: r,
581
+ isBtnHidden: u,
582
+ rowLayout: y,
583
+ formLayout: w,
584
+ getRowColsAlgorithm: L,
585
+ isFold: k,
586
+ getBtnColSpan: E,
587
+ formItem: Q,
2008
588
  changeFolded: q
2009
- } = O;
2010
- we(
2011
- k,
2012
- (b) => {
2013
- U.value = b;
589
+ } = R;
590
+ de(
591
+ w,
592
+ (g) => {
593
+ M.value = g;
2014
594
  },
2015
595
  { immediate: !0 }
2016
596
  );
2017
- const ve = E(() => ({
2018
- colRightBtn: t.configBtn.filter((b) => b.direction === "right" || !b.direction),
2019
- colLeftBtn: t.configBtn.filter((b) => b.direction === "left")
2020
- })), ge = E(() => typeof t.renderBtn == "function"), le = (b) => {
2021
- var N, I;
2022
- const C = n().formRef, A = (N = p.value) == null ? void 0 : N.httpRequestInstance;
2023
- (I = b.click) == null || I.call(b, r.value, C, A);
2024
- }, We = (b, C, A) => {
2025
- var I, P, j;
2026
- const N = p.value;
2027
- A === "query" ? s.value && ((I = N == null ? void 0 : N.httpRequestInstance) == null || I.call(N, b)) : A === "rest" && C && (s.value && ((P = N == null ? void 0 : N.httpRequestInstance) == null || P.call(N, b)), (j = C.resetFields) == null || j.call(C));
2028
- }, It = (b) => {
2029
- var A, N, I;
2030
- const C = n().formRef;
2031
- if (b.triggerEvent && ["query", "rest"].includes(b.key || ""))
2032
- We(r.value, C, b.key);
597
+ const se = S(() => ({
598
+ colRightBtn: n.configBtn.filter((g) => g.direction === "right" || !g.direction),
599
+ colLeftBtn: n.configBtn.filter((g) => g.direction === "left")
600
+ })), re = S(() => typeof n.renderBtn == "function"), ne = (g) => {
601
+ var H, x;
602
+ const b = t().formRef, A = (H = p.value) == null ? void 0 : H.httpRequestInstance;
603
+ (x = g.click) == null || x.call(g, i.value, b, A);
604
+ }, _e = (g, b, A) => {
605
+ var x, $, D;
606
+ const H = p.value;
607
+ A === "query" ? a.value && ((x = H == null ? void 0 : H.httpRequestInstance) == null || x.call(H, g)) : A === "rest" && b && (a.value && (($ = H == null ? void 0 : H.httpRequestInstance) == null || $.call(H, g)), (D = b.resetFields) == null || D.call(b));
608
+ }, De = (g) => {
609
+ var A, H, x;
610
+ const b = t().formRef;
611
+ if (g.triggerEvent && ["query", "rest"].includes(g.key || ""))
612
+ _e(i.value, b, g.key);
2033
613
  else {
2034
- b.key === "rest" && C && ((A = C.resetFields) == null || A.call(C));
2035
- const P = (N = p.value) == null ? void 0 : N.httpRequestInstance;
2036
- (I = b.click) == null || I.call(b, r.value, C, P);
614
+ g.key === "rest" && b && ((A = b.resetFields) == null || A.call(b));
615
+ const $ = (H = p.value) == null ? void 0 : H.httpRequestInstance;
616
+ (x = g.click) == null || x.call(g, i.value, b, $);
2037
617
  }
2038
- }, Ft = (b) => {
2039
- if (s.value) {
2040
- const { style: C, ...A } = b;
2041
- return { style: { marginBottom: "10px", ...C || {} }, ...A };
618
+ }, qe = (g) => {
619
+ if (a.value) {
620
+ const { style: b, ...A } = g;
621
+ return { style: { marginBottom: "10px", ...b || {} }, ...A };
2042
622
  }
2043
- return b;
2044
- }, Ie = () => n().formRef, nt = () => {
2045
- const b = Ie();
2046
- return b ? new Promise((C) => {
623
+ return g;
624
+ }, fe = () => t().formRef, Ie = () => {
625
+ const g = fe();
626
+ return g ? new Promise((b) => {
2047
627
  try {
2048
- const A = b.validate((N) => {
2049
- C(!!N);
628
+ const A = g.validate((H) => {
629
+ b(!!H);
2050
630
  });
2051
- A && typeof A.then == "function" && A.then(C).catch(() => C(!1));
631
+ A && typeof A.then == "function" && A.then(b).catch(() => b(!1));
2052
632
  } catch (A) {
2053
- C(!1);
633
+ b(!1);
2054
634
  }
2055
635
  }) : Promise.resolve(!1);
2056
- }, ot = () => {
636
+ }, Re = () => {
637
+ var g;
638
+ return (g = fe()) == null ? void 0 : g.resetFields();
639
+ }, Oe = (g) => {
640
+ var b;
641
+ return (b = fe()) == null ? void 0 : b.clearValidate(g);
642
+ }, we = (g) => {
2057
643
  var b;
2058
- return (b = Ie()) == null ? void 0 : b.resetFields();
2059
- }, rt = (b) => {
2060
- var C;
2061
- return (C = Ie()) == null ? void 0 : C.clearValidate(b);
2062
- }, it = (b) => {
2063
- var C;
2064
- return (C = Ie()) == null ? void 0 : C.validateField(b);
2065
- }, De = async (b) => {
2066
- const A = Q.value.filter((I) => I && b.includes(I.prop));
644
+ return (b = fe()) == null ? void 0 : b.validateField(g);
645
+ }, ye = async (g) => {
646
+ const A = J.value.filter((x) => x && g.includes(x.prop));
2067
647
  if (!A.length) return;
2068
- (await W(A, M)).forEach((I) => {
2069
- if (!I) return;
2070
- const P = S.value.findIndex((j) => j && j.prop === I.prop);
2071
- P !== -1 && (S.value[P] = {
2072
- ...S.value[P],
2073
- dataOptions: I.listData
648
+ (await U(A, N)).forEach((x) => {
649
+ if (!x) return;
650
+ const $ = _.value.findIndex((D) => D && D.prop === x.prop);
651
+ $ !== -1 && (_.value[$] = {
652
+ ..._.value[$],
653
+ dataOptions: x.listData
2074
654
  });
2075
655
  });
2076
656
  };
2077
- return Xe(() => {
2078
- f.value = n().formRef;
2079
- const b = o == null ? void 0 : o.proxy, C = b == null ? void 0 : b.bodyFormInstance;
2080
- C == null || C(f.value);
657
+ return xe(() => {
658
+ m.value = t().formRef;
659
+ const g = o == null ? void 0 : o.proxy, b = g == null ? void 0 : g.bodyFormInstance;
660
+ b == null || b(m.value);
2081
661
  }), typeof e.expose == "function" && e.expose({
2082
- formItmeRequestInstance: De,
2083
- getFormRef: Ie,
2084
- validate: nt,
2085
- resetFields: ot,
2086
- clearValidate: rt,
2087
- validateField: it
662
+ formItmeRequestInstance: ye,
663
+ getFormRef: fe,
664
+ validate: Ie,
665
+ resetFields: Re,
666
+ clearValidate: Oe,
667
+ validateField: we
2088
668
  }), {
2089
669
  // 模板使用
2090
- formProps: J,
2091
- rowLayout: _,
2092
- formItem: X,
2093
- isBtnHidden: g,
2094
- isFold: x,
2095
- folded: u,
2096
- getBtnColSpan: z,
2097
- isRenderBtn: ge,
2098
- colRightLeftList: ve,
2099
- formInputComponents: F,
2100
- formInstance: f,
670
+ formProps: W,
671
+ rowLayout: y,
672
+ formItem: Q,
673
+ isBtnHidden: u,
674
+ isFold: k,
675
+ folded: r,
676
+ getBtnColSpan: E,
677
+ isRenderBtn: re,
678
+ colRightLeftList: se,
679
+ formInputComponents: T,
680
+ formInstance: m,
2101
681
  // 注意:不要在 setup return 中暴露与 props 同名的 key(configBtn / model /
2102
682
  // btnColSpanRow / renderBtn)——Vue 2 已自动把 props 挂到 vm 实例,
2103
683
  // 重复暴露会在 @vue/composition-api 下触发 "already declared as a prop" 警告。
2104
684
  // 模板中的 :model 引用 resolvedModel(用于解析 v-model 兼容),其它 props 直接使用名称。
2105
- resolvedModel: r,
2106
- getRowColsAlgorithm: T,
685
+ resolvedModel: i,
686
+ getRowColsAlgorithm: L,
2107
687
  changeFolded: q,
2108
688
  // 方法
2109
- checkPermission: l,
2110
- translateLabel: y,
2111
- getCompIcon: m,
2112
- filterOptions: v,
2113
- resolveDisabled: h,
2114
- handleBtnClick: le,
2115
- clickBtn: It,
2116
- initFormItemOptions: Ft,
689
+ checkPermission: B,
690
+ translateLabel: F,
691
+ getCompIcon: h,
692
+ filterOptions: d,
693
+ resolveDisabled: v,
694
+ handleBtnClick: ne,
695
+ clickBtn: De,
696
+ initFormItemOptions: qe,
2117
697
  noop: () => {
2118
698
  },
2119
699
  // expose 公开方法(供 $refs.<esForm>.validate() 直接调用,不经过 ctx.expose)
2120
- formItmeRequestInstance: De,
2121
- getFormRef: Ie,
2122
- validate: nt,
2123
- resetFields: ot,
2124
- clearValidate: rt,
2125
- validateField: it
700
+ formItmeRequestInstance: ye,
701
+ getFormRef: fe,
702
+ validate: Ie,
703
+ resetFields: Re,
704
+ clearValidate: Oe,
705
+ validateField: we
2126
706
  };
2127
707
  }
2128
708
  });
2129
- function Ne(t, e, o, n, r, a, i, l) {
2130
- var y = typeof t == "function" ? t.options : t;
2131
- return e && (y.render = e, y.staticRenderFns = o, y._compiled = !0), a && (y._scopeId = "data-v-" + a), {
2132
- exports: t,
2133
- options: y
709
+ function ge(n, e, o, t, i, l, c, B) {
710
+ var F = typeof n == "function" ? n.options : n;
711
+ return e && (F.render = e, F.staticRenderFns = o, F._compiled = !0), l && (F._scopeId = "data-v-" + l), {
712
+ exports: n,
713
+ options: F
2134
714
  };
2135
715
  }
2136
- var Yr = function() {
716
+ var Wt = function() {
2137
717
  var e = this, o = e._self._c;
2138
- return e._self._setupProxy, o("el-form", e._b({ ref: "formRef", staticClass: "es-form" }, "el-form", e.formProps, !1), [o("div", { staticClass: "flex-center" }, [o("el-row", e._b({}, "el-row", e.rowLayout, !1), [e._l(e.formItem, function(n, r) {
2139
- return [o("el-col", { directives: [{ name: "show", rawName: "v-show", value: !n.isFold, expression: "!item.isFold" }], key: n.prop || r, attrs: { span: n.span } }, [o("el-form-item", e._b({ attrs: { label: e.translateLabel(n), prop: n.prop }, nativeOn: { click: function(a) {
2140
- return a.stopPropagation(), e.noop.apply(null, arguments);
2141
- } } }, "el-form-item", e.initFormItemOptions(n.formItemOptions || {}), !1), [n.formtype ? [o("render-dom-form", { attrs: { row: n, render: e.formInputComponents(n), index: r, model: e.resolvedModel } })] : n.render ? [o("render-dom-form", { attrs: { row: n, render: n.render, index: r, model: e.resolvedModel } })] : e._e()], 2)], 1)];
2142
- }), e.isBtnHidden ? e._e() : [e.isRenderBtn ? o("render-btn", { attrs: { row: { isFold: e.isFold, folded: e.folded, getBtnColSpan: e.getBtnColSpan, getRowColsAlgorithm: e.getRowColsAlgorithm, changeFolded: e.changeFolded, refsForm: e.formInstance }, "form-model": e.resolvedModel, "form-item-list": e.formItem, render: e.renderBtn } }) : o("el-col", { attrs: { span: e.btnColSpanRow ? 24 : e.getBtnColSpan } }, [e.btnColSpanRow && e.configBtn.length ? o("div", { staticClass: "buttonOperate leftRightBtn" }, [o("div", { staticClass: "btn-left" }, [o("el-form-item", { staticClass: "btn-formItem", attrs: { "label-width": "0px" } }, [e._l(e.colRightLeftList.colLeftBtn, function(n, r) {
2143
- return [e.checkPermission(n.permissionValue) ? o("el-button", e._b({ key: n.key || r, attrs: { icon: e.getCompIcon(n.icon), disabled: e.resolveDisabled(n) }, on: { click: function(a) {
2144
- return e.handleBtnClick(n);
2145
- } } }, "el-button", e.filterOptions(n), !1), [e._v(" " + e._s(n.name) + " ")]) : e._e()];
2146
- })], 2)], 1), o("div", { staticClass: "btn-right" }, [o("el-form-item", { staticClass: "btn-formItem", attrs: { "label-width": "0px" } }, [e._l(e.colRightLeftList.colRightBtn, function(n, r) {
2147
- return [e.checkPermission(n.permissionValue) ? o("el-button", e._b({ key: n.key || r, attrs: { icon: e.getCompIcon(n.icon), disabled: e.resolveDisabled(n) }, on: { click: function(a) {
2148
- return e.clickBtn(n);
2149
- } } }, "el-button", e.filterOptions(n), !1), [e._v(" " + e._s(n.name) + " ")]) : e._e()];
2150
- }), e.isFold ? o("el-button", { staticStyle: { "padding-left": "0", border: "none" }, attrs: { type: "text", icon: e.folded ? "el-icon-arrow-down" : "el-icon-arrow-up" }, on: { click: e.changeFolded } }, [e._v(" " + e._s(e.folded ? "展开" : "收起") + " ")]) : e._e()], 2)], 1)]) : e._e(), !e.btnColSpanRow && e.configBtn.length ? o("el-form-item", { staticClass: "btn-formItem", class: { formItemCols: e.btnColSpanRow ? !0 : e.getBtnColSpan === 24 }, attrs: { label: " ", "label-width": e.formProps.labelBtnWidth ? e.formProps.labelBtnWidth : e.formProps.labelWidth } }, [o("div", { staticClass: "buttonOperate", style: { "text-align": e.getBtnColSpan === 24 ? "right" : "left" } }, [e._l(e.configBtn, function(n, r) {
2151
- return [e.checkPermission(n.permissionValue) ? o("el-button", e._b({ key: n.key || r, attrs: { icon: e.getCompIcon(n.icon), disabled: e.resolveDisabled(n) }, on: { click: function(a) {
2152
- return e.handleBtnClick(n);
2153
- } } }, "el-button", e.filterOptions(n), !1), [e._v(" " + e._s(n.name) + " ")]) : e._e()];
718
+ return e._self._setupProxy, o("el-form", e._b({ ref: "formRef", staticClass: "es-form" }, "el-form", e.formProps, !1), [o("div", { staticClass: "flex-center" }, [o("el-row", e._b({}, "el-row", e.rowLayout, !1), [e._l(e.formItem, function(t, i) {
719
+ return [o("el-col", { directives: [{ name: "show", rawName: "v-show", value: !t.isFold, expression: "!item.isFold" }], key: t.prop || i, attrs: { span: t.span } }, [o("el-form-item", e._b({ attrs: { label: e.translateLabel(t), prop: t.prop }, nativeOn: { click: function(l) {
720
+ return l.stopPropagation(), e.noop.apply(null, arguments);
721
+ } } }, "el-form-item", e.initFormItemOptions(t.formItemOptions || {}), !1), [t.formtype ? [o("render-dom-form", { attrs: { row: t, render: e.formInputComponents(t), index: i, model: e.resolvedModel } })] : t.render ? [o("render-dom-form", { attrs: { row: t, render: t.render, index: i, model: e.resolvedModel } })] : e._e()], 2)], 1)];
722
+ }), e.isBtnHidden ? e._e() : [e.isRenderBtn ? o("render-btn", { attrs: { row: { isFold: e.isFold, folded: e.folded, getBtnColSpan: e.getBtnColSpan, getRowColsAlgorithm: e.getRowColsAlgorithm, changeFolded: e.changeFolded, refsForm: e.formInstance }, "form-model": e.resolvedModel, "form-item-list": e.formItem, render: e.renderBtn } }) : o("el-col", { attrs: { span: e.btnColSpanRow ? 24 : e.getBtnColSpan } }, [e.btnColSpanRow && e.configBtn.length ? o("div", { staticClass: "buttonOperate leftRightBtn" }, [o("div", { staticClass: "btn-left" }, [o("el-form-item", { staticClass: "btn-formItem", attrs: { "label-width": "0px" } }, [e._l(e.colRightLeftList.colLeftBtn, function(t, i) {
723
+ return [e.checkPermission(t.permissionValue) ? o("el-button", e._b({ key: t.key || i, attrs: { icon: e.getCompIcon(t.icon), disabled: e.resolveDisabled(t) }, on: { click: function(l) {
724
+ return e.handleBtnClick(t);
725
+ } } }, "el-button", e.filterOptions(t), !1), [e._v(" " + e._s(t.name) + " ")]) : e._e()];
726
+ })], 2)], 1), o("div", { staticClass: "btn-right" }, [o("el-form-item", { staticClass: "btn-formItem", attrs: { "label-width": "0px" } }, [e._l(e.colRightLeftList.colRightBtn, function(t, i) {
727
+ return [e.checkPermission(t.permissionValue) ? o("el-button", e._b({ key: t.key || i, attrs: { icon: e.getCompIcon(t.icon), disabled: e.resolveDisabled(t) }, on: { click: function(l) {
728
+ return e.clickBtn(t);
729
+ } } }, "el-button", e.filterOptions(t), !1), [e._v(" " + e._s(t.name) + " ")]) : e._e()];
730
+ }), e.isFold ? o("el-button", { staticStyle: { "padding-left": "0", border: "none" }, attrs: { type: "text", icon: e.folded ? "el-icon-arrow-down" : "el-icon-arrow-up" }, on: { click: e.changeFolded } }, [e._v(" " + e._s(e.folded ? "展开" : "收起") + " ")]) : e._e()], 2)], 1)]) : e._e(), !e.btnColSpanRow && e.configBtn.length ? o("el-form-item", { staticClass: "btn-formItem", class: { formItemCols: e.btnColSpanRow ? !0 : e.getBtnColSpan === 24 }, attrs: { label: " ", "label-width": e.formProps.labelBtnWidth ? e.formProps.labelBtnWidth : e.formProps.labelWidth } }, [o("div", { staticClass: "buttonOperate", style: { "text-align": e.getBtnColSpan === 24 ? "right" : "left" } }, [e._l(e.configBtn, function(t, i) {
731
+ return [e.checkPermission(t.permissionValue) ? o("el-button", e._b({ key: t.key || i, attrs: { icon: e.getCompIcon(t.icon), disabled: e.resolveDisabled(t) }, on: { click: function(l) {
732
+ return e.handleBtnClick(t);
733
+ } } }, "el-button", e.filterOptions(t), !1), [e._v(" " + e._s(t.name) + " ")]) : e._e()];
2154
734
  }), e.isFold ? o("el-button", { staticStyle: { "padding-left": "0", border: "none" }, attrs: { type: "text", icon: e.folded ? "el-icon-arrow-down" : "el-icon-arrow-up" }, on: { click: e.changeFolded } }, [e._v(" " + e._s(e.folded ? "展开" : "收起") + " ")]) : e._e()], 2)]) : e._e()], 1)]], 2)], 1)]);
2155
- }, Zr = [], Xr = /* @__PURE__ */ Ne(
2156
- Gr,
2157
- Yr,
2158
- Zr,
735
+ }, Qt = [], Jt = /* @__PURE__ */ ge(
736
+ Kt,
737
+ Wt,
738
+ Qt,
2159
739
  !1,
2160
740
  null,
2161
741
  "4a462026"
2162
742
  );
2163
- const ze = Xr.exports;
2164
- ze.install = function(t) {
2165
- t.component(ze.name || "EsForm", ze);
743
+ const be = Jt.exports;
744
+ be.install = function(n) {
745
+ n.component(be.name || "EsForm", be);
2166
746
  };
2167
- const ei = be({
747
+ const Zt = ie({
2168
748
  name: "RenderDomTb",
2169
749
  props: {
2170
750
  row: { type: Object, default: () => ({}) },
@@ -2172,22 +752,22 @@ const ei = be({
2172
752
  dataKey: String,
2173
753
  render: { type: Function, required: !0 }
2174
754
  },
2175
- setup(t) {
755
+ setup(n) {
2176
756
  return () => {
2177
- const { row: e, index: o, dataKey: n, render: r } = t;
2178
- if (!e) return Ce("span", "-");
2179
- const a = n ? e[n] : null;
757
+ const { row: e, index: o, dataKey: t, render: i } = n;
758
+ if (!e) return ue("span", "-");
759
+ const l = t ? e[t] : null;
2180
760
  try {
2181
- const i = r(Ce, { value: a, row: e, index: o });
2182
- return typeof i == "string" ? Ce("span", i) : i;
2183
- } catch (i) {
2184
- return Ce("span", "-");
761
+ const c = i(ue, { value: l, row: e, index: o });
762
+ return typeof c == "string" ? ue("span", c) : c;
763
+ } catch (c) {
764
+ return ue("span", "-");
2185
765
  }
2186
766
  };
2187
767
  }
2188
- }), ti = (t) => t.charAt(0).toUpperCase() + t.slice(1).toLowerCase(), ni = be({
768
+ }), Gt = (n) => n.charAt(0).toUpperCase() + n.slice(1).toLowerCase(), Yt = ie({
2189
769
  name: "EsTableColumnItem",
2190
- components: { RenderDomTb: ei },
770
+ components: { RenderDomTb: Zt },
2191
771
  props: {
2192
772
  cols: {
2193
773
  type: Object,
@@ -2195,64 +775,64 @@ const ei = be({
2195
775
  }
2196
776
  },
2197
777
  setup() {
2198
- var o, n;
2199
- const t = (n = (o = Se("$EsPlus", null)) != null ? o : Pe()) != null ? n : {};
778
+ var o, t;
779
+ const n = (t = (o = ce("$EsPlus", null)) != null ? o : me()) != null ? t : {};
2200
780
  return {
2201
- columnBindAttr: (r) => {
2202
- const a = {};
2203
- for (const i in r)
2204
- if (!(i === "groups" || i === "scopedSlots" || i === "render"))
2205
- if (i.includes("-")) {
2206
- const l = i.split("-");
2207
- let y = l[0];
2208
- for (let c = 1; c < l.length; c++)
2209
- y += ti(l[c]);
2210
- a[y] = r[i];
2211
- } else i === "key" ? (a.prop = r[i], a[i] = r[i]) : i === "label" && r.labelKey && typeof t.t == "function" ? a.label = t.t(r.labelKey) : a[i] = r[i];
2212
- return a.align || (a.align = "center"), a;
781
+ columnBindAttr: (i) => {
782
+ const l = {};
783
+ for (const c in i)
784
+ if (!(c === "groups" || c === "scopedSlots" || c === "render"))
785
+ if (c.includes("-")) {
786
+ const B = c.split("-");
787
+ let F = B[0];
788
+ for (let f = 1; f < B.length; f++)
789
+ F += Gt(B[f]);
790
+ l[F] = i[c];
791
+ } else c === "key" ? (l.prop = i[c], l[c] = i[c]) : c === "label" && i.labelKey && typeof n.t == "function" ? l.label = n.t(i.labelKey) : l[c] = i[c];
792
+ return l.align || (l.align = "center"), l;
2213
793
  }
2214
794
  };
2215
795
  }
2216
796
  });
2217
- var oi = function() {
797
+ var Xt = function() {
2218
798
  var e = this, o = e._self._c;
2219
- return e._self._setupProxy, e.cols.groups && Array.isArray(e.cols.groups) ? o("el-table-column", e._b({}, "el-table-column", e.columnBindAttr(e.cols), !1), e._l(e.cols.groups, function(n, r) {
2220
- return o("el-table-column", e._b({ key: n.prop || n.key || r, scopedSlots: e._u([n.render && typeof n.render == "function" ? { key: "default", fn: function(a) {
2221
- return [a && a.row ? o("render-dom-tb", { attrs: { row: a.row, index: a.$index, "data-key": n.key, render: n.render } }) : o("span", [e._v("-")])];
2222
- } } : n.scopedSlots && n.scopedSlots.customRender ? { key: "default", fn: function(a) {
2223
- return [a && a.row ? e._t(n.scopedSlots.customRender, null, null, Object.assign({}, n, { row: a.row, column: a.column, scope: a })) : o("span", [e._v("-")])];
2224
- } } : null], null, !0) }, "el-table-column", e.columnBindAttr(Object.assign({}, n, { columnIndex: r })), !1));
2225
- }), 1) : e.cols.render && typeof e.cols.render == "function" ? o("el-table-column", e._b({ scopedSlots: e._u([{ key: "default", fn: function(n) {
2226
- return [n && n.row ? o("render-dom-tb", { attrs: { row: n.row, index: n.$index, "data-key": e.cols.key, render: e.cols.render } }) : o("span", [e._v("-")])];
2227
- } }]) }, "el-table-column", e.columnBindAttr(e.cols), !1)) : e.cols.scopedSlots && e.cols.scopedSlots.customRender ? o("el-table-column", e._b({ scopedSlots: e._u([{ key: "default", fn: function(n) {
2228
- return [n && n.row ? e._t(e.cols.scopedSlots.customRender, null, null, Object.assign({}, e.cols, { row: n.row, column: n.column, scope: n })) : o("span", [e._v("-")])];
799
+ return e._self._setupProxy, e.cols.groups && Array.isArray(e.cols.groups) ? o("el-table-column", e._b({}, "el-table-column", e.columnBindAttr(e.cols), !1), e._l(e.cols.groups, function(t, i) {
800
+ return o("el-table-column", e._b({ key: t.prop || t.key || i, scopedSlots: e._u([t.render && typeof t.render == "function" ? { key: "default", fn: function(l) {
801
+ return [l && l.row ? o("render-dom-tb", { attrs: { row: l.row, index: l.$index, "data-key": t.key, render: t.render } }) : o("span", [e._v("-")])];
802
+ } } : t.scopedSlots && t.scopedSlots.customRender ? { key: "default", fn: function(l) {
803
+ return [l && l.row ? e._t(t.scopedSlots.customRender, null, null, Object.assign({}, t, { row: l.row, column: l.column, scope: l })) : o("span", [e._v("-")])];
804
+ } } : null], null, !0) }, "el-table-column", e.columnBindAttr(Object.assign({}, t, { columnIndex: i })), !1));
805
+ }), 1) : e.cols.render && typeof e.cols.render == "function" ? o("el-table-column", e._b({ scopedSlots: e._u([{ key: "default", fn: function(t) {
806
+ return [t && t.row ? o("render-dom-tb", { attrs: { row: t.row, index: t.$index, "data-key": e.cols.key, render: e.cols.render } }) : o("span", [e._v("-")])];
807
+ } }]) }, "el-table-column", e.columnBindAttr(e.cols), !1)) : e.cols.scopedSlots && e.cols.scopedSlots.customRender ? o("el-table-column", e._b({ scopedSlots: e._u([{ key: "default", fn: function(t) {
808
+ return [t && t.row ? e._t(e.cols.scopedSlots.customRender, null, null, Object.assign({}, e.cols, { row: t.row, column: t.column, scope: t })) : o("span", [e._v("-")])];
2229
809
  } }], null, !0) }, "el-table-column", e.columnBindAttr(e.cols), !1)) : e.cols.ellipsis && typeof e.cols.ellipsis == "boolean" ? o("el-table-column", e._b({ attrs: { "show-overflow-tooltip": "" } }, "el-table-column", e.columnBindAttr(e.cols), !1)) : o("el-table-column", e._b({}, "el-table-column", e.columnBindAttr(e.cols), !1));
2230
- }, ri = [], ii = /* @__PURE__ */ Ne(
2231
- ni,
2232
- oi,
2233
- ri,
810
+ }, en = [], tn = /* @__PURE__ */ ge(
811
+ Yt,
812
+ Xt,
813
+ en,
2234
814
  !1,
2235
815
  null,
2236
816
  null
2237
817
  );
2238
- const ai = ii.exports, Jn = (t) => t ? t.startsWith("el-icon-") ? t : `el-icon-${t.replace(/([a-z])([A-Z])/g, "$1-$2").replace(/[\s_]+/g, "-").toLowerCase()}` : void 0, si = be({
818
+ const nn = tn.exports, ft = (n) => n ? n.startsWith("el-icon-") ? n : `el-icon-${n.replace(/([a-z])([A-Z])/g, "$1-$2").replace(/[\s_]+/g, "-").toLowerCase()}` : void 0, on = ie({
2239
819
  name: "RenderDomTbBtn",
2240
820
  props: {
2241
821
  render: { type: Function, required: !0 }
2242
822
  },
2243
- setup(t) {
823
+ setup(n) {
2244
824
  return () => {
2245
- if (!t.render || typeof t.render != "function") return null;
825
+ if (!n.render || typeof n.render != "function") return null;
2246
826
  try {
2247
- return t.render();
827
+ return n.render();
2248
828
  } catch (e) {
2249
829
  return null;
2250
830
  }
2251
831
  };
2252
832
  }
2253
- }), li = be({
833
+ }), sn = ie({
2254
834
  name: "EsTableBtns",
2255
- components: { RenderDom: si },
835
+ components: { RenderDom: on },
2256
836
  props: {
2257
837
  leftText: { type: String, default: "" },
2258
838
  btnConfig: {
@@ -2264,120 +844,124 @@ const ai = ii.exports, Jn = (t) => t ? t.startsWith("el-icon-") ? t : `el-icon-$
2264
844
  default: () => ({})
2265
845
  }
2266
846
  },
2267
- setup(t) {
2268
- var s, m;
2269
- const e = (m = (s = Se("$EsPlus", null)) != null ? s : Pe()) != null ? m : {}, o = (v, h) => {
2270
- if (!h) return !0;
2271
- const f = e.permission;
2272
- return typeof f == "function" ? f(h) : !0;
2273
- }, n = (v) => v.map((h) => {
2274
- const f = { ...h };
2275
- return o([], h.permissionValue) ? typeof h.isHide == "function" ? f.isHide = h.isHide() : f.isHide = h.isHide || !1 : f.isHide = !0, f;
2276
- }), r = E(() => n(
2277
- (t.btnConfig || []).filter((v) => en(v) === "left")
2278
- ).filter((v) => !v.isHide)), a = E(() => n(
2279
- (t.btnConfig || []).filter((v) => en(v) === "right")
2280
- ).filter((v) => !v.isHide)), i = E(() => !!t.leftText || r.value.length > 0 || a.value.length > 0);
847
+ setup(n) {
848
+ var a, h;
849
+ const e = (h = (a = ce("$EsPlus", null)) != null ? a : me()) != null ? h : {}, o = (d, v) => {
850
+ if (!v) return !0;
851
+ const m = e.permission;
852
+ return typeof m == "function" ? m(v) : !0;
853
+ }, t = (d) => d.map((v) => {
854
+ const m = { ...v };
855
+ return o([], v.permissionValue) ? typeof v.isHide == "function" ? m.isHide = v.isHide() : m.isHide = v.isHide || !1 : m.isHide = !0, m;
856
+ }), i = S(() => t(
857
+ (n.btnConfig || []).filter((d) => nt(d) === "left")
858
+ ).filter((d) => !d.isHide)), l = S(() => t(
859
+ (n.btnConfig || []).filter((d) => nt(d) === "right")
860
+ ).filter((d) => !d.isHide)), c = S(() => !!n.leftText || i.value.length > 0 || l.value.length > 0);
2281
861
  return {
2282
- processedBtnLeft: r,
2283
- processedBtnRight: a,
2284
- showContainer: i,
2285
- getDisabledState: (v) => typeof v.disabled == "function" ? v.disabled() : v.disabled || !1,
2286
- buttonContainerStyle: (v) => ({
862
+ processedBtnLeft: i,
863
+ processedBtnRight: l,
864
+ showContainer: c,
865
+ getDisabledState: (d) => typeof d.disabled == "function" ? d.disabled() : d.disabled || !1,
866
+ buttonContainerStyle: (d) => ({
2287
867
  display: "inline-block",
2288
- marginLeft: v !== 0 ? "8px" : "0px"
868
+ marginLeft: d !== 0 ? "8px" : "0px"
2289
869
  }),
2290
- getCompIcon: Jn,
2291
- filterOptions: (v) => {
870
+ getCompIcon: ft,
871
+ filterOptions: (d) => {
2292
872
  const {
2293
- render: h,
2294
- click: f,
2295
- icon: S,
2296
- permissionValue: F,
2297
- code: H,
2298
- isHide: M,
2299
- name: W,
2300
- size: U,
2301
- ...J
2302
- } = v;
2303
- return J;
873
+ render: v,
874
+ click: m,
875
+ icon: _,
876
+ permissionValue: T,
877
+ code: j,
878
+ isHide: N,
879
+ name: U,
880
+ size: M,
881
+ ...W
882
+ } = d;
883
+ return W;
2304
884
  },
2305
- resolveBtnSize: (v) => St(v.size) || "mini"
885
+ resolveBtnSize: (d) => je(d.size) || "mini"
2306
886
  };
2307
887
  }
2308
888
  });
2309
- var ci = function() {
889
+ var rn = function() {
2310
890
  var e = this, o = e._self._c;
2311
- return e._self._setupProxy, e.showContainer ? o("div", { staticClass: "flex-float btns" }, [o("div", { staticClass: "left-text" }, [e._v(" " + e._s(e.leftText) + " ")]), o("div", { staticClass: "btn-container_block" }, [o("div", { staticClass: "btn-left" }, [e._l(e.processedBtnLeft, function(n, r) {
2312
- return [n.isHide ? e._e() : o("div", { key: n.name || r, style: e.buttonContainerStyle(r) }, [n.render && typeof n.render == "function" ? o("render-dom", { attrs: { render: n.render } }) : o("el-button", e._b({ attrs: { type: n.type || "", size: e.resolveBtnSize(n), icon: e.getCompIcon(n.icon), loading: n.loading || !1, disabled: e.getDisabledState(n) }, on: { click: () => n.click && n.click(e.instance) } }, "el-button", e.filterOptions(n), !1), [e._v(" " + e._s(n.name) + " ")])], 1)];
2313
- })], 2), o("div", { staticClass: "btn-right" }, [e._l(e.processedBtnRight, function(n, r) {
2314
- return [n.isHide ? e._e() : o("div", { key: n.name || r, style: e.buttonContainerStyle(r) }, [n.render && typeof n.render == "function" ? o("render-dom", { attrs: { render: n.render } }) : o("el-button", e._b({ attrs: { type: n.type || "", size: e.resolveBtnSize(n), icon: e.getCompIcon(n.icon), loading: n.loading || !1, disabled: e.getDisabledState(n) }, on: { click: () => n.click && n.click(e.instance) } }, "el-button", e.filterOptions(n), !1), [e._v(" " + e._s(n.name) + " ")])], 1)];
891
+ return e._self._setupProxy, e.showContainer ? o("div", { staticClass: "flex-float btns" }, [o("div", { staticClass: "left-text" }, [e._v(" " + e._s(e.leftText) + " ")]), o("div", { staticClass: "btn-container_block" }, [o("div", { staticClass: "btn-left" }, [e._l(e.processedBtnLeft, function(t, i) {
892
+ return [t.isHide ? e._e() : o("div", { key: t.name || i, style: e.buttonContainerStyle(i) }, [t.render && typeof t.render == "function" ? o("render-dom", { attrs: { render: t.render } }) : o("el-button", e._b({ attrs: { type: t.type || "", size: e.resolveBtnSize(t), icon: e.getCompIcon(t.icon), loading: t.loading || !1, disabled: e.getDisabledState(t) }, on: { click: () => t.click && t.click(e.instance) } }, "el-button", e.filterOptions(t), !1), [e._v(" " + e._s(t.name) + " ")])], 1)];
893
+ })], 2), o("div", { staticClass: "btn-right" }, [e._l(e.processedBtnRight, function(t, i) {
894
+ return [t.isHide ? e._e() : o("div", { key: t.name || i, style: e.buttonContainerStyle(i) }, [t.render && typeof t.render == "function" ? o("render-dom", { attrs: { render: t.render } }) : o("el-button", e._b({ attrs: { type: t.type || "", size: e.resolveBtnSize(t), icon: e.getCompIcon(t.icon), loading: t.loading || !1, disabled: e.getDisabledState(t) }, on: { click: () => t.click && t.click(e.instance) } }, "el-button", e.filterOptions(t), !1), [e._v(" " + e._s(t.name) + " ")])], 1)];
2315
895
  })], 2)])]) : e._e();
2316
- }, ui = [], fi = /* @__PURE__ */ Ne(
2317
- li,
2318
- ci,
2319
- ui,
896
+ }, an = [], ln = /* @__PURE__ */ ge(
897
+ sn,
898
+ rn,
899
+ an,
2320
900
  !1,
2321
901
  null,
2322
902
  "2b641efd"
2323
903
  );
2324
- const di = fi.exports;
2325
- function pi(t, e, o, n, r) {
2326
- const a = L(400), i = L(null), l = (m) => Math.sign(m) === -1, y = () => {
2327
- var f, S, F, H;
2328
- const m = ((f = e.value) == null ? void 0 : f.offsetHeight) || 0, v = ((F = (S = o.value) == null ? void 0 : S.$el) == null ? void 0 : F.offsetHeight) || 0, h = ((H = n.value) == null ? void 0 : H.offsetHeight) || 0;
2329
- return Math.round(h + m + v);
2330
- }, c = () => {
2331
- var U, J, K, Q, O;
2332
- const m = t.value;
2333
- if (!m) return;
2334
- const v = typeof r.tabHeight == "number" ? r.tabHeight : r.heightType === "height" ? ((U = m.parentElement) == null ? void 0 : U.offsetHeight) || m.offsetHeight : parseInt(r.tabHeight, 10) || 450, h = isNaN(v) ? 450 : v, f = h - y(), S = l(f) ? y() + 300 : h, F = ((J = n.value) == null ? void 0 : J.offsetHeight) || 0, H = ((K = e.value) == null ? void 0 : K.offsetHeight) || 0, M = ((O = (Q = o.value) == null ? void 0 : Q.$el) == null ? void 0 : O.offsetHeight) || 0, W = Math.floor(S) - Math.round(F + H + M);
2335
- a.value !== W && (a.value = W);
904
+ const cn = ln.exports;
905
+ function un(n, e, o, t, i) {
906
+ const l = z(400), c = z(null), B = (d) => Math.sign(d) === -1, F = () => {
907
+ var _, T, j, N;
908
+ const d = ((_ = e.value) == null ? void 0 : _.offsetHeight) || 0, v = ((j = (T = o.value) == null ? void 0 : T.$el) == null ? void 0 : j.offsetHeight) || 0, m = ((N = t.value) == null ? void 0 : N.offsetHeight) || 0;
909
+ return Math.round(m + d + v);
910
+ }, f = (d) => {
911
+ if (!d) return 0;
912
+ const v = typeof window != "undefined" ? window.getComputedStyle(d) : null, m = v && parseFloat(v.paddingTop) || 0, _ = v && parseFloat(v.paddingBottom) || 0, T = d.clientHeight - m - _;
913
+ return T > 0 ? T : d.clientHeight || d.offsetHeight || 0;
2336
914
  }, p = () => {
2337
- Xe(() => {
2338
- if (!t.value || typeof ResizeObserver == "undefined") return;
2339
- i.value = new ResizeObserver(() => {
915
+ var W, V, J, R;
916
+ const d = n.value;
917
+ if (!d) return;
918
+ const v = typeof i.tabHeight == "number" ? i.tabHeight : i.heightType === "height" ? f(d.parentElement) || d.offsetHeight : parseInt(i.tabHeight, 10) || 450, m = isNaN(v) ? 450 : v, _ = m - F(), T = B(_) ? F() + 300 : m, j = ((W = t.value) == null ? void 0 : W.offsetHeight) || 0, N = ((V = e.value) == null ? void 0 : V.offsetHeight) || 0, U = ((R = (J = o.value) == null ? void 0 : J.$el) == null ? void 0 : R.offsetHeight) || 0, M = Math.floor(T) - Math.round(j + N + U);
919
+ l.value !== M && (l.value = M);
920
+ }, a = () => {
921
+ xe(() => {
922
+ if (!n.value || typeof ResizeObserver == "undefined") return;
923
+ c.value = new ResizeObserver(() => {
2340
924
  requestAnimationFrame(() => {
2341
- t.value && c();
925
+ n.value && p();
2342
926
  });
2343
927
  });
2344
- const m = r.heightType === "height" && t.value.parentElement || t.value;
2345
- i.value.observe(m), c(), e.value && i.value.observe(e.value), n.value && i.value.observe(n.value);
928
+ const d = i.heightType === "height" && n.value.parentElement || n.value;
929
+ c.value.observe(d), p(), e.value && c.value.observe(e.value), t.value && c.value.observe(t.value);
2346
930
  });
2347
- }, s = () => {
2348
- i.value && (i.value.disconnect(), i.value = null);
931
+ }, h = () => {
932
+ c.value && (c.value.disconnect(), c.value = null);
2349
933
  };
2350
- return Mt(() => p()), jr(() => s()), { tableHeight: a, resizeObservers: c, startObserver: p, stopObserver: s };
934
+ return Ue(() => a()), jt(() => h()), { tableHeight: l, resizeObservers: p, startObserver: a, stopObserver: h };
2351
935
  }
2352
- function vi(t) {
2353
- const e = co(), o = L([]), n = L({}), r = L(!1), a = () => {
2354
- o.value = [...e.multipleSelection], n.value = { ...e.selectionsByPage }, r.value = e.isInitChange;
936
+ function dn(n) {
937
+ const e = xt(), o = z([]), t = z({}), i = z(!1), l = () => {
938
+ o.value = [...e.multipleSelection], t.value = { ...e.selectionsByPage }, i.value = e.isInitChange;
2355
939
  };
2356
940
  return {
2357
941
  multipleSelection: o,
2358
- selectionsByPage: n,
2359
- isInitChange: r,
2360
- handleSelectionChange: (c, p) => {
2361
- e.isInitChange && t || (po(e, c, p, t), a());
942
+ selectionsByPage: t,
943
+ isInitChange: i,
944
+ handleSelectionChange: (f, p) => {
945
+ e.isInitChange && n || (Ot(e, f, p, n), l());
2362
946
  },
2363
- clearAllSelection: (c) => {
2364
- c ? fo(e, c) : (e.multipleSelection = [], e.selectionsByPage = {}), a();
947
+ clearAllSelection: (f) => {
948
+ f ? Rt(e, f) : (e.multipleSelection = [], e.selectionsByPage = {}), l();
2365
949
  },
2366
- initSelection: (c, p) => {
2367
- if (e.isInitChange = !0, a(), !p) {
2368
- e.isInitChange = !1, a();
950
+ initSelection: (f, p) => {
951
+ if (e.isInitChange = !0, l(), !p) {
952
+ e.isInitChange = !1, l();
2369
953
  return;
2370
954
  }
2371
- Xe(t ? () => {
2372
- uo(e, c, p, t), e.isInitChange = !1, a();
955
+ xe(n ? () => {
956
+ It(e, f, p, n), e.isInitChange = !1, l();
2373
957
  } : () => {
2374
- var s;
2375
- (s = p.clearSelection) == null || s.call(p), e.isInitChange = !1, a();
958
+ var a;
959
+ (a = p.clearSelection) == null || a.call(p), e.isInitChange = !1, l();
2376
960
  });
2377
961
  }
2378
962
  };
2379
963
  }
2380
- const pn = {
964
+ const rt = {
2381
965
  multiSelect: !1,
2382
966
  expand: !1,
2383
967
  snIndex: !1,
@@ -2387,7 +971,7 @@ const pn = {
2387
971
  headerCellStyle: { background: "#f5f7fa" },
2388
972
  highlightCurrentRow: !0,
2389
973
  cachePageSelection: !0
2390
- }, gi = /* @__PURE__ */ new Set([
974
+ }, fn = /* @__PURE__ */ new Set([
2391
975
  "multiSelect",
2392
976
  "expand",
2393
977
  "snIndex",
@@ -2411,24 +995,24 @@ const pn = {
2411
995
  "estimatedRowHeight",
2412
996
  "overscanCount",
2413
997
  "rowClassName"
2414
- ]), mi = (t) => t.toLowerCase().replace(/(\s|^)[a-z]/g, (e) => e.toUpperCase()), yi = (t) => {
998
+ ]), pn = (n) => n.toLowerCase().replace(/(\s|^)[a-z]/g, (e) => e.toUpperCase()), mn = (n) => {
2415
999
  const e = {};
2416
- for (const o in t)
1000
+ for (const o in n)
2417
1001
  if (!(o === "groups" || o === "scopedSlots" || o === "render"))
2418
1002
  if (o.includes("-")) {
2419
- const n = o.split("-");
2420
- let r = n[0];
2421
- for (let a = 1; a < n.length; a++)
2422
- r += mi(n[a]);
2423
- e[r] = t[o];
2424
- } else o === "key" && (e.prop = t[o]), e[o] = t[o];
1003
+ const t = o.split("-");
1004
+ let i = t[0];
1005
+ for (let l = 1; l < t.length; l++)
1006
+ i += pn(t[l]);
1007
+ e[i] = n[o];
1008
+ } else o === "key" && (e.prop = n[o]), e[o] = n[o];
2425
1009
  return e.align || (e.align = "center"), e;
2426
- }, vn = (t) => {
1010
+ }, at = (n) => {
2427
1011
  const e = ["total", "pageSize", "current", "tableData"];
2428
- return ke(t) ? Object.keys(t).every((o) => e.find((n) => n === o) && t[o] && typeof t[o] == "string") : !1;
2429
- }, hi = be({
1012
+ return pe(n) ? Object.keys(n).every((o) => e.find((t) => t === o) && n[o] && typeof n[o] == "string") : !1;
1013
+ }, gn = ie({
2430
1014
  name: "EsTable",
2431
- components: { ColumnItem: ai, TableBtns: di },
1015
+ components: { ColumnItem: nn, TableBtns: cn },
2432
1016
  // 关闭自动 attrs 继承,避免 fallthrough 重复绑定
2433
1017
  inheritAttrs: !1,
2434
1018
  props: {
@@ -2448,7 +1032,7 @@ const pn = {
2448
1032
  },
2449
1033
  options: {
2450
1034
  type: Object,
2451
- default: () => ({ ...pn })
1035
+ default: () => ({ ...rt })
2452
1036
  },
2453
1037
  pagination: {
2454
1038
  type: Object,
@@ -2462,55 +1046,55 @@ const pn = {
2462
1046
  "size-change",
2463
1047
  "change-table-sort"
2464
1048
  ],
2465
- setup(t, { emit: e, slots: o, attrs: n, expose: r }) {
2466
- var Ut, Kt, Qt, Jt;
2467
- const a = qt(), i = (Kt = (Ut = Se(
1049
+ setup(n, { emit: e, slots: o, attrs: t, expose: i }) {
1050
+ var Qe, Je, Ze, Ge;
1051
+ const l = Ke(), c = (Je = (Qe = ce(
2468
1052
  "$esPlusTable",
2469
1053
  null
2470
- )) != null ? Ut : Pe().EsTable) != null ? Kt : {}, l = (Jt = (Qt = Se("$EsPlus", null)) != null ? Qt : Pe()) != null ? Jt : {}, y = (d) => {
2471
- if (!d) return !0;
2472
- const B = l.permission;
2473
- return typeof B == "function" ? B(d) : !0;
1054
+ )) != null ? Qe : me().EsTable) != null ? Je : {}, B = (Ge = (Ze = ce("$EsPlus", null)) != null ? Ze : me()) != null ? Ge : {}, F = (s) => {
1055
+ if (!s) return !0;
1056
+ const O = B.permission;
1057
+ return typeof O == "function" ? O(s) : !0;
2474
1058
  };
2475
- (t.options.virtual === !0 || t.options.engine === "virtual") && console.warn(
1059
+ (n.options.virtual === !0 || n.options.engine === "virtual") && console.warn(
2476
1060
  "[@es-plus/vue2] 虚拟滚动 (virtual: true) 在 Vue 2 + Element UI 下不可用,已降级为普通 el-table 渲染。如需虚拟滚动请使用 Vue 3 + Element Plus 版本(@es-plus/vue3)。"
2477
1061
  );
2478
- const c = L(null), p = L(null), s = L(null), m = L(null), v = L(null), h = L(`table_${Math.random().toString(36).substring(2, 12)}`), f = L([]), S = E(() => f.value && f.value.length ? f.value : t.dataSource), F = L([...t.columns]);
2479
- we(
2480
- () => t.columns,
2481
- (d) => {
2482
- F.value = [...d];
1062
+ const f = z(null), p = z(null), a = z(null), h = z(null), d = z(null), v = z(`table_${Math.random().toString(36).substring(2, 12)}`), m = z([]), _ = S(() => m.value && m.value.length ? m.value : n.dataSource), T = z([...n.columns]);
1063
+ de(
1064
+ () => n.columns,
1065
+ (s) => {
1066
+ T.value = [...s];
2483
1067
  },
2484
1068
  { deep: !0 }
2485
1069
  );
2486
- const H = L(!1), M = L(!1), W = L(!1), U = () => {
2487
- const d = a == null ? void 0 : a.proxy;
2488
- !d || !d.$refs || (v.value = d.$refs.tableContainerEl || null, s.value = d.$refs.headBarRef || null, m.value = d.$refs.paginationRef || null);
2489
- }, J = Se("bodyFormInstance", () => {
2490
- }), K = Se("getVisibleShow", !1), Q = E(
2491
- () => typeof K == "function" ? K() : K
2492
- ), O = L({
1070
+ const j = z(!1), N = z(!1), U = z(!1), M = () => {
1071
+ const s = l == null ? void 0 : l.proxy;
1072
+ !s || !s.$refs || (d.value = s.$refs.tableContainerEl || null, a.value = s.$refs.headBarRef || null, h.value = s.$refs.paginationRef || null, p.value = s.$refs.tbBtnRef || null, f.value = s.$refs.tableRef || null);
1073
+ }, W = ce("bodyFormInstance", () => {
1074
+ }), V = ce("getVisibleShow", !1), J = S(
1075
+ () => typeof V == "function" ? V() : V
1076
+ ), R = z({
2493
1077
  pageSize: 10,
2494
1078
  current: 1,
2495
1079
  total: 0,
2496
1080
  pageSizes: [],
2497
1081
  size: "small",
2498
1082
  isSmall: !0,
2499
- ...t.pagination
2500
- }), u = L(null), g = E(() => {
2501
- const d = t.options.entryQuery;
2502
- return d && ke(d) && Object.keys(d).length ? d : {};
2503
- }), _ = E(() => {
2504
- if (t.options.configTableOut && ke(t.options.configTableOut) && Object.keys(t.options.configTableOut).length && vn(t.options.configTableOut))
2505
- return t.options.configTableOut;
2506
- if (i != null && i.configQueryFieldOutput && typeof i.configQueryFieldOutput == "function") {
2507
- const d = i.configQueryFieldOutput({
1083
+ ...n.pagination
1084
+ }), r = z(null), u = S(() => {
1085
+ const s = n.options.entryQuery;
1086
+ return s && pe(s) && Object.keys(s).length ? s : {};
1087
+ }), y = S(() => {
1088
+ if (n.options.configTableOut && pe(n.options.configTableOut) && Object.keys(n.options.configTableOut).length && at(n.options.configTableOut))
1089
+ return n.options.configTableOut;
1090
+ if (c != null && c.configQueryFieldOutput && typeof c.configQueryFieldOutput == "function") {
1091
+ const s = c.configQueryFieldOutput({
2508
1092
  total: "records",
2509
1093
  pageSize: "pageSize",
2510
1094
  current: "pageNo",
2511
1095
  tableData: "rows"
2512
1096
  });
2513
- if (vn(d)) return d;
1097
+ if (at(s)) return s;
2514
1098
  }
2515
1099
  return {
2516
1100
  total: "records",
@@ -2518,394 +1102,394 @@ const pn = {
2518
1102
  current: "pageNo",
2519
1103
  tableData: "rows"
2520
1104
  };
2521
- }), k = E(() => {
2522
- const d = a == null ? void 0 : a.proxy;
2523
- if (!d || !d.$children) return {};
2524
- const B = d.$children.find((w) => {
2525
- var R;
2526
- return ((R = w == null ? void 0 : w.$options) == null ? void 0 : R.name) === "EsForm";
1105
+ }), w = S(() => {
1106
+ const s = l == null ? void 0 : l.proxy;
1107
+ if (!s || !s.$children) return {};
1108
+ const O = s.$children.find((C) => {
1109
+ var I;
1110
+ return ((I = C == null ? void 0 : C.$options) == null ? void 0 : I.name) === "EsForm";
2527
1111
  });
2528
- return B ? (u.value = B, J(B), B) : {};
2529
- }), T = E(() => {
2530
- const d = o.default;
2531
- if (typeof d == "function") {
2532
- const w = d();
2533
- return Array.isArray(w) ? w.length > 0 : !!w;
1112
+ return O ? (r.value = O, W(O), O) : {};
1113
+ }), L = S(() => {
1114
+ const s = o.default;
1115
+ if (typeof s == "function") {
1116
+ const C = s();
1117
+ return Array.isArray(C) ? C.length > 0 : !!C;
2534
1118
  }
2535
- const B = o.default;
2536
- return Array.isArray(B) && B.length > 0;
2537
- }), x = E(
2538
- () => t.options.heightType || "auto"
2539
- ), z = E(() => typeof t.options.tabHeight == "number" ? `${t.options.tabHeight}px` : x.value === "height" && typeof t.options.height == "number" ? `${t.options.height}px` : "100%"), X = E(() => ({
2540
- [x.value]: z.value
2541
- })), q = E(() => t.headBarClass ? {
2542
- type: typeof t.headBarClass == "string" ? "string" : "object",
2543
- value: t.headBarClass
2544
- } : { type: "string", value: "" }), ve = E(() => {
2545
- const d = q.value;
2546
- return d.type === "object" && d.value && typeof d.value == "object" ? d.value : {};
2547
- }), ge = E(() => {
2548
- const d = q.value;
2549
- return d.type === "string" ? d.value : "";
2550
- }), le = E(() => {
2551
- const d = i == null ? void 0 : i.paginationLayout;
2552
- return d ? typeof d == "function" ? d() : d : null;
2553
- }), We = E(
1119
+ const O = o.default;
1120
+ return Array.isArray(O) && O.length > 0;
1121
+ }), k = S(
1122
+ () => n.options.heightType || "auto"
1123
+ ), E = S(() => typeof n.options.tabHeight == "number" ? `${n.options.tabHeight}px` : k.value === "height" && typeof n.options.height == "number" ? `${n.options.height}px` : "100%"), Q = S(() => ({
1124
+ [k.value]: E.value
1125
+ })), q = S(() => n.headBarClass ? {
1126
+ type: typeof n.headBarClass == "string" ? "string" : "object",
1127
+ value: n.headBarClass
1128
+ } : { type: "string", value: "" }), se = S(() => {
1129
+ const s = q.value;
1130
+ return s.type === "object" && s.value && typeof s.value == "object" ? s.value : {};
1131
+ }), re = S(() => {
1132
+ const s = q.value;
1133
+ return s.type === "string" ? s.value : "";
1134
+ }), ne = S(() => {
1135
+ const s = c == null ? void 0 : c.paginationLayout;
1136
+ return s ? typeof s == "function" ? s() : s : null;
1137
+ }), _e = S(
2554
1138
  () => {
2555
- var d;
2556
- return ((d = le.value) == null ? void 0 : d.layout) || "prev, pager, next, jumper, sizes, ->, total";
1139
+ var s;
1140
+ return ((s = ne.value) == null ? void 0 : s.layout) || "prev, pager, next, jumper, sizes, ->, total";
2557
1141
  }
2558
- ), It = E(
1142
+ ), De = S(
2559
1143
  () => {
2560
- var d;
2561
- return ((d = le.value) == null ? void 0 : d.pageSizes) || O.value.pageSizes;
1144
+ var s;
1145
+ return ((s = ne.value) == null ? void 0 : s.pageSizes) || R.value.pageSizes;
2562
1146
  }
2563
- ), Ft = E(
1147
+ ), qe = S(
2564
1148
  () => {
2565
- var d, B;
2566
- return (B = (d = le.value) == null ? void 0 : d.isSmall) != null ? B : O.value.isSmall;
1149
+ var s, O;
1150
+ return (O = (s = ne.value) == null ? void 0 : s.isSmall) != null ? O : R.value.isSmall;
2567
1151
  }
2568
- ), Ie = E(
1152
+ ), fe = S(
2569
1153
  () => {
2570
- var d, B;
2571
- return (B = (d = le.value) == null ? void 0 : d.background) != null ? B : !0;
1154
+ var s, O;
1155
+ return (O = (s = ne.value) == null ? void 0 : s.background) != null ? O : !0;
2572
1156
  }
2573
- ), nt = E(
1157
+ ), Ie = S(
2574
1158
  () => {
2575
- var d;
2576
- return ((d = le.value) == null ? void 0 : d.prevText) || "";
1159
+ var s;
1160
+ return ((s = ne.value) == null ? void 0 : s.prevText) || "";
2577
1161
  }
2578
- ), ot = E(
1162
+ ), Re = S(
2579
1163
  () => {
2580
- var d;
2581
- return ((d = le.value) == null ? void 0 : d.nextText) || "";
1164
+ var s;
1165
+ return ((s = ne.value) == null ? void 0 : s.nextText) || "";
2582
1166
  }
2583
- ), rt = E(() => ({
2584
- position: x.value === "height" ? "absolute" : "static",
1167
+ ), Oe = S(() => ({
1168
+ position: k.value === "height" ? "absolute" : "static",
2585
1169
  bottom: "0px",
2586
1170
  left: "0px",
2587
1171
  // z-index 必须高于 element-loading 蒙层(默认 2000),否则请求加载过程中分页会被蒙层遮挡。
2588
1172
  zIndex: 2001,
2589
1173
  background: "#fff"
2590
- })), it = E(() => t.options.loading || H.value), De = E(
2591
- () => !!t.options.actionUrl || t.options.apiParams && ke(t.options.apiParams) && Object.keys(t.options.apiParams).length > 0
2592
- ), at = E(() => {
2593
- const d = F.value.filter((w) => !w.hidCol);
2594
- if (d.forEach((w) => {
2595
- w.prop !== "operate" && w.key !== "operate" && (w.prop || w.key) && !w.formatter && (w.formatter = ($) => {
2596
- const R = $[w.prop] || $[w.key];
2597
- return R == null || R === "" ? w.emptyPlaceholder || "-" : R;
2598
- }), (w.prop === "operate" || w.key === "operate") && w.btns && !w.render && (w.render = ($, { row: R }) => {
2599
- var me;
2600
- return Ce("div", [
2601
- (me = w.btns) == null ? void 0 : me.filter((ee) => y(ee.permissionValue)).map(
2602
- (ee) => (
1174
+ })), we = S(() => n.options.loading || j.value), ye = S(
1175
+ () => !!n.options.actionUrl || n.options.apiParams && pe(n.options.apiParams) && Object.keys(n.options.apiParams).length > 0
1176
+ ), Pe = S(() => {
1177
+ const s = T.value.filter((C) => !C.hidCol);
1178
+ if (s.forEach((C) => {
1179
+ C.prop !== "operate" && C.key !== "operate" && (C.prop || C.key) && !C.formatter && (C.formatter = (P) => {
1180
+ const I = P[C.prop] || P[C.key];
1181
+ return I == null || I === "" ? C.emptyPlaceholder || "-" : I;
1182
+ }), (C.prop === "operate" || C.key === "operate") && C.btns && !C.render && (C.render = (P, { row: I }) => {
1183
+ var ae;
1184
+ return ue("div", [
1185
+ (ae = C.btns) == null ? void 0 : ae.filter((Z) => F(Z.permissionValue)).map(
1186
+ (Z) => (
2603
1187
  // Element UI text 按钮:type="text" 而非 text 属性
2604
- Ce(
1188
+ ue(
2605
1189
  "el-button",
2606
1190
  {
2607
1191
  props: {
2608
1192
  type: "text"
2609
1193
  },
2610
1194
  attrs: {
2611
- ...ee.type ? { "data-btn-type": ee.type } : {}
1195
+ ...Z.type ? { "data-btn-type": Z.type } : {}
2612
1196
  },
2613
1197
  on: {
2614
1198
  click: () => {
2615
- var ye;
2616
- return (ye = ee.clickEvent) == null ? void 0 : ye.call(ee, R);
1199
+ var le;
1200
+ return (le = Z.clickEvent) == null ? void 0 : le.call(Z, I);
2617
1201
  }
2618
1202
  }
2619
1203
  },
2620
- ee.name
1204
+ Z.name
2621
1205
  )
2622
1206
  )
2623
1207
  )
2624
1208
  ]);
2625
1209
  });
2626
- }), d.length > 0 && d.every((w) => w.width && !w.minWidth)) {
2627
- let w = -1;
2628
- for (let $ = d.length - 1; $ >= 0; $--) {
2629
- const R = d[$];
2630
- if (!R.fixed && R.prop !== "operate" && R.key !== "operate") {
2631
- w = $;
1210
+ }), s.length > 0 && s.every((C) => C.width && !C.minWidth)) {
1211
+ let C = -1;
1212
+ for (let P = s.length - 1; P >= 0; P--) {
1213
+ const I = s[P];
1214
+ if (!I.fixed && I.prop !== "operate" && I.key !== "operate") {
1215
+ C = P;
2632
1216
  break;
2633
1217
  }
2634
1218
  }
2635
- if (w === -1 && (w = d.length - 1), w >= 0) {
2636
- const $ = d[w];
2637
- $.minWidth = $.width, delete $.width;
1219
+ if (C === -1 && (C = s.length - 1), C >= 0) {
1220
+ const P = s[C];
1221
+ P.minWidth = P.width, delete P.width;
2638
1222
  }
2639
1223
  }
2640
- return d;
2641
- }), st = E(() => {
2642
- const d = yi({ ...pn, ...t.options }), { align: B, ...w } = d, $ = {};
2643
- for (const R in w)
2644
- gi.has(R) || ($[R] = w[R]);
2645
- if ($.size !== void 0) {
2646
- const R = St($.size);
2647
- R !== void 0 && ($.size = R);
1224
+ return s;
1225
+ }), $e = S(() => {
1226
+ const s = mn({ ...rt, ...n.options }), { align: O, ...C } = s, P = {};
1227
+ for (const I in C)
1228
+ fn.has(I) || (P[I] = C[I]);
1229
+ if (P.size !== void 0) {
1230
+ const I = je(P.size);
1231
+ I !== void 0 && (P.size = I);
2648
1232
  }
2649
- return $;
2650
- }), { tableHeight: Ue, resizeObservers: Ae } = pi(
2651
- v,
2652
- s,
1233
+ return P;
1234
+ }), { tableHeight: Ce, resizeObservers: he } = un(
1235
+ d,
1236
+ a,
2653
1237
  p,
2654
- m,
1238
+ h,
2655
1239
  {
2656
- heightType: x.value,
2657
- tabHeight: t.options.tabHeight
1240
+ heightType: k.value,
1241
+ tabHeight: n.options.tabHeight
2658
1242
  }
2659
- ), lt = E(() => {
2660
- const d = { ...st.value, ...n };
2661
- return t.options.rowkey && (d.rowKey = t.options.rowkey), x.value === "height" ? d.height = Ue.value : x.value === "maxHeight" && (d.maxHeight = Ue.value), d;
1243
+ ), He = S(() => {
1244
+ const s = { ...$e.value, ...t };
1245
+ return n.options.rowkey && (s.rowKey = n.options.rowkey), k.value === "height" ? s.height = Ce.value : k.value === "maxHeight" && (s.maxHeight = Ce.value), s;
2662
1246
  }), {
2663
- multipleSelection: b,
2664
- handleSelectionChange: C,
1247
+ multipleSelection: g,
1248
+ handleSelectionChange: b,
2665
1249
  initSelection: A,
2666
- clearAllSelection: N
2667
- } = vi(t.options.rowkey), I = (d) => {
2668
- C(d, O.value.current || 1);
1250
+ clearAllSelection: H
1251
+ } = dn(n.options.rowkey), x = (s) => {
1252
+ b(s, R.value.current || 1);
2669
1253
  };
2670
- we(Q, async (d, B) => {
2671
- var w, $;
2672
- d && d !== B && (t.options.actionUrl && await ct(), ($ = (w = c.value) == null ? void 0 : w.doLayout) == null || $.call(w));
1254
+ de(J, async (s, O) => {
1255
+ var C, P;
1256
+ s && s !== O && (n.options.actionUrl && await Te(), (P = (C = f.value) == null ? void 0 : C.doLayout) == null || P.call(C));
2673
1257
  });
2674
- let P = JSON.stringify(t.pagination || {});
2675
- t.pagination && Object.keys(t.pagination).length && (O.value = { ...O.value, ...t.pagination }, W.value = t.pagination.total !== void 0);
2676
- const j = () => {
2677
- const d = { ...O.value };
2678
- P = JSON.stringify(d), e("update:pagination", d);
1258
+ let $ = JSON.stringify(n.pagination || {});
1259
+ n.pagination && Object.keys(n.pagination).length && (R.value = { ...R.value, ...n.pagination }, U.value = n.pagination.total !== void 0);
1260
+ const D = () => {
1261
+ const s = { ...R.value };
1262
+ $ = JSON.stringify(s), e("update:pagination", s);
2679
1263
  };
2680
- we(
2681
- () => t.pagination,
2682
- (d) => {
2683
- const B = JSON.stringify(d || {});
2684
- B !== P && (P = B, O.value = { ...O.value, ...d }, W.value = d.total !== void 0);
1264
+ de(
1265
+ () => n.pagination,
1266
+ (s) => {
1267
+ const O = JSON.stringify(s || {});
1268
+ O !== $ && ($ = O, R.value = { ...R.value, ...s }, U.value = s.total !== void 0);
2685
1269
  }
2686
- ), we(
2687
- () => t.dataSource,
2688
- (d) => {
2689
- A(d, c.value);
1270
+ ), de(
1271
+ () => n.dataSource,
1272
+ (s) => {
1273
+ A(s, f.value);
2690
1274
  }
2691
1275
  );
2692
- let ie = null;
2693
- we(f, (d) => {
2694
- Array.isArray(d) && d !== ie && (ie = d, e("update:dataSource", d));
2695
- }), Mt(() => {
2696
- U(), De.value && t.options.isInitRun !== !1 && ct(), Xe(() => {
2697
- U(), k.value, typeof requestAnimationFrame != "undefined" ? requestAnimationFrame(() => {
2698
- U(), Ae();
2699
- }) : Ae();
1276
+ let X = null;
1277
+ de(m, (s) => {
1278
+ Array.isArray(s) && s !== X && (X = s, e("update:dataSource", s));
1279
+ }), Ue(() => {
1280
+ M(), ye.value && n.options.isInitRun !== !1 && Te(), xe(() => {
1281
+ M(), w.value, typeof requestAnimationFrame != "undefined" ? requestAnimationFrame(() => {
1282
+ M(), he();
1283
+ }) : he();
2700
1284
  });
2701
1285
  });
2702
- const ae = (d, B) => {
2703
- const w = [
1286
+ const ee = (s, O) => {
1287
+ const C = [
2704
1288
  { eventName: "brcb", isReturn: !0 },
2705
1289
  { eventName: "qrcb", isReturn: !0 }
2706
- ], $ = w.findIndex((R) => R.eventName === d);
2707
- if (t.options.listenToCallBack && t.options.listenToCallBack[d] && $ !== -1 && w[$].isReturn)
2708
- return t.options.listenToCallBack[d](B);
2709
- }, Rt = (d, B) => {
2710
- const w = _.value;
2711
- if (ke(w) && Object.keys(w).length) {
2712
- const $ = {};
2713
- Object.entries(w).forEach(([R, me]) => {
2714
- var Ke;
2715
- if (!B.includes(R)) return;
2716
- const ye = (Ke = d[me]) != null ? Ke : vo(d, me);
2717
- R === "tableData" ? f.value = Array.isArray(ye) ? ye : [] : $[R] = typeof ye == "number" ? ye : parseInt(ye, 10) || 0;
2718
- }), Object.keys($).length && (O.value = { ...O.value, ...$ });
1290
+ ], P = C.findIndex((I) => I.eventName === s);
1291
+ if (n.options.listenToCallBack && n.options.listenToCallBack[s] && P !== -1 && C[P].isReturn)
1292
+ return n.options.listenToCallBack[s](O);
1293
+ }, Ne = (s, O) => {
1294
+ const C = y.value;
1295
+ if (pe(C) && Object.keys(C).length) {
1296
+ const P = {};
1297
+ Object.entries(C).forEach(([I, ae]) => {
1298
+ var Se;
1299
+ if (!O.includes(I)) return;
1300
+ const le = (Se = s[ae]) != null ? Se : wt(s, ae);
1301
+ I === "tableData" ? m.value = Array.isArray(le) ? le : [] : P[I] = typeof le == "number" ? le : parseInt(le, 10) || 0;
1302
+ }), Object.keys(P).length && (R.value = { ...R.value, ...P });
2719
1303
  }
2720
- }, Bt = (d, B = {}) => {
2721
- var Zt, Xt;
2722
- const { success: w, fail: $ } = B, R = ((Zt = t.options) == null ? void 0 : Zt.apiParams) || {}, me = ((Xt = t.options) == null ? void 0 : Xt.actionUrl) || R.url || "";
2723
- if (!me || !Object.keys(R).length) return;
2724
- const ee = k.value, ye = ee && ee.props && ee.props.model ? { ...ee.props.model } : g.value || {}, Ke = ae("brcb", {
2725
- ...ye,
2726
- ...d,
2727
- ...R.model || {}
2728
- }), to = ke(Ke) ? Ke : { ...ye, ...R.model || {}, ...d }, Gt = { ...R.options || {} };
2729
- R != null && R.method && (Gt.method = R == null ? void 0 : R.method);
2730
- const Yt = async (no) => {
2731
- if (!H.value) {
2732
- H.value = !0;
1304
+ }, Me = (s, O = {}) => {
1305
+ var et, tt;
1306
+ const { success: C, fail: P } = O, I = ((et = n.options) == null ? void 0 : et.apiParams) || {}, ae = ((tt = n.options) == null ? void 0 : tt.actionUrl) || I.url || "";
1307
+ if (!ae || !Object.keys(I).length) return;
1308
+ const Z = w.value, le = Z && Z.props && Z.props.model ? { ...Z.props.model } : u.value || {}, Se = ee("brcb", {
1309
+ ...le,
1310
+ ...s,
1311
+ ...I.model || {}
1312
+ }), vt = pe(Se) ? Se : { ...le, ...I.model || {}, ...s }, Ye = { ...I.options || {} };
1313
+ I != null && I.method && (Ye.method = I == null ? void 0 : I.method);
1314
+ const Xe = async (bt) => {
1315
+ if (!j.value) {
1316
+ j.value = !0;
2733
1317
  try {
2734
- const Te = await no({
2735
- url: me,
2736
- formParams: to,
2737
- headers: R.headers || {},
2738
- ...Gt,
2739
- ...d
2740
- }), oo = ae("qrcb", Te) || Te;
2741
- ke(Te) && Object.keys(Te).length && typeof w == "function" && w(oo);
2742
- } catch (Te) {
2743
- typeof $ == "function" && $(Te);
1318
+ const ve = await bt({
1319
+ url: ae,
1320
+ formParams: vt,
1321
+ headers: I.headers || {},
1322
+ ...Ye,
1323
+ ...s
1324
+ }), _t = ee("qrcb", ve) || ve;
1325
+ pe(ve) && Object.keys(ve).length && typeof C == "function" && C(_t);
1326
+ } catch (ve) {
1327
+ typeof P == "function" && P(ve);
2744
1328
  } finally {
2745
- H.value = !1;
1329
+ j.value = !1;
2746
1330
  }
2747
1331
  }
2748
1332
  };
2749
- t.options.httpRequest ? Yt(t.options.httpRequest) : i.$httpRequest && Yt(i.$httpRequest);
2750
- }, ct = (d) => new Promise((B, w) => {
2751
- O.value = { ...O.value, current: 1 }, Bt(
1333
+ n.options.httpRequest ? Xe(n.options.httpRequest) : c.$httpRequest && Xe(c.$httpRequest);
1334
+ }, Te = (s) => new Promise((O, C) => {
1335
+ R.value = { ...R.value, current: 1 }, Me(
2752
1336
  {
2753
- ...d || {},
2754
- pageIndex: O.value.current,
2755
- pageSize: O.value.pageSize
1337
+ ...s || {},
1338
+ pageIndex: R.value.current,
1339
+ pageSize: R.value.pageSize
2756
1340
  },
2757
1341
  {
2758
- success: ($) => {
2759
- Rt($, ["total", "tableData"]), Object.keys(t.pagination).length && j(), B($);
1342
+ success: (P) => {
1343
+ Ne(P, ["total", "tableData"]), Object.keys(n.pagination).length && D(), O(P);
2760
1344
  },
2761
- fail: ($) => {
2762
- w($);
1345
+ fail: (P) => {
1346
+ C(P);
2763
1347
  }
2764
1348
  }
2765
1349
  );
2766
- }), Gn = () => {
2767
- Bt(
1350
+ }), pt = () => {
1351
+ Me(
2768
1352
  {
2769
- pageIndex: O.value.current,
2770
- pageSize: O.value.pageSize
1353
+ pageIndex: R.value.current,
1354
+ pageSize: R.value.pageSize
2771
1355
  },
2772
1356
  {
2773
- success: (d) => {
2774
- Rt(d, ["total", "tableData"]), j(), e("pagination-current-change", O.value);
1357
+ success: (s) => {
1358
+ Ne(s, ["total", "tableData"]), D(), e("pagination-current-change", R.value);
2775
1359
  }
2776
1360
  }
2777
1361
  );
2778
- }, Yn = () => {
2779
- Bt(
1362
+ }, mt = () => {
1363
+ Me(
2780
1364
  {
2781
- pageIndex: O.value.current,
2782
- pageSize: O.value.pageSize
1365
+ pageIndex: R.value.current,
1366
+ pageSize: R.value.pageSize
2783
1367
  },
2784
1368
  {
2785
- success: (d) => {
2786
- Rt(d, ["total", "tableData"]), j();
1369
+ success: (s) => {
1370
+ Ne(s, ["total", "tableData"]), D();
2787
1371
  }
2788
1372
  }
2789
1373
  );
2790
- }, Zn = (d) => {
2791
- O.value = { ...O.value, pageSize: d, current: 1 }, De.value ? Yn() : (j(), e("size-change", O.value, d));
2792
- }, Xn = (d) => {
2793
- O.value = { ...O.value, current: d }, De.value ? Gn() : (j(), e("pagination-current-change", O.value));
2794
- }, eo = (d) => {
2795
- e("change-table-sort", d);
1374
+ }, gt = (s) => {
1375
+ R.value = { ...R.value, pageSize: s, current: 1 }, ye.value ? mt() : (D(), e("size-change", R.value, s));
1376
+ }, yt = (s) => {
1377
+ R.value = { ...R.value, current: s }, ye.value ? pt() : (D(), e("pagination-current-change", R.value));
1378
+ }, ht = (s) => {
1379
+ e("change-table-sort", s);
2796
1380
  };
2797
- Qn("getTableInstantce", () => ({
2798
- tableRef: c,
2799
- toggleSelection: (d) => {
2800
- var B, w;
2801
- d ? d.forEach(($) => {
2802
- var R, me;
2803
- (me = (R = c.value) == null ? void 0 : R.toggleRowSelection) == null || me.call(R, $);
2804
- }) : (w = (B = c.value) == null ? void 0 : B.clearSelection) == null || w.call(B);
1381
+ dt("getTableInstantce", () => ({
1382
+ tableRef: f,
1383
+ toggleSelection: (s) => {
1384
+ var O, C;
1385
+ s ? s.forEach((P) => {
1386
+ var I, ae;
1387
+ (ae = (I = f.value) == null ? void 0 : I.toggleRowSelection) == null || ae.call(I, P);
1388
+ }) : (C = (O = f.value) == null ? void 0 : O.clearSelection) == null || C.call(O);
2805
1389
  },
2806
- clearAllSelection: () => N(c.value),
2807
- refsInstance: () => c.value,
2808
- httpRequestInstance: ct
1390
+ clearAllSelection: () => H(f.value),
1391
+ refsInstance: () => f.value,
1392
+ httpRequestInstance: Te
2809
1393
  }));
2810
- const Wt = {
2811
- httpRequestInstance: ct,
2812
- getSelectionRows: () => b.value,
1394
+ const We = {
1395
+ httpRequestInstance: Te,
1396
+ getSelectionRows: () => g.value,
2813
1397
  clearSelection: () => {
2814
- var d, B;
2815
- return (B = (d = c.value) == null ? void 0 : d.clearSelection) == null ? void 0 : B.call(d);
1398
+ var s, O;
1399
+ return (O = (s = f.value) == null ? void 0 : s.clearSelection) == null ? void 0 : O.call(s);
2816
1400
  },
2817
- clearAllSelection: () => N(c.value),
1401
+ clearAllSelection: () => H(f.value),
2818
1402
  refresh: () => {
2819
- var d, B;
2820
- return (B = (d = c.value) == null ? void 0 : d.doLayout) == null ? void 0 : B.call(d);
1403
+ var s, O;
1404
+ return (O = (s = f.value) == null ? void 0 : s.doLayout) == null ? void 0 : O.call(s);
2821
1405
  },
2822
1406
  // virtual 滚动占位(保持 API 一致,Vue 2 版本无效)
2823
- scrollToRow: (d) => {
1407
+ scrollToRow: (s) => {
2824
1408
  }
2825
1409
  };
2826
- return typeof r == "function" && r(Wt), {
1410
+ return typeof i == "function" && i(We), {
2827
1411
  // refs
2828
- tableRef: c,
1412
+ tableRef: f,
2829
1413
  tbBtnRef: p,
2830
- headBarRef: s,
2831
- paginationRef: m,
2832
- tableId: h,
2833
- tableData: f,
2834
- effectiveDataSource: S,
1414
+ headBarRef: a,
1415
+ paginationRef: h,
1416
+ tableId: v,
1417
+ tableData: m,
1418
+ effectiveDataSource: _,
2835
1419
  // state
2836
- loadStatus: it,
2837
- paginationConfig: O,
2838
- formInstance: u,
1420
+ loadStatus: we,
1421
+ paginationConfig: R,
1422
+ formInstance: r,
2839
1423
  // computeds
2840
- filteredColumns: at,
2841
- tableBindAttrs: lt,
2842
- hasDefaultSlot: T,
2843
- heightType: x,
2844
- tabHeight: z,
1424
+ filteredColumns: Pe,
1425
+ tableBindAttrs: He,
1426
+ hasDefaultSlot: L,
1427
+ heightType: k,
1428
+ tabHeight: E,
2845
1429
  slotStyles: q,
2846
- slotStyleValue: ve,
2847
- slotClassValue: ge,
2848
- slotState: M,
2849
- showPagination: W,
2850
- containerStyle: X,
2851
- paginationStyle: rt,
2852
- layout: We,
2853
- paginationPageSizes: It,
2854
- paginationIsSmall: Ft,
2855
- paginationBackground: Ie,
2856
- paginationPrevText: nt,
2857
- paginationNextText: ot,
1430
+ slotStyleValue: se,
1431
+ slotClassValue: re,
1432
+ slotState: N,
1433
+ showPagination: U,
1434
+ containerStyle: Q,
1435
+ paginationStyle: Oe,
1436
+ layout: _e,
1437
+ paginationPageSizes: De,
1438
+ paginationIsSmall: qe,
1439
+ paginationBackground: fe,
1440
+ paginationPrevText: Ie,
1441
+ paginationNextText: Re,
2858
1442
  // handlers
2859
- handleTableSelectionChange: I,
2860
- changeTableSort: eo,
2861
- handleSizeChange: Zn,
2862
- handleIndexChange: Xn,
1443
+ handleTableSelectionChange: x,
1444
+ changeTableSort: ht,
1445
+ handleSizeChange: gt,
1446
+ handleIndexChange: yt,
2863
1447
  // exposed methods (also accessible via $refs.tableRef.xxx in Vue 2)
2864
- ...Wt,
2865
- instance: a,
2866
- resizeObservers: Ae
1448
+ ...We,
1449
+ instance: l,
1450
+ resizeObservers: he
2867
1451
  };
2868
1452
  }
2869
1453
  });
2870
- var bi = function() {
1454
+ var yn = function() {
2871
1455
  var e = this, o = e._self._c;
2872
- return e._self._setupProxy, o("div", { ref: "tableContainerEl", staticClass: "table_component", style: e.containerStyle }, [o("div", { staticClass: "table_containers" }, [e.showHeaderBar ? o("div", { ref: "headBarRef", staticClass: "btn-slot", class: e.slotClassValue, style: e.slotStyleValue }, [e.hasDefaultSlot ? o("div", { staticClass: "headerBar", style: { paddingBottom: e.hasDefaultSlot ? "10px" : "0px" } }, [e._t("default")], 2) : e._e()]) : e._e(), o("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.loadStatus, expression: "loadStatus" }], staticClass: "page-loading-con tableContainer", attrs: { "element-loading-background": "rgba(0, 0, 0, 0.03)", "element-loading-text": "努力加载中..." } }, [o("div", { staticClass: "table_inner_containers" }, [e.options.configBtn && e.options.configBtn.length || e.options.leftText ? o("table-btns", { ref: "tbBtnRef", attrs: { instance: { tableRef: e.instance, formInstance: e.formInstance }, "btn-config": e.options.configBtn, "left-text": e.options.leftText } }) : e._e(), o("el-table", e._b({ key: e.tableId, ref: "tableRef", staticClass: "el-dp_tables", staticStyle: { width: "100%" }, attrs: { id: e.tableId, data: e.effectiveDataSource }, on: { "sort-change": e.changeTableSort, "selection-change": e.handleTableSelectionChange }, scopedSlots: e._u([{ key: "empty", fn: function() {
1456
+ return e._self._setupProxy, o("div", { ref: "tableContainerEl", staticClass: "table_component", style: e.containerStyle }, [o("div", { staticClass: "table_containers" }, [e.showHeaderBar ? o("div", { ref: "headBarRef", staticClass: "btn-slot", class: e.slotClassValue, style: e.slotStyleValue }, [e.hasDefaultSlot ? o("div", { staticClass: "headerBar", style: { paddingBottom: e.hasDefaultSlot ? "10px" : "0px" } }, [e._t("default")], 2) : e._e()]) : e._e(), o("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.loadStatus, expression: "loadStatus" }], staticClass: "page-loading-con tableContainer", attrs: { "element-loading-background": "rgba(0, 0, 0, 0.03)", "element-loading-text": "努力加载中..." } }, [o("div", { staticClass: "table_inner_containers" }, [e.options.configBtn && e.options.configBtn.length || e.options.leftText ? o("table-btns", { ref: "tbBtnRef", attrs: { instance: { tableRef: e.instance, formInstance: e.formInstance }, "btn-config": e.options.configBtn, "left-text": e.options.leftText } }) : e._e(), o("el-table", e._g(e._b({ key: e.tableId, ref: "tableRef", staticClass: "el-dp_tables", staticStyle: { width: "100%" }, attrs: { id: e.tableId, data: e.effectiveDataSource }, on: { "sort-change": e.changeTableSort, "selection-change": e.handleTableSelectionChange }, scopedSlots: e._u([{ key: "empty", fn: function() {
2873
1457
  return [o("div", { staticClass: "ant-empty ant-empty-normal" }, [o("div", { staticClass: "ant-empty-image" }, [o("svg", { staticClass: "ant-empty-img-simple", attrs: { width: "64", height: "41", viewBox: "0 0 64 41", xmlns: "http://www.w3.org/2000/svg" } }, [o("g", { attrs: { transform: "translate(0 1)", fill: "none", "fill-rule": "evenodd" } }, [o("ellipse", { staticClass: "ant-empty-img-simple-ellipse", attrs: { cx: "32", cy: "33", rx: "32", ry: "7" } }), o("g", { staticClass: "ant-empty-img-simple-g", attrs: { "fill-rule": "nonzero" } }, [o("path", { attrs: { d: "M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z" } }), o("path", { staticClass: "ant-empty-img-simple-path", attrs: { d: "M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z" } })])])])]), o("div", { staticClass: "ant-empty-description" }, [e._v("暂无数据")])])];
2874
- }, proxy: !0 }]) }, "el-table", e.tableBindAttrs, !1), e._l(e.filteredColumns, function(n, r) {
2875
- return o("column-item", { key: n.prop || n.key || r, attrs: { cols: Object.assign({}, n, { columnIndex: r }) }, scopedSlots: e._u([n.scopedSlots && n.scopedSlots.customRender ? { key: n.scopedSlots.customRender, fn: function({ scope: a }) {
1458
+ }, proxy: !0 }]) }, "el-table", e.tableBindAttrs, !1), e.$listeners), e._l(e.filteredColumns, function(t, i) {
1459
+ return o("column-item", { key: t.prop || t.key || i, attrs: { cols: Object.assign({}, t, { columnIndex: i }) }, scopedSlots: e._u([t.scopedSlots && t.scopedSlots.customRender ? { key: t.scopedSlots.customRender, fn: function({ scope: l }) {
2876
1460
  return [e._t(
2877
- n.scopedSlots.customRender,
1461
+ t.scopedSlots.customRender,
2878
1462
  null,
2879
- { scope: a },
2880
- Object.assign({}, n, {
2881
- columnIndex: r,
2882
- row: a.row,
2883
- column: a.column
1463
+ { scope: l },
1464
+ Object.assign({}, t, {
1465
+ columnIndex: i,
1466
+ row: l.row,
1467
+ column: l.column
2884
1468
  })
2885
1469
  )];
2886
1470
  } } : null], null, !0) });
2887
- }), 1)], 1)]), e.showPagination ? o("div", { ref: "paginationRef", staticClass: "pagination_page" }, [o("el-pagination", { staticStyle: { padding: "0", margin: "10px 0", "text-align": "center" }, attrs: { background: e.paginationBackground, size: e.paginationIsSmall ? "small" : e.paginationConfig.size, total: e.paginationConfig.total, "page-size": e.paginationConfig.pageSize, "page-sizes": e.paginationPageSizes, "current-page": e.paginationConfig.current, layout: e.layout, "prev-text": e.paginationPrevText, "next-text": e.paginationNextText }, on: { "update:pageSize": function(n) {
2888
- return e.$set(e.paginationConfig, "pageSize", n);
2889
- }, "update:page-size": function(n) {
2890
- return e.$set(e.paginationConfig, "pageSize", n);
2891
- }, "update:currentPage": function(n) {
2892
- return e.$set(e.paginationConfig, "current", n);
2893
- }, "update:current-page": function(n) {
2894
- return e.$set(e.paginationConfig, "current", n);
1471
+ }), 1)], 1)]), e.showPagination ? o("div", { ref: "paginationRef", staticClass: "pagination_page" }, [o("el-pagination", { staticStyle: { padding: "0", margin: "10px 0", "text-align": "center" }, attrs: { background: e.paginationBackground, size: e.paginationIsSmall ? "small" : e.paginationConfig.size, total: e.paginationConfig.total, "page-size": e.paginationConfig.pageSize, "page-sizes": e.paginationPageSizes, "current-page": e.paginationConfig.current, layout: e.layout, "prev-text": e.paginationPrevText, "next-text": e.paginationNextText }, on: { "update:pageSize": function(t) {
1472
+ return e.$set(e.paginationConfig, "pageSize", t);
1473
+ }, "update:page-size": function(t) {
1474
+ return e.$set(e.paginationConfig, "pageSize", t);
1475
+ }, "update:currentPage": function(t) {
1476
+ return e.$set(e.paginationConfig, "current", t);
1477
+ }, "update:current-page": function(t) {
1478
+ return e.$set(e.paginationConfig, "current", t);
2895
1479
  }, "size-change": e.handleSizeChange, "current-change": e.handleIndexChange } })], 1) : e._e()])]);
2896
- }, _i = [], Si = /* @__PURE__ */ Ne(
2897
- hi,
2898
- bi,
2899
- _i,
1480
+ }, hn = [], vn = /* @__PURE__ */ ge(
1481
+ gn,
1482
+ yn,
1483
+ hn,
2900
1484
  !1,
2901
1485
  null,
2902
- "8e292dd6"
1486
+ "1b301139"
2903
1487
  );
2904
- const Ye = Si.exports;
2905
- Ye.install = function(t) {
2906
- t.component(Ye.name || "EsTable", Ye);
1488
+ const Fe = vn.exports;
1489
+ Fe.install = function(n) {
1490
+ n.component(Fe.name || "EsTable", Fe);
2907
1491
  };
2908
- const Ci = be({
1492
+ const bn = ie({
2909
1493
  name: "RenderJsx",
2910
1494
  props: {
2911
1495
  refs: { type: [Function, Object], default: null },
@@ -2916,44 +1500,44 @@ const Ci = be({
2916
1500
  instance: { type: Object, default: () => ({}) },
2917
1501
  components: { type: Object, default: () => ({}) }
2918
1502
  },
2919
- setup(t) {
2920
- const e = t.refs && typeof t.refs == "object" ? t.refs : _t({});
1503
+ setup(n) {
1504
+ const e = n.refs && typeof n.refs == "object" ? n.refs : ze({});
2921
1505
  let o = null;
2922
- function n() {
1506
+ function t() {
2923
1507
  if (!o) return;
2924
- const r = o.componentInstance;
2925
- r && (e.currentRef = r);
1508
+ const i = o.componentInstance;
1509
+ i && (e.currentRef = i);
2926
1510
  }
2927
- return Mt(() => n()), Mr(() => n()), () => {
2928
- const { instance: r } = t, a = {
2929
- ...r,
2930
- registerRef: (y, c) => {
2931
- c != null && (e[y] = c);
1511
+ return Ue(() => t()), Et(() => t()), () => {
1512
+ const { instance: i } = n, l = {
1513
+ ...i,
1514
+ registerRef: (F, f) => {
1515
+ f != null && (e[F] = f);
2932
1516
  },
2933
1517
  getRefs: () => e
2934
- }, i = t.render, l = i && typeof i == "function" ? i(Ce, a, t.components || {}) : "";
2935
- return typeof l == "string" || typeof l == "number" ? (o = null, Ce(
1518
+ }, c = n.render, B = c && typeof c == "function" ? c(ue, l, n.components || {}) : "";
1519
+ return typeof B == "string" || typeof B == "number" ? (o = null, ue(
2936
1520
  "span",
2937
1521
  {
2938
1522
  ref: "currentRef"
2939
1523
  // Vue 2 的函数式 ref 通过 v-bind 不可直接传,用以下方式赋值
2940
1524
  },
2941
- [String(l)]
2942
- )) : l && typeof l == "object" && "tag" in l ? l.componentOptions ? (o = l, l) : (o = null, Ce("div", [l])) : (o = null, Ce("div", [String(l || "")]));
1525
+ [String(B)]
1526
+ )) : B && typeof B == "object" && "tag" in B ? B.componentOptions ? (o = B, B) : (o = null, ue("div", [B])) : (o = null, ue("div", [String(B || "")]));
2943
1527
  };
2944
1528
  }
2945
- }), Oi = null, wi = null;
2946
- var Ei = /* @__PURE__ */ Ne(
2947
- Ci,
2948
- Oi,
2949
- wi,
1529
+ }), _n = null, Cn = null;
1530
+ var Sn = /* @__PURE__ */ ge(
1531
+ bn,
1532
+ _n,
1533
+ Cn,
2950
1534
  !1,
2951
1535
  null,
2952
1536
  null
2953
1537
  );
2954
- const xi = Ei.exports, Ii = be({
1538
+ const Bn = Sn.exports, Fn = ie({
2955
1539
  name: "EsDialog",
2956
- components: { RenderJsx: xi },
1540
+ components: { RenderJsx: Bn },
2957
1541
  inheritAttrs: !1,
2958
1542
  props: {
2959
1543
  title: { type: String, default: "" },
@@ -2981,185 +1565,185 @@ const xi = Ei.exports, Ii = be({
2981
1565
  components: { type: Object, default: () => ({}) }
2982
1566
  },
2983
1567
  emits: ["update:visible", "closed", "submit"],
2984
- setup(t, { emit: e, attrs: o, slots: n, expose: r }) {
2985
- var k, T;
2986
- const a = qt(), i = L(null), l = _t({}), y = L(!1), c = a, p = (T = (k = Se("$EsPlus", null)) != null ? k : Pe()) != null ? T : {}, s = (x) => {
2987
- if (!x) return !0;
2988
- const z = p.permission;
2989
- return typeof z == "function" ? z(x) : !0;
2990
- }, m = (x) => {
1568
+ setup(n, { emit: e, attrs: o, slots: t, expose: i }) {
1569
+ var w, L;
1570
+ const l = Ke(), c = z(null), B = ze({}), F = z(!1), f = l, p = (L = (w = ce("$EsPlus", null)) != null ? w : me()) != null ? L : {}, a = (k) => {
1571
+ if (!k) return !0;
1572
+ const E = p.permission;
1573
+ return typeof E == "function" ? E(k) : !0;
1574
+ }, h = (k) => {
2991
1575
  const {
2992
- icon: z,
2993
- click: X,
1576
+ icon: E,
1577
+ click: Q,
2994
1578
  permissionValue: q,
2995
- name: ve,
2996
- disabled: ge,
2997
- key: le,
2998
- ...We
2999
- } = x;
3000
- return We;
3001
- }, v = (x) => {
3002
- const z = x.disabled;
3003
- return typeof z == "function" ? z() : !!z;
3004
- }, h = () => {
1579
+ name: se,
1580
+ disabled: re,
1581
+ key: ne,
1582
+ ..._e
1583
+ } = k;
1584
+ return _e;
1585
+ }, d = (k) => {
1586
+ const E = k.disabled;
1587
+ return typeof E == "function" ? E() : !!E;
1588
+ }, v = () => {
3005
1589
  setTimeout(() => {
3006
- y.value && (y.value = !1);
1590
+ F.value && (F.value = !1);
3007
1591
  }, 500);
3008
- }, f = () => {
3009
- o != null && o.fullscreen || (y.value = !y.value);
3010
- }, S = E({
3011
- get: () => t.visible || !1,
3012
- set: (x) => {
3013
- e("update:visible", x), x || (e("closed", x), h());
1592
+ }, m = () => {
1593
+ o != null && o.fullscreen || (F.value = !F.value);
1594
+ }, _ = S({
1595
+ get: () => n.visible || !1,
1596
+ set: (k) => {
1597
+ e("update:visible", k), k || (e("closed", k), v());
3014
1598
  }
3015
- }), F = () => {
3016
- S.value = !1, e("closed", !1), h();
3017
- }, H = () => {
3018
- e("closed", !1), h();
3019
- }, M = () => {
3020
- }, W = (x) => {
3021
- x();
3022
- }, U = E(() => ({ ...o })), J = E(() => y.value ? "dialogFull" : t.maxHeight ? "dialogShadow" : "dialogAuto"), K = () => {
3023
- const x = typeof window != "undefined" ? window.innerHeight : 800;
3024
- return Math.max(x - 135, 200);
3025
- }, Q = E(() => {
3026
- const x = K();
3027
- return y.value ? { height: x + "px" } : t.maxHeight ? {
3028
- maxHeight: typeof t.maxHeight == "number" ? `${t.maxHeight}px` : t.maxHeight
3029
- } : { maxHeight: x + "px" };
3030
- }), O = E(() => ({
3031
- renderBodyRefs: l.currentRef,
3032
- renderBodyRefsObject: l,
3033
- lyFormInstance: i,
3034
- dialogInstance: c,
3035
- getRefs: () => l
3036
- })), u = (x) => {
3037
- const z = x.click;
3038
- typeof z == "function" && z(l.currentRef, {
3039
- close: F,
3040
- getRefs: (X) => X ? l[X] || null : l,
3041
- dialogInstance: c
1599
+ }), T = () => {
1600
+ _.value = !1, e("closed", !1), v();
1601
+ }, j = () => {
1602
+ e("closed", !1), v();
1603
+ }, N = () => {
1604
+ }, U = (k) => {
1605
+ k();
1606
+ }, M = S(() => ({ ...o })), W = S(() => F.value ? "dialogFull" : n.maxHeight ? "dialogShadow" : "dialogAuto"), V = () => {
1607
+ const k = typeof window != "undefined" ? window.innerHeight : 800;
1608
+ return Math.max(k - 135, 200);
1609
+ }, J = S(() => {
1610
+ const k = V();
1611
+ return F.value ? { height: k + "px" } : n.maxHeight ? {
1612
+ maxHeight: typeof n.maxHeight == "number" ? `${n.maxHeight}px` : n.maxHeight
1613
+ } : { maxHeight: k + "px" };
1614
+ }), R = S(() => ({
1615
+ renderBodyRefs: B.currentRef,
1616
+ renderBodyRefsObject: B,
1617
+ lyFormInstance: c,
1618
+ dialogInstance: f,
1619
+ getRefs: () => B
1620
+ })), r = (k) => {
1621
+ const E = k.click;
1622
+ typeof E == "function" && E(B.currentRef, {
1623
+ close: T,
1624
+ getRefs: (Q) => Q ? B[Q] || null : B,
1625
+ dialogInstance: f
3042
1626
  });
3043
1627
  };
3044
- Qn("bodyFormInstance", (x) => {
3045
- i.value = x;
1628
+ dt("bodyFormInstance", (k) => {
1629
+ c.value = k;
3046
1630
  });
3047
- const g = E(() => ({
3048
- ...t.components
3049
- })), _ = {
3050
- closed: F
1631
+ const u = S(() => ({
1632
+ ...n.components
1633
+ })), y = {
1634
+ closed: T
3051
1635
  };
3052
- return typeof r == "function" && r(_), {
1636
+ return typeof i == "function" && i(y), {
3053
1637
  // state
3054
- dialogVisible: S,
3055
- isFullscreen: y,
3056
- lyFormInstance: i,
3057
- renderBodyRefsObject: l,
1638
+ dialogVisible: _,
1639
+ isFullscreen: F,
1640
+ lyFormInstance: c,
1641
+ renderBodyRefsObject: B,
3058
1642
  // computeds
3059
- filteredAttrs: U,
3060
- initDialogCls: J,
3061
- initDialogHeight: Q,
3062
- getCurrentInstanceModel: O,
3063
- dialogComponents: g,
1643
+ filteredAttrs: M,
1644
+ initDialogCls: W,
1645
+ initDialogHeight: J,
1646
+ getCurrentInstanceModel: R,
1647
+ dialogComponents: u,
3064
1648
  // methods
3065
- handleClose: F,
3066
- handleFullscreen: f,
3067
- handleBtnClick: u,
3068
- onDialogClose: H,
3069
- onDialogClosed: M,
3070
- beforeCloseHandler: W,
3071
- checkPermission: s,
3072
- filterOptions: m,
3073
- getDisabled: v,
3074
- getCompIcon: Jn,
1649
+ handleClose: T,
1650
+ handleFullscreen: m,
1651
+ handleBtnClick: r,
1652
+ onDialogClose: j,
1653
+ onDialogClosed: N,
1654
+ beforeCloseHandler: U,
1655
+ checkPermission: a,
1656
+ filterOptions: h,
1657
+ getDisabled: d,
1658
+ getCompIcon: ft,
3075
1659
  // exposed
3076
- ..._
1660
+ ...y
3077
1661
  };
3078
1662
  }
3079
1663
  });
3080
- var Fi = function() {
1664
+ var kn = function() {
3081
1665
  var e = this, o = e._self._c;
3082
- return e._self._setupProxy, o("div", { staticClass: "dp-dialog_wrapper" }, [o("el-dialog", e._b({ class: ["dg-dialog", e.initDialogCls], attrs: { visible: e.dialogVisible, width: typeof e.width == "number" ? e.width + "px" : e.width, "show-close": !1, fullscreen: e.filteredAttrs && e.filteredAttrs.fullscreen != null ? e.filteredAttrs.fullscreen : e.isFullscreen, "append-to-body": e.appendToBody, "modal-append-to-body": e.modalAppendToBody, "close-on-click-modal": e.closeOnClickModal, "close-on-press-escape": e.closeOnPressEscape, "destroy-on-close": e.destroyOnClose, "before-close": e.beforeCloseHandler }, on: { "update:visible": function(n) {
3083
- e.dialogVisible = n;
1666
+ return e._self._setupProxy, o("div", { staticClass: "dp-dialog_wrapper" }, [o("el-dialog", e._b({ class: ["dg-dialog", e.initDialogCls], attrs: { visible: e.dialogVisible, width: typeof e.width == "number" ? e.width + "px" : e.width, "show-close": !1, fullscreen: e.filteredAttrs && e.filteredAttrs.fullscreen != null ? e.filteredAttrs.fullscreen : e.isFullscreen, "append-to-body": e.appendToBody, "modal-append-to-body": e.modalAppendToBody, "close-on-click-modal": e.closeOnClickModal, "close-on-press-escape": e.closeOnPressEscape, "destroy-on-close": e.destroyOnClose, "before-close": e.beforeCloseHandler }, on: { "update:visible": function(t) {
1667
+ e.dialogVisible = t;
3084
1668
  }, close: e.onDialogClose, closed: e.onDialogClosed }, scopedSlots: e._u([{ key: "title", fn: function() {
3085
1669
  return [e.renderHeader && typeof e.renderHeader == "function" ? o("render-jsx", { attrs: { render: e.renderHeader, instance: e.getCurrentInstanceModel } }) : [o("div", { staticClass: "dialog-header" }, [o("span", { staticClass: "dialog-title" }, [e._v(e._s(e.title))]), o("div", { staticClass: "btns" }, [o("i", { directives: [{ name: "show", rawName: "v-show", value: !e.hiddenFullBtn, expression: "!hiddenFullBtn" }], class: e.isFullscreen ? "el-icon-copy-document" : "el-icon-full-screen", on: { click: e.handleFullscreen } }), o("i", { staticClass: "el-icon-close", on: { click: e.handleClose } })])])]];
3086
1670
  }, proxy: !0 }, e.isHiddenFooter ? null : { key: "footer", fn: function() {
3087
- return [e.$slots.footer ? e._t("footer") : o("span", { staticClass: "dialog-footer" }, [e.renderFooter && typeof e.renderFooter == "function" ? o("render-jsx", { attrs: { render: e.renderFooter, instance: e.getCurrentInstanceModel } }) : e.configBtn && e.configBtn.length ? [e._l(e.configBtn, function(n, r) {
3088
- return [e.checkPermission(n.permissionValue) ? o("el-button", e._b({ key: n.key || r, attrs: { size: "small", icon: e.getCompIcon(n.icon), disabled: e.getDisabled(n) }, on: { click: () => e.handleBtnClick(n) } }, "el-button", e.filterOptions(n), !1), [e._v(" " + e._s(n.name) + " ")]) : e._e()];
1671
+ return [e.$slots.footer ? e._t("footer") : o("span", { staticClass: "dialog-footer" }, [e.renderFooter && typeof e.renderFooter == "function" ? o("render-jsx", { attrs: { render: e.renderFooter, instance: e.getCurrentInstanceModel } }) : e.configBtn && e.configBtn.length ? [e._l(e.configBtn, function(t, i) {
1672
+ return [e.checkPermission(t.permissionValue) ? o("el-button", e._b({ key: t.key || i, attrs: { size: "small", icon: e.getCompIcon(t.icon), disabled: e.getDisabled(t) }, on: { click: () => e.handleBtnClick(t) } }, "el-button", e.filterOptions(t), !1), [e._v(" " + e._s(t.name) + " ")]) : e._e()];
3089
1673
  })] : e._e()], 2)];
3090
1674
  }, proxy: !0 }], null, !0) }, "el-dialog", e.filteredAttrs, !1), [o("div", { staticClass: "dialog_body_layouts", style: e.initDialogHeight }, [e.render && typeof e.render == "function" ? o("render-jsx", { attrs: { refs: e.renderBodyRefsObject, instance: e.getCurrentInstanceModel, render: e.render, components: e.dialogComponents } }) : e._e()], 1)])], 1);
3091
- }, Ri = [], Bi = /* @__PURE__ */ Ne(
3092
- Ii,
3093
- Fi,
3094
- Ri,
1675
+ }, xn = [], In = /* @__PURE__ */ ge(
1676
+ Fn,
1677
+ kn,
1678
+ xn,
3095
1679
  !1,
3096
1680
  null,
3097
1681
  "1f2694c2"
3098
1682
  );
3099
- const Ze = Bi.exports, ki = (t) => typeof t == "string" ? document.querySelector(t) || document.body : t instanceof HTMLElement ? t : document.body, $i = (t) => {
1683
+ const ke = In.exports, Rn = (n) => typeof n == "string" ? document.querySelector(n) || document.body : n instanceof HTMLElement ? n : document.body, On = (n) => {
3100
1684
  const e = {}, o = {};
3101
- return Object.entries(t).forEach(([n, r]) => {
3102
- if (n.startsWith("on") && typeof r == "function" && n.length > 2) {
3103
- const a = n.slice(2), i = a.charAt(0).toLowerCase() + a.slice(1);
3104
- e[i] = r;
1685
+ return Object.entries(n).forEach(([t, i]) => {
1686
+ if (t.startsWith("on") && typeof i == "function" && t.length > 2) {
1687
+ const l = t.slice(2), c = l.charAt(0).toLowerCase() + l.slice(1);
1688
+ e[c] = i;
3105
1689
  } else
3106
- o[n] = r;
1690
+ o[t] = i;
3107
1691
  }), { propsData: o, events: e };
3108
- }, gn = (t, e, o) => {
3109
- const { propsData: n, events: r } = $i(e), a = mn.extend(t), i = new a({ propsData: n });
3110
- return Object.entries(r).forEach(([y, c]) => {
3111
- i.$on(y, c);
3112
- }), i.$mount(), ki(o).appendChild(i.$el), i;
1692
+ }, lt = (n, e, o) => {
1693
+ const { propsData: t, events: i } = On(e), l = ct.extend(n), c = new l({ propsData: t });
1694
+ return Object.entries(i).forEach(([F, f]) => {
1695
+ c.$on(F, f);
1696
+ }), c.$mount(), Rn(o).appendChild(c.$el), c;
3113
1697
  };
3114
- function Ct(t, e = {}) {
3115
- if (t = t || Ze, Object.assign({ onlyInstance: !1 }, e).onlyInstance) {
3116
- let n = null;
3117
- const r = () => {
3118
- n && (n.visible = !1, setTimeout(() => {
3119
- n && (n.$destroy(), n.$el && n.$el.parentNode && n.$el.parentNode.removeChild(n.$el), n = null);
1698
+ function Ee(n, e = {}) {
1699
+ if (n = n || ke, Object.assign({ onlyInstance: !1 }, e).onlyInstance) {
1700
+ let t = null;
1701
+ const i = () => {
1702
+ t && (t.visible = !1, setTimeout(() => {
1703
+ t && (t.$destroy(), t.$el && t.$el.parentNode && t.$el.parentNode.removeChild(t.$el), t = null);
3120
1704
  }, 300));
3121
- }, a = (i) => {
3122
- i.visible === void 0 && (i.visible = !0);
3123
- const l = i.onClosed, y = i.onSubmit;
3124
- return i.onClosed = (...c) => {
3125
- l == null || l(...c), r();
3126
- }, i.onSubmit = (c = r) => {
3127
- y == null || y(c);
3128
- }, n = gn(t, i, i.appendTo), n;
1705
+ }, l = (c) => {
1706
+ c.visible === void 0 && (c.visible = !0);
1707
+ const B = c.onClosed, F = c.onSubmit;
1708
+ return c.onClosed = (...f) => {
1709
+ B == null || B(...f), i();
1710
+ }, c.onSubmit = (f = i) => {
1711
+ F == null || F(f);
1712
+ }, t = lt(n, c, c.appendTo), t;
3129
1713
  };
3130
- return a.close = r, a;
1714
+ return l.close = i, l;
3131
1715
  } else {
3132
- let n = null;
3133
- const r = () => {
3134
- n && (n.visible = !1);
3135
- }, a = () => {
3136
- n && (n.$destroy(), n.$el && n.$el.parentNode && n.$el.parentNode.removeChild(n.$el), n = null);
3137
- }, i = (l) => {
3138
- if (n)
3139
- return Object.entries(l).forEach(([s, m]) => {
3140
- s.startsWith("on") || (n[s] = m);
3141
- }), n.visible = !0, n;
3142
- const y = {
1716
+ let t = null;
1717
+ const i = () => {
1718
+ t && (t.visible = !1);
1719
+ }, l = () => {
1720
+ t && (t.$destroy(), t.$el && t.$el.parentNode && t.$el.parentNode.removeChild(t.$el), t = null);
1721
+ }, c = (B) => {
1722
+ if (t)
1723
+ return Object.entries(B).forEach(([a, h]) => {
1724
+ a.startsWith("on") || (t[a] = h);
1725
+ }), t.visible = !0, t;
1726
+ const F = {
3143
1727
  visible: !0,
3144
1728
  width: "50%",
3145
1729
  destroyOnClose: !0,
3146
- ...l
3147
- }, c = y.onClosed, p = y.onSubmit;
3148
- return y.onClosed = () => {
3149
- c == null || c(), r();
3150
- }, y.onSubmit = (s = r) => {
3151
- p == null || p(s);
3152
- }, n = gn(t, y, y.appendTo), n;
1730
+ ...B
1731
+ }, f = F.onClosed, p = F.onSubmit;
1732
+ return F.onClosed = () => {
1733
+ f == null || f(), i();
1734
+ }, F.onSubmit = (a = i) => {
1735
+ p == null || p(a);
1736
+ }, t = lt(n, F, F.appendTo), t;
3153
1737
  };
3154
- return i.close = r, i.destroy = a, i;
1738
+ return c.close = i, c.destroy = l, c;
3155
1739
  }
3156
1740
  }
3157
- Ze.install = function(t) {
3158
- t.component(Ze.name || "EsDialog", Ze), t.prototype.$useDialog = Ct;
1741
+ ke.install = function(n) {
1742
+ n.component(ke.name || "EsDialog", ke), n.prototype.$useDialog = Ee;
3159
1743
  };
3160
- const Pi = be({
1744
+ const wn = ie({
3161
1745
  name: "EsCrudPage",
3162
- components: { EsForm: ze, EsTable: Ye },
1746
+ components: { EsForm: be, EsTable: Fe },
3163
1747
  inheritAttrs: !1,
3164
1748
  props: {
3165
1749
  schema: { type: Object, required: !0 },
@@ -3182,384 +1766,384 @@ const Pi = be({
3182
1766
  "dialog-cancel",
3183
1767
  "dialog-open"
3184
1768
  ],
3185
- setup(t, { emit: e, expose: o }) {
3186
- const n = L(null), r = L(null), a = L([]), i = _t({});
3187
- we(
3188
- () => t.schema.formItems,
3189
- (u) => {
3190
- u && u.forEach((g) => {
3191
- g.prop && !(g.prop in i) && (i[g.prop] = "");
1769
+ setup(n, { emit: e, expose: o }) {
1770
+ const t = z(null), i = z(null), l = z([]), c = ze({});
1771
+ de(
1772
+ () => n.schema.formItems,
1773
+ (r) => {
1774
+ r && r.forEach((u) => {
1775
+ u.prop && !(u.prop in c) && (c[u.prop] = "");
3192
1776
  });
3193
1777
  },
3194
1778
  { immediate: !0 }
3195
1779
  );
3196
- const l = L({
1780
+ const B = z({
3197
1781
  current: 1,
3198
1782
  pageSize: 10,
3199
1783
  total: 0,
3200
- ...t.schema.pagination || {}
3201
- }), y = E(() => {
3202
- var k, T;
3203
- if (t.schema.dialogs) return t.schema.dialogs;
3204
- if (!((k = t.schema.dialogFormItems) != null && k.length)) return {};
3205
- const u = {
3206
- width: ((T = t.schema.dialogOptions) == null ? void 0 : T.width) || "600px",
3207
- formItems: t.schema.dialogFormItems,
3208
- ...t.schema.dialogOptions || {}
3209
- }, g = {}, _ = t.schema.actions || ["add", "edit", "delete"];
3210
- return _.includes("add") && (g.add = { ...u, title: "新增" }), _.includes("edit") && (g.edit = { ...u, title: "编辑" }), _.includes("view") && (g.view = { ...u, title: "查看", isHiddenFooter: !0 }), g;
3211
- }), c = E(() => {
3212
- if (t.schema.toolbarBtns) return t.schema.toolbarBtns;
3213
- if (t.schema.dialogs || t.schema.operationColumn !== void 0) return [];
3214
- const u = t.schema.actions || ["add", "edit", "delete"], g = [];
3215
- return u.includes("add") && g.push({
1784
+ ...n.schema.pagination || {}
1785
+ }), F = S(() => {
1786
+ var w, L;
1787
+ if (n.schema.dialogs) return n.schema.dialogs;
1788
+ if (!((w = n.schema.dialogFormItems) != null && w.length)) return {};
1789
+ const r = {
1790
+ width: ((L = n.schema.dialogOptions) == null ? void 0 : L.width) || "600px",
1791
+ formItems: n.schema.dialogFormItems,
1792
+ ...n.schema.dialogOptions || {}
1793
+ }, u = {}, y = n.schema.actions || ["add", "edit", "delete"];
1794
+ return y.includes("add") && (u.add = { ...r, title: "新增" }), y.includes("edit") && (u.edit = { ...r, title: "编辑" }), y.includes("view") && (u.view = { ...r, title: "查看", isHiddenFooter: !0 }), u;
1795
+ }), f = S(() => {
1796
+ if (n.schema.toolbarBtns) return n.schema.toolbarBtns;
1797
+ if (n.schema.dialogs || n.schema.operationColumn !== void 0) return [];
1798
+ const r = n.schema.actions || ["add", "edit", "delete"], u = [];
1799
+ return r.includes("add") && u.push({
3216
1800
  name: "新增",
3217
1801
  type: "primary",
3218
1802
  key: "add",
3219
1803
  icon: "Plus",
3220
1804
  dialogKey: "add"
3221
- }), u.includes("export") && g.push({
1805
+ }), r.includes("export") && u.push({
3222
1806
  name: "导出",
3223
1807
  key: "export",
3224
1808
  icon: "Download",
3225
1809
  actionType: "export"
3226
- }), u.includes("import") && g.push({
1810
+ }), r.includes("import") && u.push({
3227
1811
  name: "导入",
3228
1812
  key: "import",
3229
1813
  icon: "Upload",
3230
1814
  actionType: "import"
3231
- }), g;
3232
- }), p = E(
1815
+ }), u;
1816
+ }), p = S(
3233
1817
  () => {
3234
- var T;
3235
- if (t.schema.operationColumn !== void 0) return t.schema.operationColumn;
3236
- const u = t.schema.actions || ["add", "edit", "delete"];
3237
- if ((T = t.schema.columns) == null ? void 0 : T.some(
3238
- (x) => x.prop === "action" || x.prop === "operate" || x.btns
1818
+ var L;
1819
+ if (n.schema.operationColumn !== void 0) return n.schema.operationColumn;
1820
+ const r = n.schema.actions || ["add", "edit", "delete"];
1821
+ if ((L = n.schema.columns) == null ? void 0 : L.some(
1822
+ (k) => k.prop === "action" || k.prop === "operate" || k.btns
3239
1823
  )) return;
3240
- if (u.filter((x) => ["edit", "delete", "view"].includes(x)).length === 0) return !1;
3241
- const k = [];
3242
- return u.includes("view") && k.push({ name: "查看", type: "primary", key: "view", dialogKey: "view" }), u.includes("edit") && k.push({ name: "编辑", type: "primary", key: "edit", dialogKey: "edit" }), u.includes("delete") && k.push({
1824
+ if (r.filter((k) => ["edit", "delete", "view"].includes(k)).length === 0) return !1;
1825
+ const w = [];
1826
+ return r.includes("view") && w.push({ name: "查看", type: "primary", key: "view", dialogKey: "view" }), r.includes("edit") && w.push({ name: "编辑", type: "primary", key: "edit", dialogKey: "edit" }), r.includes("delete") && w.push({
3243
1827
  name: "删除",
3244
1828
  type: "danger",
3245
1829
  key: "delete",
3246
1830
  confirm: "确定删除该条数据吗?"
3247
1831
  }), {
3248
1832
  label: "操作",
3249
- width: k.length * 80 + 20,
1833
+ width: w.length * 80 + 20,
3250
1834
  fixed: "right",
3251
- btns: k
1835
+ btns: w
3252
1836
  };
3253
1837
  }
3254
- ), s = E(() => {
3255
- if (t.schema.queryBtns) return t.schema.queryBtns;
3256
- const u = [
1838
+ ), a = S(() => {
1839
+ if (n.schema.queryBtns) return n.schema.queryBtns;
1840
+ const r = [
3257
1841
  { name: "查询", type: "primary", key: "query", triggerEvent: !0 },
3258
1842
  { name: "重置", key: "rest", triggerEvent: !0 }
3259
- ], g = c.value.map((_) => {
3260
- const k = { ..._ };
3261
- return k.click || (k.click = () => S(_)), k;
1843
+ ], u = f.value.map((y) => {
1844
+ const w = { ...y };
1845
+ return w.click || (w.click = () => _(y)), w;
3262
1846
  });
3263
- return [...u, ...g];
3264
- }), m = E(() => {
3265
- const u = [...t.schema.columns || []], g = p.value;
3266
- if (g === !1 || g === void 0) return u;
3267
- const _ = g.btns.map((k) => ({
3268
- name: k.name,
3269
- type: k.type,
3270
- permissionValue: k.permissionValue,
3271
- clickEvent: (T) => F(k, T)
1847
+ return [...r, ...u];
1848
+ }), h = S(() => {
1849
+ const r = [...n.schema.columns || []], u = p.value;
1850
+ if (u === !1 || u === void 0) return r;
1851
+ const y = u.btns.map((w) => ({
1852
+ name: w.name,
1853
+ type: w.type,
1854
+ permissionValue: w.permissionValue,
1855
+ clickEvent: (L) => T(w, L)
3272
1856
  }));
3273
- return u.push({
1857
+ return r.push({
3274
1858
  prop: "operate",
3275
- label: g.label || "操作",
3276
- width: g.width || _.length * 80 + 20,
3277
- fixed: g.fixed || "right",
3278
- btns: _
3279
- }), u;
3280
- }), v = E(() => {
3281
- var u;
3282
- return (u = t.schema.tableBtns) != null && u.length ? t.schema.tableBtns.map((g) => ({
3283
- name: g.name,
3284
- type: g.type,
3285
- size: g.size || "small",
3286
- icon: g.icon,
3287
- code: g.code || 1,
3288
- permissionValue: g.permissionValue,
3289
- loading: g.loading,
3290
- disabled: g.disabled,
3291
- click: () => S(g)
1859
+ label: u.label || "操作",
1860
+ width: u.width || y.length * 80 + 20,
1861
+ fixed: u.fixed || "right",
1862
+ btns: y
1863
+ }), r;
1864
+ }), d = S(() => {
1865
+ var r;
1866
+ return (r = n.schema.tableBtns) != null && r.length ? n.schema.tableBtns.map((u) => ({
1867
+ name: u.name,
1868
+ type: u.type,
1869
+ size: u.size || "small",
1870
+ icon: u.icon,
1871
+ code: u.code || 1,
1872
+ permissionValue: u.permissionValue,
1873
+ loading: u.loading,
1874
+ disabled: u.disabled,
1875
+ click: () => _(u)
3292
1876
  })) : [];
3293
- }), h = E(() => {
3294
- const u = {
1877
+ }), v = S(() => {
1878
+ const r = {
3295
1879
  border: !0,
3296
- isInitRun: t.autoLoad,
3297
- ...t.schema.tableOptions || {}
1880
+ isInitRun: n.autoLoad,
1881
+ ...n.schema.tableOptions || {}
3298
1882
  };
3299
- t.httpRequest && (u.httpRequest = t.httpRequest);
3300
- const g = v.value;
3301
- if (g.length > 0) {
3302
- const _ = u.configBtn || [];
3303
- u.configBtn = [..._, ...g];
1883
+ n.httpRequest && (r.httpRequest = n.httpRequest);
1884
+ const u = d.value;
1885
+ if (u.length > 0) {
1886
+ const y = r.configBtn || [];
1887
+ r.configBtn = [...y, ...u];
3304
1888
  }
3305
- return u;
3306
- }), f = E(() => {
3307
- const u = t.schema.formLayout;
3308
- if (u)
1889
+ return r;
1890
+ }), m = S(() => {
1891
+ const r = n.schema.formLayout;
1892
+ if (r)
3309
1893
  return {
3310
1894
  rowLayProps: { gutter: 16 },
3311
1895
  formLayProps: {
3312
- labelBtnWidth: u.labelWidth,
3313
- ...u.minFoldRows ? { minFoldRows: u.minFoldRows } : {}
1896
+ labelBtnWidth: r.labelWidth,
1897
+ ...r.minFoldRows ? { minFoldRows: r.minFoldRows } : {}
3314
1898
  }
3315
1899
  };
3316
1900
  });
3317
- async function S(u) {
3318
- const g = u.key || u.actionType || "";
3319
- if (u.confirm) {
3320
- const _ = typeof u.confirm == "string" ? u.confirm : "确定执行此操作吗?";
1901
+ async function _(r) {
1902
+ const u = r.key || r.actionType || "";
1903
+ if (r.confirm) {
1904
+ const y = typeof r.confirm == "string" ? r.confirm : "确定执行此操作吗?";
3321
1905
  try {
3322
- await tn.confirm(_, "提示", { type: "warning" });
3323
- } catch (k) {
1906
+ await ot.confirm(y, "提示", { type: "warning" });
1907
+ } catch (w) {
3324
1908
  return;
3325
1909
  }
3326
1910
  }
3327
- if (u.dialogKey) {
3328
- g === "add" && e("add"), M(u.dialogKey);
1911
+ if (r.dialogKey) {
1912
+ u === "add" && e("add"), N(r.dialogKey);
3329
1913
  return;
3330
1914
  }
3331
- g === "export" || u.actionType === "export" ? e("export", { ...i }) : g === "add" && e("add"), e("btn-click", g, { ...i });
1915
+ u === "export" || r.actionType === "export" ? e("export", { ...c }) : u === "add" && e("add"), e("btn-click", u, { ...c });
3332
1916
  }
3333
- async function F(u, g) {
3334
- const _ = u.key || "";
3335
- if (u.confirm) {
3336
- const k = typeof u.confirm == "string" ? u.confirm : "确定执行此操作吗?";
1917
+ async function T(r, u) {
1918
+ const y = r.key || "";
1919
+ if (r.confirm) {
1920
+ const w = typeof r.confirm == "string" ? r.confirm : "确定执行此操作吗?";
3337
1921
  try {
3338
- await tn.confirm(k, "提示", { type: "warning" });
3339
- } catch (T) {
1922
+ await ot.confirm(w, "提示", { type: "warning" });
1923
+ } catch (L) {
3340
1924
  return;
3341
1925
  }
3342
1926
  }
3343
- if (u.click) {
3344
- u.click(g, { refresh: K, getSelectedRows: Q, openDialog: M });
1927
+ if (r.click) {
1928
+ r.click(u, { refresh: V, getSelectedRows: J, openDialog: N });
3345
1929
  return;
3346
1930
  }
3347
- if (u.dialogKey) {
3348
- M(u.dialogKey, g);
1931
+ if (r.dialogKey) {
1932
+ N(r.dialogKey, u);
3349
1933
  return;
3350
1934
  }
3351
- _ === "edit" ? e("edit", g) : _ === "delete" ? e("delete", g) : _ === "view" && e("view", g), e("btn-click", _, g);
1935
+ y === "edit" ? e("edit", u) : y === "delete" ? e("delete", u) : y === "view" && e("view", u), e("btn-click", y, u);
3352
1936
  }
3353
- const H = /* @__PURE__ */ new Map();
3354
- function M(u, g) {
3355
- var X;
3356
- const _ = y.value[u];
3357
- if (!_) return;
3358
- e("dialog-open", u, g);
3359
- const k = Ct();
3360
- H.set(u, k);
3361
- const T = _t({});
3362
- _.formItems && _.formItems.forEach((q) => {
3363
- var ve;
3364
- q.prop && (T[q.prop] = (ve = g == null ? void 0 : g[q.prop]) != null ? ve : "");
1937
+ const j = /* @__PURE__ */ new Map();
1938
+ function N(r, u) {
1939
+ var Q;
1940
+ const y = F.value[r];
1941
+ if (!y) return;
1942
+ e("dialog-open", r, u);
1943
+ const w = Ee();
1944
+ j.set(r, w);
1945
+ const L = ze({});
1946
+ y.formItems && y.formItems.forEach((q) => {
1947
+ var se;
1948
+ q.prop && (L[q.prop] = (se = u == null ? void 0 : u[q.prop]) != null ? se : "");
3365
1949
  });
3366
- const x = typeof _.title == "function" ? _.title(g) : _.title || "";
3367
- (X = _.onOpen) == null || X.call(_, g);
3368
- const z = U(u, _, T, g || {});
3369
- k({
3370
- title: x,
3371
- width: _.width || "600px",
3372
- isDraggable: _.isDraggable,
3373
- maxHeight: _.maxHeight,
3374
- fullscreen: _.fullscreen,
3375
- isHiddenFooter: _.isHiddenFooter,
1950
+ const k = typeof y.title == "function" ? y.title(u) : y.title || "";
1951
+ (Q = y.onOpen) == null || Q.call(y, u);
1952
+ const E = M(r, y, L, u || {});
1953
+ w({
1954
+ title: k,
1955
+ width: y.width || "600px",
1956
+ isDraggable: y.isDraggable,
1957
+ maxHeight: y.maxHeight,
1958
+ fullscreen: y.fullscreen,
1959
+ isHiddenFooter: y.isHiddenFooter,
3376
1960
  // 用户自定义 render
3377
- render: _.render ? (q, ve) => _.render(q, {
3378
- row: g || {},
3379
- model: T,
3380
- registerRef: ve.registerRef,
3381
- close: () => W(u),
3382
- refresh: K
3383
- }) : _.formItems ? (q, { registerRef: ve }) => {
3384
- const ge = q(ze, {
1961
+ render: y.render ? (q, se) => y.render(q, {
1962
+ row: u || {},
1963
+ model: L,
1964
+ registerRef: se.registerRef,
1965
+ close: () => U(r),
1966
+ refresh: V
1967
+ }) : y.formItems ? (q, { registerRef: se }) => {
1968
+ const re = q(be, {
3385
1969
  props: {
3386
- model: T,
3387
- formItemList: _.formItems,
1970
+ model: L,
1971
+ formItemList: y.formItems,
3388
1972
  layoutFormProps: {
3389
1973
  rowLayProps: { gutter: 16 },
3390
1974
  formLayProps: {
3391
1975
  isBtnHidden: !0,
3392
- ..._.formLayout || {}
1976
+ ...y.formLayout || {}
3393
1977
  }
3394
1978
  }
3395
1979
  },
3396
1980
  // Vue 2 函数式 ref:通过 RenderJsx 暴露的 registerRef 注册
3397
1981
  ref: "dialogForm"
3398
1982
  });
3399
- return ge && ge.data && (ge.data.hook = ge.data.hook || {}, ge.data.hook.insert = (le) => {
3400
- le.componentInstance && ve("dialogForm", le.componentInstance);
3401
- }), ge;
1983
+ return re && re.data && (re.data.hook = re.data.hook || {}, re.data.hook.insert = (ne) => {
1984
+ ne.componentInstance && se("dialogForm", ne.componentInstance);
1985
+ }), re;
3402
1986
  } : void 0,
3403
- configBtn: z,
1987
+ configBtn: E,
3404
1988
  // useDialog 的 onClosed 通过 extractEventHandlers 转为 'closed' 事件
3405
1989
  onClosed: () => {
3406
1990
  var q;
3407
- H.delete(u), (q = _.onClose) == null || q.call(_);
1991
+ j.delete(r), (q = y.onClose) == null || q.call(y);
3408
1992
  }
3409
1993
  });
3410
1994
  }
3411
- function W(u) {
3412
- const g = H.get(u);
3413
- g && (g.close(), H.delete(u));
1995
+ function U(r) {
1996
+ const u = j.get(r);
1997
+ u && (u.close(), j.delete(r));
3414
1998
  }
3415
- function U(u, g, _, k) {
3416
- if (!g.isHiddenFooter)
3417
- return g.configBtn ? g.configBtn.map((T) => T.action === "cancel" ? {
3418
- ...T,
3419
- click: (x, { close: z }) => {
3420
- e("dialog-cancel", u), z();
1999
+ function M(r, u, y, w) {
2000
+ if (!u.isHiddenFooter)
2001
+ return u.configBtn ? u.configBtn.map((L) => L.action === "cancel" ? {
2002
+ ...L,
2003
+ click: (k, { close: E }) => {
2004
+ e("dialog-cancel", r), E();
3421
2005
  }
3422
- } : T.action === "confirm" ? {
3423
- ...T,
3424
- click: async (x, { close: z, getRefs: X }) => {
3425
- await J(u, g, _, k, z, X);
2006
+ } : L.action === "confirm" ? {
2007
+ ...L,
2008
+ click: async (k, { close: E, getRefs: Q }) => {
2009
+ await W(r, u, y, w, E, Q);
3426
2010
  }
3427
- } : T) : [
2011
+ } : L) : [
3428
2012
  {
3429
2013
  name: "取消",
3430
- click: (T, { close: x }) => {
3431
- e("dialog-cancel", u), x();
2014
+ click: (L, { close: k }) => {
2015
+ e("dialog-cancel", r), k();
3432
2016
  }
3433
2017
  },
3434
2018
  {
3435
2019
  name: "确定",
3436
2020
  type: "primary",
3437
- click: async (T, { close: x, getRefs: z }) => {
3438
- await J(u, g, _, k, x, z);
2021
+ click: async (L, { close: k, getRefs: E }) => {
2022
+ await W(r, u, y, w, k, E);
3439
2023
  }
3440
2024
  }
3441
2025
  ];
3442
2026
  }
3443
- async function J(u, g, _, k, T, x) {
3444
- var X;
3445
- if ((X = g.formItems) != null && X.length) {
3446
- const q = x("dialogForm");
2027
+ async function W(r, u, y, w, L, k) {
2028
+ var Q;
2029
+ if ((Q = u.formItems) != null && Q.length) {
2030
+ const q = k("dialogForm");
3447
2031
  q != null && q.validate && await q.validate();
3448
2032
  }
3449
- const z = { close: T, refresh: K, getRefs: x, row: k };
3450
- if (g.onConfirm)
3451
- await g.onConfirm(_, z);
2033
+ const E = { close: L, refresh: V, getRefs: k, row: w };
2034
+ if (u.onConfirm)
2035
+ await u.onConfirm(y, E);
3452
2036
  else {
3453
- const q = u === "add" ? "add-confirm" : u === "edit" ? "edit-confirm" : `${u}-confirm`;
3454
- e("btn-click", q, _), T(), K();
2037
+ const q = r === "add" ? "add-confirm" : r === "edit" ? "edit-confirm" : `${r}-confirm`;
2038
+ e("btn-click", q, y), L(), V();
3455
2039
  }
3456
- e("dialog-confirm", u, _);
2040
+ e("dialog-confirm", r, y);
3457
2041
  }
3458
- function K() {
3459
- var u, g;
3460
- (g = (u = n.value) == null ? void 0 : u.httpRequestInstance) == null || g.call(u);
2042
+ function V() {
2043
+ var r, u;
2044
+ (u = (r = t.value) == null ? void 0 : r.httpRequestInstance) == null || u.call(r);
3461
2045
  }
3462
- function Q() {
3463
- var u, g;
3464
- return ((g = (u = n.value) == null ? void 0 : u.getSelectionRows) == null ? void 0 : g.call(u)) || [];
2046
+ function J() {
2047
+ var r, u;
2048
+ return ((u = (r = t.value) == null ? void 0 : r.getSelectionRows) == null ? void 0 : u.call(r)) || [];
3465
2049
  }
3466
- const O = {
3467
- refresh: K,
3468
- getSelectedRows: Q,
3469
- tableRef: n,
3470
- formRef: r,
3471
- queryModel: i,
3472
- openDialog: M,
3473
- closeDialog: W
2050
+ const R = {
2051
+ refresh: V,
2052
+ getSelectedRows: J,
2053
+ tableRef: t,
2054
+ formRef: i,
2055
+ queryModel: c,
2056
+ openDialog: N,
2057
+ closeDialog: U
3474
2058
  };
3475
- return typeof o == "function" && o(O), {
2059
+ return typeof o == "function" && o(R), {
3476
2060
  // refs
3477
- tableRef: n,
3478
- formRef: r,
3479
- tableData: a,
3480
- queryModel: i,
3481
- paginationState: l,
2061
+ tableRef: t,
2062
+ formRef: i,
2063
+ tableData: l,
2064
+ queryModel: c,
2065
+ paginationState: B,
3482
2066
  // computeds
3483
- mergedColumns: m,
3484
- mergedOptions: h,
3485
- mergedFormBtns: s,
3486
- formLayoutProps: f,
2067
+ mergedColumns: h,
2068
+ mergedOptions: v,
2069
+ mergedFormBtns: a,
2070
+ formLayoutProps: m,
3487
2071
  // exposed
3488
- ...O
2072
+ ...R
3489
2073
  };
3490
2074
  }
3491
2075
  });
3492
- var Ni = function() {
2076
+ var Pn = function() {
3493
2077
  var e = this, o = e._self._c;
3494
- return e._self._setupProxy, o("div", { staticClass: "es-crud-page" }, [o("es-table", e._b({ ref: "tableRef", attrs: { columns: e.mergedColumns, options: e.mergedOptions, "data-source": e.tableData, pagination: e.paginationState }, on: { "update:dataSource": function(n) {
3495
- e.tableData = n;
3496
- }, "update:data-source": function(n) {
3497
- e.tableData = n;
3498
- }, "update:pagination": function(n) {
3499
- e.paginationState = n;
3500
- } }, scopedSlots: e._u([e._l(e.$slots, function(n, r) {
3501
- return { key: r, fn: function(a) {
3502
- return [e._t(r, null, null, a || {})];
2078
+ return e._self._setupProxy, o("div", { staticClass: "es-crud-page" }, [o("es-table", e._b({ ref: "tableRef", attrs: { columns: e.mergedColumns, options: e.mergedOptions, "data-source": e.tableData, pagination: e.paginationState }, on: { "update:dataSource": function(t) {
2079
+ e.tableData = t;
2080
+ }, "update:data-source": function(t) {
2081
+ e.tableData = t;
2082
+ }, "update:pagination": function(t) {
2083
+ e.paginationState = t;
2084
+ } }, scopedSlots: e._u([e._l(e.$slots, function(t, i) {
2085
+ return { key: i, fn: function(l) {
2086
+ return [e._t(i, null, null, l || {})];
3503
2087
  } };
3504
2088
  })], null, !0) }, "es-table", e.$attrs, !1), [e.schema.formItems && e.schema.formItems.length ? o("es-form", { ref: "formRef", attrs: { model: e.queryModel, "form-item-list": e.schema.formItems, "config-btn": e.mergedFormBtns, "layout-form-props": e.formLayoutProps } }) : e._e()], 1)], 1);
3505
- }, Di = [], Ai = /* @__PURE__ */ Ne(
3506
- Pi,
3507
- Ni,
3508
- Di,
2089
+ }, $n = [], Hn = /* @__PURE__ */ ge(
2090
+ wn,
2091
+ Pn,
2092
+ $n,
3509
2093
  !1,
3510
2094
  null,
3511
2095
  "ad1d1cb8"
3512
2096
  );
3513
- const gt = Ai.exports;
3514
- gt.install = function(t) {
3515
- t.component(
3516
- gt.name || "EsCrudPage",
3517
- gt
2097
+ const Le = Hn.exports;
2098
+ Le.install = function(n) {
2099
+ n.component(
2100
+ Le.name || "EsCrudPage",
2101
+ Le
3518
2102
  );
3519
2103
  };
3520
- const Ti = [ze, Ye, Ze, gt], Hi = (t) => {
3521
- const e = { ...t };
2104
+ const Tn = [be, Fe, ke, Le], An = (n) => {
2105
+ const e = { ...n };
3522
2106
  for (const o of ["EsTable", "EsForm", "EsDialog"]) {
3523
- const n = e[o];
3524
- if (!n || typeof n != "object") continue;
3525
- const r = n.methods;
3526
- if (r && typeof r == "object") {
3527
- const { methods: i, ...l } = n;
3528
- e[o] = { ...r, ...l };
2107
+ const t = e[o];
2108
+ if (!t || typeof t != "object") continue;
2109
+ const i = t.methods;
2110
+ if (i && typeof i == "object") {
2111
+ const { methods: c, ...B } = t;
2112
+ e[o] = { ...i, ...B };
3529
2113
  }
3530
- const a = e[o];
3531
- typeof a.configQueryfieldOutput == "function" && typeof a.configQueryFieldOutput != "function" && (a.configQueryFieldOutput = a.configQueryfieldOutput);
2114
+ const l = e[o];
2115
+ typeof l.configQueryfieldOutput == "function" && typeof l.configQueryFieldOutput != "function" && (l.configQueryFieldOutput = l.configQueryfieldOutput);
3532
2116
  }
3533
2117
  return e;
3534
- }, Li = (t, e = {}) => {
3535
- const o = t.__composition_api_installed__ === !0;
3536
- Kn ? o && console.warn(
2118
+ }, Ln = (n, e = {}) => {
2119
+ const o = n.__composition_api_installed__ === !0;
2120
+ ut ? o && console.warn(
3537
2121
  '[@es-plus/vue2] Vue 2.7+ detected together with @vue/composition-api plugin already installed. This causes setup() to run twice (once natively, once via the polyfill\'s data() wrapper) and will produce "setup binding ... already declared" warnings. Remove `Vue.use(VueCompositionAPI)` from your main.js — Vue 2.7 has Composition API natively.'
3538
- ) : !o && dn && t.use(dn);
3539
- const n = Hi(e);
3540
- go(n), n.skipComponentRegistration || Ti.forEach((r) => {
3541
- const a = r.name;
3542
- a && t.component(a, r);
3543
- }), n.globalProperties !== !1 && (t.prototype.$useDialog = Ct), t.mixin({
2122
+ ) : !o && st && n.use(st);
2123
+ const t = An(e);
2124
+ Pt(t), t.skipComponentRegistration || Tn.forEach((i) => {
2125
+ const l = i.name;
2126
+ l && n.component(l, i);
2127
+ }), t.globalProperties !== !1 && (n.prototype.$useDialog = Ee), n.mixin({
3544
2128
  provide: {
3545
2129
  $EsPlus: {
3546
- useDialog: Ct,
3547
- ...n
2130
+ useDialog: Ee,
2131
+ ...t
3548
2132
  }
3549
2133
  }
3550
2134
  });
3551
- }, Mi = {
3552
- version: "1.1.1",
3553
- install: Li
2135
+ }, Dn = {
2136
+ version: "1.1.3",
2137
+ install: Ln
3554
2138
  };
3555
2139
  export {
3556
- gt as EsCrudPage,
3557
- Ze as EsDialog,
3558
- ze as EsForm,
3559
- Ye as EsTable,
3560
- Ui as configureEsPlus,
3561
- Mi as default,
3562
- Li as install,
3563
- Ct as useDialog
2140
+ Le as EsCrudPage,
2141
+ ke as EsDialog,
2142
+ be as EsForm,
2143
+ Fe as EsTable,
2144
+ Mn as configureEsPlus,
2145
+ Dn as default,
2146
+ Ln as install,
2147
+ Ee as useDialog
3564
2148
  };
3565
2149
  //# sourceMappingURL=es-plus-vue2.js.map