vue-2024-ui 0.2.104 → 0.2.106
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 +628 -615
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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
|
|
2
|
+
import { ref as re, useModel as ot, nextTick as rt, onMounted as Ct, computed as Be, resolveComponent as H, openBlock as m, createElementBlock as z, Fragment as se, createElementVNode as K, createBlock as D, createCommentVNode as ke, normalizeStyle as Ue, unref as F, mergeProps as Y, withCtx as $, renderSlot as x, 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
|
-
import
|
|
4
|
+
import Cl from "sortablejs";
|
|
5
5
|
import { Dexie as ra } from "dexie";
|
|
6
6
|
var na = {
|
|
7
7
|
name: "zh-cn",
|
|
@@ -179,7 +179,7 @@ var na = {
|
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
181
|
}, oa = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
182
|
-
function
|
|
182
|
+
function xl(n) {
|
|
183
183
|
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
184
184
|
}
|
|
185
185
|
var Ml = { exports: {} };
|
|
@@ -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", J = {};
|
|
210
|
+
J[R] = Q;
|
|
211
|
+
var fe = "$isDayjsObject", Te = function(B) {
|
|
212
|
+
return B instanceof xe || !(!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
|
+
J[p] && (w = p), y && (J[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
|
+
J[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 xe(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 xe = 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 J[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,20 +446,20 @@ var Ml = { exports: {} };
|
|
|
446
446
|
}, A.toString = function() {
|
|
447
447
|
return this.$d.toUTCString();
|
|
448
448
|
}, B;
|
|
449
|
-
}(),
|
|
450
|
-
return
|
|
451
|
-
|
|
449
|
+
}(), Me = xe.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, xe, ve), B.$i = !0), ve;
|
|
456
|
+
}, ve.locale = Ve, ve.isDayjs = Te, ve.unix = function(B) {
|
|
457
|
+
return ve(1e3 * B);
|
|
458
|
+
}, ve.en = J[R], ve.Ls = J, ve.p = {}, ve;
|
|
459
459
|
});
|
|
460
460
|
})(Ml);
|
|
461
461
|
var sa = Ml.exports;
|
|
462
|
-
const At = /* @__PURE__ */
|
|
462
|
+
const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
463
463
|
const e = n.__vccOpts || n;
|
|
464
464
|
for (const [l, s] of d)
|
|
465
465
|
e[l] = s;
|
|
@@ -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
|
+
}), J = 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
|
+
}, xe = re(null), Me = (j, E = 2) => {
|
|
579
579
|
if (j === "") {
|
|
580
580
|
l.value = "";
|
|
581
581
|
return;
|
|
@@ -591,11 +591,11 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
591
591
|
}
|
|
592
592
|
l.value = X;
|
|
593
593
|
};
|
|
594
|
-
|
|
594
|
+
Ct(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"] = J), (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,17 +631,17 @@ 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 = xe.value) != null && Ae.$el) && xe.value.$el.style.setProperty("--up-width", typeof e.value.width == "number" ? e.value.width + "px" : e.value.width), e.value.height && ((Re = xe.value) != null && Re.$el) && xe.value.$el.style.setProperty("--up-height", typeof e.value.height == "number" ? e.value.height + "px" : e.value.height), e.value.fontSize && ((lt = xe.value) != null && lt.$el) && xe.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"), xt = H("el-select"), Mt = H("el-tree-select"), a = H("el-time-picker"), i = H("el-time-select"), g = H("el-date-picker"), C = 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
|
+
K("div", null, [
|
|
645
645
|
v.value ? (m(), D(X, {
|
|
646
646
|
key: 0,
|
|
647
647
|
teleported: !0,
|
|
@@ -650,7 +650,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
650
650
|
onClose: E[0] || (E[0] = (b) => v.value = !1)
|
|
651
651
|
}, null, 8, ["initial-index", "url-list"])) : ke("", !0)
|
|
652
652
|
]),
|
|
653
|
-
|
|
653
|
+
K("div", {
|
|
654
654
|
style: Ue([{ display: "flex", width: "100%" }, c.value]),
|
|
655
655
|
class: "g-ctrl-container"
|
|
656
656
|
}, [
|
|
@@ -661,10 +661,10 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
661
661
|
disabled: (ut = t.value[s.value]) == null ? void 0 : ut.disabled
|
|
662
662
|
}, e.value), {
|
|
663
663
|
default: $(() => [
|
|
664
|
-
|
|
664
|
+
x(j.$slots, `${d.t}-${s.value}`, { data: e.value }, () => [
|
|
665
665
|
(m(!0), z(se, null, W(S.value, (b) => (m(), D(Oe, Y({ ref_for: !0 }, b), {
|
|
666
666
|
default: $(() => [
|
|
667
|
-
|
|
667
|
+
x(j.$slots, `${d.t}-${s.value}-options`, { option: b }, void 0, !0)
|
|
668
668
|
]),
|
|
669
669
|
_: 2
|
|
670
670
|
}, 1040))), 256))
|
|
@@ -678,10 +678,10 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
678
678
|
disabled: (ne = t.value[s.value]) == null ? void 0 : ne.disabled
|
|
679
679
|
}, e.value), {
|
|
680
680
|
default: $(() => [
|
|
681
|
-
|
|
681
|
+
x(j.$slots, `${d.t}-${s.value}`, { data: e.value }, () => [
|
|
682
682
|
(m(!0), z(se, null, W(S.value, (b) => (m(), D(Re, Y({ ref_for: !0 }, b), {
|
|
683
683
|
default: $(() => [
|
|
684
|
-
|
|
684
|
+
x(j.$slots, `${d.t}-${s.value}-options`, { option: b }, void 0, !0)
|
|
685
685
|
]),
|
|
686
686
|
_: 2
|
|
687
687
|
}, 1040))), 256))
|
|
@@ -695,7 +695,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
695
695
|
disabled: (ce = t.value[s.value]) == null ? void 0 : ce.disabled
|
|
696
696
|
}, e.value), {
|
|
697
697
|
default: $(() => [
|
|
698
|
-
|
|
698
|
+
x(j.$slots, `${d.t}-${s.value}`, { data: e.value }, () => [
|
|
699
699
|
E[30] || (E[30] = Le(Ie(" "), -1))
|
|
700
700
|
], !0)
|
|
701
701
|
]),
|
|
@@ -704,13 +704,13 @@ 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
|
+
x(j.$slots, `${d.t}-${s.value}`, { data: e.value }, () => [
|
|
711
711
|
(m(!0), z(se, null, W(S.value, (b) => (m(), D(lt, Y({ ref_for: !0 }, b), {
|
|
712
712
|
default: $(() => [
|
|
713
|
-
|
|
713
|
+
x(j.$slots, `${d.t}-${s.value}-options`, { option: b }, () => [
|
|
714
714
|
Le(Ie(b.label), 1)
|
|
715
715
|
], !0)
|
|
716
716
|
]),
|
|
@@ -726,17 +726,17 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
726
726
|
disabled: (vt = t.value[s.value]) == null ? void 0 : vt.disabled
|
|
727
727
|
}, F(We)(e.value, (b) => b != "type")), {
|
|
728
728
|
default: $(() => [
|
|
729
|
-
|
|
729
|
+
x(j.$slots, `${d.t}-${s.value}`, { data: e.value }, () => [
|
|
730
730
|
(m(!0), z(se, null, W(S.value, (b) => (m(), D(Je, Y({ ref_for: !0 }, b), {
|
|
731
731
|
default: $(() => [
|
|
732
|
-
|
|
732
|
+
x(j.$slots, `${d.t}-${s.value}-options`, { option: b }, void 0, !0)
|
|
733
733
|
]),
|
|
734
734
|
_: 2
|
|
735
735
|
}, 1040))), 256))
|
|
736
736
|
], !0)
|
|
737
737
|
]),
|
|
738
738
|
_: 3
|
|
739
|
-
}, 16, ["modelValue", "disabled"])) : o.value === F(De).SELECT ? (m(), D(
|
|
739
|
+
}, 16, ["modelValue", "disabled"])) : o.value === F(De).SELECT ? (m(), D(xt, Y({
|
|
740
740
|
key: 5,
|
|
741
741
|
modelValue: l.value,
|
|
742
742
|
"onUpdate:modelValue": E[6] || (E[6] = (b) => l.value = b),
|
|
@@ -746,11 +746,11 @@ 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 [
|
|
753
|
-
((b = S.value) == null ? void 0 : b.length) > 0 ?
|
|
753
|
+
((b = S.value) == null ? void 0 : b.length) > 0 ? x(j.$slots, `${d.t}-${s.value}`, {
|
|
754
754
|
key: 0,
|
|
755
755
|
options: S.value
|
|
756
756
|
}, () => [
|
|
@@ -759,13 +759,13 @@ 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: $(() => {
|
|
766
766
|
var ge;
|
|
767
767
|
return [
|
|
768
|
-
(ge = e.value) != null && ge.columns ?
|
|
768
|
+
(ge = e.value) != null && ge.columns ? x(j.$slots, `${d.t}-${s.value}-options`, {
|
|
769
769
|
key: 0,
|
|
770
770
|
option: he
|
|
771
771
|
}, () => {
|
|
@@ -779,7 +779,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
779
779
|
W(j.$slots, (kt, Ut) => ({
|
|
780
780
|
name: Ut,
|
|
781
781
|
fn: $((Vt) => [
|
|
782
|
-
|
|
782
|
+
x(j.$slots, Ut, {
|
|
783
783
|
option: he,
|
|
784
784
|
data: Vt,
|
|
785
785
|
form: n.formInfo
|
|
@@ -798,13 +798,13 @@ 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: $(() => {
|
|
805
805
|
var at;
|
|
806
806
|
return [
|
|
807
|
-
(at = e.value) != null && at.columns ?
|
|
807
|
+
(at = e.value) != null && at.columns ? x(j.$slots, `${d.t}-${s.value}-options`, {
|
|
808
808
|
key: 0,
|
|
809
809
|
option: ge
|
|
810
810
|
}, () => {
|
|
@@ -818,7 +818,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
818
818
|
W(j.$slots, (Ut, Vt) => ({
|
|
819
819
|
name: Vt,
|
|
820
820
|
fn: $((Ol) => [
|
|
821
|
-
|
|
821
|
+
x(j.$slots, Vt, {
|
|
822
822
|
option: ge,
|
|
823
823
|
data: Ol,
|
|
824
824
|
form: n.formInfo
|
|
@@ -851,7 +851,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
851
851
|
W(j.$slots, (he, ge) => ({
|
|
852
852
|
name: ge,
|
|
853
853
|
fn: $((at) => [
|
|
854
|
-
|
|
854
|
+
x(j.$slots, ge, { data: at }, void 0, !0)
|
|
855
855
|
])
|
|
856
856
|
}))
|
|
857
857
|
]), 1032, ["columns", "t"])
|
|
@@ -862,7 +862,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
862
862
|
W(V(), (b) => ({
|
|
863
863
|
name: b,
|
|
864
864
|
fn: $((he) => [
|
|
865
|
-
|
|
865
|
+
x(j.$slots, `${d.t}-${s.value}-${b}`, { form: n.formInfo }, void 0, !0)
|
|
866
866
|
])
|
|
867
867
|
}))
|
|
868
868
|
]), 1040, ["modelValue", "placeholder", "clearable", "disabled"])) : o.value == F(De).TREESELECT ? (m(), D(Mt, Y({
|
|
@@ -875,7 +875,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
875
875
|
W(V(), (b) => ({
|
|
876
876
|
name: b,
|
|
877
877
|
fn: $((he) => [
|
|
878
|
-
|
|
878
|
+
x(j.$slots, `${d.t}-${s.value}-${b}`, { data: he }, void 0, !0)
|
|
879
879
|
])
|
|
880
880
|
}))
|
|
881
881
|
]), 1040, ["modelValue", "placeholder", "disabled", "data"])) : o.value == F(De).TIME ? (m(), D(a, Y({
|
|
@@ -902,16 +902,16 @@ 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) => ({
|
|
909
909
|
name: b,
|
|
910
910
|
fn: $((he) => [
|
|
911
|
-
|
|
911
|
+
x(j.$slots, `${d.t}-${s.value}-${b}`, { data: he }, void 0, !0)
|
|
912
912
|
])
|
|
913
913
|
}))
|
|
914
|
-
]), 1040, ["modelValue", "type", "format", "placeholder", "value-format", "disabled"])) : o.value == F(De).COLOR ? (m(), D(
|
|
914
|
+
]), 1040, ["modelValue", "type", "format", "placeholder", "value-format", "disabled"])) : o.value == F(De).COLOR ? (m(), D(C, Y({
|
|
915
915
|
key: 10,
|
|
916
916
|
modelValue: l.value,
|
|
917
917
|
"onUpdate:modelValue": E[12] || (E[12] = (b) => l.value = b)
|
|
@@ -935,7 +935,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
935
935
|
W(V(), (b) => ({
|
|
936
936
|
name: b,
|
|
937
937
|
fn: $((he) => [
|
|
938
|
-
|
|
938
|
+
x(j.$slots, `${d.t}-${s.value}-${b}`, { data: he }, void 0, !0)
|
|
939
939
|
])
|
|
940
940
|
}))
|
|
941
941
|
]), 1040, ["modelValue", "disabled"])) : o.value == F(De).TRANSFER ? (m(), D(we, Y({
|
|
@@ -946,10 +946,10 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
946
946
|
W(V(), (b) => ({
|
|
947
947
|
name: b,
|
|
948
948
|
fn: $((he) => [
|
|
949
|
-
|
|
949
|
+
x(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)
|
|
@@ -957,7 +957,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
957
957
|
W(V(), (b) => ({
|
|
958
958
|
name: b,
|
|
959
959
|
fn: $((he) => [
|
|
960
|
-
|
|
960
|
+
x(j.$slots, `${d.t}-${s.value}-${b}`, { data: he }, void 0, !0)
|
|
961
961
|
])
|
|
962
962
|
}))
|
|
963
963
|
]), 1040, ["modelValue", "options"])) : o.value == F(De).IMAGE ? (m(), D(tt, Y({
|
|
@@ -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: xe
|
|
973
973
|
}), $e({
|
|
974
974
|
default: $(() => {
|
|
975
975
|
var b, he;
|
|
@@ -984,7 +984,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
984
984
|
onClick: E[20] || (E[20] = (ge) => ge.stopPropagation()),
|
|
985
985
|
style: { display: "flex", width: "var(--up-width)", height: "var(--up-height)", position: "relative", "align-items": "center", "justify-content": "center", "box-sizing": "border-box" }
|
|
986
986
|
}, [
|
|
987
|
-
|
|
987
|
+
K("div", ua, [
|
|
988
988
|
de(je, Y({
|
|
989
989
|
style: { width: "var(--up-width)", height: "var(--up-height)" },
|
|
990
990
|
src: l.value
|
|
@@ -992,12 +992,12 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
992
992
|
W(V(), (ge, at) => ({
|
|
993
993
|
name: ge,
|
|
994
994
|
fn: $((kt) => [
|
|
995
|
-
|
|
995
|
+
x(j.$slots, `${d.t}-${s.value}-${ge}`, { data: kt }, void 0, !0)
|
|
996
996
|
])
|
|
997
997
|
}))
|
|
998
998
|
]), 1040, ["src"])
|
|
999
999
|
]),
|
|
1000
|
-
|
|
1000
|
+
K("div", {
|
|
1001
1001
|
style: { display: "flex", width: "var(--up-width)", height: "var(--up-height)", position: "absolute", "align-items": "center", "justify-content": "center" },
|
|
1002
1002
|
onMouseenter: E[18] || (E[18] = (ge) => h.value = !0),
|
|
1003
1003
|
onMouseleave: E[19] || (E[19] = (ge) => h.value = !1),
|
|
@@ -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
|
|
@@ -1040,7 +1040,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1040
1040
|
W(V(), (b, he) => ({
|
|
1041
1041
|
name: b,
|
|
1042
1042
|
fn: $((ge) => [
|
|
1043
|
-
|
|
1043
|
+
x(j.$slots, `${d.t}-${s.value}-${b}`, { data: ge }, void 0, !0)
|
|
1044
1044
|
])
|
|
1045
1045
|
}))
|
|
1046
1046
|
]), 1040, ["file-list"])) : o.value == F(De).AUTOCOMPLETE ? (m(), D(ht, Y({
|
|
@@ -1051,7 +1051,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1051
1051
|
W(V(), (b, he) => ({
|
|
1052
1052
|
name: b,
|
|
1053
1053
|
fn: $((ge) => [
|
|
1054
|
-
|
|
1054
|
+
x(j.$slots, `${d.t}-${s.value}-${b}`, { data: ge }, void 0, !0)
|
|
1055
1055
|
])
|
|
1056
1056
|
}))
|
|
1057
1057
|
]), 1040, ["modelValue", "placeholder"])) : o.value == F(De).INPUTNUMBER ? (m(), D(St, Y({
|
|
@@ -1064,7 +1064,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1064
1064
|
W(V(), (b, he) => ({
|
|
1065
1065
|
name: b,
|
|
1066
1066
|
fn: $((ge) => [
|
|
1067
|
-
|
|
1067
|
+
x(j.$slots, `${d.t}-${s.value}-${b}`, {
|
|
1068
1068
|
data: ge,
|
|
1069
1069
|
form: n.formInfo
|
|
1070
1070
|
}, void 0, !0)
|
|
@@ -1083,7 +1083,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1083
1083
|
fn: $(() => {
|
|
1084
1084
|
var b;
|
|
1085
1085
|
return [
|
|
1086
|
-
|
|
1086
|
+
K("div", {
|
|
1087
1087
|
innerHTML: ((b = e.value) == null ? void 0 : b.suffix) || ""
|
|
1088
1088
|
}, null, 8, ia)
|
|
1089
1089
|
];
|
|
@@ -1095,7 +1095,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1095
1095
|
fn: $(() => {
|
|
1096
1096
|
var b;
|
|
1097
1097
|
return [
|
|
1098
|
-
|
|
1098
|
+
K("div", {
|
|
1099
1099
|
innerHTML: ((b = e.value) == null ? void 0 : b.prefix) || ""
|
|
1100
1100
|
}, null, 8, da)
|
|
1101
1101
|
];
|
|
@@ -1105,7 +1105,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1105
1105
|
W(V(), (b, he) => ({
|
|
1106
1106
|
name: b,
|
|
1107
1107
|
fn: $((ge) => [
|
|
1108
|
-
|
|
1108
|
+
x(j.$slots, `${d.t}-${s.value}-${b}`, {
|
|
1109
1109
|
data: ge,
|
|
1110
1110
|
form: n.formInfo
|
|
1111
1111
|
}, void 0, !0)
|
|
@@ -1115,16 +1115,16 @@ 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: $(() => [
|
|
1127
|
-
|
|
1127
|
+
K("div", {
|
|
1128
1128
|
title: F(Nt)(l.value),
|
|
1129
1129
|
style: { "font-size": "10px", display: "block", width: "80px", "text-align": "right", overflow: "hidden", "text-overflow": "ellipsis" }
|
|
1130
1130
|
}, Ie(F(Nt)(l.value)), 9, ca)
|
|
@@ -1134,7 +1134,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1134
1134
|
W(V(), (b, he) => ({
|
|
1135
1135
|
name: b,
|
|
1136
1136
|
fn: $((ge) => [
|
|
1137
|
-
|
|
1137
|
+
x(j.$slots, `${d.t}-${s.value}-${b}`, { data: ge }, void 0, !0)
|
|
1138
1138
|
])
|
|
1139
1139
|
}))
|
|
1140
1140
|
]), 1040, ["modelValue", "placeholder", "maxlength"])
|
|
@@ -1160,7 +1160,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1160
1160
|
}, [
|
|
1161
1161
|
Q.value ? (m(), D(He, qt(Y({ key: 0 }, e.value)), {
|
|
1162
1162
|
default: $(() => [
|
|
1163
|
-
|
|
1163
|
+
K("div", { innerHTML: Q.value }, null, 8, fa)
|
|
1164
1164
|
]),
|
|
1165
1165
|
_: 1
|
|
1166
1166
|
}, 16)) : (m(), D(He, qt(Y({ key: 1 }, e.value)), null, 16))
|
|
@@ -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();
|
|
@@ -1222,7 +1222,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1222
1222
|
fn: $(() => {
|
|
1223
1223
|
var b;
|
|
1224
1224
|
return [
|
|
1225
|
-
|
|
1225
|
+
K("div", {
|
|
1226
1226
|
innerHTML: ((b = e.value) == null ? void 0 : b.suffix) || ""
|
|
1227
1227
|
}, null, 8, ma)
|
|
1228
1228
|
];
|
|
@@ -1234,7 +1234,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1234
1234
|
fn: $(() => {
|
|
1235
1235
|
var b;
|
|
1236
1236
|
return [
|
|
1237
|
-
|
|
1237
|
+
K("div", {
|
|
1238
1238
|
innerHTML: ((b = e.value) == null ? void 0 : b.prefix) || ""
|
|
1239
1239
|
}, null, 8, ha)
|
|
1240
1240
|
];
|
|
@@ -1246,7 +1246,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1246
1246
|
fn: $(() => {
|
|
1247
1247
|
var b;
|
|
1248
1248
|
return [
|
|
1249
|
-
|
|
1249
|
+
K("div", {
|
|
1250
1250
|
innerHTML: ((b = e.value) == null ? void 0 : b.append) || ""
|
|
1251
1251
|
}, null, 8, ya)
|
|
1252
1252
|
];
|
|
@@ -1258,7 +1258,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1258
1258
|
fn: $(() => {
|
|
1259
1259
|
var b;
|
|
1260
1260
|
return [
|
|
1261
|
-
|
|
1261
|
+
K("div", {
|
|
1262
1262
|
innerHTML: ((b = e.value) == null ? void 0 : b.prepend) || ""
|
|
1263
1263
|
}, null, 8, ga)
|
|
1264
1264
|
];
|
|
@@ -1268,7 +1268,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1268
1268
|
W(V(), (b, he) => ({
|
|
1269
1269
|
name: b,
|
|
1270
1270
|
fn: $((ge) => [
|
|
1271
|
-
|
|
1271
|
+
x(j.$slots, `${d.t}-${s.value}-${b}`, {
|
|
1272
1272
|
data: ge,
|
|
1273
1273
|
form: n.formInfo
|
|
1274
1274
|
}, void 0, !0)
|
|
@@ -1316,8 +1316,8 @@ 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 =
|
|
1320
|
-
return m(!0), z(se, null, W(o(e.more), (r, c) =>
|
|
1319
|
+
const u = H("el-form-item");
|
|
1320
|
+
return m(!0), z(se, null, W(o(e.more), (r, c) => x(v.$slots, `q-${c}`, {
|
|
1321
1321
|
key: c,
|
|
1322
1322
|
item: r,
|
|
1323
1323
|
queryModel: l.value,
|
|
@@ -1328,7 +1328,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1328
1328
|
style: { width: S(r) }
|
|
1329
1329
|
}, { ref_for: !0 }, { ...d.value.queryItems, ...F(We)(t(r), (q) => q != "onClick") }), {
|
|
1330
1330
|
label: $(() => [
|
|
1331
|
-
|
|
1331
|
+
x(v.$slots, `q-${c}-label`, {
|
|
1332
1332
|
item: r,
|
|
1333
1333
|
model: d.value
|
|
1334
1334
|
})
|
|
@@ -1347,7 +1347,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1347
1347
|
W(Object.keys(v.$slots), (q) => ({
|
|
1348
1348
|
name: q,
|
|
1349
1349
|
fn: $((U) => [
|
|
1350
|
-
|
|
1350
|
+
x(v.$slots, q, {
|
|
1351
1351
|
data: U,
|
|
1352
1352
|
item: r,
|
|
1353
1353
|
model: d.value,
|
|
@@ -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, J, 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 = (J = (R = e.value) == null ? void 0 : R.query) == null ? void 0 : J.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, xe) => L.sort - xe.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, J, fe, Te, Ve, ve, L, xe, 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
|
+
K("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,31 +1548,31 @@ 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
|
-
|
|
1554
|
-
style: Ue((ae = (
|
|
1553
|
+
K("div", {
|
|
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: $(() => [
|
|
1558
|
-
(m(!0), z(se, null, W(c(), (me) =>
|
|
1558
|
+
(m(!0), z(se, null, W(c(), (me) => x(V.$slots, me.props.slot, {}, () => [
|
|
1559
1559
|
(m(), D(Ze(me)))
|
|
1560
1560
|
], !0)), 256)),
|
|
1561
|
-
|
|
1561
|
+
x(V.$slots, "q-btns", {}, void 0, !0)
|
|
1562
1562
|
]),
|
|
1563
1563
|
_: 3
|
|
1564
1564
|
})) : (m(), z(se, { key: 1 }, [
|
|
1565
1565
|
(oe = (Ye = (_e = e.value) == null ? void 0 : _e.query) == null ? void 0 : Ye.btns) != null && oe.group ? (m(), D(F(It), { key: 0 }, {
|
|
1566
1566
|
default: $(() => [
|
|
1567
|
-
(m(!0), z(se, null, W(c(), (me) =>
|
|
1567
|
+
(m(!0), z(se, null, W(c(), (me) => x(V.$slots, me.props.slot, {}, () => [
|
|
1568
1568
|
(m(), D(Ze(me)))
|
|
1569
1569
|
], !0)), 256))
|
|
1570
1570
|
]),
|
|
1571
1571
|
_: 3
|
|
1572
|
-
})) : (m(!0), z(se, { key: 1 }, W(c(), (me) =>
|
|
1572
|
+
})) : (m(!0), z(se, { key: 1 }, W(c(), (me) => x(V.$slots, me.props.slot, {}, () => [
|
|
1573
1573
|
(m(), D(Ze(me)))
|
|
1574
1574
|
], !0)), 256)),
|
|
1575
|
-
|
|
1575
|
+
x(V.$slots, "q-btns", {}, void 0, !0)
|
|
1576
1576
|
], 64))
|
|
1577
1577
|
], 4)
|
|
1578
1578
|
];
|
|
@@ -1583,34 +1583,34 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1583
1583
|
}),
|
|
1584
1584
|
_: 3
|
|
1585
1585
|
}, 16),
|
|
1586
|
-
((
|
|
1586
|
+
((Te = (fe = (J = e.value) == null ? void 0 : J.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: $(() => [
|
|
1592
|
-
(m(!0), z(se, null, W(c(), (M) =>
|
|
1592
|
+
(m(!0), z(se, null, W(c(), (M) => x(V.$slots, M.props.slot, {}, () => [
|
|
1593
1593
|
(m(), D(Ze(M)))
|
|
1594
1594
|
], !0)), 256)),
|
|
1595
|
-
|
|
1595
|
+
x(V.$slots, "q-btns", {}, void 0, !0)
|
|
1596
1596
|
]),
|
|
1597
1597
|
_: 3
|
|
1598
1598
|
})) : (m(), z(se, { key: 1 }, [
|
|
1599
|
-
(
|
|
1599
|
+
(xe = (L = e.value.query) == null ? void 0 : L.btns) != null && xe.group ? (m(), D(F(It), { key: 0 }, {
|
|
1600
1600
|
default: $(() => [
|
|
1601
|
-
(m(!0), z(se, null, W(c(), (M) =>
|
|
1601
|
+
(m(!0), z(se, null, W(c(), (M) => x(V.$slots, M.props.slot, {}, () => [
|
|
1602
1602
|
(m(), D(Ze(M)))
|
|
1603
1603
|
], !0)), 256))
|
|
1604
1604
|
]),
|
|
1605
1605
|
_: 3
|
|
1606
|
-
})) : (m(!0), z(se, { key: 1 }, W(c(), (M) =>
|
|
1606
|
+
})) : (m(!0), z(se, { key: 1 }, W(c(), (M) => x(V.$slots, M.props.slot, {}, () => [
|
|
1607
1607
|
(m(), D(Ze(M)))
|
|
1608
1608
|
], !0)), 256)),
|
|
1609
|
-
|
|
1609
|
+
x(V.$slots, "q-btns", {}, void 0, !0)
|
|
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,10 +1630,10 @@ 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
|
+
x(V.$slots, I, { model: e.value }, void 0, !0)
|
|
1637
1637
|
])
|
|
1638
1638
|
}))
|
|
1639
1639
|
]), 1032, ["modelValue", "info"])
|
|
@@ -1646,7 +1646,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1646
1646
|
(T = (p = (w = (_ = (y = e.value) == null ? void 0 : y.query) == null ? void 0 : _.more) == null ? void 0 : w.dialog) == null ? void 0 : p.footer) != null && T.hidden ? void 0 : {
|
|
1647
1647
|
name: "footer",
|
|
1648
1648
|
fn: $(() => [
|
|
1649
|
-
|
|
1649
|
+
K("div", qt(ml(e.value.query.more.dialog.footer)), [
|
|
1650
1650
|
de(F(Ne), Y(e.value.query.query, {
|
|
1651
1651
|
onClick: k[4] || (k[4] = (M) => e.value.query.query.click())
|
|
1652
1652
|
}), {
|
|
@@ -1674,10 +1674,10 @@ 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 && !((
|
|
1680
|
-
|
|
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
|
+
K("div", $a, [
|
|
1681
1681
|
e.value.query.more.mode == 1 ? Fl((m(), D(F(Dt), Y({
|
|
1682
1682
|
key: 0,
|
|
1683
1683
|
onSubmit: k[7] || (k[7] = yt(() => {
|
|
@@ -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: {
|
|
@@ -1763,7 +1763,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1763
1763
|
height: "200px",
|
|
1764
1764
|
style: { minHeight: "200px" }
|
|
1765
1765
|
}
|
|
1766
|
-
}, Xt = ["table", "tableColumns", "query", "queryItems", "form", "formItems", "control", "dialog"],
|
|
1766
|
+
}, Xt = ["table", "tableColumns", "query", "queryItems", "form", "formItems", "control", "dialog"], Ca = { class: "g-form-container" }, xa = /* @__PURE__ */ Object.assign({
|
|
1767
1767
|
name: "g-form",
|
|
1768
1768
|
inheritAttrs: !1
|
|
1769
1769
|
}, {
|
|
@@ -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, xe, 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
|
+
{ ...(xe = zt()) == null ? void 0 : xe.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
|
}
|
|
@@ -1910,8 +1910,8 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1910
1910
|
const _ = typeof y.editor == "function" ? y.editor(f.value, (w = l.value.form) == null ? void 0 : w.modalState) : y.editor;
|
|
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
|
-
|
|
1914
|
-
Q(), v != null && v.editForm ? f.value = v.editForm : f.value =
|
|
1913
|
+
Ct(() => {
|
|
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
|
+
}), J = 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,8 +2017,8 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
2017
2017
|
formData: f
|
|
2018
2018
|
}), (y, _) => {
|
|
2019
2019
|
var ae, _e, Ye;
|
|
2020
|
-
const w =
|
|
2021
|
-
return m(), z("div",
|
|
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
|
+
return m(), z("div", Ca, [
|
|
2022
2022
|
de(I, Y(
|
|
2023
2023
|
{
|
|
2024
2024
|
ref_key: "gform",
|
|
@@ -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 ? x(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: J.value,
|
|
2045
|
+
"onUpdate:modelValue": _[0] || (_[0] = (be) => J.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,
|
|
@@ -2066,7 +2066,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
2066
2066
|
rules: q(ie == null ? void 0 : ie.item)
|
|
2067
2067
|
}, { ref_for: !0 }, { ...(j = l.value) == null ? void 0 : j.formItems, ...(E = ie == null ? void 0 : ie.item) == null ? void 0 : E.formItem }, { style: { width: "100%" } }), {
|
|
2068
2068
|
default: $(() => [
|
|
2069
|
-
|
|
2069
|
+
x(y.$slots, "f-" + ie.key, {
|
|
2070
2070
|
item: ie == null ? void 0 : ie.item,
|
|
2071
2071
|
formInfo: f.value,
|
|
2072
2072
|
model: l.value,
|
|
@@ -2087,7 +2087,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
2087
2087
|
W(y.$slots, (X, Oe) => ({
|
|
2088
2088
|
name: Oe,
|
|
2089
2089
|
fn: $((Ae) => [
|
|
2090
|
-
|
|
2090
|
+
x(y.$slots, Oe, {
|
|
2091
2091
|
data: Ae,
|
|
2092
2092
|
item: ie.item,
|
|
2093
2093
|
model: l.value
|
|
@@ -2110,7 +2110,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
2110
2110
|
_: 3
|
|
2111
2111
|
}, 16, ["modelValue", "style"])
|
|
2112
2112
|
];
|
|
2113
|
-
}, !0) :
|
|
2113
|
+
}, !0) : x(y.$slots, "default", { key: 1 }, () => [
|
|
2114
2114
|
(m(!0), z(se, null, W(G.value, (oe, me) => (m(), D(p, Y({ ref_for: !0 }, { ...l.value.form.cols, ...oe.col }, {
|
|
2115
2115
|
key: me,
|
|
2116
2116
|
style: { width: "100%" }
|
|
@@ -2124,7 +2124,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
2124
2124
|
rules: q(oe)
|
|
2125
2125
|
}, { ref_for: !0 }, { ...(Fe = l.value) == null ? void 0 : Fe.formItems, ...oe == null ? void 0 : oe.formItem }, { style: { width: "100%" } }), {
|
|
2126
2126
|
label: $((be) => [
|
|
2127
|
-
|
|
2127
|
+
x(y.$slots, `f-${me}-label`, {
|
|
2128
2128
|
data: be,
|
|
2129
2129
|
item: oe,
|
|
2130
2130
|
model: l.value
|
|
@@ -2133,7 +2133,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
2133
2133
|
], !0)
|
|
2134
2134
|
]),
|
|
2135
2135
|
default: $(() => [
|
|
2136
|
-
|
|
2136
|
+
x(y.$slots, "f-" + me, {
|
|
2137
2137
|
item: oe,
|
|
2138
2138
|
formInfo: f.value,
|
|
2139
2139
|
model: l.value,
|
|
@@ -2154,7 +2154,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
2154
2154
|
W(y.$slots, (be, ie) => ({
|
|
2155
2155
|
name: ie,
|
|
2156
2156
|
fn: $((Ge) => [
|
|
2157
|
-
|
|
2157
|
+
x(y.$slots, ie, {
|
|
2158
2158
|
data: Ge,
|
|
2159
2159
|
item: oe,
|
|
2160
2160
|
model: l.value
|
|
@@ -2174,17 +2174,17 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
2174
2174
|
]),
|
|
2175
2175
|
_: 3
|
|
2176
2176
|
}, 16, ["model"]),
|
|
2177
|
-
(Ye = (_e = (ae = l.value) == null ? void 0 : ae.form) == null ? void 0 : _e.footer) != null && Ye.hidden ? ke("", !0) :
|
|
2178
|
-
|
|
2177
|
+
(Ye = (_e = (ae = l.value) == null ? void 0 : ae.form) == null ? void 0 : _e.footer) != null && Ye.hidden ? ke("", !0) : x(y.$slots, "f-footer", { key: 0 }, () => [
|
|
2178
|
+
K("div", {
|
|
2179
2179
|
style: Ue({ justifyContent: k(l.value.form.footer.align), ...l.value.form.footer.style })
|
|
2180
2180
|
}, [
|
|
2181
|
-
|
|
2182
|
-
(m(!0), z(se, null, W(
|
|
2183
|
-
|
|
2184
|
-
|
|
2181
|
+
x(y.$slots, "f-footer-left", {}, void 0, !0),
|
|
2182
|
+
(m(!0), z(se, null, W(Te.value, (oe) => (m(), z(se, null, [
|
|
2183
|
+
x(y.$slots, oe.name + "-left", {}, void 0, !0),
|
|
2184
|
+
x(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, {
|
|
@@ -2197,15 +2197,15 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
2197
2197
|
}, 1040, ["onClick"]))
|
|
2198
2198
|
];
|
|
2199
2199
|
}, !0),
|
|
2200
|
-
|
|
2200
|
+
x(y.$slots, oe.name + "-right", {}, void 0, !0)
|
|
2201
2201
|
], 64))), 256)),
|
|
2202
|
-
|
|
2202
|
+
x(y.$slots, "f-footer-right", {}, void 0, !0)
|
|
2203
2203
|
], 4)
|
|
2204
2204
|
], !0)
|
|
2205
2205
|
]);
|
|
2206
2206
|
};
|
|
2207
2207
|
}
|
|
2208
|
-
}), Ft = /* @__PURE__ */ nt(
|
|
2208
|
+
}), Ft = /* @__PURE__ */ nt(xa, [["__scopeId", "data-v-5a0fe2f9"]]), Ma = { class: "dialog-container" }, Sa = {
|
|
2209
2209
|
key: 1,
|
|
2210
2210
|
style: { overflow: "hidden" }
|
|
2211
2211
|
}, Ta = { style: { display: "flex", flex: "1", "margin-left": "10px" } }, Ea = /* @__PURE__ */ Object.assign({
|
|
@@ -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] = (J) => v.value = J),
|
|
2314
2314
|
onOpen: c,
|
|
2315
2315
|
onOpened: q,
|
|
2316
2316
|
"lock-scroll": !0,
|
|
@@ -2321,19 +2321,19 @@ 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
|
-
|
|
2326
|
-
titleClass:
|
|
2327
|
-
closeIconClass:
|
|
2324
|
+
header: $(({ titleClass: J, closeIconClass: fe }) => [
|
|
2325
|
+
x(le.$slots, "header", {
|
|
2326
|
+
titleClass: J,
|
|
2327
|
+
closeIconClass: fe
|
|
2328
2328
|
}, () => [
|
|
2329
|
-
|
|
2329
|
+
K("div", {
|
|
2330
2330
|
class: "custom-header",
|
|
2331
2331
|
style: Ue(l.headerStyle)
|
|
2332
2332
|
}, [
|
|
2333
|
-
|
|
2334
|
-
|
|
2333
|
+
x(le.$slots, "title", {}, () => [
|
|
2334
|
+
K("span", Ta, Ie(n.title), 1)
|
|
2335
2335
|
], !0),
|
|
2336
|
-
|
|
2336
|
+
K("div", null, [
|
|
2337
2337
|
n.minimize ? (m(), D(F(Ht), {
|
|
2338
2338
|
key: 0,
|
|
2339
2339
|
class: "btn-icon",
|
|
@@ -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
|
-
|
|
2372
|
+
x(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
|
-
|
|
2379
|
+
x(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
|
-
|
|
2386
|
+
x(le.$slots, "trigger", {}, void 0, !0)
|
|
2387
2387
|
]),
|
|
2388
2388
|
key: "1"
|
|
2389
2389
|
} : void 0
|
|
@@ -2424,8 +2424,8 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
2424
2424
|
}
|
|
2425
2425
|
});
|
|
2426
2426
|
};
|
|
2427
|
-
return
|
|
2428
|
-
const S = new
|
|
2427
|
+
return Ct(() => {
|
|
2428
|
+
const S = new Cl(document.getElementById("excelSortEl"), {
|
|
2429
2429
|
animation: 150,
|
|
2430
2430
|
onEnd: () => {
|
|
2431
2431
|
S.toArray();
|
|
@@ -2435,22 +2435,22 @@ 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
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2440
|
+
K("div", null, [
|
|
2441
|
+
K("div", Da, [
|
|
2442
|
+
K("div", Ia, [
|
|
2443
|
+
K("a", {
|
|
2444
2444
|
onClick: o,
|
|
2445
2445
|
style: { cursor: "pointer" }
|
|
2446
2446
|
}, "全选"),
|
|
2447
2447
|
de(h, { direction: "vertical" }),
|
|
2448
|
-
|
|
2448
|
+
K("a", {
|
|
2449
2449
|
onClick: t,
|
|
2450
2450
|
style: { cursor: "pointer" }
|
|
2451
2451
|
}, "全不选")
|
|
2452
2452
|
]),
|
|
2453
|
-
|
|
2453
|
+
K("div", null, [
|
|
2454
2454
|
de(r, {
|
|
2455
2455
|
title: "拖动列标题可以改变表格列的生成顺序 !",
|
|
2456
2456
|
type: "warning"
|
|
@@ -2468,8 +2468,8 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
2468
2468
|
})
|
|
2469
2469
|
])
|
|
2470
2470
|
]),
|
|
2471
|
-
v[1] || (v[1] =
|
|
2472
|
-
|
|
2471
|
+
v[1] || (v[1] = K("div", { style: { margin: "1px 0" } }, null, -1)),
|
|
2472
|
+
K("div", Oa, [
|
|
2473
2473
|
(m(!0), z(se, null, W(s.value, (U) => (m(), D(c, {
|
|
2474
2474
|
class: "check-box-hover",
|
|
2475
2475
|
style: { width: "120px !important", height: "30px !important", border: "1px solid #dfe6ec", margin: "5px !important", "border-radius": "3px !important", "padding-left": "5px !important", display: "flex !important", "align-items": "center !important" },
|
|
@@ -2480,7 +2480,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
2480
2480
|
title: U.label
|
|
2481
2481
|
}, {
|
|
2482
2482
|
default: $(() => [
|
|
2483
|
-
|
|
2483
|
+
K("span", {
|
|
2484
2484
|
textContent: Ie(U.label),
|
|
2485
2485
|
style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
|
|
2486
2486
|
}, null, 8, qa)
|
|
@@ -2489,7 +2489,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
2489
2489
|
}, 1032, ["data-id", "modelValue", "onUpdate:modelValue", "title"]))), 128))
|
|
2490
2490
|
])
|
|
2491
2491
|
]),
|
|
2492
|
-
|
|
2492
|
+
K("div", Aa, [
|
|
2493
2493
|
de(q, {
|
|
2494
2494
|
type: "primary",
|
|
2495
2495
|
onClick: f,
|
|
@@ -2505,8 +2505,8 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
2505
2505
|
]);
|
|
2506
2506
|
};
|
|
2507
2507
|
}
|
|
2508
|
-
}, Fa = /* @__PURE__ */ nt(Ya, [["__scopeId", "data-v-8d7383f9"]]), ja = "vue-gyc-ui", za = 1,
|
|
2509
|
-
|
|
2508
|
+
}, Fa = /* @__PURE__ */ nt(Ya, [["__scopeId", "data-v-8d7383f9"]]), ja = "vue-gyc-ui", za = 1, Ce = new ra(ja);
|
|
2509
|
+
Ce.version(za).stores({
|
|
2510
2510
|
// 记录表格项设置信息
|
|
2511
2511
|
tableWidths: "++id, [page+key], page, key,width",
|
|
2512
2512
|
// 记录表格分页条数
|
|
@@ -2522,8 +2522,8 @@ const mt = (n, d) => {
|
|
|
2522
2522
|
};
|
|
2523
2523
|
async function Ot(n, d, e) {
|
|
2524
2524
|
try {
|
|
2525
|
-
const l = await
|
|
2526
|
-
l ? e === "add" ? l.keys.includes(d) || (l.keys.push(d), await
|
|
2525
|
+
const l = await Ce.tableColsState.where({ page: n }).first();
|
|
2526
|
+
l ? e === "add" ? l.keys.includes(d) || (l.keys.push(d), await Ce.tableColsState.put(l)) : e === "del" ? (l.keys = l.keys.filter((s) => s !== d), await Ce.tableColsState.put(l)) : e === "delAll" ? (l.keys = d, await Ce.tableColsState.put(l)) : e === "selectAll" && await Ce.tableColsState.where({ page: n }).delete() : e === "add" ? await Ce.tableColsState.add({ page: n, keys: [d] }) : e === "delAll" && await Ce.tableColsState.add({ page: n, keys: d });
|
|
2527
2527
|
} catch (l) {
|
|
2528
2528
|
throw console.error(`处理表格列状态时出错 (page: ${n}, key: ${d}, state: ${e}):`, l), l;
|
|
2529
2529
|
}
|
|
@@ -2531,8 +2531,8 @@ async function Ot(n, d, e) {
|
|
|
2531
2531
|
async function Ua(n, d, e) {
|
|
2532
2532
|
mt(n);
|
|
2533
2533
|
try {
|
|
2534
|
-
const l = await
|
|
2535
|
-
return l ? (await
|
|
2534
|
+
const l = await Ce.tableWidths.where({ page: n, key: d }).first();
|
|
2535
|
+
return l ? (await Ce.tableWidths.put({ ...l, width: e }), "update success") : (await Ce.tableWidths.add({ page: n, key: d, width: e }), "add success");
|
|
2536
2536
|
} catch (l) {
|
|
2537
2537
|
throw console.error(`保存表格项设置信息时出错 (page: ${n}, key: ${d}):`, l), l;
|
|
2538
2538
|
}
|
|
@@ -2540,7 +2540,7 @@ async function Ua(n, d, e) {
|
|
|
2540
2540
|
async function La(n) {
|
|
2541
2541
|
mt(n);
|
|
2542
2542
|
try {
|
|
2543
|
-
return await
|
|
2543
|
+
return await Ce.tableWidths.where({ page: n }).toArray();
|
|
2544
2544
|
} catch (d) {
|
|
2545
2545
|
throw console.error(`获取表格项设置信息时出错 (page: ${n}):`, d), d;
|
|
2546
2546
|
}
|
|
@@ -2548,7 +2548,7 @@ async function La(n) {
|
|
|
2548
2548
|
async function Ha(n) {
|
|
2549
2549
|
mt(n);
|
|
2550
2550
|
try {
|
|
2551
|
-
const d = await
|
|
2551
|
+
const d = await Ce.tableColsState.where({ page: n }).toArray();
|
|
2552
2552
|
return !d || d.length === 0 ? [] : d[0].keys;
|
|
2553
2553
|
} catch (d) {
|
|
2554
2554
|
throw console.error(`获取表格列状态时出错 (page: ${n}):`, d), d;
|
|
@@ -2557,12 +2557,12 @@ async function Ha(n) {
|
|
|
2557
2557
|
async function Ra(n) {
|
|
2558
2558
|
mt(n);
|
|
2559
2559
|
try {
|
|
2560
|
-
return await
|
|
2560
|
+
return await Ce.transaction("rw", Ce.tableWidths, Ce.pageInfo, Ce.sorts, Ce.tableColsState, async () => {
|
|
2561
2561
|
await Promise.all([
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2562
|
+
Ce.tableWidths.where({ page: n }).delete(),
|
|
2563
|
+
Ce.pageInfo.where({ page: n }).delete(),
|
|
2564
|
+
Ce.sorts.where({ page: n }).delete(),
|
|
2565
|
+
Ce.tableColsState.where({ page: n }).delete()
|
|
2566
2566
|
]);
|
|
2567
2567
|
});
|
|
2568
2568
|
} catch (d) {
|
|
@@ -2572,8 +2572,8 @@ async function Ra(n) {
|
|
|
2572
2572
|
async function Ba({ page: n, size: d }) {
|
|
2573
2573
|
mt(n);
|
|
2574
2574
|
try {
|
|
2575
|
-
const e = await
|
|
2576
|
-
return e ? (await
|
|
2575
|
+
const e = await Ce.pageInfo.where({ page: n }).first();
|
|
2576
|
+
return e ? (await Ce.pageInfo.put({ ...e, size: d }), "update success") : (await Ce.pageInfo.add({ page: n, size: d }), "add success");
|
|
2577
2577
|
} catch (e) {
|
|
2578
2578
|
throw console.error(`保存分页条数时出错 (page: ${n}):`, e), e;
|
|
2579
2579
|
}
|
|
@@ -2581,7 +2581,7 @@ async function Ba({ page: n, size: d }) {
|
|
|
2581
2581
|
async function Pa(n) {
|
|
2582
2582
|
mt(n);
|
|
2583
2583
|
try {
|
|
2584
|
-
const d = await
|
|
2584
|
+
const d = await Ce.pageInfo.where({ page: n }).first();
|
|
2585
2585
|
return d == null ? void 0 : d.size;
|
|
2586
2586
|
} catch (d) {
|
|
2587
2587
|
throw console.error(`获取分页条数时出错 (page: ${n}):`, d), d;
|
|
@@ -2590,8 +2590,8 @@ async function Pa(n) {
|
|
|
2590
2590
|
async function Na(n, d) {
|
|
2591
2591
|
mt(n);
|
|
2592
2592
|
try {
|
|
2593
|
-
const e = await
|
|
2594
|
-
return e ? (await
|
|
2593
|
+
const e = await Ce.sorts.where({ page: n }).first();
|
|
2594
|
+
return e ? (await Ce.sorts.put({ ...e, keys: d }), "update success") : (await Ce.sorts.add({ page: n, keys: d }), "add success");
|
|
2595
2595
|
} catch (e) {
|
|
2596
2596
|
throw console.error(`保存表格字段顺序时出错 (page: ${n}):`, e), e;
|
|
2597
2597
|
}
|
|
@@ -2599,7 +2599,7 @@ async function Na(n, d) {
|
|
|
2599
2599
|
async function Wa(n) {
|
|
2600
2600
|
mt(n);
|
|
2601
2601
|
try {
|
|
2602
|
-
const d = await
|
|
2602
|
+
const d = await Ce.sorts.where({ page: n }).first();
|
|
2603
2603
|
return (d == null ? void 0 : d.keys) || [];
|
|
2604
2604
|
} catch (d) {
|
|
2605
2605
|
throw console.error(`获取表格字段顺序时出错 (page: ${n}):`, d), d;
|
|
@@ -2631,7 +2631,7 @@ const Ga = { style: { padding: "15px", "box-sizing": "border-box" } }, Xa = { st
|
|
|
2631
2631
|
}, f = () => {
|
|
2632
2632
|
const u = document.getElementById("cols");
|
|
2633
2633
|
if (u) {
|
|
2634
|
-
let r =
|
|
2634
|
+
let r = Cl.create(u, {
|
|
2635
2635
|
animation: 150,
|
|
2636
2636
|
filter: ".filtered",
|
|
2637
2637
|
sort: !0,
|
|
@@ -2693,7 +2693,7 @@ const Ga = { style: { padding: "15px", "box-sizing": "border-box" } }, Xa = { st
|
|
|
2693
2693
|
});
|
|
2694
2694
|
});
|
|
2695
2695
|
};
|
|
2696
|
-
return
|
|
2696
|
+
return Ct(async () => {
|
|
2697
2697
|
s.value = Object.entries(o.value).filter(([, u]) => u.visible !== !1).filter(([, u]) => !["selection", "index", "expand", "control"].includes(u.type)).filter(([, u]) => u.type != "hidden").map(([u, r]) => ({
|
|
2698
2698
|
label: r.label,
|
|
2699
2699
|
value: u,
|
|
@@ -2703,15 +2703,15 @@ 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
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2708
|
+
K("div", Xa, [
|
|
2709
|
+
K("div", Qa, [
|
|
2710
|
+
K("a", { onClick: S }, "全选"),
|
|
2711
2711
|
de(c, { direction: "vertical" }),
|
|
2712
|
-
|
|
2712
|
+
K("a", { onClick: v }, "全不选"),
|
|
2713
2713
|
de(c, { direction: "vertical" }),
|
|
2714
|
-
|
|
2714
|
+
K("a", { onClick: h }, "复位")
|
|
2715
2715
|
]),
|
|
2716
2716
|
de(U, { type: "warning" }, {
|
|
2717
2717
|
default: $(() => [
|
|
@@ -2726,8 +2726,8 @@ const Ga = { style: { padding: "15px", "box-sizing": "border-box" } }, Xa = { st
|
|
|
2726
2726
|
_: 1
|
|
2727
2727
|
})
|
|
2728
2728
|
]),
|
|
2729
|
-
|
|
2730
|
-
|
|
2729
|
+
K("div", null, [
|
|
2730
|
+
K("div", Za, [
|
|
2731
2731
|
(m(!0), z(se, null, W(F(s), (k) => (m(), D(V, {
|
|
2732
2732
|
modelValue: k.showCol,
|
|
2733
2733
|
"onUpdate:modelValue": (Q) => k.showCol = Q,
|
|
@@ -2741,7 +2741,7 @@ const Ga = { style: { padding: "15px", "box-sizing": "border-box" } }, Xa = { st
|
|
|
2741
2741
|
key: k.value
|
|
2742
2742
|
}, {
|
|
2743
2743
|
default: $(() => [
|
|
2744
|
-
|
|
2744
|
+
K("span", {
|
|
2745
2745
|
textContent: Ie(k.label),
|
|
2746
2746
|
style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
|
|
2747
2747
|
}, null, 8, Ja)
|
|
@@ -2773,9 +2773,9 @@ const Ga = { style: { padding: "15px", "box-sizing": "border-box" } }, Xa = { st
|
|
|
2773
2773
|
class: "g-cell-toopTip",
|
|
2774
2774
|
style: Ue({ width: d.column.width + "px" })
|
|
2775
2775
|
}, [
|
|
2776
|
-
|
|
2777
|
-
s[0] || (s[0] =
|
|
2778
|
-
|
|
2776
|
+
K("div", tr, [
|
|
2777
|
+
s[0] || (s[0] = K("span", { class: "title-text" }, "内容", -1)),
|
|
2778
|
+
K("span", {
|
|
2779
2779
|
class: "copy-btn",
|
|
2780
2780
|
onClick: e,
|
|
2781
2781
|
title: "复制内容"
|
|
@@ -2783,7 +2783,7 @@ const Ga = { style: { padding: "15px", "box-sizing": "border-box" } }, Xa = { st
|
|
|
2783
2783
|
de(F(Jl))
|
|
2784
2784
|
])
|
|
2785
2785
|
]),
|
|
2786
|
-
|
|
2786
|
+
K("div", lr, Ie(d.content), 1)
|
|
2787
2787
|
], 4));
|
|
2788
2788
|
}
|
|
2789
2789
|
}, rr = /* @__PURE__ */ nt(ar, [["__scopeId", "data-v-f28912da"]]), nr = /* @__PURE__ */ Object.assign({
|
|
@@ -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,27 +2862,27 @@ 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
|
+
x(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
|
]),
|
|
2879
2879
|
default: $(() => [
|
|
2880
|
-
|
|
2880
|
+
x(r.$slots, `view-${k}`, {
|
|
2881
2881
|
row: d.row
|
|
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
|
-
|
|
2903
|
+
fn: $((le) => [
|
|
2904
|
+
x(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
|
};
|
|
@@ -3050,7 +3050,7 @@ function ur(n) {
|
|
|
3050
3050
|
};
|
|
3051
3051
|
})();
|
|
3052
3052
|
var ir = El.exports;
|
|
3053
|
-
const dr = /* @__PURE__ */
|
|
3053
|
+
const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
3054
3054
|
key: 0,
|
|
3055
3055
|
class: "table-query-container"
|
|
3056
3056
|
}, vr = { class: "table-container" }, pr = ["innerHTML"], mr = /* @__PURE__ */ Object.assign({
|
|
@@ -3082,15 +3082,15 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3082
3082
|
"node-init"
|
|
3083
3083
|
], ["update:modelValue", "update:selectedRows"]),
|
|
3084
3084
|
setup(n, { expose: d, emit: e }) {
|
|
3085
|
-
var lt, Xe, Je, Ke, et,
|
|
3085
|
+
var lt, Xe, Je, Ke, et, xt, Mt;
|
|
3086
3086
|
const l = re(""), s = n, o = e, t = ot(n, "modelValue"), f = jt("options"), S = re({}), v = re(!0), h = Object.entries(t.value).filter(([a, i]) => (i == null ? void 0 : i.search) !== void 0).map(([a, i]) => {
|
|
3087
|
-
var
|
|
3087
|
+
var C;
|
|
3088
3088
|
let g;
|
|
3089
3089
|
if (typeof i.search == "function") {
|
|
3090
3090
|
const O = i.search(S.value);
|
|
3091
3091
|
g = (O == null ? void 0 : O.value) ?? i.value;
|
|
3092
3092
|
} else
|
|
3093
|
-
g = ((
|
|
3093
|
+
g = ((C = i.search) == null ? void 0 : C.value) ?? i.value;
|
|
3094
3094
|
return [a, g];
|
|
3095
3095
|
});
|
|
3096
3096
|
S.value = Object.fromEntries(h);
|
|
@@ -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,
|
|
@@ -3140,9 +3140,9 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3140
3140
|
o(
|
|
3141
3141
|
"load",
|
|
3142
3142
|
{ currentPage: i, pageSize: g, ...S.value },
|
|
3143
|
-
(
|
|
3143
|
+
(C = [], O = 0, { fields: P = [], sums: N = {} } = {}) => {
|
|
3144
3144
|
var we;
|
|
3145
|
-
if (!Array.isArray(
|
|
3145
|
+
if (!Array.isArray(C)) {
|
|
3146
3146
|
console.error("从 load 事件回调中接收到的数据不是数组格式。"), ft.error("数据加载失败,请检查数据格式。");
|
|
3147
3147
|
return;
|
|
3148
3148
|
}
|
|
@@ -3150,12 +3150,12 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3150
3150
|
console.error("从 load 事件回调中接收到的 total 不是数字格式。"), ft.error("数据加载失败,请检查数据格式。");
|
|
3151
3151
|
return;
|
|
3152
3152
|
}
|
|
3153
|
-
t.value.table.data =
|
|
3153
|
+
t.value.table.data = C, ((we = t.value.control) == null ? void 0 : we.add(k.value, t).inline) === !0 && t.value.table.data.unshift(k.value), t.value.table.page.total = O, V.value = P, U.value = N, E(), Q.value = Math.random().toString(36).substring(2);
|
|
3154
3154
|
},
|
|
3155
3155
|
k.value
|
|
3156
3156
|
);
|
|
3157
|
-
} catch (
|
|
3158
|
-
console.error("触发 load 事件时出现错误:",
|
|
3157
|
+
} catch (C) {
|
|
3158
|
+
console.error("触发 load 事件时出现错误:", C), ft.error("数据加载时出现错误,请稍后重试。");
|
|
3159
3159
|
}
|
|
3160
3160
|
},
|
|
3161
3161
|
onHeaderDragend: (a, i, g) => {
|
|
@@ -3189,20 +3189,20 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3189
3189
|
},
|
|
3190
3190
|
dblclickType: "edit",
|
|
3191
3191
|
"summary-method": ({ columns: a, data: i }, g) => g,
|
|
3192
|
-
onSortChange: ({ column: a, prop: i, order: g },
|
|
3192
|
+
onSortChange: ({ column: a, prop: i, order: g }, C) => {
|
|
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 J = {
|
|
3206
3206
|
type: "control",
|
|
3207
3207
|
label: "操作",
|
|
3208
3208
|
align: "center",
|
|
@@ -3212,38 +3212,38 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3212
3212
|
fixed: "right",
|
|
3213
3213
|
style: { ...(Xe = (lt = t.value) == null ? void 0 : lt.control) == null ? void 0 : Xe.style },
|
|
3214
3214
|
validate: async (a) => await !0,
|
|
3215
|
-
view: (a, i, g,
|
|
3215
|
+
view: (a, i, g, C) => ({
|
|
3216
3216
|
label: "详情",
|
|
3217
3217
|
text: !0,
|
|
3218
3218
|
type: "success",
|
|
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
|
-
return !(((O =
|
|
3225
|
+
return !(((O = C == null ? void 0 : C.control) == null ? void 0 : O.add(a, C).inline) === !0 && g === 0);
|
|
3226
3226
|
}
|
|
3227
3227
|
}),
|
|
3228
|
-
edit: (a, i, g,
|
|
3228
|
+
edit: (a, i, g, C) => ({
|
|
3229
3229
|
label: "编辑",
|
|
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
|
-
return ((O =
|
|
3236
|
+
return ((O = C == null ? void 0 : C.control) == null ? void 0 : O.add(a, C).inline) !== !0;
|
|
3237
3237
|
}
|
|
3238
3238
|
}),
|
|
3239
|
-
delete: (a, i, g,
|
|
3239
|
+
delete: (a, i, g, C) => ({
|
|
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
|
-
return !(((O =
|
|
3246
|
+
return !(((O = C.control) == null ? void 0 : O.add(a, C).inline) === !0 && g === 0);
|
|
3247
3247
|
},
|
|
3248
3248
|
dialog: {
|
|
3249
3249
|
message: "此操作将永久删除该文件, 是否继续?",
|
|
@@ -3255,17 +3255,17 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3255
3255
|
}
|
|
3256
3256
|
}
|
|
3257
3257
|
}),
|
|
3258
|
-
save: (a, i, g,
|
|
3258
|
+
save: (a, i, g, C) => {
|
|
3259
3259
|
var O, P;
|
|
3260
3260
|
return {
|
|
3261
|
-
label: ((O =
|
|
3261
|
+
label: ((O = C.control) == null ? void 0 : O.add(a, C).inline) !== !0 ? "保存" : g === 0 ? "新增" : "保存",
|
|
3262
3262
|
text: !0,
|
|
3263
|
-
icon: () =>
|
|
3264
|
-
type: ((P =
|
|
3263
|
+
icon: () => Se(Rt),
|
|
3264
|
+
type: ((P = C.control) == null ? void 0 : P.add(a, C).inline) !== !0 || g === 0 ? "primary" : "success",
|
|
3265
3265
|
sort: -1,
|
|
3266
3266
|
auth: () => {
|
|
3267
3267
|
var N;
|
|
3268
|
-
return ((N =
|
|
3268
|
+
return ((N = C.control) == null ? void 0 : N.add(a, C).inline) === !0;
|
|
3269
3269
|
}
|
|
3270
3270
|
};
|
|
3271
3271
|
},
|
|
@@ -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,58 +3308,58 @@ 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
|
-
dropdown: (a, i, g,
|
|
3314
|
+
dropdown: (a, i, g, C) => ({
|
|
3315
3315
|
label: "编辑",
|
|
3316
3316
|
operate: "edit",
|
|
3317
3317
|
"split-button": !0,
|
|
3318
3318
|
type: "primary",
|
|
3319
|
-
auth: () => !(
|
|
3319
|
+
auth: () => !(C.control.add(a, C).inline === !0 && g == 0),
|
|
3320
3320
|
onClick: () => {
|
|
3321
3321
|
var P;
|
|
3322
|
-
let O = (P =
|
|
3323
|
-
O === "edit" ? w(a, i, g,
|
|
3322
|
+
let O = (P = Te(a, i, g, C)) == null ? void 0 : P.operate;
|
|
3323
|
+
O === "edit" ? w(a, i, g, C) : O === "delete" ? p(a, i, g, C) : O === "view" && T(a, i, g, C);
|
|
3324
3324
|
},
|
|
3325
3325
|
"button-props": { round: !0, plain: !0 }
|
|
3326
3326
|
})
|
|
3327
3327
|
};
|
|
3328
3328
|
t.value.control = ze(
|
|
3329
|
-
|
|
3329
|
+
J,
|
|
3330
3330
|
f == null ? void 0 : f.control,
|
|
3331
3331
|
(Je = t.value) == null ? void 0 : Je.control
|
|
3332
3332
|
);
|
|
3333
|
-
const
|
|
3334
|
-
const g = t.value.control[a],
|
|
3333
|
+
const fe = (a, i = !0) => {
|
|
3334
|
+
const g = t.value.control[a], C = 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 = J[a]) == null ? void 0 : Pe.call(J, 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 = J[a]) == null ? void 0 : qe.call(J, 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
|
-
t.value.control[a] =
|
|
3345
|
+
t.value.control[a] = C;
|
|
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, C) => {
|
|
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 = J.dropdown) == null ? void 0 : we.call(J, a, i, g, C)) || {}, P = ((qe = (Ee = f == null ? void 0 : f.control) == null ? void 0 : Ee.dropdown) == null ? void 0 : qe.call(Ee, a, i, g, C)) || {}, 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, C)) || {};
|
|
3353
3353
|
return ze(O, P, N) || {};
|
|
3354
|
-
},
|
|
3354
|
+
}, Ve = {
|
|
3355
3355
|
type: "hidden",
|
|
3356
3356
|
"min-width": 100,
|
|
3357
3357
|
align: "center",
|
|
3358
|
-
formatter: (a, i, g,
|
|
3359
|
-
"tooltip-formatter": ({ row: a, column: i, cellValue: g }) =>
|
|
3358
|
+
formatter: (a, i, g, C) => 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
|
+
(xt = t == null ? void 0 : t.value) == null ? void 0 : xt.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 xe = (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,12 +3417,12 @@ 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();
|
|
3424
3424
|
}, A = async (a = k.value, i) => {
|
|
3425
|
-
var g,
|
|
3425
|
+
var g, C;
|
|
3426
3426
|
t.value.form.modalState = "add", l.value = "add";
|
|
3427
3427
|
try {
|
|
3428
3428
|
if (!await ((g = t.value.control) == null ? void 0 : g.validate("add", { row: k.value, m: i, node: s.node }))) return;
|
|
@@ -3430,43 +3430,43 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3430
3430
|
console.error("验证失败:", O);
|
|
3431
3431
|
return;
|
|
3432
3432
|
}
|
|
3433
|
-
(
|
|
3433
|
+
(C = t.value.control.add(k.value, i)) != null && C.click ? t.value.control.add(k.value, i).click(k.value, i) : (t.value.control.add(k.value, i).inline === !0 ? (t.value.table.data.unshift({ ...k.value }), await rt(), o("open", "row-add", { row: k.value, node: s.node })) : (t.value.form.disabled = !1, t.value.dialog.mode = t.value.control.add(k.value, i).mode, t.value.dialog.title = t.value.control.add(k.value, i).title || t.value.control.add(k.value, i).label || "新增", Object.keys(k.value).forEach((O) => {
|
|
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
|
-
o("toggleExpand", a),
|
|
3439
|
+
o("toggleExpand", a), v.value = !1, t.value.table["default-expand-all"] = !t.value.table["default-expand-all"], rt(() => {
|
|
3440
3440
|
v.value = !0;
|
|
3441
3441
|
});
|
|
3442
|
-
}, w = async (a, i, g,
|
|
3442
|
+
}, w = async (a, i, g, C) => {
|
|
3443
3443
|
var O, P;
|
|
3444
3444
|
t.value.form.modalState = "edit", l.value = "edit";
|
|
3445
3445
|
try {
|
|
3446
|
-
if (!await ((O = t.value.control) == null ? void 0 : O.validate("edit", { row: a, column: i, index: g, m:
|
|
3446
|
+
if (!await ((O = t.value.control) == null ? void 0 : O.validate("edit", { row: a, column: i, index: g, m: C }))) return;
|
|
3447
3447
|
} catch (N) {
|
|
3448
3448
|
console.error("验证失败:", N);
|
|
3449
3449
|
return;
|
|
3450
3450
|
}
|
|
3451
|
-
(P = t.value.control.edit(a, i, g,
|
|
3451
|
+
(P = t.value.control.edit(a, i, g, C)) != null && P.click ? t.value.control.edit(a, i, g, C).click(a, i, g, C) : (t.value.form.disabled = !1, t.value.dialog.mode = t.value.control.edit(a, i, g, C).mode, t.value.dialog.title = t.value.control.edit(a, i, g, C).title || t.value.control.edit(a, i, g, C).label || "编辑", Object.keys(a).forEach((N) => {
|
|
3452
3452
|
t.value[N] && (t.value[N].value = a[N]);
|
|
3453
|
-
}), u.value = !0, await rt(), o("open", "edit", { m:
|
|
3454
|
-
}, p = async (a, i, g,
|
|
3453
|
+
}), u.value = !0, await rt(), o("open", "edit", { m: C, row: a, column: i, index: g }), Yt());
|
|
3454
|
+
}, p = async (a, i, g, C) => {
|
|
3455
3455
|
var O, P;
|
|
3456
3456
|
try {
|
|
3457
|
-
if (!await ((O = t.value.control) == null ? void 0 : O.validate("delete", { row: a, column: i, index: g, m:
|
|
3457
|
+
if (!await ((O = t.value.control) == null ? void 0 : O.validate("delete", { row: a, column: i, index: g, m: C }))) return;
|
|
3458
3458
|
} catch (N) {
|
|
3459
3459
|
console.error("验证失败:", N);
|
|
3460
3460
|
return;
|
|
3461
3461
|
}
|
|
3462
|
-
if ((P = t.value.control.delete(a, i, g,
|
|
3463
|
-
t.value.control.delete(a, i, g,
|
|
3462
|
+
if ((P = t.value.control.delete(a, i, g, C)) != null && P.click)
|
|
3463
|
+
t.value.control.delete(a, i, g, C).click(a, i, g, C);
|
|
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, C).dialog;
|
|
3466
|
+
pl.confirm(N, we, Ee).then(() => {
|
|
3467
3467
|
o(
|
|
3468
3468
|
"delete",
|
|
3469
|
-
{ row: a, column: i, index: g, m:
|
|
3469
|
+
{ row: a, column: i, index: g, m: C },
|
|
3470
3470
|
(qe = !0, je = !1) => {
|
|
3471
3471
|
qe && (t.value.table.data.splice(g, 1), t.value.table.page.total--), je && t.value.table.load();
|
|
3472
3472
|
}
|
|
@@ -3474,59 +3474,59 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3474
3474
|
}).catch(() => {
|
|
3475
3475
|
});
|
|
3476
3476
|
}
|
|
3477
|
-
}, T = async (a, i, g,
|
|
3477
|
+
}, T = async (a, i, g, C) => {
|
|
3478
3478
|
var O, P, N, we;
|
|
3479
3479
|
t.value.form.modalState = void 0, l.value = "view";
|
|
3480
3480
|
try {
|
|
3481
|
-
if (!await ((O = t.value.control) == null ? void 0 : O.validate("view", { row: a, column: i, index: g, m:
|
|
3482
|
-
} catch (
|
|
3483
|
-
console.error("验证失败:",
|
|
3481
|
+
if (!await ((O = t.value.control) == null ? void 0 : O.validate("view", { row: a, column: i, index: g, m: C }))) return;
|
|
3482
|
+
} catch (Ee) {
|
|
3483
|
+
console.error("验证失败:", Ee);
|
|
3484
3484
|
return;
|
|
3485
3485
|
}
|
|
3486
|
-
(P = t.value.control.view(a, i, g,
|
|
3487
|
-
t.value[
|
|
3488
|
-
}), ((N = t.value.control.view(a, i, g,
|
|
3486
|
+
(P = t.value.control.view(a, i, g, C)) != null && P.click ? t.value.control.view(a, i, g, C).click(a, i, g, C) : (t.value.form.disabled = !0, t.value.dialog.mode = t.value.control.view(a, i, g, C).mode, t.value.dialog.title = t.value.control.view(a, i, g, C).title || t.value.control.view(a, i, g, C).label || "详情", Object.keys(a).forEach((Ee) => {
|
|
3487
|
+
t.value[Ee] && (t.value[Ee].value = a[Ee]);
|
|
3488
|
+
}), ((N = t.value.control.view(a, i, g, C)) == 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
|
-
m:
|
|
3497
|
-
container: ((
|
|
3498
|
-
}, ((je = (qe = t.value.control.view(a, i, g,
|
|
3496
|
+
m: C,
|
|
3497
|
+
container: ((Ee = t.value.control.view(a, i, g, C)) == null ? void 0 : Ee.container) || {}
|
|
3498
|
+
}, ((je = (qe = t.value.control.view(a, i, g, C)) == null ? void 0 : qe.container) == null ? void 0 : je.slots) || {});
|
|
3499
3499
|
}
|
|
3500
3500
|
}
|
|
3501
|
-
}) : ((we = t.value.control.view(a, i, g,
|
|
3501
|
+
}) : ((we = t.value.control.view(a, i, g, C)) == null ? void 0 : we["view-mode"]) === "readonly" && (u.value = !0, Yt()), await rt(), o("open", "view", { m: C, row: a, column: i, index: g }));
|
|
3502
3502
|
}, M = (a, i = k.value) => {
|
|
3503
3503
|
Object.assign(a, i);
|
|
3504
|
-
}, I = (a, i, g,
|
|
3505
|
-
const O = t.value.control.save(a, i, g,
|
|
3506
|
-
O != null && O.click ? O.click(a, i, g,
|
|
3504
|
+
}, I = (a, i, g, C) => {
|
|
3505
|
+
const O = t.value.control.save(a, i, g, C);
|
|
3506
|
+
O != null && O.click ? O.click(a, i, g, C) : o(
|
|
3507
3507
|
"row-save",
|
|
3508
3508
|
{ row: a, column: i, index: g, data: t.value.table.data },
|
|
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
|
-
},
|
|
3522
|
-
o("submit", t.value.form.modalState, a, i, (
|
|
3523
|
-
|
|
3521
|
+
}, ee = Or((a, i, g) => {
|
|
3522
|
+
o("submit", t.value.form.modalState, a, i, (C) => {
|
|
3523
|
+
C && (g === 1 && (u.value = !1), M(a), i.table.load());
|
|
3524
3524
|
});
|
|
3525
3525
|
}, 300), ae = (a, i) => {
|
|
3526
3526
|
M(a), o("reset", a, i);
|
|
3527
3527
|
}, _e = (a, i, g) => {
|
|
3528
|
-
var
|
|
3529
|
-
if ((
|
|
3528
|
+
var C;
|
|
3529
|
+
if ((C = i.control.download(a, i)) != null && C.click)
|
|
3530
3530
|
i.control.download(a, i).click(a, i, g);
|
|
3531
3531
|
else {
|
|
3532
3532
|
let O = gt(
|
|
@@ -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,13 +3558,13 @@ 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 () => {
|
|
3565
3565
|
await Ae(G.value);
|
|
3566
3566
|
},
|
|
3567
|
-
onSelectAll: async (
|
|
3567
|
+
onSelectAll: async (C) => {
|
|
3568
3568
|
await Ae(G.value);
|
|
3569
3569
|
}
|
|
3570
3570
|
})
|
|
@@ -3581,8 +3581,8 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3581
3581
|
edit: w,
|
|
3582
3582
|
delete: p,
|
|
3583
3583
|
save: I
|
|
3584
|
-
}, Fe = (a, i, g,
|
|
3585
|
-
const N = oe == null ? void 0 : oe[P](i, g,
|
|
3584
|
+
}, Fe = (a, i, g, C, O) => a.filter((P) => me[P]).map((P) => {
|
|
3585
|
+
const N = oe == null ? void 0 : oe[P](i, g, C, O);
|
|
3586
3586
|
return {
|
|
3587
3587
|
name: `control-${P}`,
|
|
3588
3588
|
attr: N,
|
|
@@ -3591,7 +3591,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3591
3591
|
sort: (N == null ? void 0 : N.sort) || 0,
|
|
3592
3592
|
groupName: (N == null ? void 0 : N.groupName) || "default"
|
|
3593
3593
|
};
|
|
3594
|
-
}).sort((P, N) => P.sort - N.sort), be = (a, i, g,
|
|
3594
|
+
}).sort((P, N) => P.sort - N.sort), be = (a, i, g, C, O) => Fe(a, i, g, C, O).reduce((P, N) => {
|
|
3595
3595
|
const we = N.groupName || "default";
|
|
3596
3596
|
return P[we] || (P[we] = []), P[we].push(N), P;
|
|
3597
3597
|
}, {}), ie = Be(() => Object.fromEntries(
|
|
@@ -3599,8 +3599,8 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3599
3599
|
([a, i]) => i.type !== "hidden" && i.hidden !== !0 && i.visible !== !1 && i.showCol !== !1
|
|
3600
3600
|
).map(([a, i]) => (i.sort = typeof i.sort == "number" ? i.sort : 0, [a, i])).sort((a, i) => a[1].sort - i[1].sort)
|
|
3601
3601
|
)), Ge = re({}), j = (a, i) => {
|
|
3602
|
-
const g = (
|
|
3603
|
-
for (const P of
|
|
3602
|
+
const g = (C, O) => {
|
|
3603
|
+
for (const P of C) {
|
|
3604
3604
|
if (P.value == O) return P.label;
|
|
3605
3605
|
if (P.children) {
|
|
3606
3606
|
const N = g(P.children, O);
|
|
@@ -3610,9 +3610,9 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3610
3610
|
return null;
|
|
3611
3611
|
};
|
|
3612
3612
|
if (a.getDicts) {
|
|
3613
|
-
const
|
|
3614
|
-
return Ge.value[
|
|
3615
|
-
Ge.value[
|
|
3613
|
+
const C = i.toString();
|
|
3614
|
+
return Ge.value[C] ? (a.options = Ge.value[C], 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[C] = 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();
|
|
@@ -3625,9 +3625,9 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3625
3625
|
} catch (a) {
|
|
3626
3626
|
console.error("字典加载过程中发生错误:", a);
|
|
3627
3627
|
}
|
|
3628
|
-
}, X = (a, i, g,
|
|
3628
|
+
}, X = (a, i, g, C) => {
|
|
3629
3629
|
var O, P;
|
|
3630
|
-
return a.table ? (O = a.table(i, g,
|
|
3630
|
+
return a.table ? (O = a.table(i, g, C)) != null && O.auth ? (P = a.table(i, g, C)) == null ? void 0 : P.auth(i, g, C) : !0 : !1;
|
|
3631
3631
|
}, Oe = () => {
|
|
3632
3632
|
u.value = !1;
|
|
3633
3633
|
};
|
|
@@ -3641,17 +3641,17 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3641
3641
|
Wa(G.value),
|
|
3642
3642
|
Ha(G.value)
|
|
3643
3643
|
]);
|
|
3644
|
-
a && Array.isArray(a) && a.forEach((
|
|
3645
|
-
const O = t.value[
|
|
3646
|
-
O && (O.width =
|
|
3647
|
-
}), i && Array.isArray(i) && i.forEach((
|
|
3648
|
-
const P = t.value[
|
|
3644
|
+
a && Array.isArray(a) && a.forEach((C) => {
|
|
3645
|
+
const O = t.value[C.key];
|
|
3646
|
+
O && (O.width = C.width);
|
|
3647
|
+
}), i && Array.isArray(i) && i.forEach((C, O) => {
|
|
3648
|
+
const P = t.value[C];
|
|
3649
3649
|
P && (P.sort = O);
|
|
3650
|
-
}), g && Array.isArray(g) && g.length > 0 ? g.forEach((
|
|
3651
|
-
const O = t.value[
|
|
3650
|
+
}), g && Array.isArray(g) && g.length > 0 ? g.forEach((C) => {
|
|
3651
|
+
const O = t.value[C];
|
|
3652
3652
|
O && (O.showCol = !1);
|
|
3653
|
-
}) : Object.keys(t.value).filter((
|
|
3654
|
-
t.value[
|
|
3653
|
+
}) : Object.keys(t.value).filter((C) => t.value[C].type !== "control").forEach((C) => {
|
|
3654
|
+
t.value[C].showCol = !0;
|
|
3655
3655
|
});
|
|
3656
3656
|
} catch (a) {
|
|
3657
3657
|
console.error("加载表格信息时出错:", a), Object.keys(t.value).filter((i) => t.value[i].type !== "control").forEach((i) => {
|
|
@@ -3661,7 +3661,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3661
3661
|
}, Re = () => dr(Object.keys(t.value).toString()).toUpperCase().substring(8, 24);
|
|
3662
3662
|
return Hl(() => {
|
|
3663
3663
|
G.value = Re();
|
|
3664
|
-
}),
|
|
3664
|
+
}), Ct(async () => {
|
|
3665
3665
|
try {
|
|
3666
3666
|
c.value = Object.entries(t.value).filter(
|
|
3667
3667
|
([i, g]) => g.type !== "hidden" && g.type !== "control" && g.visible !== !1
|
|
@@ -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"), C = 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,17 +3694,17 @@ 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;
|
|
3706
3706
|
return [
|
|
3707
|
-
|
|
3707
|
+
x(a.$slots, ye, {
|
|
3708
3708
|
model: He,
|
|
3709
3709
|
form: (Qe = He == null ? void 0 : He.data) == null ? void 0 : Qe.form
|
|
3710
3710
|
}, void 0, !0)
|
|
@@ -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:
|
|
3721
|
-
|
|
3722
|
-
titleClass:
|
|
3720
|
+
fn: $(({ titleClass: te, closeIconClass: ye }) => [
|
|
3721
|
+
x(a.$slots, "header", {
|
|
3722
|
+
titleClass: te,
|
|
3723
3723
|
closeIconClass: ye
|
|
3724
3724
|
}, void 0, !0)
|
|
3725
3725
|
]),
|
|
@@ -3728,48 +3728,48 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3728
3728
|
a.$slots.title ? {
|
|
3729
3729
|
name: "title",
|
|
3730
3730
|
fn: $(() => [
|
|
3731
|
-
|
|
3731
|
+
x(a.$slots, "title", {}, void 0, !0)
|
|
3732
3732
|
]),
|
|
3733
3733
|
key: "1"
|
|
3734
3734
|
} : void 0,
|
|
3735
3735
|
a.$slots.footer ? {
|
|
3736
3736
|
name: "footer",
|
|
3737
3737
|
fn: $(() => [
|
|
3738
|
-
|
|
3738
|
+
x(a.$slots, "footer", {}, void 0, !0)
|
|
3739
3739
|
]),
|
|
3740
3740
|
key: "2"
|
|
3741
3741
|
} : void 0,
|
|
3742
3742
|
((je = (qe = t.value) == null ? void 0 : qe.dialog) == null ? void 0 : je.type) === "drawer" && a.$slots.trigger ? {
|
|
3743
3743
|
name: "trigger",
|
|
3744
3744
|
fn: $(() => [
|
|
3745
|
-
|
|
3745
|
+
x(a.$slots, "trigger", {}, void 0, !0)
|
|
3746
3746
|
]),
|
|
3747
3747
|
key: "3"
|
|
3748
3748
|
} : void 0
|
|
3749
3749
|
]), 1040, ["modelValue", "type"])) : ke("", !0),
|
|
3750
|
-
|
|
3750
|
+
K("div", cr, [
|
|
3751
3751
|
((tt = (Pe = t.value) == null ? void 0 : Pe.query) == null ? void 0 : tt.hidden) != !0 ? (m(), z("div", fr, [
|
|
3752
|
-
|
|
3752
|
+
x(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
|
-
|
|
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(
|
|
3765
|
-
|
|
3766
|
-
(ue.name === "control-add" ? ue.attr.auth() && ue.attr.inline === !1 : ue.attr.auth()) ?
|
|
3762
|
+
x(a.$slots, "q-btns", {}, () => [
|
|
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
|
+
x(a.$slots, ue.name + "-left", {}, void 0, !0),
|
|
3766
|
+
(ue.name === "control-add" ? ue.attr.auth() && ue.attr.inline === !1 : ue.attr.auth()) ? x(a.$slots, ue.name, { key: 0 }, () => {
|
|
3767
3767
|
var He, Qe;
|
|
3768
3768
|
return [
|
|
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,24 +3780,24 @@ 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"]))
|
|
3787
3787
|
];
|
|
3788
3788
|
}, !0) : ke("", !0),
|
|
3789
|
-
|
|
3789
|
+
x(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(
|
|
3793
|
-
|
|
3794
|
-
(ue.name === "control-add" ? ue.attr.auth() && ue.attr.inline === !1 : ue.attr.auth()) ?
|
|
3792
|
+
(m(!0), z(se, null, W(te, (ue) => (m(), z(se, null, [
|
|
3793
|
+
x(a.$slots, ue.name + "-left", {}, void 0, !0),
|
|
3794
|
+
(ue.name === "control-add" ? ue.attr.auth() && ue.attr.inline === !1 : ue.attr.auth()) ? x(a.$slots, ue.name, { key: 0 }, () => {
|
|
3795
3795
|
var He, Qe;
|
|
3796
3796
|
return [
|
|
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,13 +3809,13 @@ 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"]))
|
|
3816
3816
|
];
|
|
3817
3817
|
}, !0) : ke("", !0),
|
|
3818
|
-
|
|
3818
|
+
x(a.$slots, ue.name + "-right", {}, void 0, !0)
|
|
3819
3819
|
], 64))), 256))
|
|
3820
3820
|
]),
|
|
3821
3821
|
_: 2
|
|
@@ -3825,10 +3825,10 @@ 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
|
+
x(a.$slots, ye, {
|
|
3832
3832
|
model: He,
|
|
3833
3833
|
form: S.value
|
|
3834
3834
|
}, void 0, !0)
|
|
@@ -3837,106 +3837,106 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3837
3837
|
]), 1032, ["modelValue", "info"])
|
|
3838
3838
|
], !0)
|
|
3839
3839
|
])) : ke("", !0),
|
|
3840
|
-
|
|
3840
|
+
x(a.$slots, "table-title", {
|
|
3841
3841
|
model: t.value,
|
|
3842
3842
|
queryInfo: S.value
|
|
3843
3843
|
}, void 0, !0),
|
|
3844
|
-
|
|
3844
|
+
K("div", vr, [
|
|
3845
3845
|
v.value ? (m(), D(we, Y({ key: 0 }, {
|
|
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: $(() => [
|
|
3859
|
-
|
|
3859
|
+
x(a.$slots, "append", {}, void 0, !0)
|
|
3860
3860
|
]),
|
|
3861
3861
|
empty: $(() => [
|
|
3862
|
-
|
|
3862
|
+
x(a.$slots, "empty", {}, void 0, !0)
|
|
3863
3863
|
]),
|
|
3864
3864
|
default: $(() => [
|
|
3865
|
-
|
|
3866
|
-
(m(!0), z(se, null, W(ie.value, (
|
|
3865
|
+
x(a.$slots, "default", {}, () => [
|
|
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
|
-
ye == "control" ?
|
|
3878
|
+
ye == "control" ? x(a.$slots, `${ye}-header`, {
|
|
3879
3879
|
key: 0,
|
|
3880
3880
|
column: ne,
|
|
3881
3881
|
index: ce
|
|
3882
3882
|
}, () => [
|
|
3883
|
-
|
|
3884
|
-
], !0) :
|
|
3883
|
+
K("span", null, Ie(ne.label), 1)
|
|
3884
|
+
], !0) : x(a.$slots, `${ye}-header`, {
|
|
3885
3885
|
key: 1,
|
|
3886
3886
|
column: ne,
|
|
3887
3887
|
index: ce
|
|
3888
3888
|
}, void 0, !0)
|
|
3889
3889
|
]),
|
|
3890
3890
|
"filter-icon": $((ne) => [
|
|
3891
|
-
|
|
3891
|
+
x(a.$slots, `${ye}-filter-icon`, { data: ne }, void 0, !0)
|
|
3892
3892
|
]),
|
|
3893
3893
|
_: 2
|
|
3894
3894
|
}, [
|
|
3895
|
-
|
|
3895
|
+
te.type === "expand" ? {
|
|
3896
3896
|
name: "default",
|
|
3897
|
-
fn: $(({ row: ne, column: ce, $index:
|
|
3898
|
-
|
|
3897
|
+
fn: $(({ row: ne, column: ce, $index: pe }) => [
|
|
3898
|
+
x(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
|
+
K("div", {
|
|
3911
3911
|
class: yl(["control", (vt = t.value.control) == null ? void 0 : vt.class]),
|
|
3912
3912
|
style: Ue((pt = t.value.control) == null ? void 0 : pt.style)
|
|
3913
3913
|
}, [
|
|
3914
|
-
|
|
3915
|
-
|
|
3914
|
+
x(a.$slots, "control", {}, () => [
|
|
3915
|
+
x(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
|
+
x(a.$slots, Z.name + "-left", {
|
|
3925
3925
|
row: ne,
|
|
3926
3926
|
column: ce,
|
|
3927
|
-
index:
|
|
3927
|
+
index: pe
|
|
3928
3928
|
}, void 0, !0),
|
|
3929
|
-
Z.attr.auth() ?
|
|
3929
|
+
Z.attr.auth() ? x(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,31 +3946,31 @@ 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
|
+
x(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: $(() => [
|
|
3964
3964
|
(m(!0), z(se, null, W(it, (Z) => {
|
|
3965
3965
|
var ct, wt, $t;
|
|
3966
3966
|
return m(), z(se, null, [
|
|
3967
|
-
a.$slots[Z.name + "-left"] ?
|
|
3967
|
+
a.$slots[Z.name + "-left"] ? x(a.$slots, Z.name + "-left", {
|
|
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
|
-
Z.attr.auth() ? (m(), D(
|
|
3973
|
+
Z.attr.auth() ? (m(), D(C, Y({
|
|
3974
3974
|
key: 1,
|
|
3975
3975
|
ref_for: !0
|
|
3976
3976
|
}, {
|
|
@@ -3979,16 +3979,16 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3979
3979
|
disabled: ($t = Z == null ? void 0 : Z.attr) == null ? void 0 : $t.disabled
|
|
3980
3980
|
}), {
|
|
3981
3981
|
default: $(() => [
|
|
3982
|
-
|
|
3982
|
+
x(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,17 +3998,17 @@ 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
|
]),
|
|
4005
4005
|
_: 2
|
|
4006
4006
|
}, 1040)) : ke("", !0),
|
|
4007
|
-
a.$slots[Z.name + "-right"] ?
|
|
4007
|
+
a.$slots[Z.name + "-right"] ? x(a.$slots, Z.name + "-right", {
|
|
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,29 +4019,29 @@ 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
|
|
4026
4026
|
}, 1040)) : (m(), D(g, { key: 2 }, {
|
|
4027
4027
|
default: $(() => [
|
|
4028
4028
|
(m(!0), z(se, null, W(it, (Z) => (m(), z(se, null, [
|
|
4029
|
-
|
|
4029
|
+
x(a.$slots, Z.name + "-left", {
|
|
4030
4030
|
row: ne,
|
|
4031
4031
|
column: ce,
|
|
4032
|
-
index:
|
|
4032
|
+
index: pe
|
|
4033
4033
|
}, void 0, !0),
|
|
4034
|
-
Z.attr.auth() ?
|
|
4034
|
+
Z.attr.auth() ? x(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
|
+
x(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
|
]),
|
|
@@ -4065,34 +4065,34 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4065
4065
|
}, 1024))
|
|
4066
4066
|
], 64);
|
|
4067
4067
|
}), 256)),
|
|
4068
|
-
|
|
4068
|
+
x(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 ? x(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",
|
|
@@ -4101,26 +4101,26 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4101
4101
|
W(a.$slots, (pt, it) => ({
|
|
4102
4102
|
name: it,
|
|
4103
4103
|
fn: $((dt) => [
|
|
4104
|
-
|
|
4104
|
+
x(a.$slots, it, {
|
|
4105
4105
|
data: dt,
|
|
4106
|
-
item:
|
|
4106
|
+
item: te,
|
|
4107
4107
|
model: t.value
|
|
4108
4108
|
}, void 0, !0)
|
|
4109
4109
|
])
|
|
4110
4110
|
}))
|
|
4111
4111
|
]), 1032, ["modelValue", "onUpdate:modelValue", "item", "ctrlKey", "ctrlType", "model", "formInfo"]))
|
|
4112
4112
|
];
|
|
4113
|
-
}, !0) :
|
|
4113
|
+
}, !0) : x(a.$slots, `${ye}`, {
|
|
4114
4114
|
key: 1,
|
|
4115
4115
|
row: ne,
|
|
4116
4116
|
column: ce,
|
|
4117
|
-
index:
|
|
4117
|
+
index: pe
|
|
4118
4118
|
}, () => [
|
|
4119
|
-
|
|
4120
|
-
style: Ue([{ width: "100%", "text-overflow": "ellipsis", overflow: "hidden" },
|
|
4121
|
-
innerHTML:
|
|
4122
|
-
|
|
4123
|
-
typeof ce.formatter == "function" ? ce.formatter(ne, ce, ne[ye],
|
|
4119
|
+
K("div", {
|
|
4120
|
+
style: Ue([{ width: "100%", "text-overflow": "ellipsis", overflow: "hidden" }, te == null ? void 0 : te.style]),
|
|
4121
|
+
innerHTML: xe(
|
|
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)
|
|
@@ -4133,15 +4133,15 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4133
4133
|
]),
|
|
4134
4134
|
_: 3
|
|
4135
4135
|
}, 16, ["summary-method"])) : ke("", !0),
|
|
4136
|
-
(Tt = (St = (ht = t.value) == null ? void 0 : ht.table) == null ? void 0 : St.page) != null && Tt.hidden ? ke("", !0) :
|
|
4137
|
-
de(
|
|
4136
|
+
(Tt = (St = (ht = t.value) == null ? void 0 : ht.table) == null ? void 0 : St.page) != null && Tt.hidden ? ke("", !0) : x(a.$slots, "page", { key: 1 }, () => [
|
|
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
|
+
x(a.$slots, "table-page", {}, void 0, !0)
|
|
4145
4145
|
]),
|
|
4146
4146
|
_: 3
|
|
4147
4147
|
}, 16, ["page-size", "current-page"])
|
|
@@ -4151,7 +4151,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4151
4151
|
], 64);
|
|
4152
4152
|
};
|
|
4153
4153
|
}
|
|
4154
|
-
}), hr = /* @__PURE__ */ nt(mr, [["__scopeId", "data-v-
|
|
4154
|
+
}), hr = /* @__PURE__ */ nt(mr, [["__scopeId", "data-v-2b74b268"]]), yr = {
|
|
4155
4155
|
__name: "g-context-menu",
|
|
4156
4156
|
props: {
|
|
4157
4157
|
nodeInfo: {
|
|
@@ -4197,18 +4197,18 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4197
4197
|
const { data: r, node: c } = e.nodeInfo;
|
|
4198
4198
|
switch (u) {
|
|
4199
4199
|
case "add":
|
|
4200
|
-
e.processFormData ? S.value = await e.processFormData({ cmd: u, data: f.value, node: c }) : S.value = f.value
|
|
4200
|
+
e.processFormData ? S.value = await e.processFormData({ cmd: u, data: f.value, node: c }) : S.value = f.value;
|
|
4201
4201
|
const V = gt({
|
|
4202
4202
|
title: ((q = o == null ? void 0 : o.add) == null ? void 0 : q.label) || "新增子节点",
|
|
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,13 +4257,13 @@ 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) => {
|
|
4264
4264
|
var Q;
|
|
4265
4265
|
return m(), z(se, { key: k }, [
|
|
4266
|
-
|
|
4266
|
+
x(u.$slots, `menu-${k}-left`, {
|
|
4267
4267
|
nodeInfo: e.nodeInfo
|
|
4268
4268
|
}),
|
|
4269
4269
|
de(q, {
|
|
@@ -4281,7 +4281,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4281
4281
|
]),
|
|
4282
4282
|
_: 2
|
|
4283
4283
|
}, 1032, ["onClick", "divided"]),
|
|
4284
|
-
|
|
4284
|
+
x(u.$slots, `menu-${k}-right`, {
|
|
4285
4285
|
data: ((Q = e.nodeInfo) == null ? void 0 : Q.data) || {}
|
|
4286
4286
|
})
|
|
4287
4287
|
], 64);
|
|
@@ -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, J) => {
|
|
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 J[fe].includes(R);
|
|
4313
|
+
}, c = (R, J) => {
|
|
4314
|
+
e("load", S.value, R, J);
|
|
4315
|
+
}, q = (R, J) => {
|
|
4316
|
+
S.value = { data: R, node: J }, console.log("nodeClick", S.value), l.value.table.load();
|
|
4317
|
+
}, U = async (R, J, fe) => {
|
|
4318
|
+
R.preventDefault(), u.value = { data: J, node: fe };
|
|
4319
|
+
}, V = async (R, { data: J, node: fe, m: Te }, Ve) => {
|
|
4320
|
+
var ve;
|
|
4321
|
+
if (R === "add") {
|
|
4322
|
+
const L = await new Promise((xe) => {
|
|
4323
|
+
e("menu-command", R, { data: J, node: fe, m: Te }, (Me) => {
|
|
4324
|
+
xe(Me);
|
|
4325
|
+
});
|
|
4326
|
+
});
|
|
4327
|
+
L && ((ve = h.value) == null || ve.append(J, fe), fe.expanded = !0, Ve(L));
|
|
4328
|
+
} else if (R === "refresh") {
|
|
4329
|
+
const L = await new Promise((xe) => {
|
|
4330
|
+
e("menu-command", R, { data: J, node: fe }, (Me) => {
|
|
4331
|
+
xe(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: J, 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, J) => {
|
|
4343
|
+
var L, xe;
|
|
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
|
+
K("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": J[0] || (J[0] = (Me) => v.value = Me),
|
|
4341
4354
|
style: { width: "100%", "box-sizing": "border-box", "margin-bottom": "10px" },
|
|
4342
4355
|
placeholder: "输入节点查询",
|
|
4343
4356
|
clearable: ""
|
|
4344
|
-
}, (
|
|
4345
|
-
|
|
4346
|
-
s.value ? (m(), D(
|
|
4357
|
+
}, (xe = (L = F(o)) == null ? void 0 : L.tree) == null ? void 0 : xe.search), null, 16, ["modelValue"])) : ke("", !0),
|
|
4358
|
+
K("div", br, [
|
|
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
|
-
|
|
4358
|
-
node:
|
|
4368
|
+
}, R.$attrs.tree), $e({
|
|
4369
|
+
default: $(({ node: Me, data: B }) => [
|
|
4370
|
+
x(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
|
-
|
|
4391
|
+
x(R.$slots, T, {
|
|
4379
4392
|
data: (I == null ? void 0 : I.data) || {}
|
|
4380
4393
|
}, void 0, !0)
|
|
4381
4394
|
])
|
|
@@ -4384,9 +4397,9 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4384
4397
|
];
|
|
4385
4398
|
}),
|
|
4386
4399
|
default: $(() => [
|
|
4387
|
-
|
|
4388
|
-
|
|
4389
|
-
|
|
4400
|
+
K("span", wr, [
|
|
4401
|
+
K("span", null, Ie(Me.label), 1),
|
|
4402
|
+
J[2] || (J[2] = K("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
|
-
|
|
4414
|
+
x(R.$slots, B, { data: y }, void 0, !0)
|
|
4402
4415
|
])
|
|
4403
4416
|
}))
|
|
4404
4417
|
]), 1040, ["style"])) : ke("", !0)
|
|
4405
4418
|
])
|
|
4406
4419
|
], 4),
|
|
4407
|
-
|
|
4408
|
-
de(
|
|
4420
|
+
K("div", $r, [
|
|
4421
|
+
de(ve, Y({
|
|
4409
4422
|
modelValue: l.value,
|
|
4410
|
-
"onUpdate:modelValue":
|
|
4411
|
-
}, F(We)(
|
|
4423
|
+
"onUpdate:modelValue": J[1] || (J[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
|
-
|
|
4431
|
+
x(R.$slots, B, { data: y }, void 0, !0)
|
|
4419
4432
|
])
|
|
4420
4433
|
}))
|
|
4421
4434
|
]), 1040, ["modelValue", "node"])
|
|
@@ -4423,10 +4436,10 @@ 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-57383099"]]), Cr = {
|
|
4427
4440
|
key: 0,
|
|
4428
4441
|
class: "op-group"
|
|
4429
|
-
},
|
|
4442
|
+
}, xr = {
|
|
4430
4443
|
key: 1,
|
|
4431
4444
|
class: "op-items",
|
|
4432
4445
|
style: { width: "100%", height: "100%" }
|
|
@@ -4452,22 +4465,22 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4452
4465
|
},
|
|
4453
4466
|
setup(n) {
|
|
4454
4467
|
const d = n;
|
|
4455
|
-
return (e, l) => d.title ? (m(), z("div",
|
|
4468
|
+
return (e, l) => d.title ? (m(), z("div", Cr, [
|
|
4456
4469
|
(m(!0), z(se, null, W(d.columns, (s) => (m(), z("span", {
|
|
4457
4470
|
style: Ue({ width: (s == null ? void 0 : s.width) || vl, ...s == null ? void 0 : s.titleStyle, textAlign: (s == null ? void 0 : s.align) || "center" }),
|
|
4458
4471
|
key: s.key
|
|
4459
4472
|
}, [
|
|
4460
|
-
|
|
4473
|
+
x(e.$slots, `${n.t}-title-${s.key}`, { col: s }, () => [
|
|
4461
4474
|
Le(Ie(s.label), 1)
|
|
4462
4475
|
], !0)
|
|
4463
4476
|
], 4))), 128))
|
|
4464
|
-
])) : (m(), z("div",
|
|
4477
|
+
])) : (m(), z("div", xr, [
|
|
4465
4478
|
(m(!0), z(se, null, W(d.columns, (s) => (m(), z("span", {
|
|
4466
4479
|
style: Ue({ width: (s == null ? void 0 : s.width) || vl, textAlign: (s == null ? void 0 : s.align) || "center", ...s == null ? void 0 : s.style }),
|
|
4467
4480
|
key: s.key,
|
|
4468
4481
|
title: n.data[s.key]
|
|
4469
4482
|
}, [
|
|
4470
|
-
|
|
4483
|
+
x(e.$slots, `${n.t}-option-${s.key}`, { col: s }, () => [
|
|
4471
4484
|
Le(Ie(n.data[s.key] ?? "-"), 1)
|
|
4472
4485
|
], !0)
|
|
4473
4486
|
], 12, Mr))), 128))
|
|
@@ -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();
|