vue-2024-ui 0.2.57 → 0.2.59
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 +1131 -1102
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { ref as re, useModel as
|
|
3
|
-
import { Plus as _l, ZoomIn as Cl, Delete as
|
|
1
|
+
import Wt, { ElForm as _t, ElButtonGroup as Ct, ElButton as Fe, ElPopover as Et, ElIcon as Bt, ElMessage as nt, ElMessageBox as Gt, ElDrawer as vl, ElDialog as pl } from "element-plus";
|
|
2
|
+
import { ref as re, useModel as et, nextTick as ht, onMounted as yt, computed as Je, resolveComponent as N, openBlock as p, createElementBlock as R, Fragment as le, createElementVNode as Z, createBlock as O, createCommentVNode as be, unref as H, mergeProps as L, withCtx as $, renderSlot as C, renderList as X, createTextVNode as Le, toDisplayString as Se, createSlots as ge, createVNode as ie, normalizeStyle as Ye, normalizeProps as It, mergeModels as ot, useSlots as Xt, inject as Lt, withModifiers as dt, resolveDynamicComponent as Xe, guardReactiveProps as ml, Transition as hl, withDirectives as yl, vShow as gl, h as we, useAttrs as Tt, onUnmounted as bl, onBeforeUnmount as $l, normalizeClass as Qt, watchEffect as wl, onBeforeMount as kl, watch as Zt, createApp as Jt } from "vue";
|
|
3
|
+
import { Plus as _l, ZoomIn as Cl, Delete as Kt, Search as Sl, Refresh as el, More as Ml, CircleCheckFilled as xl, CircleCheck as Ot, Minus as Tl, Switch as Vl, FullScreen as El, InfoFilled as tl, Download as ll, DocumentCopy as Dl, Setting as Il, CirclePlus as Ol, Edit as ql, View as Al } from "@element-plus/icons-vue";
|
|
4
4
|
import al from "sortablejs";
|
|
5
5
|
import { Dexie as zl } from "dexie";
|
|
6
6
|
var rl = {
|
|
@@ -187,66 +187,66 @@ var ol = { exports: {} };
|
|
|
187
187
|
(function(t, l) {
|
|
188
188
|
r.exports = l();
|
|
189
189
|
})(Ll, function() {
|
|
190
|
-
var t = 1e3, l = 6e4, n = 36e5, e = "millisecond", h = "second", f = "minute", S = "hour", c = "day", v = "week", o = "month", d = "quarter", g = "year", J = "date", x = "Invalid Date", U = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, z = /\[([^\]]+)]|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,
|
|
191
|
-
var b = ["th", "st", "nd", "rd"], i =
|
|
192
|
-
return "[" +
|
|
193
|
-
} },
|
|
194
|
-
var
|
|
195
|
-
return !
|
|
196
|
-
},
|
|
197
|
-
var b = -
|
|
198
|
-
return (b <= 0 ? "+" : "-") +
|
|
199
|
-
}, m: function
|
|
200
|
-
if (b.date() < i.date()) return -
|
|
201
|
-
var
|
|
202
|
-
return +(-(
|
|
203
|
-
}, a: function(
|
|
204
|
-
return
|
|
205
|
-
}, p: function(
|
|
206
|
-
return { M: o, y: g, w: v, d: c, D: J, h: S, m: f, s: h, ms: e, Q: d }[
|
|
207
|
-
}, u: function(
|
|
208
|
-
return
|
|
209
|
-
} },
|
|
210
|
-
|
|
211
|
-
var
|
|
212
|
-
return
|
|
213
|
-
}, xe = function
|
|
190
|
+
var t = 1e3, l = 6e4, n = 36e5, e = "millisecond", h = "second", f = "minute", S = "hour", c = "day", v = "week", o = "month", d = "quarter", g = "year", J = "date", x = "Invalid Date", U = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, z = /\[([^\]]+)]|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, j = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(k) {
|
|
191
|
+
var b = ["th", "st", "nd", "rd"], i = k % 100;
|
|
192
|
+
return "[" + k + (b[(i - 20) % 10] || b[i] || b[0]) + "]";
|
|
193
|
+
} }, de = function(k, b, i) {
|
|
194
|
+
var D = String(k);
|
|
195
|
+
return !D || D.length >= b ? k : "" + Array(b + 1 - D.length).join(i) + k;
|
|
196
|
+
}, ae = { s: de, z: function(k) {
|
|
197
|
+
var b = -k.utcOffset(), i = Math.abs(b), D = Math.floor(i / 60), _ = i % 60;
|
|
198
|
+
return (b <= 0 ? "+" : "-") + de(D, 2, "0") + ":" + de(_, 2, "0");
|
|
199
|
+
}, m: function k(b, i) {
|
|
200
|
+
if (b.date() < i.date()) return -k(i, b);
|
|
201
|
+
var D = 12 * (i.year() - b.year()) + (i.month() - b.month()), _ = b.clone().add(D, o), q = i - _ < 0, E = b.clone().add(D + (q ? -1 : 1), o);
|
|
202
|
+
return +(-(D + (i - _) / (q ? _ - E : E - _)) || 0);
|
|
203
|
+
}, a: function(k) {
|
|
204
|
+
return k < 0 ? Math.ceil(k) || 0 : Math.floor(k);
|
|
205
|
+
}, p: function(k) {
|
|
206
|
+
return { M: o, y: g, w: v, d: c, D: J, h: S, m: f, s: h, ms: e, Q: d }[k] || String(k || "").toLowerCase().replace(/s$/, "");
|
|
207
|
+
}, u: function(k) {
|
|
208
|
+
return k === void 0;
|
|
209
|
+
} }, oe = "en", ve = {};
|
|
210
|
+
ve[oe] = j;
|
|
211
|
+
var ke = "$isDayjsObject", Ve = function(k) {
|
|
212
|
+
return k instanceof Te || !(!k || !k[ke]);
|
|
213
|
+
}, xe = function k(b, i, D) {
|
|
214
214
|
var _;
|
|
215
|
-
if (!b) return
|
|
215
|
+
if (!b) return oe;
|
|
216
216
|
if (typeof b == "string") {
|
|
217
217
|
var q = b.toLowerCase();
|
|
218
|
-
|
|
219
|
-
var
|
|
220
|
-
if (!_ &&
|
|
218
|
+
ve[q] && (_ = q), i && (ve[q] = i, _ = q);
|
|
219
|
+
var E = b.split("-");
|
|
220
|
+
if (!_ && E.length > 1) return k(E[0]);
|
|
221
221
|
} else {
|
|
222
222
|
var Q = b.name;
|
|
223
|
-
|
|
223
|
+
ve[Q] = b, _ = Q;
|
|
224
224
|
}
|
|
225
|
-
return !
|
|
226
|
-
},
|
|
227
|
-
if (Ve(
|
|
225
|
+
return !D && _ && (oe = _), _ || !D && oe;
|
|
226
|
+
}, ee = function(k, b) {
|
|
227
|
+
if (Ve(k)) return k.clone();
|
|
228
228
|
var i = typeof b == "object" ? b : {};
|
|
229
|
-
return i.date =
|
|
230
|
-
}, ue =
|
|
231
|
-
ue.l = xe, ue.i = Ve, ue.w = function(
|
|
232
|
-
return
|
|
229
|
+
return i.date = k, i.args = arguments, new Te(i);
|
|
230
|
+
}, ue = ae;
|
|
231
|
+
ue.l = xe, ue.i = Ve, ue.w = function(k, b) {
|
|
232
|
+
return ee(k, { locale: b.$L, utc: b.$u, x: b.$x, $offset: b.$offset });
|
|
233
233
|
};
|
|
234
234
|
var Te = function() {
|
|
235
|
-
function
|
|
236
|
-
this.$L = xe(i.locale, null, !0), this.parse(i), this.$x = this.$x || i.x || {}, this[
|
|
235
|
+
function k(i) {
|
|
236
|
+
this.$L = xe(i.locale, null, !0), this.parse(i), this.$x = this.$x || i.x || {}, this[ke] = !0;
|
|
237
237
|
}
|
|
238
|
-
var b =
|
|
238
|
+
var b = k.prototype;
|
|
239
239
|
return b.parse = function(i) {
|
|
240
|
-
this.$d = function(
|
|
241
|
-
var _ =
|
|
240
|
+
this.$d = function(D) {
|
|
241
|
+
var _ = D.date, q = D.utc;
|
|
242
242
|
if (_ === null) return /* @__PURE__ */ new Date(NaN);
|
|
243
243
|
if (ue.u(_)) return /* @__PURE__ */ new Date();
|
|
244
244
|
if (_ instanceof Date) return new Date(_);
|
|
245
245
|
if (typeof _ == "string" && !/Z$/i.test(_)) {
|
|
246
|
-
var
|
|
247
|
-
if (
|
|
248
|
-
var Q =
|
|
249
|
-
return q ? new Date(Date.UTC(
|
|
246
|
+
var E = _.match(U);
|
|
247
|
+
if (E) {
|
|
248
|
+
var Q = E[2] - 1 || 0, se = (E[7] || "0").substring(0, 3);
|
|
249
|
+
return q ? new Date(Date.UTC(E[1], Q, E[3] || 1, E[4] || 0, E[5] || 0, E[6] || 0, se)) : new Date(E[1], Q, E[3] || 1, E[4] || 0, E[5] || 0, E[6] || 0, se);
|
|
250
250
|
}
|
|
251
251
|
}
|
|
252
252
|
return new Date(_);
|
|
@@ -258,112 +258,112 @@ var ol = { exports: {} };
|
|
|
258
258
|
return ue;
|
|
259
259
|
}, b.isValid = function() {
|
|
260
260
|
return this.$d.toString() !== x;
|
|
261
|
-
}, b.isSame = function(i,
|
|
262
|
-
var _ =
|
|
263
|
-
return this.startOf(
|
|
264
|
-
}, b.isAfter = function(i,
|
|
265
|
-
return
|
|
266
|
-
}, b.isBefore = function(i,
|
|
267
|
-
return this.endOf(
|
|
268
|
-
}, b.$g = function(i,
|
|
269
|
-
return ue.u(i) ? this[
|
|
261
|
+
}, b.isSame = function(i, D) {
|
|
262
|
+
var _ = ee(i);
|
|
263
|
+
return this.startOf(D) <= _ && _ <= this.endOf(D);
|
|
264
|
+
}, b.isAfter = function(i, D) {
|
|
265
|
+
return ee(i) < this.startOf(D);
|
|
266
|
+
}, b.isBefore = function(i, D) {
|
|
267
|
+
return this.endOf(D) < ee(i);
|
|
268
|
+
}, b.$g = function(i, D, _) {
|
|
269
|
+
return ue.u(i) ? this[D] : this.set(_, i);
|
|
270
270
|
}, b.unix = function() {
|
|
271
271
|
return Math.floor(this.valueOf() / 1e3);
|
|
272
272
|
}, b.valueOf = function() {
|
|
273
273
|
return this.$d.getTime();
|
|
274
|
-
}, b.startOf = function(i,
|
|
275
|
-
var _ = this, q = !!ue.u(
|
|
276
|
-
var A = ue.w(_.$u ? Date.UTC(_.$y,
|
|
274
|
+
}, b.startOf = function(i, D) {
|
|
275
|
+
var _ = this, q = !!ue.u(D) || D, E = ue.p(i), Q = function(De, Me) {
|
|
276
|
+
var A = ue.w(_.$u ? Date.UTC(_.$y, Me, De) : new Date(_.$y, Me, De), _);
|
|
277
277
|
return q ? A : A.endOf(c);
|
|
278
|
-
},
|
|
279
|
-
return ue.w(_.toDate()[
|
|
280
|
-
},
|
|
281
|
-
switch (
|
|
278
|
+
}, se = function(De, Me) {
|
|
279
|
+
return ue.w(_.toDate()[De].apply(_.toDate("s"), (q ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(Me)), _);
|
|
280
|
+
}, pe = this.$W, Y = this.$M, B = this.$D, Ee = "set" + (this.$u ? "UTC" : "");
|
|
281
|
+
switch (E) {
|
|
282
282
|
case g:
|
|
283
283
|
return q ? Q(1, 0) : Q(31, 11);
|
|
284
284
|
case o:
|
|
285
|
-
return q ? Q(1,
|
|
285
|
+
return q ? Q(1, Y) : Q(0, Y + 1);
|
|
286
286
|
case v:
|
|
287
|
-
var
|
|
288
|
-
return Q(q ?
|
|
287
|
+
var he = this.$locale().weekStart || 0, Ue = (pe < he ? pe + 7 : pe) - he;
|
|
288
|
+
return Q(q ? B - Ue : B + (6 - Ue), Y);
|
|
289
289
|
case c:
|
|
290
290
|
case J:
|
|
291
|
-
return
|
|
291
|
+
return se(Ee + "Hours", 0);
|
|
292
292
|
case S:
|
|
293
|
-
return
|
|
293
|
+
return se(Ee + "Minutes", 1);
|
|
294
294
|
case f:
|
|
295
|
-
return
|
|
295
|
+
return se(Ee + "Seconds", 2);
|
|
296
296
|
case h:
|
|
297
|
-
return
|
|
297
|
+
return se(Ee + "Milliseconds", 3);
|
|
298
298
|
default:
|
|
299
299
|
return this.clone();
|
|
300
300
|
}
|
|
301
301
|
}, b.endOf = function(i) {
|
|
302
302
|
return this.startOf(i, !1);
|
|
303
|
-
}, b.$set = function(i,
|
|
304
|
-
var _, q = ue.p(i),
|
|
303
|
+
}, b.$set = function(i, D) {
|
|
304
|
+
var _, q = ue.p(i), E = "set" + (this.$u ? "UTC" : ""), Q = (_ = {}, _[c] = E + "Date", _[J] = E + "Date", _[o] = E + "Month", _[g] = E + "FullYear", _[S] = E + "Hours", _[f] = E + "Minutes", _[h] = E + "Seconds", _[e] = E + "Milliseconds", _)[q], se = q === c ? this.$D + (D - this.$W) : D;
|
|
305
305
|
if (q === o || q === g) {
|
|
306
|
-
var
|
|
307
|
-
|
|
308
|
-
} else Q && this.$d[Q](
|
|
306
|
+
var pe = this.clone().set(J, 1);
|
|
307
|
+
pe.$d[Q](se), pe.init(), this.$d = pe.set(J, Math.min(this.$D, pe.daysInMonth())).$d;
|
|
308
|
+
} else Q && this.$d[Q](se);
|
|
309
309
|
return this.init(), this;
|
|
310
|
-
}, b.set = function(i,
|
|
311
|
-
return this.clone().$set(i,
|
|
310
|
+
}, b.set = function(i, D) {
|
|
311
|
+
return this.clone().$set(i, D);
|
|
312
312
|
}, b.get = function(i) {
|
|
313
313
|
return this[ue.p(i)]();
|
|
314
|
-
}, b.add = function(i,
|
|
314
|
+
}, b.add = function(i, D) {
|
|
315
315
|
var _, q = this;
|
|
316
316
|
i = Number(i);
|
|
317
|
-
var
|
|
318
|
-
var
|
|
319
|
-
return ue.w(
|
|
317
|
+
var E = ue.p(D), Q = function(Y) {
|
|
318
|
+
var B = ee(q);
|
|
319
|
+
return ue.w(B.date(B.date() + Math.round(Y * i)), q);
|
|
320
320
|
};
|
|
321
|
-
if (
|
|
322
|
-
if (
|
|
323
|
-
if (
|
|
324
|
-
if (
|
|
325
|
-
var
|
|
326
|
-
return ue.w(
|
|
327
|
-
}, b.subtract = function(i,
|
|
328
|
-
return this.add(-1 * i,
|
|
321
|
+
if (E === o) return this.set(o, this.$M + i);
|
|
322
|
+
if (E === g) return this.set(g, this.$y + i);
|
|
323
|
+
if (E === c) return Q(1);
|
|
324
|
+
if (E === v) return Q(7);
|
|
325
|
+
var se = (_ = {}, _[f] = l, _[S] = n, _[h] = t, _)[E] || 1, pe = this.$d.getTime() + i * se;
|
|
326
|
+
return ue.w(pe, this);
|
|
327
|
+
}, b.subtract = function(i, D) {
|
|
328
|
+
return this.add(-1 * i, D);
|
|
329
329
|
}, b.format = function(i) {
|
|
330
|
-
var
|
|
330
|
+
var D = this, _ = this.$locale();
|
|
331
331
|
if (!this.isValid()) return _.invalidDate || x;
|
|
332
|
-
var q = i || "YYYY-MM-DDTHH:mm:ssZ",
|
|
333
|
-
return
|
|
334
|
-
}, Ue = function(
|
|
335
|
-
return ue.s(Q % 12 || 12,
|
|
336
|
-
},
|
|
337
|
-
var
|
|
338
|
-
return M ?
|
|
332
|
+
var q = i || "YYYY-MM-DDTHH:mm:ssZ", E = ue.z(this), Q = this.$H, se = this.$m, pe = this.$M, Y = _.weekdays, B = _.months, Ee = _.meridiem, he = function(Me, A, M, W) {
|
|
333
|
+
return Me && (Me[A] || Me(D, q)) || M[A].slice(0, W);
|
|
334
|
+
}, Ue = function(Me) {
|
|
335
|
+
return ue.s(Q % 12 || 12, Me, "0");
|
|
336
|
+
}, De = Ee || function(Me, A, M) {
|
|
337
|
+
var W = Me < 12 ? "AM" : "PM";
|
|
338
|
+
return M ? W.toLowerCase() : W;
|
|
339
339
|
};
|
|
340
|
-
return q.replace(z, function(
|
|
340
|
+
return q.replace(z, function(Me, A) {
|
|
341
341
|
return A || function(M) {
|
|
342
342
|
switch (M) {
|
|
343
343
|
case "YY":
|
|
344
|
-
return String(
|
|
344
|
+
return String(D.$y).slice(-2);
|
|
345
345
|
case "YYYY":
|
|
346
|
-
return ue.s(
|
|
346
|
+
return ue.s(D.$y, 4, "0");
|
|
347
347
|
case "M":
|
|
348
|
-
return
|
|
348
|
+
return pe + 1;
|
|
349
349
|
case "MM":
|
|
350
|
-
return ue.s(
|
|
350
|
+
return ue.s(pe + 1, 2, "0");
|
|
351
351
|
case "MMM":
|
|
352
|
-
return
|
|
352
|
+
return he(_.monthsShort, pe, B, 3);
|
|
353
353
|
case "MMMM":
|
|
354
|
-
return
|
|
354
|
+
return he(B, pe);
|
|
355
355
|
case "D":
|
|
356
|
-
return
|
|
356
|
+
return D.$D;
|
|
357
357
|
case "DD":
|
|
358
|
-
return ue.s(
|
|
358
|
+
return ue.s(D.$D, 2, "0");
|
|
359
359
|
case "d":
|
|
360
|
-
return String(
|
|
360
|
+
return String(D.$W);
|
|
361
361
|
case "dd":
|
|
362
|
-
return
|
|
362
|
+
return he(_.weekdaysMin, D.$W, Y, 2);
|
|
363
363
|
case "ddd":
|
|
364
|
-
return
|
|
364
|
+
return he(_.weekdaysShort, D.$W, Y, 3);
|
|
365
365
|
case "dddd":
|
|
366
|
-
return
|
|
366
|
+
return Y[D.$W];
|
|
367
367
|
case "H":
|
|
368
368
|
return String(Q);
|
|
369
369
|
case "HH":
|
|
@@ -373,67 +373,67 @@ var ol = { exports: {} };
|
|
|
373
373
|
case "hh":
|
|
374
374
|
return Ue(2);
|
|
375
375
|
case "a":
|
|
376
|
-
return
|
|
376
|
+
return De(Q, se, !0);
|
|
377
377
|
case "A":
|
|
378
|
-
return
|
|
378
|
+
return De(Q, se, !1);
|
|
379
379
|
case "m":
|
|
380
|
-
return String(
|
|
380
|
+
return String(se);
|
|
381
381
|
case "mm":
|
|
382
|
-
return ue.s(
|
|
382
|
+
return ue.s(se, 2, "0");
|
|
383
383
|
case "s":
|
|
384
|
-
return String(
|
|
384
|
+
return String(D.$s);
|
|
385
385
|
case "ss":
|
|
386
|
-
return ue.s(
|
|
386
|
+
return ue.s(D.$s, 2, "0");
|
|
387
387
|
case "SSS":
|
|
388
|
-
return ue.s(
|
|
388
|
+
return ue.s(D.$ms, 3, "0");
|
|
389
389
|
case "Z":
|
|
390
|
-
return
|
|
390
|
+
return E;
|
|
391
391
|
}
|
|
392
392
|
return null;
|
|
393
|
-
}(
|
|
393
|
+
}(Me) || E.replace(":", "");
|
|
394
394
|
});
|
|
395
395
|
}, b.utcOffset = function() {
|
|
396
396
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
397
|
-
}, b.diff = function(i,
|
|
398
|
-
var q,
|
|
399
|
-
return ue.m(
|
|
397
|
+
}, b.diff = function(i, D, _) {
|
|
398
|
+
var q, E = this, Q = ue.p(D), se = ee(i), pe = (se.utcOffset() - this.utcOffset()) * l, Y = this - se, B = function() {
|
|
399
|
+
return ue.m(E, se);
|
|
400
400
|
};
|
|
401
401
|
switch (Q) {
|
|
402
402
|
case g:
|
|
403
|
-
q =
|
|
403
|
+
q = B() / 12;
|
|
404
404
|
break;
|
|
405
405
|
case o:
|
|
406
|
-
q =
|
|
406
|
+
q = B();
|
|
407
407
|
break;
|
|
408
408
|
case d:
|
|
409
|
-
q =
|
|
409
|
+
q = B() / 3;
|
|
410
410
|
break;
|
|
411
411
|
case v:
|
|
412
|
-
q = (
|
|
412
|
+
q = (Y - pe) / 6048e5;
|
|
413
413
|
break;
|
|
414
414
|
case c:
|
|
415
|
-
q = (
|
|
415
|
+
q = (Y - pe) / 864e5;
|
|
416
416
|
break;
|
|
417
417
|
case S:
|
|
418
|
-
q =
|
|
418
|
+
q = Y / n;
|
|
419
419
|
break;
|
|
420
420
|
case f:
|
|
421
|
-
q =
|
|
421
|
+
q = Y / l;
|
|
422
422
|
break;
|
|
423
423
|
case h:
|
|
424
|
-
q =
|
|
424
|
+
q = Y / t;
|
|
425
425
|
break;
|
|
426
426
|
default:
|
|
427
|
-
q =
|
|
427
|
+
q = Y;
|
|
428
428
|
}
|
|
429
429
|
return _ ? q : ue.a(q);
|
|
430
430
|
}, b.daysInMonth = function() {
|
|
431
431
|
return this.endOf(o).$D;
|
|
432
432
|
}, b.$locale = function() {
|
|
433
|
-
return
|
|
434
|
-
}, b.locale = function(i,
|
|
433
|
+
return ve[this.$L];
|
|
434
|
+
}, b.locale = function(i, D) {
|
|
435
435
|
if (!i) return this.$L;
|
|
436
|
-
var _ = this.clone(), q = xe(i,
|
|
436
|
+
var _ = this.clone(), q = xe(i, D, !0);
|
|
437
437
|
return q && (_.$L = q), _;
|
|
438
438
|
}, b.clone = function() {
|
|
439
439
|
return ue.w(this.$d, this);
|
|
@@ -445,50 +445,50 @@ var ol = { exports: {} };
|
|
|
445
445
|
return this.$d.toISOString();
|
|
446
446
|
}, b.toString = function() {
|
|
447
447
|
return this.$d.toUTCString();
|
|
448
|
-
},
|
|
448
|
+
}, k;
|
|
449
449
|
}(), T = Te.prototype;
|
|
450
|
-
return
|
|
451
|
-
T[
|
|
452
|
-
return this.$g(b,
|
|
450
|
+
return ee.prototype = T, [["$ms", e], ["$s", h], ["$m", f], ["$H", S], ["$W", c], ["$M", o], ["$y", g], ["$D", J]].forEach(function(k) {
|
|
451
|
+
T[k[1]] = function(b) {
|
|
452
|
+
return this.$g(b, k[0], k[1]);
|
|
453
453
|
};
|
|
454
|
-
}),
|
|
455
|
-
return
|
|
456
|
-
},
|
|
457
|
-
return
|
|
458
|
-
},
|
|
454
|
+
}), ee.extend = function(k, b) {
|
|
455
|
+
return k.$i || (k(b, Te, ee), k.$i = !0), ee;
|
|
456
|
+
}, ee.locale = xe, ee.isDayjs = Ve, ee.unix = function(k) {
|
|
457
|
+
return ee(1e3 * k);
|
|
458
|
+
}, ee.en = ve[oe], ee.Ls = ve, ee.p = {}, ee;
|
|
459
459
|
});
|
|
460
460
|
})(ol);
|
|
461
461
|
var Ul = ol.exports;
|
|
462
|
-
const
|
|
462
|
+
const Dt = /* @__PURE__ */ nl(Ul), tt = (r, s) => {
|
|
463
463
|
const t = r.__vccOpts || r;
|
|
464
464
|
for (const [l, n] of s)
|
|
465
465
|
t[l] = n;
|
|
466
466
|
return t;
|
|
467
|
-
},
|
|
467
|
+
}, Rl = {
|
|
468
468
|
style: { display: "flex", width: "100%" },
|
|
469
469
|
class: "g-ctrl-container"
|
|
470
|
-
},
|
|
470
|
+
}, Fl = { style: { width: "var(--up-width)", height: "var(--up-height)", position: "relative", "box-sizing": "border-box" } }, Yl = ["innerHTML"], Hl = ["innerHTML"], Bl = ["title"], Pl = ["innerHTML"], Nl = ["innerHTML"], jl = ["innerHTML"], Wl = ["innerHTML"], Gl = ["innerHTML"], Xl = ["innerHTML"], Ql = ["innerHTML"], Zl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
471
471
|
__name: "g-ctrl",
|
|
472
|
-
props: /* @__PURE__ */
|
|
472
|
+
props: /* @__PURE__ */ ot(["t", "ctrlKey", "item", "model", "ctrlType", "formInfo"], {
|
|
473
473
|
modelValue: { required: !0 },
|
|
474
474
|
modelModifiers: {}
|
|
475
475
|
}),
|
|
476
476
|
emits: ["update:modelValue"],
|
|
477
477
|
setup(r) {
|
|
478
|
-
var b, i,
|
|
479
|
-
const s = r, t = re(s.item || {}), l =
|
|
480
|
-
!((q = e.value) != null && q.startsWith("text")) && !((
|
|
478
|
+
var b, i, D, _, q, E, Q, se, pe, Y, B, Ee, he, Ue, De, Me;
|
|
479
|
+
const s = r, t = re(s.item || {}), l = et(r, "modelValue"), n = re(s.ctrlKey), e = re(s.ctrlType), h = re(s.model), f = re([]), S = re([]), c = re(!1), v = re(!1), o = re(0), d = re((i = (b = h == null ? void 0 : h.value) == null ? void 0 : b.form) != null && i["default-placeholder"] ? (_ = (D = h == null ? void 0 : h.value) == null ? void 0 : D[n == null ? void 0 : n.value]) == null ? void 0 : _.label : "");
|
|
480
|
+
!((q = e.value) != null && q.startsWith("text")) && !((E = e.value) != null && E.startsWith("link")) && !((Q = e.value) != null && Q.startsWith("tag")) && !((se = e.value) != null && se.startsWith("div")) && !((pe = e.value) != null && pe.startsWith("span")) && !((Y = e.value) != null && Y.startsWith("avatar")) && ((B = t.value) != null && B.style || (t.value.style = { width: ((he = (Ee = t.value) == null ? void 0 : Ee.style) == null ? void 0 : he.width) || "100%" }));
|
|
481
481
|
const g = re({ display: "flex", flex: 1 }), J = s.t === "t" ? "center" : "flex-start", x = ((Ue = t.value) == null ? void 0 : Ue.style) || {};
|
|
482
482
|
g.value = { ...g.value, justifyContent: J, ...x };
|
|
483
483
|
const U = () => {
|
|
484
|
-
const A =
|
|
485
|
-
return M.filter((Oe) => Oe.startsWith(
|
|
484
|
+
const A = Xt(), M = Object.keys(A), W = `${s.t}-${n.value}-`;
|
|
485
|
+
return M.filter((Oe) => Oe.startsWith(W)).map((Oe) => Oe.replace(W, ""));
|
|
486
486
|
}, z = re({
|
|
487
487
|
multiple: !1,
|
|
488
488
|
"show-file-list": !1,
|
|
489
489
|
"file-list": [],
|
|
490
|
-
showDel: (
|
|
491
|
-
}),
|
|
490
|
+
showDel: (De = t.value) != null && De.showDel ? (Me = t.value) == null ? void 0 : Me.showDel : s.t !== "t"
|
|
491
|
+
}), j = re(t.value.innerHtml), de = (A) => [
|
|
492
492
|
"year",
|
|
493
493
|
"years",
|
|
494
494
|
"month",
|
|
@@ -501,7 +501,7 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
501
501
|
"daterange",
|
|
502
502
|
"monthrange",
|
|
503
503
|
"yearrange"
|
|
504
|
-
].includes(A),
|
|
504
|
+
].includes(A), ae = (A) => ({
|
|
505
505
|
year: "YYYY",
|
|
506
506
|
years: "YYYY",
|
|
507
507
|
month: "YYYY-MM",
|
|
@@ -515,59 +515,59 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
515
515
|
daterange: "YYYY-MM-DD",
|
|
516
516
|
monthrange: "YYYY-MM",
|
|
517
517
|
yearrange: "YYYY"
|
|
518
|
-
})[A] || "YYYY-MM-DD",
|
|
518
|
+
})[A] || "YYYY-MM-DD", oe = re({
|
|
519
519
|
filterable: !0,
|
|
520
520
|
remote: !!(t.value && t.value["remote-method"]),
|
|
521
521
|
...t.value
|
|
522
|
-
}),
|
|
522
|
+
}), ve = re((A) => {
|
|
523
523
|
t.value["remote-method"](A, (M) => {
|
|
524
524
|
ht(() => {
|
|
525
525
|
S.value = M;
|
|
526
526
|
});
|
|
527
527
|
});
|
|
528
|
-
}),
|
|
528
|
+
}), ke = async (A = "options") => {
|
|
529
529
|
var M;
|
|
530
530
|
try {
|
|
531
|
-
const
|
|
532
|
-
if (typeof
|
|
533
|
-
S.value = [{ label:
|
|
531
|
+
const W = await ((M = t.value) == null ? void 0 : M.getDicts(s.formInfo));
|
|
532
|
+
if (typeof W == "string")
|
|
533
|
+
S.value = [{ label: W, value: l.value }];
|
|
534
534
|
else {
|
|
535
|
-
const
|
|
536
|
-
...
|
|
537
|
-
value:
|
|
538
|
-
label:
|
|
535
|
+
const _e = W == null ? void 0 : W.map((Ae, Oe) => ({
|
|
536
|
+
...Ae,
|
|
537
|
+
value: Ae.value ?? Ae.label ?? Oe,
|
|
538
|
+
label: Ae.label || "未知选项"
|
|
539
539
|
}));
|
|
540
|
-
S.value =
|
|
540
|
+
S.value = _e || [];
|
|
541
541
|
}
|
|
542
|
-
} catch (
|
|
543
|
-
throw console.error("获取选项失败:",
|
|
542
|
+
} catch (W) {
|
|
543
|
+
throw console.error("获取选项失败:", W), W;
|
|
544
544
|
}
|
|
545
545
|
}, Ve = () => {
|
|
546
546
|
var A, M;
|
|
547
547
|
t.value.noSearch !== !0 && s.t === "q" && ((M = (A = h.value) == null ? void 0 : A.table) == null || M.load());
|
|
548
548
|
}, xe = (A) => {
|
|
549
549
|
A.preventDefault(), A.stopPropagation(), l.value = "";
|
|
550
|
-
},
|
|
550
|
+
}, ee = (A) => {
|
|
551
551
|
var M;
|
|
552
552
|
if (t.value["file-list"] && t.value["file-list"].length > 0) {
|
|
553
|
-
const
|
|
554
|
-
(
|
|
553
|
+
const W = t.value["file-list"].findIndex(
|
|
554
|
+
(_e) => _e.url === A.url || _e.uid === A.uid || A.raw && _e.raw && _e.raw.uid === A.raw.uid
|
|
555
555
|
);
|
|
556
|
-
o.value =
|
|
556
|
+
o.value = W >= 0 ? W : 0;
|
|
557
557
|
} else {
|
|
558
|
-
const
|
|
559
|
-
o.value =
|
|
558
|
+
const W = A.url || ((M = A.raw) == null ? void 0 : M.url), _e = k.value.indexOf(W);
|
|
559
|
+
o.value = _e >= 0 ? _e : 0;
|
|
560
560
|
}
|
|
561
561
|
c.value = !0;
|
|
562
562
|
}, ue = (A) => {
|
|
563
563
|
if (A.preventDefault(), A.stopPropagation(), t.value["file-list"] && t.value["file-list"].length > 0) {
|
|
564
|
-
const M = l.value,
|
|
565
|
-
(
|
|
566
|
-
var
|
|
567
|
-
return
|
|
564
|
+
const M = l.value, W = t.value["file-list"].findIndex(
|
|
565
|
+
(_e) => {
|
|
566
|
+
var Ae;
|
|
567
|
+
return _e.url === M || ((Ae = _e.raw) == null ? void 0 : Ae.url) === M;
|
|
568
568
|
}
|
|
569
569
|
);
|
|
570
|
-
o.value =
|
|
570
|
+
o.value = W >= 0 ? W : 0;
|
|
571
571
|
} else
|
|
572
572
|
o.value = 0;
|
|
573
573
|
c.value = !0;
|
|
@@ -576,26 +576,26 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
576
576
|
l.value = "";
|
|
577
577
|
return;
|
|
578
578
|
}
|
|
579
|
-
let
|
|
580
|
-
if (
|
|
581
|
-
const Oe =
|
|
582
|
-
|
|
579
|
+
let W = A.replace(/[^-\d.]/g, "");
|
|
580
|
+
if (W.includes("-") && (W.startsWith("-") ? W = "-" + W.substring(1).replace(/-/g, "") : W = W.replace(/-/g, "")), (W.match(/\./g) || []).length > 1) {
|
|
581
|
+
const Oe = W.indexOf(".");
|
|
582
|
+
W = W.substring(0, Oe + 1) + W.substring(Oe + 1).replace(/\./g, "");
|
|
583
583
|
}
|
|
584
|
-
if (
|
|
585
|
-
const [Oe,
|
|
586
|
-
|
|
584
|
+
if (W = W.replace(/^-\./, "-0."), W = W.replace(/^\./, "0."), W = W.replace(/^-0+(\d)/, "-$1"), W = W.replace(/^0+(\d)/, "$1"), (W === "-" || W === "" || W === ".") && (W = "0"), M >= 0 && W.includes(".")) {
|
|
585
|
+
const [Oe, Qe] = W.split(".");
|
|
586
|
+
Qe.length > M && (W = Oe + "." + Qe.substring(0, M));
|
|
587
587
|
}
|
|
588
|
-
l.value =
|
|
588
|
+
l.value = W;
|
|
589
589
|
};
|
|
590
590
|
yt(async () => {
|
|
591
|
-
var
|
|
592
|
-
t.value && t.value["remote-method"] && (
|
|
591
|
+
var W, _e, Ae, Oe, Qe;
|
|
592
|
+
t.value && t.value["remote-method"] && (oe.value["remote-method"] = ve), (_e = (W = h.value[n.value]) == null ? void 0 : W.options) != null && _e.length && (S.value = h.value[n.value].options);
|
|
593
593
|
const A = (He, Pe = "options", Ne = h.value[n.value]) => {
|
|
594
|
-
typeof t.value.getDicts == "function" &&
|
|
595
|
-
console.error(`Failed to load ${Pe} for ${He}:`,
|
|
594
|
+
typeof t.value.getDicts == "function" && ke(Pe).catch((je) => {
|
|
595
|
+
console.error(`Failed to load ${Pe} for ${He}:`, je);
|
|
596
596
|
});
|
|
597
597
|
};
|
|
598
|
-
if (["radio", "radio-button", "checkbox-group", "checkbox-group-button", "select", "cascader"].includes(e.value) && A(e.value), e.value ===
|
|
598
|
+
if (["radio", "radio-button", "checkbox-group", "checkbox-group-button", "select", "cascader"].includes(e.value) && A(e.value), e.value === Ce.TREESELECT && await (async () => {
|
|
599
599
|
try {
|
|
600
600
|
typeof t.value.getDicts == "function" ? f.value = await t.value.getDicts(s.formInfo) : f.value = S.value;
|
|
601
601
|
} catch (Pe) {
|
|
@@ -603,9 +603,9 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
603
603
|
}
|
|
604
604
|
})(), s.t == "q") {
|
|
605
605
|
let He = t.value.type || e.value;
|
|
606
|
-
(He === void 0 || e.value === "input" || He ==
|
|
607
|
-
var Ne,
|
|
608
|
-
(Pe.keyCode === 13 || Pe.key === "Enter") && ((
|
|
606
|
+
(He === void 0 || e.value === "input" || He == Ce.NUMBER || He == Ce.EMAIL || He == "url" || He == "text") && t.value.onKeyup == null && (t.value.onKeyup = (Pe) => {
|
|
607
|
+
var Ne, je;
|
|
608
|
+
(Pe.keyCode === 13 || Pe.key === "Enter") && ((je = (Ne = h.value) == null ? void 0 : Ne.table) == null || je.load());
|
|
609
609
|
}), [
|
|
610
610
|
"radio",
|
|
611
611
|
"switch",
|
|
@@ -623,31 +623,31 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
623
623
|
"datetimerange",
|
|
624
624
|
"week"
|
|
625
625
|
].includes(He) && t.value.onChange === void 0 && (t.value.onChange = (Pe) => {
|
|
626
|
-
var Ne,
|
|
627
|
-
(
|
|
626
|
+
var Ne, je;
|
|
627
|
+
(je = (Ne = h.value) == null ? void 0 : Ne.table) == null || je.load();
|
|
628
628
|
});
|
|
629
629
|
}
|
|
630
|
-
e.value == "image" && (t.value.width && ((
|
|
630
|
+
e.value == "image" && (t.value.width && ((Ae = Te.value) != null && Ae.$el) && Te.value.$el.style.setProperty("--up-width", typeof t.value.width == "number" ? t.value.width + "px" : t.value.width), t.value.height && ((Oe = Te.value) != null && Oe.$el) && Te.value.$el.style.setProperty("--up-height", typeof t.value.height == "number" ? t.value.height + "px" : t.value.height), t.value.fontSize && ((Qe = Te.value) != null && Qe.$el) && Te.value.$el.style.setProperty("--up-font-size", typeof t.value.fontSize == "number" ? t.value.fontSize + "px" : t.value.fontSize));
|
|
631
631
|
});
|
|
632
|
-
const
|
|
632
|
+
const k = Je(() => {
|
|
633
633
|
var A;
|
|
634
634
|
return t.value["file-list"] && t.value["file-list"].length ? (A = t.value["file-list"]) == null ? void 0 : A.map((M) => M == null ? void 0 : M.url) : [l.value];
|
|
635
635
|
});
|
|
636
636
|
return (A, M) => {
|
|
637
|
-
var
|
|
638
|
-
const
|
|
639
|
-
return p(),
|
|
637
|
+
var ut, lt, at, ct, G, rt, ft, vt, wt, Ft, Yt, Ht;
|
|
638
|
+
const W = N("el-image-viewer"), _e = N("el-radio"), Ae = N("el-radio-group"), Oe = N("el-radio-button"), Qe = N("el-checkbox"), He = N("el-checkbox-group"), Pe = N("el-checkbox-button"), Ne = N("g-select-option"), je = N("el-option"), gt = N("el-select"), a = N("el-tree-select"), u = N("el-time-picker"), m = N("el-time-select"), w = N("el-date-picker"), I = N("el-color-picker"), P = N("el-rate"), F = N("el-slider"), $e = N("el-switch"), qe = N("el-transfer"), Ie = N("el-cascader"), Re = N("el-icon"), Be = N("el-image"), We = N("el-tooltip"), it = N("el-upload"), bt = N("el-autocomplete"), $t = N("el-input-number"), K = N("el-input-tag"), me = N("el-input"), V = N("el-link"), te = N("el-text"), ne = N("el-avatar"), Ge = N("el-tag");
|
|
639
|
+
return p(), R(le, null, [
|
|
640
640
|
Z("div", null, [
|
|
641
|
-
c.value ? (p(), O(
|
|
641
|
+
c.value ? (p(), O(W, {
|
|
642
642
|
key: 0,
|
|
643
643
|
teleported: !0,
|
|
644
644
|
"initial-index": o.value,
|
|
645
|
-
"url-list":
|
|
645
|
+
"url-list": k.value,
|
|
646
646
|
onClose: M[0] || (M[0] = (y) => c.value = !1)
|
|
647
647
|
}, null, 8, ["initial-index", "url-list"])) : be("", !0)
|
|
648
648
|
]),
|
|
649
|
-
Z("div",
|
|
650
|
-
e.value ==
|
|
649
|
+
Z("div", Rl, [
|
|
650
|
+
e.value == H(Ce).RADIO ? (p(), O(Ae, L({
|
|
651
651
|
key: 0,
|
|
652
652
|
modelValue: l.value,
|
|
653
653
|
"onUpdate:modelValue": M[1] || (M[1] = (y) => l.value = y),
|
|
@@ -655,7 +655,7 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
655
655
|
}, t.value), {
|
|
656
656
|
default: $(() => [
|
|
657
657
|
C(A.$slots, `${s.t}-${n.value}`, { data: t.value }, () => [
|
|
658
|
-
(p(!0),
|
|
658
|
+
(p(!0), R(le, null, X(S.value, (y) => (p(), O(_e, L({ ref_for: !0 }, y), {
|
|
659
659
|
default: $(() => [
|
|
660
660
|
C(A.$slots, `${s.t}-${n.value}-options`, { option: y }, void 0, !0)
|
|
661
661
|
]),
|
|
@@ -664,7 +664,7 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
664
664
|
], !0)
|
|
665
665
|
]),
|
|
666
666
|
_: 3
|
|
667
|
-
}, 16, ["modelValue", "disabled"])) : e.value ==
|
|
667
|
+
}, 16, ["modelValue", "disabled"])) : e.value == H(Ce).RADIOBUTTON ? (p(), O(Ae, L({
|
|
668
668
|
key: 1,
|
|
669
669
|
modelValue: l.value,
|
|
670
670
|
"onUpdate:modelValue": M[2] || (M[2] = (y) => l.value = y),
|
|
@@ -672,7 +672,7 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
672
672
|
}, t.value), {
|
|
673
673
|
default: $(() => [
|
|
674
674
|
C(A.$slots, `${s.t}-${n.value}`, { data: t.value }, () => [
|
|
675
|
-
(p(!0),
|
|
675
|
+
(p(!0), R(le, null, X(S.value, (y) => (p(), O(Oe, L({ ref_for: !0 }, y), {
|
|
676
676
|
default: $(() => [
|
|
677
677
|
C(A.$slots, `${s.t}-${n.value}-options`, { option: y }, void 0, !0)
|
|
678
678
|
]),
|
|
@@ -681,7 +681,7 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
681
681
|
], !0)
|
|
682
682
|
]),
|
|
683
683
|
_: 3
|
|
684
|
-
}, 16, ["modelValue", "disabled"])) : e.value ==
|
|
684
|
+
}, 16, ["modelValue", "disabled"])) : e.value == H(Ce).CHECKBOX ? (p(), O(Qe, L({
|
|
685
685
|
key: 2,
|
|
686
686
|
modelValue: l.value,
|
|
687
687
|
"onUpdate:modelValue": M[3] || (M[3] = (y) => l.value = y),
|
|
@@ -689,11 +689,11 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
689
689
|
}, t.value), {
|
|
690
690
|
default: $(() => [
|
|
691
691
|
C(A.$slots, `${s.t}-${n.value}`, { data: t.value }, () => [
|
|
692
|
-
M[30] || (M[30] = Le(
|
|
692
|
+
M[30] || (M[30] = Le(Se(" "), -1))
|
|
693
693
|
], !0)
|
|
694
694
|
]),
|
|
695
695
|
_: 3
|
|
696
|
-
}, 16, ["modelValue", "disabled"])) : e.value ==
|
|
696
|
+
}, 16, ["modelValue", "disabled"])) : e.value == H(Ce).CHECKBOXGROUP ? (p(), O(He, L({
|
|
697
697
|
key: 3,
|
|
698
698
|
modelValue: l.value,
|
|
699
699
|
"onUpdate:modelValue": M[4] || (M[4] = (y) => l.value = y),
|
|
@@ -701,10 +701,10 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
701
701
|
}, t.value), {
|
|
702
702
|
default: $(() => [
|
|
703
703
|
C(A.$slots, `${s.t}-${n.value}`, { data: t.value }, () => [
|
|
704
|
-
(p(!0),
|
|
704
|
+
(p(!0), R(le, null, X(S.value, (y) => (p(), O(Qe, L({ ref_for: !0 }, y), {
|
|
705
705
|
default: $(() => [
|
|
706
706
|
C(A.$slots, `${s.t}-${n.value}-options`, { option: y }, () => [
|
|
707
|
-
Le(
|
|
707
|
+
Le(Se(y.label), 1)
|
|
708
708
|
], !0)
|
|
709
709
|
]),
|
|
710
710
|
_: 2
|
|
@@ -712,15 +712,15 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
712
712
|
], !0)
|
|
713
713
|
]),
|
|
714
714
|
_: 3
|
|
715
|
-
}, 16, ["modelValue", "disabled"])) : e.value ==
|
|
715
|
+
}, 16, ["modelValue", "disabled"])) : e.value == H(Ce).CHECKBOXGROUPBUTTON ? (p(), O(He, L({
|
|
716
716
|
key: 4,
|
|
717
717
|
modelValue: l.value,
|
|
718
718
|
"onUpdate:modelValue": M[5] || (M[5] = (y) => l.value = y),
|
|
719
719
|
disabled: h.value[n.value].disabled
|
|
720
|
-
},
|
|
720
|
+
}, H(Ke)(t.value, (y) => y != "type")), {
|
|
721
721
|
default: $(() => [
|
|
722
722
|
C(A.$slots, `${s.t}-${n.value}`, { data: t.value }, () => [
|
|
723
|
-
(p(!0),
|
|
723
|
+
(p(!0), R(le, null, X(S.value, (y) => (p(), O(Pe, L({ ref_for: !0 }, y), {
|
|
724
724
|
default: $(() => [
|
|
725
725
|
C(A.$slots, `${s.t}-${n.value}-options`, { option: y }, void 0, !0)
|
|
726
726
|
]),
|
|
@@ -729,7 +729,7 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
729
729
|
], !0)
|
|
730
730
|
]),
|
|
731
731
|
_: 3
|
|
732
|
-
}, 16, ["modelValue", "disabled"])) : e.value ===
|
|
732
|
+
}, 16, ["modelValue", "disabled"])) : e.value === H(Ce).SELECT ? (p(), O(gt, L({
|
|
733
733
|
key: 5,
|
|
734
734
|
modelValue: l.value,
|
|
735
735
|
"onUpdate:modelValue": M[6] || (M[6] = (y) => l.value = y),
|
|
@@ -739,7 +739,7 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
739
739
|
s.t == "q" && h.value.table.load();
|
|
740
740
|
}),
|
|
741
741
|
disabled: h.value[n.value].disabled
|
|
742
|
-
},
|
|
742
|
+
}, oe.value), ge({
|
|
743
743
|
default: $(() => {
|
|
744
744
|
var y;
|
|
745
745
|
return [
|
|
@@ -747,12 +747,12 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
747
747
|
key: 0,
|
|
748
748
|
options: S.value
|
|
749
749
|
}, () => [
|
|
750
|
-
(p(!0),
|
|
750
|
+
(p(!0), R(le, null, X(S.value, (ce) => (p(), R(le, {
|
|
751
751
|
key: ce.value
|
|
752
752
|
}, [
|
|
753
|
-
|
|
753
|
+
ie(je, L({ ref_for: !0 }, H(Ke)(ce, (fe) => fe != "children"), {
|
|
754
754
|
onClick: (fe) => {
|
|
755
|
-
|
|
755
|
+
oe.value.change && oe.value.change(ce), Ve();
|
|
756
756
|
}
|
|
757
757
|
}), {
|
|
758
758
|
default: $(() => {
|
|
@@ -762,19 +762,19 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
762
762
|
key: 0,
|
|
763
763
|
option: ce
|
|
764
764
|
}, () => {
|
|
765
|
-
var
|
|
765
|
+
var Ze;
|
|
766
766
|
return [
|
|
767
|
-
|
|
768
|
-
columns: (
|
|
767
|
+
ie(Ne, {
|
|
768
|
+
columns: (Ze = t.value) == null ? void 0 : Ze.columns,
|
|
769
769
|
data: ce,
|
|
770
770
|
t: s.t
|
|
771
771
|
}, ge({ _: 2 }, [
|
|
772
|
-
|
|
773
|
-
name:
|
|
774
|
-
fn: $((
|
|
775
|
-
C(A.$slots,
|
|
772
|
+
X(A.$slots, (pt, Vt) => ({
|
|
773
|
+
name: Vt,
|
|
774
|
+
fn: $((kt) => [
|
|
775
|
+
C(A.$slots, Vt, {
|
|
776
776
|
option: ce,
|
|
777
|
-
data:
|
|
777
|
+
data: kt,
|
|
778
778
|
form: r.formInfo
|
|
779
779
|
}, void 0, !0)
|
|
780
780
|
])
|
|
@@ -786,32 +786,32 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
786
786
|
}),
|
|
787
787
|
_: 2
|
|
788
788
|
}, 1040, ["onClick"]),
|
|
789
|
-
ce.children && ce.children.length ? (p(!0),
|
|
789
|
+
ce.children && ce.children.length ? (p(!0), R(le, { key: 0 }, X(ce.children, (fe) => (p(), O(je, L({
|
|
790
790
|
style: { "margin-left": "20px" },
|
|
791
791
|
key: fe.value
|
|
792
|
-
}, { ref_for: !0 },
|
|
793
|
-
onClick: (
|
|
794
|
-
|
|
792
|
+
}, { ref_for: !0 }, H(Ke)(fe, (Ze) => Ze != "children"), {
|
|
793
|
+
onClick: (Ze) => {
|
|
794
|
+
oe.value.change && oe.value.change(fe), Ve();
|
|
795
795
|
}
|
|
796
796
|
}), {
|
|
797
797
|
default: $(() => {
|
|
798
|
-
var
|
|
798
|
+
var Ze;
|
|
799
799
|
return [
|
|
800
|
-
(
|
|
800
|
+
(Ze = t.value) != null && Ze.columns ? C(A.$slots, `${s.t}-${n.value}-options`, {
|
|
801
801
|
key: 0,
|
|
802
802
|
option: fe
|
|
803
803
|
}, () => {
|
|
804
804
|
var pt;
|
|
805
805
|
return [
|
|
806
|
-
|
|
806
|
+
ie(Ne, {
|
|
807
807
|
columns: (pt = t.value) == null ? void 0 : pt.columns,
|
|
808
808
|
data: fe,
|
|
809
809
|
t: s.t
|
|
810
810
|
}, ge({ _: 2 }, [
|
|
811
|
-
|
|
812
|
-
name:
|
|
811
|
+
X(A.$slots, (Vt, kt) => ({
|
|
812
|
+
name: kt,
|
|
813
813
|
fn: $((fl) => [
|
|
814
|
-
C(A.$slots,
|
|
814
|
+
C(A.$slots, kt, {
|
|
815
815
|
option: fe,
|
|
816
816
|
data: fl,
|
|
817
817
|
form: r.formInfo
|
|
@@ -831,20 +831,20 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
831
831
|
}),
|
|
832
832
|
_: 2
|
|
833
833
|
}, [
|
|
834
|
-
(
|
|
834
|
+
(ut = t.value) != null && ut.columns ? {
|
|
835
835
|
name: "header",
|
|
836
836
|
fn: $(() => {
|
|
837
837
|
var y;
|
|
838
838
|
return [
|
|
839
|
-
|
|
839
|
+
ie(Ne, {
|
|
840
840
|
columns: (y = t.value) == null ? void 0 : y.columns,
|
|
841
841
|
title: !0,
|
|
842
842
|
t: s.t
|
|
843
843
|
}, ge({ _: 2 }, [
|
|
844
|
-
|
|
844
|
+
X(A.$slots, (ce, fe) => ({
|
|
845
845
|
name: fe,
|
|
846
|
-
fn: $((
|
|
847
|
-
C(A.$slots, fe, { data:
|
|
846
|
+
fn: $((Ze) => [
|
|
847
|
+
C(A.$slots, fe, { data: Ze }, void 0, !0)
|
|
848
848
|
])
|
|
849
849
|
}))
|
|
850
850
|
]), 1032, ["columns", "t"])
|
|
@@ -852,32 +852,32 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
852
852
|
}),
|
|
853
853
|
key: "0"
|
|
854
854
|
} : void 0,
|
|
855
|
-
|
|
855
|
+
X(U(), (y) => ({
|
|
856
856
|
name: y,
|
|
857
857
|
fn: $((ce) => [
|
|
858
858
|
C(A.$slots, `${s.t}-${n.value}-${y}`, { form: r.formInfo }, void 0, !0)
|
|
859
859
|
])
|
|
860
860
|
}))
|
|
861
|
-
]), 1040, ["modelValue", "placeholder", "disabled"])) : e.value ==
|
|
861
|
+
]), 1040, ["modelValue", "placeholder", "disabled"])) : e.value == H(Ce).TREESELECT ? (p(), O(a, L({
|
|
862
862
|
key: 6,
|
|
863
863
|
modelValue: l.value,
|
|
864
864
|
"onUpdate:modelValue": M[8] || (M[8] = (y) => l.value = y),
|
|
865
865
|
placeholder: d.value,
|
|
866
866
|
disabled: h.value[n.value].disabled
|
|
867
867
|
}, t.value, { data: f.value }), ge({ _: 2 }, [
|
|
868
|
-
|
|
868
|
+
X(U(), (y) => ({
|
|
869
869
|
name: y,
|
|
870
870
|
fn: $((ce) => [
|
|
871
871
|
C(A.$slots, `${s.t}-${n.value}-${y}`, { data: ce }, void 0, !0)
|
|
872
872
|
])
|
|
873
873
|
}))
|
|
874
|
-
]), 1040, ["modelValue", "placeholder", "disabled", "data"])) : e.value ==
|
|
874
|
+
]), 1040, ["modelValue", "placeholder", "disabled", "data"])) : e.value == H(Ce).TIME ? (p(), O(u, L({
|
|
875
875
|
key: 7,
|
|
876
876
|
modelValue: l.value,
|
|
877
877
|
"onUpdate:modelValue": M[9] || (M[9] = (y) => l.value = y),
|
|
878
878
|
"arrow-control": "",
|
|
879
879
|
disabled: h.value[n.value].disabled
|
|
880
|
-
}, t.value, { placeholder: d.value }), null, 16, ["modelValue", "disabled", "placeholder"])) : e.value ==
|
|
880
|
+
}, t.value, { placeholder: d.value }), null, 16, ["modelValue", "disabled", "placeholder"])) : e.value == H(Ce).TIMESELECT ? (p(), O(m, L({
|
|
881
881
|
key: 8,
|
|
882
882
|
modelValue: l.value,
|
|
883
883
|
"onUpdate:modelValue": M[10] || (M[10] = (y) => l.value = y),
|
|
@@ -886,77 +886,77 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
886
886
|
end: "23:30",
|
|
887
887
|
placeholder: d.value,
|
|
888
888
|
disabled: h.value[n.value].disabled
|
|
889
|
-
}, t.value), null, 16, ["modelValue", "placeholder", "disabled"])) :
|
|
889
|
+
}, t.value), null, 16, ["modelValue", "placeholder", "disabled"])) : de(e.value) ? (p(), O(w, L({
|
|
890
890
|
key: 9,
|
|
891
891
|
modelValue: l.value,
|
|
892
892
|
"onUpdate:modelValue": M[11] || (M[11] = (y) => l.value = y),
|
|
893
893
|
type: e.value,
|
|
894
894
|
placeholder: d.value,
|
|
895
|
-
"value-format":
|
|
895
|
+
"value-format": ae(e.value),
|
|
896
896
|
disabled: h.value[n.value].disabled
|
|
897
897
|
}, t.value), ge({ _: 2 }, [
|
|
898
|
-
|
|
898
|
+
X(U(), (y) => ({
|
|
899
899
|
name: y,
|
|
900
900
|
fn: $((ce) => [
|
|
901
901
|
C(A.$slots, `${s.t}-${n.value}-${y}`, { data: ce }, void 0, !0)
|
|
902
902
|
])
|
|
903
903
|
}))
|
|
904
|
-
]), 1040, ["modelValue", "type", "placeholder", "value-format", "disabled"])) : e.value ==
|
|
904
|
+
]), 1040, ["modelValue", "type", "placeholder", "value-format", "disabled"])) : e.value == H(Ce).COLOR ? (p(), O(I, L({
|
|
905
905
|
key: 10,
|
|
906
906
|
modelValue: l.value,
|
|
907
907
|
"onUpdate:modelValue": M[12] || (M[12] = (y) => l.value = y)
|
|
908
|
-
}, t.value), null, 16, ["modelValue"])) : e.value ==
|
|
908
|
+
}, t.value), null, 16, ["modelValue"])) : e.value == H(Ce).RATE ? (p(), O(P, L({
|
|
909
909
|
key: 11,
|
|
910
910
|
modelValue: l.value,
|
|
911
911
|
"onUpdate:modelValue": M[13] || (M[13] = (y) => l.value = y),
|
|
912
912
|
disabled: h.value[n.value].disabled
|
|
913
|
-
}, t.value), null, 16, ["modelValue", "disabled"])) : e.value ==
|
|
913
|
+
}, t.value), null, 16, ["modelValue", "disabled"])) : e.value == H(Ce).SLIDER ? (p(), O(F, L({
|
|
914
914
|
key: 12,
|
|
915
915
|
modelValue: l.value,
|
|
916
916
|
"onUpdate:modelValue": M[14] || (M[14] = (y) => l.value = y),
|
|
917
917
|
disabled: h.value[n.value].disabled
|
|
918
|
-
}, t.value), null, 16, ["modelValue", "disabled"])) : e.value ==
|
|
918
|
+
}, t.value), null, 16, ["modelValue", "disabled"])) : e.value == H(Ce).SWITCH ? (p(), O($e, L({
|
|
919
919
|
key: 13,
|
|
920
920
|
modelValue: l.value,
|
|
921
921
|
"onUpdate:modelValue": M[15] || (M[15] = (y) => l.value = y),
|
|
922
922
|
inlinePrompt: !0,
|
|
923
923
|
disabled: h.value[n.value].disabled
|
|
924
924
|
}, t.value), ge({ _: 2 }, [
|
|
925
|
-
|
|
925
|
+
X(U(), (y) => ({
|
|
926
926
|
name: y,
|
|
927
927
|
fn: $((ce) => [
|
|
928
928
|
C(A.$slots, `${s.t}-${n.value}-${y}`, { data: ce }, void 0, !0)
|
|
929
929
|
])
|
|
930
930
|
}))
|
|
931
|
-
]), 1040, ["modelValue", "disabled"])) : e.value ==
|
|
931
|
+
]), 1040, ["modelValue", "disabled"])) : e.value == H(Ce).TRANSFER ? (p(), O(qe, L({
|
|
932
932
|
key: 14,
|
|
933
933
|
modelValue: l.value,
|
|
934
934
|
"onUpdate:modelValue": M[16] || (M[16] = (y) => l.value = y)
|
|
935
935
|
}, t.value), ge({ _: 2 }, [
|
|
936
|
-
|
|
936
|
+
X(U(), (y) => ({
|
|
937
937
|
name: y,
|
|
938
938
|
fn: $((ce) => [
|
|
939
939
|
C(A.$slots, `${s.t}-${n.value}-${y}`, { data: ce }, void 0, !0)
|
|
940
940
|
])
|
|
941
941
|
}))
|
|
942
|
-
]), 1040, ["modelValue"])) : e.value ==
|
|
942
|
+
]), 1040, ["modelValue"])) : e.value == H(Ce).CASCADER ? (p(), O(Ie, L({
|
|
943
943
|
key: 15,
|
|
944
944
|
modelValue: l.value,
|
|
945
945
|
"onUpdate:modelValue": M[17] || (M[17] = (y) => l.value = y)
|
|
946
946
|
}, t.value, { options: S.value }), ge({ _: 2 }, [
|
|
947
|
-
|
|
947
|
+
X(U(), (y) => ({
|
|
948
948
|
name: y,
|
|
949
949
|
fn: $((ce) => [
|
|
950
950
|
C(A.$slots, `${s.t}-${n.value}-${y}`, { data: ce }, void 0, !0)
|
|
951
951
|
])
|
|
952
952
|
}))
|
|
953
|
-
]), 1040, ["modelValue", "options"])) : e.value ==
|
|
953
|
+
]), 1040, ["modelValue", "options"])) : e.value == H(Ce).IMAGE ? (p(), O(it, L({
|
|
954
954
|
key: 16,
|
|
955
955
|
"file-list": t.value["file-list"],
|
|
956
956
|
"onUpdate:fileList": M[21] || (M[21] = (y) => t.value["file-list"] = y),
|
|
957
957
|
"list-type": "picture-card",
|
|
958
958
|
class: "custom-upload",
|
|
959
|
-
"on-preview":
|
|
959
|
+
"on-preview": ee
|
|
960
960
|
}, { ...z.value, ...t.value }, {
|
|
961
961
|
ref_key: "uploadRef",
|
|
962
962
|
ref: Te
|
|
@@ -964,22 +964,22 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
964
964
|
default: $(() => {
|
|
965
965
|
var y, ce;
|
|
966
966
|
return [
|
|
967
|
-
!l.value || ((y = t.value) == null ? void 0 : y.multiple) === !0 ? (p(), O(
|
|
967
|
+
!l.value || ((y = t.value) == null ? void 0 : y.multiple) === !0 ? (p(), O(Re, { key: 0 }, {
|
|
968
968
|
default: $(() => [
|
|
969
|
-
|
|
969
|
+
ie(H(_l))
|
|
970
970
|
]),
|
|
971
971
|
_: 1
|
|
972
|
-
})) : (p(),
|
|
972
|
+
})) : (p(), R("div", {
|
|
973
973
|
key: 1,
|
|
974
974
|
onClick: M[20] || (M[20] = (fe) => fe.stopPropagation()),
|
|
975
975
|
style: { display: "flex", width: "var(--up-width)", height: "var(--up-height)", position: "relative", "align-items": "center", "justify-content": "center", "box-sizing": "border-box" }
|
|
976
976
|
}, [
|
|
977
|
-
Z("div",
|
|
978
|
-
|
|
977
|
+
Z("div", Fl, [
|
|
978
|
+
ie(Be, L({
|
|
979
979
|
style: { width: "var(--up-width)", height: "var(--up-height)" },
|
|
980
980
|
src: l.value
|
|
981
981
|
}, { fit: "cover", lazy: !0, ...(ce = t.value) == null ? void 0 : ce.img }), ge({ _: 2 }, [
|
|
982
|
-
|
|
982
|
+
X(U(), (fe, Ze) => ({
|
|
983
983
|
name: fe,
|
|
984
984
|
fn: $((pt) => [
|
|
985
985
|
C(A.$slots, `${s.t}-${n.value}-${fe}`, { data: pt }, void 0, !0)
|
|
@@ -993,13 +993,13 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
993
993
|
onMouseleave: M[19] || (M[19] = (fe) => v.value = !1),
|
|
994
994
|
class: "up-view"
|
|
995
995
|
}, [
|
|
996
|
-
v.value ? (p(), O(
|
|
996
|
+
v.value ? (p(), O(We, {
|
|
997
997
|
key: 0,
|
|
998
998
|
content: "查看大图",
|
|
999
999
|
placement: "top"
|
|
1000
1000
|
}, {
|
|
1001
1001
|
default: $(() => [
|
|
1002
|
-
|
|
1002
|
+
ie(H(Cl), {
|
|
1003
1003
|
style: { width: "1.5em", height: "1.5em", "margin-right": "12px" },
|
|
1004
1004
|
color: "white",
|
|
1005
1005
|
onClick: ue
|
|
@@ -1007,13 +1007,13 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
1007
1007
|
]),
|
|
1008
1008
|
_: 1
|
|
1009
1009
|
})) : be("", !0),
|
|
1010
|
-
z.value.showDel && v.value ? (p(), O(
|
|
1010
|
+
z.value.showDel && v.value ? (p(), O(We, {
|
|
1011
1011
|
key: 1,
|
|
1012
1012
|
content: "删除",
|
|
1013
1013
|
placement: "top"
|
|
1014
1014
|
}, {
|
|
1015
1015
|
default: $(() => [
|
|
1016
|
-
|
|
1016
|
+
ie(H(Kt), {
|
|
1017
1017
|
style: { width: "1.5em", height: "1.5em" },
|
|
1018
1018
|
color: "white",
|
|
1019
1019
|
onClick: xe
|
|
@@ -1027,31 +1027,31 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
1027
1027
|
}),
|
|
1028
1028
|
_: 2
|
|
1029
1029
|
}, [
|
|
1030
|
-
|
|
1030
|
+
X(U(), (y, ce) => ({
|
|
1031
1031
|
name: y,
|
|
1032
1032
|
fn: $((fe) => [
|
|
1033
1033
|
C(A.$slots, `${s.t}-${n.value}-${y}`, { data: fe }, void 0, !0)
|
|
1034
1034
|
])
|
|
1035
1035
|
}))
|
|
1036
|
-
]), 1040, ["file-list"])) : e.value ==
|
|
1036
|
+
]), 1040, ["file-list"])) : e.value == H(Ce).AUTOCOMPLETE ? (p(), O(bt, L({
|
|
1037
1037
|
key: 17,
|
|
1038
1038
|
modelValue: l.value,
|
|
1039
1039
|
"onUpdate:modelValue": M[22] || (M[22] = (y) => l.value = y)
|
|
1040
1040
|
}, t.value, { placeholder: d.value }), ge({ _: 2 }, [
|
|
1041
|
-
|
|
1041
|
+
X(U(), (y, ce) => ({
|
|
1042
1042
|
name: y,
|
|
1043
1043
|
fn: $((fe) => [
|
|
1044
1044
|
C(A.$slots, `${s.t}-${n.value}-${y}`, { data: fe }, void 0, !0)
|
|
1045
1045
|
])
|
|
1046
1046
|
}))
|
|
1047
|
-
]), 1040, ["modelValue", "placeholder"])) : e.value ==
|
|
1047
|
+
]), 1040, ["modelValue", "placeholder"])) : e.value == H(Ce).INPUTNUMBER ? (p(), O($t, L({
|
|
1048
1048
|
key: 18,
|
|
1049
1049
|
modelValue: l.value,
|
|
1050
1050
|
"onUpdate:modelValue": M[23] || (M[23] = (y) => l.value = y),
|
|
1051
1051
|
placeholder: d.value,
|
|
1052
1052
|
disabled: h.value[n.value].disabled
|
|
1053
1053
|
}, t.value), ge({ _: 2 }, [
|
|
1054
|
-
|
|
1054
|
+
X(U(), (y, ce) => ({
|
|
1055
1055
|
name: y,
|
|
1056
1056
|
fn: $((fe) => [
|
|
1057
1057
|
C(A.$slots, `${s.t}-${n.value}-${y}`, {
|
|
@@ -1060,7 +1060,7 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
1060
1060
|
}, void 0, !0)
|
|
1061
1061
|
])
|
|
1062
1062
|
}))
|
|
1063
|
-
]), 1040, ["modelValue", "placeholder", "disabled"])) : e.value == "input-tag" ? (p(), O(
|
|
1063
|
+
]), 1040, ["modelValue", "placeholder", "disabled"])) : e.value == "input-tag" ? (p(), O(K, L({
|
|
1064
1064
|
key: 19,
|
|
1065
1065
|
modelValue: l.value,
|
|
1066
1066
|
"onUpdate:modelValue": M[24] || (M[24] = (y) => l.value = y),
|
|
@@ -1068,19 +1068,19 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
1068
1068
|
disabled: h.value[n.value].disabled,
|
|
1069
1069
|
draggable: ""
|
|
1070
1070
|
}, t.value), ge({ _: 2 }, [
|
|
1071
|
-
(
|
|
1071
|
+
(lt = t.value) != null && lt.suffix ? {
|
|
1072
1072
|
name: "suffix",
|
|
1073
1073
|
fn: $(() => {
|
|
1074
1074
|
var y;
|
|
1075
1075
|
return [
|
|
1076
1076
|
Z("div", {
|
|
1077
1077
|
innerHTML: ((y = t.value) == null ? void 0 : y.suffix) || ""
|
|
1078
|
-
}, null, 8,
|
|
1078
|
+
}, null, 8, Yl)
|
|
1079
1079
|
];
|
|
1080
1080
|
}),
|
|
1081
1081
|
key: "0"
|
|
1082
1082
|
} : void 0,
|
|
1083
|
-
(
|
|
1083
|
+
(at = t.value) != null && at.prefix ? {
|
|
1084
1084
|
name: "prefix",
|
|
1085
1085
|
fn: $(() => {
|
|
1086
1086
|
var y;
|
|
@@ -1092,7 +1092,7 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
1092
1092
|
}),
|
|
1093
1093
|
key: "1"
|
|
1094
1094
|
} : void 0,
|
|
1095
|
-
|
|
1095
|
+
X(U(), (y, ce) => ({
|
|
1096
1096
|
name: y,
|
|
1097
1097
|
fn: $((fe) => [
|
|
1098
1098
|
C(A.$slots, `${s.t}-${n.value}-${y}`, {
|
|
@@ -1101,71 +1101,71 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
1101
1101
|
}, void 0, !0)
|
|
1102
1102
|
])
|
|
1103
1103
|
}))
|
|
1104
|
-
]), 1040, ["modelValue", "placeholder", "disabled"])) : e.value ==
|
|
1104
|
+
]), 1040, ["modelValue", "placeholder", "disabled"])) : e.value == H(Ce).MONEY ? (p(), R("div", {
|
|
1105
1105
|
key: 20,
|
|
1106
|
-
style:
|
|
1106
|
+
style: Ye([{ position: "relative" }, g.value])
|
|
1107
1107
|
}, [
|
|
1108
|
-
|
|
1108
|
+
ie(me, L({
|
|
1109
1109
|
modelValue: l.value,
|
|
1110
1110
|
"onUpdate:modelValue": M[25] || (M[25] = (y) => l.value = y),
|
|
1111
1111
|
placeholder: d.value,
|
|
1112
1112
|
type: "number",
|
|
1113
1113
|
onInput: M[26] || (M[26] = (y) => T(y, 2)),
|
|
1114
|
-
maxlength: ((
|
|
1114
|
+
maxlength: ((ct = t.value) == null ? void 0 : ct.max) || 25
|
|
1115
1115
|
}, { ...t.value, type: e.value }), ge({
|
|
1116
1116
|
suffix: $(() => [
|
|
1117
1117
|
Z("div", {
|
|
1118
|
-
title:
|
|
1118
|
+
title: H(zt)(l.value),
|
|
1119
1119
|
style: { "font-size": "10px", display: "block", width: "80px", "text-align": "right", overflow: "hidden", "text-overflow": "ellipsis" }
|
|
1120
|
-
},
|
|
1120
|
+
}, Se(H(zt)(l.value)), 9, Bl)
|
|
1121
1121
|
]),
|
|
1122
1122
|
_: 2
|
|
1123
1123
|
}, [
|
|
1124
|
-
|
|
1124
|
+
X(U(), (y, ce) => ({
|
|
1125
1125
|
name: y,
|
|
1126
1126
|
fn: $((fe) => [
|
|
1127
1127
|
C(A.$slots, `${s.t}-${n.value}-${y}`, { data: fe }, void 0, !0)
|
|
1128
1128
|
])
|
|
1129
1129
|
}))
|
|
1130
1130
|
]), 1040, ["modelValue", "placeholder", "maxlength"])
|
|
1131
|
-
], 4)) : (
|
|
1131
|
+
], 4)) : (G = e.value) != null && G.startsWith("link") ? (p(), R("div", {
|
|
1132
1132
|
key: 21,
|
|
1133
|
-
style:
|
|
1133
|
+
style: Ye(g.value)
|
|
1134
1134
|
}, [
|
|
1135
|
-
|
|
1135
|
+
ie(V, L(t.value, {
|
|
1136
1136
|
type: e.value.replace("link-", ""),
|
|
1137
|
-
innerHTML:
|
|
1137
|
+
innerHTML: j.value || l.value
|
|
1138
1138
|
}), null, 16, ["type", "innerHTML"])
|
|
1139
|
-
], 4)) : e.value != "textarea" && ((
|
|
1139
|
+
], 4)) : e.value != "textarea" && ((rt = e.value) != null && rt.startsWith("text")) ? (p(), R("div", {
|
|
1140
1140
|
key: 22,
|
|
1141
|
-
style:
|
|
1141
|
+
style: Ye(g.value)
|
|
1142
1142
|
}, [
|
|
1143
|
-
|
|
1143
|
+
ie(te, L(t.value, {
|
|
1144
1144
|
type: e.value.replace("text-", ""),
|
|
1145
|
-
innerHTML:
|
|
1145
|
+
innerHTML: j.value || l.value
|
|
1146
1146
|
}), null, 16, ["type", "innerHTML"])
|
|
1147
|
-
], 4)) : e.value == "avatar" ? (p(),
|
|
1147
|
+
], 4)) : e.value == "avatar" ? (p(), R("div", {
|
|
1148
1148
|
key: 23,
|
|
1149
|
-
style:
|
|
1149
|
+
style: Ye(g.value)
|
|
1150
1150
|
}, [
|
|
1151
|
-
|
|
1151
|
+
j.value ? (p(), O(ne, It(L({ key: 0 }, t.value)), {
|
|
1152
1152
|
default: $(() => [
|
|
1153
|
-
Z("div", { innerHTML:
|
|
1153
|
+
Z("div", { innerHTML: j.value }, null, 8, Pl)
|
|
1154
1154
|
]),
|
|
1155
1155
|
_: 1
|
|
1156
|
-
}, 16)) : (p(), O(
|
|
1157
|
-
], 4)) : (
|
|
1156
|
+
}, 16)) : (p(), O(ne, It(L({ key: 1 }, t.value)), null, 16))
|
|
1157
|
+
], 4)) : (ft = e.value) != null && ft.startsWith("tag") ? (p(), R("div", {
|
|
1158
1158
|
key: 24,
|
|
1159
|
-
style:
|
|
1159
|
+
style: Ye(g.value)
|
|
1160
1160
|
}, [
|
|
1161
|
-
Array.isArray(
|
|
1162
|
-
typeof y == "object" ? (p(), O(
|
|
1161
|
+
Array.isArray(j.value) && j.value.length > 0 ? (p(!0), R(le, { key: 0 }, X(j.value, (y, ce) => (p(), R(le, { key: ce }, [
|
|
1162
|
+
typeof y == "object" ? (p(), O(Ge, L({
|
|
1163
1163
|
key: 0,
|
|
1164
1164
|
"disable-transitions": ""
|
|
1165
1165
|
}, { ref_for: !0 }, y, {
|
|
1166
1166
|
innerHTML: y == null ? void 0 : y.value,
|
|
1167
1167
|
style: { "margin-right": "3px" }
|
|
1168
|
-
}), null, 16, ["innerHTML"])) : (p(), O(
|
|
1168
|
+
}), null, 16, ["innerHTML"])) : (p(), O(Ge, L({
|
|
1169
1169
|
key: 1,
|
|
1170
1170
|
"disable-transitions": ""
|
|
1171
1171
|
}, { ref_for: !0 }, t.value, {
|
|
@@ -1173,36 +1173,36 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
1173
1173
|
innerHTML: y,
|
|
1174
1174
|
style: { "margin-right": "3px" }
|
|
1175
1175
|
}), null, 16, ["type", "innerHTML"]))
|
|
1176
|
-
], 64))), 128)) : (p(), O(
|
|
1176
|
+
], 64))), 128)) : (p(), O(Ge, L({
|
|
1177
1177
|
key: 1,
|
|
1178
1178
|
"disable-transitions": ""
|
|
1179
1179
|
}, t.value, {
|
|
1180
1180
|
type: e.value.replace("tag-", ""),
|
|
1181
|
-
innerHTML:
|
|
1181
|
+
innerHTML: j.value || l.value
|
|
1182
1182
|
}), null, 16, ["type", "innerHTML"]))
|
|
1183
|
-
], 4)) : e.value == "div" ? (p(),
|
|
1184
|
-
innerHTML:
|
|
1183
|
+
], 4)) : e.value == "div" ? (p(), R("div", L({ key: 25 }, t.value, {
|
|
1184
|
+
innerHTML: j.value || l.value,
|
|
1185
1185
|
style: g.value
|
|
1186
|
-
}), null, 16, Nl)) : e.value == "span" ? (p(),
|
|
1187
|
-
innerHTML:
|
|
1186
|
+
}), null, 16, Nl)) : e.value == "span" ? (p(), R("span", L({ key: 26 }, t.value, {
|
|
1187
|
+
innerHTML: j.value || l.value,
|
|
1188
1188
|
style: g.value
|
|
1189
|
-
}), null, 16, jl)) : (p(), O(
|
|
1189
|
+
}), null, 16, jl)) : (p(), O(me, L({
|
|
1190
1190
|
key: 27,
|
|
1191
1191
|
modelValue: l.value,
|
|
1192
1192
|
"onUpdate:modelValue": M[27] || (M[27] = (y) => l.value = y),
|
|
1193
1193
|
placeholder: d.value,
|
|
1194
|
-
maxlength: ((
|
|
1194
|
+
maxlength: ((vt = t.value) == null ? void 0 : vt.max) || 25,
|
|
1195
1195
|
clearable: !0,
|
|
1196
1196
|
onInput: M[28] || (M[28] = (y) => {
|
|
1197
1197
|
var ce;
|
|
1198
|
-
return e.value ==
|
|
1198
|
+
return e.value == H(Ce).NUMBER ? T(y, ((ce = t.value) == null ? void 0 : ce.precision) || 2) : y;
|
|
1199
1199
|
}),
|
|
1200
1200
|
onClear: M[29] || (M[29] = () => {
|
|
1201
1201
|
s.t == "q" && h.value.table.load();
|
|
1202
1202
|
}),
|
|
1203
1203
|
disabled: h.value[n.value].disabled
|
|
1204
|
-
}, { ...
|
|
1205
|
-
(
|
|
1204
|
+
}, { ...H(Ke)(t.value, (y) => !["suffix", "prefix", "append", "prepend"].includes(y)), type: e.value }), ge({ _: 2 }, [
|
|
1205
|
+
(wt = t.value) != null && wt.suffix ? {
|
|
1206
1206
|
name: "suffix",
|
|
1207
1207
|
fn: $(() => {
|
|
1208
1208
|
var y;
|
|
@@ -1238,7 +1238,7 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
1238
1238
|
}),
|
|
1239
1239
|
key: "2"
|
|
1240
1240
|
} : void 0,
|
|
1241
|
-
(
|
|
1241
|
+
(Ht = t.value) != null && Ht.prepend ? {
|
|
1242
1242
|
name: "prepend",
|
|
1243
1243
|
fn: $(() => {
|
|
1244
1244
|
var y;
|
|
@@ -1250,7 +1250,7 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
1250
1250
|
}),
|
|
1251
1251
|
key: "3"
|
|
1252
1252
|
} : void 0,
|
|
1253
|
-
|
|
1253
|
+
X(U(), (y, ce) => ({
|
|
1254
1254
|
name: y,
|
|
1255
1255
|
fn: $((fe) => [
|
|
1256
1256
|
C(A.$slots, `${s.t}-${n.value}-${y}`, {
|
|
@@ -1264,9 +1264,9 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
1264
1264
|
], 64);
|
|
1265
1265
|
};
|
|
1266
1266
|
}
|
|
1267
|
-
}),
|
|
1267
|
+
}), Mt = /* @__PURE__ */ tt(Zl, [["__scopeId", "data-v-9f557353"]]), Pt = {
|
|
1268
1268
|
__name: "g-query-item",
|
|
1269
|
-
props: /* @__PURE__ */
|
|
1269
|
+
props: /* @__PURE__ */ ot(["more"], {
|
|
1270
1270
|
modelValue: { required: !0 },
|
|
1271
1271
|
modelModifiers: {},
|
|
1272
1272
|
info: { required: !0 },
|
|
@@ -1274,28 +1274,28 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
1274
1274
|
}),
|
|
1275
1275
|
emits: ["update:modelValue", "update:info"],
|
|
1276
1276
|
setup(r) {
|
|
1277
|
-
const s =
|
|
1277
|
+
const s = et(r, "modelValue"), t = r, l = et(r, "info"), n = (S) => {
|
|
1278
1278
|
let c = Object.entries(s.value).filter((o) => {
|
|
1279
1279
|
var d;
|
|
1280
1280
|
return typeof o[1].search == "function" ? o[1].search && ((d = o[1].search(l.value, s.value.table)) == null ? void 0 : d.more) === S : o[1].search && o[1].search.more === S;
|
|
1281
1281
|
}).map((o) => [o[0], o[1]]);
|
|
1282
1282
|
c.sort((o, d) => {
|
|
1283
|
-
const g = (
|
|
1284
|
-
var
|
|
1283
|
+
const g = (j) => {
|
|
1284
|
+
var de;
|
|
1285
1285
|
try {
|
|
1286
|
-
if (typeof
|
|
1287
|
-
const
|
|
1288
|
-
return (
|
|
1286
|
+
if (typeof j[1].search == "function") {
|
|
1287
|
+
const ae = j[1].search(l.value, s.value.table);
|
|
1288
|
+
return (ae == null ? void 0 : ae.sort) ?? 0;
|
|
1289
1289
|
} else
|
|
1290
|
-
return ((
|
|
1291
|
-
} catch (
|
|
1292
|
-
return console.warn(`获取 ${
|
|
1290
|
+
return ((de = j[1].search) == null ? void 0 : de.sort) ?? 0;
|
|
1291
|
+
} catch (ae) {
|
|
1292
|
+
return console.warn(`获取 ${j[0]} 的sort值时出错:`, ae), 0;
|
|
1293
1293
|
}
|
|
1294
1294
|
}, J = g(o), x = g(d), U = Number(J) || 0, z = Number(x) || 0;
|
|
1295
1295
|
return U - z;
|
|
1296
1296
|
});
|
|
1297
1297
|
let v = Object.fromEntries(c);
|
|
1298
|
-
return
|
|
1298
|
+
return Je(() => v).value;
|
|
1299
1299
|
}, e = (S) => typeof S.search == "function" ? S.search(l.value, s.value.table) : S.search || {}, h = (S) => {
|
|
1300
1300
|
const c = e(S);
|
|
1301
1301
|
return (c == null ? void 0 : c.type) || S.type;
|
|
@@ -1307,13 +1307,13 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
1307
1307
|
};
|
|
1308
1308
|
return (S, c) => {
|
|
1309
1309
|
const v = N("el-form-item");
|
|
1310
|
-
return p(!0),
|
|
1310
|
+
return p(!0), R(le, null, X(n(t.more), (o, d) => C(S.$slots, `q-${d}`, {
|
|
1311
1311
|
key: d,
|
|
1312
1312
|
item: o,
|
|
1313
1313
|
queryModel: l.value,
|
|
1314
1314
|
model: s.value
|
|
1315
1315
|
}, () => [
|
|
1316
|
-
|
|
1316
|
+
ie(v, L({
|
|
1317
1317
|
label: o.label,
|
|
1318
1318
|
style: { width: f(o) }
|
|
1319
1319
|
}, { ref_for: !0 }, { ...s.value.queryItems, ...e(o) }), {
|
|
@@ -1324,7 +1324,7 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
1324
1324
|
})
|
|
1325
1325
|
]),
|
|
1326
1326
|
default: $(() => [
|
|
1327
|
-
|
|
1327
|
+
ie(Mt, {
|
|
1328
1328
|
modelValue: l.value[d],
|
|
1329
1329
|
"onUpdate:modelValue": (g) => l.value[d] = g,
|
|
1330
1330
|
item: { getDicts: o == null ? void 0 : o.getDicts, ...o == null ? void 0 : o.editor, ...e(o) },
|
|
@@ -1334,7 +1334,7 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
1334
1334
|
t: "q",
|
|
1335
1335
|
formInfo: l.value
|
|
1336
1336
|
}, ge({ _: 2 }, [
|
|
1337
|
-
|
|
1337
|
+
X(Object.keys(S.$slots), (g) => ({
|
|
1338
1338
|
name: g,
|
|
1339
1339
|
fn: $((J) => [
|
|
1340
1340
|
C(S.$slots, g, {
|
|
@@ -1362,9 +1362,9 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
1362
1362
|
info: { required: !0 },
|
|
1363
1363
|
infoModifiers: {}
|
|
1364
1364
|
},
|
|
1365
|
-
emits: /* @__PURE__ */
|
|
1365
|
+
emits: /* @__PURE__ */ ot(["query", "reset"], ["update:modelValue", "update:info"]),
|
|
1366
1366
|
setup(r, { emit: s }) {
|
|
1367
|
-
const t =
|
|
1367
|
+
const t = et(r, "modelValue"), l = s, n = Lt("options"), e = re(!1), h = et(r, "info"), f = {
|
|
1368
1368
|
hidden: !1,
|
|
1369
1369
|
type: "hidden",
|
|
1370
1370
|
labelWidth: 100,
|
|
@@ -1381,7 +1381,7 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
1381
1381
|
hidden: !0,
|
|
1382
1382
|
type: "primary",
|
|
1383
1383
|
label: "更多",
|
|
1384
|
-
icon: () =>
|
|
1384
|
+
icon: () => we(Ml),
|
|
1385
1385
|
click: () => {
|
|
1386
1386
|
e.value = !e.value;
|
|
1387
1387
|
}
|
|
@@ -1391,7 +1391,7 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
1391
1391
|
type: "primary",
|
|
1392
1392
|
hidden: !1,
|
|
1393
1393
|
plain: !1,
|
|
1394
|
-
icon: () =>
|
|
1394
|
+
icon: () => we(el),
|
|
1395
1395
|
click: () => {
|
|
1396
1396
|
l("reset", h.value);
|
|
1397
1397
|
}
|
|
@@ -1400,7 +1400,7 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
1400
1400
|
hidden: !1,
|
|
1401
1401
|
type: "primary",
|
|
1402
1402
|
label: "查询",
|
|
1403
|
-
icon: () =>
|
|
1403
|
+
icon: () => we(Sl),
|
|
1404
1404
|
click: () => {
|
|
1405
1405
|
l("query", h.value), e.value = !1;
|
|
1406
1406
|
}
|
|
@@ -1449,24 +1449,24 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
1449
1449
|
};
|
|
1450
1450
|
t.value.queryItems = ze(c, n == null ? void 0 : n.queryItems, t.value.queryItems);
|
|
1451
1451
|
const v = (x, U) => {
|
|
1452
|
-
const z = Object.keys(x.slots).filter((
|
|
1452
|
+
const z = Object.keys(x.slots).filter((j) => j !== "default").reduce((j, de) => (j[de] = (ae) => x.slots[de]({
|
|
1453
1453
|
model: t.value
|
|
1454
1454
|
// 传递当前模型数据
|
|
1455
|
-
}),
|
|
1456
|
-
return
|
|
1455
|
+
}), j), {});
|
|
1456
|
+
return we(Pt, {
|
|
1457
1457
|
modelValue: t.value,
|
|
1458
|
-
"onUpdate:modelValue": (
|
|
1458
|
+
"onUpdate:modelValue": (j) => t.value = j,
|
|
1459
1459
|
info: h.value,
|
|
1460
|
-
"onUpdate:info": (
|
|
1460
|
+
"onUpdate:info": (j) => h.value = j,
|
|
1461
1461
|
more: U
|
|
1462
1462
|
}, z);
|
|
1463
|
-
}, o =
|
|
1464
|
-
var z,
|
|
1463
|
+
}, o = Xt(), d = () => {
|
|
1464
|
+
var z, j, de, ae, oe, ve, ke, Ve, xe;
|
|
1465
1465
|
const x = [
|
|
1466
1466
|
{
|
|
1467
1467
|
key: "query",
|
|
1468
|
-
hidden: (
|
|
1469
|
-
component:
|
|
1468
|
+
hidden: (de = (j = (z = t.value) == null ? void 0 : z.query) == null ? void 0 : j.query) == null ? void 0 : de.hidden,
|
|
1469
|
+
component: Fe,
|
|
1470
1470
|
props: {
|
|
1471
1471
|
...t.value.query.query,
|
|
1472
1472
|
onClick: t.value.query.query.click
|
|
@@ -1476,8 +1476,8 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
1476
1476
|
},
|
|
1477
1477
|
{
|
|
1478
1478
|
key: "reset",
|
|
1479
|
-
hidden: (
|
|
1480
|
-
component:
|
|
1479
|
+
hidden: (ve = (oe = (ae = t.value) == null ? void 0 : ae.query) == null ? void 0 : oe.reset) == null ? void 0 : ve.hidden,
|
|
1480
|
+
component: Fe,
|
|
1481
1481
|
props: {
|
|
1482
1482
|
...t.value.query.reset,
|
|
1483
1483
|
onClick: t.value.query.reset.click
|
|
@@ -1487,72 +1487,72 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
1487
1487
|
},
|
|
1488
1488
|
{
|
|
1489
1489
|
key: "more",
|
|
1490
|
-
hidden: (xe = (Ve = (
|
|
1491
|
-
component: t.value.query.more.mode === 3 ?
|
|
1490
|
+
hidden: (xe = (Ve = (ke = t.value) == null ? void 0 : ke.query) == null ? void 0 : Ve.more) == null ? void 0 : xe.hidden,
|
|
1491
|
+
component: t.value.query.more.mode === 3 ? Et : Fe,
|
|
1492
1492
|
props: t.value.query.more.mode === 3 ? { ...t.value.query.more.dialog } : {
|
|
1493
1493
|
...t.value.query.more,
|
|
1494
1494
|
onClick: t.value.query.more.click
|
|
1495
1495
|
},
|
|
1496
1496
|
label: t.value.query.more.label,
|
|
1497
1497
|
sort: t.value.query.more.sort || 0,
|
|
1498
|
-
content: t.value.query.more.mode === 3 ? () =>
|
|
1498
|
+
content: t.value.query.more.mode === 3 ? () => we(_t, {
|
|
1499
1499
|
class: "query-form",
|
|
1500
|
-
...
|
|
1500
|
+
...Ke(t.value.query, (ee) => !["query", "more", "reset"].includes(ee))
|
|
1501
1501
|
}, () => v({ slots: o }, !0)) : null
|
|
1502
1502
|
}
|
|
1503
1503
|
];
|
|
1504
|
-
return x.sort((
|
|
1505
|
-
reference: () =>
|
|
1506
|
-
default:
|
|
1507
|
-
}) : (
|
|
1508
|
-
}, g =
|
|
1504
|
+
return x.sort((ee, ue) => ee.sort - ue.sort), x.filter((ee) => !ee.hidden).map((ee) => ee.key === "more" && ee.component === Et ? we(Et, ee.props, {
|
|
1505
|
+
reference: () => we(Fe, t.value.query.more, () => ee.label),
|
|
1506
|
+
default: ee.content
|
|
1507
|
+
}) : (ee.props.slot = "query-" + ee.key, ee.label ? we(ee.component, ee.props, () => ee.label) : we(ee.component, ee.props)));
|
|
1508
|
+
}, g = Je(() => ({
|
|
1509
1509
|
diplay: "flex",
|
|
1510
1510
|
flexDirection: t.value.query.container.mode === "row" ? "row" : "column"
|
|
1511
1511
|
})), J = () => {
|
|
1512
1512
|
alert("查询设置,正在开发中......");
|
|
1513
1513
|
};
|
|
1514
1514
|
return (x, U) => {
|
|
1515
|
-
var
|
|
1516
|
-
const z = N("el-form-item"),
|
|
1517
|
-
return p(),
|
|
1515
|
+
var de, ae, oe, ve, ke, Ve, xe, ee, ue, Te, T, k, b, i, D, _, q;
|
|
1516
|
+
const z = N("el-form-item"), j = N("el-drawer");
|
|
1517
|
+
return p(), R(le, null, [
|
|
1518
1518
|
Z("div", {
|
|
1519
1519
|
class: "g-query-container",
|
|
1520
|
-
style:
|
|
1520
|
+
style: Ye({ ...g.value, ...((ae = (de = t.value.query) == null ? void 0 : de.container) == null ? void 0 : ae.style) || {} }),
|
|
1521
1521
|
onDblclick: J
|
|
1522
1522
|
}, [
|
|
1523
|
-
|
|
1524
|
-
onSubmit: U[0] || (U[0] =
|
|
1523
|
+
ie(H(_t), L({
|
|
1524
|
+
onSubmit: U[0] || (U[0] = dt(() => {
|
|
1525
1525
|
}, ["prevent"]))
|
|
1526
|
-
},
|
|
1526
|
+
}, H(Ke)(t.value.query, (E) => !["query", "more", "reset", "btns"].includes(E))), {
|
|
1527
1527
|
default: $(() => {
|
|
1528
|
-
var
|
|
1528
|
+
var E, Q;
|
|
1529
1529
|
return [
|
|
1530
|
-
(p(), O(
|
|
1531
|
-
((Q = (
|
|
1530
|
+
(p(), O(Xe(v({ slots: x.$slots }, void 0)))),
|
|
1531
|
+
((Q = (E = t.value.query) == null ? void 0 : E.container) == null ? void 0 : Q.inline) === !0 ? (p(), O(z, { key: 0 }, {
|
|
1532
1532
|
default: $(() => {
|
|
1533
|
-
var
|
|
1533
|
+
var se, pe, Y, B, Ee;
|
|
1534
1534
|
return [
|
|
1535
1535
|
Z("div", {
|
|
1536
|
-
style:
|
|
1536
|
+
style: Ye((pe = (se = t.value.query) == null ? void 0 : se.btns) == null ? void 0 : pe.style)
|
|
1537
1537
|
}, [
|
|
1538
|
-
t.value.query.group ? (p(), O(
|
|
1538
|
+
t.value.query.group ? (p(), O(H(Ct), { key: 0 }, {
|
|
1539
1539
|
default: $(() => [
|
|
1540
|
-
(p(!0),
|
|
1541
|
-
(p(), O(
|
|
1540
|
+
(p(!0), R(le, null, X(d(), (he) => C(x.$slots, he.props.slot, {}, () => [
|
|
1541
|
+
(p(), O(Xe(he)))
|
|
1542
1542
|
], !0)), 256)),
|
|
1543
1543
|
C(x.$slots, "q-btns", {}, void 0, !0)
|
|
1544
1544
|
]),
|
|
1545
1545
|
_: 3
|
|
1546
|
-
})) : (p(),
|
|
1547
|
-
(Ee = (
|
|
1546
|
+
})) : (p(), R(le, { key: 1 }, [
|
|
1547
|
+
(Ee = (B = (Y = t.value) == null ? void 0 : Y.query) == null ? void 0 : B.btns) != null && Ee.group ? (p(), O(H(Ct), { key: 0 }, {
|
|
1548
1548
|
default: $(() => [
|
|
1549
|
-
(p(!0),
|
|
1550
|
-
(p(), O(
|
|
1549
|
+
(p(!0), R(le, null, X(d(), (he) => C(x.$slots, he.props.slot, {}, () => [
|
|
1550
|
+
(p(), O(Xe(he)))
|
|
1551
1551
|
], !0)), 256))
|
|
1552
1552
|
]),
|
|
1553
1553
|
_: 3
|
|
1554
|
-
})) : (p(!0),
|
|
1555
|
-
(p(), O(
|
|
1554
|
+
})) : (p(!0), R(le, { key: 1 }, X(d(), (he) => C(x.$slots, he.props.slot, {}, () => [
|
|
1555
|
+
(p(), O(Xe(he)))
|
|
1556
1556
|
], !0)), 256)),
|
|
1557
1557
|
C(x.$slots, "q-btns", {}, void 0, !0)
|
|
1558
1558
|
], 64))
|
|
@@ -1565,56 +1565,56 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
1565
1565
|
}),
|
|
1566
1566
|
_: 3
|
|
1567
1567
|
}, 16),
|
|
1568
|
-
((
|
|
1568
|
+
((ke = (ve = (oe = t.value) == null ? void 0 : oe.query) == null ? void 0 : ve.container) == null ? void 0 : ke.inline) === !1 ? (p(), R("div", {
|
|
1569
1569
|
key: 0,
|
|
1570
|
-
style:
|
|
1570
|
+
style: Ye((xe = (Ve = t.value.query) == null ? void 0 : Ve.btns) == null ? void 0 : xe.style)
|
|
1571
1571
|
}, [
|
|
1572
|
-
t.value.query.group ? (p(), O(
|
|
1572
|
+
t.value.query.group ? (p(), O(H(Ct), { key: 0 }, {
|
|
1573
1573
|
default: $(() => [
|
|
1574
|
-
(p(!0),
|
|
1575
|
-
(p(), O(
|
|
1574
|
+
(p(!0), R(le, null, X(d(), (E) => C(x.$slots, E.props.slot, {}, () => [
|
|
1575
|
+
(p(), O(Xe(E)))
|
|
1576
1576
|
], !0)), 256)),
|
|
1577
1577
|
C(x.$slots, "q-btns", {}, void 0, !0)
|
|
1578
1578
|
]),
|
|
1579
1579
|
_: 3
|
|
1580
|
-
})) : (p(),
|
|
1581
|
-
(ue = (
|
|
1580
|
+
})) : (p(), R(le, { key: 1 }, [
|
|
1581
|
+
(ue = (ee = t.value.query) == null ? void 0 : ee.btns) != null && ue.group ? (p(), O(H(Ct), { key: 0 }, {
|
|
1582
1582
|
default: $(() => [
|
|
1583
|
-
(p(!0),
|
|
1584
|
-
(p(), O(
|
|
1583
|
+
(p(!0), R(le, null, X(d(), (E) => C(x.$slots, E.props.slot, {}, () => [
|
|
1584
|
+
(p(), O(Xe(E)))
|
|
1585
1585
|
], !0)), 256))
|
|
1586
1586
|
]),
|
|
1587
1587
|
_: 3
|
|
1588
|
-
})) : (p(!0),
|
|
1589
|
-
(p(), O(
|
|
1588
|
+
})) : (p(!0), R(le, { key: 1 }, X(d(), (E) => C(x.$slots, E.props.slot, {}, () => [
|
|
1589
|
+
(p(), O(Xe(E)))
|
|
1590
1590
|
], !0)), 256)),
|
|
1591
1591
|
C(x.$slots, "q-btns", {}, void 0, !0)
|
|
1592
1592
|
], 64))
|
|
1593
1593
|
], 4)) : be("", !0)
|
|
1594
1594
|
], 36),
|
|
1595
|
-
e.value && !((
|
|
1595
|
+
e.value && !((k = (T = (Te = t.value) == null ? void 0 : Te.query) == null ? void 0 : T.more) != null && k.hidden) && t.value.query.more.mode == 2 ? (p(), O(j, L({
|
|
1596
1596
|
key: 0,
|
|
1597
1597
|
modelValue: e.value,
|
|
1598
|
-
"onUpdate:modelValue": U[6] || (U[6] = (
|
|
1598
|
+
"onUpdate:modelValue": U[6] || (U[6] = (E) => e.value = E),
|
|
1599
1599
|
title: "更多查询",
|
|
1600
1600
|
"show-close": !1
|
|
1601
1601
|
}, t.value.query.more.dialog), ge({
|
|
1602
1602
|
default: $(() => [
|
|
1603
|
-
|
|
1604
|
-
onSubmit: U[3] || (U[3] =
|
|
1603
|
+
ie(H(_t), L({
|
|
1604
|
+
onSubmit: U[3] || (U[3] = dt(() => {
|
|
1605
1605
|
}, ["prevent"]))
|
|
1606
|
-
},
|
|
1606
|
+
}, H(Ke)(t.value.query, (E) => !["query", "more", "reset"].includes(E)), { style: { width: "98%" } }), {
|
|
1607
1607
|
default: $(() => [
|
|
1608
|
-
|
|
1608
|
+
ie(Pt, {
|
|
1609
1609
|
modelValue: t.value,
|
|
1610
|
-
"onUpdate:modelValue": U[1] || (U[1] = (
|
|
1610
|
+
"onUpdate:modelValue": U[1] || (U[1] = (E) => t.value = E),
|
|
1611
1611
|
info: h.value,
|
|
1612
|
-
"onUpdate:info": U[2] || (U[2] = (
|
|
1612
|
+
"onUpdate:info": U[2] || (U[2] = (E) => h.value = E),
|
|
1613
1613
|
more: !0
|
|
1614
1614
|
}, ge({ _: 2 }, [
|
|
1615
|
-
|
|
1615
|
+
X(x.$slots, (E, Q, se) => ({
|
|
1616
1616
|
name: Q,
|
|
1617
|
-
fn: $((
|
|
1617
|
+
fn: $((pe) => [
|
|
1618
1618
|
C(x.$slots, Q, { model: t.value }, void 0, !0)
|
|
1619
1619
|
])
|
|
1620
1620
|
}))
|
|
@@ -1625,23 +1625,23 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
1625
1625
|
]),
|
|
1626
1626
|
_: 2
|
|
1627
1627
|
}, [
|
|
1628
|
-
(q = (_ = (
|
|
1628
|
+
(q = (_ = (D = (i = (b = t.value) == null ? void 0 : b.query) == null ? void 0 : i.more) == null ? void 0 : D.dialog) == null ? void 0 : _.footer) != null && q.hidden ? void 0 : {
|
|
1629
1629
|
name: "footer",
|
|
1630
1630
|
fn: $(() => [
|
|
1631
|
-
Z("div",
|
|
1632
|
-
|
|
1633
|
-
onClick: U[4] || (U[4] = (
|
|
1631
|
+
Z("div", It(ml(t.value.query.more.dialog.footer)), [
|
|
1632
|
+
ie(H(Fe), L(t.value.query.query, {
|
|
1633
|
+
onClick: U[4] || (U[4] = (E) => t.value.query.query.click())
|
|
1634
1634
|
}), {
|
|
1635
1635
|
default: $(() => [
|
|
1636
|
-
Le(
|
|
1636
|
+
Le(Se(t.value.query.query.label), 1)
|
|
1637
1637
|
]),
|
|
1638
1638
|
_: 1
|
|
1639
1639
|
}, 16),
|
|
1640
|
-
|
|
1641
|
-
onClick: U[5] || (U[5] = (
|
|
1640
|
+
ie(H(Fe), L(t.value.query.reset, {
|
|
1641
|
+
onClick: U[5] || (U[5] = (E) => t.value.query.reset.click())
|
|
1642
1642
|
}), {
|
|
1643
1643
|
default: $(() => [
|
|
1644
|
-
Le(
|
|
1644
|
+
Le(Se(t.value.query.reset.label), 1)
|
|
1645
1645
|
]),
|
|
1646
1646
|
_: 1
|
|
1647
1647
|
}, 16)
|
|
@@ -1650,23 +1650,23 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
1650
1650
|
key: "0"
|
|
1651
1651
|
}
|
|
1652
1652
|
]), 1040, ["modelValue"])) : be("", !0),
|
|
1653
|
-
|
|
1653
|
+
ie(hl, {
|
|
1654
1654
|
duration: 300,
|
|
1655
1655
|
name: "nested",
|
|
1656
1656
|
style: { padding: "10px" }
|
|
1657
1657
|
}, {
|
|
1658
1658
|
default: $(() => {
|
|
1659
|
-
var
|
|
1659
|
+
var E, Q, se;
|
|
1660
1660
|
return [
|
|
1661
|
-
e.value && !((
|
|
1661
|
+
e.value && !((se = (Q = (E = t.value) == null ? void 0 : E.query) == null ? void 0 : Q.more) != null && se.hidden) && t.value.query.more.mode == 1 ? (p(), R("div", Jl, [
|
|
1662
1662
|
Z("div", Kl, [
|
|
1663
|
-
t.value.query.more.mode == 1 ? yl((p(), O(
|
|
1663
|
+
t.value.query.more.mode == 1 ? yl((p(), O(H(_t), L({
|
|
1664
1664
|
key: 0,
|
|
1665
|
-
onSubmit: U[7] || (U[7] =
|
|
1665
|
+
onSubmit: U[7] || (U[7] = dt(() => {
|
|
1666
1666
|
}, ["prevent"]))
|
|
1667
|
-
},
|
|
1667
|
+
}, H(Ke)(t.value.query, (pe) => !["query", "more", "reset"].includes(pe))), {
|
|
1668
1668
|
default: $(() => [
|
|
1669
|
-
(p(), O(
|
|
1669
|
+
(p(), O(Xe(v({ slots: x.$slots }, !0))))
|
|
1670
1670
|
]),
|
|
1671
1671
|
_: 1
|
|
1672
1672
|
}, 16)), [
|
|
@@ -1681,7 +1681,7 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
1681
1681
|
], 64);
|
|
1682
1682
|
};
|
|
1683
1683
|
}
|
|
1684
|
-
}, ta = /* @__PURE__ */
|
|
1684
|
+
}, ta = /* @__PURE__ */ tt(ea, [["__scopeId", "data-v-fbc339ad"]]), ul = {
|
|
1685
1685
|
inline: !0,
|
|
1686
1686
|
type: "hidden",
|
|
1687
1687
|
"scroll-to-error": !0,
|
|
@@ -1712,7 +1712,7 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
1712
1712
|
label: "提交",
|
|
1713
1713
|
plain: !0,
|
|
1714
1714
|
hidden: !1,
|
|
1715
|
-
icon: () =>
|
|
1715
|
+
icon: () => we(Ot)
|
|
1716
1716
|
},
|
|
1717
1717
|
//保存并提交按钮属性
|
|
1718
1718
|
saveSubmit: {
|
|
@@ -1721,7 +1721,7 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
1721
1721
|
label: "保存提交",
|
|
1722
1722
|
plain: !0,
|
|
1723
1723
|
hidden: !0,
|
|
1724
|
-
icon: () =>
|
|
1724
|
+
icon: () => we(xl)
|
|
1725
1725
|
},
|
|
1726
1726
|
//表单重置按钮属性
|
|
1727
1727
|
reset: {
|
|
@@ -1729,7 +1729,7 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
1729
1729
|
label: "重置",
|
|
1730
1730
|
hidden: !0,
|
|
1731
1731
|
plain: !0,
|
|
1732
|
-
icon: () =>
|
|
1732
|
+
icon: () => we(el)
|
|
1733
1733
|
},
|
|
1734
1734
|
slots: {},
|
|
1735
1735
|
tabs: {
|
|
@@ -1741,40 +1741,40 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
1741
1741
|
inheritAttrs: !1
|
|
1742
1742
|
}, {
|
|
1743
1743
|
__name: "g-form",
|
|
1744
|
-
props: /* @__PURE__ */
|
|
1744
|
+
props: /* @__PURE__ */ ot(["editForm", "flag"], {
|
|
1745
1745
|
modelValue: { required: !0 },
|
|
1746
1746
|
modelModifiers: {}
|
|
1747
1747
|
}),
|
|
1748
|
-
emits: /* @__PURE__ */
|
|
1748
|
+
emits: /* @__PURE__ */ ot(["submit", "reset"], ["update:modelValue"]),
|
|
1749
1749
|
setup(r, { expose: s, emit: t }) {
|
|
1750
|
-
var
|
|
1751
|
-
const l =
|
|
1750
|
+
var ke, Ve, xe, ee, ue, Te;
|
|
1751
|
+
const l = et(r, "modelValue"), n = t, e = re(null), h = Lt("options"), f = re({}), S = re(""), c = r;
|
|
1752
1752
|
l.value.form = ze(
|
|
1753
1753
|
ul,
|
|
1754
1754
|
h == null ? void 0 : h.form,
|
|
1755
|
-
(
|
|
1755
|
+
(ke = l.value) == null ? void 0 : ke.form
|
|
1756
1756
|
), l.value.form.style = ze(
|
|
1757
1757
|
(xe = (Ve = l.value) == null ? void 0 : Ve.form) == null ? void 0 : xe.style,
|
|
1758
|
-
{ ...(
|
|
1758
|
+
{ ...(ee = Tt()) == null ? void 0 : ee.style }
|
|
1759
1759
|
);
|
|
1760
|
-
const v = async (T,
|
|
1760
|
+
const v = async (T, k, b) => {
|
|
1761
1761
|
let i = 5;
|
|
1762
1762
|
for (; i > 0; ) {
|
|
1763
1763
|
if (await ht(), e.value) {
|
|
1764
|
-
e.value.validate((
|
|
1765
|
-
|
|
1764
|
+
e.value.validate((D, _) => {
|
|
1765
|
+
D ? n("submit", T, k, b) : console.error("表单验证不通过!", _);
|
|
1766
1766
|
});
|
|
1767
1767
|
return;
|
|
1768
1768
|
}
|
|
1769
|
-
i--, await new Promise((
|
|
1769
|
+
i--, await new Promise((D) => setTimeout(D, 50));
|
|
1770
1770
|
}
|
|
1771
1771
|
console.error("表单实例获取失败,请检查组件状态");
|
|
1772
|
-
}, o = async (T,
|
|
1772
|
+
}, o = async (T, k) => {
|
|
1773
1773
|
let b = 5;
|
|
1774
1774
|
for (; b > 0; ) {
|
|
1775
1775
|
if (await ht(), e.value)
|
|
1776
1776
|
try {
|
|
1777
|
-
e.value.resetFields(), n("reset", T,
|
|
1777
|
+
e.value.resetFields(), n("reset", T, k);
|
|
1778
1778
|
return;
|
|
1779
1779
|
} catch (i) {
|
|
1780
1780
|
console.error("表单重置失败:", i);
|
|
@@ -1807,9 +1807,9 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
1807
1807
|
l.value.form.cols
|
|
1808
1808
|
);
|
|
1809
1809
|
const J = (T) => {
|
|
1810
|
-
let
|
|
1810
|
+
let k = [];
|
|
1811
1811
|
if (T.rules)
|
|
1812
|
-
|
|
1812
|
+
k = T.rules;
|
|
1813
1813
|
else {
|
|
1814
1814
|
const i = { ...{
|
|
1815
1815
|
required: void 0,
|
|
@@ -1820,19 +1820,19 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
1820
1820
|
pattern: void 0,
|
|
1821
1821
|
validate: void 0
|
|
1822
1822
|
}, ...T };
|
|
1823
|
-
i.required &&
|
|
1823
|
+
i.required && k.push({
|
|
1824
1824
|
required: !0,
|
|
1825
1825
|
message: `${i.label}不能为空!`,
|
|
1826
1826
|
trigger: "blur"
|
|
1827
|
-
}), i.max !== void 0 && i.max !== null && i.max !== "" && (i.min === void 0 || i.min === null || i.min === "") &&
|
|
1828
|
-
validator: (
|
|
1827
|
+
}), i.max !== void 0 && i.max !== null && i.max !== "" && (i.min === void 0 || i.min === null || i.min === "") && k.push({
|
|
1828
|
+
validator: (D, _, q) => {
|
|
1829
1829
|
if (_ == null || _ === "") return q();
|
|
1830
1830
|
i.type !== "number" && i.type !== "input-number" ? ((_ == null ? void 0 : _.toString()) || "").length > Number(i.max) ? q(
|
|
1831
1831
|
new Error(`${i.label}长度不能超过${i.max}个字符!`)
|
|
1832
1832
|
) : q() : Number(_) > Number(i.max) ? q(new Error(`${i.label}不能大于${i.max}!`)) : q();
|
|
1833
1833
|
}
|
|
1834
|
-
}), i.min !== void 0 && i.min !== null && i.min !== "" && (i.max === void 0 || i.max === null || i.max === "") &&
|
|
1835
|
-
validator: (
|
|
1834
|
+
}), i.min !== void 0 && i.min !== null && i.min !== "" && (i.max === void 0 || i.max === null || i.max === "") && k.push({
|
|
1835
|
+
validator: (D, _, q) => {
|
|
1836
1836
|
if (_ == null || _ === "") return q();
|
|
1837
1837
|
i.type !== "number" && i.type !== "input-number" ? Number(i.min) < 1 ? q(
|
|
1838
1838
|
new Error(
|
|
@@ -1844,88 +1844,88 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
1844
1844
|
)
|
|
1845
1845
|
) : q() : Number(_) < Number(i.min) ? q(new Error(`${i.label}不能小于${i.min}!`)) : q();
|
|
1846
1846
|
}
|
|
1847
|
-
}), i.min !== void 0 && i.min !== null && i.min !== "" && i.max !== void 0 && i.max !== null && i.max !== "" &&
|
|
1848
|
-
validator: (
|
|
1847
|
+
}), i.min !== void 0 && i.min !== null && i.min !== "" && i.max !== void 0 && i.max !== null && i.max !== "" && k.push({
|
|
1848
|
+
validator: (D, _, q) => {
|
|
1849
1849
|
if (_ == null || _ === "") return q();
|
|
1850
|
-
const
|
|
1850
|
+
const E = Number(i.min), Q = Number(i.max);
|
|
1851
1851
|
i.type !== "number" && i.type !== "input-number" ? Number(i.min) < 1 ? q(
|
|
1852
1852
|
new Error(
|
|
1853
1853
|
`${i.label}长度最小值${i.min}设置错误!`
|
|
1854
1854
|
)
|
|
1855
|
-
) : _.toString().length <
|
|
1855
|
+
) : _.toString().length < E || _.toString().length > Q ? q(
|
|
1856
1856
|
new Error(
|
|
1857
|
-
`${i.label}长度必须在${
|
|
1857
|
+
`${i.label}长度必须在${E}-${Q}个字符之间!`
|
|
1858
1858
|
)
|
|
1859
|
-
) : q() : Number(_) <
|
|
1859
|
+
) : q() : Number(_) < E || _ > Q ? q(new Error(`${i.label}必须在${E}-${Q}之间!`)) : q();
|
|
1860
1860
|
}
|
|
1861
|
-
}), i.type == "email" &&
|
|
1861
|
+
}), i.type == "email" && k.push({ type: "email", message: "不是一个正确的邮箱地址!" }), i.type == "url" && k.push({ type: "url", message: "不是一个合正确的URL!" }), i.pattern && k.push({
|
|
1862
1862
|
pattern: i == null ? void 0 : i.pattern,
|
|
1863
1863
|
message: (i == null ? void 0 : i.message) || "格式不正确!"
|
|
1864
|
-
}), i.validate &&
|
|
1865
|
-
validator: (
|
|
1864
|
+
}), i.validate && k.push({
|
|
1865
|
+
validator: (D, _, q) => i.validate(D, _, q)
|
|
1866
1866
|
});
|
|
1867
1867
|
}
|
|
1868
|
-
return
|
|
1869
|
-
}, x = (T,
|
|
1870
|
-
var
|
|
1871
|
-
const b =
|
|
1868
|
+
return k;
|
|
1869
|
+
}, x = (T, k = !1) => {
|
|
1870
|
+
var D, _, q, E, Q;
|
|
1871
|
+
const b = k ? T : T == null ? void 0 : T.item, i = typeof (b == null ? void 0 : b.editor) == "function" ? b.editor(f.value, (D = l.value.form) == null ? void 0 : D.modalState) : (b == null ? void 0 : b.editor) || {};
|
|
1872
1872
|
if (((_ = l.value.form) == null ? void 0 : _.modalState) === "edit") {
|
|
1873
|
-
const
|
|
1874
|
-
return { ...i, ...
|
|
1873
|
+
const se = typeof (b == null ? void 0 : b.editor) == "object" ? (q = b.editor) == null ? void 0 : q.ep : typeof (b == null ? void 0 : b.editor) == "function" ? i == null ? void 0 : i.ep : {};
|
|
1874
|
+
return { ...i, ...se };
|
|
1875
1875
|
}
|
|
1876
|
-
if (((
|
|
1877
|
-
const
|
|
1878
|
-
return { ...i, ...
|
|
1876
|
+
if (((E = l.value.form) == null ? void 0 : E.modalState) === "add") {
|
|
1877
|
+
const se = typeof (b == null ? void 0 : b.editor) == "object" ? (Q = b.editor) == null ? void 0 : Q.ap : typeof (b == null ? void 0 : b.editor) == "function" ? i == null ? void 0 : i.ap : {};
|
|
1878
|
+
return { ...i, ...se };
|
|
1879
1879
|
}
|
|
1880
1880
|
return i;
|
|
1881
1881
|
}, U = (T) => {
|
|
1882
|
-
var b, i,
|
|
1883
|
-
const
|
|
1884
|
-
return ((i = l.value.form) == null ? void 0 : i.modalState) === "edit" ? ((
|
|
1882
|
+
var b, i, D, _, q;
|
|
1883
|
+
const k = typeof T.editor == "function" ? T.editor(f.value, (b = l.value.form) == null ? void 0 : b.modalState) : T.editor;
|
|
1884
|
+
return ((i = l.value.form) == null ? void 0 : i.modalState) === "edit" ? ((D = k == null ? void 0 : k.ep) == null ? void 0 : D.type) ?? (k == null ? void 0 : k.type) ?? T.type : ((_ = l.value.form) == null ? void 0 : _.modalState) === "add" ? ((q = k == null ? void 0 : k.ap) == null ? void 0 : q.type) ?? (k == null ? void 0 : k.type) ?? T.type : (k == null ? void 0 : k.type) ?? T.type;
|
|
1885
1885
|
};
|
|
1886
1886
|
yt(() => {
|
|
1887
|
-
z(), c != null && c.editForm ? f.value = c.editForm : f.value =
|
|
1887
|
+
z(), c != null && c.editForm ? f.value = c.editForm : f.value = de.value;
|
|
1888
1888
|
}), bl(() => {
|
|
1889
1889
|
e.value = null;
|
|
1890
1890
|
});
|
|
1891
1891
|
const z = () => {
|
|
1892
1892
|
S.value = Math.random().toString(36).substring(2);
|
|
1893
|
-
for (const [T,
|
|
1893
|
+
for (const [T, k] of Object.entries(j.value))
|
|
1894
1894
|
l.value[T].formItem = {
|
|
1895
1895
|
...l.value[T].formItem,
|
|
1896
|
-
...
|
|
1896
|
+
...k.formItem
|
|
1897
1897
|
}, l.value[T].formItem.style = {
|
|
1898
1898
|
...l.value[T].formItem.style,
|
|
1899
|
-
...
|
|
1899
|
+
...k.formItem.style
|
|
1900
1900
|
};
|
|
1901
|
-
},
|
|
1901
|
+
}, j = Je(
|
|
1902
1902
|
() => Object.fromEntries(
|
|
1903
1903
|
Object.entries(l.value).filter((T) => T[1].type != "hidden").filter((T) => T[1].hidden !== !0).filter((T) => T[1].edit !== !1).filter((T) => T[1].editor !== !1).filter((T) => T[1].type !== "control").filter((T) => !["table", "tableColumns", "query", "queryItems", "form", "formItems", "control", "dialog"].includes(T[0])).filter((T) => {
|
|
1904
|
-
var b, i,
|
|
1905
|
-
const
|
|
1906
|
-
return l.value.form.modalState === "edit" ? ((i =
|
|
1904
|
+
var b, i, D;
|
|
1905
|
+
const k = typeof T[1].editor == "function" ? T[1].editor(f.value, (b = l.value.form) == null ? void 0 : b.modalState) : T[1].editor;
|
|
1906
|
+
return l.value.form.modalState === "edit" ? ((i = k == null ? void 0 : k.ep) == null ? void 0 : i.editor) !== !1 : l.value.form.modalState === "add" ? ((D = k == null ? void 0 : k.ap) == null ? void 0 : D.editor) !== !1 : !0;
|
|
1907
1907
|
}).map((T) => [T[0], T[1]])
|
|
1908
1908
|
)
|
|
1909
|
-
),
|
|
1909
|
+
), de = Je(
|
|
1910
1910
|
() => Object.fromEntries(
|
|
1911
1911
|
Object.entries(l.value).filter((T) => T[1].type != "hidden").filter((T) => T[1].type != "control").map((T) => [T[0], T[1].value])
|
|
1912
1912
|
)
|
|
1913
|
-
),
|
|
1913
|
+
), ae = Je(() => {
|
|
1914
1914
|
const T = /* @__PURE__ */ new Map();
|
|
1915
|
-
return Object.entries(
|
|
1915
|
+
return Object.entries(j.value).forEach(([k, b]) => {
|
|
1916
1916
|
if (b.groupName) {
|
|
1917
1917
|
const i = b.groupName;
|
|
1918
1918
|
T.has(i) || T.set(i, {
|
|
1919
1919
|
groupName: i,
|
|
1920
1920
|
items: []
|
|
1921
|
-
}), T.get(i).items.push({ key:
|
|
1921
|
+
}), T.get(i).items.push({ key: k, item: b });
|
|
1922
1922
|
}
|
|
1923
|
-
}), T.forEach((
|
|
1924
|
-
|
|
1925
|
-
...
|
|
1923
|
+
}), T.forEach((k) => {
|
|
1924
|
+
k.tabPane = ze(
|
|
1925
|
+
...k.items.map(({ item: b }) => b.tabPane || {})
|
|
1926
1926
|
);
|
|
1927
1927
|
}), Array.from(T.values());
|
|
1928
|
-
}),
|
|
1928
|
+
}), oe = re([
|
|
1929
1929
|
{
|
|
1930
1930
|
name: "f-submit",
|
|
1931
1931
|
label: l.value.form.submit.label,
|
|
@@ -1964,17 +1964,17 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
1964
1964
|
originalOrder: 1
|
|
1965
1965
|
// 添加原始顺序标识
|
|
1966
1966
|
}
|
|
1967
|
-
]),
|
|
1967
|
+
]), ve = Je(() => oe.value.filter((T) => !T.hidden).sort((T, k) => T.sort - k.sort || T.originalOrder - k.originalOrder));
|
|
1968
1968
|
return s({
|
|
1969
1969
|
submit: v,
|
|
1970
1970
|
saveSubmit: v,
|
|
1971
1971
|
reset: o,
|
|
1972
1972
|
formData: f
|
|
1973
|
-
}), (T,
|
|
1974
|
-
var Q,
|
|
1975
|
-
const b = N("el-form-item"), i = N("el-col"),
|
|
1976
|
-
return p(),
|
|
1977
|
-
|
|
1973
|
+
}), (T, k) => {
|
|
1974
|
+
var Q, se, pe;
|
|
1975
|
+
const b = N("el-form-item"), i = N("el-col"), D = N("el-tab-pane"), _ = N("el-tabs"), q = N("el-form"), E = N("el-button");
|
|
1976
|
+
return p(), R("div", la, [
|
|
1977
|
+
ie(q, L(
|
|
1978
1978
|
{
|
|
1979
1979
|
ref_key: "gform",
|
|
1980
1980
|
ref: e,
|
|
@@ -1986,64 +1986,64 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
1986
1986
|
"box-sizing": "border-box"
|
|
1987
1987
|
}
|
|
1988
1988
|
},
|
|
1989
|
-
|
|
1989
|
+
H(Ke)(
|
|
1990
1990
|
l.value.form,
|
|
1991
|
-
(
|
|
1991
|
+
(Y) => !["footer", "submit", "reset", "slots", "type", "sort"].includes(Y)
|
|
1992
1992
|
)
|
|
1993
1993
|
), {
|
|
1994
1994
|
default: $(() => [
|
|
1995
|
-
|
|
1996
|
-
|
|
1995
|
+
ae.value.length > 0 ? C(T.$slots, "default", { key: 0 }, () => [
|
|
1996
|
+
ie(_, L({
|
|
1997
1997
|
class: "demo-tabs",
|
|
1998
|
-
modelValue:
|
|
1999
|
-
"onUpdate:modelValue":
|
|
1998
|
+
modelValue: ae.value[0].groupName,
|
|
1999
|
+
"onUpdate:modelValue": k[0] || (k[0] = (Y) => ae.value[0].groupName = Y),
|
|
2000
2000
|
style: { width: "100%" }
|
|
2001
2001
|
}, l.value.form.tabs), {
|
|
2002
2002
|
default: $(() => [
|
|
2003
|
-
(p(!0),
|
|
2004
|
-
key:
|
|
2005
|
-
label:
|
|
2006
|
-
name:
|
|
2003
|
+
(p(!0), R(le, null, X(ae.value, (Y) => (p(), O(D, L({
|
|
2004
|
+
key: Y.groupName,
|
|
2005
|
+
label: Y.groupName,
|
|
2006
|
+
name: Y.groupName,
|
|
2007
2007
|
style: { width: "100%", display: "flex", "flex-wrap": "wrap" }
|
|
2008
|
-
}, { ref_for: !0 },
|
|
2008
|
+
}, { ref_for: !0 }, Y.tabPane), {
|
|
2009
2009
|
default: $(() => [
|
|
2010
|
-
(p(!0),
|
|
2011
|
-
key:
|
|
2010
|
+
(p(!0), R(le, null, X(Y.items, (B, Ee) => (p(), O(i, L({ ref_for: !0 }, { ...l.value.form.cols, ...B == null ? void 0 : B.item.col }, {
|
|
2011
|
+
key: B.key,
|
|
2012
2012
|
style: { width: "100%" }
|
|
2013
2013
|
}), {
|
|
2014
2014
|
default: $(() => {
|
|
2015
|
-
var
|
|
2015
|
+
var he, Ue;
|
|
2016
2016
|
return [
|
|
2017
|
-
|
|
2018
|
-
label:
|
|
2019
|
-
prop:
|
|
2020
|
-
rules: J(
|
|
2021
|
-
}, { ref_for: !0 }, { ...(
|
|
2017
|
+
ie(b, L({
|
|
2018
|
+
label: B == null ? void 0 : B.item.label,
|
|
2019
|
+
prop: B.key,
|
|
2020
|
+
rules: J(B == null ? void 0 : B.item)
|
|
2021
|
+
}, { ref_for: !0 }, { ...(he = l.value) == null ? void 0 : he.formItems, ...(Ue = B == null ? void 0 : B.item) == null ? void 0 : Ue.formItem }, { style: { width: "100%" } }), {
|
|
2022
2022
|
default: $(() => [
|
|
2023
|
-
C(T.$slots, "f-" +
|
|
2024
|
-
item:
|
|
2023
|
+
C(T.$slots, "f-" + B.key, {
|
|
2024
|
+
item: B == null ? void 0 : B.item,
|
|
2025
2025
|
formInfo: f.value,
|
|
2026
2026
|
model: l.value,
|
|
2027
2027
|
form: f.value
|
|
2028
2028
|
}, () => [
|
|
2029
|
-
(p(), O(
|
|
2030
|
-
modelValue: f.value[
|
|
2031
|
-
"onUpdate:modelValue": (
|
|
2032
|
-
item: x(
|
|
2033
|
-
ctrlKey:
|
|
2034
|
-
ctrlType: U(
|
|
2029
|
+
(p(), O(Mt, {
|
|
2030
|
+
modelValue: f.value[B.key],
|
|
2031
|
+
"onUpdate:modelValue": (De) => f.value[B.key] = De,
|
|
2032
|
+
item: x(B),
|
|
2033
|
+
ctrlKey: B.key,
|
|
2034
|
+
ctrlType: U(B == null ? void 0 : B.item),
|
|
2035
2035
|
model: l.value,
|
|
2036
|
-
key: `${
|
|
2036
|
+
key: `${B.key}-${S.value}`,
|
|
2037
2037
|
class: "g-ctrl-container",
|
|
2038
2038
|
t: "f",
|
|
2039
2039
|
formInfo: f.value
|
|
2040
2040
|
}, ge({ _: 2 }, [
|
|
2041
|
-
|
|
2042
|
-
name:
|
|
2041
|
+
X(T.$slots, (De, Me) => ({
|
|
2042
|
+
name: Me,
|
|
2043
2043
|
fn: $((A) => [
|
|
2044
|
-
C(T.$slots,
|
|
2044
|
+
C(T.$slots, Me, {
|
|
2045
2045
|
data: A,
|
|
2046
|
-
item:
|
|
2046
|
+
item: B.item,
|
|
2047
2047
|
model: l.value
|
|
2048
2048
|
}, void 0, !0)
|
|
2049
2049
|
])
|
|
@@ -2064,52 +2064,52 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
2064
2064
|
_: 3
|
|
2065
2065
|
}, 16, ["modelValue"])
|
|
2066
2066
|
], !0) : C(T.$slots, "default", { key: 1 }, () => [
|
|
2067
|
-
(p(!0),
|
|
2068
|
-
key:
|
|
2067
|
+
(p(!0), R(le, null, X(j.value, (Y, B) => (p(), O(i, L({ ref_for: !0 }, { ...l.value.form.cols, ...Y.col }, {
|
|
2068
|
+
key: B,
|
|
2069
2069
|
style: { width: "100%" }
|
|
2070
2070
|
}), {
|
|
2071
2071
|
default: $(() => {
|
|
2072
2072
|
var Ee;
|
|
2073
2073
|
return [
|
|
2074
|
-
|
|
2075
|
-
label:
|
|
2076
|
-
prop:
|
|
2077
|
-
rules: J(
|
|
2078
|
-
}, { ref_for: !0 }, { ...(Ee = l.value) == null ? void 0 : Ee.formItems, ...
|
|
2079
|
-
label: $((
|
|
2080
|
-
C(T.$slots, `f-${
|
|
2081
|
-
data:
|
|
2082
|
-
item:
|
|
2074
|
+
ie(b, L({
|
|
2075
|
+
label: Y.label,
|
|
2076
|
+
prop: B,
|
|
2077
|
+
rules: J(Y)
|
|
2078
|
+
}, { ref_for: !0 }, { ...(Ee = l.value) == null ? void 0 : Ee.formItems, ...Y == null ? void 0 : Y.formItem }, { style: { width: "100%" } }), {
|
|
2079
|
+
label: $((he) => [
|
|
2080
|
+
C(T.$slots, `f-${B}-label`, {
|
|
2081
|
+
data: he,
|
|
2082
|
+
item: Y,
|
|
2083
2083
|
model: l.value
|
|
2084
2084
|
}, () => [
|
|
2085
|
-
Le(
|
|
2085
|
+
Le(Se(Y.label), 1)
|
|
2086
2086
|
], !0)
|
|
2087
2087
|
]),
|
|
2088
2088
|
default: $(() => [
|
|
2089
|
-
C(T.$slots, "f-" +
|
|
2090
|
-
item:
|
|
2089
|
+
C(T.$slots, "f-" + B, {
|
|
2090
|
+
item: Y,
|
|
2091
2091
|
formInfo: f.value,
|
|
2092
2092
|
model: l.value,
|
|
2093
2093
|
form: f.value
|
|
2094
2094
|
}, () => [
|
|
2095
|
-
(p(), O(
|
|
2096
|
-
modelValue: f.value[
|
|
2097
|
-
"onUpdate:modelValue": (
|
|
2098
|
-
item: x(
|
|
2099
|
-
ctrlKey:
|
|
2100
|
-
ctrlType: U(
|
|
2101
|
-
key: `${
|
|
2095
|
+
(p(), O(Mt, {
|
|
2096
|
+
modelValue: f.value[B],
|
|
2097
|
+
"onUpdate:modelValue": (he) => f.value[B] = he,
|
|
2098
|
+
item: x(Y, !0),
|
|
2099
|
+
ctrlKey: B,
|
|
2100
|
+
ctrlType: U(Y),
|
|
2101
|
+
key: `${B}-${S.value}`,
|
|
2102
2102
|
model: l.value,
|
|
2103
2103
|
class: "g-ctrl-container",
|
|
2104
2104
|
t: "f",
|
|
2105
2105
|
formInfo: f.value
|
|
2106
2106
|
}, ge({ _: 2 }, [
|
|
2107
|
-
|
|
2107
|
+
X(T.$slots, (he, Ue) => ({
|
|
2108
2108
|
name: Ue,
|
|
2109
|
-
fn: $((
|
|
2109
|
+
fn: $((De) => [
|
|
2110
2110
|
C(T.$slots, Ue, {
|
|
2111
|
-
data:
|
|
2112
|
-
item:
|
|
2111
|
+
data: De,
|
|
2112
|
+
item: Y,
|
|
2113
2113
|
model: l.value
|
|
2114
2114
|
}, void 0, !0)
|
|
2115
2115
|
])
|
|
@@ -2127,30 +2127,30 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
2127
2127
|
]),
|
|
2128
2128
|
_: 3
|
|
2129
2129
|
}, 16, ["model"]),
|
|
2130
|
-
(
|
|
2130
|
+
(pe = (se = (Q = l.value) == null ? void 0 : Q.form) == null ? void 0 : se.footer) != null && pe.hidden ? be("", !0) : C(T.$slots, "f-footer", { key: 0 }, () => [
|
|
2131
2131
|
Z("div", {
|
|
2132
|
-
style:
|
|
2132
|
+
style: Ye(l.value.form.footer.style)
|
|
2133
2133
|
}, [
|
|
2134
2134
|
C(T.$slots, "f-footer-left", {}, void 0, !0),
|
|
2135
|
-
(p(!0),
|
|
2136
|
-
C(T.$slots,
|
|
2137
|
-
C(T.$slots,
|
|
2138
|
-
var
|
|
2135
|
+
(p(!0), R(le, null, X(ve.value, (Y) => (p(), R(le, null, [
|
|
2136
|
+
C(T.$slots, Y.name + "-left", {}, void 0, !0),
|
|
2137
|
+
C(T.$slots, Y.name, {}, () => {
|
|
2138
|
+
var B;
|
|
2139
2139
|
return [
|
|
2140
|
-
(
|
|
2140
|
+
(B = Y == null ? void 0 : Y.info) != null && B.hidden ? be("", !0) : (p(), O(E, L({
|
|
2141
2141
|
key: 0,
|
|
2142
2142
|
ref_for: !0
|
|
2143
|
-
},
|
|
2144
|
-
onClick:
|
|
2143
|
+
}, Y.info, {
|
|
2144
|
+
onClick: dt((Ee) => Y.click(f.value, l.value, Y.flag), ["stop"])
|
|
2145
2145
|
}), {
|
|
2146
2146
|
default: $(() => [
|
|
2147
|
-
Le(
|
|
2147
|
+
Le(Se(Y == null ? void 0 : Y.label), 1)
|
|
2148
2148
|
]),
|
|
2149
2149
|
_: 2
|
|
2150
2150
|
}, 1040, ["onClick"]))
|
|
2151
2151
|
];
|
|
2152
2152
|
}, !0),
|
|
2153
|
-
C(T.$slots,
|
|
2153
|
+
C(T.$slots, Y.name + "-right", {}, void 0, !0)
|
|
2154
2154
|
], 64))), 256)),
|
|
2155
2155
|
C(T.$slots, "f-footer-right", {}, void 0, !0)
|
|
2156
2156
|
], 4)
|
|
@@ -2158,7 +2158,7 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
2158
2158
|
]);
|
|
2159
2159
|
};
|
|
2160
2160
|
}
|
|
2161
|
-
}), sl = /* @__PURE__ */
|
|
2161
|
+
}), sl = /* @__PURE__ */ tt(aa, [["__scopeId", "data-v-3b3ffd4d"]]), ra = { class: "dialog-extend-container" }, na = { key: 1 }, oa = { class: "header-btn-group" }, ua = /* @__PURE__ */ Object.assign({
|
|
2162
2162
|
name: "g-model",
|
|
2163
2163
|
inheritAttrs: !1
|
|
2164
2164
|
}, {
|
|
@@ -2199,26 +2199,26 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
2199
2199
|
"restore"
|
|
2200
2200
|
],
|
|
2201
2201
|
setup(r, { expose: s, emit: t }) {
|
|
2202
|
-
const l = r, n =
|
|
2203
|
-
const
|
|
2202
|
+
const l = r, n = Tt(), e = t, h = Je(() => l.type === "drawer" ? "el-drawer" : "el-dialog"), f = Je(() => {
|
|
2203
|
+
const de = {
|
|
2204
2204
|
modal: l.modal,
|
|
2205
2205
|
...n
|
|
2206
2206
|
};
|
|
2207
2207
|
return l.type === "dialog" ? {
|
|
2208
|
-
...
|
|
2208
|
+
...de,
|
|
2209
2209
|
width: l.width,
|
|
2210
2210
|
top: l.top
|
|
2211
2211
|
} : {
|
|
2212
|
-
...
|
|
2212
|
+
...de,
|
|
2213
2213
|
direction: l.direction,
|
|
2214
2214
|
size: v.value ? "100%" : l.size
|
|
2215
2215
|
};
|
|
2216
|
-
}), S =
|
|
2216
|
+
}), S = Je({
|
|
2217
2217
|
get() {
|
|
2218
2218
|
return l.modelValue;
|
|
2219
2219
|
},
|
|
2220
|
-
set(
|
|
2221
|
-
e("update:modelValue",
|
|
2220
|
+
set(de) {
|
|
2221
|
+
e("update:modelValue", de);
|
|
2222
2222
|
}
|
|
2223
2223
|
}), c = re(null), v = re(!1), o = re(!1);
|
|
2224
2224
|
function d() {
|
|
@@ -2239,22 +2239,22 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
2239
2239
|
function z() {
|
|
2240
2240
|
o.value = !0, e("minimize");
|
|
2241
2241
|
}
|
|
2242
|
-
function
|
|
2242
|
+
function j() {
|
|
2243
2243
|
o.value = !1;
|
|
2244
2244
|
}
|
|
2245
2245
|
return s({
|
|
2246
2246
|
handleClose: () => c.value.handleClose()
|
|
2247
|
-
}), (
|
|
2248
|
-
o.value ? (p(),
|
|
2247
|
+
}), (de, ae) => (p(), R("div", ra, [
|
|
2248
|
+
o.value ? (p(), R("div", {
|
|
2249
2249
|
key: 0,
|
|
2250
2250
|
class: "minimize-ball",
|
|
2251
|
-
onClick:
|
|
2252
|
-
},
|
|
2253
|
-
(p(), O(
|
|
2251
|
+
onClick: j
|
|
2252
|
+
}, Se(r.title), 1)) : (p(), R("div", na, [
|
|
2253
|
+
(p(), O(Xe(h.value), L({
|
|
2254
2254
|
ref_key: "dialogExtend",
|
|
2255
2255
|
ref: c,
|
|
2256
2256
|
modelValue: S.value,
|
|
2257
|
-
"onUpdate:modelValue":
|
|
2257
|
+
"onUpdate:modelValue": ae[1] || (ae[1] = (oe) => S.value = oe),
|
|
2258
2258
|
"close-on-click-modal": r.closeOnClickModal,
|
|
2259
2259
|
class: { "dialog-maximize": v.value },
|
|
2260
2260
|
onOpen: d,
|
|
@@ -2263,37 +2263,37 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
2263
2263
|
onClosed: x,
|
|
2264
2264
|
draggable: ""
|
|
2265
2265
|
}, f.value), ge({
|
|
2266
|
-
header: $(({ titleClass:
|
|
2267
|
-
C(
|
|
2268
|
-
titleClass:
|
|
2269
|
-
closeIconClass:
|
|
2266
|
+
header: $(({ titleClass: oe, closeIconClass: ve }) => [
|
|
2267
|
+
C(de.$slots, "header", {
|
|
2268
|
+
titleClass: oe,
|
|
2269
|
+
closeIconClass: ve
|
|
2270
2270
|
}, () => [
|
|
2271
2271
|
Z("div", {
|
|
2272
2272
|
class: "custom-header",
|
|
2273
|
-
onDblclick:
|
|
2274
|
-
style:
|
|
2273
|
+
onDblclick: ae[0] || (ae[0] = (ke) => r.maximize && U),
|
|
2274
|
+
style: Ye({ paddingRight: h.value === "el-dialog" ? "40px" : "0px" })
|
|
2275
2275
|
}, [
|
|
2276
|
-
C(
|
|
2277
|
-
Z("span", null,
|
|
2276
|
+
C(de.$slots, "title", {}, () => [
|
|
2277
|
+
Z("span", null, Se(r.title), 1)
|
|
2278
2278
|
], !0),
|
|
2279
2279
|
Z("div", oa, [
|
|
2280
|
-
r.minimize ? (p(), O(
|
|
2280
|
+
r.minimize ? (p(), O(H(Bt), {
|
|
2281
2281
|
key: 0,
|
|
2282
2282
|
class: "btn-icon",
|
|
2283
|
-
onClick:
|
|
2283
|
+
onClick: dt(z, ["stop"])
|
|
2284
2284
|
}, {
|
|
2285
2285
|
default: $(() => [
|
|
2286
|
-
(p(), O(
|
|
2286
|
+
(p(), O(Xe(r.minIcon)))
|
|
2287
2287
|
]),
|
|
2288
2288
|
_: 1
|
|
2289
2289
|
})) : be("", !0),
|
|
2290
|
-
r.maximize ? (p(), O(
|
|
2290
|
+
r.maximize ? (p(), O(H(Bt), {
|
|
2291
2291
|
key: 1,
|
|
2292
2292
|
class: "btn-icon",
|
|
2293
|
-
onClick:
|
|
2293
|
+
onClick: dt(U, ["stop"])
|
|
2294
2294
|
}, {
|
|
2295
2295
|
default: $(() => [
|
|
2296
|
-
(p(), O(
|
|
2296
|
+
(p(), O(Xe(v.value ? r.resizeIcon : r.maxIcon)))
|
|
2297
2297
|
]),
|
|
2298
2298
|
_: 1
|
|
2299
2299
|
})) : be("", !0)
|
|
@@ -2302,21 +2302,21 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
2302
2302
|
], !0)
|
|
2303
2303
|
]),
|
|
2304
2304
|
default: $(() => [
|
|
2305
|
-
C(
|
|
2305
|
+
C(de.$slots, "default", {}, void 0, !0)
|
|
2306
2306
|
]),
|
|
2307
2307
|
_: 2
|
|
2308
2308
|
}, [
|
|
2309
|
-
|
|
2309
|
+
de.$slots.footer ? {
|
|
2310
2310
|
name: "footer",
|
|
2311
2311
|
fn: $(() => [
|
|
2312
|
-
C(
|
|
2312
|
+
C(de.$slots, "footer", {}, void 0, !0)
|
|
2313
2313
|
]),
|
|
2314
2314
|
key: "0"
|
|
2315
2315
|
} : void 0,
|
|
2316
2316
|
l.type === "drawer" ? {
|
|
2317
2317
|
name: "trigger",
|
|
2318
2318
|
fn: $(() => [
|
|
2319
|
-
C(
|
|
2319
|
+
C(de.$slots, "trigger", {}, void 0, !0)
|
|
2320
2320
|
]),
|
|
2321
2321
|
key: "1"
|
|
2322
2322
|
} : void 0
|
|
@@ -2324,7 +2324,7 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
2324
2324
|
]))
|
|
2325
2325
|
]));
|
|
2326
2326
|
}
|
|
2327
|
-
}),
|
|
2327
|
+
}), Ut = /* @__PURE__ */ tt(ua, [["__scopeId", "data-v-ae995f57"]]), sa = { style: { padding: "15px", "box-sizing": "border-box" } }, ia = { style: { display: "flex", flex: "1", "align-items": "center", height: "30px" } }, da = { style: { display: "flex", flex: "1", "align-items": "center" } }, ca = {
|
|
2328
2328
|
style: { display: "flex", "flex-wrap": "wrap" },
|
|
2329
2329
|
id: "excelSortEl"
|
|
2330
2330
|
}, fa = ["textContent"], va = { style: { width: "100%", display: "flex", padding: "10px", "box-sizing": "border-box", "justify-content": "center", "border-top": "1px solid #dcdfe6" } }, pa = {
|
|
@@ -2369,7 +2369,7 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
2369
2369
|
});
|
|
2370
2370
|
}), (S, c) => {
|
|
2371
2371
|
const v = N("el-divider"), o = N("el-icon"), d = N("el-text"), g = N("el-checkbox"), J = N("el-button");
|
|
2372
|
-
return p(),
|
|
2372
|
+
return p(), R("div", sa, [
|
|
2373
2373
|
Z("div", null, [
|
|
2374
2374
|
Z("div", ia, [
|
|
2375
2375
|
Z("div", da, [
|
|
@@ -2377,21 +2377,21 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
2377
2377
|
onClick: e,
|
|
2378
2378
|
style: { cursor: "pointer" }
|
|
2379
2379
|
}, "全选"),
|
|
2380
|
-
|
|
2380
|
+
ie(v, { direction: "vertical" }),
|
|
2381
2381
|
Z("a", {
|
|
2382
2382
|
onClick: h,
|
|
2383
2383
|
style: { cursor: "pointer" }
|
|
2384
2384
|
}, "全不选")
|
|
2385
2385
|
]),
|
|
2386
2386
|
Z("div", null, [
|
|
2387
|
-
|
|
2387
|
+
ie(d, {
|
|
2388
2388
|
title: "拖动列标题可以改变表格列的生成顺序 !",
|
|
2389
2389
|
type: "warning"
|
|
2390
2390
|
}, {
|
|
2391
2391
|
default: $(() => [
|
|
2392
|
-
|
|
2392
|
+
ie(o, { size: "16" }, {
|
|
2393
2393
|
default: $(() => [
|
|
2394
|
-
|
|
2394
|
+
ie(H(tl))
|
|
2395
2395
|
]),
|
|
2396
2396
|
_: 1
|
|
2397
2397
|
}),
|
|
@@ -2403,7 +2403,7 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
2403
2403
|
]),
|
|
2404
2404
|
c[1] || (c[1] = Z("div", { style: { margin: "1px 0" } }, null, -1)),
|
|
2405
2405
|
Z("div", ca, [
|
|
2406
|
-
(p(!0),
|
|
2406
|
+
(p(!0), R(le, null, X(n.value, (x) => (p(), O(g, {
|
|
2407
2407
|
class: "check-box-hover",
|
|
2408
2408
|
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" },
|
|
2409
2409
|
"data-id": x.key,
|
|
@@ -2414,7 +2414,7 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
2414
2414
|
}, {
|
|
2415
2415
|
default: $(() => [
|
|
2416
2416
|
Z("span", {
|
|
2417
|
-
textContent:
|
|
2417
|
+
textContent: Se(x.label),
|
|
2418
2418
|
style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
|
|
2419
2419
|
}, null, 8, fa)
|
|
2420
2420
|
]),
|
|
@@ -2423,14 +2423,14 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
2423
2423
|
])
|
|
2424
2424
|
]),
|
|
2425
2425
|
Z("div", va, [
|
|
2426
|
-
|
|
2426
|
+
ie(J, {
|
|
2427
2427
|
type: "primary",
|
|
2428
2428
|
onClick: f,
|
|
2429
|
-
icon:
|
|
2429
|
+
icon: H(ll),
|
|
2430
2430
|
disabled: n.value.filter((x) => x.value).length < 1
|
|
2431
2431
|
}, {
|
|
2432
2432
|
default: $(() => [
|
|
2433
|
-
Le(
|
|
2433
|
+
Le(Se(t.commitText), 1)
|
|
2434
2434
|
]),
|
|
2435
2435
|
_: 1
|
|
2436
2436
|
}, 8, ["icon", "disabled"])
|
|
@@ -2438,7 +2438,7 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
2438
2438
|
]);
|
|
2439
2439
|
};
|
|
2440
2440
|
}
|
|
2441
|
-
}, ma = /* @__PURE__ */
|
|
2441
|
+
}, ma = /* @__PURE__ */ tt(pa, [["__scopeId", "data-v-13575747"]]), ha = "vue-gyc-ui", ya = 1, ye = new zl(ha);
|
|
2442
2442
|
ye.version(ya).stores({
|
|
2443
2443
|
// 记录表格项设置信息
|
|
2444
2444
|
tableWidths: "++id, [page+key], page, key,width",
|
|
@@ -2449,11 +2449,11 @@ ye.version(ya).stores({
|
|
|
2449
2449
|
// 记录表格列显示状态
|
|
2450
2450
|
tableColsState: "++id,[page+key], page, key"
|
|
2451
2451
|
});
|
|
2452
|
-
const
|
|
2452
|
+
const st = (r, s) => {
|
|
2453
2453
|
if (!r || typeof r != "string")
|
|
2454
2454
|
throw new Error("page参数必须是非空字符串");
|
|
2455
2455
|
};
|
|
2456
|
-
async function
|
|
2456
|
+
async function St(r, s, t) {
|
|
2457
2457
|
try {
|
|
2458
2458
|
const l = await ye.tableColsState.where({ page: r }).first();
|
|
2459
2459
|
l ? t === "add" ? l.keys.includes(s) || (l.keys.push(s), await ye.tableColsState.put(l)) : t === "del" ? (l.keys = l.keys.filter((n) => n !== s), await ye.tableColsState.put(l)) : t === "delAll" ? (l.keys = s, await ye.tableColsState.put(l)) : t === "selectAll" && await ye.tableColsState.where({ page: r }).delete() : t === "add" ? await ye.tableColsState.add({ page: r, keys: [s] }) : t === "delAll" && await ye.tableColsState.add({ page: r, keys: s });
|
|
@@ -2462,7 +2462,7 @@ async function _t(r, s, t) {
|
|
|
2462
2462
|
}
|
|
2463
2463
|
}
|
|
2464
2464
|
async function ga(r, s, t) {
|
|
2465
|
-
|
|
2465
|
+
st(r);
|
|
2466
2466
|
try {
|
|
2467
2467
|
const l = await ye.tableWidths.where({ page: r, key: s }).first();
|
|
2468
2468
|
return l ? (await ye.tableWidths.put({ ...l, width: t }), "update success") : (await ye.tableWidths.add({ page: r, key: s, width: t }), "add success");
|
|
@@ -2471,7 +2471,7 @@ async function ga(r, s, t) {
|
|
|
2471
2471
|
}
|
|
2472
2472
|
}
|
|
2473
2473
|
async function ba(r) {
|
|
2474
|
-
|
|
2474
|
+
st(r);
|
|
2475
2475
|
try {
|
|
2476
2476
|
return await ye.tableWidths.where({ page: r }).toArray();
|
|
2477
2477
|
} catch (s) {
|
|
@@ -2479,7 +2479,7 @@ async function ba(r) {
|
|
|
2479
2479
|
}
|
|
2480
2480
|
}
|
|
2481
2481
|
async function $a(r) {
|
|
2482
|
-
|
|
2482
|
+
st(r);
|
|
2483
2483
|
try {
|
|
2484
2484
|
const s = await ye.tableColsState.where({ page: r }).toArray();
|
|
2485
2485
|
return !s || s.length === 0 ? [] : s[0].keys;
|
|
@@ -2488,7 +2488,7 @@ async function $a(r) {
|
|
|
2488
2488
|
}
|
|
2489
2489
|
}
|
|
2490
2490
|
async function wa(r) {
|
|
2491
|
-
|
|
2491
|
+
st(r);
|
|
2492
2492
|
try {
|
|
2493
2493
|
return await ye.transaction("rw", ye.tableWidths, ye.pageInfo, ye.sorts, ye.tableColsState, async () => {
|
|
2494
2494
|
await Promise.all([
|
|
@@ -2503,7 +2503,7 @@ async function wa(r) {
|
|
|
2503
2503
|
}
|
|
2504
2504
|
}
|
|
2505
2505
|
async function ka({ page: r, size: s }) {
|
|
2506
|
-
|
|
2506
|
+
st(r);
|
|
2507
2507
|
try {
|
|
2508
2508
|
const t = await ye.pageInfo.where({ page: r }).first();
|
|
2509
2509
|
return t ? (await ye.pageInfo.put({ ...t, size: s }), "update success") : (await ye.pageInfo.add({ page: r, size: s }), "add success");
|
|
@@ -2512,7 +2512,7 @@ async function ka({ page: r, size: s }) {
|
|
|
2512
2512
|
}
|
|
2513
2513
|
}
|
|
2514
2514
|
async function _a(r) {
|
|
2515
|
-
|
|
2515
|
+
st(r);
|
|
2516
2516
|
try {
|
|
2517
2517
|
const s = await ye.pageInfo.where({ page: r }).first();
|
|
2518
2518
|
return (s == null ? void 0 : s.size) || 20;
|
|
@@ -2521,7 +2521,7 @@ async function _a(r) {
|
|
|
2521
2521
|
}
|
|
2522
2522
|
}
|
|
2523
2523
|
async function Ca(r, s) {
|
|
2524
|
-
|
|
2524
|
+
st(r);
|
|
2525
2525
|
try {
|
|
2526
2526
|
const t = await ye.sorts.where({ page: r }).first();
|
|
2527
2527
|
return t ? (await ye.sorts.put({ ...t, keys: s }), "update success") : (await ye.sorts.add({ page: r, keys: s }), "add success");
|
|
@@ -2530,7 +2530,7 @@ async function Ca(r, s) {
|
|
|
2530
2530
|
}
|
|
2531
2531
|
}
|
|
2532
2532
|
async function Sa(r) {
|
|
2533
|
-
|
|
2533
|
+
st(r);
|
|
2534
2534
|
try {
|
|
2535
2535
|
const s = await ye.sorts.where({ page: r }).first();
|
|
2536
2536
|
return (s == null ? void 0 : s.keys) || [];
|
|
@@ -2546,7 +2546,7 @@ const Ma = { style: { padding: "15px", "box-sizing": "border-box" } }, xa = { st
|
|
|
2546
2546
|
style: { display: "flex", "flex-wrap": "wrap", margin: "0 !important", padding: "0 !important" }
|
|
2547
2547
|
}, Ea = ["textContent"], Da = {
|
|
2548
2548
|
__name: "columns-setting",
|
|
2549
|
-
props: /* @__PURE__ */
|
|
2549
|
+
props: /* @__PURE__ */ ot({
|
|
2550
2550
|
tuid: {
|
|
2551
2551
|
type: String,
|
|
2552
2552
|
required: !0
|
|
@@ -2555,12 +2555,12 @@ const Ma = { style: { padding: "15px", "box-sizing": "border-box" } }, xa = { st
|
|
|
2555
2555
|
modelValue: { required: !0 },
|
|
2556
2556
|
modelModifiers: {}
|
|
2557
2557
|
}),
|
|
2558
|
-
emits: /* @__PURE__ */
|
|
2558
|
+
emits: /* @__PURE__ */ ot(["setting-drag-end", "select-all"], ["update:modelValue"]),
|
|
2559
2559
|
setup(r, { emit: s }) {
|
|
2560
2560
|
const t = r, l = s;
|
|
2561
2561
|
let n = re([]);
|
|
2562
|
-
const e =
|
|
2563
|
-
o ? (e.value[d].showCol = !0, await
|
|
2562
|
+
const e = et(r, "modelValue"), h = async (o, d) => {
|
|
2563
|
+
o ? (e.value[d].showCol = !0, await St(t.tuid, d, "del")) : (e.value[d].showCol = !1, await St(t.tuid, d, "add"));
|
|
2564
2564
|
}, f = () => {
|
|
2565
2565
|
const o = document.getElementById("cols");
|
|
2566
2566
|
if (o) {
|
|
@@ -2575,7 +2575,7 @@ const Ma = { style: { padding: "15px", "box-sizing": "border-box" } }, xa = { st
|
|
|
2575
2575
|
l("setting-drag-end");
|
|
2576
2576
|
});
|
|
2577
2577
|
} catch (J) {
|
|
2578
|
-
console.error("列排序保存信息时出错:", J),
|
|
2578
|
+
console.error("列排序保存信息时出错:", J), nt({
|
|
2579
2579
|
type: "error",
|
|
2580
2580
|
message: "列排序保存信息失败!"
|
|
2581
2581
|
});
|
|
@@ -2587,11 +2587,11 @@ const Ma = { style: { padding: "15px", "box-sizing": "border-box" } }, xa = { st
|
|
|
2587
2587
|
try {
|
|
2588
2588
|
n.value.forEach((o) => {
|
|
2589
2589
|
o.showCol = !0;
|
|
2590
|
-
}),
|
|
2590
|
+
}), St(t.tuid, [], "selectAll").then((o) => {
|
|
2591
2591
|
l("select-all");
|
|
2592
2592
|
});
|
|
2593
2593
|
} catch (o) {
|
|
2594
|
-
console.error("全选列保存信息时出错:", o),
|
|
2594
|
+
console.error("全选列保存信息时出错:", o), nt({
|
|
2595
2595
|
type: "error",
|
|
2596
2596
|
message: "全选列保存信息失败!"
|
|
2597
2597
|
});
|
|
@@ -2601,17 +2601,17 @@ const Ma = { style: { padding: "15px", "box-sizing": "border-box" } }, xa = { st
|
|
|
2601
2601
|
let o = n.value.filter((d) => !d.alwaysShow && d.value != "control" && d.value != "hidden");
|
|
2602
2602
|
o.forEach((d) => {
|
|
2603
2603
|
d.showCol = !1;
|
|
2604
|
-
}),
|
|
2604
|
+
}), St(t.tuid, o.map((d) => d.value), "delAll").then((d) => {
|
|
2605
2605
|
l("select-all");
|
|
2606
2606
|
});
|
|
2607
2607
|
} catch (o) {
|
|
2608
|
-
console.error("清除列保存信息时出错:", o),
|
|
2608
|
+
console.error("清除列保存信息时出错:", o), nt({
|
|
2609
2609
|
type: "error",
|
|
2610
2610
|
message: "清除列保存信息失败!"
|
|
2611
2611
|
});
|
|
2612
2612
|
}
|
|
2613
2613
|
}, v = () => {
|
|
2614
|
-
|
|
2614
|
+
Gt.confirm("确定要复位吗?", "提示", {
|
|
2615
2615
|
confirmButtonText: "确定",
|
|
2616
2616
|
cancelButtonText: "取消",
|
|
2617
2617
|
type: "warning"
|
|
@@ -2619,7 +2619,7 @@ const Ma = { style: { padding: "15px", "box-sizing": "border-box" } }, xa = { st
|
|
|
2619
2619
|
wa(t.tuid).then((o) => {
|
|
2620
2620
|
window.location.reload();
|
|
2621
2621
|
}).catch((o) => {
|
|
2622
|
-
console.error("复位操作出错:", o),
|
|
2622
|
+
console.error("复位操作出错:", o), nt({
|
|
2623
2623
|
type: "info",
|
|
2624
2624
|
message: "复位失败!"
|
|
2625
2625
|
});
|
|
@@ -2637,20 +2637,20 @@ const Ma = { style: { padding: "15px", "box-sizing": "border-box" } }, xa = { st
|
|
|
2637
2637
|
})).sort((o, d) => o.sort - d.sort), f();
|
|
2638
2638
|
}), (o, d) => {
|
|
2639
2639
|
const g = N("el-divider"), J = N("el-icon"), x = N("el-text"), U = N("el-checkbox");
|
|
2640
|
-
return p(),
|
|
2640
|
+
return p(), R("div", Ma, [
|
|
2641
2641
|
Z("div", xa, [
|
|
2642
2642
|
Z("div", Ta, [
|
|
2643
2643
|
Z("a", { onClick: S }, "全选"),
|
|
2644
|
-
|
|
2644
|
+
ie(g, { direction: "vertical" }),
|
|
2645
2645
|
Z("a", { onClick: c }, "全不选"),
|
|
2646
|
-
|
|
2646
|
+
ie(g, { direction: "vertical" }),
|
|
2647
2647
|
Z("a", { onClick: v }, "复位")
|
|
2648
2648
|
]),
|
|
2649
|
-
|
|
2649
|
+
ie(x, { type: "warning" }, {
|
|
2650
2650
|
default: $(() => [
|
|
2651
|
-
|
|
2651
|
+
ie(J, { size: "16" }, {
|
|
2652
2652
|
default: $(() => [
|
|
2653
|
-
|
|
2653
|
+
ie(H(tl))
|
|
2654
2654
|
]),
|
|
2655
2655
|
_: 1
|
|
2656
2656
|
}),
|
|
@@ -2661,12 +2661,12 @@ const Ma = { style: { padding: "15px", "box-sizing": "border-box" } }, xa = { st
|
|
|
2661
2661
|
]),
|
|
2662
2662
|
Z("div", null, [
|
|
2663
2663
|
Z("div", Va, [
|
|
2664
|
-
(p(!0),
|
|
2664
|
+
(p(!0), R(le, null, X(H(n), (z) => (p(), O(U, {
|
|
2665
2665
|
modelValue: z.showCol,
|
|
2666
|
-
"onUpdate:modelValue": (
|
|
2666
|
+
"onUpdate:modelValue": (j) => z.showCol = j,
|
|
2667
2667
|
"data-id": z.value,
|
|
2668
|
-
class:
|
|
2669
|
-
onChange: (
|
|
2668
|
+
class: Qt(["check-box-hover", z.value == "control" ? "filtered" : ""]),
|
|
2669
|
+
onChange: (j) => h(j, z.value),
|
|
2670
2670
|
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" },
|
|
2671
2671
|
value: z.value,
|
|
2672
2672
|
title: z.label,
|
|
@@ -2675,7 +2675,7 @@ const Ma = { style: { padding: "15px", "box-sizing": "border-box" } }, xa = { st
|
|
|
2675
2675
|
}, {
|
|
2676
2676
|
default: $(() => [
|
|
2677
2677
|
Z("span", {
|
|
2678
|
-
textContent:
|
|
2678
|
+
textContent: Se(z.label),
|
|
2679
2679
|
style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
|
|
2680
2680
|
}, null, 8, Ea)
|
|
2681
2681
|
]),
|
|
@@ -2686,7 +2686,7 @@ const Ma = { style: { padding: "15px", "box-sizing": "border-box" } }, xa = { st
|
|
|
2686
2686
|
]);
|
|
2687
2687
|
};
|
|
2688
2688
|
}
|
|
2689
|
-
}, Ia = /* @__PURE__ */
|
|
2689
|
+
}, Ia = /* @__PURE__ */ tt(Da, [["__scopeId", "data-v-11d261e3"]]), Oa = { class: "title" }, qa = { class: "content" }, Aa = {
|
|
2690
2690
|
__name: "g-cell-toopTip",
|
|
2691
2691
|
props: {
|
|
2692
2692
|
content: {
|
|
@@ -2700,11 +2700,11 @@ const Ma = { style: { padding: "15px", "box-sizing": "border-box" } }, xa = { st
|
|
|
2700
2700
|
},
|
|
2701
2701
|
setup(r) {
|
|
2702
2702
|
const s = r, t = () => {
|
|
2703
|
-
s.content ? (navigator.clipboard.writeText(s.content),
|
|
2703
|
+
s.content ? (navigator.clipboard.writeText(s.content), nt.success("复制成功")) : nt.warning("没有内容可复制");
|
|
2704
2704
|
};
|
|
2705
|
-
return (l, n) => (p(),
|
|
2705
|
+
return (l, n) => (p(), R("div", {
|
|
2706
2706
|
class: "g-cell-toopTip",
|
|
2707
|
-
style:
|
|
2707
|
+
style: Ye({ width: s.column.width + "px" })
|
|
2708
2708
|
}, [
|
|
2709
2709
|
Z("div", Oa, [
|
|
2710
2710
|
n[0] || (n[0] = Z("span", { class: "title-text" }, "内容", -1)),
|
|
@@ -2713,13 +2713,13 @@ const Ma = { style: { padding: "15px", "box-sizing": "border-box" } }, xa = { st
|
|
|
2713
2713
|
onClick: t,
|
|
2714
2714
|
title: "复制内容"
|
|
2715
2715
|
}, [
|
|
2716
|
-
|
|
2716
|
+
ie(H(Dl))
|
|
2717
2717
|
])
|
|
2718
2718
|
]),
|
|
2719
|
-
Z("div", qa,
|
|
2719
|
+
Z("div", qa, Se(s.content), 1)
|
|
2720
2720
|
], 4));
|
|
2721
2721
|
}
|
|
2722
|
-
}, za = /* @__PURE__ */
|
|
2722
|
+
}, za = /* @__PURE__ */ tt(Aa, [["__scopeId", "data-v-f28912da"]]);
|
|
2723
2723
|
var il = { exports: {} }, dl = { exports: {} };
|
|
2724
2724
|
(function() {
|
|
2725
2725
|
var r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", s = {
|
|
@@ -2786,16 +2786,16 @@ var il = { exports: {} }, dl = { exports: {} };
|
|
|
2786
2786
|
};
|
|
2787
2787
|
dl.exports = s;
|
|
2788
2788
|
})();
|
|
2789
|
-
var La = dl.exports,
|
|
2789
|
+
var La = dl.exports, qt = {
|
|
2790
2790
|
// UTF-8 encoding
|
|
2791
2791
|
utf8: {
|
|
2792
2792
|
// Convert a string to a byte array
|
|
2793
2793
|
stringToBytes: function(r) {
|
|
2794
|
-
return
|
|
2794
|
+
return qt.bin.stringToBytes(unescape(encodeURIComponent(r)));
|
|
2795
2795
|
},
|
|
2796
2796
|
// Convert a byte array to a string
|
|
2797
2797
|
bytesToString: function(r) {
|
|
2798
|
-
return decodeURIComponent(escape(
|
|
2798
|
+
return decodeURIComponent(escape(qt.bin.bytesToString(r)));
|
|
2799
2799
|
}
|
|
2800
2800
|
},
|
|
2801
2801
|
// Binary encoding
|
|
@@ -2813,7 +2813,7 @@ var La = dl.exports, Dt = {
|
|
|
2813
2813
|
return s.join("");
|
|
2814
2814
|
}
|
|
2815
2815
|
}
|
|
2816
|
-
},
|
|
2816
|
+
}, Nt = qt;
|
|
2817
2817
|
/*!
|
|
2818
2818
|
* Determine if an object is a Buffer
|
|
2819
2819
|
*
|
|
@@ -2821,23 +2821,23 @@ var La = dl.exports, Dt = {
|
|
|
2821
2821
|
* @license MIT
|
|
2822
2822
|
*/
|
|
2823
2823
|
var Ua = function(r) {
|
|
2824
|
-
return r != null && (cl(r) ||
|
|
2824
|
+
return r != null && (cl(r) || Ra(r) || !!r._isBuffer);
|
|
2825
2825
|
};
|
|
2826
2826
|
function cl(r) {
|
|
2827
2827
|
return !!r.constructor && typeof r.constructor.isBuffer == "function" && r.constructor.isBuffer(r);
|
|
2828
2828
|
}
|
|
2829
|
-
function
|
|
2829
|
+
function Ra(r) {
|
|
2830
2830
|
return typeof r.readFloatLE == "function" && typeof r.slice == "function" && cl(r.slice(0, 0));
|
|
2831
2831
|
}
|
|
2832
2832
|
(function() {
|
|
2833
|
-
var r = La, s =
|
|
2833
|
+
var r = La, s = Nt.utf8, t = Ua, l = Nt.bin, n = function(e, h) {
|
|
2834
2834
|
e.constructor == String ? h && h.encoding === "binary" ? e = l.stringToBytes(e) : e = s.stringToBytes(e) : t(e) ? e = Array.prototype.slice.call(e, 0) : !Array.isArray(e) && e.constructor !== Uint8Array && (e = e.toString());
|
|
2835
2835
|
for (var f = r.bytesToWords(e), S = e.length * 8, c = 1732584193, v = -271733879, o = -1732584194, d = 271733878, g = 0; g < f.length; g++)
|
|
2836
2836
|
f[g] = (f[g] << 8 | f[g] >>> 24) & 16711935 | (f[g] << 24 | f[g] >>> 8) & 4278255360;
|
|
2837
2837
|
f[S >>> 5] |= 128 << S % 32, f[(S + 64 >>> 9 << 4) + 14] = S;
|
|
2838
2838
|
for (var J = n._ff, x = n._gg, U = n._hh, z = n._ii, g = 0; g < f.length; g += 16) {
|
|
2839
|
-
var
|
|
2840
|
-
c = J(c, v, o, d, f[g + 0], 7, -680876936), d = J(d, c, v, o, f[g + 1], 12, -389564586), o = J(o, d, c, v, f[g + 2], 17, 606105819), v = J(v, o, d, c, f[g + 3], 22, -1044525330), c = J(c, v, o, d, f[g + 4], 7, -176418897), d = J(d, c, v, o, f[g + 5], 12, 1200080426), o = J(o, d, c, v, f[g + 6], 17, -1473231341), v = J(v, o, d, c, f[g + 7], 22, -45705983), c = J(c, v, o, d, f[g + 8], 7, 1770035416), d = J(d, c, v, o, f[g + 9], 12, -1958414417), o = J(o, d, c, v, f[g + 10], 17, -42063), v = J(v, o, d, c, f[g + 11], 22, -1990404162), c = J(c, v, o, d, f[g + 12], 7, 1804603682), d = J(d, c, v, o, f[g + 13], 12, -40341101), o = J(o, d, c, v, f[g + 14], 17, -1502002290), v = J(v, o, d, c, f[g + 15], 22, 1236535329), c = x(c, v, o, d, f[g + 1], 5, -165796510), d = x(d, c, v, o, f[g + 6], 9, -1069501632), o = x(o, d, c, v, f[g + 11], 14, 643717713), v = x(v, o, d, c, f[g + 0], 20, -373897302), c = x(c, v, o, d, f[g + 5], 5, -701558691), d = x(d, c, v, o, f[g + 10], 9, 38016083), o = x(o, d, c, v, f[g + 15], 14, -660478335), v = x(v, o, d, c, f[g + 4], 20, -405537848), c = x(c, v, o, d, f[g + 9], 5, 568446438), d = x(d, c, v, o, f[g + 14], 9, -1019803690), o = x(o, d, c, v, f[g + 3], 14, -187363961), v = x(v, o, d, c, f[g + 8], 20, 1163531501), c = x(c, v, o, d, f[g + 13], 5, -1444681467), d = x(d, c, v, o, f[g + 2], 9, -51403784), o = x(o, d, c, v, f[g + 7], 14, 1735328473), v = x(v, o, d, c, f[g + 12], 20, -1926607734), c = U(c, v, o, d, f[g + 5], 4, -378558), d = U(d, c, v, o, f[g + 8], 11, -2022574463), o = U(o, d, c, v, f[g + 11], 16, 1839030562), v = U(v, o, d, c, f[g + 14], 23, -35309556), c = U(c, v, o, d, f[g + 1], 4, -1530992060), d = U(d, c, v, o, f[g + 4], 11, 1272893353), o = U(o, d, c, v, f[g + 7], 16, -155497632), v = U(v, o, d, c, f[g + 10], 23, -1094730640), c = U(c, v, o, d, f[g + 13], 4, 681279174), d = U(d, c, v, o, f[g + 0], 11, -358537222), o = U(o, d, c, v, f[g + 3], 16, -722521979), v = U(v, o, d, c, f[g + 6], 23, 76029189), c = U(c, v, o, d, f[g + 9], 4, -640364487), d = U(d, c, v, o, f[g + 12], 11, -421815835), o = U(o, d, c, v, f[g + 15], 16, 530742520), v = U(v, o, d, c, f[g + 2], 23, -995338651), c = z(c, v, o, d, f[g + 0], 6, -198630844), d = z(d, c, v, o, f[g + 7], 10, 1126891415), o = z(o, d, c, v, f[g + 14], 15, -1416354905), v = z(v, o, d, c, f[g + 5], 21, -57434055), c = z(c, v, o, d, f[g + 12], 6, 1700485571), d = z(d, c, v, o, f[g + 3], 10, -1894986606), o = z(o, d, c, v, f[g + 10], 15, -1051523), v = z(v, o, d, c, f[g + 1], 21, -2054922799), c = z(c, v, o, d, f[g + 8], 6, 1873313359), d = z(d, c, v, o, f[g + 15], 10, -30611744), o = z(o, d, c, v, f[g + 6], 15, -1560198380), v = z(v, o, d, c, f[g + 13], 21, 1309151649), c = z(c, v, o, d, f[g + 4], 6, -145523070), d = z(d, c, v, o, f[g + 11], 10, -1120210379), o = z(o, d, c, v, f[g + 2], 15, 718787259), v = z(v, o, d, c, f[g + 9], 21, -343485551), c = c +
|
|
2839
|
+
var j = c, de = v, ae = o, oe = d;
|
|
2840
|
+
c = J(c, v, o, d, f[g + 0], 7, -680876936), d = J(d, c, v, o, f[g + 1], 12, -389564586), o = J(o, d, c, v, f[g + 2], 17, 606105819), v = J(v, o, d, c, f[g + 3], 22, -1044525330), c = J(c, v, o, d, f[g + 4], 7, -176418897), d = J(d, c, v, o, f[g + 5], 12, 1200080426), o = J(o, d, c, v, f[g + 6], 17, -1473231341), v = J(v, o, d, c, f[g + 7], 22, -45705983), c = J(c, v, o, d, f[g + 8], 7, 1770035416), d = J(d, c, v, o, f[g + 9], 12, -1958414417), o = J(o, d, c, v, f[g + 10], 17, -42063), v = J(v, o, d, c, f[g + 11], 22, -1990404162), c = J(c, v, o, d, f[g + 12], 7, 1804603682), d = J(d, c, v, o, f[g + 13], 12, -40341101), o = J(o, d, c, v, f[g + 14], 17, -1502002290), v = J(v, o, d, c, f[g + 15], 22, 1236535329), c = x(c, v, o, d, f[g + 1], 5, -165796510), d = x(d, c, v, o, f[g + 6], 9, -1069501632), o = x(o, d, c, v, f[g + 11], 14, 643717713), v = x(v, o, d, c, f[g + 0], 20, -373897302), c = x(c, v, o, d, f[g + 5], 5, -701558691), d = x(d, c, v, o, f[g + 10], 9, 38016083), o = x(o, d, c, v, f[g + 15], 14, -660478335), v = x(v, o, d, c, f[g + 4], 20, -405537848), c = x(c, v, o, d, f[g + 9], 5, 568446438), d = x(d, c, v, o, f[g + 14], 9, -1019803690), o = x(o, d, c, v, f[g + 3], 14, -187363961), v = x(v, o, d, c, f[g + 8], 20, 1163531501), c = x(c, v, o, d, f[g + 13], 5, -1444681467), d = x(d, c, v, o, f[g + 2], 9, -51403784), o = x(o, d, c, v, f[g + 7], 14, 1735328473), v = x(v, o, d, c, f[g + 12], 20, -1926607734), c = U(c, v, o, d, f[g + 5], 4, -378558), d = U(d, c, v, o, f[g + 8], 11, -2022574463), o = U(o, d, c, v, f[g + 11], 16, 1839030562), v = U(v, o, d, c, f[g + 14], 23, -35309556), c = U(c, v, o, d, f[g + 1], 4, -1530992060), d = U(d, c, v, o, f[g + 4], 11, 1272893353), o = U(o, d, c, v, f[g + 7], 16, -155497632), v = U(v, o, d, c, f[g + 10], 23, -1094730640), c = U(c, v, o, d, f[g + 13], 4, 681279174), d = U(d, c, v, o, f[g + 0], 11, -358537222), o = U(o, d, c, v, f[g + 3], 16, -722521979), v = U(v, o, d, c, f[g + 6], 23, 76029189), c = U(c, v, o, d, f[g + 9], 4, -640364487), d = U(d, c, v, o, f[g + 12], 11, -421815835), o = U(o, d, c, v, f[g + 15], 16, 530742520), v = U(v, o, d, c, f[g + 2], 23, -995338651), c = z(c, v, o, d, f[g + 0], 6, -198630844), d = z(d, c, v, o, f[g + 7], 10, 1126891415), o = z(o, d, c, v, f[g + 14], 15, -1416354905), v = z(v, o, d, c, f[g + 5], 21, -57434055), c = z(c, v, o, d, f[g + 12], 6, 1700485571), d = z(d, c, v, o, f[g + 3], 10, -1894986606), o = z(o, d, c, v, f[g + 10], 15, -1051523), v = z(v, o, d, c, f[g + 1], 21, -2054922799), c = z(c, v, o, d, f[g + 8], 6, 1873313359), d = z(d, c, v, o, f[g + 15], 10, -30611744), o = z(o, d, c, v, f[g + 6], 15, -1560198380), v = z(v, o, d, c, f[g + 13], 21, 1309151649), c = z(c, v, o, d, f[g + 4], 6, -145523070), d = z(d, c, v, o, f[g + 11], 10, -1120210379), o = z(o, d, c, v, f[g + 2], 15, 718787259), v = z(v, o, d, c, f[g + 9], 21, -343485551), c = c + j >>> 0, v = v + de >>> 0, o = o + ae >>> 0, d = d + oe >>> 0;
|
|
2841
2841
|
}
|
|
2842
2842
|
return r.endian([c, v, o, d]);
|
|
2843
2843
|
};
|
|
@@ -2860,8 +2860,8 @@ function Fa(r) {
|
|
|
2860
2860
|
return h && h.asBytes ? f : h && h.asString ? l.bytesToString(f) : r.bytesToHex(f);
|
|
2861
2861
|
};
|
|
2862
2862
|
})();
|
|
2863
|
-
var
|
|
2864
|
-
const
|
|
2863
|
+
var Fa = il.exports;
|
|
2864
|
+
const Ya = /* @__PURE__ */ nl(Fa), Ha = { class: "g-table-container" }, Ba = {
|
|
2865
2865
|
key: 0,
|
|
2866
2866
|
class: "table-query-container"
|
|
2867
2867
|
}, Pa = { class: "table-container" }, Na = ["innerHTML"], ja = /* @__PURE__ */ Object.assign({
|
|
@@ -2871,27 +2871,30 @@ const Ra = /* @__PURE__ */ nl(Ya), Ha = { class: "g-table-container" }, Ba = {
|
|
|
2871
2871
|
__name: "g-table",
|
|
2872
2872
|
props: {
|
|
2873
2873
|
modelValue: { required: !0 },
|
|
2874
|
-
modelModifiers: {}
|
|
2874
|
+
modelModifiers: {},
|
|
2875
|
+
selectedRows: { default: [], type: Array, required: !1 },
|
|
2876
|
+
selectedRowsModifiers: {}
|
|
2875
2877
|
},
|
|
2876
|
-
emits: /* @__PURE__ */
|
|
2878
|
+
emits: /* @__PURE__ */ ot([
|
|
2877
2879
|
"load",
|
|
2878
2880
|
"open",
|
|
2879
2881
|
"delete",
|
|
2880
2882
|
"submit",
|
|
2881
2883
|
"reset",
|
|
2882
2884
|
"download",
|
|
2883
|
-
"row-save"
|
|
2884
|
-
|
|
2885
|
+
"row-save",
|
|
2886
|
+
"batch"
|
|
2887
|
+
], ["update:modelValue", "update:selectedRows"]),
|
|
2885
2888
|
setup(r, { expose: s, emit: t }) {
|
|
2886
|
-
var
|
|
2887
|
-
const l = re(""), n = t, e =
|
|
2888
|
-
var
|
|
2889
|
+
var Oe, Qe, He, Pe, Ne, je, gt;
|
|
2890
|
+
const l = re(""), n = t, e = et(r, "modelValue"), h = Lt("options"), f = re({}), S = Object.entries(e.value).filter(([a, u]) => (u == null ? void 0 : u.search) !== void 0).map(([a, u]) => {
|
|
2891
|
+
var w;
|
|
2889
2892
|
let m;
|
|
2890
2893
|
if (typeof u.search == "function") {
|
|
2891
|
-
const
|
|
2892
|
-
m = (
|
|
2894
|
+
const I = u.search(f.value);
|
|
2895
|
+
m = (I == null ? void 0 : I.value) ?? u.value;
|
|
2893
2896
|
} else
|
|
2894
|
-
m = ((
|
|
2897
|
+
m = ((w = u.search) == null ? void 0 : w.value) ?? u.value;
|
|
2895
2898
|
return [a, m];
|
|
2896
2899
|
});
|
|
2897
2900
|
f.value = Object.fromEntries(S);
|
|
@@ -2924,13 +2927,14 @@ const Ra = /* @__PURE__ */ nl(Ya), Ha = { class: "g-table-container" }, Ba = {
|
|
|
2924
2927
|
"filter-multiple",
|
|
2925
2928
|
"filter-method",
|
|
2926
2929
|
"filtered-value"
|
|
2927
|
-
], o = re([]), d =
|
|
2930
|
+
], o = re([]), d = Tt(), g = re({}), J = re([]), x = re(null), U = re(""), z = re("/"), j = et(r, "selectedRows"), de = re({
|
|
2928
2931
|
autoWatch: !1,
|
|
2929
2932
|
data: [],
|
|
2930
2933
|
border: !0,
|
|
2931
2934
|
stripe: !0,
|
|
2932
2935
|
emptyText: "暂无数据",
|
|
2933
|
-
|
|
2936
|
+
"highlight-current-row": !0,
|
|
2937
|
+
stripe: !0,
|
|
2934
2938
|
type: "hidden",
|
|
2935
2939
|
load: async () => {
|
|
2936
2940
|
e.value.table.page.pageSize = await _a(z.value);
|
|
@@ -2939,29 +2943,29 @@ const Ra = /* @__PURE__ */ nl(Ya), Ha = { class: "g-table-container" }, Ba = {
|
|
|
2939
2943
|
n(
|
|
2940
2944
|
"load",
|
|
2941
2945
|
{ currentPage: a, pageSize: u, ...f.value },
|
|
2942
|
-
(m = [],
|
|
2943
|
-
var
|
|
2946
|
+
(m = [], w = 0, { fields: I = [], sums: P = {} } = {}) => {
|
|
2947
|
+
var F;
|
|
2944
2948
|
if (!Array.isArray(m)) {
|
|
2945
|
-
console.error("从 load 事件回调中接收到的数据不是数组格式。"),
|
|
2949
|
+
console.error("从 load 事件回调中接收到的数据不是数组格式。"), nt.error("数据加载失败,请检查数据格式。");
|
|
2946
2950
|
return;
|
|
2947
2951
|
}
|
|
2948
|
-
if (typeof
|
|
2949
|
-
console.error("从 load 事件回调中接收到的 total 不是数字格式。"),
|
|
2952
|
+
if (typeof w != "number") {
|
|
2953
|
+
console.error("从 load 事件回调中接收到的 total 不是数字格式。"), nt.error("数据加载失败,请检查数据格式。");
|
|
2950
2954
|
return;
|
|
2951
2955
|
}
|
|
2952
|
-
e.value.table.data = m, ((
|
|
2956
|
+
e.value.table.data = m, ((F = e.value.control) == null ? void 0 : F.add(x.value, e).inline) === !0 && e.value.table.data.unshift(x.value), e.value.table.page.total = w, J.value = I, g.value = P, A(), U.value = Math.random().toString(36).substring(2);
|
|
2953
2957
|
},
|
|
2954
2958
|
x.value
|
|
2955
2959
|
);
|
|
2956
2960
|
} catch (m) {
|
|
2957
|
-
console.error("触发 load 事件时出现错误:", m),
|
|
2961
|
+
console.error("触发 load 事件时出现错误:", m), nt.error("数据加载时出现错误,请稍后重试。");
|
|
2958
2962
|
}
|
|
2959
2963
|
},
|
|
2960
2964
|
onHeaderDragend: (a, u, m) => {
|
|
2961
2965
|
ga(z.value, m.property, a);
|
|
2962
2966
|
},
|
|
2963
2967
|
onRowDblclick: (a, u, m) => {
|
|
2964
|
-
e.value.table.dblclickType == "edit" ?
|
|
2968
|
+
e.value.table.dblclickType == "edit" ? b(a, u, m, e) : e.value.table.dblclickType == "view" ? D(a, u, m, e) : e.value.table.dblclickType == "delete" ? i(a, u, m, e) : e.value.table.dblclickType(a, u, m, e);
|
|
2965
2969
|
},
|
|
2966
2970
|
style: { "min-height": "100px", backgroundColor: "var(--el-bg-color)" },
|
|
2967
2971
|
page: {
|
|
@@ -2988,55 +2992,58 @@ const Ra = /* @__PURE__ */ nl(Ya), Ha = { class: "g-table-container" }, Ba = {
|
|
|
2988
2992
|
},
|
|
2989
2993
|
dblclickType: "edit",
|
|
2990
2994
|
"summary-method": ({ columns: a, data: u }, m) => m,
|
|
2991
|
-
onSortChange: ({ column: a, prop: u, order: m },
|
|
2995
|
+
onSortChange: ({ column: a, prop: u, order: m }, w) => {
|
|
2996
|
+
},
|
|
2997
|
+
onSelectionChange: (a) => {
|
|
2998
|
+
j.value = a;
|
|
2992
2999
|
}
|
|
2993
3000
|
});
|
|
2994
3001
|
e.value.table = ze(
|
|
2995
|
-
|
|
3002
|
+
de.value,
|
|
2996
3003
|
h == null ? void 0 : h.table,
|
|
2997
3004
|
e.value.table,
|
|
2998
3005
|
d
|
|
2999
3006
|
// 继承父组件的属性
|
|
3000
3007
|
);
|
|
3001
|
-
const
|
|
3008
|
+
const ae = {
|
|
3002
3009
|
type: "control",
|
|
3003
3010
|
label: "操作",
|
|
3004
3011
|
align: "center",
|
|
3005
3012
|
"min-width": 100,
|
|
3006
3013
|
width: 160,
|
|
3007
3014
|
fixed: "right",
|
|
3008
|
-
style: { ...(
|
|
3015
|
+
style: { ...(Qe = (Oe = e.value) == null ? void 0 : Oe.control) == null ? void 0 : Qe.style },
|
|
3009
3016
|
validate: async (a) => await !0,
|
|
3010
|
-
view: (a, u, m,
|
|
3017
|
+
view: (a, u, m, w) => ({
|
|
3011
3018
|
label: "查看",
|
|
3012
3019
|
text: !0,
|
|
3013
3020
|
type: "success",
|
|
3014
3021
|
mode: "dialog",
|
|
3015
|
-
icon: () =>
|
|
3022
|
+
icon: () => we(Al),
|
|
3016
3023
|
auth: () => {
|
|
3017
|
-
var
|
|
3018
|
-
return !(((
|
|
3024
|
+
var I;
|
|
3025
|
+
return !(((I = w == null ? void 0 : w.control) == null ? void 0 : I.add(a, w).inline) === !0 && m === 0);
|
|
3019
3026
|
}
|
|
3020
3027
|
}),
|
|
3021
|
-
edit: (a, u, m,
|
|
3028
|
+
edit: (a, u, m, w) => ({
|
|
3022
3029
|
label: "编辑",
|
|
3023
3030
|
text: !0,
|
|
3024
3031
|
type: "primary",
|
|
3025
3032
|
mode: "dialog",
|
|
3026
|
-
icon: () =>
|
|
3033
|
+
icon: () => we(ql),
|
|
3027
3034
|
auth: () => {
|
|
3028
|
-
var
|
|
3029
|
-
return ((
|
|
3035
|
+
var I;
|
|
3036
|
+
return ((I = w == null ? void 0 : w.control) == null ? void 0 : I.add(a, w).inline) !== !0;
|
|
3030
3037
|
}
|
|
3031
3038
|
}),
|
|
3032
|
-
delete: (a, u, m,
|
|
3039
|
+
delete: (a, u, m, w) => ({
|
|
3033
3040
|
text: !0,
|
|
3034
3041
|
label: "删除",
|
|
3035
3042
|
type: "danger",
|
|
3036
|
-
icon: () =>
|
|
3043
|
+
icon: () => we(Kt),
|
|
3037
3044
|
auth: () => {
|
|
3038
|
-
var
|
|
3039
|
-
return !(((
|
|
3045
|
+
var I;
|
|
3046
|
+
return !(((I = w.control) == null ? void 0 : I.add(a, w).inline) === !0 && m === 0);
|
|
3040
3047
|
},
|
|
3041
3048
|
dialog: {
|
|
3042
3049
|
message: "此操作将永久删除该文件, 是否继续?",
|
|
@@ -3048,17 +3055,17 @@ const Ra = /* @__PURE__ */ nl(Ya), Ha = { class: "g-table-container" }, Ba = {
|
|
|
3048
3055
|
}
|
|
3049
3056
|
}
|
|
3050
3057
|
}),
|
|
3051
|
-
save: (a, u, m,
|
|
3052
|
-
var
|
|
3058
|
+
save: (a, u, m, w) => {
|
|
3059
|
+
var I, P;
|
|
3053
3060
|
return {
|
|
3054
|
-
label: ((
|
|
3061
|
+
label: ((I = w.control) == null ? void 0 : I.add(a, w).inline) !== !0 ? "保存" : m === 0 ? "新增" : "保存",
|
|
3055
3062
|
text: !0,
|
|
3056
|
-
icon: () =>
|
|
3057
|
-
type: ((
|
|
3063
|
+
icon: () => we(Ot),
|
|
3064
|
+
type: ((P = w.control) == null ? void 0 : P.add(a, w).inline) !== !0 || m === 0 ? "primary" : "success",
|
|
3058
3065
|
sort: -1,
|
|
3059
3066
|
auth: () => {
|
|
3060
|
-
var
|
|
3061
|
-
return ((
|
|
3067
|
+
var F;
|
|
3068
|
+
return ((F = w.control) == null ? void 0 : F.add(a, w).inline) === !0;
|
|
3062
3069
|
}
|
|
3063
3070
|
};
|
|
3064
3071
|
},
|
|
@@ -3068,15 +3075,23 @@ const Ra = /* @__PURE__ */ nl(Ya), Ha = { class: "g-table-container" }, Ba = {
|
|
|
3068
3075
|
type: "primary",
|
|
3069
3076
|
mode: "dialog",
|
|
3070
3077
|
inline: !1,
|
|
3071
|
-
icon: () =>
|
|
3078
|
+
icon: () => we(Ol),
|
|
3072
3079
|
auth: () => !0
|
|
3073
3080
|
}),
|
|
3081
|
+
batch: (a, u) => ({
|
|
3082
|
+
label: "批量操作",
|
|
3083
|
+
text: !1,
|
|
3084
|
+
type: "primary",
|
|
3085
|
+
mode: "dialog",
|
|
3086
|
+
icon: () => we(Ot),
|
|
3087
|
+
auth: () => !1
|
|
3088
|
+
}),
|
|
3074
3089
|
download: (a, u) => ({
|
|
3075
3090
|
label: "下载",
|
|
3076
3091
|
text: !1,
|
|
3077
3092
|
type: "primary",
|
|
3078
3093
|
mode: "dialog",
|
|
3079
|
-
icon: () =>
|
|
3094
|
+
icon: () => we(ll),
|
|
3080
3095
|
excelLabel: "下载EXCEL",
|
|
3081
3096
|
auth: () => !0
|
|
3082
3097
|
}),
|
|
@@ -3085,67 +3100,67 @@ const Ra = /* @__PURE__ */ nl(Ya), Ha = { class: "g-table-container" }, Ba = {
|
|
|
3085
3100
|
text: !1,
|
|
3086
3101
|
type: "primary",
|
|
3087
3102
|
mode: "dialog",
|
|
3088
|
-
icon: () =>
|
|
3103
|
+
icon: () => we(Il),
|
|
3089
3104
|
auth: () => !0
|
|
3090
3105
|
}),
|
|
3091
|
-
dropdown: (a, u, m,
|
|
3106
|
+
dropdown: (a, u, m, w) => ({
|
|
3092
3107
|
label: "编辑",
|
|
3093
3108
|
operate: "edit",
|
|
3094
3109
|
"split-button": !0,
|
|
3095
3110
|
type: "primary",
|
|
3096
3111
|
size: "small",
|
|
3097
|
-
auth: () => !(
|
|
3112
|
+
auth: () => !(w.control.add(a, w).inline === !0 && m == 0),
|
|
3098
3113
|
onClick: () => {
|
|
3099
|
-
var
|
|
3100
|
-
let
|
|
3101
|
-
|
|
3114
|
+
var P;
|
|
3115
|
+
let I = (P = ve(a, u, m, w)) == null ? void 0 : P.operate;
|
|
3116
|
+
I === "edit" ? b(a, u, m, w) : I === "delete" ? i(a, u, m, w) : I === "view" && D(a, u, m, w);
|
|
3102
3117
|
},
|
|
3103
3118
|
"button-props": { round: !0, plain: !0 }
|
|
3104
3119
|
})
|
|
3105
3120
|
};
|
|
3106
3121
|
e.value.control = ze(
|
|
3107
|
-
|
|
3122
|
+
ae,
|
|
3108
3123
|
h == null ? void 0 : h.control,
|
|
3109
|
-
(
|
|
3124
|
+
(He = e.value) == null ? void 0 : He.control
|
|
3110
3125
|
);
|
|
3111
3126
|
const oe = (a, u = !0) => {
|
|
3112
|
-
const m = e.value.control[a],
|
|
3113
|
-
var Be,
|
|
3114
|
-
if (!
|
|
3127
|
+
const m = e.value.control[a], w = u ? (I, P, F, $e) => {
|
|
3128
|
+
var Be, We, it;
|
|
3129
|
+
if (!I || !P || F == null)
|
|
3115
3130
|
return console.warn(`merge${a.charAt(0).toUpperCase() + a.slice(1)}: 缺少必要的参数(row, column或index)`), {};
|
|
3116
|
-
const qe = ((Be =
|
|
3117
|
-
return ze(qe,
|
|
3118
|
-
} : (
|
|
3119
|
-
var
|
|
3120
|
-
const
|
|
3121
|
-
return ze(
|
|
3131
|
+
const qe = ((Be = ae[a]) == null ? void 0 : Be.call(ae, I, P, F, $e)) || {}, Ie = ((it = (We = h == null ? void 0 : h.control) == null ? void 0 : We[a]) == null ? void 0 : it.call(We, I, P, F, $e)) || {}, Re = (m == null ? void 0 : m(I, P, F, $e)) || {};
|
|
3132
|
+
return ze(qe, Ie, Re) || {};
|
|
3133
|
+
} : (I, P) => {
|
|
3134
|
+
var Ie, Re, Be;
|
|
3135
|
+
const F = ((Ie = ae[a]) == null ? void 0 : Ie.call(ae, I, P)) || {}, $e = ((Be = (Re = h == null ? void 0 : h.control) == null ? void 0 : Re[a]) == null ? void 0 : Be.call(Re, I, P)) || {}, qe = (m == null ? void 0 : m(I, P)) || {};
|
|
3136
|
+
return ze(F, $e, qe) || {};
|
|
3122
3137
|
};
|
|
3123
|
-
e.value.control[a] =
|
|
3138
|
+
e.value.control[a] = w;
|
|
3124
3139
|
};
|
|
3125
|
-
oe("edit"), oe("delete"), oe("view"), oe("save"), oe("add", !1), oe("download", !1), oe("setting", !1);
|
|
3126
|
-
const
|
|
3127
|
-
var $e, qe,
|
|
3140
|
+
oe("edit"), oe("delete"), oe("view"), oe("save"), oe("add", !1), oe("download", !1), oe("setting", !1), oe("batch", !1);
|
|
3141
|
+
const ve = (a, u, m, w) => {
|
|
3142
|
+
var $e, qe, Ie, Re, Be, We;
|
|
3128
3143
|
if (!a || !u || m == null)
|
|
3129
3144
|
return console.warn("mergeDropdown: 缺少必要的参数(row, column或index)"), {};
|
|
3130
|
-
const
|
|
3131
|
-
return ze(
|
|
3132
|
-
},
|
|
3145
|
+
const I = (($e = ae.dropdown) == null ? void 0 : $e.call(ae, a, u, m, w)) || {}, P = ((Ie = (qe = h == null ? void 0 : h.control) == null ? void 0 : qe.dropdown) == null ? void 0 : Ie.call(qe, a, u, m, w)) || {}, F = ((We = (Be = (Re = e.value) == null ? void 0 : Re.control) == null ? void 0 : Be.dropdown) == null ? void 0 : We.call(Be, a, u, m, w)) || {};
|
|
3146
|
+
return ze(I, P, F) || {};
|
|
3147
|
+
}, ke = {
|
|
3133
3148
|
type: "hidden",
|
|
3134
3149
|
"min-width": 100,
|
|
3135
3150
|
align: "center",
|
|
3136
|
-
formatter: (a, u, m,
|
|
3137
|
-
"tooltip-formatter": ({ row: a, column: u, cellValue: m }) =>
|
|
3151
|
+
formatter: (a, u, m, w) => m,
|
|
3152
|
+
"tooltip-formatter": ({ row: a, column: u, cellValue: m }) => we(za, { content: m, column: u })
|
|
3138
3153
|
};
|
|
3139
3154
|
e.value.tableColumns = ze(
|
|
3140
|
-
|
|
3155
|
+
ke,
|
|
3141
3156
|
h == null ? void 0 : h.tableColumns,
|
|
3142
|
-
(
|
|
3157
|
+
(Pe = e.value) == null ? void 0 : Pe.tableColumns
|
|
3143
3158
|
), e.value.form = ze(
|
|
3144
3159
|
ul,
|
|
3145
3160
|
h == null ? void 0 : h.form,
|
|
3146
|
-
(
|
|
3161
|
+
(Ne = e.value) == null ? void 0 : Ne.form
|
|
3147
3162
|
);
|
|
3148
|
-
const
|
|
3163
|
+
const Ve = {
|
|
3149
3164
|
type: "hidden",
|
|
3150
3165
|
labelPosition: "right",
|
|
3151
3166
|
style: {
|
|
@@ -3153,11 +3168,11 @@ const Ra = /* @__PURE__ */ nl(Ya), Ha = { class: "g-table-container" }, Ba = {
|
|
|
3153
3168
|
}
|
|
3154
3169
|
};
|
|
3155
3170
|
e.value.formItems = ze(
|
|
3156
|
-
|
|
3171
|
+
Ve,
|
|
3157
3172
|
h == null ? void 0 : h.formItems,
|
|
3158
|
-
(
|
|
3173
|
+
(je = e == null ? void 0 : e.value) == null ? void 0 : je.formItems
|
|
3159
3174
|
);
|
|
3160
|
-
const
|
|
3175
|
+
const xe = {
|
|
3161
3176
|
title: "编辑",
|
|
3162
3177
|
mode: "drawer",
|
|
3163
3178
|
type: "hidden",
|
|
@@ -3170,129 +3185,131 @@ const Ra = /* @__PURE__ */ nl(Ya), Ha = { class: "g-table-container" }, Ba = {
|
|
|
3170
3185
|
overflow: !0
|
|
3171
3186
|
};
|
|
3172
3187
|
e.value.dialog = ze(
|
|
3173
|
-
|
|
3188
|
+
xe,
|
|
3174
3189
|
h == null ? void 0 : h.dialog,
|
|
3175
|
-
(
|
|
3190
|
+
(gt = e.value) == null ? void 0 : gt.dialog
|
|
3176
3191
|
);
|
|
3177
|
-
const
|
|
3192
|
+
const ee = (a, u) => {
|
|
3178
3193
|
let m = u;
|
|
3179
3194
|
if (a.precision && !isNaN(parseFloat(u)) && (typeof a.precision == "number" ? m = parseFloat(m).toFixed(a.precision) : typeof a.precision == "object" && a.precision.num && (a.precision.pad ? m = parseFloat(m).toFixed(a.precision.num) : m = parseFloat(
|
|
3180
3195
|
parseFloat(m).toFixed(a.precision.num)
|
|
3181
|
-
).toString())), ["date", "datetime", "time", "time-select"].includes(a.type) &&
|
|
3182
|
-
const
|
|
3196
|
+
).toString())), ["date", "datetime", "time", "time-select"].includes(a.type) && Dt(u).isValid()) {
|
|
3197
|
+
const I = {
|
|
3183
3198
|
date: "YYYY-MM-DD",
|
|
3184
3199
|
datetime: "YYYY-MM-DD HH:mm:ss",
|
|
3185
3200
|
time: "HH:mm:ss"
|
|
3186
3201
|
};
|
|
3187
|
-
m = a.format ?
|
|
3202
|
+
m = a.format ? Dt(m).format(a.format) : Dt(m).format(I[a.type]);
|
|
3188
3203
|
}
|
|
3189
|
-
return a.type === "money" && (a.align = a.align || "right", a.width = a.width || 130, m = `<span title="${
|
|
3204
|
+
return a.type === "money" && (a.align = a.align || "right", a.width = a.width || 130, m = `<span title="${zt(
|
|
3190
3205
|
parseFloat(m)
|
|
3191
3206
|
)}">${ir(parseFloat(m), (a == null ? void 0 : a.precision) || 2, (a == null ? void 0 : a.removeZero) || !1)}</span>`), a.prefix && m && (m = `<span>${a.prefix}${m}</span>`), a.suffix && m && (m = `${m}<span>${a.suffix}</span>`), m;
|
|
3192
|
-
}, te = (a) => {
|
|
3193
|
-
f.value = Object.fromEntries(S), e.value.table.load();
|
|
3194
3207
|
}, ue = (a) => {
|
|
3208
|
+
f.value = Object.fromEntries(S), e.value.table.load();
|
|
3209
|
+
}, Te = (a) => {
|
|
3195
3210
|
f.value = a, e.value.table.load();
|
|
3196
|
-
},
|
|
3197
|
-
var m,
|
|
3211
|
+
}, T = async (a = x.value, u) => {
|
|
3212
|
+
var m, w;
|
|
3198
3213
|
e.value.form.modalState = "add", l.value = "add";
|
|
3199
3214
|
try {
|
|
3200
3215
|
if (!await ((m = e.value.control) == null ? void 0 : m.validate("add", { row: x.value, m: u }))) return;
|
|
3201
|
-
} catch (
|
|
3202
|
-
console.error("验证失败:",
|
|
3216
|
+
} catch (I) {
|
|
3217
|
+
console.error("验证失败:", I);
|
|
3203
3218
|
return;
|
|
3204
3219
|
}
|
|
3205
|
-
(
|
|
3206
|
-
e.value[
|
|
3220
|
+
(w = e.value.control.add(x.value, u)) != null && w.click ? e.value.control.add(x.value, u).click(x.value, u) : e.value.control.add(x.value, u).inline === !0 ? (e.value.table.data.unshift({ ...x.value }), n("open", "row-add", { row: x.value })) : (e.value.form.disabled = !1, e.value.dialog.mode = e.value.control.add(x.value, u).mode, e.value.dialog.title = e.value.control.add(x.value, u).title || e.value.control.add(x.value, u).label || "新增", Object.keys(x.value).forEach((I) => {
|
|
3221
|
+
e.value[I] && (e.value[I].value = x.value[I]);
|
|
3207
3222
|
}), c.value = !0, n("open", "add", { row: x.value, m: u }), mt());
|
|
3208
|
-
},
|
|
3209
|
-
|
|
3223
|
+
}, k = () => {
|
|
3224
|
+
n("batch", j.value);
|
|
3225
|
+
}, b = async (a, u, m, w) => {
|
|
3226
|
+
var I, P;
|
|
3210
3227
|
e.value.form.modalState = "edit", l.value = "edit";
|
|
3211
3228
|
try {
|
|
3212
|
-
if (!await ((
|
|
3213
|
-
} catch (
|
|
3214
|
-
console.error("验证失败:",
|
|
3229
|
+
if (!await ((I = e.value.control) == null ? void 0 : I.validate("edit", { row: a, column: u, index: m, m: w }))) return;
|
|
3230
|
+
} catch (F) {
|
|
3231
|
+
console.error("验证失败:", F);
|
|
3215
3232
|
return;
|
|
3216
3233
|
}
|
|
3217
|
-
(
|
|
3218
|
-
e.value[
|
|
3219
|
-
}), c.value = !0, n("open", "edit", { m:
|
|
3220
|
-
},
|
|
3221
|
-
var
|
|
3234
|
+
(P = e.value.control.edit(a, u, m, w)) != null && P.click ? e.value.control.edit(a, u, m, w).click(a, u, m, w) : (e.value.form.disabled = !1, e.value.dialog.mode = e.value.control.edit(a, u, m, w).mode, e.value.dialog.title = e.value.control.edit(a, u, m, w).title || e.value.control.edit(a, u, m, w).label || "编辑", Object.keys(a).forEach((F) => {
|
|
3235
|
+
e.value[F] && (e.value[F].value = a[F]);
|
|
3236
|
+
}), c.value = !0, n("open", "edit", { m: w, row: a, column: u, index: m }), mt());
|
|
3237
|
+
}, i = async (a, u, m, w) => {
|
|
3238
|
+
var I, P;
|
|
3222
3239
|
try {
|
|
3223
|
-
if (!await ((
|
|
3224
|
-
} catch (
|
|
3225
|
-
console.error("验证失败:",
|
|
3240
|
+
if (!await ((I = e.value.control) == null ? void 0 : I.validate("delete", { row: a, column: u, index: m, m: w }))) return;
|
|
3241
|
+
} catch (F) {
|
|
3242
|
+
console.error("验证失败:", F);
|
|
3226
3243
|
return;
|
|
3227
3244
|
}
|
|
3228
|
-
if ((
|
|
3229
|
-
e.value.control.delete(a, u, m,
|
|
3245
|
+
if ((P = e.value.control.delete(a, u, m, w)) != null && P.click)
|
|
3246
|
+
e.value.control.delete(a, u, m, w).click(a, u, m, w);
|
|
3230
3247
|
else {
|
|
3231
|
-
let { message:
|
|
3232
|
-
|
|
3248
|
+
let { message: F, title: $e, options: qe } = e.value.control.delete(a, u, m, w).dialog;
|
|
3249
|
+
Gt.confirm(F, $e, qe).then(() => {
|
|
3233
3250
|
n(
|
|
3234
3251
|
"delete",
|
|
3235
|
-
{ row: a, column: u, index: m, m:
|
|
3236
|
-
(
|
|
3237
|
-
|
|
3252
|
+
{ row: a, column: u, index: m, m: w },
|
|
3253
|
+
(Ie = !0, Re = !1) => {
|
|
3254
|
+
Ie && (e.value.table.data.splice(m, 1), e.value.table.page.total--), Re && e.value.table.load();
|
|
3238
3255
|
}
|
|
3239
3256
|
);
|
|
3240
3257
|
}).catch(() => {
|
|
3241
3258
|
});
|
|
3242
3259
|
}
|
|
3243
|
-
},
|
|
3244
|
-
var
|
|
3260
|
+
}, D = async (a, u, m, w) => {
|
|
3261
|
+
var I, P;
|
|
3245
3262
|
e.value.form.modalState = void 0, l.value = "view";
|
|
3246
3263
|
try {
|
|
3247
|
-
if (!await ((
|
|
3248
|
-
} catch (
|
|
3249
|
-
console.error("验证失败:",
|
|
3264
|
+
if (!await ((I = e.value.control) == null ? void 0 : I.validate("view", { row: a, column: u, index: m, m: w }))) return;
|
|
3265
|
+
} catch (F) {
|
|
3266
|
+
console.error("验证失败:", F);
|
|
3250
3267
|
return;
|
|
3251
3268
|
}
|
|
3252
|
-
(
|
|
3253
|
-
e.value[
|
|
3254
|
-
}), c.value = !0, n("open", "view", { m:
|
|
3255
|
-
},
|
|
3269
|
+
(P = e.value.control.view(a, u, m, w)) != null && P.click ? e.value.control.view(a, u, m, w).click(a, u, m, w) : (e.value.form.disabled = !0, e.value.dialog.mode = e.value.control.view(a, u, m, w).mode, e.value.dialog.title = e.value.control.view(a, u, m, w).title || e.value.control.view(a, u, m, w).label || "查看", Object.keys(a).forEach((F) => {
|
|
3270
|
+
e.value[F] && (e.value[F].value = a[F]);
|
|
3271
|
+
}), c.value = !0, n("open", "view", { m: w, row: a, column: u, index: m }), mt());
|
|
3272
|
+
}, _ = (a, u = x.value) => {
|
|
3256
3273
|
Object.assign(a, u);
|
|
3257
|
-
},
|
|
3258
|
-
const
|
|
3259
|
-
|
|
3274
|
+
}, q = (a, u, m, w) => {
|
|
3275
|
+
const I = e.value.control.save(a, u, m, w);
|
|
3276
|
+
I != null && I.click ? I.click(a, u, m, w) : n(
|
|
3260
3277
|
"row-save",
|
|
3261
3278
|
{ row: a, column: u, index: m, data: e.value.table.data },
|
|
3262
|
-
async (
|
|
3263
|
-
if (
|
|
3279
|
+
async (P = !0, F = !0) => {
|
|
3280
|
+
if (P && e.value.table.load(), F && m === 0) {
|
|
3264
3281
|
const $e = Object.entries(e.value).filter(
|
|
3265
|
-
([qe,
|
|
3282
|
+
([qe, Ie]) => Ie.type !== "control" && Ie.type !== "hidden"
|
|
3266
3283
|
// && val.editor !== false
|
|
3267
3284
|
);
|
|
3268
3285
|
x.value = Object.fromEntries(
|
|
3269
|
-
$e.map(([qe,
|
|
3286
|
+
$e.map(([qe, Ie]) => [qe, Ie.value])
|
|
3270
3287
|
), e.value.table.data[m] = { ...x.value };
|
|
3271
3288
|
}
|
|
3272
3289
|
}
|
|
3273
3290
|
);
|
|
3274
|
-
},
|
|
3275
|
-
n("submit", e.value.form.modalState, a, u, (
|
|
3276
|
-
|
|
3291
|
+
}, E = dr((a, u, m) => {
|
|
3292
|
+
n("submit", e.value.form.modalState, a, u, (w) => {
|
|
3293
|
+
w && (m === 1 && (c.value = !1), _(a), u.table.load());
|
|
3277
3294
|
});
|
|
3278
|
-
}, 300),
|
|
3279
|
-
|
|
3280
|
-
},
|
|
3281
|
-
var
|
|
3282
|
-
if ((
|
|
3295
|
+
}, 300), Q = (a, u) => {
|
|
3296
|
+
_(a), n("reset", a, u);
|
|
3297
|
+
}, se = (a, u, m) => {
|
|
3298
|
+
var w;
|
|
3299
|
+
if ((w = u.control.download(a, u)) != null && w.click)
|
|
3283
3300
|
u.control.download(a, u).click(a, u, m);
|
|
3284
3301
|
else {
|
|
3285
|
-
let
|
|
3302
|
+
let I = At(
|
|
3286
3303
|
{
|
|
3287
3304
|
title: u.control.download(a, u).title || u.control.download(a, u).label || "下载",
|
|
3288
3305
|
size: u.control.download(a, u).size || 480,
|
|
3289
3306
|
width: u.control.download(a, u).width || 600,
|
|
3290
3307
|
slots: {
|
|
3291
|
-
default: () =>
|
|
3308
|
+
default: () => we(ma, {
|
|
3292
3309
|
items: m,
|
|
3293
3310
|
commitText: u.control.download(a, u).excelLabel,
|
|
3294
|
-
onExcel: (
|
|
3295
|
-
n("download",
|
|
3311
|
+
onExcel: (P, F) => {
|
|
3312
|
+
n("download", P, f.value, F), I();
|
|
3296
3313
|
}
|
|
3297
3314
|
})
|
|
3298
3315
|
}
|
|
@@ -3300,116 +3317,117 @@ const Ra = /* @__PURE__ */ nl(Ya), Ha = { class: "g-table-container" }, Ba = {
|
|
|
3300
3317
|
u.control.download(a, u).mode
|
|
3301
3318
|
);
|
|
3302
3319
|
}
|
|
3303
|
-
},
|
|
3320
|
+
}, pe = (a, u) => {
|
|
3304
3321
|
var m;
|
|
3305
|
-
(m = u.control.setting(a, u)) != null && m.click ? u.control.setting(a, u).click(a, u) :
|
|
3322
|
+
(m = u.control.setting(a, u)) != null && m.click ? u.control.setting(a, u).click(a, u) : At(
|
|
3306
3323
|
{
|
|
3307
3324
|
title: u.control.setting(a, u).title || u.control.setting(a, u).label || "设置",
|
|
3308
3325
|
size: u.control.setting(a, u).size || 470,
|
|
3309
3326
|
width: u.control.setting(a, u).width || 600,
|
|
3310
3327
|
slots: {
|
|
3311
|
-
default: () =>
|
|
3328
|
+
default: () => we(Ia, {
|
|
3312
3329
|
modelValue: u,
|
|
3313
3330
|
tuid: z.value,
|
|
3314
3331
|
onSettingDragEnd: async () => {
|
|
3315
|
-
await
|
|
3332
|
+
await _e(z.value);
|
|
3316
3333
|
},
|
|
3317
|
-
onSelectAll: async (
|
|
3318
|
-
await
|
|
3334
|
+
onSelectAll: async (w) => {
|
|
3335
|
+
await _e(z.value);
|
|
3319
3336
|
}
|
|
3320
3337
|
})
|
|
3321
3338
|
}
|
|
3322
3339
|
},
|
|
3323
3340
|
u.control.setting(a, u).mode
|
|
3324
3341
|
);
|
|
3325
|
-
},
|
|
3326
|
-
add:
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
|
|
3342
|
+
}, Y = e.value.control, B = {
|
|
3343
|
+
add: T,
|
|
3344
|
+
batch: k,
|
|
3345
|
+
download: se,
|
|
3346
|
+
setting: pe,
|
|
3347
|
+
view: D,
|
|
3348
|
+
edit: b,
|
|
3349
|
+
delete: i,
|
|
3350
|
+
save: q
|
|
3351
|
+
}, Ee = (a, u, m, w, I) => a.filter((P) => B[P]).map((P) => {
|
|
3352
|
+
const F = Y == null ? void 0 : Y[P](u, m, w, I);
|
|
3335
3353
|
return {
|
|
3336
|
-
name: `control-${
|
|
3337
|
-
attr:
|
|
3338
|
-
func:
|
|
3339
|
-
label:
|
|
3340
|
-
sort: (
|
|
3341
|
-
groupName: (
|
|
3354
|
+
name: `control-${P}`,
|
|
3355
|
+
attr: F,
|
|
3356
|
+
func: B[P],
|
|
3357
|
+
label: F == null ? void 0 : F.label,
|
|
3358
|
+
sort: (F == null ? void 0 : F.sort) || 0,
|
|
3359
|
+
groupName: (F == null ? void 0 : F.groupName) || "default"
|
|
3342
3360
|
};
|
|
3343
|
-
}).sort((
|
|
3344
|
-
const $e =
|
|
3345
|
-
return
|
|
3346
|
-
}, {}),
|
|
3361
|
+
}).sort((P, F) => P.sort - F.sort), he = (a, u, m, w, I) => Ee(a, u, m, w, I).reduce((P, F) => {
|
|
3362
|
+
const $e = F.groupName || "default";
|
|
3363
|
+
return P[$e] || (P[$e] = []), P[$e].push(F), P;
|
|
3364
|
+
}, {}), Ue = Je(() => Object.fromEntries(
|
|
3347
3365
|
Object.entries(e.value).filter(
|
|
3348
3366
|
([a, u]) => u.type !== "hidden" && u.hidden !== !0 && u.visible !== !1 && u.showCol !== !1
|
|
3349
3367
|
).map(([a, u]) => (u.sort = typeof u.sort == "number" ? u.sort : 0, [a, u])).sort((a, u) => a[1].sort - u[1].sort)
|
|
3350
|
-
)),
|
|
3351
|
-
const m = (
|
|
3352
|
-
for (const
|
|
3353
|
-
if (
|
|
3354
|
-
if (
|
|
3355
|
-
const
|
|
3356
|
-
if (
|
|
3368
|
+
)), De = re({}), Me = (a, u) => {
|
|
3369
|
+
const m = (w, I) => {
|
|
3370
|
+
for (const P of w) {
|
|
3371
|
+
if (P.value == I) return P.label;
|
|
3372
|
+
if (P.children) {
|
|
3373
|
+
const F = m(P.children, I);
|
|
3374
|
+
if (F) return F;
|
|
3357
3375
|
}
|
|
3358
3376
|
}
|
|
3359
3377
|
return null;
|
|
3360
3378
|
};
|
|
3361
3379
|
if (a.getDicts) {
|
|
3362
|
-
const
|
|
3363
|
-
return
|
|
3364
|
-
|
|
3380
|
+
const w = u.toString();
|
|
3381
|
+
return De.value[w] ? (a.options = De.value[w], a.formatter || (a.formatter = (I, P, F, $e) => a.options && m(a.options, F) || F), Promise.resolve()) : a.getDicts(e.value.table.data).then((I) => {
|
|
3382
|
+
De.value[w] = I, a.options = I, a.formatter || (a.formatter = (P, F, $e, qe) => a.options && m(a.options, $e) || $e);
|
|
3365
3383
|
});
|
|
3366
3384
|
}
|
|
3367
3385
|
return Promise.resolve();
|
|
3368
|
-
},
|
|
3386
|
+
}, A = async () => {
|
|
3369
3387
|
try {
|
|
3370
3388
|
const u = Object.keys(e.value).filter((m) => e.value[m].getDicts).map(
|
|
3371
|
-
(m) =>
|
|
3389
|
+
(m) => Me(e.value[m], m)
|
|
3372
3390
|
);
|
|
3373
3391
|
await Promise.all(u);
|
|
3374
3392
|
} catch (a) {
|
|
3375
3393
|
console.error("字典加载过程中发生错误:", a);
|
|
3376
3394
|
}
|
|
3377
|
-
},
|
|
3378
|
-
var
|
|
3379
|
-
return a.table ? (
|
|
3380
|
-
},
|
|
3395
|
+
}, M = (a, u, m, w) => {
|
|
3396
|
+
var I, P;
|
|
3397
|
+
return a.table ? (I = a.table(u, m, w)) != null && I.auth ? (P = a.table(u, m, w)) == null ? void 0 : P.auth(u, m, w) : !0 : !1;
|
|
3398
|
+
}, W = () => {
|
|
3381
3399
|
c.value = !1;
|
|
3382
3400
|
};
|
|
3383
3401
|
wl(() => {
|
|
3384
3402
|
e.value.table.autoWatch && e.value.table.load();
|
|
3385
3403
|
});
|
|
3386
|
-
const
|
|
3404
|
+
const _e = async () => {
|
|
3387
3405
|
try {
|
|
3388
3406
|
const [a, u, m] = await Promise.all([
|
|
3389
3407
|
ba(z.value),
|
|
3390
3408
|
Sa(z.value),
|
|
3391
3409
|
$a(z.value)
|
|
3392
3410
|
]);
|
|
3393
|
-
a && Array.isArray(a) && a.forEach((
|
|
3394
|
-
const
|
|
3395
|
-
|
|
3396
|
-
}), u && Array.isArray(u) && u.forEach((
|
|
3397
|
-
const
|
|
3398
|
-
|
|
3399
|
-
}), m && Array.isArray(m) && m.length > 0 ? m.forEach((
|
|
3400
|
-
const
|
|
3401
|
-
|
|
3402
|
-
}) : Object.keys(e.value).filter((
|
|
3403
|
-
e.value[
|
|
3411
|
+
a && Array.isArray(a) && a.forEach((w) => {
|
|
3412
|
+
const I = e.value[w.key];
|
|
3413
|
+
I && (I.width = w.width);
|
|
3414
|
+
}), u && Array.isArray(u) && u.forEach((w, I) => {
|
|
3415
|
+
const P = e.value[w];
|
|
3416
|
+
P && (P.sort = I);
|
|
3417
|
+
}), m && Array.isArray(m) && m.length > 0 ? m.forEach((w) => {
|
|
3418
|
+
const I = e.value[w];
|
|
3419
|
+
I && (I.showCol = !1);
|
|
3420
|
+
}) : Object.keys(e.value).filter((w) => e.value[w].type !== "control").forEach((w) => {
|
|
3421
|
+
e.value[w].showCol = !0;
|
|
3404
3422
|
});
|
|
3405
3423
|
} catch (a) {
|
|
3406
3424
|
console.error("加载表格信息时出错:", a), Object.keys(e.value).filter((u) => e.value[u].type !== "control").forEach((u) => {
|
|
3407
3425
|
e.value[u].showCol === void 0 && (e.value[u].showCol = !0);
|
|
3408
3426
|
});
|
|
3409
3427
|
}
|
|
3410
|
-
},
|
|
3428
|
+
}, Ae = () => Ya(Object.keys(e.value).toString()).toUpperCase().substring(8, 24);
|
|
3411
3429
|
return kl(() => {
|
|
3412
|
-
z.value =
|
|
3430
|
+
z.value = Ae();
|
|
3413
3431
|
}), yt(async () => {
|
|
3414
3432
|
try {
|
|
3415
3433
|
o.value = Object.entries(e.value).filter(
|
|
@@ -3424,15 +3442,15 @@ const Ra = /* @__PURE__ */ nl(Ya), Ha = { class: "g-table-container" }, Ba = {
|
|
|
3424
3442
|
);
|
|
3425
3443
|
x.value = Object.fromEntries(
|
|
3426
3444
|
a.map(([u, m]) => [u, m.value])
|
|
3427
|
-
), await
|
|
3445
|
+
), await _e(), e.value.table.autoWatch || e.value.table.load();
|
|
3428
3446
|
} catch (a) {
|
|
3429
3447
|
console.error("Error during component initialization:", a), e.value.table.autoWatch || e.value.table.load();
|
|
3430
3448
|
}
|
|
3431
|
-
}), s({ addRow:
|
|
3432
|
-
var
|
|
3433
|
-
const m = N("el-button-group"),
|
|
3434
|
-
return p(),
|
|
3435
|
-
c.value ? (p(), O(
|
|
3449
|
+
}), s({ addRow: T, editRow: b, deleteRow: i, readForm: D, saveRowData: q, closeDialog: W, formData: x }), (a, u) => {
|
|
3450
|
+
var Ie, Re, Be, We, it, bt, $t;
|
|
3451
|
+
const m = N("el-button-group"), w = N("el-dropdown-item"), I = N("el-dropdown-menu"), P = N("el-dropdown"), F = N("el-table-column"), $e = N("el-table"), qe = N("el-pagination");
|
|
3452
|
+
return p(), R(le, null, [
|
|
3453
|
+
c.value ? (p(), O(Ut, L({
|
|
3436
3454
|
key: 0,
|
|
3437
3455
|
modelValue: c.value,
|
|
3438
3456
|
"onUpdate:modelValue": u[2] || (u[2] = (K) => c.value = K)
|
|
@@ -3440,18 +3458,18 @@ const Ra = /* @__PURE__ */ nl(Ya), Ha = { class: "g-table-container" }, Ba = {
|
|
|
3440
3458
|
type: e.value.dialog.mode
|
|
3441
3459
|
}), ge({
|
|
3442
3460
|
default: $(() => [
|
|
3443
|
-
c.value ? (p(), O(
|
|
3461
|
+
c.value ? (p(), O(Xe(sl), {
|
|
3444
3462
|
key: 0,
|
|
3445
3463
|
modelValue: e.value,
|
|
3446
3464
|
"onUpdate:modelValue": u[0] || (u[0] = (K) => e.value = K),
|
|
3447
|
-
onSubmit: u[1] || (u[1] = (K, me,
|
|
3448
|
-
onReset:
|
|
3465
|
+
onSubmit: u[1] || (u[1] = (K, me, V) => H(E)(K, me, V)),
|
|
3466
|
+
onReset: Q,
|
|
3449
3467
|
flag: l.value
|
|
3450
3468
|
}, ge({ _: 2 }, [
|
|
3451
|
-
|
|
3469
|
+
X(a.$slots, (K, me, V) => ({
|
|
3452
3470
|
name: me,
|
|
3453
|
-
fn: $((
|
|
3454
|
-
C(a.$slots, me, { model:
|
|
3471
|
+
fn: $((te) => [
|
|
3472
|
+
C(a.$slots, me, { model: te }, void 0, !0)
|
|
3455
3473
|
])
|
|
3456
3474
|
}))
|
|
3457
3475
|
]), 1064, ["modelValue", "flag"])) : be("", !0)
|
|
@@ -3482,7 +3500,7 @@ const Ra = /* @__PURE__ */ nl(Ya), Ha = { class: "g-table-container" }, Ba = {
|
|
|
3482
3500
|
]),
|
|
3483
3501
|
key: "2"
|
|
3484
3502
|
} : void 0,
|
|
3485
|
-
((
|
|
3503
|
+
((Re = (Ie = e.value) == null ? void 0 : Ie.dialog) == null ? void 0 : Re.type) === "drawer" && a.$slots.trigger ? {
|
|
3486
3504
|
name: "trigger",
|
|
3487
3505
|
fn: $(() => [
|
|
3488
3506
|
C(a.$slots, "trigger", {}, void 0, !0)
|
|
@@ -3491,63 +3509,74 @@ const Ra = /* @__PURE__ */ nl(Ya), Ha = { class: "g-table-container" }, Ba = {
|
|
|
3491
3509
|
} : void 0
|
|
3492
3510
|
]), 1040, ["modelValue", "type"])) : be("", !0),
|
|
3493
3511
|
Z("div", Ha, [
|
|
3494
|
-
((
|
|
3512
|
+
((We = (Be = e.value) == null ? void 0 : Be.query) == null ? void 0 : We.hidden) != !0 ? (p(), R("div", Ba, [
|
|
3495
3513
|
C(a.$slots, "query", {}, () => [
|
|
3496
|
-
|
|
3514
|
+
ie(ta, {
|
|
3497
3515
|
modelValue: e.value,
|
|
3498
3516
|
"onUpdate:modelValue": u[3] || (u[3] = (K) => e.value = K),
|
|
3499
3517
|
info: f.value,
|
|
3500
3518
|
"onUpdate:info": u[4] || (u[4] = (K) => f.value = K),
|
|
3501
|
-
onQuery:
|
|
3502
|
-
onReset:
|
|
3519
|
+
onQuery: Te,
|
|
3520
|
+
onReset: ue
|
|
3503
3521
|
}, ge({
|
|
3504
3522
|
"q-btns": $(() => [
|
|
3505
3523
|
C(a.$slots, "q-btns", {}, () => [
|
|
3506
|
-
(p(!0),
|
|
3507
|
-
me == "default" ? (p(!0),
|
|
3508
|
-
C(a.$slots,
|
|
3509
|
-
(
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
-
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
|
|
3527
|
-
|
|
3524
|
+
(p(!0), R(le, null, X(he(["add", "batch", "download", "setting"], x.value, e.value), (K, me) => (p(), R(le, null, [
|
|
3525
|
+
me == "default" ? (p(!0), R(le, { key: 0 }, X(K, (V) => (p(), R(le, null, [
|
|
3526
|
+
C(a.$slots, V.name + "-left", {}, void 0, !0),
|
|
3527
|
+
(V.name === "control-add" ? V.attr.auth() && V.attr.inline === !1 : V.attr.auth()) ? C(a.$slots, V.name, { key: 0 }, () => {
|
|
3528
|
+
var te, ne;
|
|
3529
|
+
return [
|
|
3530
|
+
V.label ? (p(), O(H(Fe), L({
|
|
3531
|
+
key: 0,
|
|
3532
|
+
title: V.label,
|
|
3533
|
+
disabled: V.name === "control-batch" && ((te = j.value) == null ? void 0 : te.length) === 0
|
|
3534
|
+
}, { ref_for: !0 }, V.attr, {
|
|
3535
|
+
onClick: (Ge) => V.func(x.value, e.value, o.value)
|
|
3536
|
+
}), {
|
|
3537
|
+
default: $(() => [
|
|
3538
|
+
Le(Se(V.label), 1)
|
|
3539
|
+
]),
|
|
3540
|
+
_: 2
|
|
3541
|
+
}, 1040, ["title", "disabled", "onClick"])) : (p(), O(H(Fe), L({
|
|
3542
|
+
key: 1,
|
|
3543
|
+
title: V.label,
|
|
3544
|
+
disabled: V.name === "control-batch" && ((ne = j.value) == null ? void 0 : ne.length) === 0
|
|
3545
|
+
}, { ref_for: !0 }, V.attr, {
|
|
3546
|
+
onClick: (Ge) => V.func(x.value, e.value, o.value)
|
|
3547
|
+
}), null, 16, ["title", "disabled", "onClick"]))
|
|
3548
|
+
];
|
|
3549
|
+
}, !0) : be("", !0),
|
|
3550
|
+
C(a.$slots, V.name + "-right", {}, void 0, !0)
|
|
3528
3551
|
], 64))), 256)) : (p(), O(m, { key: 1 }, {
|
|
3529
3552
|
default: $(() => [
|
|
3530
|
-
(p(!0),
|
|
3531
|
-
C(a.$slots,
|
|
3532
|
-
(
|
|
3533
|
-
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
|
|
3543
|
-
|
|
3544
|
-
|
|
3545
|
-
|
|
3546
|
-
|
|
3547
|
-
onClick: (
|
|
3548
|
-
|
|
3549
|
-
|
|
3550
|
-
|
|
3553
|
+
(p(!0), R(le, null, X(K, (V) => (p(), R(le, null, [
|
|
3554
|
+
C(a.$slots, V.name + "-left", {}, void 0, !0),
|
|
3555
|
+
(V.name === "control-add" ? V.attr.auth() && V.attr.inline === !1 : V.attr.auth()) ? C(a.$slots, V.name, { key: 0 }, () => {
|
|
3556
|
+
var te, ne;
|
|
3557
|
+
return [
|
|
3558
|
+
V.label ? (p(), O(H(Fe), L({
|
|
3559
|
+
key: 0,
|
|
3560
|
+
title: V.label,
|
|
3561
|
+
disabled: V.name === "control-batch" && ((te = j.value) == null ? void 0 : te.length) === 0,
|
|
3562
|
+
v: ""
|
|
3563
|
+
}, { ref_for: !0 }, V.attr, {
|
|
3564
|
+
onClick: (Ge) => V.func(x.value, e.value, o.value)
|
|
3565
|
+
}), {
|
|
3566
|
+
default: $(() => [
|
|
3567
|
+
Le(Se(V.label), 1)
|
|
3568
|
+
]),
|
|
3569
|
+
_: 2
|
|
3570
|
+
}, 1040, ["title", "disabled", "onClick"])) : (p(), O(H(Fe), L({
|
|
3571
|
+
key: 1,
|
|
3572
|
+
title: V.label,
|
|
3573
|
+
disabled: V.name === "control-batch" && ((ne = j.value) == null ? void 0 : ne.length) === 0
|
|
3574
|
+
}, { ref_for: !0 }, V.attr, {
|
|
3575
|
+
onClick: (Ge) => V.func(x.value, e.value, o.value)
|
|
3576
|
+
}), null, 16, ["title", "disabled", "onClick"]))
|
|
3577
|
+
];
|
|
3578
|
+
}, !0) : be("", !0),
|
|
3579
|
+
C(a.$slots, V.name + "-right", {}, void 0, !0)
|
|
3551
3580
|
], 64))), 256))
|
|
3552
3581
|
]),
|
|
3553
3582
|
_: 2
|
|
@@ -3557,9 +3586,9 @@ const Ra = /* @__PURE__ */ nl(Ya), Ha = { class: "g-table-container" }, Ba = {
|
|
|
3557
3586
|
]),
|
|
3558
3587
|
_: 2
|
|
3559
3588
|
}, [
|
|
3560
|
-
|
|
3589
|
+
X(a.$slots, (K, me, V) => ({
|
|
3561
3590
|
name: me,
|
|
3562
|
-
fn: $((
|
|
3591
|
+
fn: $((te) => [
|
|
3563
3592
|
C(a.$slots, me, { model: e.value }, void 0, !0)
|
|
3564
3593
|
])
|
|
3565
3594
|
}))
|
|
@@ -3571,17 +3600,17 @@ const Ra = /* @__PURE__ */ nl(Ya), Ha = { class: "g-table-container" }, Ba = {
|
|
|
3571
3600
|
queryInfo: f.value
|
|
3572
3601
|
}, void 0, !0),
|
|
3573
3602
|
Z("div", Pa, [
|
|
3574
|
-
|
|
3603
|
+
ie($e, L({
|
|
3575
3604
|
...a.$attrs,
|
|
3576
|
-
...
|
|
3605
|
+
...H(Ke)(
|
|
3577
3606
|
e.value.table,
|
|
3578
3607
|
(K) => !["dblclickType", "page"].includes(K)
|
|
3579
3608
|
)
|
|
3580
3609
|
}, {
|
|
3581
3610
|
"summary-method": (K) => e.value.table["summary-method"](K, { fields: J.value, sums: g.value }),
|
|
3582
3611
|
onSortChange: u[5] || (u[5] = (K) => {
|
|
3583
|
-
var me,
|
|
3584
|
-
e.value.table.onSortChange(K, f.value), ((me = K == null ? void 0 : K.column) == null ? void 0 : me.sortable) === "custom" && ((
|
|
3612
|
+
var me, V;
|
|
3613
|
+
e.value.table.onSortChange(K, f.value), ((me = K == null ? void 0 : K.column) == null ? void 0 : me.sortable) === "custom" && ((V = e.value.table) == null || V.load());
|
|
3585
3614
|
})
|
|
3586
3615
|
}), {
|
|
3587
3616
|
append: $(() => [
|
|
@@ -3592,148 +3621,148 @@ const Ra = /* @__PURE__ */ nl(Ya), Ha = { class: "g-table-container" }, Ba = {
|
|
|
3592
3621
|
]),
|
|
3593
3622
|
default: $(() => [
|
|
3594
3623
|
C(a.$slots, "default", {}, () => [
|
|
3595
|
-
(p(!0),
|
|
3624
|
+
(p(!0), R(le, null, X(Ue.value, (K, me) => (p(), O(F, L({
|
|
3596
3625
|
prop: me,
|
|
3597
3626
|
key: me
|
|
3598
3627
|
}, { ref_for: !0 }, {
|
|
3599
3628
|
...e.value.tableColumns,
|
|
3600
|
-
...
|
|
3629
|
+
...H(Ke)(K, (V) => v.includes(V))
|
|
3601
3630
|
}), ge({
|
|
3602
|
-
header: $(({ column:
|
|
3631
|
+
header: $(({ column: V, $index: te }) => [
|
|
3603
3632
|
me == "control" ? C(a.$slots, `${me}-header`, {
|
|
3604
3633
|
key: 0,
|
|
3605
|
-
column:
|
|
3606
|
-
index:
|
|
3634
|
+
column: V,
|
|
3635
|
+
index: te
|
|
3607
3636
|
}, () => [
|
|
3608
|
-
Z("span", null,
|
|
3637
|
+
Z("span", null, Se(V.label), 1)
|
|
3609
3638
|
], !0) : C(a.$slots, `${me}-header`, {
|
|
3610
3639
|
key: 1,
|
|
3611
|
-
column:
|
|
3612
|
-
index:
|
|
3640
|
+
column: V,
|
|
3641
|
+
index: te
|
|
3613
3642
|
}, void 0, !0)
|
|
3614
3643
|
]),
|
|
3615
|
-
"filter-icon": $((
|
|
3616
|
-
C(a.$slots, `${me}-filter-icon`, { data:
|
|
3644
|
+
"filter-icon": $((V) => [
|
|
3645
|
+
C(a.$slots, `${me}-filter-icon`, { data: V }, void 0, !0)
|
|
3617
3646
|
]),
|
|
3618
3647
|
_: 2
|
|
3619
3648
|
}, [
|
|
3620
3649
|
K.type === "expand" ? {
|
|
3621
3650
|
name: "default",
|
|
3622
|
-
fn: $(({ row:
|
|
3651
|
+
fn: $(({ row: V, column: te, $index: ne }) => [
|
|
3623
3652
|
C(a.$slots, `${me}`, {
|
|
3624
|
-
row:
|
|
3625
|
-
column:
|
|
3626
|
-
index:
|
|
3653
|
+
row: V,
|
|
3654
|
+
column: te,
|
|
3655
|
+
index: ne
|
|
3627
3656
|
}, void 0, !0)
|
|
3628
3657
|
]),
|
|
3629
3658
|
key: "0"
|
|
3630
3659
|
} : K.type == "control" ? {
|
|
3631
3660
|
name: "default",
|
|
3632
|
-
fn: $(({ row:
|
|
3633
|
-
var
|
|
3661
|
+
fn: $(({ row: V, column: te, $index: ne }) => {
|
|
3662
|
+
var Ge, ut;
|
|
3634
3663
|
return [
|
|
3635
3664
|
Z("div", {
|
|
3636
|
-
class:
|
|
3637
|
-
style:
|
|
3665
|
+
class: Qt(["control", (Ge = e.value.control) == null ? void 0 : Ge.class]),
|
|
3666
|
+
style: Ye((ut = e.value.control) == null ? void 0 : ut.style)
|
|
3638
3667
|
}, [
|
|
3639
3668
|
C(a.$slots, "control", {}, () => [
|
|
3640
3669
|
C(a.$slots, "control-left", {
|
|
3641
|
-
row:
|
|
3642
|
-
column:
|
|
3643
|
-
index:
|
|
3670
|
+
row: V,
|
|
3671
|
+
column: te,
|
|
3672
|
+
index: ne
|
|
3644
3673
|
}, void 0, !0),
|
|
3645
|
-
(p(!0),
|
|
3674
|
+
(p(!0), R(le, null, X(he(["view", "edit", "delete", "save"], V, te, ne, e.value), (lt, at) => {
|
|
3646
3675
|
var ct;
|
|
3647
|
-
return p(),
|
|
3648
|
-
|
|
3649
|
-
C(a.$slots,
|
|
3650
|
-
row:
|
|
3651
|
-
column:
|
|
3652
|
-
index:
|
|
3676
|
+
return p(), R(le, null, [
|
|
3677
|
+
at == "default" ? (p(!0), R(le, { key: 0 }, X(lt, (G) => (p(), R(le, null, [
|
|
3678
|
+
C(a.$slots, G.name + "-left", {
|
|
3679
|
+
row: V,
|
|
3680
|
+
column: te,
|
|
3681
|
+
index: ne
|
|
3653
3682
|
}, void 0, !0),
|
|
3654
|
-
|
|
3683
|
+
G.attr.auth() ? C(a.$slots, G.name, {
|
|
3655
3684
|
key: 0,
|
|
3656
|
-
row:
|
|
3657
|
-
column:
|
|
3658
|
-
index:
|
|
3685
|
+
row: V,
|
|
3686
|
+
column: te,
|
|
3687
|
+
index: ne
|
|
3659
3688
|
}, () => [
|
|
3660
|
-
|
|
3689
|
+
G.label ? (p(), O(H(Fe), L({
|
|
3661
3690
|
key: 0,
|
|
3662
|
-
title:
|
|
3663
|
-
}, { ref_for: !0 },
|
|
3664
|
-
onClick: (
|
|
3691
|
+
title: G.label
|
|
3692
|
+
}, { ref_for: !0 }, G.attr, {
|
|
3693
|
+
onClick: (rt) => G.func(V, te, ne, e.value)
|
|
3665
3694
|
}), {
|
|
3666
3695
|
default: $(() => [
|
|
3667
|
-
Le(
|
|
3696
|
+
Le(Se(G.label), 1)
|
|
3668
3697
|
]),
|
|
3669
3698
|
_: 2
|
|
3670
|
-
}, 1040, ["title", "onClick"])) : (p(), O(
|
|
3699
|
+
}, 1040, ["title", "onClick"])) : (p(), O(H(Fe), L({
|
|
3671
3700
|
key: 1,
|
|
3672
|
-
title:
|
|
3673
|
-
}, { ref_for: !0 },
|
|
3674
|
-
onClick: (
|
|
3701
|
+
title: G.label
|
|
3702
|
+
}, { ref_for: !0 }, G.attr, {
|
|
3703
|
+
onClick: (rt) => G.func(V, te, ne, e.value)
|
|
3675
3704
|
}), null, 16, ["title", "onClick"]))
|
|
3676
3705
|
], !0) : be("", !0),
|
|
3677
|
-
C(a.$slots,
|
|
3678
|
-
row:
|
|
3679
|
-
column:
|
|
3680
|
-
index:
|
|
3706
|
+
C(a.$slots, G.name + "-right", {
|
|
3707
|
+
row: V,
|
|
3708
|
+
column: te,
|
|
3709
|
+
index: ne
|
|
3681
3710
|
}, void 0, !0)
|
|
3682
|
-
], 64))), 256)) :
|
|
3711
|
+
], 64))), 256)) : at != null && at.startsWith("dropdown") && ((ct = ve(V, te, ne, e.value)) != null && ct.auth()) ? (p(), O(P, L({
|
|
3683
3712
|
key: 1,
|
|
3684
3713
|
ref_for: !0
|
|
3685
|
-
},
|
|
3714
|
+
}, ve(V, te, ne, e.value)), {
|
|
3686
3715
|
dropdown: $(() => [
|
|
3687
|
-
|
|
3716
|
+
ie(I, null, {
|
|
3688
3717
|
default: $(() => [
|
|
3689
|
-
(p(!0),
|
|
3690
|
-
var
|
|
3691
|
-
return p(),
|
|
3692
|
-
a.$slots[
|
|
3718
|
+
(p(!0), R(le, null, X(lt, (G) => {
|
|
3719
|
+
var rt, ft, vt;
|
|
3720
|
+
return p(), R(le, null, [
|
|
3721
|
+
a.$slots[G.name + "-left"] ? C(a.$slots, G.name + "-left", {
|
|
3693
3722
|
key: 0,
|
|
3694
|
-
row:
|
|
3695
|
-
column:
|
|
3696
|
-
index:
|
|
3723
|
+
row: V,
|
|
3724
|
+
column: te,
|
|
3725
|
+
index: ne
|
|
3697
3726
|
}, void 0, !0) : be("", !0),
|
|
3698
|
-
|
|
3727
|
+
G.attr.auth() ? (p(), O(w, L({
|
|
3699
3728
|
key: 1,
|
|
3700
3729
|
ref_for: !0
|
|
3701
3730
|
}, {
|
|
3702
|
-
command: (
|
|
3703
|
-
divided: (ft =
|
|
3704
|
-
disabled: (vt =
|
|
3731
|
+
command: (rt = G == null ? void 0 : G.attr) == null ? void 0 : rt.command,
|
|
3732
|
+
divided: (ft = G == null ? void 0 : G.attr) == null ? void 0 : ft.divided,
|
|
3733
|
+
disabled: (vt = G == null ? void 0 : G.attr) == null ? void 0 : vt.disabled
|
|
3705
3734
|
}), {
|
|
3706
3735
|
default: $(() => [
|
|
3707
|
-
C(a.$slots,
|
|
3708
|
-
row:
|
|
3709
|
-
column:
|
|
3710
|
-
index:
|
|
3736
|
+
C(a.$slots, G.name, {
|
|
3737
|
+
row: V,
|
|
3738
|
+
column: te,
|
|
3739
|
+
index: ne
|
|
3711
3740
|
}, () => [
|
|
3712
|
-
|
|
3741
|
+
G.label ? (p(), O(H(Fe), L({
|
|
3713
3742
|
key: 0,
|
|
3714
|
-
title:
|
|
3715
|
-
}, { ref_for: !0 },
|
|
3716
|
-
onClick: (
|
|
3743
|
+
title: G.label
|
|
3744
|
+
}, { ref_for: !0 }, G.attr, {
|
|
3745
|
+
onClick: (wt) => G.func(V, te, ne, e.value)
|
|
3717
3746
|
}), {
|
|
3718
3747
|
default: $(() => [
|
|
3719
|
-
Le(
|
|
3748
|
+
Le(Se(G.label), 1)
|
|
3720
3749
|
]),
|
|
3721
3750
|
_: 2
|
|
3722
|
-
}, 1040, ["title", "onClick"])) : (p(), O(
|
|
3751
|
+
}, 1040, ["title", "onClick"])) : (p(), O(H(Fe), L({
|
|
3723
3752
|
key: 1,
|
|
3724
|
-
title:
|
|
3725
|
-
}, { ref_for: !0 },
|
|
3726
|
-
onClick: (
|
|
3753
|
+
title: G.label
|
|
3754
|
+
}, { ref_for: !0 }, G.attr, {
|
|
3755
|
+
onClick: (wt) => G.func(V, te, ne, e.value)
|
|
3727
3756
|
}), null, 16, ["title", "onClick"]))
|
|
3728
3757
|
], !0)
|
|
3729
3758
|
]),
|
|
3730
3759
|
_: 2
|
|
3731
3760
|
}, 1040)) : be("", !0),
|
|
3732
|
-
a.$slots[
|
|
3761
|
+
a.$slots[G.name + "-right"] ? C(a.$slots, G.name + "-right", {
|
|
3733
3762
|
key: 2,
|
|
3734
|
-
row:
|
|
3735
|
-
column:
|
|
3736
|
-
index:
|
|
3763
|
+
row: V,
|
|
3764
|
+
column: te,
|
|
3765
|
+
index: ne
|
|
3737
3766
|
}, void 0, !0) : be("", !0)
|
|
3738
3767
|
], 64);
|
|
3739
3768
|
}), 256))
|
|
@@ -3742,47 +3771,47 @@ const Ra = /* @__PURE__ */ nl(Ya), Ha = { class: "g-table-container" }, Ba = {
|
|
|
3742
3771
|
}, 1024)
|
|
3743
3772
|
]),
|
|
3744
3773
|
default: $(() => {
|
|
3745
|
-
var
|
|
3774
|
+
var G;
|
|
3746
3775
|
return [
|
|
3747
|
-
Le(
|
|
3776
|
+
Le(Se((G = ve(V, te, ne, e.value)) == null ? void 0 : G.label) + " ", 1)
|
|
3748
3777
|
];
|
|
3749
3778
|
}),
|
|
3750
3779
|
_: 2
|
|
3751
3780
|
}, 1040)) : (p(), O(m, { key: 2 }, {
|
|
3752
3781
|
default: $(() => [
|
|
3753
|
-
(p(!0),
|
|
3754
|
-
C(a.$slots,
|
|
3755
|
-
row:
|
|
3756
|
-
column:
|
|
3757
|
-
index:
|
|
3782
|
+
(p(!0), R(le, null, X(lt, (G) => (p(), R(le, null, [
|
|
3783
|
+
C(a.$slots, G.name + "-left", {
|
|
3784
|
+
row: V,
|
|
3785
|
+
column: te,
|
|
3786
|
+
index: ne
|
|
3758
3787
|
}, void 0, !0),
|
|
3759
|
-
|
|
3788
|
+
G.attr.auth() ? C(a.$slots, G.name, {
|
|
3760
3789
|
key: 0,
|
|
3761
|
-
row:
|
|
3762
|
-
column:
|
|
3763
|
-
index:
|
|
3790
|
+
row: V,
|
|
3791
|
+
column: te,
|
|
3792
|
+
index: ne
|
|
3764
3793
|
}, () => [
|
|
3765
|
-
|
|
3794
|
+
G.label ? (p(), O(H(Fe), L({
|
|
3766
3795
|
key: 0,
|
|
3767
|
-
title:
|
|
3768
|
-
}, { ref_for: !0 },
|
|
3769
|
-
onClick: (
|
|
3796
|
+
title: G.label
|
|
3797
|
+
}, { ref_for: !0 }, G.attr, {
|
|
3798
|
+
onClick: (rt) => G.func(V, te, ne, e.value)
|
|
3770
3799
|
}), {
|
|
3771
3800
|
default: $(() => [
|
|
3772
|
-
Le(
|
|
3801
|
+
Le(Se(G.label), 1)
|
|
3773
3802
|
]),
|
|
3774
3803
|
_: 2
|
|
3775
|
-
}, 1040, ["title", "onClick"])) : (p(), O(
|
|
3804
|
+
}, 1040, ["title", "onClick"])) : (p(), O(H(Fe), L({
|
|
3776
3805
|
key: 1,
|
|
3777
|
-
title:
|
|
3778
|
-
}, { ref_for: !0 },
|
|
3779
|
-
onClick: (
|
|
3806
|
+
title: G.label
|
|
3807
|
+
}, { ref_for: !0 }, G.attr, {
|
|
3808
|
+
onClick: (rt) => G.func(V, te, ne, e.value)
|
|
3780
3809
|
}), null, 16, ["title", "onClick"]))
|
|
3781
3810
|
], !0) : be("", !0),
|
|
3782
|
-
C(a.$slots,
|
|
3783
|
-
row:
|
|
3784
|
-
column:
|
|
3785
|
-
index:
|
|
3811
|
+
C(a.$slots, G.name + "-right", {
|
|
3812
|
+
row: V,
|
|
3813
|
+
column: te,
|
|
3814
|
+
index: ne
|
|
3786
3815
|
}, void 0, !0)
|
|
3787
3816
|
], 64))), 256))
|
|
3788
3817
|
]),
|
|
@@ -3791,9 +3820,9 @@ const Ra = /* @__PURE__ */ nl(Ya), Ha = { class: "g-table-container" }, Ba = {
|
|
|
3791
3820
|
], 64);
|
|
3792
3821
|
}), 256)),
|
|
3793
3822
|
C(a.$slots, "control-right", {
|
|
3794
|
-
row:
|
|
3795
|
-
column:
|
|
3796
|
-
index:
|
|
3823
|
+
row: V,
|
|
3824
|
+
column: te,
|
|
3825
|
+
index: ne
|
|
3797
3826
|
}, void 0, !0)
|
|
3798
3827
|
], !0)
|
|
3799
3828
|
], 6)
|
|
@@ -3802,32 +3831,32 @@ const Ra = /* @__PURE__ */ nl(Ya), Ha = { class: "g-table-container" }, Ba = {
|
|
|
3802
3831
|
key: "1"
|
|
3803
3832
|
} : K.type != "selection" && K.type != "index" ? {
|
|
3804
3833
|
name: "default",
|
|
3805
|
-
fn: $(({ row:
|
|
3806
|
-
|
|
3834
|
+
fn: $(({ row: V, column: te, $index: ne }) => [
|
|
3835
|
+
M(K, V, te, ne) && ne != -1 ? C(a.$slots, `${me}`, {
|
|
3807
3836
|
key: 0,
|
|
3808
|
-
row:
|
|
3809
|
-
column:
|
|
3810
|
-
index:
|
|
3837
|
+
row: V,
|
|
3838
|
+
column: te,
|
|
3839
|
+
index: ne
|
|
3811
3840
|
}, () => {
|
|
3812
|
-
var
|
|
3841
|
+
var Ge;
|
|
3813
3842
|
return [
|
|
3814
|
-
(p(), O(
|
|
3815
|
-
modelValue:
|
|
3816
|
-
"onUpdate:modelValue": (
|
|
3817
|
-
item: K == null ? void 0 : K.table(
|
|
3843
|
+
(p(), O(Mt, {
|
|
3844
|
+
modelValue: V[me],
|
|
3845
|
+
"onUpdate:modelValue": (ut) => V[me] = ut,
|
|
3846
|
+
item: K == null ? void 0 : K.table(V, te, ne),
|
|
3818
3847
|
ctrlKey: me,
|
|
3819
|
-
key: `${me}-${
|
|
3820
|
-
ctrlType: (
|
|
3848
|
+
key: `${me}-${ne} -${U.value}`,
|
|
3849
|
+
ctrlType: (Ge = K.table(V, te, ne)) != null && Ge.type ? K.table(V, te, ne).type : K.type,
|
|
3821
3850
|
model: e.value,
|
|
3822
3851
|
class: "g-ctrl-container",
|
|
3823
3852
|
t: "t",
|
|
3824
|
-
formInfo:
|
|
3853
|
+
formInfo: V
|
|
3825
3854
|
}, ge({ _: 2 }, [
|
|
3826
|
-
|
|
3827
|
-
name:
|
|
3828
|
-
fn: $((
|
|
3829
|
-
C(a.$slots,
|
|
3830
|
-
data:
|
|
3855
|
+
X(a.$slots, (ut, lt) => ({
|
|
3856
|
+
name: lt,
|
|
3857
|
+
fn: $((at) => [
|
|
3858
|
+
C(a.$slots, lt, {
|
|
3859
|
+
data: at,
|
|
3831
3860
|
item: K,
|
|
3832
3861
|
model: e.value
|
|
3833
3862
|
}, void 0, !0)
|
|
@@ -3837,15 +3866,15 @@ const Ra = /* @__PURE__ */ nl(Ya), Ha = { class: "g-table-container" }, Ba = {
|
|
|
3837
3866
|
];
|
|
3838
3867
|
}, !0) : C(a.$slots, `${me}`, {
|
|
3839
3868
|
key: 1,
|
|
3840
|
-
row:
|
|
3841
|
-
column:
|
|
3842
|
-
index:
|
|
3869
|
+
row: V,
|
|
3870
|
+
column: te,
|
|
3871
|
+
index: ne
|
|
3843
3872
|
}, () => [
|
|
3844
3873
|
Z("div", {
|
|
3845
|
-
style:
|
|
3846
|
-
innerHTML:
|
|
3874
|
+
style: Ye([{ width: "100%", "text-overflow": "ellipsis", overflow: "hidden" }, K == null ? void 0 : K.style]),
|
|
3875
|
+
innerHTML: ee(
|
|
3847
3876
|
K,
|
|
3848
|
-
|
|
3877
|
+
te.formatter(V, te, V[me], ne)
|
|
3849
3878
|
)
|
|
3850
3879
|
}, null, 12, Na)
|
|
3851
3880
|
], !0)
|
|
@@ -3857,8 +3886,8 @@ const Ra = /* @__PURE__ */ nl(Ya), Ha = { class: "g-table-container" }, Ba = {
|
|
|
3857
3886
|
]),
|
|
3858
3887
|
_: 3
|
|
3859
3888
|
}, 16, ["summary-method"]),
|
|
3860
|
-
(
|
|
3861
|
-
|
|
3889
|
+
($t = (bt = (it = e.value) == null ? void 0 : it.table) == null ? void 0 : bt.page) != null && $t.hidden ? be("", !0) : C(a.$slots, "page", { key: 0 }, () => [
|
|
3890
|
+
ie(qe, L({
|
|
3862
3891
|
"page-size": e.value.table.page.pageSize,
|
|
3863
3892
|
"onUpdate:pageSize": u[6] || (u[6] = (K) => e.value.table.page.pageSize = K),
|
|
3864
3893
|
"current-page": e.value.table.page.currentPage,
|
|
@@ -3875,7 +3904,7 @@ const Ra = /* @__PURE__ */ nl(Ya), Ha = { class: "g-table-container" }, Ba = {
|
|
|
3875
3904
|
], 64);
|
|
3876
3905
|
};
|
|
3877
3906
|
}
|
|
3878
|
-
}), Wa = /* @__PURE__ */
|
|
3907
|
+
}), Wa = /* @__PURE__ */ tt(ja, [["__scopeId", "data-v-0e1fe5b9"]]), Ga = { class: "g-tree-table" }, Xa = { class: "g-tree-container" }, Qa = { class: "g-tree-table-container" }, Za = /* @__PURE__ */ Object.assign({
|
|
3879
3908
|
name: "g-tree-table",
|
|
3880
3909
|
inheritAttrs: !1
|
|
3881
3910
|
}, {
|
|
@@ -3884,40 +3913,40 @@ const Ra = /* @__PURE__ */ nl(Ya), Ha = { class: "g-table-container" }, Ba = {
|
|
|
3884
3913
|
modelValue: { required: !0 },
|
|
3885
3914
|
modelModifiers: {}
|
|
3886
3915
|
},
|
|
3887
|
-
emits: /* @__PURE__ */
|
|
3916
|
+
emits: /* @__PURE__ */ ot(["load"], ["update:modelValue"]),
|
|
3888
3917
|
setup(r, { emit: s }) {
|
|
3889
3918
|
var g, J, x, U;
|
|
3890
|
-
const t = s, l =
|
|
3919
|
+
const t = s, l = et(r, "modelValue"), n = Tt(), e = re(
|
|
3891
3920
|
typeof ((g = n == null ? void 0 : n.tree) == null ? void 0 : g.width) == "number" ? `${n.tree.width}px` : ((J = n == null ? void 0 : n.tree) == null ? void 0 : J.width) || "180px"
|
|
3892
|
-
), h = re(((x = n == null ? void 0 : n.tree) == null ? void 0 : x.search) === void 0 ? !0 : (U = n == null ? void 0 : n.tree) == null ? void 0 : U.search), f = re({}), S = re(""), c = re(null), v = (z,
|
|
3893
|
-
var
|
|
3921
|
+
), h = re(((x = n == null ? void 0 : n.tree) == null ? void 0 : x.search) === void 0 ? !0 : (U = n == null ? void 0 : n.tree) == null ? void 0 : U.search), f = re({}), S = re(""), c = re(null), v = (z, j) => {
|
|
3922
|
+
var ae, oe;
|
|
3894
3923
|
if (!z) return !0;
|
|
3895
|
-
const
|
|
3896
|
-
return
|
|
3897
|
-
}, o = (z,
|
|
3898
|
-
t("load", f.value, z,
|
|
3924
|
+
const de = ((oe = (ae = n.tree) == null ? void 0 : ae.props) == null ? void 0 : oe.label) || "label";
|
|
3925
|
+
return j[de].includes(z);
|
|
3926
|
+
}, o = (z, j) => {
|
|
3927
|
+
t("load", f.value, z, j);
|
|
3899
3928
|
}, d = (z) => {
|
|
3900
3929
|
f.value = z, l.value.table.load();
|
|
3901
3930
|
};
|
|
3902
|
-
return
|
|
3931
|
+
return Zt(S, (z) => {
|
|
3903
3932
|
c.value.filter(z);
|
|
3904
|
-
}), (z,
|
|
3905
|
-
const
|
|
3906
|
-
return p(),
|
|
3933
|
+
}), (z, j) => {
|
|
3934
|
+
const de = N("el-input"), ae = N("el-tree"), oe = N("g-table");
|
|
3935
|
+
return p(), R("div", Ga, [
|
|
3907
3936
|
Z("div", {
|
|
3908
3937
|
class: "g-tree-left",
|
|
3909
|
-
style:
|
|
3938
|
+
style: Ye({ width: e.value })
|
|
3910
3939
|
}, [
|
|
3911
|
-
h.value ? (p(), O(
|
|
3940
|
+
h.value ? (p(), O(de, {
|
|
3912
3941
|
key: 0,
|
|
3913
3942
|
modelValue: S.value,
|
|
3914
|
-
"onUpdate:modelValue":
|
|
3943
|
+
"onUpdate:modelValue": j[0] || (j[0] = (ve) => S.value = ve),
|
|
3915
3944
|
style: { width: "100%", "box-sizing": "border-box", "margin-bottom": "10px" },
|
|
3916
3945
|
placeholder: "输入节点查询",
|
|
3917
3946
|
clearable: ""
|
|
3918
3947
|
}, null, 8, ["modelValue"])) : be("", !0),
|
|
3919
3948
|
Z("div", Xa, [
|
|
3920
|
-
|
|
3949
|
+
ie(ae, L({
|
|
3921
3950
|
style: { width: e.value },
|
|
3922
3951
|
"filter-node-method": v,
|
|
3923
3952
|
"expand-on-click-node": !1,
|
|
@@ -3925,34 +3954,34 @@ const Ra = /* @__PURE__ */ nl(Ya), Ha = { class: "g-table-container" }, Ba = {
|
|
|
3925
3954
|
ref: c,
|
|
3926
3955
|
onNodeClick: d
|
|
3927
3956
|
}, z.$attrs.tree), ge({
|
|
3928
|
-
default: $(({ node:
|
|
3957
|
+
default: $(({ node: ve, data: ke }) => [
|
|
3929
3958
|
C(z.$slots, "tree", {
|
|
3930
|
-
node:
|
|
3931
|
-
data:
|
|
3959
|
+
node: ve,
|
|
3960
|
+
data: ke
|
|
3932
3961
|
}, () => [
|
|
3933
|
-
Z("span", null,
|
|
3962
|
+
Z("span", null, Se(ve.label), 1)
|
|
3934
3963
|
], !0)
|
|
3935
3964
|
]),
|
|
3936
3965
|
_: 2
|
|
3937
3966
|
}, [
|
|
3938
|
-
|
|
3939
|
-
name:
|
|
3967
|
+
X(z.$slots, (ve, ke, Ve) => ({
|
|
3968
|
+
name: ke,
|
|
3940
3969
|
fn: $((xe) => [
|
|
3941
|
-
C(z.$slots,
|
|
3970
|
+
C(z.$slots, ke, { data: xe }, void 0, !0)
|
|
3942
3971
|
])
|
|
3943
3972
|
}))
|
|
3944
3973
|
]), 1040, ["style"])
|
|
3945
3974
|
])
|
|
3946
3975
|
], 4),
|
|
3947
3976
|
Z("div", Qa, [
|
|
3948
|
-
|
|
3977
|
+
ie(oe, L({
|
|
3949
3978
|
modelValue: l.value,
|
|
3950
|
-
"onUpdate:modelValue":
|
|
3979
|
+
"onUpdate:modelValue": j[1] || (j[1] = (ve) => l.value = ve)
|
|
3951
3980
|
}, z.$attrs, { onLoad: o }), ge({ _: 2 }, [
|
|
3952
|
-
|
|
3953
|
-
name:
|
|
3981
|
+
X(z.$slots, (ve, ke, Ve) => ({
|
|
3982
|
+
name: ke,
|
|
3954
3983
|
fn: $((xe) => [
|
|
3955
|
-
C(z.$slots,
|
|
3984
|
+
C(z.$slots, ke, { data: xe }, void 0, !0)
|
|
3956
3985
|
])
|
|
3957
3986
|
}))
|
|
3958
3987
|
]), 1040, ["modelValue"])
|
|
@@ -3960,14 +3989,14 @@ const Ra = /* @__PURE__ */ nl(Ya), Ha = { class: "g-table-container" }, Ba = {
|
|
|
3960
3989
|
]);
|
|
3961
3990
|
};
|
|
3962
3991
|
}
|
|
3963
|
-
}), Ja = /* @__PURE__ */
|
|
3992
|
+
}), Ja = /* @__PURE__ */ tt(Za, [["__scopeId", "data-v-c888e4fc"]]), Ka = {
|
|
3964
3993
|
key: 0,
|
|
3965
3994
|
class: "op-group"
|
|
3966
3995
|
}, er = {
|
|
3967
3996
|
key: 1,
|
|
3968
3997
|
class: "op-items",
|
|
3969
3998
|
style: { width: "100%", height: "100%" }
|
|
3970
|
-
}, tr = ["title"],
|
|
3999
|
+
}, tr = ["title"], jt = "100px", lr = /* @__PURE__ */ Object.assign({ name: "g-select-option" }, {
|
|
3971
4000
|
__name: "g-select-option",
|
|
3972
4001
|
props: {
|
|
3973
4002
|
columns: {
|
|
@@ -3989,36 +4018,36 @@ const Ra = /* @__PURE__ */ nl(Ya), Ha = { class: "g-table-container" }, Ba = {
|
|
|
3989
4018
|
},
|
|
3990
4019
|
setup(r) {
|
|
3991
4020
|
const s = r;
|
|
3992
|
-
return (t, l) => s.title ? (p(),
|
|
3993
|
-
(p(!0),
|
|
3994
|
-
style:
|
|
4021
|
+
return (t, l) => s.title ? (p(), R("div", Ka, [
|
|
4022
|
+
(p(!0), R(le, null, X(s.columns, (n) => (p(), R("span", {
|
|
4023
|
+
style: Ye({ width: (n == null ? void 0 : n.width) || jt, ...n == null ? void 0 : n.titleStyle, textAlign: (n == null ? void 0 : n.align) || "center" }),
|
|
3995
4024
|
key: n.key
|
|
3996
4025
|
}, [
|
|
3997
4026
|
C(t.$slots, `${r.t}-title-${n.key}`, { col: n }, () => [
|
|
3998
|
-
Le(
|
|
4027
|
+
Le(Se(n.label), 1)
|
|
3999
4028
|
], !0)
|
|
4000
4029
|
], 4))), 128))
|
|
4001
|
-
])) : (p(),
|
|
4002
|
-
(p(!0),
|
|
4003
|
-
style:
|
|
4030
|
+
])) : (p(), R("div", er, [
|
|
4031
|
+
(p(!0), R(le, null, X(s.columns, (n) => (p(), R("span", {
|
|
4032
|
+
style: Ye({ width: (n == null ? void 0 : n.width) || jt, textAlign: (n == null ? void 0 : n.align) || "center", ...n == null ? void 0 : n.style }),
|
|
4004
4033
|
key: n.key,
|
|
4005
4034
|
title: r.data[n.key]
|
|
4006
4035
|
}, [
|
|
4007
4036
|
C(t.$slots, `${r.t}-option-${n.key}`, { col: n }, () => [
|
|
4008
|
-
Le(
|
|
4037
|
+
Le(Se(r.data[n.key] ?? "-"), 1)
|
|
4009
4038
|
], !0)
|
|
4010
4039
|
], 12, tr))), 128))
|
|
4011
4040
|
]));
|
|
4012
4041
|
}
|
|
4013
|
-
}), ar = /* @__PURE__ */
|
|
4014
|
-
let
|
|
4042
|
+
}), ar = /* @__PURE__ */ tt(lr, [["__scopeId", "data-v-c0ac6b77"]]), rr = Object.freeze({}), Rt = [Wa, sl, Ja, ar, Ut];
|
|
4043
|
+
let xt = {};
|
|
4015
4044
|
const br = {
|
|
4016
4045
|
install: (r, s = {}) => {
|
|
4017
|
-
|
|
4046
|
+
xt = Object.freeze({ ...rr, ...s }), Rt.forEach((t) => {
|
|
4018
4047
|
r.component(t.name, t);
|
|
4019
|
-
}), r.provide("options",
|
|
4048
|
+
}), r.provide("options", xt), r.config.globalProperties.$openModal = At, r.config.globalProperties.$open = or;
|
|
4020
4049
|
}
|
|
4021
|
-
}, nr = (r) => ({ dialog: pl, drawer: vl })[r] || null,
|
|
4050
|
+
}, nr = (r) => ({ dialog: pl, drawer: vl })[r] || null, At = (r = {}, s = "dialog") => {
|
|
4022
4051
|
if (typeof document > "u") return () => {
|
|
4023
4052
|
};
|
|
4024
4053
|
const t = document.createElement("div");
|
|
@@ -4027,7 +4056,7 @@ const br = {
|
|
|
4027
4056
|
const n = nr(s);
|
|
4028
4057
|
if (!n) return () => {
|
|
4029
4058
|
};
|
|
4030
|
-
const e = re(!0), h =
|
|
4059
|
+
const e = re(!0), h = Jt({
|
|
4031
4060
|
setup() {
|
|
4032
4061
|
return l = () => {
|
|
4033
4062
|
e.value = !1, setTimeout(() => {
|
|
@@ -4035,7 +4064,7 @@ const br = {
|
|
|
4035
4064
|
}, 300);
|
|
4036
4065
|
}, () => {
|
|
4037
4066
|
var f, S, c;
|
|
4038
|
-
return
|
|
4067
|
+
return we(n, {
|
|
4039
4068
|
modelValue: e.value,
|
|
4040
4069
|
"onUpdate:modelValue": (v) => e.value = v,
|
|
4041
4070
|
appendToBody: !0,
|
|
@@ -4056,22 +4085,22 @@ const br = {
|
|
|
4056
4085
|
mt();
|
|
4057
4086
|
}
|
|
4058
4087
|
});
|
|
4059
|
-
return
|
|
4088
|
+
return Rt.forEach((f) => {
|
|
4060
4089
|
h.component(f.name, f);
|
|
4061
|
-
}), h.provide("options",
|
|
4090
|
+
}), h.provide("options", xt), h.use(Wt, { locale: rl }), document.body.appendChild(t), h.mount(t), l;
|
|
4062
4091
|
}, or = (r = {}) => {
|
|
4063
4092
|
if (typeof document > "u") return () => {
|
|
4064
4093
|
};
|
|
4065
4094
|
const s = document.createElement("div");
|
|
4066
4095
|
let t = () => {
|
|
4067
4096
|
};
|
|
4068
|
-
const l = re(!0), n =
|
|
4097
|
+
const l = re(!0), n = Jt({
|
|
4069
4098
|
setup() {
|
|
4070
4099
|
t = () => {
|
|
4071
4100
|
l.value = !1, setTimeout(() => {
|
|
4072
4101
|
n.unmount(), s.remove();
|
|
4073
4102
|
}, 300);
|
|
4074
|
-
},
|
|
4103
|
+
}, Zt(l, (S) => {
|
|
4075
4104
|
S || setTimeout(() => {
|
|
4076
4105
|
n.unmount(), s.remove();
|
|
4077
4106
|
}, 300);
|
|
@@ -4082,15 +4111,15 @@ const br = {
|
|
|
4082
4111
|
"close-on-click-modal": !1,
|
|
4083
4112
|
...h
|
|
4084
4113
|
};
|
|
4085
|
-
return e && (f.onClose = e), () =>
|
|
4114
|
+
return e && (f.onClose = e), () => we(Ut, f, r.slots);
|
|
4086
4115
|
},
|
|
4087
4116
|
mounted: () => {
|
|
4088
4117
|
mt();
|
|
4089
4118
|
}
|
|
4090
4119
|
});
|
|
4091
|
-
return
|
|
4120
|
+
return Rt.forEach((e) => {
|
|
4092
4121
|
n.component(e.name, e);
|
|
4093
|
-
}), n.provide("options",
|
|
4122
|
+
}), n.provide("options", xt), n.use(Wt, { locale: rl }), document.body.appendChild(s), n.mount(s), t;
|
|
4094
4123
|
};
|
|
4095
4124
|
function ur(r, s = window.innerWidth) {
|
|
4096
4125
|
if (typeof r == "number")
|
|
@@ -4124,7 +4153,7 @@ const ze = (...r) => {
|
|
|
4124
4153
|
}), l);
|
|
4125
4154
|
return r.forEach((l = {}) => t(s, l)), s;
|
|
4126
4155
|
};
|
|
4127
|
-
function
|
|
4156
|
+
function Ke(r, s = (t, l) => l != null) {
|
|
4128
4157
|
const t = {};
|
|
4129
4158
|
for (const l in r)
|
|
4130
4159
|
r.hasOwnProperty(l) && s(l, r[l]) && (t[l] = r[l]);
|
|
@@ -4142,7 +4171,7 @@ function sr(r, s, t = "value", l = "label", n = "children") {
|
|
|
4142
4171
|
}
|
|
4143
4172
|
return null;
|
|
4144
4173
|
}
|
|
4145
|
-
function
|
|
4174
|
+
function zt(r) {
|
|
4146
4175
|
if (!r || isNaN(r)) return "零";
|
|
4147
4176
|
const s = ["角", "分"], t = ["零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖"], l = [
|
|
4148
4177
|
["元", "万", "亿"],
|
|
@@ -4188,7 +4217,7 @@ function $r(r, s) {
|
|
|
4188
4217
|
}, s));
|
|
4189
4218
|
};
|
|
4190
4219
|
}
|
|
4191
|
-
const
|
|
4220
|
+
const Ce = {
|
|
4192
4221
|
RADIO: "radio",
|
|
4193
4222
|
RADIOBUTTON: "radio-button",
|
|
4194
4223
|
CHECKBOX: "checkbox",
|
|
@@ -4259,17 +4288,17 @@ const _e = {
|
|
|
4259
4288
|
s.addEventListener("mousedown", f);
|
|
4260
4289
|
};
|
|
4261
4290
|
export {
|
|
4262
|
-
|
|
4291
|
+
Ce as CT,
|
|
4263
4292
|
mt as bindResize,
|
|
4264
4293
|
ur as convertToPx,
|
|
4265
4294
|
dr as debounce,
|
|
4266
4295
|
br as default,
|
|
4267
|
-
|
|
4296
|
+
Ke as filterObject,
|
|
4268
4297
|
sr as findTreeLabelByValue,
|
|
4269
4298
|
ir as formatAmount,
|
|
4270
4299
|
ze as mergeObjects,
|
|
4271
|
-
|
|
4300
|
+
zt as moneyToChinese,
|
|
4272
4301
|
or as open,
|
|
4273
|
-
|
|
4302
|
+
At as openModal,
|
|
4274
4303
|
$r as throttle
|
|
4275
4304
|
};
|