@es-plus/vue2 1.0.4 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,41 +1,1465 @@
1
- import { getNestedValue as X, setNestedValue as W, resolveFormLayProps as Le, getRowColsAlgorithm as pt, configFormField as mt, formatConfigOut as gt, getEveryFormQueryField as yt, queryTableListMethod as ht, getGlobalConfig as pe, getButtonPosition as Ye, createSelectionState as vt, restoreSelectionForPage as bt, clearAllSelection as _t, applySelectionChange as Ct, isObject as fe, findValueByKey as St, configureEsPlus as Bt } from "@es-plus/core";
2
- import { configureEsPlus as Pn } from "@es-plus/core";
3
- import { ref as z, computed as B, watch as ue, defineComponent as ae, getCurrentInstance as qe, inject as ie, nextTick as Fe, h as ce, onMounted as Ne, onBeforeUnmount as kt, provide as ot, reactive as Te, onUpdated as Ft } from "@vue/composition-api";
4
- import xt from "vue";
5
- import { MessageBox as Xe } from "element-ui";
6
- function Se(n) {
7
- if (Array.isArray(n)) return n;
8
- if (typeof n == "function") {
9
- const e = n();
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();
10
1434
  return Array.isArray(e) ? e : [];
11
1435
  }
12
1436
  return [];
13
1437
  }
