vue-2024-ui 0.0.60 → 0.0.61
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 +374 -373
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import $t, { ElForm as Pe, ElButtonGroup as ze, ElButton as ge, ElPopover as Xe, ElMessage as ke, ElMessageBox as ft, ElDialog as Et, ElDrawer as wt } from "element-plus";
|
|
2
|
-
import { mergeModels as Se, useModel as Oe, ref as he, onMounted as Ne, resolveComponent as R, openBlock as n, createElementBlock as B, unref as o, createBlock as M, mergeProps as x, withCtx as h, renderSlot as p, Fragment as Y, renderList as U, createTextVNode as be, toDisplayString as
|
|
2
|
+
import { mergeModels as Se, useModel as Oe, ref as he, onMounted as Ne, resolveComponent as R, openBlock as n, createElementBlock as B, unref as o, createBlock as M, mergeProps as x, withCtx as h, renderSlot as p, Fragment as Y, renderList as U, createTextVNode as be, toDisplayString as ve, createSlots as fe, normalizeProps as je, createVNode as G, createElementVNode as Q, useSlots as ct, inject as lt, useAttrs as He, onUnmounted as _t, computed as xe, normalizeStyle as Te, withModifiers as st, createCommentVNode as ye, guardReactiveProps as Ze, resolveDynamicComponent as qe, Transition as kt, withDirectives as mt, vShow as pt, h as Ve, onBeforeUnmount as Ct, normalizeClass as vt, watchEffect as Dt, watch as Vt, createApp as Ft } from "vue";
|
|
3
3
|
import { FullScreen as Tt, Remove as Mt } from "@element-plus/icons-vue";
|
|
4
4
|
import yt from "sortablejs";
|
|
5
5
|
import { Dexie as qt } from "dexie";
|
|
@@ -189,37 +189,37 @@ var ht = { exports: {} };
|
|
|
189
189
|
(function(t, e) {
|
|
190
190
|
m.exports = e();
|
|
191
191
|
})(Ot, function() {
|
|
192
|
-
var t = 1e3, e = 6e4, a = 36e5, v = "millisecond",
|
|
192
|
+
var t = 1e3, e = 6e4, a = 36e5, v = "millisecond", F = "second", T = "minute", q = "hour", E = "day", _ = "week", P = "month", se = "quarter", V = "year", u = "date", A = "Invalid Date", K = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, ee = /\[([^\]]+)]|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, ie = { 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(k) {
|
|
193
193
|
var $ = ["th", "st", "nd", "rd"], b = k % 100;
|
|
194
194
|
return "[" + k + ($[(b - 20) % 10] || $[b] || $[0]) + "]";
|
|
195
|
-
} },
|
|
195
|
+
} }, me = function(k, $, b) {
|
|
196
196
|
var c = String(k);
|
|
197
197
|
return !c || c.length >= $ ? k : "" + Array($ + 1 - c.length).join(b) + k;
|
|
198
|
-
}, de = { s:
|
|
198
|
+
}, de = { s: me, z: function(k) {
|
|
199
199
|
var $ = -k.utcOffset(), b = Math.abs($), c = Math.floor(b / 60), i = b % 60;
|
|
200
|
-
return ($ <= 0 ? "+" : "-") +
|
|
200
|
+
return ($ <= 0 ? "+" : "-") + me(c, 2, "0") + ":" + me(i, 2, "0");
|
|
201
201
|
}, m: function k($, b) {
|
|
202
202
|
if ($.date() < b.date()) return -k(b, $);
|
|
203
|
-
var c = 12 * (b.year() - $.year()) + (b.month() - $.month()), i = $.clone().add(c, P), w = b - i < 0,
|
|
204
|
-
return +(-(c + (b - i) / (w ? i -
|
|
203
|
+
var c = 12 * (b.year() - $.year()) + (b.month() - $.month()), i = $.clone().add(c, P), w = b - i < 0, S = $.clone().add(c + (w ? -1 : 1), P);
|
|
204
|
+
return +(-(c + (b - i) / (w ? i - S : S - i)) || 0);
|
|
205
205
|
}, a: function(k) {
|
|
206
206
|
return k < 0 ? Math.ceil(k) || 0 : Math.floor(k);
|
|
207
207
|
}, p: function(k) {
|
|
208
|
-
return { M: P, y: V, w: _, d: E, D: u, h:
|
|
208
|
+
return { M: P, y: V, w: _, d: E, D: u, h: q, m: T, s: F, ms: v, Q: se }[k] || String(k || "").toLowerCase().replace(/s$/, "");
|
|
209
209
|
}, u: function(k) {
|
|
210
210
|
return k === void 0;
|
|
211
211
|
} }, ae = "en", d = {};
|
|
212
|
-
d[ae] =
|
|
212
|
+
d[ae] = ie;
|
|
213
213
|
var D = "$isDayjsObject", I = function(k) {
|
|
214
|
-
return k instanceof
|
|
214
|
+
return k instanceof te || !(!k || !k[D]);
|
|
215
215
|
}, y = function k($, b, c) {
|
|
216
216
|
var i;
|
|
217
217
|
if (!$) return ae;
|
|
218
218
|
if (typeof $ == "string") {
|
|
219
219
|
var w = $.toLowerCase();
|
|
220
220
|
d[w] && (i = w), b && (d[w] = b, i = w);
|
|
221
|
-
var
|
|
222
|
-
if (!i &&
|
|
221
|
+
var S = $.split("-");
|
|
222
|
+
if (!i && S.length > 1) return k(S[0]);
|
|
223
223
|
} else {
|
|
224
224
|
var z = $.name;
|
|
225
225
|
d[z] = $, i = z;
|
|
@@ -228,12 +228,12 @@ var ht = { exports: {} };
|
|
|
228
228
|
}, L = function(k, $) {
|
|
229
229
|
if (I(k)) return k.clone();
|
|
230
230
|
var b = typeof $ == "object" ? $ : {};
|
|
231
|
-
return b.date = k, b.args = arguments, new
|
|
231
|
+
return b.date = k, b.args = arguments, new te(b);
|
|
232
232
|
}, O = de;
|
|
233
233
|
O.l = y, O.i = I, O.w = function(k, $) {
|
|
234
234
|
return L(k, { locale: $.$L, utc: $.$u, x: $.$x, $offset: $.$offset });
|
|
235
235
|
};
|
|
236
|
-
var
|
|
236
|
+
var te = function() {
|
|
237
237
|
function k(b) {
|
|
238
238
|
this.$L = y(b.locale, null, !0), this.parse(b), this.$x = this.$x || b.x || {}, this[D] = !0;
|
|
239
239
|
}
|
|
@@ -245,10 +245,10 @@ var ht = { exports: {} };
|
|
|
245
245
|
if (O.u(i)) return /* @__PURE__ */ new Date();
|
|
246
246
|
if (i instanceof Date) return new Date(i);
|
|
247
247
|
if (typeof i == "string" && !/Z$/i.test(i)) {
|
|
248
|
-
var
|
|
249
|
-
if (
|
|
250
|
-
var z =
|
|
251
|
-
return w ? new Date(Date.UTC(
|
|
248
|
+
var S = i.match(K);
|
|
249
|
+
if (S) {
|
|
250
|
+
var z = S[2] - 1 || 0, X = (S[7] || "0").substring(0, 3);
|
|
251
|
+
return w ? new Date(Date.UTC(S[1], z, S[3] || 1, S[4] || 0, S[5] || 0, S[6] || 0, X)) : new Date(S[1], z, S[3] || 1, S[4] || 0, S[5] || 0, S[6] || 0, X);
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
254
|
return new Date(i);
|
|
@@ -274,28 +274,28 @@ var ht = { exports: {} };
|
|
|
274
274
|
}, $.valueOf = function() {
|
|
275
275
|
return this.$d.getTime();
|
|
276
276
|
}, $.startOf = function(b, c) {
|
|
277
|
-
var i = this, w = !!O.u(c) || c,
|
|
277
|
+
var i = this, w = !!O.u(c) || c, S = O.p(b), z = function(De, l) {
|
|
278
278
|
var r = O.w(i.$u ? Date.UTC(i.$y, l, De) : new Date(i.$y, l, De), i);
|
|
279
279
|
return w ? r : r.endOf(E);
|
|
280
280
|
}, X = function(De, l) {
|
|
281
281
|
return O.w(i.toDate()[De].apply(i.toDate("s"), (w ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(l)), i);
|
|
282
282
|
}, oe = this.$W, ne = this.$M, s = this.$D, W = "set" + (this.$u ? "UTC" : "");
|
|
283
|
-
switch (
|
|
283
|
+
switch (S) {
|
|
284
284
|
case V:
|
|
285
285
|
return w ? z(1, 0) : z(31, 11);
|
|
286
286
|
case P:
|
|
287
287
|
return w ? z(1, ne) : z(0, ne + 1);
|
|
288
288
|
case _:
|
|
289
|
-
var
|
|
289
|
+
var le = this.$locale().weekStart || 0, Ee = (oe < le ? oe + 7 : oe) - le;
|
|
290
290
|
return z(w ? s - Ee : s + (6 - Ee), ne);
|
|
291
291
|
case E:
|
|
292
292
|
case u:
|
|
293
293
|
return X(W + "Hours", 0);
|
|
294
|
-
case
|
|
294
|
+
case q:
|
|
295
295
|
return X(W + "Minutes", 1);
|
|
296
|
-
case F:
|
|
297
|
-
return X(W + "Seconds", 2);
|
|
298
296
|
case T:
|
|
297
|
+
return X(W + "Seconds", 2);
|
|
298
|
+
case F:
|
|
299
299
|
return X(W + "Milliseconds", 3);
|
|
300
300
|
default:
|
|
301
301
|
return this.clone();
|
|
@@ -303,7 +303,7 @@ var ht = { exports: {} };
|
|
|
303
303
|
}, $.endOf = function(b) {
|
|
304
304
|
return this.startOf(b, !1);
|
|
305
305
|
}, $.$set = function(b, c) {
|
|
306
|
-
var i, w = O.p(b),
|
|
306
|
+
var i, w = O.p(b), S = "set" + (this.$u ? "UTC" : ""), z = (i = {}, i[E] = S + "Date", i[u] = S + "Date", i[P] = S + "Month", i[V] = S + "FullYear", i[q] = S + "Hours", i[T] = S + "Minutes", i[F] = S + "Seconds", i[v] = S + "Milliseconds", i)[w], X = w === E ? this.$D + (c - this.$W) : c;
|
|
307
307
|
if (w === P || w === V) {
|
|
308
308
|
var oe = this.clone().set(u, 1);
|
|
309
309
|
oe.$d[z](X), oe.init(), this.$d = oe.set(u, Math.min(this.$D, oe.daysInMonth())).$d;
|
|
@@ -316,22 +316,22 @@ var ht = { exports: {} };
|
|
|
316
316
|
}, $.add = function(b, c) {
|
|
317
317
|
var i, w = this;
|
|
318
318
|
b = Number(b);
|
|
319
|
-
var
|
|
319
|
+
var S = O.p(c), z = function(ne) {
|
|
320
320
|
var s = L(w);
|
|
321
321
|
return O.w(s.date(s.date() + Math.round(ne * b)), w);
|
|
322
322
|
};
|
|
323
|
-
if (
|
|
324
|
-
if (
|
|
325
|
-
if (
|
|
326
|
-
if (
|
|
327
|
-
var X = (i = {}, i[
|
|
323
|
+
if (S === P) return this.set(P, this.$M + b);
|
|
324
|
+
if (S === V) return this.set(V, this.$y + b);
|
|
325
|
+
if (S === E) return z(1);
|
|
326
|
+
if (S === _) return z(7);
|
|
327
|
+
var X = (i = {}, i[T] = e, i[q] = a, i[F] = t, i)[S] || 1, oe = this.$d.getTime() + b * X;
|
|
328
328
|
return O.w(oe, this);
|
|
329
329
|
}, $.subtract = function(b, c) {
|
|
330
330
|
return this.add(-1 * b, c);
|
|
331
331
|
}, $.format = function(b) {
|
|
332
332
|
var c = this, i = this.$locale();
|
|
333
333
|
if (!this.isValid()) return i.invalidDate || A;
|
|
334
|
-
var w = b || "YYYY-MM-DDTHH:mm:ssZ",
|
|
334
|
+
var w = b || "YYYY-MM-DDTHH:mm:ssZ", S = O.z(this), z = this.$H, X = this.$m, oe = this.$M, ne = i.weekdays, s = i.months, W = i.meridiem, le = function(l, r, g, j) {
|
|
335
335
|
return l && (l[r] || l(c, w)) || g[r].slice(0, j);
|
|
336
336
|
}, Ee = function(l) {
|
|
337
337
|
return O.s(z % 12 || 12, l, "0");
|
|
@@ -339,7 +339,7 @@ var ht = { exports: {} };
|
|
|
339
339
|
var j = l < 12 ? "AM" : "PM";
|
|
340
340
|
return g ? j.toLowerCase() : j;
|
|
341
341
|
};
|
|
342
|
-
return w.replace(
|
|
342
|
+
return w.replace(ee, function(l, r) {
|
|
343
343
|
return r || function(g) {
|
|
344
344
|
switch (g) {
|
|
345
345
|
case "YY":
|
|
@@ -351,9 +351,9 @@ var ht = { exports: {} };
|
|
|
351
351
|
case "MM":
|
|
352
352
|
return O.s(oe + 1, 2, "0");
|
|
353
353
|
case "MMM":
|
|
354
|
-
return
|
|
354
|
+
return le(i.monthsShort, oe, s, 3);
|
|
355
355
|
case "MMMM":
|
|
356
|
-
return
|
|
356
|
+
return le(s, oe);
|
|
357
357
|
case "D":
|
|
358
358
|
return c.$D;
|
|
359
359
|
case "DD":
|
|
@@ -361,9 +361,9 @@ var ht = { exports: {} };
|
|
|
361
361
|
case "d":
|
|
362
362
|
return String(c.$W);
|
|
363
363
|
case "dd":
|
|
364
|
-
return
|
|
364
|
+
return le(i.weekdaysMin, c.$W, ne, 2);
|
|
365
365
|
case "ddd":
|
|
366
|
-
return
|
|
366
|
+
return le(i.weekdaysShort, c.$W, ne, 3);
|
|
367
367
|
case "dddd":
|
|
368
368
|
return ne[c.$W];
|
|
369
369
|
case "H":
|
|
@@ -389,16 +389,16 @@ var ht = { exports: {} };
|
|
|
389
389
|
case "SSS":
|
|
390
390
|
return O.s(c.$ms, 3, "0");
|
|
391
391
|
case "Z":
|
|
392
|
-
return
|
|
392
|
+
return S;
|
|
393
393
|
}
|
|
394
394
|
return null;
|
|
395
|
-
}(l) ||
|
|
395
|
+
}(l) || S.replace(":", "");
|
|
396
396
|
});
|
|
397
397
|
}, $.utcOffset = function() {
|
|
398
398
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
399
399
|
}, $.diff = function(b, c, i) {
|
|
400
|
-
var w,
|
|
401
|
-
return O.m(
|
|
400
|
+
var w, S = this, z = O.p(c), X = L(b), oe = (X.utcOffset() - this.utcOffset()) * e, ne = this - X, s = function() {
|
|
401
|
+
return O.m(S, X);
|
|
402
402
|
};
|
|
403
403
|
switch (z) {
|
|
404
404
|
case V:
|
|
@@ -416,13 +416,13 @@ var ht = { exports: {} };
|
|
|
416
416
|
case E:
|
|
417
417
|
w = (ne - oe) / 864e5;
|
|
418
418
|
break;
|
|
419
|
-
case
|
|
419
|
+
case q:
|
|
420
420
|
w = ne / a;
|
|
421
421
|
break;
|
|
422
|
-
case
|
|
422
|
+
case T:
|
|
423
423
|
w = ne / e;
|
|
424
424
|
break;
|
|
425
|
-
case
|
|
425
|
+
case F:
|
|
426
426
|
w = ne / t;
|
|
427
427
|
break;
|
|
428
428
|
default:
|
|
@@ -448,13 +448,13 @@ var ht = { exports: {} };
|
|
|
448
448
|
}, $.toString = function() {
|
|
449
449
|
return this.$d.toUTCString();
|
|
450
450
|
}, k;
|
|
451
|
-
}(), $e =
|
|
452
|
-
return L.prototype = $e, [["$ms", v], ["$s",
|
|
451
|
+
}(), $e = te.prototype;
|
|
452
|
+
return L.prototype = $e, [["$ms", v], ["$s", F], ["$m", T], ["$H", q], ["$W", E], ["$M", P], ["$y", V], ["$D", u]].forEach(function(k) {
|
|
453
453
|
$e[k[1]] = function($) {
|
|
454
454
|
return this.$g($, k[0], k[1]);
|
|
455
455
|
};
|
|
456
456
|
}), L.extend = function(k, $) {
|
|
457
|
-
return k.$i || (k($,
|
|
457
|
+
return k.$i || (k($, te, L), k.$i = !0), L;
|
|
458
458
|
}, L.locale = y, L.isDayjs = I, L.unix = function(k) {
|
|
459
459
|
return L(1e3 * k);
|
|
460
460
|
}, L.en = d[ae], L.Ls = d, L.p = {}, L;
|
|
@@ -475,57 +475,58 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
475
475
|
}),
|
|
476
476
|
emits: ["update:modelValue"],
|
|
477
477
|
setup(m) {
|
|
478
|
-
const f = Oe(m, "modelValue"), t = m, e = t.item || {}, a = t.ctrlKey, v = t.ctrlType,
|
|
478
|
+
const f = Oe(m, "modelValue"), t = m, e = t.item || {}, a = t.ctrlKey, v = t.ctrlType, F = t.model, T = he([]), q = he([]), E = () => Object.keys(ct()).filter((V) => V.startsWith(`${t.t}-${a}-`)).map((V) => V.replace(`${t.t}-${a}-`, "")), _ = {
|
|
479
479
|
filterable: !0,
|
|
480
480
|
remote: !!(e && e["remote-method"]),
|
|
481
481
|
...e
|
|
482
482
|
}, P = (V) => {
|
|
483
483
|
e["remote-method"](V, (u) => {
|
|
484
|
-
|
|
484
|
+
q.value = u;
|
|
485
485
|
});
|
|
486
486
|
}, se = async (V = "options") => {
|
|
487
487
|
try {
|
|
488
488
|
const u = await (e == null ? void 0 : e.getDicts(t.formInfo));
|
|
489
489
|
if (typeof u == "string")
|
|
490
|
-
|
|
490
|
+
q.value = [{ label: u, value: f.value }];
|
|
491
491
|
else {
|
|
492
|
-
const A = u == null ? void 0 : u.map((
|
|
493
|
-
...
|
|
494
|
-
value:
|
|
495
|
-
label:
|
|
492
|
+
const A = u == null ? void 0 : u.map((K, ee) => ({
|
|
493
|
+
...K,
|
|
494
|
+
value: K.value ?? K.label ?? ee,
|
|
495
|
+
label: K.label || "未知选项"
|
|
496
496
|
}));
|
|
497
|
-
|
|
497
|
+
q.value = A || [];
|
|
498
498
|
}
|
|
499
499
|
} catch (u) {
|
|
500
500
|
throw console.error("获取选项失败:", u), u;
|
|
501
501
|
}
|
|
502
502
|
};
|
|
503
503
|
return Ne(async () => {
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
504
|
+
var A, K;
|
|
505
|
+
e && e["remote-method"] && (_["remote-method"] = P), (K = (A = F[a]) == null ? void 0 : A.options) != null && K.length && (q.value = F[a].options);
|
|
506
|
+
const V = (ee, ie = "options", me = F[a]) => {
|
|
507
|
+
typeof e.getDicts == "function" && se(ie).catch((de) => {
|
|
508
|
+
console.error(`Failed to load ${ie} for ${ee}:`, de);
|
|
508
509
|
});
|
|
509
510
|
};
|
|
510
511
|
["radio", "radio-button", "checkbox-group", "checkbox-group-button", "select", "cascader"].includes(v) && V(v), v === "tree-select" && await (async () => {
|
|
511
512
|
try {
|
|
512
|
-
typeof e.getDicts == "function" ?
|
|
513
|
-
} catch (
|
|
514
|
-
console.error("Failed to load data for tree-select:",
|
|
513
|
+
typeof e.getDicts == "function" ? T.value = await e.getDicts(t.formInfo) : T.value = q.value;
|
|
514
|
+
} catch (ie) {
|
|
515
|
+
console.error("Failed to load data for tree-select:", ie);
|
|
515
516
|
}
|
|
516
517
|
})();
|
|
517
518
|
}), (V, u) => {
|
|
518
519
|
var oe, ne;
|
|
519
|
-
const A = R("el-radio"),
|
|
520
|
+
const A = R("el-radio"), K = R("el-radio-group"), ee = R("el-radio-button"), ie = R("el-checkbox"), me = R("el-checkbox-group"), de = R("el-checkbox-button"), ae = R("el-option"), d = R("el-option-group"), D = R("el-select"), I = R("el-tree-select"), y = R("el-time-picker"), L = R("el-time-select"), O = R("el-date-picker"), te = R("el-color-picker"), $e = R("el-rate"), k = R("el-slider"), $ = R("el-switch"), b = R("el-transfer"), c = R("el-cascader"), i = R("el-button"), w = R("el-upload"), S = R("el-autocomplete"), z = R("el-input-number"), X = R("el-input");
|
|
520
521
|
return n(), B("div", Bt, [
|
|
521
|
-
o(v) == o(
|
|
522
|
+
o(v) == o(ce).RADIO ? (n(), M(K, x({
|
|
522
523
|
key: 0,
|
|
523
524
|
modelValue: f.value,
|
|
524
525
|
"onUpdate:modelValue": u[0] || (u[0] = (s) => f.value = s)
|
|
525
526
|
}, o(e)), {
|
|
526
527
|
default: h(() => [
|
|
527
528
|
p(V.$slots, `${t.t}-${o(a)}`, { data: o(e) }, () => [
|
|
528
|
-
(n(!0), B(Y, null, U(
|
|
529
|
+
(n(!0), B(Y, null, U(q.value, (s) => (n(), M(A, x({ ref_for: !0 }, s), {
|
|
529
530
|
default: h(() => [
|
|
530
531
|
p(V.$slots, `${t.t}-${o(a)}-options`, { option: s })
|
|
531
532
|
]),
|
|
@@ -534,14 +535,14 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
534
535
|
])
|
|
535
536
|
]),
|
|
536
537
|
_: 3
|
|
537
|
-
}, 16, ["modelValue"])) : o(v) == o(
|
|
538
|
+
}, 16, ["modelValue"])) : o(v) == o(ce).RADIOBUTTON ? (n(), M(K, x({
|
|
538
539
|
key: 1,
|
|
539
540
|
modelValue: f.value,
|
|
540
541
|
"onUpdate:modelValue": u[1] || (u[1] = (s) => f.value = s)
|
|
541
542
|
}, o(e)), {
|
|
542
543
|
default: h(() => [
|
|
543
544
|
p(V.$slots, `${t.t}-${o(a)}`, { data: o(e) }, () => [
|
|
544
|
-
(n(!0), B(Y, null, U(
|
|
545
|
+
(n(!0), B(Y, null, U(q.value, (s) => (n(), M(ee, x({ ref_for: !0 }, s), {
|
|
545
546
|
default: h(() => [
|
|
546
547
|
p(V.$slots, `${t.t}-${o(a)}-options`, { option: s })
|
|
547
548
|
]),
|
|
@@ -550,28 +551,28 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
550
551
|
])
|
|
551
552
|
]),
|
|
552
553
|
_: 3
|
|
553
|
-
}, 16, ["modelValue"])) : o(v) == o(
|
|
554
|
+
}, 16, ["modelValue"])) : o(v) == o(ce).CHECKBOX ? (n(), M(ie, x({
|
|
554
555
|
key: 2,
|
|
555
556
|
modelValue: f.value,
|
|
556
557
|
"onUpdate:modelValue": u[2] || (u[2] = (s) => f.value = s)
|
|
557
558
|
}, o(e)), {
|
|
558
559
|
default: h(() => [
|
|
559
560
|
p(V.$slots, `${t.t}-${o(a)}`, { data: o(e) }, () => [
|
|
560
|
-
u[21] || (u[21] = be(
|
|
561
|
+
u[21] || (u[21] = be(ve(" ")))
|
|
561
562
|
])
|
|
562
563
|
]),
|
|
563
564
|
_: 3
|
|
564
|
-
}, 16, ["modelValue"])) : o(v) == o(
|
|
565
|
+
}, 16, ["modelValue"])) : o(v) == o(ce).CHECKBOXGROUP ? (n(), M(me, x({
|
|
565
566
|
key: 3,
|
|
566
567
|
modelValue: f.value,
|
|
567
568
|
"onUpdate:modelValue": u[3] || (u[3] = (s) => f.value = s)
|
|
568
569
|
}, o(e)), {
|
|
569
570
|
default: h(() => [
|
|
570
571
|
p(V.$slots, `${t.t}-${o(a)}`, { data: o(e) }, () => [
|
|
571
|
-
(n(!0), B(Y, null, U(
|
|
572
|
+
(n(!0), B(Y, null, U(q.value, (s) => (n(), M(ie, x({ ref_for: !0 }, s), {
|
|
572
573
|
default: h(() => [
|
|
573
574
|
p(V.$slots, `${t.t}-${o(a)}-options`, { option: s }, () => [
|
|
574
|
-
be(
|
|
575
|
+
be(ve(s.label), 1)
|
|
575
576
|
])
|
|
576
577
|
]),
|
|
577
578
|
_: 2
|
|
@@ -579,14 +580,14 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
579
580
|
])
|
|
580
581
|
]),
|
|
581
582
|
_: 3
|
|
582
|
-
}, 16, ["modelValue"])) : o(v) == o(
|
|
583
|
+
}, 16, ["modelValue"])) : o(v) == o(ce).CHECKBOXGROUPBUTTON ? (n(), M(me, x({
|
|
583
584
|
key: 4,
|
|
584
585
|
modelValue: f.value,
|
|
585
586
|
"onUpdate:modelValue": u[4] || (u[4] = (s) => f.value = s)
|
|
586
587
|
}, o(e)), {
|
|
587
588
|
default: h(() => [
|
|
588
589
|
p(V.$slots, `${t.t}-${o(a)}`, { data: o(e) }, () => [
|
|
589
|
-
(n(!0), B(Y, null, U(
|
|
590
|
+
(n(!0), B(Y, null, U(q.value, (s) => (n(), M(de, x({ ref_for: !0 }, s), {
|
|
590
591
|
default: h(() => [
|
|
591
592
|
p(V.$slots, `${t.t}-${o(a)}-options`, { option: s })
|
|
592
593
|
]),
|
|
@@ -595,22 +596,22 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
595
596
|
])
|
|
596
597
|
]),
|
|
597
598
|
_: 3
|
|
598
|
-
}, 16, ["modelValue"])) : o(v) === o(
|
|
599
|
+
}, 16, ["modelValue"])) : o(v) === o(ce).SELECT ? (n(), M(D, x({
|
|
599
600
|
key: 5,
|
|
600
601
|
modelValue: f.value,
|
|
601
602
|
"onUpdate:modelValue": u[5] || (u[5] = (s) => f.value = s),
|
|
602
|
-
placeholder: o(
|
|
603
|
-
}, _),
|
|
603
|
+
placeholder: o(F)[o(a)].label
|
|
604
|
+
}, _), fe({
|
|
604
605
|
default: h(() => [
|
|
605
|
-
p(V.$slots, `${t.t}-${o(a)}`, { options:
|
|
606
|
+
p(V.$slots, `${t.t}-${o(a)}`, { options: q.value }, () => {
|
|
606
607
|
var s, W;
|
|
607
608
|
return [
|
|
608
|
-
(W = (s = o(
|
|
609
|
-
key:
|
|
610
|
-
label:
|
|
609
|
+
(W = (s = o(F)[o(a)]) == null ? void 0 : s.options) != null && W.some((le) => le.options) ? (n(!0), B(Y, { key: 0 }, U(q.value, (le) => (n(), M(d, {
|
|
610
|
+
key: le.label,
|
|
611
|
+
label: le.label
|
|
611
612
|
}, {
|
|
612
613
|
default: h(() => [
|
|
613
|
-
(n(!0), B(Y, null, U(
|
|
614
|
+
(n(!0), B(Y, null, U(le.options, (Ee) => (n(), M(ae, x({ ref_for: !0 }, Ee, {
|
|
614
615
|
key: Ee.value,
|
|
615
616
|
onClick: (De) => _.change && _.change(Ee)
|
|
616
617
|
}), {
|
|
@@ -621,12 +622,12 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
621
622
|
}, 1040, ["onClick"]))), 128))
|
|
622
623
|
]),
|
|
623
624
|
_: 2
|
|
624
|
-
}, 1032, ["label"]))), 128)) : (n(!0), B(Y, { key: 1 }, U(
|
|
625
|
-
key:
|
|
626
|
-
onClick: (Ee) => _.change && _.change(
|
|
625
|
+
}, 1032, ["label"]))), 128)) : (n(!0), B(Y, { key: 1 }, U(q.value, (le) => (n(), M(ae, x({ ref_for: !0 }, le, {
|
|
626
|
+
key: le.value,
|
|
627
|
+
onClick: (Ee) => _.change && _.change(le)
|
|
627
628
|
}), {
|
|
628
629
|
default: h(() => [
|
|
629
|
-
p(V.$slots, `${t.t}-${o(a)}-options`, { option:
|
|
630
|
+
p(V.$slots, `${t.t}-${o(a)}-options`, { option: le })
|
|
630
631
|
]),
|
|
631
632
|
_: 2
|
|
632
633
|
}, 1040, ["onClick"]))), 128))
|
|
@@ -641,107 +642,107 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
641
642
|
p(V.$slots, `${t.t}-${o(a)}-${s}`, { data: W })
|
|
642
643
|
])
|
|
643
644
|
}))
|
|
644
|
-
]), 1040, ["modelValue", "placeholder"])) : o(v) == o(
|
|
645
|
+
]), 1040, ["modelValue", "placeholder"])) : o(v) == o(ce).TREESELECT ? (n(), M(I, x({
|
|
645
646
|
key: 6,
|
|
646
647
|
modelValue: f.value,
|
|
647
648
|
"onUpdate:modelValue": u[6] || (u[6] = (s) => f.value = s),
|
|
648
|
-
placeholder: o(
|
|
649
|
-
}, o(e), { data:
|
|
649
|
+
placeholder: o(F)[o(a)].label
|
|
650
|
+
}, o(e), { data: T.value }), fe({ _: 2 }, [
|
|
650
651
|
U(E(), (s) => ({
|
|
651
652
|
name: s,
|
|
652
653
|
fn: h((W) => [
|
|
653
654
|
p(V.$slots, `${t.t}-${o(a)}-${s}`, { data: W })
|
|
654
655
|
])
|
|
655
656
|
}))
|
|
656
|
-
]), 1040, ["modelValue", "placeholder", "data"])) : o(v) == o(
|
|
657
|
+
]), 1040, ["modelValue", "placeholder", "data"])) : o(v) == o(ce).TIME ? (n(), M(y, x({
|
|
657
658
|
key: 7,
|
|
658
659
|
modelValue: f.value,
|
|
659
660
|
"onUpdate:modelValue": u[7] || (u[7] = (s) => f.value = s),
|
|
660
661
|
"arrow-control": ""
|
|
661
662
|
}, o(e), {
|
|
662
|
-
placeholder: o(
|
|
663
|
-
}), null, 16, ["modelValue", "placeholder"])) : o(v) == o(
|
|
663
|
+
placeholder: o(F)[o(a)].label
|
|
664
|
+
}), null, 16, ["modelValue", "placeholder"])) : o(v) == o(ce).TIMESELECT ? (n(), M(L, x({
|
|
664
665
|
key: 8,
|
|
665
666
|
modelValue: f.value,
|
|
666
667
|
"onUpdate:modelValue": u[8] || (u[8] = (s) => f.value = s),
|
|
667
668
|
start: "06:30",
|
|
668
669
|
step: "00:15",
|
|
669
670
|
end: "23:30",
|
|
670
|
-
placeholder: o(
|
|
671
|
-
}, o(e)), null, 16, ["modelValue", "placeholder"])) : o(v) == o(
|
|
671
|
+
placeholder: o(F)[o(a)].label
|
|
672
|
+
}, o(e)), null, 16, ["modelValue", "placeholder"])) : o(v) == o(ce).DATE ? (n(), M(O, x({
|
|
672
673
|
key: 9,
|
|
673
674
|
modelValue: f.value,
|
|
674
675
|
"onUpdate:modelValue": u[9] || (u[9] = (s) => f.value = s),
|
|
675
676
|
type: "date",
|
|
676
|
-
placeholder: o(
|
|
677
|
+
placeholder: o(F)[o(a)].label,
|
|
677
678
|
"value-format": "YYYY-MM-DD"
|
|
678
|
-
}, o(e)),
|
|
679
|
+
}, o(e)), fe({ _: 2 }, [
|
|
679
680
|
U(E(), (s) => ({
|
|
680
681
|
name: s,
|
|
681
682
|
fn: h((W) => [
|
|
682
683
|
p(V.$slots, `${t.t}-${o(a)}-${s}`, { data: W })
|
|
683
684
|
])
|
|
684
685
|
}))
|
|
685
|
-
]), 1040, ["modelValue", "placeholder"])) : o(v) == o(
|
|
686
|
+
]), 1040, ["modelValue", "placeholder"])) : o(v) == o(ce).DATETIME ? (n(), M(O, x({
|
|
686
687
|
key: 10,
|
|
687
688
|
modelValue: f.value,
|
|
688
689
|
"onUpdate:modelValue": u[10] || (u[10] = (s) => f.value = s),
|
|
689
|
-
type: o(
|
|
690
|
-
placeholder: o(
|
|
690
|
+
type: o(ce).DATETIME,
|
|
691
|
+
placeholder: o(F)[o(a)].label,
|
|
691
692
|
"value-format": "YYYY-MM-DD HH:mm:ss"
|
|
692
|
-
}, o(e)),
|
|
693
|
+
}, o(e)), fe({ _: 2 }, [
|
|
693
694
|
U(E(), (s) => ({
|
|
694
695
|
name: s,
|
|
695
696
|
fn: h((W) => [
|
|
696
697
|
p(V.$slots, `${t.t}-${o(a)}-${s}`, { data: W })
|
|
697
698
|
])
|
|
698
699
|
}))
|
|
699
|
-
]), 1040, ["modelValue", "type", "placeholder"])) : o(v) == o(
|
|
700
|
+
]), 1040, ["modelValue", "type", "placeholder"])) : o(v) == o(ce).COLOR ? (n(), M(te, x({
|
|
700
701
|
key: 11,
|
|
701
702
|
modelValue: f.value,
|
|
702
703
|
"onUpdate:modelValue": u[11] || (u[11] = (s) => f.value = s)
|
|
703
|
-
}, o(e)), null, 16, ["modelValue"])) : o(v) == o(
|
|
704
|
+
}, o(e)), null, 16, ["modelValue"])) : o(v) == o(ce).RATE ? (n(), M($e, x({
|
|
704
705
|
key: 12,
|
|
705
706
|
modelValue: f.value,
|
|
706
707
|
"onUpdate:modelValue": u[12] || (u[12] = (s) => f.value = s)
|
|
707
|
-
}, o(e)), null, 16, ["modelValue"])) : o(v) == o(
|
|
708
|
+
}, o(e)), null, 16, ["modelValue"])) : o(v) == o(ce).SLIDER ? (n(), M(k, x({
|
|
708
709
|
key: 13,
|
|
709
710
|
modelValue: f.value,
|
|
710
711
|
"onUpdate:modelValue": u[13] || (u[13] = (s) => f.value = s)
|
|
711
|
-
}, o(e)), null, 16, ["modelValue"])) : o(v) == o(
|
|
712
|
+
}, o(e)), null, 16, ["modelValue"])) : o(v) == o(ce).SWITCH ? (n(), M($, x({
|
|
712
713
|
key: 14,
|
|
713
714
|
modelValue: f.value,
|
|
714
715
|
"onUpdate:modelValue": u[14] || (u[14] = (s) => f.value = s)
|
|
715
|
-
}, o(e)),
|
|
716
|
+
}, o(e)), fe({ _: 2 }, [
|
|
716
717
|
U(E(), (s) => ({
|
|
717
718
|
name: s,
|
|
718
719
|
fn: h((W) => [
|
|
719
720
|
p(V.$slots, `${t.t}-${o(a)}-${s}`, { data: W })
|
|
720
721
|
])
|
|
721
722
|
}))
|
|
722
|
-
]), 1040, ["modelValue"])) : o(v) == o(
|
|
723
|
+
]), 1040, ["modelValue"])) : o(v) == o(ce).TRANSFER ? (n(), M(b, x({
|
|
723
724
|
key: 15,
|
|
724
725
|
modelValue: f.value,
|
|
725
726
|
"onUpdate:modelValue": u[15] || (u[15] = (s) => f.value = s)
|
|
726
|
-
}, o(e)),
|
|
727
|
+
}, o(e)), fe({ _: 2 }, [
|
|
727
728
|
U(E(), (s) => ({
|
|
728
729
|
name: s,
|
|
729
730
|
fn: h((W) => [
|
|
730
731
|
p(V.$slots, `${t.t}-${o(a)}-${s}`, { data: W })
|
|
731
732
|
])
|
|
732
733
|
}))
|
|
733
|
-
]), 1040, ["modelValue"])) : o(v) == o(
|
|
734
|
+
]), 1040, ["modelValue"])) : o(v) == o(ce).CASCADER ? (n(), M(c, x({
|
|
734
735
|
key: 16,
|
|
735
736
|
modelValue: f.value,
|
|
736
737
|
"onUpdate:modelValue": u[16] || (u[16] = (s) => f.value = s)
|
|
737
|
-
}, o(e), { options:
|
|
738
|
+
}, o(e), { options: q.value }), fe({ _: 2 }, [
|
|
738
739
|
U(E(), (s) => ({
|
|
739
740
|
name: s,
|
|
740
741
|
fn: h((W) => [
|
|
741
742
|
p(V.$slots, `${t.t}-${o(a)}-${s}`, { data: W })
|
|
742
743
|
])
|
|
743
744
|
}))
|
|
744
|
-
]), 1040, ["modelValue", "options"])) : o(v) == o(
|
|
745
|
+
]), 1040, ["modelValue", "options"])) : o(v) == o(ce).IMAGE ? (n(), M(w, je(x({ key: 17 }, o(e))), fe({
|
|
745
746
|
default: h(() => [
|
|
746
747
|
G(i, { type: "primary" }, {
|
|
747
748
|
default: h(() => u[22] || (u[22] = [
|
|
@@ -754,59 +755,59 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
754
755
|
}, [
|
|
755
756
|
U(E(), (s, W) => ({
|
|
756
757
|
name: s,
|
|
757
|
-
fn: h((
|
|
758
|
-
p(V.$slots, `${t.t}-${o(a)}-${s}`, { data:
|
|
758
|
+
fn: h((le) => [
|
|
759
|
+
p(V.$slots, `${t.t}-${o(a)}-${s}`, { data: le })
|
|
759
760
|
])
|
|
760
761
|
}))
|
|
761
|
-
]), 1040)) : o(v) == o(
|
|
762
|
+
]), 1040)) : o(v) == o(ce).AUTOCOMPLETE ? (n(), M(S, x({
|
|
762
763
|
key: 18,
|
|
763
764
|
modelValue: f.value,
|
|
764
765
|
"onUpdate:modelValue": u[17] || (u[17] = (s) => f.value = s)
|
|
765
766
|
}, o(e), {
|
|
766
|
-
placeholder: o(
|
|
767
|
-
}),
|
|
767
|
+
placeholder: o(F)[o(a)].label
|
|
768
|
+
}), fe({ _: 2 }, [
|
|
768
769
|
U(E(), (s, W) => ({
|
|
769
770
|
name: s,
|
|
770
|
-
fn: h((
|
|
771
|
-
p(V.$slots, `${t.t}-${o(a)}-${s}`, { data:
|
|
771
|
+
fn: h((le) => [
|
|
772
|
+
p(V.$slots, `${t.t}-${o(a)}-${s}`, { data: le })
|
|
772
773
|
])
|
|
773
774
|
}))
|
|
774
|
-
]), 1040, ["modelValue", "placeholder"])) : o(v) == o(
|
|
775
|
+
]), 1040, ["modelValue", "placeholder"])) : o(v) == o(ce).INPUTNUMBER ? (n(), M(z, x({
|
|
775
776
|
key: 19,
|
|
776
777
|
modelValue: f.value,
|
|
777
778
|
"onUpdate:modelValue": u[18] || (u[18] = (s) => f.value = s),
|
|
778
779
|
min: 0,
|
|
779
780
|
max: 1e8,
|
|
780
|
-
placeholder: o(
|
|
781
|
-
}, o(e)),
|
|
781
|
+
placeholder: o(F)[o(a)].label
|
|
782
|
+
}, o(e)), fe({ _: 2 }, [
|
|
782
783
|
U(E(), (s, W) => ({
|
|
783
784
|
name: s,
|
|
784
|
-
fn: h((
|
|
785
|
-
p(V.$slots, `${t.t}-${o(a)}-${s}`, { data:
|
|
785
|
+
fn: h((le) => [
|
|
786
|
+
p(V.$slots, `${t.t}-${o(a)}-${s}`, { data: le })
|
|
786
787
|
])
|
|
787
788
|
}))
|
|
788
|
-
]), 1040, ["modelValue", "placeholder"])) : o(v) == o(
|
|
789
|
+
]), 1040, ["modelValue", "placeholder"])) : o(v) == o(ce).MONEY ? (n(), B("div", It, [
|
|
789
790
|
G(X, x({
|
|
790
791
|
modelValue: f.value,
|
|
791
792
|
"onUpdate:modelValue": u[19] || (u[19] = (s) => f.value = s),
|
|
792
|
-
placeholder: o(
|
|
793
|
-
type: o(
|
|
793
|
+
placeholder: o(F)[o(a)].label,
|
|
794
|
+
type: o(ce).NUMBER,
|
|
794
795
|
maxlength: ((oe = o(e)) == null ? void 0 : oe.max) || 25
|
|
795
|
-
}, { ...o(e), type: o(v) }),
|
|
796
|
+
}, { ...o(e), type: o(v) }), fe({ _: 2 }, [
|
|
796
797
|
f.value ? {
|
|
797
798
|
name: "suffix",
|
|
798
799
|
fn: h(() => [
|
|
799
800
|
Q("div", {
|
|
800
801
|
title: o(tt)(f.value),
|
|
801
802
|
style: { "font-size": "10px", display: "block", width: "120px", overflow: "hidden", "text-overflow": "ellipsis" }
|
|
802
|
-
},
|
|
803
|
+
}, ve(o(tt)(f.value)), 9, Ut)
|
|
803
804
|
]),
|
|
804
805
|
key: "0"
|
|
805
806
|
} : void 0,
|
|
806
807
|
U(E(), (s, W) => ({
|
|
807
808
|
name: s,
|
|
808
|
-
fn: h((
|
|
809
|
-
p(V.$slots, `${t.t}-${o(a)}-${s}`, { data:
|
|
809
|
+
fn: h((le) => [
|
|
810
|
+
p(V.$slots, `${t.t}-${o(a)}-${s}`, { data: le })
|
|
810
811
|
])
|
|
811
812
|
}))
|
|
812
813
|
]), 1040, ["modelValue", "placeholder", "type", "maxlength"])
|
|
@@ -814,14 +815,14 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
814
815
|
key: 21,
|
|
815
816
|
modelValue: f.value,
|
|
816
817
|
"onUpdate:modelValue": u[20] || (u[20] = (s) => f.value = s),
|
|
817
|
-
placeholder: o(
|
|
818
|
+
placeholder: o(F)[o(a)].label,
|
|
818
819
|
maxlength: ((ne = o(e)) == null ? void 0 : ne.max) || 25,
|
|
819
820
|
clearable: !0
|
|
820
|
-
}, { ...o(e), type: o(v) }),
|
|
821
|
+
}, { ...o(e), type: o(v) }), fe({ _: 2 }, [
|
|
821
822
|
U(E(), (s, W) => ({
|
|
822
823
|
name: s,
|
|
823
|
-
fn: h((
|
|
824
|
-
p(V.$slots, `${t.t}-${o(a)}-${s}`, { data:
|
|
824
|
+
fn: h((le) => [
|
|
825
|
+
p(V.$slots, `${t.t}-${o(a)}-${s}`, { data: le })
|
|
825
826
|
])
|
|
826
827
|
}))
|
|
827
828
|
]), 1040, ["modelValue", "placeholder", "maxlength"]))
|
|
@@ -839,8 +840,8 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
839
840
|
},
|
|
840
841
|
emits: /* @__PURE__ */ Se(["submit", "reset"], ["update:modelValue"]),
|
|
841
842
|
setup(m, { emit: f }) {
|
|
842
|
-
var
|
|
843
|
-
const t = Oe(m, "modelValue"), e = f, a = he(null), v = lt("options"),
|
|
843
|
+
var ie, me, de, ae;
|
|
844
|
+
const t = Oe(m, "modelValue"), e = f, a = he(null), v = lt("options"), F = {
|
|
844
845
|
inline: !0,
|
|
845
846
|
type: "hidden",
|
|
846
847
|
"scroll-to-error": !0,
|
|
@@ -850,7 +851,7 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
850
851
|
style: {
|
|
851
852
|
display: "flex",
|
|
852
853
|
flexWrap: "wrap",
|
|
853
|
-
...(
|
|
854
|
+
...(ie = He()) == null ? void 0 : ie.style
|
|
854
855
|
},
|
|
855
856
|
// 表单底部属性
|
|
856
857
|
footer: {
|
|
@@ -897,11 +898,11 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
897
898
|
}
|
|
898
899
|
};
|
|
899
900
|
t.value.form = we(
|
|
900
|
-
|
|
901
|
+
F,
|
|
901
902
|
v == null ? void 0 : v.form,
|
|
902
|
-
(
|
|
903
|
+
(me = t.value) == null ? void 0 : me.form
|
|
903
904
|
);
|
|
904
|
-
const
|
|
905
|
+
const T = {
|
|
905
906
|
type: "hidden",
|
|
906
907
|
labelPosition: "right",
|
|
907
908
|
style: {
|
|
@@ -909,16 +910,16 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
909
910
|
}
|
|
910
911
|
};
|
|
911
912
|
t.value.formItems = we(
|
|
912
|
-
|
|
913
|
+
T,
|
|
913
914
|
v == null ? void 0 : v.formItems,
|
|
914
915
|
(de = t == null ? void 0 : t.value) == null ? void 0 : de.formItems
|
|
915
916
|
);
|
|
916
|
-
const
|
|
917
|
+
const q = {
|
|
917
918
|
span: 12,
|
|
918
919
|
offset: 0
|
|
919
920
|
};
|
|
920
921
|
t.value.form.cols = we(
|
|
921
|
-
|
|
922
|
+
q,
|
|
922
923
|
(ae = v == null ? void 0 : v.form) == null ? void 0 : ae.cols,
|
|
923
924
|
t.value.form.cols
|
|
924
925
|
);
|
|
@@ -937,27 +938,27 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
937
938
|
validate: void 0
|
|
938
939
|
}, ...d };
|
|
939
940
|
y.required && D.push({ required: !0, message: `${y.label}不能为空!`, trigger: "blur" }), y.max && y.min && D.push({
|
|
940
|
-
validator: (L, O,
|
|
941
|
-
O && d.type == "number" && (O < y.min || O > y.max) ?
|
|
941
|
+
validator: (L, O, te) => {
|
|
942
|
+
O && d.type == "number" && (O < y.min || O > y.max) ? te(new Error(`${y.label} 必须在 ${y.min} 和 ${y.max} 之间!`)) : O && d.type !== "number" && (O.toString().length < y.min || O.toString().length > y.max) ? te(new Error(`字符长度必须在 ${y.min} 和 ${y.max} 之间!`)) : te();
|
|
942
943
|
}
|
|
943
944
|
}), y.max && !y.min && d.type == "number" && D.push({
|
|
944
|
-
validator: (L, O,
|
|
945
|
-
O && O > y.max ?
|
|
945
|
+
validator: (L, O, te) => {
|
|
946
|
+
O && O > y.max ? te(new Error(`${y.label}不能大于${y.max}!`)) : te();
|
|
946
947
|
}
|
|
947
948
|
}), y.min && !y.max && d.type == "number" && D.push({
|
|
948
|
-
validator: (L, O,
|
|
949
|
-
O && O < y.min ?
|
|
949
|
+
validator: (L, O, te) => {
|
|
950
|
+
O && O < y.min ? te(new Error(`${y.label}不能小于${y.min}!`)) : te();
|
|
950
951
|
}
|
|
951
952
|
}), y.type == "email" && D.push({ type: "email", message: "不是一个正确的邮箱地址!" }), y.type == "url" && D.push({ type: "url", message: "不是一个合正确的URL!" }), y.pattern && D.push({ pattern: y == null ? void 0 : y.pattern, message: (y == null ? void 0 : y.message) || "格式不正确!" }), y.validate && D.push({
|
|
952
|
-
validator: (L, O,
|
|
953
|
+
validator: (L, O, te) => y.validate(L, O, te)
|
|
953
954
|
});
|
|
954
955
|
}
|
|
955
956
|
return D;
|
|
956
957
|
}, _ = (d, D = !1) => {
|
|
957
|
-
var L, O,
|
|
958
|
+
var L, O, te, $e, k;
|
|
958
959
|
const I = D ? d : d == null ? void 0 : d.item, y = typeof (I == null ? void 0 : I.editor) == "function" ? I.editor(u.value, (L = t.value.form) == null ? void 0 : L.modalState) : (I == null ? void 0 : I.editor) || {};
|
|
959
960
|
if (((O = t.value.form) == null ? void 0 : O.modalState) === "edit") {
|
|
960
|
-
const $ = typeof (I == null ? void 0 : I.editor) == "object" ? (
|
|
961
|
+
const $ = typeof (I == null ? void 0 : I.editor) == "object" ? (te = I.editor) == null ? void 0 : te.ep : typeof (I == null ? void 0 : I.editor) == "function" ? y == null ? void 0 : y.ep : {};
|
|
961
962
|
return { ...y, ...$ };
|
|
962
963
|
}
|
|
963
964
|
if ((($e = t.value.form) == null ? void 0 : $e.modalState) === "add") {
|
|
@@ -966,9 +967,9 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
966
967
|
}
|
|
967
968
|
return y;
|
|
968
969
|
}, P = (d) => {
|
|
969
|
-
var I, y, L, O,
|
|
970
|
+
var I, y, L, O, te;
|
|
970
971
|
const D = typeof d.editor == "function" ? d.editor(u.value, (I = t.value.form) == null ? void 0 : I.modalState) : d.editor;
|
|
971
|
-
return ((y = t.value.form) == null ? void 0 : y.modalState) === "edit" ? ((L = D == null ? void 0 : D.ep) == null ? void 0 : L.type) ?? (D == null ? void 0 : D.type) ?? d.type : ((O = t.value.form) == null ? void 0 : O.modalState) === "add" ? ((
|
|
972
|
+
return ((y = t.value.form) == null ? void 0 : y.modalState) === "edit" ? ((L = D == null ? void 0 : D.ep) == null ? void 0 : L.type) ?? (D == null ? void 0 : D.type) ?? d.type : ((O = t.value.form) == null ? void 0 : O.modalState) === "add" ? ((te = D == null ? void 0 : D.ap) == null ? void 0 : te.type) ?? (D == null ? void 0 : D.type) ?? d.type : (D == null ? void 0 : D.type) ?? d.type;
|
|
972
973
|
};
|
|
973
974
|
Ne(() => {
|
|
974
975
|
se();
|
|
@@ -995,7 +996,7 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
995
996
|
}), d.forEach((D) => {
|
|
996
997
|
D.tabPane = we(...D.items.map(({ item: I }) => I.tabPane || {}));
|
|
997
998
|
}), Array.from(d.values());
|
|
998
|
-
}),
|
|
999
|
+
}), K = [
|
|
999
1000
|
{
|
|
1000
1001
|
name: "f-submit",
|
|
1001
1002
|
label: t.value.form.submit.label,
|
|
@@ -1018,9 +1019,9 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1018
1019
|
originalOrder: 1
|
|
1019
1020
|
// 添加原始顺序标识
|
|
1020
1021
|
}
|
|
1021
|
-
],
|
|
1022
|
+
], ee = xe(() => K.filter((d) => !d.hidden).sort((d, D) => d.sort - D.sort || d.originalOrder - D.originalOrder));
|
|
1022
1023
|
return (d, D) => {
|
|
1023
|
-
const I = R("el-form-item"), y = R("el-col"), L = R("el-tab-pane"), O = R("el-tabs"),
|
|
1024
|
+
const I = R("el-form-item"), y = R("el-col"), L = R("el-tab-pane"), O = R("el-tabs"), te = R("el-button"), $e = R("el-form");
|
|
1024
1025
|
return n(), M($e, x({
|
|
1025
1026
|
ref_key: "gform",
|
|
1026
1027
|
ref: a,
|
|
@@ -1051,14 +1052,14 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1051
1052
|
style: { width: "100%" }
|
|
1052
1053
|
}), {
|
|
1053
1054
|
default: h(() => {
|
|
1054
|
-
var
|
|
1055
|
+
var S, z;
|
|
1055
1056
|
return [
|
|
1056
1057
|
G(I, x({
|
|
1057
1058
|
label: i == null ? void 0 : i.item.label,
|
|
1058
1059
|
prop: `${i.key}.value`,
|
|
1059
1060
|
rules: E(i == null ? void 0 : i.item),
|
|
1060
1061
|
ref_for: !0
|
|
1061
|
-
}, { ...(
|
|
1062
|
+
}, { ...(S = t.value) == null ? void 0 : S.formItems, ...(z = i == null ? void 0 : i.item) == null ? void 0 : z.formItem }, { style: { width: "100%" } }), {
|
|
1062
1063
|
default: h(() => [
|
|
1063
1064
|
p(d.$slots, "f-" + i.key, {
|
|
1064
1065
|
item: i == null ? void 0 : i.item,
|
|
@@ -1074,7 +1075,7 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1074
1075
|
class: "g-ctrl-container",
|
|
1075
1076
|
t: "f",
|
|
1076
1077
|
formInfo: u.value
|
|
1077
|
-
},
|
|
1078
|
+
}, fe({ _: 2 }, [
|
|
1078
1079
|
U(d.$slots, (X, oe) => ({
|
|
1079
1080
|
name: oe,
|
|
1080
1081
|
fn: h((ne) => [
|
|
@@ -1105,14 +1106,14 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1105
1106
|
style: Te(t.value.form.footer.style)
|
|
1106
1107
|
}, [
|
|
1107
1108
|
p(d.$slots, "f-footer-left"),
|
|
1108
|
-
(n(!0), B(Y, null, U(
|
|
1109
|
+
(n(!0), B(Y, null, U(ee.value, (c) => (n(), B(Y, null, [
|
|
1109
1110
|
p(d.$slots, c.name + "-left"),
|
|
1110
1111
|
p(d.$slots, c.name, {}, () => [
|
|
1111
|
-
G(
|
|
1112
|
+
G(te, x({ ref_for: !0 }, c.info, {
|
|
1112
1113
|
onClick: st((i) => c.click(u.value, t.value), ["stop"])
|
|
1113
1114
|
}), {
|
|
1114
1115
|
default: h(() => [
|
|
1115
|
-
be(
|
|
1116
|
+
be(ve(c == null ? void 0 : c.label), 1)
|
|
1116
1117
|
]),
|
|
1117
1118
|
_: 2
|
|
1118
1119
|
}, 1040, ["onClick"])
|
|
@@ -1139,13 +1140,13 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1139
1140
|
rules: E(c),
|
|
1140
1141
|
ref_for: !0
|
|
1141
1142
|
}, { ...(w = t.value) == null ? void 0 : w.formItems, ...c == null ? void 0 : c.formItem }, { style: { width: "100%" } }), {
|
|
1142
|
-
label: h((
|
|
1143
|
+
label: h((S) => [
|
|
1143
1144
|
p(d.$slots, `f-${i}-label`, {
|
|
1144
|
-
data:
|
|
1145
|
+
data: S,
|
|
1145
1146
|
item: c,
|
|
1146
1147
|
model: t.value
|
|
1147
1148
|
}, () => [
|
|
1148
|
-
be(
|
|
1149
|
+
be(ve(c.label), 1)
|
|
1149
1150
|
])
|
|
1150
1151
|
]),
|
|
1151
1152
|
default: h(() => [
|
|
@@ -1155,7 +1156,7 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1155
1156
|
}, () => [
|
|
1156
1157
|
G(We, {
|
|
1157
1158
|
modelValue: t.value[i].value,
|
|
1158
|
-
"onUpdate:modelValue": (
|
|
1159
|
+
"onUpdate:modelValue": (S) => t.value[i].value = S,
|
|
1159
1160
|
item: _(c, !0),
|
|
1160
1161
|
ctrlKey: i,
|
|
1161
1162
|
ctrlType: P(c),
|
|
@@ -1163,8 +1164,8 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1163
1164
|
class: "g-ctrl-container",
|
|
1164
1165
|
t: "f",
|
|
1165
1166
|
formInfo: u.value
|
|
1166
|
-
},
|
|
1167
|
-
U(d.$slots, (
|
|
1167
|
+
}, fe({ _: 2 }, [
|
|
1168
|
+
U(d.$slots, (S, z) => ({
|
|
1168
1169
|
name: z,
|
|
1169
1170
|
fn: h((X) => [
|
|
1170
1171
|
p(d.$slots, z, {
|
|
@@ -1188,14 +1189,14 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1188
1189
|
style: Te(t.value.form.footer.style)
|
|
1189
1190
|
}, [
|
|
1190
1191
|
p(d.$slots, "f-footer-left"),
|
|
1191
|
-
(n(!0), B(Y, null, U(
|
|
1192
|
+
(n(!0), B(Y, null, U(ee.value, (c) => (n(), B(Y, null, [
|
|
1192
1193
|
p(d.$slots, c.name + "-left"),
|
|
1193
1194
|
p(d.$slots, c.name, {}, () => [
|
|
1194
|
-
G(
|
|
1195
|
+
G(te, x({ ref_for: !0 }, c.info, {
|
|
1195
1196
|
onClick: st((i) => c.click(u.value, t.value), ["stop"])
|
|
1196
1197
|
}), {
|
|
1197
1198
|
default: h(() => [
|
|
1198
|
-
be(
|
|
1199
|
+
be(ve(c == null ? void 0 : c.label), 1)
|
|
1199
1200
|
]),
|
|
1200
1201
|
_: 2
|
|
1201
1202
|
}, 1040, ["onClick"])
|
|
@@ -1222,13 +1223,13 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1222
1223
|
}),
|
|
1223
1224
|
emits: ["update:modelValue", "update:info"],
|
|
1224
1225
|
setup(m) {
|
|
1225
|
-
const f = Oe(m, "modelValue"), t = m, e = Oe(m, "info"), a = (
|
|
1226
|
-
const
|
|
1227
|
-
return (
|
|
1226
|
+
const f = Oe(m, "modelValue"), t = m, e = Oe(m, "info"), a = (T) => xe(() => Object.fromEntries(Object.entries(f.value).filter((q) => q[1].search && q[1].search.more === T).map((q) => [q[0], q[1]]))).value, v = (T) => typeof T.search == "function" ? T.search(e.value) : T.search || {}, F = (T) => {
|
|
1227
|
+
const q = v(T);
|
|
1228
|
+
return (q == null ? void 0 : q.type) || T.type;
|
|
1228
1229
|
};
|
|
1229
|
-
return (
|
|
1230
|
+
return (T, q) => {
|
|
1230
1231
|
const E = R("el-form-item");
|
|
1231
|
-
return n(!0), B(Y, null, U(a(t.more), (_, P) => p(
|
|
1232
|
+
return n(!0), B(Y, null, U(a(t.more), (_, P) => p(T.$slots, `q-${P}`, {
|
|
1232
1233
|
key: P,
|
|
1233
1234
|
item: _,
|
|
1234
1235
|
model: f.value
|
|
@@ -1238,7 +1239,7 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1238
1239
|
ref_for: !0
|
|
1239
1240
|
}, { ...f.value.queryItems, ...v(_) }), {
|
|
1240
1241
|
label: h(() => [
|
|
1241
|
-
p(
|
|
1242
|
+
p(T.$slots, `q-${P}-label`, {
|
|
1242
1243
|
item: _,
|
|
1243
1244
|
model: f.value
|
|
1244
1245
|
})
|
|
@@ -1249,15 +1250,15 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1249
1250
|
"onUpdate:modelValue": (se) => e.value[P] = se,
|
|
1250
1251
|
item: { ..._ == null ? void 0 : _.editor, ...v(_) },
|
|
1251
1252
|
ctrlKey: P,
|
|
1252
|
-
ctrlType:
|
|
1253
|
+
ctrlType: F(_),
|
|
1253
1254
|
model: f.value,
|
|
1254
1255
|
t: "q",
|
|
1255
1256
|
formInfo: e.value
|
|
1256
|
-
},
|
|
1257
|
-
U(Object.keys(
|
|
1257
|
+
}, fe({ _: 2 }, [
|
|
1258
|
+
U(Object.keys(T.$slots), (se) => ({
|
|
1258
1259
|
name: se,
|
|
1259
1260
|
fn: h((V) => [
|
|
1260
|
-
p(
|
|
1261
|
+
p(T.$slots, se, {
|
|
1261
1262
|
data: V,
|
|
1262
1263
|
item: _,
|
|
1263
1264
|
model: f.value
|
|
@@ -1288,8 +1289,8 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1288
1289
|
emits: /* @__PURE__ */ Se(["query", "reset"], ["update:modelValue"]),
|
|
1289
1290
|
setup(m, { emit: f }) {
|
|
1290
1291
|
const t = Oe(m, "modelValue"), e = f, a = lt("options"), v = he(!1);
|
|
1291
|
-
let
|
|
1292
|
-
const
|
|
1292
|
+
let F = Object.fromEntries(Object.entries(t.value).filter((u) => u[1].search).map(([u, A]) => [u, A.value]));
|
|
1293
|
+
const T = he(F), q = {
|
|
1293
1294
|
hidden: !1,
|
|
1294
1295
|
type: "hidden",
|
|
1295
1296
|
labelWidth: 100,
|
|
@@ -1315,7 +1316,7 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1315
1316
|
hidden: !1,
|
|
1316
1317
|
plain: !1,
|
|
1317
1318
|
click: () => {
|
|
1318
|
-
|
|
1319
|
+
T.value = he(F), e("reset", T.value);
|
|
1319
1320
|
}
|
|
1320
1321
|
},
|
|
1321
1322
|
query: {
|
|
@@ -1323,7 +1324,7 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1323
1324
|
type: "primary",
|
|
1324
1325
|
label: "查询",
|
|
1325
1326
|
click: () => {
|
|
1326
|
-
e("query",
|
|
1327
|
+
e("query", T.value), v.value = !1;
|
|
1327
1328
|
}
|
|
1328
1329
|
},
|
|
1329
1330
|
btns: {
|
|
@@ -1335,7 +1336,7 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1335
1336
|
}
|
|
1336
1337
|
}
|
|
1337
1338
|
};
|
|
1338
|
-
t.value.query = we(
|
|
1339
|
+
t.value.query = we(q, a == null ? void 0 : a.query, t.value.query);
|
|
1339
1340
|
const E = {
|
|
1340
1341
|
2: {
|
|
1341
1342
|
title: "更多查询",
|
|
@@ -1366,23 +1367,23 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1366
1367
|
};
|
|
1367
1368
|
t.value.queryItems = we(_, a == null ? void 0 : a.queryItems, t.value.queryItems);
|
|
1368
1369
|
const P = (u, A) => {
|
|
1369
|
-
const
|
|
1370
|
+
const K = Object.keys(u.slots).filter((ee) => ee !== "default").reduce((ee, ie) => (ee[ie] = (me) => u.slots[ie]({
|
|
1370
1371
|
model: t.value
|
|
1371
1372
|
// 传递当前模型数据
|
|
1372
|
-
}),
|
|
1373
|
+
}), ee), {});
|
|
1373
1374
|
return Ve(it, {
|
|
1374
1375
|
modelValue: t.value,
|
|
1375
|
-
"onUpdate:modelValue": (
|
|
1376
|
-
info:
|
|
1377
|
-
"onUpdate:info": (
|
|
1376
|
+
"onUpdate:modelValue": (ee) => t.value = ee,
|
|
1377
|
+
info: T.value,
|
|
1378
|
+
"onUpdate:info": (ee) => T.value = ee,
|
|
1378
1379
|
more: A
|
|
1379
|
-
},
|
|
1380
|
+
}, K);
|
|
1380
1381
|
}, se = ct(), V = () => {
|
|
1381
|
-
var
|
|
1382
|
+
var K, ee, ie, me, de, ae, d, D, I;
|
|
1382
1383
|
const u = [
|
|
1383
1384
|
{
|
|
1384
1385
|
key: "query",
|
|
1385
|
-
hidden: (
|
|
1386
|
+
hidden: (ie = (ee = (K = t.value) == null ? void 0 : K.query) == null ? void 0 : ee.query) == null ? void 0 : ie.hidden,
|
|
1386
1387
|
component: ge,
|
|
1387
1388
|
props: {
|
|
1388
1389
|
...t.value.query.query,
|
|
@@ -1393,7 +1394,7 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1393
1394
|
},
|
|
1394
1395
|
{
|
|
1395
1396
|
key: "reset",
|
|
1396
|
-
hidden: (ae = (de = (
|
|
1397
|
+
hidden: (ae = (de = (me = t.value) == null ? void 0 : me.query) == null ? void 0 : de.reset) == null ? void 0 : ae.hidden,
|
|
1397
1398
|
component: ge,
|
|
1398
1399
|
props: {
|
|
1399
1400
|
...t.value.query.reset,
|
|
@@ -1424,18 +1425,18 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1424
1425
|
}) : (y.props.slot = "query-" + y.key, y.label ? Ve(y.component, y.props, () => y.label) : Ve(y.component, y.props)));
|
|
1425
1426
|
};
|
|
1426
1427
|
return (u, A) => {
|
|
1427
|
-
var
|
|
1428
|
-
const
|
|
1428
|
+
var ie, me, de, ae, d, D, I, y, L, O, te, $e, k, $, b, c, i;
|
|
1429
|
+
const K = R("el-form-item"), ee = R("el-drawer");
|
|
1429
1430
|
return n(), B("div", {
|
|
1430
1431
|
class: "g-query-container",
|
|
1431
|
-
style: Te((
|
|
1432
|
+
style: Te((me = (ie = t.value.query) == null ? void 0 : ie.container) == null ? void 0 : me.style)
|
|
1432
1433
|
}, [
|
|
1433
1434
|
G(o(Pe), je(Ze(o(Ce)(t.value.query, (w) => !["query", "more", "reset", "btns"].includes(w)))), {
|
|
1434
1435
|
default: h(() => {
|
|
1435
|
-
var w,
|
|
1436
|
+
var w, S;
|
|
1436
1437
|
return [
|
|
1437
1438
|
(n(), M(qe(P({ slots: u.$slots }, void 0)))),
|
|
1438
|
-
((
|
|
1439
|
+
((S = (w = t.value.query) == null ? void 0 : w.container) == null ? void 0 : S.inline) === !0 ? (n(), M(K, { key: 0 }, {
|
|
1439
1440
|
default: h(() => {
|
|
1440
1441
|
var z, X, oe, ne, s;
|
|
1441
1442
|
return [
|
|
@@ -1503,9 +1504,9 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1503
1504
|
name: "nested"
|
|
1504
1505
|
}, {
|
|
1505
1506
|
default: h(() => {
|
|
1506
|
-
var w,
|
|
1507
|
+
var w, S, z;
|
|
1507
1508
|
return [
|
|
1508
|
-
v.value && !((z = (
|
|
1509
|
+
v.value && !((z = (S = (w = t.value) == null ? void 0 : w.query) == null ? void 0 : S.more) != null && z.hidden) && t.value.query.more.mode == 1 ? (n(), B("div", Rt, [
|
|
1509
1510
|
Q("div", jt, [
|
|
1510
1511
|
t.value.query.more.mode == 1 ? mt((n(), M(o(Pe), je(x({ key: 0 }, o(Ce)(t.value.query, (X) => !["query", "more", "reset"].includes(X)))), {
|
|
1511
1512
|
default: h(() => [
|
|
@@ -1521,27 +1522,27 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1521
1522
|
}),
|
|
1522
1523
|
_: 1
|
|
1523
1524
|
}),
|
|
1524
|
-
v.value && !(($e = (
|
|
1525
|
+
v.value && !(($e = (te = (O = t.value) == null ? void 0 : O.query) == null ? void 0 : te.more) != null && $e.hidden) && t.value.query.more.mode == 2 ? (n(), M(ee, x({
|
|
1525
1526
|
key: 1,
|
|
1526
1527
|
modelValue: v.value,
|
|
1527
1528
|
"onUpdate:modelValue": A[4] || (A[4] = (w) => v.value = w),
|
|
1528
1529
|
title: "更多查询",
|
|
1529
1530
|
"show-close": !1
|
|
1530
|
-
}, t.value.query.more.dialog),
|
|
1531
|
+
}, t.value.query.more.dialog), fe({
|
|
1531
1532
|
default: h(() => [
|
|
1532
1533
|
G(o(Pe), x(o(Ce)(t.value.query, (w) => !["query", "more", "reset"].includes(w)), { style: { width: "98%" } }), {
|
|
1533
1534
|
default: h(() => [
|
|
1534
1535
|
G(it, {
|
|
1535
1536
|
modelValue: t.value,
|
|
1536
1537
|
"onUpdate:modelValue": A[0] || (A[0] = (w) => t.value = w),
|
|
1537
|
-
info:
|
|
1538
|
-
"onUpdate:info": A[1] || (A[1] = (w) =>
|
|
1538
|
+
info: T.value,
|
|
1539
|
+
"onUpdate:info": A[1] || (A[1] = (w) => T.value = w),
|
|
1539
1540
|
more: !0
|
|
1540
|
-
},
|
|
1541
|
-
U(u.$slots, (w,
|
|
1542
|
-
name:
|
|
1541
|
+
}, fe({ _: 2 }, [
|
|
1542
|
+
U(u.$slots, (w, S, z) => ({
|
|
1543
|
+
name: S,
|
|
1543
1544
|
fn: h((X) => [
|
|
1544
|
-
p(u.$slots,
|
|
1545
|
+
p(u.$slots, S, { model: t.value }, void 0, !0)
|
|
1545
1546
|
])
|
|
1546
1547
|
}))
|
|
1547
1548
|
]), 1032, ["modelValue", "info"])
|
|
@@ -1559,7 +1560,7 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1559
1560
|
onClick: A[2] || (A[2] = (w) => t.value.query.query.click())
|
|
1560
1561
|
}), {
|
|
1561
1562
|
default: h(() => [
|
|
1562
|
-
be(
|
|
1563
|
+
be(ve(t.value.query.query.label), 1)
|
|
1563
1564
|
]),
|
|
1564
1565
|
_: 1
|
|
1565
1566
|
}, 16),
|
|
@@ -1567,7 +1568,7 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1567
1568
|
onClick: A[3] || (A[3] = (w) => t.value.query.reset.click())
|
|
1568
1569
|
}), {
|
|
1569
1570
|
default: h(() => [
|
|
1570
|
-
be(
|
|
1571
|
+
be(ve(t.value.query.reset.label), 1)
|
|
1571
1572
|
]),
|
|
1572
1573
|
_: 1
|
|
1573
1574
|
}, 16)
|
|
@@ -1591,39 +1592,39 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1591
1592
|
emits: ["excel"],
|
|
1592
1593
|
setup(m, { emit: f }) {
|
|
1593
1594
|
const t = m, e = f, a = he(t.items), v = () => {
|
|
1594
|
-
a.value.forEach((
|
|
1595
|
-
|
|
1596
|
-
});
|
|
1597
|
-
}, T = () => {
|
|
1598
|
-
a.value.forEach((S) => {
|
|
1599
|
-
S.value = !1;
|
|
1595
|
+
a.value.forEach((q) => {
|
|
1596
|
+
q.value = !0;
|
|
1600
1597
|
});
|
|
1601
1598
|
}, F = () => {
|
|
1602
|
-
|
|
1603
|
-
|
|
1599
|
+
a.value.forEach((q) => {
|
|
1600
|
+
q.value = !1;
|
|
1601
|
+
});
|
|
1602
|
+
}, T = () => {
|
|
1603
|
+
e("excel", a.value, (q, E = "excel.xls") => {
|
|
1604
|
+
if (!q) {
|
|
1604
1605
|
console.error("下载链接无效");
|
|
1605
1606
|
return;
|
|
1606
1607
|
}
|
|
1607
1608
|
try {
|
|
1608
1609
|
const _ = document.createElement("a");
|
|
1609
|
-
_.href =
|
|
1610
|
+
_.href = q, _.download = E, _.style.display = "none", document.body.appendChild(_), _.click(), document.body.removeChild(_);
|
|
1610
1611
|
} catch (_) {
|
|
1611
1612
|
console.error("下载文件时出现错误:", _);
|
|
1612
1613
|
}
|
|
1613
1614
|
});
|
|
1614
1615
|
};
|
|
1615
1616
|
return Ne(() => {
|
|
1616
|
-
const
|
|
1617
|
+
const q = new yt(document.getElementById("excelSortEl"), {
|
|
1617
1618
|
animation: 150,
|
|
1618
1619
|
onEnd: () => {
|
|
1619
|
-
let _ =
|
|
1620
|
+
let _ = q.toArray();
|
|
1620
1621
|
console.log(_);
|
|
1621
1622
|
}
|
|
1622
|
-
}), E =
|
|
1623
|
+
}), E = q;
|
|
1623
1624
|
Ct(() => {
|
|
1624
1625
|
E && E.destroy();
|
|
1625
1626
|
});
|
|
1626
|
-
}), (
|
|
1627
|
+
}), (q, E) => {
|
|
1627
1628
|
const _ = R("el-divider"), P = R("el-alert"), se = R("el-checkbox"), V = R("el-button");
|
|
1628
1629
|
return n(), B("div", Pt, [
|
|
1629
1630
|
Q("div", zt, [
|
|
@@ -1634,7 +1635,7 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1634
1635
|
}, "全选"),
|
|
1635
1636
|
G(_, { direction: "vertical" }),
|
|
1636
1637
|
Q("a", {
|
|
1637
|
-
onClick:
|
|
1638
|
+
onClick: F,
|
|
1638
1639
|
style: { cursor: "pointer" }
|
|
1639
1640
|
}, "全不选")
|
|
1640
1641
|
]),
|
|
@@ -1658,7 +1659,7 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1658
1659
|
}, {
|
|
1659
1660
|
default: h(() => [
|
|
1660
1661
|
Q("span", {
|
|
1661
|
-
textContent:
|
|
1662
|
+
textContent: ve(u.label),
|
|
1662
1663
|
style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
|
|
1663
1664
|
}, null, 8, Wt)
|
|
1664
1665
|
]),
|
|
@@ -1669,11 +1670,11 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1669
1670
|
Q("div", Gt, [
|
|
1670
1671
|
G(V, {
|
|
1671
1672
|
type: "primary",
|
|
1672
|
-
onClick:
|
|
1673
|
+
onClick: T,
|
|
1673
1674
|
disabled: a.value.filter((u) => u.value).length < 1
|
|
1674
1675
|
}, {
|
|
1675
1676
|
default: h(() => [
|
|
1676
|
-
be(
|
|
1677
|
+
be(ve(t.commitText), 1)
|
|
1677
1678
|
]),
|
|
1678
1679
|
_: 1
|
|
1679
1680
|
}, 8, ["disabled"])
|
|
@@ -1767,7 +1768,7 @@ const tl = {
|
|
|
1767
1768
|
}
|
|
1768
1769
|
});
|
|
1769
1770
|
}
|
|
1770
|
-
},
|
|
1771
|
+
}, F = async () => {
|
|
1771
1772
|
try {
|
|
1772
1773
|
for (const E of t.value) {
|
|
1773
1774
|
E.showCol = !0, e.value[E.value].showCol = !0;
|
|
@@ -1784,7 +1785,7 @@ const tl = {
|
|
|
1784
1785
|
message: "全选列保存信息失败!"
|
|
1785
1786
|
});
|
|
1786
1787
|
}
|
|
1787
|
-
},
|
|
1788
|
+
}, T = async () => {
|
|
1788
1789
|
try {
|
|
1789
1790
|
const E = t.value.filter((_) => !_.alwaysShow);
|
|
1790
1791
|
for (const _ of E) {
|
|
@@ -1802,7 +1803,7 @@ const tl = {
|
|
|
1802
1803
|
message: "清除列保存信息失败!"
|
|
1803
1804
|
});
|
|
1804
1805
|
}
|
|
1805
|
-
},
|
|
1806
|
+
}, q = () => {
|
|
1806
1807
|
ft.confirm("确定要复位吗?", "提示", {
|
|
1807
1808
|
confirmButtonText: "确定",
|
|
1808
1809
|
cancelButtonText: "取消",
|
|
@@ -1831,11 +1832,11 @@ const tl = {
|
|
|
1831
1832
|
const P = R("el-divider"), se = R("el-alert"), V = R("el-checkbox");
|
|
1832
1833
|
return n(), B("div", null, [
|
|
1833
1834
|
Q("div", tl, [
|
|
1834
|
-
Q("a", { onClick:
|
|
1835
|
+
Q("a", { onClick: F }, "全选"),
|
|
1835
1836
|
G(P, { direction: "vertical" }),
|
|
1836
|
-
Q("a", { onClick:
|
|
1837
|
+
Q("a", { onClick: T }, "全不选"),
|
|
1837
1838
|
G(P, { direction: "vertical" }),
|
|
1838
|
-
Q("a", { onClick:
|
|
1839
|
+
Q("a", { onClick: q }, "复位")
|
|
1839
1840
|
]),
|
|
1840
1841
|
G(se, {
|
|
1841
1842
|
title: "拖动表格列标题可以改变表格列显示顺序 !",
|
|
@@ -1860,7 +1861,7 @@ const tl = {
|
|
|
1860
1861
|
}, {
|
|
1861
1862
|
default: h(() => [
|
|
1862
1863
|
Q("span", {
|
|
1863
|
-
textContent:
|
|
1864
|
+
textContent: ve(u.label),
|
|
1864
1865
|
style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
|
|
1865
1866
|
}, null, 8, ol)
|
|
1866
1867
|
]),
|
|
@@ -1891,8 +1892,8 @@ const tl = {
|
|
|
1891
1892
|
}),
|
|
1892
1893
|
emits: /* @__PURE__ */ Se(["load", "open", "delete", "submit", "reset", "download", "row-save"], ["update:modelValue"]),
|
|
1893
1894
|
setup(m, { emit: f }) {
|
|
1894
|
-
var oe, ne, s, W,
|
|
1895
|
-
const t = f, e = Oe(m, "modelValue"), a = lt("options"), v = he({}),
|
|
1895
|
+
var oe, ne, s, W, le, Ee, De;
|
|
1896
|
+
const t = f, e = Oe(m, "modelValue"), a = lt("options"), v = he({}), F = he(!1), T = he(!1), q = ["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"], E = he([]), _ = m, P = {
|
|
1896
1897
|
data: [],
|
|
1897
1898
|
border: !0,
|
|
1898
1899
|
stripe: !0,
|
|
@@ -2033,7 +2034,7 @@ const tl = {
|
|
|
2033
2034
|
e.value.form = we(
|
|
2034
2035
|
u,
|
|
2035
2036
|
a == null ? void 0 : a.form,
|
|
2036
|
-
(
|
|
2037
|
+
(le = e.value) == null ? void 0 : le.form
|
|
2037
2038
|
);
|
|
2038
2039
|
const A = {
|
|
2039
2040
|
type: "hidden",
|
|
@@ -2047,7 +2048,7 @@ const tl = {
|
|
|
2047
2048
|
a == null ? void 0 : a.formItems,
|
|
2048
2049
|
(Ee = e == null ? void 0 : e.value) == null ? void 0 : Ee.formItems
|
|
2049
2050
|
);
|
|
2050
|
-
const
|
|
2051
|
+
const K = {
|
|
2051
2052
|
title: "编辑",
|
|
2052
2053
|
mode: "drawer",
|
|
2053
2054
|
type: "hidden",
|
|
@@ -2056,42 +2057,42 @@ const tl = {
|
|
|
2056
2057
|
fullScreen: !1
|
|
2057
2058
|
};
|
|
2058
2059
|
e.value.dialog = we(
|
|
2059
|
-
|
|
2060
|
+
K,
|
|
2060
2061
|
a == null ? void 0 : a.dialog,
|
|
2061
2062
|
(De = e.value) == null ? void 0 : De.dialog
|
|
2062
2063
|
);
|
|
2063
|
-
const
|
|
2064
|
+
const ee = Object.fromEntries(Object.entries(Ce(e.value, (l, r) => r.type != "control" && r.editor !== !1 && r.type != "hidden")).map(([l, r]) => [l, r.value])), ie = (l, r) => {
|
|
2064
2065
|
let g = r;
|
|
2065
2066
|
if (l.decimals && !isNaN(r) && (typeof l.decimals == "number" ? g = parseFloat(g).toFixed(l.decimals) : typeof l.decimals == "object" && l.decimals.num && (l.decimals.pad ? g = parseFloat(g).toFixed(l.decimals.num) : g = parseFloat(parseFloat(g).toFixed(l.decimals.num)).toString())), ["date", "datetime", "time", "time-select"].includes(l.type) && Je(r).isValid()) {
|
|
2066
|
-
const
|
|
2067
|
+
const J = {
|
|
2067
2068
|
date: "YYYY-MM-DD",
|
|
2068
2069
|
datetime: "YYYY-MM-DD HH:mm:ss",
|
|
2069
2070
|
time: "HH:mm:ss"
|
|
2070
2071
|
};
|
|
2071
|
-
g = l.format ? Je(g).format(l.format) : Je(g).format(
|
|
2072
|
+
g = l.format ? Je(g).format(l.format) : Je(g).format(J[l.type]);
|
|
2072
2073
|
}
|
|
2073
2074
|
return l.type === "money" && (l.align = l.align || "right", l.width = l.width || 130, g = `<span title="${tt(parseFloat(g))}">${Sl(parseFloat(g))}</span>`), l.prefix && g && (g = `<span>${l.prefix}${g}</span>`), l.suffix && g && (g = `${g}<span>${l.suffix}</span>`), g;
|
|
2074
|
-
},
|
|
2075
|
+
}, me = (l) => {
|
|
2075
2076
|
v.value = l.value;
|
|
2076
2077
|
}, de = (l) => {
|
|
2077
2078
|
console.log(l), v.value = l, e.value.table.load();
|
|
2078
2079
|
}, ae = (l) => {
|
|
2079
2080
|
var r;
|
|
2080
|
-
e.value.form.modalState = "add", (r = e.value.control.add) != null && r.click ? e.value.control.add.click(l) : e.value.control.add.inline === !0 ? (e.value.table.data.unshift(
|
|
2081
|
-
e.value[g] && (e.value[g].value =
|
|
2082
|
-
}),
|
|
2081
|
+
e.value.form.modalState = "add", (r = e.value.control.add) != null && r.click ? e.value.control.add.click(l) : e.value.control.add.inline === !0 ? (e.value.table.data.unshift(ee), T.value = !0, t("open", ee, T.value, "row-add")) : (e.value.form.disabled = !1, e.value.dialog.mode = e.value.control.add.mode, e.value.dialog.title = e.value.control.add.label, Object.keys(ee).forEach((g) => {
|
|
2082
|
+
e.value[g] && (e.value[g].value = ee[g]);
|
|
2083
|
+
}), F.value = !0, t("open", l, "add"));
|
|
2083
2084
|
}, d = (l, r, g, j) => {
|
|
2084
|
-
var
|
|
2085
|
-
e.value.form.modalState = "edit", (
|
|
2086
|
-
e.value[
|
|
2087
|
-
}),
|
|
2085
|
+
var J;
|
|
2086
|
+
e.value.form.modalState = "edit", (J = e.value.control.edit) != null && J.click ? e.value.control.edit.click(l, r, g, j) : (e.value.form.disabled = !1, e.value.dialog.mode = e.value.control.edit.mode, e.value.dialog.title = e.value.control.edit.label, Object.keys(l).forEach((Z) => {
|
|
2087
|
+
e.value[Z] && (e.value[Z].value = l[Z]);
|
|
2088
|
+
}), F.value = !0, t("open", j, "edit", l, r, g));
|
|
2088
2089
|
}, D = (l, r, g, j) => {
|
|
2089
|
-
var
|
|
2090
|
-
if ((
|
|
2090
|
+
var J;
|
|
2091
|
+
if ((J = e.value.control.delete) != null && J.click)
|
|
2091
2092
|
e.value.control.delete.click(l, r, g, j);
|
|
2092
2093
|
else {
|
|
2093
|
-
let { message:
|
|
2094
|
-
ft.confirm(
|
|
2094
|
+
let { message: Z, title: _e, options: Me } = e.value.control.delete.dialog;
|
|
2095
|
+
ft.confirm(Z, _e, Me).then(() => {
|
|
2095
2096
|
t("delete", { row: l, column: r, $index: g }, (Le) => {
|
|
2096
2097
|
Le && (e.value.table.data.splice(g, 1), e.value.table.page.total--);
|
|
2097
2098
|
});
|
|
@@ -2099,22 +2100,22 @@ const tl = {
|
|
|
2099
2100
|
});
|
|
2100
2101
|
}
|
|
2101
2102
|
}, I = (l, r, g, j) => {
|
|
2102
|
-
var
|
|
2103
|
-
e.value.form.modalState = void 0, (
|
|
2104
|
-
e.value[
|
|
2105
|
-
}),
|
|
2103
|
+
var J;
|
|
2104
|
+
e.value.form.modalState = void 0, (J = e.value.control.view) != null && J.click ? e.value.control.view.click(l, r, g, j) : (e.value.form.disabled = !0, e.value.dialog.mode = e.value.control.view.mode, e.value.dialog.title = e.value.control.view.label, Object.keys(l).forEach((Z) => {
|
|
2105
|
+
e.value[Z] && (e.value[Z].value = l[Z]);
|
|
2106
|
+
}), F.value = !0, t("open", j, "view", l, r, g));
|
|
2106
2107
|
}, y = (l, r, g, j) => {
|
|
2107
|
-
var
|
|
2108
|
-
(
|
|
2109
|
-
|
|
2108
|
+
var J;
|
|
2109
|
+
(J = e.value.control.save) != null && J.click ? e.value.control.save.click(l, r, g, j) : t("row-save", { row: l, column: r, $index: g, data: e.value.table.data }, (Z) => {
|
|
2110
|
+
Z && (e.value.table.load(), T.value = !1);
|
|
2110
2111
|
});
|
|
2111
2112
|
}, L = (l, r) => {
|
|
2112
2113
|
t("submit", e.value.form.modalState, l, r, (g) => {
|
|
2113
|
-
g && (
|
|
2114
|
+
g && (F.value = !1, r.table.load());
|
|
2114
2115
|
});
|
|
2115
2116
|
}, O = (l) => {
|
|
2116
2117
|
t("reset", l);
|
|
2117
|
-
},
|
|
2118
|
+
}, te = (l, r) => {
|
|
2118
2119
|
var g;
|
|
2119
2120
|
if ((g = l.control.download) != null && g.click)
|
|
2120
2121
|
l.control.download.click(l, r);
|
|
@@ -2127,8 +2128,8 @@ const tl = {
|
|
|
2127
2128
|
default: () => Ve(Xt, {
|
|
2128
2129
|
items: r,
|
|
2129
2130
|
commitText: l.control.download.excelLabel,
|
|
2130
|
-
onExcel: (
|
|
2131
|
-
t("download",
|
|
2131
|
+
onExcel: (J, Z) => {
|
|
2132
|
+
t("download", J, Z), j();
|
|
2132
2133
|
}
|
|
2133
2134
|
})
|
|
2134
2135
|
}
|
|
@@ -2149,33 +2150,33 @@ const tl = {
|
|
|
2149
2150
|
}, l.control.setting.mode);
|
|
2150
2151
|
}, k = e.value.control, $ = [
|
|
2151
2152
|
{ type: "add", func: ae },
|
|
2152
|
-
{ type: "download", func:
|
|
2153
|
+
{ type: "download", func: te },
|
|
2153
2154
|
{ type: "setting", func: $e },
|
|
2154
2155
|
{ type: "view", func: I },
|
|
2155
2156
|
{ type: "edit", func: d },
|
|
2156
2157
|
{ type: "delete", func: D },
|
|
2157
2158
|
{ type: "save", func: y }
|
|
2158
2159
|
], b = (l) => $.filter((r) => l.includes(r.type)).map(({ type: r, func: g }) => {
|
|
2159
|
-
var j,
|
|
2160
|
+
var j, J, Z;
|
|
2160
2161
|
return {
|
|
2161
2162
|
name: `control-${r}`,
|
|
2162
2163
|
attr: k == null ? void 0 : k[r],
|
|
2163
2164
|
func: g,
|
|
2164
2165
|
label: (j = k == null ? void 0 : k[r]) == null ? void 0 : j.label,
|
|
2165
|
-
sort: ((
|
|
2166
|
-
groupName: ((
|
|
2166
|
+
sort: ((J = k == null ? void 0 : k[r]) == null ? void 0 : J.sort) || 0,
|
|
2167
|
+
groupName: ((Z = k == null ? void 0 : k[r]) == null ? void 0 : Z.groupName) || "default"
|
|
2167
2168
|
};
|
|
2168
2169
|
}).sort((r, g) => r.sort - g.sort), c = (l) => b(l).reduce((r, g) => {
|
|
2169
2170
|
const j = g.groupName || "default";
|
|
2170
2171
|
return r[j] || (r[j] = []), r[j].push(g), r;
|
|
2171
2172
|
}, {}), i = xe(() => Object.fromEntries(
|
|
2172
2173
|
Object.entries(e.value).filter(([l, r]) => r.type !== "hidden").filter(([l, r]) => r.visible !== !1).filter(([l, r]) => r.showCol !== !1).map(([l, r]) => (r.sort = typeof r.sort == "number" ? r.sort : 0, [l, r])).sort((l, r) => l[1].sort - r[1].sort)
|
|
2173
|
-
)), w = he({}),
|
|
2174
|
-
const g = (j,
|
|
2175
|
-
for (const
|
|
2176
|
-
if (
|
|
2177
|
-
if (
|
|
2178
|
-
const _e = g(
|
|
2174
|
+
)), w = he({}), S = (l, r) => {
|
|
2175
|
+
const g = (j, J) => {
|
|
2176
|
+
for (const Z of j) {
|
|
2177
|
+
if (Z.value == J) return Z.label;
|
|
2178
|
+
if (Z.children) {
|
|
2179
|
+
const _e = g(Z.children, J);
|
|
2179
2180
|
if (_e) return _e;
|
|
2180
2181
|
}
|
|
2181
2182
|
}
|
|
@@ -2183,8 +2184,8 @@ const tl = {
|
|
|
2183
2184
|
};
|
|
2184
2185
|
if (l.getDicts) {
|
|
2185
2186
|
const j = r.toString();
|
|
2186
|
-
return w.value[j] ? (l.options = w.value[j], l.formatter || (l.formatter = (
|
|
2187
|
-
w.value[j] =
|
|
2187
|
+
return w.value[j] ? (l.options = w.value[j], l.formatter || (l.formatter = (J, Z, _e, Me) => l.options && g(l.options, _e) || _e), Promise.resolve()) : l.getDicts(e.value.table.data).then((J) => {
|
|
2188
|
+
w.value[j] = J, l.options = J, l.formatter || (l.formatter = (Z, _e, Me, Le) => l.options && g(l.options, Me) || Me);
|
|
2188
2189
|
});
|
|
2189
2190
|
}
|
|
2190
2191
|
return Promise.resolve();
|
|
@@ -2192,12 +2193,12 @@ const tl = {
|
|
|
2192
2193
|
const l = [];
|
|
2193
2194
|
Object.keys(e.value).forEach((r) => {
|
|
2194
2195
|
if (e.value[r].getDicts) {
|
|
2195
|
-
const g =
|
|
2196
|
+
const g = S(e.value[r], r).then(() => {
|
|
2196
2197
|
e.value.table.data.forEach((j) => {
|
|
2197
|
-
var
|
|
2198
|
-
if (e.value[r].getDicts && ((
|
|
2199
|
-
const
|
|
2200
|
-
j[r] =
|
|
2198
|
+
var J;
|
|
2199
|
+
if (e.value[r].getDicts && ((J = e.value[r]) == null ? void 0 : J.forceString) !== !1) {
|
|
2200
|
+
const Z = j[r];
|
|
2201
|
+
j[r] = Z != null ? Z.toString() : Z;
|
|
2201
2202
|
}
|
|
2202
2203
|
});
|
|
2203
2204
|
}).catch((j) => {
|
|
@@ -2209,8 +2210,8 @@ const tl = {
|
|
|
2209
2210
|
console.error("字典加载过程中发生错误:", r);
|
|
2210
2211
|
});
|
|
2211
2212
|
}, X = (l, r, g, j) => {
|
|
2212
|
-
var
|
|
2213
|
-
return l.table ? (
|
|
2213
|
+
var J, Z;
|
|
2214
|
+
return l.table ? (J = l.table(r, g, j)) != null && J.auth ? (Z = l.table(r, g, j)) == null ? void 0 : Z.auth(r, g, j) : !0 : !1;
|
|
2214
2215
|
};
|
|
2215
2216
|
return Dt(() => {
|
|
2216
2217
|
e.value.table.load();
|
|
@@ -2246,7 +2247,7 @@ const tl = {
|
|
|
2246
2247
|
}
|
|
2247
2248
|
}), (l, r) => {
|
|
2248
2249
|
var ot, rt, at, ut, nt;
|
|
2249
|
-
const g = R("el-button-group"), j = R("el-table-column"),
|
|
2250
|
+
const g = R("el-button-group"), j = R("el-table-column"), J = R("el-table"), Z = R("el-pagination"), _e = R("el-icon"), Me = R("el-dialog"), Le = R("el-drawer");
|
|
2250
2251
|
return n(), B(Y, null, [
|
|
2251
2252
|
Q("div", ul, [
|
|
2252
2253
|
((rt = (ot = e.value) == null ? void 0 : ot.query) == null ? void 0 : rt.hidden) != !0 ? (n(), B("div", nl, [
|
|
@@ -2255,8 +2256,8 @@ const tl = {
|
|
|
2255
2256
|
modelValue: e.value,
|
|
2256
2257
|
"onUpdate:modelValue": r[0] || (r[0] = (N) => e.value = N),
|
|
2257
2258
|
onQuery: de,
|
|
2258
|
-
onReset:
|
|
2259
|
-
},
|
|
2259
|
+
onReset: me
|
|
2260
|
+
}, fe({
|
|
2260
2261
|
"q-btns": h(() => [
|
|
2261
2262
|
p(l.$slots, "q-btns", {}, () => [
|
|
2262
2263
|
(n(!0), B(Y, null, U(c(["add", "download", "setting"]), (N, ue) => (n(), B(Y, null, [
|
|
@@ -2270,7 +2271,7 @@ const tl = {
|
|
|
2270
2271
|
onClick: (H) => C.func(e.value, E.value)
|
|
2271
2272
|
}), {
|
|
2272
2273
|
default: h(() => [
|
|
2273
|
-
be(
|
|
2274
|
+
be(ve(C.label), 1)
|
|
2274
2275
|
]),
|
|
2275
2276
|
_: 2
|
|
2276
2277
|
}, 1040, ["onClick"])) : (n(), M(o(ge), x({
|
|
@@ -2293,7 +2294,7 @@ const tl = {
|
|
|
2293
2294
|
onClick: (H) => C.func(e.value, E.value)
|
|
2294
2295
|
}), {
|
|
2295
2296
|
default: h(() => [
|
|
2296
|
-
be(
|
|
2297
|
+
be(ve(C.label), 1)
|
|
2297
2298
|
]),
|
|
2298
2299
|
_: 2
|
|
2299
2300
|
}, 1040, ["onClick"])) : (n(), M(o(ge), x({
|
|
@@ -2323,7 +2324,7 @@ const tl = {
|
|
|
2323
2324
|
], !0)
|
|
2324
2325
|
])) : ye("", !0),
|
|
2325
2326
|
Q("div", sl, [
|
|
2326
|
-
G(
|
|
2327
|
+
G(J, je(Ze({ ...l.$attrs, ...o(Ce)(e.value.table, (N) => !["dblclickType", "page"].includes(N)) })), {
|
|
2327
2328
|
append: h(() => [
|
|
2328
2329
|
p(l.$slots, "append", {}, void 0, !0)
|
|
2329
2330
|
]),
|
|
@@ -2336,7 +2337,7 @@ const tl = {
|
|
|
2336
2337
|
prop: ue,
|
|
2337
2338
|
key: ue,
|
|
2338
2339
|
ref_for: !0
|
|
2339
|
-
}, { ...e.value.tableColumns, ...o(Ce)(N, (C) =>
|
|
2340
|
+
}, { ...e.value.tableColumns, ...o(Ce)(N, (C) => q.includes(C)) }, { "header-align": "center" }), fe({
|
|
2340
2341
|
header: h(({ column: C, $index: H }) => [
|
|
2341
2342
|
ue == "control" ? p(l.$slots, `${ue}-header`, {
|
|
2342
2343
|
key: 0,
|
|
@@ -2344,7 +2345,7 @@ const tl = {
|
|
|
2344
2345
|
$index: H
|
|
2345
2346
|
}, () => [
|
|
2346
2347
|
r[12] || (r[12] = Q("span", null, "操作", -1)),
|
|
2347
|
-
e.value.control.add.inline === !0 && !
|
|
2348
|
+
e.value.control.add.inline === !0 && !T.value ? (n(), B(Y, { key: 0 }, [
|
|
2348
2349
|
e.value.control.add.label ? (n(), M(o(ge), x({
|
|
2349
2350
|
key: 0,
|
|
2350
2351
|
title: "新增",
|
|
@@ -2354,7 +2355,7 @@ const tl = {
|
|
|
2354
2355
|
onClick: r[1] || (r[1] = (re) => ae(e.value))
|
|
2355
2356
|
}), {
|
|
2356
2357
|
default: h(() => [
|
|
2357
|
-
be(
|
|
2358
|
+
be(ve(e.value.control.add.label), 1)
|
|
2358
2359
|
]),
|
|
2359
2360
|
_: 1
|
|
2360
2361
|
}, 16)) : (n(), M(o(ge), x({
|
|
@@ -2419,72 +2420,72 @@ const tl = {
|
|
|
2419
2420
|
$index: re
|
|
2420
2421
|
}, void 0, !0),
|
|
2421
2422
|
(n(!0), B(Y, null, U(c(["view", "edit", "delete", "save"]), (Ue, Ge) => (n(), B(Y, null, [
|
|
2422
|
-
Ge == "default" ? (n(!0), B(Y, { key: 0 }, U(Ue, (
|
|
2423
|
-
p(l.$slots,
|
|
2423
|
+
Ge == "default" ? (n(!0), B(Y, { key: 0 }, U(Ue, (pe) => (n(), B(Y, null, [
|
|
2424
|
+
p(l.$slots, pe.name + "-left", {
|
|
2424
2425
|
row: C,
|
|
2425
2426
|
column: H,
|
|
2426
2427
|
$index: re
|
|
2427
2428
|
}, void 0, !0),
|
|
2428
|
-
|
|
2429
|
+
pe.attr.auth(C, H, re) ? p(l.$slots, pe.name, {
|
|
2429
2430
|
key: 0,
|
|
2430
2431
|
row: C,
|
|
2431
2432
|
column: H,
|
|
2432
2433
|
$index: re
|
|
2433
2434
|
}, () => [
|
|
2434
|
-
|
|
2435
|
+
pe.label ? (n(), M(o(ge), x({
|
|
2435
2436
|
key: 0,
|
|
2436
2437
|
ref_for: !0
|
|
2437
|
-
},
|
|
2438
|
-
onClick: (Qe) =>
|
|
2438
|
+
}, pe.attr, {
|
|
2439
|
+
onClick: (Qe) => pe.func(C, H, re, e.value)
|
|
2439
2440
|
}), {
|
|
2440
2441
|
default: h(() => [
|
|
2441
|
-
be(pe
|
|
2442
|
+
be(ve(pe.label), 1)
|
|
2442
2443
|
]),
|
|
2443
2444
|
_: 2
|
|
2444
2445
|
}, 1040, ["onClick"])) : (n(), M(o(ge), x({
|
|
2445
2446
|
key: 1,
|
|
2446
2447
|
ref_for: !0
|
|
2447
|
-
},
|
|
2448
|
-
onClick: (Qe) =>
|
|
2448
|
+
}, pe.attr, {
|
|
2449
|
+
onClick: (Qe) => pe.func(C, H, re, e.value)
|
|
2449
2450
|
}), null, 16, ["onClick"]))
|
|
2450
2451
|
], !0) : ye("", !0),
|
|
2451
|
-
p(l.$slots,
|
|
2452
|
+
p(l.$slots, pe.name + "-right", {
|
|
2452
2453
|
row: C,
|
|
2453
2454
|
column: H,
|
|
2454
2455
|
$index: re
|
|
2455
2456
|
}, void 0, !0)
|
|
2456
2457
|
], 64))), 256)) : (n(), M(g, { key: 1 }, {
|
|
2457
2458
|
default: h(() => [
|
|
2458
|
-
(n(!0), B(Y, null, U(Ue, (
|
|
2459
|
-
p(l.$slots,
|
|
2459
|
+
(n(!0), B(Y, null, U(Ue, (pe) => (n(), B(Y, null, [
|
|
2460
|
+
p(l.$slots, pe.name + "-left", {
|
|
2460
2461
|
row: C,
|
|
2461
2462
|
column: H,
|
|
2462
2463
|
$index: re
|
|
2463
2464
|
}, void 0, !0),
|
|
2464
|
-
|
|
2465
|
+
pe.attr.auth(C, H, re) ? p(l.$slots, pe.name, {
|
|
2465
2466
|
key: 0,
|
|
2466
2467
|
row: C,
|
|
2467
2468
|
column: H,
|
|
2468
2469
|
$index: re
|
|
2469
2470
|
}, () => [
|
|
2470
|
-
|
|
2471
|
+
pe.label ? (n(), M(o(ge), x({
|
|
2471
2472
|
key: 0,
|
|
2472
2473
|
ref_for: !0
|
|
2473
|
-
},
|
|
2474
|
-
onClick: (Qe) =>
|
|
2474
|
+
}, pe.attr, {
|
|
2475
|
+
onClick: (Qe) => pe.func(C, H, re, e.value)
|
|
2475
2476
|
}), {
|
|
2476
2477
|
default: h(() => [
|
|
2477
|
-
be(pe
|
|
2478
|
+
be(ve(pe.label), 1)
|
|
2478
2479
|
]),
|
|
2479
2480
|
_: 2
|
|
2480
2481
|
}, 1040, ["onClick"])) : (n(), M(o(ge), x({
|
|
2481
2482
|
key: 1,
|
|
2482
2483
|
ref_for: !0
|
|
2483
|
-
},
|
|
2484
|
-
onClick: (Qe) =>
|
|
2484
|
+
}, pe.attr, {
|
|
2485
|
+
onClick: (Qe) => pe.func(C, H, re, e.value)
|
|
2485
2486
|
}), null, 16, ["onClick"]))
|
|
2486
2487
|
], !0) : ye("", !0),
|
|
2487
|
-
p(l.$slots,
|
|
2488
|
+
p(l.$slots, pe.name + "-right", {
|
|
2488
2489
|
row: C,
|
|
2489
2490
|
column: H,
|
|
2490
2491
|
$index: re
|
|
@@ -2518,14 +2519,14 @@ const tl = {
|
|
|
2518
2519
|
G(We, {
|
|
2519
2520
|
modelValue: C[ue],
|
|
2520
2521
|
"onUpdate:modelValue": (Ie) => C[ue] = Ie,
|
|
2521
|
-
item: N == null ? void 0 : N.table(C, H, re,
|
|
2522
|
+
item: N == null ? void 0 : N.table(C, H, re, T.value),
|
|
2522
2523
|
ctrlKey: ue,
|
|
2523
|
-
ctrlType: (Be = N.table(C, H, re,
|
|
2524
|
+
ctrlType: (Be = N.table(C, H, re, T.value)) != null && Be.type ? N.table(C, H, re, T.value).type : N.type,
|
|
2524
2525
|
model: e.value,
|
|
2525
2526
|
class: "g-ctrl-container",
|
|
2526
2527
|
t: "t",
|
|
2527
2528
|
formInfo: C
|
|
2528
|
-
},
|
|
2529
|
+
}, fe({ _: 2 }, [
|
|
2529
2530
|
U(l.$slots, (Ie, Ue) => ({
|
|
2530
2531
|
name: Ue,
|
|
2531
2532
|
fn: h((Ge) => [
|
|
@@ -2545,7 +2546,7 @@ const tl = {
|
|
|
2545
2546
|
$index: re
|
|
2546
2547
|
}, () => [
|
|
2547
2548
|
Q("div", {
|
|
2548
|
-
innerHTML:
|
|
2549
|
+
innerHTML: ie(N, H.formatter(C, H, C[ue], re))
|
|
2549
2550
|
}, null, 8, dl)
|
|
2550
2551
|
], !0)
|
|
2551
2552
|
]),
|
|
@@ -2557,7 +2558,7 @@ const tl = {
|
|
|
2557
2558
|
_: 3
|
|
2558
2559
|
}, 16),
|
|
2559
2560
|
(nt = (ut = (at = e.value) == null ? void 0 : at.table) == null ? void 0 : ut.page) != null && nt.hidden ? ye("", !0) : p(l.$slots, "page", { key: 0 }, () => [
|
|
2560
|
-
G(
|
|
2561
|
+
G(Z, x({
|
|
2561
2562
|
"page-size": e.value.table.page.pageSize,
|
|
2562
2563
|
"onUpdate:pageSize": r[3] || (r[3] = (N) => e.value.table.page.pageSize = N),
|
|
2563
2564
|
"current-page": e.value.table.page.currentPage,
|
|
@@ -2571,10 +2572,10 @@ const tl = {
|
|
|
2571
2572
|
], !0)
|
|
2572
2573
|
])
|
|
2573
2574
|
]),
|
|
2574
|
-
e.value.dialog.mode == "dialog" &&
|
|
2575
|
+
e.value.dialog.mode == "dialog" && F.value ? (n(), B("div", fl, [
|
|
2575
2576
|
G(Me, x({
|
|
2576
|
-
modelValue:
|
|
2577
|
-
"onUpdate:modelValue": r[8] || (r[8] = (N) =>
|
|
2577
|
+
modelValue: F.value,
|
|
2578
|
+
"onUpdate:modelValue": r[8] || (r[8] = (N) => F.value = N),
|
|
2578
2579
|
fullscreen: e.value.dialog.fullScreen
|
|
2579
2580
|
}, o(Ce)(e.value.dialog, (N) => !["size"].includes(N)), {
|
|
2580
2581
|
width: o(bt)(e.value.dialog.width) + 35
|
|
@@ -2585,7 +2586,7 @@ const tl = {
|
|
|
2585
2586
|
Q("div", cl, [
|
|
2586
2587
|
Q("div", ml, [
|
|
2587
2588
|
p(l.$slots, "f-header", {}, () => [
|
|
2588
|
-
Q("div", null,
|
|
2589
|
+
Q("div", null, ve(e.value.dialog.title), 1)
|
|
2589
2590
|
], !0)
|
|
2590
2591
|
]),
|
|
2591
2592
|
((ue = (N = e.value) == null ? void 0 : N.dialog) == null ? void 0 : ue.fullScreen) === !1 ? (n(), B("div", {
|
|
@@ -2627,7 +2628,7 @@ const tl = {
|
|
|
2627
2628
|
"onUpdate:modelValue": r[7] || (r[7] = (N) => e.value = N),
|
|
2628
2629
|
onSubmit: L,
|
|
2629
2630
|
onReset: O
|
|
2630
|
-
},
|
|
2631
|
+
}, fe({ _: 2 }, [
|
|
2631
2632
|
U(l.$slots, (N, ue, C) => ({
|
|
2632
2633
|
name: ue,
|
|
2633
2634
|
fn: h((H) => [
|
|
@@ -2641,16 +2642,16 @@ const tl = {
|
|
|
2641
2642
|
_: 3
|
|
2642
2643
|
}, 16, ["modelValue", "fullscreen", "width"])
|
|
2643
2644
|
])) : ye("", !0),
|
|
2644
|
-
e.value.dialog.mode == "drawer" &&
|
|
2645
|
+
e.value.dialog.mode == "drawer" && F.value ? (n(), B("div", vl, [
|
|
2645
2646
|
G(Le, x({
|
|
2646
|
-
modelValue:
|
|
2647
|
-
"onUpdate:modelValue": r[10] || (r[10] = (N) =>
|
|
2647
|
+
modelValue: F.value,
|
|
2648
|
+
"onUpdate:modelValue": r[10] || (r[10] = (N) => F.value = N)
|
|
2648
2649
|
}, o(Ce)(e.value.dialog, (N) => !["width"].includes(N))), {
|
|
2649
2650
|
header: h(() => [
|
|
2650
2651
|
Q("div", yl, [
|
|
2651
2652
|
Q("div", hl, [
|
|
2652
2653
|
p(l.$slots, "f-header", {}, () => [
|
|
2653
|
-
Q("div", null,
|
|
2654
|
+
Q("div", null, ve(e.value.dialog.title), 1)
|
|
2654
2655
|
], !0)
|
|
2655
2656
|
])
|
|
2656
2657
|
])
|
|
@@ -2662,7 +2663,7 @@ const tl = {
|
|
|
2662
2663
|
"onUpdate:modelValue": r[9] || (r[9] = (N) => e.value = N),
|
|
2663
2664
|
onSubmit: L,
|
|
2664
2665
|
onReset: O
|
|
2665
|
-
},
|
|
2666
|
+
}, fe({ _: 2 }, [
|
|
2666
2667
|
U(l.$slots, (N, ue, C) => ({
|
|
2667
2668
|
name: ue,
|
|
2668
2669
|
fn: h((H) => [
|
|
@@ -2698,43 +2699,43 @@ const tl = {
|
|
|
2698
2699
|
emits: /* @__PURE__ */ Se(["load"], ["update:modelValue"]),
|
|
2699
2700
|
setup(m, { emit: f }) {
|
|
2700
2701
|
var se, V, u;
|
|
2701
|
-
const t = f, e = Oe(m, "modelValue"), a = he(((se = He()) == null ? void 0 : se.width) || "180px"), v = he(((V = He()) == null ? void 0 : V.search) === void 0 ? !0 : (u = He()) == null ? void 0 : u.search),
|
|
2702
|
-
t("load",
|
|
2702
|
+
const t = f, e = Oe(m, "modelValue"), a = he(((se = He()) == null ? void 0 : se.width) || "180px"), v = he(((V = He()) == null ? void 0 : V.search) === void 0 ? !0 : (u = He()) == null ? void 0 : u.search), F = he({}), T = he(""), q = he(null), E = (A, K) => A ? K.label.includes(A) : !0, _ = (A, K) => {
|
|
2703
|
+
t("load", F.value, A, K);
|
|
2703
2704
|
}, P = (A) => {
|
|
2704
|
-
|
|
2705
|
+
F.value = A, e.value.table.load();
|
|
2705
2706
|
};
|
|
2706
|
-
return Vt(
|
|
2707
|
-
|
|
2708
|
-
}), (A,
|
|
2709
|
-
const
|
|
2707
|
+
return Vt(T, (A) => {
|
|
2708
|
+
q.value.filter(A);
|
|
2709
|
+
}), (A, K) => {
|
|
2710
|
+
const ee = R("el-input"), ie = R("el-tree"), me = R("g-table");
|
|
2710
2711
|
return n(), B("div", $l, [
|
|
2711
2712
|
Q("div", {
|
|
2712
2713
|
class: "g-tree-left",
|
|
2713
2714
|
style: Te({ width: a.value })
|
|
2714
2715
|
}, [
|
|
2715
|
-
v.value ? (n(), M(
|
|
2716
|
+
v.value ? (n(), M(ee, {
|
|
2716
2717
|
key: 0,
|
|
2717
|
-
modelValue:
|
|
2718
|
-
"onUpdate:modelValue":
|
|
2718
|
+
modelValue: T.value,
|
|
2719
|
+
"onUpdate:modelValue": K[0] || (K[0] = (de) => T.value = de),
|
|
2719
2720
|
style: { width: "100%" },
|
|
2720
2721
|
placeholder: "输入节点查询",
|
|
2721
2722
|
clearable: ""
|
|
2722
2723
|
}, null, 8, ["modelValue"])) : ye("", !0),
|
|
2723
2724
|
Q("div", El, [
|
|
2724
|
-
G(
|
|
2725
|
+
G(ie, x({
|
|
2725
2726
|
style: { width: a.value },
|
|
2726
2727
|
"filter-node-method": E,
|
|
2727
2728
|
"expand-on-click-node": !1,
|
|
2728
2729
|
ref_key: "treeRef",
|
|
2729
|
-
ref:
|
|
2730
|
+
ref: q,
|
|
2730
2731
|
onNodeClick: P
|
|
2731
|
-
}, A.$attrs),
|
|
2732
|
+
}, A.$attrs), fe({
|
|
2732
2733
|
default: h(({ node: de, data: ae }) => [
|
|
2733
2734
|
p(A.$slots, "tree", {
|
|
2734
2735
|
node: de,
|
|
2735
2736
|
data: ae
|
|
2736
2737
|
}, () => [
|
|
2737
|
-
Q("span", null,
|
|
2738
|
+
Q("span", null, ve(de.label), 1)
|
|
2738
2739
|
], !0)
|
|
2739
2740
|
]),
|
|
2740
2741
|
_: 2
|
|
@@ -2749,10 +2750,10 @@ const tl = {
|
|
|
2749
2750
|
])
|
|
2750
2751
|
], 4),
|
|
2751
2752
|
Q("div", wl, [
|
|
2752
|
-
G(
|
|
2753
|
+
G(me, x({
|
|
2753
2754
|
modelValue: e.value,
|
|
2754
|
-
"onUpdate:modelValue":
|
|
2755
|
-
}, A.$attrs, { onLoad: _ }),
|
|
2755
|
+
"onUpdate:modelValue": K[1] || (K[1] = (de) => e.value = de)
|
|
2756
|
+
}, A.$attrs, { onLoad: _ }), fe({ _: 2 }, [
|
|
2756
2757
|
U(A.$slots, (de, ae, d) => ({
|
|
2757
2758
|
name: ae,
|
|
2758
2759
|
fn: h((D) => [
|
|
@@ -2794,7 +2795,7 @@ const tl = {
|
|
|
2794
2795
|
key: a.key
|
|
2795
2796
|
}, [
|
|
2796
2797
|
p(t.$slots, a.key + "-title", { col: a }, () => [
|
|
2797
|
-
be(
|
|
2798
|
+
be(ve(a.label), 1)
|
|
2798
2799
|
], !0)
|
|
2799
2800
|
], 4))), 128))
|
|
2800
2801
|
])) : (n(), B("div", Dl, [
|
|
@@ -2803,7 +2804,7 @@ const tl = {
|
|
|
2803
2804
|
key: a.key
|
|
2804
2805
|
}, [
|
|
2805
2806
|
p(t.$slots, a.key, { col: a }, () => [
|
|
2806
|
-
be(
|
|
2807
|
+
be(ve(m.data.option[a.key]), 1)
|
|
2807
2808
|
], !0)
|
|
2808
2809
|
], 4))), 128))
|
|
2809
2810
|
]));
|
|
@@ -2825,14 +2826,14 @@ const Ul = {
|
|
|
2825
2826
|
const a = Ml(f);
|
|
2826
2827
|
if (!a) return () => {
|
|
2827
2828
|
};
|
|
2828
|
-
const v = he(!0),
|
|
2829
|
+
const v = he(!0), F = Ft({
|
|
2829
2830
|
setup() {
|
|
2830
2831
|
return e = () => {
|
|
2831
2832
|
v.value = !1, setTimeout(() => {
|
|
2832
|
-
|
|
2833
|
+
F.unmount(), t.remove();
|
|
2833
2834
|
}, 300);
|
|
2834
2835
|
}, () => {
|
|
2835
|
-
var
|
|
2836
|
+
var T, q, E;
|
|
2836
2837
|
return Ve(a, {
|
|
2837
2838
|
modelValue: v.value,
|
|
2838
2839
|
"onUpdate:modelValue": (_) => v.value = _,
|
|
@@ -2840,16 +2841,16 @@ const Ul = {
|
|
|
2840
2841
|
appendToBody: !0,
|
|
2841
2842
|
destroyOnClose: !0
|
|
2842
2843
|
}, {
|
|
2843
|
-
default: (
|
|
2844
|
-
header: (
|
|
2844
|
+
default: (T = m.slots) == null ? void 0 : T.default,
|
|
2845
|
+
header: (q = m.slots) == null ? void 0 : q.header,
|
|
2845
2846
|
footer: (E = m.slots) == null ? void 0 : E.footer
|
|
2846
2847
|
});
|
|
2847
2848
|
};
|
|
2848
2849
|
}
|
|
2849
2850
|
});
|
|
2850
|
-
return gt.forEach((
|
|
2851
|
-
|
|
2852
|
-
}),
|
|
2851
|
+
return gt.forEach((T) => {
|
|
2852
|
+
F.component(T.name, T);
|
|
2853
|
+
}), F.provide("options", Ke), F.use($t, { locale: St }), document.body.appendChild(t), F.mount(t), e;
|
|
2853
2854
|
};
|
|
2854
2855
|
function bt(m, f = window.innerWidth) {
|
|
2855
2856
|
if (typeof m == "number")
|
|
@@ -2867,13 +2868,13 @@ function bt(m, f = window.innerWidth) {
|
|
|
2867
2868
|
return f * parseFloat(m) / 100;
|
|
2868
2869
|
}
|
|
2869
2870
|
if (m.startsWith("calc(") && m.endsWith(")")) {
|
|
2870
|
-
let v = function(
|
|
2871
|
-
if (/[0-9+\-*/().\s]+$/.test(
|
|
2872
|
-
return new Function("return " +
|
|
2871
|
+
let v = function(T) {
|
|
2872
|
+
if (/[0-9+\-*/().\s]+$/.test(T))
|
|
2873
|
+
return new Function("return " + T)();
|
|
2873
2874
|
throw new Error("Invalid calc expression");
|
|
2874
2875
|
};
|
|
2875
2876
|
const a = m.slice(5, -1).trim();
|
|
2876
|
-
return v(a.replace(/([0-9.]+)([a-z%]+)/g, (
|
|
2877
|
+
return v(a.replace(/([0-9.]+)([a-z%]+)/g, (T, q, E) => bt(q + E, f)));
|
|
2877
2878
|
}
|
|
2878
2879
|
throw new Error("Unsupported unit in value: " + m);
|
|
2879
2880
|
}
|
|
@@ -2894,9 +2895,9 @@ function ql(m, f, t = "value", e = "label", a = "children") {
|
|
|
2894
2895
|
if (v[t] === f)
|
|
2895
2896
|
return v[e];
|
|
2896
2897
|
if (v[a] && v[a].length > 0) {
|
|
2897
|
-
const
|
|
2898
|
-
if (
|
|
2899
|
-
return
|
|
2898
|
+
const F = ql(v[a], f, t, e, a);
|
|
2899
|
+
if (F)
|
|
2900
|
+
return F;
|
|
2900
2901
|
}
|
|
2901
2902
|
}
|
|
2902
2903
|
return null;
|
|
@@ -2908,14 +2909,14 @@ function tt(m) {
|
|
|
2908
2909
|
], a = m < 0 ? "欠" : "";
|
|
2909
2910
|
m = Math.abs(m);
|
|
2910
2911
|
let v = "";
|
|
2911
|
-
for (let
|
|
2912
|
-
v += (t[Math.floor(m * 10 * Math.pow(10,
|
|
2912
|
+
for (let F = 0; F < f.length; F++)
|
|
2913
|
+
v += (t[Math.floor(m * 10 * Math.pow(10, F)) % 10] + f[F]).replace(/零./, "");
|
|
2913
2914
|
v = v || "整", m = Math.floor(m);
|
|
2914
|
-
for (let
|
|
2915
|
-
let
|
|
2916
|
-
for (let
|
|
2917
|
-
|
|
2918
|
-
v =
|
|
2915
|
+
for (let F = 0; F < e[0].length && m > 0; F++) {
|
|
2916
|
+
let T = "";
|
|
2917
|
+
for (let q = 0; q < e[1].length && m > 0; q++)
|
|
2918
|
+
T = t[m % 10] + e[1][q] + T, m = Math.floor(m / 10);
|
|
2919
|
+
v = T.replace(/(零.)*零$/, "").replace(/^$/, "零") + e[0][F] + v;
|
|
2919
2920
|
}
|
|
2920
2921
|
return a + v.replace(/(零.)*零元/, "元").replace(/(零.)+/g, "零").replace(/^整$/, "零元整");
|
|
2921
2922
|
}
|
|
@@ -2925,7 +2926,7 @@ function Sl(m) {
|
|
|
2925
2926
|
const f = m.toFixed(2), [t, e] = f.split(".");
|
|
2926
2927
|
return `${t.replace(/\B(?=(\d{3})+(?!\d))/g, ",")}.${e}`;
|
|
2927
2928
|
}
|
|
2928
|
-
const
|
|
2929
|
+
const ce = {
|
|
2929
2930
|
RADIO: "radio",
|
|
2930
2931
|
RADIOBUTTON: "radio-button",
|
|
2931
2932
|
CHECKBOX: "checkbox",
|
|
@@ -2955,7 +2956,7 @@ const fe = {
|
|
|
2955
2956
|
TEL: "tel"
|
|
2956
2957
|
};
|
|
2957
2958
|
export {
|
|
2958
|
-
|
|
2959
|
+
ce as CT,
|
|
2959
2960
|
bt as convertToPx,
|
|
2960
2961
|
Ul as default,
|
|
2961
2962
|
Ce as filterObject,
|