@es-plus/vue2 1.1.1 → 1.1.2

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 kt, queryTableListMethod as xt, getGlobalConfig as me, getButtonPosition as nt, createSelectionState as Ft, 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, Fe = 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 k;
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
+ (d, g, { row: a }) => {
38
+ const f = Y(a), p = G(g, a.prop), b = oe(a, (y) => K(g, a.prop, y));
39
+ return d("el-input", {
40
+ attrs: f,
41
+ props: { value: p, ...a.props },
42
+ on: b
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
+ (d, g, { row: a }) => {
52
+ const f = Y(a), p = G(g, a.prop), b = oe(a, (y) => K(g, a.prop, y));
53
+ return d("el-input-number", {
54
+ attrs: f,
55
+ props: { value: p, ...a.props },
56
+ on: b
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
+ (d, g, { row: a }) => {
66
+ const f = Y(a), p = G(g, a.prop), b = Be(a.dataOptions), y = oe(a, (_) => K(g, a.prop, _));
67
+ return d(
1488
68
  "el-select",
1489
69
  {
1490
- attrs: m,
1491
- props: { value: v, ...s.props },
1492
- on: f
70
+ attrs: f,
71
+ props: { value: p, ...a.props },
72
+ on: y
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
+ b.map(
75
+ (_, L) => d("el-option", {
76
+ key: L,
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
+ (d, g, { row: a }) => {
90
+ const f = Y(a), p = G(g, a.prop), b = oe(a, (y) => K(g, a.prop, y));
91
+ return d("el-date-picker", {
92
+ attrs: f,
93
+ props: { value: p, ...a.props },
94
+ on: b
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
+ (d, g, { row: a }) => {
104
+ const f = Y(a), p = G(g, a.prop), b = oe(a, (y) => K(g, a.prop, y));
105
+ return d("el-time-picker", {
106
+ attrs: f,
107
+ props: { value: p, ...a.props },
108
+ on: b
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
+ (d, g, { row: a }) => {
118
+ const f = Y(a), p = G(g, a.prop), b = oe(a, (y) => K(g, a.prop, y));
119
+ return d("el-slider", {
120
+ attrs: f,
121
+ props: { value: p, ...a.props },
122
+ on: b
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
+ (d, g, { row: a }) => {
134
+ const f = Y(a), p = G(g, a.prop), b = a.on || {}, y = {};
135
+ for (const [_, L] of Object.entries(b))
136
+ typeof L == "function" && (y[_] = L);
137
+ return typeof y.change != "function" && (y.change = (_) => K(g, a.prop, _)), d("el-color-picker", {
138
+ attrs: f,
139
+ props: { value: p, ...a.props },
140
+ on: y
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
+ (d, g, { row: a }) => {
151
+ const f = Y(a), p = G(g, a.prop), b = Be(a.dataOptions), y = oe(a, (_) => K(g, a.prop, _));
152
+ return d("el-transfer", {
153
+ attrs: f,
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: p,
156
+ data: b.map((_) => ({ key: _.value, label: _.label, disabled: _.disabled })),
157
+ ...a.props
1578
158
  },
1579
- on: f
159
+ on: y
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
+ (d, g, { row: a }) => {
169
+ const f = Y(a), p = G(g, a.prop), b = Be(a.dataOptions), y = oe(a, (_) => K(g, a.prop, _));
170
+ return d("el-cascader", {
1591
171
  // key 强制 dataOptions 变化时重渲染,Element UI 内部 cache 否则不刷新
1592
- key: JSON.stringify(h),
1593
- attrs: m,
172
+ key: JSON.stringify(b),
173
+ attrs: f,
1594
174
  props: {
1595
- value: v,
1596
- options: h,
1597
- ...s.props
175
+ value: p,
176
+ options: b,
177
+ ...a.props
1598
178
  },
1599
- on: f
179
+ on: y
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
+ (d, g, { row: a }) => {
189
+ const f = Y(a), p = G(g, a.prop), b = Be(a.dataOptions), y = oe(a, (_) => K(g, a.prop, _));
190
+ return d(
1611
191
  "el-radio-group",
1612
192
  {
1613
- attrs: m,
1614
- props: { value: v, ...s.props },
1615
- on: f
193
+ attrs: f,
194
+ props: { value: p, ...a.props },
195
+ on: y
1616
196
  },
1617
- h.map(
1618
- (S, F) => c(
197
+ b.map(
198
+ (_, L) => d(
1619
199
  "el-radio",
1620
200
  {
1621
- key: F,
201
+ key: L,
1622
202
  // Element UI 中 el-radio 使用 :label 作为值
1623
- props: { label: S.value, disabled: S.disabled || m.disabled }
203
+ props: { label: _.value, disabled: _.disabled || f.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
+ (d, g, { row: a }) => {
217
+ const f = Y(a), p = G(g, a.prop), b = Be(a.dataOptions), y = oe(a, (_) => K(g, a.prop, _));
218
+ return d(
1639
219
  "el-checkbox-group",
1640
220
  {
1641
- attrs: m,
1642
- props: { value: v, ...s.props },
1643
- on: f
221
+ attrs: f,
222
+ props: { value: p, ...a.props },
223
+ on: y
1644
224
  },
1645
- h.map(
1646
- (S, F) => c(
225
+ b.map(
226
+ (_, L) => d(
1647
227
  "el-checkbox",
1648
228
  {
1649
- key: F,
1650
- props: { label: S.value, disabled: S.disabled || m.disabled }
229
+ key: L,
230
+ props: { label: _.value, disabled: _.disabled || f.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
+ (d, g, { row: a }) => {
244
+ const f = Y(a), p = G(g, a.prop), b = oe(a, (y) => K(g, a.prop, y));
245
+ return d("el-switch", {
246
+ attrs: f,
247
+ props: { value: p, ...a.props },
248
+ on: b
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
+ (d, g, { row: a }) => {
258
+ const f = Y(a), p = G(g, a.prop), b = oe(a, (y) => K(g, a.prop, y));
259
+ return d("el-rate", {
260
+ attrs: f,
261
+ props: { value: p, ...a.props },
262
+ on: b
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
+ (d, g, { row: a }) => {
272
+ const f = a.prop, p = Y(a), b = a.props || {}, y = a.on || {}, _ = G(g, f) || [], L = typeof a.httpRequest == "function", j = a.triggerRender, N = a.fileRender, M = j ? j(d) : d("el-button", { props: { size: "mini", type: "primary" } }, ["选择文件"]), V = (r, u, h) => {
273
+ var A, x;
274
+ const w = (r == null ? void 0 : r.link) || (r == null ? void 0 : r.url) || ((A = r == null ? void 0 : r.data) == null ? void 0 : A.link) || ((x = r == null ? void 0 : r.data) == null ? void 0 : x.url);
275
+ w && (u.url = w), u.status = "success", u.response = r, typeof y.success == "function" && y.success(r, u, h), K(g, f, [...h]);
276
+ }, W = (r, u, h) => {
277
+ u.status = "fail", u.error = r, typeof y.error == "function" && y.error(r, u, h), K(g, f, [...h]);
278
+ }, U = L ? (r) => {
279
+ const u = a.httpRequest;
280
+ u({
281
+ file: r.file,
282
+ filename: r.file.name,
283
+ onProgress: r.onProgress
284
+ }).then((h) => {
285
+ const w = (h == null ? void 0 : h.data) || h;
286
+ r.onSuccess(w);
287
+ }).catch((h) => r.onError(h));
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(y)) {
298
+ if (typeof u != "function" || r === "success" || r === "error" || r === "remove") continue;
299
+ const h = J[r];
300
+ h && (R[h] = 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 = V, R.onError = W, R.onRemove = (r, u) => {
303
+ typeof y.remove == "function" && y.remove(r, u), K(g, f, [...u]);
304
+ }, d(
1725
305
  "el-upload",
1726
306
  {
1727
307
  attrs: {
1728
- ...v,
1729
- action: h.action || v.action || "#",
1730
- "file-list": S
308
+ ...p,
309
+ action: b.action || p.action || "#",
310
+ "file-list": _
1731
311
  },
1732
312
  props: {
1733
- ...h,
1734
- fileList: S,
313
+ ...b,
314
+ fileList: _,
1735
315
  // 自定义上传时禁用 auto-upload,由 httpRequest 接管
1736
- autoUpload: F ? !1 : h.autoUpload !== !1,
1737
- httpRequest: K,
316
+ autoUpload: L ? !1 : b.autoUpload !== !1,
317
+ httpRequest: U,
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(d, r, () => {
325
+ const u = _.filter((h) => h !== r);
326
+ K(g, f, u);
1747
327
  })
1748
328
  } : void 0
1749
329
  },
1750
- [W]
330
+ [M]
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 = (k = e.formtype) != null ? k : "";
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 [d, g] of o)
342
+ if (d.toLowerCase() === B) return g;
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 y;
349
+ const f = Ae(n.layoutFormProps);
350
+ if (!f || !Object.keys(f).length) return !1;
351
+ const p = f.isBtnHiden, b = f.isBtnHidden;
352
+ return !!((y = p != null ? p : b) != null && y);
353
+ }), t = S(() => {
354
+ var p;
1775
355
  return {
1776
356
  type: "flex",
1777
357
  gutter: 20,
1778
- ...((v = t.layoutFormProps) == null ? void 0 : v.rowLayProps) || {}
358
+ ...((p = n.layoutFormProps) == null ? void 0 : p.rowLayProps) || {}
1779
359
  };
1780
- }), r = E(() => ut(t.layoutFormProps)), a = E(() => {
1781
- var m;
1782
- return (m = t.layoutFormProps) == null ? void 0 : m.setOptions;
1783
- }), i = E(
1784
- () => ro(t.formItemList || [])
1785
- ), l = () => {
360
+ }), i = S(() => Ae(n.layoutFormProps)), l = S(() => {
1786
361
  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);
362
+ return (f = n.layoutFormProps) == null ? void 0 : f.setOptions;
363
+ }), c = S(
364
+ () => Ct(n.formItemList || [])
365
+ ), B = () => {
366
+ var y;
367
+ const f = Ae(n.layoutFormProps);
368
+ if (!f || !Object.keys(f).length) return 0;
369
+ const p = f.minfoldRows, b = f.minFoldRows;
370
+ return Number((y = p != null ? p : b) != null ? y : 0) || 0;
371
+ }, k = S(() => {
372
+ const f = B();
373
+ return f > 0 && f < c.value.rowNum;
374
+ }), d = S(() => {
375
+ var j;
376
+ const { rowNum: f, columnRow: p } = c.value, b = p[f - 1] || [], y = Number((j = Ae(n.layoutFormProps)) == null ? void 0 : j.btnColSpan) || 0, L = 24 - b.reduce(
377
+ (N, M) => {
378
+ var V;
379
+ return N + (((V = n.formItemList[M]) == null ? void 0 : V.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 && y <= L ? L : 24;
384
+ }), g = S(() => {
385
+ var b, y;
386
+ const f = B(), { columnNodeIndex: p } = 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 _ = (y = (b = p[f - 1]) != null ? b : p[p.length - 1]) != null ? y : 9999;
389
+ return (n.formItemList || []).map((L, j) => ({
390
+ ...L,
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
+ k,
398
+ (f) => {
399
+ e.value = f;
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,
1831
- formItem: p,
405
+ rowLayout: t,
406
+ formLayout: i,
407
+ getSetOptionsStatus: l,
408
+ getRowColsAlgorithm: c,
409
+ isFold: k,
410
+ getBtnColSpan: d,
411
+ formItem: g,
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 = {}) => xt(l, c, n),
420
+ getEveryFormQueryField: (l, c) => kt(l, n, c),
421
+ formatConfigOut: (l, c, B = {}, k) => Bt(l, c, B, k),
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;
1933
- if (A.size !== void 0) {
1934
- const N = St(A.size);
1935
- N !== void 0 && (A.size = N);
490
+ setup(n, e) {
491
+ var Pe, $e, Ce, he, He;
492
+ const o = Ke(), t = () => {
493
+ const m = o == null ? void 0 : o.proxy;
494
+ return (m == null ? void 0 : m.$refs) || {};
495
+ }, i = S(() => {
496
+ var T, H;
497
+ const m = o == null ? void 0 : o.proxy, v = (H = (T = m == null ? void 0 : m.$vnode) == null ? void 0 : T.data) == null ? void 0 : H.model;
498
+ return v && typeof v == "object" && typeof v.callback != "function" ? v : 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 = (m) => {
500
+ if (!m) return !0;
501
+ const v = c.permission;
502
+ return typeof v == "function" ? v(m) : !0;
503
+ }, k = (m) => m.labelKey && typeof c.t == "function" ? c.t(m.labelKey) : m.label, d = ce("getTableInstantce", null), g = S(() => {
504
+ if (d)
505
+ return typeof d == "function" ? d() : d;
506
+ const m = o == null ? void 0 : o.proxy, v = m == null ? void 0 : m.getTableInstantce;
507
+ return typeof v == "function" ? v() : v;
508
+ }), a = S(() => {
509
+ const m = g.value;
510
+ return !!(m && Object.keys(m).length);
511
+ }), f = (m) => m ? m.startsWith("el-icon-") ? m : `el-icon-${m.replace(/([a-z])([A-Z])/g, "$1-$2").replace(/[\s_]+/g, "-").toLowerCase()}` : void 0, p = (m) => {
512
+ const { icon: v, ...T } = m;
513
+ if (T.size !== void 0) {
514
+ const H = je(T.size);
515
+ H !== void 0 && (T.size = H);
1936
516
  } else
1937
- A.size = "mini";
1938
- 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 = {
517
+ T.size = "mini";
518
+ return T;
519
+ }, b = (m) => {
520
+ const v = m.disabled;
521
+ return typeof v == "function" ? !!v() : !!v;
522
+ }, y = z({}), _ = z(n.formItemList || []), { formInputComponents: L } = Dt(), j = (l == null ? void 0 : l.$httpRequest) || void 0, N = n.fieldFieldOutput || (l == null ? void 0 : l.fieldFieldOutput), { getEveryFormQueryField: M } = Nt(j), V = z(
523
+ ((He = n.layoutFormProps) == null ? void 0 : He.fromLayProps) || {}
524
+ ), W = S(() => {
525
+ const v = {
1946
526
  size: "mini",
1947
- ...U.value || {},
1948
- model: r.value,
1949
- rules: t.rules,
527
+ ...V.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
+ }, T = je(v.size);
532
+ return T !== void 0 && (v.size = T), (v.labelWidth === void 0 || v.labelWidth === "" || v.labelWidth === null) && (v.labelWidth = "auto"), v;
533
+ }), U = z(/* @__PURE__ */ new Set());
534
+ de(
535
+ () => n.formItemList,
536
+ async (m) => {
537
+ const v = Array.isArray(m) ? m : [], T = v.filter(
538
+ (F) => F && F.isInitRun !== !1 && !U.value.has(F.prop)
1959
539
  );
1960
- 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);
540
+ if (!T.length) {
541
+ _.value = v.map((F) => {
542
+ var D;
543
+ if (!F) return null;
544
+ const $ = _.value.find((X) => X && X.prop === F.prop);
545
+ return (D = $ == null ? void 0 : $.dataOptions) != null && D.length ? { ...F, dataOptions: $.dataOptions } : F;
546
+ }).filter((F) => !!F);
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 M(T, N);
550
+ T.forEach((F) => U.value.add(F.prop)), _.value = v.map((F) => {
551
+ var X;
552
+ if (!F) return null;
553
+ const $ = H.find((ee) => ee && ee.prop === F.prop), D = _.value.find((ee) => ee && ee.prop === F.prop);
554
+ return $ ? {
555
+ ...F,
556
+ dataOptions: $.listData
557
+ } : (X = D == null ? void 0 : D.dataOptions) != null && X.length ? { ...F, dataOptions: D.dataOptions } : F;
558
+ }).filter((F) => !!F);
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 v = (_.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 = v.filter(($) => !$.span).length;
568
+ let F = 6;
569
+ if (H > 0) {
570
+ const $ = v.reduce((X, ee) => X + (ee.span || 0), 0), D = 24 - ($ % 24 || ($ ? 24 : 0));
571
+ $ === 0 ? H === 1 ? F = 24 : H === 2 ? F = 12 : H === 3 ? F = 8 : F = 6 : (F = D >= H ? Math.floor(D / H) : 6, F > 12 && (F = 12), F < 4 && (F = 6));
1992
572
  }
1993
- return C.map((P) => ({ ...P, span: P.span || I }));
1994
- }), O = Wr({
1995
- layoutFormProps: t.layoutFormProps,
573
+ return v.map(($) => ({ ...$, span: $.span || F }));
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,
580
+ folded: r,
581
+ isBtnHidden: u,
582
+ rowLayout: h,
583
+ formLayout: w,
584
+ getRowColsAlgorithm: A,
2005
585
  isFold: x,
2006
- getBtnColSpan: z,
2007
- formItem: X,
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
+ (m) => {
593
+ V.value = m;
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((m) => m.direction === "right" || !m.direction),
599
+ colLeftBtn: n.configBtn.filter((m) => m.direction === "left")
600
+ })), re = S(() => typeof n.renderBtn == "function"), ne = (m) => {
601
+ var H, F;
602
+ const v = t().formRef, T = (H = g.value) == null ? void 0 : H.httpRequestInstance;
603
+ (F = m.click) == null || F.call(m, i.value, v, T);
604
+ }, _e = (m, v, T) => {
605
+ var F, $, D;
606
+ const H = g.value;
607
+ T === "query" ? a.value && ((F = H == null ? void 0 : H.httpRequestInstance) == null || F.call(H, m)) : T === "rest" && v && (a.value && (($ = H == null ? void 0 : H.httpRequestInstance) == null || $.call(H, m)), (D = v.resetFields) == null || D.call(v));
608
+ }, De = (m) => {
609
+ var T, H, F;
610
+ const v = t().formRef;
611
+ if (m.triggerEvent && ["query", "rest"].includes(m.key || ""))
612
+ _e(i.value, v, m.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
+ m.key === "rest" && v && ((T = v.resetFields) == null || T.call(v));
615
+ const $ = (H = g.value) == null ? void 0 : H.httpRequestInstance;
616
+ (F = m.click) == null || F.call(m, i.value, v, $);
2037
617
  }
2038
- }, Ft = (b) => {
2039
- if (s.value) {
2040
- const { style: C, ...A } = b;
2041
- return { style: { marginBottom: "10px", ...C || {} }, ...A };
618
+ }, qe = (m) => {
619
+ if (a.value) {
620
+ const { style: v, ...T } = m;
621
+ return { style: { marginBottom: "10px", ...v || {} }, ...T };
2042
622
  }
2043
- return b;
2044
- }, Ie = () => n().formRef, nt = () => {
2045
- const b = Ie();
2046
- return b ? new Promise((C) => {
623
+ return m;
624
+ }, fe = () => t().formRef, Ie = () => {
625
+ const m = fe();
626
+ return m ? new Promise((v) => {
2047
627
  try {
2048
- const A = b.validate((N) => {
2049
- C(!!N);
628
+ const T = m.validate((H) => {
629
+ v(!!H);
2050
630
  });
2051
- A && typeof A.then == "function" && A.then(C).catch(() => C(!1));
2052
- } catch (A) {
2053
- C(!1);
631
+ T && typeof T.then == "function" && T.then(v).catch(() => v(!1));
632
+ } catch (T) {
633
+ v(!1);
2054
634
  }
2055
635
  }) : Promise.resolve(!1);
2056
- }, ot = () => {
2057
- 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));
2067
- 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
636
+ }, Re = () => {
637
+ var m;
638
+ return (m = fe()) == null ? void 0 : m.resetFields();
639
+ }, Oe = (m) => {
640
+ var v;
641
+ return (v = fe()) == null ? void 0 : v.clearValidate(m);
642
+ }, we = (m) => {
643
+ var v;
644
+ return (v = fe()) == null ? void 0 : v.validateField(m);
645
+ }, ye = async (m) => {
646
+ const T = J.value.filter((F) => F && m.includes(F.prop));
647
+ if (!T.length) return;
648
+ (await M(T, N)).forEach((F) => {
649
+ if (!F) return;
650
+ const $ = _.value.findIndex((D) => D && D.prop === F.prop);
651
+ $ !== -1 && (_.value[$] = {
652
+ ..._.value[$],
653
+ dataOptions: F.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 Fe(() => {
658
+ y.value = t().formRef;
659
+ const m = o == null ? void 0 : o.proxy, v = m == null ? void 0 : m.bodyFormInstance;
660
+ v == null || v(y.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,
670
+ formProps: W,
671
+ rowLayout: h,
672
+ formItem: Q,
673
+ isBtnHidden: u,
2094
674
  isFold: x,
2095
- folded: u,
2096
- getBtnColSpan: z,
2097
- isRenderBtn: ge,
2098
- colRightLeftList: ve,
2099
- formInputComponents: F,
2100
- formInstance: f,
675
+ folded: r,
676
+ getBtnColSpan: E,
677
+ isRenderBtn: re,
678
+ colRightLeftList: se,
679
+ formInputComponents: L,
680
+ formInstance: y,
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: A,
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: k,
691
+ getCompIcon: f,
692
+ filterOptions: p,
693
+ resolveDisabled: b,
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 k = typeof n == "function" ? n.options : n;
711
+ return e && (k.render = e, k.staticRenderFns = o, k._compiled = !0), l && (k._scopeId = "data-v-" + l), {
712
+ exports: n,
713
+ options: k
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 k = B[0];
788
+ for (let d = 1; d < B.length; d++)
789
+ k += Gt(B[d]);
790
+ l[k] = 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,120 @@ 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, f;
849
+ const e = (f = (a = ce("$EsPlus", null)) != null ? a : me()) != null ? f : {}, o = (p, b) => {
850
+ if (!b) return !0;
851
+ const y = e.permission;
852
+ return typeof y == "function" ? y(b) : !0;
853
+ }, t = (p) => p.map((b) => {
854
+ const y = { ...b };
855
+ return o([], b.permissionValue) ? typeof b.isHide == "function" ? y.isHide = b.isHide() : y.isHide = b.isHide || !1 : y.isHide = !0, y;
856
+ }), i = S(() => t(
857
+ (n.btnConfig || []).filter((p) => nt(p) === "left")
858
+ ).filter((p) => !p.isHide)), l = S(() => t(
859
+ (n.btnConfig || []).filter((p) => nt(p) === "right")
860
+ ).filter((p) => !p.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: (p) => typeof p.disabled == "function" ? p.disabled() : p.disabled || !1,
866
+ buttonContainerStyle: (p) => ({
2287
867
  display: "inline-block",
2288
- marginLeft: v !== 0 ? "8px" : "0px"
868
+ marginLeft: p !== 0 ? "8px" : "0px"
2289
869
  }),
2290
- getCompIcon: Jn,
2291
- filterOptions: (v) => {
870
+ getCompIcon: ft,
871
+ filterOptions: (p) => {
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: b,
874
+ click: y,
875
+ icon: _,
876
+ permissionValue: L,
877
+ code: j,
878
+ isHide: N,
879
+ name: M,
880
+ size: V,
881
+ ...W
882
+ } = p;
883
+ return W;
2304
884
  },
2305
- resolveBtnSize: (v) => St(v.size) || "mini"
885
+ resolveBtnSize: (p) => je(p.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);
2336
- }, p = () => {
2337
- Xe(() => {
2338
- if (!t.value || typeof ResizeObserver == "undefined") return;
2339
- i.value = new ResizeObserver(() => {
904
+ const cn = ln.exports;
905
+ function un(n, e, o, t, i) {
906
+ const l = z(400), c = z(null), B = (f) => Math.sign(f) === -1, k = () => {
907
+ var y, _, L, j;
908
+ const f = ((y = e.value) == null ? void 0 : y.offsetHeight) || 0, p = ((L = (_ = o.value) == null ? void 0 : _.$el) == null ? void 0 : L.offsetHeight) || 0, b = ((j = t.value) == null ? void 0 : j.offsetHeight) || 0;
909
+ return Math.round(b + f + p);
910
+ }, d = () => {
911
+ var V, W, U, J, R;
912
+ const f = n.value;
913
+ if (!f) return;
914
+ const p = typeof i.tabHeight == "number" ? i.tabHeight : i.heightType === "height" ? ((V = f.parentElement) == null ? void 0 : V.offsetHeight) || f.offsetHeight : parseInt(i.tabHeight, 10) || 450, b = isNaN(p) ? 450 : p, y = b - k(), _ = B(y) ? k() + 300 : b, L = ((W = t.value) == null ? void 0 : W.offsetHeight) || 0, j = ((U = e.value) == null ? void 0 : U.offsetHeight) || 0, N = ((R = (J = o.value) == null ? void 0 : J.$el) == null ? void 0 : R.offsetHeight) || 0, M = Math.floor(_) - Math.round(L + j + N);
915
+ l.value !== M && (l.value = M);
916
+ }, g = () => {
917
+ Fe(() => {
918
+ if (!n.value || typeof ResizeObserver == "undefined") return;
919
+ c.value = new ResizeObserver(() => {
2340
920
  requestAnimationFrame(() => {
2341
- t.value && c();
921
+ n.value && d();
2342
922
  });
2343
923
  });
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);
924
+ const f = i.heightType === "height" && n.value.parentElement || n.value;
925
+ c.value.observe(f), d(), e.value && c.value.observe(e.value), t.value && c.value.observe(t.value);
2346
926
  });
2347
- }, s = () => {
2348
- i.value && (i.value.disconnect(), i.value = null);
927
+ }, a = () => {
928
+ c.value && (c.value.disconnect(), c.value = null);
2349
929
  };
2350
- return Mt(() => p()), jr(() => s()), { tableHeight: a, resizeObservers: c, startObserver: p, stopObserver: s };
930
+ return Ue(() => g()), jt(() => a()), { tableHeight: l, resizeObservers: d, startObserver: g, stopObserver: a };
2351
931
  }
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;
932
+ function dn(n) {
933
+ const e = Ft(), o = z([]), t = z({}), i = z(!1), l = () => {
934
+ o.value = [...e.multipleSelection], t.value = { ...e.selectionsByPage }, i.value = e.isInitChange;
2355
935
  };
2356
936
  return {
2357
937
  multipleSelection: o,
2358
- selectionsByPage: n,
2359
- isInitChange: r,
2360
- handleSelectionChange: (c, p) => {
2361
- e.isInitChange && t || (po(e, c, p, t), a());
938
+ selectionsByPage: t,
939
+ isInitChange: i,
940
+ handleSelectionChange: (d, g) => {
941
+ e.isInitChange && n || (Ot(e, d, g, n), l());
2362
942
  },
2363
- clearAllSelection: (c) => {
2364
- c ? fo(e, c) : (e.multipleSelection = [], e.selectionsByPage = {}), a();
943
+ clearAllSelection: (d) => {
944
+ d ? Rt(e, d) : (e.multipleSelection = [], e.selectionsByPage = {}), l();
2365
945
  },
2366
- initSelection: (c, p) => {
2367
- if (e.isInitChange = !0, a(), !p) {
2368
- e.isInitChange = !1, a();
946
+ initSelection: (d, g) => {
947
+ if (e.isInitChange = !0, l(), !g) {
948
+ e.isInitChange = !1, l();
2369
949
  return;
2370
950
  }
2371
- Xe(t ? () => {
2372
- uo(e, c, p, t), e.isInitChange = !1, a();
951
+ Fe(n ? () => {
952
+ It(e, d, g, n), e.isInitChange = !1, l();
2373
953
  } : () => {
2374
- var s;
2375
- (s = p.clearSelection) == null || s.call(p), e.isInitChange = !1, a();
954
+ var a;
955
+ (a = g.clearSelection) == null || a.call(g), e.isInitChange = !1, l();
2376
956
  });
2377
957
  }
2378
958
  };
2379
959
  }
2380
- const pn = {
960
+ const rt = {
2381
961
  multiSelect: !1,
2382
962
  expand: !1,
2383
963
  snIndex: !1,
@@ -2387,7 +967,7 @@ const pn = {
2387
967
  headerCellStyle: { background: "#f5f7fa" },
2388
968
  highlightCurrentRow: !0,
2389
969
  cachePageSelection: !0
2390
- }, gi = /* @__PURE__ */ new Set([
970
+ }, fn = /* @__PURE__ */ new Set([
2391
971
  "multiSelect",
2392
972
  "expand",
2393
973
  "snIndex",
@@ -2411,24 +991,24 @@ const pn = {
2411
991
  "estimatedRowHeight",
2412
992
  "overscanCount",
2413
993
  "rowClassName"
2414
- ]), mi = (t) => t.toLowerCase().replace(/(\s|^)[a-z]/g, (e) => e.toUpperCase()), yi = (t) => {
994
+ ]), pn = (n) => n.toLowerCase().replace(/(\s|^)[a-z]/g, (e) => e.toUpperCase()), mn = (n) => {
2415
995
  const e = {};
2416
- for (const o in t)
996
+ for (const o in n)
2417
997
  if (!(o === "groups" || o === "scopedSlots" || o === "render"))
2418
998
  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];
999
+ const t = o.split("-");
1000
+ let i = t[0];
1001
+ for (let l = 1; l < t.length; l++)
1002
+ i += pn(t[l]);
1003
+ e[i] = n[o];
1004
+ } else o === "key" && (e.prop = n[o]), e[o] = n[o];
2425
1005
  return e.align || (e.align = "center"), e;
2426
- }, vn = (t) => {
1006
+ }, at = (n) => {
2427
1007
  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({
1008
+ return pe(n) ? Object.keys(n).every((o) => e.find((t) => t === o) && n[o] && typeof n[o] == "string") : !1;
1009
+ }, gn = ie({
2430
1010
  name: "EsTable",
2431
- components: { ColumnItem: ai, TableBtns: di },
1011
+ components: { ColumnItem: nn, TableBtns: cn },
2432
1012
  // 关闭自动 attrs 继承,避免 fallthrough 重复绑定
2433
1013
  inheritAttrs: !1,
2434
1014
  props: {
@@ -2448,7 +1028,7 @@ const pn = {
2448
1028
  },
2449
1029
  options: {
2450
1030
  type: Object,
2451
- default: () => ({ ...pn })
1031
+ default: () => ({ ...rt })
2452
1032
  },
2453
1033
  pagination: {
2454
1034
  type: Object,
@@ -2462,55 +1042,55 @@ const pn = {
2462
1042
  "size-change",
2463
1043
  "change-table-sort"
2464
1044
  ],
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(
1045
+ setup(n, { emit: e, slots: o, attrs: t, expose: i }) {
1046
+ var Qe, Je, Ze, Ge;
1047
+ const l = Ke(), c = (Je = (Qe = ce(
2468
1048
  "$esPlusTable",
2469
1049
  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;
1050
+ )) != null ? Qe : me().EsTable) != null ? Je : {}, B = (Ge = (Ze = ce("$EsPlus", null)) != null ? Ze : me()) != null ? Ge : {}, k = (s) => {
1051
+ if (!s) return !0;
1052
+ const O = B.permission;
1053
+ return typeof O == "function" ? O(s) : !0;
2474
1054
  };
2475
- (t.options.virtual === !0 || t.options.engine === "virtual") && console.warn(
1055
+ (n.options.virtual === !0 || n.options.engine === "virtual") && console.warn(
2476
1056
  "[@es-plus/vue2] 虚拟滚动 (virtual: true) 在 Vue 2 + Element UI 下不可用,已降级为普通 el-table 渲染。如需虚拟滚动请使用 Vue 3 + Element Plus 版本(@es-plus/vue3)。"
2477
1057
  );
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];
1058
+ const d = z(null), g = z(null), a = z(null), f = z(null), p = z(null), b = z(`table_${Math.random().toString(36).substring(2, 12)}`), y = z([]), _ = S(() => y.value && y.value.length ? y.value : n.dataSource), L = z([...n.columns]);
1059
+ de(
1060
+ () => n.columns,
1061
+ (s) => {
1062
+ L.value = [...s];
2483
1063
  },
2484
1064
  { deep: !0 }
2485
1065
  );
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({
1066
+ const j = z(!1), N = z(!1), M = z(!1), V = () => {
1067
+ const s = l == null ? void 0 : l.proxy;
1068
+ !s || !s.$refs || (p.value = s.$refs.tableContainerEl || null, a.value = s.$refs.headBarRef || null, f.value = s.$refs.paginationRef || null);
1069
+ }, W = ce("bodyFormInstance", () => {
1070
+ }), U = ce("getVisibleShow", !1), J = S(
1071
+ () => typeof U == "function" ? U() : U
1072
+ ), R = z({
2493
1073
  pageSize: 10,
2494
1074
  current: 1,
2495
1075
  total: 0,
2496
1076
  pageSizes: [],
2497
1077
  size: "small",
2498
1078
  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({
1079
+ ...n.pagination
1080
+ }), r = z(null), u = S(() => {
1081
+ const s = n.options.entryQuery;
1082
+ return s && pe(s) && Object.keys(s).length ? s : {};
1083
+ }), h = S(() => {
1084
+ if (n.options.configTableOut && pe(n.options.configTableOut) && Object.keys(n.options.configTableOut).length && at(n.options.configTableOut))
1085
+ return n.options.configTableOut;
1086
+ if (c != null && c.configQueryFieldOutput && typeof c.configQueryFieldOutput == "function") {
1087
+ const s = c.configQueryFieldOutput({
2508
1088
  total: "records",
2509
1089
  pageSize: "pageSize",
2510
1090
  current: "pageNo",
2511
1091
  tableData: "rows"
2512
1092
  });
2513
- if (vn(d)) return d;
1093
+ if (at(s)) return s;
2514
1094
  }
2515
1095
  return {
2516
1096
  total: "records",
@@ -2518,394 +1098,394 @@ const pn = {
2518
1098
  current: "pageNo",
2519
1099
  tableData: "rows"
2520
1100
  };
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";
1101
+ }), w = S(() => {
1102
+ const s = l == null ? void 0 : l.proxy;
1103
+ if (!s || !s.$children) return {};
1104
+ const O = s.$children.find((C) => {
1105
+ var I;
1106
+ return ((I = C == null ? void 0 : C.$options) == null ? void 0 : I.name) === "EsForm";
2527
1107
  });
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;
1108
+ return O ? (r.value = O, W(O), O) : {};
1109
+ }), A = S(() => {
1110
+ const s = o.default;
1111
+ if (typeof s == "function") {
1112
+ const C = s();
1113
+ return Array.isArray(C) ? C.length > 0 : !!C;
2534
1114
  }
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(
1115
+ const O = o.default;
1116
+ return Array.isArray(O) && O.length > 0;
1117
+ }), x = S(
1118
+ () => n.options.heightType || "auto"
1119
+ ), E = S(() => typeof n.options.tabHeight == "number" ? `${n.options.tabHeight}px` : x.value === "height" && typeof n.options.height == "number" ? `${n.options.height}px` : "100%"), Q = S(() => ({
1120
+ [x.value]: E.value
1121
+ })), q = S(() => n.headBarClass ? {
1122
+ type: typeof n.headBarClass == "string" ? "string" : "object",
1123
+ value: n.headBarClass
1124
+ } : { type: "string", value: "" }), se = S(() => {
1125
+ const s = q.value;
1126
+ return s.type === "object" && s.value && typeof s.value == "object" ? s.value : {};
1127
+ }), re = S(() => {
1128
+ const s = q.value;
1129
+ return s.type === "string" ? s.value : "";
1130
+ }), ne = S(() => {
1131
+ const s = c == null ? void 0 : c.paginationLayout;
1132
+ return s ? typeof s == "function" ? s() : s : null;
1133
+ }), _e = S(
2554
1134
  () => {
2555
- var d;
2556
- return ((d = le.value) == null ? void 0 : d.layout) || "prev, pager, next, jumper, sizes, ->, total";
1135
+ var s;
1136
+ return ((s = ne.value) == null ? void 0 : s.layout) || "prev, pager, next, jumper, sizes, ->, total";
2557
1137
  }
2558
- ), It = E(
1138
+ ), De = S(
2559
1139
  () => {
2560
- var d;
2561
- return ((d = le.value) == null ? void 0 : d.pageSizes) || O.value.pageSizes;
1140
+ var s;
1141
+ return ((s = ne.value) == null ? void 0 : s.pageSizes) || R.value.pageSizes;
2562
1142
  }
2563
- ), Ft = E(
1143
+ ), qe = S(
2564
1144
  () => {
2565
- var d, B;
2566
- return (B = (d = le.value) == null ? void 0 : d.isSmall) != null ? B : O.value.isSmall;
1145
+ var s, O;
1146
+ return (O = (s = ne.value) == null ? void 0 : s.isSmall) != null ? O : R.value.isSmall;
2567
1147
  }
2568
- ), Ie = E(
1148
+ ), fe = S(
2569
1149
  () => {
2570
- var d, B;
2571
- return (B = (d = le.value) == null ? void 0 : d.background) != null ? B : !0;
1150
+ var s, O;
1151
+ return (O = (s = ne.value) == null ? void 0 : s.background) != null ? O : !0;
2572
1152
  }
2573
- ), nt = E(
1153
+ ), Ie = S(
2574
1154
  () => {
2575
- var d;
2576
- return ((d = le.value) == null ? void 0 : d.prevText) || "";
1155
+ var s;
1156
+ return ((s = ne.value) == null ? void 0 : s.prevText) || "";
2577
1157
  }
2578
- ), ot = E(
1158
+ ), Re = S(
2579
1159
  () => {
2580
- var d;
2581
- return ((d = le.value) == null ? void 0 : d.nextText) || "";
1160
+ var s;
1161
+ return ((s = ne.value) == null ? void 0 : s.nextText) || "";
2582
1162
  }
2583
- ), rt = E(() => ({
1163
+ ), Oe = S(() => ({
2584
1164
  position: x.value === "height" ? "absolute" : "static",
2585
1165
  bottom: "0px",
2586
1166
  left: "0px",
2587
1167
  // z-index 必须高于 element-loading 蒙层(默认 2000),否则请求加载过程中分页会被蒙层遮挡。
2588
1168
  zIndex: 2001,
2589
1169
  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) => (
1170
+ })), we = S(() => n.options.loading || j.value), ye = S(
1171
+ () => !!n.options.actionUrl || n.options.apiParams && pe(n.options.apiParams) && Object.keys(n.options.apiParams).length > 0
1172
+ ), Pe = S(() => {
1173
+ const s = L.value.filter((C) => !C.hidCol);
1174
+ if (s.forEach((C) => {
1175
+ C.prop !== "operate" && C.key !== "operate" && (C.prop || C.key) && !C.formatter && (C.formatter = (P) => {
1176
+ const I = P[C.prop] || P[C.key];
1177
+ return I == null || I === "" ? C.emptyPlaceholder || "-" : I;
1178
+ }), (C.prop === "operate" || C.key === "operate") && C.btns && !C.render && (C.render = (P, { row: I }) => {
1179
+ var ae;
1180
+ return ue("div", [
1181
+ (ae = C.btns) == null ? void 0 : ae.filter((Z) => k(Z.permissionValue)).map(
1182
+ (Z) => (
2603
1183
  // Element UI text 按钮:type="text" 而非 text 属性
2604
- Ce(
1184
+ ue(
2605
1185
  "el-button",
2606
1186
  {
2607
1187
  props: {
2608
1188
  type: "text"
2609
1189
  },
2610
1190
  attrs: {
2611
- ...ee.type ? { "data-btn-type": ee.type } : {}
1191
+ ...Z.type ? { "data-btn-type": Z.type } : {}
2612
1192
  },
2613
1193
  on: {
2614
1194
  click: () => {
2615
- var ye;
2616
- return (ye = ee.clickEvent) == null ? void 0 : ye.call(ee, R);
1195
+ var le;
1196
+ return (le = Z.clickEvent) == null ? void 0 : le.call(Z, I);
2617
1197
  }
2618
1198
  }
2619
1199
  },
2620
- ee.name
1200
+ Z.name
2621
1201
  )
2622
1202
  )
2623
1203
  )
2624
1204
  ]);
2625
1205
  });
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 = $;
1206
+ }), s.length > 0 && s.every((C) => C.width && !C.minWidth)) {
1207
+ let C = -1;
1208
+ for (let P = s.length - 1; P >= 0; P--) {
1209
+ const I = s[P];
1210
+ if (!I.fixed && I.prop !== "operate" && I.key !== "operate") {
1211
+ C = P;
2632
1212
  break;
2633
1213
  }
2634
1214
  }
2635
- if (w === -1 && (w = d.length - 1), w >= 0) {
2636
- const $ = d[w];
2637
- $.minWidth = $.width, delete $.width;
1215
+ if (C === -1 && (C = s.length - 1), C >= 0) {
1216
+ const P = s[C];
1217
+ P.minWidth = P.width, delete P.width;
2638
1218
  }
2639
1219
  }
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);
1220
+ return s;
1221
+ }), $e = S(() => {
1222
+ const s = mn({ ...rt, ...n.options }), { align: O, ...C } = s, P = {};
1223
+ for (const I in C)
1224
+ fn.has(I) || (P[I] = C[I]);
1225
+ if (P.size !== void 0) {
1226
+ const I = je(P.size);
1227
+ I !== void 0 && (P.size = I);
2648
1228
  }
2649
- return $;
2650
- }), { tableHeight: Ue, resizeObservers: Ae } = pi(
2651
- v,
2652
- s,
1229
+ return P;
1230
+ }), { tableHeight: Ce, resizeObservers: he } = un(
2653
1231
  p,
2654
- m,
1232
+ a,
1233
+ g,
1234
+ f,
2655
1235
  {
2656
1236
  heightType: x.value,
2657
- tabHeight: t.options.tabHeight
1237
+ tabHeight: n.options.tabHeight
2658
1238
  }
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;
1239
+ ), He = S(() => {
1240
+ const s = { ...$e.value, ...t };
1241
+ return n.options.rowkey && (s.rowKey = n.options.rowkey), x.value === "height" ? s.height = Ce.value : x.value === "maxHeight" && (s.maxHeight = Ce.value), s;
2662
1242
  }), {
2663
- multipleSelection: b,
2664
- handleSelectionChange: C,
2665
- initSelection: A,
2666
- clearAllSelection: N
2667
- } = vi(t.options.rowkey), I = (d) => {
2668
- C(d, O.value.current || 1);
1243
+ multipleSelection: m,
1244
+ handleSelectionChange: v,
1245
+ initSelection: T,
1246
+ clearAllSelection: H
1247
+ } = dn(n.options.rowkey), F = (s) => {
1248
+ v(s, R.value.current || 1);
2669
1249
  };
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));
1250
+ de(J, async (s, O) => {
1251
+ var C, P;
1252
+ s && s !== O && (n.options.actionUrl && await Te(), (P = (C = d.value) == null ? void 0 : C.doLayout) == null || P.call(C));
2673
1253
  });
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);
1254
+ let $ = JSON.stringify(n.pagination || {});
1255
+ n.pagination && Object.keys(n.pagination).length && (R.value = { ...R.value, ...n.pagination }, M.value = n.pagination.total !== void 0);
1256
+ const D = () => {
1257
+ const s = { ...R.value };
1258
+ $ = JSON.stringify(s), e("update:pagination", s);
2679
1259
  };
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);
1260
+ de(
1261
+ () => n.pagination,
1262
+ (s) => {
1263
+ const O = JSON.stringify(s || {});
1264
+ O !== $ && ($ = O, R.value = { ...R.value, ...s }, M.value = s.total !== void 0);
2685
1265
  }
2686
- ), we(
2687
- () => t.dataSource,
2688
- (d) => {
2689
- A(d, c.value);
1266
+ ), de(
1267
+ () => n.dataSource,
1268
+ (s) => {
1269
+ T(s, d.value);
2690
1270
  }
2691
1271
  );
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();
1272
+ let X = null;
1273
+ de(y, (s) => {
1274
+ Array.isArray(s) && s !== X && (X = s, e("update:dataSource", s));
1275
+ }), Ue(() => {
1276
+ V(), ye.value && n.options.isInitRun !== !1 && Te(), Fe(() => {
1277
+ V(), w.value, typeof requestAnimationFrame != "undefined" ? requestAnimationFrame(() => {
1278
+ V(), he();
1279
+ }) : he();
2700
1280
  });
2701
1281
  });
2702
- const ae = (d, B) => {
2703
- const w = [
1282
+ const ee = (s, O) => {
1283
+ const C = [
2704
1284
  { eventName: "brcb", isReturn: !0 },
2705
1285
  { 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, ...$ });
1286
+ ], P = C.findIndex((I) => I.eventName === s);
1287
+ if (n.options.listenToCallBack && n.options.listenToCallBack[s] && P !== -1 && C[P].isReturn)
1288
+ return n.options.listenToCallBack[s](O);
1289
+ }, Ne = (s, O) => {
1290
+ const C = h.value;
1291
+ if (pe(C) && Object.keys(C).length) {
1292
+ const P = {};
1293
+ Object.entries(C).forEach(([I, ae]) => {
1294
+ var Se;
1295
+ if (!O.includes(I)) return;
1296
+ const le = (Se = s[ae]) != null ? Se : wt(s, ae);
1297
+ I === "tableData" ? y.value = Array.isArray(le) ? le : [] : P[I] = typeof le == "number" ? le : parseInt(le, 10) || 0;
1298
+ }), Object.keys(P).length && (R.value = { ...R.value, ...P });
2719
1299
  }
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;
1300
+ }, Me = (s, O = {}) => {
1301
+ var et, tt;
1302
+ 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 || "";
1303
+ if (!ae || !Object.keys(I).length) return;
1304
+ const Z = w.value, le = Z && Z.props && Z.props.model ? { ...Z.props.model } : u.value || {}, Se = ee("brcb", {
1305
+ ...le,
1306
+ ...s,
1307
+ ...I.model || {}
1308
+ }), vt = pe(Se) ? Se : { ...le, ...I.model || {}, ...s }, Ye = { ...I.options || {} };
1309
+ I != null && I.method && (Ye.method = I == null ? void 0 : I.method);
1310
+ const Xe = async (bt) => {
1311
+ if (!j.value) {
1312
+ j.value = !0;
2733
1313
  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);
1314
+ const ve = await bt({
1315
+ url: ae,
1316
+ formParams: vt,
1317
+ headers: I.headers || {},
1318
+ ...Ye,
1319
+ ...s
1320
+ }), _t = ee("qrcb", ve) || ve;
1321
+ pe(ve) && Object.keys(ve).length && typeof C == "function" && C(_t);
1322
+ } catch (ve) {
1323
+ typeof P == "function" && P(ve);
2744
1324
  } finally {
2745
- H.value = !1;
1325
+ j.value = !1;
2746
1326
  }
2747
1327
  }
2748
1328
  };
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(
1329
+ n.options.httpRequest ? Xe(n.options.httpRequest) : c.$httpRequest && Xe(c.$httpRequest);
1330
+ }, Te = (s) => new Promise((O, C) => {
1331
+ R.value = { ...R.value, current: 1 }, Me(
2752
1332
  {
2753
- ...d || {},
2754
- pageIndex: O.value.current,
2755
- pageSize: O.value.pageSize
1333
+ ...s || {},
1334
+ pageIndex: R.value.current,
1335
+ pageSize: R.value.pageSize
2756
1336
  },
2757
1337
  {
2758
- success: ($) => {
2759
- Rt($, ["total", "tableData"]), Object.keys(t.pagination).length && j(), B($);
1338
+ success: (P) => {
1339
+ Ne(P, ["total", "tableData"]), Object.keys(n.pagination).length && D(), O(P);
2760
1340
  },
2761
- fail: ($) => {
2762
- w($);
1341
+ fail: (P) => {
1342
+ C(P);
2763
1343
  }
2764
1344
  }
2765
1345
  );
2766
- }), Gn = () => {
2767
- Bt(
1346
+ }), pt = () => {
1347
+ Me(
2768
1348
  {
2769
- pageIndex: O.value.current,
2770
- pageSize: O.value.pageSize
1349
+ pageIndex: R.value.current,
1350
+ pageSize: R.value.pageSize
2771
1351
  },
2772
1352
  {
2773
- success: (d) => {
2774
- Rt(d, ["total", "tableData"]), j(), e("pagination-current-change", O.value);
1353
+ success: (s) => {
1354
+ Ne(s, ["total", "tableData"]), D(), e("pagination-current-change", R.value);
2775
1355
  }
2776
1356
  }
2777
1357
  );
2778
- }, Yn = () => {
2779
- Bt(
1358
+ }, mt = () => {
1359
+ Me(
2780
1360
  {
2781
- pageIndex: O.value.current,
2782
- pageSize: O.value.pageSize
1361
+ pageIndex: R.value.current,
1362
+ pageSize: R.value.pageSize
2783
1363
  },
2784
1364
  {
2785
- success: (d) => {
2786
- Rt(d, ["total", "tableData"]), j();
1365
+ success: (s) => {
1366
+ Ne(s, ["total", "tableData"]), D();
2787
1367
  }
2788
1368
  }
2789
1369
  );
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);
1370
+ }, gt = (s) => {
1371
+ R.value = { ...R.value, pageSize: s, current: 1 }, ye.value ? mt() : (D(), e("size-change", R.value, s));
1372
+ }, yt = (s) => {
1373
+ R.value = { ...R.value, current: s }, ye.value ? pt() : (D(), e("pagination-current-change", R.value));
1374
+ }, ht = (s) => {
1375
+ e("change-table-sort", s);
2796
1376
  };
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);
1377
+ dt("getTableInstantce", () => ({
1378
+ tableRef: d,
1379
+ toggleSelection: (s) => {
1380
+ var O, C;
1381
+ s ? s.forEach((P) => {
1382
+ var I, ae;
1383
+ (ae = (I = d.value) == null ? void 0 : I.toggleRowSelection) == null || ae.call(I, P);
1384
+ }) : (C = (O = d.value) == null ? void 0 : O.clearSelection) == null || C.call(O);
2805
1385
  },
2806
- clearAllSelection: () => N(c.value),
2807
- refsInstance: () => c.value,
2808
- httpRequestInstance: ct
1386
+ clearAllSelection: () => H(d.value),
1387
+ refsInstance: () => d.value,
1388
+ httpRequestInstance: Te
2809
1389
  }));
2810
- const Wt = {
2811
- httpRequestInstance: ct,
2812
- getSelectionRows: () => b.value,
1390
+ const We = {
1391
+ httpRequestInstance: Te,
1392
+ getSelectionRows: () => m.value,
2813
1393
  clearSelection: () => {
2814
- var d, B;
2815
- return (B = (d = c.value) == null ? void 0 : d.clearSelection) == null ? void 0 : B.call(d);
1394
+ var s, O;
1395
+ return (O = (s = d.value) == null ? void 0 : s.clearSelection) == null ? void 0 : O.call(s);
2816
1396
  },
2817
- clearAllSelection: () => N(c.value),
1397
+ clearAllSelection: () => H(d.value),
2818
1398
  refresh: () => {
2819
- var d, B;
2820
- return (B = (d = c.value) == null ? void 0 : d.doLayout) == null ? void 0 : B.call(d);
1399
+ var s, O;
1400
+ return (O = (s = d.value) == null ? void 0 : s.doLayout) == null ? void 0 : O.call(s);
2821
1401
  },
2822
1402
  // virtual 滚动占位(保持 API 一致,Vue 2 版本无效)
2823
- scrollToRow: (d) => {
1403
+ scrollToRow: (s) => {
2824
1404
  }
2825
1405
  };
2826
- return typeof r == "function" && r(Wt), {
1406
+ return typeof i == "function" && i(We), {
2827
1407
  // refs
2828
- tableRef: c,
2829
- tbBtnRef: p,
2830
- headBarRef: s,
2831
- paginationRef: m,
2832
- tableId: h,
2833
- tableData: f,
2834
- effectiveDataSource: S,
1408
+ tableRef: d,
1409
+ tbBtnRef: g,
1410
+ headBarRef: a,
1411
+ paginationRef: f,
1412
+ tableId: b,
1413
+ tableData: y,
1414
+ effectiveDataSource: _,
2835
1415
  // state
2836
- loadStatus: it,
2837
- paginationConfig: O,
2838
- formInstance: u,
1416
+ loadStatus: we,
1417
+ paginationConfig: R,
1418
+ formInstance: r,
2839
1419
  // computeds
2840
- filteredColumns: at,
2841
- tableBindAttrs: lt,
2842
- hasDefaultSlot: T,
1420
+ filteredColumns: Pe,
1421
+ tableBindAttrs: He,
1422
+ hasDefaultSlot: A,
2843
1423
  heightType: x,
2844
- tabHeight: z,
1424
+ tabHeight: E,
2845
1425
  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,
1426
+ slotStyleValue: se,
1427
+ slotClassValue: re,
1428
+ slotState: N,
1429
+ showPagination: M,
1430
+ containerStyle: Q,
1431
+ paginationStyle: Oe,
1432
+ layout: _e,
1433
+ paginationPageSizes: De,
1434
+ paginationIsSmall: qe,
1435
+ paginationBackground: fe,
1436
+ paginationPrevText: Ie,
1437
+ paginationNextText: Re,
2858
1438
  // handlers
2859
- handleTableSelectionChange: I,
2860
- changeTableSort: eo,
2861
- handleSizeChange: Zn,
2862
- handleIndexChange: Xn,
1439
+ handleTableSelectionChange: F,
1440
+ changeTableSort: ht,
1441
+ handleSizeChange: gt,
1442
+ handleIndexChange: yt,
2863
1443
  // exposed methods (also accessible via $refs.tableRef.xxx in Vue 2)
2864
- ...Wt,
2865
- instance: a,
2866
- resizeObservers: Ae
1444
+ ...We,
1445
+ instance: l,
1446
+ resizeObservers: he
2867
1447
  };
2868
1448
  }
2869
1449
  });
2870
- var bi = function() {
1450
+ var yn = function() {
2871
1451
  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() {
1452
+ 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
1453
  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 }) {
1454
+ }, proxy: !0 }]) }, "el-table", e.tableBindAttrs, !1), e.$listeners), e._l(e.filteredColumns, function(t, i) {
1455
+ 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
1456
  return [e._t(
2877
- n.scopedSlots.customRender,
1457
+ t.scopedSlots.customRender,
2878
1458
  null,
2879
- { scope: a },
2880
- Object.assign({}, n, {
2881
- columnIndex: r,
2882
- row: a.row,
2883
- column: a.column
1459
+ { scope: l },
1460
+ Object.assign({}, t, {
1461
+ columnIndex: i,
1462
+ row: l.row,
1463
+ column: l.column
2884
1464
  })
2885
1465
  )];
2886
1466
  } } : 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);
1467
+ }), 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) {
1468
+ return e.$set(e.paginationConfig, "pageSize", t);
1469
+ }, "update:page-size": function(t) {
1470
+ return e.$set(e.paginationConfig, "pageSize", t);
1471
+ }, "update:currentPage": function(t) {
1472
+ return e.$set(e.paginationConfig, "current", t);
1473
+ }, "update:current-page": function(t) {
1474
+ return e.$set(e.paginationConfig, "current", t);
2895
1475
  }, "size-change": e.handleSizeChange, "current-change": e.handleIndexChange } })], 1) : e._e()])]);
2896
- }, _i = [], Si = /* @__PURE__ */ Ne(
2897
- hi,
2898
- bi,
2899
- _i,
1476
+ }, hn = [], vn = /* @__PURE__ */ ge(
1477
+ gn,
1478
+ yn,
1479
+ hn,
2900
1480
  !1,
2901
1481
  null,
2902
- "8e292dd6"
1482
+ "63718c59"
2903
1483
  );
2904
- const Ye = Si.exports;
2905
- Ye.install = function(t) {
2906
- t.component(Ye.name || "EsTable", Ye);
1484
+ const ke = vn.exports;
1485
+ ke.install = function(n) {
1486
+ n.component(ke.name || "EsTable", ke);
2907
1487
  };
2908
- const Ci = be({
1488
+ const bn = ie({
2909
1489
  name: "RenderJsx",
2910
1490
  props: {
2911
1491
  refs: { type: [Function, Object], default: null },
@@ -2916,44 +1496,44 @@ const Ci = be({
2916
1496
  instance: { type: Object, default: () => ({}) },
2917
1497
  components: { type: Object, default: () => ({}) }
2918
1498
  },
2919
- setup(t) {
2920
- const e = t.refs && typeof t.refs == "object" ? t.refs : _t({});
1499
+ setup(n) {
1500
+ const e = n.refs && typeof n.refs == "object" ? n.refs : ze({});
2921
1501
  let o = null;
2922
- function n() {
1502
+ function t() {
2923
1503
  if (!o) return;
2924
- const r = o.componentInstance;
2925
- r && (e.currentRef = r);
1504
+ const i = o.componentInstance;
1505
+ i && (e.currentRef = i);
2926
1506
  }
2927
- return Mt(() => n()), Mr(() => n()), () => {
2928
- const { instance: r } = t, a = {
2929
- ...r,
2930
- registerRef: (y, c) => {
2931
- c != null && (e[y] = c);
1507
+ return Ue(() => t()), Et(() => t()), () => {
1508
+ const { instance: i } = n, l = {
1509
+ ...i,
1510
+ registerRef: (k, d) => {
1511
+ d != null && (e[k] = d);
2932
1512
  },
2933
1513
  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(
1514
+ }, c = n.render, B = c && typeof c == "function" ? c(ue, l, n.components || {}) : "";
1515
+ return typeof B == "string" || typeof B == "number" ? (o = null, ue(
2936
1516
  "span",
2937
1517
  {
2938
1518
  ref: "currentRef"
2939
1519
  // Vue 2 的函数式 ref 通过 v-bind 不可直接传,用以下方式赋值
2940
1520
  },
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 || "")]));
1521
+ [String(B)]
1522
+ )) : B && typeof B == "object" && "tag" in B ? B.componentOptions ? (o = B, B) : (o = null, ue("div", [B])) : (o = null, ue("div", [String(B || "")]));
2943
1523
  };
2944
1524
  }
2945
- }), Oi = null, wi = null;
2946
- var Ei = /* @__PURE__ */ Ne(
2947
- Ci,
2948
- Oi,
2949
- wi,
1525
+ }), _n = null, Cn = null;
1526
+ var Sn = /* @__PURE__ */ ge(
1527
+ bn,
1528
+ _n,
1529
+ Cn,
2950
1530
  !1,
2951
1531
  null,
2952
1532
  null
2953
1533
  );
2954
- const xi = Ei.exports, Ii = be({
1534
+ const Bn = Sn.exports, kn = ie({
2955
1535
  name: "EsDialog",
2956
- components: { RenderJsx: xi },
1536
+ components: { RenderJsx: Bn },
2957
1537
  inheritAttrs: !1,
2958
1538
  props: {
2959
1539
  title: { type: String, default: "" },
@@ -2981,185 +1561,185 @@ const xi = Ei.exports, Ii = be({
2981
1561
  components: { type: Object, default: () => ({}) }
2982
1562
  },
2983
1563
  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) => {
1564
+ setup(n, { emit: e, attrs: o, slots: t, expose: i }) {
1565
+ var w, A;
1566
+ const l = Ke(), c = z(null), B = ze({}), k = z(!1), d = l, g = (A = (w = ce("$EsPlus", null)) != null ? w : me()) != null ? A : {}, a = (x) => {
2987
1567
  if (!x) return !0;
2988
- const z = p.permission;
2989
- return typeof z == "function" ? z(x) : !0;
2990
- }, m = (x) => {
1568
+ const E = g.permission;
1569
+ return typeof E == "function" ? E(x) : !0;
1570
+ }, f = (x) => {
2991
1571
  const {
2992
- icon: z,
2993
- click: X,
1572
+ icon: E,
1573
+ click: Q,
2994
1574
  permissionValue: q,
2995
- name: ve,
2996
- disabled: ge,
2997
- key: le,
2998
- ...We
1575
+ name: se,
1576
+ disabled: re,
1577
+ key: ne,
1578
+ ..._e
2999
1579
  } = x;
3000
- return We;
3001
- }, v = (x) => {
3002
- const z = x.disabled;
3003
- return typeof z == "function" ? z() : !!z;
3004
- }, h = () => {
1580
+ return _e;
1581
+ }, p = (x) => {
1582
+ const E = x.disabled;
1583
+ return typeof E == "function" ? E() : !!E;
1584
+ }, b = () => {
3005
1585
  setTimeout(() => {
3006
- y.value && (y.value = !1);
1586
+ k.value && (k.value = !1);
3007
1587
  }, 500);
3008
- }, f = () => {
3009
- o != null && o.fullscreen || (y.value = !y.value);
3010
- }, S = E({
3011
- get: () => t.visible || !1,
1588
+ }, y = () => {
1589
+ o != null && o.fullscreen || (k.value = !k.value);
1590
+ }, _ = S({
1591
+ get: () => n.visible || !1,
3012
1592
  set: (x) => {
3013
- e("update:visible", x), x || (e("closed", x), h());
1593
+ e("update:visible", x), x || (e("closed", x), b());
3014
1594
  }
3015
- }), F = () => {
3016
- S.value = !1, e("closed", !1), h();
3017
- }, H = () => {
3018
- e("closed", !1), h();
3019
- }, M = () => {
3020
- }, W = (x) => {
1595
+ }), L = () => {
1596
+ _.value = !1, e("closed", !1), b();
1597
+ }, j = () => {
1598
+ e("closed", !1), b();
1599
+ }, N = () => {
1600
+ }, M = (x) => {
3021
1601
  x();
3022
- }, U = E(() => ({ ...o })), J = E(() => y.value ? "dialogFull" : t.maxHeight ? "dialogShadow" : "dialogAuto"), K = () => {
1602
+ }, V = S(() => ({ ...o })), W = S(() => k.value ? "dialogFull" : n.maxHeight ? "dialogShadow" : "dialogAuto"), U = () => {
3023
1603
  const x = typeof window != "undefined" ? window.innerHeight : 800;
3024
1604
  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
1605
+ }, J = S(() => {
1606
+ const x = U();
1607
+ return k.value ? { height: x + "px" } : n.maxHeight ? {
1608
+ maxHeight: typeof n.maxHeight == "number" ? `${n.maxHeight}px` : n.maxHeight
3029
1609
  } : { 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
1610
+ }), R = S(() => ({
1611
+ renderBodyRefs: B.currentRef,
1612
+ renderBodyRefsObject: B,
1613
+ lyFormInstance: c,
1614
+ dialogInstance: d,
1615
+ getRefs: () => B
1616
+ })), r = (x) => {
1617
+ const E = x.click;
1618
+ typeof E == "function" && E(B.currentRef, {
1619
+ close: L,
1620
+ getRefs: (Q) => Q ? B[Q] || null : B,
1621
+ dialogInstance: d
3042
1622
  });
3043
1623
  };
3044
- Qn("bodyFormInstance", (x) => {
3045
- i.value = x;
1624
+ dt("bodyFormInstance", (x) => {
1625
+ c.value = x;
3046
1626
  });
3047
- const g = E(() => ({
3048
- ...t.components
3049
- })), _ = {
3050
- closed: F
1627
+ const u = S(() => ({
1628
+ ...n.components
1629
+ })), h = {
1630
+ closed: L
3051
1631
  };
3052
- return typeof r == "function" && r(_), {
1632
+ return typeof i == "function" && i(h), {
3053
1633
  // state
3054
- dialogVisible: S,
3055
- isFullscreen: y,
3056
- lyFormInstance: i,
3057
- renderBodyRefsObject: l,
1634
+ dialogVisible: _,
1635
+ isFullscreen: k,
1636
+ lyFormInstance: c,
1637
+ renderBodyRefsObject: B,
3058
1638
  // computeds
3059
- filteredAttrs: U,
3060
- initDialogCls: J,
3061
- initDialogHeight: Q,
3062
- getCurrentInstanceModel: O,
3063
- dialogComponents: g,
1639
+ filteredAttrs: V,
1640
+ initDialogCls: W,
1641
+ initDialogHeight: J,
1642
+ getCurrentInstanceModel: R,
1643
+ dialogComponents: u,
3064
1644
  // 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,
1645
+ handleClose: L,
1646
+ handleFullscreen: y,
1647
+ handleBtnClick: r,
1648
+ onDialogClose: j,
1649
+ onDialogClosed: N,
1650
+ beforeCloseHandler: M,
1651
+ checkPermission: a,
1652
+ filterOptions: f,
1653
+ getDisabled: p,
1654
+ getCompIcon: ft,
3075
1655
  // exposed
3076
- ..._
1656
+ ...h
3077
1657
  };
3078
1658
  }
3079
1659
  });
3080
- var Fi = function() {
1660
+ var xn = function() {
3081
1661
  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;
1662
+ 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) {
1663
+ e.dialogVisible = t;
3084
1664
  }, close: e.onDialogClose, closed: e.onDialogClosed }, scopedSlots: e._u([{ key: "title", fn: function() {
3085
1665
  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
1666
  }, 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()];
1667
+ 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) {
1668
+ 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
1669
  })] : e._e()], 2)];
3090
1670
  }, 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,
1671
+ }, Fn = [], In = /* @__PURE__ */ ge(
1672
+ kn,
1673
+ xn,
1674
+ Fn,
3095
1675
  !1,
3096
1676
  null,
3097
1677
  "1f2694c2"
3098
1678
  );
3099
- const Ze = Bi.exports, ki = (t) => typeof t == "string" ? document.querySelector(t) || document.body : t instanceof HTMLElement ? t : document.body, $i = (t) => {
1679
+ const xe = In.exports, Rn = (n) => typeof n == "string" ? document.querySelector(n) || document.body : n instanceof HTMLElement ? n : document.body, On = (n) => {
3100
1680
  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;
1681
+ return Object.entries(n).forEach(([t, i]) => {
1682
+ if (t.startsWith("on") && typeof i == "function" && t.length > 2) {
1683
+ const l = t.slice(2), c = l.charAt(0).toLowerCase() + l.slice(1);
1684
+ e[c] = i;
3105
1685
  } else
3106
- o[n] = r;
1686
+ o[t] = i;
3107
1687
  }), { 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;
1688
+ }, lt = (n, e, o) => {
1689
+ const { propsData: t, events: i } = On(e), l = ct.extend(n), c = new l({ propsData: t });
1690
+ return Object.entries(i).forEach(([k, d]) => {
1691
+ c.$on(k, d);
1692
+ }), c.$mount(), Rn(o).appendChild(c.$el), c;
3113
1693
  };
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);
1694
+ function Ee(n, e = {}) {
1695
+ if (n = n || xe, Object.assign({ onlyInstance: !1 }, e).onlyInstance) {
1696
+ let t = null;
1697
+ const i = () => {
1698
+ t && (t.visible = !1, setTimeout(() => {
1699
+ t && (t.$destroy(), t.$el && t.$el.parentNode && t.$el.parentNode.removeChild(t.$el), t = null);
3120
1700
  }, 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;
1701
+ }, l = (c) => {
1702
+ c.visible === void 0 && (c.visible = !0);
1703
+ const B = c.onClosed, k = c.onSubmit;
1704
+ return c.onClosed = (...d) => {
1705
+ B == null || B(...d), i();
1706
+ }, c.onSubmit = (d = i) => {
1707
+ k == null || k(d);
1708
+ }, t = lt(n, c, c.appendTo), t;
3129
1709
  };
3130
- return a.close = r, a;
1710
+ return l.close = i, l;
3131
1711
  } 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 = {
1712
+ let t = null;
1713
+ const i = () => {
1714
+ t && (t.visible = !1);
1715
+ }, l = () => {
1716
+ t && (t.$destroy(), t.$el && t.$el.parentNode && t.$el.parentNode.removeChild(t.$el), t = null);
1717
+ }, c = (B) => {
1718
+ if (t)
1719
+ return Object.entries(B).forEach(([a, f]) => {
1720
+ a.startsWith("on") || (t[a] = f);
1721
+ }), t.visible = !0, t;
1722
+ const k = {
3143
1723
  visible: !0,
3144
1724
  width: "50%",
3145
1725
  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;
1726
+ ...B
1727
+ }, d = k.onClosed, g = k.onSubmit;
1728
+ return k.onClosed = () => {
1729
+ d == null || d(), i();
1730
+ }, k.onSubmit = (a = i) => {
1731
+ g == null || g(a);
1732
+ }, t = lt(n, k, k.appendTo), t;
3153
1733
  };
3154
- return i.close = r, i.destroy = a, i;
1734
+ return c.close = i, c.destroy = l, c;
3155
1735
  }
3156
1736
  }
3157
- Ze.install = function(t) {
3158
- t.component(Ze.name || "EsDialog", Ze), t.prototype.$useDialog = Ct;
1737
+ xe.install = function(n) {
1738
+ n.component(xe.name || "EsDialog", xe), n.prototype.$useDialog = Ee;
3159
1739
  };
3160
- const Pi = be({
1740
+ const wn = ie({
3161
1741
  name: "EsCrudPage",
3162
- components: { EsForm: ze, EsTable: Ye },
1742
+ components: { EsForm: be, EsTable: ke },
3163
1743
  inheritAttrs: !1,
3164
1744
  props: {
3165
1745
  schema: { type: Object, required: !0 },
@@ -3182,384 +1762,384 @@ const Pi = be({
3182
1762
  "dialog-cancel",
3183
1763
  "dialog-open"
3184
1764
  ],
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] = "");
1765
+ setup(n, { emit: e, expose: o }) {
1766
+ const t = z(null), i = z(null), l = z([]), c = ze({});
1767
+ de(
1768
+ () => n.schema.formItems,
1769
+ (r) => {
1770
+ r && r.forEach((u) => {
1771
+ u.prop && !(u.prop in c) && (c[u.prop] = "");
3192
1772
  });
3193
1773
  },
3194
1774
  { immediate: !0 }
3195
1775
  );
3196
- const l = L({
1776
+ const B = z({
3197
1777
  current: 1,
3198
1778
  pageSize: 10,
3199
1779
  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({
1780
+ ...n.schema.pagination || {}
1781
+ }), k = S(() => {
1782
+ var w, A;
1783
+ if (n.schema.dialogs) return n.schema.dialogs;
1784
+ if (!((w = n.schema.dialogFormItems) != null && w.length)) return {};
1785
+ const r = {
1786
+ width: ((A = n.schema.dialogOptions) == null ? void 0 : A.width) || "600px",
1787
+ formItems: n.schema.dialogFormItems,
1788
+ ...n.schema.dialogOptions || {}
1789
+ }, u = {}, h = n.schema.actions || ["add", "edit", "delete"];
1790
+ return h.includes("add") && (u.add = { ...r, title: "新增" }), h.includes("edit") && (u.edit = { ...r, title: "编辑" }), h.includes("view") && (u.view = { ...r, title: "查看", isHiddenFooter: !0 }), u;
1791
+ }), d = S(() => {
1792
+ if (n.schema.toolbarBtns) return n.schema.toolbarBtns;
1793
+ if (n.schema.dialogs || n.schema.operationColumn !== void 0) return [];
1794
+ const r = n.schema.actions || ["add", "edit", "delete"], u = [];
1795
+ return r.includes("add") && u.push({
3216
1796
  name: "新增",
3217
1797
  type: "primary",
3218
1798
  key: "add",
3219
1799
  icon: "Plus",
3220
1800
  dialogKey: "add"
3221
- }), u.includes("export") && g.push({
1801
+ }), r.includes("export") && u.push({
3222
1802
  name: "导出",
3223
1803
  key: "export",
3224
1804
  icon: "Download",
3225
1805
  actionType: "export"
3226
- }), u.includes("import") && g.push({
1806
+ }), r.includes("import") && u.push({
3227
1807
  name: "导入",
3228
1808
  key: "import",
3229
1809
  icon: "Upload",
3230
1810
  actionType: "import"
3231
- }), g;
3232
- }), p = E(
1811
+ }), u;
1812
+ }), g = S(
3233
1813
  () => {
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(
1814
+ var A;
1815
+ if (n.schema.operationColumn !== void 0) return n.schema.operationColumn;
1816
+ const r = n.schema.actions || ["add", "edit", "delete"];
1817
+ if ((A = n.schema.columns) == null ? void 0 : A.some(
3238
1818
  (x) => x.prop === "action" || x.prop === "operate" || x.btns
3239
1819
  )) 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({
1820
+ if (r.filter((x) => ["edit", "delete", "view"].includes(x)).length === 0) return !1;
1821
+ const w = [];
1822
+ 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
1823
  name: "删除",
3244
1824
  type: "danger",
3245
1825
  key: "delete",
3246
1826
  confirm: "确定删除该条数据吗?"
3247
1827
  }), {
3248
1828
  label: "操作",
3249
- width: k.length * 80 + 20,
1829
+ width: w.length * 80 + 20,
3250
1830
  fixed: "right",
3251
- btns: k
1831
+ btns: w
3252
1832
  };
3253
1833
  }
3254
- ), s = E(() => {
3255
- if (t.schema.queryBtns) return t.schema.queryBtns;
3256
- const u = [
1834
+ ), a = S(() => {
1835
+ if (n.schema.queryBtns) return n.schema.queryBtns;
1836
+ const r = [
3257
1837
  { name: "查询", type: "primary", key: "query", triggerEvent: !0 },
3258
1838
  { name: "重置", key: "rest", triggerEvent: !0 }
3259
- ], g = c.value.map((_) => {
3260
- const k = { ..._ };
3261
- return k.click || (k.click = () => S(_)), k;
1839
+ ], u = d.value.map((h) => {
1840
+ const w = { ...h };
1841
+ return w.click || (w.click = () => _(h)), w;
3262
1842
  });
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)
1843
+ return [...r, ...u];
1844
+ }), f = S(() => {
1845
+ const r = [...n.schema.columns || []], u = g.value;
1846
+ if (u === !1 || u === void 0) return r;
1847
+ const h = u.btns.map((w) => ({
1848
+ name: w.name,
1849
+ type: w.type,
1850
+ permissionValue: w.permissionValue,
1851
+ clickEvent: (A) => L(w, A)
3272
1852
  }));
3273
- return u.push({
1853
+ return r.push({
3274
1854
  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)
1855
+ label: u.label || "操作",
1856
+ width: u.width || h.length * 80 + 20,
1857
+ fixed: u.fixed || "right",
1858
+ btns: h
1859
+ }), r;
1860
+ }), p = S(() => {
1861
+ var r;
1862
+ return (r = n.schema.tableBtns) != null && r.length ? n.schema.tableBtns.map((u) => ({
1863
+ name: u.name,
1864
+ type: u.type,
1865
+ size: u.size || "small",
1866
+ icon: u.icon,
1867
+ code: u.code || 1,
1868
+ permissionValue: u.permissionValue,
1869
+ loading: u.loading,
1870
+ disabled: u.disabled,
1871
+ click: () => _(u)
3292
1872
  })) : [];
3293
- }), h = E(() => {
3294
- const u = {
1873
+ }), b = S(() => {
1874
+ const r = {
3295
1875
  border: !0,
3296
- isInitRun: t.autoLoad,
3297
- ...t.schema.tableOptions || {}
1876
+ isInitRun: n.autoLoad,
1877
+ ...n.schema.tableOptions || {}
3298
1878
  };
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];
1879
+ n.httpRequest && (r.httpRequest = n.httpRequest);
1880
+ const u = p.value;
1881
+ if (u.length > 0) {
1882
+ const h = r.configBtn || [];
1883
+ r.configBtn = [...h, ...u];
3304
1884
  }
3305
- return u;
3306
- }), f = E(() => {
3307
- const u = t.schema.formLayout;
3308
- if (u)
1885
+ return r;
1886
+ }), y = S(() => {
1887
+ const r = n.schema.formLayout;
1888
+ if (r)
3309
1889
  return {
3310
1890
  rowLayProps: { gutter: 16 },
3311
1891
  formLayProps: {
3312
- labelBtnWidth: u.labelWidth,
3313
- ...u.minFoldRows ? { minFoldRows: u.minFoldRows } : {}
1892
+ labelBtnWidth: r.labelWidth,
1893
+ ...r.minFoldRows ? { minFoldRows: r.minFoldRows } : {}
3314
1894
  }
3315
1895
  };
3316
1896
  });
3317
- async function S(u) {
3318
- const g = u.key || u.actionType || "";
3319
- if (u.confirm) {
3320
- const _ = typeof u.confirm == "string" ? u.confirm : "确定执行此操作吗?";
1897
+ async function _(r) {
1898
+ const u = r.key || r.actionType || "";
1899
+ if (r.confirm) {
1900
+ const h = typeof r.confirm == "string" ? r.confirm : "确定执行此操作吗?";
3321
1901
  try {
3322
- await tn.confirm(_, "提示", { type: "warning" });
3323
- } catch (k) {
1902
+ await ot.confirm(h, "提示", { type: "warning" });
1903
+ } catch (w) {
3324
1904
  return;
3325
1905
  }
3326
1906
  }
3327
- if (u.dialogKey) {
3328
- g === "add" && e("add"), M(u.dialogKey);
1907
+ if (r.dialogKey) {
1908
+ u === "add" && e("add"), N(r.dialogKey);
3329
1909
  return;
3330
1910
  }
3331
- g === "export" || u.actionType === "export" ? e("export", { ...i }) : g === "add" && e("add"), e("btn-click", g, { ...i });
1911
+ u === "export" || r.actionType === "export" ? e("export", { ...c }) : u === "add" && e("add"), e("btn-click", u, { ...c });
3332
1912
  }
3333
- async function F(u, g) {
3334
- const _ = u.key || "";
3335
- if (u.confirm) {
3336
- const k = typeof u.confirm == "string" ? u.confirm : "确定执行此操作吗?";
1913
+ async function L(r, u) {
1914
+ const h = r.key || "";
1915
+ if (r.confirm) {
1916
+ const w = typeof r.confirm == "string" ? r.confirm : "确定执行此操作吗?";
3337
1917
  try {
3338
- await tn.confirm(k, "提示", { type: "warning" });
3339
- } catch (T) {
1918
+ await ot.confirm(w, "提示", { type: "warning" });
1919
+ } catch (A) {
3340
1920
  return;
3341
1921
  }
3342
1922
  }
3343
- if (u.click) {
3344
- u.click(g, { refresh: K, getSelectedRows: Q, openDialog: M });
1923
+ if (r.click) {
1924
+ r.click(u, { refresh: U, getSelectedRows: J, openDialog: N });
3345
1925
  return;
3346
1926
  }
3347
- if (u.dialogKey) {
3348
- M(u.dialogKey, g);
1927
+ if (r.dialogKey) {
1928
+ N(r.dialogKey, u);
3349
1929
  return;
3350
1930
  }
3351
- _ === "edit" ? e("edit", g) : _ === "delete" ? e("delete", g) : _ === "view" && e("view", g), e("btn-click", _, g);
1931
+ h === "edit" ? e("edit", u) : h === "delete" ? e("delete", u) : h === "view" && e("view", u), e("btn-click", h, u);
3352
1932
  }
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 : "");
1933
+ const j = /* @__PURE__ */ new Map();
1934
+ function N(r, u) {
1935
+ var Q;
1936
+ const h = k.value[r];
1937
+ if (!h) return;
1938
+ e("dialog-open", r, u);
1939
+ const w = Ee();
1940
+ j.set(r, w);
1941
+ const A = ze({});
1942
+ h.formItems && h.formItems.forEach((q) => {
1943
+ var se;
1944
+ q.prop && (A[q.prop] = (se = u == null ? void 0 : u[q.prop]) != null ? se : "");
3365
1945
  });
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({
1946
+ const x = typeof h.title == "function" ? h.title(u) : h.title || "";
1947
+ (Q = h.onOpen) == null || Q.call(h, u);
1948
+ const E = V(r, h, A, u || {});
1949
+ w({
3370
1950
  title: x,
3371
- width: _.width || "600px",
3372
- isDraggable: _.isDraggable,
3373
- maxHeight: _.maxHeight,
3374
- fullscreen: _.fullscreen,
3375
- isHiddenFooter: _.isHiddenFooter,
1951
+ width: h.width || "600px",
1952
+ isDraggable: h.isDraggable,
1953
+ maxHeight: h.maxHeight,
1954
+ fullscreen: h.fullscreen,
1955
+ isHiddenFooter: h.isHiddenFooter,
3376
1956
  // 用户自定义 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, {
1957
+ render: h.render ? (q, se) => h.render(q, {
1958
+ row: u || {},
1959
+ model: A,
1960
+ registerRef: se.registerRef,
1961
+ close: () => M(r),
1962
+ refresh: U
1963
+ }) : h.formItems ? (q, { registerRef: se }) => {
1964
+ const re = q(be, {
3385
1965
  props: {
3386
- model: T,
3387
- formItemList: _.formItems,
1966
+ model: A,
1967
+ formItemList: h.formItems,
3388
1968
  layoutFormProps: {
3389
1969
  rowLayProps: { gutter: 16 },
3390
1970
  formLayProps: {
3391
1971
  isBtnHidden: !0,
3392
- ..._.formLayout || {}
1972
+ ...h.formLayout || {}
3393
1973
  }
3394
1974
  }
3395
1975
  },
3396
1976
  // Vue 2 函数式 ref:通过 RenderJsx 暴露的 registerRef 注册
3397
1977
  ref: "dialogForm"
3398
1978
  });
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;
1979
+ return re && re.data && (re.data.hook = re.data.hook || {}, re.data.hook.insert = (ne) => {
1980
+ ne.componentInstance && se("dialogForm", ne.componentInstance);
1981
+ }), re;
3402
1982
  } : void 0,
3403
- configBtn: z,
1983
+ configBtn: E,
3404
1984
  // useDialog 的 onClosed 通过 extractEventHandlers 转为 'closed' 事件
3405
1985
  onClosed: () => {
3406
1986
  var q;
3407
- H.delete(u), (q = _.onClose) == null || q.call(_);
1987
+ j.delete(r), (q = h.onClose) == null || q.call(h);
3408
1988
  }
3409
1989
  });
3410
1990
  }
3411
- function W(u) {
3412
- const g = H.get(u);
3413
- g && (g.close(), H.delete(u));
1991
+ function M(r) {
1992
+ const u = j.get(r);
1993
+ u && (u.close(), j.delete(r));
3414
1994
  }
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();
1995
+ function V(r, u, h, w) {
1996
+ if (!u.isHiddenFooter)
1997
+ return u.configBtn ? u.configBtn.map((A) => A.action === "cancel" ? {
1998
+ ...A,
1999
+ click: (x, { close: E }) => {
2000
+ e("dialog-cancel", r), E();
3421
2001
  }
3422
- } : T.action === "confirm" ? {
3423
- ...T,
3424
- click: async (x, { close: z, getRefs: X }) => {
3425
- await J(u, g, _, k, z, X);
2002
+ } : A.action === "confirm" ? {
2003
+ ...A,
2004
+ click: async (x, { close: E, getRefs: Q }) => {
2005
+ await W(r, u, h, w, E, Q);
3426
2006
  }
3427
- } : T) : [
2007
+ } : A) : [
3428
2008
  {
3429
2009
  name: "取消",
3430
- click: (T, { close: x }) => {
3431
- e("dialog-cancel", u), x();
2010
+ click: (A, { close: x }) => {
2011
+ e("dialog-cancel", r), x();
3432
2012
  }
3433
2013
  },
3434
2014
  {
3435
2015
  name: "确定",
3436
2016
  type: "primary",
3437
- click: async (T, { close: x, getRefs: z }) => {
3438
- await J(u, g, _, k, x, z);
2017
+ click: async (A, { close: x, getRefs: E }) => {
2018
+ await W(r, u, h, w, x, E);
3439
2019
  }
3440
2020
  }
3441
2021
  ];
3442
2022
  }
3443
- async function J(u, g, _, k, T, x) {
3444
- var X;
3445
- if ((X = g.formItems) != null && X.length) {
2023
+ async function W(r, u, h, w, A, x) {
2024
+ var Q;
2025
+ if ((Q = u.formItems) != null && Q.length) {
3446
2026
  const q = x("dialogForm");
3447
2027
  q != null && q.validate && await q.validate();
3448
2028
  }
3449
- const z = { close: T, refresh: K, getRefs: x, row: k };
3450
- if (g.onConfirm)
3451
- await g.onConfirm(_, z);
2029
+ const E = { close: A, refresh: U, getRefs: x, row: w };
2030
+ if (u.onConfirm)
2031
+ await u.onConfirm(h, E);
3452
2032
  else {
3453
- const q = u === "add" ? "add-confirm" : u === "edit" ? "edit-confirm" : `${u}-confirm`;
3454
- e("btn-click", q, _), T(), K();
2033
+ const q = r === "add" ? "add-confirm" : r === "edit" ? "edit-confirm" : `${r}-confirm`;
2034
+ e("btn-click", q, h), A(), U();
3455
2035
  }
3456
- e("dialog-confirm", u, _);
2036
+ e("dialog-confirm", r, h);
3457
2037
  }
3458
- function K() {
3459
- var u, g;
3460
- (g = (u = n.value) == null ? void 0 : u.httpRequestInstance) == null || g.call(u);
2038
+ function U() {
2039
+ var r, u;
2040
+ (u = (r = t.value) == null ? void 0 : r.httpRequestInstance) == null || u.call(r);
3461
2041
  }
3462
- function Q() {
3463
- var u, g;
3464
- return ((g = (u = n.value) == null ? void 0 : u.getSelectionRows) == null ? void 0 : g.call(u)) || [];
2042
+ function J() {
2043
+ var r, u;
2044
+ return ((u = (r = t.value) == null ? void 0 : r.getSelectionRows) == null ? void 0 : u.call(r)) || [];
3465
2045
  }
3466
- const O = {
3467
- refresh: K,
3468
- getSelectedRows: Q,
3469
- tableRef: n,
3470
- formRef: r,
3471
- queryModel: i,
3472
- openDialog: M,
3473
- closeDialog: W
2046
+ const R = {
2047
+ refresh: U,
2048
+ getSelectedRows: J,
2049
+ tableRef: t,
2050
+ formRef: i,
2051
+ queryModel: c,
2052
+ openDialog: N,
2053
+ closeDialog: M
3474
2054
  };
3475
- return typeof o == "function" && o(O), {
2055
+ return typeof o == "function" && o(R), {
3476
2056
  // refs
3477
- tableRef: n,
3478
- formRef: r,
3479
- tableData: a,
3480
- queryModel: i,
3481
- paginationState: l,
2057
+ tableRef: t,
2058
+ formRef: i,
2059
+ tableData: l,
2060
+ queryModel: c,
2061
+ paginationState: B,
3482
2062
  // computeds
3483
- mergedColumns: m,
3484
- mergedOptions: h,
3485
- mergedFormBtns: s,
3486
- formLayoutProps: f,
2063
+ mergedColumns: f,
2064
+ mergedOptions: b,
2065
+ mergedFormBtns: a,
2066
+ formLayoutProps: y,
3487
2067
  // exposed
3488
- ...O
2068
+ ...R
3489
2069
  };
3490
2070
  }
3491
2071
  });
3492
- var Ni = function() {
2072
+ var Pn = function() {
3493
2073
  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 || {})];
2074
+ 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) {
2075
+ e.tableData = t;
2076
+ }, "update:data-source": function(t) {
2077
+ e.tableData = t;
2078
+ }, "update:pagination": function(t) {
2079
+ e.paginationState = t;
2080
+ } }, scopedSlots: e._u([e._l(e.$slots, function(t, i) {
2081
+ return { key: i, fn: function(l) {
2082
+ return [e._t(i, null, null, l || {})];
3503
2083
  } };
3504
2084
  })], 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,
2085
+ }, $n = [], Hn = /* @__PURE__ */ ge(
2086
+ wn,
2087
+ Pn,
2088
+ $n,
3509
2089
  !1,
3510
2090
  null,
3511
2091
  "ad1d1cb8"
3512
2092
  );
3513
- const gt = Ai.exports;
3514
- gt.install = function(t) {
3515
- t.component(
3516
- gt.name || "EsCrudPage",
3517
- gt
2093
+ const Le = Hn.exports;
2094
+ Le.install = function(n) {
2095
+ n.component(
2096
+ Le.name || "EsCrudPage",
2097
+ Le
3518
2098
  );
3519
2099
  };
3520
- const Ti = [ze, Ye, Ze, gt], Hi = (t) => {
3521
- const e = { ...t };
2100
+ const Tn = [be, ke, xe, Le], An = (n) => {
2101
+ const e = { ...n };
3522
2102
  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 };
2103
+ const t = e[o];
2104
+ if (!t || typeof t != "object") continue;
2105
+ const i = t.methods;
2106
+ if (i && typeof i == "object") {
2107
+ const { methods: c, ...B } = t;
2108
+ e[o] = { ...i, ...B };
3529
2109
  }
3530
- const a = e[o];
3531
- typeof a.configQueryfieldOutput == "function" && typeof a.configQueryFieldOutput != "function" && (a.configQueryFieldOutput = a.configQueryfieldOutput);
2110
+ const l = e[o];
2111
+ typeof l.configQueryfieldOutput == "function" && typeof l.configQueryFieldOutput != "function" && (l.configQueryFieldOutput = l.configQueryfieldOutput);
3532
2112
  }
3533
2113
  return e;
3534
- }, Li = (t, e = {}) => {
3535
- const o = t.__composition_api_installed__ === !0;
3536
- Kn ? o && console.warn(
2114
+ }, Ln = (n, e = {}) => {
2115
+ const o = n.__composition_api_installed__ === !0;
2116
+ ut ? o && console.warn(
3537
2117
  '[@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({
2118
+ ) : !o && st && n.use(st);
2119
+ const t = An(e);
2120
+ Pt(t), t.skipComponentRegistration || Tn.forEach((i) => {
2121
+ const l = i.name;
2122
+ l && n.component(l, i);
2123
+ }), t.globalProperties !== !1 && (n.prototype.$useDialog = Ee), n.mixin({
3544
2124
  provide: {
3545
2125
  $EsPlus: {
3546
- useDialog: Ct,
3547
- ...n
2126
+ useDialog: Ee,
2127
+ ...t
3548
2128
  }
3549
2129
  }
3550
2130
  });
3551
- }, Mi = {
3552
- version: "1.1.1",
3553
- install: Li
2131
+ }, Dn = {
2132
+ version: "1.1.2",
2133
+ install: Ln
3554
2134
  };
3555
2135
  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
2136
+ Le as EsCrudPage,
2137
+ xe as EsDialog,
2138
+ be as EsForm,
2139
+ ke as EsTable,
2140
+ Mn as configureEsPlus,
2141
+ Dn as default,
2142
+ Ln as install,
2143
+ Ee as useDialog
3564
2144
  };
3565
2145
  //# sourceMappingURL=es-plus-vue2.js.map