14
- function ee(n) {
15
- const e = { ...n.attrs || {} };
1438
+ function ne(t) {
1439
+ const e = { ...t.attrs || {} };
16
1440
  return typeof e.disabled == "function" && (e.disabled = e.disabled()), e;
17
1441
  }
18
- function te(n, e) {
19
- const o = n.on || {}, t = {};
20
- for (const [i, l] of Object.entries(o))
21
- typeof l == "function" && (t[i] = l);
22
- return typeof t.input != "function" && (t.input = e), t;
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;
23
1447
  }
24
- function It() {
1448
+ function qr() {
25
1449
  return { formInputComponents: (e) => {
26
- var F;
1450
+ var y;
27
1451
  const o = /* @__PURE__ */ new Map([
28
1452
  // ─────────────────────────────────────────────────────────────────
29
1453
  // Input - 文本输入
30
1454
  // ─────────────────────────────────────────────────────────────────
31
1455
  [
32
1456
  "Input",
33
- (d, g, { row: a }) => {
34
- const f = ee(a), p = X(g, a.prop), b = te(a, (y) => W(g, a.prop, y));
35
- return d("el-input", {
36
- attrs: f,
37
- props: { value: p, ...a.props },
38
- on: b
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
39
1463
  });
40
1464
  }
41
1465
  ],
@@ -44,12 +1468,12 @@ function It() {
44
1468
  // ─────────────────────────────────────────────────────────────────
45
1469
  [
46
1470
  "InputNumber",
47
- (d, g, { row: a }) => {
48
- const f = ee(a), p = X(g, a.prop), b = te(a, (y) => W(g, a.prop, y));
49
- return d("el-input-number", {
50
- attrs: f,
51
- props: { value: p, ...a.props },
52
- on: b
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
53
1477
  });
54
1478
  }
55
1479
  ],
@@ -58,19 +1482,19 @@ function It() {
58
1482
  // ─────────────────────────────────────────────────────────────────
59
1483
  [
60
1484
  "Select",
61
- (d, g, { row: a }) => {
62
- const f = ee(a), p = X(g, a.prop), b = Se(a.dataOptions), y = te(a, (_) => W(g, a.prop, _));
63
- return d(
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(
64
1488
  "el-select",
65
1489
  {
66
- attrs: f,
67
- props: { value: p, ...a.props },
68
- on: y
1490
+ attrs: m,
1491
+ props: { value: v, ...s.props },
1492
+ on: f
69
1493
  },
70
- b.map(
71
- (_, T) => d("el-option", {
72
- key: T,
73
- props: { value: _.value, label: _.label, disabled: _.disabled }
1494
+ h.map(
1495
+ (S, F) => c("el-option", {
1496
+ key: F,
1497
+ props: { value: S.value, label: S.label, disabled: S.disabled }
74
1498
  })
75
1499
  )
76
1500
  );
@@ -82,12 +1506,12 @@ function It() {
82
1506
  // ─────────────────────────────────────────────────────────────────
83
1507
  [
84
1508
  "datePicker",
85
- (d, g, { row: a }) => {
86
- const f = ee(a), p = X(g, a.prop), b = te(a, (y) => W(g, a.prop, y));
87
- return d("el-date-picker", {
88
- attrs: f,
89
- props: { value: p, ...a.props },
90
- on: b
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
91
1515
  });
92
1516
  }
93
1517
  ],
@@ -96,12 +1520,12 @@ function It() {
96
1520
  // ─────────────────────────────────────────────────────────────────
97
1521
  [
98
1522
  "timePicker",
99
- (d, g, { row: a }) => {
100
- const f = ee(a), p = X(g, a.prop), b = te(a, (y) => W(g, a.prop, y));
101
- return d("el-time-picker", {
102
- attrs: f,
103
- props: { value: p, ...a.props },
104
- on: b
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
105
1529
  });
106
1530
  }
107
1531
  ],
@@ -110,12 +1534,12 @@ function It() {
110
1534
  // ─────────────────────────────────────────────────────────────────
111
1535
  [
112
1536
  "Slider",
113
- (d, g, { row: a }) => {
114
- const f = ee(a), p = X(g, a.prop), b = te(a, (y) => W(g, a.prop, y));
115
- return d("el-slider", {
116
- attrs: f,
117
- props: { value: p, ...a.props },
118
- on: b
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
119
1543
  });
120
1544
  }
121
1545
  ],
@@ -126,14 +1550,14 @@ function It() {
126
1550
  // ─────────────────────────────────────────────────────────────────
127
1551
  [
128
1552
  "ColorPicker",
129
- (d, g, { row: a }) => {
130
- const f = ee(a), p = X(g, a.prop), b = a.on || {}, y = {};
131
- for (const [_, T] of Object.entries(b))
132
- typeof T == "function" && (y[_] = T);
133
- return typeof y.change != "function" && (y.change = (_) => W(g, a.prop, _)), d("el-color-picker", {
134
- attrs: f,
135
- props: { value: p, ...a.props },
136
- on: y
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
137
1561
  });
138
1562
  }
139
1563
  ],
@@ -143,16 +1567,16 @@ function It() {
143
1567
  // ─────────────────────────────────────────────────────────────────
144
1568
  [
145
1569
  "Transfer",
146
- (d, g, { row: a }) => {
147
- const f = ee(a), p = X(g, a.prop), b = Se(a.dataOptions), y = te(a, (_) => W(g, a.prop, _));
148
- return d("el-transfer", {
149
- attrs: f,
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
1574
  props: {
151
- value: p,
152
- data: b.map((_) => ({ key: _.value, label: _.label, disabled: _.disabled })),
153
- ...a.props
1575
+ value: v,
1576
+ data: h.map((S) => ({ key: S.value, label: S.label, disabled: S.disabled })),
1577
+ ...s.props
154
1578
  },
155
- on: y
1579
+ on: f
156
1580
  });
157
1581
  }
158
1582
  ],
@@ -161,18 +1585,18 @@ function It() {
161
1585
  // ─────────────────────────────────────────────────────────────────
162
1586
  [
163
1587
  "Cascader",
164
- (d, g, { row: a }) => {
165
- const f = ee(a), p = X(g, a.prop), b = Se(a.dataOptions), y = te(a, (_) => W(g, a.prop, _));
166
- return d("el-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", {
167
1591
  // key 强制 dataOptions 变化时重渲染,Element UI 内部 cache 否则不刷新
168
- key: JSON.stringify(b),
169
- attrs: f,
1592
+ key: JSON.stringify(h),
1593
+ attrs: m,
170
1594
  props: {
171
- value: p,
172
- options: b,
173
- ...a.props
1595
+ value: v,
1596
+ options: h,
1597
+ ...s.props
174
1598
  },
175
- on: y
1599
+ on: f
176
1600
  });
177
1601
  }
178
1602
  ],
@@ -181,24 +1605,24 @@ function It() {
181
1605
  // ─────────────────────────────────────────────────────────────────
182
1606
  [
183
1607
  "Radio",
184
- (d, g, { row: a }) => {
185
- const f = ee(a), p = X(g, a.prop), b = Se(a.dataOptions), y = te(a, (_) => W(g, a.prop, _));
186
- return d(
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(
187
1611
  "el-radio-group",
188
1612
  {
189
- attrs: f,
190
- props: { value: p, ...a.props },
191
- on: y
1613
+ attrs: m,
1614
+ props: { value: v, ...s.props },
1615
+ on: f
192
1616
  },
193
- b.map(
194
- (_, T) => d(
1617
+ h.map(
1618
+ (S, F) => c(
195
1619
  "el-radio",
196
1620
  {
197
- key: T,
1621
+ key: F,
198
1622
  // Element UI 中 el-radio 使用 :label 作为值
199
- props: { label: _.value, disabled: _.disabled || f.disabled }
1623
+ props: { label: S.value, disabled: S.disabled || m.disabled }
200
1624
  },
201
- [_.label]
1625
+ [S.label]
202
1626
  )
203
1627
  )
204
1628
  );
@@ -209,23 +1633,23 @@ function It() {
209
1633
  // ─────────────────────────────────────────────────────────────────
210
1634
  [
211
1635
  "Checkbox",
212
- (d, g, { row: a }) => {
213
- const f = ee(a), p = X(g, a.prop), b = Se(a.dataOptions), y = te(a, (_) => W(g, a.prop, _));
214
- return d(
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(
215
1639
  "el-checkbox-group",
216
1640
  {
217
- attrs: f,
218
- props: { value: p, ...a.props },
219
- on: y
1641
+ attrs: m,
1642
+ props: { value: v, ...s.props },
1643
+ on: f
220
1644
  },
221
- b.map(
222
- (_, T) => d(
1645
+ h.map(
1646
+ (S, F) => c(
223
1647
  "el-checkbox",
224
1648
  {
225
- key: T,
226
- props: { label: _.value, disabled: _.disabled || f.disabled }
1649
+ key: F,
1650
+ props: { label: S.value, disabled: S.disabled || m.disabled }
227
1651
  },
228
- [_.label]
1652
+ [S.label]
229
1653
  )
230
1654
  )
231
1655
  );
@@ -236,12 +1660,12 @@ function It() {
236
1660
  // ─────────────────────────────────────────────────────────────────
237
1661
  [
238
1662
  "Switch",
239
- (d, g, { row: a }) => {
240
- const f = ee(a), p = X(g, a.prop), b = te(a, (y) => W(g, a.prop, y));
241
- return d("el-switch", {
242
- attrs: f,
243
- props: { value: p, ...a.props },
244
- on: b
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
245
1669
  });
246
1670
  }
247
1671
  ],
@@ -250,12 +1674,12 @@ function It() {
250
1674
  // ─────────────────────────────────────────────────────────────────
251
1675
  [
252
1676
  "Rate",
253
- (d, g, { row: a }) => {
254
- const f = ee(a), p = X(g, a.prop), b = te(a, (y) => W(g, a.prop, y));
255
- return d("el-rate", {
256
- attrs: f,
257
- props: { value: p, ...a.props },
258
- on: b
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
259
1683
  });
260
1684
  }
261
1685
  ],
@@ -264,24 +1688,24 @@ function It() {
264
1688
  // ─────────────────────────────────────────────────────────────────
265
1689
  [
266
1690
  "Upload",
267
- (d, g, { row: a }) => {
268
- const f = a.prop, p = ee(a), b = a.props || {}, y = a.on || {}, _ = X(g, f) || [], T = typeof a.httpRequest == "function", E = a.triggerRender, N = a.fileRender, M = E ? E(d) : d("el-button", { props: { size: "mini", type: "primary" } }, ["选择文件"]), V = (s, u, h) => {
269
- var A, x;
270
- const w = (s == null ? void 0 : s.link) || (s == null ? void 0 : s.url) || ((A = s == null ? void 0 : s.data) == null ? void 0 : A.link) || ((x = s == null ? void 0 : s.data) == null ? void 0 : x.url);
271
- w && (u.url = w), u.status = "success", u.response = s, typeof y.success == "function" && y.success(s, u, h), W(g, f, [...h]);
272
- }, U = (s, u, h) => {
273
- u.status = "fail", u.error = s, typeof y.error == "function" && y.error(s, u, h), W(g, f, [...h]);
274
- }, K = T ? (s) => {
275
- const u = a.httpRequest;
276
- u({
277
- file: s.file,
278
- filename: s.file.name,
279
- onProgress: s.onProgress
280
- }).then((h) => {
281
- const w = (h == null ? void 0 : h.data) || h;
282
- s.onSuccess(w);
283
- }).catch((h) => s.onError(h));
284
- } : void 0, J = {
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 = {
285
1709
  preview: "onPreview",
286
1710
  change: "onChange",
287
1711
  success: "onSuccess",
@@ -290,135 +1714,135 @@ function It() {
290
1714
  remove: "onRemove",
291
1715
  exceed: "onExceed"
292
1716
  }, O = {};
293
- for (const [s, u] of Object.entries(y)) {
294
- if (typeof u != "function" || s === "success" || s === "error" || s === "remove") continue;
295
- const h = J[s];
296
- h && (O[h] = u);
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);
297
1721
  }
298
- return O.onSuccess = V, O.onError = U, O.onRemove = (s, u) => {
299
- typeof y.remove == "function" && y.remove(s, u), W(g, f, [...u]);
300
- }, d(
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(
301
1725
  "el-upload",
302
1726
  {
303
1727
  attrs: {
304
- ...p,
305
- action: b.action || p.action || "#",
306
- "file-list": _
1728
+ ...v,
1729
+ action: h.action || v.action || "#",
1730
+ "file-list": S
307
1731
  },
308
1732
  props: {
309
- ...b,
310
- fileList: _,
1733
+ ...h,
1734
+ fileList: S,
311
1735
  // 自定义上传时禁用 auto-upload,由 httpRequest 接管
312
- autoUpload: T ? !1 : b.autoUpload !== !1,
1736
+ autoUpload: F ? !1 : h.autoUpload !== !1,
313
1737
  httpRequest: K,
314
1738
  // 把 row.on.* 转换为 onXxx prop(覆盖在 userProps 之上:
315
1739
  // 若用户已直接在 props 里给了 onPreview,这里仍以 row.on 为优先权来源)
316
1740
  ...O
317
1741
  },
318
1742
  // Vue 2 的 scopedSlots 用于自定义文件项渲染
319
- scopedSlots: N ? {
320
- file: ({ file: s }) => N(d, s, () => {
321
- const u = _.filter((h) => h !== s);
322
- W(g, f, u);
1743
+ scopedSlots: M ? {
1744
+ file: ({ file: u }) => M(c, u, () => {
1745
+ const g = S.filter((_) => _ !== u);
1746
+ Y(p, m, g);
323
1747
  })
324
1748
  } : void 0
325
1749
  },
326
- [M]
1750
+ [W]
327
1751
  );
328
1752
  }
329
1753
  ]
330
- ]), t = (F = e.formtype) != null ? F : "";
331
- if (!t) return () => null;
332
- const i = o.get(t);
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);
333
1759
  if (i) return i;
334
- 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);
335
- if (c) return c;
336
- const S = t.toLowerCase();
337
- for (const [d, g] of o)
338
- if (d.toLowerCase() === S) return g;
1760
+ const l = n.toLowerCase();
1761
+ for (const [c, p] of o)
1762
+ if (c.toLowerCase() === l) return p;
339
1763
  return () => null;
340
1764
  } };
341
1765
  }
342
- function Ot(n) {
343
- const e = z(!1), o = B(() => {
344
- var y;
345
- const f = Le(n.layoutFormProps);
346
- if (!f || !Object.keys(f).length) return !1;
347
- const p = f.isBtnHiden, b = f.isBtnHidden;
348
- return !!((y = p != null ? p : b) != null && y);
349
- }), t = B(() => {
350
- var p;
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;
351
1775
  return {
352
1776
  type: "flex",
353
1777
  gutter: 20,
354
- ...((p = n.layoutFormProps) == null ? void 0 : p.rowLayProps) || {}
1778
+ ...((v = t.layoutFormProps) == null ? void 0 : v.rowLayProps) || {}
355
1779
  };
356
- }), i = B(() => Le(n.layoutFormProps)), l = B(() => {
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 = () => {
357
1786
  var f;
358
- return (f = n.layoutFormProps) == null ? void 0 : f.setOptions;
359
- }), c = B(
360
- () => pt(n.formItemList || [])
361
- ), S = () => {
362
- var y;
363
- const f = Le(n.layoutFormProps);
364
- if (!f || !Object.keys(f).length) return 0;
365
- const p = f.minfoldRows, b = f.minFoldRows;
366
- return Number((y = p != null ? p : b) != null ? y : 0) || 0;
367
- }, F = B(() => {
368
- const f = S();
369
- return f > 0 && f < c.value.rowNum;
370
- }), d = B(() => {
371
- var E;
372
- const { rowNum: f, columnRow: p } = c.value, b = p[f - 1] || [], y = Number((E = Le(n.layoutFormProps)) == null ? void 0 : E.btnColSpan) || 0, T = 24 - b.reduce(
373
- (N, M) => {
374
- var V;
375
- return N + (((V = n.formItemList[M]) == null ? void 0 : V.span) || 24);
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);
376
1800
  },
377
1801
  0
378
1802
  );
379
- return !e.value && y <= T ? T : 24;
380
- }), g = B(() => {
381
- var b, y;
382
- const f = S(), { columnNodeIndex: p } = c.value;
1803
+ return !e.value && f <= F ? F : 24;
1804
+ }), p = E(() => {
1805
+ var h, f;
1806
+ const m = l(), { columnNodeIndex: v } = i.value;
383
1807
  if (e.value) {
384
- const _ = (y = (b = p[f - 1]) != null ? b : p[p.length - 1]) != null ? y : 9999;
385
- return (n.formItemList || []).map((T, E) => ({
386
- ...T,
387
- isFold: E > _
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
1812
  }));
389
1813
  }
390
- return (n.formItemList || []).map((_) => ({ ..._, isFold: !1 }));
1814
+ return (t.formItemList || []).map((S) => ({ ...S, isFold: !1 }));
391
1815
  });
392
- return ue(
393
- F,
394
- (f) => {
395
- e.value = f;
1816
+ return we(
1817
+ y,
1818
+ (m) => {
1819
+ e.value = m;
396
1820
  },
397
1821
  { immediate: !0 }
398
1822
  ), {
399
1823
  folded: e,
400
1824
  isBtnHidden: o,
401
- rowLayout: t,
402
- formLayout: i,
403
- getSetOptionsStatus: l,
404
- getRowColsAlgorithm: c,
405
- isFold: F,
406
- getBtnColSpan: d,
407
- formItem: g,
1825
+ rowLayout: n,
1826
+ formLayout: r,
1827
+ getSetOptionsStatus: a,
1828
+ getRowColsAlgorithm: i,
1829
+ isFold: y,
1830
+ getBtnColSpan: c,
1831
+ formItem: p,
408
1832
  changeFolded: () => {
409
1833
  e.value = !e.value;
410
1834
  }
411
1835
  };
412
1836
  }
413
- function Rt(n) {
1837
+ function Ur(t) {
414
1838
  return {
415
- queryTableListMethod: (l, c = {}) => ht(l, c, n),
416
- getEveryFormQueryField: (l, c) => yt(l, n, c),
417
- formatConfigOut: (l, c, S = {}, F) => gt(l, c, S, F),
418
- configFormField: (l = {}, c) => mt(l, c)
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
1843
  };
420
1844
  }
421
- const wt = {
1845
+ const Kr = {
422
1846
  large: "medium",
423
1847
  default: "small",
424
1848
  small: "mini",
@@ -426,13 +1850,13 @@ const wt = {
426
1850
  medium: "medium",
427
1851
  mini: "mini"
428
1852
  };
429
- function ze(n) {
430
- if (n == null || n === "") return;
431
- const e = String(n).trim();
1853
+ function St(t) {
1854
+ if (t == null || t === "") return;
1855
+ const e = String(t).trim();
432
1856
  if (e)
433
- return wt[e];
1857
+ return Kr[e];
434
1858
  }
435
- const Pt = ae({
1859
+ const Qr = be({
436
1860
  name: "RenderDomForm",
437
1861
  functional: !0,
438
1862
  props: {
@@ -441,13 +1865,13 @@ const Pt = ae({
441
1865
  render: { type: Function, default: void 0 },
442
1866
  model: { type: Object, default: () => ({}) }
443
1867
  },
444
- render(n, e) {
445
- const { row: o, index: t, model: i, render: l } = e.props;
446
- if (typeof l != "function") return null;
447
- const S = l(n, i || {}, { row: o || {}, index: t });
448
- return typeof S == "string" ? n("span", S) : S;
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;
449
1873
  }
450
- }), Ht = ae({
1874
+ }), Jr = be({
451
1875
  name: "RenderBtn",
452
1876
  functional: !0,
453
1877
  props: {
@@ -456,15 +1880,15 @@ const Pt = ae({
456
1880
  formModel: { type: Object, default: () => ({}) },
457
1881
  render: { type: Function, default: void 0 }
458
1882
  },
459
- render(n, e) {
460
- const { formItemList: o, formModel: t, row: i, render: l } = e.props;
461
- if (typeof l != "function") return null;
462
- const c = l(i, t, o, n) || "";
463
- return typeof c == "string" ? n("span", c) : c;
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;
464
1888
  }
465
- }), $t = ae({
1889
+ }), Gr = be({
466
1890
  name: "EsForm",
467
- components: { RenderDomForm: Pt, RenderBtn: Ht },
1891
+ components: { RenderDomForm: Qr, RenderBtn: Jr },
468
1892
  props: {
469
1893
  /** 表单 model 数据 */
470
1894
  model: { type: Object, default: () => ({}) },
@@ -483,264 +1907,264 @@ const Pt = ae({
483
1907
  /** 字段映射注入函数 */
484
1908
  fieldFieldOutput: { type: Function, default: void 0 }
485
1909
  },
486
- setup(n, e) {
487
- var _e, ye, we, Pe, He;
488
- const o = qe(), t = () => {
489
- const m = o == null ? void 0 : o.proxy;
490
- return (m == null ? void 0 : m.$refs) || {};
491
- }, i = B(() => {
492
- var L, H;
493
- const m = o == null ? void 0 : o.proxy, v = (H = (L = m == null ? void 0 : m.$vnode) == null ? void 0 : L.data) == null ? void 0 : H.model;
494
- return v && typeof v == "object" && typeof v.callback != "function" ? v : n.model;
495
- }), l = (ye = (_e = ie("$esPlusForm", null)) != null ? _e : pe().EsForm) != null ? ye : {}, c = (Pe = (we = ie("$EsPlus", null)) != null ? we : pe()) != null ? Pe : {}, S = (m) => {
496
- if (!m) return !0;
497
- const v = c.permission;
498
- return typeof v == "function" ? v(m) : !0;
499
- }, F = (m) => m.labelKey && typeof c.t == "function" ? c.t(m.labelKey) : m.label, d = ie("getTableInstantce", null), g = B(() => {
500
- if (d)
501
- return typeof d == "function" ? d() : d;
502
- const m = o == null ? void 0 : o.proxy, v = m == null ? void 0 : m.getTableInstantce;
503
- return typeof v == "function" ? v() : v;
504
- }), a = B(() => {
505
- const m = g.value;
506
- return !!(m && Object.keys(m).length);
507
- }), 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) => {
508
- const { icon: v, ...L } = m;
509
- if (L.size !== void 0) {
510
- const H = ze(L.size);
511
- H !== void 0 && (L.size = H);
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);
512
1936
  } else
513
- L.size = "mini";
514
- return L;
515
- }, b = (m) => {
516
- const v = m.disabled;
517
- return typeof v == "function" ? !!v() : !!v;
518
- }, y = z({}), _ = z(n.formItemList || []), { formInputComponents: T } = It(), E = (l == null ? void 0 : l.$httpRequest) || void 0, N = n.fieldFieldOutput || (l == null ? void 0 : l.fieldFieldOutput), { getEveryFormQueryField: M } = Rt(E), V = z(
519
- ((He = n.layoutFormProps) == null ? void 0 : He.fromLayProps) || {}
520
- ), U = B(() => {
521
- const v = {
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 = {
522
1946
  size: "mini",
523
- ...V.value || {},
524
- model: i.value,
525
- rules: n.rules,
1947
+ ...U.value || {},
1948
+ model: r.value,
1949
+ rules: t.rules,
526
1950
  validateOnRuleChange: !1
527
- }, L = ze(v.size);
528
- return L !== void 0 && (v.size = L), (v.labelWidth === void 0 || v.labelWidth === "" || v.labelWidth === null) && (v.labelWidth = "auto"), v;
529
- }), K = z(/* @__PURE__ */ new Set());
530
- ue(
531
- () => n.formItemList,
532
- async (m) => {
533
- const v = Array.isArray(m) ? m : [], L = v.filter(
534
- (k) => k && k.isInitRun !== !1 && !K.value.has(k.prop)
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)
535
1959
  );
536
- if (!L.length) {
537
- _.value = v.map((k) => {
538
- var q;
539
- if (!k) return null;
540
- const $ = _.value.find((Z) => Z && Z.prop === k.prop);
541
- return (q = $ == null ? void 0 : $.dataOptions) != null && q.length ? { ...k, dataOptions: $.dataOptions } : k;
542
- }).filter((k) => !!k);
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);
543
1967
  return;
544
1968
  }
545
- const H = await M(L, N);
546
- L.forEach((k) => K.value.add(k.prop)), _.value = v.map((k) => {
547
- var Z;
548
- if (!k) return null;
549
- const $ = H.find((G) => G && G.prop === k.prop), q = _.value.find((G) => G && G.prop === k.prop);
550
- return $ ? {
551
- ...k,
552
- dataOptions: $.listData
553
- } : (Z = q == null ? void 0 : q.dataOptions) != null && Z.length ? { ...k, dataOptions: q.dataOptions } : k;
554
- }).filter((k) => !!k);
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);
555
1979
  },
556
1980
  { immediate: !0, deep: !0 }
557
1981
  );
558
- const J = B(() => {
559
- const v = (_.value || []).map(($) => $ ? { ...$, dataOptions: $.dataOptions || [] } : null).filter(($) => {
560
- if (!$) return !1;
561
- const q = $.isHiden, Z = $.isHidden, G = typeof q == "function" ? q : typeof Z == "function" ? Z : null;
562
- return G ? !G(i.value, $, U.value) : !0;
563
- }), H = v.filter(($) => !$.span).length;
564
- let k = 6;
565
- if (H > 0) {
566
- const $ = v.reduce((Z, G) => Z + (G.span || 0), 0), q = 24 - ($ % 24 || ($ ? 24 : 0));
567
- $ === 0 ? H === 1 ? k = 24 : H === 2 ? k = 12 : H === 3 ? k = 8 : k = 6 : (k = q >= H ? Math.floor(q / H) : 6, k > 12 && (k = 12), k < 4 && (k = 6));
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));
568
1992
  }
569
- return v.map(($) => ({ ...$, span: $.span || k }));
570
- }), O = Ot({
571
- layoutFormProps: n.layoutFormProps,
1993
+ return C.map((P) => ({ ...P, span: P.span || I }));
1994
+ }), O = Wr({
1995
+ layoutFormProps: t.layoutFormProps,
572
1996
  get formItemList() {
573
- return J.value;
1997
+ return Q.value;
574
1998
  }
575
1999
  }), {
576
- folded: s,
577
- isBtnHidden: u,
578
- rowLayout: h,
579
- formLayout: w,
580
- getRowColsAlgorithm: A,
2000
+ folded: u,
2001
+ isBtnHidden: g,
2002
+ rowLayout: _,
2003
+ formLayout: k,
2004
+ getRowColsAlgorithm: T,
581
2005
  isFold: x,
582
- getBtnColSpan: D,
583
- formItem: Q,
584
- changeFolded: j
2006
+ getBtnColSpan: z,
2007
+ formItem: X,
2008
+ changeFolded: q
585
2009
  } = O;
586
- ue(
587
- w,
588
- (m) => {
589
- V.value = m;
2010
+ we(
2011
+ k,
2012
+ (b) => {
2013
+ U.value = b;
590
2014
  },
591
2015
  { immediate: !0 }
592
2016
  );
593
- const ne = B(() => ({
594
- colRightBtn: n.configBtn.filter((m) => m.direction === "right" || !m.direction),
595
- colLeftBtn: n.configBtn.filter((m) => m.direction === "left")
596
- })), oe = B(() => typeof n.renderBtn == "function"), le = (m) => {
597
- var H, k;
598
- const v = t().formRef, L = (H = g.value) == null ? void 0 : H.httpRequestInstance;
599
- (k = m.click) == null || k.call(m, i.value, v, L);
600
- }, be = (m, v, L) => {
601
- var k, $, q;
602
- const H = g.value;
603
- L === "query" ? a.value && ((k = H == null ? void 0 : H.httpRequestInstance) == null || k.call(H, m)) : L === "rest" && v && (a.value && (($ = H == null ? void 0 : H.httpRequestInstance) == null || $.call(H, m)), (q = v.resetFields) == null || q.call(v));
604
- }, De = (m) => {
605
- var L, H, k;
606
- const v = t().formRef;
607
- if (m.triggerEvent && ["query", "rest"].includes(m.key || ""))
608
- be(i.value, v, m.key);
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);
609
2033
  else {
610
- m.key === "rest" && v && ((L = v.resetFields) == null || L.call(v));
611
- const $ = (H = g.value) == null ? void 0 : H.httpRequestInstance;
612
- (k = m.click) == null || k.call(m, i.value, v, $);
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);
613
2037
  }
614
- }, je = (m) => {
615
- if (a.value) {
616
- const { style: v, ...L } = m;
617
- return { style: { marginBottom: "10px", ...v || {} }, ...L };
2038
+ }, Ft = (b) => {
2039
+ if (s.value) {
2040
+ const { style: C, ...A } = b;
2041
+ return { style: { marginBottom: "10px", ...C || {} }, ...A };
618
2042
  }
619
- return m;
620
- }, de = () => t().formRef, xe = () => {
621
- const m = de();
622
- return m ? new Promise((v) => {
2043
+ return b;
2044
+ }, Ie = () => n().formRef, nt = () => {
2045
+ const b = Ie();
2046
+ return b ? new Promise((C) => {
623
2047
  try {
624
- const L = m.validate((H) => {
625
- v(!!H);
2048
+ const A = b.validate((N) => {
2049
+ C(!!N);
626
2050
  });
627
- L && typeof L.then == "function" && L.then(v).catch(() => v(!1));
628
- } catch (L) {
629
- v(!1);
2051
+ A && typeof A.then == "function" && A.then(C).catch(() => C(!1));
2052
+ } catch (A) {
2053
+ C(!1);
630
2054
  }
631
2055
  }) : Promise.resolve(!1);
632
- }, Ie = () => {
633
- var m;
634
- return (m = de()) == null ? void 0 : m.resetFields();
635
- }, ge = (m) => {
636
- var v;
637
- return (v = de()) == null ? void 0 : v.clearValidate(m);
638
- }, Oe = (m) => {
639
- var v;
640
- return (v = de()) == null ? void 0 : v.validateField(m);
641
- }, Re = async (m) => {
642
- const L = J.value.filter((k) => k && m.includes(k.prop));
643
- if (!L.length) return;
644
- (await M(L, N)).forEach((k) => {
645
- if (!k) return;
646
- const $ = _.value.findIndex((q) => q && q.prop === k.prop);
647
- $ !== -1 && (_.value[$] = {
648
- ..._.value[$],
649
- dataOptions: k.listData
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
650
2074
  });
651
2075
  });
652
2076
  };
653
- return Fe(() => {
654
- y.value = t().formRef;
655
- const m = o == null ? void 0 : o.proxy, v = m == null ? void 0 : m.bodyFormInstance;
656
- v == null || v(y.value);
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
2081
  }), typeof e.expose == "function" && e.expose({
658
- formItmeRequestInstance: Re,
659
- getFormRef: de,
660
- validate: xe,
661
- resetFields: Ie,
662
- clearValidate: ge,
663
- validateField: Oe
2082
+ formItmeRequestInstance: De,
2083
+ getFormRef: Ie,
2084
+ validate: nt,
2085
+ resetFields: ot,
2086
+ clearValidate: rt,
2087
+ validateField: it
664
2088
  }), {
665
2089
  // 模板使用
666
- formProps: U,
667
- rowLayout: h,
668
- formItem: Q,
669
- isBtnHidden: u,
2090
+ formProps: J,
2091
+ rowLayout: _,
2092
+ formItem: X,
2093
+ isBtnHidden: g,
670
2094
  isFold: x,
671
- folded: s,
672
- getBtnColSpan: D,
673
- isRenderBtn: oe,
674
- colRightLeftList: ne,
675
- formInputComponents: T,
676
- formInstance: y,
2095
+ folded: u,
2096
+ getBtnColSpan: z,
2097
+ isRenderBtn: ge,
2098
+ colRightLeftList: ve,
2099
+ formInputComponents: F,
2100
+ formInstance: f,
677
2101
  // 注意:不要在 setup return 中暴露与 props 同名的 key(configBtn / model /
678
2102
  // btnColSpanRow / renderBtn)——Vue 2 已自动把 props 挂到 vm 实例,
679
2103
  // 重复暴露会在 @vue/composition-api 下触发 "already declared as a prop" 警告。
680
2104
  // 模板中的 :model 引用 resolvedModel(用于解析 v-model 兼容),其它 props 直接使用名称。
681
- resolvedModel: i,
682
- getRowColsAlgorithm: A,
683
- changeFolded: j,
2105
+ resolvedModel: r,
2106
+ getRowColsAlgorithm: T,
2107
+ changeFolded: q,
684
2108
  // 方法
685
- checkPermission: S,
686
- translateLabel: F,
687
- getCompIcon: f,
688
- filterOptions: p,
689
- resolveDisabled: b,
2109
+ checkPermission: l,
2110
+ translateLabel: y,
2111
+ getCompIcon: m,
2112
+ filterOptions: v,
2113
+ resolveDisabled: h,
690
2114
  handleBtnClick: le,
691
- clickBtn: De,
692
- initFormItemOptions: je,
2115
+ clickBtn: It,
2116
+ initFormItemOptions: Ft,
693
2117
  noop: () => {
694
2118
  },
695
2119
  // expose 公开方法(供 $refs.<esForm>.validate() 直接调用,不经过 ctx.expose)
696
- formItmeRequestInstance: Re,
697
- getFormRef: de,
698
- validate: xe,
699
- resetFields: Ie,
700
- clearValidate: ge,
701
- validateField: Oe
2120
+ formItmeRequestInstance: De,
2121
+ getFormRef: Ie,
2122
+ validate: nt,
2123
+ resetFields: ot,
2124
+ clearValidate: rt,
2125
+ validateField: it
702
2126
  };
703
2127
  }
704
2128
  });
705
- function me(n, e, o, t, i, l, c, S) {
706
- var F = typeof n == "function" ? n.options : n;
707
- return e && (F.render = e, F.staticRenderFns = o, F._compiled = !0), l && (F._scopeId = "data-v-" + l), {
708
- exports: n,
709
- options: F
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
710
2134
  };
711
2135
  }
712
- var Lt = function() {
2136
+ var Yr = function() {
713
2137
  var e = this, o = e._self._c;
714
- 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) {
715
- 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) {
716
- return l.stopPropagation(), e.noop.apply(null, arguments);
717
- } } }, "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)];
718
- }), 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) {
719
- 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) {
720
- return e.handleBtnClick(t);
721
- } } }, "el-button", e.filterOptions(t), !1), [e._v(" " + e._s(t.name) + " ")]) : e._e()];
722
- })], 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) {
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.clickBtn(t);
725
- } } }, "el-button", e.filterOptions(t), !1), [e._v(" " + e._s(t.name) + " ")]) : e._e()];
726
- }), 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) {
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.handleBtnClick(t);
729
- } } }, "el-button", e.filterOptions(t), !1), [e._v(" " + e._s(t.name) + " ")]) : e._e()];
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()];
730
2154
  }), 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)]);
731
- }, At = [], Tt = /* @__PURE__ */ me(
732
- $t,
733
- Lt,
734
- At,
2155
+ }, Zr = [], Xr = /* @__PURE__ */ Ne(
2156
+ Gr,
2157
+ Yr,
2158
+ Zr,
735
2159
  !1,
736
2160
  null,
737
2161
  "4a462026"
738
2162
  );
739
- const ve = Tt.exports;
740
- ve.install = function(n) {
741
- n.component(ve.name || "EsForm", ve);
2163
+ const ze = Xr.exports;
2164
+ ze.install = function(t) {
2165
+ t.component(ze.name || "EsForm", ze);
742
2166
  };
743
- const zt = ae({
2167
+ const ei = be({
744
2168
  name: "RenderDomTb",
745
2169
  props: {
746
2170
  row: { type: Object, default: () => ({}) },
@@ -748,22 +2172,22 @@ const zt = ae({
748
2172
  dataKey: String,
749
2173
  render: { type: Function, required: !0 }
750
2174
  },
751
- setup(n) {
2175
+ setup(t) {
752
2176
  return () => {
753
- const { row: e, index: o, dataKey: t, render: i } = n;
754
- if (!e) return ce("span", "-");
755
- const l = t ? e[t] : null;
2177
+ const { row: e, index: o, dataKey: n, render: r } = t;
2178
+ if (!e) return Ce("span", "-");
2179
+ const a = n ? e[n] : null;
756
2180
  try {
757
- const c = i(ce, { value: l, row: e, index: o });
758
- return typeof c == "string" ? ce("span", c) : c;
759
- } catch (c) {
760
- return ce("span", "-");
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
2185
  }
762
2186
  };
763
2187
  }
764
- }), Et = (n) => n.charAt(0).toUpperCase() + n.slice(1).toLowerCase(), Dt = ae({
2188
+ }), ti = (t) => t.charAt(0).toUpperCase() + t.slice(1).toLowerCase(), ni = be({
765
2189
  name: "EsTableColumnItem",
766
- components: { RenderDomTb: zt },
2190
+ components: { RenderDomTb: ei },
767
2191
  props: {
768
2192
  cols: {
769
2193
  type: Object,
@@ -771,64 +2195,64 @@ const zt = ae({
771
2195
  }
772
2196
  },
773
2197
  setup() {
774
- var o, t;
775
- const n = (t = (o = ie("$EsPlus", null)) != null ? o : pe()) != null ? t : {};
2198
+ var o, n;
2199
+ const t = (n = (o = Se("$EsPlus", null)) != null ? o : Pe()) != null ? n : {};
776
2200
  return {
777
- columnBindAttr: (i) => {
778
- const l = {};
779
- for (const c in i)
780
- if (!(c === "groups" || c === "scopedSlots" || c === "render"))
781
- if (c.includes("-")) {
782
- const S = c.split("-");
783
- let F = S[0];
784
- for (let d = 1; d < S.length; d++)
785
- F += Et(S[d]);
786
- l[F] = i[c];
787
- } 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];
788
- return l.align || (l.align = "center"), l;
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;
789
2213
  }
790
2214
  };
791
2215
  }
792
2216
  });
793
- var jt = function() {
2217
+ var oi = function() {
794
2218
  var e = this, o = e._self._c;
795
- 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) {
796
- 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) {
797
- 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("-")])];
798
- } } : t.scopedSlots && t.scopedSlots.customRender ? { key: "default", fn: function(l) {
799
- 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("-")])];
800
- } } : null], null, !0) }, "el-table-column", e.columnBindAttr(Object.assign({}, t, { columnIndex: i })), !1));
801
- }), 1) : e.cols.render && typeof e.cols.render == "function" ? o("el-table-column", e._b({ scopedSlots: e._u([{ key: "default", fn: function(t) {
802
- 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("-")])];
803
- } }]) }, "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) {
804
- 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("-")])];
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("-")])];
805
2229
  } }], 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));
