vue-2024-ui 0.2.5 → 0.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +1046 -1037
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import Ht, { ElForm as
|
|
2
|
-
import { h as
|
|
3
|
-
import { CircleCheck as
|
|
1
|
+
import Ht, { ElForm as mt, ElButtonGroup as pt, ElButton as Ae, ElPopover as $t, ElMessage as Xe, ElMessageBox as Ft, ElDialog as Pt, ElDrawer as Nt } from "element-plus";
|
|
2
|
+
import { h as Ee, mergeModels as Ge, useModel as Qe, ref as re, nextTick as lt, onMounted as ot, computed as Ke, resolveComponent as I, openBlock as u, createElementBlock as q, Fragment as X, createElementVNode as H, createBlock as S, createCommentVNode as ge, unref as U, mergeProps as x, withCtx as b, renderSlot as $, renderList as R, createTextVNode as Be, toDisplayString as Ce, createSlots as he, createVNode as G, normalizeStyle as Oe, normalizeProps as _t, useSlots as qt, inject as Mt, useAttrs as St, onUnmounted as Wt, withModifiers as vt, resolveDynamicComponent as We, guardReactiveProps as Xt, Transition as Gt, withDirectives as Qt, vShow as Zt, onBeforeUnmount as Jt, normalizeClass as Ot, watchEffect as Kt, onBeforeMount as el, getCurrentInstance as tl, watch as ll, createApp as al } from "vue";
|
|
3
|
+
import { CircleCheck as At, Refresh as It, Plus as rl, ZoomIn as ol, Delete as Bt, More as ul, Search as nl, Download as Yt, DocumentCopy as sl, View as il, Edit as dl, CirclePlus as cl, Setting as fl, FullScreen as ml, CopyDocument as pl } from "@element-plus/icons-vue";
|
|
4
4
|
import Ut from "sortablejs";
|
|
5
5
|
import { Dexie as vl } from "dexie";
|
|
6
6
|
var hl = {
|
|
@@ -187,59 +187,59 @@ function gl(f) {
|
|
|
187
187
|
}
|
|
188
188
|
var Lt = { exports: {} };
|
|
189
189
|
(function(f, s) {
|
|
190
|
-
(function(
|
|
190
|
+
(function(o, l) {
|
|
191
191
|
f.exports = l();
|
|
192
192
|
})(yl, function() {
|
|
193
|
-
var
|
|
194
|
-
var
|
|
195
|
-
return "[" +
|
|
196
|
-
} },
|
|
197
|
-
var D = String(
|
|
198
|
-
return !D || D.length >=
|
|
199
|
-
},
|
|
200
|
-
var
|
|
201
|
-
return (
|
|
202
|
-
}, m: function m
|
|
203
|
-
if (
|
|
204
|
-
var D = 12 * (a.year() -
|
|
193
|
+
var o = 1e3, l = 6e4, e = 36e5, i = "millisecond", M = "second", Y = "minute", V = "hour", _ = "day", k = "week", L = "month", te = "quarter", ie = "year", T = "date", Q = "Invalid Date", fe = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, N = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, me = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(p) {
|
|
194
|
+
var m = ["th", "st", "nd", "rd"], a = p % 100;
|
|
195
|
+
return "[" + p + (m[(a - 20) % 10] || m[a] || m[0]) + "]";
|
|
196
|
+
} }, ce = function(p, m, a) {
|
|
197
|
+
var D = String(p);
|
|
198
|
+
return !D || D.length >= m ? p : "" + Array(m + 1 - D.length).join(a) + p;
|
|
199
|
+
}, Me = { s: ce, z: function(p) {
|
|
200
|
+
var m = -p.utcOffset(), a = Math.abs(m), D = Math.floor(a / 60), g = a % 60;
|
|
201
|
+
return (m <= 0 ? "+" : "-") + ce(D, 2, "0") + ":" + ce(g, 2, "0");
|
|
202
|
+
}, m: function p(m, a) {
|
|
203
|
+
if (m.date() < a.date()) return -p(a, m);
|
|
204
|
+
var D = 12 * (a.year() - m.year()) + (a.month() - m.month()), g = m.clone().add(D, L), h = a - g < 0, O = m.clone().add(D + (h ? -1 : 1), L);
|
|
205
205
|
return +(-(D + (a - g) / (h ? g - O : O - g)) || 0);
|
|
206
|
-
}, a: function(
|
|
207
|
-
return
|
|
208
|
-
}, p: function(
|
|
209
|
-
return { M: L, y:
|
|
210
|
-
}, u: function(
|
|
211
|
-
return
|
|
212
|
-
} },
|
|
213
|
-
ue[
|
|
214
|
-
var
|
|
215
|
-
return
|
|
216
|
-
}, le = function m
|
|
206
|
+
}, a: function(p) {
|
|
207
|
+
return p < 0 ? Math.ceil(p) || 0 : Math.floor(p);
|
|
208
|
+
}, p: function(p) {
|
|
209
|
+
return { M: L, y: ie, w: k, d: _, D: T, h: V, m: Y, s: M, ms: i, Q: te }[p] || String(p || "").toLowerCase().replace(/s$/, "");
|
|
210
|
+
}, u: function(p) {
|
|
211
|
+
return p === void 0;
|
|
212
|
+
} }, de = "en", ue = {};
|
|
213
|
+
ue[de] = me;
|
|
214
|
+
var ye = "$isDayjsObject", Te = function(p) {
|
|
215
|
+
return p instanceof Ie || !(!p || !p[ye]);
|
|
216
|
+
}, le = function p(m, a, D) {
|
|
217
217
|
var g;
|
|
218
|
-
if (!
|
|
219
|
-
if (typeof
|
|
220
|
-
var h =
|
|
218
|
+
if (!m) return de;
|
|
219
|
+
if (typeof m == "string") {
|
|
220
|
+
var h = m.toLowerCase();
|
|
221
221
|
ue[h] && (g = h), a && (ue[h] = a, g = h);
|
|
222
|
-
var O =
|
|
223
|
-
if (!g && O.length > 1) return
|
|
222
|
+
var O = m.split("-");
|
|
223
|
+
if (!g && O.length > 1) return p(O[0]);
|
|
224
224
|
} else {
|
|
225
|
-
var P =
|
|
226
|
-
ue[P] =
|
|
225
|
+
var P = m.name;
|
|
226
|
+
ue[P] = m, g = P;
|
|
227
227
|
}
|
|
228
|
-
return !D && g && (
|
|
229
|
-
}, oe = function(
|
|
230
|
-
if (
|
|
231
|
-
var a = typeof
|
|
232
|
-
return a.date =
|
|
233
|
-
}, ae =
|
|
234
|
-
ae.l = le, ae.i =
|
|
235
|
-
return oe(
|
|
228
|
+
return !D && g && (de = g), g || !D && de;
|
|
229
|
+
}, oe = function(p, m) {
|
|
230
|
+
if (Te(p)) return p.clone();
|
|
231
|
+
var a = typeof m == "object" ? m : {};
|
|
232
|
+
return a.date = p, a.args = arguments, new Ie(a);
|
|
233
|
+
}, ae = Me;
|
|
234
|
+
ae.l = le, ae.i = Te, ae.w = function(p, m) {
|
|
235
|
+
return oe(p, { locale: m.$L, utc: m.$u, x: m.$x, $offset: m.$offset });
|
|
236
236
|
};
|
|
237
237
|
var Ie = function() {
|
|
238
|
-
function
|
|
239
|
-
this.$L = le(a.locale, null, !0), this.parse(a), this.$x = this.$x || a.x || {}, this[
|
|
238
|
+
function p(a) {
|
|
239
|
+
this.$L = le(a.locale, null, !0), this.parse(a), this.$x = this.$x || a.x || {}, this[ye] = !0;
|
|
240
240
|
}
|
|
241
|
-
var
|
|
242
|
-
return
|
|
241
|
+
var m = p.prototype;
|
|
242
|
+
return m.parse = function(a) {
|
|
243
243
|
this.$d = function(D) {
|
|
244
244
|
var g = D.date, h = D.utc;
|
|
245
245
|
if (g === null) return /* @__PURE__ */ new Date(NaN);
|
|
@@ -254,45 +254,45 @@ var Lt = { exports: {} };
|
|
|
254
254
|
}
|
|
255
255
|
return new Date(g);
|
|
256
256
|
}(a), this.init();
|
|
257
|
-
},
|
|
257
|
+
}, m.init = function() {
|
|
258
258
|
var a = this.$d;
|
|
259
259
|
this.$y = a.getFullYear(), this.$M = a.getMonth(), this.$D = a.getDate(), this.$W = a.getDay(), this.$H = a.getHours(), this.$m = a.getMinutes(), this.$s = a.getSeconds(), this.$ms = a.getMilliseconds();
|
|
260
|
-
},
|
|
260
|
+
}, m.$utils = function() {
|
|
261
261
|
return ae;
|
|
262
|
-
},
|
|
262
|
+
}, m.isValid = function() {
|
|
263
263
|
return this.$d.toString() !== Q;
|
|
264
|
-
},
|
|
264
|
+
}, m.isSame = function(a, D) {
|
|
265
265
|
var g = oe(a);
|
|
266
266
|
return this.startOf(D) <= g && g <= this.endOf(D);
|
|
267
|
-
},
|
|
267
|
+
}, m.isAfter = function(a, D) {
|
|
268
268
|
return oe(a) < this.startOf(D);
|
|
269
|
-
},
|
|
269
|
+
}, m.isBefore = function(a, D) {
|
|
270
270
|
return this.endOf(D) < oe(a);
|
|
271
|
-
},
|
|
271
|
+
}, m.$g = function(a, D, g) {
|
|
272
272
|
return ae.u(a) ? this[D] : this.set(g, a);
|
|
273
|
-
},
|
|
273
|
+
}, m.unix = function() {
|
|
274
274
|
return Math.floor(this.valueOf() / 1e3);
|
|
275
|
-
},
|
|
275
|
+
}, m.valueOf = function() {
|
|
276
276
|
return this.$d.getTime();
|
|
277
|
-
},
|
|
278
|
-
var g = this, h = !!ae.u(D) || D, O = ae.p(a), P = function(
|
|
279
|
-
var
|
|
280
|
-
return h ?
|
|
281
|
-
}, J = function(
|
|
282
|
-
return ae.w(g.toDate()[
|
|
277
|
+
}, m.startOf = function(a, D) {
|
|
278
|
+
var g = this, h = !!ae.u(D) || D, O = ae.p(a), P = function($e, we) {
|
|
279
|
+
var _e = ae.w(g.$u ? Date.UTC(g.$y, we, $e) : new Date(g.$y, we, $e), g);
|
|
280
|
+
return h ? _e : _e.endOf(_);
|
|
281
|
+
}, J = function($e, we) {
|
|
282
|
+
return ae.w(g.toDate()[$e].apply(g.toDate("s"), (h ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(we)), g);
|
|
283
283
|
}, Z = this.$W, v = this.$M, c = this.$D, K = "set" + (this.$u ? "UTC" : "");
|
|
284
284
|
switch (O) {
|
|
285
|
-
case
|
|
285
|
+
case ie:
|
|
286
286
|
return h ? P(1, 0) : P(31, 11);
|
|
287
287
|
case L:
|
|
288
288
|
return h ? P(1, v) : P(0, v + 1);
|
|
289
289
|
case k:
|
|
290
|
-
var
|
|
291
|
-
return P(h ? c -
|
|
292
|
-
case
|
|
290
|
+
var be = this.$locale().weekStart || 0, ve = (Z < be ? Z + 7 : Z) - be;
|
|
291
|
+
return P(h ? c - ve : c + (6 - ve), v);
|
|
292
|
+
case _:
|
|
293
293
|
case T:
|
|
294
294
|
return J(K + "Hours", 0);
|
|
295
|
-
case
|
|
295
|
+
case V:
|
|
296
296
|
return J(K + "Minutes", 1);
|
|
297
297
|
case Y:
|
|
298
298
|
return J(K + "Seconds", 2);
|
|
@@ -301,20 +301,20 @@ var Lt = { exports: {} };
|
|
|
301
301
|
default:
|
|
302
302
|
return this.clone();
|
|
303
303
|
}
|
|
304
|
-
},
|
|
304
|
+
}, m.endOf = function(a) {
|
|
305
305
|
return this.startOf(a, !1);
|
|
306
|
-
},
|
|
307
|
-
var g, h = ae.p(a), O = "set" + (this.$u ? "UTC" : ""), P = (g = {}, g[
|
|
308
|
-
if (h === L || h ===
|
|
306
|
+
}, m.$set = function(a, D) {
|
|
307
|
+
var g, h = ae.p(a), O = "set" + (this.$u ? "UTC" : ""), P = (g = {}, g[_] = O + "Date", g[T] = O + "Date", g[L] = O + "Month", g[ie] = O + "FullYear", g[V] = O + "Hours", g[Y] = O + "Minutes", g[M] = O + "Seconds", g[i] = O + "Milliseconds", g)[h], J = h === _ ? this.$D + (D - this.$W) : D;
|
|
308
|
+
if (h === L || h === ie) {
|
|
309
309
|
var Z = this.clone().set(T, 1);
|
|
310
310
|
Z.$d[P](J), Z.init(), this.$d = Z.set(T, Math.min(this.$D, Z.daysInMonth())).$d;
|
|
311
311
|
} else P && this.$d[P](J);
|
|
312
312
|
return this.init(), this;
|
|
313
|
-
},
|
|
313
|
+
}, m.set = function(a, D) {
|
|
314
314
|
return this.clone().$set(a, D);
|
|
315
|
-
},
|
|
315
|
+
}, m.get = function(a) {
|
|
316
316
|
return this[ae.p(a)]();
|
|
317
|
-
},
|
|
317
|
+
}, m.add = function(a, D) {
|
|
318
318
|
var g, h = this;
|
|
319
319
|
a = Number(a);
|
|
320
320
|
var O = ae.p(D), P = function(v) {
|
|
@@ -322,27 +322,27 @@ var Lt = { exports: {} };
|
|
|
322
322
|
return ae.w(c.date(c.date() + Math.round(v * a)), h);
|
|
323
323
|
};
|
|
324
324
|
if (O === L) return this.set(L, this.$M + a);
|
|
325
|
-
if (O ===
|
|
326
|
-
if (O ===
|
|
325
|
+
if (O === ie) return this.set(ie, this.$y + a);
|
|
326
|
+
if (O === _) return P(1);
|
|
327
327
|
if (O === k) return P(7);
|
|
328
|
-
var J = (g = {}, g[Y] = l, g[
|
|
328
|
+
var J = (g = {}, g[Y] = l, g[V] = e, g[M] = o, g)[O] || 1, Z = this.$d.getTime() + a * J;
|
|
329
329
|
return ae.w(Z, this);
|
|
330
|
-
},
|
|
330
|
+
}, m.subtract = function(a, D) {
|
|
331
331
|
return this.add(-1 * a, D);
|
|
332
|
-
},
|
|
332
|
+
}, m.format = function(a) {
|
|
333
333
|
var D = this, g = this.$locale();
|
|
334
334
|
if (!this.isValid()) return g.invalidDate || Q;
|
|
335
|
-
var h = a || "YYYY-MM-DDTHH:mm:ssZ", O = ae.z(this), P = this.$H, J = this.$m, Z = this.$M, v = g.weekdays, c = g.months, K = g.meridiem,
|
|
336
|
-
return
|
|
337
|
-
},
|
|
338
|
-
return ae.s(P % 12 || 12,
|
|
339
|
-
},
|
|
340
|
-
var
|
|
341
|
-
return
|
|
335
|
+
var h = a || "YYYY-MM-DDTHH:mm:ssZ", O = ae.z(this), P = this.$H, J = this.$m, Z = this.$M, v = g.weekdays, c = g.months, K = g.meridiem, be = function(we, _e, xe, Fe) {
|
|
336
|
+
return we && (we[_e] || we(D, h)) || xe[_e].slice(0, Fe);
|
|
337
|
+
}, ve = function(we) {
|
|
338
|
+
return ae.s(P % 12 || 12, we, "0");
|
|
339
|
+
}, $e = K || function(we, _e, xe) {
|
|
340
|
+
var Fe = we < 12 ? "AM" : "PM";
|
|
341
|
+
return xe ? Fe.toLowerCase() : Fe;
|
|
342
342
|
};
|
|
343
|
-
return h.replace(N, function(
|
|
344
|
-
return
|
|
345
|
-
switch (
|
|
343
|
+
return h.replace(N, function(we, _e) {
|
|
344
|
+
return _e || function(xe) {
|
|
345
|
+
switch (xe) {
|
|
346
346
|
case "YY":
|
|
347
347
|
return String(D.$y).slice(-2);
|
|
348
348
|
case "YYYY":
|
|
@@ -352,9 +352,9 @@ var Lt = { exports: {} };
|
|
|
352
352
|
case "MM":
|
|
353
353
|
return ae.s(Z + 1, 2, "0");
|
|
354
354
|
case "MMM":
|
|
355
|
-
return
|
|
355
|
+
return be(g.monthsShort, Z, c, 3);
|
|
356
356
|
case "MMMM":
|
|
357
|
-
return
|
|
357
|
+
return be(c, Z);
|
|
358
358
|
case "D":
|
|
359
359
|
return D.$D;
|
|
360
360
|
case "DD":
|
|
@@ -362,9 +362,9 @@ var Lt = { exports: {} };
|
|
|
362
362
|
case "d":
|
|
363
363
|
return String(D.$W);
|
|
364
364
|
case "dd":
|
|
365
|
-
return
|
|
365
|
+
return be(g.weekdaysMin, D.$W, v, 2);
|
|
366
366
|
case "ddd":
|
|
367
|
-
return
|
|
367
|
+
return be(g.weekdaysShort, D.$W, v, 3);
|
|
368
368
|
case "dddd":
|
|
369
369
|
return v[D.$W];
|
|
370
370
|
case "H":
|
|
@@ -372,13 +372,13 @@ var Lt = { exports: {} };
|
|
|
372
372
|
case "HH":
|
|
373
373
|
return ae.s(P, 2, "0");
|
|
374
374
|
case "h":
|
|
375
|
-
return
|
|
375
|
+
return ve(1);
|
|
376
376
|
case "hh":
|
|
377
|
-
return
|
|
377
|
+
return ve(2);
|
|
378
378
|
case "a":
|
|
379
|
-
return
|
|
379
|
+
return $e(P, J, !0);
|
|
380
380
|
case "A":
|
|
381
|
-
return
|
|
381
|
+
return $e(P, J, !1);
|
|
382
382
|
case "m":
|
|
383
383
|
return String(J);
|
|
384
384
|
case "mm":
|
|
@@ -393,16 +393,16 @@ var Lt = { exports: {} };
|
|
|
393
393
|
return O;
|
|
394
394
|
}
|
|
395
395
|
return null;
|
|
396
|
-
}(
|
|
396
|
+
}(we) || O.replace(":", "");
|
|
397
397
|
});
|
|
398
|
-
},
|
|
398
|
+
}, m.utcOffset = function() {
|
|
399
399
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
400
|
-
},
|
|
400
|
+
}, m.diff = function(a, D, g) {
|
|
401
401
|
var h, O = this, P = ae.p(D), J = oe(a), Z = (J.utcOffset() - this.utcOffset()) * l, v = this - J, c = function() {
|
|
402
402
|
return ae.m(O, J);
|
|
403
403
|
};
|
|
404
404
|
switch (P) {
|
|
405
|
-
case
|
|
405
|
+
case ie:
|
|
406
406
|
h = c() / 12;
|
|
407
407
|
break;
|
|
408
408
|
case L:
|
|
@@ -414,51 +414,51 @@ var Lt = { exports: {} };
|
|
|
414
414
|
case k:
|
|
415
415
|
h = (v - Z) / 6048e5;
|
|
416
416
|
break;
|
|
417
|
-
case
|
|
417
|
+
case _:
|
|
418
418
|
h = (v - Z) / 864e5;
|
|
419
419
|
break;
|
|
420
|
-
case
|
|
420
|
+
case V:
|
|
421
421
|
h = v / e;
|
|
422
422
|
break;
|
|
423
423
|
case Y:
|
|
424
424
|
h = v / l;
|
|
425
425
|
break;
|
|
426
426
|
case M:
|
|
427
|
-
h = v /
|
|
427
|
+
h = v / o;
|
|
428
428
|
break;
|
|
429
429
|
default:
|
|
430
430
|
h = v;
|
|
431
431
|
}
|
|
432
432
|
return g ? h : ae.a(h);
|
|
433
|
-
},
|
|
433
|
+
}, m.daysInMonth = function() {
|
|
434
434
|
return this.endOf(L).$D;
|
|
435
|
-
},
|
|
435
|
+
}, m.$locale = function() {
|
|
436
436
|
return ue[this.$L];
|
|
437
|
-
},
|
|
437
|
+
}, m.locale = function(a, D) {
|
|
438
438
|
if (!a) return this.$L;
|
|
439
439
|
var g = this.clone(), h = le(a, D, !0);
|
|
440
440
|
return h && (g.$L = h), g;
|
|
441
|
-
},
|
|
441
|
+
}, m.clone = function() {
|
|
442
442
|
return ae.w(this.$d, this);
|
|
443
|
-
},
|
|
443
|
+
}, m.toDate = function() {
|
|
444
444
|
return new Date(this.valueOf());
|
|
445
|
-
},
|
|
445
|
+
}, m.toJSON = function() {
|
|
446
446
|
return this.isValid() ? this.toISOString() : null;
|
|
447
|
-
},
|
|
447
|
+
}, m.toISOString = function() {
|
|
448
448
|
return this.$d.toISOString();
|
|
449
|
-
},
|
|
449
|
+
}, m.toString = function() {
|
|
450
450
|
return this.$d.toUTCString();
|
|
451
|
-
},
|
|
451
|
+
}, p;
|
|
452
452
|
}(), w = Ie.prototype;
|
|
453
|
-
return oe.prototype = w, [["$ms", i], ["$s", M], ["$m", Y], ["$H",
|
|
454
|
-
w[
|
|
455
|
-
return this.$g(
|
|
453
|
+
return oe.prototype = w, [["$ms", i], ["$s", M], ["$m", Y], ["$H", V], ["$W", _], ["$M", L], ["$y", ie], ["$D", T]].forEach(function(p) {
|
|
454
|
+
w[p[1]] = function(m) {
|
|
455
|
+
return this.$g(m, p[0], p[1]);
|
|
456
456
|
};
|
|
457
|
-
}), oe.extend = function(
|
|
458
|
-
return
|
|
459
|
-
}, oe.locale = le, oe.isDayjs =
|
|
460
|
-
return oe(1e3 *
|
|
461
|
-
}, oe.en = ue[
|
|
457
|
+
}), oe.extend = function(p, m) {
|
|
458
|
+
return p.$i || (p(m, Ie, oe), p.$i = !0), oe;
|
|
459
|
+
}, oe.locale = le, oe.isDayjs = Te, oe.unix = function(p) {
|
|
460
|
+
return oe(1e3 * p);
|
|
461
|
+
}, oe.en = ue[de], oe.Ls = ue, oe.p = {}, oe;
|
|
462
462
|
});
|
|
463
463
|
})(Lt);
|
|
464
464
|
var bl = Lt.exports;
|
|
@@ -491,7 +491,7 @@ const wt = /* @__PURE__ */ gl(bl), zt = {
|
|
|
491
491
|
label: "提交",
|
|
492
492
|
plain: !0,
|
|
493
493
|
hidden: !1,
|
|
494
|
-
icon: () =>
|
|
494
|
+
icon: () => Ee(At)
|
|
495
495
|
},
|
|
496
496
|
//表单重置按钮属性
|
|
497
497
|
reset: {
|
|
@@ -499,7 +499,7 @@ const wt = /* @__PURE__ */ gl(bl), zt = {
|
|
|
499
499
|
label: "重置",
|
|
500
500
|
hidden: !1,
|
|
501
501
|
plain: !0,
|
|
502
|
-
icon: () =>
|
|
502
|
+
icon: () => Ee(It)
|
|
503
503
|
},
|
|
504
504
|
slots: {},
|
|
505
505
|
tabs: {
|
|
@@ -507,14 +507,14 @@ const wt = /* @__PURE__ */ gl(bl), zt = {
|
|
|
507
507
|
editable: !1
|
|
508
508
|
}
|
|
509
509
|
}, Ze = (f, s) => {
|
|
510
|
-
const
|
|
510
|
+
const o = f.__vccOpts || f;
|
|
511
511
|
for (const [l, e] of s)
|
|
512
|
-
|
|
513
|
-
return
|
|
512
|
+
o[l] = e;
|
|
513
|
+
return o;
|
|
514
514
|
}, $l = {
|
|
515
515
|
style: { display: "flex", width: "100%" },
|
|
516
516
|
class: "g-ctrl-container"
|
|
517
|
-
}, wl = { style: { width: "var(--up-width)", height: "var(--up-height)", position: "relative", "box-sizing": "border-box" } },
|
|
517
|
+
}, wl = { style: { width: "var(--up-width)", height: "var(--up-height)", position: "relative", "box-sizing": "border-box" } }, _l = ["title"], El = ["innerHTML"], kl = ["innerHTML"], Cl = ["innerHTML"], Dl = ["innerHTML"], Ml = ["innerHTML"], Sl = ["innerHTML"], Vl = ["innerHTML"], Tl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
518
518
|
__name: "g-ctrl",
|
|
519
519
|
props: /* @__PURE__ */ Ge(["t", "ctrlKey", "item", "model", "ctrlType", "formInfo"], {
|
|
520
520
|
modelValue: { required: !0 },
|
|
@@ -522,19 +522,19 @@ const wt = /* @__PURE__ */ gl(bl), zt = {
|
|
|
522
522
|
}),
|
|
523
523
|
emits: ["update:modelValue"],
|
|
524
524
|
setup(f) {
|
|
525
|
-
var Ie, w,
|
|
526
|
-
const s = Qe(f, "modelValue"),
|
|
527
|
-
!((Ie = i.value) != null && Ie.startsWith("text")) && !((w = i.value) != null && w.startsWith("link")) && !((
|
|
528
|
-
const L = re({ display: "flex", flex: 1 }), te =
|
|
529
|
-
L.value = { ...L.value, justifyContent: te, ...
|
|
525
|
+
var Ie, w, p, m, a, D, g, h, O, P, J, Z;
|
|
526
|
+
const s = Qe(f, "modelValue"), o = f, l = re(o.item || {}), e = re(o.ctrlKey), i = re(o.ctrlType), M = re(o.model), Y = re([]), V = re([]), _ = re(!1), k = re(!1);
|
|
527
|
+
!((Ie = i.value) != null && Ie.startsWith("text")) && !((w = i.value) != null && w.startsWith("link")) && !((p = i.value) != null && p.startsWith("tag")) && !((m = i.value) != null && m.startsWith("div")) && !((a = i.value) != null && a.startsWith("span")) && !((D = i.value) != null && D.startsWith("avatar")) && ((g = l.value) != null && g.style || (l.value.style = { width: ((O = (h = l.value) == null ? void 0 : h.style) == null ? void 0 : O.width) || "100%" }));
|
|
528
|
+
const L = re({ display: "flex", flex: 1 }), te = o.t === "t" ? "center" : "flex-start", ie = ((P = l.value) == null ? void 0 : P.style) || {};
|
|
529
|
+
L.value = { ...L.value, justifyContent: te, ...ie };
|
|
530
530
|
const T = () => {
|
|
531
|
-
const v = qt(), c = Object.keys(v), K = `${
|
|
532
|
-
return c.filter((
|
|
531
|
+
const v = qt(), c = Object.keys(v), K = `${o.t}-${e.value}-`;
|
|
532
|
+
return c.filter(($e) => $e.startsWith(K)).map(($e) => $e.replace(K, ""));
|
|
533
533
|
}, Q = re({
|
|
534
534
|
multiple: !1,
|
|
535
535
|
"show-file-list": !1,
|
|
536
536
|
"file-list": [],
|
|
537
|
-
showDel: (J = l.value) != null && J.showDel ? (Z = l.value) == null ? void 0 : Z.showDel :
|
|
537
|
+
showDel: (J = l.value) != null && J.showDel ? (Z = l.value) == null ? void 0 : Z.showDel : o.t !== "t"
|
|
538
538
|
}), fe = re(l.value.innerHtml), N = (v) => [
|
|
539
539
|
"year",
|
|
540
540
|
"years",
|
|
@@ -548,7 +548,7 @@ const wt = /* @__PURE__ */ gl(bl), zt = {
|
|
|
548
548
|
"daterange",
|
|
549
549
|
"monthrange",
|
|
550
550
|
"yearrange"
|
|
551
|
-
].includes(v),
|
|
551
|
+
].includes(v), me = (v) => ({
|
|
552
552
|
year: "YYYY",
|
|
553
553
|
years: "YYYY",
|
|
554
554
|
month: "YYYY-MM",
|
|
@@ -562,62 +562,62 @@ const wt = /* @__PURE__ */ gl(bl), zt = {
|
|
|
562
562
|
daterange: "YYYY-MM-DD",
|
|
563
563
|
monthrange: "YYYY-MM",
|
|
564
564
|
yearrange: "YYYY"
|
|
565
|
-
})[v] || "YYYY-MM-DD",
|
|
565
|
+
})[v] || "YYYY-MM-DD", ce = re({
|
|
566
566
|
filterable: !0,
|
|
567
567
|
remote: !!(l.value && l.value["remote-method"]),
|
|
568
568
|
...l.value
|
|
569
|
-
}),
|
|
569
|
+
}), Me = re((v) => {
|
|
570
570
|
l.value["remote-method"](v, (c) => {
|
|
571
571
|
lt(() => {
|
|
572
|
-
|
|
572
|
+
V.value = c;
|
|
573
573
|
});
|
|
574
574
|
});
|
|
575
|
-
}),
|
|
575
|
+
}), de = async (v = "options") => {
|
|
576
576
|
var c;
|
|
577
577
|
try {
|
|
578
|
-
const K = await ((c = l.value) == null ? void 0 : c.getDicts(
|
|
578
|
+
const K = await ((c = l.value) == null ? void 0 : c.getDicts(o.formInfo));
|
|
579
579
|
if (typeof K == "string")
|
|
580
|
-
|
|
580
|
+
V.value = [{ label: K, value: s.value }];
|
|
581
581
|
else {
|
|
582
|
-
const
|
|
583
|
-
...
|
|
584
|
-
value:
|
|
585
|
-
label:
|
|
582
|
+
const be = K == null ? void 0 : K.map((ve, $e) => ({
|
|
583
|
+
...ve,
|
|
584
|
+
value: ve.value ?? ve.label ?? $e,
|
|
585
|
+
label: ve.label || "未知选项"
|
|
586
586
|
}));
|
|
587
|
-
|
|
587
|
+
V.value = be || [];
|
|
588
588
|
}
|
|
589
589
|
} catch (K) {
|
|
590
590
|
throw console.error("获取选项失败:", K), K;
|
|
591
591
|
}
|
|
592
592
|
}, ue = () => {
|
|
593
593
|
var v, c;
|
|
594
|
-
l.value.noSearch !== !0 &&
|
|
595
|
-
},
|
|
594
|
+
l.value.noSearch !== !0 && o.t === "q" && ((c = (v = M.value) == null ? void 0 : v.table) == null || c.load());
|
|
595
|
+
}, ye = (v) => {
|
|
596
596
|
v.preventDefault(), v.stopPropagation(), s.value = "";
|
|
597
|
-
},
|
|
598
|
-
|
|
597
|
+
}, Te = (v) => {
|
|
598
|
+
_.value = !0;
|
|
599
599
|
}, le = (v) => {
|
|
600
|
-
v.preventDefault(), v.stopPropagation(),
|
|
600
|
+
v.preventDefault(), v.stopPropagation(), _.value = !0;
|
|
601
601
|
}, oe = re(null);
|
|
602
602
|
ot(async () => {
|
|
603
|
-
var K,
|
|
604
|
-
l.value && l.value["remote-method"] && (
|
|
605
|
-
const v = (
|
|
606
|
-
typeof l.value.getDicts == "function" &&
|
|
607
|
-
console.error(`Failed to load ${
|
|
603
|
+
var K, be, ve, $e, we;
|
|
604
|
+
l.value && l.value["remote-method"] && (ce.value["remote-method"] = Me), (be = (K = M.value[e.value]) == null ? void 0 : K.options) != null && be.length && (V.value = M.value[e.value].options);
|
|
605
|
+
const v = (_e, xe = "options", Fe = M.value[e.value]) => {
|
|
606
|
+
typeof l.value.getDicts == "function" && de(xe).catch((Ue) => {
|
|
607
|
+
console.error(`Failed to load ${xe} for ${_e}:`, Ue);
|
|
608
608
|
});
|
|
609
609
|
};
|
|
610
|
-
if (["radio", "radio-button", "checkbox-group", "checkbox-group-button", "select", "cascader"].includes(i.value) && v(i.value), i.value ===
|
|
610
|
+
if (["radio", "radio-button", "checkbox-group", "checkbox-group-button", "select", "cascader"].includes(i.value) && v(i.value), i.value === De.TREESELECT && await (async () => {
|
|
611
611
|
try {
|
|
612
|
-
typeof l.value.getDicts == "function" ? Y.value = await l.value.getDicts(
|
|
613
|
-
} catch (
|
|
614
|
-
console.error("Failed to load data for tree-select:",
|
|
612
|
+
typeof l.value.getDicts == "function" ? Y.value = await l.value.getDicts(o.formInfo) : Y.value = V.value;
|
|
613
|
+
} catch (xe) {
|
|
614
|
+
console.error("Failed to load data for tree-select:", xe);
|
|
615
615
|
}
|
|
616
|
-
})(),
|
|
617
|
-
let
|
|
618
|
-
(
|
|
619
|
-
var
|
|
620
|
-
(
|
|
616
|
+
})(), o.t == "q") {
|
|
617
|
+
let _e = l.value.type || i.value;
|
|
618
|
+
(_e === void 0 || i.value === "input" || _e == De.NUMBER || _e == De.EMAIL || _e == "url" || _e == "text") && l.value.onKeyup == null && (l.value.onKeyup = (xe) => {
|
|
619
|
+
var Fe, Ue;
|
|
620
|
+
(xe.keyCode === 13 || xe.key === "Enter") && ((Ue = (Fe = M.value) == null ? void 0 : Fe.table) == null || Ue.load());
|
|
621
621
|
}), [
|
|
622
622
|
"radio",
|
|
623
623
|
"switch",
|
|
@@ -634,84 +634,84 @@ const wt = /* @__PURE__ */ gl(bl), zt = {
|
|
|
634
634
|
"datetime",
|
|
635
635
|
"datetimerange",
|
|
636
636
|
"week"
|
|
637
|
-
].includes(
|
|
638
|
-
var
|
|
639
|
-
(Ue = (
|
|
637
|
+
].includes(_e) && l.value.onChange === void 0 && (l.value.onChange = (xe) => {
|
|
638
|
+
var Fe, Ue;
|
|
639
|
+
(Ue = (Fe = M.value) == null ? void 0 : Fe.table) == null || Ue.load();
|
|
640
640
|
});
|
|
641
641
|
}
|
|
642
|
-
i.value == "image" && (l.value.width && ((
|
|
642
|
+
i.value == "image" && (l.value.width && ((ve = oe.value) != null && ve.$el) && oe.value.$el.style.setProperty("--up-width", typeof l.value.width == "number" ? l.value.width + "px" : l.value.width), l.value.height && (($e = oe.value) != null && $e.$el) && oe.value.$el.style.setProperty("--up-height", typeof l.value.height == "number" ? l.value.height + "px" : l.value.height), l.value.fontSize && ((we = oe.value) != null && we.$el) && oe.value.$el.style.setProperty("--up-font-size", typeof l.value.fontSize == "number" ? l.value.fontSize + "px" : l.value.fontSize));
|
|
643
643
|
});
|
|
644
644
|
const ae = Ke(() => {
|
|
645
645
|
var v;
|
|
646
646
|
return l.value["file-list"] && l.value["file-list"].length ? (v = l.value["file-list"]) == null ? void 0 : v.map((c) => c == null ? void 0 : c.url) : [s.value];
|
|
647
647
|
});
|
|
648
648
|
return (v, c) => {
|
|
649
|
-
var at, rt, B, ne,
|
|
650
|
-
const K =
|
|
649
|
+
var at, rt, B, ne, E, j, ee, Pe, Ne, Re;
|
|
650
|
+
const K = I("el-image-viewer"), be = I("el-radio"), ve = I("el-radio-group"), $e = I("el-radio-button"), we = I("el-checkbox"), _e = I("el-checkbox-group"), xe = I("el-checkbox-button"), Fe = I("g-select-option"), Ue = I("el-option"), ut = I("el-select"), nt = I("el-tree-select"), st = I("el-time-picker"), it = I("el-time-select"), dt = I("el-date-picker"), ct = I("el-color-picker"), ft = I("el-rate"), t = I("el-slider"), r = I("el-switch"), n = I("el-transfer"), y = I("el-cascader"), F = I("el-icon"), A = I("el-image"), z = I("el-tooltip"), se = I("el-upload"), pe = I("el-autocomplete"), Se = I("el-input-number"), ke = I("el-input"), Le = I("el-link"), ze = I("el-text"), Je = I("el-avatar"), tt = I("el-tag");
|
|
651
651
|
return u(), q(X, null, [
|
|
652
652
|
H("div", null, [
|
|
653
|
-
|
|
653
|
+
_.value ? (u(), S(K, {
|
|
654
654
|
key: 0,
|
|
655
655
|
teleported: !0,
|
|
656
656
|
"url-list": ae.value,
|
|
657
|
-
onClose: c[0] || (c[0] = (d) =>
|
|
658
|
-
}, null, 8, ["url-list"])) :
|
|
657
|
+
onClose: c[0] || (c[0] = (d) => _.value = !1)
|
|
658
|
+
}, null, 8, ["url-list"])) : ge("", !0)
|
|
659
659
|
]),
|
|
660
660
|
H("div", $l, [
|
|
661
|
-
i.value == U(
|
|
661
|
+
i.value == U(De).RADIO ? (u(), S(ve, x({
|
|
662
662
|
key: 0,
|
|
663
663
|
modelValue: s.value,
|
|
664
664
|
"onUpdate:modelValue": c[1] || (c[1] = (d) => s.value = d)
|
|
665
665
|
}, l.value), {
|
|
666
666
|
default: b(() => [
|
|
667
|
-
$(v.$slots, `${
|
|
668
|
-
(u(!0), q(X, null,
|
|
667
|
+
$(v.$slots, `${o.t}-${e.value}`, { data: l.value }, () => [
|
|
668
|
+
(u(!0), q(X, null, R(V.value, (d) => (u(), S(be, x({ ref_for: !0 }, d), {
|
|
669
669
|
default: b(() => [
|
|
670
|
-
$(v.$slots, `${
|
|
670
|
+
$(v.$slots, `${o.t}-${e.value}-options`, { option: d }, void 0, !0)
|
|
671
671
|
]),
|
|
672
672
|
_: 2
|
|
673
673
|
}, 1040))), 256))
|
|
674
674
|
], !0)
|
|
675
675
|
]),
|
|
676
676
|
_: 3
|
|
677
|
-
}, 16, ["modelValue"])) : i.value == U(
|
|
677
|
+
}, 16, ["modelValue"])) : i.value == U(De).RADIOBUTTON ? (u(), S(ve, x({
|
|
678
678
|
key: 1,
|
|
679
679
|
modelValue: s.value,
|
|
680
680
|
"onUpdate:modelValue": c[2] || (c[2] = (d) => s.value = d)
|
|
681
681
|
}, l.value), {
|
|
682
682
|
default: b(() => [
|
|
683
|
-
$(v.$slots, `${
|
|
684
|
-
(u(!0), q(X, null,
|
|
683
|
+
$(v.$slots, `${o.t}-${e.value}`, { data: l.value }, () => [
|
|
684
|
+
(u(!0), q(X, null, R(V.value, (d) => (u(), S($e, x({ ref_for: !0 }, d), {
|
|
685
685
|
default: b(() => [
|
|
686
|
-
$(v.$slots, `${
|
|
686
|
+
$(v.$slots, `${o.t}-${e.value}-options`, { option: d }, void 0, !0)
|
|
687
687
|
]),
|
|
688
688
|
_: 2
|
|
689
689
|
}, 1040))), 256))
|
|
690
690
|
], !0)
|
|
691
691
|
]),
|
|
692
692
|
_: 3
|
|
693
|
-
}, 16, ["modelValue"])) : i.value == U(
|
|
693
|
+
}, 16, ["modelValue"])) : i.value == U(De).CHECKBOX ? (u(), S(we, x({
|
|
694
694
|
key: 2,
|
|
695
695
|
modelValue: s.value,
|
|
696
696
|
"onUpdate:modelValue": c[3] || (c[3] = (d) => s.value = d)
|
|
697
697
|
}, l.value), {
|
|
698
698
|
default: b(() => [
|
|
699
|
-
$(v.$slots, `${
|
|
700
|
-
c[27] || (c[27] =
|
|
699
|
+
$(v.$slots, `${o.t}-${e.value}`, { data: l.value }, () => [
|
|
700
|
+
c[27] || (c[27] = Be(Ce(" ")))
|
|
701
701
|
], !0)
|
|
702
702
|
]),
|
|
703
703
|
_: 3
|
|
704
|
-
}, 16, ["modelValue"])) : i.value == U(
|
|
704
|
+
}, 16, ["modelValue"])) : i.value == U(De).CHECKBOXGROUP ? (u(), S(_e, x({
|
|
705
705
|
key: 3,
|
|
706
706
|
modelValue: s.value,
|
|
707
707
|
"onUpdate:modelValue": c[4] || (c[4] = (d) => s.value = d)
|
|
708
708
|
}, l.value), {
|
|
709
709
|
default: b(() => [
|
|
710
|
-
$(v.$slots, `${
|
|
711
|
-
(u(!0), q(X, null,
|
|
710
|
+
$(v.$slots, `${o.t}-${e.value}`, { data: l.value }, () => [
|
|
711
|
+
(u(!0), q(X, null, R(V.value, (d) => (u(), S(we, x({ ref_for: !0 }, d), {
|
|
712
712
|
default: b(() => [
|
|
713
|
-
$(v.$slots, `${
|
|
714
|
-
|
|
713
|
+
$(v.$slots, `${o.t}-${e.value}-options`, { option: d }, () => [
|
|
714
|
+
Be(Ce(d.label), 1)
|
|
715
715
|
], !0)
|
|
716
716
|
]),
|
|
717
717
|
_: 2
|
|
@@ -719,60 +719,60 @@ const wt = /* @__PURE__ */ gl(bl), zt = {
|
|
|
719
719
|
], !0)
|
|
720
720
|
]),
|
|
721
721
|
_: 3
|
|
722
|
-
}, 16, ["modelValue"])) : i.value == U(
|
|
722
|
+
}, 16, ["modelValue"])) : i.value == U(De).CHECKBOXGROUPBUTTON ? (u(), S(_e, x({
|
|
723
723
|
key: 4,
|
|
724
724
|
modelValue: s.value,
|
|
725
725
|
"onUpdate:modelValue": c[5] || (c[5] = (d) => s.value = d)
|
|
726
726
|
}, l.value), {
|
|
727
727
|
default: b(() => [
|
|
728
|
-
$(v.$slots, `${
|
|
729
|
-
(u(!0), q(X, null,
|
|
728
|
+
$(v.$slots, `${o.t}-${e.value}`, { data: l.value }, () => [
|
|
729
|
+
(u(!0), q(X, null, R(V.value, (d) => (u(), S(xe, x({ ref_for: !0 }, d), {
|
|
730
730
|
default: b(() => [
|
|
731
|
-
$(v.$slots, `${
|
|
731
|
+
$(v.$slots, `${o.t}-${e.value}-options`, { option: d }, void 0, !0)
|
|
732
732
|
]),
|
|
733
733
|
_: 2
|
|
734
734
|
}, 1040))), 256))
|
|
735
735
|
], !0)
|
|
736
736
|
]),
|
|
737
737
|
_: 3
|
|
738
|
-
}, 16, ["modelValue"])) : i.value === U(
|
|
738
|
+
}, 16, ["modelValue"])) : i.value === U(De).SELECT ? (u(), S(ut, x({
|
|
739
739
|
key: 5,
|
|
740
740
|
modelValue: s.value,
|
|
741
741
|
"onUpdate:modelValue": c[6] || (c[6] = (d) => s.value = d),
|
|
742
742
|
placeholder: M.value[e.value].label,
|
|
743
743
|
clearable: !0,
|
|
744
744
|
onClear: c[7] || (c[7] = () => {
|
|
745
|
-
|
|
745
|
+
o.t == "q" && M.value.table.load();
|
|
746
746
|
})
|
|
747
|
-
},
|
|
747
|
+
}, ce.value), he({
|
|
748
748
|
default: b(() => [
|
|
749
|
-
$(v.$slots, `${
|
|
750
|
-
(u(!0), q(X, null,
|
|
749
|
+
$(v.$slots, `${o.t}-${e.value}`, { options: V.value }, () => [
|
|
750
|
+
(u(!0), q(X, null, R(V.value, (d) => (u(), q(X, {
|
|
751
751
|
key: d.value
|
|
752
752
|
}, [
|
|
753
|
-
G(Ue,
|
|
753
|
+
G(Ue, x({ ref_for: !0 }, U(Ye)(d, (W) => W != "children"), {
|
|
754
754
|
onClick: (W) => {
|
|
755
|
-
|
|
755
|
+
ce.value.change && ce.value.change(d), ue();
|
|
756
756
|
}
|
|
757
757
|
}), {
|
|
758
758
|
default: b(() => {
|
|
759
759
|
var W;
|
|
760
760
|
return [
|
|
761
|
-
(W = l.value) != null && W.columns ? $(v.$slots, `${
|
|
761
|
+
(W = l.value) != null && W.columns ? $(v.$slots, `${o.t}-${e.value}-options`, {
|
|
762
762
|
key: 0,
|
|
763
763
|
option: d
|
|
764
764
|
}, () => {
|
|
765
765
|
var C;
|
|
766
766
|
return [
|
|
767
|
-
G(
|
|
767
|
+
G(Fe, {
|
|
768
768
|
columns: (C = l.value) == null ? void 0 : C.columns,
|
|
769
769
|
data: d,
|
|
770
|
-
t:
|
|
771
|
-
},
|
|
772
|
-
|
|
773
|
-
name:
|
|
770
|
+
t: o.t
|
|
771
|
+
}, he({ _: 2 }, [
|
|
772
|
+
R(v.$slots, (Ve, je) => ({
|
|
773
|
+
name: je,
|
|
774
774
|
fn: b((et) => [
|
|
775
|
-
$(v.$slots,
|
|
775
|
+
$(v.$slots, je, {
|
|
776
776
|
option: d,
|
|
777
777
|
data: et
|
|
778
778
|
}, void 0, !0)
|
|
@@ -780,35 +780,35 @@ const wt = /* @__PURE__ */ gl(bl), zt = {
|
|
|
780
780
|
}))
|
|
781
781
|
]), 1032, ["columns", "data", "t"])
|
|
782
782
|
];
|
|
783
|
-
}, !0) :
|
|
783
|
+
}, !0) : ge("", !0)
|
|
784
784
|
];
|
|
785
785
|
}),
|
|
786
786
|
_: 2
|
|
787
787
|
}, 1040, ["onClick"]),
|
|
788
|
-
d.children && d.children.length ? (u(!0), q(X, { key: 0 },
|
|
788
|
+
d.children && d.children.length ? (u(!0), q(X, { key: 0 }, R(d.children, (W) => (u(), S(Ue, x({
|
|
789
789
|
style: { "margin-left": "20px" },
|
|
790
790
|
key: W.value,
|
|
791
791
|
ref_for: !0
|
|
792
|
-
}, U(
|
|
792
|
+
}, U(Ye)(W, (C) => C != "children"), {
|
|
793
793
|
onClick: (C) => {
|
|
794
|
-
|
|
794
|
+
ce.value.change && ce.value.change(W), ue();
|
|
795
795
|
}
|
|
796
796
|
}), {
|
|
797
797
|
default: b(() => {
|
|
798
798
|
var C;
|
|
799
799
|
return [
|
|
800
|
-
(C = l.value) != null && C.columns ? $(v.$slots, `${
|
|
800
|
+
(C = l.value) != null && C.columns ? $(v.$slots, `${o.t}-${e.value}-options`, {
|
|
801
801
|
key: 0,
|
|
802
802
|
option: W
|
|
803
803
|
}, () => {
|
|
804
|
-
var
|
|
804
|
+
var Ve;
|
|
805
805
|
return [
|
|
806
|
-
G(
|
|
807
|
-
columns: (
|
|
806
|
+
G(Fe, {
|
|
807
|
+
columns: (Ve = l.value) == null ? void 0 : Ve.columns,
|
|
808
808
|
data: W,
|
|
809
|
-
t:
|
|
810
|
-
},
|
|
811
|
-
|
|
809
|
+
t: o.t
|
|
810
|
+
}, he({ _: 2 }, [
|
|
811
|
+
R(v.$slots, (je, et) => ({
|
|
812
812
|
name: et,
|
|
813
813
|
fn: b((bt) => [
|
|
814
814
|
$(v.$slots, et, {
|
|
@@ -819,11 +819,11 @@ const wt = /* @__PURE__ */ gl(bl), zt = {
|
|
|
819
819
|
}))
|
|
820
820
|
]), 1032, ["columns", "data", "t"])
|
|
821
821
|
];
|
|
822
|
-
}, !0) :
|
|
822
|
+
}, !0) : ge("", !0)
|
|
823
823
|
];
|
|
824
824
|
}),
|
|
825
825
|
_: 2
|
|
826
|
-
}, 1040, ["onClick"]))), 128)) :
|
|
826
|
+
}, 1040, ["onClick"]))), 128)) : ge("", !0)
|
|
827
827
|
], 64))), 128))
|
|
828
828
|
], !0)
|
|
829
829
|
]),
|
|
@@ -834,15 +834,15 @@ const wt = /* @__PURE__ */ gl(bl), zt = {
|
|
|
834
834
|
fn: b(() => {
|
|
835
835
|
var d;
|
|
836
836
|
return [
|
|
837
|
-
G(
|
|
837
|
+
G(Fe, {
|
|
838
838
|
columns: (d = l.value) == null ? void 0 : d.columns,
|
|
839
839
|
title: !0,
|
|
840
|
-
t:
|
|
841
|
-
},
|
|
842
|
-
|
|
840
|
+
t: o.t
|
|
841
|
+
}, he({ _: 2 }, [
|
|
842
|
+
R(v.$slots, (W, C) => ({
|
|
843
843
|
name: C,
|
|
844
|
-
fn: b((
|
|
845
|
-
$(v.$slots, C, { data:
|
|
844
|
+
fn: b((Ve) => [
|
|
845
|
+
$(v.$slots, C, { data: Ve }, void 0, !0)
|
|
846
846
|
])
|
|
847
847
|
}))
|
|
848
848
|
]), 1032, ["columns", "t"])
|
|
@@ -850,32 +850,32 @@ const wt = /* @__PURE__ */ gl(bl), zt = {
|
|
|
850
850
|
}),
|
|
851
851
|
key: "0"
|
|
852
852
|
} : void 0,
|
|
853
|
-
|
|
853
|
+
R(T(), (d) => ({
|
|
854
854
|
name: d,
|
|
855
855
|
fn: b((W) => [
|
|
856
|
-
$(v.$slots, `${
|
|
856
|
+
$(v.$slots, `${o.t}-${e.value}-${d}`, { data: W }, void 0, !0)
|
|
857
857
|
])
|
|
858
858
|
}))
|
|
859
|
-
]), 1040, ["modelValue", "placeholder"])) : i.value == U(
|
|
859
|
+
]), 1040, ["modelValue", "placeholder"])) : i.value == U(De).TREESELECT ? (u(), S(nt, x({
|
|
860
860
|
key: 6,
|
|
861
861
|
modelValue: s.value,
|
|
862
862
|
"onUpdate:modelValue": c[8] || (c[8] = (d) => s.value = d),
|
|
863
863
|
placeholder: M.value[e.value].label
|
|
864
|
-
}, l.value, { data: Y.value }),
|
|
865
|
-
|
|
864
|
+
}, l.value, { data: Y.value }), he({ _: 2 }, [
|
|
865
|
+
R(T(), (d) => ({
|
|
866
866
|
name: d,
|
|
867
867
|
fn: b((W) => [
|
|
868
|
-
$(v.$slots, `${
|
|
868
|
+
$(v.$slots, `${o.t}-${e.value}-${d}`, { data: W }, void 0, !0)
|
|
869
869
|
])
|
|
870
870
|
}))
|
|
871
|
-
]), 1040, ["modelValue", "placeholder", "data"])) : i.value == U(
|
|
871
|
+
]), 1040, ["modelValue", "placeholder", "data"])) : i.value == U(De).TIME ? (u(), S(st, x({
|
|
872
872
|
key: 7,
|
|
873
873
|
modelValue: s.value,
|
|
874
874
|
"onUpdate:modelValue": c[9] || (c[9] = (d) => s.value = d),
|
|
875
875
|
"arrow-control": ""
|
|
876
876
|
}, l.value, {
|
|
877
877
|
placeholder: M.value[e.value].label
|
|
878
|
-
}), null, 16, ["modelValue", "placeholder"])) : i.value == U(
|
|
878
|
+
}), null, 16, ["modelValue", "placeholder"])) : i.value == U(De).TIMESELECT ? (u(), S(it, x({
|
|
879
879
|
key: 8,
|
|
880
880
|
modelValue: s.value,
|
|
881
881
|
"onUpdate:modelValue": c[10] || (c[10] = (d) => s.value = d),
|
|
@@ -883,77 +883,77 @@ const wt = /* @__PURE__ */ gl(bl), zt = {
|
|
|
883
883
|
step: "00:15",
|
|
884
884
|
end: "23:30",
|
|
885
885
|
placeholder: M.value[e.value].label
|
|
886
|
-
}, l.value), null, 16, ["modelValue", "placeholder"])) : N(i.value) ? (u(),
|
|
886
|
+
}, l.value), null, 16, ["modelValue", "placeholder"])) : N(i.value) ? (u(), S(dt, x({
|
|
887
887
|
key: 9,
|
|
888
888
|
modelValue: s.value,
|
|
889
889
|
"onUpdate:modelValue": c[11] || (c[11] = (d) => s.value = d),
|
|
890
890
|
type: i.value,
|
|
891
891
|
placeholder: M.value[e.value].label,
|
|
892
|
-
"value-format":
|
|
893
|
-
}, l.value),
|
|
894
|
-
|
|
892
|
+
"value-format": me(i.value)
|
|
893
|
+
}, l.value), he({ _: 2 }, [
|
|
894
|
+
R(T(), (d) => ({
|
|
895
895
|
name: d,
|
|
896
896
|
fn: b((W) => [
|
|
897
|
-
$(v.$slots, `${
|
|
897
|
+
$(v.$slots, `${o.t}-${e.value}-${d}`, { data: W }, void 0, !0)
|
|
898
898
|
])
|
|
899
899
|
}))
|
|
900
|
-
]), 1040, ["modelValue", "type", "placeholder", "value-format"])) : i.value == U(
|
|
900
|
+
]), 1040, ["modelValue", "type", "placeholder", "value-format"])) : i.value == U(De).COLOR ? (u(), S(ct, x({
|
|
901
901
|
key: 10,
|
|
902
902
|
modelValue: s.value,
|
|
903
903
|
"onUpdate:modelValue": c[12] || (c[12] = (d) => s.value = d)
|
|
904
|
-
}, l.value), null, 16, ["modelValue"])) : i.value == U(
|
|
904
|
+
}, l.value), null, 16, ["modelValue"])) : i.value == U(De).RATE ? (u(), S(ft, x({
|
|
905
905
|
key: 11,
|
|
906
906
|
modelValue: s.value,
|
|
907
907
|
"onUpdate:modelValue": c[13] || (c[13] = (d) => s.value = d)
|
|
908
|
-
}, l.value), null, 16, ["modelValue"])) : i.value == U(
|
|
908
|
+
}, l.value), null, 16, ["modelValue"])) : i.value == U(De).SLIDER ? (u(), S(t, x({
|
|
909
909
|
key: 12,
|
|
910
910
|
modelValue: s.value,
|
|
911
911
|
"onUpdate:modelValue": c[14] || (c[14] = (d) => s.value = d)
|
|
912
|
-
}, l.value), null, 16, ["modelValue"])) : i.value == U(
|
|
912
|
+
}, l.value), null, 16, ["modelValue"])) : i.value == U(De).SWITCH ? (u(), S(r, x({
|
|
913
913
|
key: 13,
|
|
914
914
|
modelValue: s.value,
|
|
915
915
|
"onUpdate:modelValue": c[15] || (c[15] = (d) => s.value = d),
|
|
916
916
|
inlinePrompt: !0
|
|
917
|
-
}, l.value),
|
|
918
|
-
|
|
917
|
+
}, l.value), he({ _: 2 }, [
|
|
918
|
+
R(T(), (d) => ({
|
|
919
919
|
name: d,
|
|
920
920
|
fn: b((W) => [
|
|
921
|
-
$(v.$slots, `${
|
|
921
|
+
$(v.$slots, `${o.t}-${e.value}-${d}`, { data: W }, void 0, !0)
|
|
922
922
|
])
|
|
923
923
|
}))
|
|
924
|
-
]), 1040, ["modelValue"])) : i.value == U(
|
|
924
|
+
]), 1040, ["modelValue"])) : i.value == U(De).TRANSFER ? (u(), S(n, x({
|
|
925
925
|
key: 14,
|
|
926
926
|
modelValue: s.value,
|
|
927
927
|
"onUpdate:modelValue": c[16] || (c[16] = (d) => s.value = d)
|
|
928
|
-
}, l.value),
|
|
929
|
-
|
|
928
|
+
}, l.value), he({ _: 2 }, [
|
|
929
|
+
R(T(), (d) => ({
|
|
930
930
|
name: d,
|
|
931
931
|
fn: b((W) => [
|
|
932
|
-
$(v.$slots, `${
|
|
932
|
+
$(v.$slots, `${o.t}-${e.value}-${d}`, { data: W }, void 0, !0)
|
|
933
933
|
])
|
|
934
934
|
}))
|
|
935
|
-
]), 1040, ["modelValue"])) : i.value == U(
|
|
935
|
+
]), 1040, ["modelValue"])) : i.value == U(De).CASCADER ? (u(), S(y, x({
|
|
936
936
|
key: 15,
|
|
937
937
|
modelValue: s.value,
|
|
938
938
|
"onUpdate:modelValue": c[17] || (c[17] = (d) => s.value = d)
|
|
939
|
-
}, l.value, { options:
|
|
940
|
-
|
|
939
|
+
}, l.value, { options: V.value }), he({ _: 2 }, [
|
|
940
|
+
R(T(), (d) => ({
|
|
941
941
|
name: d,
|
|
942
942
|
fn: b((W) => [
|
|
943
|
-
$(v.$slots, `${
|
|
943
|
+
$(v.$slots, `${o.t}-${e.value}-${d}`, { data: W }, void 0, !0)
|
|
944
944
|
])
|
|
945
945
|
}))
|
|
946
|
-
]), 1040, ["modelValue", "options"])) : i.value == U(
|
|
946
|
+
]), 1040, ["modelValue", "options"])) : i.value == U(De).IMAGE ? (u(), S(se, x({
|
|
947
947
|
key: 16,
|
|
948
948
|
"file-list": l.value["file-list"],
|
|
949
949
|
"onUpdate:fileList": c[21] || (c[21] = (d) => l.value["file-list"] = d),
|
|
950
950
|
"list-type": "picture-card",
|
|
951
951
|
class: "custom-upload",
|
|
952
|
-
"on-preview":
|
|
952
|
+
"on-preview": Te
|
|
953
953
|
}, { ...Q.value, ...l.value }, {
|
|
954
954
|
ref_key: "uploadRef",
|
|
955
955
|
ref: oe
|
|
956
|
-
}),
|
|
956
|
+
}), he({
|
|
957
957
|
default: b(() => {
|
|
958
958
|
var d;
|
|
959
959
|
return [
|
|
@@ -963,14 +963,14 @@ const wt = /* @__PURE__ */ gl(bl), zt = {
|
|
|
963
963
|
style: { display: "flex", width: "var(--up-width)", height: "var(--up-height)", position: "relative", "align-items": "center", "justify-content": "center", "box-sizing": "border-box" }
|
|
964
964
|
}, [
|
|
965
965
|
H("div", wl, [
|
|
966
|
-
G(
|
|
966
|
+
G(A, x({
|
|
967
967
|
style: { width: "var(--up-width)", height: "var(--up-height)" },
|
|
968
968
|
src: s.value
|
|
969
|
-
}, { fit: "cover", lazy: !0, ...(d = l.value) == null ? void 0 : d.img }),
|
|
970
|
-
|
|
969
|
+
}, { fit: "cover", lazy: !0, ...(d = l.value) == null ? void 0 : d.img }), he({ _: 2 }, [
|
|
970
|
+
R(T(), (W, C) => ({
|
|
971
971
|
name: W,
|
|
972
|
-
fn: b((
|
|
973
|
-
$(v.$slots, `${
|
|
972
|
+
fn: b((Ve) => [
|
|
973
|
+
$(v.$slots, `${o.t}-${e.value}-${W}`, { data: Ve }, void 0, !0)
|
|
974
974
|
])
|
|
975
975
|
}))
|
|
976
976
|
]), 1040, ["src"])
|
|
@@ -981,7 +981,7 @@ const wt = /* @__PURE__ */ gl(bl), zt = {
|
|
|
981
981
|
onMouseleave: c[19] || (c[19] = (W) => k.value = !1),
|
|
982
982
|
class: "up-view"
|
|
983
983
|
}, [
|
|
984
|
-
k.value ? (u(),
|
|
984
|
+
k.value ? (u(), S(z, {
|
|
985
985
|
key: 0,
|
|
986
986
|
content: "查看大图",
|
|
987
987
|
placement: "top"
|
|
@@ -994,8 +994,8 @@ const wt = /* @__PURE__ */ gl(bl), zt = {
|
|
|
994
994
|
})
|
|
995
995
|
]),
|
|
996
996
|
_: 1
|
|
997
|
-
})) :
|
|
998
|
-
Q.value.showDel && k.value ? (u(),
|
|
997
|
+
})) : ge("", !0),
|
|
998
|
+
Q.value.showDel && k.value ? (u(), S(z, {
|
|
999
999
|
key: 1,
|
|
1000
1000
|
content: "删除",
|
|
1001
1001
|
placement: "top"
|
|
@@ -1004,13 +1004,13 @@ const wt = /* @__PURE__ */ gl(bl), zt = {
|
|
|
1004
1004
|
G(U(Bt), {
|
|
1005
1005
|
style: { width: "1.5em", height: "1.5em" },
|
|
1006
1006
|
color: "white",
|
|
1007
|
-
onClick:
|
|
1007
|
+
onClick: ye
|
|
1008
1008
|
})
|
|
1009
1009
|
]),
|
|
1010
1010
|
_: 1
|
|
1011
|
-
})) :
|
|
1011
|
+
})) : ge("", !0)
|
|
1012
1012
|
], 32)
|
|
1013
|
-
])) : (u(),
|
|
1013
|
+
])) : (u(), S(F, { key: 0 }, {
|
|
1014
1014
|
default: b(() => [
|
|
1015
1015
|
G(U(rl))
|
|
1016
1016
|
]),
|
|
@@ -1020,103 +1020,103 @@ const wt = /* @__PURE__ */ gl(bl), zt = {
|
|
|
1020
1020
|
}),
|
|
1021
1021
|
_: 2
|
|
1022
1022
|
}, [
|
|
1023
|
-
|
|
1023
|
+
R(T(), (d, W) => ({
|
|
1024
1024
|
name: d,
|
|
1025
1025
|
fn: b((C) => [
|
|
1026
|
-
$(v.$slots, `${
|
|
1026
|
+
$(v.$slots, `${o.t}-${e.value}-${d}`, { data: C }, void 0, !0)
|
|
1027
1027
|
])
|
|
1028
1028
|
}))
|
|
1029
|
-
]), 1040, ["file-list"])) : i.value == U(
|
|
1029
|
+
]), 1040, ["file-list"])) : i.value == U(De).AUTOCOMPLETE ? (u(), S(pe, x({
|
|
1030
1030
|
key: 17,
|
|
1031
1031
|
modelValue: s.value,
|
|
1032
1032
|
"onUpdate:modelValue": c[22] || (c[22] = (d) => s.value = d)
|
|
1033
1033
|
}, l.value, {
|
|
1034
1034
|
placeholder: M.value[e.value].label
|
|
1035
|
-
}),
|
|
1036
|
-
|
|
1035
|
+
}), he({ _: 2 }, [
|
|
1036
|
+
R(T(), (d, W) => ({
|
|
1037
1037
|
name: d,
|
|
1038
1038
|
fn: b((C) => [
|
|
1039
|
-
$(v.$slots, `${
|
|
1039
|
+
$(v.$slots, `${o.t}-${e.value}-${d}`, { data: C }, void 0, !0)
|
|
1040
1040
|
])
|
|
1041
1041
|
}))
|
|
1042
|
-
]), 1040, ["modelValue", "placeholder"])) : i.value == U(
|
|
1042
|
+
]), 1040, ["modelValue", "placeholder"])) : i.value == U(De).INPUTNUMBER ? (u(), S(Se, x({
|
|
1043
1043
|
key: 18,
|
|
1044
1044
|
modelValue: s.value,
|
|
1045
1045
|
"onUpdate:modelValue": c[23] || (c[23] = (d) => s.value = d),
|
|
1046
1046
|
min: 0,
|
|
1047
1047
|
max: 1e8,
|
|
1048
1048
|
placeholder: M.value[e.value].label
|
|
1049
|
-
}, l.value),
|
|
1050
|
-
|
|
1049
|
+
}, l.value), he({ _: 2 }, [
|
|
1050
|
+
R(T(), (d, W) => ({
|
|
1051
1051
|
name: d,
|
|
1052
1052
|
fn: b((C) => [
|
|
1053
|
-
$(v.$slots, `${
|
|
1053
|
+
$(v.$slots, `${o.t}-${e.value}-${d}`, { data: C }, void 0, !0)
|
|
1054
1054
|
])
|
|
1055
1055
|
}))
|
|
1056
|
-
]), 1040, ["modelValue", "placeholder"])) : i.value == U(
|
|
1056
|
+
]), 1040, ["modelValue", "placeholder"])) : i.value == U(De).MONEY ? (u(), q("div", {
|
|
1057
1057
|
key: 19,
|
|
1058
|
-
style:
|
|
1058
|
+
style: Oe([{ position: "relative" }, L.value])
|
|
1059
1059
|
}, [
|
|
1060
|
-
G(
|
|
1060
|
+
G(ke, x({
|
|
1061
1061
|
modelValue: s.value,
|
|
1062
1062
|
"onUpdate:modelValue": c[24] || (c[24] = (d) => s.value = d),
|
|
1063
1063
|
placeholder: M.value[e.value].label,
|
|
1064
1064
|
type: "number",
|
|
1065
1065
|
maxlength: ((rt = l.value) == null ? void 0 : rt.max) || 25
|
|
1066
|
-
}, { ...l.value, type: i.value }),
|
|
1066
|
+
}, { ...l.value, type: i.value }), he({
|
|
1067
1067
|
suffix: b(() => [
|
|
1068
1068
|
H("div", {
|
|
1069
1069
|
title: U(Dt)(s.value),
|
|
1070
1070
|
style: { "font-size": "10px", display: "block", width: "80px", "text-align": "right", overflow: "hidden", "text-overflow": "ellipsis" }
|
|
1071
|
-
},
|
|
1071
|
+
}, Ce(U(Dt)(s.value)), 9, _l)
|
|
1072
1072
|
]),
|
|
1073
1073
|
_: 2
|
|
1074
1074
|
}, [
|
|
1075
|
-
|
|
1075
|
+
R(T(), (d, W) => ({
|
|
1076
1076
|
name: d,
|
|
1077
1077
|
fn: b((C) => [
|
|
1078
|
-
$(v.$slots, `${
|
|
1078
|
+
$(v.$slots, `${o.t}-${e.value}-${d}`, { data: C }, void 0, !0)
|
|
1079
1079
|
])
|
|
1080
1080
|
}))
|
|
1081
1081
|
]), 1040, ["modelValue", "placeholder", "maxlength"])
|
|
1082
1082
|
], 4)) : (B = i.value) != null && B.startsWith("link") ? (u(), q("div", {
|
|
1083
1083
|
key: 20,
|
|
1084
|
-
style:
|
|
1084
|
+
style: Oe(L.value)
|
|
1085
1085
|
}, [
|
|
1086
|
-
G(
|
|
1086
|
+
G(Le, x(l.value, {
|
|
1087
1087
|
type: i.value.replace("link-", ""),
|
|
1088
1088
|
innerHTML: fe.value || s.value
|
|
1089
1089
|
}), null, 16, ["type", "innerHTML"])
|
|
1090
1090
|
], 4)) : i.value != "textarea" && ((ne = i.value) != null && ne.startsWith("text")) ? (u(), q("div", {
|
|
1091
1091
|
key: 21,
|
|
1092
|
-
style:
|
|
1092
|
+
style: Oe(L.value)
|
|
1093
1093
|
}, [
|
|
1094
|
-
G(
|
|
1094
|
+
G(ze, x(l.value, {
|
|
1095
1095
|
type: i.value.replace("text-", ""),
|
|
1096
1096
|
innerHTML: fe.value || s.value
|
|
1097
1097
|
}), null, 16, ["type", "innerHTML"])
|
|
1098
1098
|
], 4)) : i.value == "avatar" ? (u(), q("div", {
|
|
1099
1099
|
key: 22,
|
|
1100
|
-
style:
|
|
1100
|
+
style: Oe(L.value)
|
|
1101
1101
|
}, [
|
|
1102
|
-
fe.value ? (u(),
|
|
1102
|
+
fe.value ? (u(), S(Je, _t(x({ key: 0 }, l.value)), {
|
|
1103
1103
|
default: b(() => [
|
|
1104
|
-
H("div", { innerHTML: fe.value }, null, 8,
|
|
1104
|
+
H("div", { innerHTML: fe.value }, null, 8, El)
|
|
1105
1105
|
]),
|
|
1106
1106
|
_: 1
|
|
1107
|
-
}, 16)) : (u(),
|
|
1108
|
-
], 4)) : (
|
|
1107
|
+
}, 16)) : (u(), S(Je, _t(x({ key: 1 }, l.value)), null, 16))
|
|
1108
|
+
], 4)) : (E = i.value) != null && E.startsWith("tag") ? (u(), q("div", {
|
|
1109
1109
|
key: 23,
|
|
1110
|
-
style:
|
|
1110
|
+
style: Oe(L.value)
|
|
1111
1111
|
}, [
|
|
1112
|
-
Array.isArray(fe.value) && fe.value.length > 0 ? (u(!0), q(X, { key: 0 },
|
|
1113
|
-
typeof d == "object" ? (u(),
|
|
1112
|
+
Array.isArray(fe.value) && fe.value.length > 0 ? (u(!0), q(X, { key: 0 }, R(fe.value, (d, W) => (u(), q(X, { key: W }, [
|
|
1113
|
+
typeof d == "object" ? (u(), S(tt, x({
|
|
1114
1114
|
key: 0,
|
|
1115
1115
|
ref_for: !0
|
|
1116
1116
|
}, d, {
|
|
1117
1117
|
innerHTML: d == null ? void 0 : d.value,
|
|
1118
1118
|
style: { "margin-right": "3px" }
|
|
1119
|
-
}), null, 16, ["innerHTML"])) : (u(),
|
|
1119
|
+
}), null, 16, ["innerHTML"])) : (u(), S(tt, x({
|
|
1120
1120
|
key: 1,
|
|
1121
1121
|
ref_for: !0
|
|
1122
1122
|
}, l.value, {
|
|
@@ -1124,17 +1124,17 @@ const wt = /* @__PURE__ */ gl(bl), zt = {
|
|
|
1124
1124
|
innerHTML: d,
|
|
1125
1125
|
style: { "margin-right": "3px" }
|
|
1126
1126
|
}), null, 16, ["type", "innerHTML"]))
|
|
1127
|
-
], 64))), 128)) : (u(),
|
|
1127
|
+
], 64))), 128)) : (u(), S(tt, x({ key: 1 }, l.value, {
|
|
1128
1128
|
type: i.value.replace("tag-", ""),
|
|
1129
1129
|
innerHTML: fe.value || s.value
|
|
1130
1130
|
}), null, 16, ["type", "innerHTML"]))
|
|
1131
|
-
], 4)) : i.value == "div" ? (u(), q("div",
|
|
1131
|
+
], 4)) : i.value == "div" ? (u(), q("div", x({ key: 24 }, l.value, {
|
|
1132
1132
|
innerHTML: fe.value || s.value,
|
|
1133
1133
|
style: L.value
|
|
1134
|
-
}), null, 16, kl)) : i.value == "span" ? (u(), q("span",
|
|
1134
|
+
}), null, 16, kl)) : i.value == "span" ? (u(), q("span", x({ key: 25 }, l.value, {
|
|
1135
1135
|
innerHTML: fe.value || s.value,
|
|
1136
1136
|
style: L.value
|
|
1137
|
-
}), null, 16, Cl)) : (u(),
|
|
1137
|
+
}), null, 16, Cl)) : (u(), S(ke, x({
|
|
1138
1138
|
key: 26,
|
|
1139
1139
|
modelValue: s.value,
|
|
1140
1140
|
"onUpdate:modelValue": c[25] || (c[25] = (d) => s.value = d),
|
|
@@ -1142,9 +1142,9 @@ const wt = /* @__PURE__ */ gl(bl), zt = {
|
|
|
1142
1142
|
maxlength: ((j = l.value) == null ? void 0 : j.max) || 25,
|
|
1143
1143
|
clearable: !0,
|
|
1144
1144
|
onClear: c[26] || (c[26] = () => {
|
|
1145
|
-
|
|
1145
|
+
o.t == "q" && M.value.table.load();
|
|
1146
1146
|
})
|
|
1147
|
-
}, { ...U(
|
|
1147
|
+
}, { ...U(Ye)(l.value, (d) => !["suffix", "prefix", "append", "prepend"].includes(d)), type: i.value }), he({ _: 2 }, [
|
|
1148
1148
|
(ee = l.value) != null && ee.suffix ? {
|
|
1149
1149
|
name: "suffix",
|
|
1150
1150
|
fn: b(() => {
|
|
@@ -1176,27 +1176,27 @@ const wt = /* @__PURE__ */ gl(bl), zt = {
|
|
|
1176
1176
|
return [
|
|
1177
1177
|
H("div", {
|
|
1178
1178
|
innerHTML: ((d = l.value) == null ? void 0 : d.append) || ""
|
|
1179
|
-
}, null, 8,
|
|
1179
|
+
}, null, 8, Sl)
|
|
1180
1180
|
];
|
|
1181
1181
|
}),
|
|
1182
1182
|
key: "2"
|
|
1183
1183
|
} : void 0,
|
|
1184
|
-
(
|
|
1184
|
+
(Re = l.value) != null && Re.prepend ? {
|
|
1185
1185
|
name: "prepend",
|
|
1186
1186
|
fn: b(() => {
|
|
1187
1187
|
var d;
|
|
1188
1188
|
return [
|
|
1189
1189
|
H("div", {
|
|
1190
1190
|
innerHTML: ((d = l.value) == null ? void 0 : d.prepend) || ""
|
|
1191
|
-
}, null, 8,
|
|
1191
|
+
}, null, 8, Vl)
|
|
1192
1192
|
];
|
|
1193
1193
|
}),
|
|
1194
1194
|
key: "3"
|
|
1195
1195
|
} : void 0,
|
|
1196
|
-
|
|
1196
|
+
R(T(), (d, W) => ({
|
|
1197
1197
|
name: d,
|
|
1198
1198
|
fn: b((C) => [
|
|
1199
|
-
$(v.$slots, `${
|
|
1199
|
+
$(v.$slots, `${o.t}-${e.value}-${d}`, { data: C }, void 0, !0)
|
|
1200
1200
|
])
|
|
1201
1201
|
}))
|
|
1202
1202
|
]), 1040, ["modelValue", "placeholder", "maxlength"]))
|
|
@@ -1214,44 +1214,44 @@ const wt = /* @__PURE__ */ gl(bl), zt = {
|
|
|
1214
1214
|
modelModifiers: {}
|
|
1215
1215
|
}),
|
|
1216
1216
|
emits: /* @__PURE__ */ Ge(["submit", "reset"], ["update:modelValue"]),
|
|
1217
|
-
setup(f, { expose: s, emit:
|
|
1218
|
-
var
|
|
1219
|
-
const l = Qe(f, "modelValue"), e =
|
|
1220
|
-
l.value.form =
|
|
1217
|
+
setup(f, { expose: s, emit: o }) {
|
|
1218
|
+
var ye, Te, le, oe, ae, Ie;
|
|
1219
|
+
const l = Qe(f, "modelValue"), e = o, i = re(null), M = Mt("options"), Y = re({}), V = re(""), _ = f;
|
|
1220
|
+
l.value.form = qe(
|
|
1221
1221
|
zt,
|
|
1222
1222
|
M == null ? void 0 : M.form,
|
|
1223
|
-
(
|
|
1224
|
-
), l.value.form.style =
|
|
1225
|
-
(le = (
|
|
1226
|
-
{ ...(oe =
|
|
1223
|
+
(ye = l.value) == null ? void 0 : ye.form
|
|
1224
|
+
), l.value.form.style = qe(
|
|
1225
|
+
(le = (Te = l.value) == null ? void 0 : Te.form) == null ? void 0 : le.style,
|
|
1226
|
+
{ ...(oe = St()) == null ? void 0 : oe.style }
|
|
1227
1227
|
);
|
|
1228
|
-
const k = async (w,
|
|
1229
|
-
let
|
|
1230
|
-
for (;
|
|
1228
|
+
const k = async (w, p) => {
|
|
1229
|
+
let m = 5;
|
|
1230
|
+
for (; m > 0; ) {
|
|
1231
1231
|
if (await lt(), i.value) {
|
|
1232
1232
|
i.value.validate((a, D) => {
|
|
1233
|
-
a ? e("submit", w,
|
|
1233
|
+
a ? e("submit", w, p) : console.error("表单验证不通过!", D);
|
|
1234
1234
|
});
|
|
1235
1235
|
return;
|
|
1236
1236
|
}
|
|
1237
|
-
|
|
1237
|
+
m--, await new Promise((a) => setTimeout(a, 50));
|
|
1238
1238
|
}
|
|
1239
1239
|
console.error("表单实例获取失败,请检查组件状态");
|
|
1240
1240
|
}, L = async () => {
|
|
1241
1241
|
let w = 5;
|
|
1242
1242
|
for (; w > 0; ) {
|
|
1243
1243
|
if (await lt(), !i.value) {
|
|
1244
|
-
w--, await new Promise((
|
|
1244
|
+
w--, await new Promise((m) => setTimeout(m, 50));
|
|
1245
1245
|
continue;
|
|
1246
1246
|
}
|
|
1247
|
-
let
|
|
1248
|
-
if (e("reset", (
|
|
1249
|
-
|
|
1250
|
-
}),
|
|
1247
|
+
let p = !0;
|
|
1248
|
+
if (e("reset", (m) => {
|
|
1249
|
+
p = m;
|
|
1250
|
+
}), p) {
|
|
1251
1251
|
i.value.resetFields();
|
|
1252
1252
|
return;
|
|
1253
1253
|
}
|
|
1254
|
-
w--, await new Promise((
|
|
1254
|
+
w--, await new Promise((m) => setTimeout(m, 50));
|
|
1255
1255
|
}
|
|
1256
1256
|
console.error("表单实例获取失败,请检查组件状态");
|
|
1257
1257
|
};
|
|
@@ -1263,24 +1263,24 @@ const wt = /* @__PURE__ */ gl(bl), zt = {
|
|
|
1263
1263
|
width: "100%"
|
|
1264
1264
|
}
|
|
1265
1265
|
};
|
|
1266
|
-
l.value.formItems =
|
|
1266
|
+
l.value.formItems = qe(
|
|
1267
1267
|
te,
|
|
1268
1268
|
M == null ? void 0 : M.formItems,
|
|
1269
1269
|
(ae = l == null ? void 0 : l.value) == null ? void 0 : ae.formItems
|
|
1270
1270
|
);
|
|
1271
|
-
const
|
|
1271
|
+
const ie = {
|
|
1272
1272
|
span: 12,
|
|
1273
1273
|
offset: 0
|
|
1274
1274
|
};
|
|
1275
|
-
l.value.form.cols =
|
|
1276
|
-
|
|
1275
|
+
l.value.form.cols = qe(
|
|
1276
|
+
ie,
|
|
1277
1277
|
(Ie = M == null ? void 0 : M.form) == null ? void 0 : Ie.cols,
|
|
1278
1278
|
l.value.form.cols
|
|
1279
1279
|
);
|
|
1280
1280
|
const T = (w) => {
|
|
1281
|
-
let
|
|
1281
|
+
let p = [];
|
|
1282
1282
|
if (w.rules)
|
|
1283
|
-
|
|
1283
|
+
p = w.rules;
|
|
1284
1284
|
else {
|
|
1285
1285
|
const a = { ...{
|
|
1286
1286
|
required: void 0,
|
|
@@ -1291,18 +1291,18 @@ const wt = /* @__PURE__ */ gl(bl), zt = {
|
|
|
1291
1291
|
pattern: void 0,
|
|
1292
1292
|
validate: void 0
|
|
1293
1293
|
}, ...w };
|
|
1294
|
-
a.required &&
|
|
1294
|
+
a.required && p.push({
|
|
1295
1295
|
required: !0,
|
|
1296
1296
|
message: `${a.label}不能为空!`,
|
|
1297
1297
|
trigger: "blur"
|
|
1298
|
-
}), a.max !== void 0 && a.max !== null && a.max !== "" && (a.min === void 0 || a.min === null || a.min === "") &&
|
|
1298
|
+
}), a.max !== void 0 && a.max !== null && a.max !== "" && (a.min === void 0 || a.min === null || a.min === "") && p.push({
|
|
1299
1299
|
validator: (D, g, h) => {
|
|
1300
1300
|
if (g == null || g === "") return h();
|
|
1301
1301
|
a.type !== "number" && a.type !== "input-number" ? ((g == null ? void 0 : g.toString()) || "").length > Number(a.max) ? h(
|
|
1302
1302
|
new Error(`${a.label}长度不能超过${a.max}个字符!`)
|
|
1303
1303
|
) : h() : Number(g) > Number(a.max) ? h(new Error(`${a.label}不能大于${a.max}!`)) : h();
|
|
1304
1304
|
}
|
|
1305
|
-
}), a.min !== void 0 && a.min !== null && a.min !== "" && (a.max === void 0 || a.max === null || a.max === "") &&
|
|
1305
|
+
}), a.min !== void 0 && a.min !== null && a.min !== "" && (a.max === void 0 || a.max === null || a.max === "") && p.push({
|
|
1306
1306
|
validator: (D, g, h) => {
|
|
1307
1307
|
if (g == null || g === "") return h();
|
|
1308
1308
|
a.type !== "number" && a.type !== "input-number" ? Number(a.min) < 1 ? h(
|
|
@@ -1315,7 +1315,7 @@ const wt = /* @__PURE__ */ gl(bl), zt = {
|
|
|
1315
1315
|
)
|
|
1316
1316
|
) : h() : Number(g) < Number(a.min) ? h(new Error(`${a.label}不能小于${a.min}!`)) : h();
|
|
1317
1317
|
}
|
|
1318
|
-
}), a.min !== void 0 && a.min !== null && a.min !== "" && a.max !== void 0 && a.max !== null && a.max !== "" &&
|
|
1318
|
+
}), a.min !== void 0 && a.min !== null && a.min !== "" && a.max !== void 0 && a.max !== null && a.max !== "" && p.push({
|
|
1319
1319
|
validator: (D, g, h) => {
|
|
1320
1320
|
if (g == null || g === "") return h();
|
|
1321
1321
|
const O = Number(a.min), P = Number(a.max);
|
|
@@ -1329,80 +1329,80 @@ const wt = /* @__PURE__ */ gl(bl), zt = {
|
|
|
1329
1329
|
)
|
|
1330
1330
|
) : h() : Number(g) < O || g > P ? h(new Error(`${a.label}必须在${O}-${P}之间!`)) : h();
|
|
1331
1331
|
}
|
|
1332
|
-
}), a.type == "email" &&
|
|
1332
|
+
}), a.type == "email" && p.push({ type: "email", message: "不是一个正确的邮箱地址!" }), a.type == "url" && p.push({ type: "url", message: "不是一个合正确的URL!" }), a.pattern && p.push({
|
|
1333
1333
|
pattern: a == null ? void 0 : a.pattern,
|
|
1334
1334
|
message: (a == null ? void 0 : a.message) || "格式不正确!"
|
|
1335
|
-
}), a.validate &&
|
|
1335
|
+
}), a.validate && p.push({
|
|
1336
1336
|
validator: (D, g, h) => a.validate(D, g, h)
|
|
1337
1337
|
});
|
|
1338
1338
|
}
|
|
1339
|
-
return
|
|
1340
|
-
}, Q = (w,
|
|
1339
|
+
return p;
|
|
1340
|
+
}, Q = (w, p = !1) => {
|
|
1341
1341
|
var D, g, h, O, P;
|
|
1342
|
-
const
|
|
1342
|
+
const m = p ? w : w == null ? void 0 : w.item, a = typeof (m == null ? void 0 : m.editor) == "function" ? m.editor(Y.value, (D = l.value.form) == null ? void 0 : D.modalState) : (m == null ? void 0 : m.editor) || {};
|
|
1343
1343
|
if (((g = l.value.form) == null ? void 0 : g.modalState) === "edit") {
|
|
1344
|
-
const J = typeof (
|
|
1344
|
+
const J = typeof (m == null ? void 0 : m.editor) == "object" ? (h = m.editor) == null ? void 0 : h.ep : typeof (m == null ? void 0 : m.editor) == "function" ? a == null ? void 0 : a.ep : {};
|
|
1345
1345
|
return { ...a, ...J };
|
|
1346
1346
|
}
|
|
1347
1347
|
if (((O = l.value.form) == null ? void 0 : O.modalState) === "add") {
|
|
1348
|
-
const J = typeof (
|
|
1348
|
+
const J = typeof (m == null ? void 0 : m.editor) == "object" ? (P = m.editor) == null ? void 0 : P.ap : typeof (m == null ? void 0 : m.editor) == "function" ? a == null ? void 0 : a.ap : {};
|
|
1349
1349
|
return { ...a, ...J };
|
|
1350
1350
|
}
|
|
1351
1351
|
return a;
|
|
1352
1352
|
}, fe = (w) => {
|
|
1353
|
-
var
|
|
1354
|
-
const
|
|
1355
|
-
return ((a = l.value.form) == null ? void 0 : a.modalState) === "edit" ? ((D =
|
|
1353
|
+
var m, a, D, g, h;
|
|
1354
|
+
const p = typeof w.editor == "function" ? w.editor(Y.value, (m = l.value.form) == null ? void 0 : m.modalState) : w.editor;
|
|
1355
|
+
return ((a = l.value.form) == null ? void 0 : a.modalState) === "edit" ? ((D = p == null ? void 0 : p.ep) == null ? void 0 : D.type) ?? (p == null ? void 0 : p.type) ?? w.type : ((g = l.value.form) == null ? void 0 : g.modalState) === "add" ? ((h = p == null ? void 0 : p.ap) == null ? void 0 : h.type) ?? (p == null ? void 0 : p.type) ?? w.type : (p == null ? void 0 : p.type) ?? w.type;
|
|
1356
1356
|
};
|
|
1357
1357
|
ot(() => {
|
|
1358
|
-
N(),
|
|
1358
|
+
N(), _ != null && _.editForm ? Y.value = _.editForm : Y.value = ce.value;
|
|
1359
1359
|
}), Wt(() => {
|
|
1360
1360
|
i.value = null;
|
|
1361
1361
|
});
|
|
1362
1362
|
const N = () => {
|
|
1363
|
-
|
|
1364
|
-
for (const [w,
|
|
1363
|
+
V.value = Math.random().toString(36).substring(2);
|
|
1364
|
+
for (const [w, p] of Object.entries(me.value))
|
|
1365
1365
|
l.value[w].formItem = {
|
|
1366
1366
|
...l.value[w].formItem,
|
|
1367
|
-
...
|
|
1367
|
+
...p.formItem
|
|
1368
1368
|
}, l.value[w].formItem.style = {
|
|
1369
1369
|
...l.value[w].formItem.style,
|
|
1370
|
-
...
|
|
1370
|
+
...p.formItem.style
|
|
1371
1371
|
};
|
|
1372
|
-
},
|
|
1372
|
+
}, me = Ke(
|
|
1373
1373
|
() => Object.fromEntries(
|
|
1374
1374
|
Object.entries(l.value).filter((w) => w[1].type != "hidden").filter((w) => w[1].hidden !== !0).filter((w) => w[1].edit !== !1).filter((w) => w[1].editor !== !1).filter((w) => w[1].type !== "control").filter((w) => !["table", "tableColumns", "query", "queryItems", "form", "formItems", "control", "dialog"].includes(w[0])).filter((w) => {
|
|
1375
|
-
var
|
|
1376
|
-
const
|
|
1377
|
-
return l.value.form.modalState === "edit" ? ((a =
|
|
1375
|
+
var m, a, D;
|
|
1376
|
+
const p = typeof w[1].editor == "function" ? w[1].editor(Y.value, (m = l.value.form) == null ? void 0 : m.modalState) : w[1].editor;
|
|
1377
|
+
return l.value.form.modalState === "edit" ? ((a = p == null ? void 0 : p.ep) == null ? void 0 : a.editor) !== !1 : l.value.form.modalState === "add" ? ((D = p == null ? void 0 : p.ap) == null ? void 0 : D.editor) !== !1 : !0;
|
|
1378
1378
|
}).map((w) => [w[0], w[1]])
|
|
1379
1379
|
)
|
|
1380
|
-
),
|
|
1380
|
+
), ce = Ke(
|
|
1381
1381
|
() => Object.fromEntries(
|
|
1382
1382
|
Object.entries(l.value).filter((w) => w[1].type != "hidden").filter((w) => w[1].type != "control").map((w) => [w[0], w[1].value])
|
|
1383
1383
|
)
|
|
1384
|
-
),
|
|
1384
|
+
), Me = Ke(() => {
|
|
1385
1385
|
const w = /* @__PURE__ */ new Map();
|
|
1386
|
-
return Object.entries(
|
|
1387
|
-
if (
|
|
1388
|
-
const a =
|
|
1386
|
+
return Object.entries(me.value).forEach(([p, m]) => {
|
|
1387
|
+
if (m.groupName) {
|
|
1388
|
+
const a = m.groupName;
|
|
1389
1389
|
w.has(a) || w.set(a, {
|
|
1390
1390
|
groupName: a,
|
|
1391
1391
|
items: []
|
|
1392
|
-
}), w.get(a).items.push({ key:
|
|
1392
|
+
}), w.get(a).items.push({ key: p, item: m });
|
|
1393
1393
|
}
|
|
1394
|
-
}), w.forEach((
|
|
1395
|
-
|
|
1396
|
-
...
|
|
1394
|
+
}), w.forEach((p) => {
|
|
1395
|
+
p.tabPane = qe(
|
|
1396
|
+
...p.items.map(({ item: m }) => m.tabPane || {})
|
|
1397
1397
|
);
|
|
1398
1398
|
}), Array.from(w.values());
|
|
1399
|
-
}),
|
|
1399
|
+
}), de = [
|
|
1400
1400
|
{
|
|
1401
1401
|
name: "f-submit",
|
|
1402
1402
|
label: l.value.form.submit.label,
|
|
1403
1403
|
click: l.value.form.submit.click,
|
|
1404
1404
|
hidden: l.value.form.submit.hidden,
|
|
1405
|
-
info:
|
|
1405
|
+
info: Ye(l.value.form.submit, (w) => !["click"].includes(w)),
|
|
1406
1406
|
sort: l.value.form.submit.sort ?? 1,
|
|
1407
1407
|
// 使用空值合并运算符
|
|
1408
1408
|
originalOrder: 0
|
|
@@ -1412,23 +1412,23 @@ const wt = /* @__PURE__ */ gl(bl), zt = {
|
|
|
1412
1412
|
name: "f-reset",
|
|
1413
1413
|
label: l.value.form.reset.label,
|
|
1414
1414
|
click: l.value.form.reset.click,
|
|
1415
|
-
info:
|
|
1415
|
+
info: Ye(l.value.form.reset, (w) => !["click"].includes(w)),
|
|
1416
1416
|
hidden: l.value.form.reset.hidden,
|
|
1417
1417
|
sort: l.value.form.reset.sort ?? 2,
|
|
1418
1418
|
// 使用空值合并运算符
|
|
1419
1419
|
originalOrder: 1
|
|
1420
1420
|
// 添加原始顺序标识
|
|
1421
1421
|
}
|
|
1422
|
-
], ue = Ke(() =>
|
|
1422
|
+
], ue = Ke(() => de.filter((w) => !w.hidden).sort((w, p) => w.sort - p.sort || w.originalOrder - p.originalOrder));
|
|
1423
1423
|
return s({
|
|
1424
1424
|
submit: k,
|
|
1425
1425
|
reset: L,
|
|
1426
1426
|
formData: Y
|
|
1427
|
-
}), (w,
|
|
1427
|
+
}), (w, p) => {
|
|
1428
1428
|
var P, J, Z;
|
|
1429
|
-
const
|
|
1429
|
+
const m = I("el-form-item"), a = I("el-col"), D = I("el-tab-pane"), g = I("el-tabs"), h = I("el-form"), O = I("el-button");
|
|
1430
1430
|
return u(), q("div", xl, [
|
|
1431
|
-
G(h,
|
|
1431
|
+
G(h, x(
|
|
1432
1432
|
{
|
|
1433
1433
|
ref_key: "gform",
|
|
1434
1434
|
ref: i,
|
|
@@ -1440,21 +1440,21 @@ const wt = /* @__PURE__ */ gl(bl), zt = {
|
|
|
1440
1440
|
"box-sizing": "border-box"
|
|
1441
1441
|
}
|
|
1442
1442
|
},
|
|
1443
|
-
U(
|
|
1443
|
+
U(Ye)(
|
|
1444
1444
|
l.value.form,
|
|
1445
1445
|
(v) => !["footer", "submit", "reset", "slots", "type", "sort"].includes(v)
|
|
1446
1446
|
)
|
|
1447
1447
|
), {
|
|
1448
1448
|
default: b(() => [
|
|
1449
|
-
|
|
1450
|
-
G(g,
|
|
1449
|
+
Me.value.length > 0 ? $(w.$slots, "default", { key: 0 }, () => [
|
|
1450
|
+
G(g, x({
|
|
1451
1451
|
class: "demo-tabs",
|
|
1452
|
-
modelValue:
|
|
1453
|
-
"onUpdate:modelValue":
|
|
1452
|
+
modelValue: Me.value[0].groupName,
|
|
1453
|
+
"onUpdate:modelValue": p[0] || (p[0] = (v) => Me.value[0].groupName = v),
|
|
1454
1454
|
style: { width: "100%" }
|
|
1455
1455
|
}, l.value.form.tabs), {
|
|
1456
1456
|
default: b(() => [
|
|
1457
|
-
(u(!0), q(X, null,
|
|
1457
|
+
(u(!0), q(X, null, R(Me.value, (v) => (u(), S(D, x({
|
|
1458
1458
|
key: v.groupName,
|
|
1459
1459
|
label: v.groupName,
|
|
1460
1460
|
name: v.groupName,
|
|
@@ -1462,42 +1462,42 @@ const wt = /* @__PURE__ */ gl(bl), zt = {
|
|
|
1462
1462
|
ref_for: !0
|
|
1463
1463
|
}, v.tabPane), {
|
|
1464
1464
|
default: b(() => [
|
|
1465
|
-
(u(!0), q(X, null,
|
|
1465
|
+
(u(!0), q(X, null, R(v.items, (c, K) => (u(), S(a, x({ ref_for: !0 }, { ...l.value.form.cols, ...c == null ? void 0 : c.item.col }, {
|
|
1466
1466
|
key: c.key,
|
|
1467
1467
|
style: { width: "100%" }
|
|
1468
1468
|
}), {
|
|
1469
1469
|
default: b(() => {
|
|
1470
|
-
var
|
|
1470
|
+
var be, ve;
|
|
1471
1471
|
return [
|
|
1472
|
-
G(
|
|
1472
|
+
G(m, x({
|
|
1473
1473
|
label: c == null ? void 0 : c.item.label,
|
|
1474
1474
|
prop: c.key,
|
|
1475
1475
|
rules: T(c == null ? void 0 : c.item),
|
|
1476
1476
|
ref_for: !0
|
|
1477
|
-
}, { ...(
|
|
1477
|
+
}, { ...(be = l.value) == null ? void 0 : be.formItems, ...(ve = c == null ? void 0 : c.item) == null ? void 0 : ve.formItem }, { style: { width: "100%" } }), {
|
|
1478
1478
|
default: b(() => [
|
|
1479
1479
|
$(w.$slots, "f-" + c.key, {
|
|
1480
1480
|
item: c == null ? void 0 : c.item,
|
|
1481
1481
|
formInfo: Y.value,
|
|
1482
1482
|
model: l.value
|
|
1483
1483
|
}, () => [
|
|
1484
|
-
(u(),
|
|
1484
|
+
(u(), S(yt, {
|
|
1485
1485
|
modelValue: Y.value[c.key],
|
|
1486
|
-
"onUpdate:modelValue": (
|
|
1486
|
+
"onUpdate:modelValue": ($e) => Y.value[c.key] = $e,
|
|
1487
1487
|
item: Q(c),
|
|
1488
1488
|
ctrlKey: c.key,
|
|
1489
1489
|
ctrlType: fe(c == null ? void 0 : c.item),
|
|
1490
1490
|
model: l.value,
|
|
1491
|
-
key: `${c.key}-${
|
|
1491
|
+
key: `${c.key}-${V.value}`,
|
|
1492
1492
|
class: "g-ctrl-container",
|
|
1493
1493
|
t: "f",
|
|
1494
1494
|
formInfo: Y.value
|
|
1495
|
-
},
|
|
1496
|
-
|
|
1497
|
-
name:
|
|
1498
|
-
fn: b((
|
|
1499
|
-
$(w.$slots,
|
|
1500
|
-
data:
|
|
1495
|
+
}, he({ _: 2 }, [
|
|
1496
|
+
R(w.$slots, ($e, we) => ({
|
|
1497
|
+
name: we,
|
|
1498
|
+
fn: b((_e) => [
|
|
1499
|
+
$(w.$slots, we, {
|
|
1500
|
+
data: _e,
|
|
1501
1501
|
item: c.item,
|
|
1502
1502
|
model: l.value
|
|
1503
1503
|
}, void 0, !0)
|
|
@@ -1519,26 +1519,26 @@ const wt = /* @__PURE__ */ gl(bl), zt = {
|
|
|
1519
1519
|
_: 3
|
|
1520
1520
|
}, 16, ["modelValue"])
|
|
1521
1521
|
], !0) : $(w.$slots, "default", { key: 1 }, () => [
|
|
1522
|
-
(u(!0), q(X, null,
|
|
1522
|
+
(u(!0), q(X, null, R(me.value, (v, c) => (u(), S(a, x({ ref_for: !0 }, { ...l.value.form.cols, ...v.col }, {
|
|
1523
1523
|
key: c,
|
|
1524
1524
|
style: { width: "100%" }
|
|
1525
1525
|
}), {
|
|
1526
1526
|
default: b(() => {
|
|
1527
1527
|
var K;
|
|
1528
1528
|
return [
|
|
1529
|
-
G(
|
|
1529
|
+
G(m, x({
|
|
1530
1530
|
label: v.label,
|
|
1531
1531
|
prop: c,
|
|
1532
1532
|
rules: T(v),
|
|
1533
1533
|
ref_for: !0
|
|
1534
1534
|
}, { ...(K = l.value) == null ? void 0 : K.formItems, ...v == null ? void 0 : v.formItem }, { style: { width: "100%" } }), {
|
|
1535
|
-
label: b((
|
|
1535
|
+
label: b((be) => [
|
|
1536
1536
|
$(w.$slots, `f-${c}-label`, {
|
|
1537
|
-
data:
|
|
1537
|
+
data: be,
|
|
1538
1538
|
item: v,
|
|
1539
1539
|
model: l.value
|
|
1540
1540
|
}, () => [
|
|
1541
|
-
|
|
1541
|
+
Be(Ce(v.label), 1)
|
|
1542
1542
|
], !0)
|
|
1543
1543
|
]),
|
|
1544
1544
|
default: b(() => [
|
|
@@ -1547,23 +1547,23 @@ const wt = /* @__PURE__ */ gl(bl), zt = {
|
|
|
1547
1547
|
formInfo: Y.value,
|
|
1548
1548
|
model: l.value
|
|
1549
1549
|
}, () => [
|
|
1550
|
-
(u(),
|
|
1550
|
+
(u(), S(yt, {
|
|
1551
1551
|
modelValue: Y.value[c],
|
|
1552
|
-
"onUpdate:modelValue": (
|
|
1552
|
+
"onUpdate:modelValue": (be) => Y.value[c] = be,
|
|
1553
1553
|
item: Q(v, !0),
|
|
1554
1554
|
ctrlKey: c,
|
|
1555
1555
|
ctrlType: fe(v),
|
|
1556
|
-
key: `${c}-${
|
|
1556
|
+
key: `${c}-${V.value}`,
|
|
1557
1557
|
model: l.value,
|
|
1558
1558
|
class: "g-ctrl-container",
|
|
1559
1559
|
t: "f",
|
|
1560
1560
|
formInfo: Y.value
|
|
1561
|
-
},
|
|
1562
|
-
|
|
1563
|
-
name:
|
|
1564
|
-
fn: b((
|
|
1565
|
-
$(w.$slots,
|
|
1566
|
-
data:
|
|
1561
|
+
}, he({ _: 2 }, [
|
|
1562
|
+
R(w.$slots, (be, ve) => ({
|
|
1563
|
+
name: ve,
|
|
1564
|
+
fn: b(($e) => [
|
|
1565
|
+
$(w.$slots, ve, {
|
|
1566
|
+
data: $e,
|
|
1567
1567
|
item: v,
|
|
1568
1568
|
model: l.value
|
|
1569
1569
|
}, void 0, !0)
|
|
@@ -1582,19 +1582,19 @@ const wt = /* @__PURE__ */ gl(bl), zt = {
|
|
|
1582
1582
|
]),
|
|
1583
1583
|
_: 3
|
|
1584
1584
|
}, 16, ["model"]),
|
|
1585
|
-
(Z = (J = (P = l.value) == null ? void 0 : P.form) == null ? void 0 : J.footer) != null && Z.hidden ?
|
|
1585
|
+
(Z = (J = (P = l.value) == null ? void 0 : P.form) == null ? void 0 : J.footer) != null && Z.hidden ? ge("", !0) : $(w.$slots, "f-footer", { key: 0 }, () => [
|
|
1586
1586
|
H("div", {
|
|
1587
|
-
style:
|
|
1587
|
+
style: Oe(l.value.form.footer.style)
|
|
1588
1588
|
}, [
|
|
1589
1589
|
$(w.$slots, "f-footer-left", {}, void 0, !0),
|
|
1590
|
-
(u(!0), q(X, null,
|
|
1590
|
+
(u(!0), q(X, null, R(ue.value, (v) => (u(), q(X, null, [
|
|
1591
1591
|
$(w.$slots, v.name + "-left", {}, void 0, !0),
|
|
1592
1592
|
$(w.$slots, v.name, {}, () => [
|
|
1593
|
-
G(O,
|
|
1593
|
+
G(O, x({ ref_for: !0 }, v.info, {
|
|
1594
1594
|
onClick: vt((c) => v.click(Y.value, l.value), ["stop"])
|
|
1595
1595
|
}), {
|
|
1596
1596
|
default: b(() => [
|
|
1597
|
-
|
|
1597
|
+
Be(Ce(v == null ? void 0 : v.label), 1)
|
|
1598
1598
|
]),
|
|
1599
1599
|
_: 2
|
|
1600
1600
|
}, 1040, ["onClick"])
|
|
@@ -1607,7 +1607,7 @@ const wt = /* @__PURE__ */ gl(bl), zt = {
|
|
|
1607
1607
|
]);
|
|
1608
1608
|
};
|
|
1609
1609
|
}
|
|
1610
|
-
}),
|
|
1610
|
+
}), Et = /* @__PURE__ */ Ze(Fl, [["__scopeId", "data-v-68883be7"]]), Vt = {
|
|
1611
1611
|
__name: "g-query-item",
|
|
1612
1612
|
props: /* @__PURE__ */ Ge(["more"], {
|
|
1613
1613
|
modelValue: { required: !0 },
|
|
@@ -1617,33 +1617,33 @@ const wt = /* @__PURE__ */ gl(bl), zt = {
|
|
|
1617
1617
|
}),
|
|
1618
1618
|
emits: ["update:modelValue", "update:info"],
|
|
1619
1619
|
setup(f) {
|
|
1620
|
-
const s = Qe(f, "modelValue"),
|
|
1620
|
+
const s = Qe(f, "modelValue"), o = f, l = Qe(f, "info"), e = (V) => Ke(() => Object.fromEntries(Object.entries(s.value).filter((_) => {
|
|
1621
1621
|
var k;
|
|
1622
|
-
return typeof
|
|
1623
|
-
}).map((
|
|
1624
|
-
const
|
|
1625
|
-
return (
|
|
1626
|
-
}, Y = (
|
|
1622
|
+
return typeof _[1].search == "function" ? _[1].search && ((k = _[1].search(l.value, s.value.table)) == null ? void 0 : k.more) === V : _[1].search && _[1].search.more === V;
|
|
1623
|
+
}).map((_) => [_[0], _[1]]))).value, i = (V) => typeof V.search == "function" ? V.search(l.value, s.value.table) : V.search || {}, M = (V) => {
|
|
1624
|
+
const _ = i(V);
|
|
1625
|
+
return (_ == null ? void 0 : _.type) || V.type;
|
|
1626
|
+
}, Y = (V) => {
|
|
1627
1627
|
var L;
|
|
1628
|
-
const
|
|
1629
|
-
let k = (
|
|
1628
|
+
const _ = i(V);
|
|
1629
|
+
let k = (_ == null ? void 0 : _.width) || ((L = s.value.queryItems) == null ? void 0 : L.width) || "100%";
|
|
1630
1630
|
return isNaN(k) || (k += "px"), k;
|
|
1631
1631
|
};
|
|
1632
|
-
return (
|
|
1633
|
-
const k =
|
|
1634
|
-
return u(!0), q(X, null,
|
|
1632
|
+
return (V, _) => {
|
|
1633
|
+
const k = I("el-form-item");
|
|
1634
|
+
return u(!0), q(X, null, R(e(o.more), (L, te) => $(V.$slots, `q-${te}`, {
|
|
1635
1635
|
key: te,
|
|
1636
1636
|
item: L,
|
|
1637
1637
|
queryModel: l.value,
|
|
1638
1638
|
model: s.value
|
|
1639
1639
|
}, () => [
|
|
1640
|
-
G(k,
|
|
1640
|
+
G(k, x({
|
|
1641
1641
|
label: L.label,
|
|
1642
1642
|
style: { width: Y(L) },
|
|
1643
1643
|
ref_for: !0
|
|
1644
1644
|
}, { ...s.value.queryItems, ...i(L) }), {
|
|
1645
1645
|
label: b(() => [
|
|
1646
|
-
$(
|
|
1646
|
+
$(V.$slots, `q-${te}-label`, {
|
|
1647
1647
|
item: L,
|
|
1648
1648
|
model: s.value
|
|
1649
1649
|
})
|
|
@@ -1651,18 +1651,18 @@ const wt = /* @__PURE__ */ gl(bl), zt = {
|
|
|
1651
1651
|
default: b(() => [
|
|
1652
1652
|
G(yt, {
|
|
1653
1653
|
modelValue: l.value[te],
|
|
1654
|
-
"onUpdate:modelValue": (
|
|
1654
|
+
"onUpdate:modelValue": (ie) => l.value[te] = ie,
|
|
1655
1655
|
item: { ...L == null ? void 0 : L.editor, ...i(L) },
|
|
1656
1656
|
ctrlKey: te,
|
|
1657
1657
|
ctrlType: M(L),
|
|
1658
1658
|
model: s.value,
|
|
1659
1659
|
t: "q",
|
|
1660
1660
|
formInfo: l.value
|
|
1661
|
-
},
|
|
1662
|
-
|
|
1663
|
-
name:
|
|
1661
|
+
}, he({ _: 2 }, [
|
|
1662
|
+
R(Object.keys(V.$slots), (ie) => ({
|
|
1663
|
+
name: ie,
|
|
1664
1664
|
fn: b((T) => [
|
|
1665
|
-
$(
|
|
1665
|
+
$(V.$slots, ie, {
|
|
1666
1666
|
data: T,
|
|
1667
1667
|
item: L,
|
|
1668
1668
|
model: s.value
|
|
@@ -1679,7 +1679,7 @@ const wt = /* @__PURE__ */ gl(bl), zt = {
|
|
|
1679
1679
|
}, ql = {
|
|
1680
1680
|
key: 0,
|
|
1681
1681
|
class: "outer"
|
|
1682
|
-
}, Ol = { class: "inner" },
|
|
1682
|
+
}, Ol = { class: "inner" }, Al = {
|
|
1683
1683
|
__name: "g-query",
|
|
1684
1684
|
props: {
|
|
1685
1685
|
modelValue: { required: !0 },
|
|
@@ -1689,7 +1689,7 @@ const wt = /* @__PURE__ */ gl(bl), zt = {
|
|
|
1689
1689
|
},
|
|
1690
1690
|
emits: /* @__PURE__ */ Ge(["query", "reset"], ["update:modelValue", "update:info"]),
|
|
1691
1691
|
setup(f, { emit: s }) {
|
|
1692
|
-
const
|
|
1692
|
+
const o = Qe(f, "modelValue"), l = s, e = Mt("options"), i = re(!1), M = Qe(f, "info"), Y = {
|
|
1693
1693
|
hidden: !1,
|
|
1694
1694
|
type: "hidden",
|
|
1695
1695
|
labelWidth: 100,
|
|
@@ -1706,7 +1706,7 @@ const wt = /* @__PURE__ */ gl(bl), zt = {
|
|
|
1706
1706
|
hidden: !0,
|
|
1707
1707
|
type: "primary",
|
|
1708
1708
|
label: "更多",
|
|
1709
|
-
icon: () =>
|
|
1709
|
+
icon: () => Ee(ul),
|
|
1710
1710
|
click: () => {
|
|
1711
1711
|
i.value = !i.value;
|
|
1712
1712
|
}
|
|
@@ -1716,7 +1716,7 @@ const wt = /* @__PURE__ */ gl(bl), zt = {
|
|
|
1716
1716
|
type: "primary",
|
|
1717
1717
|
hidden: !1,
|
|
1718
1718
|
plain: !1,
|
|
1719
|
-
icon: () =>
|
|
1719
|
+
icon: () => Ee(It),
|
|
1720
1720
|
click: () => {
|
|
1721
1721
|
l("reset", M.value);
|
|
1722
1722
|
}
|
|
@@ -1725,7 +1725,7 @@ const wt = /* @__PURE__ */ gl(bl), zt = {
|
|
|
1725
1725
|
hidden: !1,
|
|
1726
1726
|
type: "primary",
|
|
1727
1727
|
label: "查询",
|
|
1728
|
-
icon: () =>
|
|
1728
|
+
icon: () => Ee(nl),
|
|
1729
1729
|
click: () => {
|
|
1730
1730
|
l("query", M.value), i.value = !1;
|
|
1731
1731
|
}
|
|
@@ -1741,8 +1741,8 @@ const wt = /* @__PURE__ */ gl(bl), zt = {
|
|
|
1741
1741
|
}
|
|
1742
1742
|
}
|
|
1743
1743
|
};
|
|
1744
|
-
|
|
1745
|
-
const
|
|
1744
|
+
o.value.query = qe(Y, e == null ? void 0 : e.query, o.value.query);
|
|
1745
|
+
const V = {
|
|
1746
1746
|
2: {
|
|
1747
1747
|
title: "更多查询",
|
|
1748
1748
|
showClose: !1,
|
|
@@ -1759,11 +1759,11 @@ const wt = /* @__PURE__ */ gl(bl), zt = {
|
|
|
1759
1759
|
trigger: "click"
|
|
1760
1760
|
}
|
|
1761
1761
|
};
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1762
|
+
o.value.query.more.dialog = qe(
|
|
1763
|
+
V[o.value.query.more.mode] || {},
|
|
1764
|
+
o.value.query.more.dialog
|
|
1765
1765
|
);
|
|
1766
|
-
const
|
|
1766
|
+
const _ = {
|
|
1767
1767
|
type: "hidden",
|
|
1768
1768
|
hidden: !1,
|
|
1769
1769
|
labelPosition: "right",
|
|
@@ -1772,109 +1772,109 @@ const wt = /* @__PURE__ */ gl(bl), zt = {
|
|
|
1772
1772
|
// width: "280px"
|
|
1773
1773
|
}
|
|
1774
1774
|
};
|
|
1775
|
-
|
|
1775
|
+
o.value.queryItems = qe(_, e == null ? void 0 : e.queryItems, o.value.queryItems);
|
|
1776
1776
|
const k = (T, Q) => {
|
|
1777
|
-
const fe = Object.keys(T.slots).filter((N) => N !== "default").reduce((N,
|
|
1778
|
-
model:
|
|
1777
|
+
const fe = Object.keys(T.slots).filter((N) => N !== "default").reduce((N, me) => (N[me] = (ce) => T.slots[me]({
|
|
1778
|
+
model: o.value
|
|
1779
1779
|
// 传递当前模型数据
|
|
1780
1780
|
}), N), {});
|
|
1781
|
-
return
|
|
1782
|
-
modelValue:
|
|
1783
|
-
"onUpdate:modelValue": (N) =>
|
|
1781
|
+
return Ee(Vt, {
|
|
1782
|
+
modelValue: o.value,
|
|
1783
|
+
"onUpdate:modelValue": (N) => o.value = N,
|
|
1784
1784
|
info: M.value,
|
|
1785
1785
|
"onUpdate:info": (N) => M.value = N,
|
|
1786
1786
|
more: Q
|
|
1787
1787
|
}, fe);
|
|
1788
1788
|
}, L = qt(), te = () => {
|
|
1789
|
-
var fe, N,
|
|
1789
|
+
var fe, N, me, ce, Me, de, ue, ye, Te;
|
|
1790
1790
|
const T = [
|
|
1791
1791
|
{
|
|
1792
1792
|
key: "query",
|
|
1793
|
-
hidden: (
|
|
1794
|
-
component:
|
|
1793
|
+
hidden: (me = (N = (fe = o.value) == null ? void 0 : fe.query) == null ? void 0 : N.query) == null ? void 0 : me.hidden,
|
|
1794
|
+
component: Ae,
|
|
1795
1795
|
props: {
|
|
1796
|
-
...
|
|
1797
|
-
onClick:
|
|
1796
|
+
...o.value.query.query,
|
|
1797
|
+
onClick: o.value.query.query.click
|
|
1798
1798
|
},
|
|
1799
|
-
label:
|
|
1800
|
-
sort:
|
|
1799
|
+
label: o.value.query.query.label,
|
|
1800
|
+
sort: o.value.query.query.sort || 0
|
|
1801
1801
|
},
|
|
1802
1802
|
{
|
|
1803
1803
|
key: "reset",
|
|
1804
|
-
hidden: (
|
|
1805
|
-
component:
|
|
1804
|
+
hidden: (de = (Me = (ce = o.value) == null ? void 0 : ce.query) == null ? void 0 : Me.reset) == null ? void 0 : de.hidden,
|
|
1805
|
+
component: Ae,
|
|
1806
1806
|
props: {
|
|
1807
|
-
...
|
|
1808
|
-
onClick:
|
|
1807
|
+
...o.value.query.reset,
|
|
1808
|
+
onClick: o.value.query.reset.click
|
|
1809
1809
|
},
|
|
1810
|
-
label:
|
|
1811
|
-
sort:
|
|
1810
|
+
label: o.value.query.reset.label,
|
|
1811
|
+
sort: o.value.query.reset.sort || 0
|
|
1812
1812
|
},
|
|
1813
1813
|
{
|
|
1814
1814
|
key: "more",
|
|
1815
|
-
hidden: (
|
|
1816
|
-
component:
|
|
1817
|
-
props:
|
|
1818
|
-
...
|
|
1819
|
-
onClick:
|
|
1815
|
+
hidden: (Te = (ye = (ue = o.value) == null ? void 0 : ue.query) == null ? void 0 : ye.more) == null ? void 0 : Te.hidden,
|
|
1816
|
+
component: o.value.query.more.mode === 3 ? $t : Ae,
|
|
1817
|
+
props: o.value.query.more.mode === 3 ? { ...o.value.query.more.dialog } : {
|
|
1818
|
+
...o.value.query.more,
|
|
1819
|
+
onClick: o.value.query.more.click
|
|
1820
1820
|
},
|
|
1821
|
-
label:
|
|
1822
|
-
sort:
|
|
1823
|
-
content:
|
|
1821
|
+
label: o.value.query.more.label,
|
|
1822
|
+
sort: o.value.query.more.sort || 0,
|
|
1823
|
+
content: o.value.query.more.mode === 3 ? () => Ee(mt, {
|
|
1824
1824
|
class: "query-form",
|
|
1825
|
-
...
|
|
1825
|
+
...Ye(o.value.query, (le) => !["query", "more", "reset"].includes(le))
|
|
1826
1826
|
}, () => k({ slots: L }, !0)) : null
|
|
1827
1827
|
}
|
|
1828
1828
|
];
|
|
1829
|
-
return T.sort((le, oe) => le.sort - oe.sort), T.filter((le) => !le.hidden).map((le) => le.key === "more" && le.component === $t ?
|
|
1830
|
-
reference: () =>
|
|
1829
|
+
return T.sort((le, oe) => le.sort - oe.sort), T.filter((le) => !le.hidden).map((le) => le.key === "more" && le.component === $t ? Ee($t, le.props, {
|
|
1830
|
+
reference: () => Ee(Ae, o.value.query.more, () => le.label),
|
|
1831
1831
|
default: le.content
|
|
1832
|
-
}) : (le.props.slot = "query-" + le.key, le.label ?
|
|
1833
|
-
},
|
|
1832
|
+
}) : (le.props.slot = "query-" + le.key, le.label ? Ee(le.component, le.props, () => le.label) : Ee(le.component, le.props)));
|
|
1833
|
+
}, ie = Ke(() => ({
|
|
1834
1834
|
diplay: "flex",
|
|
1835
|
-
flexDirection:
|
|
1835
|
+
flexDirection: o.value.query.container.mode === "row" ? "row" : "column"
|
|
1836
1836
|
}));
|
|
1837
1837
|
return (T, Q) => {
|
|
1838
|
-
var
|
|
1839
|
-
const fe =
|
|
1838
|
+
var me, ce, Me, de, ue, ye, Te, le, oe, ae, Ie, w, p, m, a, D, g;
|
|
1839
|
+
const fe = I("el-form-item"), N = I("el-drawer");
|
|
1840
1840
|
return u(), q(X, null, [
|
|
1841
1841
|
H("div", {
|
|
1842
1842
|
class: "g-query-container",
|
|
1843
|
-
style:
|
|
1843
|
+
style: Oe({ ...ie.value, ...((ce = (me = o.value.query) == null ? void 0 : me.container) == null ? void 0 : ce.style) || {} })
|
|
1844
1844
|
}, [
|
|
1845
|
-
G(U(
|
|
1845
|
+
G(U(mt), x({
|
|
1846
1846
|
onSubmit: Q[0] || (Q[0] = vt(() => {
|
|
1847
1847
|
}, ["prevent"]))
|
|
1848
|
-
}, U(
|
|
1848
|
+
}, U(Ye)(o.value.query, (h) => !["query", "more", "reset", "btns"].includes(h))), {
|
|
1849
1849
|
default: b(() => {
|
|
1850
1850
|
var h, O;
|
|
1851
1851
|
return [
|
|
1852
|
-
(u(),
|
|
1853
|
-
((O = (h =
|
|
1852
|
+
(u(), S(We(k({ slots: T.$slots }, void 0)))),
|
|
1853
|
+
((O = (h = o.value.query) == null ? void 0 : h.container) == null ? void 0 : O.inline) === !0 ? (u(), S(fe, { key: 0 }, {
|
|
1854
1854
|
default: b(() => {
|
|
1855
1855
|
var P, J, Z, v, c;
|
|
1856
1856
|
return [
|
|
1857
1857
|
H("div", {
|
|
1858
|
-
style:
|
|
1858
|
+
style: Oe((J = (P = o.value.query) == null ? void 0 : P.btns) == null ? void 0 : J.style)
|
|
1859
1859
|
}, [
|
|
1860
|
-
|
|
1860
|
+
o.value.query.group ? (u(), S(U(pt), { key: 0 }, {
|
|
1861
1861
|
default: b(() => [
|
|
1862
|
-
(u(!0), q(X, null,
|
|
1863
|
-
(u(),
|
|
1862
|
+
(u(!0), q(X, null, R(te(), (K) => $(T.$slots, K.props.slot, {}, () => [
|
|
1863
|
+
(u(), S(We(K)))
|
|
1864
1864
|
], !0)), 256)),
|
|
1865
1865
|
$(T.$slots, "q-btns", {}, void 0, !0)
|
|
1866
1866
|
]),
|
|
1867
1867
|
_: 3
|
|
1868
1868
|
})) : (u(), q(X, { key: 1 }, [
|
|
1869
|
-
(c = (v = (Z =
|
|
1869
|
+
(c = (v = (Z = o.value) == null ? void 0 : Z.query) == null ? void 0 : v.btns) != null && c.group ? (u(), S(U(pt), { key: 0 }, {
|
|
1870
1870
|
default: b(() => [
|
|
1871
|
-
(u(!0), q(X, null,
|
|
1872
|
-
(u(),
|
|
1871
|
+
(u(!0), q(X, null, R(te(), (K) => $(T.$slots, K.props.slot, {}, () => [
|
|
1872
|
+
(u(), S(We(K)))
|
|
1873
1873
|
], !0)), 256))
|
|
1874
1874
|
]),
|
|
1875
1875
|
_: 3
|
|
1876
|
-
})) : (u(!0), q(X, { key: 1 },
|
|
1877
|
-
(u(),
|
|
1876
|
+
})) : (u(!0), q(X, { key: 1 }, R(te(), (K) => $(T.$slots, K.props.slot, {}, () => [
|
|
1877
|
+
(u(), S(We(K)))
|
|
1878
1878
|
], !0)), 256)),
|
|
1879
1879
|
$(T.$slots, "q-btns", {}, void 0, !0)
|
|
1880
1880
|
], 64))
|
|
@@ -1882,62 +1882,62 @@ const wt = /* @__PURE__ */ gl(bl), zt = {
|
|
|
1882
1882
|
];
|
|
1883
1883
|
}),
|
|
1884
1884
|
_: 3
|
|
1885
|
-
})) :
|
|
1885
|
+
})) : ge("", !0)
|
|
1886
1886
|
];
|
|
1887
1887
|
}),
|
|
1888
1888
|
_: 3
|
|
1889
1889
|
}, 16),
|
|
1890
|
-
((ue = (
|
|
1890
|
+
((ue = (de = (Me = o.value) == null ? void 0 : Me.query) == null ? void 0 : de.container) == null ? void 0 : ue.inline) === !1 ? (u(), q("div", {
|
|
1891
1891
|
key: 0,
|
|
1892
|
-
style:
|
|
1892
|
+
style: Oe((Te = (ye = o.value.query) == null ? void 0 : ye.btns) == null ? void 0 : Te.style)
|
|
1893
1893
|
}, [
|
|
1894
|
-
|
|
1894
|
+
o.value.query.group ? (u(), S(U(pt), { key: 0 }, {
|
|
1895
1895
|
default: b(() => [
|
|
1896
|
-
(u(!0), q(X, null,
|
|
1897
|
-
(u(),
|
|
1896
|
+
(u(!0), q(X, null, R(te(), (h) => $(T.$slots, h.props.slot, {}, () => [
|
|
1897
|
+
(u(), S(We(h)))
|
|
1898
1898
|
], !0)), 256)),
|
|
1899
1899
|
$(T.$slots, "q-btns", {}, void 0, !0)
|
|
1900
1900
|
]),
|
|
1901
1901
|
_: 3
|
|
1902
1902
|
})) : (u(), q(X, { key: 1 }, [
|
|
1903
|
-
(oe = (le =
|
|
1903
|
+
(oe = (le = o.value.query) == null ? void 0 : le.btns) != null && oe.group ? (u(), S(U(pt), { key: 0 }, {
|
|
1904
1904
|
default: b(() => [
|
|
1905
|
-
(u(!0), q(X, null,
|
|
1906
|
-
(u(),
|
|
1905
|
+
(u(!0), q(X, null, R(te(), (h) => $(T.$slots, h.props.slot, {}, () => [
|
|
1906
|
+
(u(), S(We(h)))
|
|
1907
1907
|
], !0)), 256))
|
|
1908
1908
|
]),
|
|
1909
1909
|
_: 3
|
|
1910
|
-
})) : (u(!0), q(X, { key: 1 },
|
|
1911
|
-
(u(),
|
|
1910
|
+
})) : (u(!0), q(X, { key: 1 }, R(te(), (h) => $(T.$slots, h.props.slot, {}, () => [
|
|
1911
|
+
(u(), S(We(h)))
|
|
1912
1912
|
], !0)), 256)),
|
|
1913
1913
|
$(T.$slots, "q-btns", {}, void 0, !0)
|
|
1914
1914
|
], 64))
|
|
1915
|
-
], 4)) :
|
|
1915
|
+
], 4)) : ge("", !0)
|
|
1916
1916
|
], 4),
|
|
1917
|
-
i.value && !((w = (Ie = (ae =
|
|
1917
|
+
i.value && !((w = (Ie = (ae = o.value) == null ? void 0 : ae.query) == null ? void 0 : Ie.more) != null && w.hidden) && o.value.query.more.mode == 2 ? (u(), S(N, x({
|
|
1918
1918
|
key: 0,
|
|
1919
1919
|
modelValue: i.value,
|
|
1920
1920
|
"onUpdate:modelValue": Q[6] || (Q[6] = (h) => i.value = h),
|
|
1921
1921
|
title: "更多查询",
|
|
1922
1922
|
"show-close": !1
|
|
1923
|
-
},
|
|
1923
|
+
}, o.value.query.more.dialog), he({
|
|
1924
1924
|
default: b(() => [
|
|
1925
|
-
G(U(
|
|
1925
|
+
G(U(mt), x({
|
|
1926
1926
|
onSubmit: Q[3] || (Q[3] = vt(() => {
|
|
1927
1927
|
}, ["prevent"]))
|
|
1928
|
-
}, U(
|
|
1928
|
+
}, U(Ye)(o.value.query, (h) => !["query", "more", "reset"].includes(h)), { style: { width: "98%" } }), {
|
|
1929
1929
|
default: b(() => [
|
|
1930
|
-
G(
|
|
1931
|
-
modelValue:
|
|
1932
|
-
"onUpdate:modelValue": Q[1] || (Q[1] = (h) =>
|
|
1930
|
+
G(Vt, {
|
|
1931
|
+
modelValue: o.value,
|
|
1932
|
+
"onUpdate:modelValue": Q[1] || (Q[1] = (h) => o.value = h),
|
|
1933
1933
|
info: M.value,
|
|
1934
1934
|
"onUpdate:info": Q[2] || (Q[2] = (h) => M.value = h),
|
|
1935
1935
|
more: !0
|
|
1936
|
-
},
|
|
1937
|
-
|
|
1936
|
+
}, he({ _: 2 }, [
|
|
1937
|
+
R(T.$slots, (h, O, P) => ({
|
|
1938
1938
|
name: O,
|
|
1939
1939
|
fn: b((J) => [
|
|
1940
|
-
$(T.$slots, O, { model:
|
|
1940
|
+
$(T.$slots, O, { model: o.value }, void 0, !0)
|
|
1941
1941
|
])
|
|
1942
1942
|
}))
|
|
1943
1943
|
]), 1032, ["modelValue", "info"])
|
|
@@ -1947,23 +1947,23 @@ const wt = /* @__PURE__ */ gl(bl), zt = {
|
|
|
1947
1947
|
]),
|
|
1948
1948
|
_: 2
|
|
1949
1949
|
}, [
|
|
1950
|
-
(g = (D = (a = (
|
|
1950
|
+
(g = (D = (a = (m = (p = o.value) == null ? void 0 : p.query) == null ? void 0 : m.more) == null ? void 0 : a.dialog) == null ? void 0 : D.footer) != null && g.hidden ? void 0 : {
|
|
1951
1951
|
name: "footer",
|
|
1952
1952
|
fn: b(() => [
|
|
1953
|
-
H("div",
|
|
1954
|
-
G(U(
|
|
1955
|
-
onClick: Q[4] || (Q[4] = (h) =>
|
|
1953
|
+
H("div", _t(Xt(o.value.query.more.dialog.footer)), [
|
|
1954
|
+
G(U(Ae), x(o.value.query.query, {
|
|
1955
|
+
onClick: Q[4] || (Q[4] = (h) => o.value.query.query.click())
|
|
1956
1956
|
}), {
|
|
1957
1957
|
default: b(() => [
|
|
1958
|
-
|
|
1958
|
+
Be(Ce(o.value.query.query.label), 1)
|
|
1959
1959
|
]),
|
|
1960
1960
|
_: 1
|
|
1961
1961
|
}, 16),
|
|
1962
|
-
G(U(
|
|
1963
|
-
onClick: Q[5] || (Q[5] = (h) =>
|
|
1962
|
+
G(U(Ae), x(o.value.query.reset, {
|
|
1963
|
+
onClick: Q[5] || (Q[5] = (h) => o.value.query.reset.click())
|
|
1964
1964
|
}), {
|
|
1965
1965
|
default: b(() => [
|
|
1966
|
-
|
|
1966
|
+
Be(Ce(o.value.query.reset.label), 1)
|
|
1967
1967
|
]),
|
|
1968
1968
|
_: 1
|
|
1969
1969
|
}, 16)
|
|
@@ -1971,7 +1971,7 @@ const wt = /* @__PURE__ */ gl(bl), zt = {
|
|
|
1971
1971
|
]),
|
|
1972
1972
|
key: "0"
|
|
1973
1973
|
}
|
|
1974
|
-
]), 1040, ["modelValue"])) :
|
|
1974
|
+
]), 1040, ["modelValue"])) : ge("", !0),
|
|
1975
1975
|
G(Gt, {
|
|
1976
1976
|
duration: 300,
|
|
1977
1977
|
name: "nested",
|
|
@@ -1980,22 +1980,22 @@ const wt = /* @__PURE__ */ gl(bl), zt = {
|
|
|
1980
1980
|
default: b(() => {
|
|
1981
1981
|
var h, O, P;
|
|
1982
1982
|
return [
|
|
1983
|
-
i.value && !((P = (O = (h =
|
|
1983
|
+
i.value && !((P = (O = (h = o.value) == null ? void 0 : h.query) == null ? void 0 : O.more) != null && P.hidden) && o.value.query.more.mode == 1 ? (u(), q("div", ql, [
|
|
1984
1984
|
H("div", Ol, [
|
|
1985
|
-
|
|
1985
|
+
o.value.query.more.mode == 1 ? Qt((u(), S(U(mt), x({
|
|
1986
1986
|
key: 0,
|
|
1987
1987
|
onSubmit: Q[7] || (Q[7] = vt(() => {
|
|
1988
1988
|
}, ["prevent"]))
|
|
1989
|
-
}, U(
|
|
1989
|
+
}, U(Ye)(o.value.query, (J) => !["query", "more", "reset"].includes(J))), {
|
|
1990
1990
|
default: b(() => [
|
|
1991
|
-
(u(),
|
|
1991
|
+
(u(), S(We(k({ slots: T.$slots }, !0))))
|
|
1992
1992
|
]),
|
|
1993
1993
|
_: 1
|
|
1994
1994
|
}, 16)), [
|
|
1995
1995
|
[Zt, i.value]
|
|
1996
|
-
]) :
|
|
1996
|
+
]) : ge("", !0)
|
|
1997
1997
|
])
|
|
1998
|
-
])) :
|
|
1998
|
+
])) : ge("", !0)
|
|
1999
1999
|
];
|
|
2000
2000
|
}),
|
|
2001
2001
|
_: 1
|
|
@@ -2003,7 +2003,7 @@ const wt = /* @__PURE__ */ gl(bl), zt = {
|
|
|
2003
2003
|
], 64);
|
|
2004
2004
|
};
|
|
2005
2005
|
}
|
|
2006
|
-
},
|
|
2006
|
+
}, Il = /* @__PURE__ */ Ze(Al, [["__scopeId", "data-v-3f2b77d6"]]), Bl = { style: { padding: "0", margin: "0", "box-sizing": "border-box" } }, Yl = { style: { padding: "10px", "box-sizing": "border-box" } }, Ul = { style: { margin: "10px" } }, Ll = {
|
|
2007
2007
|
style: { display: "flex", "flex-wrap": "wrap" },
|
|
2008
2008
|
id: "excelSortEl"
|
|
2009
2009
|
}, zl = ["textContent"], Rl = { style: { width: "100%", display: "flex", padding: "10px", "box-sizing": "border-box", "justify-content": "center", "border-top": "1px solid #dcdfe6" } }, jl = {
|
|
@@ -2014,40 +2014,40 @@ const wt = /* @__PURE__ */ gl(bl), zt = {
|
|
|
2014
2014
|
},
|
|
2015
2015
|
emits: ["excel"],
|
|
2016
2016
|
setup(f, { emit: s }) {
|
|
2017
|
-
const
|
|
2018
|
-
e.value.forEach((
|
|
2019
|
-
|
|
2017
|
+
const o = f, l = s, e = re(o.items), i = () => {
|
|
2018
|
+
e.value.forEach((V) => {
|
|
2019
|
+
V.value = !0;
|
|
2020
2020
|
});
|
|
2021
2021
|
}, M = () => {
|
|
2022
|
-
e.value.forEach((
|
|
2023
|
-
|
|
2022
|
+
e.value.forEach((V) => {
|
|
2023
|
+
V.value = !1;
|
|
2024
2024
|
});
|
|
2025
2025
|
}, Y = () => {
|
|
2026
|
-
l("excel", e.value, (
|
|
2027
|
-
if (!
|
|
2026
|
+
l("excel", e.value, (V, _ = "excel.xls") => {
|
|
2027
|
+
if (!V) {
|
|
2028
2028
|
console.error("下载链接无效");
|
|
2029
2029
|
return;
|
|
2030
2030
|
}
|
|
2031
2031
|
try {
|
|
2032
2032
|
const k = document.createElement("a");
|
|
2033
|
-
k.href =
|
|
2033
|
+
k.href = V, k.download = _, k.style.display = "none", document.body.appendChild(k), k.click(), document.body.removeChild(k);
|
|
2034
2034
|
} catch (k) {
|
|
2035
2035
|
console.error("下载文件时出现错误:", k);
|
|
2036
2036
|
}
|
|
2037
2037
|
});
|
|
2038
2038
|
};
|
|
2039
2039
|
return ot(() => {
|
|
2040
|
-
const
|
|
2040
|
+
const V = new Ut(document.getElementById("excelSortEl"), {
|
|
2041
2041
|
animation: 150,
|
|
2042
2042
|
onEnd: () => {
|
|
2043
|
-
|
|
2043
|
+
V.toArray();
|
|
2044
2044
|
}
|
|
2045
|
-
}),
|
|
2045
|
+
}), _ = V;
|
|
2046
2046
|
Jt(() => {
|
|
2047
|
-
|
|
2047
|
+
_ && _.destroy();
|
|
2048
2048
|
});
|
|
2049
|
-
}), (
|
|
2050
|
-
const k =
|
|
2049
|
+
}), (V, _) => {
|
|
2050
|
+
const k = I("el-divider"), L = I("el-alert"), te = I("el-checkbox"), ie = I("el-button");
|
|
2051
2051
|
return u(), q("div", Bl, [
|
|
2052
2052
|
H("div", Yl, [
|
|
2053
2053
|
H("div", Ul, [
|
|
@@ -2068,9 +2068,9 @@ const wt = /* @__PURE__ */ gl(bl), zt = {
|
|
|
2068
2068
|
closable: !1,
|
|
2069
2069
|
style: { "margin-bottom": "10px" }
|
|
2070
2070
|
}),
|
|
2071
|
-
|
|
2071
|
+
_[0] || (_[0] = H("div", { style: { margin: "1px 0" } }, null, -1)),
|
|
2072
2072
|
H("div", Ll, [
|
|
2073
|
-
(u(!0), q(X, null,
|
|
2073
|
+
(u(!0), q(X, null, R(e.value, (T) => (u(), S(te, {
|
|
2074
2074
|
class: "check-box-hover",
|
|
2075
2075
|
style: { width: "120px !important", height: "30px !important", border: "1px solid #dfe6ec", margin: "5px !important", "border-radius": "3px !important", "padding-left": "5px !important", display: "flex !important", "align-items": "center !important" },
|
|
2076
2076
|
"data-id": T.key,
|
|
@@ -2081,7 +2081,7 @@ const wt = /* @__PURE__ */ gl(bl), zt = {
|
|
|
2081
2081
|
}, {
|
|
2082
2082
|
default: b(() => [
|
|
2083
2083
|
H("span", {
|
|
2084
|
-
textContent:
|
|
2084
|
+
textContent: Ce(T.label),
|
|
2085
2085
|
style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
|
|
2086
2086
|
}, null, 8, zl)
|
|
2087
2087
|
]),
|
|
@@ -2090,14 +2090,14 @@ const wt = /* @__PURE__ */ gl(bl), zt = {
|
|
|
2090
2090
|
])
|
|
2091
2091
|
]),
|
|
2092
2092
|
H("div", Rl, [
|
|
2093
|
-
G(
|
|
2093
|
+
G(ie, {
|
|
2094
2094
|
type: "primary",
|
|
2095
2095
|
onClick: Y,
|
|
2096
2096
|
icon: U(Yt),
|
|
2097
2097
|
disabled: e.value.filter((T) => T.value).length < 1
|
|
2098
2098
|
}, {
|
|
2099
2099
|
default: b(() => [
|
|
2100
|
-
|
|
2100
|
+
Be(Ce(o.commitText), 1)
|
|
2101
2101
|
]),
|
|
2102
2102
|
_: 1
|
|
2103
2103
|
}, 8, ["icon", "disabled"])
|
|
@@ -2105,48 +2105,48 @@ const wt = /* @__PURE__ */ gl(bl), zt = {
|
|
|
2105
2105
|
]);
|
|
2106
2106
|
};
|
|
2107
2107
|
}
|
|
2108
|
-
}, Hl = /* @__PURE__ */ Ze(jl, [["__scopeId", "data-v-630c4ced"]]),
|
|
2109
|
-
|
|
2108
|
+
}, Hl = /* @__PURE__ */ Ze(jl, [["__scopeId", "data-v-630c4ced"]]), He = new vl("gyc");
|
|
2109
|
+
He.version(1).stores({
|
|
2110
2110
|
//记录表格项设置信息
|
|
2111
2111
|
tableInfo: "++id,[page+key],page,key,showCol,width,sort",
|
|
2112
2112
|
//记录表格分页条数
|
|
2113
2113
|
pagesize: "++id,page,size"
|
|
2114
2114
|
});
|
|
2115
|
-
async function gt(f, s,
|
|
2116
|
-
if (await
|
|
2117
|
-
let e = await
|
|
2118
|
-
return await
|
|
2115
|
+
async function gt(f, s, o = {}) {
|
|
2116
|
+
if (await He.tableInfo.where({ page: f, key: s }).count() > 0) {
|
|
2117
|
+
let e = await He.tableInfo.where({ page: f, key: s }).first();
|
|
2118
|
+
return await He.tableInfo.put({ ...e, ...o }), "update success";
|
|
2119
2119
|
} else {
|
|
2120
|
-
let e = { showCol: !0, width: "auto", sort: 0, ...
|
|
2121
|
-
return await
|
|
2120
|
+
let e = { showCol: !0, width: "auto", sort: 0, ...o };
|
|
2121
|
+
return await He.tableInfo.add({ page: f, key: s, ...e }), "add success";
|
|
2122
2122
|
}
|
|
2123
2123
|
}
|
|
2124
|
-
async function Tt(f, s,
|
|
2124
|
+
async function Tt(f, s, o = {}) {
|
|
2125
2125
|
const l = s.map(
|
|
2126
|
-
(e) => gt(f, e.value, { ...e, ...
|
|
2126
|
+
(e) => gt(f, e.value, { ...e, ...o })
|
|
2127
2127
|
);
|
|
2128
2128
|
return await Promise.all(l), "batch update success";
|
|
2129
2129
|
}
|
|
2130
2130
|
async function Pl(f) {
|
|
2131
|
-
return await
|
|
2131
|
+
return await He.tableInfo.where({ page: f }).toArray();
|
|
2132
2132
|
}
|
|
2133
2133
|
async function Nl(f) {
|
|
2134
2134
|
try {
|
|
2135
|
-
const s = await
|
|
2135
|
+
const s = await He.tableInfo.where({ page: f }).delete();
|
|
2136
2136
|
return console.log("删除了" + s + "条数据"), s;
|
|
2137
2137
|
} catch (s) {
|
|
2138
2138
|
throw console.error("删除表格项设置信息时出错:", s), s;
|
|
2139
2139
|
}
|
|
2140
2140
|
}
|
|
2141
2141
|
async function Wl(f, s) {
|
|
2142
|
-
if (await
|
|
2143
|
-
let l = await
|
|
2144
|
-
return await
|
|
2142
|
+
if (await He.pagesize.where({ page: f }).count() > 0) {
|
|
2143
|
+
let l = await He.pagesize.where({ page: f }).first();
|
|
2144
|
+
return await He.pagesize.put({ ...l, size: s }), "update success";
|
|
2145
2145
|
} else
|
|
2146
|
-
return await
|
|
2146
|
+
return await He.pagesize.add({ page: f, size: s }), "add success";
|
|
2147
2147
|
}
|
|
2148
2148
|
async function Xl(f) {
|
|
2149
|
-
let s = await
|
|
2149
|
+
let s = await He.pagesize.where({ page: f }).first();
|
|
2150
2150
|
return (s == null ? void 0 : s.size) || 20;
|
|
2151
2151
|
}
|
|
2152
2152
|
const Gl = {
|
|
@@ -2168,10 +2168,10 @@ const Gl = {
|
|
|
2168
2168
|
}),
|
|
2169
2169
|
emits: ["update:modelValue"],
|
|
2170
2170
|
setup(f) {
|
|
2171
|
-
const s = f,
|
|
2172
|
-
|
|
2171
|
+
const s = f, o = re([]), l = Qe(f, "modelValue"), e = async (_, k) => {
|
|
2172
|
+
_ ? l.value[k].showCol = !0 : l.value[k].showCol = !1;
|
|
2173
2173
|
try {
|
|
2174
|
-
await gt(s.tuid, k, { showCol:
|
|
2174
|
+
await gt(s.tuid, k, { showCol: _ });
|
|
2175
2175
|
} catch (L) {
|
|
2176
2176
|
console.error("列显示状态保存信息时出错:", L), Xe({
|
|
2177
2177
|
type: "error",
|
|
@@ -2179,19 +2179,19 @@ const Gl = {
|
|
|
2179
2179
|
});
|
|
2180
2180
|
}
|
|
2181
2181
|
}, i = () => {
|
|
2182
|
-
const
|
|
2183
|
-
if (
|
|
2184
|
-
let k = Ut.create(
|
|
2182
|
+
const _ = document.getElementById("cols");
|
|
2183
|
+
if (_) {
|
|
2184
|
+
let k = Ut.create(_, {
|
|
2185
2185
|
animation: 150,
|
|
2186
2186
|
filter: ".filtered",
|
|
2187
2187
|
//
|
|
2188
2188
|
sort: !0,
|
|
2189
2189
|
onEnd: () => {
|
|
2190
|
-
k.toArray().forEach(async (te,
|
|
2191
|
-
l.value[te].sort =
|
|
2190
|
+
k.toArray().forEach(async (te, ie) => {
|
|
2191
|
+
l.value[te].sort = ie;
|
|
2192
2192
|
let T = l.value[te].width || "auto";
|
|
2193
2193
|
try {
|
|
2194
|
-
await gt(s.tuid, te, { sort:
|
|
2194
|
+
await gt(s.tuid, te, { sort: ie, width: T });
|
|
2195
2195
|
} catch (Q) {
|
|
2196
2196
|
console.error("列排序和宽度保存信息时出错:", Q), Xe({
|
|
2197
2197
|
type: "error",
|
|
@@ -2204,36 +2204,36 @@ const Gl = {
|
|
|
2204
2204
|
}
|
|
2205
2205
|
}, M = async () => {
|
|
2206
2206
|
try {
|
|
2207
|
-
const
|
|
2208
|
-
await Tt(s.tuid,
|
|
2209
|
-
} catch (
|
|
2210
|
-
console.error("全选列保存信息时出错:",
|
|
2207
|
+
const _ = o.value.map((k) => (k.showCol = !0, l.value[k.value].showCol = !0, k));
|
|
2208
|
+
await Tt(s.tuid, _, { showCol: !0 });
|
|
2209
|
+
} catch (_) {
|
|
2210
|
+
console.error("全选列保存信息时出错:", _), Xe({
|
|
2211
2211
|
type: "error",
|
|
2212
2212
|
message: "全选列保存信息失败!"
|
|
2213
2213
|
});
|
|
2214
2214
|
}
|
|
2215
2215
|
}, Y = async () => {
|
|
2216
2216
|
try {
|
|
2217
|
-
const
|
|
2218
|
-
|
|
2217
|
+
const _ = o.value.filter((k) => !k.alwaysShow && k.value != "control");
|
|
2218
|
+
_.forEach((k) => {
|
|
2219
2219
|
k.showCol = !1, l.value[k.value].showCol = !1;
|
|
2220
|
-
}), await Tt(s.tuid,
|
|
2221
|
-
} catch (
|
|
2222
|
-
console.error("清除列保存信息时出错:",
|
|
2220
|
+
}), await Tt(s.tuid, _, { showCol: !1 });
|
|
2221
|
+
} catch (_) {
|
|
2222
|
+
console.error("清除列保存信息时出错:", _), Xe({
|
|
2223
2223
|
type: "error",
|
|
2224
2224
|
message: "清除列保存信息失败!"
|
|
2225
2225
|
});
|
|
2226
2226
|
}
|
|
2227
|
-
},
|
|
2227
|
+
}, V = () => {
|
|
2228
2228
|
Ft.confirm("确定要复位吗?", "提示", {
|
|
2229
2229
|
confirmButtonText: "确定",
|
|
2230
2230
|
cancelButtonText: "取消",
|
|
2231
2231
|
type: "warning"
|
|
2232
2232
|
}).then(() => {
|
|
2233
|
-
Nl(s.tuid).then((
|
|
2233
|
+
Nl(s.tuid).then((_) => {
|
|
2234
2234
|
window.location.reload();
|
|
2235
|
-
}).catch((
|
|
2236
|
-
console.error("复位操作出错:",
|
|
2235
|
+
}).catch((_) => {
|
|
2236
|
+
console.error("复位操作出错:", _), Xe({
|
|
2237
2237
|
type: "info",
|
|
2238
2238
|
message: "复位失败!"
|
|
2239
2239
|
});
|
|
@@ -2241,23 +2241,23 @@ const Gl = {
|
|
|
2241
2241
|
});
|
|
2242
2242
|
};
|
|
2243
2243
|
return ot(async () => {
|
|
2244
|
-
|
|
2244
|
+
o.value = Object.entries(l.value).filter(([, _]) => _.visible !== !1).filter(([, _]) => _.type != "hidden").map(([_, k]) => ({
|
|
2245
2245
|
label: k.label,
|
|
2246
|
-
value:
|
|
2246
|
+
value: _,
|
|
2247
2247
|
alwaysShow: k.alwaysShow,
|
|
2248
2248
|
showCol: k.showCol !== !1,
|
|
2249
2249
|
sort: k.sort || 0,
|
|
2250
2250
|
width: k.width || "auto"
|
|
2251
|
-
})).sort((
|
|
2252
|
-
}), (
|
|
2253
|
-
const L =
|
|
2251
|
+
})).sort((_, k) => _.sort - k.sort), i();
|
|
2252
|
+
}), (_, k) => {
|
|
2253
|
+
const L = I("el-divider"), te = I("el-alert"), ie = I("el-checkbox");
|
|
2254
2254
|
return u(), q("div", null, [
|
|
2255
2255
|
H("div", Gl, [
|
|
2256
2256
|
H("a", { onClick: M }, "全选"),
|
|
2257
2257
|
G(L, { direction: "vertical" }),
|
|
2258
2258
|
H("a", { onClick: Y }, "全不选"),
|
|
2259
2259
|
G(L, { direction: "vertical" }),
|
|
2260
|
-
H("a", { onClick:
|
|
2260
|
+
H("a", { onClick: V }, "复位")
|
|
2261
2261
|
]),
|
|
2262
2262
|
G(te, {
|
|
2263
2263
|
title: "拖动表格列标题可以改变表格列显示顺序 !",
|
|
@@ -2268,7 +2268,7 @@ const Gl = {
|
|
|
2268
2268
|
}),
|
|
2269
2269
|
H("div", null, [
|
|
2270
2270
|
H("div", Ql, [
|
|
2271
|
-
(u(!0), q(X, null,
|
|
2271
|
+
(u(!0), q(X, null, R(o.value, (T) => (u(), S(ie, {
|
|
2272
2272
|
modelValue: T.showCol,
|
|
2273
2273
|
"onUpdate:modelValue": (Q) => T.showCol = Q,
|
|
2274
2274
|
"data-id": T.value,
|
|
@@ -2282,7 +2282,7 @@ const Gl = {
|
|
|
2282
2282
|
}, {
|
|
2283
2283
|
default: b(() => [
|
|
2284
2284
|
H("span", {
|
|
2285
|
-
textContent:
|
|
2285
|
+
textContent: Ce(T.label),
|
|
2286
2286
|
style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
|
|
2287
2287
|
}, null, 8, Zl)
|
|
2288
2288
|
]),
|
|
@@ -2306,24 +2306,24 @@ const Gl = {
|
|
|
2306
2306
|
}
|
|
2307
2307
|
},
|
|
2308
2308
|
setup(f) {
|
|
2309
|
-
const s = f,
|
|
2309
|
+
const s = f, o = () => {
|
|
2310
2310
|
s.content ? (navigator.clipboard.writeText(s.content), Xe.success("复制成功")) : Xe.warning("没有内容可复制");
|
|
2311
2311
|
};
|
|
2312
2312
|
return (l, e) => (u(), q("div", {
|
|
2313
2313
|
class: "g-cell-toopTip",
|
|
2314
|
-
style:
|
|
2314
|
+
style: Oe({ width: s.column.width + "px" })
|
|
2315
2315
|
}, [
|
|
2316
2316
|
H("div", ea, [
|
|
2317
2317
|
e[0] || (e[0] = H("span", { class: "title-text" }, "内容", -1)),
|
|
2318
2318
|
H("span", {
|
|
2319
2319
|
class: "copy-btn",
|
|
2320
|
-
onClick:
|
|
2320
|
+
onClick: o,
|
|
2321
2321
|
title: "复制内容"
|
|
2322
2322
|
}, [
|
|
2323
2323
|
G(U(sl))
|
|
2324
2324
|
])
|
|
2325
2325
|
]),
|
|
2326
|
-
H("div", ta,
|
|
2326
|
+
H("div", ta, Ce(s.content), 1)
|
|
2327
2327
|
], 4));
|
|
2328
2328
|
}
|
|
2329
2329
|
}, aa = /* @__PURE__ */ Ze(la, [["__scopeId", "data-v-f28912da"]]), ra = { key: 0 }, oa = { style: { display: "flex", "margin-top": "-2px" } }, ua = { style: { display: "flex", flex: "1" } }, na = {
|
|
@@ -2332,7 +2332,7 @@ const Gl = {
|
|
|
2332
2332
|
}, sa = { key: 1 }, ia = { style: { display: "flex" } }, da = { style: { display: "flex", flex: "1" } }, ca = { class: "g-table-container" }, fa = {
|
|
2333
2333
|
key: 0,
|
|
2334
2334
|
class: "table-query-container"
|
|
2335
|
-
},
|
|
2335
|
+
}, ma = { class: "table-container" }, pa = ["innerHTML"], va = /* @__PURE__ */ Object.assign({
|
|
2336
2336
|
name: "g-table",
|
|
2337
2337
|
inheritAttrs: !1
|
|
2338
2338
|
}, {
|
|
@@ -2353,10 +2353,10 @@ const Gl = {
|
|
|
2353
2353
|
"download",
|
|
2354
2354
|
"row-save"
|
|
2355
2355
|
], ["update:modelValue"]),
|
|
2356
|
-
setup(f, { expose: s, emit:
|
|
2356
|
+
setup(f, { expose: s, emit: o }) {
|
|
2357
2357
|
var ut, nt, st, it, dt, ct, ft;
|
|
2358
|
-
const l =
|
|
2359
|
-
M.value = Object.fromEntries(
|
|
2358
|
+
const l = o, e = Qe(f, "modelValue"), i = Mt("options"), M = re({}), Y = re(null), V = re(null), _ = Object.entries(e.value).filter(([t, r]) => (r == null ? void 0 : r.search) !== void 0).map(([t, r]) => [t, r.value]);
|
|
2359
|
+
M.value = Object.fromEntries(_);
|
|
2360
2360
|
const k = re(!1), L = [
|
|
2361
2361
|
"type",
|
|
2362
2362
|
"index",
|
|
@@ -2386,7 +2386,7 @@ const Gl = {
|
|
|
2386
2386
|
"filter-multiple",
|
|
2387
2387
|
"filter-method",
|
|
2388
2388
|
"filtered-value"
|
|
2389
|
-
], te = re([]),
|
|
2389
|
+
], te = re([]), ie = f, T = St(), Q = re({}), fe = re([]), N = re(null), me = re(""), ce = re("/"), Me = re({
|
|
2390
2390
|
autoWatch: !1,
|
|
2391
2391
|
data: [],
|
|
2392
2392
|
border: !0,
|
|
@@ -2395,14 +2395,14 @@ const Gl = {
|
|
|
2395
2395
|
fit: !1,
|
|
2396
2396
|
type: "hidden",
|
|
2397
2397
|
load: async () => {
|
|
2398
|
-
e.value.table.page.pageSize = await Xl(
|
|
2399
|
-
let { currentPage: t, pageSize:
|
|
2398
|
+
e.value.table.page.pageSize = await Xl(ce.value);
|
|
2399
|
+
let { currentPage: t, pageSize: r } = e.value.table.page;
|
|
2400
2400
|
try {
|
|
2401
2401
|
l(
|
|
2402
2402
|
"load",
|
|
2403
|
-
{ currentPage: t, pageSize:
|
|
2404
|
-
(n = [], y = 0, { fields:
|
|
2405
|
-
var
|
|
2403
|
+
{ currentPage: t, pageSize: r, ...M.value },
|
|
2404
|
+
(n = [], y = 0, { fields: F = [], sums: A = {} } = {}) => {
|
|
2405
|
+
var z;
|
|
2406
2406
|
if (!Array.isArray(n)) {
|
|
2407
2407
|
console.error("从 load 事件回调中接收到的数据不是数组格式。"), Xe.error("数据加载失败,请检查数据格式。");
|
|
2408
2408
|
return;
|
|
@@ -2411,7 +2411,7 @@ const Gl = {
|
|
|
2411
2411
|
console.error("从 load 事件回调中接收到的 total 不是数字格式。"), Xe.error("数据加载失败,请检查数据格式。");
|
|
2412
2412
|
return;
|
|
2413
2413
|
}
|
|
2414
|
-
e.value.table.data = n, ((
|
|
2414
|
+
e.value.table.data = n, ((z = e.value.control) == null ? void 0 : z.add(e).inline) === !0 && e.value.table.data.unshift(N.value), e.value.table.page.total = y, fe.value = F, Q.value = A, we(), me.value = Math.random().toString(36).substring(2);
|
|
2415
2415
|
},
|
|
2416
2416
|
N.value
|
|
2417
2417
|
);
|
|
@@ -2419,13 +2419,13 @@ const Gl = {
|
|
|
2419
2419
|
console.error("触发 load 事件时出现错误:", n), Xe.error("数据加载时出现错误,请稍后重试。");
|
|
2420
2420
|
}
|
|
2421
2421
|
},
|
|
2422
|
-
onHeaderDragend: (t,
|
|
2423
|
-
gt(
|
|
2422
|
+
onHeaderDragend: (t, r, n) => {
|
|
2423
|
+
gt(ce.value, n.property, {
|
|
2424
2424
|
width: t
|
|
2425
2425
|
});
|
|
2426
2426
|
},
|
|
2427
|
-
onRowDblclick: (t,
|
|
2428
|
-
e.value.table.dblclickType == "edit" ?
|
|
2427
|
+
onRowDblclick: (t, r, n) => {
|
|
2428
|
+
e.value.table.dblclickType == "edit" ? m(t, r, n, e) : e.value.table.dblclickType == "view" ? D(t, r, n, e) : e.value.table.dblclickType == "delete" ? a(t, r, n, e) : e.value.table.dblclickType(t, r, n, e);
|
|
2429
2429
|
},
|
|
2430
2430
|
style: { "min-height": "100px", backgroundColor: "var(--el-bg-color)" },
|
|
2431
2431
|
page: {
|
|
@@ -2445,24 +2445,24 @@ const Gl = {
|
|
|
2445
2445
|
e.value.table.page.currentPage = t, e.value.table.load();
|
|
2446
2446
|
},
|
|
2447
2447
|
onSizeChange: (t) => {
|
|
2448
|
-
Wl(
|
|
2448
|
+
Wl(ce.value, t).then(() => {
|
|
2449
2449
|
e.value.table.page.pageSize = t, e.value.table.load();
|
|
2450
2450
|
});
|
|
2451
2451
|
}
|
|
2452
2452
|
},
|
|
2453
2453
|
dblclickType: "edit",
|
|
2454
|
-
"summary-method": ({ columns: t, data:
|
|
2455
|
-
onSortChange: ({ column: t, prop:
|
|
2454
|
+
"summary-method": ({ columns: t, data: r }, n) => n,
|
|
2455
|
+
onSortChange: ({ column: t, prop: r, order: n }, y) => {
|
|
2456
2456
|
}
|
|
2457
2457
|
});
|
|
2458
|
-
e.value.table =
|
|
2459
|
-
|
|
2458
|
+
e.value.table = qe(
|
|
2459
|
+
Me.value,
|
|
2460
2460
|
i == null ? void 0 : i.table,
|
|
2461
2461
|
e.value.table,
|
|
2462
2462
|
T
|
|
2463
2463
|
// 继承父组件的属性
|
|
2464
2464
|
);
|
|
2465
|
-
const
|
|
2465
|
+
const de = {
|
|
2466
2466
|
type: "control",
|
|
2467
2467
|
label: "操作",
|
|
2468
2468
|
align: "center",
|
|
@@ -2471,36 +2471,36 @@ const Gl = {
|
|
|
2471
2471
|
fixed: "right",
|
|
2472
2472
|
style: { ...(nt = (ut = e.value) == null ? void 0 : ut.control) == null ? void 0 : nt.style },
|
|
2473
2473
|
validate: async (t) => await !0,
|
|
2474
|
-
view: (t,
|
|
2474
|
+
view: (t, r, n, y) => ({
|
|
2475
2475
|
label: "查看",
|
|
2476
2476
|
text: !0,
|
|
2477
2477
|
type: "success",
|
|
2478
2478
|
mode: "dialog",
|
|
2479
|
-
icon: () =>
|
|
2479
|
+
icon: () => Ee(il),
|
|
2480
2480
|
auth: () => {
|
|
2481
|
-
var
|
|
2482
|
-
return !(((
|
|
2481
|
+
var F;
|
|
2482
|
+
return !(((F = y == null ? void 0 : y.control) == null ? void 0 : F.add(y).inline) === !0 && n === 0);
|
|
2483
2483
|
}
|
|
2484
2484
|
}),
|
|
2485
|
-
edit: (t,
|
|
2485
|
+
edit: (t, r, n, y) => ({
|
|
2486
2486
|
label: "编辑",
|
|
2487
2487
|
text: !0,
|
|
2488
2488
|
type: "primary",
|
|
2489
2489
|
mode: "dialog",
|
|
2490
|
-
icon: () =>
|
|
2490
|
+
icon: () => Ee(dl),
|
|
2491
2491
|
auth: () => {
|
|
2492
|
-
var
|
|
2493
|
-
return ((
|
|
2492
|
+
var F;
|
|
2493
|
+
return ((F = y == null ? void 0 : y.control) == null ? void 0 : F.add(y).inline) !== !0;
|
|
2494
2494
|
}
|
|
2495
2495
|
}),
|
|
2496
|
-
delete: (t,
|
|
2496
|
+
delete: (t, r, n, y) => ({
|
|
2497
2497
|
text: !0,
|
|
2498
2498
|
label: "删除",
|
|
2499
2499
|
type: "danger",
|
|
2500
|
-
icon: () =>
|
|
2500
|
+
icon: () => Ee(Bt),
|
|
2501
2501
|
auth: () => {
|
|
2502
|
-
var
|
|
2503
|
-
return !(((
|
|
2502
|
+
var F;
|
|
2503
|
+
return !(((F = y.control) == null ? void 0 : F.add(y).inline) === !0 && n === 0);
|
|
2504
2504
|
},
|
|
2505
2505
|
dialog: {
|
|
2506
2506
|
message: "此操作将永久删除该文件, 是否继续?",
|
|
@@ -2512,15 +2512,15 @@ const Gl = {
|
|
|
2512
2512
|
}
|
|
2513
2513
|
}
|
|
2514
2514
|
}),
|
|
2515
|
-
save: (t,
|
|
2515
|
+
save: (t, r, n, y) => ({
|
|
2516
2516
|
label: y.control.add(y).inline !== !0 ? "保存" : n === 0 ? "新增" : "保存",
|
|
2517
2517
|
text: !0,
|
|
2518
|
-
icon: () =>
|
|
2518
|
+
icon: () => Ee(At),
|
|
2519
2519
|
type: y.control.add(y).inline !== !0 || n === 0 ? "primary" : "success",
|
|
2520
2520
|
sort: -1,
|
|
2521
2521
|
auth: () => {
|
|
2522
|
-
var
|
|
2523
|
-
return ((
|
|
2522
|
+
var F;
|
|
2523
|
+
return ((F = y.control) == null ? void 0 : F.add(y).inline) === !0;
|
|
2524
2524
|
}
|
|
2525
2525
|
}),
|
|
2526
2526
|
add: (t) => ({
|
|
@@ -2529,7 +2529,7 @@ const Gl = {
|
|
|
2529
2529
|
type: "primary",
|
|
2530
2530
|
mode: "dialog",
|
|
2531
2531
|
inline: !1,
|
|
2532
|
-
icon: () =>
|
|
2532
|
+
icon: () => Ee(cl),
|
|
2533
2533
|
auth: () => !0
|
|
2534
2534
|
}),
|
|
2535
2535
|
download: (t) => ({
|
|
@@ -2537,7 +2537,7 @@ const Gl = {
|
|
|
2537
2537
|
text: !1,
|
|
2538
2538
|
type: "primary",
|
|
2539
2539
|
mode: "dialog",
|
|
2540
|
-
icon: () =>
|
|
2540
|
+
icon: () => Ee(Yt),
|
|
2541
2541
|
excelLabel: "下载EXCEL",
|
|
2542
2542
|
auth: () => !0
|
|
2543
2543
|
}),
|
|
@@ -2546,10 +2546,10 @@ const Gl = {
|
|
|
2546
2546
|
text: !1,
|
|
2547
2547
|
type: "primary",
|
|
2548
2548
|
mode: "dialog",
|
|
2549
|
-
icon: () =>
|
|
2549
|
+
icon: () => Ee(fl),
|
|
2550
2550
|
auth: () => !0
|
|
2551
2551
|
}),
|
|
2552
|
-
dropdown: (t,
|
|
2552
|
+
dropdown: (t, r, n, y) => ({
|
|
2553
2553
|
label: "编辑",
|
|
2554
2554
|
operate: "edit",
|
|
2555
2555
|
"split-button": !0,
|
|
@@ -2557,51 +2557,51 @@ const Gl = {
|
|
|
2557
2557
|
size: "small",
|
|
2558
2558
|
auth: () => !(y.control.add(y).inline === !0 && n == 0),
|
|
2559
2559
|
onClick: () => {
|
|
2560
|
-
var
|
|
2561
|
-
let
|
|
2562
|
-
|
|
2560
|
+
var A;
|
|
2561
|
+
let F = (A = ye(t, r, n, y)) == null ? void 0 : A.operate;
|
|
2562
|
+
F === "edit" ? m(t, r, n, y) : F === "delete" ? a(t, r, n, y) : F === "view" && D(t, r, n, y);
|
|
2563
2563
|
},
|
|
2564
2564
|
"button-props": { round: !0, plain: !0 }
|
|
2565
2565
|
})
|
|
2566
2566
|
};
|
|
2567
|
-
e.value.control =
|
|
2568
|
-
|
|
2567
|
+
e.value.control = qe(
|
|
2568
|
+
de,
|
|
2569
2569
|
i == null ? void 0 : i.control,
|
|
2570
2570
|
(st = e.value) == null ? void 0 : st.control
|
|
2571
2571
|
);
|
|
2572
|
-
const ue = (t,
|
|
2573
|
-
const n = e.value.control[t], y =
|
|
2574
|
-
var
|
|
2575
|
-
if (!
|
|
2572
|
+
const ue = (t, r = !0) => {
|
|
2573
|
+
const n = e.value.control[t], y = r ? (F, A, z, se) => {
|
|
2574
|
+
var Le, ze, Je;
|
|
2575
|
+
if (!F || !A || z == null)
|
|
2576
2576
|
return console.warn(`merge${t.charAt(0).toUpperCase() + t.slice(1)}: 缺少必要的参数(row, column或index)`), {};
|
|
2577
|
-
const
|
|
2578
|
-
return
|
|
2579
|
-
} : (
|
|
2580
|
-
var
|
|
2581
|
-
const
|
|
2582
|
-
return
|
|
2577
|
+
const pe = ((Le = de[t]) == null ? void 0 : Le.call(de, F, A, z, se)) || {}, Se = ((Je = (ze = i == null ? void 0 : i.control) == null ? void 0 : ze[t]) == null ? void 0 : Je.call(ze, F, A, z, se)) || {}, ke = (n == null ? void 0 : n(F, A, z, se)) || {};
|
|
2578
|
+
return qe(pe, Se, ke) || {};
|
|
2579
|
+
} : (F) => {
|
|
2580
|
+
var pe, Se, ke;
|
|
2581
|
+
const A = ((pe = de[t]) == null ? void 0 : pe.call(de, F)) || {}, z = ((ke = (Se = i == null ? void 0 : i.control) == null ? void 0 : Se[t]) == null ? void 0 : ke.call(Se, F)) || {}, se = (n == null ? void 0 : n(F)) || {};
|
|
2582
|
+
return qe(A, z, se) || {};
|
|
2583
2583
|
};
|
|
2584
2584
|
e.value.control[t] = y;
|
|
2585
2585
|
};
|
|
2586
2586
|
ue("edit"), ue("delete"), ue("view"), ue("save"), ue("add", !1), ue("download", !1), ue("setting", !1);
|
|
2587
|
-
const
|
|
2588
|
-
var
|
|
2589
|
-
if (!t || !
|
|
2587
|
+
const ye = (t, r, n, y) => {
|
|
2588
|
+
var se, pe, Se, ke, Le, ze;
|
|
2589
|
+
if (!t || !r || n == null)
|
|
2590
2590
|
return console.warn("mergeDropdown: 缺少必要的参数(row, column或index)"), {};
|
|
2591
|
-
const
|
|
2592
|
-
return
|
|
2593
|
-
},
|
|
2591
|
+
const F = ((se = de.dropdown) == null ? void 0 : se.call(de, t, r, n, y)) || {}, A = ((Se = (pe = i == null ? void 0 : i.control) == null ? void 0 : pe.dropdown) == null ? void 0 : Se.call(pe, t, r, n, y)) || {}, z = ((ze = (Le = (ke = e.value) == null ? void 0 : ke.control) == null ? void 0 : Le.dropdown) == null ? void 0 : ze.call(Le, t, r, n, y)) || {};
|
|
2592
|
+
return qe(F, A, z) || {};
|
|
2593
|
+
}, Te = {
|
|
2594
2594
|
type: "hidden",
|
|
2595
2595
|
"min-width": 100,
|
|
2596
2596
|
align: "center",
|
|
2597
|
-
formatter: (t,
|
|
2598
|
-
"tooltip-formatter": ({ row: t, column:
|
|
2597
|
+
formatter: (t, r, n, y) => n,
|
|
2598
|
+
"tooltip-formatter": ({ row: t, column: r, cellValue: n }) => Ee(aa, { content: n, column: r })
|
|
2599
2599
|
};
|
|
2600
|
-
e.value.tableColumns =
|
|
2601
|
-
|
|
2600
|
+
e.value.tableColumns = qe(
|
|
2601
|
+
Te,
|
|
2602
2602
|
i == null ? void 0 : i.tableColumns,
|
|
2603
2603
|
(it = e.value) == null ? void 0 : it.tableColumns
|
|
2604
|
-
), e.value.form =
|
|
2604
|
+
), e.value.form = qe(
|
|
2605
2605
|
zt,
|
|
2606
2606
|
i == null ? void 0 : i.form,
|
|
2607
2607
|
(dt = e.value) == null ? void 0 : dt.form
|
|
@@ -2613,7 +2613,7 @@ const Gl = {
|
|
|
2613
2613
|
width: "100%"
|
|
2614
2614
|
}
|
|
2615
2615
|
};
|
|
2616
|
-
e.value.formItems =
|
|
2616
|
+
e.value.formItems = qe(
|
|
2617
2617
|
le,
|
|
2618
2618
|
i == null ? void 0 : i.formItems,
|
|
2619
2619
|
(ct = e == null ? void 0 : e.value) == null ? void 0 : ct.formItems
|
|
@@ -2631,43 +2631,43 @@ const Gl = {
|
|
|
2631
2631
|
overflow: !0,
|
|
2632
2632
|
max: {
|
|
2633
2633
|
style: {},
|
|
2634
|
-
icon: () =>
|
|
2634
|
+
icon: () => Ee(ml)
|
|
2635
2635
|
},
|
|
2636
2636
|
min: {
|
|
2637
2637
|
style: {},
|
|
2638
|
-
icon: () =>
|
|
2638
|
+
icon: () => Ee(pl)
|
|
2639
2639
|
// 最小化图标
|
|
2640
2640
|
}
|
|
2641
2641
|
};
|
|
2642
|
-
e.value.dialog =
|
|
2642
|
+
e.value.dialog = qe(
|
|
2643
2643
|
oe,
|
|
2644
2644
|
i == null ? void 0 : i.dialog,
|
|
2645
2645
|
(ft = e.value) == null ? void 0 : ft.dialog
|
|
2646
2646
|
);
|
|
2647
|
-
const ae = (t,
|
|
2648
|
-
let n =
|
|
2649
|
-
if (t.decimals && !isNaN(parseFloat(
|
|
2647
|
+
const ae = (t, r) => {
|
|
2648
|
+
let n = r;
|
|
2649
|
+
if (t.decimals && !isNaN(parseFloat(r)) && (typeof t.decimals == "number" ? n = parseFloat(n).toFixed(t.decimals) : typeof t.decimals == "object" && t.decimals.num && (t.decimals.pad ? n = parseFloat(n).toFixed(t.decimals.num) : n = parseFloat(
|
|
2650
2650
|
parseFloat(n).toFixed(t.decimals.num)
|
|
2651
|
-
).toString())), ["date", "datetime", "time", "time-select"].includes(t.type) && wt(
|
|
2652
|
-
const
|
|
2651
|
+
).toString())), ["date", "datetime", "time", "time-select"].includes(t.type) && wt(r).isValid()) {
|
|
2652
|
+
const F = {
|
|
2653
2653
|
date: "YYYY-MM-DD",
|
|
2654
2654
|
datetime: "YYYY-MM-DD HH:mm:ss",
|
|
2655
2655
|
time: "HH:mm:ss"
|
|
2656
2656
|
};
|
|
2657
|
-
n = t.format ? wt(n).format(t.format) : wt(n).format(
|
|
2657
|
+
n = t.format ? wt(n).format(t.format) : wt(n).format(F[t.type]);
|
|
2658
2658
|
}
|
|
2659
2659
|
return t.type === "money" && (t.align = t.align || "right", t.width = t.width || 130, n = `<span title="${Dt(
|
|
2660
2660
|
parseFloat(n)
|
|
2661
2661
|
)}">${Ta(parseFloat(n))}</span>`), t.prefix && n && (n = `<span>${t.prefix}${n}</span>`), t.suffix && n && (n = `${n}<span>${t.suffix}</span>`), n;
|
|
2662
2662
|
}, Ie = (t) => {
|
|
2663
|
-
M.value = Object.fromEntries(
|
|
2663
|
+
M.value = Object.fromEntries(_), e.value.table.load();
|
|
2664
2664
|
}, w = (t) => {
|
|
2665
2665
|
M.value = t, e.value.table.load();
|
|
2666
|
-
},
|
|
2667
|
-
var
|
|
2666
|
+
}, p = async (t) => {
|
|
2667
|
+
var r, n;
|
|
2668
2668
|
e.value.form.modalState = "add";
|
|
2669
2669
|
try {
|
|
2670
|
-
if (!await ((
|
|
2670
|
+
if (!await ((r = e.value.control) == null ? void 0 : r.validate("add", { m: t }))) return;
|
|
2671
2671
|
} catch (y) {
|
|
2672
2672
|
console.error("验证失败:", y);
|
|
2673
2673
|
return;
|
|
@@ -2675,81 +2675,81 @@ const Gl = {
|
|
|
2675
2675
|
(n = e.value.control.add(t)) != null && n.click ? e.value.control.add(t).click(t) : e.value.control.add(t).inline === !0 ? (e.value.table.data.unshift(N.value), l("open", "row-add", { initFormData: N.value })) : (e.value.form.disabled = !1, e.value.form.submit.hidden = !1, e.value.form.reset.hidden = !1, e.value.dialog.mode = e.value.control.add(t).mode, e.value.dialog.title = e.value.control.add(t).title || e.value.control.add(t).label || "新增", Object.keys(N.value).forEach((y) => {
|
|
2676
2676
|
e.value[y] && (e.value[y].value = N.value[y]);
|
|
2677
2677
|
}), k.value = !0, l("open", "add", { m: t }), ht());
|
|
2678
|
-
},
|
|
2679
|
-
var
|
|
2678
|
+
}, m = async (t, r, n, y) => {
|
|
2679
|
+
var F, A;
|
|
2680
2680
|
e.value.form.modalState = "edit";
|
|
2681
2681
|
try {
|
|
2682
|
-
if (!await ((
|
|
2683
|
-
} catch (
|
|
2684
|
-
console.error("验证失败:",
|
|
2682
|
+
if (!await ((F = e.value.control) == null ? void 0 : F.validate("edit", { row: t, column: r, index: n, m: y }))) return;
|
|
2683
|
+
} catch (z) {
|
|
2684
|
+
console.error("验证失败:", z);
|
|
2685
2685
|
return;
|
|
2686
2686
|
}
|
|
2687
|
-
(
|
|
2688
|
-
e.value[
|
|
2689
|
-
}), k.value = !0, l("open", "edit", { m: y, row: t, column:
|
|
2690
|
-
}, a = async (t,
|
|
2691
|
-
var
|
|
2687
|
+
(A = e.value.control.edit(t, r, n, y)) != null && A.click ? e.value.control.edit(t, r, n, y).click(t, r, n, y) : (e.value.form.disabled = !1, e.value.form.submit.hidden = !1, e.value.form.reset.hidden = !1, e.value.dialog.mode = e.value.control.edit(t, r, n, y).mode, e.value.dialog.title = e.value.control.edit(t, r, n, y).title || e.value.control.edit(t, r, n, y).label || "编辑", Object.keys(t).forEach((z) => {
|
|
2688
|
+
e.value[z] && (e.value[z].value = t[z]);
|
|
2689
|
+
}), k.value = !0, l("open", "edit", { m: y, row: t, column: r, index: n }), ht());
|
|
2690
|
+
}, a = async (t, r, n, y) => {
|
|
2691
|
+
var F, A;
|
|
2692
2692
|
try {
|
|
2693
|
-
if (!await ((
|
|
2694
|
-
} catch (
|
|
2695
|
-
console.error("验证失败:",
|
|
2693
|
+
if (!await ((F = e.value.control) == null ? void 0 : F.validate("delete", { row: t, column: r, index: n, m: y }))) return;
|
|
2694
|
+
} catch (z) {
|
|
2695
|
+
console.error("验证失败:", z);
|
|
2696
2696
|
return;
|
|
2697
2697
|
}
|
|
2698
|
-
if ((
|
|
2699
|
-
e.value.control.delete(t,
|
|
2698
|
+
if ((A = e.value.control.delete(t, r, n, y)) != null && A.click)
|
|
2699
|
+
e.value.control.delete(t, r, n, y).click(t, r, n, y);
|
|
2700
2700
|
else {
|
|
2701
|
-
let { message:
|
|
2702
|
-
Ft.confirm(
|
|
2701
|
+
let { message: z, title: se, options: pe } = e.value.control.delete(t, r, n, y).dialog;
|
|
2702
|
+
Ft.confirm(z, se, pe).then(() => {
|
|
2703
2703
|
l(
|
|
2704
2704
|
"delete",
|
|
2705
|
-
{ row: t, column:
|
|
2706
|
-
(
|
|
2707
|
-
|
|
2705
|
+
{ row: t, column: r, index: n, m: y },
|
|
2706
|
+
(Se = !0, ke = !1) => {
|
|
2707
|
+
Se && (e.value.table.data.splice(n, 1), e.value.table.page.total--), ke && e.value.table.load();
|
|
2708
2708
|
}
|
|
2709
2709
|
);
|
|
2710
2710
|
}).catch(() => {
|
|
2711
2711
|
});
|
|
2712
2712
|
}
|
|
2713
|
-
}, D = async (t,
|
|
2714
|
-
var
|
|
2713
|
+
}, D = async (t, r, n, y) => {
|
|
2714
|
+
var F, A;
|
|
2715
2715
|
e.value.form.modalState = void 0;
|
|
2716
2716
|
try {
|
|
2717
|
-
if (!await ((
|
|
2718
|
-
} catch (
|
|
2719
|
-
console.error("验证失败:",
|
|
2717
|
+
if (!await ((F = e.value.control) == null ? void 0 : F.validate("view", { row: t, column: r, index: n, m: y }))) return;
|
|
2718
|
+
} catch (z) {
|
|
2719
|
+
console.error("验证失败:", z);
|
|
2720
2720
|
return;
|
|
2721
2721
|
}
|
|
2722
|
-
(
|
|
2723
|
-
e.value[
|
|
2724
|
-
}), k.value = !0, l("open", "view", { m: y, row: t, column:
|
|
2725
|
-
}, g = (t,
|
|
2726
|
-
var
|
|
2727
|
-
(
|
|
2722
|
+
(A = e.value.control.view(t, r, n, y)) != null && A.click ? e.value.control.view(t, r, n, y).click(t, r, n, y) : (e.value.form.disabled = !0, e.value.form.submit.hidden = !0, e.value.form.reset.hidden = !0, e.value.dialog.mode = e.value.control.view(t, r, n, y).mode, e.value.dialog.title = e.value.control.view(t, r, n, y).title || e.value.control.view(t, r, n, y).label || "查看", Object.keys(t).forEach((z) => {
|
|
2723
|
+
e.value[z] && (e.value[z].value = t[z]);
|
|
2724
|
+
}), k.value = !0, l("open", "view", { m: y, row: t, column: r, index: n }), ht());
|
|
2725
|
+
}, g = (t, r, n, y) => {
|
|
2726
|
+
var F;
|
|
2727
|
+
(F = e.value.control.save(t, r, n, y)) != null && F.click ? e.value.control.save(t, r, n, y).click(t, r, n, y) : l(
|
|
2728
2728
|
"row-save",
|
|
2729
|
-
{ row: t, column:
|
|
2730
|
-
(
|
|
2731
|
-
|
|
2729
|
+
{ row: t, column: r, index: n, data: e.value.table.data },
|
|
2730
|
+
(A = !0, z = !0) => {
|
|
2731
|
+
A && e.value.table.load(), z && lt(() => {
|
|
2732
2732
|
N.value = Object.assign(
|
|
2733
2733
|
{},
|
|
2734
2734
|
Object.fromEntries(
|
|
2735
2735
|
Object.entries(
|
|
2736
|
-
|
|
2737
|
-
).map(([
|
|
2736
|
+
Ye(e.value, (se, pe) => pe.type != "control" && pe.editor !== !1 && pe.type != "hidden")
|
|
2737
|
+
).map(([se, pe]) => [se, pe.value])
|
|
2738
2738
|
)
|
|
2739
2739
|
);
|
|
2740
2740
|
});
|
|
2741
2741
|
}
|
|
2742
2742
|
);
|
|
2743
|
-
}, h = (t,
|
|
2744
|
-
l("submit", e.value.form.modalState, t,
|
|
2745
|
-
n && (k.value = !1,
|
|
2743
|
+
}, h = (t, r) => {
|
|
2744
|
+
l("submit", e.value.form.modalState, t, r, (n) => {
|
|
2745
|
+
n && (k.value = !1, r.table.load());
|
|
2746
2746
|
});
|
|
2747
2747
|
}, O = (t) => {
|
|
2748
2748
|
l("reset", t);
|
|
2749
|
-
}, P = (t,
|
|
2749
|
+
}, P = (t, r) => {
|
|
2750
2750
|
var n;
|
|
2751
2751
|
if ((n = t.control.download(t)) != null && n.click)
|
|
2752
|
-
t.control.download(t).click(t,
|
|
2752
|
+
t.control.download(t).click(t, r);
|
|
2753
2753
|
else {
|
|
2754
2754
|
let y = Ct(
|
|
2755
2755
|
{
|
|
@@ -2757,11 +2757,11 @@ const Gl = {
|
|
|
2757
2757
|
size: t.control.download(t).size || 480,
|
|
2758
2758
|
width: t.control.download(t).width || 600,
|
|
2759
2759
|
slots: {
|
|
2760
|
-
default: () =>
|
|
2761
|
-
items:
|
|
2760
|
+
default: () => Ee(Hl, {
|
|
2761
|
+
items: r,
|
|
2762
2762
|
commitText: t.control.download(t).excelLabel,
|
|
2763
|
-
onExcel: (
|
|
2764
|
-
l("download",
|
|
2763
|
+
onExcel: (F, A) => {
|
|
2764
|
+
l("download", F, M.value, A), y();
|
|
2765
2765
|
}
|
|
2766
2766
|
})
|
|
2767
2767
|
}
|
|
@@ -2770,90 +2770,90 @@ const Gl = {
|
|
|
2770
2770
|
);
|
|
2771
2771
|
}
|
|
2772
2772
|
}, J = (t) => {
|
|
2773
|
-
var
|
|
2774
|
-
(
|
|
2773
|
+
var r;
|
|
2774
|
+
(r = t.control.setting(t)) != null && r.click ? t.control.setting(t).click(t) : Ct(
|
|
2775
2775
|
{
|
|
2776
2776
|
title: t.control.setting(t).title || t.control.setting(t).label || "设置",
|
|
2777
2777
|
size: t.control.setting(t).size || 470,
|
|
2778
2778
|
width: t.control.setting(t).width || 600,
|
|
2779
2779
|
slots: {
|
|
2780
|
-
default: () =>
|
|
2780
|
+
default: () => Ee(Kl, {
|
|
2781
2781
|
modelValue: t,
|
|
2782
|
-
tuid:
|
|
2782
|
+
tuid: ce.value
|
|
2783
2783
|
})
|
|
2784
2784
|
}
|
|
2785
2785
|
},
|
|
2786
2786
|
t.control.setting(t).mode
|
|
2787
2787
|
);
|
|
2788
2788
|
}, Z = e.value.control, v = [
|
|
2789
|
-
{ type: "add", func:
|
|
2789
|
+
{ type: "add", func: p },
|
|
2790
2790
|
{ type: "download", func: P },
|
|
2791
2791
|
{ type: "setting", func: J },
|
|
2792
2792
|
{ type: "view", func: D },
|
|
2793
|
-
{ type: "edit", func:
|
|
2793
|
+
{ type: "edit", func: m },
|
|
2794
2794
|
{ type: "delete", func: a },
|
|
2795
2795
|
{ type: "save", func: g }
|
|
2796
|
-
], c = (t,
|
|
2797
|
-
var
|
|
2796
|
+
], c = (t, r, n, y, F) => v.filter((A) => t.includes(A.type)).map(({ type: A, func: z }) => {
|
|
2797
|
+
var se, pe, Se;
|
|
2798
2798
|
return {
|
|
2799
|
-
name: `control-${
|
|
2800
|
-
attr: Z == null ? void 0 : Z[
|
|
2801
|
-
func:
|
|
2802
|
-
label: (
|
|
2803
|
-
sort: ((
|
|
2804
|
-
groupName: ((
|
|
2799
|
+
name: `control-${A}`,
|
|
2800
|
+
attr: Z == null ? void 0 : Z[A](r, n, y, F),
|
|
2801
|
+
func: z,
|
|
2802
|
+
label: (se = Z == null ? void 0 : Z[A](r, n, y, F)) == null ? void 0 : se.label,
|
|
2803
|
+
sort: ((pe = Z == null ? void 0 : Z[A](r, n, y, F)) == null ? void 0 : pe.sort) || 0,
|
|
2804
|
+
groupName: ((Se = Z == null ? void 0 : Z[A](r, n, y, F)) == null ? void 0 : Se.groupName) || "default"
|
|
2805
2805
|
};
|
|
2806
|
-
}).sort((
|
|
2807
|
-
const
|
|
2808
|
-
return
|
|
2809
|
-
}, {}),
|
|
2806
|
+
}).sort((A, z) => A.sort - z.sort), K = (t, r, n, y, F) => c(t, r, n, y, F).reduce((A, z) => {
|
|
2807
|
+
const se = z.groupName || "default";
|
|
2808
|
+
return A[se] || (A[se] = []), A[se].push(z), A;
|
|
2809
|
+
}, {}), be = Ke(
|
|
2810
2810
|
() => Object.fromEntries(
|
|
2811
|
-
Object.entries(e.value).filter(([t,
|
|
2811
|
+
Object.entries(e.value).filter(([t, r]) => r.type !== "hidden").filter(([t, r]) => r.hidden !== !0).filter(([t, r]) => r.visible !== !1).filter(([t, r]) => r.showCol !== !1).map(([t, r]) => (r.sort = typeof r.sort == "number" ? r.sort : 0, [t, r])).sort((t, r) => t[1].sort - r[1].sort)
|
|
2812
2812
|
)
|
|
2813
|
-
),
|
|
2814
|
-
const n = (y,
|
|
2815
|
-
for (const
|
|
2816
|
-
if (
|
|
2817
|
-
if (
|
|
2818
|
-
const
|
|
2819
|
-
if (
|
|
2813
|
+
), ve = re({}), $e = (t, r) => {
|
|
2814
|
+
const n = (y, F) => {
|
|
2815
|
+
for (const A of y) {
|
|
2816
|
+
if (A.value == F) return A.label;
|
|
2817
|
+
if (A.children) {
|
|
2818
|
+
const z = n(A.children, F);
|
|
2819
|
+
if (z) return z;
|
|
2820
2820
|
}
|
|
2821
2821
|
}
|
|
2822
2822
|
return null;
|
|
2823
2823
|
};
|
|
2824
2824
|
if (t.getDicts) {
|
|
2825
|
-
const y =
|
|
2826
|
-
return
|
|
2827
|
-
|
|
2825
|
+
const y = r.toString();
|
|
2826
|
+
return ve.value[y] ? (t.options = ve.value[y], t.formatter || (t.formatter = (F, A, z, se) => t.options && n(t.options, z) || z), Promise.resolve()) : t.getDicts(e.value.table.data).then((F) => {
|
|
2827
|
+
ve.value[y] = F, t.options = F, t.formatter || (t.formatter = (A, z, se, pe) => t.options && n(t.options, se) || se);
|
|
2828
2828
|
});
|
|
2829
2829
|
}
|
|
2830
2830
|
return Promise.resolve();
|
|
2831
|
-
},
|
|
2831
|
+
}, we = () => {
|
|
2832
2832
|
const t = [];
|
|
2833
|
-
Object.keys(e.value).forEach((
|
|
2834
|
-
if (e.value[
|
|
2835
|
-
const n =
|
|
2833
|
+
Object.keys(e.value).forEach((r) => {
|
|
2834
|
+
if (e.value[r].getDicts) {
|
|
2835
|
+
const n = $e(e.value[r], r).then(() => {
|
|
2836
2836
|
e.value.table.data.forEach((y) => {
|
|
2837
|
-
var
|
|
2838
|
-
if (e.value[
|
|
2839
|
-
const
|
|
2840
|
-
y[
|
|
2837
|
+
var F;
|
|
2838
|
+
if (e.value[r].getDicts && ((F = e.value[r]) == null ? void 0 : F.forceString) !== !1) {
|
|
2839
|
+
const A = y[r];
|
|
2840
|
+
y[r] = A != null ? A.toString() : A;
|
|
2841
2841
|
}
|
|
2842
2842
|
});
|
|
2843
2843
|
}).catch((y) => {
|
|
2844
|
-
console.error(`加载字典${
|
|
2844
|
+
console.error(`加载字典${r}出错:`, y);
|
|
2845
2845
|
});
|
|
2846
2846
|
t.push(n);
|
|
2847
2847
|
}
|
|
2848
|
-
}), Promise.all(t).catch((
|
|
2849
|
-
console.error("字典加载过程中发生错误:",
|
|
2848
|
+
}), Promise.all(t).catch((r) => {
|
|
2849
|
+
console.error("字典加载过程中发生错误:", r);
|
|
2850
2850
|
});
|
|
2851
|
-
},
|
|
2852
|
-
var
|
|
2853
|
-
return t.table ? (
|
|
2854
|
-
},
|
|
2851
|
+
}, _e = (t, r, n, y) => {
|
|
2852
|
+
var F, A;
|
|
2853
|
+
return t.table ? (F = t.table(r, n, y)) != null && F.auth ? (A = t.table(r, n, y)) == null ? void 0 : A.auth(r, n, y) : !0 : !1;
|
|
2854
|
+
}, xe = () => {
|
|
2855
2855
|
if (e.value.dialog.mode == "drawer")
|
|
2856
|
-
|
|
2856
|
+
V.value.handleClose();
|
|
2857
2857
|
else if (e.value.dialog.mode == "dialog")
|
|
2858
2858
|
try {
|
|
2859
2859
|
Y.value.handleClose();
|
|
@@ -2866,124 +2866,133 @@ const Gl = {
|
|
|
2866
2866
|
Kt(() => {
|
|
2867
2867
|
e.value.table.autoWatch && e.value.table.load();
|
|
2868
2868
|
});
|
|
2869
|
-
const
|
|
2870
|
-
const t = await Pl(
|
|
2871
|
-
t && Array.isArray(t) && t.forEach((
|
|
2872
|
-
const n = e.value[
|
|
2873
|
-
n && (n.width =
|
|
2869
|
+
const Fe = async () => {
|
|
2870
|
+
const t = await Pl(ce.value);
|
|
2871
|
+
t && Array.isArray(t) && t.forEach((r) => {
|
|
2872
|
+
const n = e.value[r.key];
|
|
2873
|
+
n && (n.width = r.width, n.showCol = r.showCol, n.sort = r.sort);
|
|
2874
2874
|
});
|
|
2875
2875
|
}, Ue = () => {
|
|
2876
|
-
var
|
|
2876
|
+
var z, se, pe, Se;
|
|
2877
2877
|
const t = tl();
|
|
2878
2878
|
if (!t)
|
|
2879
2879
|
return console.warn("无法获取组件实例"), "";
|
|
2880
|
-
let
|
|
2881
|
-
|
|
2882
|
-
const n = (
|
|
2883
|
-
if (
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2880
|
+
let r = t.parent;
|
|
2881
|
+
r && ((z = r.type) == null ? void 0 : z.name) === "g-tree-table" && (r = r.parent);
|
|
2882
|
+
const n = (se = r.type) == null ? void 0 : se.__file;
|
|
2883
|
+
if (n)
|
|
2884
|
+
try {
|
|
2885
|
+
const ke = n.toLowerCase().indexOf("src");
|
|
2886
|
+
return ke === -1 ? n.replace(/\//g, "_").replace(".vue", "") : n.substring(ke + 3).replace(/\//g, "_").replace(".vue", "");
|
|
2887
|
+
} catch (ke) {
|
|
2888
|
+
console.error("处理文件路径时出错:", ke);
|
|
2889
|
+
}
|
|
2890
|
+
const y = ((pe = r == null ? void 0 : r.type) == null ? void 0 : pe.name) || ((Se = r == null ? void 0 : r.type) == null ? void 0 : Se.__name);
|
|
2891
|
+
if (y)
|
|
2892
|
+
return y.toLowerCase().replace(/\s+/g, "_");
|
|
2893
|
+
if (typeof window < "u" && window.location) {
|
|
2894
|
+
const ke = window.location.pathname;
|
|
2895
|
+
if (ke && ke !== "/")
|
|
2896
|
+
return ke.replace(/\//g, "_").replace(/^_|_$/g, "");
|
|
2890
2897
|
}
|
|
2898
|
+
const F = Date.now().toString(36), A = Math.random().toString(36).substring(2, 8);
|
|
2899
|
+
return `table_${F}_${A}`;
|
|
2891
2900
|
};
|
|
2892
2901
|
return el(() => {
|
|
2893
|
-
|
|
2902
|
+
ce.value = Ue() + (ie.suffix || "");
|
|
2894
2903
|
}), ot(async () => {
|
|
2895
2904
|
te.value = Object.entries(e.value).filter(
|
|
2896
|
-
([t,
|
|
2897
|
-
).map(([t,
|
|
2905
|
+
([t, r]) => r.type !== "hidden" && r.type !== "control" && r.visible !== !1
|
|
2906
|
+
).map(([t, r]) => ({
|
|
2898
2907
|
key: t || "",
|
|
2899
|
-
label:
|
|
2908
|
+
label: r.label,
|
|
2900
2909
|
value: !0
|
|
2901
2910
|
}));
|
|
2902
2911
|
try {
|
|
2903
2912
|
await lt();
|
|
2904
2913
|
const t = Object.entries(e.value).filter(
|
|
2905
|
-
([
|
|
2914
|
+
([r, n]) => n.type !== "control" && n.editor !== !1 && n.type !== "hidden"
|
|
2906
2915
|
);
|
|
2907
2916
|
N.value = Object.fromEntries(
|
|
2908
|
-
t.map(([
|
|
2909
|
-
), await
|
|
2917
|
+
t.map(([r, n]) => [r, n.value])
|
|
2918
|
+
), await Fe();
|
|
2910
2919
|
} catch (t) {
|
|
2911
2920
|
console.error("Error during component initialization:", t);
|
|
2912
2921
|
}
|
|
2913
2922
|
e.value.table.autoWatch || e.value.table.load();
|
|
2914
|
-
}), s({ addRow:
|
|
2915
|
-
var
|
|
2916
|
-
const n =
|
|
2923
|
+
}), s({ addRow: p, editRow: m, deleteRow: a, readForm: D, saveRowData: g, closeDialog: xe }), (t, r) => {
|
|
2924
|
+
var ze, Je, tt, at, rt;
|
|
2925
|
+
const n = I("el-icon"), y = I("el-dialog"), F = I("el-drawer"), A = I("el-button-group"), z = I("el-dropdown-item"), se = I("el-dropdown-menu"), pe = I("el-dropdown"), Se = I("el-table-column"), ke = I("el-table"), Le = I("el-pagination");
|
|
2917
2926
|
return u(), q(X, null, [
|
|
2918
2927
|
e.value.dialog.mode == "dialog" && k.value ? (u(), q("div", ra, [
|
|
2919
|
-
G(y,
|
|
2928
|
+
G(y, x(
|
|
2920
2929
|
{
|
|
2921
2930
|
ref_key: "dialogRef",
|
|
2922
2931
|
ref: Y,
|
|
2923
2932
|
id: "dialogRef",
|
|
2924
2933
|
modelValue: k.value,
|
|
2925
|
-
"onUpdate:modelValue":
|
|
2934
|
+
"onUpdate:modelValue": r[3] || (r[3] = (B) => k.value = B),
|
|
2926
2935
|
fullscreen: e.value.dialog.fullScreen
|
|
2927
2936
|
},
|
|
2928
|
-
U(
|
|
2937
|
+
U(Ye)(e.value.dialog, (B) => !["size", "max", "min"].includes(B)),
|
|
2929
2938
|
{
|
|
2930
2939
|
width: U(jt)(e.value.dialog.width) + 35
|
|
2931
2940
|
}
|
|
2932
2941
|
), {
|
|
2933
2942
|
header: b(() => {
|
|
2934
|
-
var B, ne,
|
|
2943
|
+
var B, ne, E, j, ee, Pe, Ne, Re, d, W;
|
|
2935
2944
|
return [
|
|
2936
2945
|
H("div", oa, [
|
|
2937
2946
|
H("div", ua, [
|
|
2938
2947
|
$(t.$slots, "f-header", {}, () => [
|
|
2939
|
-
H("div", null,
|
|
2948
|
+
H("div", null, Ce(e.value.dialog.title), 1)
|
|
2940
2949
|
], !0)
|
|
2941
2950
|
]),
|
|
2942
2951
|
((ne = (B = e.value) == null ? void 0 : B.dialog) == null ? void 0 : ne.fullScreen) === !1 ? (u(), q("div", {
|
|
2943
2952
|
key: 0,
|
|
2944
|
-
style:
|
|
2945
|
-
onClick:
|
|
2953
|
+
style: Oe((ee = (j = (E = e.value) == null ? void 0 : E.dialog) == null ? void 0 : j.max) == null ? void 0 : ee.style),
|
|
2954
|
+
onClick: r[0] || (r[0] = (C) => e.value.dialog.fullScreen = !0),
|
|
2946
2955
|
class: "max"
|
|
2947
2956
|
}, [
|
|
2948
2957
|
G(n, null, {
|
|
2949
2958
|
default: b(() => {
|
|
2950
|
-
var C,
|
|
2959
|
+
var C, Ve, je;
|
|
2951
2960
|
return [
|
|
2952
|
-
(u(),
|
|
2961
|
+
(u(), S(We((je = (Ve = (C = e.value) == null ? void 0 : C.dialog) == null ? void 0 : Ve.max) == null ? void 0 : je.icon)))
|
|
2953
2962
|
];
|
|
2954
2963
|
}),
|
|
2955
2964
|
_: 1
|
|
2956
2965
|
})
|
|
2957
|
-
], 4)) :
|
|
2966
|
+
], 4)) : ge("", !0),
|
|
2958
2967
|
((Ne = (Pe = e.value) == null ? void 0 : Pe.dialog) == null ? void 0 : Ne.fullScreen) === !0 ? (u(), q("div", {
|
|
2959
2968
|
key: 1,
|
|
2960
|
-
style:
|
|
2961
|
-
onClick:
|
|
2969
|
+
style: Oe((W = (d = (Re = e.value) == null ? void 0 : Re.dialog) == null ? void 0 : d.min) == null ? void 0 : W.style),
|
|
2970
|
+
onClick: r[1] || (r[1] = (C) => e.value.dialog.fullScreen = !1),
|
|
2962
2971
|
class: "max"
|
|
2963
2972
|
}, [
|
|
2964
2973
|
G(n, null, {
|
|
2965
2974
|
default: b(() => {
|
|
2966
|
-
var C,
|
|
2975
|
+
var C, Ve, je;
|
|
2967
2976
|
return [
|
|
2968
|
-
(u(),
|
|
2977
|
+
(u(), S(We((je = (Ve = (C = e.value) == null ? void 0 : C.dialog) == null ? void 0 : Ve.min) == null ? void 0 : je.icon)))
|
|
2969
2978
|
];
|
|
2970
2979
|
}),
|
|
2971
2980
|
_: 1
|
|
2972
2981
|
})
|
|
2973
|
-
], 4)) :
|
|
2982
|
+
], 4)) : ge("", !0)
|
|
2974
2983
|
])
|
|
2975
2984
|
];
|
|
2976
2985
|
}),
|
|
2977
2986
|
default: b(() => [
|
|
2978
2987
|
H("div", na, [
|
|
2979
2988
|
$(t.$slots, "table-dialog-form", { model: e.value }, () => [
|
|
2980
|
-
G(
|
|
2989
|
+
G(Et, {
|
|
2981
2990
|
modelValue: e.value,
|
|
2982
|
-
"onUpdate:modelValue":
|
|
2991
|
+
"onUpdate:modelValue": r[2] || (r[2] = (B) => e.value = B),
|
|
2983
2992
|
onSubmit: h,
|
|
2984
2993
|
onReset: O
|
|
2985
|
-
},
|
|
2986
|
-
|
|
2994
|
+
}, he({ _: 2 }, [
|
|
2995
|
+
R(t.$slots, (B, ne, E) => ({
|
|
2987
2996
|
name: ne,
|
|
2988
2997
|
fn: b((j) => [
|
|
2989
2998
|
$(t.$slots, ne, { model: j }, void 0, !0)
|
|
@@ -2995,32 +3004,32 @@ const Gl = {
|
|
|
2995
3004
|
]),
|
|
2996
3005
|
_: 3
|
|
2997
3006
|
}, 16, ["modelValue", "fullscreen", "width"])
|
|
2998
|
-
])) :
|
|
3007
|
+
])) : ge("", !0),
|
|
2999
3008
|
e.value.dialog.mode == "drawer" && k.value ? (u(), q("div", sa, [
|
|
3000
|
-
G(
|
|
3009
|
+
G(F, x({
|
|
3001
3010
|
ref_key: "drawerRef",
|
|
3002
|
-
ref:
|
|
3011
|
+
ref: V,
|
|
3003
3012
|
modelValue: k.value,
|
|
3004
|
-
"onUpdate:modelValue":
|
|
3005
|
-
}, U(
|
|
3013
|
+
"onUpdate:modelValue": r[5] || (r[5] = (B) => k.value = B)
|
|
3014
|
+
}, U(Ye)(e.value.dialog, (B) => !["width"].includes(B))), {
|
|
3006
3015
|
header: b(() => [
|
|
3007
3016
|
H("div", ia, [
|
|
3008
3017
|
H("div", da, [
|
|
3009
3018
|
$(t.$slots, "f-header", {}, () => [
|
|
3010
|
-
H("div", null,
|
|
3019
|
+
H("div", null, Ce(e.value.dialog.title), 1)
|
|
3011
3020
|
], !0)
|
|
3012
3021
|
])
|
|
3013
3022
|
])
|
|
3014
3023
|
]),
|
|
3015
3024
|
default: b(() => [
|
|
3016
3025
|
$(t.$slots, "table-drawer-form", { model: e.value }, () => [
|
|
3017
|
-
G(
|
|
3026
|
+
G(Et, {
|
|
3018
3027
|
modelValue: e.value,
|
|
3019
|
-
"onUpdate:modelValue":
|
|
3028
|
+
"onUpdate:modelValue": r[4] || (r[4] = (B) => e.value = B),
|
|
3020
3029
|
onSubmit: h,
|
|
3021
3030
|
onReset: O
|
|
3022
|
-
},
|
|
3023
|
-
|
|
3031
|
+
}, he({ _: 2 }, [
|
|
3032
|
+
R(t.$slots, (B, ne, E) => ({
|
|
3024
3033
|
name: ne,
|
|
3025
3034
|
fn: b((j) => [
|
|
3026
3035
|
$(t.$slots, ne, { model: j }, void 0, !0)
|
|
@@ -3031,69 +3040,69 @@ const Gl = {
|
|
|
3031
3040
|
]),
|
|
3032
3041
|
_: 3
|
|
3033
3042
|
}, 16, ["modelValue"])
|
|
3034
|
-
])) :
|
|
3043
|
+
])) : ge("", !0),
|
|
3035
3044
|
H("div", ca, [
|
|
3036
|
-
((Je = (
|
|
3045
|
+
((Je = (ze = e.value) == null ? void 0 : ze.query) == null ? void 0 : Je.hidden) != !0 ? (u(), q("div", fa, [
|
|
3037
3046
|
$(t.$slots, "query", {}, () => [
|
|
3038
|
-
G(
|
|
3047
|
+
G(Il, {
|
|
3039
3048
|
modelValue: e.value,
|
|
3040
|
-
"onUpdate:modelValue":
|
|
3049
|
+
"onUpdate:modelValue": r[6] || (r[6] = (B) => e.value = B),
|
|
3041
3050
|
info: M.value,
|
|
3042
|
-
"onUpdate:info":
|
|
3051
|
+
"onUpdate:info": r[7] || (r[7] = (B) => M.value = B),
|
|
3043
3052
|
onQuery: w,
|
|
3044
3053
|
onReset: Ie
|
|
3045
|
-
},
|
|
3054
|
+
}, he({
|
|
3046
3055
|
"q-btns": b(() => [
|
|
3047
3056
|
$(t.$slots, "q-btns", {}, () => [
|
|
3048
|
-
(u(!0), q(X, null,
|
|
3049
|
-
ne == "default" ? (u(!0), q(X, { key: 0 },
|
|
3050
|
-
$(t.$slots,
|
|
3051
|
-
(
|
|
3052
|
-
|
|
3057
|
+
(u(!0), q(X, null, R(K(["add", "download", "setting"], e.value), (B, ne) => (u(), q(X, null, [
|
|
3058
|
+
ne == "default" ? (u(!0), q(X, { key: 0 }, R(B, (E) => (u(), q(X, null, [
|
|
3059
|
+
$(t.$slots, E.name + "-left", {}, void 0, !0),
|
|
3060
|
+
(E.name === "control-add" ? E.attr.auth() && E.attr.inline === !1 : E.attr.auth()) ? $(t.$slots, E.name, { key: 0 }, () => [
|
|
3061
|
+
E.label ? (u(), S(U(Ae), x({
|
|
3053
3062
|
key: 0,
|
|
3054
|
-
title:
|
|
3063
|
+
title: E.label,
|
|
3055
3064
|
ref_for: !0
|
|
3056
|
-
},
|
|
3057
|
-
onClick: (j) =>
|
|
3065
|
+
}, E.attr, {
|
|
3066
|
+
onClick: (j) => E.func(e.value, te.value)
|
|
3058
3067
|
}), {
|
|
3059
3068
|
default: b(() => [
|
|
3060
|
-
|
|
3069
|
+
Be(Ce(E.label), 1)
|
|
3061
3070
|
]),
|
|
3062
3071
|
_: 2
|
|
3063
|
-
}, 1040, ["title", "onClick"])) : (u(),
|
|
3072
|
+
}, 1040, ["title", "onClick"])) : (u(), S(U(Ae), x({
|
|
3064
3073
|
key: 1,
|
|
3065
|
-
title:
|
|
3074
|
+
title: E.label,
|
|
3066
3075
|
ref_for: !0
|
|
3067
|
-
},
|
|
3068
|
-
onClick: (j) =>
|
|
3076
|
+
}, E.attr, {
|
|
3077
|
+
onClick: (j) => E.func(e.value, te.value)
|
|
3069
3078
|
}), null, 16, ["title", "onClick"]))
|
|
3070
|
-
], !0) :
|
|
3071
|
-
$(t.$slots,
|
|
3072
|
-
], 64))), 256)) : (u(),
|
|
3079
|
+
], !0) : ge("", !0),
|
|
3080
|
+
$(t.$slots, E.name + "-right", {}, void 0, !0)
|
|
3081
|
+
], 64))), 256)) : (u(), S(A, { key: 1 }, {
|
|
3073
3082
|
default: b(() => [
|
|
3074
|
-
(u(!0), q(X, null,
|
|
3075
|
-
$(t.$slots,
|
|
3076
|
-
(
|
|
3077
|
-
|
|
3083
|
+
(u(!0), q(X, null, R(B, (E) => (u(), q(X, null, [
|
|
3084
|
+
$(t.$slots, E.name + "-left", {}, void 0, !0),
|
|
3085
|
+
(E.name === "control-add" ? E.attr.auth() && E.attr.inline === !1 : E.attr.auth()) ? $(t.$slots, E.name, { key: 0 }, () => [
|
|
3086
|
+
E.label ? (u(), S(U(Ae), x({
|
|
3078
3087
|
key: 0,
|
|
3079
|
-
title:
|
|
3088
|
+
title: E.label,
|
|
3080
3089
|
ref_for: !0
|
|
3081
|
-
},
|
|
3082
|
-
onClick: (j) =>
|
|
3090
|
+
}, E.attr, {
|
|
3091
|
+
onClick: (j) => E.func(e.value, te.value)
|
|
3083
3092
|
}), {
|
|
3084
3093
|
default: b(() => [
|
|
3085
|
-
|
|
3094
|
+
Be(Ce(E.label), 1)
|
|
3086
3095
|
]),
|
|
3087
3096
|
_: 2
|
|
3088
|
-
}, 1040, ["title", "onClick"])) : (u(),
|
|
3097
|
+
}, 1040, ["title", "onClick"])) : (u(), S(U(Ae), x({
|
|
3089
3098
|
key: 1,
|
|
3090
|
-
title:
|
|
3099
|
+
title: E.label,
|
|
3091
3100
|
ref_for: !0
|
|
3092
|
-
},
|
|
3093
|
-
onClick: (j) =>
|
|
3101
|
+
}, E.attr, {
|
|
3102
|
+
onClick: (j) => E.func(e.value, te.value)
|
|
3094
3103
|
}), null, 16, ["title", "onClick"]))
|
|
3095
|
-
], !0) :
|
|
3096
|
-
$(t.$slots,
|
|
3104
|
+
], !0) : ge("", !0),
|
|
3105
|
+
$(t.$slots, E.name + "-right", {}, void 0, !0)
|
|
3097
3106
|
], 64))), 256))
|
|
3098
3107
|
]),
|
|
3099
3108
|
_: 2
|
|
@@ -3103,7 +3112,7 @@ const Gl = {
|
|
|
3103
3112
|
]),
|
|
3104
3113
|
_: 2
|
|
3105
3114
|
}, [
|
|
3106
|
-
|
|
3115
|
+
R(t.$slots, (B, ne, E) => ({
|
|
3107
3116
|
name: ne,
|
|
3108
3117
|
fn: b((j) => [
|
|
3109
3118
|
$(t.$slots, ne, { model: e.value }, void 0, !0)
|
|
@@ -3111,19 +3120,19 @@ const Gl = {
|
|
|
3111
3120
|
}))
|
|
3112
3121
|
]), 1032, ["modelValue", "info"])
|
|
3113
3122
|
], !0)
|
|
3114
|
-
])) :
|
|
3115
|
-
H("div",
|
|
3116
|
-
G(
|
|
3123
|
+
])) : ge("", !0),
|
|
3124
|
+
H("div", ma, [
|
|
3125
|
+
G(ke, x({
|
|
3117
3126
|
...t.$attrs,
|
|
3118
|
-
...U(
|
|
3127
|
+
...U(Ye)(
|
|
3119
3128
|
e.value.table,
|
|
3120
3129
|
(B) => !["dblclickType", "page"].includes(B)
|
|
3121
3130
|
)
|
|
3122
3131
|
}, {
|
|
3123
3132
|
"summary-method": (B) => e.value.table["summary-method"](B, { fields: fe.value, sums: Q.value }),
|
|
3124
|
-
onSortChange:
|
|
3125
|
-
var ne,
|
|
3126
|
-
e.value.table.onSortChange(B, M.value), ((ne = B == null ? void 0 : B.column) == null ? void 0 : ne.sortable) === "custom" && ((
|
|
3133
|
+
onSortChange: r[8] || (r[8] = (B) => {
|
|
3134
|
+
var ne, E;
|
|
3135
|
+
e.value.table.onSortChange(B, M.value), ((ne = B == null ? void 0 : B.column) == null ? void 0 : ne.sortable) === "custom" && ((E = e.value.table) == null || E.load());
|
|
3127
3136
|
})
|
|
3128
3137
|
}), {
|
|
3129
3138
|
append: b(() => [
|
|
@@ -3134,37 +3143,37 @@ const Gl = {
|
|
|
3134
3143
|
]),
|
|
3135
3144
|
default: b(() => [
|
|
3136
3145
|
$(t.$slots, "default", {}, () => [
|
|
3137
|
-
(u(!0), q(X, null,
|
|
3146
|
+
(u(!0), q(X, null, R(be.value, (B, ne) => (u(), S(Se, x({
|
|
3138
3147
|
prop: ne,
|
|
3139
3148
|
key: ne,
|
|
3140
3149
|
ref_for: !0
|
|
3141
3150
|
}, {
|
|
3142
3151
|
...e.value.tableColumns,
|
|
3143
|
-
...U(
|
|
3144
|
-
}),
|
|
3145
|
-
header: b(({ column:
|
|
3152
|
+
...U(Ye)(B, (E) => L.includes(E))
|
|
3153
|
+
}), he({
|
|
3154
|
+
header: b(({ column: E, $index: j }) => [
|
|
3146
3155
|
ne == "control" ? $(t.$slots, `${ne}-header`, {
|
|
3147
3156
|
key: 0,
|
|
3148
|
-
column:
|
|
3157
|
+
column: E,
|
|
3149
3158
|
index: j
|
|
3150
3159
|
}, () => [
|
|
3151
|
-
H("span", null,
|
|
3160
|
+
H("span", null, Ce(E.label), 1)
|
|
3152
3161
|
], !0) : $(t.$slots, `${ne}-header`, {
|
|
3153
3162
|
key: 1,
|
|
3154
|
-
column:
|
|
3163
|
+
column: E,
|
|
3155
3164
|
index: j
|
|
3156
3165
|
}, void 0, !0)
|
|
3157
3166
|
]),
|
|
3158
|
-
"filter-icon": b((
|
|
3159
|
-
$(t.$slots, `${ne}-filter-icon`, { data:
|
|
3167
|
+
"filter-icon": b((E) => [
|
|
3168
|
+
$(t.$slots, `${ne}-filter-icon`, { data: E }, void 0, !0)
|
|
3160
3169
|
]),
|
|
3161
3170
|
_: 2
|
|
3162
3171
|
}, [
|
|
3163
3172
|
B.type === "expand" ? {
|
|
3164
3173
|
name: "default",
|
|
3165
|
-
fn: b(({ row:
|
|
3174
|
+
fn: b(({ row: E, column: j, $index: ee }) => [
|
|
3166
3175
|
$(t.$slots, `${ne}`, {
|
|
3167
|
-
row:
|
|
3176
|
+
row: E,
|
|
3168
3177
|
column: j,
|
|
3169
3178
|
index: ee
|
|
3170
3179
|
}, void 0, !0)
|
|
@@ -3172,116 +3181,116 @@ const Gl = {
|
|
|
3172
3181
|
key: "0"
|
|
3173
3182
|
} : B.type == "control" ? {
|
|
3174
3183
|
name: "default",
|
|
3175
|
-
fn: b(({ row:
|
|
3184
|
+
fn: b(({ row: E, column: j, $index: ee }) => {
|
|
3176
3185
|
var Pe, Ne;
|
|
3177
3186
|
return [
|
|
3178
3187
|
H("div", {
|
|
3179
3188
|
class: Ot(["control", (Pe = e.value.control) == null ? void 0 : Pe.class]),
|
|
3180
|
-
style:
|
|
3189
|
+
style: Oe((Ne = e.value.control) == null ? void 0 : Ne.style)
|
|
3181
3190
|
}, [
|
|
3182
3191
|
$(t.$slots, "control", {}, () => [
|
|
3183
3192
|
$(t.$slots, "control-left", {
|
|
3184
|
-
row:
|
|
3193
|
+
row: E,
|
|
3185
3194
|
column: j,
|
|
3186
3195
|
index: ee
|
|
3187
3196
|
}, void 0, !0),
|
|
3188
|
-
(u(!0), q(X, null,
|
|
3197
|
+
(u(!0), q(X, null, R(K(["view", "edit", "delete", "save"], E, j, ee, e.value), (Re, d) => {
|
|
3189
3198
|
var W;
|
|
3190
3199
|
return u(), q(X, null, [
|
|
3191
|
-
d == "default" ? (u(!0), q(X, { key: 0 },
|
|
3200
|
+
d == "default" ? (u(!0), q(X, { key: 0 }, R(Re, (C) => (u(), q(X, null, [
|
|
3192
3201
|
$(t.$slots, C.name + "-left", {
|
|
3193
|
-
row:
|
|
3202
|
+
row: E,
|
|
3194
3203
|
column: j,
|
|
3195
3204
|
index: ee
|
|
3196
3205
|
}, void 0, !0),
|
|
3197
3206
|
C.attr.auth() ? $(t.$slots, C.name, {
|
|
3198
3207
|
key: 0,
|
|
3199
|
-
row:
|
|
3208
|
+
row: E,
|
|
3200
3209
|
column: j,
|
|
3201
3210
|
index: ee
|
|
3202
3211
|
}, () => [
|
|
3203
|
-
C.label ? (u(),
|
|
3212
|
+
C.label ? (u(), S(U(Ae), x({
|
|
3204
3213
|
key: 0,
|
|
3205
3214
|
title: C.label,
|
|
3206
3215
|
ref_for: !0
|
|
3207
3216
|
}, C.attr, {
|
|
3208
|
-
onClick: (
|
|
3217
|
+
onClick: (Ve) => C.func(E, j, ee, e.value)
|
|
3209
3218
|
}), {
|
|
3210
3219
|
default: b(() => [
|
|
3211
|
-
|
|
3220
|
+
Be(Ce(C.label), 1)
|
|
3212
3221
|
]),
|
|
3213
3222
|
_: 2
|
|
3214
|
-
}, 1040, ["title", "onClick"])) : (u(),
|
|
3223
|
+
}, 1040, ["title", "onClick"])) : (u(), S(U(Ae), x({
|
|
3215
3224
|
key: 1,
|
|
3216
3225
|
title: C.label,
|
|
3217
3226
|
ref_for: !0
|
|
3218
3227
|
}, C.attr, {
|
|
3219
|
-
onClick: (
|
|
3228
|
+
onClick: (Ve) => C.func(E, j, ee, e.value)
|
|
3220
3229
|
}), null, 16, ["title", "onClick"]))
|
|
3221
|
-
], !0) :
|
|
3230
|
+
], !0) : ge("", !0),
|
|
3222
3231
|
$(t.$slots, C.name + "-right", {
|
|
3223
|
-
row:
|
|
3232
|
+
row: E,
|
|
3224
3233
|
column: j,
|
|
3225
3234
|
index: ee
|
|
3226
3235
|
}, void 0, !0)
|
|
3227
|
-
], 64))), 256)) : d != null && d.startsWith("dropdown") && ((W =
|
|
3236
|
+
], 64))), 256)) : d != null && d.startsWith("dropdown") && ((W = ye(E, j, ee, e.value)) != null && W.auth()) ? (u(), S(pe, x({
|
|
3228
3237
|
key: 1,
|
|
3229
3238
|
ref_for: !0
|
|
3230
|
-
},
|
|
3239
|
+
}, ye(E, j, ee, e.value)), {
|
|
3231
3240
|
dropdown: b(() => [
|
|
3232
|
-
G(
|
|
3241
|
+
G(se, null, {
|
|
3233
3242
|
default: b(() => [
|
|
3234
|
-
(u(!0), q(X, null,
|
|
3235
|
-
var
|
|
3243
|
+
(u(!0), q(X, null, R(Re, (C) => {
|
|
3244
|
+
var Ve, je, et;
|
|
3236
3245
|
return u(), q(X, null, [
|
|
3237
3246
|
t.$slots[C.name + "-left"] ? $(t.$slots, C.name + "-left", {
|
|
3238
3247
|
key: 0,
|
|
3239
|
-
row:
|
|
3248
|
+
row: E,
|
|
3240
3249
|
column: j,
|
|
3241
3250
|
index: ee
|
|
3242
|
-
}, void 0, !0) :
|
|
3243
|
-
C.attr.auth() ? (u(),
|
|
3251
|
+
}, void 0, !0) : ge("", !0),
|
|
3252
|
+
C.attr.auth() ? (u(), S(z, x({
|
|
3244
3253
|
key: 1,
|
|
3245
3254
|
ref_for: !0
|
|
3246
3255
|
}, {
|
|
3247
|
-
command: (
|
|
3248
|
-
divided: (
|
|
3256
|
+
command: (Ve = C == null ? void 0 : C.attr) == null ? void 0 : Ve.command,
|
|
3257
|
+
divided: (je = C == null ? void 0 : C.attr) == null ? void 0 : je.divided,
|
|
3249
3258
|
disabled: (et = C == null ? void 0 : C.attr) == null ? void 0 : et.disabled
|
|
3250
3259
|
}), {
|
|
3251
3260
|
default: b(() => [
|
|
3252
3261
|
$(t.$slots, C.name, {
|
|
3253
|
-
row:
|
|
3262
|
+
row: E,
|
|
3254
3263
|
column: j,
|
|
3255
3264
|
index: ee
|
|
3256
3265
|
}, () => [
|
|
3257
|
-
C.label ? (u(),
|
|
3266
|
+
C.label ? (u(), S(U(Ae), x({
|
|
3258
3267
|
key: 0,
|
|
3259
3268
|
title: C.label,
|
|
3260
3269
|
ref_for: !0
|
|
3261
3270
|
}, C.attr, {
|
|
3262
|
-
onClick: (bt) => C.func(
|
|
3271
|
+
onClick: (bt) => C.func(E, j, ee, e.value)
|
|
3263
3272
|
}), {
|
|
3264
3273
|
default: b(() => [
|
|
3265
|
-
|
|
3274
|
+
Be(Ce(C.label), 1)
|
|
3266
3275
|
]),
|
|
3267
3276
|
_: 2
|
|
3268
|
-
}, 1040, ["title", "onClick"])) : (u(),
|
|
3277
|
+
}, 1040, ["title", "onClick"])) : (u(), S(U(Ae), x({
|
|
3269
3278
|
key: 1,
|
|
3270
3279
|
title: C.label,
|
|
3271
3280
|
ref_for: !0
|
|
3272
3281
|
}, C.attr, {
|
|
3273
|
-
onClick: (bt) => C.func(
|
|
3282
|
+
onClick: (bt) => C.func(E, j, ee, e.value)
|
|
3274
3283
|
}), null, 16, ["title", "onClick"]))
|
|
3275
3284
|
], !0)
|
|
3276
3285
|
]),
|
|
3277
3286
|
_: 2
|
|
3278
|
-
}, 1040)) :
|
|
3287
|
+
}, 1040)) : ge("", !0),
|
|
3279
3288
|
t.$slots[C.name + "-right"] ? $(t.$slots, C.name + "-right", {
|
|
3280
3289
|
key: 2,
|
|
3281
|
-
row:
|
|
3290
|
+
row: E,
|
|
3282
3291
|
column: j,
|
|
3283
3292
|
index: ee
|
|
3284
|
-
}, void 0, !0) :
|
|
3293
|
+
}, void 0, !0) : ge("", !0)
|
|
3285
3294
|
], 64);
|
|
3286
3295
|
}), 256))
|
|
3287
3296
|
]),
|
|
@@ -3291,45 +3300,45 @@ const Gl = {
|
|
|
3291
3300
|
default: b(() => {
|
|
3292
3301
|
var C;
|
|
3293
3302
|
return [
|
|
3294
|
-
|
|
3303
|
+
Be(Ce((C = ye(E, j, ee, e.value)) == null ? void 0 : C.label) + " ", 1)
|
|
3295
3304
|
];
|
|
3296
3305
|
}),
|
|
3297
3306
|
_: 2
|
|
3298
|
-
}, 1040)) : (u(),
|
|
3307
|
+
}, 1040)) : (u(), S(A, { key: 2 }, {
|
|
3299
3308
|
default: b(() => [
|
|
3300
|
-
(u(!0), q(X, null,
|
|
3309
|
+
(u(!0), q(X, null, R(Re, (C) => (u(), q(X, null, [
|
|
3301
3310
|
$(t.$slots, C.name + "-left", {
|
|
3302
|
-
row:
|
|
3311
|
+
row: E,
|
|
3303
3312
|
column: j,
|
|
3304
3313
|
index: ee
|
|
3305
3314
|
}, void 0, !0),
|
|
3306
3315
|
C.attr.auth() ? $(t.$slots, C.name, {
|
|
3307
3316
|
key: 0,
|
|
3308
|
-
row:
|
|
3317
|
+
row: E,
|
|
3309
3318
|
column: j,
|
|
3310
3319
|
index: ee
|
|
3311
3320
|
}, () => [
|
|
3312
|
-
C.label ? (u(),
|
|
3321
|
+
C.label ? (u(), S(U(Ae), x({
|
|
3313
3322
|
key: 0,
|
|
3314
3323
|
title: C.label,
|
|
3315
3324
|
ref_for: !0
|
|
3316
3325
|
}, C.attr, {
|
|
3317
|
-
onClick: (
|
|
3326
|
+
onClick: (Ve) => C.func(E, j, ee, e.value)
|
|
3318
3327
|
}), {
|
|
3319
3328
|
default: b(() => [
|
|
3320
|
-
|
|
3329
|
+
Be(Ce(C.label), 1)
|
|
3321
3330
|
]),
|
|
3322
3331
|
_: 2
|
|
3323
|
-
}, 1040, ["title", "onClick"])) : (u(),
|
|
3332
|
+
}, 1040, ["title", "onClick"])) : (u(), S(U(Ae), x({
|
|
3324
3333
|
key: 1,
|
|
3325
3334
|
title: C.label,
|
|
3326
3335
|
ref_for: !0
|
|
3327
3336
|
}, C.attr, {
|
|
3328
|
-
onClick: (
|
|
3337
|
+
onClick: (Ve) => C.func(E, j, ee, e.value)
|
|
3329
3338
|
}), null, 16, ["title", "onClick"]))
|
|
3330
|
-
], !0) :
|
|
3339
|
+
], !0) : ge("", !0),
|
|
3331
3340
|
$(t.$slots, C.name + "-right", {
|
|
3332
|
-
row:
|
|
3341
|
+
row: E,
|
|
3333
3342
|
column: j,
|
|
3334
3343
|
index: ee
|
|
3335
3344
|
}, void 0, !0)
|
|
@@ -3340,7 +3349,7 @@ const Gl = {
|
|
|
3340
3349
|
], 64);
|
|
3341
3350
|
}), 256)),
|
|
3342
3351
|
$(t.$slots, "control-right", {
|
|
3343
|
-
row:
|
|
3352
|
+
row: E,
|
|
3344
3353
|
column: j,
|
|
3345
3354
|
index: ee
|
|
3346
3355
|
}, void 0, !0)
|
|
@@ -3351,31 +3360,31 @@ const Gl = {
|
|
|
3351
3360
|
key: "1"
|
|
3352
3361
|
} : B.type != "selection" && B.type != "index" ? {
|
|
3353
3362
|
name: "default",
|
|
3354
|
-
fn: b(({ row:
|
|
3355
|
-
|
|
3363
|
+
fn: b(({ row: E, column: j, $index: ee }) => [
|
|
3364
|
+
_e(B, E, j, ee) && ee != -1 ? $(t.$slots, `${ne}`, {
|
|
3356
3365
|
key: 0,
|
|
3357
|
-
row:
|
|
3366
|
+
row: E,
|
|
3358
3367
|
column: j,
|
|
3359
3368
|
index: ee
|
|
3360
3369
|
}, () => {
|
|
3361
3370
|
var Pe;
|
|
3362
3371
|
return [
|
|
3363
|
-
(u(),
|
|
3364
|
-
modelValue:
|
|
3365
|
-
"onUpdate:modelValue": (Ne) =>
|
|
3366
|
-
item: B == null ? void 0 : B.table(
|
|
3372
|
+
(u(), S(yt, {
|
|
3373
|
+
modelValue: E[ne],
|
|
3374
|
+
"onUpdate:modelValue": (Ne) => E[ne] = Ne,
|
|
3375
|
+
item: B == null ? void 0 : B.table(E, j, ee),
|
|
3367
3376
|
ctrlKey: ne,
|
|
3368
|
-
key: `${ne}-${ee} -${
|
|
3369
|
-
ctrlType: (Pe = B.table(
|
|
3377
|
+
key: `${ne}-${ee} -${me.value}`,
|
|
3378
|
+
ctrlType: (Pe = B.table(E, j, ee)) != null && Pe.type ? B.table(E, j, ee).type : B.type,
|
|
3370
3379
|
model: e.value,
|
|
3371
3380
|
class: "g-ctrl-container",
|
|
3372
3381
|
t: "t",
|
|
3373
|
-
formInfo:
|
|
3374
|
-
},
|
|
3375
|
-
|
|
3376
|
-
name:
|
|
3382
|
+
formInfo: E
|
|
3383
|
+
}, he({ _: 2 }, [
|
|
3384
|
+
R(t.$slots, (Ne, Re) => ({
|
|
3385
|
+
name: Re,
|
|
3377
3386
|
fn: b((d) => [
|
|
3378
|
-
$(t.$slots,
|
|
3387
|
+
$(t.$slots, Re, {
|
|
3379
3388
|
data: d,
|
|
3380
3389
|
item: B,
|
|
3381
3390
|
model: e.value
|
|
@@ -3386,17 +3395,17 @@ const Gl = {
|
|
|
3386
3395
|
];
|
|
3387
3396
|
}, !0) : $(t.$slots, `${ne}`, {
|
|
3388
3397
|
key: 1,
|
|
3389
|
-
row:
|
|
3398
|
+
row: E,
|
|
3390
3399
|
column: j,
|
|
3391
3400
|
index: ee
|
|
3392
3401
|
}, () => [
|
|
3393
3402
|
H("div", {
|
|
3394
|
-
style:
|
|
3403
|
+
style: Oe([{ width: "100%", "text-overflow": "ellipsis", overflow: "hidden" }, B == null ? void 0 : B.style]),
|
|
3395
3404
|
innerHTML: ae(
|
|
3396
3405
|
B,
|
|
3397
|
-
j.formatter(
|
|
3406
|
+
j.formatter(E, j, E[ne], ee)
|
|
3398
3407
|
)
|
|
3399
|
-
}, null, 12,
|
|
3408
|
+
}, null, 12, pa)
|
|
3400
3409
|
], !0)
|
|
3401
3410
|
]),
|
|
3402
3411
|
key: "2"
|
|
@@ -3406,12 +3415,12 @@ const Gl = {
|
|
|
3406
3415
|
]),
|
|
3407
3416
|
_: 3
|
|
3408
3417
|
}, 16, ["summary-method"]),
|
|
3409
|
-
(rt = (at = (tt = e.value) == null ? void 0 : tt.table) == null ? void 0 : at.page) != null && rt.hidden ?
|
|
3410
|
-
G(
|
|
3418
|
+
(rt = (at = (tt = e.value) == null ? void 0 : tt.table) == null ? void 0 : at.page) != null && rt.hidden ? ge("", !0) : $(t.$slots, "page", { key: 0 }, () => [
|
|
3419
|
+
G(Le, x({
|
|
3411
3420
|
"page-size": e.value.table.page.pageSize,
|
|
3412
|
-
"onUpdate:pageSize":
|
|
3421
|
+
"onUpdate:pageSize": r[9] || (r[9] = (B) => e.value.table.page.pageSize = B),
|
|
3413
3422
|
"current-page": e.value.table.page.currentPage,
|
|
3414
|
-
"onUpdate:currentPage":
|
|
3423
|
+
"onUpdate:currentPage": r[10] || (r[10] = (B) => e.value.table.page.currentPage = B)
|
|
3415
3424
|
}, e.value.table.page), {
|
|
3416
3425
|
default: b(() => [
|
|
3417
3426
|
$(t.$slots, "table-page", {}, void 0, !0)
|
|
@@ -3424,7 +3433,7 @@ const Gl = {
|
|
|
3424
3433
|
], 64);
|
|
3425
3434
|
};
|
|
3426
3435
|
}
|
|
3427
|
-
}), ha = /* @__PURE__ */ Ze(va, [["__scopeId", "data-v-
|
|
3436
|
+
}), ha = /* @__PURE__ */ Ze(va, [["__scopeId", "data-v-a51987b9"]]), ya = { class: "g-tree-table" }, ga = { class: "g-tree-container" }, ba = { class: "g-tree-table-container" }, $a = /* @__PURE__ */ Object.assign({
|
|
3428
3437
|
name: "g-tree-table",
|
|
3429
3438
|
inheritAttrs: !1
|
|
3430
3439
|
}, {
|
|
@@ -3435,73 +3444,73 @@ const Gl = {
|
|
|
3435
3444
|
},
|
|
3436
3445
|
emits: /* @__PURE__ */ Ge(["load"], ["update:modelValue"]),
|
|
3437
3446
|
setup(f, { emit: s }) {
|
|
3438
|
-
var
|
|
3439
|
-
const
|
|
3440
|
-
typeof ((
|
|
3441
|
-
), M = re(((Q = e == null ? void 0 : e.tree) == null ? void 0 : Q.search) === void 0 ? !0 : (fe = e == null ? void 0 : e.tree) == null ? void 0 : fe.search), Y = re({}),
|
|
3442
|
-
var
|
|
3447
|
+
var ie, T, Q, fe;
|
|
3448
|
+
const o = s, l = Qe(f, "modelValue"), e = St(), i = re(
|
|
3449
|
+
typeof ((ie = e == null ? void 0 : e.tree) == null ? void 0 : ie.width) == "number" ? `${e.tree.width}px` : ((T = e == null ? void 0 : e.tree) == null ? void 0 : T.width) || "180px"
|
|
3450
|
+
), M = re(((Q = e == null ? void 0 : e.tree) == null ? void 0 : Q.search) === void 0 ? !0 : (fe = e == null ? void 0 : e.tree) == null ? void 0 : fe.search), Y = re({}), V = re(""), _ = re(null), k = (N, me) => {
|
|
3451
|
+
var Me, de;
|
|
3443
3452
|
if (!N) return !0;
|
|
3444
|
-
const
|
|
3445
|
-
return
|
|
3446
|
-
}, L = (N,
|
|
3447
|
-
|
|
3453
|
+
const ce = ((de = (Me = e.tree) == null ? void 0 : Me.props) == null ? void 0 : de.label) || "label";
|
|
3454
|
+
return me[ce].includes(N);
|
|
3455
|
+
}, L = (N, me) => {
|
|
3456
|
+
o("load", Y.value, N, me);
|
|
3448
3457
|
}, te = (N) => {
|
|
3449
3458
|
Y.value = N, l.value.table.load();
|
|
3450
3459
|
};
|
|
3451
|
-
return ll(
|
|
3452
|
-
|
|
3453
|
-
}), (N,
|
|
3454
|
-
const
|
|
3460
|
+
return ll(V, (N) => {
|
|
3461
|
+
_.value.filter(N);
|
|
3462
|
+
}), (N, me) => {
|
|
3463
|
+
const ce = I("el-input"), Me = I("el-tree"), de = I("g-table");
|
|
3455
3464
|
return u(), q("div", ya, [
|
|
3456
3465
|
H("div", {
|
|
3457
3466
|
class: "g-tree-left",
|
|
3458
|
-
style:
|
|
3467
|
+
style: Oe({ width: i.value })
|
|
3459
3468
|
}, [
|
|
3460
|
-
M.value ? (u(),
|
|
3469
|
+
M.value ? (u(), S(ce, {
|
|
3461
3470
|
key: 0,
|
|
3462
|
-
modelValue:
|
|
3463
|
-
"onUpdate:modelValue":
|
|
3471
|
+
modelValue: V.value,
|
|
3472
|
+
"onUpdate:modelValue": me[0] || (me[0] = (ue) => V.value = ue),
|
|
3464
3473
|
style: { width: "100%", "box-sizing": "border-box", "margin-bottom": "10px" },
|
|
3465
3474
|
placeholder: "输入节点查询",
|
|
3466
3475
|
clearable: ""
|
|
3467
|
-
}, null, 8, ["modelValue"])) :
|
|
3476
|
+
}, null, 8, ["modelValue"])) : ge("", !0),
|
|
3468
3477
|
H("div", ga, [
|
|
3469
|
-
G(
|
|
3478
|
+
G(Me, x({
|
|
3470
3479
|
style: { width: i.value },
|
|
3471
3480
|
"filter-node-method": k,
|
|
3472
3481
|
"expand-on-click-node": !1,
|
|
3473
3482
|
ref_key: "treeRef",
|
|
3474
|
-
ref:
|
|
3483
|
+
ref: _,
|
|
3475
3484
|
onNodeClick: te
|
|
3476
|
-
}, N.$attrs.tree),
|
|
3477
|
-
default: b(({ node: ue, data:
|
|
3485
|
+
}, N.$attrs.tree), he({
|
|
3486
|
+
default: b(({ node: ue, data: ye }) => [
|
|
3478
3487
|
$(N.$slots, "tree", {
|
|
3479
3488
|
node: ue,
|
|
3480
|
-
data:
|
|
3489
|
+
data: ye
|
|
3481
3490
|
}, () => [
|
|
3482
|
-
H("span", null,
|
|
3491
|
+
H("span", null, Ce(ue.label), 1)
|
|
3483
3492
|
], !0)
|
|
3484
3493
|
]),
|
|
3485
3494
|
_: 2
|
|
3486
3495
|
}, [
|
|
3487
|
-
|
|
3488
|
-
name:
|
|
3496
|
+
R(N.$slots, (ue, ye, Te) => ({
|
|
3497
|
+
name: ye,
|
|
3489
3498
|
fn: b((le) => [
|
|
3490
|
-
$(N.$slots,
|
|
3499
|
+
$(N.$slots, ye, { data: le }, void 0, !0)
|
|
3491
3500
|
])
|
|
3492
3501
|
}))
|
|
3493
3502
|
]), 1040, ["style"])
|
|
3494
3503
|
])
|
|
3495
3504
|
], 4),
|
|
3496
3505
|
H("div", ba, [
|
|
3497
|
-
G(
|
|
3506
|
+
G(de, x({
|
|
3498
3507
|
modelValue: l.value,
|
|
3499
|
-
"onUpdate:modelValue":
|
|
3500
|
-
}, N.$attrs, { onLoad: L }),
|
|
3501
|
-
|
|
3502
|
-
name:
|
|
3508
|
+
"onUpdate:modelValue": me[1] || (me[1] = (ue) => l.value = ue)
|
|
3509
|
+
}, N.$attrs, { onLoad: L }), he({ _: 2 }, [
|
|
3510
|
+
R(N.$slots, (ue, ye, Te) => ({
|
|
3511
|
+
name: ye,
|
|
3503
3512
|
fn: b((le) => [
|
|
3504
|
-
$(N.$slots,
|
|
3513
|
+
$(N.$slots, ye, { data: le }, void 0, !0)
|
|
3505
3514
|
])
|
|
3506
3515
|
}))
|
|
3507
3516
|
]), 1040, ["modelValue"])
|
|
@@ -3509,10 +3518,10 @@ const Gl = {
|
|
|
3509
3518
|
]);
|
|
3510
3519
|
};
|
|
3511
3520
|
}
|
|
3512
|
-
}), wa = /* @__PURE__ */ Ze($a, [["__scopeId", "data-v-c888e4fc"]]),
|
|
3521
|
+
}), wa = /* @__PURE__ */ Ze($a, [["__scopeId", "data-v-c888e4fc"]]), _a = {
|
|
3513
3522
|
key: 0,
|
|
3514
3523
|
class: "op-group"
|
|
3515
|
-
},
|
|
3524
|
+
}, Ea = {
|
|
3516
3525
|
key: 1,
|
|
3517
3526
|
class: "op-items",
|
|
3518
3527
|
style: { width: "100%", height: "100%" }
|
|
@@ -3538,53 +3547,53 @@ const Gl = {
|
|
|
3538
3547
|
},
|
|
3539
3548
|
setup(f) {
|
|
3540
3549
|
const s = f;
|
|
3541
|
-
return (
|
|
3542
|
-
(u(!0), q(X, null,
|
|
3543
|
-
style:
|
|
3550
|
+
return (o, l) => s.title ? (u(), q("div", _a, [
|
|
3551
|
+
(u(!0), q(X, null, R(s.columns, (e) => (u(), q("span", {
|
|
3552
|
+
style: Oe({ width: (e == null ? void 0 : e.width) || xt, ...e == null ? void 0 : e.titleStyle, textAlign: (e == null ? void 0 : e.align) || "center" }),
|
|
3544
3553
|
key: e.key
|
|
3545
3554
|
}, [
|
|
3546
|
-
$(
|
|
3547
|
-
|
|
3555
|
+
$(o.$slots, `${f.t}-title-${e.key}`, { col: e }, () => [
|
|
3556
|
+
Be(Ce(e.label), 1)
|
|
3548
3557
|
], !0)
|
|
3549
3558
|
], 4))), 128))
|
|
3550
|
-
])) : (u(), q("div",
|
|
3551
|
-
(u(!0), q(X, null,
|
|
3552
|
-
style:
|
|
3559
|
+
])) : (u(), q("div", Ea, [
|
|
3560
|
+
(u(!0), q(X, null, R(s.columns, (e) => (u(), q("span", {
|
|
3561
|
+
style: Oe({ width: (e == null ? void 0 : e.width) || xt, textAlign: (e == null ? void 0 : e.align) || "center", ...e == null ? void 0 : e.style }),
|
|
3553
3562
|
key: e.key,
|
|
3554
3563
|
title: f.data[e.key]
|
|
3555
3564
|
}, [
|
|
3556
|
-
$(
|
|
3557
|
-
|
|
3565
|
+
$(o.$slots, `${f.t}-option-${e.key}`, { col: e }, () => [
|
|
3566
|
+
Be(Ce(f.data[e.key] ?? "-"), 1)
|
|
3558
3567
|
], !0)
|
|
3559
3568
|
], 12, ka))), 128))
|
|
3560
3569
|
]));
|
|
3561
3570
|
}
|
|
3562
|
-
}), Da = /* @__PURE__ */ Ze(Ca, [["__scopeId", "data-v-c0ac6b77"]]), Ma = Object.freeze({}), Rt = [ha,
|
|
3571
|
+
}), Da = /* @__PURE__ */ Ze(Ca, [["__scopeId", "data-v-c0ac6b77"]]), Ma = Object.freeze({}), Rt = [ha, Et, wa, Da];
|
|
3563
3572
|
let kt = {};
|
|
3564
3573
|
const Ua = {
|
|
3565
3574
|
install: (f, s = {}) => {
|
|
3566
|
-
kt = Object.freeze({ ...Ma, ...s }), Rt.forEach((
|
|
3567
|
-
f.component(
|
|
3575
|
+
kt = Object.freeze({ ...Ma, ...s }), Rt.forEach((o) => {
|
|
3576
|
+
f.component(o.name, o);
|
|
3568
3577
|
}), f.provide("options", kt), f.config.globalProperties.$openModal = Ct;
|
|
3569
3578
|
}
|
|
3570
|
-
},
|
|
3579
|
+
}, Sa = (f) => ({ dialog: Pt, drawer: Nt })[f] || null, Ct = (f = {}, s = "dialog") => {
|
|
3571
3580
|
if (typeof document > "u") return () => {
|
|
3572
3581
|
};
|
|
3573
|
-
const
|
|
3582
|
+
const o = document.createElement("div");
|
|
3574
3583
|
let l = () => {
|
|
3575
3584
|
};
|
|
3576
|
-
const e =
|
|
3585
|
+
const e = Sa(s);
|
|
3577
3586
|
if (!e) return () => {
|
|
3578
3587
|
};
|
|
3579
3588
|
const i = re(!0), M = al({
|
|
3580
3589
|
setup() {
|
|
3581
3590
|
return l = () => {
|
|
3582
3591
|
i.value = !1, setTimeout(() => {
|
|
3583
|
-
M.unmount(),
|
|
3592
|
+
M.unmount(), o.remove();
|
|
3584
3593
|
}, 300);
|
|
3585
3594
|
}, () => {
|
|
3586
|
-
var Y,
|
|
3587
|
-
return
|
|
3595
|
+
var Y, V, _;
|
|
3596
|
+
return Ee(e, {
|
|
3588
3597
|
modelValue: i.value,
|
|
3589
3598
|
"onUpdate:modelValue": (k) => i.value = k,
|
|
3590
3599
|
appendToBody: !0,
|
|
@@ -3596,8 +3605,8 @@ const Ua = {
|
|
|
3596
3605
|
...f
|
|
3597
3606
|
}, {
|
|
3598
3607
|
default: (Y = f.slots) == null ? void 0 : Y.default,
|
|
3599
|
-
header: (
|
|
3600
|
-
footer: (
|
|
3608
|
+
header: (V = f.slots) == null ? void 0 : V.header,
|
|
3609
|
+
footer: (_ = f.slots) == null ? void 0 : _.footer
|
|
3601
3610
|
});
|
|
3602
3611
|
};
|
|
3603
3612
|
},
|
|
@@ -3607,16 +3616,16 @@ const Ua = {
|
|
|
3607
3616
|
});
|
|
3608
3617
|
return Rt.forEach((Y) => {
|
|
3609
3618
|
M.component(Y.name, Y);
|
|
3610
|
-
}), M.provide("options", kt), M.use(Ht, { locale: hl }), document.body.appendChild(
|
|
3619
|
+
}), M.provide("options", kt), M.use(Ht, { locale: hl }), document.body.appendChild(o), M.mount(o), l;
|
|
3611
3620
|
};
|
|
3612
3621
|
function jt(f, s = window.innerWidth) {
|
|
3613
3622
|
if (typeof f == "number")
|
|
3614
3623
|
return f;
|
|
3615
3624
|
if (f.endsWith("px"))
|
|
3616
3625
|
return parseFloat(f);
|
|
3617
|
-
const
|
|
3626
|
+
const o = window.innerHeight, l = window.innerWidth;
|
|
3618
3627
|
if (f.endsWith("vh"))
|
|
3619
|
-
return
|
|
3628
|
+
return o * parseFloat(f) / 100;
|
|
3620
3629
|
if (f.endsWith("vw"))
|
|
3621
3630
|
return l * parseFloat(f) / 100;
|
|
3622
3631
|
if (f.endsWith("%")) {
|
|
@@ -3631,28 +3640,28 @@ function jt(f, s = window.innerWidth) {
|
|
|
3631
3640
|
throw new Error("Invalid calc expression");
|
|
3632
3641
|
};
|
|
3633
3642
|
const e = f.slice(5, -1).trim();
|
|
3634
|
-
return i(e.replace(/([0-9.]+)([a-z%]+)/g, (Y,
|
|
3643
|
+
return i(e.replace(/([0-9.]+)([a-z%]+)/g, (Y, V, _) => jt(V + _, s)));
|
|
3635
3644
|
}
|
|
3636
3645
|
throw new Error("Unsupported unit in value: " + f);
|
|
3637
3646
|
}
|
|
3638
|
-
const
|
|
3639
|
-
const s = {},
|
|
3640
|
-
l[i] = typeof e[i] == "object" && !Array.isArray(e[i]) ?
|
|
3647
|
+
const qe = (...f) => {
|
|
3648
|
+
const s = {}, o = (l, e) => (Object.keys(e).forEach((i) => {
|
|
3649
|
+
l[i] = typeof e[i] == "object" && !Array.isArray(e[i]) ? o(l[i] || {}, e[i]) : e[i];
|
|
3641
3650
|
}), l);
|
|
3642
|
-
return f.forEach((l = {}) =>
|
|
3651
|
+
return f.forEach((l = {}) => o(s, l)), s;
|
|
3643
3652
|
};
|
|
3644
|
-
function
|
|
3645
|
-
const
|
|
3653
|
+
function Ye(f, s = (o, l) => s(o, l)) {
|
|
3654
|
+
const o = {};
|
|
3646
3655
|
for (const l in f)
|
|
3647
|
-
f.hasOwnProperty(l) && s(l, f[l]) && (
|
|
3648
|
-
return
|
|
3656
|
+
f.hasOwnProperty(l) && s(l, f[l]) && (o[l] = f[l]);
|
|
3657
|
+
return o;
|
|
3649
3658
|
}
|
|
3650
|
-
function
|
|
3659
|
+
function Va(f, s, o = "value", l = "label", e = "children") {
|
|
3651
3660
|
for (const i of f) {
|
|
3652
|
-
if (i[
|
|
3661
|
+
if (i[o] === s)
|
|
3653
3662
|
return i[l];
|
|
3654
3663
|
if (i[e] && i[e].length > 0) {
|
|
3655
|
-
const M =
|
|
3664
|
+
const M = Va(i[e], s, o, l, e);
|
|
3656
3665
|
if (M)
|
|
3657
3666
|
return M;
|
|
3658
3667
|
}
|
|
@@ -3661,19 +3670,19 @@ function Sa(f, s, r = "value", l = "label", e = "children") {
|
|
|
3661
3670
|
}
|
|
3662
3671
|
function Dt(f) {
|
|
3663
3672
|
if (!f || isNaN(f)) return "零";
|
|
3664
|
-
const s = ["角", "分"],
|
|
3673
|
+
const s = ["角", "分"], o = ["零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖"], l = [
|
|
3665
3674
|
["元", "万", "亿"],
|
|
3666
3675
|
["", "拾", "佰", "仟"]
|
|
3667
3676
|
], e = f < 0 ? "欠" : "";
|
|
3668
3677
|
f = Math.abs(f);
|
|
3669
3678
|
let i = "";
|
|
3670
3679
|
for (let M = 0; M < s.length; M++)
|
|
3671
|
-
i += (
|
|
3680
|
+
i += (o[Math.floor(f * 10 * Math.pow(10, M)) % 10] + s[M]).replace(/零./, "");
|
|
3672
3681
|
i = i || "整", f = Math.floor(f);
|
|
3673
3682
|
for (let M = 0; M < l[0].length && f > 0; M++) {
|
|
3674
3683
|
let Y = "";
|
|
3675
|
-
for (let
|
|
3676
|
-
Y =
|
|
3684
|
+
for (let V = 0; V < l[1].length && f > 0; V++)
|
|
3685
|
+
Y = o[f % 10] + l[1][V] + Y, f = Math.floor(f / 10);
|
|
3677
3686
|
i = Y.replace(/(零.)*零$/, "").replace(/^$/, "零") + l[0][M] + i;
|
|
3678
3687
|
}
|
|
3679
3688
|
return e + i.replace(/(零.)*零元/, "元").replace(/(零.)+/g, "零").replace(/^整$/, "零元整");
|
|
@@ -3681,10 +3690,10 @@ function Dt(f) {
|
|
|
3681
3690
|
function Ta(f) {
|
|
3682
3691
|
if (typeof f != "number" || isNaN(f) || !isFinite(f))
|
|
3683
3692
|
return "0.00";
|
|
3684
|
-
const s = f.toFixed(2), [
|
|
3685
|
-
return `${
|
|
3693
|
+
const s = f.toFixed(2), [o, l] = s.split(".");
|
|
3694
|
+
return `${o.replace(/\B(?=(\d{3})+(?!\d))/g, ",")}.${l}`;
|
|
3686
3695
|
}
|
|
3687
|
-
const
|
|
3696
|
+
const De = {
|
|
3688
3697
|
RADIO: "radio",
|
|
3689
3698
|
RADIOBUTTON: "radio-button",
|
|
3690
3699
|
CHECKBOX: "checkbox",
|
|
@@ -3741,27 +3750,27 @@ const Ce = {
|
|
|
3741
3750
|
// 防止与原生resize冲突
|
|
3742
3751
|
});
|
|
3743
3752
|
}, qa = (f, s) => {
|
|
3744
|
-
let
|
|
3753
|
+
let o = !1, l, e, i, M;
|
|
3745
3754
|
const Y = (k) => {
|
|
3746
|
-
k.preventDefault(),
|
|
3747
|
-
},
|
|
3748
|
-
if (!
|
|
3755
|
+
k.preventDefault(), o = !0, l = k.clientX, e = k.clientY, i = parseInt(document.defaultView.getComputedStyle(f).width), M = parseInt(document.defaultView.getComputedStyle(f).height), document.addEventListener("mousemove", V), document.addEventListener("mouseup", _);
|
|
3756
|
+
}, V = (k) => {
|
|
3757
|
+
if (!o) return;
|
|
3749
3758
|
const L = Math.max(300, i + k.clientX - l), te = Math.max(200, M + k.clientY - e);
|
|
3750
3759
|
f.style.width = `${L}px`, f.style.height = `${te}px`;
|
|
3751
|
-
},
|
|
3752
|
-
|
|
3760
|
+
}, _ = () => {
|
|
3761
|
+
o = !1, document.removeEventListener("mousemove", V), document.removeEventListener("mouseup", _);
|
|
3753
3762
|
};
|
|
3754
3763
|
s.addEventListener("mousedown", Y);
|
|
3755
3764
|
};
|
|
3756
3765
|
export {
|
|
3757
|
-
|
|
3766
|
+
De as CT,
|
|
3758
3767
|
ht as bindResize,
|
|
3759
3768
|
jt as convertToPx,
|
|
3760
3769
|
Ua as default,
|
|
3761
|
-
|
|
3762
|
-
|
|
3770
|
+
Ye as filterObject,
|
|
3771
|
+
Va as findTreeLabelByValue,
|
|
3763
3772
|
Ta as formatAmount,
|
|
3764
|
-
|
|
3773
|
+
qe as mergeObjects,
|
|
3765
3774
|
Dt as moneyToChinese,
|
|
3766
3775
|
Ct as openModal
|
|
3767
3776
|
};
|