vue-2024-ui 0.0.42 → 0.0.43
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 +298 -299
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import lt, { ElMessage as
|
|
2
|
-
import { mergeModels as
|
|
1
|
+
import lt, { ElMessage as be, ElMessageBox as Ke, ElDialog as ot, ElDrawer as at } from "element-plus";
|
|
2
|
+
import { mergeModels as Ve, useModel as Ce, ref as ye, onMounted as Fe, resolveComponent as A, openBlock as w, createElementBlock as le, unref as a, createBlock as O, mergeProps as x, withCtx as d, renderSlot as $, Fragment as fe, renderList as P, createTextVNode as se, toDisplayString as Z, createSlots as Q, normalizeProps as ke, createVNode as R, createElementVNode as W, useSlots as rt, inject as Pe, useAttrs as ut, computed as xe, normalizeStyle as Se, withModifiers as Xe, createCommentVNode as ue, guardReactiveProps as Me, Transition as nt, withDirectives as qe, vShow as Be, onBeforeUnmount as st, normalizeClass as Qe, watchEffect as it, h as Ue, createApp as dt } from "vue";
|
|
3
3
|
import { FullScreen as ct, Remove as ft } from "@element-plus/icons-vue";
|
|
4
4
|
import Je from "sortablejs";
|
|
5
5
|
import { Dexie as mt } from "dexie";
|
|
@@ -189,56 +189,56 @@ var Ze = { exports: {} };
|
|
|
189
189
|
(function(t, e) {
|
|
190
190
|
c.exports = e();
|
|
191
191
|
})(vt, function() {
|
|
192
|
-
var t = 1e3, e = 6e4, n = 36e5, f = "millisecond", E = "second", I = "minute",
|
|
193
|
-
var
|
|
194
|
-
return "[" + u + (
|
|
195
|
-
} }, U = function(u,
|
|
192
|
+
var t = 1e3, e = 6e4, n = 36e5, f = "millisecond", E = "second", I = "minute", D = "hour", b = "day", M = "week", q = "month", B = "quarter", V = "year", m = "date", ee = "Invalid Date", ce = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, ge = /\[([^\]]+)]|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, g = { 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(u) {
|
|
193
|
+
var y = ["th", "st", "nd", "rd"], i = u % 100;
|
|
194
|
+
return "[" + u + (y[(i - 20) % 10] || y[i] || y[0]) + "]";
|
|
195
|
+
} }, U = function(u, y, i) {
|
|
196
196
|
var v = String(u);
|
|
197
|
-
return !v || v.length >=
|
|
197
|
+
return !v || v.length >= y ? u : "" + Array(y + 1 - v.length).join(i) + u;
|
|
198
198
|
}, oe = { s: U, z: function(u) {
|
|
199
|
-
var
|
|
200
|
-
return (
|
|
201
|
-
}, m: function u(
|
|
202
|
-
if (
|
|
203
|
-
var v = 12 * (i.year() -
|
|
199
|
+
var y = -u.utcOffset(), i = Math.abs(y), v = Math.floor(i / 60), p = i % 60;
|
|
200
|
+
return (y <= 0 ? "+" : "-") + U(v, 2, "0") + ":" + U(p, 2, "0");
|
|
201
|
+
}, m: function u(y, i) {
|
|
202
|
+
if (y.date() < i.date()) return -u(i, y);
|
|
203
|
+
var v = 12 * (i.year() - y.year()) + (i.month() - y.month()), p = y.clone().add(v, q), _ = i - p < 0, T = y.clone().add(v + (_ ? -1 : 1), q);
|
|
204
204
|
return +(-(v + (i - p) / (_ ? p - T : T - p)) || 0);
|
|
205
205
|
}, a: function(u) {
|
|
206
206
|
return u < 0 ? Math.ceil(u) || 0 : Math.floor(u);
|
|
207
207
|
}, p: function(u) {
|
|
208
|
-
return { M: q, y: V, w: M, d:
|
|
208
|
+
return { M: q, y: V, w: M, d: b, D: m, h: D, m: I, s: E, ms: f, Q: B }[u] || String(u || "").toLowerCase().replace(/s$/, "");
|
|
209
209
|
}, u: function(u) {
|
|
210
210
|
return u === void 0;
|
|
211
211
|
} }, C = "en", te = {};
|
|
212
212
|
te[C] = g;
|
|
213
213
|
var J = "$isDayjsObject", K = function(u) {
|
|
214
214
|
return u instanceof Y || !(!u || !u[J]);
|
|
215
|
-
}, me = function u(
|
|
215
|
+
}, me = function u(y, i, v) {
|
|
216
216
|
var p;
|
|
217
|
-
if (!
|
|
218
|
-
if (typeof
|
|
219
|
-
var _ =
|
|
217
|
+
if (!y) return C;
|
|
218
|
+
if (typeof y == "string") {
|
|
219
|
+
var _ = y.toLowerCase();
|
|
220
220
|
te[_] && (p = _), i && (te[_] = i, p = _);
|
|
221
|
-
var T =
|
|
221
|
+
var T = y.split("-");
|
|
222
222
|
if (!p && T.length > 1) return u(T[0]);
|
|
223
223
|
} else {
|
|
224
|
-
var j =
|
|
225
|
-
te[j] =
|
|
224
|
+
var j = y.name;
|
|
225
|
+
te[j] = y, p = j;
|
|
226
226
|
}
|
|
227
227
|
return !v && p && (C = p), p || !v && C;
|
|
228
|
-
}, S = function(u,
|
|
228
|
+
}, S = function(u, y) {
|
|
229
229
|
if (K(u)) return u.clone();
|
|
230
|
-
var i = typeof
|
|
230
|
+
var i = typeof y == "object" ? y : {};
|
|
231
231
|
return i.date = u, i.args = arguments, new Y(i);
|
|
232
232
|
}, h = oe;
|
|
233
|
-
h.l = me, h.i = K, h.w = function(u,
|
|
234
|
-
return S(u, { locale:
|
|
233
|
+
h.l = me, h.i = K, h.w = function(u, y) {
|
|
234
|
+
return S(u, { locale: y.$L, utc: y.$u, x: y.$x, $offset: y.$offset });
|
|
235
235
|
};
|
|
236
236
|
var Y = function() {
|
|
237
237
|
function u(i) {
|
|
238
238
|
this.$L = me(i.locale, null, !0), this.parse(i), this.$x = this.$x || i.x || {}, this[J] = !0;
|
|
239
239
|
}
|
|
240
|
-
var
|
|
241
|
-
return
|
|
240
|
+
var y = u.prototype;
|
|
241
|
+
return y.parse = function(i) {
|
|
242
242
|
this.$d = function(v) {
|
|
243
243
|
var p = v.date, _ = v.utc;
|
|
244
244
|
if (p === null) return /* @__PURE__ */ new Date(NaN);
|
|
@@ -253,30 +253,30 @@ var Ze = { exports: {} };
|
|
|
253
253
|
}
|
|
254
254
|
return new Date(p);
|
|
255
255
|
}(i), this.init();
|
|
256
|
-
},
|
|
256
|
+
}, y.init = function() {
|
|
257
257
|
var i = this.$d;
|
|
258
258
|
this.$y = i.getFullYear(), this.$M = i.getMonth(), this.$D = i.getDate(), this.$W = i.getDay(), this.$H = i.getHours(), this.$m = i.getMinutes(), this.$s = i.getSeconds(), this.$ms = i.getMilliseconds();
|
|
259
|
-
},
|
|
259
|
+
}, y.$utils = function() {
|
|
260
260
|
return h;
|
|
261
|
-
},
|
|
261
|
+
}, y.isValid = function() {
|
|
262
262
|
return this.$d.toString() !== ee;
|
|
263
|
-
},
|
|
263
|
+
}, y.isSame = function(i, v) {
|
|
264
264
|
var p = S(i);
|
|
265
265
|
return this.startOf(v) <= p && p <= this.endOf(v);
|
|
266
|
-
},
|
|
266
|
+
}, y.isAfter = function(i, v) {
|
|
267
267
|
return S(i) < this.startOf(v);
|
|
268
|
-
},
|
|
268
|
+
}, y.isBefore = function(i, v) {
|
|
269
269
|
return this.endOf(v) < S(i);
|
|
270
|
-
},
|
|
270
|
+
}, y.$g = function(i, v, p) {
|
|
271
271
|
return h.u(i) ? this[v] : this.set(p, i);
|
|
272
|
-
},
|
|
272
|
+
}, y.unix = function() {
|
|
273
273
|
return Math.floor(this.valueOf() / 1e3);
|
|
274
|
-
},
|
|
274
|
+
}, y.valueOf = function() {
|
|
275
275
|
return this.$d.getTime();
|
|
276
|
-
},
|
|
276
|
+
}, y.startOf = function(i, v) {
|
|
277
277
|
var p = this, _ = !!h.u(v) || v, T = h.p(i), j = function(ne, ae) {
|
|
278
278
|
var ve = h.w(p.$u ? Date.UTC(p.$y, ae, ne) : new Date(p.$y, ae, ne), p);
|
|
279
|
-
return _ ? ve : ve.endOf(
|
|
279
|
+
return _ ? ve : ve.endOf(b);
|
|
280
280
|
}, L = function(ne, ae) {
|
|
281
281
|
return h.w(p.toDate()[ne].apply(p.toDate("s"), (_ ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ae)), p);
|
|
282
282
|
}, o = this.$W, r = this.$M, l = this.$D, k = "set" + (this.$u ? "UTC" : "");
|
|
@@ -288,10 +288,10 @@ var Ze = { exports: {} };
|
|
|
288
288
|
case M:
|
|
289
289
|
var F = this.$locale().weekStart || 0, H = (o < F ? o + 7 : o) - F;
|
|
290
290
|
return j(_ ? l - H : l + (6 - H), r);
|
|
291
|
-
case
|
|
291
|
+
case b:
|
|
292
292
|
case m:
|
|
293
293
|
return L(k + "Hours", 0);
|
|
294
|
-
case
|
|
294
|
+
case D:
|
|
295
295
|
return L(k + "Minutes", 1);
|
|
296
296
|
case I:
|
|
297
297
|
return L(k + "Seconds", 2);
|
|
@@ -300,20 +300,20 @@ var Ze = { exports: {} };
|
|
|
300
300
|
default:
|
|
301
301
|
return this.clone();
|
|
302
302
|
}
|
|
303
|
-
},
|
|
303
|
+
}, y.endOf = function(i) {
|
|
304
304
|
return this.startOf(i, !1);
|
|
305
|
-
},
|
|
306
|
-
var p, _ = h.p(i), T = "set" + (this.$u ? "UTC" : ""), j = (p = {}, p[
|
|
305
|
+
}, y.$set = function(i, v) {
|
|
306
|
+
var p, _ = h.p(i), T = "set" + (this.$u ? "UTC" : ""), j = (p = {}, p[b] = T + "Date", p[m] = T + "Date", p[q] = T + "Month", p[V] = T + "FullYear", p[D] = T + "Hours", p[I] = T + "Minutes", p[E] = T + "Seconds", p[f] = T + "Milliseconds", p)[_], L = _ === b ? this.$D + (v - this.$W) : v;
|
|
307
307
|
if (_ === q || _ === V) {
|
|
308
308
|
var o = this.clone().set(m, 1);
|
|
309
309
|
o.$d[j](L), o.init(), this.$d = o.set(m, Math.min(this.$D, o.daysInMonth())).$d;
|
|
310
310
|
} else j && this.$d[j](L);
|
|
311
311
|
return this.init(), this;
|
|
312
|
-
},
|
|
312
|
+
}, y.set = function(i, v) {
|
|
313
313
|
return this.clone().$set(i, v);
|
|
314
|
-
},
|
|
314
|
+
}, y.get = function(i) {
|
|
315
315
|
return this[h.p(i)]();
|
|
316
|
-
},
|
|
316
|
+
}, y.add = function(i, v) {
|
|
317
317
|
var p, _ = this;
|
|
318
318
|
i = Number(i);
|
|
319
319
|
var T = h.p(v), j = function(r) {
|
|
@@ -322,13 +322,13 @@ var Ze = { exports: {} };
|
|
|
322
322
|
};
|
|
323
323
|
if (T === q) return this.set(q, this.$M + i);
|
|
324
324
|
if (T === V) return this.set(V, this.$y + i);
|
|
325
|
-
if (T ===
|
|
325
|
+
if (T === b) return j(1);
|
|
326
326
|
if (T === M) return j(7);
|
|
327
|
-
var L = (p = {}, p[I] = e, p[
|
|
327
|
+
var L = (p = {}, p[I] = e, p[D] = n, p[E] = t, p)[T] || 1, o = this.$d.getTime() + i * L;
|
|
328
328
|
return h.w(o, this);
|
|
329
|
-
},
|
|
329
|
+
}, y.subtract = function(i, v) {
|
|
330
330
|
return this.add(-1 * i, v);
|
|
331
|
-
},
|
|
331
|
+
}, y.format = function(i) {
|
|
332
332
|
var v = this, p = this.$locale();
|
|
333
333
|
if (!this.isValid()) return p.invalidDate || ee;
|
|
334
334
|
var _ = i || "YYYY-MM-DDTHH:mm:ssZ", T = h.z(this), j = this.$H, L = this.$m, o = this.$M, r = p.weekdays, l = p.months, k = p.meridiem, F = function(ae, ve, Ee, we) {
|
|
@@ -394,9 +394,9 @@ var Ze = { exports: {} };
|
|
|
394
394
|
return null;
|
|
395
395
|
}(ae) || T.replace(":", "");
|
|
396
396
|
});
|
|
397
|
-
},
|
|
397
|
+
}, y.utcOffset = function() {
|
|
398
398
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
399
|
-
},
|
|
399
|
+
}, y.diff = function(i, v, p) {
|
|
400
400
|
var _, T = this, j = h.p(v), L = S(i), o = (L.utcOffset() - this.utcOffset()) * e, r = this - L, l = function() {
|
|
401
401
|
return h.m(T, L);
|
|
402
402
|
};
|
|
@@ -413,10 +413,10 @@ var Ze = { exports: {} };
|
|
|
413
413
|
case M:
|
|
414
414
|
_ = (r - o) / 6048e5;
|
|
415
415
|
break;
|
|
416
|
-
case
|
|
416
|
+
case b:
|
|
417
417
|
_ = (r - o) / 864e5;
|
|
418
418
|
break;
|
|
419
|
-
case
|
|
419
|
+
case D:
|
|
420
420
|
_ = r / n;
|
|
421
421
|
break;
|
|
422
422
|
case I:
|
|
@@ -429,39 +429,39 @@ var Ze = { exports: {} };
|
|
|
429
429
|
_ = r;
|
|
430
430
|
}
|
|
431
431
|
return p ? _ : h.a(_);
|
|
432
|
-
},
|
|
432
|
+
}, y.daysInMonth = function() {
|
|
433
433
|
return this.endOf(q).$D;
|
|
434
|
-
},
|
|
434
|
+
}, y.$locale = function() {
|
|
435
435
|
return te[this.$L];
|
|
436
|
-
},
|
|
436
|
+
}, y.locale = function(i, v) {
|
|
437
437
|
if (!i) return this.$L;
|
|
438
438
|
var p = this.clone(), _ = me(i, v, !0);
|
|
439
439
|
return _ && (p.$L = _), p;
|
|
440
|
-
},
|
|
440
|
+
}, y.clone = function() {
|
|
441
441
|
return h.w(this.$d, this);
|
|
442
|
-
},
|
|
442
|
+
}, y.toDate = function() {
|
|
443
443
|
return new Date(this.valueOf());
|
|
444
|
-
},
|
|
444
|
+
}, y.toJSON = function() {
|
|
445
445
|
return this.isValid() ? this.toISOString() : null;
|
|
446
|
-
},
|
|
446
|
+
}, y.toISOString = function() {
|
|
447
447
|
return this.$d.toISOString();
|
|
448
|
-
},
|
|
448
|
+
}, y.toString = function() {
|
|
449
449
|
return this.$d.toUTCString();
|
|
450
450
|
}, u;
|
|
451
451
|
}(), z = Y.prototype;
|
|
452
|
-
return S.prototype = z, [["$ms", f], ["$s", E], ["$m", I], ["$H",
|
|
453
|
-
z[u[1]] = function(
|
|
454
|
-
return this.$g(
|
|
452
|
+
return S.prototype = z, [["$ms", f], ["$s", E], ["$m", I], ["$H", D], ["$W", b], ["$M", q], ["$y", V], ["$D", m]].forEach(function(u) {
|
|
453
|
+
z[u[1]] = function(y) {
|
|
454
|
+
return this.$g(y, u[0], u[1]);
|
|
455
455
|
};
|
|
456
|
-
}), S.extend = function(u,
|
|
457
|
-
return u.$i || (u(
|
|
456
|
+
}), S.extend = function(u, y) {
|
|
457
|
+
return u.$i || (u(y, Y, S), u.$i = !0), S;
|
|
458
458
|
}, S.locale = me, S.isDayjs = K, S.unix = function(u) {
|
|
459
459
|
return S(1e3 * u);
|
|
460
460
|
}, S.en = te[C], S.Ls = te, S.p = {}, S;
|
|
461
461
|
});
|
|
462
462
|
})(Ze);
|
|
463
|
-
var
|
|
464
|
-
const Ae = /* @__PURE__ */ ht(
|
|
463
|
+
var yt = Ze.exports;
|
|
464
|
+
const Ae = /* @__PURE__ */ ht(yt), bt = {
|
|
465
465
|
style: { display: "flex", width: "100%" },
|
|
466
466
|
class: "g-ctrl-container"
|
|
467
467
|
}, gt = {
|
|
@@ -469,13 +469,13 @@ const Ae = /* @__PURE__ */ ht(bt), yt = {
|
|
|
469
469
|
style: { position: "relative" }
|
|
470
470
|
}, $t = ["title"], _e = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
471
471
|
__name: "g-ctrl",
|
|
472
|
-
props: /* @__PURE__ */
|
|
472
|
+
props: /* @__PURE__ */ Ve(["t", "ctrlKey", "item", "model", "ctrlType"], {
|
|
473
473
|
modelValue: { required: !0 },
|
|
474
474
|
modelModifiers: {}
|
|
475
475
|
}),
|
|
476
476
|
emits: ["update:modelValue"],
|
|
477
477
|
setup(c) {
|
|
478
|
-
const s =
|
|
478
|
+
const s = Ce(c, "modelValue"), t = c, e = t.item || {}, n = t.ctrlKey, f = t.ctrlType, E = t.model, I = ye([]), D = () => Object.keys(rt()).filter((V) => V.startsWith(`${t.t}-${n}-`)).map((V) => V.replace(`${t.t}-${n}-`, "")), b = {
|
|
479
479
|
filterable: !0,
|
|
480
480
|
remote: !!(e && e["remote-method"]),
|
|
481
481
|
...e
|
|
@@ -483,7 +483,7 @@ const Ae = /* @__PURE__ */ ht(bt), yt = {
|
|
|
483
483
|
e["remote-method"](V, (m) => {
|
|
484
484
|
E[n].options = m;
|
|
485
485
|
});
|
|
486
|
-
}, q =
|
|
486
|
+
}, q = ye(!1), B = async (V = "options") => {
|
|
487
487
|
try {
|
|
488
488
|
const m = await (e == null ? void 0 : e.getDicts(E));
|
|
489
489
|
E[n][V] = m, q.value = !0;
|
|
@@ -492,7 +492,7 @@ const Ae = /* @__PURE__ */ ht(bt), yt = {
|
|
|
492
492
|
}
|
|
493
493
|
};
|
|
494
494
|
return Fe(async () => {
|
|
495
|
-
e && e["remote-method"] && (
|
|
495
|
+
e && e["remote-method"] && (b["remote-method"] = M);
|
|
496
496
|
const V = (ee, ce = "options", ge = E[n]) => {
|
|
497
497
|
typeof e.getDicts == "function" && B(ce).catch((g) => {
|
|
498
498
|
console.error(`Failed to load ${ce} for ${ee}:`, g);
|
|
@@ -507,16 +507,16 @@ const Ae = /* @__PURE__ */ ht(bt), yt = {
|
|
|
507
507
|
})();
|
|
508
508
|
}), (V, m) => {
|
|
509
509
|
var o, r;
|
|
510
|
-
const ee = A("el-radio"), ce = A("el-radio-group"), ge = A("el-radio-button"), g = A("el-checkbox"), U = A("el-checkbox-group"), oe = A("el-checkbox-button"), C = A("el-option"), te = A("el-option-group"), J = A("el-select"), K = A("el-tree-select"), me = A("el-time-picker"), S = A("el-time-select"), h = A("el-date-picker"), Y = A("el-color-picker"), z = A("el-rate"), u = A("el-slider"),
|
|
511
|
-
return w(), le("div",
|
|
512
|
-
a(f) == a(re).RADIO ? (w(), O(ce,
|
|
510
|
+
const ee = A("el-radio"), ce = A("el-radio-group"), ge = A("el-radio-button"), g = A("el-checkbox"), U = A("el-checkbox-group"), oe = A("el-checkbox-button"), C = A("el-option"), te = A("el-option-group"), J = A("el-select"), K = A("el-tree-select"), me = A("el-time-picker"), S = A("el-time-select"), h = A("el-date-picker"), Y = A("el-color-picker"), z = A("el-rate"), u = A("el-slider"), y = A("el-switch"), i = A("el-transfer"), v = A("el-cascader"), p = A("el-button"), _ = A("el-upload"), T = A("el-autocomplete"), j = A("el-input-number"), L = A("el-input");
|
|
511
|
+
return w(), le("div", bt, [
|
|
512
|
+
a(f) == a(re).RADIO ? (w(), O(ce, x({
|
|
513
513
|
key: 0,
|
|
514
514
|
modelValue: s.value,
|
|
515
515
|
"onUpdate:modelValue": m[0] || (m[0] = (l) => s.value = l)
|
|
516
516
|
}, a(e)), {
|
|
517
517
|
default: d(() => [
|
|
518
518
|
$(V.$slots, `${t.t}-${a(n)}`, { data: a(e) }, () => [
|
|
519
|
-
(w(!0), le(fe, null, P(a(E)[a(n)].options, (l) => (w(), O(ee,
|
|
519
|
+
(w(!0), le(fe, null, P(a(E)[a(n)].options, (l) => (w(), O(ee, x({ ref_for: !0 }, l), {
|
|
520
520
|
default: d(() => [
|
|
521
521
|
$(V.$slots, `${t.t}-${a(n)}-options`, { option: l })
|
|
522
522
|
]),
|
|
@@ -525,14 +525,14 @@ const Ae = /* @__PURE__ */ ht(bt), yt = {
|
|
|
525
525
|
])
|
|
526
526
|
]),
|
|
527
527
|
_: 3
|
|
528
|
-
}, 16, ["modelValue"])) : a(f) == a(re).RADIOBUTTON ? (w(), O(ce,
|
|
528
|
+
}, 16, ["modelValue"])) : a(f) == a(re).RADIOBUTTON ? (w(), O(ce, x({
|
|
529
529
|
key: 1,
|
|
530
530
|
modelValue: s.value,
|
|
531
531
|
"onUpdate:modelValue": m[1] || (m[1] = (l) => s.value = l)
|
|
532
532
|
}, a(e)), {
|
|
533
533
|
default: d(() => [
|
|
534
534
|
$(V.$slots, `${t.t}-${a(n)}`, { data: a(e) }, () => [
|
|
535
|
-
(w(!0), le(fe, null, P(a(E)[a(n)].options, (l) => (w(), O(ge,
|
|
535
|
+
(w(!0), le(fe, null, P(a(E)[a(n)].options, (l) => (w(), O(ge, x({ ref_for: !0 }, l), {
|
|
536
536
|
default: d(() => [
|
|
537
537
|
$(V.$slots, `${t.t}-${a(n)}-options`, { option: l })
|
|
538
538
|
]),
|
|
@@ -541,7 +541,7 @@ const Ae = /* @__PURE__ */ ht(bt), yt = {
|
|
|
541
541
|
])
|
|
542
542
|
]),
|
|
543
543
|
_: 3
|
|
544
|
-
}, 16, ["modelValue"])) : a(f) == a(re).CHECKBOX ? (w(), O(g,
|
|
544
|
+
}, 16, ["modelValue"])) : a(f) == a(re).CHECKBOX ? (w(), O(g, x({
|
|
545
545
|
key: 2,
|
|
546
546
|
modelValue: s.value,
|
|
547
547
|
"onUpdate:modelValue": m[2] || (m[2] = (l) => s.value = l)
|
|
@@ -552,14 +552,14 @@ const Ae = /* @__PURE__ */ ht(bt), yt = {
|
|
|
552
552
|
])
|
|
553
553
|
]),
|
|
554
554
|
_: 3
|
|
555
|
-
}, 16, ["modelValue"])) : a(f) == a(re).CHECKBOXGROUP ? (w(), O(U,
|
|
555
|
+
}, 16, ["modelValue"])) : a(f) == a(re).CHECKBOXGROUP ? (w(), O(U, x({
|
|
556
556
|
key: 3,
|
|
557
557
|
modelValue: s.value,
|
|
558
558
|
"onUpdate:modelValue": m[3] || (m[3] = (l) => s.value = l)
|
|
559
559
|
}, a(e)), {
|
|
560
560
|
default: d(() => [
|
|
561
561
|
$(V.$slots, `${t.t}-${a(n)}`, { data: a(e) }, () => [
|
|
562
|
-
(w(!0), le(fe, null, P(a(E)[a(n)].options, (l) => (w(), O(g,
|
|
562
|
+
(w(!0), le(fe, null, P(a(E)[a(n)].options, (l) => (w(), O(g, x({ ref_for: !0 }, l), {
|
|
563
563
|
default: d(() => [
|
|
564
564
|
$(V.$slots, `${t.t}-${a(n)}-options`, { option: l }, () => [
|
|
565
565
|
se(Z(l.label), 1)
|
|
@@ -570,14 +570,14 @@ const Ae = /* @__PURE__ */ ht(bt), yt = {
|
|
|
570
570
|
])
|
|
571
571
|
]),
|
|
572
572
|
_: 3
|
|
573
|
-
}, 16, ["modelValue"])) : a(f) == a(re).CHECKBOXGROUPBUTTON ? (w(), O(U,
|
|
573
|
+
}, 16, ["modelValue"])) : a(f) == a(re).CHECKBOXGROUPBUTTON ? (w(), O(U, x({
|
|
574
574
|
key: 4,
|
|
575
575
|
modelValue: s.value,
|
|
576
576
|
"onUpdate:modelValue": m[4] || (m[4] = (l) => s.value = l)
|
|
577
577
|
}, a(e)), {
|
|
578
578
|
default: d(() => [
|
|
579
579
|
$(V.$slots, `${t.t}-${a(n)}`, { data: a(e) }, () => [
|
|
580
|
-
(w(!0), le(fe, null, P(a(E)[a(n)].options, (l) => (w(), O(oe,
|
|
580
|
+
(w(!0), le(fe, null, P(a(E)[a(n)].options, (l) => (w(), O(oe, x({ ref_for: !0 }, l), {
|
|
581
581
|
default: d(() => [
|
|
582
582
|
$(V.$slots, `${t.t}-${a(n)}-options`, { option: l })
|
|
583
583
|
]),
|
|
@@ -586,12 +586,12 @@ const Ae = /* @__PURE__ */ ht(bt), yt = {
|
|
|
586
586
|
])
|
|
587
587
|
]),
|
|
588
588
|
_: 3
|
|
589
|
-
}, 16, ["modelValue"])) : a(f) === a(re).SELECT ? (w(), O(J,
|
|
589
|
+
}, 16, ["modelValue"])) : a(f) === a(re).SELECT ? (w(), O(J, x({
|
|
590
590
|
key: 5,
|
|
591
591
|
modelValue: s.value,
|
|
592
592
|
"onUpdate:modelValue": m[5] || (m[5] = (l) => s.value = l),
|
|
593
593
|
placeholder: a(E)[a(n)].label
|
|
594
|
-
},
|
|
594
|
+
}, b), Q({
|
|
595
595
|
default: d(() => [
|
|
596
596
|
$(V.$slots, `${t.t}-${a(n)}`, {
|
|
597
597
|
options: a(E)[a(n)].options
|
|
@@ -603,9 +603,9 @@ const Ae = /* @__PURE__ */ ht(bt), yt = {
|
|
|
603
603
|
label: F.label
|
|
604
604
|
}, {
|
|
605
605
|
default: d(() => [
|
|
606
|
-
(w(!0), le(fe, null, P(F.options, (H) => (w(), O(C,
|
|
606
|
+
(w(!0), le(fe, null, P(F.options, (H) => (w(), O(C, x({ ref_for: !0 }, H, {
|
|
607
607
|
key: H.value,
|
|
608
|
-
onClick: (ne) =>
|
|
608
|
+
onClick: (ne) => b.change && b.change(H)
|
|
609
609
|
}), {
|
|
610
610
|
default: d(() => [
|
|
611
611
|
$(V.$slots, `${t.t}-${a(n)}-options`, { option: H })
|
|
@@ -614,9 +614,9 @@ const Ae = /* @__PURE__ */ ht(bt), yt = {
|
|
|
614
614
|
}, 1040, ["onClick"]))), 128))
|
|
615
615
|
]),
|
|
616
616
|
_: 2
|
|
617
|
-
}, 1032, ["label"]))), 128)) : (w(!0), le(fe, { key: 1 }, P(a(E)[a(n)].options, (F) => (w(), O(C,
|
|
617
|
+
}, 1032, ["label"]))), 128)) : (w(!0), le(fe, { key: 1 }, P(a(E)[a(n)].options, (F) => (w(), O(C, x({ ref_for: !0 }, F, {
|
|
618
618
|
key: F.value,
|
|
619
|
-
onClick: (H) =>
|
|
619
|
+
onClick: (H) => b.change && b.change(F)
|
|
620
620
|
}), {
|
|
621
621
|
default: d(() => [
|
|
622
622
|
$(V.$slots, `${t.t}-${a(n)}-options`, { option: F })
|
|
@@ -628,32 +628,32 @@ const Ae = /* @__PURE__ */ ht(bt), yt = {
|
|
|
628
628
|
]),
|
|
629
629
|
_: 2
|
|
630
630
|
}, [
|
|
631
|
-
P(
|
|
631
|
+
P(D(), (l) => ({
|
|
632
632
|
name: l,
|
|
633
633
|
fn: d((k) => [
|
|
634
634
|
$(V.$slots, `${t.t}-${a(n)}-${l}`, { data: k })
|
|
635
635
|
])
|
|
636
636
|
}))
|
|
637
|
-
]), 1040, ["modelValue", "placeholder"])) : a(f) == a(re).TREESELECT ? (w(), O(K,
|
|
637
|
+
]), 1040, ["modelValue", "placeholder"])) : a(f) == a(re).TREESELECT ? (w(), O(K, x({
|
|
638
638
|
key: 6,
|
|
639
639
|
modelValue: s.value,
|
|
640
640
|
"onUpdate:modelValue": m[6] || (m[6] = (l) => s.value = l),
|
|
641
641
|
placeholder: a(E)[a(n)].label
|
|
642
642
|
}, a(e), { data: I.value }), Q({ _: 2 }, [
|
|
643
|
-
P(
|
|
643
|
+
P(D(), (l) => ({
|
|
644
644
|
name: l,
|
|
645
645
|
fn: d((k) => [
|
|
646
646
|
$(V.$slots, `${t.t}-${a(n)}-${l}`, { data: k })
|
|
647
647
|
])
|
|
648
648
|
}))
|
|
649
|
-
]), 1040, ["modelValue", "placeholder", "data"])) : a(f) == a(re).TIME ? (w(), O(me,
|
|
649
|
+
]), 1040, ["modelValue", "placeholder", "data"])) : a(f) == a(re).TIME ? (w(), O(me, x({
|
|
650
650
|
key: 7,
|
|
651
651
|
modelValue: s.value,
|
|
652
652
|
"onUpdate:modelValue": m[7] || (m[7] = (l) => s.value = l),
|
|
653
653
|
"arrow-control": ""
|
|
654
654
|
}, a(e), {
|
|
655
655
|
placeholder: a(E)[a(n)].label
|
|
656
|
-
}), null, 16, ["modelValue", "placeholder"])) : a(f) == a(re).TIMESELECT ? (w(), O(S,
|
|
656
|
+
}), null, 16, ["modelValue", "placeholder"])) : a(f) == a(re).TIMESELECT ? (w(), O(S, x({
|
|
657
657
|
key: 8,
|
|
658
658
|
modelValue: s.value,
|
|
659
659
|
"onUpdate:modelValue": m[8] || (m[8] = (l) => s.value = l),
|
|
@@ -661,80 +661,80 @@ const Ae = /* @__PURE__ */ ht(bt), yt = {
|
|
|
661
661
|
step: "00:15",
|
|
662
662
|
end: "23:30",
|
|
663
663
|
placeholder: a(E)[a(n)].label
|
|
664
|
-
}, a(e)), null, 16, ["modelValue", "placeholder"])) : a(f) == a(re).DATE ? (w(), O(h,
|
|
664
|
+
}, a(e)), null, 16, ["modelValue", "placeholder"])) : a(f) == a(re).DATE ? (w(), O(h, x({
|
|
665
665
|
key: 9,
|
|
666
666
|
modelValue: s.value,
|
|
667
667
|
"onUpdate:modelValue": m[9] || (m[9] = (l) => s.value = l),
|
|
668
668
|
type: "date",
|
|
669
669
|
placeholder: a(E)[a(n)].label
|
|
670
670
|
}, a(e)), Q({ _: 2 }, [
|
|
671
|
-
P(
|
|
671
|
+
P(D(), (l) => ({
|
|
672
672
|
name: l,
|
|
673
673
|
fn: d((k) => [
|
|
674
674
|
$(V.$slots, `${t.t}-${a(n)}-${l}`, { data: k })
|
|
675
675
|
])
|
|
676
676
|
}))
|
|
677
|
-
]), 1040, ["modelValue", "placeholder"])) : a(f) == a(re).DATETIME ? (w(), O(h,
|
|
677
|
+
]), 1040, ["modelValue", "placeholder"])) : a(f) == a(re).DATETIME ? (w(), O(h, x({
|
|
678
678
|
key: 10,
|
|
679
679
|
modelValue: s.value,
|
|
680
680
|
"onUpdate:modelValue": m[10] || (m[10] = (l) => s.value = l),
|
|
681
681
|
type: a(re).DATETIME,
|
|
682
682
|
placeholder: a(E)[a(n)].label
|
|
683
683
|
}, a(e)), Q({ _: 2 }, [
|
|
684
|
-
P(
|
|
684
|
+
P(D(), (l) => ({
|
|
685
685
|
name: l,
|
|
686
686
|
fn: d((k) => [
|
|
687
687
|
$(V.$slots, `${t.t}-${a(n)}-${l}`, { data: k })
|
|
688
688
|
])
|
|
689
689
|
}))
|
|
690
|
-
]), 1040, ["modelValue", "type", "placeholder"])) : a(f) == a(re).COLOR ? (w(), O(Y,
|
|
690
|
+
]), 1040, ["modelValue", "type", "placeholder"])) : a(f) == a(re).COLOR ? (w(), O(Y, x({
|
|
691
691
|
key: 11,
|
|
692
692
|
modelValue: s.value,
|
|
693
693
|
"onUpdate:modelValue": m[11] || (m[11] = (l) => s.value = l)
|
|
694
|
-
}, a(e)), null, 16, ["modelValue"])) : a(f) == a(re).RATE ? (w(), O(z,
|
|
694
|
+
}, a(e)), null, 16, ["modelValue"])) : a(f) == a(re).RATE ? (w(), O(z, x({
|
|
695
695
|
key: 12,
|
|
696
696
|
modelValue: s.value,
|
|
697
697
|
"onUpdate:modelValue": m[12] || (m[12] = (l) => s.value = l)
|
|
698
|
-
}, a(e)), null, 16, ["modelValue"])) : a(f) == a(re).SLIDER ? (w(), O(u,
|
|
698
|
+
}, a(e)), null, 16, ["modelValue"])) : a(f) == a(re).SLIDER ? (w(), O(u, x({
|
|
699
699
|
key: 13,
|
|
700
700
|
modelValue: s.value,
|
|
701
701
|
"onUpdate:modelValue": m[13] || (m[13] = (l) => s.value = l)
|
|
702
|
-
}, a(e)), null, 16, ["modelValue"])) : a(f) == a(re).SWITCH ? (w(), O(
|
|
702
|
+
}, a(e)), null, 16, ["modelValue"])) : a(f) == a(re).SWITCH ? (w(), O(y, x({
|
|
703
703
|
key: 14,
|
|
704
704
|
modelValue: s.value,
|
|
705
705
|
"onUpdate:modelValue": m[14] || (m[14] = (l) => s.value = l)
|
|
706
706
|
}, a(e)), Q({ _: 2 }, [
|
|
707
|
-
P(
|
|
707
|
+
P(D(), (l) => ({
|
|
708
708
|
name: l,
|
|
709
709
|
fn: d((k) => [
|
|
710
710
|
$(V.$slots, `${t.t}-${a(n)}-${l}`, { data: k })
|
|
711
711
|
])
|
|
712
712
|
}))
|
|
713
|
-
]), 1040, ["modelValue"])) : a(f) == a(re).TRANSFER ? (w(), O(i,
|
|
713
|
+
]), 1040, ["modelValue"])) : a(f) == a(re).TRANSFER ? (w(), O(i, x({
|
|
714
714
|
key: 15,
|
|
715
715
|
modelValue: s.value,
|
|
716
716
|
"onUpdate:modelValue": m[15] || (m[15] = (l) => s.value = l)
|
|
717
717
|
}, a(e)), Q({ _: 2 }, [
|
|
718
|
-
P(
|
|
718
|
+
P(D(), (l) => ({
|
|
719
719
|
name: l,
|
|
720
720
|
fn: d((k) => [
|
|
721
721
|
$(V.$slots, `${t.t}-${a(n)}-${l}`, { data: k })
|
|
722
722
|
])
|
|
723
723
|
}))
|
|
724
|
-
]), 1040, ["modelValue"])) : a(f) == a(re).CASCADER ? (w(), O(v,
|
|
724
|
+
]), 1040, ["modelValue"])) : a(f) == a(re).CASCADER ? (w(), O(v, x({
|
|
725
725
|
key: 16,
|
|
726
726
|
modelValue: s.value,
|
|
727
727
|
"onUpdate:modelValue": m[16] || (m[16] = (l) => s.value = l)
|
|
728
728
|
}, a(e), {
|
|
729
729
|
options: a(E)[a(n)].options
|
|
730
730
|
}), Q({ _: 2 }, [
|
|
731
|
-
P(
|
|
731
|
+
P(D(), (l) => ({
|
|
732
732
|
name: l,
|
|
733
733
|
fn: d((k) => [
|
|
734
734
|
$(V.$slots, `${t.t}-${a(n)}-${l}`, { data: k })
|
|
735
735
|
])
|
|
736
736
|
}))
|
|
737
|
-
]), 1040, ["modelValue", "options"])) : a(f) == a(re).IMAGE ? (w(), O(_,
|
|
737
|
+
]), 1040, ["modelValue", "options"])) : a(f) == a(re).IMAGE ? (w(), O(_, ke(x({ key: 17 }, a(e))), Q({
|
|
738
738
|
default: d(() => [
|
|
739
739
|
R(p, { type: "primary" }, {
|
|
740
740
|
default: d(() => m[22] || (m[22] = [
|
|
@@ -745,26 +745,26 @@ const Ae = /* @__PURE__ */ ht(bt), yt = {
|
|
|
745
745
|
]),
|
|
746
746
|
_: 2
|
|
747
747
|
}, [
|
|
748
|
-
P(
|
|
748
|
+
P(D(), (l, k) => ({
|
|
749
749
|
name: l,
|
|
750
750
|
fn: d((F) => [
|
|
751
751
|
$(V.$slots, `${t.t}-${a(n)}-${l}`, { data: F })
|
|
752
752
|
])
|
|
753
753
|
}))
|
|
754
|
-
]), 1040)) : a(f) == a(re).AUTOCOMPLETE ? (w(), O(T,
|
|
754
|
+
]), 1040)) : a(f) == a(re).AUTOCOMPLETE ? (w(), O(T, x({
|
|
755
755
|
key: 18,
|
|
756
756
|
modelValue: s.value,
|
|
757
757
|
"onUpdate:modelValue": m[17] || (m[17] = (l) => s.value = l)
|
|
758
758
|
}, a(e), {
|
|
759
759
|
placeholder: a(E)[a(n)].label
|
|
760
760
|
}), Q({ _: 2 }, [
|
|
761
|
-
P(
|
|
761
|
+
P(D(), (l, k) => ({
|
|
762
762
|
name: l,
|
|
763
763
|
fn: d((F) => [
|
|
764
764
|
$(V.$slots, `${t.t}-${a(n)}-${l}`, { data: F })
|
|
765
765
|
])
|
|
766
766
|
}))
|
|
767
|
-
]), 1040, ["modelValue", "placeholder"])) : a(f) == a(re).INPUTNUMBER ? (w(), O(j,
|
|
767
|
+
]), 1040, ["modelValue", "placeholder"])) : a(f) == a(re).INPUTNUMBER ? (w(), O(j, x({
|
|
768
768
|
key: 19,
|
|
769
769
|
modelValue: s.value,
|
|
770
770
|
"onUpdate:modelValue": m[18] || (m[18] = (l) => s.value = l),
|
|
@@ -772,14 +772,14 @@ const Ae = /* @__PURE__ */ ht(bt), yt = {
|
|
|
772
772
|
max: 1e8,
|
|
773
773
|
placeholder: a(E)[a(n)].label
|
|
774
774
|
}, a(e)), Q({ _: 2 }, [
|
|
775
|
-
P(
|
|
775
|
+
P(D(), (l, k) => ({
|
|
776
776
|
name: l,
|
|
777
777
|
fn: d((F) => [
|
|
778
778
|
$(V.$slots, `${t.t}-${a(n)}-${l}`, { data: F })
|
|
779
779
|
])
|
|
780
780
|
}))
|
|
781
781
|
]), 1040, ["modelValue", "placeholder"])) : a(f) == a(re).MONEY ? (w(), le("div", gt, [
|
|
782
|
-
R(L,
|
|
782
|
+
R(L, x({
|
|
783
783
|
modelValue: s.value,
|
|
784
784
|
"onUpdate:modelValue": m[19] || (m[19] = (l) => s.value = l),
|
|
785
785
|
placeholder: a(E)[a(n)].label,
|
|
@@ -796,14 +796,14 @@ const Ae = /* @__PURE__ */ ht(bt), yt = {
|
|
|
796
796
|
]),
|
|
797
797
|
key: "0"
|
|
798
798
|
} : void 0,
|
|
799
|
-
P(
|
|
799
|
+
P(D(), (l, k) => ({
|
|
800
800
|
name: l,
|
|
801
801
|
fn: d((F) => [
|
|
802
802
|
$(V.$slots, `${t.t}-${a(n)}-${l}`, { data: F })
|
|
803
803
|
])
|
|
804
804
|
}))
|
|
805
805
|
]), 1040, ["modelValue", "placeholder", "type", "maxlength"])
|
|
806
|
-
])) : (w(), O(L,
|
|
806
|
+
])) : (w(), O(L, x({
|
|
807
807
|
key: 21,
|
|
808
808
|
modelValue: s.value,
|
|
809
809
|
"onUpdate:modelValue": m[20] || (m[20] = (l) => s.value = l),
|
|
@@ -811,7 +811,7 @@ const Ae = /* @__PURE__ */ ht(bt), yt = {
|
|
|
811
811
|
maxlength: ((r = a(e)) == null ? void 0 : r.max) || 25,
|
|
812
812
|
clearable: !0
|
|
813
813
|
}, { ...a(e), type: a(f) }), Q({ _: 2 }, [
|
|
814
|
-
P(
|
|
814
|
+
P(D(), (l, k) => ({
|
|
815
815
|
name: l,
|
|
816
816
|
fn: d((F) => [
|
|
817
817
|
$(V.$slots, `${t.t}-${a(n)}-${l}`, { data: F })
|
|
@@ -830,10 +830,10 @@ const Ae = /* @__PURE__ */ ht(bt), yt = {
|
|
|
830
830
|
modelValue: { required: !0 },
|
|
831
831
|
modelModifiers: {}
|
|
832
832
|
},
|
|
833
|
-
emits: /* @__PURE__ */
|
|
833
|
+
emits: /* @__PURE__ */ Ve(["submit", "reset"], ["update:modelValue"]),
|
|
834
834
|
setup(c, { emit: s }) {
|
|
835
835
|
var m, ee, ce, ge;
|
|
836
|
-
const t =
|
|
836
|
+
const t = Ce(c, "modelValue"), e = s, n = ye(null), f = Pe("options"), E = {
|
|
837
837
|
inline: !0,
|
|
838
838
|
type: "hidden",
|
|
839
839
|
"scroll-to-error": !0,
|
|
@@ -906,16 +906,16 @@ const Ae = /* @__PURE__ */ ht(bt), yt = {
|
|
|
906
906
|
f == null ? void 0 : f.formItems,
|
|
907
907
|
(ce = t == null ? void 0 : t.value) == null ? void 0 : ce.formItems
|
|
908
908
|
);
|
|
909
|
-
const
|
|
909
|
+
const D = {
|
|
910
910
|
span: 12,
|
|
911
911
|
offset: 0
|
|
912
912
|
};
|
|
913
913
|
t.value.form.cols = he(
|
|
914
|
-
|
|
914
|
+
D,
|
|
915
915
|
(ge = f == null ? void 0 : f.form) == null ? void 0 : ge.cols,
|
|
916
916
|
t.value.form.cols
|
|
917
917
|
);
|
|
918
|
-
const
|
|
918
|
+
const b = (g) => {
|
|
919
919
|
let U = [];
|
|
920
920
|
if (g.rules)
|
|
921
921
|
U = g.rules;
|
|
@@ -972,7 +972,7 @@ const Ae = /* @__PURE__ */ ht(bt), yt = {
|
|
|
972
972
|
});
|
|
973
973
|
return (g, U) => {
|
|
974
974
|
const oe = A("el-form-item"), C = A("el-col"), te = A("el-tab-pane"), J = A("el-tabs"), K = A("el-button"), me = A("el-form");
|
|
975
|
-
return w(), O(me,
|
|
975
|
+
return w(), O(me, x({
|
|
976
976
|
ref_key: "gform",
|
|
977
977
|
ref: n,
|
|
978
978
|
model: t.value,
|
|
@@ -982,14 +982,14 @@ const Ae = /* @__PURE__ */ ht(bt), yt = {
|
|
|
982
982
|
V.value.length > 0 ? $(g.$slots, "default", { key: 0 }, () => {
|
|
983
983
|
var S, h, Y;
|
|
984
984
|
return [
|
|
985
|
-
R(J,
|
|
985
|
+
R(J, x({
|
|
986
986
|
class: "demo-tabs",
|
|
987
987
|
modelValue: V.value[0].groupName,
|
|
988
988
|
"onUpdate:modelValue": U[0] || (U[0] = (z) => V.value[0].groupName = z),
|
|
989
989
|
style: { width: "100%" }
|
|
990
990
|
}, t.value.form.tabs), {
|
|
991
991
|
default: d(() => [
|
|
992
|
-
(w(!0), le(fe, null, P(V.value, (z) => (w(), O(te,
|
|
992
|
+
(w(!0), le(fe, null, P(V.value, (z) => (w(), O(te, x({
|
|
993
993
|
key: z.groupName,
|
|
994
994
|
label: z.groupName,
|
|
995
995
|
name: z.groupName,
|
|
@@ -997,17 +997,17 @@ const Ae = /* @__PURE__ */ ht(bt), yt = {
|
|
|
997
997
|
ref_for: !0
|
|
998
998
|
}, z.tabPane), {
|
|
999
999
|
default: d(() => [
|
|
1000
|
-
(w(!0), le(fe, null, P(z.items, (u,
|
|
1000
|
+
(w(!0), le(fe, null, P(z.items, (u, y) => (w(), O(C, x({ ref_for: !0 }, { ...t.value.form.cols, ...u == null ? void 0 : u.item.col }, {
|
|
1001
1001
|
key: u.key,
|
|
1002
1002
|
style: { width: "100%" }
|
|
1003
1003
|
}), {
|
|
1004
1004
|
default: d(() => {
|
|
1005
1005
|
var i, v;
|
|
1006
1006
|
return [
|
|
1007
|
-
R(oe,
|
|
1007
|
+
R(oe, x({
|
|
1008
1008
|
label: u == null ? void 0 : u.item.label,
|
|
1009
1009
|
prop: `${u.key}.value`,
|
|
1010
|
-
rules:
|
|
1010
|
+
rules: b(u == null ? void 0 : u.item),
|
|
1011
1011
|
ref_for: !0
|
|
1012
1012
|
}, { ...(i = t.value) == null ? void 0 : i.formItems, ...(v = u == null ? void 0 : u.item) == null ? void 0 : v.formItem }, { style: { width: "100%" } }), {
|
|
1013
1013
|
default: d(() => [
|
|
@@ -1097,13 +1097,13 @@ const Ae = /* @__PURE__ */ ht(bt), yt = {
|
|
|
1097
1097
|
_: 3
|
|
1098
1098
|
}, 16, ["modelValue"]),
|
|
1099
1099
|
(Y = (h = (S = t.value) == null ? void 0 : S.form) == null ? void 0 : h.footer) != null && Y.hidden ? ue("", !0) : $(g.$slots, "f-footer", { key: 0 }, () => {
|
|
1100
|
-
var z, u,
|
|
1100
|
+
var z, u, y, i, v, p;
|
|
1101
1101
|
return [
|
|
1102
1102
|
W("div", {
|
|
1103
|
-
style:
|
|
1103
|
+
style: Se(t.value.form.footer.style)
|
|
1104
1104
|
}, [
|
|
1105
1105
|
$(g.$slots, "f-footer-left"),
|
|
1106
|
-
(
|
|
1106
|
+
(y = (u = (z = t.value) == null ? void 0 : z.form) == null ? void 0 : u.submit) != null && y.hidden ? ue("", !0) : (w(), O(K, x({
|
|
1107
1107
|
key: 0,
|
|
1108
1108
|
onClick: U[1] || (U[1] = Xe((_) => t.value.form.submit.click(B.value, t.value), ["stop"]))
|
|
1109
1109
|
}, a(pe)(t.value.form.submit, (_) => !["click"].includes(_))), {
|
|
@@ -1115,7 +1115,7 @@ const Ae = /* @__PURE__ */ ht(bt), yt = {
|
|
|
1115
1115
|
}),
|
|
1116
1116
|
_: 1
|
|
1117
1117
|
}, 16)),
|
|
1118
|
-
(p = (v = (i = t.value) == null ? void 0 : i.form) == null ? void 0 : v.reset) != null && p.hidden ? ue("", !0) : (w(), O(K,
|
|
1118
|
+
(p = (v = (i = t.value) == null ? void 0 : i.form) == null ? void 0 : v.reset) != null && p.hidden ? ue("", !0) : (w(), O(K, x({
|
|
1119
1119
|
key: 1,
|
|
1120
1120
|
onClick: U[2] || (U[2] = (_) => t.value.form.reset.click(t.value))
|
|
1121
1121
|
}, a(pe)(t.value.form.reset, (_) => !["click"].includes(_))), {
|
|
@@ -1135,17 +1135,17 @@ const Ae = /* @__PURE__ */ ht(bt), yt = {
|
|
|
1135
1135
|
}) : $(g.$slots, "default", { key: 1 }, () => {
|
|
1136
1136
|
var S;
|
|
1137
1137
|
return [
|
|
1138
|
-
(w(!0), le(fe, null, P(q.value, (h, Y) => (w(), O(C,
|
|
1138
|
+
(w(!0), le(fe, null, P(q.value, (h, Y) => (w(), O(C, x({ ref_for: !0 }, { ...t.value.form.cols, ...h.col }, {
|
|
1139
1139
|
key: Y,
|
|
1140
1140
|
style: { width: "100%" }
|
|
1141
1141
|
}), {
|
|
1142
1142
|
default: d(() => {
|
|
1143
1143
|
var z;
|
|
1144
1144
|
return [
|
|
1145
|
-
R(oe,
|
|
1145
|
+
R(oe, x({
|
|
1146
1146
|
label: h.label,
|
|
1147
1147
|
prop: `${Y}.value`,
|
|
1148
|
-
rules:
|
|
1148
|
+
rules: b(h),
|
|
1149
1149
|
ref_for: !0
|
|
1150
1150
|
}, { ...(z = t.value) == null ? void 0 : z.formItems, ...h == null ? void 0 : h.formItem }, { style: { width: "100%" } }), {
|
|
1151
1151
|
label: d((u) => [
|
|
@@ -1162,7 +1162,7 @@ const Ae = /* @__PURE__ */ ht(bt), yt = {
|
|
|
1162
1162
|
item: h,
|
|
1163
1163
|
model: t.value
|
|
1164
1164
|
}, () => {
|
|
1165
|
-
var u,
|
|
1165
|
+
var u, y;
|
|
1166
1166
|
return [
|
|
1167
1167
|
t.value.form.modalState === "edit" ? (w(), O(_e, {
|
|
1168
1168
|
key: 0,
|
|
@@ -1189,7 +1189,7 @@ const Ae = /* @__PURE__ */ ht(bt), yt = {
|
|
|
1189
1189
|
key: 1,
|
|
1190
1190
|
modelValue: t.value[Y].value,
|
|
1191
1191
|
"onUpdate:modelValue": (i) => t.value[Y].value = i,
|
|
1192
|
-
item: { ...(h == null ? void 0 : h.editor) || {}, ...((
|
|
1192
|
+
item: { ...(h == null ? void 0 : h.editor) || {}, ...((y = h == null ? void 0 : h.editor) == null ? void 0 : y.ap) || {} },
|
|
1193
1193
|
ctrlKey: Y,
|
|
1194
1194
|
ctrlType: h.type,
|
|
1195
1195
|
model: t.value,
|
|
@@ -1238,13 +1238,13 @@ const Ae = /* @__PURE__ */ ht(bt), yt = {
|
|
|
1238
1238
|
_: 2
|
|
1239
1239
|
}, 1040))), 128)),
|
|
1240
1240
|
(S = t.value.form.footer) != null && S.hidden ? ue("", !0) : $(g.$slots, "f-footer", { key: 0 }, () => {
|
|
1241
|
-
var h, Y, z, u,
|
|
1241
|
+
var h, Y, z, u, y, i;
|
|
1242
1242
|
return [
|
|
1243
1243
|
W("div", {
|
|
1244
|
-
style:
|
|
1244
|
+
style: Se(t.value.form.footer.style)
|
|
1245
1245
|
}, [
|
|
1246
1246
|
$(g.$slots, "f-footer-left"),
|
|
1247
|
-
(z = (Y = (h = t.value) == null ? void 0 : h.form) == null ? void 0 : Y.submit) != null && z.hidden ? ue("", !0) : (w(), O(K,
|
|
1247
|
+
(z = (Y = (h = t.value) == null ? void 0 : h.form) == null ? void 0 : Y.submit) != null && z.hidden ? ue("", !0) : (w(), O(K, x({
|
|
1248
1248
|
key: 0,
|
|
1249
1249
|
onClick: U[3] || (U[3] = Xe((v) => t.value.form.submit.click(B.value, t.value), ["stop"]))
|
|
1250
1250
|
}, a(pe)(t.value.form.submit, (v) => !["click"].includes(v))), {
|
|
@@ -1256,7 +1256,7 @@ const Ae = /* @__PURE__ */ ht(bt), yt = {
|
|
|
1256
1256
|
}),
|
|
1257
1257
|
_: 1
|
|
1258
1258
|
}, 16)),
|
|
1259
|
-
(i = (
|
|
1259
|
+
(i = (y = (u = t.value) == null ? void 0 : u.form) == null ? void 0 : y.reset) != null && i.hidden ? ue("", !0) : (w(), O(K, x({
|
|
1260
1260
|
key: 1,
|
|
1261
1261
|
onClick: U[4] || (U[4] = (v) => t.value.form.reset.click(t.value))
|
|
1262
1262
|
}, a(pe)(t.value.form.reset, (v) => !["click"].includes(v))), {
|
|
@@ -1281,7 +1281,7 @@ const Ae = /* @__PURE__ */ ht(bt), yt = {
|
|
|
1281
1281
|
}
|
|
1282
1282
|
}), Te = {
|
|
1283
1283
|
__name: "g-query-item",
|
|
1284
|
-
props: /* @__PURE__ */
|
|
1284
|
+
props: /* @__PURE__ */ Ve(["more"], {
|
|
1285
1285
|
modelValue: { required: !0 },
|
|
1286
1286
|
modelModifiers: {},
|
|
1287
1287
|
info: { required: !0 },
|
|
@@ -1289,31 +1289,31 @@ const Ae = /* @__PURE__ */ ht(bt), yt = {
|
|
|
1289
1289
|
}),
|
|
1290
1290
|
emits: ["update:modelValue", "update:info"],
|
|
1291
1291
|
setup(c) {
|
|
1292
|
-
const s =
|
|
1292
|
+
const s = Ce(c, "modelValue"), t = c, e = Ce(c, "info"), n = (f) => xe(() => Object.fromEntries(Object.entries(s.value).filter((E) => E[1].search && E[1].search.more === f).map((E) => [E[0], E[1]]))).value;
|
|
1293
1293
|
return (f, E) => {
|
|
1294
1294
|
const I = A("el-form-item");
|
|
1295
|
-
return w(!0), le(fe, null, P(n(t.more), (
|
|
1296
|
-
key:
|
|
1297
|
-
item:
|
|
1295
|
+
return w(!0), le(fe, null, P(n(t.more), (D, b) => $(f.$slots, `q-${b}`, {
|
|
1296
|
+
key: b,
|
|
1297
|
+
item: D,
|
|
1298
1298
|
model: s.value
|
|
1299
1299
|
}, () => [
|
|
1300
|
-
R(I,
|
|
1301
|
-
label:
|
|
1300
|
+
R(I, x({
|
|
1301
|
+
label: D.label,
|
|
1302
1302
|
ref_for: !0
|
|
1303
|
-
}, { ...s.value.queryItems, ...
|
|
1303
|
+
}, { ...s.value.queryItems, ...D == null ? void 0 : D.search }), {
|
|
1304
1304
|
label: d(() => [
|
|
1305
|
-
$(f.$slots, `q-${
|
|
1306
|
-
item:
|
|
1305
|
+
$(f.$slots, `q-${b}-label`, {
|
|
1306
|
+
item: D,
|
|
1307
1307
|
model: s.value
|
|
1308
1308
|
})
|
|
1309
1309
|
]),
|
|
1310
1310
|
default: d(() => [
|
|
1311
1311
|
R(_e, {
|
|
1312
|
-
modelValue: e.value[
|
|
1313
|
-
"onUpdate:modelValue": (M) => e.value[
|
|
1314
|
-
item: { ...
|
|
1315
|
-
ctrlKey:
|
|
1316
|
-
ctrlType:
|
|
1312
|
+
modelValue: e.value[b],
|
|
1313
|
+
"onUpdate:modelValue": (M) => e.value[b] = M,
|
|
1314
|
+
item: { ...D == null ? void 0 : D.editor, ...D.search },
|
|
1315
|
+
ctrlKey: b,
|
|
1316
|
+
ctrlType: D.type,
|
|
1317
1317
|
model: s.value,
|
|
1318
1318
|
t: "q"
|
|
1319
1319
|
}, Q({ _: 2 }, [
|
|
@@ -1322,7 +1322,7 @@ const Ae = /* @__PURE__ */ ht(bt), yt = {
|
|
|
1322
1322
|
fn: d((q) => [
|
|
1323
1323
|
$(f.$slots, M, {
|
|
1324
1324
|
data: q,
|
|
1325
|
-
item:
|
|
1325
|
+
item: D,
|
|
1326
1326
|
model: s.value
|
|
1327
1327
|
})
|
|
1328
1328
|
])
|
|
@@ -1334,7 +1334,7 @@ const Ae = /* @__PURE__ */ ht(bt), yt = {
|
|
|
1334
1334
|
])), 128);
|
|
1335
1335
|
};
|
|
1336
1336
|
}
|
|
1337
|
-
},
|
|
1337
|
+
}, Oe = (c, s) => {
|
|
1338
1338
|
const t = c.__vccOpts || c;
|
|
1339
1339
|
for (const [e, n] of s)
|
|
1340
1340
|
t[e] = n;
|
|
@@ -1351,11 +1351,11 @@ const Ae = /* @__PURE__ */ ht(bt), yt = {
|
|
|
1351
1351
|
modelValue: { required: !0 },
|
|
1352
1352
|
modelModifiers: {}
|
|
1353
1353
|
},
|
|
1354
|
-
emits: /* @__PURE__ */
|
|
1354
|
+
emits: /* @__PURE__ */ Ve(["query", "reset"], ["update:modelValue"]),
|
|
1355
1355
|
setup(c, { emit: s }) {
|
|
1356
|
-
const t =
|
|
1356
|
+
const t = Ce(c, "modelValue"), e = s, n = Pe("options"), f = ye(!1);
|
|
1357
1357
|
let E = Object.fromEntries(Object.entries(t.value).filter((q) => q[1].search).map(([q, B]) => [q, B.value]));
|
|
1358
|
-
const I =
|
|
1358
|
+
const I = ye(E), D = {
|
|
1359
1359
|
hidden: !1,
|
|
1360
1360
|
type: "hidden",
|
|
1361
1361
|
labelWidth: 100,
|
|
@@ -1376,7 +1376,7 @@ const Ae = /* @__PURE__ */ ht(bt), yt = {
|
|
|
1376
1376
|
hidden: !1,
|
|
1377
1377
|
plain: !1,
|
|
1378
1378
|
click: () => {
|
|
1379
|
-
I.value =
|
|
1379
|
+
I.value = ye(E), e("reset", I.value);
|
|
1380
1380
|
}
|
|
1381
1381
|
},
|
|
1382
1382
|
query: {
|
|
@@ -1396,8 +1396,8 @@ const Ae = /* @__PURE__ */ ht(bt), yt = {
|
|
|
1396
1396
|
}
|
|
1397
1397
|
}
|
|
1398
1398
|
};
|
|
1399
|
-
t.value.query = he(
|
|
1400
|
-
const
|
|
1399
|
+
t.value.query = he(D, n == null ? void 0 : n.query, t.value.query);
|
|
1400
|
+
const b = {
|
|
1401
1401
|
2: {
|
|
1402
1402
|
title: "更多查询",
|
|
1403
1403
|
showClose: !1,
|
|
@@ -1415,7 +1415,7 @@ const Ae = /* @__PURE__ */ ht(bt), yt = {
|
|
|
1415
1415
|
}
|
|
1416
1416
|
};
|
|
1417
1417
|
t.value.query.more.dialog = he(
|
|
1418
|
-
|
|
1418
|
+
b[t.value.query.more.mode] || {},
|
|
1419
1419
|
t.value.query.more.dialog
|
|
1420
1420
|
);
|
|
1421
1421
|
const M = {
|
|
@@ -1429,7 +1429,7 @@ const Ae = /* @__PURE__ */ ht(bt), yt = {
|
|
|
1429
1429
|
var g, U, oe, C, te, J, K, me;
|
|
1430
1430
|
const V = A("el-form"), m = A("el-button"), ee = A("el-popover"), ce = A("el-form-item"), ge = A("el-drawer");
|
|
1431
1431
|
return w(), le("div", Et, [
|
|
1432
|
-
R(V,
|
|
1432
|
+
R(V, ke(Me(a(pe)(t.value.query, (S) => !["query", "more", "reset"].includes(S)))), {
|
|
1433
1433
|
default: d(() => [
|
|
1434
1434
|
R(Te, {
|
|
1435
1435
|
modelValue: t.value,
|
|
@@ -1452,12 +1452,12 @@ const Ae = /* @__PURE__ */ ht(bt), yt = {
|
|
|
1452
1452
|
default: d(() => [
|
|
1453
1453
|
R(ce, { style: { width: "100%", "margin-bottom": "0" } }, {
|
|
1454
1454
|
default: d(() => {
|
|
1455
|
-
var S, h, Y, z, u,
|
|
1455
|
+
var S, h, Y, z, u, y, i, v, p, _, T, j;
|
|
1456
1456
|
return [
|
|
1457
1457
|
W("div", {
|
|
1458
|
-
style:
|
|
1458
|
+
style: Se(t.value.query.btns.style)
|
|
1459
1459
|
}, [
|
|
1460
|
-
((Y = (h = (S = t.value) == null ? void 0 : S.query) == null ? void 0 : h.query) == null ? void 0 : Y.hidden) != !0 ? (w(), O(m,
|
|
1460
|
+
((Y = (h = (S = t.value) == null ? void 0 : S.query) == null ? void 0 : h.query) == null ? void 0 : Y.hidden) != !0 ? (w(), O(m, x({ key: 0 }, t.value.query.query, {
|
|
1461
1461
|
onClick: B[2] || (B[2] = (L) => t.value.query.query.click())
|
|
1462
1462
|
}), {
|
|
1463
1463
|
default: d(() => [
|
|
@@ -1465,7 +1465,7 @@ const Ae = /* @__PURE__ */ ht(bt), yt = {
|
|
|
1465
1465
|
]),
|
|
1466
1466
|
_: 1
|
|
1467
1467
|
}, 16)) : ue("", !0),
|
|
1468
|
-
((
|
|
1468
|
+
((y = (u = (z = t.value) == null ? void 0 : z.query) == null ? void 0 : u.reset) == null ? void 0 : y.hidden) != !0 ? (w(), O(m, x({ key: 1 }, t.value.query.reset, {
|
|
1469
1469
|
onClick: B[3] || (B[3] = (L) => t.value.query.reset.click())
|
|
1470
1470
|
}), {
|
|
1471
1471
|
default: d(() => [
|
|
@@ -1473,7 +1473,7 @@ const Ae = /* @__PURE__ */ ht(bt), yt = {
|
|
|
1473
1473
|
]),
|
|
1474
1474
|
_: 1
|
|
1475
1475
|
}, 16)) : ue("", !0),
|
|
1476
|
-
((p = (v = (i = t.value) == null ? void 0 : i.query) == null ? void 0 : v.more) == null ? void 0 : p.hidden) !== !0 && t.value.query.more.mode !== 3 ? (w(), O(m,
|
|
1476
|
+
((p = (v = (i = t.value) == null ? void 0 : i.query) == null ? void 0 : v.more) == null ? void 0 : p.hidden) !== !0 && t.value.query.more.mode !== 3 ? (w(), O(m, x({ key: 2 }, t.value.query.more, {
|
|
1477
1477
|
onClick: B[4] || (B[4] = (L) => t.value.query.more.click())
|
|
1478
1478
|
}), {
|
|
1479
1479
|
default: d(() => [
|
|
@@ -1481,9 +1481,9 @@ const Ae = /* @__PURE__ */ ht(bt), yt = {
|
|
|
1481
1481
|
]),
|
|
1482
1482
|
_: 1
|
|
1483
1483
|
}, 16)) : ue("", !0),
|
|
1484
|
-
t.value.query.more.mode == 3 && ((j = (T = (_ = t.value) == null ? void 0 : _.query) == null ? void 0 : T.more) == null ? void 0 : j.hidden) !== !0 ? (w(), O(ee,
|
|
1484
|
+
t.value.query.more.mode == 3 && ((j = (T = (_ = t.value) == null ? void 0 : _.query) == null ? void 0 : T.more) == null ? void 0 : j.hidden) !== !0 ? (w(), O(ee, ke(x({ key: 3 }, t.value.query.more.dialog)), {
|
|
1485
1485
|
reference: d(() => [
|
|
1486
|
-
R(m,
|
|
1486
|
+
R(m, ke(Me(t.value.query.more)), {
|
|
1487
1487
|
default: d(() => [
|
|
1488
1488
|
se(Z(t.value.query.more.label), 1)
|
|
1489
1489
|
]),
|
|
@@ -1491,7 +1491,7 @@ const Ae = /* @__PURE__ */ ht(bt), yt = {
|
|
|
1491
1491
|
}, 16)
|
|
1492
1492
|
]),
|
|
1493
1493
|
default: d(() => [
|
|
1494
|
-
R(V,
|
|
1494
|
+
R(V, x({ style: { padding: "20px", "background-color": "#f2f2f2", border: "1px solid rgba(0,0,0,0.1)", margin: "5px", "border-radius": "4px" } }, a(pe)(t.value.query, (L) => !["query", "more", "reset"].includes(L))), {
|
|
1495
1495
|
default: d(() => [
|
|
1496
1496
|
R(Te, {
|
|
1497
1497
|
modelValue: t.value,
|
|
@@ -1531,7 +1531,7 @@ const Ae = /* @__PURE__ */ ht(bt), yt = {
|
|
|
1531
1531
|
return [
|
|
1532
1532
|
f.value && !((Y = (h = (S = t.value) == null ? void 0 : S.query) == null ? void 0 : h.more) != null && Y.hidden) && t.value.query.more.mode == 1 ? (w(), le("div", wt, [
|
|
1533
1533
|
W("div", _t, [
|
|
1534
|
-
t.value.query.more.mode == 1 ? qe((w(), O(V,
|
|
1534
|
+
t.value.query.more.mode == 1 ? qe((w(), O(V, ke(x({ key: 0 }, a(pe)(t.value.query, (z) => !["query", "more", "reset"].includes(z)))), {
|
|
1535
1535
|
default: d(() => [
|
|
1536
1536
|
R(Te, {
|
|
1537
1537
|
modelValue: t.value,
|
|
@@ -1540,7 +1540,7 @@ const Ae = /* @__PURE__ */ ht(bt), yt = {
|
|
|
1540
1540
|
"onUpdate:info": B[8] || (B[8] = (z) => I.value = z),
|
|
1541
1541
|
more: !0
|
|
1542
1542
|
}, Q({ _: 2 }, [
|
|
1543
|
-
P(q.$slots, (z, u,
|
|
1543
|
+
P(q.$slots, (z, u, y) => ({
|
|
1544
1544
|
name: u,
|
|
1545
1545
|
fn: d((i) => [
|
|
1546
1546
|
$(q.$slots, u, { model: t.value }, void 0, !0)
|
|
@@ -1558,7 +1558,7 @@ const Ae = /* @__PURE__ */ ht(bt), yt = {
|
|
|
1558
1558
|
}),
|
|
1559
1559
|
_: 3
|
|
1560
1560
|
}),
|
|
1561
|
-
f.value && !((oe = (U = (g = t.value) == null ? void 0 : g.query) == null ? void 0 : U.more) != null && oe.hidden) && t.value.query.more.mode == 2 ? (w(), O(ge,
|
|
1561
|
+
f.value && !((oe = (U = (g = t.value) == null ? void 0 : g.query) == null ? void 0 : U.more) != null && oe.hidden) && t.value.query.more.mode == 2 ? (w(), O(ge, x({
|
|
1562
1562
|
key: 0,
|
|
1563
1563
|
modelValue: f.value,
|
|
1564
1564
|
"onUpdate:modelValue": B[13] || (B[13] = (S) => f.value = S),
|
|
@@ -1566,7 +1566,7 @@ const Ae = /* @__PURE__ */ ht(bt), yt = {
|
|
|
1566
1566
|
"show-close": !1
|
|
1567
1567
|
}, t.value.query.more.dialog), Q({
|
|
1568
1568
|
default: d(() => [
|
|
1569
|
-
R(V,
|
|
1569
|
+
R(V, x(a(pe)(t.value.query, (S) => !["query", "more", "reset"].includes(S)), { style: { width: "98%" } }), {
|
|
1570
1570
|
default: d(() => [
|
|
1571
1571
|
R(Te, {
|
|
1572
1572
|
modelValue: t.value,
|
|
@@ -1591,8 +1591,8 @@ const Ae = /* @__PURE__ */ ht(bt), yt = {
|
|
|
1591
1591
|
(me = (K = (J = (te = (C = t.value) == null ? void 0 : C.query) == null ? void 0 : te.more) == null ? void 0 : J.dialog) == null ? void 0 : K.footer) != null && me.hidden ? void 0 : {
|
|
1592
1592
|
name: "footer",
|
|
1593
1593
|
fn: d(() => [
|
|
1594
|
-
W("div",
|
|
1595
|
-
R(m,
|
|
1594
|
+
W("div", ke(Me(t.value.query.more.dialog.footer)), [
|
|
1595
|
+
R(m, x(t.value.query.query, {
|
|
1596
1596
|
onClick: B[11] || (B[11] = (S) => t.value.query.query.click())
|
|
1597
1597
|
}), {
|
|
1598
1598
|
default: d(() => [
|
|
@@ -1600,7 +1600,7 @@ const Ae = /* @__PURE__ */ ht(bt), yt = {
|
|
|
1600
1600
|
]),
|
|
1601
1601
|
_: 1
|
|
1602
1602
|
}, 16),
|
|
1603
|
-
R(m,
|
|
1603
|
+
R(m, x(t.value.query.reset, {
|
|
1604
1604
|
onClick: B[12] || (B[12] = (S) => t.value.query.reset.click())
|
|
1605
1605
|
}), {
|
|
1606
1606
|
default: d(() => [
|
|
@@ -1616,7 +1616,7 @@ const Ae = /* @__PURE__ */ ht(bt), yt = {
|
|
|
1616
1616
|
]);
|
|
1617
1617
|
};
|
|
1618
1618
|
}
|
|
1619
|
-
}, Vt = /* @__PURE__ */
|
|
1619
|
+
}, Vt = /* @__PURE__ */ Oe(kt, [["__scopeId", "data-v-0ea0cd78"]]), Ct = { style: { padding: "0", margin: "0", "box-sizing": "border-box" } }, Dt = { style: { padding: "10px", "box-sizing": "border-box" } }, xt = { style: { margin: "10px" } }, Ft = {
|
|
1620
1620
|
style: { display: "flex", "flex-wrap": "wrap" },
|
|
1621
1621
|
id: "excelSortEl"
|
|
1622
1622
|
}, Tt = ["textContent"], Mt = { style: { width: "100%", display: "flex", padding: "10px", "box-sizing": "border-box", "justify-content": "center", "border-top": "1px solid #dcdfe6" } }, St = {
|
|
@@ -1627,40 +1627,40 @@ const Ae = /* @__PURE__ */ ht(bt), yt = {
|
|
|
1627
1627
|
},
|
|
1628
1628
|
emits: ["excel"],
|
|
1629
1629
|
setup(c, { emit: s }) {
|
|
1630
|
-
const t = c, e = s, n =
|
|
1631
|
-
n.value.forEach((
|
|
1632
|
-
|
|
1630
|
+
const t = c, e = s, n = ye(t.items), f = () => {
|
|
1631
|
+
n.value.forEach((D) => {
|
|
1632
|
+
D.value = !0;
|
|
1633
1633
|
});
|
|
1634
1634
|
}, E = () => {
|
|
1635
|
-
n.value.forEach((
|
|
1636
|
-
|
|
1635
|
+
n.value.forEach((D) => {
|
|
1636
|
+
D.value = !1;
|
|
1637
1637
|
});
|
|
1638
1638
|
}, I = () => {
|
|
1639
|
-
e("excel", n.value, (
|
|
1640
|
-
if (!
|
|
1639
|
+
e("excel", n.value, (D, b = "excel.xls") => {
|
|
1640
|
+
if (!D) {
|
|
1641
1641
|
console.error("下载链接无效");
|
|
1642
1642
|
return;
|
|
1643
1643
|
}
|
|
1644
1644
|
try {
|
|
1645
1645
|
const M = document.createElement("a");
|
|
1646
|
-
M.href =
|
|
1646
|
+
M.href = D, M.download = b, M.style.display = "none", document.body.appendChild(M), M.click(), document.body.removeChild(M);
|
|
1647
1647
|
} catch (M) {
|
|
1648
1648
|
console.error("下载文件时出现错误:", M);
|
|
1649
1649
|
}
|
|
1650
1650
|
});
|
|
1651
1651
|
};
|
|
1652
1652
|
return Fe(() => {
|
|
1653
|
-
const
|
|
1653
|
+
const D = new Je(document.getElementById("excelSortEl"), {
|
|
1654
1654
|
animation: 150,
|
|
1655
1655
|
onEnd: () => {
|
|
1656
|
-
let M =
|
|
1656
|
+
let M = D.toArray();
|
|
1657
1657
|
console.log(M);
|
|
1658
1658
|
}
|
|
1659
|
-
}),
|
|
1659
|
+
}), b = D;
|
|
1660
1660
|
st(() => {
|
|
1661
|
-
|
|
1661
|
+
b && b.destroy();
|
|
1662
1662
|
});
|
|
1663
|
-
}), (
|
|
1663
|
+
}), (D, b) => {
|
|
1664
1664
|
const M = A("el-divider"), q = A("el-alert"), B = A("el-checkbox"), V = A("el-button");
|
|
1665
1665
|
return w(), le("div", Ct, [
|
|
1666
1666
|
W("div", Dt, [
|
|
@@ -1682,7 +1682,7 @@ const Ae = /* @__PURE__ */ ht(bt), yt = {
|
|
|
1682
1682
|
closable: !1,
|
|
1683
1683
|
style: { "margin-bottom": "10px" }
|
|
1684
1684
|
}),
|
|
1685
|
-
|
|
1685
|
+
b[0] || (b[0] = W("div", { style: { margin: "1px 0" } }, null, -1)),
|
|
1686
1686
|
W("div", Ft, [
|
|
1687
1687
|
(w(!0), le(fe, null, P(n.value, (m) => (w(), O(B, {
|
|
1688
1688
|
class: "check-box-hover",
|
|
@@ -1718,7 +1718,7 @@ const Ae = /* @__PURE__ */ ht(bt), yt = {
|
|
|
1718
1718
|
]);
|
|
1719
1719
|
};
|
|
1720
1720
|
}
|
|
1721
|
-
}, Ot = /* @__PURE__ */
|
|
1721
|
+
}, Ot = /* @__PURE__ */ Oe(St, [["__scopeId", "data-v-64e6e1c0"]]), $e = new mt("gyc");
|
|
1722
1722
|
$e.version(1).stores({
|
|
1723
1723
|
tableInfo: "++id,[user+page+key],user,page,key,showCol,width,sort",
|
|
1724
1724
|
tableList: "++id,name"
|
|
@@ -1757,7 +1757,7 @@ const It = {
|
|
|
1757
1757
|
style: { display: "flex", "flex-wrap": "wrap", margin: "0 !important", padding: "0 !important" }
|
|
1758
1758
|
}, Rt = ["textContent"], Lt = {
|
|
1759
1759
|
__name: "columns-setting",
|
|
1760
|
-
props: /* @__PURE__ */
|
|
1760
|
+
props: /* @__PURE__ */ Ve({
|
|
1761
1761
|
name: {
|
|
1762
1762
|
type: String,
|
|
1763
1763
|
required: !0
|
|
@@ -1768,21 +1768,21 @@ const It = {
|
|
|
1768
1768
|
}),
|
|
1769
1769
|
emits: ["update:modelValue"],
|
|
1770
1770
|
setup(c) {
|
|
1771
|
-
const s = c, t =
|
|
1772
|
-
|
|
1771
|
+
const s = c, t = ye([]), e = Ce(c, "modelValue"), n = async (b, M) => {
|
|
1772
|
+
b ? e.value[M].showCol = !0 : e.value[M].showCol = !1;
|
|
1773
1773
|
try {
|
|
1774
|
-
const q = await De(e.value.table.user, s.name, M, { showCol:
|
|
1774
|
+
const q = await De(e.value.table.user, s.name, M, { showCol: b });
|
|
1775
1775
|
console.log(q);
|
|
1776
1776
|
} catch (q) {
|
|
1777
|
-
console.error("列显示状态保存信息时出错:", q),
|
|
1777
|
+
console.error("列显示状态保存信息时出错:", q), be({
|
|
1778
1778
|
type: "error",
|
|
1779
1779
|
message: "列显示状态保存信息失败!"
|
|
1780
1780
|
});
|
|
1781
1781
|
}
|
|
1782
1782
|
}, f = () => {
|
|
1783
|
-
const
|
|
1784
|
-
if (
|
|
1785
|
-
let M = Je.create(
|
|
1783
|
+
const b = document.getElementById("cols");
|
|
1784
|
+
if (b) {
|
|
1785
|
+
let M = Je.create(b, {
|
|
1786
1786
|
animation: 150,
|
|
1787
1787
|
filter: ".filtered",
|
|
1788
1788
|
//
|
|
@@ -1795,7 +1795,7 @@ const It = {
|
|
|
1795
1795
|
const ee = await De(e.value.table.user, s.name, B, { sort: V, width: m });
|
|
1796
1796
|
console.log(ee);
|
|
1797
1797
|
} catch (ee) {
|
|
1798
|
-
console.error("列排序和宽度保存信息时出错:", ee),
|
|
1798
|
+
console.error("列排序和宽度保存信息时出错:", ee), be({
|
|
1799
1799
|
type: "error",
|
|
1800
1800
|
message: "列排序和宽度保存信息失败!"
|
|
1801
1801
|
});
|
|
@@ -1806,25 +1806,25 @@ const It = {
|
|
|
1806
1806
|
}
|
|
1807
1807
|
}, E = async () => {
|
|
1808
1808
|
try {
|
|
1809
|
-
for (const
|
|
1810
|
-
|
|
1811
|
-
const M = await De(e.value.table.user, s.name,
|
|
1809
|
+
for (const b of t.value) {
|
|
1810
|
+
b.showCol = !0, e.value[b.value].showCol = !0;
|
|
1811
|
+
const M = await De(e.value.table.user, s.name, b.value, {
|
|
1812
1812
|
showCol: !0,
|
|
1813
|
-
width:
|
|
1814
|
-
sort:
|
|
1813
|
+
width: b.width,
|
|
1814
|
+
sort: b.sort
|
|
1815
1815
|
});
|
|
1816
1816
|
console.log(M);
|
|
1817
1817
|
}
|
|
1818
|
-
} catch (
|
|
1819
|
-
console.error("全选列保存信息时出错:",
|
|
1818
|
+
} catch (b) {
|
|
1819
|
+
console.error("全选列保存信息时出错:", b), be({
|
|
1820
1820
|
type: "error",
|
|
1821
1821
|
message: "全选列保存信息失败!"
|
|
1822
1822
|
});
|
|
1823
1823
|
}
|
|
1824
1824
|
}, I = async () => {
|
|
1825
1825
|
try {
|
|
1826
|
-
const
|
|
1827
|
-
for (const M of
|
|
1826
|
+
const b = t.value.filter((M) => !M.alwaysShow);
|
|
1827
|
+
for (const M of b) {
|
|
1828
1828
|
M.showCol = !1, e.value[M.value].showCol = !1;
|
|
1829
1829
|
const q = await De(e.value.table.user, s.name, M.value, {
|
|
1830
1830
|
showCol: !1,
|
|
@@ -1833,22 +1833,22 @@ const It = {
|
|
|
1833
1833
|
});
|
|
1834
1834
|
console.log(q);
|
|
1835
1835
|
}
|
|
1836
|
-
} catch (
|
|
1837
|
-
console.error("清除列保存信息时出错:",
|
|
1836
|
+
} catch (b) {
|
|
1837
|
+
console.error("清除列保存信息时出错:", b), be({
|
|
1838
1838
|
type: "error",
|
|
1839
1839
|
message: "清除列保存信息失败!"
|
|
1840
1840
|
});
|
|
1841
1841
|
}
|
|
1842
|
-
},
|
|
1842
|
+
}, D = () => {
|
|
1843
1843
|
Ke.confirm("确定要复位吗?", "提示", {
|
|
1844
1844
|
confirmButtonText: "确定",
|
|
1845
1845
|
cancelButtonText: "取消",
|
|
1846
1846
|
type: "warning"
|
|
1847
1847
|
}).then(() => {
|
|
1848
|
-
qt(e.value.table.user, s.name).then((
|
|
1849
|
-
console.log(
|
|
1850
|
-
}).catch((
|
|
1851
|
-
console.error("复位操作出错:",
|
|
1848
|
+
qt(e.value.table.user, s.name).then((b) => {
|
|
1849
|
+
console.log(b), window.location.reload();
|
|
1850
|
+
}).catch((b) => {
|
|
1851
|
+
console.error("复位操作出错:", b), be({
|
|
1852
1852
|
type: "info",
|
|
1853
1853
|
message: "复位失败!"
|
|
1854
1854
|
});
|
|
@@ -1856,15 +1856,15 @@ const It = {
|
|
|
1856
1856
|
});
|
|
1857
1857
|
};
|
|
1858
1858
|
return Fe(async () => {
|
|
1859
|
-
t.value = Object.entries(e.value).filter(([,
|
|
1859
|
+
t.value = Object.entries(e.value).filter(([, b]) => b.visible !== !1).filter(([, b]) => b.type != "hidden").map(([b, M]) => ({
|
|
1860
1860
|
label: M.label,
|
|
1861
|
-
value:
|
|
1861
|
+
value: b,
|
|
1862
1862
|
alwaysShow: M.alwaysShow,
|
|
1863
1863
|
showCol: M.showCol !== !1,
|
|
1864
1864
|
sort: M.sort || 0,
|
|
1865
1865
|
width: M.width || "auto"
|
|
1866
|
-
})).sort((
|
|
1867
|
-
}), (
|
|
1866
|
+
})).sort((b, M) => b.sort - M.sort), f();
|
|
1867
|
+
}), (b, M) => {
|
|
1868
1868
|
const q = A("el-divider"), B = A("el-alert"), V = A("el-checkbox");
|
|
1869
1869
|
return w(), le("div", null, [
|
|
1870
1870
|
W("div", It, [
|
|
@@ -1872,7 +1872,7 @@ const It = {
|
|
|
1872
1872
|
R(q, { direction: "vertical" }),
|
|
1873
1873
|
W("a", { onClick: I }, "全不选"),
|
|
1874
1874
|
R(q, { direction: "vertical" }),
|
|
1875
|
-
W("a", { onClick:
|
|
1875
|
+
W("a", { onClick: D }, "复位")
|
|
1876
1876
|
]),
|
|
1877
1877
|
R(B, {
|
|
1878
1878
|
title: "拖动表格列标题可以改变表格列显示顺序 !",
|
|
@@ -1908,29 +1908,28 @@ const It = {
|
|
|
1908
1908
|
]);
|
|
1909
1909
|
};
|
|
1910
1910
|
}
|
|
1911
|
-
}, Pt = /* @__PURE__ */
|
|
1911
|
+
}, Pt = /* @__PURE__ */ Oe(Lt, [["__scopeId", "data-v-fe875b13"]]), Nt = { class: "g-table-container" }, zt = {
|
|
1912
1912
|
key: 0,
|
|
1913
|
-
class: "table-query-container"
|
|
1914
|
-
|
|
1915
|
-
}, zt = { class: "btns" }, Ht = { class: "btns" }, Wt = { style: { padding: "16px", "box-sizing": "border-box", "background-color": "#fff", "border-radius": "10px" } }, Yt = ["innerHTML"], Gt = ["src"], Xt = { style: { display: "flex", "margin-top": "-2px" } }, Kt = { style: { display: "flex", flex: "1" } }, Qt = {
|
|
1913
|
+
class: "table-query-container"
|
|
1914
|
+
}, Ht = { class: "btns" }, Wt = { class: "btns" }, Yt = { class: "table-container" }, Gt = ["innerHTML"], Xt = ["src"], Kt = { style: { display: "flex", "margin-top": "-2px" } }, Qt = { style: { display: "flex", flex: "1" } }, Jt = {
|
|
1916
1915
|
style: { display: "flex", "justify-content": "center", width: "100%", height: "100%" },
|
|
1917
1916
|
id: "table-form"
|
|
1918
|
-
},
|
|
1917
|
+
}, Zt = { style: { display: "flex" } }, el = { style: { display: "flex", flex: "1" } }, tl = /* @__PURE__ */ Object.assign({
|
|
1919
1918
|
name: "g-table",
|
|
1920
1919
|
inheritAttrs: !1
|
|
1921
1920
|
}, {
|
|
1922
1921
|
__name: "g-table",
|
|
1923
|
-
props: /* @__PURE__ */
|
|
1922
|
+
props: /* @__PURE__ */ Ve({
|
|
1924
1923
|
name: String,
|
|
1925
1924
|
require: !0
|
|
1926
1925
|
}, {
|
|
1927
1926
|
modelValue: { required: !0 },
|
|
1928
1927
|
modelModifiers: {}
|
|
1929
1928
|
}),
|
|
1930
|
-
emits: /* @__PURE__ */
|
|
1929
|
+
emits: /* @__PURE__ */ Ve(["load", "open", "delete", "submit", "reset", "download"], ["update:modelValue"]),
|
|
1931
1930
|
setup(c, { emit: s }) {
|
|
1932
1931
|
var i, v, p, _, T, j, L;
|
|
1933
|
-
const t = s, e =
|
|
1932
|
+
const t = s, e = Ce(c, "modelValue"), n = Pe("options"), f = ye({}), E = ye(!1), I = ["type", "index", "label", "column-key", "prop", "width", "min-width", "fixed", "render-header", "sortable", "sort-method", "sort-by", "sort-orders", "resizable", "formatter", "show-overflow-tooltip", "align", "header-align", "class-name", "label-class-name", "selectable", "reserve-selection", "filters", "filter-placement", "filter-class-name", "filter-multiple", "filter-method", "filtered-value"], D = ye([]), b = c, M = {
|
|
1934
1933
|
data: [],
|
|
1935
1934
|
border: !0,
|
|
1936
1935
|
stripe: !0,
|
|
@@ -1942,22 +1941,22 @@ const It = {
|
|
|
1942
1941
|
try {
|
|
1943
1942
|
t("load", { currentPage: o, pageSize: r, ...f.value }, (l, k) => {
|
|
1944
1943
|
if (!Array.isArray(l)) {
|
|
1945
|
-
console.error("从 load 事件回调中接收到的数据不是数组格式。"),
|
|
1944
|
+
console.error("从 load 事件回调中接收到的数据不是数组格式。"), be.error("数据加载失败,请检查数据格式。");
|
|
1946
1945
|
return;
|
|
1947
1946
|
}
|
|
1948
1947
|
if (typeof k != "number") {
|
|
1949
|
-
console.error("从 load 事件回调中接收到的 total 不是数字格式。"),
|
|
1948
|
+
console.error("从 load 事件回调中接收到的 total 不是数字格式。"), be.error("数据加载失败,请检查数据格式。");
|
|
1950
1949
|
return;
|
|
1951
1950
|
}
|
|
1952
|
-
e.value.table.data = l, e.value.table.page.total = k,
|
|
1951
|
+
e.value.table.data = l, e.value.table.page.total = k, y();
|
|
1953
1952
|
});
|
|
1954
1953
|
} catch (l) {
|
|
1955
|
-
console.error("触发 load 事件时出现错误:", l),
|
|
1954
|
+
console.error("触发 load 事件时出现错误:", l), be.error("数据加载时出现错误,请稍后重试。");
|
|
1956
1955
|
}
|
|
1957
1956
|
},
|
|
1958
1957
|
onHeaderDragend: (o, r, l) => {
|
|
1959
1958
|
var k;
|
|
1960
|
-
console.log(o, r, l), De((k = e.value.table) == null ? void 0 : k.user,
|
|
1959
|
+
console.log(o, r, l), De((k = e.value.table) == null ? void 0 : k.user, b.name, l.property, { width: o });
|
|
1961
1960
|
},
|
|
1962
1961
|
onRowDblclick: (o, r, l) => {
|
|
1963
1962
|
e.value.table.dblclickType == "edit" ? C(o, r, l, e) : e.value.table.dblclickType == "view" && J(o, r, l, e);
|
|
@@ -2109,7 +2108,7 @@ const It = {
|
|
|
2109
2108
|
};
|
|
2110
2109
|
l = o.dateFormat ? Ae(l).format(o.dateFormat) : Ae(l).format(F[o.type]);
|
|
2111
2110
|
}
|
|
2112
|
-
return o.type === "money" && (o.align = o.align || "right", o.width = o.width || 130, l = `<span title="${Le(parseFloat(l))}">${
|
|
2111
|
+
return o.type === "money" && (o.align = o.align || "right", o.width = o.width || 130, l = `<span title="${Le(parseFloat(l))}">${ul(parseFloat(l))}</span>`), o.prefix && l && (l = `<span>${o.prefix}${l}</span>`), o.suffix && l && (l = `${l}<span>${o.suffix}</span>`), l;
|
|
2113
2112
|
}, g = (o) => {
|
|
2114
2113
|
f.value = o.value;
|
|
2115
2114
|
}, U = (o) => {
|
|
@@ -2177,13 +2176,13 @@ const It = {
|
|
|
2177
2176
|
slots: {
|
|
2178
2177
|
default: () => Ue(Pt, {
|
|
2179
2178
|
modelValue: o,
|
|
2180
|
-
name:
|
|
2179
|
+
name: b.name
|
|
2181
2180
|
})
|
|
2182
2181
|
}
|
|
2183
2182
|
}, o.control.setting.mode);
|
|
2184
2183
|
}, Y = xe(() => Object.fromEntries(
|
|
2185
2184
|
Object.entries(e.value).filter(([o, r]) => r.type !== "hidden").filter(([o, r]) => r.visible !== !1).filter(([o, r]) => r.showCol !== !1).map(([o, r]) => (r.sort = typeof r.sort == "number" ? r.sort : 0, [o, r])).sort((o, r) => o[1].sort - r[1].sort)
|
|
2186
|
-
)), z =
|
|
2185
|
+
)), z = ye({}), u = (o, r) => {
|
|
2187
2186
|
const l = (k, F) => {
|
|
2188
2187
|
for (const H of k) {
|
|
2189
2188
|
if (H.value == F) return H.label;
|
|
@@ -2201,7 +2200,7 @@ const It = {
|
|
|
2201
2200
|
});
|
|
2202
2201
|
}
|
|
2203
2202
|
return Promise.resolve();
|
|
2204
|
-
},
|
|
2203
|
+
}, y = () => {
|
|
2205
2204
|
const o = [];
|
|
2206
2205
|
Object.keys(e.value).forEach((r) => {
|
|
2207
2206
|
if (e.value[r].getDicts) {
|
|
@@ -2226,28 +2225,28 @@ const It = {
|
|
|
2226
2225
|
e.value.table.load();
|
|
2227
2226
|
}), Fe(async () => {
|
|
2228
2227
|
var o;
|
|
2229
|
-
if (
|
|
2230
|
-
|
|
2228
|
+
if (D.value = Object.values(e.value).filter((r) => r.type !== "hidden").filter((r) => r.type !== "control").filter((r) => r.visible !== !1).map((r) => ({ key: r.key || "", label: r.label, value: !0 })), !((o = e.value.table) != null && o.user)) {
|
|
2229
|
+
be.error("必须给使用此表格的用户一个名字!");
|
|
2231
2230
|
return;
|
|
2232
2231
|
}
|
|
2233
|
-
if (!
|
|
2234
|
-
|
|
2232
|
+
if (!b.name) {
|
|
2233
|
+
be.error("必须给表格一个唯一的name属性");
|
|
2235
2234
|
return;
|
|
2236
2235
|
}
|
|
2237
2236
|
try {
|
|
2238
|
-
let r = await Bt(
|
|
2237
|
+
let r = await Bt(b.name);
|
|
2239
2238
|
if (r) {
|
|
2240
|
-
if (
|
|
2241
|
-
|
|
2239
|
+
if (b.name !== r.name) {
|
|
2240
|
+
be.error("此表格已经存在,请换一个名字!");
|
|
2242
2241
|
return;
|
|
2243
2242
|
}
|
|
2244
2243
|
} else
|
|
2245
|
-
await Ut({ name:
|
|
2244
|
+
await Ut({ name: b.name });
|
|
2246
2245
|
} catch (r) {
|
|
2247
|
-
console.error("检查表格名称时出现错误:", r),
|
|
2246
|
+
console.error("检查表格名称时出现错误:", r), be.error("检查表格名称时出现错误,请稍后重试。");
|
|
2248
2247
|
}
|
|
2249
2248
|
try {
|
|
2250
|
-
const r = await At(e.value.table.user,
|
|
2249
|
+
const r = await At(e.value.table.user, b.name);
|
|
2251
2250
|
r && r.forEach((l) => {
|
|
2252
2251
|
e.value[l.key] && (e.value[l.key].width = l.width, e.value[l.key].showCol = l.showCol, e.value[l.key].sort = l.sort);
|
|
2253
2252
|
});
|
|
@@ -2258,8 +2257,8 @@ const It = {
|
|
|
2258
2257
|
var Ee, we, Ne, ze, He;
|
|
2259
2258
|
const l = A("el-button"), k = A("el-table-column"), F = A("el-table"), H = A("el-pagination"), ne = A("el-icon"), ae = A("el-dialog"), ve = A("el-drawer");
|
|
2260
2259
|
return w(), le(fe, null, [
|
|
2261
|
-
W("div",
|
|
2262
|
-
((we = (Ee = e.value) == null ? void 0 : Ee.query) == null ? void 0 : we.hidden) != !0 ? (w(), le("div",
|
|
2260
|
+
W("div", Nt, [
|
|
2261
|
+
((we = (Ee = e.value) == null ? void 0 : Ee.query) == null ? void 0 : we.hidden) != !0 ? (w(), le("div", zt, [
|
|
2263
2262
|
$(o.$slots, "query", {}, () => [
|
|
2264
2263
|
R(Vt, {
|
|
2265
2264
|
modelValue: e.value,
|
|
@@ -2269,10 +2268,10 @@ const It = {
|
|
|
2269
2268
|
}, Q({
|
|
2270
2269
|
"q-btns": d(() => [
|
|
2271
2270
|
$(o.$slots, "q-btns", {}, () => [
|
|
2272
|
-
W("div",
|
|
2271
|
+
W("div", Ht, [
|
|
2273
2272
|
$(o.$slots, "control-add-left", {}, void 0, !0),
|
|
2274
2273
|
e.value.control.add.auth() ? $(o.$slots, "control-add", { key: 0 }, () => [
|
|
2275
|
-
R(l,
|
|
2274
|
+
R(l, x(e.value.control.add, {
|
|
2276
2275
|
onClick: r[0] || (r[0] = (N) => oe(e.value))
|
|
2277
2276
|
}), {
|
|
2278
2277
|
default: d(() => [
|
|
@@ -2283,10 +2282,10 @@ const It = {
|
|
|
2283
2282
|
], !0) : ue("", !0),
|
|
2284
2283
|
$(o.$slots, "control-add-right", {}, void 0, !0)
|
|
2285
2284
|
]),
|
|
2286
|
-
W("div",
|
|
2285
|
+
W("div", Wt, [
|
|
2287
2286
|
e.value.control.download.auth() ? $(o.$slots, "control-download", { key: 0 }, () => [
|
|
2288
|
-
R(l,
|
|
2289
|
-
onClick: r[1] || (r[1] = (N) => S(e.value,
|
|
2287
|
+
R(l, x(e.value.control.download, {
|
|
2288
|
+
onClick: r[1] || (r[1] = (N) => S(e.value, D.value))
|
|
2290
2289
|
}), {
|
|
2291
2290
|
default: d(() => [
|
|
2292
2291
|
se(Z(e.value.control.download.label), 1)
|
|
@@ -2295,7 +2294,7 @@ const It = {
|
|
|
2295
2294
|
}, 16)
|
|
2296
2295
|
], !0) : ue("", !0),
|
|
2297
2296
|
e.value.control.setting.auth() ? $(o.$slots, "control-setting", { key: 1 }, () => [
|
|
2298
|
-
R(l,
|
|
2297
|
+
R(l, x(e.value.control.setting, {
|
|
2299
2298
|
onClick: r[2] || (r[2] = (N) => h(e.value))
|
|
2300
2299
|
}), {
|
|
2301
2300
|
default: d(() => [
|
|
@@ -2318,8 +2317,8 @@ const It = {
|
|
|
2318
2317
|
]), 1032, ["modelValue"])
|
|
2319
2318
|
], !0)
|
|
2320
2319
|
])) : ue("", !0),
|
|
2321
|
-
W("div",
|
|
2322
|
-
R(F,
|
|
2320
|
+
W("div", Yt, [
|
|
2321
|
+
R(F, ke(Me({ ...o.$attrs, ...a(pe)(e.value.table, (N) => !["dblclickType", "page"].includes(N)) })), {
|
|
2323
2322
|
append: d(() => [
|
|
2324
2323
|
$(o.$slots, "append", {}, void 0, !0)
|
|
2325
2324
|
]),
|
|
@@ -2328,7 +2327,7 @@ const It = {
|
|
|
2328
2327
|
]),
|
|
2329
2328
|
default: d(() => [
|
|
2330
2329
|
$(o.$slots, "default", {}, () => [
|
|
2331
|
-
(w(!0), le(fe, null, P(Y.value, (N, de) => (w(), O(k,
|
|
2330
|
+
(w(!0), le(fe, null, P(Y.value, (N, de) => (w(), O(k, x({
|
|
2332
2331
|
prop: de,
|
|
2333
2332
|
key: de,
|
|
2334
2333
|
ref_for: !0
|
|
@@ -2354,7 +2353,7 @@ const It = {
|
|
|
2354
2353
|
}, () => [
|
|
2355
2354
|
W("div", {
|
|
2356
2355
|
innerHTML: ge(N, X.formatter(G, X, G[de], ie))
|
|
2357
|
-
}, null, 8,
|
|
2356
|
+
}, null, 8, Gt)
|
|
2358
2357
|
], !0)
|
|
2359
2358
|
]),
|
|
2360
2359
|
key: "0"
|
|
@@ -2367,11 +2366,11 @@ const It = {
|
|
|
2367
2366
|
column: X,
|
|
2368
2367
|
$index: ie
|
|
2369
2368
|
}, () => [
|
|
2370
|
-
W("img",
|
|
2369
|
+
W("img", x({
|
|
2371
2370
|
style: { width: "80px", height: "80px", "object-fit": "cover", "border-radius": "3px" },
|
|
2372
2371
|
src: N.value,
|
|
2373
2372
|
ref_for: !0
|
|
2374
|
-
}, N), null, 16,
|
|
2373
|
+
}, N), null, 16, Xt)
|
|
2375
2374
|
], !0)
|
|
2376
2375
|
]),
|
|
2377
2376
|
key: "1"
|
|
@@ -2383,7 +2382,7 @@ const It = {
|
|
|
2383
2382
|
return [
|
|
2384
2383
|
W("div", {
|
|
2385
2384
|
class: Qe(["control", (We = e.value.control) == null ? void 0 : We.class]),
|
|
2386
|
-
style:
|
|
2385
|
+
style: Se((Ye = e.value.control) == null ? void 0 : Ye.style)
|
|
2387
2386
|
}, [
|
|
2388
2387
|
$(o.$slots, "control", {}, () => [
|
|
2389
2388
|
$(o.$slots, "control-left", {
|
|
@@ -2397,7 +2396,7 @@ const It = {
|
|
|
2397
2396
|
column: X,
|
|
2398
2397
|
$index: ie
|
|
2399
2398
|
}, () => [
|
|
2400
|
-
R(l,
|
|
2399
|
+
R(l, x({ ref_for: !0 }, e.value.control.view, {
|
|
2401
2400
|
onClick: (Ge) => J(G, X, ie, e.value)
|
|
2402
2401
|
}), {
|
|
2403
2402
|
default: d(() => [
|
|
@@ -2417,7 +2416,7 @@ const It = {
|
|
|
2417
2416
|
column: X,
|
|
2418
2417
|
$index: ie
|
|
2419
2418
|
}, () => [
|
|
2420
|
-
R(l,
|
|
2419
|
+
R(l, x({ ref_for: !0 }, e.value.control.edit, {
|
|
2421
2420
|
onClick: (Ge) => C(G, X, ie, e.value)
|
|
2422
2421
|
}), {
|
|
2423
2422
|
default: d(() => [
|
|
@@ -2437,7 +2436,7 @@ const It = {
|
|
|
2437
2436
|
column: X,
|
|
2438
2437
|
$index: ie
|
|
2439
2438
|
}, () => [
|
|
2440
|
-
R(l,
|
|
2439
|
+
R(l, x({ ref_for: !0 }, e.value.control.delete, {
|
|
2441
2440
|
onClick: (Ge) => te(G, X, ie, e.value)
|
|
2442
2441
|
}), {
|
|
2443
2442
|
default: d(() => [
|
|
@@ -2463,7 +2462,7 @@ const It = {
|
|
|
2463
2462
|
_: 3
|
|
2464
2463
|
}, 16),
|
|
2465
2464
|
(He = (ze = (Ne = e.value) == null ? void 0 : Ne.table) == null ? void 0 : ze.page) != null && He.hidden ? ue("", !0) : $(o.$slots, "page", { key: 0 }, () => [
|
|
2466
|
-
R(H,
|
|
2465
|
+
R(H, x({
|
|
2467
2466
|
"page-size": e.value.table.page.pageSize,
|
|
2468
2467
|
"onUpdate:pageSize": r[4] || (r[4] = (N) => e.value.table.page.pageSize = N),
|
|
2469
2468
|
"current-page": e.value.table.page.currentPage,
|
|
@@ -2478,7 +2477,7 @@ const It = {
|
|
|
2478
2477
|
])
|
|
2479
2478
|
]),
|
|
2480
2479
|
qe(W("div", null, [
|
|
2481
|
-
R(ae,
|
|
2480
|
+
R(ae, x({
|
|
2482
2481
|
modelValue: E.value,
|
|
2483
2482
|
"onUpdate:modelValue": r[9] || (r[9] = (N) => E.value = N),
|
|
2484
2483
|
fullscreen: e.value.dialog.fullScreen
|
|
@@ -2488,8 +2487,8 @@ const It = {
|
|
|
2488
2487
|
header: d(() => {
|
|
2489
2488
|
var N, de, G, X;
|
|
2490
2489
|
return [
|
|
2491
|
-
W("div",
|
|
2492
|
-
W("div",
|
|
2490
|
+
W("div", Kt, [
|
|
2491
|
+
W("div", Qt, [
|
|
2493
2492
|
$(o.$slots, "f-header", {}, () => [
|
|
2494
2493
|
W("div", null, Z(e.value.dialog.title), 1)
|
|
2495
2494
|
], !0)
|
|
@@ -2526,7 +2525,7 @@ const It = {
|
|
|
2526
2525
|
];
|
|
2527
2526
|
}),
|
|
2528
2527
|
default: d(() => [
|
|
2529
|
-
W("div",
|
|
2528
|
+
W("div", Jt, [
|
|
2530
2529
|
R(Ie, {
|
|
2531
2530
|
modelValue: e.value,
|
|
2532
2531
|
"onUpdate:modelValue": r[8] || (r[8] = (N) => e.value = N),
|
|
@@ -2548,13 +2547,13 @@ const It = {
|
|
|
2548
2547
|
[Be, e.value.dialog.mode == "dialog"]
|
|
2549
2548
|
]),
|
|
2550
2549
|
qe(W("div", null, [
|
|
2551
|
-
R(ve,
|
|
2550
|
+
R(ve, x({
|
|
2552
2551
|
modelValue: E.value,
|
|
2553
2552
|
"onUpdate:modelValue": r[11] || (r[11] = (N) => E.value = N)
|
|
2554
2553
|
}, a(pe)(e.value.dialog, (N) => !["width"].includes(N))), {
|
|
2555
2554
|
header: d(() => [
|
|
2556
|
-
W("div",
|
|
2557
|
-
W("div",
|
|
2555
|
+
W("div", Zt, [
|
|
2556
|
+
W("div", el, [
|
|
2558
2557
|
$(o.$slots, "f-header", {}, () => [
|
|
2559
2558
|
W("div", null, Z(e.value.dialog.title), 1)
|
|
2560
2559
|
], !0)
|
|
@@ -2584,34 +2583,34 @@ const It = {
|
|
|
2584
2583
|
], 64);
|
|
2585
2584
|
};
|
|
2586
2585
|
}
|
|
2587
|
-
}),
|
|
2588
|
-
|
|
2586
|
+
}), ll = /* @__PURE__ */ Oe(tl, [["__scopeId", "data-v-5ff40974"]]), ol = Object.freeze({}), et = [
|
|
2587
|
+
ll,
|
|
2589
2588
|
Ie
|
|
2590
2589
|
];
|
|
2591
2590
|
let je = {};
|
|
2592
|
-
const
|
|
2591
|
+
const fl = {
|
|
2593
2592
|
install: (c, s = {}) => {
|
|
2594
|
-
je = Object.freeze({ ...
|
|
2593
|
+
je = Object.freeze({ ...ol, ...s }), et.forEach((t) => {
|
|
2595
2594
|
c.component(t.name, t);
|
|
2596
2595
|
}), c.provide("options", je), c.config.globalProperties.$openModal = Re;
|
|
2597
2596
|
}
|
|
2598
|
-
},
|
|
2597
|
+
}, al = (c) => ({ dialog: ot, drawer: at })[c] || null, Re = (c = {}, s = "dialog") => {
|
|
2599
2598
|
if (typeof document > "u") return () => {
|
|
2600
2599
|
};
|
|
2601
2600
|
const t = document.createElement("div");
|
|
2602
2601
|
let e = () => {
|
|
2603
2602
|
};
|
|
2604
|
-
const n =
|
|
2603
|
+
const n = al(s);
|
|
2605
2604
|
if (!n) return () => {
|
|
2606
2605
|
};
|
|
2607
|
-
const f =
|
|
2606
|
+
const f = ye(!0), E = dt({
|
|
2608
2607
|
setup() {
|
|
2609
2608
|
return e = () => {
|
|
2610
2609
|
f.value = !1, setTimeout(() => {
|
|
2611
2610
|
E.unmount(), t.remove();
|
|
2612
2611
|
}, 300);
|
|
2613
2612
|
}, () => {
|
|
2614
|
-
var I,
|
|
2613
|
+
var I, D, b;
|
|
2615
2614
|
return Ue(n, {
|
|
2616
2615
|
modelValue: f.value,
|
|
2617
2616
|
"onUpdate:modelValue": (M) => f.value = M,
|
|
@@ -2620,8 +2619,8 @@ const cl = {
|
|
|
2620
2619
|
destroyOnClose: !0
|
|
2621
2620
|
}, {
|
|
2622
2621
|
default: (I = c.slots) == null ? void 0 : I.default,
|
|
2623
|
-
header: (
|
|
2624
|
-
footer: (
|
|
2622
|
+
header: (D = c.slots) == null ? void 0 : D.header,
|
|
2623
|
+
footer: (b = c.slots) == null ? void 0 : b.footer
|
|
2625
2624
|
});
|
|
2626
2625
|
};
|
|
2627
2626
|
}
|
|
@@ -2652,7 +2651,7 @@ function tt(c, s = window.innerWidth) {
|
|
|
2652
2651
|
throw new Error("Invalid calc expression");
|
|
2653
2652
|
};
|
|
2654
2653
|
const n = c.slice(5, -1).trim();
|
|
2655
|
-
return f(n.replace(/([0-9.]+)([a-z%]+)/g, (I,
|
|
2654
|
+
return f(n.replace(/([0-9.]+)([a-z%]+)/g, (I, D, b) => tt(D + b, s)));
|
|
2656
2655
|
}
|
|
2657
2656
|
throw new Error("Unsupported unit in value: " + c);
|
|
2658
2657
|
}
|
|
@@ -2668,12 +2667,12 @@ function pe(c, s = (t, e) => s(t, e)) {
|
|
|
2668
2667
|
c.hasOwnProperty(e) && s(e, c[e]) && (t[e] = c[e]);
|
|
2669
2668
|
return t;
|
|
2670
2669
|
}
|
|
2671
|
-
function
|
|
2670
|
+
function rl(c, s, t = "value", e = "label", n = "children") {
|
|
2672
2671
|
for (const f of c) {
|
|
2673
2672
|
if (f[t] === s)
|
|
2674
2673
|
return f[e];
|
|
2675
2674
|
if (f[n] && f[n].length > 0) {
|
|
2676
|
-
const E =
|
|
2675
|
+
const E = rl(f[n], s, t, e, n);
|
|
2677
2676
|
if (E)
|
|
2678
2677
|
return E;
|
|
2679
2678
|
}
|
|
@@ -2692,13 +2691,13 @@ function Le(c) {
|
|
|
2692
2691
|
f = f || "整", c = Math.floor(c);
|
|
2693
2692
|
for (let E = 0; E < e[0].length && c > 0; E++) {
|
|
2694
2693
|
let I = "";
|
|
2695
|
-
for (let
|
|
2696
|
-
I = t[c % 10] + e[1][
|
|
2694
|
+
for (let D = 0; D < e[1].length && c > 0; D++)
|
|
2695
|
+
I = t[c % 10] + e[1][D] + I, c = Math.floor(c / 10);
|
|
2697
2696
|
f = I.replace(/(零.)*零$/, "").replace(/^$/, "零") + e[0][E] + f;
|
|
2698
2697
|
}
|
|
2699
2698
|
return n + f.replace(/(零.)*零元/, "元").replace(/(零.)+/g, "零").replace(/^整$/, "零元整");
|
|
2700
2699
|
}
|
|
2701
|
-
function
|
|
2700
|
+
function ul(c) {
|
|
2702
2701
|
if (typeof c != "number")
|
|
2703
2702
|
return "0.00";
|
|
2704
2703
|
const s = c.toFixed(2), [t, e] = s.split(".");
|
|
@@ -2736,10 +2735,10 @@ const re = {
|
|
|
2736
2735
|
export {
|
|
2737
2736
|
re as CT,
|
|
2738
2737
|
tt as convertToPx,
|
|
2739
|
-
|
|
2738
|
+
fl as default,
|
|
2740
2739
|
pe as filterObject,
|
|
2741
|
-
|
|
2742
|
-
|
|
2740
|
+
rl as findTreeLabelByValue,
|
|
2741
|
+
ul as formatAmount,
|
|
2743
2742
|
he as mergeObjects,
|
|
2744
2743
|
Le as moneyToChinese,
|
|
2745
2744
|
Re as openModal
|