806
- }, qt = [], Nt = /* @__PURE__ */ me(
807
- Dt,
808
- jt,
809
- qt,
2230
+ }, ri = [], ii = /* @__PURE__ */ Ne(
2231
+ ni,
2232
+ oi,
2233
+ ri,
810
2234
  !1,
811
2235
  null,
812
2236
  null
813
2237
  );
814
- const Mt = Nt.exports, st = (n) => n ? n.startsWith("el-icon-") ? n : `el-icon-${n.replace(/([a-z])([A-Z])/g, "$1-$2").replace(/[\s_]+/g, "-").toLowerCase()}` : void 0, Vt = ae({
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({
815
2239
  name: "RenderDomTbBtn",
816
2240
  props: {
817
2241
  render: { type: Function, required: !0 }
818
2242
  },
819
- setup(n) {
2243
+ setup(t) {
820
2244
  return () => {
821
- if (!n.render || typeof n.render != "function") return null;
2245
+ if (!t.render || typeof t.render != "function") return null;
822
2246
  try {
823
- return n.render();
2247
+ return t.render();
824
2248
  } catch (e) {
825
2249
  return null;
826
2250
  }
827
2251
  };
828
2252
  }
829
- }), Kt = ae({
2253
+ }), li = be({
830
2254
  name: "EsTableBtns",
831
- components: { RenderDom: Vt },
2255
+ components: { RenderDom: si },
832
2256
  props: {
833
2257
  leftText: { type: String, default: "" },
834
2258
  btnConfig: {
@@ -840,120 +2264,120 @@ const Mt = Nt.exports, st = (n) => n ? n.startsWith("el-icon-") ? n : `el-icon-$
840
2264
  default: () => ({})
841
2265
  }
842
2266
  },
843
- setup(n) {
844
- var a, f;
845
- const e = (f = (a = ie("$EsPlus", null)) != null ? a : pe()) != null ? f : {}, o = (p, b) => {
846
- if (!b) return !0;
847
- const y = e.permission;
848
- return typeof y == "function" ? y(b) : !0;
849
- }, t = (p) => p.map((b) => {
850
- const y = { ...b };
851
- return o([], b.permissionValue) ? typeof b.isHide == "function" ? y.isHide = b.isHide() : y.isHide = b.isHide || !1 : y.isHide = !0, y;
852
- }), i = B(() => t(
853
- (n.btnConfig || []).filter((p) => Ye(p) === "left")
854
- ).filter((p) => !p.isHide)), l = B(() => t(
855
- (n.btnConfig || []).filter((p) => Ye(p) === "right")
856
- ).filter((p) => !p.isHide)), c = B(() => !!n.leftText || i.value.length > 0 || l.value.length > 0);
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);
857
2281
  return {
858
- processedBtnLeft: i,
859
- processedBtnRight: l,
860
- showContainer: c,
861
- getDisabledState: (p) => typeof p.disabled == "function" ? p.disabled() : p.disabled || !1,
862
- buttonContainerStyle: (p) => ({
2282
+ processedBtnLeft: r,
2283
+ processedBtnRight: a,
2284
+ showContainer: i,
2285
+ getDisabledState: (v) => typeof v.disabled == "function" ? v.disabled() : v.disabled || !1,
2286
+ buttonContainerStyle: (v) => ({
863
2287
  display: "inline-block",
864
- marginLeft: p !== 0 ? "8px" : "0px"
2288
+ marginLeft: v !== 0 ? "8px" : "0px"
865
2289
  }),
866
- getCompIcon: st,
867
- filterOptions: (p) => {
2290
+ getCompIcon: Jn,
2291
+ filterOptions: (v) => {
868
2292
  const {
869
- render: b,
870
- click: y,
871
- icon: _,
872
- permissionValue: T,
873
- code: E,
874
- isHide: N,
875
- name: M,
876
- size: V,
877
- ...U
878
- } = p;
879
- return U;
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;
880
2304
  },
881
- resolveBtnSize: (p) => ze(p.size) || "mini"
2305
+ resolveBtnSize: (v) => St(v.size) || "mini"
882
2306
  };
883
2307
  }
884
2308
  });
885
- var Wt = function() {
2309
+ var ci = function() {
886
2310
  var e = this, o = e._self._c;
887
- 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) {
888
- 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)];
889
- })], 2), o("div", { staticClass: "btn-right" }, [e._l(e.processedBtnRight, function(t, i) {
890
- 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)];
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
2315
  })], 2)])]) : e._e();
892
- }, Ut = [], Qt = /* @__PURE__ */ me(
893
- Kt,
894
- Wt,
895
- Ut,
2316
+ }, ui = [], fi = /* @__PURE__ */ Ne(
2317
+ li,
2318
+ ci,
2319
+ ui,
896
2320
  !1,
897
2321
  null,
898
2322
  "2b641efd"
899
2323
  );
900
- const Jt = Qt.exports;
901
- function Zt(n, e, o, t, i) {
902
- const l = z(400), c = z(null), S = (f) => Math.sign(f) === -1, F = () => {
903
- var y, _, T, E;
904
- const f = ((y = e.value) == null ? void 0 : y.offsetHeight) || 0, p = ((T = (_ = o.value) == null ? void 0 : _.$el) == null ? void 0 : T.offsetHeight) || 0, b = ((E = t.value) == null ? void 0 : E.offsetHeight) || 0;
905
- return Math.round(b + f + p);
906
- }, d = () => {
907
- var V, U, K, J, O;
908
- const f = n.value;
909
- if (!f) return;
910
- 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 - F(), _ = S(y) ? F() + 300 : b, T = ((U = t.value) == null ? void 0 : U.offsetHeight) || 0, E = ((K = e.value) == null ? void 0 : K.offsetHeight) || 0, N = ((O = (J = o.value) == null ? void 0 : J.$el) == null ? void 0 : O.offsetHeight) || 0, M = Math.floor(_) - Math.round(T + E + N);
911
- l.value !== M && (l.value = M);
912
- }, g = () => {
913
- Fe(() => {
914
- if (!n.value || typeof ResizeObserver == "undefined") return;
915
- c.value = new ResizeObserver(() => {
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(() => {
916
2340
  requestAnimationFrame(() => {
917
- n.value && d();
2341
+ t.value && c();
918
2342
  });
919
2343
  });
920
- const f = i.heightType === "height" && n.value.parentElement || n.value;
921
- c.value.observe(f), d(), e.value && c.value.observe(e.value), t.value && c.value.observe(t.value);
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);
922
2346
  });
923
- }, a = () => {
924
- c.value && (c.value.disconnect(), c.value = null);
2347
+ }, s = () => {
2348
+ i.value && (i.value.disconnect(), i.value = null);
925
2349
  };
926
- return Ne(() => g()), kt(() => a()), { tableHeight: l, resizeObservers: d, startObserver: g, stopObserver: a };
2350
+ return Mt(() => p()), jr(() => s()), { tableHeight: a, resizeObservers: c, startObserver: p, stopObserver: s };
927
2351
  }
928
- function Gt(n) {
929
- const e = vt(), o = z([]), t = z({}), i = z(!1), l = () => {
930
- o.value = [...e.multipleSelection], t.value = { ...e.selectionsByPage }, i.value = e.isInitChange;
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;
931
2355
  };
932
2356
  return {
933
2357
  multipleSelection: o,
934
- selectionsByPage: t,
935
- isInitChange: i,
936
- handleSelectionChange: (d, g) => {
937
- e.isInitChange && n || (Ct(e, d, g, n), l());
2358
+ selectionsByPage: n,
2359
+ isInitChange: r,
2360
+ handleSelectionChange: (c, p) => {
2361
+ e.isInitChange && t || (po(e, c, p, t), a());
938
2362
  },
939
- clearAllSelection: (d) => {
940
- d ? _t(e, d) : (e.multipleSelection = [], e.selectionsByPage = {}), l();
2363
+ clearAllSelection: (c) => {
2364
+ c ? fo(e, c) : (e.multipleSelection = [], e.selectionsByPage = {}), a();
941
2365
  },
942
- initSelection: (d, g) => {
943
- if (e.isInitChange = !0, l(), !g) {
944
- e.isInitChange = !1, l();
2366
+ initSelection: (c, p) => {
2367
+ if (e.isInitChange = !0, a(), !p) {
2368
+ e.isInitChange = !1, a();
945
2369
  return;
946
2370
  }
947
- n ? Fe(() => {
948
- bt(e, d, g, n), e.isInitChange = !1, l();
949
- }) : Fe(() => {
950
- var a;
951
- (a = g.clearSelection) == null || a.call(g), e.isInitChange = !1, l();
2371
+ Xe(t ? () => {
2372
+ uo(e, c, p, t), e.isInitChange = !1, a();
2373
+ } : () => {
2374
+ var s;
2375
+ (s = p.clearSelection) == null || s.call(p), e.isInitChange = !1, a();
952
2376
  });
953
2377
  }
954
2378
  };
955
2379
  }
956
- const et = {
2380
+ const pn = {
957
2381
  multiSelect: !1,
958
2382
  expand: !1,
959
2383
  snIndex: !1,
@@ -963,7 +2387,7 @@ const et = {
963
2387
  headerCellStyle: { background: "#f5f7fa" },
964
2388
  highlightCurrentRow: !0,
965
2389
  cachePageSelection: !0
966
- }, Yt = /* @__PURE__ */ new Set([
2390
+ }, gi = /* @__PURE__ */ new Set([
967
2391
  "multiSelect",
968
2392
  "expand",
969
2393
  "snIndex",
@@ -987,24 +2411,24 @@ const et = {
987
2411
  "estimatedRowHeight",
988
2412
  "overscanCount",
989
2413
  "rowClassName"
990
- ]), Xt = (n) => n.toLowerCase().replace(/(\s|^)[a-z]/g, (e) => e.toUpperCase()), en = (n) => {
2414
+ ]), mi = (t) => t.toLowerCase().replace(/(\s|^)[a-z]/g, (e) => e.toUpperCase()), yi = (t) => {
991
2415
  const e = {};
992
- for (const o in n)
2416
+ for (const o in t)
993
2417
  if (!(o === "groups" || o === "scopedSlots" || o === "render"))
994
2418
  if (o.includes("-")) {
995
- const t = o.split("-");
996
- let i = t[0];
997
- for (let l = 1; l < t.length; l++)
998
- i += Xt(t[l]);
999
- e[i] = n[o];
1000
- } else o === "key" && (e.prop = n[o]), e[o] = n[o];
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];
1001
2425
  return e.align || (e.align = "center"), e;
1002
- }, tt = (n) => {
2426
+ }, vn = (t) => {
1003
2427
  const e = ["total", "pageSize", "current", "tableData"];
1004
- return fe(n) ? Object.keys(n).every((o) => e.find((t) => t === o) && n[o] && typeof n[o] == "string") : !1;
1005
- }, tn = ae({
2428
+ return ke(t) ? Object.keys(t).every((o) => e.find((n) => n === o) && t[o] && typeof t[o] == "string") : !1;
2429
+ }, hi = be({
1006
2430
  name: "EsTable",
1007
- components: { ColumnItem: Mt, TableBtns: Jt },
2431
+ components: { ColumnItem: ai, TableBtns: di },
1008
2432
  // 关闭自动 attrs 继承,避免 fallthrough 重复绑定
1009
2433
  inheritAttrs: !1,
1010
2434
  props: {
@@ -1024,7 +2448,7 @@ const et = {
1024
2448
  },
1025
2449
  options: {
1026
2450
  type: Object,
1027
- default: () => ({ ...et })
2451
+ default: () => ({ ...pn })
1028
2452
  },
1029
2453
  pagination: {
1030
2454
  type: Object,
@@ -1038,55 +2462,55 @@ const et = {
1038
2462
  "size-change",
1039
2463
  "change-table-sort"
1040
2464
  ],
1041
- setup(n, { emit: e, slots: o, attrs: t, expose: i }) {
1042
- var Ve, Ke, We, Ue;
1043
- const l = qe(), c = (Ke = (Ve = ie(
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(
1044
2468
  "$esPlusTable",
1045
2469
  null
1046
- )) != null ? Ve : pe().EsTable) != null ? Ke : {}, S = (Ue = (We = ie("$EsPlus", null)) != null ? We : pe()) != null ? Ue : {}, F = (r) => {
1047
- if (!r) return !0;
1048
- const R = S.permission;
1049
- return typeof R == "function" ? R(r) : !0;
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
2474
  };
1051
- (n.options.virtual === !0 || n.options.engine === "virtual") && console.warn(
2475
+ (t.options.virtual === !0 || t.options.engine === "virtual") && console.warn(
1052
2476
  "[@es-plus/vue2] 虚拟滚动 (virtual: true) 在 Vue 2 + Element UI 下不可用,已降级为普通 el-table 渲染。如需虚拟滚动请使用 Vue 3 + Element Plus 版本(@es-plus/vue3)。"
1053
2477
  );
1054
- 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([]), _ = B(() => y.value && y.value.length ? y.value : n.dataSource), T = z([...n.columns]);
1055
- ue(
1056
- () => n.columns,
1057
- (r) => {
1058
- T.value = [...r];
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];
1059
2483
  },
1060
2484
  { deep: !0 }
1061
2485
  );
1062
- const E = z(!1), N = z(!1), M = z(!1), V = () => {
1063
- const r = l == null ? void 0 : l.proxy;
1064
- !r || !r.$refs || (p.value = r.$refs.tableContainerEl || null, a.value = r.$refs.headBarRef || null, f.value = r.$refs.paginationRef || null);
1065
- }, U = ie("bodyFormInstance", () => {
1066
- }), K = ie("getVisibleShow", !1), J = B(
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(
1067
2491
  () => typeof K == "function" ? K() : K
1068
- ), O = z({
2492
+ ), O = L({
1069
2493
  pageSize: 10,
1070
2494
  current: 1,
1071
2495
  total: 0,
1072
2496
  pageSizes: [],
1073
2497
  size: "small",
1074
2498
  isSmall: !0,
1075
- ...n.pagination
1076
- }), s = z(null), u = B(() => {
1077
- const r = n.options.entryQuery;
1078
- return r && fe(r) && Object.keys(r).length ? r : {};
1079
- }), h = B(() => {
1080
- if (n.options.configTableOut && fe(n.options.configTableOut) && Object.keys(n.options.configTableOut).length && tt(n.options.configTableOut))
1081
- return n.options.configTableOut;
1082
- if (c != null && c.configQueryFieldOutput && typeof c.configQueryFieldOutput == "function") {
1083
- const r = c.configQueryFieldOutput({
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({
1084
2508
  total: "records",
1085
2509
  pageSize: "pageSize",
1086
2510
  current: "pageNo",
1087
2511
  tableData: "rows"
1088
2512
  });
1089
- if (tt(r)) return r;
2513
+ if (vn(d)) return d;
1090
2514
  }
1091
2515
  return {
1092
2516
  total: "records",
@@ -1094,382 +2518,394 @@ const et = {
1094
2518
  current: "pageNo",
1095
2519
  tableData: "rows"
1096
2520
  };
1097
- }), w = B(() => {
1098
- const r = l == null ? void 0 : l.proxy;
1099
- if (!r || !r.$children) return {};
1100
- const R = r.$children.find((C) => {
1101
- var I;
1102
- return ((I = C == null ? void 0 : C.$options) == null ? void 0 : I.name) === "EsForm";
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";
1103
2527
  });
1104
- return R ? (s.value = R, U(R), R) : {};
1105
- }), A = B(() => {
1106
- const r = o.default;
1107
- if (typeof r == "function") {
1108
- const C = r();
1109
- return Array.isArray(C) ? C.length > 0 : !!C;
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;
2534
+ }
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(
2554
+ () => {
2555
+ var d;
2556
+ return ((d = le.value) == null ? void 0 : d.layout) || "prev, pager, next, jumper, sizes, ->, total";
2557
+ }
2558
+ ), It = E(
2559
+ () => {
2560
+ var d;
2561
+ return ((d = le.value) == null ? void 0 : d.pageSizes) || O.value.pageSizes;
1110
2562
  }
1111
- const R = o.default;
1112
- return Array.isArray(R) && R.length > 0;
1113
- }), x = B(
1114
- () => n.options.heightType || "auto"
1115
- ), D = B(() => typeof n.options.tabHeight == "number" ? `${n.options.tabHeight}px` : x.value === "height" && typeof n.options.height == "number" ? `${n.options.height}px` : "100%"), Q = B(() => ({
1116
- [x.value]: D.value
1117
- })), j = B(() => n.headBarClass ? {
1118
- type: typeof n.headBarClass == "string" ? "string" : "object",
1119
- value: n.headBarClass
1120
- } : { type: "string", value: "" }), ne = B(() => {
1121
- const r = j.value;
1122
- return r.type === "object" && r.value && typeof r.value == "object" ? r.value : {};
1123
- }), oe = B(() => {
1124
- const r = j.value;
1125
- return r.type === "string" ? r.value : "";
1126
- }), le = B(() => {
1127
- const r = c == null ? void 0 : c.paginationLayout;
1128
- return r ? typeof r == "function" ? r() : r : null;
1129
- }), be = B(
2563
+ ), Ft = E(
1130
2564
  () => {
1131
- var r;
1132
- return ((r = le.value) == null ? void 0 : r.layout) || "prev, pager, next, jumper, sizes, ->, total";
2565
+ var d, B;
2566
+ return (B = (d = le.value) == null ? void 0 : d.isSmall) != null ? B : O.value.isSmall;
1133
2567
  }
1134
- ), De = B(
2568
+ ), Ie = E(
1135
2569
  () => {
1136
- var r;
1137
- return ((r = le.value) == null ? void 0 : r.pageSizes) || O.value.pageSizes;
2570
+ var d, B;
2571
+ return (B = (d = le.value) == null ? void 0 : d.background) != null ? B : !0;
1138
2572
  }
1139
- ), je = B(
2573
+ ), nt = E(
1140
2574
  () => {
1141
- var r, R;
1142
- return (R = (r = le.value) == null ? void 0 : r.isSmall) != null ? R : O.value.isSmall;
2575
+ var d;
2576
+ return ((d = le.value) == null ? void 0 : d.prevText) || "";
1143
2577
  }
1144
- ), de = B(
2578
+ ), ot = E(
1145
2579
  () => {
1146
- var r, R;
1147
- return (R = (r = le.value) == null ? void 0 : r.background) != null ? R : !0;
2580
+ var d;
2581
+ return ((d = le.value) == null ? void 0 : d.nextText) || "";
1148
2582
  }
1149
- ), xe = B(() => ({
2583
+ ), rt = E(() => ({
1150
2584
  position: x.value === "height" ? "absolute" : "static",
1151
2585
  bottom: "0px",
1152
2586
  left: "0px",
1153
2587
  // z-index 必须高于 element-loading 蒙层(默认 2000),否则请求加载过程中分页会被蒙层遮挡。
1154
2588
  zIndex: 2001,
1155
2589
  background: "#fff"
1156
- })), Ie = B(() => n.options.loading || E.value), ge = B(
1157
- () => !!n.options.actionUrl || n.options.apiParams && fe(n.options.apiParams) && Object.keys(n.options.apiParams).length > 0
1158
- ), Oe = B(() => {
1159
- const r = T.value.filter((C) => !C.hidCol);
1160
- if (r.forEach((C) => {
1161
- C.prop !== "operate" && C.key !== "operate" && (C.prop || C.key) && !C.formatter && (C.formatter = (P) => {
1162
- const I = P[C.prop] || P[C.key];
1163
- return I == null || I === "" ? C.emptyPlaceholder || "-" : I;
1164
- }), (C.prop === "operate" || C.key === "operate") && C.btns && !C.render && (C.render = (P, { row: I }) => {
1165
- var se;
1166
- return ce("div", [
1167
- (se = C.btns) == null ? void 0 : se.filter((Y) => F(Y.permissionValue)).map(
1168
- (Y) => (
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) => (
1169
2603
  // Element UI text 按钮:type="text" 而非 text 属性
1170
- ce(
2604
+ Ce(
1171
2605
  "el-button",
1172
2606
  {
1173
2607
  props: {
1174
2608
  type: "text"
1175
2609
  },
1176
2610
  attrs: {
1177
- ...Y.type ? { "data-btn-type": Y.type } : {}
2611
+ ...ee.type ? { "data-btn-type": ee.type } : {}
1178
2612
  },
1179
2613
  on: {
1180
2614
  click: () => {
1181
- var re;
1182
- return (re = Y.clickEvent) == null ? void 0 : re.call(Y, I);
2615
+ var ye;
2616
+ return (ye = ee.clickEvent) == null ? void 0 : ye.call(ee, R);
1183
2617
  }
1184
2618
  }
1185
2619
  },
1186
- Y.name
2620
+ ee.name
1187
2621
  )
1188
2622
  )
1189
2623
  )
1190
2624
  ]);
1191
2625
  });
1192
- }), r.length > 0 && r.every((C) => C.width && !C.minWidth)) {
1193
- let C = -1;
1194
- for (let P = r.length - 1; P >= 0; P--) {
1195
- const I = r[P];
1196
- if (!I.fixed && I.prop !== "operate" && I.key !== "operate") {
1197
- C = P;
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 = $;
1198
2632
  break;
1199
2633
  }
1200
2634
  }
1201
- if (C === -1 && (C = r.length - 1), C >= 0) {
1202
- const P = r[C];
1203
- P.minWidth = P.width, delete P.width;
2635
+ if (w === -1 && (w = d.length - 1), w >= 0) {
2636
+ const $ = d[w];
2637
+ $.minWidth = $.width, delete $.width;
1204
2638
  }
1205
2639
  }
1206
- return r;
1207
- }), Re = B(() => {
1208
- const r = en({ ...et, ...n.options }), { align: R, ...C } = r, P = {};
1209
- for (const I in C)
1210
- Yt.has(I) || (P[I] = C[I]);
1211
- if (P.size !== void 0) {
1212
- const I = ze(P.size);
1213
- I !== void 0 && (P.size = I);
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);
1214
2648
  }
1215
- return P;
1216
- }), { tableHeight: _e, resizeObservers: ye } = Zt(
2649
+ return $;
2650
+ }), { tableHeight: Ue, resizeObservers: Ae } = pi(
2651
+ v,
2652
+ s,
1217
2653
  p,
1218
- a,
1219
- g,
1220
- f,
2654
+ m,
1221
2655
  {
1222
2656
  heightType: x.value,
1223
- tabHeight: n.options.tabHeight
2657
+ tabHeight: t.options.tabHeight
1224
2658
  }
1225
- ), we = B(() => {
1226
- const r = { ...Re.value, ...t };
1227
- return n.options.rowkey && (r.rowKey = n.options.rowkey), x.value === "height" ? r.height = _e.value : x.value === "maxHeight" && (r.maxHeight = _e.value), r;
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;
1228
2662
  }), {
1229
- multipleSelection: Pe,
1230
- handleSelectionChange: He,
1231
- initSelection: m,
1232
- clearAllSelection: v
1233
- } = Gt(n.options.rowkey), L = (r) => {
1234
- He(r, O.value.current || 1);
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);
1235
2669
  };
1236
- ue(J, async (r, R) => {
1237
- var C, P;
1238
- r && r !== R && (n.options.actionUrl && await $e(), (P = (C = d.value) == null ? void 0 : C.doLayout) == null || P.call(C));
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));
1239
2673
  });
1240
- let H = JSON.stringify(n.pagination || {});
1241
- n.pagination && Object.keys(n.pagination).length && (O.value = { ...O.value, ...n.pagination }, M.value = n.pagination.total !== void 0);
1242
- const k = () => {
1243
- const r = { ...O.value };
1244
- H = JSON.stringify(r), e("update:pagination", r);
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);
1245
2679
  };
1246
- ue(
1247
- () => n.pagination,
1248
- (r) => {
1249
- const R = JSON.stringify(r || {});
1250
- R !== H && (H = R, O.value = { ...O.value, ...r }, M.value = r.total !== void 0);
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);
1251
2685
  }
1252
- ), ue(
1253
- () => n.dataSource,
1254
- (r) => {
1255
- m(r, d.value);
2686
+ ), we(
2687
+ () => t.dataSource,
2688
+ (d) => {
2689
+ A(d, c.value);
1256
2690
  }
1257
2691
  );
1258
- let $ = null;
1259
- ue(y, (r) => {
1260
- Array.isArray(r) && r !== $ && ($ = r, e("update:dataSource", r));
1261
- }), Ne(() => {
1262
- V(), ge.value && n.options.isInitRun !== !1 && $e(), Fe(() => {
1263
- V(), w.value, typeof requestAnimationFrame != "undefined" ? requestAnimationFrame(() => {
1264
- V(), ye();
1265
- }) : ye();
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();
1266
2700
  });
1267
2701
  });
1268
- const q = (r, R) => {
1269
- const C = [
2702
+ const ae = (d, B) => {
2703
+ const w = [
1270
2704
  { eventName: "brcb", isReturn: !0 },
1271
2705
  { eventName: "qrcb", isReturn: !0 }
1272
- ], P = C.findIndex((I) => I.eventName === r);
1273
- if (n.options.listenToCallBack && n.options.listenToCallBack[r] && P !== -1 && C[P].isReturn)
1274
- return n.options.listenToCallBack[r](R);
1275
- }, Z = (r, R) => {
1276
- const C = h.value;
1277
- if (fe(C) && Object.keys(C).length) {
1278
- const P = {};
1279
- Object.entries(C).forEach(([I, se]) => {
1280
- var Ce;
1281
- if (!R.includes(I)) return;
1282
- const re = (Ce = r[se]) != null ? Ce : St(r, se);
1283
- I === "tableData" ? y.value = Array.isArray(re) ? re : [] : P[I] = typeof re == "number" ? re : parseInt(re, 10) || 0;
1284
- }), Object.keys(P).length && (O.value = { ...O.value, ...P });
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, ...$ });
1285
2719
  }
1286
- }, G = (r, R = {}) => {
1287
- var Ze, Ge;
1288
- const { success: C, fail: P } = R, I = ((Ze = n.options) == null ? void 0 : Ze.apiParams) || {}, se = ((Ge = n.options) == null ? void 0 : Ge.actionUrl) || I.url || "";
1289
- if (!se || !Object.keys(I).length) return;
1290
- const Y = w.value, re = Y && Y.props && Y.props.model ? { ...Y.props.model } : u.value || {}, Ce = q("brcb", {
1291
- ...re,
1292
- ...r,
1293
- ...I.model || {}
1294
- }), ut = fe(Ce) ? Ce : { ...re, ...I.model || {}, ...r }, Qe = { ...I.options || {} };
1295
- I != null && I.method && (Qe.method = I == null ? void 0 : I.method);
1296
- const Je = async (dt) => {
1297
- if (!E.value) {
1298
- E.value = !0;
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;
1299
2733
  try {
1300
- const he = await dt({
1301
- url: se,
1302
- formParams: ut,
1303
- headers: I.headers || {},
1304
- ...Qe,
1305
- ...r
1306
- }), ft = q("qrcb", he) || he;
1307
- fe(he) && Object.keys(he).length && typeof C == "function" && C(ft);
1308
- } catch (he) {
1309
- typeof P == "function" && P(he);
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);
1310
2744
  } finally {
1311
- E.value = !1;
2745
+ H.value = !1;
1312
2746
  }
1313
2747
  }
1314
2748
  };
1315
- n.options.httpRequest ? Je(n.options.httpRequest) : c.$httpRequest && Je(c.$httpRequest);
1316
- }, $e = (r) => new Promise((R, C) => {
1317
- O.value = { ...O.value, current: 1 }, G(
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(
1318
2752
  {
1319
- ...r || {},
2753
+ ...d || {},
1320
2754
  pageIndex: O.value.current,
1321
2755
  pageSize: O.value.pageSize
1322
2756
  },
1323
2757
  {
1324
- success: (P) => {
1325
- Z(P, ["total", "tableData"]), Object.keys(n.pagination).length && k(), R(P);
2758
+ success: ($) => {
2759
+ Rt($, ["total", "tableData"]), Object.keys(t.pagination).length && j(), B($);
1326
2760
  },
1327
- fail: (P) => {
1328
- C(P);
2761
+ fail: ($) => {
2762
+ w($);
1329
2763
  }
1330
2764
  }
1331
2765
  );
1332
- }), rt = () => {
1333
- G(
2766
+ }), Gn = () => {
2767
+ Bt(
1334
2768
  {
1335
2769
  pageIndex: O.value.current,
1336
2770
  pageSize: O.value.pageSize
1337
2771
  },
1338
2772
  {
1339
- success: (r) => {
1340
- Z(r, ["total", "tableData"]), k(), e("pagination-current-change", O.value);
2773
+ success: (d) => {
2774
+ Rt(d, ["total", "tableData"]), j(), e("pagination-current-change", O.value);
1341
2775
  }
1342
2776
  }
1343
2777
  );
1344
- }, at = () => {
1345
- G(
2778
+ }, Yn = () => {
2779
+ Bt(
1346
2780
  {
1347
2781
  pageIndex: O.value.current,
1348
2782
  pageSize: O.value.pageSize
1349
2783
  },
1350
2784
  {
1351
- success: (r) => {
1352
- Z(r, ["total", "tableData"]), k();
2785
+ success: (d) => {
2786
+ Rt(d, ["total", "tableData"]), j();
1353
2787
  }
1354
2788
  }
1355
2789
  );
1356
- }, lt = (r) => {
1357
- O.value = { ...O.value, pageSize: r, current: 1 }, ge.value ? at() : (k(), e("size-change", O.value, r));
1358
- }, it = (r) => {
1359
- O.value = { ...O.value, current: r }, ge.value ? rt() : (k(), e("pagination-current-change", O.value));
1360
- }, ct = (r) => {
1361
- e("change-table-sort", r);
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);
1362
2796
  };
1363
- ot("getTableInstantce", () => ({
1364
- tableRef: d,
1365
- toggleSelection: (r) => {
1366
- var R, C;
1367
- r ? r.forEach((P) => {
1368
- var I, se;
1369
- (se = (I = d.value) == null ? void 0 : I.toggleRowSelection) == null || se.call(I, P);
1370
- }) : (C = (R = d.value) == null ? void 0 : R.clearSelection) == null || C.call(R);
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);
1371
2805
  },
1372
- clearAllSelection: () => v(d.value),
1373
- refsInstance: () => d.value,
1374
- httpRequestInstance: $e
2806
+ clearAllSelection: () => N(c.value),
2807
+ refsInstance: () => c.value,
2808
+ httpRequestInstance: ct
1375
2809
  }));
1376
- const Me = {
1377
- httpRequestInstance: $e,
1378
- getSelectionRows: () => Pe.value,
2810
+ const Wt = {
2811
+ httpRequestInstance: ct,
2812
+ getSelectionRows: () => b.value,
1379
2813
  clearSelection: () => {
1380
- var r, R;
1381
- return (R = (r = d.value) == null ? void 0 : r.clearSelection) == null ? void 0 : R.call(r);
2814
+ var d, B;
2815
+ return (B = (d = c.value) == null ? void 0 : d.clearSelection) == null ? void 0 : B.call(d);
1382
2816
  },
1383
- clearAllSelection: () => v(d.value),
2817
+ clearAllSelection: () => N(c.value),
1384
2818
  refresh: () => {
1385
- var r, R;
1386
- return (R = (r = d.value) == null ? void 0 : r.doLayout) == null ? void 0 : R.call(r);
2819
+ var d, B;
2820
+ return (B = (d = c.value) == null ? void 0 : d.doLayout) == null ? void 0 : B.call(d);
1387
2821
  },
1388
2822
  // virtual 滚动占位(保持 API 一致,Vue 2 版本无效)
1389
- scrollToRow: (r) => {
2823
+ scrollToRow: (d) => {
1390
2824
  }
1391
2825
  };
1392
- return typeof i == "function" && i(Me), {
2826
+ return typeof r == "function" && r(Wt), {
1393
2827
  // refs
1394
- tableRef: d,
1395
- tbBtnRef: g,
1396
- headBarRef: a,
1397
- paginationRef: f,
1398
- tableId: b,
1399
- tableData: y,
1400
- effectiveDataSource: _,
2828
+ tableRef: c,
2829
+ tbBtnRef: p,
2830
+ headBarRef: s,
2831
+ paginationRef: m,
2832
+ tableId: h,
2833
+ tableData: f,
2834
+ effectiveDataSource: S,
1401
2835
  // state
1402
- loadStatus: Ie,
2836
+ loadStatus: it,
1403
2837
  paginationConfig: O,
1404
- formInstance: s,
2838
+ formInstance: u,
1405
2839
  // computeds
1406
- filteredColumns: Oe,
1407
- tableBindAttrs: we,
1408
- hasDefaultSlot: A,
2840
+ filteredColumns: at,
2841
+ tableBindAttrs: lt,
2842
+ hasDefaultSlot: T,
1409
2843
  heightType: x,
1410
- tabHeight: D,
1411
- slotStyles: j,
1412
- slotStyleValue: ne,
1413
- slotClassValue: oe,
1414
- slotState: N,
1415
- showPagination: M,
1416
- containerStyle: Q,
1417
- paginationStyle: xe,
1418
- layout: be,
1419
- paginationPageSizes: De,
1420
- paginationIsSmall: je,
1421
- paginationBackground: de,
2844
+ tabHeight: z,
2845
+ 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,
1422
2858
  // handlers
1423
- handleTableSelectionChange: L,
1424
- changeTableSort: ct,
1425
- handleSizeChange: lt,
1426
- handleIndexChange: it,
2859
+ handleTableSelectionChange: I,
2860
+ changeTableSort: eo,
2861
+ handleSizeChange: Zn,
2862
+ handleIndexChange: Xn,
1427
2863
  // exposed methods (also accessible via $refs.tableRef.xxx in Vue 2)
1428
- ...Me,
1429
- instance: l,
1430
- resizeObservers: ye
2864
+ ...Wt,
2865
+ instance: a,
2866
+ resizeObservers: Ae
1431
2867
  };
1432
2868
  }
1433
2869
  });
1434
- var nn = function() {
2870
+ var bi = function() {
1435
2871
  var e = this, o = e._self._c;
1436
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() {
1437
2873
  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("暂无数据")])])];
1438
- }, proxy: !0 }]) }, "el-table", e.tableBindAttrs, !1), e._l(e.filteredColumns, function(t, i) {
1439
- 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 }) {
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 }) {
1440
2876
  return [e._t(
1441
- t.scopedSlots.customRender,
2877
+ n.scopedSlots.customRender,
1442
2878
  null,
1443
- { scope: l },
1444
- Object.assign({}, t, {
1445
- columnIndex: i,
1446
- row: l.row,
1447
- column: l.column
2879
+ { scope: a },
2880
+ Object.assign({}, n, {
2881
+ columnIndex: r,
2882
+ row: a.row,
2883
+ column: a.column
1448
2884
  })
1449
2885
  )];
1450
2886
  } } : null], null, !0) });
1451
- }), 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 }, on: { "update:pageSize": function(t) {
1452
- return e.$set(e.paginationConfig, "pageSize", t);
1453
- }, "update:page-size": function(t) {
1454
- return e.$set(e.paginationConfig, "pageSize", t);
1455
- }, "update:currentPage": function(t) {
1456
- return e.$set(e.paginationConfig, "current", t);
1457
- }, "update:current-page": function(t) {
1458
- return e.$set(e.paginationConfig, "current", t);
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);
1459
2895
  }, "size-change": e.handleSizeChange, "current-change": e.handleIndexChange } })], 1) : e._e()])]);
1460
- }, on = [], sn = /* @__PURE__ */ me(
1461
- tn,
1462
- nn,
1463
- on,
2896
+ }, _i = [], Si = /* @__PURE__ */ Ne(
2897
+ hi,
2898
+ bi,
2899
+ _i,
1464
2900
  !1,
1465
2901
  null,
1466
- "112d9efc"
2902
+ "8e292dd6"
1467
2903
  );
1468
- const Be = sn.exports;
1469
- Be.install = function(n) {
1470
- n.component(Be.name || "EsTable", Be);
2904
+ const Ye = Si.exports;
2905
+ Ye.install = function(t) {
2906
+ t.component(Ye.name || "EsTable", Ye);
1471
2907
  };
1472
- const rn = ae({
2908
+ const Ci = be({
1473
2909
  name: "RenderJsx",
1474
2910
  props: {
1475
2911
  refs: { type: [Function, Object], default: null },
@@ -1480,44 +2916,44 @@ const rn = ae({
1480
2916
  instance: { type: Object, default: () => ({}) },
1481
2917
  components: { type: Object, default: () => ({}) }
1482
2918
  },
1483
- setup(n) {
1484
- const e = n.refs && typeof n.refs == "object" ? n.refs : Te({});
2919
+ setup(t) {
2920
+ const e = t.refs && typeof t.refs == "object" ? t.refs : _t({});
1485
2921
  let o = null;
1486
- function t() {
2922
+ function n() {
1487
2923
  if (!o) return;
1488
- const i = o.componentInstance;
1489
- i && (e.currentRef = i);
2924
+ const r = o.componentInstance;
2925
+ r && (e.currentRef = r);
1490
2926
  }
1491
- return Ne(() => t()), Ft(() => t()), () => {
1492
- const { instance: i } = n, l = {
1493
- ...i,
1494
- registerRef: (F, d) => {
1495
- d != null && (e[F] = d);
2927
+ return Mt(() => n()), Mr(() => n()), () => {
2928
+ const { instance: r } = t, a = {
2929
+ ...r,
2930
+ registerRef: (y, c) => {
2931
+ c != null && (e[y] = c);
1496
2932
  },
1497
2933
  getRefs: () => e
1498
- }, c = n.render, S = c && typeof c == "function" ? c(ce, l, n.components || {}) : "";
1499
- return typeof S == "string" || typeof S == "number" ? (o = null, ce(
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(
1500
2936
  "span",
1501
2937
  {
1502
2938
  ref: "currentRef"
1503
2939
  // Vue 2 的函数式 ref 通过 v-bind 不可直接传,用以下方式赋值
1504
2940
  },
1505
- [String(S)]
1506
- )) : S && typeof S == "object" && "tag" in S ? S.componentOptions ? (o = S, S) : (o = null, ce("div", [S])) : (o = null, ce("div", [String(S || "")]));
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 || "")]));
1507
2943
  };
1508
2944
  }
1509
- }), an = null, ln = null;
1510
- var cn = /* @__PURE__ */ me(
1511
- rn,
1512
- an,
1513
- ln,
2945
+ }), Oi = null, wi = null;
2946
+ var Ei = /* @__PURE__ */ Ne(
2947
+ Ci,
2948
+ Oi,
2949
+ wi,
1514
2950
  !1,
1515
2951
  null,
1516
2952
  null
1517
2953
  );
1518
- const un = cn.exports, dn = ae({
2954
+ const xi = Ei.exports, Ii = be({
1519
2955
  name: "EsDialog",
1520
- components: { RenderJsx: un },
2956
+ components: { RenderJsx: xi },
1521
2957
  inheritAttrs: !1,
1522
2958
  props: {
1523
2959
  title: { type: String, default: "" },
@@ -1545,185 +2981,185 @@ const un = cn.exports, dn = ae({
1545
2981
  components: { type: Object, default: () => ({}) }
1546
2982
  },
1547
2983
  emits: ["update:visible", "closed", "submit"],
1548
- setup(n, { emit: e, attrs: o, slots: t, expose: i }) {
1549
- var w, A;
1550
- const l = qe(), c = z(null), S = Te({}), F = z(!1), d = l, g = (A = (w = ie("$EsPlus", null)) != null ? w : pe()) != null ? A : {}, a = (x) => {
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) => {
1551
2987
  if (!x) return !0;
1552
- const D = g.permission;
1553
- return typeof D == "function" ? D(x) : !0;
1554
- }, f = (x) => {
2988
+ const z = p.permission;
2989
+ return typeof z == "function" ? z(x) : !0;
2990
+ }, m = (x) => {
1555
2991
  const {
1556
- icon: D,
1557
- click: Q,
1558
- permissionValue: j,
1559
- name: ne,
1560
- disabled: oe,
2992
+ icon: z,
2993
+ click: X,
2994
+ permissionValue: q,
2995
+ name: ve,
2996
+ disabled: ge,
1561
2997
  key: le,
1562
- ...be
2998
+ ...We
1563
2999
  } = x;
1564
- return be;
1565
- }, p = (x) => {
1566
- const D = x.disabled;
1567
- return typeof D == "function" ? D() : !!D;
1568
- }, b = () => {
3000
+ return We;
3001
+ }, v = (x) => {
3002
+ const z = x.disabled;
3003
+ return typeof z == "function" ? z() : !!z;
3004
+ }, h = () => {
1569
3005
  setTimeout(() => {
1570
- F.value && (F.value = !1);
3006
+ y.value && (y.value = !1);
1571
3007
  }, 500);
1572
- }, y = () => {
1573
- o != null && o.fullscreen || (F.value = !F.value);
1574
- }, _ = B({
1575
- get: () => n.visible || !1,
3008
+ }, f = () => {
3009
+ o != null && o.fullscreen || (y.value = !y.value);
3010
+ }, S = E({
3011
+ get: () => t.visible || !1,
1576
3012
  set: (x) => {
1577
- e("update:visible", x), x || (e("closed", x), b());
3013
+ e("update:visible", x), x || (e("closed", x), h());
1578
3014
  }
1579
- }), T = () => {
1580
- _.value = !1, e("closed", !1), b();
1581
- }, E = () => {
1582
- e("closed", !1), b();
1583
- }, N = () => {
1584
- }, M = (x) => {
3015
+ }), F = () => {
3016
+ S.value = !1, e("closed", !1), h();
3017
+ }, H = () => {
3018
+ e("closed", !1), h();
3019
+ }, M = () => {
3020
+ }, W = (x) => {
1585
3021
  x();
1586
- }, V = B(() => ({ ...o })), U = B(() => F.value ? "dialogFull" : n.maxHeight ? "dialogShadow" : "dialogAuto"), K = () => {
3022
+ }, U = E(() => ({ ...o })), J = E(() => y.value ? "dialogFull" : t.maxHeight ? "dialogShadow" : "dialogAuto"), K = () => {
1587
3023
  const x = typeof window != "undefined" ? window.innerHeight : 800;
1588
3024
  return Math.max(x - 135, 200);
1589
- }, J = B(() => {
3025
+ }, Q = E(() => {
1590
3026
  const x = K();
1591
- return F.value ? { height: x + "px" } : n.maxHeight ? {
1592
- maxHeight: typeof n.maxHeight == "number" ? `${n.maxHeight}px` : n.maxHeight
3027
+ return y.value ? { height: x + "px" } : t.maxHeight ? {
3028
+ maxHeight: typeof t.maxHeight == "number" ? `${t.maxHeight}px` : t.maxHeight
1593
3029
  } : { maxHeight: x + "px" };
1594
- }), O = B(() => ({
1595
- renderBodyRefs: S.currentRef,
1596
- renderBodyRefsObject: S,
1597
- lyFormInstance: c,
1598
- dialogInstance: d,
1599
- getRefs: () => S
1600
- })), s = (x) => {
1601
- const D = x.click;
1602
- typeof D == "function" && D(S.currentRef, {
1603
- close: T,
1604
- getRefs: (Q) => Q ? S[Q] || null : S,
1605
- dialogInstance: d
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
1606
3042
  });
1607
3043
  };
1608
- ot("bodyFormInstance", (x) => {
1609
- c.value = x;
3044
+ Qn("bodyFormInstance", (x) => {
3045
+ i.value = x;
1610
3046
  });
1611
- const u = B(() => ({
1612
- ...n.components
1613
- })), h = {
1614
- closed: T
3047
+ const g = E(() => ({
3048
+ ...t.components
3049
+ })), _ = {
3050
+ closed: F
1615
3051
  };
1616
- return typeof i == "function" && i(h), {
3052
+ return typeof r == "function" && r(_), {
1617
3053
  // state
1618
- dialogVisible: _,
1619
- isFullscreen: F,
1620
- lyFormInstance: c,
1621
- renderBodyRefsObject: S,
3054
+ dialogVisible: S,
3055
+ isFullscreen: y,
3056
+ lyFormInstance: i,
3057
+ renderBodyRefsObject: l,
1622
3058
  // computeds
1623
- filteredAttrs: V,
1624
- initDialogCls: U,
1625
- initDialogHeight: J,
3059
+ filteredAttrs: U,
3060
+ initDialogCls: J,
3061
+ initDialogHeight: Q,
1626
3062
  getCurrentInstanceModel: O,
1627
- dialogComponents: u,
3063
+ dialogComponents: g,
1628
3064
  // methods
1629
- handleClose: T,
1630
- handleFullscreen: y,
1631
- handleBtnClick: s,
1632
- onDialogClose: E,
1633
- onDialogClosed: N,
1634
- beforeCloseHandler: M,
1635
- checkPermission: a,
1636
- filterOptions: f,
1637
- getDisabled: p,
1638
- getCompIcon: st,
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,
1639
3075
  // exposed
1640
- ...h
3076
+ ..._
1641
3077
  };
1642
3078
  }
1643
3079
  });
1644
- var fn = function() {
3080
+ var Fi = function() {
1645
3081
  var e = this, o = e._self._c;
1646
- 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) {
1647
- e.dialogVisible = t;
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;
1648
3084
  }, close: e.onDialogClose, closed: e.onDialogClosed }, scopedSlots: e._u([{ key: "title", fn: function() {
1649
3085
  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 } })])])]];
1650
3086
  }, proxy: !0 }, e.isHiddenFooter ? null : { key: "footer", fn: function() {
1651
- 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) {
1652
- 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()];
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()];
1653
3089
  })] : e._e()], 2)];
1654
3090
  }, 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);
1655
- }, pn = [], mn = /* @__PURE__ */ me(
1656
- dn,
1657
- fn,
1658
- pn,
3091
+ }, Ri = [], Bi = /* @__PURE__ */ Ne(
3092
+ Ii,
3093
+ Fi,
3094
+ Ri,
1659
3095
  !1,
1660
3096
  null,
1661
3097
  "1f2694c2"
1662
3098
  );
1663
- const ke = mn.exports, gn = (n) => typeof n == "string" ? document.querySelector(n) || document.body : n instanceof HTMLElement ? n : document.body, yn = (n) => {
3099
+ const Ze = Bi.exports, ki = (t) => typeof t == "string" ? document.querySelector(t) || document.body : t instanceof HTMLElement ? t : document.body, $i = (t) => {
1664
3100
  const e = {}, o = {};
1665
- return Object.entries(n).forEach(([t, i]) => {
1666
- if (t.startsWith("on") && typeof i == "function" && t.length > 2) {
1667
- const l = t.slice(2), c = l.charAt(0).toLowerCase() + l.slice(1);
1668
- e[c] = i;
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;
1669
3105
  } else
1670
- o[t] = i;
3106
+ o[n] = r;
1671
3107
  }), { propsData: o, events: e };
1672
- }, nt = (n, e, o) => {
1673
- const { propsData: t, events: i } = yn(e), l = xt.extend(n), c = new l({ propsData: t });
1674
- return Object.entries(i).forEach(([F, d]) => {
1675
- c.$on(F, d);
1676
- }), c.$mount(), gn(o).appendChild(c.$el), c;
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;
1677
3113
  };
1678
- function Ee(n, e = {}) {
1679
- if (n = n || ke, Object.assign({ onlyInstance: !1 }, e).onlyInstance) {
1680
- let t = null;
1681
- const i = () => {
1682
- t && (t.visible = !1, setTimeout(() => {
1683
- t && (t.$destroy(), t.$el && t.$el.parentNode && t.$el.parentNode.removeChild(t.$el), t = null);
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);
1684
3120
  }, 300));
1685
- }, l = (c) => {
1686
- c.visible === void 0 && (c.visible = !0);
1687
- const S = c.onClosed, F = c.onSubmit;
1688
- return c.onClosed = (...d) => {
1689
- S == null || S(...d), i();
1690
- }, c.onSubmit = (d = i) => {
1691
- F == null || F(d);
1692
- }, t = nt(n, c, c.appendTo), t;
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;
1693
3129
  };
1694
- return l.close = i, l;
3130
+ return a.close = r, a;
1695
3131
  } else {
1696
- let t = null;
1697
- const i = () => {
1698
- t && (t.visible = !1);
1699
- }, l = () => {
1700
- t && (t.$destroy(), t.$el && t.$el.parentNode && t.$el.parentNode.removeChild(t.$el), t = null);
1701
- }, c = (S) => {
1702
- if (t)
1703
- return Object.entries(S).forEach(([a, f]) => {
1704
- a.startsWith("on") || (t[a] = f);
1705
- }), t.visible = !0, t;
1706
- const F = {
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 = {
1707
3143
  visible: !0,
1708
3144
  width: "50%",
1709
3145
  destroyOnClose: !0,
1710
- ...S
1711
- }, d = F.onClosed, g = F.onSubmit;
1712
- return F.onClosed = () => {
1713
- d == null || d(), i();
1714
- }, F.onSubmit = (a = i) => {
1715
- g == null || g(a);
1716
- }, t = nt(n, F, F.appendTo), t;
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;
1717
3153
  };
1718
- return c.close = i, c.destroy = l, c;
3154
+ return i.close = r, i.destroy = a, i;
1719
3155
  }
1720
3156
  }
1721
- ke.install = function(n) {
1722
- n.component(ke.name || "EsDialog", ke), n.prototype.$useDialog = Ee;
3157
+ Ze.install = function(t) {
3158
+ t.component(Ze.name || "EsDialog", Ze), t.prototype.$useDialog = Ct;
1723
3159
  };
1724
- const hn = ae({
3160
+ const Pi = be({
1725
3161
  name: "EsCrudPage",
1726
- components: { EsForm: ve, EsTable: Be },
3162
+ components: { EsForm: ze, EsTable: Ye },
1727
3163
  inheritAttrs: !1,
1728
3164
  props: {
1729
3165
  schema: { type: Object, required: !0 },
@@ -1746,380 +3182,384 @@ const hn = ae({
1746
3182
  "dialog-cancel",
1747
3183
  "dialog-open"
1748
3184
  ],
1749
- setup(n, { emit: e, expose: o }) {
1750
- const t = z(null), i = z(null), l = z([]), c = Te({});
1751
- ue(
1752
- () => n.schema.formItems,
1753
- (s) => {
1754
- s && s.forEach((u) => {
1755
- u.prop && !(u.prop in c) && (c[u.prop] = "");
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] = "");
1756
3192
  });
1757
3193
  },
1758
3194
  { immediate: !0 }
1759
3195
  );
1760
- const S = z({
3196
+ const l = L({
1761
3197
  current: 1,
1762
3198
  pageSize: 10,
1763
3199
  total: 0,
1764
- ...n.schema.pagination || {}
1765
- }), F = B(() => {
1766
- var w, A;
1767
- if (n.schema.dialogs) return n.schema.dialogs;
1768
- if (!((w = n.schema.dialogFormItems) != null && w.length)) return {};
1769
- const s = {
1770
- width: ((A = n.schema.dialogOptions) == null ? void 0 : A.width) || "600px",
1771
- formItems: n.schema.dialogFormItems,
1772
- ...n.schema.dialogOptions || {}
1773
- }, u = {}, h = n.schema.actions || ["add", "edit", "delete"];
1774
- return h.includes("add") && (u.add = { ...s, title: "新增" }), h.includes("edit") && (u.edit = { ...s, title: "编辑" }), h.includes("view") && (u.view = { ...s, title: "查看", isHiddenFooter: !0 }), u;
1775
- }), d = B(() => {
1776
- if (n.schema.toolbarBtns) return n.schema.toolbarBtns;
1777
- if (n.schema.dialogs || n.schema.operationColumn !== void 0) return [];
1778
- const s = n.schema.actions || ["add", "edit", "delete"], u = [];
1779
- return s.includes("add") && u.push({
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
3216
  name: "新增",
1781
3217
  type: "primary",
1782
3218
  key: "add",
1783
3219
  icon: "Plus",
1784
3220
  dialogKey: "add"
1785
- }), s.includes("export") && u.push({
3221
+ }), u.includes("export") && g.push({
1786
3222
  name: "导出",
1787
3223
  key: "export",
1788
3224
  icon: "Download",
1789
3225
  actionType: "export"
1790
- }), s.includes("import") && u.push({
3226
+ }), u.includes("import") && g.push({
1791
3227
  name: "导入",
1792
3228
  key: "import",
1793
3229
  icon: "Upload",
1794
3230
  actionType: "import"
1795
- }), u;
1796
- }), g = B(
3231
+ }), g;
3232
+ }), p = E(
1797
3233
  () => {
1798
- var A;
1799
- if (n.schema.operationColumn !== void 0) return n.schema.operationColumn;
1800
- const s = n.schema.actions || ["add", "edit", "delete"];
1801
- if ((A = n.schema.columns) == null ? void 0 : A.some(
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(
1802
3238
  (x) => x.prop === "action" || x.prop === "operate" || x.btns
1803
3239
  )) return;
1804
- if (s.filter((x) => ["edit", "delete", "view"].includes(x)).length === 0) return !1;
1805
- const w = [];
1806
- return s.includes("view") && w.push({ name: "查看", type: "primary", key: "view", dialogKey: "view" }), s.includes("edit") && w.push({ name: "编辑", type: "primary", key: "edit", dialogKey: "edit" }), s.includes("delete") && w.push({
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({
1807
3243
  name: "删除",
1808
3244
  type: "danger",
1809
3245
  key: "delete",
1810
3246
  confirm: "确定删除该条数据吗?"
1811
3247
  }), {
1812
3248
  label: "操作",
1813
- width: w.length * 80 + 20,
3249
+ width: k.length * 80 + 20,
1814
3250
  fixed: "right",
1815
- btns: w
3251
+ btns: k
1816
3252
  };
1817
3253
  }
1818
- ), a = B(() => {
1819
- if (n.schema.queryBtns) return n.schema.queryBtns;
1820
- const s = [
3254
+ ), s = E(() => {
3255
+ if (t.schema.queryBtns) return t.schema.queryBtns;
3256
+ const u = [
1821
3257
  { name: "查询", type: "primary", key: "query", triggerEvent: !0 },
1822
3258
  { name: "重置", key: "rest", triggerEvent: !0 }
1823
- ], u = d.value.map((h) => {
1824
- const w = { ...h };
1825
- return w.click || (w.click = () => _(h)), w;
3259
+ ], g = c.value.map((_) => {
3260
+ const k = { ..._ };
3261
+ return k.click || (k.click = () => S(_)), k;
1826
3262
  });
1827
- return [...s, ...u];
1828
- }), f = B(() => {
1829
- const s = [...n.schema.columns || []], u = g.value;
1830
- if (u === !1 || u === void 0) return s;
1831
- const h = u.btns.map((w) => ({
1832
- name: w.name,
1833
- type: w.type,
1834
- permissionValue: w.permissionValue,
1835
- clickEvent: (A) => T(w, A)
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)
1836
3272
  }));
1837
- return s.push({
3273
+ return u.push({
1838
3274
  prop: "operate",
1839
- label: u.label || "操作",
1840
- width: u.width || h.length * 80 + 20,
1841
- fixed: u.fixed || "right",
1842
- btns: h
1843
- }), s;
1844
- }), p = B(() => {
1845
- var s;
1846
- return (s = n.schema.tableBtns) != null && s.length ? n.schema.tableBtns.map((u) => ({
1847
- name: u.name,
1848
- type: u.type,
1849
- size: u.size || "small",
1850
- icon: u.icon,
1851
- code: u.code || 1,
1852
- permissionValue: u.permissionValue,
1853
- loading: u.loading,
1854
- disabled: u.disabled,
1855
- click: () => _(u)
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)
1856
3292
  })) : [];
1857
- }), b = B(() => {
1858
- const s = {
3293
+ }), h = E(() => {
3294
+ const u = {
1859
3295
  border: !0,
1860
- isInitRun: n.autoLoad,
1861
- ...n.schema.tableOptions || {}
3296
+ isInitRun: t.autoLoad,
3297
+ ...t.schema.tableOptions || {}
1862
3298
  };
1863
- n.httpRequest && (s.httpRequest = n.httpRequest);
1864
- const u = p.value;
1865
- if (u.length > 0) {
1866
- const h = s.configBtn || [];
1867
- s.configBtn = [...h, ...u];
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];
1868
3304
  }
1869
- return s;
1870
- }), y = B(() => {
1871
- const s = n.schema.formLayout;
1872
- if (s)
3305
+ return u;
3306
+ }), f = E(() => {
3307
+ const u = t.schema.formLayout;
3308
+ if (u)
1873
3309
  return {
1874
3310
  rowLayProps: { gutter: 16 },
1875
3311
  formLayProps: {
1876
- labelBtnWidth: s.labelWidth,
1877
- ...s.minFoldRows ? { minFoldRows: s.minFoldRows } : {}
3312
+ labelBtnWidth: u.labelWidth,
3313
+ ...u.minFoldRows ? { minFoldRows: u.minFoldRows } : {}
1878
3314
  }
1879
3315
  };
1880
3316
  });
1881
- async function _(s) {
1882
- const u = s.key || s.actionType || "";
1883
- if (s.confirm) {
1884
- const h = typeof s.confirm == "string" ? s.confirm : "确定执行此操作吗?";
3317
+ async function S(u) {
3318
+ const g = u.key || u.actionType || "";
3319
+ if (u.confirm) {
3320
+ const _ = typeof u.confirm == "string" ? u.confirm : "确定执行此操作吗?";
1885
3321
  try {
1886
- await Xe.confirm(h, "提示", { type: "warning" });
1887
- } catch (w) {
3322
+ await tn.confirm(_, "提示", { type: "warning" });
3323
+ } catch (k) {
1888
3324
  return;
1889
3325
  }
1890
3326
  }
1891
- if (s.dialogKey) {
1892
- u === "add" && e("add"), N(s.dialogKey);
3327
+ if (u.dialogKey) {
3328
+ g === "add" && e("add"), M(u.dialogKey);
1893
3329
  return;
1894
3330
  }
1895
- u === "export" || s.actionType === "export" ? e("export", { ...c }) : u === "add" && e("add"), e("btn-click", u, { ...c });
3331
+ g === "export" || u.actionType === "export" ? e("export", { ...i }) : g === "add" && e("add"), e("btn-click", g, { ...i });
1896
3332
  }
1897
- async function T(s, u) {
1898
- const h = s.key || "";
1899
- if (s.confirm) {
1900
- const w = typeof s.confirm == "string" ? s.confirm : "确定执行此操作吗?";
3333
+ async function F(u, g) {
3334
+ const _ = u.key || "";
3335
+ if (u.confirm) {
3336
+ const k = typeof u.confirm == "string" ? u.confirm : "确定执行此操作吗?";
1901
3337
  try {
1902
- await Xe.confirm(w, "提示", { type: "warning" });
1903
- } catch (A) {
3338
+ await tn.confirm(k, "提示", { type: "warning" });
3339
+ } catch (T) {
1904
3340
  return;
1905
3341
  }
1906
3342
  }
1907
- if (s.click) {
1908
- s.click(u, { refresh: K, getSelectedRows: J, openDialog: N });
3343
+ if (u.click) {
3344
+ u.click(g, { refresh: K, getSelectedRows: Q, openDialog: M });
1909
3345
  return;
1910
3346
  }
1911
- if (s.dialogKey) {
1912
- N(s.dialogKey, u);
3347
+ if (u.dialogKey) {
3348
+ M(u.dialogKey, g);
1913
3349
  return;
1914
3350
  }
1915
- h === "edit" ? e("edit", u) : h === "delete" ? e("delete", u) : h === "view" && e("view", u), e("btn-click", h, u);
3351
+ _ === "edit" ? e("edit", g) : _ === "delete" ? e("delete", g) : _ === "view" && e("view", g), e("btn-click", _, g);
1916
3352
  }
1917
- const E = /* @__PURE__ */ new Map();
1918
- function N(s, u) {
1919
- var Q;
1920
- const h = F.value[s];
1921
- if (!h) return;
1922
- e("dialog-open", s, u);
1923
- const w = Ee();
1924
- E.set(s, w);
1925
- const A = Te({});
1926
- h.formItems && h.formItems.forEach((j) => {
1927
- var ne;
1928
- j.prop && (A[j.prop] = (ne = u == null ? void 0 : u[j.prop]) != null ? ne : "");
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 : "");
1929
3365
  });
1930
- const x = typeof h.title == "function" ? h.title(u) : h.title || "";
1931
- (Q = h.onOpen) == null || Q.call(h, u);
1932
- const D = V(s, h, A, u || {});
1933
- w({
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({
1934
3370
  title: x,
1935
- width: h.width || "600px",
1936
- isDraggable: h.isDraggable,
1937
- maxHeight: h.maxHeight,
1938
- fullscreen: h.fullscreen,
1939
- isHiddenFooter: h.isHiddenFooter,
3371
+ width: _.width || "600px",
3372
+ isDraggable: _.isDraggable,
3373
+ maxHeight: _.maxHeight,
3374
+ fullscreen: _.fullscreen,
3375
+ isHiddenFooter: _.isHiddenFooter,
1940
3376
  // 用户自定义 render
1941
- render: h.render ? (j, ne) => h.render(j, {
1942
- row: u || {},
1943
- model: A,
1944
- registerRef: ne.registerRef,
1945
- close: () => M(s),
3377
+ render: _.render ? (q, ve) => _.render(q, {
3378
+ row: g || {},
3379
+ model: T,
3380
+ registerRef: ve.registerRef,
3381
+ close: () => W(u),
1946
3382
  refresh: K
1947
- }) : h.formItems ? (j, { registerRef: ne }) => {
1948
- const oe = j(ve, {
3383
+ }) : _.formItems ? (q, { registerRef: ve }) => {
3384
+ const ge = q(ze, {
1949
3385
  props: {
1950
- model: A,
1951
- formItemList: h.formItems,
3386
+ model: T,
3387
+ formItemList: _.formItems,
1952
3388
  layoutFormProps: {
1953
3389
  rowLayProps: { gutter: 16 },
1954
3390
  formLayProps: {
1955
3391
  isBtnHidden: !0,
1956
- ...h.formLayout || {}
3392
+ ..._.formLayout || {}
1957
3393
  }
1958
3394
  }
1959
3395
  },
1960
3396
  // Vue 2 函数式 ref:通过 RenderJsx 暴露的 registerRef 注册
1961
3397
  ref: "dialogForm"
1962
3398
  });
1963
- return oe && oe.data && (oe.data.hook = oe.data.hook || {}, oe.data.hook.insert = (le) => {
1964
- le.componentInstance && ne("dialogForm", le.componentInstance);
1965
- }), oe;
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;
1966
3402
  } : void 0,
1967
- configBtn: D,
3403
+ configBtn: z,
1968
3404
  // useDialog 的 onClosed 通过 extractEventHandlers 转为 'closed' 事件
1969
3405
  onClosed: () => {
1970
- var j;
1971
- E.delete(s), (j = h.onClose) == null || j.call(h);
3406
+ var q;
3407
+ H.delete(u), (q = _.onClose) == null || q.call(_);
1972
3408
  }
1973
3409
  });
1974
3410
  }
1975
- function M(s) {
1976
- const u = E.get(s);
1977
- u && (u.close(), E.delete(s));
3411
+ function W(u) {
3412
+ const g = H.get(u);
3413
+ g && (g.close(), H.delete(u));
1978
3414
  }
1979
- function V(s, u, h, w) {
1980
- if (!u.isHiddenFooter)
1981
- return u.configBtn ? u.configBtn.map((A) => A.action === "cancel" ? {
1982
- ...A,
1983
- click: (x, { close: D }) => {
1984
- e("dialog-cancel", s), D();
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();
1985
3421
  }
1986
- } : A.action === "confirm" ? {
1987
- ...A,
1988
- click: async (x, { close: D, getRefs: Q }) => {
1989
- await U(s, u, h, w, D, Q);
3422
+ } : T.action === "confirm" ? {
3423
+ ...T,
3424
+ click: async (x, { close: z, getRefs: X }) => {
3425
+ await J(u, g, _, k, z, X);
1990
3426
  }
1991
- } : A) : [
3427
+ } : T) : [
1992
3428
  {
1993
3429
  name: "取消",
1994
- click: (A, { close: x }) => {
1995
- e("dialog-cancel", s), x();
3430
+ click: (T, { close: x }) => {
3431
+ e("dialog-cancel", u), x();
1996
3432
  }
1997
3433
  },
1998
3434
  {
1999
3435
  name: "确定",
2000
3436
  type: "primary",
2001
- click: async (A, { close: x, getRefs: D }) => {
2002
- await U(s, u, h, w, x, D);
3437
+ click: async (T, { close: x, getRefs: z }) => {
3438
+ await J(u, g, _, k, x, z);
2003
3439
  }
2004
3440
  }
2005
3441
  ];
2006
3442
  }
2007
- async function U(s, u, h, w, A, x) {
2008
- var Q;
2009
- if ((Q = u.formItems) != null && Q.length) {
2010
- const j = x("dialogForm");
2011
- j != null && j.validate && await j.validate();
3443
+ async function J(u, g, _, k, T, x) {
3444
+ var X;
3445
+ if ((X = g.formItems) != null && X.length) {
3446
+ const q = x("dialogForm");
3447
+ q != null && q.validate && await q.validate();
2012
3448
  }
2013
- const D = { close: A, refresh: K, getRefs: x, row: w };
2014
- if (u.onConfirm)
2015
- await u.onConfirm(h, D);
3449
+ const z = { close: T, refresh: K, getRefs: x, row: k };
3450
+ if (g.onConfirm)
3451
+ await g.onConfirm(_, z);
2016
3452
  else {
2017
- const j = s === "add" ? "add-confirm" : s === "edit" ? "edit-confirm" : `${s}-confirm`;
2018
- e("btn-click", j, h), A(), K();
3453
+ const q = u === "add" ? "add-confirm" : u === "edit" ? "edit-confirm" : `${u}-confirm`;
3454
+ e("btn-click", q, _), T(), K();
2019
3455
  }
2020
- e("dialog-confirm", s, h);
3456
+ e("dialog-confirm", u, _);
2021
3457
  }
2022
3458
  function K() {
2023
- var s, u;
2024
- (u = (s = t.value) == null ? void 0 : s.httpRequestInstance) == null || u.call(s);
3459
+ var u, g;
3460
+ (g = (u = n.value) == null ? void 0 : u.httpRequestInstance) == null || g.call(u);
2025
3461
  }
2026
- function J() {
2027
- var s, u;
2028
- return ((u = (s = t.value) == null ? void 0 : s.getSelectionRows) == null ? void 0 : u.call(s)) || [];
3462
+ function Q() {
3463
+ var u, g;
3464
+ return ((g = (u = n.value) == null ? void 0 : u.getSelectionRows) == null ? void 0 : g.call(u)) || [];
2029
3465
  }
2030
3466
  const O = {
2031
3467
  refresh: K,
2032
- getSelectedRows: J,
2033
- tableRef: t,
2034
- formRef: i,
2035
- queryModel: c,
2036
- openDialog: N,
2037
- closeDialog: M
3468
+ getSelectedRows: Q,
3469
+ tableRef: n,
3470
+ formRef: r,
3471
+ queryModel: i,
3472
+ openDialog: M,
3473
+ closeDialog: W
2038
3474
  };
2039
3475
  return typeof o == "function" && o(O), {
2040
3476
  // refs
2041
- tableRef: t,
2042
- formRef: i,
2043
- tableData: l,
2044
- queryModel: c,
2045
- paginationState: S,
3477
+ tableRef: n,
3478
+ formRef: r,
3479
+ tableData: a,
3480
+ queryModel: i,
3481
+ paginationState: l,
2046
3482
  // computeds
2047
- mergedColumns: f,
2048
- mergedOptions: b,
2049
- mergedFormBtns: a,
2050
- formLayoutProps: y,
3483
+ mergedColumns: m,
3484
+ mergedOptions: h,
3485
+ mergedFormBtns: s,
3486
+ formLayoutProps: f,
2051
3487
  // exposed
2052
3488
  ...O
2053
3489
  };
2054
3490
  }
2055
3491
  });
2056
- var vn = function() {
3492
+ var Ni = function() {
2057
3493
  var e = this, o = e._self._c;
2058
- 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) {
2059
- e.tableData = t;
2060
- }, "update:data-source": function(t) {
2061
- e.tableData = t;
2062
- }, "update:pagination": function(t) {
2063
- e.paginationState = t;
2064
- } }, scopedSlots: e._u([e._l(e.$slots, function(t, i) {
2065
- return { key: i, fn: function(l) {
2066
- return [e._t(i, null, null, l || {})];
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 || {})];
2067
3503
  } };
2068
3504
  })], 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);
2069
- }, bn = [], _n = /* @__PURE__ */ me(
2070
- hn,
2071
- vn,
2072
- bn,
3505
+ }, Di = [], Ai = /* @__PURE__ */ Ne(
3506
+ Pi,
3507
+ Ni,
3508
+ Di,
2073
3509
  !1,
2074
3510
  null,
2075
3511
  "ad1d1cb8"
2076
3512
  );
2077
- const Ae = _n.exports;
2078
- Ae.install = function(n) {
2079
- n.component(
2080
- Ae.name || "EsCrudPage",
2081
- Ae
3513
+ const gt = Ai.exports;
3514
+ gt.install = function(t) {
3515
+ t.component(
3516
+ gt.name || "EsCrudPage",
3517
+ gt
2082
3518
  );
2083
3519
  };
2084
- const Cn = [ve, Be, ke, Ae], Sn = (n) => {
2085
- const e = { ...n };
3520
+ const Ti = [ze, Ye, Ze, gt], Hi = (t) => {
3521
+ const e = { ...t };
2086
3522
  for (const o of ["EsTable", "EsForm", "EsDialog"]) {
2087
- const t = e[o];
2088
- if (!t || typeof t != "object") continue;
2089
- const i = t.methods;
2090
- if (i && typeof i == "object") {
2091
- const { methods: c, ...S } = t;
2092
- e[o] = { ...i, ...S };
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 };
2093
3529
  }
2094
- const l = e[o];
2095
- typeof l.configQueryfieldOutput == "function" && typeof l.configQueryFieldOutput != "function" && (l.configQueryFieldOutput = l.configQueryfieldOutput);
3530
+ const a = e[o];
3531
+ typeof a.configQueryfieldOutput == "function" && typeof a.configQueryFieldOutput != "function" && (a.configQueryFieldOutput = a.configQueryfieldOutput);
2096
3532
  }
2097
3533
  return e;
2098
- }, Bn = (n, e = {}) => {
2099
- const o = Sn(e);
2100
- Bt(o), o.skipComponentRegistration || Cn.forEach((t) => {
2101
- const i = t.name;
2102
- i && n.component(i, t);
2103
- }), o.globalProperties !== !1 && (n.prototype.$useDialog = Ee), n.mixin({
3534
+ }, Li = (t, e = {}) => {
3535
+ const o = t.__composition_api_installed__ === !0;
3536
+ Kn ? o && console.warn(
3537
+ '[@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({
2104
3544
  provide: {
2105
3545
  $EsPlus: {
2106
- useDialog: Ee,
2107
- ...o
3546
+ useDialog: Ct,
3547
+ ...n
2108
3548
  }
2109
3549
  }
2110
3550
  });
2111
- }, On = {
2112
- version: "1.0.4",
2113
- install: Bn
3551
+ }, Mi = {
3552
+ version: "1.1.1",
3553
+ install: Li
2114
3554
  };
2115
3555
  export {
2116
- Ae as EsCrudPage,
2117
- ke as EsDialog,
2118
- ve as EsForm,
2119
- Be as EsTable,
2120
- Pn as configureEsPlus,
2121
- On as default,
2122
- Bn as install,
2123
- Ee as useDialog
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
2124
3564
  };
2125
3565
  //# sourceMappingURL=es-plus-vue2.js.map