vue-2024-ui 0.2.104 → 0.2.105
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 +368 -355
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import ql, { dayjs as Al, ElForm as Dt, ElButtonGroup as It, ElButton as Ne, ElPopover as Lt, ElIcon as Ht, ElMessage as ft, ElMessageBox as pl } from "element-plus";
|
|
2
|
-
import { ref as re, useModel as ot, nextTick as rt, onMounted as xt, computed as Be, resolveComponent as
|
|
2
|
+
import { ref as re, useModel as ot, nextTick as rt, onMounted as xt, computed as Be, resolveComponent as H, openBlock as m, createElementBlock as z, Fragment as se, createElementVNode as J, createBlock as D, createCommentVNode as ke, normalizeStyle as Ue, unref as F, mergeProps as Y, withCtx as $, renderSlot as C, renderList as W, createTextVNode as Le, toDisplayString as Ie, createSlots as $e, createVNode as de, normalizeProps as qt, resolveDynamicComponent as Ze, guardReactiveProps as ml, mergeModels as st, useSlots as hl, inject as jt, withModifiers as yt, Transition as Yl, withDirectives as Fl, vShow as jl, h as Se, useAttrs as zt, onUnmounted as zl, onBeforeUnmount as Ul, normalizeClass as yl, watchEffect as Ll, onBeforeMount as Hl, watch as gl, createApp as Rl } from "vue";
|
|
3
3
|
import { Plus as bl, ZoomIn as Bl, Delete as Wt, Search as Pl, Refresh as Gt, More as Nl, CircleClose as Wl, CircleCheckFilled as Gl, CircleCheck as Rt, Minus as Xl, Close as Ql, Switch as wl, FullScreen as Zl, InfoFilled as $l, Download as kl, DocumentCopy as Jl, Setting as Kl, CirclePlus as ea, Edit as _l, View as ta, ArrowUp as la, ArrowDown as aa } from "@element-plus/icons-vue";
|
|
4
4
|
import xl from "sortablejs";
|
|
5
5
|
import { Dexie as ra } from "dexie";
|
|
@@ -193,7 +193,7 @@ var Ml = { exports: {} };
|
|
|
193
193
|
} }, G = function(B, A, y) {
|
|
194
194
|
var _ = String(B);
|
|
195
195
|
return !_ || _.length >= A ? B : "" + Array(A + 1 - _.length).join(y) + B;
|
|
196
|
-
},
|
|
196
|
+
}, le = { s: G, z: function(B) {
|
|
197
197
|
var A = -B.utcOffset(), y = Math.abs(A), _ = Math.floor(y / 60), w = y % 60;
|
|
198
198
|
return (A <= 0 ? "+" : "-") + G(_, 2, "0") + ":" + G(w, 2, "0");
|
|
199
199
|
}, m: function B(A, y) {
|
|
@@ -206,41 +206,41 @@ var Ml = { exports: {} };
|
|
|
206
206
|
return { M: u, y: c, w: h, d: v, D: q, h: S, m: f, s: t, ms: o, Q: r }[B] || String(B || "").toLowerCase().replace(/s$/, "");
|
|
207
207
|
}, u: function(B) {
|
|
208
208
|
return B === void 0;
|
|
209
|
-
} },
|
|
210
|
-
|
|
211
|
-
var
|
|
212
|
-
return B instanceof
|
|
213
|
-
},
|
|
209
|
+
} }, R = "en", K = {};
|
|
210
|
+
K[R] = Q;
|
|
211
|
+
var fe = "$isDayjsObject", Te = function(B) {
|
|
212
|
+
return B instanceof Ce || !(!B || !B[fe]);
|
|
213
|
+
}, Ve = function B(A, y, _) {
|
|
214
214
|
var w;
|
|
215
|
-
if (!A) return
|
|
215
|
+
if (!A) return R;
|
|
216
216
|
if (typeof A == "string") {
|
|
217
217
|
var p = A.toLowerCase();
|
|
218
|
-
|
|
218
|
+
K[p] && (w = p), y && (K[p] = y, w = p);
|
|
219
219
|
var T = A.split("-");
|
|
220
220
|
if (!w && T.length > 1) return B(T[0]);
|
|
221
221
|
} else {
|
|
222
222
|
var M = A.name;
|
|
223
|
-
|
|
223
|
+
K[M] = A, w = M;
|
|
224
224
|
}
|
|
225
|
-
return !_ && w && (
|
|
226
|
-
},
|
|
227
|
-
if (
|
|
225
|
+
return !_ && w && (R = w), w || !_ && R;
|
|
226
|
+
}, ve = function(B, A) {
|
|
227
|
+
if (Te(B)) return B.clone();
|
|
228
228
|
var y = typeof A == "object" ? A : {};
|
|
229
|
-
return y.date = B, y.args = arguments, new
|
|
230
|
-
},
|
|
231
|
-
|
|
232
|
-
return
|
|
229
|
+
return y.date = B, y.args = arguments, new Ce(y);
|
|
230
|
+
}, L = le;
|
|
231
|
+
L.l = Ve, L.i = Te, L.w = function(B, A) {
|
|
232
|
+
return ve(B, { locale: A.$L, utc: A.$u, x: A.$x, $offset: A.$offset });
|
|
233
233
|
};
|
|
234
|
-
var
|
|
234
|
+
var Ce = function() {
|
|
235
235
|
function B(y) {
|
|
236
|
-
this.$L =
|
|
236
|
+
this.$L = Ve(y.locale, null, !0), this.parse(y), this.$x = this.$x || y.x || {}, this[fe] = !0;
|
|
237
237
|
}
|
|
238
238
|
var A = B.prototype;
|
|
239
239
|
return A.parse = function(y) {
|
|
240
240
|
this.$d = function(_) {
|
|
241
241
|
var w = _.date, p = _.utc;
|
|
242
242
|
if (w === null) return /* @__PURE__ */ new Date(NaN);
|
|
243
|
-
if (
|
|
243
|
+
if (L.u(w)) return /* @__PURE__ */ new Date();
|
|
244
244
|
if (w instanceof Date) return new Date(w);
|
|
245
245
|
if (typeof w == "string" && !/Z$/i.test(w)) {
|
|
246
246
|
var T = w.match(V);
|
|
@@ -255,36 +255,36 @@ var Ml = { exports: {} };
|
|
|
255
255
|
var y = this.$d;
|
|
256
256
|
this.$y = y.getFullYear(), this.$M = y.getMonth(), this.$D = y.getDate(), this.$W = y.getDay(), this.$H = y.getHours(), this.$m = y.getMinutes(), this.$s = y.getSeconds(), this.$ms = y.getMilliseconds();
|
|
257
257
|
}, A.$utils = function() {
|
|
258
|
-
return
|
|
258
|
+
return L;
|
|
259
259
|
}, A.isValid = function() {
|
|
260
260
|
return this.$d.toString() !== U;
|
|
261
261
|
}, A.isSame = function(y, _) {
|
|
262
|
-
var w =
|
|
262
|
+
var w = ve(y);
|
|
263
263
|
return this.startOf(_) <= w && w <= this.endOf(_);
|
|
264
264
|
}, A.isAfter = function(y, _) {
|
|
265
|
-
return
|
|
265
|
+
return ve(y) < this.startOf(_);
|
|
266
266
|
}, A.isBefore = function(y, _) {
|
|
267
|
-
return this.endOf(_) <
|
|
267
|
+
return this.endOf(_) < ve(y);
|
|
268
268
|
}, A.$g = function(y, _, w) {
|
|
269
|
-
return
|
|
269
|
+
return L.u(y) ? this[_] : this.set(w, y);
|
|
270
270
|
}, A.unix = function() {
|
|
271
271
|
return Math.floor(this.valueOf() / 1e3);
|
|
272
272
|
}, A.valueOf = function() {
|
|
273
273
|
return this.$d.getTime();
|
|
274
274
|
}, A.startOf = function(y, _) {
|
|
275
|
-
var w = this, p = !!
|
|
276
|
-
var ie =
|
|
275
|
+
var w = this, p = !!L.u(_) || _, T = L.p(y), M = function(Fe, be) {
|
|
276
|
+
var ie = L.w(w.$u ? Date.UTC(w.$y, be, Fe) : new Date(w.$y, be, Fe), w);
|
|
277
277
|
return p ? ie : ie.endOf(v);
|
|
278
278
|
}, I = function(Fe, be) {
|
|
279
|
-
return
|
|
280
|
-
},
|
|
279
|
+
return L.w(w.toDate()[Fe].apply(w.toDate("s"), (p ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(be)), w);
|
|
280
|
+
}, ee = this.$W, ae = this.$M, _e = this.$D, Ye = "set" + (this.$u ? "UTC" : "");
|
|
281
281
|
switch (T) {
|
|
282
282
|
case c:
|
|
283
283
|
return p ? M(1, 0) : M(31, 11);
|
|
284
284
|
case u:
|
|
285
285
|
return p ? M(1, ae) : M(0, ae + 1);
|
|
286
286
|
case h:
|
|
287
|
-
var oe = this.$locale().weekStart || 0, me = (
|
|
287
|
+
var oe = this.$locale().weekStart || 0, me = (ee < oe ? ee + 7 : ee) - oe;
|
|
288
288
|
return M(p ? _e - me : _e + (6 - me), ae);
|
|
289
289
|
case v:
|
|
290
290
|
case q:
|
|
@@ -301,38 +301,38 @@ var Ml = { exports: {} };
|
|
|
301
301
|
}, A.endOf = function(y) {
|
|
302
302
|
return this.startOf(y, !1);
|
|
303
303
|
}, A.$set = function(y, _) {
|
|
304
|
-
var w, p =
|
|
304
|
+
var w, p = L.p(y), T = "set" + (this.$u ? "UTC" : ""), M = (w = {}, w[v] = T + "Date", w[q] = T + "Date", w[u] = T + "Month", w[c] = T + "FullYear", w[S] = T + "Hours", w[f] = T + "Minutes", w[t] = T + "Seconds", w[o] = T + "Milliseconds", w)[p], I = p === v ? this.$D + (_ - this.$W) : _;
|
|
305
305
|
if (p === u || p === c) {
|
|
306
|
-
var
|
|
307
|
-
|
|
306
|
+
var ee = this.clone().set(q, 1);
|
|
307
|
+
ee.$d[M](I), ee.init(), this.$d = ee.set(q, Math.min(this.$D, ee.daysInMonth())).$d;
|
|
308
308
|
} else M && this.$d[M](I);
|
|
309
309
|
return this.init(), this;
|
|
310
310
|
}, A.set = function(y, _) {
|
|
311
311
|
return this.clone().$set(y, _);
|
|
312
312
|
}, A.get = function(y) {
|
|
313
|
-
return this[
|
|
313
|
+
return this[L.p(y)]();
|
|
314
314
|
}, A.add = function(y, _) {
|
|
315
315
|
var w, p = this;
|
|
316
316
|
y = Number(y);
|
|
317
|
-
var T =
|
|
318
|
-
var _e =
|
|
319
|
-
return
|
|
317
|
+
var T = L.p(_), M = function(ae) {
|
|
318
|
+
var _e = ve(p);
|
|
319
|
+
return L.w(_e.date(_e.date() + Math.round(ae * y)), p);
|
|
320
320
|
};
|
|
321
321
|
if (T === u) return this.set(u, this.$M + y);
|
|
322
322
|
if (T === c) return this.set(c, this.$y + y);
|
|
323
323
|
if (T === v) return M(1);
|
|
324
324
|
if (T === h) return M(7);
|
|
325
|
-
var I = (w = {}, w[f] = l, w[S] = s, w[t] = e, w)[T] || 1,
|
|
326
|
-
return
|
|
325
|
+
var I = (w = {}, w[f] = l, w[S] = s, w[t] = e, w)[T] || 1, ee = this.$d.getTime() + y * I;
|
|
326
|
+
return L.w(ee, this);
|
|
327
327
|
}, A.subtract = function(y, _) {
|
|
328
328
|
return this.add(-1 * y, _);
|
|
329
329
|
}, A.format = function(y) {
|
|
330
330
|
var _ = this, w = this.$locale();
|
|
331
331
|
if (!this.isValid()) return w.invalidDate || U;
|
|
332
|
-
var p = y || "YYYY-MM-DDTHH:mm:ssZ", T =
|
|
332
|
+
var p = y || "YYYY-MM-DDTHH:mm:ssZ", T = L.z(this), M = this.$H, I = this.$m, ee = this.$M, ae = w.weekdays, _e = w.months, Ye = w.meridiem, oe = function(be, ie, Ge, j) {
|
|
333
333
|
return be && (be[ie] || be(_, p)) || Ge[ie].slice(0, j);
|
|
334
334
|
}, me = function(be) {
|
|
335
|
-
return
|
|
335
|
+
return L.s(M % 12 || 12, be, "0");
|
|
336
336
|
}, Fe = Ye || function(be, ie, Ge) {
|
|
337
337
|
var j = be < 12 ? "AM" : "PM";
|
|
338
338
|
return Ge ? j.toLowerCase() : j;
|
|
@@ -343,19 +343,19 @@ var Ml = { exports: {} };
|
|
|
343
343
|
case "YY":
|
|
344
344
|
return String(_.$y).slice(-2);
|
|
345
345
|
case "YYYY":
|
|
346
|
-
return
|
|
346
|
+
return L.s(_.$y, 4, "0");
|
|
347
347
|
case "M":
|
|
348
|
-
return
|
|
348
|
+
return ee + 1;
|
|
349
349
|
case "MM":
|
|
350
|
-
return
|
|
350
|
+
return L.s(ee + 1, 2, "0");
|
|
351
351
|
case "MMM":
|
|
352
|
-
return oe(w.monthsShort,
|
|
352
|
+
return oe(w.monthsShort, ee, _e, 3);
|
|
353
353
|
case "MMMM":
|
|
354
|
-
return oe(_e,
|
|
354
|
+
return oe(_e, ee);
|
|
355
355
|
case "D":
|
|
356
356
|
return _.$D;
|
|
357
357
|
case "DD":
|
|
358
|
-
return
|
|
358
|
+
return L.s(_.$D, 2, "0");
|
|
359
359
|
case "d":
|
|
360
360
|
return String(_.$W);
|
|
361
361
|
case "dd":
|
|
@@ -367,7 +367,7 @@ var Ml = { exports: {} };
|
|
|
367
367
|
case "H":
|
|
368
368
|
return String(M);
|
|
369
369
|
case "HH":
|
|
370
|
-
return
|
|
370
|
+
return L.s(M, 2, "0");
|
|
371
371
|
case "h":
|
|
372
372
|
return me(1);
|
|
373
373
|
case "hh":
|
|
@@ -379,13 +379,13 @@ var Ml = { exports: {} };
|
|
|
379
379
|
case "m":
|
|
380
380
|
return String(I);
|
|
381
381
|
case "mm":
|
|
382
|
-
return
|
|
382
|
+
return L.s(I, 2, "0");
|
|
383
383
|
case "s":
|
|
384
384
|
return String(_.$s);
|
|
385
385
|
case "ss":
|
|
386
|
-
return
|
|
386
|
+
return L.s(_.$s, 2, "0");
|
|
387
387
|
case "SSS":
|
|
388
|
-
return
|
|
388
|
+
return L.s(_.$ms, 3, "0");
|
|
389
389
|
case "Z":
|
|
390
390
|
return T;
|
|
391
391
|
}
|
|
@@ -395,8 +395,8 @@ var Ml = { exports: {} };
|
|
|
395
395
|
}, A.utcOffset = function() {
|
|
396
396
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
397
397
|
}, A.diff = function(y, _, w) {
|
|
398
|
-
var p, T = this, M =
|
|
399
|
-
return
|
|
398
|
+
var p, T = this, M = L.p(_), I = ve(y), ee = (I.utcOffset() - this.utcOffset()) * l, ae = this - I, _e = function() {
|
|
399
|
+
return L.m(T, I);
|
|
400
400
|
};
|
|
401
401
|
switch (M) {
|
|
402
402
|
case c:
|
|
@@ -409,10 +409,10 @@ var Ml = { exports: {} };
|
|
|
409
409
|
p = _e() / 3;
|
|
410
410
|
break;
|
|
411
411
|
case h:
|
|
412
|
-
p = (ae -
|
|
412
|
+
p = (ae - ee) / 6048e5;
|
|
413
413
|
break;
|
|
414
414
|
case v:
|
|
415
|
-
p = (ae -
|
|
415
|
+
p = (ae - ee) / 864e5;
|
|
416
416
|
break;
|
|
417
417
|
case S:
|
|
418
418
|
p = ae / s;
|
|
@@ -426,17 +426,17 @@ var Ml = { exports: {} };
|
|
|
426
426
|
default:
|
|
427
427
|
p = ae;
|
|
428
428
|
}
|
|
429
|
-
return w ? p :
|
|
429
|
+
return w ? p : L.a(p);
|
|
430
430
|
}, A.daysInMonth = function() {
|
|
431
431
|
return this.endOf(u).$D;
|
|
432
432
|
}, A.$locale = function() {
|
|
433
|
-
return
|
|
433
|
+
return K[this.$L];
|
|
434
434
|
}, A.locale = function(y, _) {
|
|
435
435
|
if (!y) return this.$L;
|
|
436
|
-
var w = this.clone(), p =
|
|
436
|
+
var w = this.clone(), p = Ve(y, _, !0);
|
|
437
437
|
return p && (w.$L = p), w;
|
|
438
438
|
}, A.clone = function() {
|
|
439
|
-
return
|
|
439
|
+
return L.w(this.$d, this);
|
|
440
440
|
}, A.toDate = function() {
|
|
441
441
|
return new Date(this.valueOf());
|
|
442
442
|
}, A.toJSON = function() {
|
|
@@ -446,16 +446,16 @@ var Ml = { exports: {} };
|
|
|
446
446
|
}, A.toString = function() {
|
|
447
447
|
return this.$d.toUTCString();
|
|
448
448
|
}, B;
|
|
449
|
-
}(),
|
|
450
|
-
return
|
|
451
|
-
|
|
449
|
+
}(), Me = Ce.prototype;
|
|
450
|
+
return ve.prototype = Me, [["$ms", o], ["$s", t], ["$m", f], ["$H", S], ["$W", v], ["$M", u], ["$y", c], ["$D", q]].forEach(function(B) {
|
|
451
|
+
Me[B[1]] = function(A) {
|
|
452
452
|
return this.$g(A, B[0], B[1]);
|
|
453
453
|
};
|
|
454
|
-
}),
|
|
455
|
-
return B.$i || (B(A,
|
|
456
|
-
},
|
|
457
|
-
return
|
|
458
|
-
},
|
|
454
|
+
}), ve.extend = function(B, A) {
|
|
455
|
+
return B.$i || (B(A, Ce, ve), B.$i = !0), ve;
|
|
456
|
+
}, ve.locale = Ve, ve.isDayjs = Te, ve.unix = function(B) {
|
|
457
|
+
return ve(1e3 * B);
|
|
458
|
+
}, ve.en = K[R], ve.Ls = K, ve.p = {}, ve;
|
|
459
459
|
});
|
|
460
460
|
})(Ml);
|
|
461
461
|
var sa = Ml.exports;
|
|
@@ -472,9 +472,9 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
472
472
|
}),
|
|
473
473
|
emits: ["update:modelValue"],
|
|
474
474
|
setup(n) {
|
|
475
|
-
var A, y, _, w, p, T, M, I,
|
|
475
|
+
var A, y, _, w, p, T, M, I, ee, ae, _e, Ye, oe, me, Fe, be, ie, Ge;
|
|
476
476
|
const d = n, e = re(d.item || {}), l = ot(n, "modelValue"), s = re(d.ctrlKey), o = re(d.ctrlType), t = re(d.model), f = re([]), S = re([]), v = re(!1), h = re(!1), u = re(0), r = re((y = (A = t == null ? void 0 : t.value) == null ? void 0 : A.form) != null && y["default-placeholder"] ? (w = (_ = t == null ? void 0 : t.value) == null ? void 0 : _[s == null ? void 0 : s.value]) == null ? void 0 : w.label : "");
|
|
477
|
-
!((p = o.value) != null && p.startsWith("text")) && !((T = o.value) != null && T.startsWith("link")) && !((M = o.value) != null && M.startsWith("tag")) && !((I = o.value) != null && I.startsWith("div")) && !((
|
|
477
|
+
!((p = o.value) != null && p.startsWith("text")) && !((T = o.value) != null && T.startsWith("link")) && !((M = o.value) != null && M.startsWith("tag")) && !((I = o.value) != null && I.startsWith("div")) && !((ee = o.value) != null && ee.startsWith("span")) && !((ae = o.value) != null && ae.startsWith("avatar")) && ((_e = e.value) != null && _e.style || (e.value.style = { width: ((oe = (Ye = e.value) == null ? void 0 : Ye.style) == null ? void 0 : oe.width) || "100%" }));
|
|
478
478
|
const c = re({ display: "flex", flex: 1 });
|
|
479
479
|
let q = d.t === "t" ? "center" : "flex-start";
|
|
480
480
|
((me = e.value) == null ? void 0 : me.align) == "right" ? q = "flex-end" : ((Fe = e.value) == null ? void 0 : Fe.align) == "left" ? q = "flex-start" : ((be = e.value) == null ? void 0 : be.align) == "center" && (q = "center");
|
|
@@ -505,7 +505,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
505
505
|
"daterange",
|
|
506
506
|
"monthrange",
|
|
507
507
|
"yearrange"
|
|
508
|
-
].includes(j),
|
|
508
|
+
].includes(j), le = (j) => ({
|
|
509
509
|
year: "YYYY",
|
|
510
510
|
years: "YYYY",
|
|
511
511
|
month: "YYYY-MM",
|
|
@@ -519,17 +519,17 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
519
519
|
daterange: "YYYY-MM-DD",
|
|
520
520
|
monthrange: "YYYY-MM",
|
|
521
521
|
yearrange: "YYYY"
|
|
522
|
-
})[j] || "YYYY-MM-DD",
|
|
522
|
+
})[j] || "YYYY-MM-DD", R = re({
|
|
523
523
|
filterable: !0,
|
|
524
524
|
remote: !!(e.value && e.value["remote-method"]),
|
|
525
525
|
...e.value
|
|
526
|
-
}),
|
|
526
|
+
}), K = re((j) => {
|
|
527
527
|
e.value["remote-method"](j, (E) => {
|
|
528
528
|
rt(() => {
|
|
529
529
|
S.value = E;
|
|
530
530
|
});
|
|
531
531
|
});
|
|
532
|
-
}),
|
|
532
|
+
}), fe = async (j = "options") => {
|
|
533
533
|
var E;
|
|
534
534
|
try {
|
|
535
535
|
const X = await ((E = e.value) == null ? void 0 : E.getDicts(d.formInfo));
|
|
@@ -546,12 +546,12 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
546
546
|
} catch (X) {
|
|
547
547
|
throw console.error("获取选项失败:", X), X;
|
|
548
548
|
}
|
|
549
|
-
},
|
|
549
|
+
}, Te = () => {
|
|
550
550
|
var j, E;
|
|
551
551
|
e.value.noSearch !== !0 && d.t === "q" && ((E = (j = t.value) == null ? void 0 : j.table) == null || E.load());
|
|
552
|
-
},
|
|
552
|
+
}, Ve = (j) => {
|
|
553
553
|
j.preventDefault(), j.stopPropagation(), l.value = "";
|
|
554
|
-
},
|
|
554
|
+
}, ve = (j) => {
|
|
555
555
|
var E;
|
|
556
556
|
if (e.value["file-list"] && e.value["file-list"].length > 0) {
|
|
557
557
|
const X = e.value["file-list"].findIndex(
|
|
@@ -563,7 +563,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
563
563
|
u.value = Oe >= 0 ? Oe : 0;
|
|
564
564
|
}
|
|
565
565
|
v.value = !0;
|
|
566
|
-
},
|
|
566
|
+
}, L = (j) => {
|
|
567
567
|
if (j.preventDefault(), j.stopPropagation(), e.value["file-list"] && e.value["file-list"].length > 0) {
|
|
568
568
|
const E = l.value, X = e.value["file-list"].findIndex(
|
|
569
569
|
(Oe) => {
|
|
@@ -575,7 +575,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
575
575
|
} else
|
|
576
576
|
u.value = 0;
|
|
577
577
|
v.value = !0;
|
|
578
|
-
},
|
|
578
|
+
}, Ce = re(null), Me = (j, E = 2) => {
|
|
579
579
|
if (j === "") {
|
|
580
580
|
l.value = "";
|
|
581
581
|
return;
|
|
@@ -593,9 +593,9 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
593
593
|
};
|
|
594
594
|
xt(async () => {
|
|
595
595
|
var X, Oe, Ae, Re, lt;
|
|
596
|
-
e.value && e.value["remote-method"] && (
|
|
596
|
+
e.value && e.value["remote-method"] && (R.value["remote-method"] = K), (Oe = (X = t.value[s.value]) == null ? void 0 : X.options) != null && Oe.length && (S.value = t.value[s.value].options);
|
|
597
597
|
const j = (Xe, Je = "options", Ke = t.value[s.value]) => {
|
|
598
|
-
typeof e.value.getDicts == "function" &&
|
|
598
|
+
typeof e.value.getDicts == "function" && fe(Je).catch((et) => {
|
|
599
599
|
console.error(`Failed to load ${Je} for ${Xe}:`, et);
|
|
600
600
|
});
|
|
601
601
|
};
|
|
@@ -631,15 +631,15 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
631
631
|
(et = (Ke = t.value) == null ? void 0 : Ke.table) == null || et.load();
|
|
632
632
|
});
|
|
633
633
|
}
|
|
634
|
-
o.value == "image" && (e.value.width && ((Ae =
|
|
634
|
+
o.value == "image" && (e.value.width && ((Ae = Ce.value) != null && Ae.$el) && Ce.value.$el.style.setProperty("--up-width", typeof e.value.width == "number" ? e.value.width + "px" : e.value.width), e.value.height && ((Re = Ce.value) != null && Re.$el) && Ce.value.$el.style.setProperty("--up-height", typeof e.value.height == "number" ? e.value.height + "px" : e.value.height), e.value.fontSize && ((lt = Ce.value) != null && lt.$el) && Ce.value.$el.style.setProperty("--up-font-size", typeof e.value.fontSize == "number" ? e.value.fontSize + "px" : e.value.fontSize));
|
|
635
635
|
});
|
|
636
636
|
const B = Be(() => {
|
|
637
637
|
var j;
|
|
638
638
|
return e.value["file-list"] && e.value["file-list"].length ? (j = e.value["file-list"]) == null ? void 0 : j.map((E) => E == null ? void 0 : E.url) : [l.value];
|
|
639
639
|
});
|
|
640
640
|
return (j, E) => {
|
|
641
|
-
var ut, ne, ce,
|
|
642
|
-
const X =
|
|
641
|
+
var ut, ne, ce, pe, vt, pt, it, dt, bt, Z, ct, wt, $t, Et, Zt, Jt, Kt, el, tl, ll, al, rl, nl, ol, sl, ul, il, dl;
|
|
642
|
+
const X = H("el-image-viewer"), Oe = H("el-radio"), Ae = H("el-radio-group"), Re = H("el-radio-button"), lt = H("el-checkbox"), Xe = H("el-checkbox-group"), Je = H("el-checkbox-button"), Ke = H("g-select-option"), et = H("el-option"), Ct = H("el-select"), Mt = H("el-tree-select"), a = H("el-time-picker"), i = H("el-time-select"), g = H("el-date-picker"), x = H("el-color-picker"), O = H("el-rate"), P = H("el-slider"), N = H("el-switch"), we = H("el-transfer"), Ee = H("el-cascader"), qe = H("el-icon"), je = H("el-image"), Pe = H("el-tooltip"), tt = H("el-upload"), ht = H("el-autocomplete"), St = H("el-input-number"), Tt = H("el-input-tag"), te = H("el-input"), ye = H("el-link"), ue = H("el-text"), He = H("el-avatar"), Qe = H("el-tag");
|
|
643
643
|
return m(), z(se, null, [
|
|
644
644
|
J("div", null, [
|
|
645
645
|
v.value ? (m(), D(X, {
|
|
@@ -704,7 +704,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
704
704
|
key: 3,
|
|
705
705
|
modelValue: l.value,
|
|
706
706
|
"onUpdate:modelValue": E[4] || (E[4] = (b) => l.value = b),
|
|
707
|
-
disabled: (
|
|
707
|
+
disabled: (pe = t.value[s.value]) == null ? void 0 : pe.disabled
|
|
708
708
|
}, e.value), {
|
|
709
709
|
default: $(() => [
|
|
710
710
|
C(j.$slots, `${d.t}-${s.value}`, { data: e.value }, () => [
|
|
@@ -746,7 +746,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
746
746
|
d.t == "q" && t.value.table.load();
|
|
747
747
|
}),
|
|
748
748
|
disabled: (pt = t.value[s.value]) == null ? void 0 : pt.disabled
|
|
749
|
-
},
|
|
749
|
+
}, R.value), $e({
|
|
750
750
|
default: $(() => {
|
|
751
751
|
var b;
|
|
752
752
|
return [
|
|
@@ -759,7 +759,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
759
759
|
}, [
|
|
760
760
|
de(et, Y({ ref_for: !0 }, F(We)(he, (ge) => ge != "children"), {
|
|
761
761
|
onClick: (ge) => {
|
|
762
|
-
|
|
762
|
+
R.value.change && R.value.change(he), Te();
|
|
763
763
|
}
|
|
764
764
|
}), {
|
|
765
765
|
default: $(() => {
|
|
@@ -798,7 +798,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
798
798
|
key: ge.value
|
|
799
799
|
}, { ref_for: !0 }, F(We)(ge, (at) => at != "children"), {
|
|
800
800
|
onClick: (at) => {
|
|
801
|
-
|
|
801
|
+
R.value.change && R.value.change(ge), Te();
|
|
802
802
|
}
|
|
803
803
|
}), {
|
|
804
804
|
default: $(() => {
|
|
@@ -902,7 +902,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
902
902
|
type: o.value,
|
|
903
903
|
format: o.value === F(De).DATE ? "YYYY-MM-DD" : o.value === F(De).DATETIME ? "YYYY-MM-DD HH:mm:ss" : "",
|
|
904
904
|
placeholder: r.value,
|
|
905
|
-
"value-format":
|
|
905
|
+
"value-format": le(o.value),
|
|
906
906
|
disabled: (ct = t.value[s.value]) == null ? void 0 : ct.disabled
|
|
907
907
|
}, e.value), $e({ _: 2 }, [
|
|
908
908
|
W(V(), (b) => ({
|
|
@@ -949,7 +949,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
949
949
|
C(j.$slots, `${d.t}-${s.value}-${b}`, { data: he }, void 0, !0)
|
|
950
950
|
])
|
|
951
951
|
}))
|
|
952
|
-
]), 1040, ["modelValue"])) : o.value == F(De).CASCADER ? (m(), D(
|
|
952
|
+
]), 1040, ["modelValue"])) : o.value == F(De).CASCADER ? (m(), D(Ee, Y({
|
|
953
953
|
key: 15,
|
|
954
954
|
modelValue: l.value,
|
|
955
955
|
"onUpdate:modelValue": E[17] || (E[17] = (b) => l.value = b)
|
|
@@ -966,10 +966,10 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
966
966
|
"onUpdate:fileList": E[21] || (E[21] = (b) => e.value["file-list"] = b),
|
|
967
967
|
"list-type": "picture-card",
|
|
968
968
|
class: "custom-upload",
|
|
969
|
-
"on-preview":
|
|
969
|
+
"on-preview": ve
|
|
970
970
|
}, { ...k.value, ...e.value }, {
|
|
971
971
|
ref_key: "uploadRef",
|
|
972
|
-
ref:
|
|
972
|
+
ref: Ce
|
|
973
973
|
}), $e({
|
|
974
974
|
default: $(() => {
|
|
975
975
|
var b, he;
|
|
@@ -1012,7 +1012,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1012
1012
|
de(F(Bl), {
|
|
1013
1013
|
style: { width: "1.5em", height: "1.5em", "margin-right": "12px" },
|
|
1014
1014
|
color: "white",
|
|
1015
|
-
onClick:
|
|
1015
|
+
onClick: L
|
|
1016
1016
|
})
|
|
1017
1017
|
]),
|
|
1018
1018
|
_: 1
|
|
@@ -1026,7 +1026,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1026
1026
|
de(F(Wt), {
|
|
1027
1027
|
style: { width: "1.5em", height: "1.5em" },
|
|
1028
1028
|
color: "white",
|
|
1029
|
-
onClick:
|
|
1029
|
+
onClick: Ve
|
|
1030
1030
|
})
|
|
1031
1031
|
]),
|
|
1032
1032
|
_: 1
|
|
@@ -1115,12 +1115,12 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1115
1115
|
key: 20,
|
|
1116
1116
|
style: Ue([{ position: "relative" }, c.value])
|
|
1117
1117
|
}, [
|
|
1118
|
-
de(
|
|
1118
|
+
de(te, Y({
|
|
1119
1119
|
modelValue: l.value,
|
|
1120
1120
|
"onUpdate:modelValue": E[25] || (E[25] = (b) => l.value = b),
|
|
1121
1121
|
placeholder: r.value,
|
|
1122
1122
|
type: "number",
|
|
1123
|
-
onInput: E[26] || (E[26] = (b) =>
|
|
1123
|
+
onInput: E[26] || (E[26] = (b) => Me(b, 2)),
|
|
1124
1124
|
maxlength: ((tl = e.value) == null ? void 0 : tl.max) || 25
|
|
1125
1125
|
}, { ...e.value, type: o.value }), $e({
|
|
1126
1126
|
suffix: $(() => [
|
|
@@ -1201,7 +1201,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1201
1201
|
style: Ue(c.value)
|
|
1202
1202
|
}, [
|
|
1203
1203
|
(m(), D(Ze(e.value.component), qt(ml(F(We)(e.value, (b) => b != "component"))), null, 16))
|
|
1204
|
-
], 4)) : (m(), D(
|
|
1204
|
+
], 4)) : (m(), D(te, Y({
|
|
1205
1205
|
key: 28,
|
|
1206
1206
|
modelValue: l.value,
|
|
1207
1207
|
"onUpdate:modelValue": E[27] || (E[27] = (b) => l.value = b),
|
|
@@ -1210,7 +1210,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1210
1210
|
clearable: !0,
|
|
1211
1211
|
onInput: E[28] || (E[28] = (b) => {
|
|
1212
1212
|
var he;
|
|
1213
|
-
return o.value == F(De).NUMBER ?
|
|
1213
|
+
return o.value == F(De).NUMBER ? Me(b, ((he = e.value) == null ? void 0 : he.precision) || 2) : b;
|
|
1214
1214
|
}),
|
|
1215
1215
|
onClear: E[29] || (E[29] = () => {
|
|
1216
1216
|
d.t == "q" && t.value.table.load();
|
|
@@ -1316,7 +1316,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1316
1316
|
return isNaN(u) || (u += "px"), u;
|
|
1317
1317
|
};
|
|
1318
1318
|
return (v, h) => {
|
|
1319
|
-
const u =
|
|
1319
|
+
const u = H("el-form-item");
|
|
1320
1320
|
return m(!0), z(se, null, W(o(e.more), (r, c) => C(v.$slots, `q-${c}`, {
|
|
1321
1321
|
key: c,
|
|
1322
1322
|
item: r,
|
|
@@ -1376,8 +1376,8 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1376
1376
|
emits: /* @__PURE__ */ st(["query", "reset"], ["update:modelValue", "update:info"]),
|
|
1377
1377
|
setup(n, { emit: d }) {
|
|
1378
1378
|
const e = ot(n, "modelValue"), l = d, s = jt("options"), o = re(!1), t = ot(n, "info"), f = Be(() => {
|
|
1379
|
-
var Q, G,
|
|
1380
|
-
const V = ze((Q = s == null ? void 0 : s.query) == null ? void 0 : Q.btns, (
|
|
1379
|
+
var Q, G, le;
|
|
1380
|
+
const V = ze((Q = s == null ? void 0 : s.query) == null ? void 0 : Q.btns, (le = (G = e.value) == null ? void 0 : G.query) == null ? void 0 : le.btns) || { align: "left" };
|
|
1381
1381
|
return {
|
|
1382
1382
|
justifyContent: { left: "flex-start", right: "flex-end", center: "center" }[V.align] || "flex-start"
|
|
1383
1383
|
};
|
|
@@ -1398,7 +1398,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1398
1398
|
hidden: !0,
|
|
1399
1399
|
type: "primary",
|
|
1400
1400
|
label: "更多",
|
|
1401
|
-
icon: () =>
|
|
1401
|
+
icon: () => Se(Nl),
|
|
1402
1402
|
click: () => {
|
|
1403
1403
|
o.value = !o.value;
|
|
1404
1404
|
}
|
|
@@ -1408,7 +1408,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1408
1408
|
type: "primary",
|
|
1409
1409
|
hidden: !1,
|
|
1410
1410
|
plain: !1,
|
|
1411
|
-
icon: () =>
|
|
1411
|
+
icon: () => Se(Gt),
|
|
1412
1412
|
click: () => {
|
|
1413
1413
|
l("reset", t.value);
|
|
1414
1414
|
}
|
|
@@ -1417,7 +1417,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1417
1417
|
hidden: !1,
|
|
1418
1418
|
type: "primary",
|
|
1419
1419
|
label: "查询",
|
|
1420
|
-
icon: () =>
|
|
1420
|
+
icon: () => Se(Pl),
|
|
1421
1421
|
click: () => {
|
|
1422
1422
|
l("query", t.value), o.value = !1;
|
|
1423
1423
|
}
|
|
@@ -1468,11 +1468,11 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1468
1468
|
};
|
|
1469
1469
|
e.value.queryItems = ze(h, s == null ? void 0 : s.queryItems, e.value.queryItems);
|
|
1470
1470
|
const u = (V, k) => {
|
|
1471
|
-
const Q = Object.keys(V.slots).filter((G) => G !== "default").reduce((G,
|
|
1471
|
+
const Q = Object.keys(V.slots).filter((G) => G !== "default").reduce((G, le) => (G[le] = (R) => V.slots[le]({
|
|
1472
1472
|
model: e.value
|
|
1473
1473
|
// 传递当前模型数据
|
|
1474
1474
|
}), G), {});
|
|
1475
|
-
return
|
|
1475
|
+
return Se(cl, {
|
|
1476
1476
|
modelValue: e.value,
|
|
1477
1477
|
"onUpdate:modelValue": (G) => e.value = G,
|
|
1478
1478
|
info: t.value,
|
|
@@ -1480,11 +1480,11 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1480
1480
|
more: k
|
|
1481
1481
|
}, Q);
|
|
1482
1482
|
}, r = hl(), c = () => {
|
|
1483
|
-
var Q, G,
|
|
1483
|
+
var Q, G, le, R, K, fe, Te, Ve, ve;
|
|
1484
1484
|
const V = [
|
|
1485
1485
|
{
|
|
1486
1486
|
key: "query",
|
|
1487
|
-
hidden: (
|
|
1487
|
+
hidden: (le = (G = (Q = e.value) == null ? void 0 : Q.query) == null ? void 0 : G.query) == null ? void 0 : le.hidden,
|
|
1488
1488
|
component: Ne,
|
|
1489
1489
|
props: {
|
|
1490
1490
|
...e.value.query.query,
|
|
@@ -1495,7 +1495,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1495
1495
|
},
|
|
1496
1496
|
{
|
|
1497
1497
|
key: "reset",
|
|
1498
|
-
hidden: (
|
|
1498
|
+
hidden: (fe = (K = (R = e.value) == null ? void 0 : R.query) == null ? void 0 : K.reset) == null ? void 0 : fe.hidden,
|
|
1499
1499
|
component: Ne,
|
|
1500
1500
|
props: {
|
|
1501
1501
|
...e.value.query.reset,
|
|
@@ -1506,7 +1506,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1506
1506
|
},
|
|
1507
1507
|
{
|
|
1508
1508
|
key: "more",
|
|
1509
|
-
hidden: (
|
|
1509
|
+
hidden: (ve = (Ve = (Te = e.value) == null ? void 0 : Te.query) == null ? void 0 : Ve.more) == null ? void 0 : ve.hidden,
|
|
1510
1510
|
component: e.value.query.more.mode === 3 ? Lt : Ne,
|
|
1511
1511
|
props: e.value.query.more.mode === 3 ? { ...e.value.query.more.dialog } : {
|
|
1512
1512
|
...e.value.query.more,
|
|
@@ -1514,28 +1514,28 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1514
1514
|
},
|
|
1515
1515
|
label: e.value.query.more.label,
|
|
1516
1516
|
sort: e.value.query.more.sort || 0,
|
|
1517
|
-
content: e.value.query.more.mode === 3 ? () =>
|
|
1517
|
+
content: e.value.query.more.mode === 3 ? () => Se(Dt, {
|
|
1518
1518
|
class: "query-form",
|
|
1519
|
-
...We(e.value.query, (
|
|
1519
|
+
...We(e.value.query, (L) => !["query", "more", "reset"].includes(L))
|
|
1520
1520
|
}, () => u({ slots: r }, !0)) : null
|
|
1521
1521
|
}
|
|
1522
1522
|
];
|
|
1523
|
-
return V.sort((
|
|
1524
|
-
reference: () =>
|
|
1525
|
-
default:
|
|
1526
|
-
}) : (
|
|
1523
|
+
return V.sort((L, Ce) => L.sort - Ce.sort), V.filter((L) => !L.hidden).map((L) => L.key === "more" && L.component === Lt ? Se(Lt, L.props, {
|
|
1524
|
+
reference: () => Se(Ne, e.value.query.more, () => L.label),
|
|
1525
|
+
default: L.content
|
|
1526
|
+
}) : (L.props.slot = "query-" + L.key, L.label ? Se(L.component, L.props, () => L.label) : Se(L.component, L.props)));
|
|
1527
1527
|
}, q = Be(() => ({
|
|
1528
1528
|
display: "flex",
|
|
1529
1529
|
flexDirection: e.value.query.container.mode === "row" ? "row" : "column"
|
|
1530
1530
|
})), U = () => {
|
|
1531
1531
|
};
|
|
1532
1532
|
return (V, k) => {
|
|
1533
|
-
var
|
|
1534
|
-
const Q =
|
|
1533
|
+
var le, R, K, fe, Te, Ve, ve, L, Ce, Me, B, A, y, _, w, p, T;
|
|
1534
|
+
const Q = H("el-form-item"), G = H("el-drawer");
|
|
1535
1535
|
return m(), z(se, null, [
|
|
1536
1536
|
J("div", {
|
|
1537
1537
|
class: "g-query-container",
|
|
1538
|
-
style: Ue({ ...q.value, ...((
|
|
1538
|
+
style: Ue({ ...q.value, ...((R = (le = e.value.query) == null ? void 0 : le.container) == null ? void 0 : R.style) || {} }),
|
|
1539
1539
|
onDblclick: U
|
|
1540
1540
|
}, [
|
|
1541
1541
|
de(F(Dt), Y({
|
|
@@ -1548,10 +1548,10 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1548
1548
|
(m(), D(Ze(u({ slots: V.$slots }, void 0)))),
|
|
1549
1549
|
((I = (M = e.value.query) == null ? void 0 : M.container) == null ? void 0 : I.inline) === !0 ? (m(), D(Q, { key: 0 }, {
|
|
1550
1550
|
default: $(() => {
|
|
1551
|
-
var
|
|
1551
|
+
var ee, ae, _e, Ye, oe;
|
|
1552
1552
|
return [
|
|
1553
1553
|
J("div", {
|
|
1554
|
-
style: Ue((ae = (
|
|
1554
|
+
style: Ue((ae = (ee = e.value.query) == null ? void 0 : ee.btns) == null ? void 0 : ae.style)
|
|
1555
1555
|
}, [
|
|
1556
1556
|
e.value.query.group ? (m(), D(F(It), { key: 0 }, {
|
|
1557
1557
|
default: $(() => [
|
|
@@ -1583,9 +1583,9 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1583
1583
|
}),
|
|
1584
1584
|
_: 3
|
|
1585
1585
|
}, 16),
|
|
1586
|
-
((
|
|
1586
|
+
((Te = (fe = (K = e.value) == null ? void 0 : K.query) == null ? void 0 : fe.container) == null ? void 0 : Te.inline) === !1 ? (m(), z("div", {
|
|
1587
1587
|
key: 0,
|
|
1588
|
-
style: Ue([{ "margin-bottom": "18px" }, (
|
|
1588
|
+
style: Ue([{ "margin-bottom": "18px" }, (ve = (Ve = e.value.query) == null ? void 0 : Ve.btns) == null ? void 0 : ve.style])
|
|
1589
1589
|
}, [
|
|
1590
1590
|
e.value.query.group ? (m(), D(F(It), { key: 0 }, {
|
|
1591
1591
|
default: $(() => [
|
|
@@ -1596,7 +1596,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1596
1596
|
]),
|
|
1597
1597
|
_: 3
|
|
1598
1598
|
})) : (m(), z(se, { key: 1 }, [
|
|
1599
|
-
(
|
|
1599
|
+
(Ce = (L = e.value.query) == null ? void 0 : L.btns) != null && Ce.group ? (m(), D(F(It), { key: 0 }, {
|
|
1600
1600
|
default: $(() => [
|
|
1601
1601
|
(m(!0), z(se, null, W(c(), (M) => C(V.$slots, M.props.slot, {}, () => [
|
|
1602
1602
|
(m(), D(Ze(M)))
|
|
@@ -1610,7 +1610,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1610
1610
|
], 64))
|
|
1611
1611
|
], 4)) : ke("", !0)
|
|
1612
1612
|
], 36),
|
|
1613
|
-
o.value && !((A = (B = (
|
|
1613
|
+
o.value && !((A = (B = (Me = e.value) == null ? void 0 : Me.query) == null ? void 0 : B.more) != null && A.hidden) && e.value.query.more.mode == 2 ? (m(), D(G, Y({
|
|
1614
1614
|
key: 0,
|
|
1615
1615
|
modelValue: o.value,
|
|
1616
1616
|
"onUpdate:modelValue": k[6] || (k[6] = (M) => o.value = M),
|
|
@@ -1630,7 +1630,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1630
1630
|
"onUpdate:info": k[2] || (k[2] = (M) => t.value = M),
|
|
1631
1631
|
more: !0
|
|
1632
1632
|
}, $e({ _: 2 }, [
|
|
1633
|
-
W(V.$slots, (M, I,
|
|
1633
|
+
W(V.$slots, (M, I, ee) => ({
|
|
1634
1634
|
name: I,
|
|
1635
1635
|
fn: $((ae) => [
|
|
1636
1636
|
C(V.$slots, I, { model: e.value }, void 0, !0)
|
|
@@ -1674,9 +1674,9 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1674
1674
|
style: { padding: "10px" }
|
|
1675
1675
|
}, {
|
|
1676
1676
|
default: $(() => {
|
|
1677
|
-
var M, I,
|
|
1677
|
+
var M, I, ee;
|
|
1678
1678
|
return [
|
|
1679
|
-
o.value && !((
|
|
1679
|
+
o.value && !((ee = (I = (M = e.value) == null ? void 0 : M.query) == null ? void 0 : I.more) != null && ee.hidden) && e.value.query.more.mode == 1 ? (m(), z("div", wa, [
|
|
1680
1680
|
J("div", $a, [
|
|
1681
1681
|
e.value.query.more.mode == 1 ? Fl((m(), D(F(Dt), Y({
|
|
1682
1682
|
key: 0,
|
|
@@ -1730,7 +1730,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1730
1730
|
label: "提交",
|
|
1731
1731
|
plain: !0,
|
|
1732
1732
|
hidden: !1,
|
|
1733
|
-
icon: () =>
|
|
1733
|
+
icon: () => Se(Rt)
|
|
1734
1734
|
},
|
|
1735
1735
|
//保存并提交按钮属性
|
|
1736
1736
|
saveSubmit: {
|
|
@@ -1739,7 +1739,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1739
1739
|
label: "保存提交",
|
|
1740
1740
|
plain: !0,
|
|
1741
1741
|
hidden: !0,
|
|
1742
|
-
icon: () =>
|
|
1742
|
+
icon: () => Se(Gl)
|
|
1743
1743
|
},
|
|
1744
1744
|
//表单重置按钮属性
|
|
1745
1745
|
reset: {
|
|
@@ -1747,14 +1747,14 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1747
1747
|
label: "重置",
|
|
1748
1748
|
hidden: !0,
|
|
1749
1749
|
plain: !0,
|
|
1750
|
-
icon: () =>
|
|
1750
|
+
icon: () => Se(Gt)
|
|
1751
1751
|
},
|
|
1752
1752
|
cancel: {
|
|
1753
1753
|
disabled: !1,
|
|
1754
1754
|
label: "取消",
|
|
1755
1755
|
hidden: !0,
|
|
1756
1756
|
plain: !0,
|
|
1757
|
-
icon: () =>
|
|
1757
|
+
icon: () => Se(Wl)
|
|
1758
1758
|
},
|
|
1759
1759
|
slots: {},
|
|
1760
1760
|
tabs: {
|
|
@@ -1774,15 +1774,15 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1774
1774
|
}),
|
|
1775
1775
|
emits: /* @__PURE__ */ st(["submit", "reset"], ["update:modelValue"]),
|
|
1776
1776
|
setup(n, { expose: d, emit: e }) {
|
|
1777
|
-
var
|
|
1777
|
+
var Ve, ve, L, Ce, Me, B, A;
|
|
1778
1778
|
const l = ot(n, "modelValue"), s = e, o = re(null), t = jt("options"), f = re({}), S = re(""), v = n;
|
|
1779
1779
|
l.value.form = ze(
|
|
1780
1780
|
Sl,
|
|
1781
1781
|
t == null ? void 0 : t.form,
|
|
1782
|
-
(
|
|
1782
|
+
(Ve = l.value) == null ? void 0 : Ve.form
|
|
1783
1783
|
), l.value.form.style = ze(
|
|
1784
|
-
(
|
|
1785
|
-
{ ...(
|
|
1784
|
+
(L = (ve = l.value) == null ? void 0 : ve.form) == null ? void 0 : L.style,
|
|
1785
|
+
{ ...(Ce = zt()) == null ? void 0 : Ce.style }
|
|
1786
1786
|
);
|
|
1787
1787
|
const h = async (y, _, w) => {
|
|
1788
1788
|
let p = 5;
|
|
@@ -1822,7 +1822,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1822
1822
|
l.value.formItems = ze(
|
|
1823
1823
|
r,
|
|
1824
1824
|
t == null ? void 0 : t.formItems,
|
|
1825
|
-
(
|
|
1825
|
+
(Me = l == null ? void 0 : l.value) == null ? void 0 : Me.formItems
|
|
1826
1826
|
);
|
|
1827
1827
|
const c = {
|
|
1828
1828
|
span: 12,
|
|
@@ -1874,16 +1874,16 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1874
1874
|
}), p.min !== void 0 && p.min !== null && p.min !== "" && p.max !== void 0 && p.max !== null && p.max !== "" && _.push({
|
|
1875
1875
|
validator: (T, M, I) => {
|
|
1876
1876
|
if (M == null || M === "") return I();
|
|
1877
|
-
const
|
|
1877
|
+
const ee = Number(p.min), ae = Number(p.max);
|
|
1878
1878
|
p.type !== "number" && p.type !== "input-number" ? Number(p.min) < 1 ? I(
|
|
1879
1879
|
new Error(
|
|
1880
1880
|
`${p.label}长度最小值${p.min}设置错误!`
|
|
1881
1881
|
)
|
|
1882
|
-
) : M.toString().length <
|
|
1882
|
+
) : M.toString().length < ee || M.toString().length > ae ? I(
|
|
1883
1883
|
new Error(
|
|
1884
|
-
`${p.label}长度必须在${
|
|
1884
|
+
`${p.label}长度必须在${ee}-${ae}个字符之间!`
|
|
1885
1885
|
)
|
|
1886
|
-
) : I() : Number(M) <
|
|
1886
|
+
) : I() : Number(M) < ee || M > ae ? I(new Error(`${p.label}必须在${ee}-${ae}之间!`)) : I();
|
|
1887
1887
|
}
|
|
1888
1888
|
}), p.type == "email" && _.push({ type: "email", message: "不是一个正确的邮箱地址!" }), p.type == "url" && _.push({ type: "url", message: "不是一个合正确的URL!" }), p.pattern && _.push({
|
|
1889
1889
|
pattern: p == null ? void 0 : p.pattern,
|
|
@@ -1894,13 +1894,13 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1894
1894
|
}
|
|
1895
1895
|
return _;
|
|
1896
1896
|
}, U = (y, _ = !1) => {
|
|
1897
|
-
var T, M, I,
|
|
1897
|
+
var T, M, I, ee, ae;
|
|
1898
1898
|
const w = _ ? y : y == null ? void 0 : y.item, p = typeof (w == null ? void 0 : w.editor) == "function" ? w.editor(f.value, (T = l.value.form) == null ? void 0 : T.modalState) : (w == null ? void 0 : w.editor) || {};
|
|
1899
1899
|
if (((M = l.value.form) == null ? void 0 : M.modalState) === "edit") {
|
|
1900
1900
|
const _e = typeof (w == null ? void 0 : w.editor) == "object" ? (I = w.editor) == null ? void 0 : I.ep : typeof (w == null ? void 0 : w.editor) == "function" ? p == null ? void 0 : p.ep : {};
|
|
1901
1901
|
return { ...p, ..._e };
|
|
1902
1902
|
}
|
|
1903
|
-
if (((
|
|
1903
|
+
if (((ee = l.value.form) == null ? void 0 : ee.modalState) === "add") {
|
|
1904
1904
|
const _e = typeof (w == null ? void 0 : w.editor) == "object" ? (ae = w.editor) == null ? void 0 : ae.ap : typeof (w == null ? void 0 : w.editor) == "function" ? p == null ? void 0 : p.ap : {};
|
|
1905
1905
|
return { ...p, ..._e };
|
|
1906
1906
|
}
|
|
@@ -1911,7 +1911,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1911
1911
|
return ((p = l.value.form) == null ? void 0 : p.modalState) === "edit" ? ((T = _ == null ? void 0 : _.ep) == null ? void 0 : T.type) ?? (_ == null ? void 0 : _.type) ?? y.type : ((M = l.value.form) == null ? void 0 : M.modalState) === "add" ? ((I = _ == null ? void 0 : _.ap) == null ? void 0 : I.type) ?? (_ == null ? void 0 : _.type) ?? y.type : (_ == null ? void 0 : _.type) ?? y.type;
|
|
1912
1912
|
}, k = (y) => y === "left" ? "flex-start" : y === "right" ? "flex-end" : y === "center" ? "center" : "flex-end";
|
|
1913
1913
|
xt(() => {
|
|
1914
|
-
Q(), v != null && v.editForm ? f.value = v.editForm : f.value =
|
|
1914
|
+
Q(), v != null && v.editForm ? f.value = v.editForm : f.value = le.value;
|
|
1915
1915
|
}), zl(() => {
|
|
1916
1916
|
o.value = null;
|
|
1917
1917
|
});
|
|
@@ -1936,13 +1936,13 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1936
1936
|
return _.sort((w, p) => {
|
|
1937
1937
|
const T = (M) => {
|
|
1938
1938
|
var _e, Ye;
|
|
1939
|
-
const [, I] = M,
|
|
1939
|
+
const [, I] = M, ee = typeof I.editor == "function" ? I.editor(f.value, y) : I.editor;
|
|
1940
1940
|
let ae;
|
|
1941
|
-
return y === "edit" ? ae = (_e =
|
|
1941
|
+
return y === "edit" ? ae = (_e = ee == null ? void 0 : ee.ep) == null ? void 0 : _e.sort : y === "add" && (ae = (Ye = ee == null ? void 0 : ee.ap) == null ? void 0 : Ye.sort), ae == null && (ae = ee == null ? void 0 : ee.sort), ae == null && (ae = I.sort), ae == null ? 0 : Number(ae);
|
|
1942
1942
|
};
|
|
1943
1943
|
return T(w) - T(p);
|
|
1944
1944
|
}), Object.fromEntries(_);
|
|
1945
|
-
}),
|
|
1945
|
+
}), le = Be(() => {
|
|
1946
1946
|
var w;
|
|
1947
1947
|
const y = (w = l.value.form) == null ? void 0 : w.modalState, _ = (p) => {
|
|
1948
1948
|
var I;
|
|
@@ -1952,7 +1952,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1952
1952
|
return Object.fromEntries(
|
|
1953
1953
|
Object.entries(l.value).filter(([, p]) => p.type !== "hidden" && p.type !== "control").map(([p, T]) => [p, _(T)])
|
|
1954
1954
|
);
|
|
1955
|
-
}),
|
|
1955
|
+
}), R = Be(() => {
|
|
1956
1956
|
const y = /* @__PURE__ */ new Map();
|
|
1957
1957
|
return Object.entries(G.value).forEach(([_, w]) => {
|
|
1958
1958
|
if (w.groupName) {
|
|
@@ -1967,7 +1967,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1967
1967
|
..._.items.map(({ item: w }) => w.tabPane || {})
|
|
1968
1968
|
);
|
|
1969
1969
|
}), Array.from(y.values());
|
|
1970
|
-
}),
|
|
1970
|
+
}), K = re(((A = l.value.form.tabs) == null ? void 0 : A.activeTab) || (R.value.length > 0 ? R.value[0].groupName : null)), fe = re([
|
|
1971
1971
|
{
|
|
1972
1972
|
name: "f-submit",
|
|
1973
1973
|
label: l.value.form.submit.label,
|
|
@@ -2009,7 +2009,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
2009
2009
|
sort: l.value.form.cancel.sort ?? 2,
|
|
2010
2010
|
originalOrder: 1
|
|
2011
2011
|
}
|
|
2012
|
-
]),
|
|
2012
|
+
]), Te = Be(() => fe.value.filter((y) => !y.hidden).sort((y, _) => y.sort - _.sort || y.originalOrder - _.originalOrder));
|
|
2013
2013
|
return d({
|
|
2014
2014
|
submit: h,
|
|
2015
2015
|
saveSubmit: h,
|
|
@@ -2017,7 +2017,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
2017
2017
|
formData: f
|
|
2018
2018
|
}), (y, _) => {
|
|
2019
2019
|
var ae, _e, Ye;
|
|
2020
|
-
const w =
|
|
2020
|
+
const w = H("el-form-item"), p = H("el-col"), T = H("el-tab-pane"), M = H("el-tabs"), I = H("el-form"), ee = H("el-button");
|
|
2021
2021
|
return m(), z("div", xa, [
|
|
2022
2022
|
de(I, Y(
|
|
2023
2023
|
{
|
|
@@ -2037,16 +2037,16 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
2037
2037
|
)
|
|
2038
2038
|
), {
|
|
2039
2039
|
default: $(() => [
|
|
2040
|
-
|
|
2040
|
+
R.value.length > 0 ? C(y.$slots, "default", { key: 0 }, () => {
|
|
2041
2041
|
var oe, me, Fe;
|
|
2042
2042
|
return [
|
|
2043
2043
|
de(M, Y({
|
|
2044
|
-
modelValue:
|
|
2045
|
-
"onUpdate:modelValue": _[0] || (_[0] = (be) =>
|
|
2044
|
+
modelValue: K.value,
|
|
2045
|
+
"onUpdate:modelValue": _[0] || (_[0] = (be) => K.value = be),
|
|
2046
2046
|
style: [{ width: "100%" }, { height: (Fe = (me = (oe = l.value) == null ? void 0 : oe.form) == null ? void 0 : me.tabs) == null ? void 0 : Fe.height }]
|
|
2047
2047
|
}, l.value.form.tabs), {
|
|
2048
2048
|
default: $(() => [
|
|
2049
|
-
(m(!0), z(se, null, W(
|
|
2049
|
+
(m(!0), z(se, null, W(R.value, (be) => (m(), D(T, Y({
|
|
2050
2050
|
key: be.groupName,
|
|
2051
2051
|
label: be.groupName,
|
|
2052
2052
|
name: be.groupName,
|
|
@@ -2179,12 +2179,12 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
2179
2179
|
style: Ue({ justifyContent: k(l.value.form.footer.align), ...l.value.form.footer.style })
|
|
2180
2180
|
}, [
|
|
2181
2181
|
C(y.$slots, "f-footer-left", {}, void 0, !0),
|
|
2182
|
-
(m(!0), z(se, null, W(
|
|
2182
|
+
(m(!0), z(se, null, W(Te.value, (oe) => (m(), z(se, null, [
|
|
2183
2183
|
C(y.$slots, oe.name + "-left", {}, void 0, !0),
|
|
2184
2184
|
C(y.$slots, oe.name, {}, () => {
|
|
2185
2185
|
var me;
|
|
2186
2186
|
return [
|
|
2187
|
-
(me = oe == null ? void 0 : oe.info) != null && me.hidden ? ke("", !0) : (m(), D(
|
|
2187
|
+
(me = oe == null ? void 0 : oe.info) != null && me.hidden ? ke("", !0) : (m(), D(ee, Y({
|
|
2188
2188
|
key: 0,
|
|
2189
2189
|
ref_for: !0
|
|
2190
2190
|
}, oe.info, {
|
|
@@ -2254,18 +2254,18 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
2254
2254
|
],
|
|
2255
2255
|
setup(n, { expose: d, emit: e }) {
|
|
2256
2256
|
const l = n, s = zt(), o = e, t = re(l.fullscreen), f = Be(() => l.type === "drawer" ? "el-drawer" : "el-dialog"), S = Be(() => {
|
|
2257
|
-
const
|
|
2257
|
+
const le = {
|
|
2258
2258
|
modal: l.modal,
|
|
2259
2259
|
closeOnClickModal: l.type !== "dialog",
|
|
2260
2260
|
...s
|
|
2261
2261
|
};
|
|
2262
2262
|
return l.type === "dialog" ? {
|
|
2263
|
-
...
|
|
2263
|
+
...le,
|
|
2264
2264
|
width: l.width,
|
|
2265
2265
|
top: l.top,
|
|
2266
2266
|
fullscreen: l.fullscreen
|
|
2267
2267
|
} : {
|
|
2268
|
-
...
|
|
2268
|
+
...le,
|
|
2269
2269
|
direction: l.direction,
|
|
2270
2270
|
size: u.value ? "100%" : l.size
|
|
2271
2271
|
};
|
|
@@ -2273,8 +2273,8 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
2273
2273
|
get() {
|
|
2274
2274
|
return l.modelValue;
|
|
2275
2275
|
},
|
|
2276
|
-
set(
|
|
2277
|
-
o("update:modelValue",
|
|
2276
|
+
set(le) {
|
|
2277
|
+
o("update:modelValue", le);
|
|
2278
2278
|
}
|
|
2279
2279
|
}), h = re(null), u = re(t.value), r = re(!1);
|
|
2280
2280
|
function c() {
|
|
@@ -2300,7 +2300,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
2300
2300
|
}
|
|
2301
2301
|
return d({
|
|
2302
2302
|
handleClose: () => h.value.handleClose()
|
|
2303
|
-
}), (
|
|
2303
|
+
}), (le, R) => (m(), z("div", Ma, [
|
|
2304
2304
|
r.value ? (m(), z("div", {
|
|
2305
2305
|
key: 0,
|
|
2306
2306
|
class: "minimize-ball",
|
|
@@ -2310,7 +2310,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
2310
2310
|
ref_key: "dialogExtend",
|
|
2311
2311
|
ref: h,
|
|
2312
2312
|
modelValue: v.value,
|
|
2313
|
-
"onUpdate:modelValue":
|
|
2313
|
+
"onUpdate:modelValue": R[1] || (R[1] = (K) => v.value = K),
|
|
2314
2314
|
onOpen: c,
|
|
2315
2315
|
onOpened: q,
|
|
2316
2316
|
"lock-scroll": !0,
|
|
@@ -2321,16 +2321,16 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
2321
2321
|
fullscreen: t.value,
|
|
2322
2322
|
"show-close": !1
|
|
2323
2323
|
}), $e({
|
|
2324
|
-
header: $(({ titleClass:
|
|
2325
|
-
C(
|
|
2326
|
-
titleClass:
|
|
2327
|
-
closeIconClass:
|
|
2324
|
+
header: $(({ titleClass: K, closeIconClass: fe }) => [
|
|
2325
|
+
C(le.$slots, "header", {
|
|
2326
|
+
titleClass: K,
|
|
2327
|
+
closeIconClass: fe
|
|
2328
2328
|
}, () => [
|
|
2329
2329
|
J("div", {
|
|
2330
2330
|
class: "custom-header",
|
|
2331
2331
|
style: Ue(l.headerStyle)
|
|
2332
2332
|
}, [
|
|
2333
|
-
C(
|
|
2333
|
+
C(le.$slots, "title", {}, () => [
|
|
2334
2334
|
J("span", Ta, Ie(n.title), 1)
|
|
2335
2335
|
], !0),
|
|
2336
2336
|
J("div", null, [
|
|
@@ -2357,7 +2357,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
2357
2357
|
l.showClose ? (m(), D(F(Ht), {
|
|
2358
2358
|
key: 2,
|
|
2359
2359
|
class: "btn-icon",
|
|
2360
|
-
onClick:
|
|
2360
|
+
onClick: R[0] || (R[0] = yt((Te) => h.value.handleClose(), ["stop"]))
|
|
2361
2361
|
}, {
|
|
2362
2362
|
default: $(() => [
|
|
2363
2363
|
(m(), D(Ze(n.closeIcon)))
|
|
@@ -2369,21 +2369,21 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
2369
2369
|
], !0)
|
|
2370
2370
|
]),
|
|
2371
2371
|
default: $(() => [
|
|
2372
|
-
C(
|
|
2372
|
+
C(le.$slots, "default", {}, void 0, !0)
|
|
2373
2373
|
]),
|
|
2374
2374
|
_: 2
|
|
2375
2375
|
}, [
|
|
2376
|
-
|
|
2376
|
+
le.$slots.footer ? {
|
|
2377
2377
|
name: "footer",
|
|
2378
2378
|
fn: $(() => [
|
|
2379
|
-
C(
|
|
2379
|
+
C(le.$slots, "footer", {}, void 0, !0)
|
|
2380
2380
|
]),
|
|
2381
2381
|
key: "0"
|
|
2382
2382
|
} : void 0,
|
|
2383
2383
|
l.type === "drawer" ? {
|
|
2384
2384
|
name: "trigger",
|
|
2385
2385
|
fn: $(() => [
|
|
2386
|
-
C(
|
|
2386
|
+
C(le.$slots, "trigger", {}, void 0, !0)
|
|
2387
2387
|
]),
|
|
2388
2388
|
key: "1"
|
|
2389
2389
|
} : void 0
|
|
@@ -2435,7 +2435,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
2435
2435
|
v && v.destroy();
|
|
2436
2436
|
});
|
|
2437
2437
|
}), (S, v) => {
|
|
2438
|
-
const h =
|
|
2438
|
+
const h = H("el-divider"), u = H("el-icon"), r = H("el-text"), c = H("el-checkbox"), q = H("el-button");
|
|
2439
2439
|
return m(), z("div", Va, [
|
|
2440
2440
|
J("div", null, [
|
|
2441
2441
|
J("div", Da, [
|
|
@@ -2703,7 +2703,7 @@ const Ga = { style: { padding: "15px", "box-sizing": "border-box" } }, Xa = { st
|
|
|
2703
2703
|
width: r == null ? void 0 : r.width
|
|
2704
2704
|
})).sort((u, r) => u.sort - r.sort), f();
|
|
2705
2705
|
}), (u, r) => {
|
|
2706
|
-
const c =
|
|
2706
|
+
const c = H("el-divider"), q = H("el-icon"), U = H("el-text"), V = H("el-checkbox");
|
|
2707
2707
|
return m(), z("div", Ga, [
|
|
2708
2708
|
J("div", Xa, [
|
|
2709
2709
|
J("div", Qa, [
|
|
@@ -2854,7 +2854,7 @@ const Ga = { style: { padding: "15px", "box-sizing": "border-box" } }, Xa = { st
|
|
|
2854
2854
|
})), ...d.row }));
|
|
2855
2855
|
return (r, c) => {
|
|
2856
2856
|
var V;
|
|
2857
|
-
const q =
|
|
2857
|
+
const q = H("el-descriptions-item"), U = H("el-descriptions");
|
|
2858
2858
|
return m(), z("div", {
|
|
2859
2859
|
class: "g-detail-container",
|
|
2860
2860
|
style: Ue(((V = s.value) == null ? void 0 : V.style) || {})
|
|
@@ -2862,17 +2862,17 @@ const Ga = { style: { padding: "15px", "box-sizing": "border-box" } }, Xa = { st
|
|
|
2862
2862
|
de(U, Y({ border: "" }, F(We)(s.value, (k) => !["container"].includes(k))), $e({
|
|
2863
2863
|
default: $(() => [
|
|
2864
2864
|
(m(!0), z(se, null, W(v.value, ([k, Q]) => {
|
|
2865
|
-
var G,
|
|
2865
|
+
var G, le;
|
|
2866
2866
|
return m(), D(q, Y({
|
|
2867
2867
|
label: (G = d.m[k]) == null ? void 0 : G.label
|
|
2868
|
-
}, { ref_for: !0 }, { ...t.value, ...((
|
|
2868
|
+
}, { ref_for: !0 }, { ...t.value, ...((le = f(k)) == null ? void 0 : le.item) || {} }, { key: k }), {
|
|
2869
2869
|
label: $(() => [
|
|
2870
2870
|
C(r.$slots, `view-${k}-label`, {
|
|
2871
2871
|
row: d.row
|
|
2872
2872
|
}, () => {
|
|
2873
|
-
var
|
|
2873
|
+
var R;
|
|
2874
2874
|
return [
|
|
2875
|
-
Le(Ie((
|
|
2875
|
+
Le(Ie((R = d.m[k]) == null ? void 0 : R.label), 1)
|
|
2876
2876
|
];
|
|
2877
2877
|
}, !0)
|
|
2878
2878
|
]),
|
|
@@ -2882,7 +2882,7 @@ const Ga = { style: { padding: "15px", "box-sizing": "border-box" } }, Xa = { st
|
|
|
2882
2882
|
}, () => [
|
|
2883
2883
|
de(_t, {
|
|
2884
2884
|
modelValue: u.value[k],
|
|
2885
|
-
"onUpdate:modelValue": (
|
|
2885
|
+
"onUpdate:modelValue": (R) => u.value[k] = R,
|
|
2886
2886
|
item: f(k),
|
|
2887
2887
|
ctrlKey: k,
|
|
2888
2888
|
ctrlType: S(k),
|
|
@@ -2900,8 +2900,8 @@ const Ga = { style: { padding: "15px", "box-sizing": "border-box" } }, Xa = { st
|
|
|
2900
2900
|
}, [
|
|
2901
2901
|
W(r.$slots, (k, Q, G) => ({
|
|
2902
2902
|
name: Q,
|
|
2903
|
-
fn: $((
|
|
2904
|
-
C(r.$slots, Q, { model:
|
|
2903
|
+
fn: $((le) => [
|
|
2904
|
+
C(r.$slots, Q, { model: le }, void 0, !0)
|
|
2905
2905
|
])
|
|
2906
2906
|
}))
|
|
2907
2907
|
]), 1040)
|
|
@@ -3025,8 +3025,8 @@ function ur(n) {
|
|
|
3025
3025
|
f[c] = (f[c] << 8 | f[c] >>> 24) & 16711935 | (f[c] << 24 | f[c] >>> 8) & 4278255360;
|
|
3026
3026
|
f[S >>> 5] |= 128 << S % 32, f[(S + 64 >>> 9 << 4) + 14] = S;
|
|
3027
3027
|
for (var q = s._ff, U = s._gg, V = s._hh, k = s._ii, c = 0; c < f.length; c += 16) {
|
|
3028
|
-
var Q = v, G = h,
|
|
3029
|
-
v = q(v, h, u, r, f[c + 0], 7, -680876936), r = q(r, v, h, u, f[c + 1], 12, -389564586), u = q(u, r, v, h, f[c + 2], 17, 606105819), h = q(h, u, r, v, f[c + 3], 22, -1044525330), v = q(v, h, u, r, f[c + 4], 7, -176418897), r = q(r, v, h, u, f[c + 5], 12, 1200080426), u = q(u, r, v, h, f[c + 6], 17, -1473231341), h = q(h, u, r, v, f[c + 7], 22, -45705983), v = q(v, h, u, r, f[c + 8], 7, 1770035416), r = q(r, v, h, u, f[c + 9], 12, -1958414417), u = q(u, r, v, h, f[c + 10], 17, -42063), h = q(h, u, r, v, f[c + 11], 22, -1990404162), v = q(v, h, u, r, f[c + 12], 7, 1804603682), r = q(r, v, h, u, f[c + 13], 12, -40341101), u = q(u, r, v, h, f[c + 14], 17, -1502002290), h = q(h, u, r, v, f[c + 15], 22, 1236535329), v = U(v, h, u, r, f[c + 1], 5, -165796510), r = U(r, v, h, u, f[c + 6], 9, -1069501632), u = U(u, r, v, h, f[c + 11], 14, 643717713), h = U(h, u, r, v, f[c + 0], 20, -373897302), v = U(v, h, u, r, f[c + 5], 5, -701558691), r = U(r, v, h, u, f[c + 10], 9, 38016083), u = U(u, r, v, h, f[c + 15], 14, -660478335), h = U(h, u, r, v, f[c + 4], 20, -405537848), v = U(v, h, u, r, f[c + 9], 5, 568446438), r = U(r, v, h, u, f[c + 14], 9, -1019803690), u = U(u, r, v, h, f[c + 3], 14, -187363961), h = U(h, u, r, v, f[c + 8], 20, 1163531501), v = U(v, h, u, r, f[c + 13], 5, -1444681467), r = U(r, v, h, u, f[c + 2], 9, -51403784), u = U(u, r, v, h, f[c + 7], 14, 1735328473), h = U(h, u, r, v, f[c + 12], 20, -1926607734), v = V(v, h, u, r, f[c + 5], 4, -378558), r = V(r, v, h, u, f[c + 8], 11, -2022574463), u = V(u, r, v, h, f[c + 11], 16, 1839030562), h = V(h, u, r, v, f[c + 14], 23, -35309556), v = V(v, h, u, r, f[c + 1], 4, -1530992060), r = V(r, v, h, u, f[c + 4], 11, 1272893353), u = V(u, r, v, h, f[c + 7], 16, -155497632), h = V(h, u, r, v, f[c + 10], 23, -1094730640), v = V(v, h, u, r, f[c + 13], 4, 681279174), r = V(r, v, h, u, f[c + 0], 11, -358537222), u = V(u, r, v, h, f[c + 3], 16, -722521979), h = V(h, u, r, v, f[c + 6], 23, 76029189), v = V(v, h, u, r, f[c + 9], 4, -640364487), r = V(r, v, h, u, f[c + 12], 11, -421815835), u = V(u, r, v, h, f[c + 15], 16, 530742520), h = V(h, u, r, v, f[c + 2], 23, -995338651), v = k(v, h, u, r, f[c + 0], 6, -198630844), r = k(r, v, h, u, f[c + 7], 10, 1126891415), u = k(u, r, v, h, f[c + 14], 15, -1416354905), h = k(h, u, r, v, f[c + 5], 21, -57434055), v = k(v, h, u, r, f[c + 12], 6, 1700485571), r = k(r, v, h, u, f[c + 3], 10, -1894986606), u = k(u, r, v, h, f[c + 10], 15, -1051523), h = k(h, u, r, v, f[c + 1], 21, -2054922799), v = k(v, h, u, r, f[c + 8], 6, 1873313359), r = k(r, v, h, u, f[c + 15], 10, -30611744), u = k(u, r, v, h, f[c + 6], 15, -1560198380), h = k(h, u, r, v, f[c + 13], 21, 1309151649), v = k(v, h, u, r, f[c + 4], 6, -145523070), r = k(r, v, h, u, f[c + 11], 10, -1120210379), u = k(u, r, v, h, f[c + 2], 15, 718787259), h = k(h, u, r, v, f[c + 9], 21, -343485551), v = v + Q >>> 0, h = h + G >>> 0, u = u +
|
|
3028
|
+
var Q = v, G = h, le = u, R = r;
|
|
3029
|
+
v = q(v, h, u, r, f[c + 0], 7, -680876936), r = q(r, v, h, u, f[c + 1], 12, -389564586), u = q(u, r, v, h, f[c + 2], 17, 606105819), h = q(h, u, r, v, f[c + 3], 22, -1044525330), v = q(v, h, u, r, f[c + 4], 7, -176418897), r = q(r, v, h, u, f[c + 5], 12, 1200080426), u = q(u, r, v, h, f[c + 6], 17, -1473231341), h = q(h, u, r, v, f[c + 7], 22, -45705983), v = q(v, h, u, r, f[c + 8], 7, 1770035416), r = q(r, v, h, u, f[c + 9], 12, -1958414417), u = q(u, r, v, h, f[c + 10], 17, -42063), h = q(h, u, r, v, f[c + 11], 22, -1990404162), v = q(v, h, u, r, f[c + 12], 7, 1804603682), r = q(r, v, h, u, f[c + 13], 12, -40341101), u = q(u, r, v, h, f[c + 14], 17, -1502002290), h = q(h, u, r, v, f[c + 15], 22, 1236535329), v = U(v, h, u, r, f[c + 1], 5, -165796510), r = U(r, v, h, u, f[c + 6], 9, -1069501632), u = U(u, r, v, h, f[c + 11], 14, 643717713), h = U(h, u, r, v, f[c + 0], 20, -373897302), v = U(v, h, u, r, f[c + 5], 5, -701558691), r = U(r, v, h, u, f[c + 10], 9, 38016083), u = U(u, r, v, h, f[c + 15], 14, -660478335), h = U(h, u, r, v, f[c + 4], 20, -405537848), v = U(v, h, u, r, f[c + 9], 5, 568446438), r = U(r, v, h, u, f[c + 14], 9, -1019803690), u = U(u, r, v, h, f[c + 3], 14, -187363961), h = U(h, u, r, v, f[c + 8], 20, 1163531501), v = U(v, h, u, r, f[c + 13], 5, -1444681467), r = U(r, v, h, u, f[c + 2], 9, -51403784), u = U(u, r, v, h, f[c + 7], 14, 1735328473), h = U(h, u, r, v, f[c + 12], 20, -1926607734), v = V(v, h, u, r, f[c + 5], 4, -378558), r = V(r, v, h, u, f[c + 8], 11, -2022574463), u = V(u, r, v, h, f[c + 11], 16, 1839030562), h = V(h, u, r, v, f[c + 14], 23, -35309556), v = V(v, h, u, r, f[c + 1], 4, -1530992060), r = V(r, v, h, u, f[c + 4], 11, 1272893353), u = V(u, r, v, h, f[c + 7], 16, -155497632), h = V(h, u, r, v, f[c + 10], 23, -1094730640), v = V(v, h, u, r, f[c + 13], 4, 681279174), r = V(r, v, h, u, f[c + 0], 11, -358537222), u = V(u, r, v, h, f[c + 3], 16, -722521979), h = V(h, u, r, v, f[c + 6], 23, 76029189), v = V(v, h, u, r, f[c + 9], 4, -640364487), r = V(r, v, h, u, f[c + 12], 11, -421815835), u = V(u, r, v, h, f[c + 15], 16, 530742520), h = V(h, u, r, v, f[c + 2], 23, -995338651), v = k(v, h, u, r, f[c + 0], 6, -198630844), r = k(r, v, h, u, f[c + 7], 10, 1126891415), u = k(u, r, v, h, f[c + 14], 15, -1416354905), h = k(h, u, r, v, f[c + 5], 21, -57434055), v = k(v, h, u, r, f[c + 12], 6, 1700485571), r = k(r, v, h, u, f[c + 3], 10, -1894986606), u = k(u, r, v, h, f[c + 10], 15, -1051523), h = k(h, u, r, v, f[c + 1], 21, -2054922799), v = k(v, h, u, r, f[c + 8], 6, 1873313359), r = k(r, v, h, u, f[c + 15], 10, -30611744), u = k(u, r, v, h, f[c + 6], 15, -1560198380), h = k(h, u, r, v, f[c + 13], 21, 1309151649), v = k(v, h, u, r, f[c + 4], 6, -145523070), r = k(r, v, h, u, f[c + 11], 10, -1120210379), u = k(u, r, v, h, f[c + 2], 15, 718787259), h = k(h, u, r, v, f[c + 9], 21, -343485551), v = v + Q >>> 0, h = h + G >>> 0, u = u + le >>> 0, r = r + R >>> 0;
|
|
3030
3030
|
}
|
|
3031
3031
|
return n.endian([v, h, u, r]);
|
|
3032
3032
|
};
|
|
@@ -3123,7 +3123,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3123
3123
|
"filter-multiple",
|
|
3124
3124
|
"filter-method",
|
|
3125
3125
|
"filtered-value"
|
|
3126
|
-
], c = re([]), q = zt(), U = re({}), V = re([]), k = re(null), Q = re(""), G = re("/"),
|
|
3126
|
+
], c = re([]), q = zt(), U = re({}), V = re([]), k = re(null), Q = re(""), G = re("/"), le = ot(n, "selectedRows"), R = re({
|
|
3127
3127
|
autoWatch: !1,
|
|
3128
3128
|
data: [],
|
|
3129
3129
|
border: !0,
|
|
@@ -3192,17 +3192,17 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3192
3192
|
onSortChange: ({ column: a, prop: i, order: g }, x) => {
|
|
3193
3193
|
},
|
|
3194
3194
|
onSelectionChange: (a) => {
|
|
3195
|
-
|
|
3195
|
+
le.value = a;
|
|
3196
3196
|
}
|
|
3197
3197
|
});
|
|
3198
3198
|
t.value.table = ze(
|
|
3199
|
-
|
|
3199
|
+
R.value,
|
|
3200
3200
|
f == null ? void 0 : f.table,
|
|
3201
3201
|
t.value.table,
|
|
3202
3202
|
q
|
|
3203
3203
|
// 继承父组件的属性
|
|
3204
3204
|
);
|
|
3205
|
-
const
|
|
3205
|
+
const K = {
|
|
3206
3206
|
type: "control",
|
|
3207
3207
|
label: "操作",
|
|
3208
3208
|
align: "center",
|
|
@@ -3219,7 +3219,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3219
3219
|
mode: "dialog",
|
|
3220
3220
|
"view-mode": "description",
|
|
3221
3221
|
// description || readonly
|
|
3222
|
-
icon: () =>
|
|
3222
|
+
icon: () => Se(ta),
|
|
3223
3223
|
auth: () => {
|
|
3224
3224
|
var O;
|
|
3225
3225
|
return !(((O = x == null ? void 0 : x.control) == null ? void 0 : O.add(a, x).inline) === !0 && g === 0);
|
|
@@ -3230,7 +3230,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3230
3230
|
text: !0,
|
|
3231
3231
|
type: "primary",
|
|
3232
3232
|
mode: "dialog",
|
|
3233
|
-
icon: () =>
|
|
3233
|
+
icon: () => Se(_l),
|
|
3234
3234
|
auth: () => {
|
|
3235
3235
|
var O;
|
|
3236
3236
|
return ((O = x == null ? void 0 : x.control) == null ? void 0 : O.add(a, x).inline) !== !0;
|
|
@@ -3240,7 +3240,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3240
3240
|
text: !0,
|
|
3241
3241
|
label: "删除",
|
|
3242
3242
|
type: "danger",
|
|
3243
|
-
icon: () =>
|
|
3243
|
+
icon: () => Se(Wt),
|
|
3244
3244
|
auth: () => {
|
|
3245
3245
|
var O;
|
|
3246
3246
|
return !(((O = x.control) == null ? void 0 : O.add(a, x).inline) === !0 && g === 0);
|
|
@@ -3260,7 +3260,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3260
3260
|
return {
|
|
3261
3261
|
label: ((O = x.control) == null ? void 0 : O.add(a, x).inline) !== !0 ? "保存" : g === 0 ? "新增" : "保存",
|
|
3262
3262
|
text: !0,
|
|
3263
|
-
icon: () =>
|
|
3263
|
+
icon: () => Se(Rt),
|
|
3264
3264
|
type: ((P = x.control) == null ? void 0 : P.add(a, x).inline) !== !0 || g === 0 ? "primary" : "success",
|
|
3265
3265
|
sort: -1,
|
|
3266
3266
|
auth: () => {
|
|
@@ -3275,7 +3275,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3275
3275
|
type: "primary",
|
|
3276
3276
|
mode: "dialog",
|
|
3277
3277
|
inline: !1,
|
|
3278
|
-
icon: () =>
|
|
3278
|
+
icon: () => Se(ea),
|
|
3279
3279
|
auth: () => !0
|
|
3280
3280
|
}),
|
|
3281
3281
|
toggleExpand: (a, i) => ({
|
|
@@ -3283,7 +3283,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3283
3283
|
text: !1,
|
|
3284
3284
|
type: "primary",
|
|
3285
3285
|
mode: "dialog",
|
|
3286
|
-
icon: () =>
|
|
3286
|
+
icon: () => Se(wl),
|
|
3287
3287
|
auth: () => !1
|
|
3288
3288
|
}),
|
|
3289
3289
|
batch: (a, i) => ({
|
|
@@ -3291,7 +3291,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3291
3291
|
text: !1,
|
|
3292
3292
|
type: "primary",
|
|
3293
3293
|
mode: "dialog",
|
|
3294
|
-
icon: () =>
|
|
3294
|
+
icon: () => Se(Rt),
|
|
3295
3295
|
auth: () => !1
|
|
3296
3296
|
}),
|
|
3297
3297
|
download: (a, i) => ({
|
|
@@ -3299,7 +3299,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3299
3299
|
text: !1,
|
|
3300
3300
|
type: "primary",
|
|
3301
3301
|
mode: "dialog",
|
|
3302
|
-
icon: () =>
|
|
3302
|
+
icon: () => Se(kl),
|
|
3303
3303
|
excelLabel: "下载EXCEL",
|
|
3304
3304
|
auth: () => !0
|
|
3305
3305
|
}),
|
|
@@ -3308,7 +3308,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3308
3308
|
text: !1,
|
|
3309
3309
|
type: "primary",
|
|
3310
3310
|
mode: "dialog",
|
|
3311
|
-
icon: () =>
|
|
3311
|
+
icon: () => Se(Kl),
|
|
3312
3312
|
auth: () => !0
|
|
3313
3313
|
}),
|
|
3314
3314
|
dropdown: (a, i, g, x) => ({
|
|
@@ -3319,47 +3319,47 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3319
3319
|
auth: () => !(x.control.add(a, x).inline === !0 && g == 0),
|
|
3320
3320
|
onClick: () => {
|
|
3321
3321
|
var P;
|
|
3322
|
-
let O = (P =
|
|
3322
|
+
let O = (P = Te(a, i, g, x)) == null ? void 0 : P.operate;
|
|
3323
3323
|
O === "edit" ? w(a, i, g, x) : O === "delete" ? p(a, i, g, x) : O === "view" && T(a, i, g, x);
|
|
3324
3324
|
},
|
|
3325
3325
|
"button-props": { round: !0, plain: !0 }
|
|
3326
3326
|
})
|
|
3327
3327
|
};
|
|
3328
3328
|
t.value.control = ze(
|
|
3329
|
-
|
|
3329
|
+
K,
|
|
3330
3330
|
f == null ? void 0 : f.control,
|
|
3331
3331
|
(Je = t.value) == null ? void 0 : Je.control
|
|
3332
3332
|
);
|
|
3333
|
-
const
|
|
3333
|
+
const fe = (a, i = !0) => {
|
|
3334
3334
|
const g = t.value.control[a], x = i ? (O, P, N, we) => {
|
|
3335
3335
|
var Pe, tt, ht;
|
|
3336
3336
|
if (!O || !P || N == null)
|
|
3337
3337
|
return console.warn(`merge${a.charAt(0).toUpperCase() + a.slice(1)}: 缺少必要的参数(row, column或index)`), {};
|
|
3338
|
-
const
|
|
3339
|
-
return ze(
|
|
3338
|
+
const Ee = ((Pe = K[a]) == null ? void 0 : Pe.call(K, O, P, N, we)) || {}, qe = ((ht = (tt = f == null ? void 0 : f.control) == null ? void 0 : tt[a]) == null ? void 0 : ht.call(tt, O, P, N, we)) || {}, je = (g == null ? void 0 : g(O, P, N, we)) || {};
|
|
3339
|
+
return ze(Ee, qe, je) || {};
|
|
3340
3340
|
} : (O, P) => {
|
|
3341
3341
|
var qe, je, Pe;
|
|
3342
|
-
const N = ((qe =
|
|
3343
|
-
return ze(N, we,
|
|
3342
|
+
const N = ((qe = K[a]) == null ? void 0 : qe.call(K, O, P)) || {}, we = ((Pe = (je = f == null ? void 0 : f.control) == null ? void 0 : je[a]) == null ? void 0 : Pe.call(je, O, P)) || {}, Ee = (g == null ? void 0 : g(O, P)) || {};
|
|
3343
|
+
return ze(N, we, Ee) || {};
|
|
3344
3344
|
};
|
|
3345
3345
|
t.value.control[a] = x;
|
|
3346
3346
|
};
|
|
3347
|
-
|
|
3348
|
-
const
|
|
3349
|
-
var we,
|
|
3347
|
+
fe("edit"), fe("delete"), fe("view"), fe("save"), fe("add", !1), fe("download", !1), fe("setting", !1), fe("batch", !1), fe("toggleExpand", !1);
|
|
3348
|
+
const Te = (a, i, g, x) => {
|
|
3349
|
+
var we, Ee, qe, je, Pe, tt;
|
|
3350
3350
|
if (!a || !i || g == null)
|
|
3351
3351
|
return console.warn("mergeDropdown: 缺少必要的参数(row, column或index)"), {};
|
|
3352
|
-
const O = ((we =
|
|
3352
|
+
const O = ((we = K.dropdown) == null ? void 0 : we.call(K, a, i, g, x)) || {}, P = ((qe = (Ee = f == null ? void 0 : f.control) == null ? void 0 : Ee.dropdown) == null ? void 0 : qe.call(Ee, a, i, g, x)) || {}, N = ((tt = (Pe = (je = t.value) == null ? void 0 : je.control) == null ? void 0 : Pe.dropdown) == null ? void 0 : tt.call(Pe, a, i, g, x)) || {};
|
|
3353
3353
|
return ze(O, P, N) || {};
|
|
3354
|
-
},
|
|
3354
|
+
}, Ve = {
|
|
3355
3355
|
type: "hidden",
|
|
3356
3356
|
"min-width": 100,
|
|
3357
3357
|
align: "center",
|
|
3358
3358
|
formatter: (a, i, g, x) => g,
|
|
3359
|
-
"tooltip-formatter": ({ row: a, column: i, cellValue: g }) =>
|
|
3359
|
+
"tooltip-formatter": ({ row: a, column: i, cellValue: g }) => Se(rr, { content: g, column: i })
|
|
3360
3360
|
};
|
|
3361
3361
|
t.value.tableColumns = ze(
|
|
3362
|
-
|
|
3362
|
+
Ve,
|
|
3363
3363
|
f == null ? void 0 : f.tableColumns,
|
|
3364
3364
|
(Ke = t.value) == null ? void 0 : Ke.tableColumns
|
|
3365
3365
|
), t.value.form = ze(
|
|
@@ -3373,7 +3373,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3373
3373
|
f == null ? void 0 : f.form,
|
|
3374
3374
|
(et = t.value) == null ? void 0 : et.form
|
|
3375
3375
|
);
|
|
3376
|
-
const
|
|
3376
|
+
const ve = {
|
|
3377
3377
|
type: "hidden",
|
|
3378
3378
|
labelPosition: "right",
|
|
3379
3379
|
style: {
|
|
@@ -3381,11 +3381,11 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3381
3381
|
}
|
|
3382
3382
|
};
|
|
3383
3383
|
t.value.formItems = ze(
|
|
3384
|
-
|
|
3384
|
+
ve,
|
|
3385
3385
|
f == null ? void 0 : f.formItems,
|
|
3386
3386
|
(Ct = t == null ? void 0 : t.value) == null ? void 0 : Ct.formItems
|
|
3387
3387
|
);
|
|
3388
|
-
const
|
|
3388
|
+
const L = {
|
|
3389
3389
|
title: "编辑",
|
|
3390
3390
|
mode: "drawer",
|
|
3391
3391
|
type: "hidden",
|
|
@@ -3398,11 +3398,11 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3398
3398
|
overflow: !0
|
|
3399
3399
|
};
|
|
3400
3400
|
t.value.dialog = ze(
|
|
3401
|
-
|
|
3401
|
+
L,
|
|
3402
3402
|
f == null ? void 0 : f.dialog,
|
|
3403
3403
|
(Mt = t.value) == null ? void 0 : Mt.dialog
|
|
3404
3404
|
);
|
|
3405
|
-
const
|
|
3405
|
+
const Ce = (a, i) => {
|
|
3406
3406
|
let g = i;
|
|
3407
3407
|
if (a.precision && !isNaN(parseFloat(i)) && (typeof a.precision == "number" ? g = parseFloat(g).toFixed(a.precision) : typeof a.precision == "object" && a.precision.num && (a.precision.pad ? g = parseFloat(g).toFixed(a.precision.num) : g = parseFloat(
|
|
3408
3408
|
parseFloat(g).toFixed(a.precision.num)
|
|
@@ -3417,7 +3417,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3417
3417
|
return a.type === "money" && (a.align = a.align || "right", a.width = a.width || 130, g = `<span title="${Nt(
|
|
3418
3418
|
parseFloat(g)
|
|
3419
3419
|
)}">${Ir(parseFloat(g), (a == null ? void 0 : a.precision) || 2, (a == null ? void 0 : a.removeZero) || !1)}</span>`), a.prefix && g && (g = `<span>${a.prefix}${g}</span>`), a.suffix && g && (g = `${g}<span>${a.suffix}</span>`), g;
|
|
3420
|
-
},
|
|
3420
|
+
}, Me = (a) => {
|
|
3421
3421
|
S.value = Object.fromEntries(h), t.value.table.load();
|
|
3422
3422
|
}, B = (a) => {
|
|
3423
3423
|
S.value = a, t.value.table.load();
|
|
@@ -3434,7 +3434,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3434
3434
|
t.value[O] && (t.value[O].value = k.value[O]);
|
|
3435
3435
|
}), u.value = !0, await rt(), o("open", "add", { row: k.value, node: s.node, m: i }), Yt()), await rt(), o("node-init", { row: k.value, node: s.node, m: i }));
|
|
3436
3436
|
}, y = () => {
|
|
3437
|
-
o("batch",
|
|
3437
|
+
o("batch", le.value);
|
|
3438
3438
|
}, _ = (a, i) => {
|
|
3439
3439
|
o("toggleExpand", a), console.log(t.value.table["default-expand-all"]), v.value = !1, t.value.table["default-expand-all"] = !t.value.table["default-expand-all"], rt(() => {
|
|
3440
3440
|
v.value = !0;
|
|
@@ -3462,8 +3462,8 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3462
3462
|
if ((P = t.value.control.delete(a, i, g, x)) != null && P.click)
|
|
3463
3463
|
t.value.control.delete(a, i, g, x).click(a, i, g, x);
|
|
3464
3464
|
else {
|
|
3465
|
-
let { message: N, title: we, options:
|
|
3466
|
-
pl.confirm(N, we,
|
|
3465
|
+
let { message: N, title: we, options: Ee } = t.value.control.delete(a, i, g, x).dialog;
|
|
3466
|
+
pl.confirm(N, we, Ee).then(() => {
|
|
3467
3467
|
o(
|
|
3468
3468
|
"delete",
|
|
3469
3469
|
{ row: a, column: i, index: g, m: x },
|
|
@@ -3479,22 +3479,22 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3479
3479
|
t.value.form.modalState = void 0, l.value = "view";
|
|
3480
3480
|
try {
|
|
3481
3481
|
if (!await ((O = t.value.control) == null ? void 0 : O.validate("view", { row: a, column: i, index: g, m: x }))) return;
|
|
3482
|
-
} catch (
|
|
3483
|
-
console.error("验证失败:",
|
|
3482
|
+
} catch (Ee) {
|
|
3483
|
+
console.error("验证失败:", Ee);
|
|
3484
3484
|
return;
|
|
3485
3485
|
}
|
|
3486
|
-
(P = t.value.control.view(a, i, g, x)) != null && P.click ? t.value.control.view(a, i, g, x).click(a, i, g, x) : (t.value.form.disabled = !0, t.value.dialog.mode = t.value.control.view(a, i, g, x).mode, t.value.dialog.title = t.value.control.view(a, i, g, x).title || t.value.control.view(a, i, g, x).label || "详情", Object.keys(a).forEach((
|
|
3487
|
-
t.value[
|
|
3486
|
+
(P = t.value.control.view(a, i, g, x)) != null && P.click ? t.value.control.view(a, i, g, x).click(a, i, g, x) : (t.value.form.disabled = !0, t.value.dialog.mode = t.value.control.view(a, i, g, x).mode, t.value.dialog.title = t.value.control.view(a, i, g, x).title || t.value.control.view(a, i, g, x).label || "详情", Object.keys(a).forEach((Ee) => {
|
|
3487
|
+
t.value[Ee] && (t.value[Ee].value = a[Ee]);
|
|
3488
3488
|
}), ((N = t.value.control.view(a, i, g, x)) == null ? void 0 : N["view-mode"]) === "description" ? gt({
|
|
3489
3489
|
...t.value.dialog,
|
|
3490
3490
|
type: t.value.dialog.mode,
|
|
3491
3491
|
slots: {
|
|
3492
3492
|
default: () => {
|
|
3493
|
-
var
|
|
3494
|
-
return
|
|
3493
|
+
var Ee, qe, je;
|
|
3494
|
+
return Se(Tl, {
|
|
3495
3495
|
row: a,
|
|
3496
3496
|
m: x,
|
|
3497
|
-
container: ((
|
|
3497
|
+
container: ((Ee = t.value.control.view(a, i, g, x)) == null ? void 0 : Ee.container) || {}
|
|
3498
3498
|
}, ((je = (qe = t.value.control.view(a, i, g, x)) == null ? void 0 : qe.container) == null ? void 0 : je.slots) || {});
|
|
3499
3499
|
}
|
|
3500
3500
|
}
|
|
@@ -3509,16 +3509,16 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3509
3509
|
async (P = !0, N = !0) => {
|
|
3510
3510
|
if (P && t.value.table.load(), N && g === 0) {
|
|
3511
3511
|
const we = Object.entries(t.value).filter(
|
|
3512
|
-
([
|
|
3512
|
+
([Ee, qe]) => qe.type !== "control" && qe.type !== "hidden"
|
|
3513
3513
|
// && val.editor !== false
|
|
3514
3514
|
);
|
|
3515
3515
|
k.value = Object.fromEntries(
|
|
3516
|
-
we.map(([
|
|
3516
|
+
we.map(([Ee, qe]) => [Ee, qe.value])
|
|
3517
3517
|
), t.value.table.data[g] = { ...k.value };
|
|
3518
3518
|
}
|
|
3519
3519
|
}
|
|
3520
3520
|
);
|
|
3521
|
-
},
|
|
3521
|
+
}, ee = Or((a, i, g) => {
|
|
3522
3522
|
o("submit", t.value.form.modalState, a, i, (x) => {
|
|
3523
3523
|
x && (g === 1 && (u.value = !1), M(a), i.table.load());
|
|
3524
3524
|
});
|
|
@@ -3537,7 +3537,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3537
3537
|
type: i.control.download(a, i).mode || "dialog",
|
|
3538
3538
|
alignCenter: i.control.download(a, i).alignCenter || !0,
|
|
3539
3539
|
slots: {
|
|
3540
|
-
default: () =>
|
|
3540
|
+
default: () => Se(Fa, {
|
|
3541
3541
|
items: g,
|
|
3542
3542
|
commitText: i.control.download(a, i).excelLabel,
|
|
3543
3543
|
onExcel: (P, N) => {
|
|
@@ -3558,7 +3558,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3558
3558
|
type: i.control.setting(a, i).mode || "dialog",
|
|
3559
3559
|
alignCenter: i.control.setting(a, i).alignCenter || !0,
|
|
3560
3560
|
slots: {
|
|
3561
|
-
default: () =>
|
|
3561
|
+
default: () => Se(er, {
|
|
3562
3562
|
modelValue: i,
|
|
3563
3563
|
tuid: G.value,
|
|
3564
3564
|
onSettingDragEnd: async () => {
|
|
@@ -3612,7 +3612,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3612
3612
|
if (a.getDicts) {
|
|
3613
3613
|
const x = i.toString();
|
|
3614
3614
|
return Ge.value[x] ? (a.options = Ge.value[x], a.formatter || (a.formatter = (O, P, N, we) => a.options && g(a.options, N) || N), Promise.resolve()) : a.getDicts(t.value.table.data).then((O) => {
|
|
3615
|
-
Ge.value[x] = O, a.options = O, a.formatter || (a.formatter = (P, N, we,
|
|
3615
|
+
Ge.value[x] = O, a.options = O, a.formatter || (a.formatter = (P, N, we, Ee) => a.options && g(a.options, we) || we);
|
|
3616
3616
|
});
|
|
3617
3617
|
}
|
|
3618
3618
|
return Promise.resolve();
|
|
@@ -3681,12 +3681,12 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3681
3681
|
}
|
|
3682
3682
|
}), d({ addRow: A, editRow: w, deleteRow: p, readForm: T, saveRowData: I, closeDialog: Oe, formData: k }), (a, i) => {
|
|
3683
3683
|
var qe, je, Pe, tt, ht, St, Tt;
|
|
3684
|
-
const g =
|
|
3684
|
+
const g = H("el-button-group"), x = H("el-dropdown-item"), O = H("el-dropdown-menu"), P = H("el-dropdown"), N = H("el-table-column"), we = H("el-table"), Ee = H("el-pagination");
|
|
3685
3685
|
return m(), z(se, null, [
|
|
3686
3686
|
u.value ? (m(), D(Qt, Y({
|
|
3687
3687
|
key: 0,
|
|
3688
3688
|
modelValue: u.value,
|
|
3689
|
-
"onUpdate:modelValue": i[2] || (i[2] = (
|
|
3689
|
+
"onUpdate:modelValue": i[2] || (i[2] = (te) => u.value = te)
|
|
3690
3690
|
}, t.value.dialog, {
|
|
3691
3691
|
type: t.value.dialog.mode
|
|
3692
3692
|
}), $e({
|
|
@@ -3694,12 +3694,12 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3694
3694
|
u.value ? (m(), D(Ze(Ft), {
|
|
3695
3695
|
key: 0,
|
|
3696
3696
|
modelValue: t.value,
|
|
3697
|
-
"onUpdate:modelValue": i[0] || (i[0] = (
|
|
3698
|
-
onSubmit: i[1] || (i[1] = (
|
|
3697
|
+
"onUpdate:modelValue": i[0] || (i[0] = (te) => t.value = te),
|
|
3698
|
+
onSubmit: i[1] || (i[1] = (te, ye, ue) => F(ee)(te, ye, ue)),
|
|
3699
3699
|
onReset: ae,
|
|
3700
3700
|
flag: l.value
|
|
3701
3701
|
}, $e({ _: 2 }, [
|
|
3702
|
-
W(a.$slots, (
|
|
3702
|
+
W(a.$slots, (te, ye, ue) => ({
|
|
3703
3703
|
name: ye,
|
|
3704
3704
|
fn: $((He) => {
|
|
3705
3705
|
var Qe;
|
|
@@ -3717,9 +3717,9 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3717
3717
|
}, [
|
|
3718
3718
|
a.$slots.header ? {
|
|
3719
3719
|
name: "header",
|
|
3720
|
-
fn: $(({ titleClass:
|
|
3720
|
+
fn: $(({ titleClass: te, closeIconClass: ye }) => [
|
|
3721
3721
|
C(a.$slots, "header", {
|
|
3722
|
-
titleClass:
|
|
3722
|
+
titleClass: te,
|
|
3723
3723
|
closeIconClass: ye
|
|
3724
3724
|
}, void 0, !0)
|
|
3725
3725
|
]),
|
|
@@ -3752,16 +3752,16 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3752
3752
|
C(a.$slots, "query", {}, () => [
|
|
3753
3753
|
de(_a, {
|
|
3754
3754
|
modelValue: t.value,
|
|
3755
|
-
"onUpdate:modelValue": i[3] || (i[3] = (
|
|
3755
|
+
"onUpdate:modelValue": i[3] || (i[3] = (te) => t.value = te),
|
|
3756
3756
|
info: S.value,
|
|
3757
|
-
"onUpdate:info": i[4] || (i[4] = (
|
|
3757
|
+
"onUpdate:info": i[4] || (i[4] = (te) => S.value = te),
|
|
3758
3758
|
onQuery: B,
|
|
3759
|
-
onReset:
|
|
3759
|
+
onReset: Me
|
|
3760
3760
|
}, $e({
|
|
3761
3761
|
"q-btns": $(() => [
|
|
3762
3762
|
C(a.$slots, "q-btns", {}, () => [
|
|
3763
|
-
(m(!0), z(se, null, W(be(["add", "toggleExpand", "batch", "download", "setting"], k.value, t.value), (
|
|
3764
|
-
ye == "default" ? (m(!0), z(se, { key: 0 }, W(
|
|
3763
|
+
(m(!0), z(se, null, W(be(["add", "toggleExpand", "batch", "download", "setting"], k.value, t.value), (te, ye) => (m(), z(se, null, [
|
|
3764
|
+
ye == "default" ? (m(!0), z(se, { key: 0 }, W(te, (ue) => (m(), z(se, null, [
|
|
3765
3765
|
C(a.$slots, ue.name + "-left", {}, void 0, !0),
|
|
3766
3766
|
(ue.name === "control-add" ? ue.attr.auth() && ue.attr.inline === !1 : ue.attr.auth()) ? C(a.$slots, ue.name, { key: 0 }, () => {
|
|
3767
3767
|
var He, Qe;
|
|
@@ -3769,7 +3769,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3769
3769
|
ue.label ? (m(), D(F(Ne), Y({
|
|
3770
3770
|
key: 0,
|
|
3771
3771
|
title: ue.label,
|
|
3772
|
-
disabled: ue.name === "control-batch" && ((He =
|
|
3772
|
+
disabled: ue.name === "control-batch" && ((He = le.value) == null ? void 0 : He.length) === 0
|
|
3773
3773
|
}, { ref_for: !0 }, ue.attr, {
|
|
3774
3774
|
onClick: (ut) => ue.func(k.value, t.value, c.value)
|
|
3775
3775
|
}), {
|
|
@@ -3780,7 +3780,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3780
3780
|
}, 1040, ["title", "disabled", "onClick"])) : (m(), D(F(Ne), Y({
|
|
3781
3781
|
key: 1,
|
|
3782
3782
|
title: ue.label,
|
|
3783
|
-
disabled: ue.name === "control-batch" && ((Qe =
|
|
3783
|
+
disabled: ue.name === "control-batch" && ((Qe = le.value) == null ? void 0 : Qe.length) === 0
|
|
3784
3784
|
}, { ref_for: !0 }, ue.attr, {
|
|
3785
3785
|
onClick: (ut) => ue.func(k.value, t.value, c.value)
|
|
3786
3786
|
}), null, 16, ["title", "disabled", "onClick"]))
|
|
@@ -3789,7 +3789,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3789
3789
|
C(a.$slots, ue.name + "-right", {}, void 0, !0)
|
|
3790
3790
|
], 64))), 256)) : (m(), D(g, { key: 1 }, {
|
|
3791
3791
|
default: $(() => [
|
|
3792
|
-
(m(!0), z(se, null, W(
|
|
3792
|
+
(m(!0), z(se, null, W(te, (ue) => (m(), z(se, null, [
|
|
3793
3793
|
C(a.$slots, ue.name + "-left", {}, void 0, !0),
|
|
3794
3794
|
(ue.name === "control-add" ? ue.attr.auth() && ue.attr.inline === !1 : ue.attr.auth()) ? C(a.$slots, ue.name, { key: 0 }, () => {
|
|
3795
3795
|
var He, Qe;
|
|
@@ -3797,7 +3797,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3797
3797
|
ue.label ? (m(), D(F(Ne), Y({
|
|
3798
3798
|
key: 0,
|
|
3799
3799
|
title: ue.label,
|
|
3800
|
-
disabled: ue.name === "control-batch" && ((He =
|
|
3800
|
+
disabled: ue.name === "control-batch" && ((He = le.value) == null ? void 0 : He.length) === 0,
|
|
3801
3801
|
v: ""
|
|
3802
3802
|
}, { ref_for: !0 }, ue.attr, {
|
|
3803
3803
|
onClick: (ut) => ue.func(k.value, t.value, c.value)
|
|
@@ -3809,7 +3809,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3809
3809
|
}, 1040, ["title", "disabled", "onClick"])) : (m(), D(F(Ne), Y({
|
|
3810
3810
|
key: 1,
|
|
3811
3811
|
title: ue.label,
|
|
3812
|
-
disabled: ue.name === "control-batch" && ((Qe =
|
|
3812
|
+
disabled: ue.name === "control-batch" && ((Qe = le.value) == null ? void 0 : Qe.length) === 0
|
|
3813
3813
|
}, { ref_for: !0 }, ue.attr, {
|
|
3814
3814
|
onClick: (ut) => ue.func(k.value, t.value, c.value)
|
|
3815
3815
|
}), null, 16, ["title", "disabled", "onClick"]))
|
|
@@ -3825,7 +3825,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3825
3825
|
]),
|
|
3826
3826
|
_: 2
|
|
3827
3827
|
}, [
|
|
3828
|
-
W(a.$slots, (
|
|
3828
|
+
W(a.$slots, (te, ye, ue) => ({
|
|
3829
3829
|
name: ye,
|
|
3830
3830
|
fn: $((He) => [
|
|
3831
3831
|
C(a.$slots, ye, {
|
|
@@ -3846,13 +3846,13 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3846
3846
|
...a.$attrs,
|
|
3847
3847
|
...F(We)(
|
|
3848
3848
|
t.value.table,
|
|
3849
|
-
(
|
|
3849
|
+
(te) => !["dblclickType", "page"].includes(te)
|
|
3850
3850
|
)
|
|
3851
3851
|
}, {
|
|
3852
|
-
"summary-method": (
|
|
3853
|
-
onSortChange: i[5] || (i[5] = (
|
|
3852
|
+
"summary-method": (te) => t.value.table["summary-method"](te, { fields: V.value, sums: U.value }),
|
|
3853
|
+
onSortChange: i[5] || (i[5] = (te) => {
|
|
3854
3854
|
var ye, ue;
|
|
3855
|
-
t.value.table.onSortChange(
|
|
3855
|
+
t.value.table.onSortChange(te, S.value), ((ye = te == null ? void 0 : te.column) == null ? void 0 : ye.sortable) === "custom" && ((ue = t.value.table) == null || ue.load());
|
|
3856
3856
|
})
|
|
3857
3857
|
}), {
|
|
3858
3858
|
append: $(() => [
|
|
@@ -3863,16 +3863,16 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3863
3863
|
]),
|
|
3864
3864
|
default: $(() => [
|
|
3865
3865
|
C(a.$slots, "default", {}, () => [
|
|
3866
|
-
(m(!0), z(se, null, W(ie.value, (
|
|
3866
|
+
(m(!0), z(se, null, W(ie.value, (te, ye) => {
|
|
3867
3867
|
var ue, He, Qe, ut;
|
|
3868
3868
|
return m(), D(N, Y({
|
|
3869
3869
|
prop: ye,
|
|
3870
3870
|
"column-key": ye
|
|
3871
3871
|
}, { ref_for: !0 }, ((He = (ue = t.value) == null ? void 0 : ue.table) == null ? void 0 : He["row-key"]) == ye ? {
|
|
3872
|
-
...F(We)(
|
|
3872
|
+
...F(We)(te, (ne) => ["label", "width", "min-width", "align", "header-align", "formatter"].includes(ne))
|
|
3873
3873
|
} : {
|
|
3874
3874
|
...t.value.tableColumns,
|
|
3875
|
-
...F(We)(
|
|
3875
|
+
...F(We)(te, (ne) => r.includes(ne))
|
|
3876
3876
|
}), $e({
|
|
3877
3877
|
header: $(({ column: ne, $index: ce }) => [
|
|
3878
3878
|
ye == "control" ? C(a.$slots, `${ye}-header`, {
|
|
@@ -3892,19 +3892,19 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3892
3892
|
]),
|
|
3893
3893
|
_: 2
|
|
3894
3894
|
}, [
|
|
3895
|
-
|
|
3895
|
+
te.type === "expand" ? {
|
|
3896
3896
|
name: "default",
|
|
3897
|
-
fn: $(({ row: ne, column: ce, $index:
|
|
3897
|
+
fn: $(({ row: ne, column: ce, $index: pe }) => [
|
|
3898
3898
|
C(a.$slots, `${ye}`, {
|
|
3899
3899
|
row: ne,
|
|
3900
3900
|
column: ce,
|
|
3901
|
-
index:
|
|
3901
|
+
index: pe
|
|
3902
3902
|
}, void 0, !0)
|
|
3903
3903
|
]),
|
|
3904
3904
|
key: "0"
|
|
3905
|
-
} :
|
|
3905
|
+
} : te.type == "control" ? {
|
|
3906
3906
|
name: "default",
|
|
3907
|
-
fn: $(({ row: ne, column: ce, $index:
|
|
3907
|
+
fn: $(({ row: ne, column: ce, $index: pe }) => {
|
|
3908
3908
|
var vt, pt;
|
|
3909
3909
|
return [
|
|
3910
3910
|
J("div", {
|
|
@@ -3915,28 +3915,28 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3915
3915
|
C(a.$slots, "control-left", {
|
|
3916
3916
|
row: ne,
|
|
3917
3917
|
column: ce,
|
|
3918
|
-
index:
|
|
3918
|
+
index: pe
|
|
3919
3919
|
}, void 0, !0),
|
|
3920
|
-
(m(!0), z(se, null, W(be(["view", "edit", "delete", "save"], ne, ce,
|
|
3920
|
+
(m(!0), z(se, null, W(be(["view", "edit", "delete", "save"], ne, ce, pe, t.value), (it, dt) => {
|
|
3921
3921
|
var bt;
|
|
3922
3922
|
return m(), z(se, null, [
|
|
3923
3923
|
dt == "default" ? (m(!0), z(se, { key: 0 }, W(it, (Z) => (m(), z(se, null, [
|
|
3924
3924
|
C(a.$slots, Z.name + "-left", {
|
|
3925
3925
|
row: ne,
|
|
3926
3926
|
column: ce,
|
|
3927
|
-
index:
|
|
3927
|
+
index: pe
|
|
3928
3928
|
}, void 0, !0),
|
|
3929
3929
|
Z.attr.auth() ? C(a.$slots, Z.name, {
|
|
3930
3930
|
key: 0,
|
|
3931
3931
|
row: ne,
|
|
3932
3932
|
column: ce,
|
|
3933
|
-
index:
|
|
3933
|
+
index: pe
|
|
3934
3934
|
}, () => [
|
|
3935
3935
|
Z.label ? (m(), D(F(Ne), Y({
|
|
3936
3936
|
key: 0,
|
|
3937
3937
|
title: Z.label
|
|
3938
3938
|
}, { ref_for: !0 }, Z.attr, {
|
|
3939
|
-
onClick: (ct) => Z.func(ne, ce,
|
|
3939
|
+
onClick: (ct) => Z.func(ne, ce, pe, t.value)
|
|
3940
3940
|
}), {
|
|
3941
3941
|
default: $(() => [
|
|
3942
3942
|
Le(Ie(Z.label), 1)
|
|
@@ -3946,18 +3946,18 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3946
3946
|
key: 1,
|
|
3947
3947
|
title: Z.label
|
|
3948
3948
|
}, { ref_for: !0 }, Z.attr, {
|
|
3949
|
-
onClick: (ct) => Z.func(ne, ce,
|
|
3949
|
+
onClick: (ct) => Z.func(ne, ce, pe, t.value)
|
|
3950
3950
|
}), null, 16, ["title", "onClick"]))
|
|
3951
3951
|
], !0) : ke("", !0),
|
|
3952
3952
|
C(a.$slots, Z.name + "-right", {
|
|
3953
3953
|
row: ne,
|
|
3954
3954
|
column: ce,
|
|
3955
|
-
index:
|
|
3955
|
+
index: pe
|
|
3956
3956
|
}, void 0, !0)
|
|
3957
|
-
], 64))), 256)) : dt != null && dt.startsWith("dropdown") && ((bt =
|
|
3957
|
+
], 64))), 256)) : dt != null && dt.startsWith("dropdown") && ((bt = Te(ne, ce, pe, t.value)) != null && bt.auth()) ? (m(), D(P, Y({
|
|
3958
3958
|
key: 1,
|
|
3959
3959
|
ref_for: !0
|
|
3960
|
-
},
|
|
3960
|
+
}, Te(ne, ce, pe, t.value)), {
|
|
3961
3961
|
dropdown: $(() => [
|
|
3962
3962
|
de(O, null, {
|
|
3963
3963
|
default: $(() => [
|
|
@@ -3968,7 +3968,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3968
3968
|
key: 0,
|
|
3969
3969
|
row: ne,
|
|
3970
3970
|
column: ce,
|
|
3971
|
-
index:
|
|
3971
|
+
index: pe
|
|
3972
3972
|
}, void 0, !0) : ke("", !0),
|
|
3973
3973
|
Z.attr.auth() ? (m(), D(x, Y({
|
|
3974
3974
|
key: 1,
|
|
@@ -3982,13 +3982,13 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3982
3982
|
C(a.$slots, Z.name, {
|
|
3983
3983
|
row: ne,
|
|
3984
3984
|
column: ce,
|
|
3985
|
-
index:
|
|
3985
|
+
index: pe
|
|
3986
3986
|
}, () => [
|
|
3987
3987
|
Z.label ? (m(), D(F(Ne), Y({
|
|
3988
3988
|
key: 0,
|
|
3989
3989
|
title: Z.label
|
|
3990
3990
|
}, { ref_for: !0 }, Z.attr, {
|
|
3991
|
-
onClick: (Et) => Z.func(ne, ce,
|
|
3991
|
+
onClick: (Et) => Z.func(ne, ce, pe, t.value)
|
|
3992
3992
|
}), {
|
|
3993
3993
|
default: $(() => [
|
|
3994
3994
|
Le(Ie(Z.label), 1)
|
|
@@ -3998,7 +3998,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3998
3998
|
key: 1,
|
|
3999
3999
|
title: Z.label
|
|
4000
4000
|
}, { ref_for: !0 }, Z.attr, {
|
|
4001
|
-
onClick: (Et) => Z.func(ne, ce,
|
|
4001
|
+
onClick: (Et) => Z.func(ne, ce, pe, t.value)
|
|
4002
4002
|
}), null, 16, ["title", "onClick"]))
|
|
4003
4003
|
], !0)
|
|
4004
4004
|
]),
|
|
@@ -4008,7 +4008,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4008
4008
|
key: 2,
|
|
4009
4009
|
row: ne,
|
|
4010
4010
|
column: ce,
|
|
4011
|
-
index:
|
|
4011
|
+
index: pe
|
|
4012
4012
|
}, void 0, !0) : ke("", !0)
|
|
4013
4013
|
], 64);
|
|
4014
4014
|
}), 256))
|
|
@@ -4019,7 +4019,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4019
4019
|
default: $(() => {
|
|
4020
4020
|
var Z;
|
|
4021
4021
|
return [
|
|
4022
|
-
Le(Ie((Z =
|
|
4022
|
+
Le(Ie((Z = Te(ne, ce, pe, t.value)) == null ? void 0 : Z.label) + " ", 1)
|
|
4023
4023
|
];
|
|
4024
4024
|
}),
|
|
4025
4025
|
_: 2
|
|
@@ -4029,19 +4029,19 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4029
4029
|
C(a.$slots, Z.name + "-left", {
|
|
4030
4030
|
row: ne,
|
|
4031
4031
|
column: ce,
|
|
4032
|
-
index:
|
|
4032
|
+
index: pe
|
|
4033
4033
|
}, void 0, !0),
|
|
4034
4034
|
Z.attr.auth() ? C(a.$slots, Z.name, {
|
|
4035
4035
|
key: 0,
|
|
4036
4036
|
row: ne,
|
|
4037
4037
|
column: ce,
|
|
4038
|
-
index:
|
|
4038
|
+
index: pe
|
|
4039
4039
|
}, () => [
|
|
4040
4040
|
Z.label ? (m(), D(F(Ne), Y({
|
|
4041
4041
|
key: 0,
|
|
4042
4042
|
title: Z.label
|
|
4043
4043
|
}, { ref_for: !0 }, Z.attr, {
|
|
4044
|
-
onClick: (ct) => Z.func(ne, ce,
|
|
4044
|
+
onClick: (ct) => Z.func(ne, ce, pe, t.value)
|
|
4045
4045
|
}), {
|
|
4046
4046
|
default: $(() => [
|
|
4047
4047
|
Le(Ie(Z.label), 1)
|
|
@@ -4051,13 +4051,13 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4051
4051
|
key: 1,
|
|
4052
4052
|
title: Z.label
|
|
4053
4053
|
}, { ref_for: !0 }, Z.attr, {
|
|
4054
|
-
onClick: (ct) => Z.func(ne, ce,
|
|
4054
|
+
onClick: (ct) => Z.func(ne, ce, pe, t.value)
|
|
4055
4055
|
}), null, 16, ["title", "onClick"]))
|
|
4056
4056
|
], !0) : ke("", !0),
|
|
4057
4057
|
C(a.$slots, Z.name + "-right", {
|
|
4058
4058
|
row: ne,
|
|
4059
4059
|
column: ce,
|
|
4060
|
-
index:
|
|
4060
|
+
index: pe
|
|
4061
4061
|
}, void 0, !0)
|
|
4062
4062
|
], 64))), 256))
|
|
4063
4063
|
]),
|
|
@@ -4068,31 +4068,31 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4068
4068
|
C(a.$slots, "control-right", {
|
|
4069
4069
|
row: ne,
|
|
4070
4070
|
column: ce,
|
|
4071
|
-
index:
|
|
4071
|
+
index: pe
|
|
4072
4072
|
}, void 0, !0)
|
|
4073
4073
|
], !0)
|
|
4074
4074
|
], 6)
|
|
4075
4075
|
];
|
|
4076
4076
|
}),
|
|
4077
4077
|
key: "1"
|
|
4078
|
-
} :
|
|
4078
|
+
} : te.type != "selection" && te.type != "index" && ((ut = (Qe = t.value) == null ? void 0 : Qe.table) == null ? void 0 : ut["row-key"]) != ye ? {
|
|
4079
4079
|
name: "default",
|
|
4080
|
-
fn: $(({ row: ne, column: ce, $index:
|
|
4081
|
-
X(
|
|
4080
|
+
fn: $(({ row: ne, column: ce, $index: pe }) => [
|
|
4081
|
+
X(te, ne, ce, pe) && pe != -1 ? C(a.$slots, `${ye}`, {
|
|
4082
4082
|
key: 0,
|
|
4083
4083
|
row: ne,
|
|
4084
4084
|
column: ce,
|
|
4085
|
-
index:
|
|
4085
|
+
index: pe
|
|
4086
4086
|
}, () => {
|
|
4087
4087
|
var vt;
|
|
4088
4088
|
return [
|
|
4089
4089
|
(m(), D(_t, {
|
|
4090
4090
|
modelValue: ne[ye],
|
|
4091
4091
|
"onUpdate:modelValue": (pt) => ne[ye] = pt,
|
|
4092
|
-
item:
|
|
4092
|
+
item: te == null ? void 0 : te.table(ne, ce, pe),
|
|
4093
4093
|
ctrlKey: ye,
|
|
4094
|
-
key: `${ye}-${
|
|
4095
|
-
ctrlType: (vt =
|
|
4094
|
+
key: `${ye}-${pe} -${Q.value}`,
|
|
4095
|
+
ctrlType: (vt = te.table(ne, ce, pe)) != null && vt.type ? te.table(ne, ce, pe).type : te.type,
|
|
4096
4096
|
model: t.value,
|
|
4097
4097
|
class: "g-ctrl-container",
|
|
4098
4098
|
t: "t",
|
|
@@ -4103,7 +4103,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4103
4103
|
fn: $((dt) => [
|
|
4104
4104
|
C(a.$slots, it, {
|
|
4105
4105
|
data: dt,
|
|
4106
|
-
item:
|
|
4106
|
+
item: te,
|
|
4107
4107
|
model: t.value
|
|
4108
4108
|
}, void 0, !0)
|
|
4109
4109
|
])
|
|
@@ -4114,13 +4114,13 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4114
4114
|
key: 1,
|
|
4115
4115
|
row: ne,
|
|
4116
4116
|
column: ce,
|
|
4117
|
-
index:
|
|
4117
|
+
index: pe
|
|
4118
4118
|
}, () => [
|
|
4119
4119
|
J("div", {
|
|
4120
|
-
style: Ue([{ width: "100%", "text-overflow": "ellipsis", overflow: "hidden" },
|
|
4121
|
-
innerHTML:
|
|
4122
|
-
|
|
4123
|
-
typeof ce.formatter == "function" ? ce.formatter(ne, ce, ne[ye],
|
|
4120
|
+
style: Ue([{ width: "100%", "text-overflow": "ellipsis", overflow: "hidden" }, te == null ? void 0 : te.style]),
|
|
4121
|
+
innerHTML: Ce(
|
|
4122
|
+
te,
|
|
4123
|
+
typeof ce.formatter == "function" ? ce.formatter(ne, ce, ne[ye], pe) : ne[ye]
|
|
4124
4124
|
)
|
|
4125
4125
|
}, null, 12, pr)
|
|
4126
4126
|
], !0)
|
|
@@ -4134,11 +4134,11 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4134
4134
|
_: 3
|
|
4135
4135
|
}, 16, ["summary-method"])) : ke("", !0),
|
|
4136
4136
|
(Tt = (St = (ht = t.value) == null ? void 0 : ht.table) == null ? void 0 : St.page) != null && Tt.hidden ? ke("", !0) : C(a.$slots, "page", { key: 1 }, () => [
|
|
4137
|
-
de(
|
|
4137
|
+
de(Ee, Y({
|
|
4138
4138
|
"page-size": t.value.table.page.pageSize,
|
|
4139
|
-
"onUpdate:pageSize": i[6] || (i[6] = (
|
|
4139
|
+
"onUpdate:pageSize": i[6] || (i[6] = (te) => t.value.table.page.pageSize = te),
|
|
4140
4140
|
"current-page": t.value.table.page.currentPage,
|
|
4141
|
-
"onUpdate:currentPage": i[7] || (i[7] = (
|
|
4141
|
+
"onUpdate:currentPage": i[7] || (i[7] = (te) => t.value.table.page.currentPage = te)
|
|
4142
4142
|
}, t.value.table.page), {
|
|
4143
4143
|
default: $(() => [
|
|
4144
4144
|
C(a.$slots, "table-page", {}, void 0, !0)
|
|
@@ -4203,12 +4203,12 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4203
4203
|
width: 450,
|
|
4204
4204
|
alignCenter: !0,
|
|
4205
4205
|
slots: {
|
|
4206
|
-
default: () =>
|
|
4206
|
+
default: () => Se(Ft, {
|
|
4207
4207
|
modelValue: e.columns,
|
|
4208
4208
|
editForm: S.value,
|
|
4209
4209
|
onSubmit: (Q, G) => {
|
|
4210
|
-
l("menu-command", u, { data: Q, node: c, m: G }, (
|
|
4211
|
-
|
|
4210
|
+
l("menu-command", u, { data: Q, node: c, m: G }, (le) => {
|
|
4211
|
+
le && V();
|
|
4212
4212
|
});
|
|
4213
4213
|
}
|
|
4214
4214
|
})
|
|
@@ -4222,12 +4222,12 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4222
4222
|
width: 450,
|
|
4223
4223
|
alignCenter: !0,
|
|
4224
4224
|
slots: {
|
|
4225
|
-
default: () =>
|
|
4225
|
+
default: () => Se(Ft, {
|
|
4226
4226
|
modelValue: e.columns,
|
|
4227
4227
|
editForm: v.value,
|
|
4228
4228
|
onSubmit: (Q, G) => {
|
|
4229
|
-
l("menu-command", u, { data: Q, node: c, m: G }, (
|
|
4230
|
-
|
|
4229
|
+
l("menu-command", u, { data: Q, node: c, m: G }, (le) => {
|
|
4230
|
+
le && k();
|
|
4231
4231
|
});
|
|
4232
4232
|
}
|
|
4233
4233
|
})
|
|
@@ -4257,7 +4257,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4257
4257
|
}
|
|
4258
4258
|
};
|
|
4259
4259
|
return (u, r) => {
|
|
4260
|
-
const c =
|
|
4260
|
+
const c = H("el-button"), q = H("el-dropdown-item"), U = H("el-dropdown-menu");
|
|
4261
4261
|
return m(), D(U, null, {
|
|
4262
4262
|
default: $(() => [
|
|
4263
4263
|
(m(!0), z(se, null, W(t.value, (V, k) => {
|
|
@@ -4302,48 +4302,61 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4302
4302
|
},
|
|
4303
4303
|
emits: /* @__PURE__ */ st(["load", "menu-command"], ["update:modelValue"]),
|
|
4304
4304
|
setup(n, { emit: d }) {
|
|
4305
|
-
var k, Q, G,
|
|
4305
|
+
var k, Q, G, le;
|
|
4306
4306
|
const e = d, l = ot(n, "modelValue"), s = re(!0), o = zt(), t = re(
|
|
4307
4307
|
typeof ((k = o == null ? void 0 : o.tree) == null ? void 0 : k.width) == "number" ? `${o.tree.width}px` : ((Q = o == null ? void 0 : o.tree) == null ? void 0 : Q.width) || "180px"
|
|
4308
|
-
), f = re(((G = o == null ? void 0 : o.tree) == null ? void 0 : G.search) === void 0 ? !0 : (
|
|
4309
|
-
var
|
|
4310
|
-
if (!
|
|
4311
|
-
const
|
|
4312
|
-
return
|
|
4313
|
-
}, c = (
|
|
4314
|
-
e("load", S.value,
|
|
4315
|
-
}, q = (
|
|
4316
|
-
S.value =
|
|
4317
|
-
}, U = async (
|
|
4318
|
-
|
|
4319
|
-
}, V = (
|
|
4320
|
-
|
|
4321
|
-
|
|
4322
|
-
|
|
4323
|
-
|
|
4324
|
-
|
|
4325
|
-
|
|
4308
|
+
), f = re(((G = o == null ? void 0 : o.tree) == null ? void 0 : G.search) === void 0 ? !0 : (le = o == null ? void 0 : o.tree) == null ? void 0 : le.search), S = re({}), v = re(""), h = re(null), u = re({}), r = (R, K) => {
|
|
4309
|
+
var Te, Ve;
|
|
4310
|
+
if (!R) return !0;
|
|
4311
|
+
const fe = ((Ve = (Te = o == null ? void 0 : o.tree) == null ? void 0 : Te.props) == null ? void 0 : Ve.label) || "label";
|
|
4312
|
+
return K[fe].includes(R);
|
|
4313
|
+
}, c = (R, K) => {
|
|
4314
|
+
e("load", S.value, R, K);
|
|
4315
|
+
}, q = (R) => {
|
|
4316
|
+
S.value = R, l.value.table.load();
|
|
4317
|
+
}, U = async (R, K, fe) => {
|
|
4318
|
+
R.preventDefault(), u.value = { data: K, node: fe };
|
|
4319
|
+
}, V = async (R, { data: K, node: fe, m: Te }, Ve) => {
|
|
4320
|
+
var ve;
|
|
4321
|
+
if (R === "add") {
|
|
4322
|
+
const L = await new Promise((Ce) => {
|
|
4323
|
+
e("menu-command", R, { data: K, node: fe, m: Te }, (Me) => {
|
|
4324
|
+
Ce(Me);
|
|
4325
|
+
});
|
|
4326
|
+
});
|
|
4327
|
+
L && ((ve = h.value) == null || ve.append(K, fe), fe.expanded = !0, Ve(L));
|
|
4328
|
+
} else if (R === "refresh") {
|
|
4329
|
+
const L = await new Promise((Ce) => {
|
|
4330
|
+
e("menu-command", R, { data: K, node: fe }, (Me) => {
|
|
4331
|
+
Ce(Me);
|
|
4332
|
+
});
|
|
4333
|
+
});
|
|
4334
|
+
L ? typeof L == "function" && L() : (s.value = !1, setTimeout(() => {
|
|
4335
|
+
s.value = !0;
|
|
4336
|
+
}, 0));
|
|
4337
|
+
} else
|
|
4338
|
+
e("menu-command", R, { data: K, node: fe, m: Te }, Ve);
|
|
4326
4339
|
};
|
|
4327
|
-
return gl(v, (
|
|
4328
|
-
h.value.filter(
|
|
4329
|
-
}), (
|
|
4330
|
-
var
|
|
4331
|
-
const
|
|
4340
|
+
return gl(v, (R) => {
|
|
4341
|
+
h.value.filter(R);
|
|
4342
|
+
}), (R, K) => {
|
|
4343
|
+
var L, Ce;
|
|
4344
|
+
const fe = H("el-input"), Te = H("el-dropdown"), Ve = H("el-tree"), ve = H("g-table");
|
|
4332
4345
|
return m(), z("div", gr, [
|
|
4333
4346
|
J("div", {
|
|
4334
4347
|
class: "g-tree-left",
|
|
4335
4348
|
style: Ue({ width: t.value })
|
|
4336
4349
|
}, [
|
|
4337
|
-
f.value ? (m(), D(
|
|
4350
|
+
f.value ? (m(), D(fe, Y({
|
|
4338
4351
|
key: 0,
|
|
4339
4352
|
modelValue: v.value,
|
|
4340
|
-
"onUpdate:modelValue":
|
|
4353
|
+
"onUpdate:modelValue": K[0] || (K[0] = (Me) => v.value = Me),
|
|
4341
4354
|
style: { width: "100%", "box-sizing": "border-box", "margin-bottom": "10px" },
|
|
4342
4355
|
placeholder: "输入节点查询",
|
|
4343
4356
|
clearable: ""
|
|
4344
|
-
}, (
|
|
4357
|
+
}, (Ce = (L = F(o)) == null ? void 0 : L.tree) == null ? void 0 : Ce.search), null, 16, ["modelValue"])) : ke("", !0),
|
|
4345
4358
|
J("div", br, [
|
|
4346
|
-
s.value ? (m(), D(
|
|
4359
|
+
s.value ? (m(), D(Ve, Y({
|
|
4347
4360
|
key: 0,
|
|
4348
4361
|
style: { width: t.value },
|
|
4349
4362
|
"filter-node-method": r,
|
|
@@ -4352,13 +4365,13 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4352
4365
|
ref: h,
|
|
4353
4366
|
onNodeClick: q,
|
|
4354
4367
|
onNodeContextmenu: U
|
|
4355
|
-
},
|
|
4356
|
-
default: $(({ node:
|
|
4357
|
-
C(
|
|
4358
|
-
node:
|
|
4368
|
+
}, R.$attrs.tree), $e({
|
|
4369
|
+
default: $(({ node: Me, data: B }) => [
|
|
4370
|
+
C(R.$slots, "tree", {
|
|
4371
|
+
node: Me,
|
|
4359
4372
|
data: B
|
|
4360
4373
|
}, () => [
|
|
4361
|
-
de(
|
|
4374
|
+
de(Te, { trigger: "contextmenu" }, {
|
|
4362
4375
|
dropdown: $(() => {
|
|
4363
4376
|
var A, y, _, w;
|
|
4364
4377
|
return [
|
|
@@ -4367,15 +4380,15 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4367
4380
|
columns: (y = (A = F(o)) == null ? void 0 : A.tree) == null ? void 0 : y.columns,
|
|
4368
4381
|
menu: () => {
|
|
4369
4382
|
var p, T, M, I;
|
|
4370
|
-
return ((T = (p = F(o)) == null ? void 0 : p.tree) == null ? void 0 : T.menu) && ((I = (M = F(o)) == null ? void 0 : M.tree) == null ? void 0 : I.menu({ node:
|
|
4383
|
+
return ((T = (p = F(o)) == null ? void 0 : p.tree) == null ? void 0 : T.menu) && ((I = (M = F(o)) == null ? void 0 : M.tree) == null ? void 0 : I.menu({ node: Me, data: B }));
|
|
4371
4384
|
},
|
|
4372
4385
|
onMenuCommand: V,
|
|
4373
4386
|
"process-form-data": (w = (_ = F(o)) == null ? void 0 : _.tree) == null ? void 0 : w.processFormData
|
|
4374
4387
|
}, $e({ _: 2 }, [
|
|
4375
|
-
W(
|
|
4388
|
+
W(R.$slots, (p, T, M) => ({
|
|
4376
4389
|
name: T,
|
|
4377
4390
|
fn: $((I) => [
|
|
4378
|
-
C(
|
|
4391
|
+
C(R.$slots, T, {
|
|
4379
4392
|
data: (I == null ? void 0 : I.data) || {}
|
|
4380
4393
|
}, void 0, !0)
|
|
4381
4394
|
])
|
|
@@ -4385,8 +4398,8 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4385
4398
|
}),
|
|
4386
4399
|
default: $(() => [
|
|
4387
4400
|
J("span", wr, [
|
|
4388
|
-
J("span", null, Ie(
|
|
4389
|
-
|
|
4401
|
+
J("span", null, Ie(Me.label), 1),
|
|
4402
|
+
K[2] || (K[2] = J("i", { class: "el-icon-arrow-down el-icon--right" }, null, -1))
|
|
4390
4403
|
])
|
|
4391
4404
|
]),
|
|
4392
4405
|
_: 2
|
|
@@ -4395,27 +4408,27 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4395
4408
|
]),
|
|
4396
4409
|
_: 2
|
|
4397
4410
|
}, [
|
|
4398
|
-
W(
|
|
4411
|
+
W(R.$slots, (Me, B, A) => ({
|
|
4399
4412
|
name: B,
|
|
4400
4413
|
fn: $((y) => [
|
|
4401
|
-
C(
|
|
4414
|
+
C(R.$slots, B, { data: y }, void 0, !0)
|
|
4402
4415
|
])
|
|
4403
4416
|
}))
|
|
4404
4417
|
]), 1040, ["style"])) : ke("", !0)
|
|
4405
4418
|
])
|
|
4406
4419
|
], 4),
|
|
4407
4420
|
J("div", $r, [
|
|
4408
|
-
de(
|
|
4421
|
+
de(ve, Y({
|
|
4409
4422
|
modelValue: l.value,
|
|
4410
|
-
"onUpdate:modelValue":
|
|
4411
|
-
}, F(We)(
|
|
4423
|
+
"onUpdate:modelValue": K[1] || (K[1] = (Me) => l.value = Me)
|
|
4424
|
+
}, F(We)(R.$attrs, (Me) => Me !== "tree"), {
|
|
4412
4425
|
onLoad: c,
|
|
4413
4426
|
node: S.value
|
|
4414
4427
|
}), $e({ _: 2 }, [
|
|
4415
|
-
W(
|
|
4428
|
+
W(R.$slots, (Me, B, A) => ({
|
|
4416
4429
|
name: B,
|
|
4417
4430
|
fn: $((y) => [
|
|
4418
|
-
C(
|
|
4431
|
+
C(R.$slots, B, { data: y }, void 0, !0)
|
|
4419
4432
|
])
|
|
4420
4433
|
}))
|
|
4421
4434
|
]), 1040, ["modelValue", "node"])
|
|
@@ -4423,7 +4436,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4423
4436
|
]);
|
|
4424
4437
|
};
|
|
4425
4438
|
}
|
|
4426
|
-
}), _r = /* @__PURE__ */ nt(kr, [["__scopeId", "data-v-
|
|
4439
|
+
}), _r = /* @__PURE__ */ nt(kr, [["__scopeId", "data-v-3960b6b6"]]), xr = {
|
|
4427
4440
|
key: 0,
|
|
4428
4441
|
class: "op-group"
|
|
4429
4442
|
}, Cr = {
|
|
@@ -4504,7 +4517,7 @@ const Hr = {
|
|
|
4504
4517
|
//'close-on-click-modal': false,
|
|
4505
4518
|
...t
|
|
4506
4519
|
};
|
|
4507
|
-
return o && (f.onClose = o), () =>
|
|
4520
|
+
return o && (f.onClose = o), () => Se(Qt, f, n.slots);
|
|
4508
4521
|
},
|
|
4509
4522
|
mounted: () => {
|
|
4510
4523
|
Yt();
|