xe-table-vue 1.0.0

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.
@@ -0,0 +1,1672 @@
1
+ import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createSlots as o, createTextVNode as s, createVNode as c, guardReactiveProps as l, h as u, mergeModels as d, mergeProps as f, normalizeClass as p, normalizeProps as m, onMounted as h, onUnmounted as g, openBlock as _, ref as v, renderList as y, renderSlot as b, resolveDynamicComponent as x, toDisplayString as S, toValue as C, unref as w, useModel as ee, useTemplateRef as T, watch as te, withCtx as E } from "vue";
2
+ import { ElButton as D, ElCheckbox as ne, ElCheckboxGroup as re, ElCol as ie, ElDatePicker as ae, ElForm as oe, ElFormItem as se, ElInput as ce, ElInputNumber as le, ElOption as ue, ElPagination as de, ElRadio as fe, ElRadioButton as pe, ElRadioGroup as me, ElRate as he, ElRow as ge, ElSelect as _e, ElSwitch as ve, ElTable as ye, ElTableColumn as be } from "element-plus";
3
+ //#region src/utils/config.js
4
+ var O = {}, xe = {
5
+ button: {
6
+ type: "primary",
7
+ size: "default",
8
+ disabled: !1
9
+ },
10
+ pageSize: [
11
+ 10,
12
+ 20,
13
+ 30,
14
+ 50,
15
+ 100,
16
+ 500
17
+ ],
18
+ pagesMap: {
19
+ index: "index",
20
+ size: "size"
21
+ },
22
+ basePages: {
23
+ index: 1,
24
+ size: 10,
25
+ keywords: ""
26
+ },
27
+ form: {},
28
+ table: {}
29
+ }, Se = typeof global == "object" && global && global.Object === Object && global, Ce = typeof self == "object" && self && self.Object === Object && self, k = Se || Ce || Function("return this")(), A = k.Symbol, we = Object.prototype, Te = we.hasOwnProperty, Ee = we.toString, j = A ? A.toStringTag : void 0;
30
+ function De(e) {
31
+ var t = Te.call(e, j), n = e[j];
32
+ try {
33
+ e[j] = void 0;
34
+ var r = !0;
35
+ } catch {}
36
+ var i = Ee.call(e);
37
+ return r && (t ? e[j] = n : delete e[j]), i;
38
+ }
39
+ //#endregion
40
+ //#region node_modules/lodash-es/_objectToString.js
41
+ var Oe = Object.prototype.toString;
42
+ function ke(e) {
43
+ return Oe.call(e);
44
+ }
45
+ //#endregion
46
+ //#region node_modules/lodash-es/_baseGetTag.js
47
+ var Ae = "[object Null]", je = "[object Undefined]", Me = A ? A.toStringTag : void 0;
48
+ function M(e) {
49
+ return e == null ? e === void 0 ? je : Ae : Me && Me in Object(e) ? De(e) : ke(e);
50
+ }
51
+ //#endregion
52
+ //#region node_modules/lodash-es/isObjectLike.js
53
+ function N(e) {
54
+ return typeof e == "object" && !!e;
55
+ }
56
+ //#endregion
57
+ //#region node_modules/lodash-es/isSymbol.js
58
+ var Ne = "[object Symbol]";
59
+ function Pe(e) {
60
+ return typeof e == "symbol" || N(e) && M(e) == Ne;
61
+ }
62
+ //#endregion
63
+ //#region node_modules/lodash-es/_arrayMap.js
64
+ function Fe(e, t) {
65
+ for (var n = -1, r = e == null ? 0 : e.length, i = Array(r); ++n < r;) i[n] = t(e[n], n, e);
66
+ return i;
67
+ }
68
+ //#endregion
69
+ //#region node_modules/lodash-es/isArray.js
70
+ var P = Array.isArray, Ie = Infinity, Le = A ? A.prototype : void 0, Re = Le ? Le.toString : void 0;
71
+ function ze(e) {
72
+ if (typeof e == "string") return e;
73
+ if (P(e)) return Fe(e, ze) + "";
74
+ if (Pe(e)) return Re ? Re.call(e) : "";
75
+ var t = e + "";
76
+ return t == "0" && 1 / e == -Ie ? "-0" : t;
77
+ }
78
+ //#endregion
79
+ //#region node_modules/lodash-es/isObject.js
80
+ function F(e) {
81
+ var t = typeof e;
82
+ return e != null && (t == "object" || t == "function");
83
+ }
84
+ //#endregion
85
+ //#region node_modules/lodash-es/identity.js
86
+ function Be(e) {
87
+ return e;
88
+ }
89
+ //#endregion
90
+ //#region node_modules/lodash-es/isFunction.js
91
+ var Ve = "[object AsyncFunction]", He = "[object Function]", Ue = "[object GeneratorFunction]", We = "[object Proxy]";
92
+ function Ge(e) {
93
+ if (!F(e)) return !1;
94
+ var t = M(e);
95
+ return t == He || t == Ue || t == Ve || t == We;
96
+ }
97
+ //#endregion
98
+ //#region node_modules/lodash-es/_coreJsData.js
99
+ var Ke = k["__core-js_shared__"], qe = function() {
100
+ var e = /[^.]+$/.exec(Ke && Ke.keys && Ke.keys.IE_PROTO || "");
101
+ return e ? "Symbol(src)_1." + e : "";
102
+ }();
103
+ function Je(e) {
104
+ return !!qe && qe in e;
105
+ }
106
+ //#endregion
107
+ //#region node_modules/lodash-es/_toSource.js
108
+ var Ye = Function.prototype.toString;
109
+ function I(e) {
110
+ if (e != null) {
111
+ try {
112
+ return Ye.call(e);
113
+ } catch {}
114
+ try {
115
+ return e + "";
116
+ } catch {}
117
+ }
118
+ return "";
119
+ }
120
+ //#endregion
121
+ //#region node_modules/lodash-es/_baseIsNative.js
122
+ var Xe = /[\\^$.*+?()[\]{}|]/g, Ze = /^\[object .+?Constructor\]$/, Qe = Function.prototype, $e = Object.prototype, et = Qe.toString, tt = $e.hasOwnProperty, nt = RegExp("^" + et.call(tt).replace(Xe, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
123
+ function rt(e) {
124
+ return !F(e) || Je(e) ? !1 : (Ge(e) ? nt : Ze).test(I(e));
125
+ }
126
+ //#endregion
127
+ //#region node_modules/lodash-es/_getValue.js
128
+ function it(e, t) {
129
+ return e?.[t];
130
+ }
131
+ //#endregion
132
+ //#region node_modules/lodash-es/_getNative.js
133
+ function L(e, t) {
134
+ var n = it(e, t);
135
+ return rt(n) ? n : void 0;
136
+ }
137
+ //#endregion
138
+ //#region node_modules/lodash-es/_WeakMap.js
139
+ var at = L(k, "WeakMap"), ot = Object.create, st = function() {
140
+ function e() {}
141
+ return function(t) {
142
+ if (!F(t)) return {};
143
+ if (ot) return ot(t);
144
+ e.prototype = t;
145
+ var n = new e();
146
+ return e.prototype = void 0, n;
147
+ };
148
+ }();
149
+ //#endregion
150
+ //#region node_modules/lodash-es/_apply.js
151
+ function ct(e, t, n) {
152
+ switch (n.length) {
153
+ case 0: return e.call(t);
154
+ case 1: return e.call(t, n[0]);
155
+ case 2: return e.call(t, n[0], n[1]);
156
+ case 3: return e.call(t, n[0], n[1], n[2]);
157
+ }
158
+ return e.apply(t, n);
159
+ }
160
+ //#endregion
161
+ //#region node_modules/lodash-es/_copyArray.js
162
+ function lt(e, t) {
163
+ var n = -1, r = e.length;
164
+ for (t ||= Array(r); ++n < r;) t[n] = e[n];
165
+ return t;
166
+ }
167
+ //#endregion
168
+ //#region node_modules/lodash-es/_shortOut.js
169
+ var ut = 800, dt = 16, ft = Date.now;
170
+ function pt(e) {
171
+ var t = 0, n = 0;
172
+ return function() {
173
+ var r = ft(), i = dt - (r - n);
174
+ if (n = r, i > 0) {
175
+ if (++t >= ut) return arguments[0];
176
+ } else t = 0;
177
+ return e.apply(void 0, arguments);
178
+ };
179
+ }
180
+ //#endregion
181
+ //#region node_modules/lodash-es/constant.js
182
+ function mt(e) {
183
+ return function() {
184
+ return e;
185
+ };
186
+ }
187
+ //#endregion
188
+ //#region node_modules/lodash-es/_defineProperty.js
189
+ var R = function() {
190
+ try {
191
+ var e = L(Object, "defineProperty");
192
+ return e({}, "", {}), e;
193
+ } catch {}
194
+ }(), ht = pt(R ? function(e, t) {
195
+ return R(e, "toString", {
196
+ configurable: !0,
197
+ enumerable: !1,
198
+ value: mt(t),
199
+ writable: !0
200
+ });
201
+ } : Be);
202
+ //#endregion
203
+ //#region node_modules/lodash-es/_arrayEach.js
204
+ function gt(e, t) {
205
+ for (var n = -1, r = e == null ? 0 : e.length; ++n < r && t(e[n], n, e) !== !1;);
206
+ return e;
207
+ }
208
+ //#endregion
209
+ //#region node_modules/lodash-es/_isIndex.js
210
+ var _t = 9007199254740991, vt = /^(?:0|[1-9]\d*)$/;
211
+ function yt(e, t) {
212
+ var n = typeof e;
213
+ return t ??= _t, !!t && (n == "number" || n != "symbol" && vt.test(e)) && e > -1 && e % 1 == 0 && e < t;
214
+ }
215
+ //#endregion
216
+ //#region node_modules/lodash-es/_baseAssignValue.js
217
+ function bt(e, t, n) {
218
+ t == "__proto__" && R ? R(e, t, {
219
+ configurable: !0,
220
+ enumerable: !0,
221
+ value: n,
222
+ writable: !0
223
+ }) : e[t] = n;
224
+ }
225
+ //#endregion
226
+ //#region node_modules/lodash-es/eq.js
227
+ function xt(e, t) {
228
+ return e === t || e !== e && t !== t;
229
+ }
230
+ //#endregion
231
+ //#region node_modules/lodash-es/_assignValue.js
232
+ var St = Object.prototype.hasOwnProperty;
233
+ function Ct(e, t, n) {
234
+ var r = e[t];
235
+ (!(St.call(e, t) && xt(r, n)) || n === void 0 && !(t in e)) && bt(e, t, n);
236
+ }
237
+ //#endregion
238
+ //#region node_modules/lodash-es/_copyObject.js
239
+ function z(e, t, n, r) {
240
+ var i = !n;
241
+ n ||= {};
242
+ for (var a = -1, o = t.length; ++a < o;) {
243
+ var s = t[a], c = r ? r(n[s], e[s], s, n, e) : void 0;
244
+ c === void 0 && (c = e[s]), i ? bt(n, s, c) : Ct(n, s, c);
245
+ }
246
+ return n;
247
+ }
248
+ //#endregion
249
+ //#region node_modules/lodash-es/_overRest.js
250
+ var wt = Math.max;
251
+ function Tt(e, t, n) {
252
+ return t = wt(t === void 0 ? e.length - 1 : t, 0), function() {
253
+ for (var r = arguments, i = -1, a = wt(r.length - t, 0), o = Array(a); ++i < a;) o[i] = r[t + i];
254
+ i = -1;
255
+ for (var s = Array(t + 1); ++i < t;) s[i] = r[i];
256
+ return s[t] = n(o), ct(e, this, s);
257
+ };
258
+ }
259
+ //#endregion
260
+ //#region node_modules/lodash-es/isLength.js
261
+ var Et = 9007199254740991;
262
+ function Dt(e) {
263
+ return typeof e == "number" && e > -1 && e % 1 == 0 && e <= Et;
264
+ }
265
+ //#endregion
266
+ //#region node_modules/lodash-es/isArrayLike.js
267
+ function Ot(e) {
268
+ return e != null && Dt(e.length) && !Ge(e);
269
+ }
270
+ //#endregion
271
+ //#region node_modules/lodash-es/_isPrototype.js
272
+ var kt = Object.prototype;
273
+ function At(e) {
274
+ var t = e && e.constructor;
275
+ return e === (typeof t == "function" && t.prototype || kt);
276
+ }
277
+ //#endregion
278
+ //#region node_modules/lodash-es/_baseTimes.js
279
+ function jt(e, t) {
280
+ for (var n = -1, r = Array(e); ++n < e;) r[n] = t(n);
281
+ return r;
282
+ }
283
+ //#endregion
284
+ //#region node_modules/lodash-es/_baseIsArguments.js
285
+ var Mt = "[object Arguments]";
286
+ function Nt(e) {
287
+ return N(e) && M(e) == Mt;
288
+ }
289
+ //#endregion
290
+ //#region node_modules/lodash-es/isArguments.js
291
+ var Pt = Object.prototype, Ft = Pt.hasOwnProperty, It = Pt.propertyIsEnumerable, Lt = Nt(function() {
292
+ return arguments;
293
+ }()) ? Nt : function(e) {
294
+ return N(e) && Ft.call(e, "callee") && !It.call(e, "callee");
295
+ };
296
+ //#endregion
297
+ //#region node_modules/lodash-es/stubFalse.js
298
+ function Rt() {
299
+ return !1;
300
+ }
301
+ //#endregion
302
+ //#region node_modules/lodash-es/isBuffer.js
303
+ var zt = typeof exports == "object" && exports && !exports.nodeType && exports, Bt = zt && typeof module == "object" && module && !module.nodeType && module, Vt = Bt && Bt.exports === zt ? k.Buffer : void 0, Ht = (Vt ? Vt.isBuffer : void 0) || Rt, Ut = "[object Arguments]", Wt = "[object Array]", Gt = "[object Boolean]", Kt = "[object Date]", qt = "[object Error]", Jt = "[object Function]", Yt = "[object Map]", Xt = "[object Number]", Zt = "[object Object]", Qt = "[object RegExp]", $t = "[object Set]", en = "[object String]", tn = "[object WeakMap]", nn = "[object ArrayBuffer]", rn = "[object DataView]", an = "[object Float32Array]", on = "[object Float64Array]", sn = "[object Int8Array]", cn = "[object Int16Array]", ln = "[object Int32Array]", un = "[object Uint8Array]", dn = "[object Uint8ClampedArray]", fn = "[object Uint16Array]", pn = "[object Uint32Array]", B = {};
304
+ B[an] = B[on] = B[sn] = B[cn] = B[ln] = B[un] = B[dn] = B[fn] = B[pn] = !0, B[Ut] = B[Wt] = B[nn] = B[Gt] = B[rn] = B[Kt] = B[qt] = B[Jt] = B[Yt] = B[Xt] = B[Zt] = B[Qt] = B[$t] = B[en] = B[tn] = !1;
305
+ function mn(e) {
306
+ return N(e) && Dt(e.length) && !!B[M(e)];
307
+ }
308
+ //#endregion
309
+ //#region node_modules/lodash-es/_baseUnary.js
310
+ function hn(e) {
311
+ return function(t) {
312
+ return e(t);
313
+ };
314
+ }
315
+ //#endregion
316
+ //#region node_modules/lodash-es/_nodeUtil.js
317
+ var gn = typeof exports == "object" && exports && !exports.nodeType && exports, V = gn && typeof module == "object" && module && !module.nodeType && module, _n = V && V.exports === gn && Se.process, H = function() {
318
+ try {
319
+ return V && V.require && V.require("util").types || _n && _n.binding && _n.binding("util");
320
+ } catch {}
321
+ }(), vn = H && H.isTypedArray, yn = vn ? hn(vn) : mn, bn = Object.prototype.hasOwnProperty;
322
+ function xn(e, t) {
323
+ var n = P(e), r = !n && Lt(e), i = !n && !r && Ht(e), a = !n && !r && !i && yn(e), o = n || r || i || a, s = o ? jt(e.length, String) : [], c = s.length;
324
+ for (var l in e) (t || bn.call(e, l)) && !(o && (l == "length" || i && (l == "offset" || l == "parent") || a && (l == "buffer" || l == "byteLength" || l == "byteOffset") || yt(l, c))) && s.push(l);
325
+ return s;
326
+ }
327
+ //#endregion
328
+ //#region node_modules/lodash-es/_overArg.js
329
+ function Sn(e, t) {
330
+ return function(n) {
331
+ return e(t(n));
332
+ };
333
+ }
334
+ //#endregion
335
+ //#region node_modules/lodash-es/_nativeKeys.js
336
+ var Cn = Sn(Object.keys, Object), wn = Object.prototype.hasOwnProperty;
337
+ function Tn(e) {
338
+ if (!At(e)) return Cn(e);
339
+ var t = [];
340
+ for (var n in Object(e)) wn.call(e, n) && n != "constructor" && t.push(n);
341
+ return t;
342
+ }
343
+ //#endregion
344
+ //#region node_modules/lodash-es/keys.js
345
+ function En(e) {
346
+ return Ot(e) ? xn(e) : Tn(e);
347
+ }
348
+ //#endregion
349
+ //#region node_modules/lodash-es/_nativeKeysIn.js
350
+ function Dn(e) {
351
+ var t = [];
352
+ if (e != null) for (var n in Object(e)) t.push(n);
353
+ return t;
354
+ }
355
+ //#endregion
356
+ //#region node_modules/lodash-es/_baseKeysIn.js
357
+ var On = Object.prototype.hasOwnProperty;
358
+ function kn(e) {
359
+ if (!F(e)) return Dn(e);
360
+ var t = At(e), n = [];
361
+ for (var r in e) r == "constructor" && (t || !On.call(e, r)) || n.push(r);
362
+ return n;
363
+ }
364
+ //#endregion
365
+ //#region node_modules/lodash-es/keysIn.js
366
+ function An(e) {
367
+ return Ot(e) ? xn(e, !0) : kn(e);
368
+ }
369
+ //#endregion
370
+ //#region node_modules/lodash-es/_isKey.js
371
+ var jn = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Mn = /^\w*$/;
372
+ function Nn(e, t) {
373
+ if (P(e)) return !1;
374
+ var n = typeof e;
375
+ return n == "number" || n == "symbol" || n == "boolean" || e == null || Pe(e) ? !0 : Mn.test(e) || !jn.test(e) || t != null && e in Object(t);
376
+ }
377
+ //#endregion
378
+ //#region node_modules/lodash-es/_nativeCreate.js
379
+ var U = L(Object, "create");
380
+ //#endregion
381
+ //#region node_modules/lodash-es/_hashClear.js
382
+ function Pn() {
383
+ this.__data__ = U ? U(null) : {}, this.size = 0;
384
+ }
385
+ //#endregion
386
+ //#region node_modules/lodash-es/_hashDelete.js
387
+ function Fn(e) {
388
+ var t = this.has(e) && delete this.__data__[e];
389
+ return this.size -= +!!t, t;
390
+ }
391
+ //#endregion
392
+ //#region node_modules/lodash-es/_hashGet.js
393
+ var In = "__lodash_hash_undefined__", Ln = Object.prototype.hasOwnProperty;
394
+ function Rn(e) {
395
+ var t = this.__data__;
396
+ if (U) {
397
+ var n = t[e];
398
+ return n === In ? void 0 : n;
399
+ }
400
+ return Ln.call(t, e) ? t[e] : void 0;
401
+ }
402
+ //#endregion
403
+ //#region node_modules/lodash-es/_hashHas.js
404
+ var zn = Object.prototype.hasOwnProperty;
405
+ function Bn(e) {
406
+ var t = this.__data__;
407
+ return U ? t[e] !== void 0 : zn.call(t, e);
408
+ }
409
+ //#endregion
410
+ //#region node_modules/lodash-es/_hashSet.js
411
+ var Vn = "__lodash_hash_undefined__";
412
+ function Hn(e, t) {
413
+ var n = this.__data__;
414
+ return this.size += +!this.has(e), n[e] = U && t === void 0 ? Vn : t, this;
415
+ }
416
+ //#endregion
417
+ //#region node_modules/lodash-es/_Hash.js
418
+ function W(e) {
419
+ var t = -1, n = e == null ? 0 : e.length;
420
+ for (this.clear(); ++t < n;) {
421
+ var r = e[t];
422
+ this.set(r[0], r[1]);
423
+ }
424
+ }
425
+ W.prototype.clear = Pn, W.prototype.delete = Fn, W.prototype.get = Rn, W.prototype.has = Bn, W.prototype.set = Hn;
426
+ //#endregion
427
+ //#region node_modules/lodash-es/_listCacheClear.js
428
+ function Un() {
429
+ this.__data__ = [], this.size = 0;
430
+ }
431
+ //#endregion
432
+ //#region node_modules/lodash-es/_assocIndexOf.js
433
+ function Wn(e, t) {
434
+ for (var n = e.length; n--;) if (xt(e[n][0], t)) return n;
435
+ return -1;
436
+ }
437
+ //#endregion
438
+ //#region node_modules/lodash-es/_listCacheDelete.js
439
+ var Gn = Array.prototype.splice;
440
+ function Kn(e) {
441
+ var t = this.__data__, n = Wn(t, e);
442
+ return n < 0 ? !1 : (n == t.length - 1 ? t.pop() : Gn.call(t, n, 1), --this.size, !0);
443
+ }
444
+ //#endregion
445
+ //#region node_modules/lodash-es/_listCacheGet.js
446
+ function qn(e) {
447
+ var t = this.__data__, n = Wn(t, e);
448
+ return n < 0 ? void 0 : t[n][1];
449
+ }
450
+ //#endregion
451
+ //#region node_modules/lodash-es/_listCacheHas.js
452
+ function Jn(e) {
453
+ return Wn(this.__data__, e) > -1;
454
+ }
455
+ //#endregion
456
+ //#region node_modules/lodash-es/_listCacheSet.js
457
+ function Yn(e, t) {
458
+ var n = this.__data__, r = Wn(n, e);
459
+ return r < 0 ? (++this.size, n.push([e, t])) : n[r][1] = t, this;
460
+ }
461
+ //#endregion
462
+ //#region node_modules/lodash-es/_ListCache.js
463
+ function G(e) {
464
+ var t = -1, n = e == null ? 0 : e.length;
465
+ for (this.clear(); ++t < n;) {
466
+ var r = e[t];
467
+ this.set(r[0], r[1]);
468
+ }
469
+ }
470
+ G.prototype.clear = Un, G.prototype.delete = Kn, G.prototype.get = qn, G.prototype.has = Jn, G.prototype.set = Yn;
471
+ //#endregion
472
+ //#region node_modules/lodash-es/_Map.js
473
+ var K = L(k, "Map");
474
+ //#endregion
475
+ //#region node_modules/lodash-es/_mapCacheClear.js
476
+ function Xn() {
477
+ this.size = 0, this.__data__ = {
478
+ hash: new W(),
479
+ map: new (K || G)(),
480
+ string: new W()
481
+ };
482
+ }
483
+ //#endregion
484
+ //#region node_modules/lodash-es/_isKeyable.js
485
+ function Zn(e) {
486
+ var t = typeof e;
487
+ return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
488
+ }
489
+ //#endregion
490
+ //#region node_modules/lodash-es/_getMapData.js
491
+ function q(e, t) {
492
+ var n = e.__data__;
493
+ return Zn(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
494
+ }
495
+ //#endregion
496
+ //#region node_modules/lodash-es/_mapCacheDelete.js
497
+ function Qn(e) {
498
+ var t = q(this, e).delete(e);
499
+ return this.size -= +!!t, t;
500
+ }
501
+ //#endregion
502
+ //#region node_modules/lodash-es/_mapCacheGet.js
503
+ function $n(e) {
504
+ return q(this, e).get(e);
505
+ }
506
+ //#endregion
507
+ //#region node_modules/lodash-es/_mapCacheHas.js
508
+ function er(e) {
509
+ return q(this, e).has(e);
510
+ }
511
+ //#endregion
512
+ //#region node_modules/lodash-es/_mapCacheSet.js
513
+ function tr(e, t) {
514
+ var n = q(this, e), r = n.size;
515
+ return n.set(e, t), this.size += n.size == r ? 0 : 1, this;
516
+ }
517
+ //#endregion
518
+ //#region node_modules/lodash-es/_MapCache.js
519
+ function J(e) {
520
+ var t = -1, n = e == null ? 0 : e.length;
521
+ for (this.clear(); ++t < n;) {
522
+ var r = e[t];
523
+ this.set(r[0], r[1]);
524
+ }
525
+ }
526
+ J.prototype.clear = Xn, J.prototype.delete = Qn, J.prototype.get = $n, J.prototype.has = er, J.prototype.set = tr;
527
+ //#endregion
528
+ //#region node_modules/lodash-es/memoize.js
529
+ var nr = "Expected a function";
530
+ function rr(e, t) {
531
+ if (typeof e != "function" || t != null && typeof t != "function") throw TypeError(nr);
532
+ var n = function() {
533
+ var r = arguments, i = t ? t.apply(this, r) : r[0], a = n.cache;
534
+ if (a.has(i)) return a.get(i);
535
+ var o = e.apply(this, r);
536
+ return n.cache = a.set(i, o) || a, o;
537
+ };
538
+ return n.cache = new (rr.Cache || J)(), n;
539
+ }
540
+ rr.Cache = J;
541
+ //#endregion
542
+ //#region node_modules/lodash-es/_memoizeCapped.js
543
+ var ir = 500;
544
+ function ar(e) {
545
+ var t = rr(e, function(e) {
546
+ return n.size === ir && n.clear(), e;
547
+ }), n = t.cache;
548
+ return t;
549
+ }
550
+ //#endregion
551
+ //#region node_modules/lodash-es/_stringToPath.js
552
+ var or = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, sr = /\\(\\)?/g, cr = ar(function(e) {
553
+ var t = [];
554
+ return e.charCodeAt(0) === 46 && t.push(""), e.replace(or, function(e, n, r, i) {
555
+ t.push(r ? i.replace(sr, "$1") : n || e);
556
+ }), t;
557
+ });
558
+ //#endregion
559
+ //#region node_modules/lodash-es/toString.js
560
+ function lr(e) {
561
+ return e == null ? "" : ze(e);
562
+ }
563
+ //#endregion
564
+ //#region node_modules/lodash-es/_castPath.js
565
+ function ur(e, t) {
566
+ return P(e) ? e : Nn(e, t) ? [e] : cr(lr(e));
567
+ }
568
+ //#endregion
569
+ //#region node_modules/lodash-es/_toKey.js
570
+ var dr = Infinity;
571
+ function fr(e) {
572
+ if (typeof e == "string" || Pe(e)) return e;
573
+ var t = e + "";
574
+ return t == "0" && 1 / e == -dr ? "-0" : t;
575
+ }
576
+ //#endregion
577
+ //#region node_modules/lodash-es/_baseGet.js
578
+ function pr(e, t) {
579
+ t = ur(t, e);
580
+ for (var n = 0, r = t.length; e != null && n < r;) e = e[fr(t[n++])];
581
+ return n && n == r ? e : void 0;
582
+ }
583
+ //#endregion
584
+ //#region node_modules/lodash-es/_arrayPush.js
585
+ function mr(e, t) {
586
+ for (var n = -1, r = t.length, i = e.length; ++n < r;) e[i + n] = t[n];
587
+ return e;
588
+ }
589
+ //#endregion
590
+ //#region node_modules/lodash-es/_isFlattenable.js
591
+ var hr = A ? A.isConcatSpreadable : void 0;
592
+ function gr(e) {
593
+ return P(e) || Lt(e) || !!(hr && e && e[hr]);
594
+ }
595
+ //#endregion
596
+ //#region node_modules/lodash-es/_baseFlatten.js
597
+ function _r(e, t, n, r, i) {
598
+ var a = -1, o = e.length;
599
+ for (n ||= gr, i ||= []; ++a < o;) {
600
+ var s = e[a];
601
+ t > 0 && n(s) ? t > 1 ? _r(s, t - 1, n, r, i) : mr(i, s) : r || (i[i.length] = s);
602
+ }
603
+ return i;
604
+ }
605
+ //#endregion
606
+ //#region node_modules/lodash-es/flatten.js
607
+ function vr(e) {
608
+ return e != null && e.length ? _r(e, 1) : [];
609
+ }
610
+ //#endregion
611
+ //#region node_modules/lodash-es/_flatRest.js
612
+ function yr(e) {
613
+ return ht(Tt(e, void 0, vr), e + "");
614
+ }
615
+ //#endregion
616
+ //#region node_modules/lodash-es/_getPrototype.js
617
+ var br = Sn(Object.getPrototypeOf, Object), xr = "[object Object]", Sr = Function.prototype, Cr = Object.prototype, wr = Sr.toString, Tr = Cr.hasOwnProperty, Er = wr.call(Object);
618
+ function Dr(e) {
619
+ if (!N(e) || M(e) != xr) return !1;
620
+ var t = br(e);
621
+ if (t === null) return !0;
622
+ var n = Tr.call(t, "constructor") && t.constructor;
623
+ return typeof n == "function" && n instanceof n && wr.call(n) == Er;
624
+ }
625
+ //#endregion
626
+ //#region node_modules/lodash-es/_baseSlice.js
627
+ function Or(e, t, n) {
628
+ var r = -1, i = e.length;
629
+ t < 0 && (t = -t > i ? 0 : i + t), n = n > i ? i : n, n < 0 && (n += i), i = t > n ? 0 : n - t >>> 0, t >>>= 0;
630
+ for (var a = Array(i); ++r < i;) a[r] = e[r + t];
631
+ return a;
632
+ }
633
+ //#endregion
634
+ //#region node_modules/lodash-es/_stackClear.js
635
+ function kr() {
636
+ this.__data__ = new G(), this.size = 0;
637
+ }
638
+ //#endregion
639
+ //#region node_modules/lodash-es/_stackDelete.js
640
+ function Ar(e) {
641
+ var t = this.__data__, n = t.delete(e);
642
+ return this.size = t.size, n;
643
+ }
644
+ //#endregion
645
+ //#region node_modules/lodash-es/_stackGet.js
646
+ function jr(e) {
647
+ return this.__data__.get(e);
648
+ }
649
+ //#endregion
650
+ //#region node_modules/lodash-es/_stackHas.js
651
+ function Mr(e) {
652
+ return this.__data__.has(e);
653
+ }
654
+ //#endregion
655
+ //#region node_modules/lodash-es/_stackSet.js
656
+ var Nr = 200;
657
+ function Pr(e, t) {
658
+ var n = this.__data__;
659
+ if (n instanceof G) {
660
+ var r = n.__data__;
661
+ if (!K || r.length < Nr - 1) return r.push([e, t]), this.size = ++n.size, this;
662
+ n = this.__data__ = new J(r);
663
+ }
664
+ return n.set(e, t), this.size = n.size, this;
665
+ }
666
+ //#endregion
667
+ //#region node_modules/lodash-es/_Stack.js
668
+ function Y(e) {
669
+ var t = this.__data__ = new G(e);
670
+ this.size = t.size;
671
+ }
672
+ Y.prototype.clear = kr, Y.prototype.delete = Ar, Y.prototype.get = jr, Y.prototype.has = Mr, Y.prototype.set = Pr;
673
+ //#endregion
674
+ //#region node_modules/lodash-es/_baseAssign.js
675
+ function Fr(e, t) {
676
+ return e && z(t, En(t), e);
677
+ }
678
+ //#endregion
679
+ //#region node_modules/lodash-es/_baseAssignIn.js
680
+ function Ir(e, t) {
681
+ return e && z(t, An(t), e);
682
+ }
683
+ //#endregion
684
+ //#region node_modules/lodash-es/_cloneBuffer.js
685
+ var Lr = typeof exports == "object" && exports && !exports.nodeType && exports, Rr = Lr && typeof module == "object" && module && !module.nodeType && module, zr = Rr && Rr.exports === Lr ? k.Buffer : void 0, Br = zr ? zr.allocUnsafe : void 0;
686
+ function Vr(e, t) {
687
+ if (t) return e.slice();
688
+ var n = e.length, r = Br ? Br(n) : new e.constructor(n);
689
+ return e.copy(r), r;
690
+ }
691
+ //#endregion
692
+ //#region node_modules/lodash-es/_arrayFilter.js
693
+ function Hr(e, t) {
694
+ for (var n = -1, r = e == null ? 0 : e.length, i = 0, a = []; ++n < r;) {
695
+ var o = e[n];
696
+ t(o, n, e) && (a[i++] = o);
697
+ }
698
+ return a;
699
+ }
700
+ //#endregion
701
+ //#region node_modules/lodash-es/stubArray.js
702
+ function Ur() {
703
+ return [];
704
+ }
705
+ //#endregion
706
+ //#region node_modules/lodash-es/_getSymbols.js
707
+ var Wr = Object.prototype.propertyIsEnumerable, Gr = Object.getOwnPropertySymbols, Kr = Gr ? function(e) {
708
+ return e == null ? [] : (e = Object(e), Hr(Gr(e), function(t) {
709
+ return Wr.call(e, t);
710
+ }));
711
+ } : Ur;
712
+ //#endregion
713
+ //#region node_modules/lodash-es/_copySymbols.js
714
+ function qr(e, t) {
715
+ return z(e, Kr(e), t);
716
+ }
717
+ //#endregion
718
+ //#region node_modules/lodash-es/_getSymbolsIn.js
719
+ var Jr = Object.getOwnPropertySymbols ? function(e) {
720
+ for (var t = []; e;) mr(t, Kr(e)), e = br(e);
721
+ return t;
722
+ } : Ur;
723
+ //#endregion
724
+ //#region node_modules/lodash-es/_copySymbolsIn.js
725
+ function Yr(e, t) {
726
+ return z(e, Jr(e), t);
727
+ }
728
+ //#endregion
729
+ //#region node_modules/lodash-es/_baseGetAllKeys.js
730
+ function Xr(e, t, n) {
731
+ var r = t(e);
732
+ return P(e) ? r : mr(r, n(e));
733
+ }
734
+ //#endregion
735
+ //#region node_modules/lodash-es/_getAllKeys.js
736
+ function Zr(e) {
737
+ return Xr(e, En, Kr);
738
+ }
739
+ //#endregion
740
+ //#region node_modules/lodash-es/_getAllKeysIn.js
741
+ function Qr(e) {
742
+ return Xr(e, An, Jr);
743
+ }
744
+ //#endregion
745
+ //#region node_modules/lodash-es/_DataView.js
746
+ var $r = L(k, "DataView"), ei = L(k, "Promise"), ti = L(k, "Set"), ni = "[object Map]", ri = "[object Object]", ii = "[object Promise]", ai = "[object Set]", oi = "[object WeakMap]", si = "[object DataView]", ci = I($r), li = I(K), ui = I(ei), di = I(ti), fi = I(at), X = M;
747
+ ($r && X(new $r(/* @__PURE__ */ new ArrayBuffer(1))) != si || K && X(new K()) != ni || ei && X(ei.resolve()) != ii || ti && X(new ti()) != ai || at && X(new at()) != oi) && (X = function(e) {
748
+ var t = M(e), n = t == ri ? e.constructor : void 0, r = n ? I(n) : "";
749
+ if (r) switch (r) {
750
+ case ci: return si;
751
+ case li: return ni;
752
+ case ui: return ii;
753
+ case di: return ai;
754
+ case fi: return oi;
755
+ }
756
+ return t;
757
+ });
758
+ var pi = X, mi = Object.prototype.hasOwnProperty;
759
+ function hi(e) {
760
+ var t = e.length, n = new e.constructor(t);
761
+ return t && typeof e[0] == "string" && mi.call(e, "index") && (n.index = e.index, n.input = e.input), n;
762
+ }
763
+ //#endregion
764
+ //#region node_modules/lodash-es/_Uint8Array.js
765
+ var gi = k.Uint8Array;
766
+ //#endregion
767
+ //#region node_modules/lodash-es/_cloneArrayBuffer.js
768
+ function _i(e) {
769
+ var t = new e.constructor(e.byteLength);
770
+ return new gi(t).set(new gi(e)), t;
771
+ }
772
+ //#endregion
773
+ //#region node_modules/lodash-es/_cloneDataView.js
774
+ function vi(e, t) {
775
+ var n = t ? _i(e.buffer) : e.buffer;
776
+ return new e.constructor(n, e.byteOffset, e.byteLength);
777
+ }
778
+ //#endregion
779
+ //#region node_modules/lodash-es/_cloneRegExp.js
780
+ var yi = /\w*$/;
781
+ function bi(e) {
782
+ var t = new e.constructor(e.source, yi.exec(e));
783
+ return t.lastIndex = e.lastIndex, t;
784
+ }
785
+ //#endregion
786
+ //#region node_modules/lodash-es/_cloneSymbol.js
787
+ var xi = A ? A.prototype : void 0, Si = xi ? xi.valueOf : void 0;
788
+ function Ci(e) {
789
+ return Si ? Object(Si.call(e)) : {};
790
+ }
791
+ //#endregion
792
+ //#region node_modules/lodash-es/_cloneTypedArray.js
793
+ function wi(e, t) {
794
+ var n = t ? _i(e.buffer) : e.buffer;
795
+ return new e.constructor(n, e.byteOffset, e.length);
796
+ }
797
+ //#endregion
798
+ //#region node_modules/lodash-es/_initCloneByTag.js
799
+ var Ti = "[object Boolean]", Ei = "[object Date]", Di = "[object Map]", Oi = "[object Number]", ki = "[object RegExp]", Ai = "[object Set]", ji = "[object String]", Mi = "[object Symbol]", Ni = "[object ArrayBuffer]", Pi = "[object DataView]", Fi = "[object Float32Array]", Ii = "[object Float64Array]", Li = "[object Int8Array]", Ri = "[object Int16Array]", zi = "[object Int32Array]", Bi = "[object Uint8Array]", Vi = "[object Uint8ClampedArray]", Hi = "[object Uint16Array]", Ui = "[object Uint32Array]";
800
+ function Wi(e, t, n) {
801
+ var r = e.constructor;
802
+ switch (t) {
803
+ case Ni: return _i(e);
804
+ case Ti:
805
+ case Ei: return new r(+e);
806
+ case Pi: return vi(e, n);
807
+ case Fi:
808
+ case Ii:
809
+ case Li:
810
+ case Ri:
811
+ case zi:
812
+ case Bi:
813
+ case Vi:
814
+ case Hi:
815
+ case Ui: return wi(e, n);
816
+ case Di: return new r();
817
+ case Oi:
818
+ case ji: return new r(e);
819
+ case ki: return bi(e);
820
+ case Ai: return new r();
821
+ case Mi: return Ci(e);
822
+ }
823
+ }
824
+ //#endregion
825
+ //#region node_modules/lodash-es/_initCloneObject.js
826
+ function Gi(e) {
827
+ return typeof e.constructor == "function" && !At(e) ? st(br(e)) : {};
828
+ }
829
+ //#endregion
830
+ //#region node_modules/lodash-es/_baseIsMap.js
831
+ var Ki = "[object Map]";
832
+ function qi(e) {
833
+ return N(e) && pi(e) == Ki;
834
+ }
835
+ //#endregion
836
+ //#region node_modules/lodash-es/isMap.js
837
+ var Ji = H && H.isMap, Yi = Ji ? hn(Ji) : qi, Xi = "[object Set]";
838
+ function Zi(e) {
839
+ return N(e) && pi(e) == Xi;
840
+ }
841
+ //#endregion
842
+ //#region node_modules/lodash-es/isSet.js
843
+ var Qi = H && H.isSet, $i = Qi ? hn(Qi) : Zi, ea = 1, ta = 2, na = 4, ra = "[object Arguments]", ia = "[object Array]", aa = "[object Boolean]", oa = "[object Date]", sa = "[object Error]", ca = "[object Function]", la = "[object GeneratorFunction]", ua = "[object Map]", da = "[object Number]", fa = "[object Object]", pa = "[object RegExp]", ma = "[object Set]", ha = "[object String]", ga = "[object Symbol]", _a = "[object WeakMap]", va = "[object ArrayBuffer]", ya = "[object DataView]", ba = "[object Float32Array]", xa = "[object Float64Array]", Sa = "[object Int8Array]", Ca = "[object Int16Array]", wa = "[object Int32Array]", Ta = "[object Uint8Array]", Ea = "[object Uint8ClampedArray]", Da = "[object Uint16Array]", Oa = "[object Uint32Array]", Z = {};
844
+ Z[ra] = Z[ia] = Z[va] = Z[ya] = Z[aa] = Z[oa] = Z[ba] = Z[xa] = Z[Sa] = Z[Ca] = Z[wa] = Z[ua] = Z[da] = Z[fa] = Z[pa] = Z[ma] = Z[ha] = Z[ga] = Z[Ta] = Z[Ea] = Z[Da] = Z[Oa] = !0, Z[sa] = Z[ca] = Z[_a] = !1;
845
+ function Q(e, t, n, r, i, a) {
846
+ var o, s = t & ea, c = t & ta, l = t & na;
847
+ if (n && (o = i ? n(e, r, i, a) : n(e)), o !== void 0) return o;
848
+ if (!F(e)) return e;
849
+ var u = P(e);
850
+ if (u) {
851
+ if (o = hi(e), !s) return lt(e, o);
852
+ } else {
853
+ var d = pi(e), f = d == ca || d == la;
854
+ if (Ht(e)) return Vr(e, s);
855
+ if (d == fa || d == ra || f && !i) {
856
+ if (o = c || f ? {} : Gi(e), !s) return c ? Yr(e, Ir(o, e)) : qr(e, Fr(o, e));
857
+ } else {
858
+ if (!Z[d]) return i ? e : {};
859
+ o = Wi(e, d, s);
860
+ }
861
+ }
862
+ a ||= new Y();
863
+ var p = a.get(e);
864
+ if (p) return p;
865
+ a.set(e, o), $i(e) ? e.forEach(function(r) {
866
+ o.add(Q(r, t, n, r, e, a));
867
+ }) : Yi(e) && e.forEach(function(r, i) {
868
+ o.set(i, Q(r, t, n, i, e, a));
869
+ });
870
+ var m = u ? void 0 : (l ? c ? Qr : Zr : c ? An : En)(e);
871
+ return gt(m || e, function(r, i) {
872
+ m && (i = r, r = e[i]), Ct(o, i, Q(r, t, n, i, e, a));
873
+ }), o;
874
+ }
875
+ //#endregion
876
+ //#region node_modules/lodash-es/cloneDeep.js
877
+ var ka = 1, Aa = 4;
878
+ function ja(e) {
879
+ return Q(e, ka | Aa);
880
+ }
881
+ //#endregion
882
+ //#region node_modules/lodash-es/last.js
883
+ function Ma(e) {
884
+ var t = e == null ? 0 : e.length;
885
+ return t ? e[t - 1] : void 0;
886
+ }
887
+ //#endregion
888
+ //#region node_modules/lodash-es/_parent.js
889
+ function Na(e, t) {
890
+ return t.length < 2 ? e : pr(e, Or(t, 0, -1));
891
+ }
892
+ //#endregion
893
+ //#region node_modules/lodash-es/_baseUnset.js
894
+ var Pa = Object.prototype.hasOwnProperty;
895
+ function Fa(e, t) {
896
+ t = ur(t, e);
897
+ var n = -1, r = t.length;
898
+ if (!r) return !0;
899
+ for (; ++n < r;) {
900
+ var i = fr(t[n]);
901
+ if (i === "__proto__" && !Pa.call(e, "__proto__") || (i === "constructor" || i === "prototype") && n < r - 1) return !1;
902
+ }
903
+ var a = Na(e, t);
904
+ return a == null || delete a[fr(Ma(t))];
905
+ }
906
+ //#endregion
907
+ //#region node_modules/lodash-es/_customOmitClone.js
908
+ function Ia(e) {
909
+ return Dr(e) ? void 0 : e;
910
+ }
911
+ //#endregion
912
+ //#region node_modules/lodash-es/omit.js
913
+ var La = 1, Ra = 2, za = 4, Ba = yr(function(e, t) {
914
+ var n = {};
915
+ if (e == null) return n;
916
+ var r = !1;
917
+ t = Fe(t, function(t) {
918
+ return t = ur(t, e), r ||= t.length > 1, t;
919
+ }), z(e, Qr(e), n), r && (n = Q(n, La | Ra | za, Ia));
920
+ for (var i = t.length; i--;) Fa(n, t[i]);
921
+ return n;
922
+ });
923
+ //#endregion
924
+ //#region node_modules/mitt/dist/mitt.mjs
925
+ function Va(e) {
926
+ return {
927
+ all: e ||= /* @__PURE__ */ new Map(),
928
+ on: function(t, n) {
929
+ var r = e.get(t);
930
+ r ? r.push(n) : e.set(t, [n]);
931
+ },
932
+ off: function(t, n) {
933
+ var r = e.get(t);
934
+ r && (n ? r.splice(r.indexOf(n) >>> 0, 1) : e.set(t, []));
935
+ },
936
+ emit: function(t, n) {
937
+ var r = e.get(t);
938
+ r && r.slice().map(function(e) {
939
+ e(n);
940
+ }), (r = e.get("*")) && r.slice().map(function(e) {
941
+ e(t, n);
942
+ });
943
+ }
944
+ };
945
+ }
946
+ //#endregion
947
+ //#region src/utils/useForm.js
948
+ function Ha(e) {
949
+ if (!e?.formSchema) throw Error("请传入form配置: formSchema");
950
+ let n = e.form ? e.form : v({});
951
+ n.value = Ya(e.formSchema);
952
+ let r = v(!1), i = e?.isEdit || v(!1), a = v(!1), o = v(e.fullScreen || !1), s = v(!1), c = T(e.el || "formRef"), l = t(() => a.value ? `${e.tit}详情` : `${i.value ? "编辑" : "新增"}${e.tit || ""}`), u = t(() => i.value ? "保存" : "创建"), d = t(() => i.value ? "success" : "primary"), f = () => {
953
+ n.value = Ya(e.formSchema), Wa.emit("FORM_RESET_FIELDS"), i.value = !1, a.value = !1, r.value = !1;
954
+ };
955
+ async function p(t = null, r = f) {
956
+ try {
957
+ e.submitBefore?.(n.value);
958
+ let a = i.value ? e?.editAction : e?.addAction;
959
+ a || await Promise.reject("请传入请求函数: addAction or editAction"), await a?.(n.value), r(), await t?.();
960
+ } catch (e) {
961
+ console.error(e);
962
+ }
963
+ }
964
+ let m = async (e = null, t = f) => {
965
+ try {
966
+ await p(e, t);
967
+ } catch (e) {
968
+ throw console.error("[useForm] Submit error:", e), e;
969
+ }
970
+ }, h = async (e, t = null, n = f) => {
971
+ if (e) try {
972
+ if (!await e.validate()) return;
973
+ s.value = !0, await p(t, n);
974
+ } catch (e) {
975
+ console.error("[useForm] Validation/Submit error:", e);
976
+ } finally {
977
+ s.value = !1;
978
+ }
979
+ }, g = t(() => {
980
+ let t = {}, n = {
981
+ [$.SELECT]: "选择",
982
+ [$.INPUT]: "输入"
983
+ }, r = C(e.formSchema);
984
+ return Array.isArray(r) && r.forEach((e) => {
985
+ if (e.rules) t[e.itemProps.prop] = e.rules;
986
+ else if (e.required) {
987
+ let r = `请${n[e.component] ?? "输入"}${e.itemProps.label}`;
988
+ t[e.itemProps.prop] = [{
989
+ required: !0,
990
+ message: r,
991
+ trigger: "blur"
992
+ }];
993
+ }
994
+ }), t;
995
+ }), _ = t(() => ({
996
+ btnTxt: u.value,
997
+ rules: g.value,
998
+ btnType: d.value
999
+ }));
1000
+ function y(e) {
1001
+ n.value = ja(e), r.value = !0, i.value = !0;
1002
+ }
1003
+ function b(e) {
1004
+ n.value = ja(e), r.value = !0, a.value = !0;
1005
+ }
1006
+ return {
1007
+ isShow: r,
1008
+ isEdit: i,
1009
+ isView: a,
1010
+ fullScreen: o,
1011
+ submitLoading: s,
1012
+ formRef: c,
1013
+ form: n,
1014
+ rules: g,
1015
+ dialogTitle: l,
1016
+ buttonText: u,
1017
+ buttonType: d,
1018
+ handleView: b,
1019
+ handleSubmit: m,
1020
+ initFormState: f,
1021
+ onSubmit: h,
1022
+ formAttributeMap: _,
1023
+ handleEdit: y
1024
+ };
1025
+ }
1026
+ //#endregion
1027
+ //#region src/utils/useList.js
1028
+ function Ua(e, t = null, n = !1) {
1029
+ let r = v({});
1030
+ function i() {
1031
+ r.value = {
1032
+ ...O.basePages,
1033
+ ...Ya(t)
1034
+ };
1035
+ }
1036
+ i();
1037
+ let a = v([]), o = v(0), s = v(!1);
1038
+ async function c() {
1039
+ s.value = !0;
1040
+ try {
1041
+ let t = {};
1042
+ if (n) {
1043
+ let e = O.wrapQueryParams ? O.wrapQueryParams(r.value) : Xa(r.value);
1044
+ t = {
1045
+ ...r.value,
1046
+ ...e
1047
+ };
1048
+ } else t = r.value;
1049
+ let { count: i, list: s } = await e(t);
1050
+ a.value = s, o.value = Number(i);
1051
+ } finally {
1052
+ s.value = !1;
1053
+ }
1054
+ }
1055
+ return {
1056
+ pages: r,
1057
+ dataList: a,
1058
+ total: o,
1059
+ isLoading: s,
1060
+ getList: c,
1061
+ initPages: i
1062
+ };
1063
+ }
1064
+ //#endregion
1065
+ //#region src/utils/index.js
1066
+ var Wa = Va(), $ = {
1067
+ INPUT: "input",
1068
+ SELECT: "select",
1069
+ DATE_PICK: "datePick",
1070
+ DATETIME: "datetime",
1071
+ RADIO: "radio",
1072
+ RADIO_BTN: "radioBtn",
1073
+ CHECKBOX: "checkbox",
1074
+ NUMBER: "number",
1075
+ UPLOAD_IMG: "uploadImg",
1076
+ SWITCH: "switch",
1077
+ RATE: "Rate",
1078
+ SLOT: "slot",
1079
+ HIDDEN: "hidden",
1080
+ OUT_SLOT: "outSlot",
1081
+ CHECKBOX_GROUP: "checkboxGroup"
1082
+ }, Ga = {
1083
+ [$.INPUT]: "",
1084
+ [$.SELECT]: null,
1085
+ [$.CHECKBOX]: !0,
1086
+ [$.NUMBER]: 0,
1087
+ [$.UPLOAD_IMG]: "",
1088
+ [$.RADIO]: "",
1089
+ [$.SWITCH]: !0,
1090
+ [$.RATE]: 5
1091
+ }, Ka = [$.INPUT];
1092
+ function qa(e, t, n) {
1093
+ let r = t || n;
1094
+ if (Ka.includes(e)) return r;
1095
+ }
1096
+ function Ja(e, t) {
1097
+ return Object.prototype.toString.call(t).slice(8, -1).toLowerCase() === e.toLowerCase();
1098
+ }
1099
+ function Ya(e) {
1100
+ let t = C(e);
1101
+ if (Ja("array", t)) {
1102
+ let e = {};
1103
+ return ja(t).forEach((t) => {
1104
+ e[t.itemProps.prop] = t.default === void 0 ? Ga[t.component] : t.default;
1105
+ }), e;
1106
+ } else return ja(t);
1107
+ }
1108
+ function Xa(e) {
1109
+ let { index: t, size: n, ...r } = e;
1110
+ return {
1111
+ index: t,
1112
+ size: n,
1113
+ parameters: r
1114
+ };
1115
+ }
1116
+ //#endregion
1117
+ //#region src/utils/useFormItem.js
1118
+ function Za(e, { slots: t, attrs: n }) {
1119
+ return u(ne, { ...n }, { ...t });
1120
+ }
1121
+ function Qa(e, { slots: t, attrs: n }) {
1122
+ return u(ae, {
1123
+ valueFormat: "YYYY-MM-DD HH:mm:ss",
1124
+ ...n
1125
+ }, { ...t });
1126
+ }
1127
+ function $a(e, { slots: t, attrs: n }) {
1128
+ return u(ce, { ...n }, { ...t });
1129
+ }
1130
+ function eo(e, { slots: t, attrs: n }) {
1131
+ return u(le, { ...n }, { ...t });
1132
+ }
1133
+ function to(e, { slots: t, attrs: n }) {
1134
+ return u(he, { ...n }, { ...t });
1135
+ }
1136
+ function no(e, { slots: t, attrs: n }) {
1137
+ return u(ve, { ...n }, { ...t });
1138
+ }
1139
+ function ro(e, t) {
1140
+ let n = C(t.options), { options: r, ...i } = t;
1141
+ return [...n.map((n) => u(e, {
1142
+ ...i,
1143
+ key: n[t.cusValue ? t.cusValue : "id"],
1144
+ label: n[t.cusLabel ? t.cusLabel : "name"],
1145
+ value: n[t.cusValue ? t.cusValue : "id"]
1146
+ }, { ...t.slots }))];
1147
+ }
1148
+ function io(e, { slots: t, attrs: n }) {
1149
+ return u(me, { ...Ba(n, "options") }, {
1150
+ ...t,
1151
+ default: () => ro(pe, e)
1152
+ });
1153
+ }
1154
+ function ao(e, { slots: t, attrs: n }) {
1155
+ return u(re, {
1156
+ ...n,
1157
+ options: C(e.options),
1158
+ props: {
1159
+ label: e.cusLabel ? e.cusLabel : "name",
1160
+ value: e.cusValue ? e.cusValue : "id",
1161
+ disabled: "unable"
1162
+ }
1163
+ }, { ...t });
1164
+ }
1165
+ function oo(e, { slots: t, attrs: n }) {
1166
+ return u(me, { ...Ba(n, "options") }, {
1167
+ ...t,
1168
+ default: () => ro(fe, e)
1169
+ });
1170
+ }
1171
+ function so(e, { slots: t, attrs: n }) {
1172
+ return u(_e, {
1173
+ style: "100%",
1174
+ ...Ba(n, "options")
1175
+ }, {
1176
+ ...t,
1177
+ default: () => ro(ue, e)
1178
+ });
1179
+ }
1180
+ var co = {
1181
+ [$.INPUT]: $a,
1182
+ [$.SELECT]: so,
1183
+ [$.NUMBER]: eo,
1184
+ [$.SWITCH]: no,
1185
+ [$.CHECKBOX]: Za,
1186
+ [$.CHECKBOX_GROUP]: ao,
1187
+ [$.DATE_PICK]: Qa,
1188
+ [$.RATE]: to,
1189
+ [$.RADIO]: oo,
1190
+ [$.RADIO_BTN]: io
1191
+ };
1192
+ function lo(e) {
1193
+ let { component: t } = e;
1194
+ return t && !Ja("string", t) ? t : co[e.component] ? co[e.component] : e.component ? e.component : ce;
1195
+ }
1196
+ //#endregion
1197
+ //#region src/components/FormItem.vue
1198
+ var uo = {
1199
+ __name: "FormItem",
1200
+ props: ["comp"],
1201
+ setup(e) {
1202
+ return (t, r) => (_(), n(x(e.comp), m(l(t.$attrs)), o({ _: 2 }, [y(t.$slots, (e, n) => ({
1203
+ name: n,
1204
+ fn: E((e) => [b(t.$slots, n, { row: e })])
1205
+ }))]), 1040));
1206
+ }
1207
+ }, fo = {
1208
+ key: 0,
1209
+ class: "flex justify-end"
1210
+ }, po = /*@__PURE__*/ Object.assign({ name: "ActionForm" }, {
1211
+ __name: "ActionForm",
1212
+ props: /*@__PURE__*/ d({
1213
+ formSchema: {
1214
+ type: Array,
1215
+ required: !0
1216
+ },
1217
+ rules: {
1218
+ type: Object,
1219
+ default: () => {}
1220
+ },
1221
+ isView: {
1222
+ type: Boolean,
1223
+ default: !1
1224
+ },
1225
+ btnType: {
1226
+ type: String,
1227
+ validator(e) {
1228
+ return [
1229
+ "primary",
1230
+ "success",
1231
+ "warning",
1232
+ "danger",
1233
+ "info",
1234
+ "text"
1235
+ ].includes(e);
1236
+ },
1237
+ default: "primary"
1238
+ },
1239
+ btnTxt: {
1240
+ type: String,
1241
+ default: "确定"
1242
+ },
1243
+ cancelTxt: {
1244
+ type: String,
1245
+ default: "取消"
1246
+ }
1247
+ }, {
1248
+ modelValue: {},
1249
+ modelModifiers: {}
1250
+ }),
1251
+ emits: /*@__PURE__*/ d(["cancel", "confirm"], ["update:modelValue"]),
1252
+ setup(a, { expose: l, emit: u }) {
1253
+ let d = a, p = ee(a, "modelValue"), m = u, v = T("formRef"), te = t(() => d.formSchema.filter((e) => !e.hidden));
1254
+ function ne() {
1255
+ m("cancel");
1256
+ }
1257
+ let re = async (e) => {
1258
+ if (e) try {
1259
+ await e.validate(), m("confirm");
1260
+ } catch (e) {
1261
+ console.warn("[Form] Validation/Submit error:", e);
1262
+ }
1263
+ };
1264
+ function ae(e) {
1265
+ return Ja("undefined", e?.props?.disabled) ? !1 : C(e?.props?.disabled);
1266
+ }
1267
+ l(new Proxy({}, {
1268
+ get(e, t) {
1269
+ return v.value?.[t];
1270
+ },
1271
+ has(e, t) {
1272
+ return t in v.value;
1273
+ }
1274
+ }));
1275
+ let ce = () => {
1276
+ v.value?.resetFields?.();
1277
+ };
1278
+ return h(() => {
1279
+ Wa.on("FORM_RESET_FIELDS", ce);
1280
+ }), g(() => {
1281
+ Wa.off("FORM_RESET_FIELDS", ce);
1282
+ }), (t, l) => (_(), i(e, null, [
1283
+ c(w(oe), f({
1284
+ ref_key: "formRef",
1285
+ ref: v,
1286
+ model: p.value,
1287
+ rules: a.rules,
1288
+ "label-width": "100px",
1289
+ disabled: a.isView
1290
+ }, t.$attrs, { "validate-on-rule-change": !1 }), {
1291
+ default: E(() => [c(w(ge), { gutter: 20 }, {
1292
+ default: E(() => [(_(!0), i(e, null, y(te.value, (a) => (_(), i(e, { key: a.itemProps.prop }, [a.component === w($).HIDDEN ? r("", !0) : (_(), n(w(ie), {
1293
+ key: 0,
1294
+ span: a.span ? 24 / a.span : 24
1295
+ }, {
1296
+ default: E(() => [a.component === w($).OUT_SLOT ? b(t.$slots, a.itemProps.prop, {
1297
+ key: 0,
1298
+ row: a.props,
1299
+ props: a.itemProps
1300
+ }) : (_(), n(w(se), f({
1301
+ key: 1,
1302
+ ref_for: !0
1303
+ }, a.itemProps), o({
1304
+ default: E(() => [b(t.$slots, a.itemProps.prop, {
1305
+ row: a.props,
1306
+ props: a.itemProps
1307
+ }, () => [c(uo, f({ comp: w(lo)(a) }, { ref_for: !0 }, a.props, {
1308
+ clearable: "",
1309
+ placeholder: w(qa)(a.component, a?.props?.placeholder, a.itemProps.label),
1310
+ modelValue: p.value[a.itemProps.prop],
1311
+ "onUpdate:modelValue": (e) => p.value[a.itemProps.prop] = e,
1312
+ disabled: ae(a)
1313
+ }), o({ _: 2 }, [y(a.slots, (e, t) => ({
1314
+ name: t,
1315
+ fn: E(() => [(_(), n(x(e)))])
1316
+ }))]), 1040, [
1317
+ "comp",
1318
+ "placeholder",
1319
+ "modelValue",
1320
+ "onUpdate:modelValue",
1321
+ "disabled"
1322
+ ])])]),
1323
+ _: 2
1324
+ }, [y(a.itemProps.slots, (e, t) => ({
1325
+ name: t,
1326
+ fn: E((t) => [(_(), n(x(e), f({ ref_for: !0 }, t), null, 16))])
1327
+ }))]), 1040))]),
1328
+ _: 2
1329
+ }, 1032, ["span"]))], 64))), 128))]),
1330
+ _: 3
1331
+ })]),
1332
+ _: 3
1333
+ }, 16, [
1334
+ "model",
1335
+ "rules",
1336
+ "disabled"
1337
+ ]),
1338
+ b(t.$slots, "ext"),
1339
+ b(t.$slots, "default", {}, () => [a.isView ? r("", !0) : (_(), i("div", fo, [c(w(D), { onClick: ne }, {
1340
+ default: E(() => [s(S(a.cancelTxt), 1)]),
1341
+ _: 1
1342
+ }), c(w(D), {
1343
+ type: a.btnType,
1344
+ onClick: l[0] ||= (e) => re(v.value)
1345
+ }, {
1346
+ default: E(() => [s(S(a.btnTxt), 1)]),
1347
+ _: 1
1348
+ }, 8, ["type"])]))])
1349
+ ], 64));
1350
+ }
1351
+ }), mo = /*@__PURE__*/ Object.assign({ name: "FilterForm" }, {
1352
+ __name: "FilterForm",
1353
+ props: /*@__PURE__*/ d({
1354
+ filterOptions: {
1355
+ type: Array,
1356
+ default: () => []
1357
+ },
1358
+ hasReset: {
1359
+ type: Boolean,
1360
+ default: !0
1361
+ },
1362
+ watchTypes: {
1363
+ type: Array,
1364
+ default: () => []
1365
+ },
1366
+ resetHandle: {
1367
+ type: Function,
1368
+ default: null
1369
+ },
1370
+ isGap: {
1371
+ type: Boolean,
1372
+ default: !1
1373
+ },
1374
+ initPage: {
1375
+ type: Function,
1376
+ default: null
1377
+ }
1378
+ }, {
1379
+ modelValue: {},
1380
+ modelModifiers: {}
1381
+ }),
1382
+ emits: /*@__PURE__*/ d(["search"], ["update:modelValue"]),
1383
+ setup(a, { expose: l, emit: u }) {
1384
+ let d = a, p = u, m = ee(a, "modelValue"), h = T("filterForm");
1385
+ async function g() {
1386
+ try {
1387
+ await h.value?.validate(), m.value.index = 1, p("search");
1388
+ } catch (e) {
1389
+ console.warn(e);
1390
+ }
1391
+ }
1392
+ function v() {
1393
+ d.initPage ? d.initPage() : (h.value.resetFields(), d.resetHandle?.()), p("search");
1394
+ }
1395
+ let S = t(() => {
1396
+ let e = {}, t = {
1397
+ [$.SELECT]: "选择",
1398
+ [$.INPUT]: "输入"
1399
+ };
1400
+ return Array.isArray(d.filterOptions) && d.filterOptions.forEach((n) => {
1401
+ if (n.rules) e[n.itemProps.prop] = n.rules;
1402
+ else if (n.required) {
1403
+ let r = `请${t[n.component] ?? "输入"}${n.itemProps.label}`;
1404
+ e[n.itemProps.prop] = [{
1405
+ required: !0,
1406
+ message: r,
1407
+ trigger: "blur"
1408
+ }];
1409
+ }
1410
+ }), e;
1411
+ });
1412
+ return l(new Proxy({}, {
1413
+ get(e, t) {
1414
+ return h.value?.[t];
1415
+ },
1416
+ has(e, t) {
1417
+ return t in h.value;
1418
+ }
1419
+ })), (t, l) => (_(), n(w(oe), f({ model: m.value }, t.$attrs, {
1420
+ inline: "",
1421
+ ref_key: "filterForm",
1422
+ ref: h,
1423
+ rules: S.value,
1424
+ class: a.isGap ? "gap-filter" : "cus-filter"
1425
+ }), {
1426
+ default: E(() => [(_(!0), i(e, null, y(a.filterOptions, (a, s) => (_(), i(e, { key: a.itemProps.prop }, [a.component === w($).HIDDEN ? r("", !0) : (_(), i(e, { key: 0 }, [a.component === w($).OUT_SLOT ? b(t.$slots, a.itemProps.prop, {
1427
+ key: 0,
1428
+ row: a.props,
1429
+ props: a.itemProps
1430
+ }) : (_(), n(w(se), f({
1431
+ key: 1,
1432
+ ref_for: !0
1433
+ }, a.itemProps), o({
1434
+ default: E(() => [b(t.$slots, a.itemProps.prop, {}, () => [c(uo, f({
1435
+ comp: w(lo)(a),
1436
+ placeholder: w(qa)(a.component, a?.props?.placeholder, a.itemProps.label),
1437
+ modelValue: m.value[a.itemProps.prop],
1438
+ "onUpdate:modelValue": (e) => m.value[a.itemProps.prop] = e,
1439
+ clearable: "",
1440
+ style: { width: `${a.itemProps.width ?? 240}px` }
1441
+ }, { ref_for: !0 }, a.props), o({ _: 2 }, [y(a.slots, (e, t) => ({
1442
+ name: t,
1443
+ fn: E(() => [(_(), n(x(e)))])
1444
+ }))]), 1040, [
1445
+ "comp",
1446
+ "placeholder",
1447
+ "modelValue",
1448
+ "onUpdate:modelValue",
1449
+ "style"
1450
+ ])])]),
1451
+ _: 2
1452
+ }, [y(a.itemProps.slots, (e, t) => ({
1453
+ name: t,
1454
+ fn: E(() => [(_(), n(x(e)))])
1455
+ }))]), 1040))], 64))], 64))), 128)), c(w(se), null, {
1456
+ default: E(() => [c(w(D), {
1457
+ type: "success",
1458
+ onClick: g,
1459
+ icon: "Search"
1460
+ }, {
1461
+ default: E(() => [...l[0] ||= [s(" 搜索 ", -1)]]),
1462
+ _: 1
1463
+ }), a.hasReset ? (_(), n(w(D), {
1464
+ key: 0,
1465
+ onClick: v,
1466
+ icon: "Refresh"
1467
+ }, {
1468
+ default: E(() => [...l[1] ||= [s(" 重置 ", -1)]]),
1469
+ _: 1
1470
+ })) : r("", !0)]),
1471
+ _: 1
1472
+ })]),
1473
+ _: 3
1474
+ }, 16, [
1475
+ "model",
1476
+ "rules",
1477
+ "class"
1478
+ ]));
1479
+ }
1480
+ }), ho = { class: "cus-table" }, go = { key: 0 }, _o = /*@__PURE__*/ Object.assign({ name: "ExTable" }, {
1481
+ __name: "ExTable",
1482
+ props: /*@__PURE__*/ d({
1483
+ data: {
1484
+ type: Array,
1485
+ default: () => []
1486
+ },
1487
+ isIndex: {
1488
+ type: Boolean,
1489
+ default: !1
1490
+ },
1491
+ tableSchemas: {
1492
+ type: Array,
1493
+ required: !0
1494
+ },
1495
+ total: {
1496
+ type: Number,
1497
+ default: 0
1498
+ },
1499
+ sizes: {
1500
+ type: Array,
1501
+ default: () => O.pageSize
1502
+ },
1503
+ delHandle: {
1504
+ type: Function,
1505
+ default: null
1506
+ }
1507
+ }, {
1508
+ modelValue: {},
1509
+ modelModifiers: {}
1510
+ }),
1511
+ emits: /*@__PURE__*/ d(["getData"], ["update:modelValue"]),
1512
+ setup(l, { expose: u, emit: d }) {
1513
+ let m = ee(l, "modelValue"), h = l, g = d, v = t(() => h.tableSchemas ? h.tableSchemas.map((e) => (e.label = e.title || e.label, e.prop = e.field || e.prop, e)) : (console.warn("tableSchemas 未传或为undefined"), []));
1514
+ te(() => {
1515
+ let e = O.pagesMap.size;
1516
+ return m.value?.[e];
1517
+ }, (e) => {
1518
+ e != null && g("getData");
1519
+ });
1520
+ async function S(e) {
1521
+ m.value[O.pagesMap.index] = e, g("getData");
1522
+ }
1523
+ let C = T("tableRef");
1524
+ u(new Proxy({}, {
1525
+ get(e, t) {
1526
+ return C.value?.[t];
1527
+ },
1528
+ has(e, t) {
1529
+ return t in C.value;
1530
+ }
1531
+ }));
1532
+ let ne = (e) => (m.value[O.pagesMap.index] - 1) * m.value[O.pagesMap.size] + e + 1;
1533
+ return (t, u) => (_(), i("div", ho, [
1534
+ c(w(ye), f({ data: l.data }, t.$attrs, {
1535
+ ref_key: "tableRef",
1536
+ ref: C,
1537
+ border: "",
1538
+ stripe: ""
1539
+ }), {
1540
+ append: E(() => [b(t.$slots, "append")]),
1541
+ empty: E(() => [b(t.$slots, "empty")]),
1542
+ default: E(() => [
1543
+ b(t.$slots, "__front"),
1544
+ l.isIndex ? (_(), n(w(be), {
1545
+ key: 0,
1546
+ label: "序号",
1547
+ width: "80",
1548
+ type: "index",
1549
+ align: "center",
1550
+ index: ne
1551
+ })) : r("", !0),
1552
+ (_(!0), i(e, null, y(v.value, (e) => (_(), n(w(be), f({
1553
+ key: e.prop,
1554
+ ref_for: !0
1555
+ }, e, {
1556
+ align: e.align ?? "center",
1557
+ "show-overflow-tooltip": ""
1558
+ }), o({ _: 2 }, [y(e.slots, (e, t) => ({
1559
+ name: t,
1560
+ fn: E((t) => [(_(), n(x(e), f({ ref_for: !0 }, t), null, 16))])
1561
+ }))]), 1040, ["align"]))), 128)),
1562
+ b(t.$slots, "default")
1563
+ ]),
1564
+ _: 3
1565
+ }, 16, ["data"]),
1566
+ u[2] ||= a("div", { class: "mt-4" }, null, -1),
1567
+ a("div", { class: p(["flex items-center", l.delHandle ? "justify-between" : "justify-end"]) }, [l.delHandle ? (_(), i("div", go, [c(w(D), {
1568
+ onClick: l.delHandle,
1569
+ type: "danger",
1570
+ icon: "Delete"
1571
+ }, {
1572
+ default: E(() => [...u[1] ||= [s("批量删除", -1)]]),
1573
+ _: 1
1574
+ }, 8, ["onClick"])])) : r("", !0), a("div", null, [c(w(de), {
1575
+ background: "",
1576
+ layout: "prev, pager, next,total,sizes",
1577
+ "page-size": m.value[w(O).pagesMap.size],
1578
+ "onUpdate:pageSize": u[0] ||= (e) => m.value[w(O).pagesMap.size] = e,
1579
+ "current-page": m.value[w(O).pagesMap.index],
1580
+ onCurrentChange: S,
1581
+ total: l.total,
1582
+ "page-sizes": w(O).pageSize
1583
+ }, null, 8, [
1584
+ "page-size",
1585
+ "current-page",
1586
+ "total",
1587
+ "page-sizes"
1588
+ ])])], 2)
1589
+ ]));
1590
+ }
1591
+ }), vo = { class: "cus-table" }, yo = [
1592
+ po,
1593
+ mo,
1594
+ _o,
1595
+ /* @__PURE__ */ Object.assign({ name: "ExAllTable" }, {
1596
+ __name: "ExAllTable",
1597
+ props: {
1598
+ isIndex: {
1599
+ type: Boolean,
1600
+ default: !1
1601
+ },
1602
+ params: {
1603
+ type: Object,
1604
+ default: () => {}
1605
+ },
1606
+ tableSchemas: {
1607
+ type: Array,
1608
+ required: !0
1609
+ },
1610
+ data: {
1611
+ type: Array,
1612
+ default: () => []
1613
+ },
1614
+ fetchFn: {
1615
+ type: Function,
1616
+ default: null
1617
+ }
1618
+ },
1619
+ setup(a, { expose: s }) {
1620
+ let l = a, { dataList: u, isLoading: d, getList: p } = Ua(l.fetchFn, l.params), m = t(() => l.fetchFn ? u.value : l.data), g = T("tableRef");
1621
+ return s(new Proxy({}, {
1622
+ get(e, t) {
1623
+ return g.value?.[t];
1624
+ },
1625
+ has(e, t) {
1626
+ return t in g.value;
1627
+ }
1628
+ })), h(() => {
1629
+ l.fetchFn && p();
1630
+ }), (t, s) => (_(), i("div", vo, [c(w(ye), f({ data: m.value }, t.$attrs, {
1631
+ ref_key: "tableRef",
1632
+ ref: g,
1633
+ "v-loading": w(d)
1634
+ }), {
1635
+ append: E(() => [b(t.$slots, "append")]),
1636
+ empty: E(() => [b(t.$slots, "empty")]),
1637
+ default: E(() => [
1638
+ b(t.$slots, "__front"),
1639
+ a.isIndex ? (_(), n(w(be), {
1640
+ key: 0,
1641
+ label: "序号",
1642
+ width: "80",
1643
+ type: "index",
1644
+ align: "center",
1645
+ index: (e) => e + 1
1646
+ }, null, 8, ["index"])) : r("", !0),
1647
+ (_(!0), i(e, null, y(a.tableSchemas, (e) => (_(), n(w(be), f({
1648
+ key: e.prop,
1649
+ ref_for: !0
1650
+ }, e, {
1651
+ align: e.align ?? "center",
1652
+ "show-overflow-tooltip": ""
1653
+ }), o({ _: 2 }, [y(e.slots, (e, t) => ({
1654
+ name: t,
1655
+ fn: E((t) => [(_(), n(x(e), f({ ref_for: !0 }, t), null, 16))])
1656
+ }))]), 1040, ["align"]))), 128)),
1657
+ b(t.$slots, "default")
1658
+ ]),
1659
+ _: 3
1660
+ }, 16, ["data", "v-loading"])]));
1661
+ }
1662
+ })
1663
+ ], bo = { install: (e, t = {}) => {
1664
+ Object.assign(O, {
1665
+ ...xe,
1666
+ ...t
1667
+ }), e.provide("globalConfig", O), yo.forEach((t) => {
1668
+ e.component(t.name, t);
1669
+ });
1670
+ } };
1671
+ //#endregion
1672
+ export { $ as FORM_TYPE, bo as default, Wa as emitter, Ga as formValueMap, Ya as initFormValue, Ja as isType, qa as setPlaceholder, Ha as useForm, Ua as useList, Xa as wrapQueryParams };