vue-2024-ui 0.2.103 → 0.2.105
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +655 -642
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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
|
|
2
|
-
import { ref as re, useModel as ot, nextTick as rt, onMounted as xt, computed as Be, resolveComponent as
|
|
3
|
-
import { Plus as
|
|
4
|
-
import
|
|
1
|
+
import ql, { dayjs as Al, ElForm as Dt, ElButtonGroup as It, ElButton as Ne, ElPopover as Lt, ElIcon as Ht, ElMessage as ft, ElMessageBox as pl } from "element-plus";
|
|
2
|
+
import { ref as re, useModel as ot, nextTick as rt, onMounted as xt, computed as Be, resolveComponent as H, openBlock as m, createElementBlock as z, Fragment as se, createElementVNode as J, createBlock as D, createCommentVNode as ke, normalizeStyle as Ue, unref as F, mergeProps as Y, withCtx as $, renderSlot as C, renderList as W, createTextVNode as Le, toDisplayString as Ie, createSlots as $e, createVNode as de, normalizeProps as qt, resolveDynamicComponent as Ze, guardReactiveProps as ml, mergeModels as st, useSlots as hl, inject as jt, withModifiers as yt, Transition as Yl, withDirectives as Fl, vShow as jl, h as Se, useAttrs as zt, onUnmounted as zl, onBeforeUnmount as Ul, normalizeClass as yl, watchEffect as Ll, onBeforeMount as Hl, watch as gl, createApp as Rl } from "vue";
|
|
3
|
+
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 xl from "sortablejs";
|
|
5
5
|
import { Dexie as ra } from "dexie";
|
|
6
6
|
var na = {
|
|
7
7
|
name: "zh-cn",
|
|
@@ -179,74 +179,74 @@ 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 Cl(n) {
|
|
183
183
|
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
184
184
|
}
|
|
185
|
-
var
|
|
185
|
+
var Ml = { exports: {} };
|
|
186
186
|
(function(n, d) {
|
|
187
187
|
(function(e, l) {
|
|
188
188
|
n.exports = l();
|
|
189
189
|
})(oa, function() {
|
|
190
|
-
var e = 1e3, l = 6e4, s = 36e5, o = "millisecond", t = "second",
|
|
190
|
+
var e = 1e3, l = 6e4, s = 36e5, o = "millisecond", t = "second", f = "minute", S = "hour", v = "day", h = "week", u = "month", r = "quarter", c = "year", q = "date", U = "Invalid Date", V = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, k = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, Q = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(B) {
|
|
191
191
|
var A = ["th", "st", "nd", "rd"], y = B % 100;
|
|
192
192
|
return "[" + B + (A[(y - 20) % 10] || A[y] || A[0]) + "]";
|
|
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) {
|
|
200
200
|
if (A.date() < y.date()) return -B(y, A);
|
|
201
|
-
var _ = 12 * (y.year() - A.year()) + (y.month() - A.month()), w = A.clone().add(_, u), p = y - w < 0,
|
|
202
|
-
return +(-(_ + (y - w) / (p ? w -
|
|
201
|
+
var _ = 12 * (y.year() - A.year()) + (y.month() - A.month()), w = A.clone().add(_, u), p = y - w < 0, T = A.clone().add(_ + (p ? -1 : 1), u);
|
|
202
|
+
return +(-(_ + (y - w) / (p ? w - T : T - w)) || 0);
|
|
203
203
|
}, a: function(B) {
|
|
204
204
|
return B < 0 ? Math.ceil(B) || 0 : Math.floor(B);
|
|
205
205
|
}, p: function(B) {
|
|
206
|
-
return { M: u, y:
|
|
206
|
+
return { M: u, y: c, w: h, d: v, D: q, h: S, m: f, s: t, ms: o, Q: r }[B] || String(B || "").toLowerCase().replace(/s$/, "");
|
|
207
207
|
}, u: function(B) {
|
|
208
208
|
return B === void 0;
|
|
209
|
-
} },
|
|
210
|
-
|
|
211
|
-
var
|
|
212
|
-
return B instanceof
|
|
213
|
-
},
|
|
209
|
+
} }, R = "en", K = {};
|
|
210
|
+
K[R] = Q;
|
|
211
|
+
var fe = "$isDayjsObject", Te = function(B) {
|
|
212
|
+
return B instanceof Ce || !(!B || !B[fe]);
|
|
213
|
+
}, Ve = function B(A, y, _) {
|
|
214
214
|
var w;
|
|
215
|
-
if (!A) return
|
|
215
|
+
if (!A) return R;
|
|
216
216
|
if (typeof A == "string") {
|
|
217
217
|
var p = A.toLowerCase();
|
|
218
|
-
|
|
219
|
-
var
|
|
220
|
-
if (!w &&
|
|
218
|
+
K[p] && (w = p), y && (K[p] = y, w = p);
|
|
219
|
+
var T = A.split("-");
|
|
220
|
+
if (!w && T.length > 1) return B(T[0]);
|
|
221
221
|
} else {
|
|
222
222
|
var M = A.name;
|
|
223
|
-
|
|
223
|
+
K[M] = A, w = M;
|
|
224
224
|
}
|
|
225
|
-
return !_ && w && (
|
|
226
|
-
},
|
|
227
|
-
if (
|
|
225
|
+
return !_ && w && (R = w), w || !_ && R;
|
|
226
|
+
}, ve = function(B, A) {
|
|
227
|
+
if (Te(B)) return B.clone();
|
|
228
228
|
var y = typeof A == "object" ? A : {};
|
|
229
|
-
return y.date = B, y.args = arguments, new
|
|
230
|
-
},
|
|
231
|
-
|
|
232
|
-
return
|
|
229
|
+
return y.date = B, y.args = arguments, new Ce(y);
|
|
230
|
+
}, L = le;
|
|
231
|
+
L.l = Ve, L.i = Te, L.w = function(B, A) {
|
|
232
|
+
return ve(B, { locale: A.$L, utc: A.$u, x: A.$x, $offset: A.$offset });
|
|
233
233
|
};
|
|
234
|
-
var
|
|
234
|
+
var Ce = function() {
|
|
235
235
|
function B(y) {
|
|
236
|
-
this.$L =
|
|
236
|
+
this.$L = Ve(y.locale, null, !0), this.parse(y), this.$x = this.$x || y.x || {}, this[fe] = !0;
|
|
237
237
|
}
|
|
238
238
|
var A = B.prototype;
|
|
239
239
|
return A.parse = function(y) {
|
|
240
240
|
this.$d = function(_) {
|
|
241
241
|
var w = _.date, p = _.utc;
|
|
242
242
|
if (w === null) return /* @__PURE__ */ new Date(NaN);
|
|
243
|
-
if (
|
|
243
|
+
if (L.u(w)) return /* @__PURE__ */ new Date();
|
|
244
244
|
if (w instanceof Date) return new Date(w);
|
|
245
245
|
if (typeof w == "string" && !/Z$/i.test(w)) {
|
|
246
|
-
var
|
|
247
|
-
if (
|
|
248
|
-
var M =
|
|
249
|
-
return p ? new Date(Date.UTC(
|
|
246
|
+
var T = w.match(V);
|
|
247
|
+
if (T) {
|
|
248
|
+
var M = T[2] - 1 || 0, I = (T[7] || "0").substring(0, 3);
|
|
249
|
+
return p ? new Date(Date.UTC(T[1], M, T[3] || 1, T[4] || 0, T[5] || 0, T[6] || 0, I)) : new Date(T[1], M, T[3] || 1, T[4] || 0, T[5] || 0, T[6] || 0, I);
|
|
250
250
|
}
|
|
251
251
|
}
|
|
252
252
|
return new Date(w);
|
|
@@ -255,43 +255,43 @@ var Cl = { 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
|
-
},
|
|
281
|
-
switch (
|
|
282
|
-
case
|
|
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
|
+
switch (T) {
|
|
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:
|
|
291
291
|
return I(Ye + "Hours", 0);
|
|
292
|
-
case
|
|
292
|
+
case S:
|
|
293
293
|
return I(Ye + "Minutes", 1);
|
|
294
|
-
case
|
|
294
|
+
case f:
|
|
295
295
|
return I(Ye + "Seconds", 2);
|
|
296
296
|
case t:
|
|
297
297
|
return I(Ye + "Milliseconds", 3);
|
|
@@ -301,38 +301,38 @@ var Cl = { exports: {} };
|
|
|
301
301
|
}, A.endOf = function(y) {
|
|
302
302
|
return this.startOf(y, !1);
|
|
303
303
|
}, A.$set = function(y, _) {
|
|
304
|
-
var w, p =
|
|
305
|
-
if (p === u || p ===
|
|
306
|
-
var
|
|
307
|
-
|
|
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
|
+
if (p === u || p === c) {
|
|
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
|
|
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
|
-
if (
|
|
322
|
-
if (
|
|
323
|
-
if (
|
|
324
|
-
if (
|
|
325
|
-
var I = (w = {}, w[
|
|
326
|
-
return
|
|
321
|
+
if (T === u) return this.set(u, this.$M + y);
|
|
322
|
+
if (T === c) return this.set(c, this.$y + y);
|
|
323
|
+
if (T === v) return M(1);
|
|
324
|
+
if (T === h) return M(7);
|
|
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",
|
|
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 Cl = { 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 Cl = { 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,27 +379,27 @@ var Cl = { 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
|
-
return
|
|
390
|
+
return T;
|
|
391
391
|
}
|
|
392
392
|
return null;
|
|
393
|
-
}(be) ||
|
|
393
|
+
}(be) || T.replace(":", "");
|
|
394
394
|
});
|
|
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,
|
|
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
|
-
case
|
|
402
|
+
case c:
|
|
403
403
|
p = _e() / 12;
|
|
404
404
|
break;
|
|
405
405
|
case u:
|
|
@@ -409,15 +409,15 @@ var Cl = { 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
|
-
case
|
|
417
|
+
case S:
|
|
418
418
|
p = ae / s;
|
|
419
419
|
break;
|
|
420
|
-
case
|
|
420
|
+
case f:
|
|
421
421
|
p = ae / l;
|
|
422
422
|
break;
|
|
423
423
|
case t:
|
|
@@ -426,17 +426,17 @@ var Cl = { exports: {} };
|
|
|
426
426
|
default:
|
|
427
427
|
p = ae;
|
|
428
428
|
}
|
|
429
|
-
return w ? p :
|
|
429
|
+
return w ? p : L.a(p);
|
|
430
430
|
}, A.daysInMonth = function() {
|
|
431
431
|
return this.endOf(u).$D;
|
|
432
432
|
}, A.$locale = function() {
|
|
433
|
-
return
|
|
433
|
+
return K[this.$L];
|
|
434
434
|
}, A.locale = function(y, _) {
|
|
435
435
|
if (!y) return this.$L;
|
|
436
|
-
var w = this.clone(), p =
|
|
436
|
+
var w = this.clone(), p = Ve(y, _, !0);
|
|
437
437
|
return p && (w.$L = p), w;
|
|
438
438
|
}, A.clone = function() {
|
|
439
|
-
return
|
|
439
|
+
return L.w(this.$d, this);
|
|
440
440
|
}, A.toDate = function() {
|
|
441
441
|
return new Date(this.valueOf());
|
|
442
442
|
}, A.toJSON = function() {
|
|
@@ -446,20 +446,20 @@ var Cl = { exports: {} };
|
|
|
446
446
|
}, A.toString = function() {
|
|
447
447
|
return this.$d.toUTCString();
|
|
448
448
|
}, B;
|
|
449
|
-
}(),
|
|
450
|
-
return
|
|
451
|
-
|
|
449
|
+
}(), Me = Ce.prototype;
|
|
450
|
+
return ve.prototype = Me, [["$ms", o], ["$s", t], ["$m", f], ["$H", S], ["$W", v], ["$M", u], ["$y", c], ["$D", q]].forEach(function(B) {
|
|
451
|
+
Me[B[1]] = function(A) {
|
|
452
452
|
return this.$g(A, B[0], B[1]);
|
|
453
453
|
};
|
|
454
|
-
}),
|
|
455
|
-
return B.$i || (B(A,
|
|
456
|
-
},
|
|
457
|
-
return
|
|
458
|
-
},
|
|
454
|
+
}), ve.extend = function(B, A) {
|
|
455
|
+
return B.$i || (B(A, Ce, ve), B.$i = !0), ve;
|
|
456
|
+
}, ve.locale = Ve, ve.isDayjs = Te, ve.unix = function(B) {
|
|
457
|
+
return ve(1e3 * B);
|
|
458
|
+
}, ve.en = K[R], ve.Ls = K, ve.p = {}, ve;
|
|
459
459
|
});
|
|
460
|
-
})(
|
|
461
|
-
var sa =
|
|
462
|
-
const At = /* @__PURE__ */
|
|
460
|
+
})(Ml);
|
|
461
|
+
var sa = Ml.exports;
|
|
462
|
+
const At = /* @__PURE__ */ Cl(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,16 +472,16 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
472
472
|
}),
|
|
473
473
|
emits: ["update:modelValue"],
|
|
474
474
|
setup(n) {
|
|
475
|
-
var A, y, _, w, p,
|
|
476
|
-
const d = n, e = re(d.item || {}), l = ot(n, "modelValue"), s = re(d.ctrlKey), o = re(d.ctrlType), t = re(d.model),
|
|
477
|
-
!((p = o.value) != null && p.startsWith("text")) && !((
|
|
478
|
-
const
|
|
475
|
+
var A, y, _, w, p, T, M, I, ee, ae, _e, Ye, oe, me, Fe, be, ie, Ge;
|
|
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")) && !((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
|
+
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");
|
|
481
481
|
const U = ((ie = e.value) == null ? void 0 : ie.style) || {};
|
|
482
|
-
|
|
482
|
+
c.value = { ...c.value, justifyContent: q, ...U };
|
|
483
483
|
const V = () => {
|
|
484
|
-
const j =
|
|
484
|
+
const j = hl(), E = Object.keys(j), X = `${d.t}-${s.value}-`;
|
|
485
485
|
return E.filter((Re) => Re.startsWith(X)).map((Re) => Re.replace(X, ""));
|
|
486
486
|
}, k = re({
|
|
487
487
|
multiple: !1,
|
|
@@ -505,7 +505,7 @@ const At = /* @__PURE__ */ xl(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,39 +519,39 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
519
519
|
daterange: "YYYY-MM-DD",
|
|
520
520
|
monthrange: "YYYY-MM",
|
|
521
521
|
yearrange: "YYYY"
|
|
522
|
-
})[j] || "YYYY-MM-DD",
|
|
522
|
+
})[j] || "YYYY-MM-DD", R = re({
|
|
523
523
|
filterable: !0,
|
|
524
524
|
remote: !!(e.value && e.value["remote-method"]),
|
|
525
525
|
...e.value
|
|
526
|
-
}),
|
|
526
|
+
}), K = re((j) => {
|
|
527
527
|
e.value["remote-method"](j, (E) => {
|
|
528
528
|
rt(() => {
|
|
529
|
-
|
|
529
|
+
S.value = E;
|
|
530
530
|
});
|
|
531
531
|
});
|
|
532
|
-
}),
|
|
532
|
+
}), fe = async (j = "options") => {
|
|
533
533
|
var E;
|
|
534
534
|
try {
|
|
535
535
|
const X = await ((E = e.value) == null ? void 0 : E.getDicts(d.formInfo));
|
|
536
536
|
if (typeof X == "string")
|
|
537
|
-
|
|
537
|
+
S.value = [{ label: X, value: l.value }];
|
|
538
538
|
else {
|
|
539
539
|
const Oe = X == null ? void 0 : X.map((Ae, Re) => ({
|
|
540
540
|
...Ae,
|
|
541
541
|
value: Ae.value ?? Ae.label ?? Re,
|
|
542
542
|
label: Ae.label || "未知选项"
|
|
543
543
|
}));
|
|
544
|
-
|
|
544
|
+
S.value = Oe || [];
|
|
545
545
|
}
|
|
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__ */ xl(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__ */ xl(sa), nt = (n, d) => {
|
|
|
575
575
|
} else
|
|
576
576
|
u.value = 0;
|
|
577
577
|
v.value = !0;
|
|
578
|
-
},
|
|
578
|
+
}, Ce = re(null), Me = (j, E = 2) => {
|
|
579
579
|
if (j === "") {
|
|
580
580
|
l.value = "";
|
|
581
581
|
return;
|
|
@@ -593,15 +593,15 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
593
593
|
};
|
|
594
594
|
xt(async () => {
|
|
595
595
|
var X, Oe, Ae, Re, lt;
|
|
596
|
-
e.value && e.value["remote-method"] && (
|
|
596
|
+
e.value && e.value["remote-method"] && (R.value["remote-method"] = K), (Oe = (X = t.value[s.value]) == null ? void 0 : X.options) != null && Oe.length && (S.value = t.value[s.value].options);
|
|
597
597
|
const j = (Xe, Je = "options", Ke = t.value[s.value]) => {
|
|
598
|
-
typeof e.value.getDicts == "function" &&
|
|
598
|
+
typeof e.value.getDicts == "function" && fe(Je).catch((et) => {
|
|
599
599
|
console.error(`Failed to load ${Je} for ${Xe}:`, et);
|
|
600
600
|
});
|
|
601
601
|
};
|
|
602
602
|
if (["radio", "radio-button", "checkbox-group", "checkbox-group-button", "select", "cascader"].includes(o.value) && j(o.value), o.value === De.TREESELECT && await (async () => {
|
|
603
603
|
try {
|
|
604
|
-
typeof e.value.getDicts == "function" ?
|
|
604
|
+
typeof e.value.getDicts == "function" ? f.value = await e.value.getDicts(d.formInfo) : f.value = S.value;
|
|
605
605
|
} catch (Je) {
|
|
606
606
|
console.error("Failed to load data for tree-select:", Je);
|
|
607
607
|
}
|
|
@@ -631,15 +631,15 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
631
631
|
(et = (Ke = t.value) == null ? void 0 : Ke.table) == null || et.load();
|
|
632
632
|
});
|
|
633
633
|
}
|
|
634
|
-
o.value == "image" && (e.value.width && ((Ae =
|
|
634
|
+
o.value == "image" && (e.value.width && ((Ae = Ce.value) != null && Ae.$el) && Ce.value.$el.style.setProperty("--up-width", typeof e.value.width == "number" ? e.value.width + "px" : e.value.width), e.value.height && ((Re = Ce.value) != null && Re.$el) && Ce.value.$el.style.setProperty("--up-height", typeof e.value.height == "number" ? e.value.height + "px" : e.value.height), e.value.fontSize && ((lt = Ce.value) != null && lt.$el) && Ce.value.$el.style.setProperty("--up-font-size", typeof e.value.fontSize == "number" ? e.value.fontSize + "px" : e.value.fontSize));
|
|
635
635
|
});
|
|
636
636
|
const B = Be(() => {
|
|
637
637
|
var j;
|
|
638
638
|
return e.value["file-list"] && e.value["file-list"].length ? (j = e.value["file-list"]) == null ? void 0 : j.map((E) => E == null ? void 0 : E.url) : [l.value];
|
|
639
639
|
});
|
|
640
640
|
return (j, E) => {
|
|
641
|
-
var ut, ne, ce,
|
|
642
|
-
const X =
|
|
641
|
+
var ut, ne, ce, pe, vt, pt, it, dt, bt, Z, ct, wt, $t, Et, Zt, Jt, Kt, el, tl, ll, al, rl, nl, ol, sl, ul, il, dl;
|
|
642
|
+
const X = H("el-image-viewer"), Oe = H("el-radio"), Ae = H("el-radio-group"), Re = H("el-radio-button"), lt = H("el-checkbox"), Xe = H("el-checkbox-group"), Je = H("el-checkbox-button"), Ke = H("g-select-option"), et = H("el-option"), Ct = H("el-select"), Mt = H("el-tree-select"), a = H("el-time-picker"), i = H("el-time-select"), g = H("el-date-picker"), x = H("el-color-picker"), O = H("el-rate"), P = H("el-slider"), N = H("el-switch"), we = H("el-transfer"), Ee = H("el-cascader"), qe = H("el-icon"), je = H("el-image"), Pe = H("el-tooltip"), tt = H("el-upload"), ht = H("el-autocomplete"), St = H("el-input-number"), Tt = H("el-input-tag"), te = H("el-input"), ye = H("el-link"), ue = H("el-text"), He = H("el-avatar"), Qe = H("el-tag");
|
|
643
643
|
return m(), z(se, null, [
|
|
644
644
|
J("div", null, [
|
|
645
645
|
v.value ? (m(), D(X, {
|
|
@@ -651,7 +651,7 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
651
651
|
}, null, 8, ["initial-index", "url-list"])) : ke("", !0)
|
|
652
652
|
]),
|
|
653
653
|
J("div", {
|
|
654
|
-
style: Ue([{ display: "flex", width: "100%" },
|
|
654
|
+
style: Ue([{ display: "flex", width: "100%" }, c.value]),
|
|
655
655
|
class: "g-ctrl-container"
|
|
656
656
|
}, [
|
|
657
657
|
o.value == F(De).RADIO ? (m(), D(Ae, Y({
|
|
@@ -662,7 +662,7 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
662
662
|
}, e.value), {
|
|
663
663
|
default: $(() => [
|
|
664
664
|
C(j.$slots, `${d.t}-${s.value}`, { data: e.value }, () => [
|
|
665
|
-
(m(!0), z(se, null, W(
|
|
665
|
+
(m(!0), z(se, null, W(S.value, (b) => (m(), D(Oe, Y({ ref_for: !0 }, b), {
|
|
666
666
|
default: $(() => [
|
|
667
667
|
C(j.$slots, `${d.t}-${s.value}-options`, { option: b }, void 0, !0)
|
|
668
668
|
]),
|
|
@@ -679,7 +679,7 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
679
679
|
}, e.value), {
|
|
680
680
|
default: $(() => [
|
|
681
681
|
C(j.$slots, `${d.t}-${s.value}`, { data: e.value }, () => [
|
|
682
|
-
(m(!0), z(se, null, W(
|
|
682
|
+
(m(!0), z(se, null, W(S.value, (b) => (m(), D(Re, Y({ ref_for: !0 }, b), {
|
|
683
683
|
default: $(() => [
|
|
684
684
|
C(j.$slots, `${d.t}-${s.value}-options`, { option: b }, void 0, !0)
|
|
685
685
|
]),
|
|
@@ -704,11 +704,11 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
704
704
|
key: 3,
|
|
705
705
|
modelValue: l.value,
|
|
706
706
|
"onUpdate:modelValue": E[4] || (E[4] = (b) => l.value = b),
|
|
707
|
-
disabled: (
|
|
707
|
+
disabled: (pe = t.value[s.value]) == null ? void 0 : pe.disabled
|
|
708
708
|
}, e.value), {
|
|
709
709
|
default: $(() => [
|
|
710
710
|
C(j.$slots, `${d.t}-${s.value}`, { data: e.value }, () => [
|
|
711
|
-
(m(!0), z(se, null, W(
|
|
711
|
+
(m(!0), z(se, null, W(S.value, (b) => (m(), D(lt, Y({ ref_for: !0 }, b), {
|
|
712
712
|
default: $(() => [
|
|
713
713
|
C(j.$slots, `${d.t}-${s.value}-options`, { option: b }, () => [
|
|
714
714
|
Le(Ie(b.label), 1)
|
|
@@ -727,7 +727,7 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
727
727
|
}, F(We)(e.value, (b) => b != "type")), {
|
|
728
728
|
default: $(() => [
|
|
729
729
|
C(j.$slots, `${d.t}-${s.value}`, { data: e.value }, () => [
|
|
730
|
-
(m(!0), z(se, null, W(
|
|
730
|
+
(m(!0), z(se, null, W(S.value, (b) => (m(), D(Je, Y({ ref_for: !0 }, b), {
|
|
731
731
|
default: $(() => [
|
|
732
732
|
C(j.$slots, `${d.t}-${s.value}-options`, { option: b }, void 0, !0)
|
|
733
733
|
]),
|
|
@@ -746,20 +746,20 @@ const At = /* @__PURE__ */ xl(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 =
|
|
753
|
+
((b = S.value) == null ? void 0 : b.length) > 0 ? C(j.$slots, `${d.t}-${s.value}`, {
|
|
754
754
|
key: 0,
|
|
755
|
-
options:
|
|
755
|
+
options: S.value
|
|
756
756
|
}, () => [
|
|
757
|
-
(m(!0), z(se, null, W(
|
|
757
|
+
(m(!0), z(se, null, W(S.value, (he) => (m(), z(se, {
|
|
758
758
|
key: he.value
|
|
759
759
|
}, [
|
|
760
760
|
de(et, Y({ ref_for: !0 }, F(We)(he, (ge) => ge != "children"), {
|
|
761
761
|
onClick: (ge) => {
|
|
762
|
-
|
|
762
|
+
R.value.change && R.value.change(he), Te();
|
|
763
763
|
}
|
|
764
764
|
}), {
|
|
765
765
|
default: $(() => {
|
|
@@ -798,7 +798,7 @@ const At = /* @__PURE__ */ xl(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: $(() => {
|
|
@@ -871,7 +871,7 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
871
871
|
"onUpdate:modelValue": E[8] || (E[8] = (b) => l.value = b),
|
|
872
872
|
placeholder: r.value,
|
|
873
873
|
disabled: (dt = t.value[s.value]) == null ? void 0 : dt.disabled
|
|
874
|
-
}, e.value, { data:
|
|
874
|
+
}, e.value, { data: f.value }), $e({ _: 2 }, [
|
|
875
875
|
W(V(), (b) => ({
|
|
876
876
|
name: b,
|
|
877
877
|
fn: $((he) => [
|
|
@@ -902,7 +902,7 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
902
902
|
type: o.value,
|
|
903
903
|
format: o.value === F(De).DATE ? "YYYY-MM-DD" : o.value === F(De).DATETIME ? "YYYY-MM-DD HH:mm:ss" : "",
|
|
904
904
|
placeholder: r.value,
|
|
905
|
-
"value-format":
|
|
905
|
+
"value-format": le(o.value),
|
|
906
906
|
disabled: (ct = t.value[s.value]) == null ? void 0 : ct.disabled
|
|
907
907
|
}, e.value), $e({ _: 2 }, [
|
|
908
908
|
W(V(), (b) => ({
|
|
@@ -949,11 +949,11 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
949
949
|
C(j.$slots, `${d.t}-${s.value}-${b}`, { data: he }, void 0, !0)
|
|
950
950
|
])
|
|
951
951
|
}))
|
|
952
|
-
]), 1040, ["modelValue"])) : o.value == F(De).CASCADER ? (m(), D(
|
|
952
|
+
]), 1040, ["modelValue"])) : o.value == F(De).CASCADER ? (m(), D(Ee, Y({
|
|
953
953
|
key: 15,
|
|
954
954
|
modelValue: l.value,
|
|
955
955
|
"onUpdate:modelValue": E[17] || (E[17] = (b) => l.value = b)
|
|
956
|
-
}, e.value, { options:
|
|
956
|
+
}, e.value, { options: S.value }), $e({ _: 2 }, [
|
|
957
957
|
W(V(), (b) => ({
|
|
958
958
|
name: b,
|
|
959
959
|
fn: $((he) => [
|
|
@@ -966,17 +966,17 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
966
966
|
"onUpdate:fileList": E[21] || (E[21] = (b) => e.value["file-list"] = b),
|
|
967
967
|
"list-type": "picture-card",
|
|
968
968
|
class: "custom-upload",
|
|
969
|
-
"on-preview":
|
|
969
|
+
"on-preview": ve
|
|
970
970
|
}, { ...k.value, ...e.value }, {
|
|
971
971
|
ref_key: "uploadRef",
|
|
972
|
-
ref:
|
|
972
|
+
ref: Ce
|
|
973
973
|
}), $e({
|
|
974
974
|
default: $(() => {
|
|
975
975
|
var b, he;
|
|
976
976
|
return [
|
|
977
977
|
!l.value || ((b = e.value) == null ? void 0 : b.multiple) === !0 ? (m(), D(qe, { key: 0 }, {
|
|
978
978
|
default: $(() => [
|
|
979
|
-
de(F(
|
|
979
|
+
de(F(bl))
|
|
980
980
|
]),
|
|
981
981
|
_: 1
|
|
982
982
|
})) : (m(), z("div", {
|
|
@@ -1012,7 +1012,7 @@ const At = /* @__PURE__ */ xl(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__ */ xl(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
|
|
@@ -1059,7 +1059,7 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
1059
1059
|
modelValue: l.value,
|
|
1060
1060
|
"onUpdate:modelValue": E[23] || (E[23] = (b) => l.value = b),
|
|
1061
1061
|
placeholder: r.value,
|
|
1062
|
-
disabled: (
|
|
1062
|
+
disabled: (Zt = t.value[s.value]) == null ? void 0 : Zt.disabled
|
|
1063
1063
|
}, e.value), $e({ _: 2 }, [
|
|
1064
1064
|
W(V(), (b, he) => ({
|
|
1065
1065
|
name: b,
|
|
@@ -1075,10 +1075,10 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
1075
1075
|
modelValue: l.value,
|
|
1076
1076
|
"onUpdate:modelValue": E[24] || (E[24] = (b) => l.value = b),
|
|
1077
1077
|
placeholder: r.value,
|
|
1078
|
-
disabled: (
|
|
1078
|
+
disabled: (Jt = t.value[s.value]) == null ? void 0 : Jt.disabled,
|
|
1079
1079
|
draggable: ""
|
|
1080
1080
|
}, e.value), $e({ _: 2 }, [
|
|
1081
|
-
(
|
|
1081
|
+
(Kt = e.value) != null && Kt.suffix ? {
|
|
1082
1082
|
name: "suffix",
|
|
1083
1083
|
fn: $(() => {
|
|
1084
1084
|
var b;
|
|
@@ -1090,7 +1090,7 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
1090
1090
|
}),
|
|
1091
1091
|
key: "0"
|
|
1092
1092
|
} : void 0,
|
|
1093
|
-
(
|
|
1093
|
+
(el = e.value) != null && el.prefix ? {
|
|
1094
1094
|
name: "prefix",
|
|
1095
1095
|
fn: $(() => {
|
|
1096
1096
|
var b;
|
|
@@ -1113,15 +1113,15 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
1113
1113
|
}))
|
|
1114
1114
|
]), 1040, ["modelValue", "placeholder", "disabled"])) : o.value == F(De).MONEY ? (m(), z("div", {
|
|
1115
1115
|
key: 20,
|
|
1116
|
-
style: Ue([{ position: "relative" },
|
|
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) =>
|
|
1124
|
-
maxlength: ((
|
|
1123
|
+
onInput: E[26] || (E[26] = (b) => Me(b, 2)),
|
|
1124
|
+
maxlength: ((tl = e.value) == null ? void 0 : tl.max) || 25
|
|
1125
1125
|
}, { ...e.value, type: o.value }), $e({
|
|
1126
1126
|
suffix: $(() => [
|
|
1127
1127
|
J("div", {
|
|
@@ -1138,17 +1138,17 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
1138
1138
|
])
|
|
1139
1139
|
}))
|
|
1140
1140
|
]), 1040, ["modelValue", "placeholder", "maxlength"])
|
|
1141
|
-
], 4)) : (
|
|
1141
|
+
], 4)) : (ll = o.value) != null && ll.startsWith("link") ? (m(), z("div", {
|
|
1142
1142
|
key: 21,
|
|
1143
|
-
style: Ue(
|
|
1143
|
+
style: Ue(c.value)
|
|
1144
1144
|
}, [
|
|
1145
1145
|
de(ye, Y(e.value, {
|
|
1146
1146
|
type: o.value.replace("link-", ""),
|
|
1147
1147
|
innerHTML: Q.value || l.value
|
|
1148
1148
|
}), null, 16, ["type", "innerHTML"])
|
|
1149
|
-
], 4)) : o.value != "textarea" && ((
|
|
1149
|
+
], 4)) : o.value != "textarea" && ((al = o.value) != null && al.startsWith("text")) ? (m(), z("div", {
|
|
1150
1150
|
key: 22,
|
|
1151
|
-
style: Ue(
|
|
1151
|
+
style: Ue(c.value)
|
|
1152
1152
|
}, [
|
|
1153
1153
|
de(ue, Y(e.value, {
|
|
1154
1154
|
type: o.value.replace("text-", ""),
|
|
@@ -1156,7 +1156,7 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
1156
1156
|
}), null, 16, ["type", "innerHTML"])
|
|
1157
1157
|
], 4)) : o.value == "avatar" ? (m(), z("div", {
|
|
1158
1158
|
key: 23,
|
|
1159
|
-
style: Ue(
|
|
1159
|
+
style: Ue(c.value)
|
|
1160
1160
|
}, [
|
|
1161
1161
|
Q.value ? (m(), D(He, qt(Y({ key: 0 }, e.value)), {
|
|
1162
1162
|
default: $(() => [
|
|
@@ -1164,9 +1164,9 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
1164
1164
|
]),
|
|
1165
1165
|
_: 1
|
|
1166
1166
|
}, 16)) : (m(), D(He, qt(Y({ key: 1 }, e.value)), null, 16))
|
|
1167
|
-
], 4)) : (
|
|
1167
|
+
], 4)) : (rl = o.value) != null && rl.startsWith("tag") ? (m(), z("div", {
|
|
1168
1168
|
key: 24,
|
|
1169
|
-
style: Ue(
|
|
1169
|
+
style: Ue(c.value)
|
|
1170
1170
|
}, [
|
|
1171
1171
|
Array.isArray(Q.value) && Q.value.length > 0 ? (m(!0), z(se, { key: 0 }, W(Q.value, (b, he) => (m(), z(se, { key: he }, [
|
|
1172
1172
|
typeof b == "object" ? (m(), D(Qe, Y({
|
|
@@ -1192,32 +1192,32 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
1192
1192
|
}), null, 16, ["type", "innerHTML"]))
|
|
1193
1193
|
], 4)) : o.value == "div" ? (m(), z("div", Y({ key: 25 }, e.value, {
|
|
1194
1194
|
innerHTML: Q.value || l.value,
|
|
1195
|
-
style:
|
|
1195
|
+
style: c.value
|
|
1196
1196
|
}), null, 16, va)) : o.value == "span" ? (m(), z("span", Y({ key: 26 }, e.value, {
|
|
1197
1197
|
innerHTML: Q.value || l.value,
|
|
1198
|
-
style:
|
|
1198
|
+
style: c.value
|
|
1199
1199
|
}), null, 16, pa)) : o.value == "custom" ? (m(), z("div", {
|
|
1200
1200
|
key: 27,
|
|
1201
|
-
style: Ue(
|
|
1201
|
+
style: Ue(c.value)
|
|
1202
1202
|
}, [
|
|
1203
|
-
(m(), D(Ze(e.value.component), qt(
|
|
1204
|
-
], 4)) : (m(), D(
|
|
1203
|
+
(m(), D(Ze(e.value.component), qt(ml(F(We)(e.value, (b) => b != "component"))), null, 16))
|
|
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),
|
|
1208
1208
|
placeholder: r.value,
|
|
1209
|
-
maxlength: ((
|
|
1209
|
+
maxlength: ((nl = e.value) == null ? void 0 : nl.max) || 25,
|
|
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();
|
|
1217
1217
|
}),
|
|
1218
|
-
disabled: (
|
|
1218
|
+
disabled: (ol = t.value[s.value]) == null ? void 0 : ol.disabled
|
|
1219
1219
|
}, { ...F(We)(e.value, (b) => !["suffix", "prefix", "append", "prepend"].includes(b)), type: o.value }), $e({ _: 2 }, [
|
|
1220
|
-
(
|
|
1220
|
+
(sl = e.value) != null && sl.suffix ? {
|
|
1221
1221
|
name: "suffix",
|
|
1222
1222
|
fn: $(() => {
|
|
1223
1223
|
var b;
|
|
@@ -1229,7 +1229,7 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
1229
1229
|
}),
|
|
1230
1230
|
key: "0"
|
|
1231
1231
|
} : void 0,
|
|
1232
|
-
(
|
|
1232
|
+
(ul = e.value) != null && ul.prefix ? {
|
|
1233
1233
|
name: "prefix",
|
|
1234
1234
|
fn: $(() => {
|
|
1235
1235
|
var b;
|
|
@@ -1241,7 +1241,7 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
1241
1241
|
}),
|
|
1242
1242
|
key: "1"
|
|
1243
1243
|
} : void 0,
|
|
1244
|
-
(
|
|
1244
|
+
(il = e.value) != null && il.append ? {
|
|
1245
1245
|
name: "append",
|
|
1246
1246
|
fn: $(() => {
|
|
1247
1247
|
var b;
|
|
@@ -1253,7 +1253,7 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
1253
1253
|
}),
|
|
1254
1254
|
key: "2"
|
|
1255
1255
|
} : void 0,
|
|
1256
|
-
(
|
|
1256
|
+
(dl = e.value) != null && dl.prepend ? {
|
|
1257
1257
|
name: "prepend",
|
|
1258
1258
|
fn: $(() => {
|
|
1259
1259
|
var b;
|
|
@@ -1279,7 +1279,7 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
1279
1279
|
], 64);
|
|
1280
1280
|
};
|
|
1281
1281
|
}
|
|
1282
|
-
}), _t = /* @__PURE__ */ nt(ba, [["__scopeId", "data-v-9c7a0580"]]),
|
|
1282
|
+
}), _t = /* @__PURE__ */ nt(ba, [["__scopeId", "data-v-9c7a0580"]]), cl = {
|
|
1283
1283
|
__name: "g-query-item",
|
|
1284
1284
|
props: /* @__PURE__ */ st(["more"], {
|
|
1285
1285
|
modelValue: { required: !0 },
|
|
@@ -1300,46 +1300,46 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
1300
1300
|
const h = Object.entries(d.value).filter(([, u]) => {
|
|
1301
1301
|
const r = s(u);
|
|
1302
1302
|
return u.search && (r == null ? void 0 : r.more) === v && (r == null ? void 0 : r.hidden) !== !0 && (r == null ? void 0 : r.visible) !== !1;
|
|
1303
|
-
}).sort(([u, r], [
|
|
1303
|
+
}).sort(([u, r], [c, q]) => {
|
|
1304
1304
|
var k, Q;
|
|
1305
1305
|
const U = Number((k = s(r)) == null ? void 0 : k.sort) || 0, V = Number((Q = s(q)) == null ? void 0 : Q.sort) || 0;
|
|
1306
1306
|
return U - V;
|
|
1307
1307
|
});
|
|
1308
1308
|
return Object.fromEntries(h);
|
|
1309
|
-
}, t = (v) => typeof v.search == "function" ? v.search(l.value, d.value.table) : v.search || {},
|
|
1309
|
+
}, t = (v) => typeof v.search == "function" ? v.search(l.value, d.value.table) : v.search || {}, f = (v) => {
|
|
1310
1310
|
const h = t(v);
|
|
1311
1311
|
return (h == null ? void 0 : h.type) || v.type;
|
|
1312
|
-
},
|
|
1312
|
+
}, S = (v) => {
|
|
1313
1313
|
var r;
|
|
1314
1314
|
const h = t(v);
|
|
1315
1315
|
let u = (h == null ? void 0 : h.width) || ((r = d.value.queryItems) == null ? void 0 : r.width) || "100%";
|
|
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,
|
|
1321
|
-
key:
|
|
1319
|
+
const u = H("el-form-item");
|
|
1320
|
+
return m(!0), z(se, null, W(o(e.more), (r, c) => C(v.$slots, `q-${c}`, {
|
|
1321
|
+
key: c,
|
|
1322
1322
|
item: r,
|
|
1323
1323
|
queryModel: l.value,
|
|
1324
1324
|
model: d.value
|
|
1325
1325
|
}, () => [
|
|
1326
1326
|
de(u, Y({
|
|
1327
1327
|
label: r.label,
|
|
1328
|
-
style: { width:
|
|
1328
|
+
style: { width: S(r) }
|
|
1329
1329
|
}, { ref_for: !0 }, { ...d.value.queryItems, ...F(We)(t(r), (q) => q != "onClick") }), {
|
|
1330
1330
|
label: $(() => [
|
|
1331
|
-
C(v.$slots, `q-${
|
|
1331
|
+
C(v.$slots, `q-${c}-label`, {
|
|
1332
1332
|
item: r,
|
|
1333
1333
|
model: d.value
|
|
1334
1334
|
})
|
|
1335
1335
|
]),
|
|
1336
1336
|
default: $(() => [
|
|
1337
1337
|
de(_t, {
|
|
1338
|
-
modelValue: l.value[
|
|
1339
|
-
"onUpdate:modelValue": (q) => l.value[
|
|
1338
|
+
modelValue: l.value[c],
|
|
1339
|
+
"onUpdate:modelValue": (q) => l.value[c] = q,
|
|
1340
1340
|
item: { getDicts: r == null ? void 0 : r.getDicts, ...r == null ? void 0 : r.editor, ...t(r) },
|
|
1341
|
-
ctrlKey:
|
|
1342
|
-
ctrlType:
|
|
1341
|
+
ctrlKey: c,
|
|
1342
|
+
ctrlType: f(r),
|
|
1343
1343
|
model: d.value,
|
|
1344
1344
|
t: "q",
|
|
1345
1345
|
formInfo: l.value
|
|
@@ -1375,13 +1375,13 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
1375
1375
|
},
|
|
1376
1376
|
emits: /* @__PURE__ */ st(["query", "reset"], ["update:modelValue", "update:info"]),
|
|
1377
1377
|
setup(n, { emit: d }) {
|
|
1378
|
-
const e = ot(n, "modelValue"), l = d, s = jt("options"), o = re(!1), t = ot(n, "info"),
|
|
1379
|
-
var Q, G,
|
|
1380
|
-
const V = ze((Q = s == null ? void 0 : s.query) == null ? void 0 : Q.btns, (
|
|
1378
|
+
const e = ot(n, "modelValue"), l = d, s = jt("options"), o = re(!1), t = ot(n, "info"), f = Be(() => {
|
|
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
|
};
|
|
1384
|
-
}),
|
|
1384
|
+
}), S = {
|
|
1385
1385
|
hidden: !1,
|
|
1386
1386
|
type: "hidden",
|
|
1387
1387
|
labelWidth: 100,
|
|
@@ -1398,7 +1398,7 @@ const At = /* @__PURE__ */ xl(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__ */ xl(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__ */ xl(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
|
}
|
|
@@ -1428,12 +1428,12 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
1428
1428
|
style: {
|
|
1429
1429
|
display: "flex",
|
|
1430
1430
|
flexWrap: "wrap",
|
|
1431
|
-
justifyContent:
|
|
1431
|
+
justifyContent: f.value.justifyContent,
|
|
1432
1432
|
boxSizing: "border-box"
|
|
1433
1433
|
}
|
|
1434
1434
|
}
|
|
1435
1435
|
};
|
|
1436
|
-
e.value.query = ze(
|
|
1436
|
+
e.value.query = ze(S, s == null ? void 0 : s.query, e.value.query);
|
|
1437
1437
|
const v = {
|
|
1438
1438
|
2: {
|
|
1439
1439
|
title: "更多查询",
|
|
@@ -1468,23 +1468,23 @@ const At = /* @__PURE__ */ xl(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,
|
|
1479
1479
|
"onUpdate:info": (G) => t.value = G,
|
|
1480
1480
|
more: k
|
|
1481
1481
|
}, Q);
|
|
1482
|
-
}, r =
|
|
1483
|
-
var Q, G,
|
|
1482
|
+
}, r = hl(), c = () => {
|
|
1483
|
+
var Q, G, le, R, K, fe, Te, Ve, ve;
|
|
1484
1484
|
const V = [
|
|
1485
1485
|
{
|
|
1486
1486
|
key: "query",
|
|
1487
|
-
hidden: (
|
|
1487
|
+
hidden: (le = (G = (Q = e.value) == null ? void 0 : Q.query) == null ? void 0 : G.query) == null ? void 0 : le.hidden,
|
|
1488
1488
|
component: Ne,
|
|
1489
1489
|
props: {
|
|
1490
1490
|
...e.value.query.query,
|
|
@@ -1495,7 +1495,7 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
1495
1495
|
},
|
|
1496
1496
|
{
|
|
1497
1497
|
key: "reset",
|
|
1498
|
-
hidden: (
|
|
1498
|
+
hidden: (fe = (K = (R = e.value) == null ? void 0 : R.query) == null ? void 0 : K.reset) == null ? void 0 : fe.hidden,
|
|
1499
1499
|
component: Ne,
|
|
1500
1500
|
props: {
|
|
1501
1501
|
...e.value.query.reset,
|
|
@@ -1506,7 +1506,7 @@ const At = /* @__PURE__ */ xl(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__ */ xl(sa), nt = (n, d) => {
|
|
|
1514
1514
|
},
|
|
1515
1515
|
label: e.value.query.more.label,
|
|
1516
1516
|
sort: e.value.query.more.sort || 0,
|
|
1517
|
-
content: e.value.query.more.mode === 3 ? () =>
|
|
1517
|
+
content: e.value.query.more.mode === 3 ? () => Se(Dt, {
|
|
1518
1518
|
class: "query-form",
|
|
1519
|
-
...We(e.value.query, (
|
|
1519
|
+
...We(e.value.query, (L) => !["query", "more", "reset"].includes(L))
|
|
1520
1520
|
}, () => u({ slots: r }, !0)) : null
|
|
1521
1521
|
}
|
|
1522
1522
|
];
|
|
1523
|
-
return V.sort((
|
|
1524
|
-
reference: () =>
|
|
1525
|
-
default:
|
|
1526
|
-
}) : (
|
|
1523
|
+
return V.sort((L, Ce) => L.sort - Ce.sort), V.filter((L) => !L.hidden).map((L) => L.key === "more" && L.component === Lt ? Se(Lt, L.props, {
|
|
1524
|
+
reference: () => Se(Ne, e.value.query.more, () => L.label),
|
|
1525
|
+
default: L.content
|
|
1526
|
+
}) : (L.props.slot = "query-" + L.key, L.label ? Se(L.component, L.props, () => L.label) : Se(L.component, L.props)));
|
|
1527
1527
|
}, q = Be(() => ({
|
|
1528
1528
|
display: "flex",
|
|
1529
1529
|
flexDirection: e.value.query.container.mode === "row" ? "row" : "column"
|
|
1530
1530
|
})), U = () => {
|
|
1531
1531
|
};
|
|
1532
1532
|
return (V, k) => {
|
|
1533
|
-
var
|
|
1534
|
-
const Q =
|
|
1533
|
+
var le, R, K, fe, Te, Ve, ve, L, Ce, Me, B, A, y, _, w, p, T;
|
|
1534
|
+
const Q = H("el-form-item"), G = H("el-drawer");
|
|
1535
1535
|
return m(), z(se, null, [
|
|
1536
1536
|
J("div", {
|
|
1537
1537
|
class: "g-query-container",
|
|
1538
|
-
style: Ue({ ...q.value, ...((
|
|
1538
|
+
style: Ue({ ...q.value, ...((R = (le = e.value.query) == null ? void 0 : le.container) == null ? void 0 : R.style) || {} }),
|
|
1539
1539
|
onDblclick: U
|
|
1540
1540
|
}, [
|
|
1541
1541
|
de(F(Dt), Y({
|
|
@@ -1548,14 +1548,14 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
1548
1548
|
(m(), D(Ze(u({ slots: V.$slots }, void 0)))),
|
|
1549
1549
|
((I = (M = e.value.query) == null ? void 0 : M.container) == null ? void 0 : I.inline) === !0 ? (m(), D(Q, { key: 0 }, {
|
|
1550
1550
|
default: $(() => {
|
|
1551
|
-
var
|
|
1551
|
+
var ee, ae, _e, Ye, oe;
|
|
1552
1552
|
return [
|
|
1553
1553
|
J("div", {
|
|
1554
|
-
style: Ue((ae = (
|
|
1554
|
+
style: Ue((ae = (ee = e.value.query) == null ? void 0 : ee.btns) == null ? void 0 : ae.style)
|
|
1555
1555
|
}, [
|
|
1556
1556
|
e.value.query.group ? (m(), D(F(It), { key: 0 }, {
|
|
1557
1557
|
default: $(() => [
|
|
1558
|
-
(m(!0), z(se, null, W(
|
|
1558
|
+
(m(!0), z(se, null, W(c(), (me) => C(V.$slots, me.props.slot, {}, () => [
|
|
1559
1559
|
(m(), D(Ze(me)))
|
|
1560
1560
|
], !0)), 256)),
|
|
1561
1561
|
C(V.$slots, "q-btns", {}, void 0, !0)
|
|
@@ -1564,12 +1564,12 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
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(
|
|
1567
|
+
(m(!0), z(se, null, W(c(), (me) => C(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(
|
|
1572
|
+
})) : (m(!0), z(se, { key: 1 }, W(c(), (me) => C(V.$slots, me.props.slot, {}, () => [
|
|
1573
1573
|
(m(), D(Ze(me)))
|
|
1574
1574
|
], !0)), 256)),
|
|
1575
1575
|
C(V.$slots, "q-btns", {}, void 0, !0)
|
|
@@ -1583,34 +1583,34 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
1583
1583
|
}),
|
|
1584
1584
|
_: 3
|
|
1585
1585
|
}, 16),
|
|
1586
|
-
((
|
|
1586
|
+
((Te = (fe = (K = e.value) == null ? void 0 : K.query) == null ? void 0 : fe.container) == null ? void 0 : Te.inline) === !1 ? (m(), z("div", {
|
|
1587
1587
|
key: 0,
|
|
1588
|
-
style: Ue([{ "margin-bottom": "18px" }, (
|
|
1588
|
+
style: Ue([{ "margin-bottom": "18px" }, (ve = (Ve = e.value.query) == null ? void 0 : Ve.btns) == null ? void 0 : ve.style])
|
|
1589
1589
|
}, [
|
|
1590
1590
|
e.value.query.group ? (m(), D(F(It), { key: 0 }, {
|
|
1591
1591
|
default: $(() => [
|
|
1592
|
-
(m(!0), z(se, null, W(
|
|
1592
|
+
(m(!0), z(se, null, W(c(), (M) => C(V.$slots, M.props.slot, {}, () => [
|
|
1593
1593
|
(m(), D(Ze(M)))
|
|
1594
1594
|
], !0)), 256)),
|
|
1595
1595
|
C(V.$slots, "q-btns", {}, void 0, !0)
|
|
1596
1596
|
]),
|
|
1597
1597
|
_: 3
|
|
1598
1598
|
})) : (m(), z(se, { key: 1 }, [
|
|
1599
|
-
(
|
|
1599
|
+
(Ce = (L = e.value.query) == null ? void 0 : L.btns) != null && Ce.group ? (m(), D(F(It), { key: 0 }, {
|
|
1600
1600
|
default: $(() => [
|
|
1601
|
-
(m(!0), z(se, null, W(
|
|
1601
|
+
(m(!0), z(se, null, W(c(), (M) => C(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(
|
|
1606
|
+
})) : (m(!0), z(se, { key: 1 }, W(c(), (M) => C(V.$slots, M.props.slot, {}, () => [
|
|
1607
1607
|
(m(), D(Ze(M)))
|
|
1608
1608
|
], !0)), 256)),
|
|
1609
1609
|
C(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),
|
|
@@ -1623,14 +1623,14 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
1623
1623
|
}, ["prevent"]))
|
|
1624
1624
|
}, F(We)(e.value.query, (M) => !["query", "more", "reset"].includes(M)), { style: { width: "98%" } }), {
|
|
1625
1625
|
default: $(() => [
|
|
1626
|
-
de(
|
|
1626
|
+
de(cl, {
|
|
1627
1627
|
modelValue: e.value,
|
|
1628
1628
|
"onUpdate:modelValue": k[1] || (k[1] = (M) => e.value = M),
|
|
1629
1629
|
info: t.value,
|
|
1630
1630
|
"onUpdate:info": k[2] || (k[2] = (M) => t.value = M),
|
|
1631
1631
|
more: !0
|
|
1632
1632
|
}, $e({ _: 2 }, [
|
|
1633
|
-
W(V.$slots, (M, I,
|
|
1633
|
+
W(V.$slots, (M, I, ee) => ({
|
|
1634
1634
|
name: I,
|
|
1635
1635
|
fn: $((ae) => [
|
|
1636
1636
|
C(V.$slots, I, { model: e.value }, void 0, !0)
|
|
@@ -1643,10 +1643,10 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
1643
1643
|
]),
|
|
1644
1644
|
_: 2
|
|
1645
1645
|
}, [
|
|
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
|
-
J("div", qt(
|
|
1649
|
+
J("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,9 +1674,9 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
1674
1674
|
style: { padding: "10px" }
|
|
1675
1675
|
}, {
|
|
1676
1676
|
default: $(() => {
|
|
1677
|
-
var M, I,
|
|
1677
|
+
var M, I, ee;
|
|
1678
1678
|
return [
|
|
1679
|
-
o.value && !((
|
|
1679
|
+
o.value && !((ee = (I = (M = e.value) == null ? void 0 : M.query) == null ? void 0 : I.more) != null && ee.hidden) && e.value.query.more.mode == 1 ? (m(), z("div", wa, [
|
|
1680
1680
|
J("div", $a, [
|
|
1681
1681
|
e.value.query.more.mode == 1 ? Fl((m(), D(F(Dt), Y({
|
|
1682
1682
|
key: 0,
|
|
@@ -1699,7 +1699,7 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
1699
1699
|
], 64);
|
|
1700
1700
|
};
|
|
1701
1701
|
}
|
|
1702
|
-
}, _a = /* @__PURE__ */ nt(ka, [["__scopeId", "data-v-eaca2240"]]),
|
|
1702
|
+
}, _a = /* @__PURE__ */ nt(ka, [["__scopeId", "data-v-eaca2240"]]), Sl = {
|
|
1703
1703
|
inline: !0,
|
|
1704
1704
|
type: "hidden",
|
|
1705
1705
|
"scroll-to-error": !0,
|
|
@@ -1730,7 +1730,7 @@ const At = /* @__PURE__ */ xl(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__ */ xl(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__ */ xl(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__ */ xl(sa), nt = (n, d) => {
|
|
|
1763
1763
|
height: "200px",
|
|
1764
1764
|
style: { minHeight: "200px" }
|
|
1765
1765
|
}
|
|
1766
|
-
},
|
|
1766
|
+
}, Xt = ["table", "tableColumns", "query", "queryItems", "form", "formItems", "control", "dialog"], xa = { class: "g-form-container" }, Ca = /* @__PURE__ */ Object.assign({
|
|
1767
1767
|
name: "g-form",
|
|
1768
1768
|
inheritAttrs: !1
|
|
1769
1769
|
}, {
|
|
@@ -1774,26 +1774,26 @@ const At = /* @__PURE__ */ xl(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
|
|
1778
|
-
const l = ot(n, "modelValue"), s = e, o = re(null), t = jt("options"),
|
|
1777
|
+
var Ve, ve, L, Ce, Me, B, A;
|
|
1778
|
+
const l = ot(n, "modelValue"), s = e, o = re(null), t = jt("options"), f = re({}), S = re(""), v = n;
|
|
1779
1779
|
l.value.form = ze(
|
|
1780
|
-
|
|
1780
|
+
Sl,
|
|
1781
1781
|
t == null ? void 0 : t.form,
|
|
1782
|
-
(
|
|
1782
|
+
(Ve = l.value) == null ? void 0 : Ve.form
|
|
1783
1783
|
), l.value.form.style = ze(
|
|
1784
|
-
(
|
|
1785
|
-
{ ...(
|
|
1784
|
+
(L = (ve = l.value) == null ? void 0 : ve.form) == null ? void 0 : L.style,
|
|
1785
|
+
{ ...(Ce = zt()) == null ? void 0 : Ce.style }
|
|
1786
1786
|
);
|
|
1787
1787
|
const h = async (y, _, w) => {
|
|
1788
1788
|
let p = 5;
|
|
1789
1789
|
for (; p > 0; ) {
|
|
1790
1790
|
if (await rt(), o.value) {
|
|
1791
|
-
o.value.validate((
|
|
1792
|
-
|
|
1791
|
+
o.value.validate((T, M) => {
|
|
1792
|
+
T ? s("submit", y, _, w) : console.error("表单验证不通过!", M);
|
|
1793
1793
|
});
|
|
1794
1794
|
return;
|
|
1795
1795
|
}
|
|
1796
|
-
p--, await new Promise((
|
|
1796
|
+
p--, await new Promise((T) => setTimeout(T, 50));
|
|
1797
1797
|
}
|
|
1798
1798
|
console.error("表单实例获取失败,请检查组件状态");
|
|
1799
1799
|
}, u = async (y, _) => {
|
|
@@ -1822,14 +1822,14 @@ const At = /* @__PURE__ */ xl(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
|
-
const
|
|
1827
|
+
const c = {
|
|
1828
1828
|
span: 12,
|
|
1829
1829
|
offset: 0
|
|
1830
1830
|
};
|
|
1831
1831
|
l.value.form.cols = ze(
|
|
1832
|
-
|
|
1832
|
+
c,
|
|
1833
1833
|
(B = t == null ? void 0 : t.form) == null ? void 0 : B.cols,
|
|
1834
1834
|
l.value.form.cols
|
|
1835
1835
|
);
|
|
@@ -1852,14 +1852,14 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
1852
1852
|
message: `${p.label}不能为空!`,
|
|
1853
1853
|
trigger: "blur"
|
|
1854
1854
|
}), p.max !== void 0 && p.max !== null && p.max !== "" && (p.min === void 0 || p.min === null || p.min === "") && _.push({
|
|
1855
|
-
validator: (
|
|
1855
|
+
validator: (T, M, I) => {
|
|
1856
1856
|
if (M == null || M === "") return I();
|
|
1857
1857
|
p.type !== "number" && p.type !== "input-number" ? ((M == null ? void 0 : M.toString()) || "").length > Number(p.max) ? I(
|
|
1858
1858
|
new Error(`${p.label}长度不能超过${p.max}个字符!`)
|
|
1859
1859
|
) : I() : Number(M) > Number(p.max) ? I(new Error(`${p.label}不能大于${p.max}!`)) : I();
|
|
1860
1860
|
}
|
|
1861
1861
|
}), p.min !== void 0 && p.min !== null && p.min !== "" && (p.max === void 0 || p.max === null || p.max === "") && _.push({
|
|
1862
|
-
validator: (
|
|
1862
|
+
validator: (T, M, I) => {
|
|
1863
1863
|
if (M == null || M === "") return I();
|
|
1864
1864
|
p.type !== "number" && p.type !== "input-number" ? Number(p.min) < 1 ? I(
|
|
1865
1865
|
new Error(
|
|
@@ -1872,51 +1872,51 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
1872
1872
|
) : I() : Number(M) < Number(p.min) ? I(new Error(`${p.label}不能小于${p.min}!`)) : I();
|
|
1873
1873
|
}
|
|
1874
1874
|
}), p.min !== void 0 && p.min !== null && p.min !== "" && p.max !== void 0 && p.max !== null && p.max !== "" && _.push({
|
|
1875
|
-
validator: (
|
|
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,
|
|
1890
1890
|
message: (p == null ? void 0 : p.message) || "格式不正确!"
|
|
1891
1891
|
}), p.validate && _.push({
|
|
1892
|
-
validator: (
|
|
1892
|
+
validator: (T, M, I) => p.validate(T, M, I)
|
|
1893
1893
|
});
|
|
1894
1894
|
}
|
|
1895
1895
|
return _;
|
|
1896
1896
|
}, U = (y, _ = !1) => {
|
|
1897
|
-
var
|
|
1898
|
-
const w = _ ? y : y == null ? void 0 : y.item, p = typeof (w == null ? void 0 : w.editor) == "function" ? w.editor(
|
|
1897
|
+
var T, M, I, ee, ae;
|
|
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
|
}
|
|
1907
1907
|
return p;
|
|
1908
1908
|
}, V = (y) => {
|
|
1909
|
-
var w, p,
|
|
1910
|
-
const _ = typeof y.editor == "function" ? y.editor(
|
|
1911
|
-
return ((p = l.value.form) == null ? void 0 : p.modalState) === "edit" ? ((
|
|
1909
|
+
var w, p, T, M, I;
|
|
1910
|
+
const _ = typeof y.editor == "function" ? y.editor(f.value, (w = l.value.form) == null ? void 0 : w.modalState) : y.editor;
|
|
1911
|
+
return ((p = l.value.form) == null ? void 0 : p.modalState) === "edit" ? ((T = _ == null ? void 0 : _.ep) == null ? void 0 : T.type) ?? (_ == null ? void 0 : _.type) ?? y.type : ((M = l.value.form) == null ? void 0 : M.modalState) === "add" ? ((I = _ == null ? void 0 : _.ap) == null ? void 0 : I.type) ?? (_ == null ? void 0 : _.type) ?? y.type : (_ == null ? void 0 : _.type) ?? y.type;
|
|
1912
1912
|
}, k = (y) => y === "left" ? "flex-start" : y === "right" ? "flex-end" : y === "center" ? "center" : "flex-end";
|
|
1913
1913
|
xt(() => {
|
|
1914
|
-
Q(), v != null && v.editForm ?
|
|
1914
|
+
Q(), v != null && v.editForm ? f.value = v.editForm : f.value = le.value;
|
|
1915
1915
|
}), zl(() => {
|
|
1916
1916
|
o.value = null;
|
|
1917
1917
|
});
|
|
1918
1918
|
const Q = () => {
|
|
1919
|
-
|
|
1919
|
+
S.value = Math.random().toString(36).substring(2);
|
|
1920
1920
|
for (const [y, _] of Object.entries(G.value))
|
|
1921
1921
|
l.value[y].formItem = {
|
|
1922
1922
|
...l.value[y].formItem,
|
|
@@ -1929,30 +1929,30 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
1929
1929
|
const y = l.value.form.modalState;
|
|
1930
1930
|
let _ = Object.entries(l.value).filter(([w, p]) => {
|
|
1931
1931
|
var M, I;
|
|
1932
|
-
if (p.type === "hidden" || p.type === "control" || p.hidden === !0 || p.edit === !1 || p.editor === !1 ||
|
|
1933
|
-
const
|
|
1934
|
-
return y === "edit" ? ((M =
|
|
1932
|
+
if (p.type === "hidden" || p.type === "control" || p.hidden === !0 || p.edit === !1 || p.editor === !1 || Xt.includes(w)) return !1;
|
|
1933
|
+
const T = typeof p.editor == "function" ? p.editor(f.value, y) : p.editor;
|
|
1934
|
+
return y === "edit" ? ((M = T == null ? void 0 : T.ep) == null ? void 0 : M.editor) !== !1 : y === "add" ? ((I = T == null ? void 0 : T.ap) == null ? void 0 : I.editor) !== !1 : !0;
|
|
1935
1935
|
});
|
|
1936
1936
|
return _.sort((w, p) => {
|
|
1937
|
-
const
|
|
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
|
-
return
|
|
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;
|
|
1949
|
-
const
|
|
1950
|
-
return M && ((I =
|
|
1949
|
+
const T = typeof p.editor == "function" ? p.editor(f.value, y) : p.editor, M = y === "add" ? "ap" : y === "edit" ? "ep" : null;
|
|
1950
|
+
return M && ((I = T == null ? void 0 : T[M]) == null ? void 0 : I.value) !== void 0 ? T[M].value : (T == null ? void 0 : T.value) !== void 0 ? T.value : p.value;
|
|
1951
1951
|
};
|
|
1952
1952
|
return Object.fromEntries(
|
|
1953
|
-
Object.entries(l.value).filter(([, p]) => p.type !== "hidden" && p.type !== "control").map(([p,
|
|
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__ */ xl(sa), nt = (n, d) => {
|
|
|
1967
1967
|
..._.items.map(({ item: w }) => w.tabPane || {})
|
|
1968
1968
|
);
|
|
1969
1969
|
}), Array.from(y.values());
|
|
1970
|
-
}),
|
|
1970
|
+
}), K = re(((A = l.value.form.tabs) == null ? void 0 : A.activeTab) || (R.value.length > 0 ? R.value[0].groupName : null)), fe = re([
|
|
1971
1971
|
{
|
|
1972
1972
|
name: "f-submit",
|
|
1973
1973
|
label: l.value.form.submit.label,
|
|
@@ -2009,21 +2009,21 @@ const At = /* @__PURE__ */ xl(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,
|
|
2016
2016
|
reset: u,
|
|
2017
|
-
formData:
|
|
2017
|
+
formData: f
|
|
2018
2018
|
}), (y, _) => {
|
|
2019
2019
|
var ae, _e, Ye;
|
|
2020
|
-
const w =
|
|
2020
|
+
const w = H("el-form-item"), p = H("el-col"), T = H("el-tab-pane"), M = H("el-tabs"), I = H("el-form"), ee = H("el-button");
|
|
2021
2021
|
return m(), z("div", xa, [
|
|
2022
2022
|
de(I, Y(
|
|
2023
2023
|
{
|
|
2024
2024
|
ref_key: "gform",
|
|
2025
2025
|
ref: o,
|
|
2026
|
-
model:
|
|
2026
|
+
model: f.value,
|
|
2027
2027
|
style: {
|
|
2028
2028
|
width: "100%",
|
|
2029
2029
|
padding: 0,
|
|
@@ -2037,16 +2037,16 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
2037
2037
|
)
|
|
2038
2038
|
), {
|
|
2039
2039
|
default: $(() => [
|
|
2040
|
-
|
|
2040
|
+
R.value.length > 0 ? C(y.$slots, "default", { key: 0 }, () => {
|
|
2041
2041
|
var oe, me, Fe;
|
|
2042
2042
|
return [
|
|
2043
2043
|
de(M, Y({
|
|
2044
|
-
modelValue:
|
|
2045
|
-
"onUpdate:modelValue": _[0] || (_[0] = (be) =>
|
|
2044
|
+
modelValue: K.value,
|
|
2045
|
+
"onUpdate:modelValue": _[0] || (_[0] = (be) => K.value = be),
|
|
2046
2046
|
style: [{ width: "100%" }, { height: (Fe = (me = (oe = l.value) == null ? void 0 : oe.form) == null ? void 0 : me.tabs) == null ? void 0 : Fe.height }]
|
|
2047
2047
|
}, l.value.form.tabs), {
|
|
2048
2048
|
default: $(() => [
|
|
2049
|
-
(m(!0), z(se, null, W(
|
|
2049
|
+
(m(!0), z(se, null, W(R.value, (be) => (m(), D(T, Y({
|
|
2050
2050
|
key: be.groupName,
|
|
2051
2051
|
label: be.groupName,
|
|
2052
2052
|
name: be.groupName,
|
|
@@ -2068,21 +2068,21 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
2068
2068
|
default: $(() => [
|
|
2069
2069
|
C(y.$slots, "f-" + ie.key, {
|
|
2070
2070
|
item: ie == null ? void 0 : ie.item,
|
|
2071
|
-
formInfo:
|
|
2071
|
+
formInfo: f.value,
|
|
2072
2072
|
model: l.value,
|
|
2073
|
-
form:
|
|
2073
|
+
form: f.value
|
|
2074
2074
|
}, () => [
|
|
2075
2075
|
(m(), D(_t, {
|
|
2076
|
-
modelValue:
|
|
2077
|
-
"onUpdate:modelValue": (X) =>
|
|
2076
|
+
modelValue: f.value[ie.key],
|
|
2077
|
+
"onUpdate:modelValue": (X) => f.value[ie.key] = X,
|
|
2078
2078
|
item: U(ie),
|
|
2079
2079
|
ctrlKey: ie.key,
|
|
2080
2080
|
ctrlType: V(ie == null ? void 0 : ie.item),
|
|
2081
2081
|
model: l.value,
|
|
2082
|
-
key: `${ie.key}-${
|
|
2082
|
+
key: `${ie.key}-${S.value}`,
|
|
2083
2083
|
class: "g-ctrl-container",
|
|
2084
2084
|
t: "f",
|
|
2085
|
-
formInfo:
|
|
2085
|
+
formInfo: f.value
|
|
2086
2086
|
}, $e({ _: 2 }, [
|
|
2087
2087
|
W(y.$slots, (X, Oe) => ({
|
|
2088
2088
|
name: Oe,
|
|
@@ -2135,21 +2135,21 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
2135
2135
|
default: $(() => [
|
|
2136
2136
|
C(y.$slots, "f-" + me, {
|
|
2137
2137
|
item: oe,
|
|
2138
|
-
formInfo:
|
|
2138
|
+
formInfo: f.value,
|
|
2139
2139
|
model: l.value,
|
|
2140
|
-
form:
|
|
2140
|
+
form: f.value
|
|
2141
2141
|
}, () => [
|
|
2142
2142
|
(m(), D(_t, {
|
|
2143
|
-
modelValue:
|
|
2144
|
-
"onUpdate:modelValue": (be) =>
|
|
2143
|
+
modelValue: f.value[me],
|
|
2144
|
+
"onUpdate:modelValue": (be) => f.value[me] = be,
|
|
2145
2145
|
item: U(oe, !0),
|
|
2146
2146
|
ctrlKey: me,
|
|
2147
2147
|
ctrlType: V(oe),
|
|
2148
|
-
key: `${me}-${
|
|
2148
|
+
key: `${me}-${S.value}`,
|
|
2149
2149
|
model: l.value,
|
|
2150
2150
|
class: "g-ctrl-container",
|
|
2151
2151
|
t: "f",
|
|
2152
|
-
formInfo:
|
|
2152
|
+
formInfo: f.value
|
|
2153
2153
|
}, $e({ _: 2 }, [
|
|
2154
2154
|
W(y.$slots, (be, ie) => ({
|
|
2155
2155
|
name: ie,
|
|
@@ -2179,16 +2179,16 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
2179
2179
|
style: Ue({ justifyContent: k(l.value.form.footer.align), ...l.value.form.footer.style })
|
|
2180
2180
|
}, [
|
|
2181
2181
|
C(y.$slots, "f-footer-left", {}, void 0, !0),
|
|
2182
|
-
(m(!0), z(se, null, W(
|
|
2182
|
+
(m(!0), z(se, null, W(Te.value, (oe) => (m(), z(se, null, [
|
|
2183
2183
|
C(y.$slots, oe.name + "-left", {}, void 0, !0),
|
|
2184
2184
|
C(y.$slots, oe.name, {}, () => {
|
|
2185
2185
|
var me;
|
|
2186
2186
|
return [
|
|
2187
|
-
(me = oe == null ? void 0 : oe.info) != null && me.hidden ? ke("", !0) : (m(), D(
|
|
2187
|
+
(me = oe == null ? void 0 : oe.info) != null && me.hidden ? ke("", !0) : (m(), D(ee, Y({
|
|
2188
2188
|
key: 0,
|
|
2189
2189
|
ref_for: !0
|
|
2190
2190
|
}, oe.info, {
|
|
2191
|
-
onClick: yt((Fe) => oe.click(
|
|
2191
|
+
onClick: yt((Fe) => oe.click(f.value, l.value, oe.flag), ["stop"])
|
|
2192
2192
|
}), {
|
|
2193
2193
|
default: $(() => [
|
|
2194
2194
|
Le(Ie(oe == null ? void 0 : oe.label), 1)
|
|
@@ -2233,7 +2233,7 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
2233
2233
|
minimize: { type: Boolean, default: !1 },
|
|
2234
2234
|
// 图标配置
|
|
2235
2235
|
maxIcon: { type: Object, default: () => Zl },
|
|
2236
|
-
resizeIcon: { type: Object, default: () =>
|
|
2236
|
+
resizeIcon: { type: Object, default: () => wl },
|
|
2237
2237
|
closeIcon: { type: Object, default: () => Ql },
|
|
2238
2238
|
minIcon: { type: Object, default: () => Xl },
|
|
2239
2239
|
draggable: { type: Boolean, default: !0 },
|
|
@@ -2253,19 +2253,19 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
2253
2253
|
"restore"
|
|
2254
2254
|
],
|
|
2255
2255
|
setup(n, { expose: d, emit: e }) {
|
|
2256
|
-
const l = n, s = zt(), o = e, t = re(l.fullscreen),
|
|
2257
|
-
const
|
|
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 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,11 +2273,11 @@ const At = /* @__PURE__ */ xl(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
|
-
function
|
|
2280
|
+
function c() {
|
|
2281
2281
|
u.value = !1, r.value = !1, o("open");
|
|
2282
2282
|
}
|
|
2283
2283
|
function q() {
|
|
@@ -2300,37 +2300,37 @@ const At = /* @__PURE__ */ xl(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",
|
|
2307
2307
|
onClick: G
|
|
2308
2308
|
}, Ie(n.title), 1)) : (m(), z("div", Sa, [
|
|
2309
|
-
(m(), D(Ze(
|
|
2309
|
+
(m(), D(Ze(f.value), Y({
|
|
2310
2310
|
ref_key: "dialogExtend",
|
|
2311
2311
|
ref: h,
|
|
2312
2312
|
modelValue: v.value,
|
|
2313
|
-
"onUpdate:modelValue":
|
|
2314
|
-
onOpen:
|
|
2313
|
+
"onUpdate:modelValue": R[1] || (R[1] = (K) => v.value = K),
|
|
2314
|
+
onOpen: c,
|
|
2315
2315
|
onOpened: q,
|
|
2316
2316
|
"lock-scroll": !0,
|
|
2317
2317
|
onClose: U,
|
|
2318
2318
|
onClosed: V,
|
|
2319
2319
|
draggable: ""
|
|
2320
|
-
},
|
|
2320
|
+
}, S.value, {
|
|
2321
2321
|
fullscreen: t.value,
|
|
2322
2322
|
"show-close": !1
|
|
2323
2323
|
}), $e({
|
|
2324
|
-
header: $(({ titleClass:
|
|
2325
|
-
C(
|
|
2326
|
-
titleClass:
|
|
2327
|
-
closeIconClass:
|
|
2324
|
+
header: $(({ titleClass: K, closeIconClass: fe }) => [
|
|
2325
|
+
C(le.$slots, "header", {
|
|
2326
|
+
titleClass: K,
|
|
2327
|
+
closeIconClass: fe
|
|
2328
2328
|
}, () => [
|
|
2329
2329
|
J("div", {
|
|
2330
2330
|
class: "custom-header",
|
|
2331
2331
|
style: Ue(l.headerStyle)
|
|
2332
2332
|
}, [
|
|
2333
|
-
C(
|
|
2333
|
+
C(le.$slots, "title", {}, () => [
|
|
2334
2334
|
J("span", Ta, Ie(n.title), 1)
|
|
2335
2335
|
], !0),
|
|
2336
2336
|
J("div", null, [
|
|
@@ -2357,7 +2357,7 @@ const At = /* @__PURE__ */ xl(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__ */ xl(sa), nt = (n, d) => {
|
|
|
2369
2369
|
], !0)
|
|
2370
2370
|
]),
|
|
2371
2371
|
default: $(() => [
|
|
2372
|
-
C(
|
|
2372
|
+
C(le.$slots, "default", {}, void 0, !0)
|
|
2373
2373
|
]),
|
|
2374
2374
|
_: 2
|
|
2375
2375
|
}, [
|
|
2376
|
-
|
|
2376
|
+
le.$slots.footer ? {
|
|
2377
2377
|
name: "footer",
|
|
2378
2378
|
fn: $(() => [
|
|
2379
|
-
C(
|
|
2379
|
+
C(le.$slots, "footer", {}, void 0, !0)
|
|
2380
2380
|
]),
|
|
2381
2381
|
key: "0"
|
|
2382
2382
|
} : void 0,
|
|
2383
2383
|
l.type === "drawer" ? {
|
|
2384
2384
|
name: "trigger",
|
|
2385
2385
|
fn: $(() => [
|
|
2386
|
-
C(
|
|
2386
|
+
C(le.$slots, "trigger", {}, void 0, !0)
|
|
2387
2387
|
]),
|
|
2388
2388
|
key: "1"
|
|
2389
2389
|
} : void 0
|
|
@@ -2391,7 +2391,7 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
2391
2391
|
]))
|
|
2392
2392
|
]));
|
|
2393
2393
|
}
|
|
2394
|
-
}),
|
|
2394
|
+
}), Qt = /* @__PURE__ */ nt(Ea, [["__scopeId", "data-v-99d6bb1e"]]), Va = { style: { padding: "15px", "box-sizing": "border-box" } }, Da = { style: { display: "flex", flex: "1", "align-items": "center", height: "30px" } }, Ia = { style: { display: "flex", flex: "1", "align-items": "center" } }, Oa = {
|
|
2395
2395
|
style: { display: "flex", "flex-wrap": "wrap" },
|
|
2396
2396
|
id: "excelSortEl"
|
|
2397
2397
|
}, qa = ["textContent"], Aa = { style: { width: "100%", display: "flex", padding: "10px 10px 0 10px", "box-sizing": "border-box", "justify-content": "center", "border-top": "1px solid #dcdfe6" } }, Ya = {
|
|
@@ -2403,39 +2403,39 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
2403
2403
|
emits: ["excel"],
|
|
2404
2404
|
setup(n, { emit: d }) {
|
|
2405
2405
|
const e = n, l = d, s = re(e.items), o = () => {
|
|
2406
|
-
s.value.forEach((
|
|
2407
|
-
|
|
2406
|
+
s.value.forEach((S) => {
|
|
2407
|
+
S.value = !0;
|
|
2408
2408
|
});
|
|
2409
2409
|
}, t = () => {
|
|
2410
|
-
s.value.forEach((
|
|
2411
|
-
|
|
2410
|
+
s.value.forEach((S) => {
|
|
2411
|
+
S.value = !1;
|
|
2412
2412
|
});
|
|
2413
|
-
},
|
|
2414
|
-
l("excel", s.value, (
|
|
2415
|
-
if (!
|
|
2413
|
+
}, f = () => {
|
|
2414
|
+
l("excel", s.value, (S, v = "excel.xls") => {
|
|
2415
|
+
if (!S) {
|
|
2416
2416
|
console.error("下载链接无效");
|
|
2417
2417
|
return;
|
|
2418
2418
|
}
|
|
2419
2419
|
try {
|
|
2420
2420
|
const h = document.createElement("a");
|
|
2421
|
-
h.href =
|
|
2421
|
+
h.href = S, h.download = v, h.style.display = "none", document.body.appendChild(h), h.click(), document.body.removeChild(h);
|
|
2422
2422
|
} catch (h) {
|
|
2423
2423
|
console.error("下载文件时出现错误:", h);
|
|
2424
2424
|
}
|
|
2425
2425
|
});
|
|
2426
2426
|
};
|
|
2427
2427
|
return xt(() => {
|
|
2428
|
-
const
|
|
2428
|
+
const S = new xl(document.getElementById("excelSortEl"), {
|
|
2429
2429
|
animation: 150,
|
|
2430
2430
|
onEnd: () => {
|
|
2431
|
-
|
|
2431
|
+
S.toArray();
|
|
2432
2432
|
}
|
|
2433
|
-
}), v =
|
|
2433
|
+
}), v = S;
|
|
2434
2434
|
Ul(() => {
|
|
2435
2435
|
v && v.destroy();
|
|
2436
2436
|
});
|
|
2437
|
-
}), (
|
|
2438
|
-
const h =
|
|
2437
|
+
}), (S, v) => {
|
|
2438
|
+
const h = H("el-divider"), u = H("el-icon"), r = H("el-text"), c = H("el-checkbox"), q = H("el-button");
|
|
2439
2439
|
return m(), z("div", Va, [
|
|
2440
2440
|
J("div", null, [
|
|
2441
2441
|
J("div", Da, [
|
|
@@ -2458,7 +2458,7 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
2458
2458
|
default: $(() => [
|
|
2459
2459
|
de(u, { size: "16" }, {
|
|
2460
2460
|
default: $(() => [
|
|
2461
|
-
de(F(
|
|
2461
|
+
de(F($l))
|
|
2462
2462
|
]),
|
|
2463
2463
|
_: 1
|
|
2464
2464
|
}),
|
|
@@ -2470,7 +2470,7 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
2470
2470
|
]),
|
|
2471
2471
|
v[1] || (v[1] = J("div", { style: { margin: "1px 0" } }, null, -1)),
|
|
2472
2472
|
J("div", Oa, [
|
|
2473
|
-
(m(!0), z(se, null, W(s.value, (U) => (m(), D(
|
|
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" },
|
|
2476
2476
|
"data-id": U.key,
|
|
@@ -2492,8 +2492,8 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
2492
2492
|
J("div", Aa, [
|
|
2493
2493
|
de(q, {
|
|
2494
2494
|
type: "primary",
|
|
2495
|
-
onClick:
|
|
2496
|
-
icon: F(
|
|
2495
|
+
onClick: f,
|
|
2496
|
+
icon: F(kl),
|
|
2497
2497
|
disabled: s.value.filter((U) => U.value).length < 1
|
|
2498
2498
|
}, {
|
|
2499
2499
|
default: $(() => [
|
|
@@ -2628,17 +2628,17 @@ const Ga = { style: { padding: "15px", "box-sizing": "border-box" } }, Xa = { st
|
|
|
2628
2628
|
let s = re([]);
|
|
2629
2629
|
const o = ot(n, "modelValue"), t = async (u, r) => {
|
|
2630
2630
|
u ? (o.value[r].showCol = !0, await Ot(e.tuid, r, "del")) : (o.value[r].showCol = !1, await Ot(e.tuid, r, "add"));
|
|
2631
|
-
},
|
|
2631
|
+
}, f = () => {
|
|
2632
2632
|
const u = document.getElementById("cols");
|
|
2633
2633
|
if (u) {
|
|
2634
|
-
let r =
|
|
2634
|
+
let r = xl.create(u, {
|
|
2635
2635
|
animation: 150,
|
|
2636
2636
|
filter: ".filtered",
|
|
2637
2637
|
sort: !0,
|
|
2638
2638
|
onEnd: async () => {
|
|
2639
|
-
let
|
|
2639
|
+
let c = r.toArray();
|
|
2640
2640
|
try {
|
|
2641
|
-
Na(e.tuid,
|
|
2641
|
+
Na(e.tuid, c).then((q) => {
|
|
2642
2642
|
l("setting-drag-end");
|
|
2643
2643
|
});
|
|
2644
2644
|
} catch (q) {
|
|
@@ -2650,7 +2650,7 @@ const Ga = { style: { padding: "15px", "box-sizing": "border-box" } }, Xa = { st
|
|
|
2650
2650
|
}
|
|
2651
2651
|
});
|
|
2652
2652
|
}
|
|
2653
|
-
},
|
|
2653
|
+
}, S = async () => {
|
|
2654
2654
|
try {
|
|
2655
2655
|
s.value.forEach((u) => {
|
|
2656
2656
|
u.showCol = !0;
|
|
@@ -2678,7 +2678,7 @@ const Ga = { style: { padding: "15px", "box-sizing": "border-box" } }, Xa = { st
|
|
|
2678
2678
|
});
|
|
2679
2679
|
}
|
|
2680
2680
|
}, h = () => {
|
|
2681
|
-
|
|
2681
|
+
pl.confirm("确定要复位吗?", "提示", {
|
|
2682
2682
|
confirmButtonText: "确定",
|
|
2683
2683
|
cancelButtonText: "取消",
|
|
2684
2684
|
type: "warning"
|
|
@@ -2701,23 +2701,23 @@ const Ga = { style: { padding: "15px", "box-sizing": "border-box" } }, Xa = { st
|
|
|
2701
2701
|
showCol: r.showCol !== !1,
|
|
2702
2702
|
sort: r.sort || 0,
|
|
2703
2703
|
width: r == null ? void 0 : r.width
|
|
2704
|
-
})).sort((u, r) => u.sort - r.sort),
|
|
2704
|
+
})).sort((u, r) => u.sort - r.sort), f();
|
|
2705
2705
|
}), (u, r) => {
|
|
2706
|
-
const
|
|
2706
|
+
const c = H("el-divider"), q = H("el-icon"), U = H("el-text"), V = H("el-checkbox");
|
|
2707
2707
|
return m(), z("div", Ga, [
|
|
2708
2708
|
J("div", Xa, [
|
|
2709
2709
|
J("div", Qa, [
|
|
2710
|
-
J("a", { onClick:
|
|
2711
|
-
de(
|
|
2710
|
+
J("a", { onClick: S }, "全选"),
|
|
2711
|
+
de(c, { direction: "vertical" }),
|
|
2712
2712
|
J("a", { onClick: v }, "全不选"),
|
|
2713
|
-
de(
|
|
2713
|
+
de(c, { direction: "vertical" }),
|
|
2714
2714
|
J("a", { onClick: h }, "复位")
|
|
2715
2715
|
]),
|
|
2716
2716
|
de(U, { type: "warning" }, {
|
|
2717
2717
|
default: $(() => [
|
|
2718
2718
|
de(q, { size: "16" }, {
|
|
2719
2719
|
default: $(() => [
|
|
2720
|
-
de(F(
|
|
2720
|
+
de(F($l))
|
|
2721
2721
|
]),
|
|
2722
2722
|
_: 1
|
|
2723
2723
|
}),
|
|
@@ -2732,7 +2732,7 @@ const Ga = { style: { padding: "15px", "box-sizing": "border-box" } }, Xa = { st
|
|
|
2732
2732
|
modelValue: k.showCol,
|
|
2733
2733
|
"onUpdate:modelValue": (Q) => k.showCol = Q,
|
|
2734
2734
|
"data-id": k.value,
|
|
2735
|
-
class:
|
|
2735
|
+
class: yl(["check-box-hover", k.value == "control" ? "filtered" : ""]),
|
|
2736
2736
|
onChange: (Q) => t(Q, k.value),
|
|
2737
2737
|
style: { width: "125px !important", height: "30px !important", border: "1px solid #dfe6ec", margin: "5px !important", "border-radius": "2px !important", "padding-left": "5px !important", display: "flex !important", "align-items": "center !important" },
|
|
2738
2738
|
value: k.value,
|
|
@@ -2812,10 +2812,10 @@ const Ga = { style: { padding: "15px", "box-sizing": "border-box" } }, Xa = { st
|
|
|
2812
2812
|
labelWidth: "100px",
|
|
2813
2813
|
column: 2
|
|
2814
2814
|
}, s = Be(() => {
|
|
2815
|
-
var r,
|
|
2815
|
+
var r, c;
|
|
2816
2816
|
return {
|
|
2817
2817
|
...l,
|
|
2818
|
-
...((
|
|
2818
|
+
...((c = (r = e == null ? void 0 : e.control) == null ? void 0 : r.view(d.row)) == null ? void 0 : c.container) || {},
|
|
2819
2819
|
...d == null ? void 0 : d.container
|
|
2820
2820
|
};
|
|
2821
2821
|
}), o = {
|
|
@@ -2827,34 +2827,34 @@ const Ga = { style: { padding: "15px", "box-sizing": "border-box" } }, Xa = { st
|
|
|
2827
2827
|
...o,
|
|
2828
2828
|
...((r = d == null ? void 0 : d.container) == null ? void 0 : r.items) || {}
|
|
2829
2829
|
};
|
|
2830
|
-
}),
|
|
2831
|
-
const
|
|
2830
|
+
}), f = (r) => {
|
|
2831
|
+
const c = d.m[r], q = c == null ? void 0 : c.view, U = typeof q == "function" ? q(d.row, null, 0, d.m) : q || {}, V = c == null ? void 0 : c.table;
|
|
2832
2832
|
return { ...typeof V == "function" ? V(d.row) || {} : {}, ...U };
|
|
2833
|
-
},
|
|
2834
|
-
const
|
|
2835
|
-
return (
|
|
2836
|
-
}, v = Be(() => Object.entries(d.m).filter(([r,
|
|
2837
|
-
if (
|
|
2838
|
-
let q = (
|
|
2839
|
-
const U =
|
|
2833
|
+
}, S = (r) => {
|
|
2834
|
+
const c = f(r);
|
|
2835
|
+
return (c == null ? void 0 : c.type) || "text-info";
|
|
2836
|
+
}, v = Be(() => Object.entries(d.m).filter(([r, c]) => {
|
|
2837
|
+
if (Xt.includes(r) || (c == null ? void 0 : c.type) === "hidden") return !1;
|
|
2838
|
+
let q = (c == null ? void 0 : c.visible) !== !1;
|
|
2839
|
+
const U = f(r);
|
|
2840
2840
|
return Object.hasOwn(U, "visible") ? q = U.visible : Object.hasOwn(U, "hidden") && (q = !U.hidden), q;
|
|
2841
|
-
}).sort(([r], [
|
|
2841
|
+
}).sort(([r], [c]) => {
|
|
2842
2842
|
var V, k;
|
|
2843
|
-
const q = ((V =
|
|
2843
|
+
const q = ((V = f(r)) == null ? void 0 : V.sort) ?? 0, U = ((k = f(c)) == null ? void 0 : k.sort) ?? 0;
|
|
2844
2844
|
return q - U;
|
|
2845
2845
|
})), h = {
|
|
2846
2846
|
date: "YYYY-MM-DD",
|
|
2847
2847
|
datetime: "YYYY-MM-DD HH:mm:ss",
|
|
2848
2848
|
time: "HH:mm:ss"
|
|
2849
|
-
}, u = Be(() => ({ ...Object.fromEntries(v.value.map(([
|
|
2850
|
-
const U = c
|
|
2849
|
+
}, u = Be(() => ({ ...Object.fromEntries(v.value.map(([c, q]) => {
|
|
2850
|
+
const U = f(c);
|
|
2851
2851
|
let V = Object.hasOwn(U, "value") ? U.value : q == null ? void 0 : q.value;
|
|
2852
2852
|
const k = U.format || h[q == null ? void 0 : q.type];
|
|
2853
|
-
return k && V && (V = At(V).format(k)), [
|
|
2853
|
+
return k && V && (V = At(V).format(k)), [c, V];
|
|
2854
2854
|
})), ...d.row }));
|
|
2855
|
-
return (r,
|
|
2855
|
+
return (r, c) => {
|
|
2856
2856
|
var V;
|
|
2857
|
-
const q =
|
|
2857
|
+
const q = H("el-descriptions-item"), U = H("el-descriptions");
|
|
2858
2858
|
return m(), z("div", {
|
|
2859
2859
|
class: "g-detail-container",
|
|
2860
2860
|
style: Ue(((V = s.value) == null ? void 0 : V.style) || {})
|
|
@@ -2862,17 +2862,17 @@ const Ga = { style: { padding: "15px", "box-sizing": "border-box" } }, Xa = { st
|
|
|
2862
2862
|
de(U, Y({ border: "" }, F(We)(s.value, (k) => !["container"].includes(k))), $e({
|
|
2863
2863
|
default: $(() => [
|
|
2864
2864
|
(m(!0), z(se, null, W(v.value, ([k, Q]) => {
|
|
2865
|
-
var G,
|
|
2865
|
+
var G, le;
|
|
2866
2866
|
return m(), D(q, Y({
|
|
2867
2867
|
label: (G = d.m[k]) == null ? void 0 : G.label
|
|
2868
|
-
}, { ref_for: !0 }, { ...t.value, ...((
|
|
2868
|
+
}, { ref_for: !0 }, { ...t.value, ...((le = f(k)) == null ? void 0 : le.item) || {} }, { key: k }), {
|
|
2869
2869
|
label: $(() => [
|
|
2870
2870
|
C(r.$slots, `view-${k}-label`, {
|
|
2871
2871
|
row: d.row
|
|
2872
2872
|
}, () => {
|
|
2873
|
-
var
|
|
2873
|
+
var R;
|
|
2874
2874
|
return [
|
|
2875
|
-
Le(Ie((
|
|
2875
|
+
Le(Ie((R = d.m[k]) == null ? void 0 : R.label), 1)
|
|
2876
2876
|
];
|
|
2877
2877
|
}, !0)
|
|
2878
2878
|
]),
|
|
@@ -2882,10 +2882,10 @@ const Ga = { style: { padding: "15px", "box-sizing": "border-box" } }, Xa = { st
|
|
|
2882
2882
|
}, () => [
|
|
2883
2883
|
de(_t, {
|
|
2884
2884
|
modelValue: u.value[k],
|
|
2885
|
-
"onUpdate:modelValue": (
|
|
2886
|
-
item:
|
|
2885
|
+
"onUpdate:modelValue": (R) => u.value[k] = R,
|
|
2886
|
+
item: f(k),
|
|
2887
2887
|
ctrlKey: k,
|
|
2888
|
-
ctrlType:
|
|
2888
|
+
ctrlType: S(k),
|
|
2889
2889
|
model: d.row,
|
|
2890
2890
|
formInfo: d.row,
|
|
2891
2891
|
t: "v"
|
|
@@ -2900,8 +2900,8 @@ const Ga = { style: { padding: "15px", "box-sizing": "border-box" } }, Xa = { st
|
|
|
2900
2900
|
}, [
|
|
2901
2901
|
W(r.$slots, (k, Q, G) => ({
|
|
2902
2902
|
name: Q,
|
|
2903
|
-
fn: $((
|
|
2904
|
-
C(r.$slots, Q, { model:
|
|
2903
|
+
fn: $((le) => [
|
|
2904
|
+
C(r.$slots, Q, { model: le }, void 0, !0)
|
|
2905
2905
|
])
|
|
2906
2906
|
}))
|
|
2907
2907
|
]), 1040)
|
|
@@ -3002,7 +3002,7 @@ var or = Vl.exports, Bt = {
|
|
|
3002
3002
|
return d.join("");
|
|
3003
3003
|
}
|
|
3004
3004
|
}
|
|
3005
|
-
},
|
|
3005
|
+
}, fl = Bt;
|
|
3006
3006
|
/*!
|
|
3007
3007
|
* Determine if an object is a Buffer
|
|
3008
3008
|
*
|
|
@@ -3019,38 +3019,38 @@ function ur(n) {
|
|
|
3019
3019
|
return typeof n.readFloatLE == "function" && typeof n.slice == "function" && Dl(n.slice(0, 0));
|
|
3020
3020
|
}
|
|
3021
3021
|
(function() {
|
|
3022
|
-
var n = or, d =
|
|
3022
|
+
var n = or, d = fl.utf8, e = sr, l = fl.bin, s = function(o, t) {
|
|
3023
3023
|
o.constructor == String ? t && t.encoding === "binary" ? o = l.stringToBytes(o) : o = d.stringToBytes(o) : e(o) ? o = Array.prototype.slice.call(o, 0) : !Array.isArray(o) && o.constructor !== Uint8Array && (o = o.toString());
|
|
3024
|
-
for (var
|
|
3025
|
-
c
|
|
3026
|
-
|
|
3027
|
-
for (var q = s._ff, U = s._gg, V = s._hh, k = s._ii,
|
|
3028
|
-
var Q = v, G = h,
|
|
3029
|
-
v = q(v, h, u, r, c
|
|
3024
|
+
for (var f = n.bytesToWords(o), S = o.length * 8, v = 1732584193, h = -271733879, u = -1732584194, r = 271733878, c = 0; c < f.length; c++)
|
|
3025
|
+
f[c] = (f[c] << 8 | f[c] >>> 24) & 16711935 | (f[c] << 24 | f[c] >>> 8) & 4278255360;
|
|
3026
|
+
f[S >>> 5] |= 128 << S % 32, f[(S + 64 >>> 9 << 4) + 14] = S;
|
|
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, 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
|
};
|
|
3033
|
-
s._ff = function(o, t,
|
|
3034
|
-
var r = o + (t &
|
|
3033
|
+
s._ff = function(o, t, f, S, v, h, u) {
|
|
3034
|
+
var r = o + (t & f | ~t & S) + (v >>> 0) + u;
|
|
3035
3035
|
return (r << h | r >>> 32 - h) + t;
|
|
3036
|
-
}, s._gg = function(o, t,
|
|
3037
|
-
var r = o + (t &
|
|
3036
|
+
}, s._gg = function(o, t, f, S, v, h, u) {
|
|
3037
|
+
var r = o + (t & S | f & ~S) + (v >>> 0) + u;
|
|
3038
3038
|
return (r << h | r >>> 32 - h) + t;
|
|
3039
|
-
}, s._hh = function(o, t,
|
|
3040
|
-
var r = o + (t ^
|
|
3039
|
+
}, s._hh = function(o, t, f, S, v, h, u) {
|
|
3040
|
+
var r = o + (t ^ f ^ S) + (v >>> 0) + u;
|
|
3041
3041
|
return (r << h | r >>> 32 - h) + t;
|
|
3042
|
-
}, s._ii = function(o, t,
|
|
3043
|
-
var r = o + (
|
|
3042
|
+
}, s._ii = function(o, t, f, S, v, h, u) {
|
|
3043
|
+
var r = o + (f ^ (t | ~S)) + (v >>> 0) + u;
|
|
3044
3044
|
return (r << h | r >>> 32 - h) + t;
|
|
3045
3045
|
}, s._blocksize = 16, s._digestsize = 16, El.exports = function(o, t) {
|
|
3046
3046
|
if (o == null)
|
|
3047
3047
|
throw new Error("Illegal argument " + o);
|
|
3048
|
-
var
|
|
3049
|
-
return t && t.asBytes ?
|
|
3048
|
+
var f = n.wordsToBytes(s(o, t));
|
|
3049
|
+
return t && t.asBytes ? f : t && t.asString ? l.bytesToString(f) : n.bytesToHex(f);
|
|
3050
3050
|
};
|
|
3051
3051
|
})();
|
|
3052
3052
|
var ir = El.exports;
|
|
3053
|
-
const dr = /* @__PURE__ */
|
|
3053
|
+
const dr = /* @__PURE__ */ Cl(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({
|
|
@@ -3083,17 +3083,17 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3083
3083
|
], ["update:modelValue", "update:selectedRows"]),
|
|
3084
3084
|
setup(n, { expose: d, emit: e }) {
|
|
3085
3085
|
var lt, Xe, Je, Ke, et, Ct, Mt;
|
|
3086
|
-
const l = re(""), s = n, o = e, t = ot(n, "modelValue"),
|
|
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
3087
|
var x;
|
|
3088
3088
|
let g;
|
|
3089
3089
|
if (typeof i.search == "function") {
|
|
3090
|
-
const O = i.search(
|
|
3090
|
+
const O = i.search(S.value);
|
|
3091
3091
|
g = (O == null ? void 0 : O.value) ?? i.value;
|
|
3092
3092
|
} else
|
|
3093
3093
|
g = ((x = i.search) == null ? void 0 : x.value) ?? i.value;
|
|
3094
3094
|
return [a, g];
|
|
3095
3095
|
});
|
|
3096
|
-
|
|
3096
|
+
S.value = Object.fromEntries(h);
|
|
3097
3097
|
const u = re(!1), r = [
|
|
3098
3098
|
"type",
|
|
3099
3099
|
"index",
|
|
@@ -3123,7 +3123,7 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3123
3123
|
"filter-multiple",
|
|
3124
3124
|
"filter-method",
|
|
3125
3125
|
"filtered-value"
|
|
3126
|
-
],
|
|
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,
|
|
@@ -3139,7 +3139,7 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3139
3139
|
try {
|
|
3140
3140
|
o(
|
|
3141
3141
|
"load",
|
|
3142
|
-
{ currentPage: i, pageSize: g, ...
|
|
3142
|
+
{ currentPage: i, pageSize: g, ...S.value },
|
|
3143
3143
|
(x = [], O = 0, { fields: P = [], sums: N = {} } = {}) => {
|
|
3144
3144
|
var we;
|
|
3145
3145
|
if (!Array.isArray(x)) {
|
|
@@ -3162,7 +3162,7 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3162
3162
|
Ua(G.value, g.property, a);
|
|
3163
3163
|
},
|
|
3164
3164
|
onRowDblclick: (a, i, g) => {
|
|
3165
|
-
t.value.table.dblclickType == "edit" ? w(a, i, g, t) : t.value.table.dblclickType == "view" ?
|
|
3165
|
+
t.value.table.dblclickType == "edit" ? w(a, i, g, t) : t.value.table.dblclickType == "view" ? T(a, i, g, t) : t.value.table.dblclickType == "delete" ? p(a, i, g, t) : t.value.table.dblclickType(a, i, g, t);
|
|
3166
3166
|
},
|
|
3167
3167
|
style: { "min-height": "100px", backgroundColor: "var(--el-bg-color)" },
|
|
3168
3168
|
page: {
|
|
@@ -3192,17 +3192,17 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3192
3192
|
onSortChange: ({ column: a, prop: i, order: g }, x) => {
|
|
3193
3193
|
},
|
|
3194
3194
|
onSelectionChange: (a) => {
|
|
3195
|
-
|
|
3195
|
+
le.value = a;
|
|
3196
3196
|
}
|
|
3197
3197
|
});
|
|
3198
3198
|
t.value.table = ze(
|
|
3199
|
-
|
|
3200
|
-
|
|
3199
|
+
R.value,
|
|
3200
|
+
f == null ? void 0 : f.table,
|
|
3201
3201
|
t.value.table,
|
|
3202
3202
|
q
|
|
3203
3203
|
// 继承父组件的属性
|
|
3204
3204
|
);
|
|
3205
|
-
const
|
|
3205
|
+
const K = {
|
|
3206
3206
|
type: "control",
|
|
3207
3207
|
label: "操作",
|
|
3208
3208
|
align: "center",
|
|
@@ -3219,7 +3219,7 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3219
3219
|
mode: "dialog",
|
|
3220
3220
|
"view-mode": "description",
|
|
3221
3221
|
// description || readonly
|
|
3222
|
-
icon: () =>
|
|
3222
|
+
icon: () => Se(ta),
|
|
3223
3223
|
auth: () => {
|
|
3224
3224
|
var O;
|
|
3225
3225
|
return !(((O = x == null ? void 0 : x.control) == null ? void 0 : O.add(a, x).inline) === !0 && g === 0);
|
|
@@ -3230,7 +3230,7 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3230
3230
|
text: !0,
|
|
3231
3231
|
type: "primary",
|
|
3232
3232
|
mode: "dialog",
|
|
3233
|
-
icon: () =>
|
|
3233
|
+
icon: () => Se(_l),
|
|
3234
3234
|
auth: () => {
|
|
3235
3235
|
var O;
|
|
3236
3236
|
return ((O = x == null ? void 0 : x.control) == null ? void 0 : O.add(a, x).inline) !== !0;
|
|
@@ -3240,7 +3240,7 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3240
3240
|
text: !0,
|
|
3241
3241
|
label: "删除",
|
|
3242
3242
|
type: "danger",
|
|
3243
|
-
icon: () =>
|
|
3243
|
+
icon: () => Se(Wt),
|
|
3244
3244
|
auth: () => {
|
|
3245
3245
|
var O;
|
|
3246
3246
|
return !(((O = x.control) == null ? void 0 : O.add(a, x).inline) === !0 && g === 0);
|
|
@@ -3260,7 +3260,7 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3260
3260
|
return {
|
|
3261
3261
|
label: ((O = x.control) == null ? void 0 : O.add(a, x).inline) !== !0 ? "保存" : g === 0 ? "新增" : "保存",
|
|
3262
3262
|
text: !0,
|
|
3263
|
-
icon: () =>
|
|
3263
|
+
icon: () => Se(Rt),
|
|
3264
3264
|
type: ((P = x.control) == null ? void 0 : P.add(a, x).inline) !== !0 || g === 0 ? "primary" : "success",
|
|
3265
3265
|
sort: -1,
|
|
3266
3266
|
auth: () => {
|
|
@@ -3275,7 +3275,7 @@ const dr = /* @__PURE__ */ xl(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__ */ xl(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__ */ xl(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__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3299
3299
|
text: !1,
|
|
3300
3300
|
type: "primary",
|
|
3301
3301
|
mode: "dialog",
|
|
3302
|
-
icon: () =>
|
|
3302
|
+
icon: () => Se(kl),
|
|
3303
3303
|
excelLabel: "下载EXCEL",
|
|
3304
3304
|
auth: () => !0
|
|
3305
3305
|
}),
|
|
@@ -3308,7 +3308,7 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3308
3308
|
text: !1,
|
|
3309
3309
|
type: "primary",
|
|
3310
3310
|
mode: "dialog",
|
|
3311
|
-
icon: () =>
|
|
3311
|
+
icon: () => Se(Kl),
|
|
3312
3312
|
auth: () => !0
|
|
3313
3313
|
}),
|
|
3314
3314
|
dropdown: (a, i, g, x) => ({
|
|
@@ -3319,61 +3319,61 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3319
3319
|
auth: () => !(x.control.add(a, x).inline === !0 && g == 0),
|
|
3320
3320
|
onClick: () => {
|
|
3321
3321
|
var P;
|
|
3322
|
-
let O = (P =
|
|
3323
|
-
O === "edit" ? w(a, i, g, x) : O === "delete" ? p(a, i, g, x) : O === "view" &&
|
|
3322
|
+
let O = (P = Te(a, i, g, x)) == null ? void 0 : P.operate;
|
|
3323
|
+
O === "edit" ? w(a, i, g, x) : O === "delete" ? p(a, i, g, x) : O === "view" && T(a, i, g, x);
|
|
3324
3324
|
},
|
|
3325
3325
|
"button-props": { round: !0, plain: !0 }
|
|
3326
3326
|
})
|
|
3327
3327
|
};
|
|
3328
3328
|
t.value.control = ze(
|
|
3329
|
-
|
|
3330
|
-
|
|
3329
|
+
K,
|
|
3330
|
+
f == null ? void 0 : f.control,
|
|
3331
3331
|
(Je = t.value) == null ? void 0 : Je.control
|
|
3332
3332
|
);
|
|
3333
|
-
const
|
|
3333
|
+
const fe = (a, i = !0) => {
|
|
3334
3334
|
const g = t.value.control[a], x = i ? (O, P, N, we) => {
|
|
3335
3335
|
var Pe, tt, ht;
|
|
3336
3336
|
if (!O || !P || N == null)
|
|
3337
3337
|
return console.warn(`merge${a.charAt(0).toUpperCase() + a.slice(1)}: 缺少必要的参数(row, column或index)`), {};
|
|
3338
|
-
const
|
|
3339
|
-
return ze(
|
|
3338
|
+
const Ee = ((Pe = K[a]) == null ? void 0 : Pe.call(K, O, P, N, we)) || {}, qe = ((ht = (tt = f == null ? void 0 : f.control) == null ? void 0 : tt[a]) == null ? void 0 : ht.call(tt, O, P, N, we)) || {}, je = (g == null ? void 0 : g(O, P, N, we)) || {};
|
|
3339
|
+
return ze(Ee, qe, je) || {};
|
|
3340
3340
|
} : (O, P) => {
|
|
3341
3341
|
var qe, je, Pe;
|
|
3342
|
-
const N = ((qe =
|
|
3343
|
-
return ze(N, we,
|
|
3342
|
+
const N = ((qe = K[a]) == null ? void 0 : qe.call(K, O, P)) || {}, we = ((Pe = (je = f == null ? void 0 : f.control) == null ? void 0 : je[a]) == null ? void 0 : Pe.call(je, O, P)) || {}, Ee = (g == null ? void 0 : g(O, P)) || {};
|
|
3343
|
+
return ze(N, we, Ee) || {};
|
|
3344
3344
|
};
|
|
3345
3345
|
t.value.control[a] = x;
|
|
3346
3346
|
};
|
|
3347
|
-
|
|
3348
|
-
const
|
|
3349
|
-
var we,
|
|
3347
|
+
fe("edit"), fe("delete"), fe("view"), fe("save"), fe("add", !1), fe("download", !1), fe("setting", !1), fe("batch", !1), fe("toggleExpand", !1);
|
|
3348
|
+
const Te = (a, i, g, x) => {
|
|
3349
|
+
var we, Ee, qe, je, Pe, tt;
|
|
3350
3350
|
if (!a || !i || g == null)
|
|
3351
3351
|
return console.warn("mergeDropdown: 缺少必要的参数(row, column或index)"), {};
|
|
3352
|
-
const O = ((we =
|
|
3352
|
+
const O = ((we = K.dropdown) == null ? void 0 : we.call(K, a, i, g, x)) || {}, P = ((qe = (Ee = f == null ? void 0 : f.control) == null ? void 0 : Ee.dropdown) == null ? void 0 : qe.call(Ee, a, i, g, x)) || {}, N = ((tt = (Pe = (je = t.value) == null ? void 0 : je.control) == null ? void 0 : Pe.dropdown) == null ? void 0 : tt.call(Pe, a, i, g, x)) || {};
|
|
3353
3353
|
return ze(O, P, N) || {};
|
|
3354
|
-
},
|
|
3354
|
+
}, Ve = {
|
|
3355
3355
|
type: "hidden",
|
|
3356
3356
|
"min-width": 100,
|
|
3357
3357
|
align: "center",
|
|
3358
3358
|
formatter: (a, i, g, x) => g,
|
|
3359
|
-
"tooltip-formatter": ({ row: a, column: i, cellValue: g }) =>
|
|
3359
|
+
"tooltip-formatter": ({ row: a, column: i, cellValue: g }) => Se(rr, { content: g, column: i })
|
|
3360
3360
|
};
|
|
3361
3361
|
t.value.tableColumns = ze(
|
|
3362
|
-
|
|
3363
|
-
|
|
3362
|
+
Ve,
|
|
3363
|
+
f == null ? void 0 : f.tableColumns,
|
|
3364
3364
|
(Ke = t.value) == null ? void 0 : Ke.tableColumns
|
|
3365
3365
|
), t.value.form = ze(
|
|
3366
|
-
|
|
3366
|
+
Sl,
|
|
3367
3367
|
{
|
|
3368
3368
|
cancel: {
|
|
3369
3369
|
hidden: !1,
|
|
3370
3370
|
click: () => u.value = !1
|
|
3371
3371
|
}
|
|
3372
3372
|
},
|
|
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__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3381
3381
|
}
|
|
3382
3382
|
};
|
|
3383
3383
|
t.value.formItems = ze(
|
|
3384
|
-
|
|
3385
|
-
|
|
3384
|
+
ve,
|
|
3385
|
+
f == null ? void 0 : f.formItems,
|
|
3386
3386
|
(Ct = t == null ? void 0 : t.value) == null ? void 0 : Ct.formItems
|
|
3387
3387
|
);
|
|
3388
|
-
const
|
|
3388
|
+
const L = {
|
|
3389
3389
|
title: "编辑",
|
|
3390
3390
|
mode: "drawer",
|
|
3391
3391
|
type: "hidden",
|
|
@@ -3398,11 +3398,11 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3398
3398
|
overflow: !0
|
|
3399
3399
|
};
|
|
3400
3400
|
t.value.dialog = ze(
|
|
3401
|
-
|
|
3402
|
-
|
|
3401
|
+
L,
|
|
3402
|
+
f == null ? void 0 : f.dialog,
|
|
3403
3403
|
(Mt = t.value) == null ? void 0 : Mt.dialog
|
|
3404
3404
|
);
|
|
3405
|
-
const
|
|
3405
|
+
const Ce = (a, i) => {
|
|
3406
3406
|
let g = i;
|
|
3407
3407
|
if (a.precision && !isNaN(parseFloat(i)) && (typeof a.precision == "number" ? g = parseFloat(g).toFixed(a.precision) : typeof a.precision == "object" && a.precision.num && (a.precision.pad ? g = parseFloat(g).toFixed(a.precision.num) : g = parseFloat(
|
|
3408
3408
|
parseFloat(g).toFixed(a.precision.num)
|
|
@@ -3417,10 +3417,10 @@ const dr = /* @__PURE__ */ xl(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
|
-
},
|
|
3421
|
-
|
|
3420
|
+
}, Me = (a) => {
|
|
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
3425
|
var g, x;
|
|
3426
3426
|
t.value.form.modalState = "add", l.value = "add";
|
|
@@ -3434,7 +3434,7 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3434
3434
|
t.value[O] && (t.value[O].value = k.value[O]);
|
|
3435
3435
|
}), u.value = !0, await rt(), o("open", "add", { row: k.value, node: s.node, m: i }), Yt()), await rt(), o("node-init", { row: k.value, node: s.node, m: i }));
|
|
3436
3436
|
}, y = () => {
|
|
3437
|
-
o("batch",
|
|
3437
|
+
o("batch", le.value);
|
|
3438
3438
|
}, _ = (a, i) => {
|
|
3439
3439
|
o("toggleExpand", a), console.log(t.value.table["default-expand-all"]), v.value = !1, t.value.table["default-expand-all"] = !t.value.table["default-expand-all"], rt(() => {
|
|
3440
3440
|
v.value = !0;
|
|
@@ -3462,8 +3462,8 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3462
3462
|
if ((P = t.value.control.delete(a, i, g, x)) != null && P.click)
|
|
3463
3463
|
t.value.control.delete(a, i, g, x).click(a, i, g, x);
|
|
3464
3464
|
else {
|
|
3465
|
-
let { message: N, title: we, options:
|
|
3466
|
-
|
|
3465
|
+
let { message: N, title: we, options: Ee } = t.value.control.delete(a, i, g, x).dialog;
|
|
3466
|
+
pl.confirm(N, we, Ee).then(() => {
|
|
3467
3467
|
o(
|
|
3468
3468
|
"delete",
|
|
3469
3469
|
{ row: a, column: i, index: g, m: x },
|
|
@@ -3474,27 +3474,27 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3474
3474
|
}).catch(() => {
|
|
3475
3475
|
});
|
|
3476
3476
|
}
|
|
3477
|
-
},
|
|
3477
|
+
}, T = async (a, i, g, x) => {
|
|
3478
3478
|
var O, P, N, we;
|
|
3479
3479
|
t.value.form.modalState = void 0, l.value = "view";
|
|
3480
3480
|
try {
|
|
3481
3481
|
if (!await ((O = t.value.control) == null ? void 0 : O.validate("view", { row: a, column: i, index: g, m: x }))) return;
|
|
3482
|
-
} catch (
|
|
3483
|
-
console.error("验证失败:",
|
|
3482
|
+
} catch (Ee) {
|
|
3483
|
+
console.error("验证失败:", Ee);
|
|
3484
3484
|
return;
|
|
3485
3485
|
}
|
|
3486
|
-
(P = t.value.control.view(a, i, g, x)) != null && P.click ? t.value.control.view(a, i, g, x).click(a, i, g, x) : (t.value.form.disabled = !0, t.value.dialog.mode = t.value.control.view(a, i, g, x).mode, t.value.dialog.title = t.value.control.view(a, i, g, x).title || t.value.control.view(a, i, g, x).label || "详情", Object.keys(a).forEach((
|
|
3487
|
-
t.value[
|
|
3486
|
+
(P = t.value.control.view(a, i, g, x)) != null && P.click ? t.value.control.view(a, i, g, x).click(a, i, g, x) : (t.value.form.disabled = !0, t.value.dialog.mode = t.value.control.view(a, i, g, x).mode, t.value.dialog.title = t.value.control.view(a, i, g, x).title || t.value.control.view(a, i, g, x).label || "详情", Object.keys(a).forEach((Ee) => {
|
|
3487
|
+
t.value[Ee] && (t.value[Ee].value = a[Ee]);
|
|
3488
3488
|
}), ((N = t.value.control.view(a, i, g, x)) == null ? void 0 : N["view-mode"]) === "description" ? gt({
|
|
3489
3489
|
...t.value.dialog,
|
|
3490
3490
|
type: t.value.dialog.mode,
|
|
3491
3491
|
slots: {
|
|
3492
3492
|
default: () => {
|
|
3493
|
-
var
|
|
3494
|
-
return
|
|
3493
|
+
var Ee, qe, je;
|
|
3494
|
+
return Se(Tl, {
|
|
3495
3495
|
row: a,
|
|
3496
3496
|
m: x,
|
|
3497
|
-
container: ((
|
|
3497
|
+
container: ((Ee = t.value.control.view(a, i, g, x)) == null ? void 0 : Ee.container) || {}
|
|
3498
3498
|
}, ((je = (qe = t.value.control.view(a, i, g, x)) == null ? void 0 : qe.container) == null ? void 0 : je.slots) || {});
|
|
3499
3499
|
}
|
|
3500
3500
|
}
|
|
@@ -3509,16 +3509,16 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3509
3509
|
async (P = !0, N = !0) => {
|
|
3510
3510
|
if (P && t.value.table.load(), N && g === 0) {
|
|
3511
3511
|
const we = Object.entries(t.value).filter(
|
|
3512
|
-
([
|
|
3512
|
+
([Ee, qe]) => qe.type !== "control" && qe.type !== "hidden"
|
|
3513
3513
|
// && val.editor !== false
|
|
3514
3514
|
);
|
|
3515
3515
|
k.value = Object.fromEntries(
|
|
3516
|
-
we.map(([
|
|
3516
|
+
we.map(([Ee, qe]) => [Ee, qe.value])
|
|
3517
3517
|
), t.value.table.data[g] = { ...k.value };
|
|
3518
3518
|
}
|
|
3519
3519
|
}
|
|
3520
3520
|
);
|
|
3521
|
-
},
|
|
3521
|
+
}, ee = Or((a, i, g) => {
|
|
3522
3522
|
o("submit", t.value.form.modalState, a, i, (x) => {
|
|
3523
3523
|
x && (g === 1 && (u.value = !1), M(a), i.table.load());
|
|
3524
3524
|
});
|
|
@@ -3537,11 +3537,11 @@ const dr = /* @__PURE__ */ xl(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) => {
|
|
3544
|
-
o("download", P,
|
|
3544
|
+
o("download", P, S.value, N), O();
|
|
3545
3545
|
}
|
|
3546
3546
|
})
|
|
3547
3547
|
}
|
|
@@ -3558,7 +3558,7 @@ const dr = /* @__PURE__ */ xl(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 () => {
|
|
@@ -3577,7 +3577,7 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3577
3577
|
download: _e,
|
|
3578
3578
|
toggleExpand: _,
|
|
3579
3579
|
setting: Ye,
|
|
3580
|
-
view:
|
|
3580
|
+
view: T,
|
|
3581
3581
|
edit: w,
|
|
3582
3582
|
delete: p,
|
|
3583
3583
|
save: I
|
|
@@ -3612,7 +3612,7 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3612
3612
|
if (a.getDicts) {
|
|
3613
3613
|
const x = i.toString();
|
|
3614
3614
|
return Ge.value[x] ? (a.options = Ge.value[x], a.formatter || (a.formatter = (O, P, N, we) => a.options && g(a.options, N) || N), Promise.resolve()) : a.getDicts(t.value.table.data).then((O) => {
|
|
3615
|
-
Ge.value[x] = O, a.options = O, a.formatter || (a.formatter = (P, N, we,
|
|
3615
|
+
Ge.value[x] = O, a.options = O, a.formatter || (a.formatter = (P, N, we, Ee) => a.options && g(a.options, we) || we);
|
|
3616
3616
|
});
|
|
3617
3617
|
}
|
|
3618
3618
|
return Promise.resolve();
|
|
@@ -3663,7 +3663,7 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3663
3663
|
G.value = Re();
|
|
3664
3664
|
}), xt(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
|
|
3668
3668
|
).map(([i, g]) => ({
|
|
3669
3669
|
key: i || "",
|
|
@@ -3679,14 +3679,14 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3679
3679
|
} catch (a) {
|
|
3680
3680
|
console.error("Error during component initialization:", a), t.value.table.autoWatch || t.value.table.load();
|
|
3681
3681
|
}
|
|
3682
|
-
}), d({ addRow: A, editRow: w, deleteRow: p, readForm:
|
|
3682
|
+
}), d({ addRow: A, editRow: w, deleteRow: p, readForm: T, saveRowData: I, closeDialog: Oe, formData: k }), (a, i) => {
|
|
3683
3683
|
var qe, je, Pe, tt, ht, St, Tt;
|
|
3684
|
-
const g =
|
|
3684
|
+
const g = H("el-button-group"), x = H("el-dropdown-item"), O = H("el-dropdown-menu"), P = H("el-dropdown"), N = H("el-table-column"), we = H("el-table"), Ee = H("el-pagination");
|
|
3685
3685
|
return m(), z(se, null, [
|
|
3686
|
-
u.value ? (m(), D(
|
|
3686
|
+
u.value ? (m(), D(Qt, Y({
|
|
3687
3687
|
key: 0,
|
|
3688
3688
|
modelValue: u.value,
|
|
3689
|
-
"onUpdate:modelValue": i[2] || (i[2] = (
|
|
3689
|
+
"onUpdate:modelValue": i[2] || (i[2] = (te) => u.value = te)
|
|
3690
3690
|
}, t.value.dialog, {
|
|
3691
3691
|
type: t.value.dialog.mode
|
|
3692
3692
|
}), $e({
|
|
@@ -3694,12 +3694,12 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3694
3694
|
u.value ? (m(), D(Ze(Ft), {
|
|
3695
3695
|
key: 0,
|
|
3696
3696
|
modelValue: t.value,
|
|
3697
|
-
"onUpdate:modelValue": i[0] || (i[0] = (
|
|
3698
|
-
onSubmit: i[1] || (i[1] = (
|
|
3697
|
+
"onUpdate:modelValue": i[0] || (i[0] = (te) => t.value = te),
|
|
3698
|
+
onSubmit: i[1] || (i[1] = (te, ye, ue) => F(ee)(te, ye, ue)),
|
|
3699
3699
|
onReset: ae,
|
|
3700
3700
|
flag: l.value
|
|
3701
3701
|
}, $e({ _: 2 }, [
|
|
3702
|
-
W(a.$slots, (
|
|
3702
|
+
W(a.$slots, (te, ye, ue) => ({
|
|
3703
3703
|
name: ye,
|
|
3704
3704
|
fn: $((He) => {
|
|
3705
3705
|
var Qe;
|
|
@@ -3717,9 +3717,9 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3717
3717
|
}, [
|
|
3718
3718
|
a.$slots.header ? {
|
|
3719
3719
|
name: "header",
|
|
3720
|
-
fn: $(({ titleClass:
|
|
3720
|
+
fn: $(({ titleClass: te, closeIconClass: ye }) => [
|
|
3721
3721
|
C(a.$slots, "header", {
|
|
3722
|
-
titleClass:
|
|
3722
|
+
titleClass: te,
|
|
3723
3723
|
closeIconClass: ye
|
|
3724
3724
|
}, void 0, !0)
|
|
3725
3725
|
]),
|
|
@@ -3752,16 +3752,16 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3752
3752
|
C(a.$slots, "query", {}, () => [
|
|
3753
3753
|
de(_a, {
|
|
3754
3754
|
modelValue: t.value,
|
|
3755
|
-
"onUpdate:modelValue": i[3] || (i[3] = (
|
|
3756
|
-
info:
|
|
3757
|
-
"onUpdate:info": i[4] || (i[4] = (
|
|
3755
|
+
"onUpdate:modelValue": i[3] || (i[3] = (te) => t.value = te),
|
|
3756
|
+
info: S.value,
|
|
3757
|
+
"onUpdate:info": i[4] || (i[4] = (te) => S.value = te),
|
|
3758
3758
|
onQuery: B,
|
|
3759
|
-
onReset:
|
|
3759
|
+
onReset: Me
|
|
3760
3760
|
}, $e({
|
|
3761
3761
|
"q-btns": $(() => [
|
|
3762
3762
|
C(a.$slots, "q-btns", {}, () => [
|
|
3763
|
-
(m(!0), z(se, null, W(be(["add", "toggleExpand", "batch", "download", "setting"], k.value, t.value), (
|
|
3764
|
-
ye == "default" ? (m(!0), z(se, { key: 0 }, W(
|
|
3763
|
+
(m(!0), z(se, null, W(be(["add", "toggleExpand", "batch", "download", "setting"], k.value, t.value), (te, ye) => (m(), z(se, null, [
|
|
3764
|
+
ye == "default" ? (m(!0), z(se, { key: 0 }, W(te, (ue) => (m(), z(se, null, [
|
|
3765
3765
|
C(a.$slots, ue.name + "-left", {}, void 0, !0),
|
|
3766
3766
|
(ue.name === "control-add" ? ue.attr.auth() && ue.attr.inline === !1 : ue.attr.auth()) ? C(a.$slots, ue.name, { key: 0 }, () => {
|
|
3767
3767
|
var He, Qe;
|
|
@@ -3769,9 +3769,9 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3769
3769
|
ue.label ? (m(), D(F(Ne), Y({
|
|
3770
3770
|
key: 0,
|
|
3771
3771
|
title: ue.label,
|
|
3772
|
-
disabled: ue.name === "control-batch" && ((He =
|
|
3772
|
+
disabled: ue.name === "control-batch" && ((He = le.value) == null ? void 0 : He.length) === 0
|
|
3773
3773
|
}, { ref_for: !0 }, ue.attr, {
|
|
3774
|
-
onClick: (ut) => ue.func(k.value, t.value,
|
|
3774
|
+
onClick: (ut) => ue.func(k.value, t.value, c.value)
|
|
3775
3775
|
}), {
|
|
3776
3776
|
default: $(() => [
|
|
3777
3777
|
Le(Ie(ue.label), 1)
|
|
@@ -3780,16 +3780,16 @@ const dr = /* @__PURE__ */ xl(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
|
-
onClick: (ut) => ue.func(k.value, t.value,
|
|
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
|
C(a.$slots, ue.name + "-right", {}, void 0, !0)
|
|
3790
3790
|
], 64))), 256)) : (m(), D(g, { key: 1 }, {
|
|
3791
3791
|
default: $(() => [
|
|
3792
|
-
(m(!0), z(se, null, W(
|
|
3792
|
+
(m(!0), z(se, null, W(te, (ue) => (m(), z(se, null, [
|
|
3793
3793
|
C(a.$slots, ue.name + "-left", {}, void 0, !0),
|
|
3794
3794
|
(ue.name === "control-add" ? ue.attr.auth() && ue.attr.inline === !1 : ue.attr.auth()) ? C(a.$slots, ue.name, { key: 0 }, () => {
|
|
3795
3795
|
var He, Qe;
|
|
@@ -3797,10 +3797,10 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3797
3797
|
ue.label ? (m(), D(F(Ne), Y({
|
|
3798
3798
|
key: 0,
|
|
3799
3799
|
title: ue.label,
|
|
3800
|
-
disabled: ue.name === "control-batch" && ((He =
|
|
3800
|
+
disabled: ue.name === "control-batch" && ((He = le.value) == null ? void 0 : He.length) === 0,
|
|
3801
3801
|
v: ""
|
|
3802
3802
|
}, { ref_for: !0 }, ue.attr, {
|
|
3803
|
-
onClick: (ut) => ue.func(k.value, t.value,
|
|
3803
|
+
onClick: (ut) => ue.func(k.value, t.value, c.value)
|
|
3804
3804
|
}), {
|
|
3805
3805
|
default: $(() => [
|
|
3806
3806
|
Le(Ie(ue.label), 1)
|
|
@@ -3809,9 +3809,9 @@ const dr = /* @__PURE__ */ xl(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
|
-
onClick: (ut) => ue.func(k.value, t.value,
|
|
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),
|
|
@@ -3825,12 +3825,12 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3825
3825
|
]),
|
|
3826
3826
|
_: 2
|
|
3827
3827
|
}, [
|
|
3828
|
-
W(a.$slots, (
|
|
3828
|
+
W(a.$slots, (te, ye, ue) => ({
|
|
3829
3829
|
name: ye,
|
|
3830
3830
|
fn: $((He) => [
|
|
3831
3831
|
C(a.$slots, ye, {
|
|
3832
3832
|
model: He,
|
|
3833
|
-
form:
|
|
3833
|
+
form: S.value
|
|
3834
3834
|
}, void 0, !0)
|
|
3835
3835
|
])
|
|
3836
3836
|
}))
|
|
@@ -3839,20 +3839,20 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3839
3839
|
])) : ke("", !0),
|
|
3840
3840
|
C(a.$slots, "table-title", {
|
|
3841
3841
|
model: t.value,
|
|
3842
|
-
queryInfo:
|
|
3842
|
+
queryInfo: S.value
|
|
3843
3843
|
}, void 0, !0),
|
|
3844
3844
|
J("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: $(() => [
|
|
@@ -3863,16 +3863,16 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3863
3863
|
]),
|
|
3864
3864
|
default: $(() => [
|
|
3865
3865
|
C(a.$slots, "default", {}, () => [
|
|
3866
|
-
(m(!0), z(se, null, W(ie.value, (
|
|
3866
|
+
(m(!0), z(se, null, W(ie.value, (te, ye) => {
|
|
3867
3867
|
var ue, He, Qe, ut;
|
|
3868
3868
|
return m(), D(N, Y({
|
|
3869
3869
|
prop: ye,
|
|
3870
3870
|
"column-key": ye
|
|
3871
3871
|
}, { ref_for: !0 }, ((He = (ue = t.value) == null ? void 0 : ue.table) == null ? void 0 : He["row-key"]) == ye ? {
|
|
3872
|
-
...F(We)(
|
|
3872
|
+
...F(We)(te, (ne) => ["label", "width", "min-width", "align", "header-align", "formatter"].includes(ne))
|
|
3873
3873
|
} : {
|
|
3874
3874
|
...t.value.tableColumns,
|
|
3875
|
-
...F(We)(
|
|
3875
|
+
...F(We)(te, (ne) => r.includes(ne))
|
|
3876
3876
|
}), $e({
|
|
3877
3877
|
header: $(({ column: ne, $index: ce }) => [
|
|
3878
3878
|
ye == "control" ? C(a.$slots, `${ye}-header`, {
|
|
@@ -3892,51 +3892,51 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3892
3892
|
]),
|
|
3893
3893
|
_: 2
|
|
3894
3894
|
}, [
|
|
3895
|
-
|
|
3895
|
+
te.type === "expand" ? {
|
|
3896
3896
|
name: "default",
|
|
3897
|
-
fn: $(({ row: ne, column: ce, $index:
|
|
3897
|
+
fn: $(({ row: ne, column: ce, $index: pe }) => [
|
|
3898
3898
|
C(a.$slots, `${ye}`, {
|
|
3899
3899
|
row: ne,
|
|
3900
3900
|
column: ce,
|
|
3901
|
-
index:
|
|
3901
|
+
index: pe
|
|
3902
3902
|
}, void 0, !0)
|
|
3903
3903
|
]),
|
|
3904
3904
|
key: "0"
|
|
3905
|
-
} :
|
|
3905
|
+
} : te.type == "control" ? {
|
|
3906
3906
|
name: "default",
|
|
3907
|
-
fn: $(({ row: ne, column: ce, $index:
|
|
3907
|
+
fn: $(({ row: ne, column: ce, $index: pe }) => {
|
|
3908
3908
|
var vt, pt;
|
|
3909
3909
|
return [
|
|
3910
3910
|
J("div", {
|
|
3911
|
-
class:
|
|
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
3914
|
C(a.$slots, "control", {}, () => [
|
|
3915
3915
|
C(a.$slots, "control-left", {
|
|
3916
3916
|
row: ne,
|
|
3917
3917
|
column: ce,
|
|
3918
|
-
index:
|
|
3918
|
+
index: pe
|
|
3919
3919
|
}, void 0, !0),
|
|
3920
|
-
(m(!0), z(se, null, W(be(["view", "edit", "delete", "save"], ne, ce,
|
|
3920
|
+
(m(!0), z(se, null, W(be(["view", "edit", "delete", "save"], ne, ce, pe, t.value), (it, dt) => {
|
|
3921
3921
|
var bt;
|
|
3922
3922
|
return m(), z(se, null, [
|
|
3923
3923
|
dt == "default" ? (m(!0), z(se, { key: 0 }, W(it, (Z) => (m(), z(se, null, [
|
|
3924
3924
|
C(a.$slots, Z.name + "-left", {
|
|
3925
3925
|
row: ne,
|
|
3926
3926
|
column: ce,
|
|
3927
|
-
index:
|
|
3927
|
+
index: pe
|
|
3928
3928
|
}, void 0, !0),
|
|
3929
3929
|
Z.attr.auth() ? C(a.$slots, Z.name, {
|
|
3930
3930
|
key: 0,
|
|
3931
3931
|
row: ne,
|
|
3932
3932
|
column: ce,
|
|
3933
|
-
index:
|
|
3933
|
+
index: pe
|
|
3934
3934
|
}, () => [
|
|
3935
3935
|
Z.label ? (m(), D(F(Ne), Y({
|
|
3936
3936
|
key: 0,
|
|
3937
3937
|
title: Z.label
|
|
3938
3938
|
}, { ref_for: !0 }, Z.attr, {
|
|
3939
|
-
onClick: (ct) => Z.func(ne, ce,
|
|
3939
|
+
onClick: (ct) => Z.func(ne, ce, pe, t.value)
|
|
3940
3940
|
}), {
|
|
3941
3941
|
default: $(() => [
|
|
3942
3942
|
Le(Ie(Z.label), 1)
|
|
@@ -3946,18 +3946,18 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3946
3946
|
key: 1,
|
|
3947
3947
|
title: Z.label
|
|
3948
3948
|
}, { ref_for: !0 }, Z.attr, {
|
|
3949
|
-
onClick: (ct) => Z.func(ne, ce,
|
|
3949
|
+
onClick: (ct) => Z.func(ne, ce, pe, t.value)
|
|
3950
3950
|
}), null, 16, ["title", "onClick"]))
|
|
3951
3951
|
], !0) : ke("", !0),
|
|
3952
3952
|
C(a.$slots, Z.name + "-right", {
|
|
3953
3953
|
row: ne,
|
|
3954
3954
|
column: ce,
|
|
3955
|
-
index:
|
|
3955
|
+
index: pe
|
|
3956
3956
|
}, void 0, !0)
|
|
3957
|
-
], 64))), 256)) : dt != null && dt.startsWith("dropdown") && ((bt =
|
|
3957
|
+
], 64))), 256)) : dt != null && dt.startsWith("dropdown") && ((bt = Te(ne, ce, pe, t.value)) != null && bt.auth()) ? (m(), D(P, Y({
|
|
3958
3958
|
key: 1,
|
|
3959
3959
|
ref_for: !0
|
|
3960
|
-
},
|
|
3960
|
+
}, Te(ne, ce, pe, t.value)), {
|
|
3961
3961
|
dropdown: $(() => [
|
|
3962
3962
|
de(O, null, {
|
|
3963
3963
|
default: $(() => [
|
|
@@ -3968,7 +3968,7 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3968
3968
|
key: 0,
|
|
3969
3969
|
row: ne,
|
|
3970
3970
|
column: ce,
|
|
3971
|
-
index:
|
|
3971
|
+
index: pe
|
|
3972
3972
|
}, void 0, !0) : ke("", !0),
|
|
3973
3973
|
Z.attr.auth() ? (m(), D(x, Y({
|
|
3974
3974
|
key: 1,
|
|
@@ -3982,13 +3982,13 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3982
3982
|
C(a.$slots, Z.name, {
|
|
3983
3983
|
row: ne,
|
|
3984
3984
|
column: ce,
|
|
3985
|
-
index:
|
|
3985
|
+
index: pe
|
|
3986
3986
|
}, () => [
|
|
3987
3987
|
Z.label ? (m(), D(F(Ne), Y({
|
|
3988
3988
|
key: 0,
|
|
3989
3989
|
title: Z.label
|
|
3990
3990
|
}, { ref_for: !0 }, Z.attr, {
|
|
3991
|
-
onClick: (Et) => Z.func(ne, ce,
|
|
3991
|
+
onClick: (Et) => Z.func(ne, ce, pe, t.value)
|
|
3992
3992
|
}), {
|
|
3993
3993
|
default: $(() => [
|
|
3994
3994
|
Le(Ie(Z.label), 1)
|
|
@@ -3998,7 +3998,7 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3998
3998
|
key: 1,
|
|
3999
3999
|
title: Z.label
|
|
4000
4000
|
}, { ref_for: !0 }, Z.attr, {
|
|
4001
|
-
onClick: (Et) => Z.func(ne, ce,
|
|
4001
|
+
onClick: (Et) => Z.func(ne, ce, pe, t.value)
|
|
4002
4002
|
}), null, 16, ["title", "onClick"]))
|
|
4003
4003
|
], !0)
|
|
4004
4004
|
]),
|
|
@@ -4008,7 +4008,7 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4008
4008
|
key: 2,
|
|
4009
4009
|
row: ne,
|
|
4010
4010
|
column: ce,
|
|
4011
|
-
index:
|
|
4011
|
+
index: pe
|
|
4012
4012
|
}, void 0, !0) : ke("", !0)
|
|
4013
4013
|
], 64);
|
|
4014
4014
|
}), 256))
|
|
@@ -4019,7 +4019,7 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4019
4019
|
default: $(() => {
|
|
4020
4020
|
var Z;
|
|
4021
4021
|
return [
|
|
4022
|
-
Le(Ie((Z =
|
|
4022
|
+
Le(Ie((Z = Te(ne, ce, pe, t.value)) == null ? void 0 : Z.label) + " ", 1)
|
|
4023
4023
|
];
|
|
4024
4024
|
}),
|
|
4025
4025
|
_: 2
|
|
@@ -4029,19 +4029,19 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4029
4029
|
C(a.$slots, Z.name + "-left", {
|
|
4030
4030
|
row: ne,
|
|
4031
4031
|
column: ce,
|
|
4032
|
-
index:
|
|
4032
|
+
index: pe
|
|
4033
4033
|
}, void 0, !0),
|
|
4034
4034
|
Z.attr.auth() ? C(a.$slots, Z.name, {
|
|
4035
4035
|
key: 0,
|
|
4036
4036
|
row: ne,
|
|
4037
4037
|
column: ce,
|
|
4038
|
-
index:
|
|
4038
|
+
index: pe
|
|
4039
4039
|
}, () => [
|
|
4040
4040
|
Z.label ? (m(), D(F(Ne), Y({
|
|
4041
4041
|
key: 0,
|
|
4042
4042
|
title: Z.label
|
|
4043
4043
|
}, { ref_for: !0 }, Z.attr, {
|
|
4044
|
-
onClick: (ct) => Z.func(ne, ce,
|
|
4044
|
+
onClick: (ct) => Z.func(ne, ce, pe, t.value)
|
|
4045
4045
|
}), {
|
|
4046
4046
|
default: $(() => [
|
|
4047
4047
|
Le(Ie(Z.label), 1)
|
|
@@ -4051,13 +4051,13 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4051
4051
|
key: 1,
|
|
4052
4052
|
title: Z.label
|
|
4053
4053
|
}, { ref_for: !0 }, Z.attr, {
|
|
4054
|
-
onClick: (ct) => Z.func(ne, ce,
|
|
4054
|
+
onClick: (ct) => Z.func(ne, ce, pe, t.value)
|
|
4055
4055
|
}), null, 16, ["title", "onClick"]))
|
|
4056
4056
|
], !0) : ke("", !0),
|
|
4057
4057
|
C(a.$slots, Z.name + "-right", {
|
|
4058
4058
|
row: ne,
|
|
4059
4059
|
column: ce,
|
|
4060
|
-
index:
|
|
4060
|
+
index: pe
|
|
4061
4061
|
}, void 0, !0)
|
|
4062
4062
|
], 64))), 256))
|
|
4063
4063
|
]),
|
|
@@ -4068,31 +4068,31 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4068
4068
|
C(a.$slots, "control-right", {
|
|
4069
4069
|
row: ne,
|
|
4070
4070
|
column: ce,
|
|
4071
|
-
index:
|
|
4071
|
+
index: pe
|
|
4072
4072
|
}, void 0, !0)
|
|
4073
4073
|
], !0)
|
|
4074
4074
|
], 6)
|
|
4075
4075
|
];
|
|
4076
4076
|
}),
|
|
4077
4077
|
key: "1"
|
|
4078
|
-
} :
|
|
4078
|
+
} : te.type != "selection" && te.type != "index" && ((ut = (Qe = t.value) == null ? void 0 : Qe.table) == null ? void 0 : ut["row-key"]) != ye ? {
|
|
4079
4079
|
name: "default",
|
|
4080
|
-
fn: $(({ row: ne, column: ce, $index:
|
|
4081
|
-
X(
|
|
4080
|
+
fn: $(({ row: ne, column: ce, $index: pe }) => [
|
|
4081
|
+
X(te, ne, ce, pe) && pe != -1 ? C(a.$slots, `${ye}`, {
|
|
4082
4082
|
key: 0,
|
|
4083
4083
|
row: ne,
|
|
4084
4084
|
column: ce,
|
|
4085
|
-
index:
|
|
4085
|
+
index: pe
|
|
4086
4086
|
}, () => {
|
|
4087
4087
|
var vt;
|
|
4088
4088
|
return [
|
|
4089
4089
|
(m(), D(_t, {
|
|
4090
4090
|
modelValue: ne[ye],
|
|
4091
4091
|
"onUpdate:modelValue": (pt) => ne[ye] = pt,
|
|
4092
|
-
item:
|
|
4092
|
+
item: te == null ? void 0 : te.table(ne, ce, pe),
|
|
4093
4093
|
ctrlKey: ye,
|
|
4094
|
-
key: `${ye}-${
|
|
4095
|
-
ctrlType: (vt =
|
|
4094
|
+
key: `${ye}-${pe} -${Q.value}`,
|
|
4095
|
+
ctrlType: (vt = te.table(ne, ce, pe)) != null && vt.type ? te.table(ne, ce, pe).type : te.type,
|
|
4096
4096
|
model: t.value,
|
|
4097
4097
|
class: "g-ctrl-container",
|
|
4098
4098
|
t: "t",
|
|
@@ -4103,7 +4103,7 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4103
4103
|
fn: $((dt) => [
|
|
4104
4104
|
C(a.$slots, it, {
|
|
4105
4105
|
data: dt,
|
|
4106
|
-
item:
|
|
4106
|
+
item: te,
|
|
4107
4107
|
model: t.value
|
|
4108
4108
|
}, void 0, !0)
|
|
4109
4109
|
])
|
|
@@ -4114,13 +4114,13 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4114
4114
|
key: 1,
|
|
4115
4115
|
row: ne,
|
|
4116
4116
|
column: ce,
|
|
4117
|
-
index:
|
|
4117
|
+
index: pe
|
|
4118
4118
|
}, () => [
|
|
4119
4119
|
J("div", {
|
|
4120
|
-
style: Ue([{ width: "100%", "text-overflow": "ellipsis", overflow: "hidden" },
|
|
4121
|
-
innerHTML:
|
|
4122
|
-
|
|
4123
|
-
typeof ce.formatter == "function" ? ce.formatter(ne, ce, ne[ye],
|
|
4120
|
+
style: Ue([{ width: "100%", "text-overflow": "ellipsis", overflow: "hidden" }, te == null ? void 0 : te.style]),
|
|
4121
|
+
innerHTML: Ce(
|
|
4122
|
+
te,
|
|
4123
|
+
typeof ce.formatter == "function" ? ce.formatter(ne, ce, ne[ye], pe) : ne[ye]
|
|
4124
4124
|
)
|
|
4125
4125
|
}, null, 12, pr)
|
|
4126
4126
|
], !0)
|
|
@@ -4134,11 +4134,11 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4134
4134
|
_: 3
|
|
4135
4135
|
}, 16, ["summary-method"])) : ke("", !0),
|
|
4136
4136
|
(Tt = (St = (ht = t.value) == null ? void 0 : ht.table) == null ? void 0 : St.page) != null && Tt.hidden ? ke("", !0) : C(a.$slots, "page", { key: 1 }, () => [
|
|
4137
|
-
de(
|
|
4137
|
+
de(Ee, Y({
|
|
4138
4138
|
"page-size": t.value.table.page.pageSize,
|
|
4139
|
-
"onUpdate:pageSize": i[6] || (i[6] = (
|
|
4139
|
+
"onUpdate:pageSize": i[6] || (i[6] = (te) => t.value.table.page.pageSize = te),
|
|
4140
4140
|
"current-page": t.value.table.page.currentPage,
|
|
4141
|
-
"onUpdate:currentPage": i[7] || (i[7] = (
|
|
4141
|
+
"onUpdate:currentPage": i[7] || (i[7] = (te) => t.value.table.page.currentPage = te)
|
|
4142
4142
|
}, t.value.table.page), {
|
|
4143
4143
|
default: $(() => [
|
|
4144
4144
|
C(a.$slots, "table-page", {}, void 0, !0)
|
|
@@ -4173,42 +4173,42 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4173
4173
|
emits: ["menu-command"],
|
|
4174
4174
|
setup(n, { emit: d }) {
|
|
4175
4175
|
const e = n, l = d, o = ze({
|
|
4176
|
-
add: { icon:
|
|
4177
|
-
edit: { icon:
|
|
4176
|
+
add: { icon: bl, label: "新增", type: "primary" },
|
|
4177
|
+
edit: { icon: _l, label: "编辑", type: "success" },
|
|
4178
4178
|
delete: { icon: Wt, label: "删除", type: "danger" },
|
|
4179
4179
|
expand: { icon: aa, label: "展开", divided: !0, type: "info", hidden: !0 },
|
|
4180
4180
|
collapse: { icon: la, label: "折叠", type: "info", hidden: !0 },
|
|
4181
4181
|
refresh: { icon: Gt, label: "刷新", divided: !0, type: "primary" }
|
|
4182
4182
|
}, e.menu(e.nodeInfo)), t = Be(() => {
|
|
4183
|
-
const u = Object.entries(o).filter(([r,
|
|
4183
|
+
const u = Object.entries(o).filter(([r, c]) => (c == null ? void 0 : c.hidden) !== !0).filter(([r, c]) => (c == null ? void 0 : c.visible) !== !1).sort((r, c) => {
|
|
4184
4184
|
var q, U;
|
|
4185
|
-
return ((q = r[1]) == null ? void 0 : q.sort) || 0 - ((U =
|
|
4185
|
+
return ((q = r[1]) == null ? void 0 : q.sort) || 0 - ((U = c[1]) == null ? void 0 : U.sort) || 0;
|
|
4186
4186
|
});
|
|
4187
4187
|
return Object.fromEntries(u);
|
|
4188
|
-
}),
|
|
4189
|
-
const u = Object.entries(e.columns).map(([r,
|
|
4188
|
+
}), f = Be(() => {
|
|
4189
|
+
const u = Object.entries(e.columns).filter(([r, c]) => !Xt.includes(r)).map(([r, c]) => [
|
|
4190
4190
|
r,
|
|
4191
|
-
(
|
|
4191
|
+
(c == null ? void 0 : c.value) || ""
|
|
4192
4192
|
]);
|
|
4193
4193
|
return Object.fromEntries(u);
|
|
4194
|
-
}),
|
|
4194
|
+
}), S = re({}), v = re({}), h = async (u) => {
|
|
4195
4195
|
var q, U;
|
|
4196
4196
|
if (!e.nodeInfo) return;
|
|
4197
|
-
const { data: r, node:
|
|
4197
|
+
const { data: r, node: c } = e.nodeInfo;
|
|
4198
4198
|
switch (u) {
|
|
4199
4199
|
case "add":
|
|
4200
|
-
e.processFormData ?
|
|
4200
|
+
e.processFormData ? S.value = await e.processFormData({ cmd: u, data: f.value, node: c }) : S.value = f.value, console.log(S.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
|
-
editForm:
|
|
4208
|
+
editForm: S.value,
|
|
4209
4209
|
onSubmit: (Q, G) => {
|
|
4210
|
-
l("menu-command", u, { data: Q, node:
|
|
4211
|
-
|
|
4210
|
+
l("menu-command", u, { data: Q, node: c, m: G }, (le) => {
|
|
4211
|
+
le && V();
|
|
4212
4212
|
});
|
|
4213
4213
|
}
|
|
4214
4214
|
})
|
|
@@ -4216,18 +4216,18 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4216
4216
|
});
|
|
4217
4217
|
break;
|
|
4218
4218
|
case "edit":
|
|
4219
|
-
e.processFormData ? v.value = await e.processFormData({ cmd: u, data: r, node:
|
|
4219
|
+
e.processFormData ? v.value = await e.processFormData({ cmd: u, data: r, node: c }) : v.value = r;
|
|
4220
4220
|
const k = gt({
|
|
4221
4221
|
title: ((U = o == null ? void 0 : o.edit) == null ? void 0 : U.label) || "编辑节点",
|
|
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:
|
|
4230
|
-
|
|
4229
|
+
l("menu-command", u, { data: Q, node: c, m: G }, (le) => {
|
|
4230
|
+
le && k();
|
|
4231
4231
|
});
|
|
4232
4232
|
}
|
|
4233
4233
|
})
|
|
@@ -4235,29 +4235,29 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4235
4235
|
});
|
|
4236
4236
|
break;
|
|
4237
4237
|
case "delete":
|
|
4238
|
-
l("menu-command", u, { data: r, node:
|
|
4238
|
+
l("menu-command", u, { data: r, node: c }, (Q) => {
|
|
4239
4239
|
if (Q)
|
|
4240
4240
|
try {
|
|
4241
|
-
|
|
4241
|
+
c.remove();
|
|
4242
4242
|
} catch {
|
|
4243
|
-
const G =
|
|
4244
|
-
G == null || G.removeChild(
|
|
4243
|
+
const G = c.parent;
|
|
4244
|
+
G == null || G.removeChild(c);
|
|
4245
4245
|
}
|
|
4246
4246
|
});
|
|
4247
4247
|
break;
|
|
4248
4248
|
case "expand":
|
|
4249
|
-
|
|
4249
|
+
c.expanded = !0;
|
|
4250
4250
|
break;
|
|
4251
4251
|
case "collapse":
|
|
4252
|
-
|
|
4252
|
+
c.expanded = !1;
|
|
4253
4253
|
break;
|
|
4254
4254
|
case "refresh":
|
|
4255
|
-
l("menu-command", u, { data: r, node:
|
|
4255
|
+
l("menu-command", u, { data: r, node: c });
|
|
4256
4256
|
break;
|
|
4257
4257
|
}
|
|
4258
4258
|
};
|
|
4259
4259
|
return (u, r) => {
|
|
4260
|
-
const
|
|
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) => {
|
|
@@ -4272,7 +4272,7 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4272
4272
|
divided: V == null ? void 0 : V.divided
|
|
4273
4273
|
}, {
|
|
4274
4274
|
default: $(() => [
|
|
4275
|
-
de(
|
|
4275
|
+
de(c, Y({ text: "" }, { ref_for: !0 }, V), {
|
|
4276
4276
|
default: $(() => [
|
|
4277
4277
|
Le(Ie(V.label), 1)
|
|
4278
4278
|
]),
|
|
@@ -4302,48 +4302,61 @@ const dr = /* @__PURE__ */ xl(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
|
-
),
|
|
4309
|
-
var
|
|
4310
|
-
if (!
|
|
4311
|
-
const
|
|
4312
|
-
return
|
|
4313
|
-
},
|
|
4314
|
-
e("load",
|
|
4315
|
-
}, q = (
|
|
4316
|
-
|
|
4317
|
-
}, U = async (
|
|
4318
|
-
|
|
4319
|
-
}, V = (
|
|
4320
|
-
|
|
4321
|
-
|
|
4322
|
-
|
|
4323
|
-
|
|
4324
|
-
|
|
4325
|
-
|
|
4308
|
+
), f = re(((G = o == null ? void 0 : o.tree) == null ? void 0 : G.search) === void 0 ? !0 : (le = o == null ? void 0 : o.tree) == null ? void 0 : le.search), S = re({}), v = re(""), h = re(null), u = re({}), r = (R, K) => {
|
|
4309
|
+
var Te, Ve;
|
|
4310
|
+
if (!R) return !0;
|
|
4311
|
+
const fe = ((Ve = (Te = o == null ? void 0 : o.tree) == null ? void 0 : Te.props) == null ? void 0 : Ve.label) || "label";
|
|
4312
|
+
return K[fe].includes(R);
|
|
4313
|
+
}, c = (R, K) => {
|
|
4314
|
+
e("load", S.value, R, K);
|
|
4315
|
+
}, q = (R) => {
|
|
4316
|
+
S.value = R, l.value.table.load();
|
|
4317
|
+
}, U = async (R, K, fe) => {
|
|
4318
|
+
R.preventDefault(), u.value = { data: K, node: fe };
|
|
4319
|
+
}, V = async (R, { data: K, node: fe, m: Te }, Ve) => {
|
|
4320
|
+
var ve;
|
|
4321
|
+
if (R === "add") {
|
|
4322
|
+
const L = await new Promise((Ce) => {
|
|
4323
|
+
e("menu-command", R, { data: K, node: fe, m: Te }, (Me) => {
|
|
4324
|
+
Ce(Me);
|
|
4325
|
+
});
|
|
4326
|
+
});
|
|
4327
|
+
L && ((ve = h.value) == null || ve.append(K, fe), fe.expanded = !0, Ve(L));
|
|
4328
|
+
} else if (R === "refresh") {
|
|
4329
|
+
const L = await new Promise((Ce) => {
|
|
4330
|
+
e("menu-command", R, { data: K, node: fe }, (Me) => {
|
|
4331
|
+
Ce(Me);
|
|
4332
|
+
});
|
|
4333
|
+
});
|
|
4334
|
+
L ? typeof L == "function" && L() : (s.value = !1, setTimeout(() => {
|
|
4335
|
+
s.value = !0;
|
|
4336
|
+
}, 0));
|
|
4337
|
+
} else
|
|
4338
|
+
e("menu-command", R, { data: K, node: fe, m: Te }, Ve);
|
|
4326
4339
|
};
|
|
4327
|
-
return
|
|
4328
|
-
h.value.filter(
|
|
4329
|
-
}), (
|
|
4330
|
-
var
|
|
4331
|
-
const
|
|
4340
|
+
return gl(v, (R) => {
|
|
4341
|
+
h.value.filter(R);
|
|
4342
|
+
}), (R, K) => {
|
|
4343
|
+
var L, Ce;
|
|
4344
|
+
const fe = H("el-input"), Te = H("el-dropdown"), Ve = H("el-tree"), ve = H("g-table");
|
|
4332
4345
|
return m(), z("div", gr, [
|
|
4333
4346
|
J("div", {
|
|
4334
4347
|
class: "g-tree-left",
|
|
4335
4348
|
style: Ue({ width: t.value })
|
|
4336
4349
|
}, [
|
|
4337
|
-
|
|
4350
|
+
f.value ? (m(), D(fe, Y({
|
|
4338
4351
|
key: 0,
|
|
4339
4352
|
modelValue: v.value,
|
|
4340
|
-
"onUpdate:modelValue":
|
|
4353
|
+
"onUpdate:modelValue": K[0] || (K[0] = (Me) => v.value = Me),
|
|
4341
4354
|
style: { width: "100%", "box-sizing": "border-box", "margin-bottom": "10px" },
|
|
4342
4355
|
placeholder: "输入节点查询",
|
|
4343
4356
|
clearable: ""
|
|
4344
|
-
}, (
|
|
4357
|
+
}, (Ce = (L = F(o)) == null ? void 0 : L.tree) == null ? void 0 : Ce.search), null, 16, ["modelValue"])) : ke("", !0),
|
|
4345
4358
|
J("div", br, [
|
|
4346
|
-
s.value ? (m(), D(
|
|
4359
|
+
s.value ? (m(), D(Ve, Y({
|
|
4347
4360
|
key: 0,
|
|
4348
4361
|
style: { width: t.value },
|
|
4349
4362
|
"filter-node-method": r,
|
|
@@ -4352,13 +4365,13 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4352
4365
|
ref: h,
|
|
4353
4366
|
onNodeClick: q,
|
|
4354
4367
|
onNodeContextmenu: U
|
|
4355
|
-
},
|
|
4356
|
-
default: $(({ node:
|
|
4357
|
-
C(
|
|
4358
|
-
node:
|
|
4368
|
+
}, R.$attrs.tree), $e({
|
|
4369
|
+
default: $(({ node: Me, data: B }) => [
|
|
4370
|
+
C(R.$slots, "tree", {
|
|
4371
|
+
node: Me,
|
|
4359
4372
|
data: B
|
|
4360
4373
|
}, () => [
|
|
4361
|
-
de(
|
|
4374
|
+
de(Te, { trigger: "contextmenu" }, {
|
|
4362
4375
|
dropdown: $(() => {
|
|
4363
4376
|
var A, y, _, w;
|
|
4364
4377
|
return [
|
|
@@ -4366,16 +4379,16 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4366
4379
|
"node-info": u.value,
|
|
4367
4380
|
columns: (y = (A = F(o)) == null ? void 0 : A.tree) == null ? void 0 : y.columns,
|
|
4368
4381
|
menu: () => {
|
|
4369
|
-
var p,
|
|
4370
|
-
return ((
|
|
4382
|
+
var p, T, M, I;
|
|
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(
|
|
4376
|
-
name:
|
|
4388
|
+
W(R.$slots, (p, T, M) => ({
|
|
4389
|
+
name: T,
|
|
4377
4390
|
fn: $((I) => [
|
|
4378
|
-
C(
|
|
4391
|
+
C(R.$slots, T, {
|
|
4379
4392
|
data: (I == null ? void 0 : I.data) || {}
|
|
4380
4393
|
}, void 0, !0)
|
|
4381
4394
|
])
|
|
@@ -4385,8 +4398,8 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4385
4398
|
}),
|
|
4386
4399
|
default: $(() => [
|
|
4387
4400
|
J("span", wr, [
|
|
4388
|
-
J("span", null, Ie(
|
|
4389
|
-
|
|
4401
|
+
J("span", null, Ie(Me.label), 1),
|
|
4402
|
+
K[2] || (K[2] = J("i", { class: "el-icon-arrow-down el-icon--right" }, null, -1))
|
|
4390
4403
|
])
|
|
4391
4404
|
]),
|
|
4392
4405
|
_: 2
|
|
@@ -4395,27 +4408,27 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4395
4408
|
]),
|
|
4396
4409
|
_: 2
|
|
4397
4410
|
}, [
|
|
4398
|
-
W(
|
|
4411
|
+
W(R.$slots, (Me, B, A) => ({
|
|
4399
4412
|
name: B,
|
|
4400
4413
|
fn: $((y) => [
|
|
4401
|
-
C(
|
|
4414
|
+
C(R.$slots, B, { data: y }, void 0, !0)
|
|
4402
4415
|
])
|
|
4403
4416
|
}))
|
|
4404
4417
|
]), 1040, ["style"])) : ke("", !0)
|
|
4405
4418
|
])
|
|
4406
4419
|
], 4),
|
|
4407
4420
|
J("div", $r, [
|
|
4408
|
-
de(
|
|
4421
|
+
de(ve, Y({
|
|
4409
4422
|
modelValue: l.value,
|
|
4410
|
-
"onUpdate:modelValue":
|
|
4411
|
-
}, F(We)(
|
|
4412
|
-
onLoad:
|
|
4413
|
-
node:
|
|
4423
|
+
"onUpdate:modelValue": K[1] || (K[1] = (Me) => l.value = Me)
|
|
4424
|
+
}, F(We)(R.$attrs, (Me) => Me !== "tree"), {
|
|
4425
|
+
onLoad: c,
|
|
4426
|
+
node: S.value
|
|
4414
4427
|
}), $e({ _: 2 }, [
|
|
4415
|
-
W(
|
|
4428
|
+
W(R.$slots, (Me, B, A) => ({
|
|
4416
4429
|
name: B,
|
|
4417
4430
|
fn: $((y) => [
|
|
4418
|
-
C(
|
|
4431
|
+
C(R.$slots, B, { data: y }, void 0, !0)
|
|
4419
4432
|
])
|
|
4420
4433
|
}))
|
|
4421
4434
|
]), 1040, ["modelValue", "node"])
|
|
@@ -4423,14 +4436,14 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4423
4436
|
]);
|
|
4424
4437
|
};
|
|
4425
4438
|
}
|
|
4426
|
-
}), _r = /* @__PURE__ */ nt(kr, [["__scopeId", "data-v-
|
|
4439
|
+
}), _r = /* @__PURE__ */ nt(kr, [["__scopeId", "data-v-3960b6b6"]]), xr = {
|
|
4427
4440
|
key: 0,
|
|
4428
4441
|
class: "op-group"
|
|
4429
4442
|
}, Cr = {
|
|
4430
4443
|
key: 1,
|
|
4431
4444
|
class: "op-items",
|
|
4432
4445
|
style: { width: "100%", height: "100%" }
|
|
4433
|
-
}, Mr = ["title"],
|
|
4446
|
+
}, Mr = ["title"], vl = "100px", Sr = /* @__PURE__ */ Object.assign({ name: "g-select-option" }, {
|
|
4434
4447
|
__name: "g-select-option",
|
|
4435
4448
|
props: {
|
|
4436
4449
|
columns: {
|
|
@@ -4454,7 +4467,7 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4454
4467
|
const d = n;
|
|
4455
4468
|
return (e, l) => d.title ? (m(), z("div", xr, [
|
|
4456
4469
|
(m(!0), z(se, null, W(d.columns, (s) => (m(), z("span", {
|
|
4457
|
-
style: Ue({ width: (s == null ? void 0 : s.width) ||
|
|
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
|
C(e.$slots, `${n.t}-title-${s.key}`, { col: s }, () => [
|
|
@@ -4463,7 +4476,7 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4463
4476
|
], 4))), 128))
|
|
4464
4477
|
])) : (m(), z("div", Cr, [
|
|
4465
4478
|
(m(!0), z(se, null, W(d.columns, (s) => (m(), z("span", {
|
|
4466
|
-
style: Ue({ width: (s == null ? void 0 : s.width) ||
|
|
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
|
}, [
|
|
@@ -4473,7 +4486,7 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4473
4486
|
], 12, Mr))), 128))
|
|
4474
4487
|
]));
|
|
4475
4488
|
}
|
|
4476
|
-
}), Tr = /* @__PURE__ */ nt(Sr, [["__scopeId", "data-v-c0ac6b77"]]), Er = Object.freeze({}), Il = [hr, Ft, _r, Tr,
|
|
4489
|
+
}), Tr = /* @__PURE__ */ nt(Sr, [["__scopeId", "data-v-c0ac6b77"]]), Er = Object.freeze({}), Il = [hr, Ft, _r, Tr, Qt, Tl];
|
|
4477
4490
|
let Pt = {};
|
|
4478
4491
|
const Hr = {
|
|
4479
4492
|
install: (n, d = {}) => {
|
|
@@ -4493,18 +4506,18 @@ const Hr = {
|
|
|
4493
4506
|
l.value = !1, setTimeout(() => {
|
|
4494
4507
|
s.unmount(), d.remove();
|
|
4495
4508
|
}, 300);
|
|
4496
|
-
},
|
|
4497
|
-
|
|
4509
|
+
}, gl(l, (S) => {
|
|
4510
|
+
S || setTimeout(() => {
|
|
4498
4511
|
s.unmount(), d.remove();
|
|
4499
4512
|
}, 300);
|
|
4500
4513
|
});
|
|
4501
|
-
const { close: o, ...t } = n,
|
|
4514
|
+
const { close: o, ...t } = n, f = {
|
|
4502
4515
|
modelValue: l.value,
|
|
4503
|
-
"onUpdate:modelValue": (
|
|
4516
|
+
"onUpdate:modelValue": (S) => l.value = S,
|
|
4504
4517
|
//'close-on-click-modal': false,
|
|
4505
4518
|
...t
|
|
4506
4519
|
};
|
|
4507
|
-
return o && (
|
|
4520
|
+
return o && (f.onClose = o), () => Se(Qt, f, n.slots);
|
|
4508
4521
|
},
|
|
4509
4522
|
mounted: () => {
|
|
4510
4523
|
Yt();
|
|
@@ -4530,13 +4543,13 @@ function Vr(n, d = window.innerWidth) {
|
|
|
4530
4543
|
return d * parseFloat(n) / 100;
|
|
4531
4544
|
}
|
|
4532
4545
|
if (n.startsWith("calc(") && n.endsWith(")")) {
|
|
4533
|
-
let o = function(
|
|
4534
|
-
if (/[0-9+\-*/().\s]+$/.test(
|
|
4535
|
-
return new Function("return " +
|
|
4546
|
+
let o = function(f) {
|
|
4547
|
+
if (/[0-9+\-*/().\s]+$/.test(f))
|
|
4548
|
+
return new Function("return " + f)();
|
|
4536
4549
|
throw new Error("Invalid calc expression");
|
|
4537
4550
|
};
|
|
4538
4551
|
const s = n.slice(5, -1).trim();
|
|
4539
|
-
return o(s.replace(/([0-9.]+)([a-z%]+)/g, (
|
|
4552
|
+
return o(s.replace(/([0-9.]+)([a-z%]+)/g, (f, S, v) => Vr(S + v, d)));
|
|
4540
4553
|
}
|
|
4541
4554
|
throw new Error("Unsupported unit in value: " + n);
|
|
4542
4555
|
}
|
|
@@ -4576,10 +4589,10 @@ function Nt(n) {
|
|
|
4576
4589
|
o += (e[Math.floor(n * 10 * Math.pow(10, t)) % 10] + d[t]).replace(/零./, "");
|
|
4577
4590
|
o = o || "整", n = Math.floor(n);
|
|
4578
4591
|
for (let t = 0; t < l[0].length && n > 0; t++) {
|
|
4579
|
-
let
|
|
4580
|
-
for (let
|
|
4581
|
-
|
|
4582
|
-
o =
|
|
4592
|
+
let f = "";
|
|
4593
|
+
for (let S = 0; S < l[1].length && n > 0; S++)
|
|
4594
|
+
f = e[n % 10] + l[1][S] + f, n = Math.floor(n / 10);
|
|
4595
|
+
o = f.replace(/(零.)*零$/, "").replace(/^$/, "零") + l[0][t] + o;
|
|
4583
4596
|
}
|
|
4584
4597
|
return s + o.replace(/(零.)*零元/, "元").replace(/(零.)+/g, "零").replace(/^整$/, "零元整");
|
|
4585
4598
|
}
|
|
@@ -4591,7 +4604,7 @@ function Ir(n, d = 2, e = !1) {
|
|
|
4591
4604
|
l = Math.abs(l);
|
|
4592
4605
|
let o = l.toFixed(d);
|
|
4593
4606
|
e && (o = o.replace(/\.?0+$/, ""));
|
|
4594
|
-
const [t,
|
|
4607
|
+
const [t, f] = o.split("."), S = t.replace(/\B(?=(\d{3})+(?!\d))/g, ","), v = f ? `${S}.${f}` : S;
|
|
4595
4608
|
return s ? `-${v}` : v;
|
|
4596
4609
|
}
|
|
4597
4610
|
function Or(n, d) {
|
|
@@ -4669,16 +4682,16 @@ const De = {
|
|
|
4669
4682
|
});
|
|
4670
4683
|
}, Yr = (n, d) => {
|
|
4671
4684
|
let e = !1, l, s, o, t;
|
|
4672
|
-
const
|
|
4673
|
-
h.preventDefault(), e = !0, l = h.clientX, s = h.clientY, o = parseInt(document.defaultView.getComputedStyle(n).width), t = parseInt(document.defaultView.getComputedStyle(n).height), document.addEventListener("mousemove",
|
|
4674
|
-
},
|
|
4685
|
+
const f = (h) => {
|
|
4686
|
+
h.preventDefault(), e = !0, l = h.clientX, s = h.clientY, o = parseInt(document.defaultView.getComputedStyle(n).width), t = parseInt(document.defaultView.getComputedStyle(n).height), document.addEventListener("mousemove", S), document.addEventListener("mouseup", v);
|
|
4687
|
+
}, S = (h) => {
|
|
4675
4688
|
if (!e) return;
|
|
4676
4689
|
const u = Math.max(300, o + h.clientX - l), r = Math.max(200, t + h.clientY - s);
|
|
4677
4690
|
n.style.width = `${u}px`, n.style.height = `${r}px`;
|
|
4678
4691
|
}, v = () => {
|
|
4679
|
-
e = !1, document.removeEventListener("mousemove",
|
|
4692
|
+
e = !1, document.removeEventListener("mousemove", S), document.removeEventListener("mouseup", v);
|
|
4680
4693
|
};
|
|
4681
|
-
d.addEventListener("mousedown",
|
|
4694
|
+
d.addEventListener("mousedown", f);
|
|
4682
4695
|
};
|
|
4683
4696
|
export {
|
|
4684
4697
|
De as CT,
|