vue-2024-ui 0.2.57 → 0.2.58
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 +1040 -1022
- 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 Ke, nextTick as ht, onMounted as yt, computed as Ze, resolveComponent as N, openBlock as p, createElementBlock as R, Fragment as te, 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 se, normalizeStyle as Ye, normalizeProps as It, mergeModels as ot, useSlots as Xt, inject as Lt, withModifiers as dt, resolveDynamicComponent as Ge, 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, W = { 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
|
+
} }, ie = function(k, b, i) {
|
|
194
|
+
var E = String(k);
|
|
195
|
+
return !E || E.length >= b ? k : "" + Array(b + 1 - E.length).join(i) + k;
|
|
196
|
+
}, le = { s: ie, z: function(k) {
|
|
197
|
+
var b = -k.utcOffset(), i = Math.abs(b), E = Math.floor(i / 60), _ = i % 60;
|
|
198
|
+
return (b <= 0 ? "+" : "-") + ie(E, 2, "0") + ":" + ie(_, 2, "0");
|
|
199
|
+
}, m: function k(b, i) {
|
|
200
|
+
if (b.date() < i.date()) return -k(i, b);
|
|
201
|
+
var E = 12 * (i.year() - b.year()) + (i.month() - b.month()), _ = b.clone().add(E, o), q = i - _ < 0, V = b.clone().add(E + (q ? -1 : 1), o);
|
|
202
|
+
return +(-(E + (i - _) / (q ? _ - V : V - _)) || 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
|
+
} }, ne = "en", ve = {};
|
|
210
|
+
ve[ne] = W;
|
|
211
|
+
var ke = "$isDayjsObject", Ve = function(k) {
|
|
212
|
+
return k instanceof Te || !(!k || !k[ke]);
|
|
213
|
+
}, xe = function k(b, i, E) {
|
|
214
214
|
var _;
|
|
215
|
-
if (!b) return
|
|
215
|
+
if (!b) return ne;
|
|
216
216
|
if (typeof b == "string") {
|
|
217
217
|
var q = b.toLowerCase();
|
|
218
|
-
|
|
218
|
+
ve[q] && (_ = q), i && (ve[q] = i, _ = q);
|
|
219
219
|
var V = b.split("-");
|
|
220
|
-
if (!_ && V.length > 1) return
|
|
220
|
+
if (!_ && V.length > 1) return k(V[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 !E && _ && (ne = _), _ || !E && ne;
|
|
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
|
-
},
|
|
231
|
-
|
|
232
|
-
return
|
|
229
|
+
return i.date = k, i.args = arguments, new Te(i);
|
|
230
|
+
}, oe = le;
|
|
231
|
+
oe.l = xe, oe.i = Ve, oe.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(E) {
|
|
241
|
+
var _ = E.date, q = E.utc;
|
|
242
242
|
if (_ === null) return /* @__PURE__ */ new Date(NaN);
|
|
243
|
-
if (
|
|
243
|
+
if (oe.u(_)) return /* @__PURE__ */ new Date();
|
|
244
244
|
if (_ instanceof Date) return new Date(_);
|
|
245
245
|
if (typeof _ == "string" && !/Z$/i.test(_)) {
|
|
246
246
|
var V = _.match(U);
|
|
247
247
|
if (V) {
|
|
248
|
-
var Q = V[2] - 1 || 0,
|
|
249
|
-
return q ? new Date(Date.UTC(V[1], Q, V[3] || 1, V[4] || 0, V[5] || 0, V[6] || 0,
|
|
248
|
+
var Q = V[2] - 1 || 0, ue = (V[7] || "0").substring(0, 3);
|
|
249
|
+
return q ? new Date(Date.UTC(V[1], Q, V[3] || 1, V[4] || 0, V[5] || 0, V[6] || 0, ue)) : new Date(V[1], Q, V[3] || 1, V[4] || 0, V[5] || 0, V[6] || 0, ue);
|
|
250
250
|
}
|
|
251
251
|
}
|
|
252
252
|
return new Date(_);
|
|
@@ -255,188 +255,188 @@ var ol = { exports: {} };
|
|
|
255
255
|
var i = this.$d;
|
|
256
256
|
this.$y = i.getFullYear(), this.$M = i.getMonth(), this.$D = i.getDate(), this.$W = i.getDay(), this.$H = i.getHours(), this.$m = i.getMinutes(), this.$s = i.getSeconds(), this.$ms = i.getMilliseconds();
|
|
257
257
|
}, b.$utils = function() {
|
|
258
|
-
return
|
|
258
|
+
return oe;
|
|
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
|
|
261
|
+
}, b.isSame = function(i, E) {
|
|
262
|
+
var _ = ee(i);
|
|
263
|
+
return this.startOf(E) <= _ && _ <= this.endOf(E);
|
|
264
|
+
}, b.isAfter = function(i, E) {
|
|
265
|
+
return ee(i) < this.startOf(E);
|
|
266
|
+
}, b.isBefore = function(i, E) {
|
|
267
|
+
return this.endOf(E) < ee(i);
|
|
268
|
+
}, b.$g = function(i, E, _) {
|
|
269
|
+
return oe.u(i) ? this[E] : 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 = !!
|
|
276
|
-
var A =
|
|
274
|
+
}, b.startOf = function(i, E) {
|
|
275
|
+
var _ = this, q = !!oe.u(E) || E, V = oe.p(i), Q = function(De, Me) {
|
|
276
|
+
var A = oe.w(_.$u ? Date.UTC(_.$y, Me, De) : new Date(_.$y, Me, De), _);
|
|
277
277
|
return q ? A : A.endOf(c);
|
|
278
|
-
},
|
|
279
|
-
return
|
|
280
|
-
},
|
|
278
|
+
}, ue = function(De, Me) {
|
|
279
|
+
return oe.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
281
|
switch (V) {
|
|
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 ue(Ee + "Hours", 0);
|
|
292
292
|
case S:
|
|
293
|
-
return
|
|
293
|
+
return ue(Ee + "Minutes", 1);
|
|
294
294
|
case f:
|
|
295
|
-
return
|
|
295
|
+
return ue(Ee + "Seconds", 2);
|
|
296
296
|
case h:
|
|
297
|
-
return
|
|
297
|
+
return ue(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 =
|
|
303
|
+
}, b.$set = function(i, E) {
|
|
304
|
+
var _, q = oe.p(i), V = "set" + (this.$u ? "UTC" : ""), Q = (_ = {}, _[c] = V + "Date", _[J] = V + "Date", _[o] = V + "Month", _[g] = V + "FullYear", _[S] = V + "Hours", _[f] = V + "Minutes", _[h] = V + "Seconds", _[e] = V + "Milliseconds", _)[q], ue = q === c ? this.$D + (E - this.$W) : E;
|
|
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](ue), pe.init(), this.$d = pe.set(J, Math.min(this.$D, pe.daysInMonth())).$d;
|
|
308
|
+
} else Q && this.$d[Q](ue);
|
|
309
309
|
return this.init(), this;
|
|
310
|
-
}, b.set = function(i,
|
|
311
|
-
return this.clone().$set(i,
|
|
310
|
+
}, b.set = function(i, E) {
|
|
311
|
+
return this.clone().$set(i, E);
|
|
312
312
|
}, b.get = function(i) {
|
|
313
|
-
return this[
|
|
314
|
-
}, b.add = function(i,
|
|
313
|
+
return this[oe.p(i)]();
|
|
314
|
+
}, b.add = function(i, E) {
|
|
315
315
|
var _, q = this;
|
|
316
316
|
i = Number(i);
|
|
317
|
-
var V =
|
|
318
|
-
var
|
|
319
|
-
return
|
|
317
|
+
var V = oe.p(E), Q = function(Y) {
|
|
318
|
+
var B = ee(q);
|
|
319
|
+
return oe.w(B.date(B.date() + Math.round(Y * i)), q);
|
|
320
320
|
};
|
|
321
321
|
if (V === o) return this.set(o, this.$M + i);
|
|
322
322
|
if (V === g) return this.set(g, this.$y + i);
|
|
323
323
|
if (V === c) return Q(1);
|
|
324
324
|
if (V === v) return Q(7);
|
|
325
|
-
var
|
|
326
|
-
return
|
|
327
|
-
}, b.subtract = function(i,
|
|
328
|
-
return this.add(-1 * i,
|
|
325
|
+
var ue = (_ = {}, _[f] = l, _[S] = n, _[h] = t, _)[V] || 1, pe = this.$d.getTime() + i * ue;
|
|
326
|
+
return oe.w(pe, this);
|
|
327
|
+
}, b.subtract = function(i, E) {
|
|
328
|
+
return this.add(-1 * i, E);
|
|
329
329
|
}, b.format = function(i) {
|
|
330
|
-
var
|
|
330
|
+
var E = this, _ = this.$locale();
|
|
331
331
|
if (!this.isValid()) return _.invalidDate || x;
|
|
332
|
-
var q = i || "YYYY-MM-DDTHH:mm:ssZ", V =
|
|
333
|
-
return
|
|
334
|
-
}, Ue = function(
|
|
335
|
-
return
|
|
336
|
-
},
|
|
337
|
-
var j =
|
|
332
|
+
var q = i || "YYYY-MM-DDTHH:mm:ssZ", V = oe.z(this), Q = this.$H, ue = this.$m, pe = this.$M, Y = _.weekdays, B = _.months, Ee = _.meridiem, he = function(Me, A, M, j) {
|
|
333
|
+
return Me && (Me[A] || Me(E, q)) || M[A].slice(0, j);
|
|
334
|
+
}, Ue = function(Me) {
|
|
335
|
+
return oe.s(Q % 12 || 12, Me, "0");
|
|
336
|
+
}, De = Ee || function(Me, A, M) {
|
|
337
|
+
var j = Me < 12 ? "AM" : "PM";
|
|
338
338
|
return M ? j.toLowerCase() : j;
|
|
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(E.$y).slice(-2);
|
|
345
345
|
case "YYYY":
|
|
346
|
-
return
|
|
346
|
+
return oe.s(E.$y, 4, "0");
|
|
347
347
|
case "M":
|
|
348
|
-
return
|
|
348
|
+
return pe + 1;
|
|
349
349
|
case "MM":
|
|
350
|
-
return
|
|
350
|
+
return oe.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 E.$D;
|
|
357
357
|
case "DD":
|
|
358
|
-
return
|
|
358
|
+
return oe.s(E.$D, 2, "0");
|
|
359
359
|
case "d":
|
|
360
|
-
return String(
|
|
360
|
+
return String(E.$W);
|
|
361
361
|
case "dd":
|
|
362
|
-
return
|
|
362
|
+
return he(_.weekdaysMin, E.$W, Y, 2);
|
|
363
363
|
case "ddd":
|
|
364
|
-
return
|
|
364
|
+
return he(_.weekdaysShort, E.$W, Y, 3);
|
|
365
365
|
case "dddd":
|
|
366
|
-
return
|
|
366
|
+
return Y[E.$W];
|
|
367
367
|
case "H":
|
|
368
368
|
return String(Q);
|
|
369
369
|
case "HH":
|
|
370
|
-
return
|
|
370
|
+
return oe.s(Q, 2, "0");
|
|
371
371
|
case "h":
|
|
372
372
|
return Ue(1);
|
|
373
373
|
case "hh":
|
|
374
374
|
return Ue(2);
|
|
375
375
|
case "a":
|
|
376
|
-
return
|
|
376
|
+
return De(Q, ue, !0);
|
|
377
377
|
case "A":
|
|
378
|
-
return
|
|
378
|
+
return De(Q, ue, !1);
|
|
379
379
|
case "m":
|
|
380
|
-
return String(
|
|
380
|
+
return String(ue);
|
|
381
381
|
case "mm":
|
|
382
|
-
return
|
|
382
|
+
return oe.s(ue, 2, "0");
|
|
383
383
|
case "s":
|
|
384
|
-
return String(
|
|
384
|
+
return String(E.$s);
|
|
385
385
|
case "ss":
|
|
386
|
-
return
|
|
386
|
+
return oe.s(E.$s, 2, "0");
|
|
387
387
|
case "SSS":
|
|
388
|
-
return
|
|
388
|
+
return oe.s(E.$ms, 3, "0");
|
|
389
389
|
case "Z":
|
|
390
390
|
return V;
|
|
391
391
|
}
|
|
392
392
|
return null;
|
|
393
|
-
}(
|
|
393
|
+
}(Me) || V.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, V = this, Q =
|
|
399
|
-
return
|
|
397
|
+
}, b.diff = function(i, E, _) {
|
|
398
|
+
var q, V = this, Q = oe.p(E), ue = ee(i), pe = (ue.utcOffset() - this.utcOffset()) * l, Y = this - ue, B = function() {
|
|
399
|
+
return oe.m(V, ue);
|
|
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
|
-
return _ ? q :
|
|
429
|
+
return _ ? q : oe.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, E) {
|
|
435
435
|
if (!i) return this.$L;
|
|
436
|
-
var _ = this.clone(), q = xe(i,
|
|
436
|
+
var _ = this.clone(), q = xe(i, E, !0);
|
|
437
437
|
return q && (_.$L = q), _;
|
|
438
438
|
}, b.clone = function() {
|
|
439
|
-
return
|
|
439
|
+
return oe.w(this.$d, this);
|
|
440
440
|
}, b.toDate = function() {
|
|
441
441
|
return new Date(this.valueOf());
|
|
442
442
|
}, b.toJSON = function() {
|
|
@@ -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[ne], 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), et = (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")) && !((V = e.value) != null && V.startsWith("link")) && !((Q = e.value) != null && Q.startsWith("tag")) && !((
|
|
478
|
+
var b, i, E, _, q, V, Q, ue, pe, Y, B, Ee, he, Ue, De, Me;
|
|
479
|
+
const s = r, t = re(s.item || {}), l = Ke(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"] ? (_ = (E = h == null ? void 0 : h.value) == null ? void 0 : E[n == null ? void 0 : n.value]) == null ? void 0 : _.label : "");
|
|
480
|
+
!((q = e.value) != null && q.startsWith("text")) && !((V = e.value) != null && V.startsWith("link")) && !((Q = e.value) != null && Q.startsWith("tag")) && !((ue = e.value) != null && ue.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 =
|
|
484
|
+
const A = Xt(), M = Object.keys(A), j = `${s.t}-${n.value}-`;
|
|
485
485
|
return M.filter((Oe) => Oe.startsWith(j)).map((Oe) => Oe.replace(j, ""));
|
|
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
|
+
}), W = re(t.value.innerHtml), ie = (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), le = (A) => ({
|
|
505
505
|
year: "YYYY",
|
|
506
506
|
years: "YYYY",
|
|
507
507
|
month: "YYYY-MM",
|
|
@@ -515,29 +515,29 @@ 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", ne = 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
531
|
const j = await ((M = t.value) == null ? void 0 : M.getDicts(s.formInfo));
|
|
532
532
|
if (typeof j == "string")
|
|
533
533
|
S.value = [{ label: j, value: l.value }];
|
|
534
534
|
else {
|
|
535
|
-
const
|
|
536
|
-
...
|
|
537
|
-
value:
|
|
538
|
-
label:
|
|
535
|
+
const _e = j == null ? void 0 : j.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
542
|
} catch (j) {
|
|
543
543
|
throw console.error("获取选项失败:", j), j;
|
|
@@ -547,24 +547,24 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
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
553
|
const j = t.value["file-list"].findIndex(
|
|
554
|
-
(
|
|
554
|
+
(_e) => _e.url === A.url || _e.uid === A.uid || A.raw && _e.raw && _e.raw.uid === A.raw.uid
|
|
555
555
|
);
|
|
556
556
|
o.value = j >= 0 ? j : 0;
|
|
557
557
|
} else {
|
|
558
|
-
const j = A.url || ((M = A.raw) == null ? void 0 : M.url),
|
|
559
|
-
o.value =
|
|
558
|
+
const j = A.url || ((M = A.raw) == null ? void 0 : M.url), _e = k.value.indexOf(j);
|
|
559
|
+
o.value = _e >= 0 ? _e : 0;
|
|
560
560
|
}
|
|
561
561
|
c.value = !0;
|
|
562
|
-
},
|
|
562
|
+
}, oe = (A) => {
|
|
563
563
|
if (A.preventDefault(), A.stopPropagation(), t.value["file-list"] && t.value["file-list"].length > 0) {
|
|
564
564
|
const M = l.value, j = t.value["file-list"].findIndex(
|
|
565
|
-
(
|
|
566
|
-
var
|
|
567
|
-
return
|
|
565
|
+
(_e) => {
|
|
566
|
+
var Ae;
|
|
567
|
+
return _e.url === M || ((Ae = _e.raw) == null ? void 0 : Ae.url) === M;
|
|
568
568
|
}
|
|
569
569
|
);
|
|
570
570
|
o.value = j >= 0 ? j : 0;
|
|
@@ -582,20 +582,20 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
582
582
|
j = j.substring(0, Oe + 1) + j.substring(Oe + 1).replace(/\./g, "");
|
|
583
583
|
}
|
|
584
584
|
if (j = j.replace(/^-\./, "-0."), j = j.replace(/^\./, "0."), j = j.replace(/^-0+(\d)/, "-$1"), j = j.replace(/^0+(\d)/, "$1"), (j === "-" || j === "" || j === ".") && (j = "0"), M >= 0 && j.includes(".")) {
|
|
585
|
-
const [Oe,
|
|
586
|
-
|
|
585
|
+
const [Oe, Xe] = j.split(".");
|
|
586
|
+
Xe.length > M && (j = Oe + "." + Xe.substring(0, M));
|
|
587
587
|
}
|
|
588
588
|
l.value = j;
|
|
589
589
|
};
|
|
590
590
|
yt(async () => {
|
|
591
|
-
var j,
|
|
592
|
-
t.value && t.value["remote-method"] && (
|
|
591
|
+
var j, _e, Ae, Oe, Xe;
|
|
592
|
+
t.value && t.value["remote-method"] && (ne.value["remote-method"] = ve), (_e = (j = h.value[n.value]) == null ? void 0 : j.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 && ((Xe = Te.value) != null && Xe.$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 = Ze(() => {
|
|
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 j = N("el-image-viewer"),
|
|
639
|
-
return p(),
|
|
637
|
+
var ut, lt, at, ct, G, rt, ft, vt, wt, Ft, Yt, Ht;
|
|
638
|
+
const j = N("el-image-viewer"), _e = N("el-radio"), Ae = N("el-radio-group"), Oe = N("el-radio-button"), Xe = 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"), D = N("el-link"), ae = N("el-text"), de = N("el-avatar"), tt = N("el-tag");
|
|
639
|
+
return p(), R(te, null, [
|
|
640
640
|
Z("div", null, [
|
|
641
641
|
c.value ? (p(), O(j, {
|
|
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(te, 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(te, 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(Xe, 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(te, null, X(S.value, (y) => (p(), O(Xe, 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(Je)(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(te, 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
|
+
}, ne.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(te, null, X(S.value, (ce) => (p(), R(te, {
|
|
751
751
|
key: ce.value
|
|
752
752
|
}, [
|
|
753
|
-
se(
|
|
753
|
+
se(je, L({ ref_for: !0 }, H(Je)(ce, (fe) => fe != "children"), {
|
|
754
754
|
onClick: (fe) => {
|
|
755
|
-
|
|
755
|
+
ne.value.change && ne.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 Qe;
|
|
766
766
|
return [
|
|
767
767
|
se(Ne, {
|
|
768
|
-
columns: (
|
|
768
|
+
columns: (Qe = t.value) == null ? void 0 : Qe.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,18 +786,18 @@ 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(te, { 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(Je)(fe, (Qe) => Qe != "children"), {
|
|
793
|
+
onClick: (Qe) => {
|
|
794
|
+
ne.value.change && ne.value.change(fe), Ve();
|
|
795
795
|
}
|
|
796
796
|
}), {
|
|
797
797
|
default: $(() => {
|
|
798
|
-
var
|
|
798
|
+
var Qe;
|
|
799
799
|
return [
|
|
800
|
-
(
|
|
800
|
+
(Qe = t.value) != null && Qe.columns ? C(A.$slots, `${s.t}-${n.value}-options`, {
|
|
801
801
|
key: 0,
|
|
802
802
|
option: fe
|
|
803
803
|
}, () => {
|
|
@@ -808,10 +808,10 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
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,7 +831,7 @@ 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;
|
|
@@ -841,10 +841,10 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
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: $((Qe) => [
|
|
847
|
+
C(A.$slots, fe, { data: Qe }, 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"])) : ie(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": le(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
|
-
se(
|
|
969
|
+
se(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
|
-
se(
|
|
977
|
+
Z("div", Fl, [
|
|
978
|
+
se(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, Qe) => ({
|
|
983
983
|
name: fe,
|
|
984
984
|
fn: $((pt) => [
|
|
985
985
|
C(A.$slots, `${s.t}-${n.value}-${fe}`, { data: pt }, void 0, !0)
|
|
@@ -993,27 +993,27 @@ 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
|
-
se(
|
|
1002
|
+
se(H(Cl), {
|
|
1003
1003
|
style: { width: "1.5em", height: "1.5em", "margin-right": "12px" },
|
|
1004
1004
|
color: "white",
|
|
1005
|
-
onClick:
|
|
1005
|
+
onClick: oe
|
|
1006
1006
|
})
|
|
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
|
-
se(
|
|
1016
|
+
se(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
|
-
se(
|
|
1108
|
+
se(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
|
-
se(
|
|
1135
|
+
se(D, L(t.value, {
|
|
1136
1136
|
type: e.value.replace("link-", ""),
|
|
1137
|
-
innerHTML:
|
|
1137
|
+
innerHTML: W.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
|
-
se(
|
|
1143
|
+
se(ae, L(t.value, {
|
|
1144
1144
|
type: e.value.replace("text-", ""),
|
|
1145
|
-
innerHTML:
|
|
1145
|
+
innerHTML: W.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
|
+
W.value ? (p(), O(de, It(L({ key: 0 }, t.value)), {
|
|
1152
1152
|
default: $(() => [
|
|
1153
|
-
Z("div", { innerHTML:
|
|
1153
|
+
Z("div", { innerHTML: W.value }, null, 8, Pl)
|
|
1154
1154
|
]),
|
|
1155
1155
|
_: 1
|
|
1156
|
-
}, 16)) : (p(), O(
|
|
1157
|
-
], 4)) : (
|
|
1156
|
+
}, 16)) : (p(), O(de, 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(W.value) && W.value.length > 0 ? (p(!0), R(te, { key: 0 }, X(W.value, (y, ce) => (p(), R(te, { key: ce }, [
|
|
1162
|
+
typeof y == "object" ? (p(), O(tt, 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(tt, 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(tt, L({
|
|
1177
1177
|
key: 1,
|
|
1178
1178
|
"disable-transitions": ""
|
|
1179
1179
|
}, t.value, {
|
|
1180
1180
|
type: e.value.replace("tag-", ""),
|
|
1181
|
-
innerHTML:
|
|
1181
|
+
innerHTML: W.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: W.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: W.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(Je)(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__ */ et(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 = Ke(r, "modelValue"), t = r, l = Ke(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 = (W) => {
|
|
1284
|
+
var ie;
|
|
1285
1285
|
try {
|
|
1286
|
-
if (typeof
|
|
1287
|
-
const
|
|
1288
|
-
return (
|
|
1286
|
+
if (typeof W[1].search == "function") {
|
|
1287
|
+
const le = W[1].search(l.value, s.value.table);
|
|
1288
|
+
return (le == null ? void 0 : le.sort) ?? 0;
|
|
1289
1289
|
} else
|
|
1290
|
-
return ((
|
|
1291
|
-
} catch (
|
|
1292
|
-
return console.warn(`获取 ${
|
|
1290
|
+
return ((ie = W[1].search) == null ? void 0 : ie.sort) ?? 0;
|
|
1291
|
+
} catch (le) {
|
|
1292
|
+
return console.warn(`获取 ${W[0]} 的sort值时出错:`, le), 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 Ze(() => 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,7 +1307,7 @@ 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(te, 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,
|
|
@@ -1324,7 +1324,7 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
1324
1324
|
})
|
|
1325
1325
|
]),
|
|
1326
1326
|
default: $(() => [
|
|
1327
|
-
se(
|
|
1327
|
+
se(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 = Ke(r, "modelValue"), l = s, n = Lt("options"), e = re(!1), h = Ke(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((W) => W !== "default").reduce((W, ie) => (W[ie] = (le) => x.slots[ie]({
|
|
1453
1453
|
model: t.value
|
|
1454
1454
|
// 传递当前模型数据
|
|
1455
|
-
}),
|
|
1456
|
-
return
|
|
1455
|
+
}), W), {});
|
|
1456
|
+
return we(Pt, {
|
|
1457
1457
|
modelValue: t.value,
|
|
1458
|
-
"onUpdate:modelValue": (
|
|
1458
|
+
"onUpdate:modelValue": (W) => t.value = W,
|
|
1459
1459
|
info: h.value,
|
|
1460
|
-
"onUpdate:info": (
|
|
1460
|
+
"onUpdate:info": (W) => h.value = W,
|
|
1461
1461
|
more: U
|
|
1462
1462
|
}, z);
|
|
1463
|
-
}, o =
|
|
1464
|
-
var z,
|
|
1463
|
+
}, o = Xt(), d = () => {
|
|
1464
|
+
var z, W, ie, le, ne, ve, ke, Ve, xe;
|
|
1465
1465
|
const x = [
|
|
1466
1466
|
{
|
|
1467
1467
|
key: "query",
|
|
1468
|
-
hidden: (
|
|
1469
|
-
component:
|
|
1468
|
+
hidden: (ie = (W = (z = t.value) == null ? void 0 : z.query) == null ? void 0 : W.query) == null ? void 0 : ie.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 = (ne = (le = t.value) == null ? void 0 : le.query) == null ? void 0 : ne.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
|
+
...Je(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, oe) => ee.sort - oe.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 = Ze(() => ({
|
|
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 ie, le, ne, ve, ke, Ve, xe, ee, oe, Te, T, k, b, i, E, _, q;
|
|
1516
|
+
const z = N("el-form-item"), W = N("el-drawer");
|
|
1517
|
+
return p(), R(te, null, [
|
|
1518
1518
|
Z("div", {
|
|
1519
1519
|
class: "g-query-container",
|
|
1520
|
-
style:
|
|
1520
|
+
style: Ye({ ...g.value, ...((le = (ie = t.value.query) == null ? void 0 : ie.container) == null ? void 0 : le.style) || {} }),
|
|
1521
1521
|
onDblclick: J
|
|
1522
1522
|
}, [
|
|
1523
|
-
se(
|
|
1524
|
-
onSubmit: U[0] || (U[0] =
|
|
1523
|
+
se(H(_t), L({
|
|
1524
|
+
onSubmit: U[0] || (U[0] = dt(() => {
|
|
1525
1525
|
}, ["prevent"]))
|
|
1526
|
-
},
|
|
1526
|
+
}, H(Je)(t.value.query, (V) => !["query", "more", "reset", "btns"].includes(V))), {
|
|
1527
1527
|
default: $(() => {
|
|
1528
1528
|
var V, Q;
|
|
1529
1529
|
return [
|
|
1530
|
-
(p(), O(
|
|
1530
|
+
(p(), O(Ge(v({ slots: x.$slots }, void 0)))),
|
|
1531
1531
|
((Q = (V = t.value.query) == null ? void 0 : V.container) == null ? void 0 : Q.inline) === !0 ? (p(), O(z, { key: 0 }, {
|
|
1532
1532
|
default: $(() => {
|
|
1533
|
-
var
|
|
1533
|
+
var ue, pe, Y, B, Ee;
|
|
1534
1534
|
return [
|
|
1535
1535
|
Z("div", {
|
|
1536
|
-
style:
|
|
1536
|
+
style: Ye((pe = (ue = t.value.query) == null ? void 0 : ue.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(te, null, X(d(), (he) => C(x.$slots, he.props.slot, {}, () => [
|
|
1541
|
+
(p(), O(Ge(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(te, { 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(te, null, X(d(), (he) => C(x.$slots, he.props.slot, {}, () => [
|
|
1550
|
+
(p(), O(Ge(he)))
|
|
1551
1551
|
], !0)), 256))
|
|
1552
1552
|
]),
|
|
1553
1553
|
_: 3
|
|
1554
|
-
})) : (p(!0),
|
|
1555
|
-
(p(), O(
|
|
1554
|
+
})) : (p(!0), R(te, { key: 1 }, X(d(), (he) => C(x.$slots, he.props.slot, {}, () => [
|
|
1555
|
+
(p(), O(Ge(he)))
|
|
1556
1556
|
], !0)), 256)),
|
|
1557
1557
|
C(x.$slots, "q-btns", {}, void 0, !0)
|
|
1558
1558
|
], 64))
|
|
@@ -1565,34 +1565,34 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
1565
1565
|
}),
|
|
1566
1566
|
_: 3
|
|
1567
1567
|
}, 16),
|
|
1568
|
-
((
|
|
1568
|
+
((ke = (ve = (ne = t.value) == null ? void 0 : ne.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(te, null, X(d(), (V) => C(x.$slots, V.props.slot, {}, () => [
|
|
1575
|
+
(p(), O(Ge(V)))
|
|
1576
1576
|
], !0)), 256)),
|
|
1577
1577
|
C(x.$slots, "q-btns", {}, void 0, !0)
|
|
1578
1578
|
]),
|
|
1579
1579
|
_: 3
|
|
1580
|
-
})) : (p(),
|
|
1581
|
-
(
|
|
1580
|
+
})) : (p(), R(te, { key: 1 }, [
|
|
1581
|
+
(oe = (ee = t.value.query) == null ? void 0 : ee.btns) != null && oe.group ? (p(), O(H(Ct), { key: 0 }, {
|
|
1582
1582
|
default: $(() => [
|
|
1583
|
-
(p(!0),
|
|
1584
|
-
(p(), O(
|
|
1583
|
+
(p(!0), R(te, null, X(d(), (V) => C(x.$slots, V.props.slot, {}, () => [
|
|
1584
|
+
(p(), O(Ge(V)))
|
|
1585
1585
|
], !0)), 256))
|
|
1586
1586
|
]),
|
|
1587
1587
|
_: 3
|
|
1588
|
-
})) : (p(!0),
|
|
1589
|
-
(p(), O(
|
|
1588
|
+
})) : (p(!0), R(te, { key: 1 }, X(d(), (V) => C(x.$slots, V.props.slot, {}, () => [
|
|
1589
|
+
(p(), O(Ge(V)))
|
|
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(W, L({
|
|
1596
1596
|
key: 0,
|
|
1597
1597
|
modelValue: e.value,
|
|
1598
1598
|
"onUpdate:modelValue": U[6] || (U[6] = (V) => e.value = V),
|
|
@@ -1600,21 +1600,21 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
1600
1600
|
"show-close": !1
|
|
1601
1601
|
}, t.value.query.more.dialog), ge({
|
|
1602
1602
|
default: $(() => [
|
|
1603
|
-
se(
|
|
1604
|
-
onSubmit: U[3] || (U[3] =
|
|
1603
|
+
se(H(_t), L({
|
|
1604
|
+
onSubmit: U[3] || (U[3] = dt(() => {
|
|
1605
1605
|
}, ["prevent"]))
|
|
1606
|
-
},
|
|
1606
|
+
}, H(Je)(t.value.query, (V) => !["query", "more", "reset"].includes(V)), { style: { width: "98%" } }), {
|
|
1607
1607
|
default: $(() => [
|
|
1608
|
-
se(
|
|
1608
|
+
se(Pt, {
|
|
1609
1609
|
modelValue: t.value,
|
|
1610
1610
|
"onUpdate:modelValue": U[1] || (U[1] = (V) => t.value = V),
|
|
1611
1611
|
info: h.value,
|
|
1612
1612
|
"onUpdate:info": U[2] || (U[2] = (V) => h.value = V),
|
|
1613
1613
|
more: !0
|
|
1614
1614
|
}, ge({ _: 2 }, [
|
|
1615
|
-
|
|
1615
|
+
X(x.$slots, (V, Q, ue) => ({
|
|
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 = (_ = (E = (i = (b = t.value) == null ? void 0 : b.query) == null ? void 0 : i.more) == null ? void 0 : E.dialog) == null ? void 0 : _.footer) != null && q.hidden ? void 0 : {
|
|
1629
1629
|
name: "footer",
|
|
1630
1630
|
fn: $(() => [
|
|
1631
|
-
Z("div",
|
|
1632
|
-
se(
|
|
1631
|
+
Z("div", It(ml(t.value.query.more.dialog.footer)), [
|
|
1632
|
+
se(H(Fe), L(t.value.query.query, {
|
|
1633
1633
|
onClick: U[4] || (U[4] = (V) => 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
|
-
se(
|
|
1640
|
+
se(H(Fe), L(t.value.query.reset, {
|
|
1641
1641
|
onClick: U[5] || (U[5] = (V) => 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)
|
|
@@ -1656,17 +1656,17 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
1656
1656
|
style: { padding: "10px" }
|
|
1657
1657
|
}, {
|
|
1658
1658
|
default: $(() => {
|
|
1659
|
-
var V, Q,
|
|
1659
|
+
var V, Q, ue;
|
|
1660
1660
|
return [
|
|
1661
|
-
e.value && !((
|
|
1661
|
+
e.value && !((ue = (Q = (V = t.value) == null ? void 0 : V.query) == null ? void 0 : Q.more) != null && ue.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(Je)(t.value.query, (pe) => !["query", "more", "reset"].includes(pe))), {
|
|
1668
1668
|
default: $(() => [
|
|
1669
|
-
(p(), O(
|
|
1669
|
+
(p(), O(Ge(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__ */ et(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, oe, Te;
|
|
1751
|
+
const l = Ke(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((E, _) => {
|
|
1765
|
+
E ? n("submit", T, k, b) : console.error("表单验证不通过!", _);
|
|
1766
1766
|
});
|
|
1767
1767
|
return;
|
|
1768
1768
|
}
|
|
1769
|
-
i--, await new Promise((
|
|
1769
|
+
i--, await new Promise((E) => setTimeout(E, 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);
|
|
@@ -1795,7 +1795,7 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
1795
1795
|
l.value.formItems = ze(
|
|
1796
1796
|
d,
|
|
1797
1797
|
h == null ? void 0 : h.formItems,
|
|
1798
|
-
(
|
|
1798
|
+
(oe = l == null ? void 0 : l.value) == null ? void 0 : oe.formItems
|
|
1799
1799
|
);
|
|
1800
1800
|
const g = {
|
|
1801
1801
|
span: 12,
|
|
@@ -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: (E, _, 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: (E, _, 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,8 +1844,8 @@ 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: (E, _, q) => {
|
|
1849
1849
|
if (_ == null || _ === "") return q();
|
|
1850
1850
|
const V = Number(i.min), Q = Number(i.max);
|
|
1851
1851
|
i.type !== "number" && i.type !== "input-number" ? Number(i.min) < 1 ? q(
|
|
@@ -1858,74 +1858,74 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
1858
1858
|
)
|
|
1859
1859
|
) : q() : Number(_) < V || _ > Q ? q(new Error(`${i.label}必须在${V}-${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: (E, _, q) => i.validate(E, _, 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 E, _, q, V, 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, (E = l.value.form) == null ? void 0 : E.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 ue = 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, ...ue };
|
|
1875
1875
|
}
|
|
1876
1876
|
if (((V = l.value.form) == null ? void 0 : V.modalState) === "add") {
|
|
1877
|
-
const
|
|
1878
|
-
return { ...i, ...
|
|
1877
|
+
const ue = 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, ...ue };
|
|
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, E, _, 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" ? ((E = k == null ? void 0 : k.ep) == null ? void 0 : E.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 = ie.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(W.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
|
+
}, W = Ze(
|
|
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, E;
|
|
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" ? ((E = k == null ? void 0 : k.ap) == null ? void 0 : E.editor) !== !1 : !0;
|
|
1907
1907
|
}).map((T) => [T[0], T[1]])
|
|
1908
1908
|
)
|
|
1909
|
-
),
|
|
1909
|
+
), ie = Ze(
|
|
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
|
+
), le = Ze(() => {
|
|
1914
1914
|
const T = /* @__PURE__ */ new Map();
|
|
1915
|
-
return Object.entries(
|
|
1915
|
+
return Object.entries(W.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
|
+
}), ne = re([
|
|
1929
1929
|
{
|
|
1930
1930
|
name: "f-submit",
|
|
1931
1931
|
label: l.value.form.submit.label,
|
|
@@ -1964,16 +1964,16 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
1964
1964
|
originalOrder: 1
|
|
1965
1965
|
// 添加原始顺序标识
|
|
1966
1966
|
}
|
|
1967
|
-
]),
|
|
1967
|
+
]), ve = Ze(() => ne.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(),
|
|
1973
|
+
}), (T, k) => {
|
|
1974
|
+
var Q, ue, pe;
|
|
1975
|
+
const b = N("el-form-item"), i = N("el-col"), E = N("el-tab-pane"), _ = N("el-tabs"), q = N("el-form"), V = N("el-button");
|
|
1976
|
+
return p(), R("div", la, [
|
|
1977
1977
|
se(q, L(
|
|
1978
1978
|
{
|
|
1979
1979
|
ref_key: "gform",
|
|
@@ -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(Je)(
|
|
1990
1990
|
l.value.form,
|
|
1991
|
-
(
|
|
1991
|
+
(Y) => !["footer", "submit", "reset", "slots", "type", "sort"].includes(Y)
|
|
1992
1992
|
)
|
|
1993
1993
|
), {
|
|
1994
1994
|
default: $(() => [
|
|
1995
|
-
|
|
1995
|
+
le.value.length > 0 ? C(T.$slots, "default", { key: 0 }, () => [
|
|
1996
1996
|
se(_, L({
|
|
1997
1997
|
class: "demo-tabs",
|
|
1998
|
-
modelValue:
|
|
1999
|
-
"onUpdate:modelValue":
|
|
1998
|
+
modelValue: le.value[0].groupName,
|
|
1999
|
+
"onUpdate:modelValue": k[0] || (k[0] = (Y) => le.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(te, null, X(le.value, (Y) => (p(), O(E, 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(te, 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
2017
|
se(b, L({
|
|
2018
|
-
label:
|
|
2019
|
-
prop:
|
|
2020
|
-
rules: J(
|
|
2021
|
-
}, { ref_for: !0 }, { ...(
|
|
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(te, null, X(W.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
2074
|
se(b, L({
|
|
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:
|
|
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 = (ue = (Q = l.value) == null ? void 0 : Q.form) == null ? void 0 : ue.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(te, null, X(ve.value, (Y) => (p(), R(te, 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(V, 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__ */ et(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 = Ze(() => l.type === "drawer" ? "el-drawer" : "el-dialog"), f = Ze(() => {
|
|
2203
|
+
const ie = {
|
|
2204
2204
|
modal: l.modal,
|
|
2205
2205
|
...n
|
|
2206
2206
|
};
|
|
2207
2207
|
return l.type === "dialog" ? {
|
|
2208
|
-
...
|
|
2208
|
+
...ie,
|
|
2209
2209
|
width: l.width,
|
|
2210
2210
|
top: l.top
|
|
2211
2211
|
} : {
|
|
2212
|
-
...
|
|
2212
|
+
...ie,
|
|
2213
2213
|
direction: l.direction,
|
|
2214
2214
|
size: v.value ? "100%" : l.size
|
|
2215
2215
|
};
|
|
2216
|
-
}), S =
|
|
2216
|
+
}), S = Ze({
|
|
2217
2217
|
get() {
|
|
2218
2218
|
return l.modelValue;
|
|
2219
2219
|
},
|
|
2220
|
-
set(
|
|
2221
|
-
e("update:modelValue",
|
|
2220
|
+
set(ie) {
|
|
2221
|
+
e("update:modelValue", ie);
|
|
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 W() {
|
|
2243
2243
|
o.value = !1;
|
|
2244
2244
|
}
|
|
2245
2245
|
return s({
|
|
2246
2246
|
handleClose: () => c.value.handleClose()
|
|
2247
|
-
}), (
|
|
2248
|
-
o.value ? (p(),
|
|
2247
|
+
}), (ie, le) => (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: W
|
|
2252
|
+
}, Se(r.title), 1)) : (p(), R("div", na, [
|
|
2253
|
+
(p(), O(Ge(h.value), L({
|
|
2254
2254
|
ref_key: "dialogExtend",
|
|
2255
2255
|
ref: c,
|
|
2256
2256
|
modelValue: S.value,
|
|
2257
|
-
"onUpdate:modelValue":
|
|
2257
|
+
"onUpdate:modelValue": le[1] || (le[1] = (ne) => S.value = ne),
|
|
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: ne, closeIconClass: ve }) => [
|
|
2267
|
+
C(ie.$slots, "header", {
|
|
2268
|
+
titleClass: ne,
|
|
2269
|
+
closeIconClass: ve
|
|
2270
2270
|
}, () => [
|
|
2271
2271
|
Z("div", {
|
|
2272
2272
|
class: "custom-header",
|
|
2273
|
-
onDblclick:
|
|
2274
|
-
style:
|
|
2273
|
+
onDblclick: le[0] || (le[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(ie.$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(Ge(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(Ge(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(ie.$slots, "default", {}, void 0, !0)
|
|
2306
2306
|
]),
|
|
2307
2307
|
_: 2
|
|
2308
2308
|
}, [
|
|
2309
|
-
|
|
2309
|
+
ie.$slots.footer ? {
|
|
2310
2310
|
name: "footer",
|
|
2311
2311
|
fn: $(() => [
|
|
2312
|
-
C(
|
|
2312
|
+
C(ie.$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(ie.$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__ */ et(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, [
|
|
@@ -2391,7 +2391,7 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
2391
2391
|
default: $(() => [
|
|
2392
2392
|
se(o, { size: "16" }, {
|
|
2393
2393
|
default: $(() => [
|
|
2394
|
-
se(
|
|
2394
|
+
se(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(te, 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
|
]),
|
|
@@ -2426,11 +2426,11 @@ const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
|
2426
2426
|
se(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__ */ et(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 = Ke(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,7 +2637,7 @@ 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 }, "全选"),
|
|
@@ -2650,7 +2650,7 @@ const Ma = { style: { padding: "15px", "box-sizing": "border-box" } }, xa = { st
|
|
|
2650
2650
|
default: $(() => [
|
|
2651
2651
|
se(J, { size: "16" }, {
|
|
2652
2652
|
default: $(() => [
|
|
2653
|
-
se(
|
|
2653
|
+
se(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(te, null, X(H(n), (z) => (p(), O(U, {
|
|
2665
2665
|
modelValue: z.showCol,
|
|
2666
|
-
"onUpdate:modelValue": (
|
|
2666
|
+
"onUpdate:modelValue": (W) => z.showCol = W,
|
|
2667
2667
|
"data-id": z.value,
|
|
2668
|
-
class:
|
|
2669
|
-
onChange: (
|
|
2668
|
+
class: Qt(["check-box-hover", z.value == "control" ? "filtered" : ""]),
|
|
2669
|
+
onChange: (W) => h(W, 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__ */ et(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
|
-
se(
|
|
2716
|
+
se(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__ */ et(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 W = c, ie = v, le = o, ne = 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 + W >>> 0, v = v + ie >>> 0, o = o + le >>> 0, d = d + ne >>> 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, Xe, He, Pe, Ne, je, gt;
|
|
2890
|
+
const l = re(""), n = t, e = Ke(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("/"), W = Ke(r, "selectedRows"), ie = 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" ? E(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
|
+
W.value = a;
|
|
2992
2999
|
}
|
|
2993
3000
|
});
|
|
2994
3001
|
e.value.table = ze(
|
|
2995
|
-
|
|
3002
|
+
ie.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 le = {
|
|
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: { ...(Xe = (Oe = e.value) == null ? void 0 : Oe.control) == null ? void 0 : Xe.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,7 +3075,15 @@ 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),
|
|
3079
|
+
auth: () => !0
|
|
3080
|
+
}),
|
|
3081
|
+
batch: (a, u) => ({
|
|
3082
|
+
label: "批量操作",
|
|
3083
|
+
text: !1,
|
|
3084
|
+
type: "primary",
|
|
3085
|
+
mode: "dialog",
|
|
3086
|
+
icon: () => we(Ot),
|
|
3072
3087
|
auth: () => !0
|
|
3073
3088
|
}),
|
|
3074
3089
|
download: (a, u) => ({
|
|
@@ -3076,7 +3091,7 @@ const Ra = /* @__PURE__ */ nl(Ya), Ha = { class: "g-table-container" }, Ba = {
|
|
|
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" && E(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
|
+
le,
|
|
3108
3123
|
h == null ? void 0 : h.control,
|
|
3109
|
-
(
|
|
3124
|
+
(He = e.value) == null ? void 0 : He.control
|
|
3110
3125
|
);
|
|
3111
|
-
const
|
|
3112
|
-
const m = e.value.control[a],
|
|
3113
|
-
var Be,
|
|
3114
|
-
if (!
|
|
3126
|
+
const ne = (a, u = !0) => {
|
|
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 = le[a]) == null ? void 0 : Be.call(le, 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 = le[a]) == null ? void 0 : Ie.call(le, 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
|
-
|
|
3126
|
-
const
|
|
3127
|
-
var $e, qe,
|
|
3140
|
+
ne("edit"), ne("delete"), ne("view"), ne("save"), ne("add", !1), ne("download", !1), ne("setting", !1), ne("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 = le.dropdown) == null ? void 0 : $e.call(le, 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
|
-
},
|
|
3207
|
+
}, oe = (a) => {
|
|
3193
3208
|
f.value = Object.fromEntries(S), e.value.table.load();
|
|
3194
|
-
},
|
|
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", W.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
|
+
}, E = 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
|
+
}, V = 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
|
+
}, ue = (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: ue,
|
|
3346
|
+
setting: pe,
|
|
3347
|
+
view: E,
|
|
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 = Ze(() => 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
|
+
}, j = () => {
|
|
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: E, saveRowData: q, closeDialog: j, 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(te, 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(Ge(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, D) => H(V)(K, me, D)),
|
|
3466
|
+
onReset: Q,
|
|
3449
3467
|
flag: l.value
|
|
3450
3468
|
}, ge({ _: 2 }, [
|
|
3451
|
-
|
|
3469
|
+
X(a.$slots, (K, me, D) => ({
|
|
3452
3470
|
name: me,
|
|
3453
|
-
fn: $((
|
|
3454
|
-
C(a.$slots, me, { model:
|
|
3471
|
+
fn: $((ae) => [
|
|
3472
|
+
C(a.$slots, me, { model: ae }, 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,63 @@ 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
|
se(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: oe
|
|
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
|
-
|
|
3524
|
+
(p(!0), R(te, null, X(he(["add", "batch", "download", "setting"], x.value, e.value), (K, me) => (p(), R(te, null, [
|
|
3525
|
+
me == "default" ? (p(!0), R(te, { key: 0 }, X(K, (D) => (p(), R(te, null, [
|
|
3526
|
+
C(a.$slots, D.name + "-left", {}, void 0, !0),
|
|
3527
|
+
(D.name === "control-add" ? D.attr.auth() && D.attr.inline === !1 : D.attr.auth()) ? C(a.$slots, D.name, { key: 0 }, () => [
|
|
3528
|
+
D.label ? (p(), O(H(Fe), L({
|
|
3511
3529
|
key: 0,
|
|
3512
|
-
title:
|
|
3513
|
-
}, { ref_for: !0 },
|
|
3514
|
-
onClick: (
|
|
3530
|
+
title: D.label
|
|
3531
|
+
}, { ref_for: !0 }, D.attr, {
|
|
3532
|
+
onClick: (ae) => D.func(x.value, e.value, o.value)
|
|
3515
3533
|
}), {
|
|
3516
3534
|
default: $(() => [
|
|
3517
|
-
Le(
|
|
3535
|
+
Le(Se(D.label), 1)
|
|
3518
3536
|
]),
|
|
3519
3537
|
_: 2
|
|
3520
|
-
}, 1040, ["title", "onClick"])) : (p(), O(
|
|
3538
|
+
}, 1040, ["title", "onClick"])) : (p(), O(H(Fe), L({
|
|
3521
3539
|
key: 1,
|
|
3522
|
-
title:
|
|
3523
|
-
}, { ref_for: !0 },
|
|
3524
|
-
onClick: (
|
|
3540
|
+
title: D.label
|
|
3541
|
+
}, { ref_for: !0 }, D.attr, {
|
|
3542
|
+
onClick: (ae) => D.func(x.value, e.value, o.value)
|
|
3525
3543
|
}), null, 16, ["title", "onClick"]))
|
|
3526
3544
|
], !0) : be("", !0),
|
|
3527
|
-
C(a.$slots,
|
|
3545
|
+
C(a.$slots, D.name + "-right", {}, void 0, !0)
|
|
3528
3546
|
], 64))), 256)) : (p(), O(m, { key: 1 }, {
|
|
3529
3547
|
default: $(() => [
|
|
3530
|
-
(p(!0),
|
|
3531
|
-
C(a.$slots,
|
|
3532
|
-
(
|
|
3533
|
-
|
|
3548
|
+
(p(!0), R(te, null, X(K, (D) => (p(), R(te, null, [
|
|
3549
|
+
C(a.$slots, D.name + "-left", {}, void 0, !0),
|
|
3550
|
+
(D.name === "control-add" ? D.attr.auth() && D.attr.inline === !1 : D.attr.auth()) ? C(a.$slots, D.name, { key: 0 }, () => [
|
|
3551
|
+
D.label ? (p(), O(H(Fe), L({
|
|
3534
3552
|
key: 0,
|
|
3535
|
-
title:
|
|
3536
|
-
}, { ref_for: !0 },
|
|
3537
|
-
onClick: (
|
|
3553
|
+
title: D.label
|
|
3554
|
+
}, { ref_for: !0 }, D.attr, {
|
|
3555
|
+
onClick: (ae) => D.func(x.value, e.value, o.value)
|
|
3538
3556
|
}), {
|
|
3539
3557
|
default: $(() => [
|
|
3540
|
-
Le(
|
|
3558
|
+
Le(Se(D.label), 1)
|
|
3541
3559
|
]),
|
|
3542
3560
|
_: 2
|
|
3543
|
-
}, 1040, ["title", "onClick"])) : (p(), O(
|
|
3561
|
+
}, 1040, ["title", "onClick"])) : (p(), O(H(Fe), L({
|
|
3544
3562
|
key: 1,
|
|
3545
|
-
title:
|
|
3546
|
-
}, { ref_for: !0 },
|
|
3547
|
-
onClick: (
|
|
3563
|
+
title: D.label
|
|
3564
|
+
}, { ref_for: !0 }, D.attr, {
|
|
3565
|
+
onClick: (ae) => D.func(x.value, e.value, o.value)
|
|
3548
3566
|
}), null, 16, ["title", "onClick"]))
|
|
3549
3567
|
], !0) : be("", !0),
|
|
3550
|
-
C(a.$slots,
|
|
3568
|
+
C(a.$slots, D.name + "-right", {}, void 0, !0)
|
|
3551
3569
|
], 64))), 256))
|
|
3552
3570
|
]),
|
|
3553
3571
|
_: 2
|
|
@@ -3557,9 +3575,9 @@ const Ra = /* @__PURE__ */ nl(Ya), Ha = { class: "g-table-container" }, Ba = {
|
|
|
3557
3575
|
]),
|
|
3558
3576
|
_: 2
|
|
3559
3577
|
}, [
|
|
3560
|
-
|
|
3578
|
+
X(a.$slots, (K, me, D) => ({
|
|
3561
3579
|
name: me,
|
|
3562
|
-
fn: $((
|
|
3580
|
+
fn: $((ae) => [
|
|
3563
3581
|
C(a.$slots, me, { model: e.value }, void 0, !0)
|
|
3564
3582
|
])
|
|
3565
3583
|
}))
|
|
@@ -3573,15 +3591,15 @@ const Ra = /* @__PURE__ */ nl(Ya), Ha = { class: "g-table-container" }, Ba = {
|
|
|
3573
3591
|
Z("div", Pa, [
|
|
3574
3592
|
se($e, L({
|
|
3575
3593
|
...a.$attrs,
|
|
3576
|
-
...
|
|
3594
|
+
...H(Je)(
|
|
3577
3595
|
e.value.table,
|
|
3578
3596
|
(K) => !["dblclickType", "page"].includes(K)
|
|
3579
3597
|
)
|
|
3580
3598
|
}, {
|
|
3581
3599
|
"summary-method": (K) => e.value.table["summary-method"](K, { fields: J.value, sums: g.value }),
|
|
3582
3600
|
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" && ((
|
|
3601
|
+
var me, D;
|
|
3602
|
+
e.value.table.onSortChange(K, f.value), ((me = K == null ? void 0 : K.column) == null ? void 0 : me.sortable) === "custom" && ((D = e.value.table) == null || D.load());
|
|
3585
3603
|
})
|
|
3586
3604
|
}), {
|
|
3587
3605
|
append: $(() => [
|
|
@@ -3592,147 +3610,147 @@ const Ra = /* @__PURE__ */ nl(Ya), Ha = { class: "g-table-container" }, Ba = {
|
|
|
3592
3610
|
]),
|
|
3593
3611
|
default: $(() => [
|
|
3594
3612
|
C(a.$slots, "default", {}, () => [
|
|
3595
|
-
(p(!0),
|
|
3613
|
+
(p(!0), R(te, null, X(Ue.value, (K, me) => (p(), O(F, L({
|
|
3596
3614
|
prop: me,
|
|
3597
3615
|
key: me
|
|
3598
3616
|
}, { ref_for: !0 }, {
|
|
3599
3617
|
...e.value.tableColumns,
|
|
3600
|
-
...
|
|
3618
|
+
...H(Je)(K, (D) => v.includes(D))
|
|
3601
3619
|
}), ge({
|
|
3602
|
-
header: $(({ column:
|
|
3620
|
+
header: $(({ column: D, $index: ae }) => [
|
|
3603
3621
|
me == "control" ? C(a.$slots, `${me}-header`, {
|
|
3604
3622
|
key: 0,
|
|
3605
|
-
column:
|
|
3606
|
-
index:
|
|
3623
|
+
column: D,
|
|
3624
|
+
index: ae
|
|
3607
3625
|
}, () => [
|
|
3608
|
-
Z("span", null,
|
|
3626
|
+
Z("span", null, Se(D.label), 1)
|
|
3609
3627
|
], !0) : C(a.$slots, `${me}-header`, {
|
|
3610
3628
|
key: 1,
|
|
3611
|
-
column:
|
|
3612
|
-
index:
|
|
3629
|
+
column: D,
|
|
3630
|
+
index: ae
|
|
3613
3631
|
}, void 0, !0)
|
|
3614
3632
|
]),
|
|
3615
|
-
"filter-icon": $((
|
|
3616
|
-
C(a.$slots, `${me}-filter-icon`, { data:
|
|
3633
|
+
"filter-icon": $((D) => [
|
|
3634
|
+
C(a.$slots, `${me}-filter-icon`, { data: D }, void 0, !0)
|
|
3617
3635
|
]),
|
|
3618
3636
|
_: 2
|
|
3619
3637
|
}, [
|
|
3620
3638
|
K.type === "expand" ? {
|
|
3621
3639
|
name: "default",
|
|
3622
|
-
fn: $(({ row:
|
|
3640
|
+
fn: $(({ row: D, column: ae, $index: de }) => [
|
|
3623
3641
|
C(a.$slots, `${me}`, {
|
|
3624
|
-
row:
|
|
3625
|
-
column:
|
|
3642
|
+
row: D,
|
|
3643
|
+
column: ae,
|
|
3626
3644
|
index: de
|
|
3627
3645
|
}, void 0, !0)
|
|
3628
3646
|
]),
|
|
3629
3647
|
key: "0"
|
|
3630
3648
|
} : K.type == "control" ? {
|
|
3631
3649
|
name: "default",
|
|
3632
|
-
fn: $(({ row:
|
|
3633
|
-
var
|
|
3650
|
+
fn: $(({ row: D, column: ae, $index: de }) => {
|
|
3651
|
+
var tt, ut;
|
|
3634
3652
|
return [
|
|
3635
3653
|
Z("div", {
|
|
3636
|
-
class:
|
|
3637
|
-
style:
|
|
3654
|
+
class: Qt(["control", (tt = e.value.control) == null ? void 0 : tt.class]),
|
|
3655
|
+
style: Ye((ut = e.value.control) == null ? void 0 : ut.style)
|
|
3638
3656
|
}, [
|
|
3639
3657
|
C(a.$slots, "control", {}, () => [
|
|
3640
3658
|
C(a.$slots, "control-left", {
|
|
3641
|
-
row:
|
|
3642
|
-
column:
|
|
3659
|
+
row: D,
|
|
3660
|
+
column: ae,
|
|
3643
3661
|
index: de
|
|
3644
3662
|
}, void 0, !0),
|
|
3645
|
-
(p(!0),
|
|
3663
|
+
(p(!0), R(te, null, X(he(["view", "edit", "delete", "save"], D, ae, de, e.value), (lt, at) => {
|
|
3646
3664
|
var ct;
|
|
3647
|
-
return p(),
|
|
3648
|
-
|
|
3649
|
-
C(a.$slots,
|
|
3650
|
-
row:
|
|
3651
|
-
column:
|
|
3665
|
+
return p(), R(te, null, [
|
|
3666
|
+
at == "default" ? (p(!0), R(te, { key: 0 }, X(lt, (G) => (p(), R(te, null, [
|
|
3667
|
+
C(a.$slots, G.name + "-left", {
|
|
3668
|
+
row: D,
|
|
3669
|
+
column: ae,
|
|
3652
3670
|
index: de
|
|
3653
3671
|
}, void 0, !0),
|
|
3654
|
-
|
|
3672
|
+
G.attr.auth() ? C(a.$slots, G.name, {
|
|
3655
3673
|
key: 0,
|
|
3656
|
-
row:
|
|
3657
|
-
column:
|
|
3674
|
+
row: D,
|
|
3675
|
+
column: ae,
|
|
3658
3676
|
index: de
|
|
3659
3677
|
}, () => [
|
|
3660
|
-
|
|
3678
|
+
G.label ? (p(), O(H(Fe), L({
|
|
3661
3679
|
key: 0,
|
|
3662
|
-
title:
|
|
3663
|
-
}, { ref_for: !0 },
|
|
3664
|
-
onClick: (
|
|
3680
|
+
title: G.label
|
|
3681
|
+
}, { ref_for: !0 }, G.attr, {
|
|
3682
|
+
onClick: (rt) => G.func(D, ae, de, e.value)
|
|
3665
3683
|
}), {
|
|
3666
3684
|
default: $(() => [
|
|
3667
|
-
Le(
|
|
3685
|
+
Le(Se(G.label), 1)
|
|
3668
3686
|
]),
|
|
3669
3687
|
_: 2
|
|
3670
|
-
}, 1040, ["title", "onClick"])) : (p(), O(
|
|
3688
|
+
}, 1040, ["title", "onClick"])) : (p(), O(H(Fe), L({
|
|
3671
3689
|
key: 1,
|
|
3672
|
-
title:
|
|
3673
|
-
}, { ref_for: !0 },
|
|
3674
|
-
onClick: (
|
|
3690
|
+
title: G.label
|
|
3691
|
+
}, { ref_for: !0 }, G.attr, {
|
|
3692
|
+
onClick: (rt) => G.func(D, ae, de, e.value)
|
|
3675
3693
|
}), null, 16, ["title", "onClick"]))
|
|
3676
3694
|
], !0) : be("", !0),
|
|
3677
|
-
C(a.$slots,
|
|
3678
|
-
row:
|
|
3679
|
-
column:
|
|
3695
|
+
C(a.$slots, G.name + "-right", {
|
|
3696
|
+
row: D,
|
|
3697
|
+
column: ae,
|
|
3680
3698
|
index: de
|
|
3681
3699
|
}, void 0, !0)
|
|
3682
|
-
], 64))), 256)) :
|
|
3700
|
+
], 64))), 256)) : at != null && at.startsWith("dropdown") && ((ct = ve(D, ae, de, e.value)) != null && ct.auth()) ? (p(), O(P, L({
|
|
3683
3701
|
key: 1,
|
|
3684
3702
|
ref_for: !0
|
|
3685
|
-
},
|
|
3703
|
+
}, ve(D, ae, de, e.value)), {
|
|
3686
3704
|
dropdown: $(() => [
|
|
3687
|
-
se(
|
|
3705
|
+
se(I, null, {
|
|
3688
3706
|
default: $(() => [
|
|
3689
|
-
(p(!0),
|
|
3690
|
-
var
|
|
3691
|
-
return p(),
|
|
3692
|
-
a.$slots[
|
|
3707
|
+
(p(!0), R(te, null, X(lt, (G) => {
|
|
3708
|
+
var rt, ft, vt;
|
|
3709
|
+
return p(), R(te, null, [
|
|
3710
|
+
a.$slots[G.name + "-left"] ? C(a.$slots, G.name + "-left", {
|
|
3693
3711
|
key: 0,
|
|
3694
|
-
row:
|
|
3695
|
-
column:
|
|
3712
|
+
row: D,
|
|
3713
|
+
column: ae,
|
|
3696
3714
|
index: de
|
|
3697
3715
|
}, void 0, !0) : be("", !0),
|
|
3698
|
-
|
|
3716
|
+
G.attr.auth() ? (p(), O(w, L({
|
|
3699
3717
|
key: 1,
|
|
3700
3718
|
ref_for: !0
|
|
3701
3719
|
}, {
|
|
3702
|
-
command: (
|
|
3703
|
-
divided: (ft =
|
|
3704
|
-
disabled: (vt =
|
|
3720
|
+
command: (rt = G == null ? void 0 : G.attr) == null ? void 0 : rt.command,
|
|
3721
|
+
divided: (ft = G == null ? void 0 : G.attr) == null ? void 0 : ft.divided,
|
|
3722
|
+
disabled: (vt = G == null ? void 0 : G.attr) == null ? void 0 : vt.disabled
|
|
3705
3723
|
}), {
|
|
3706
3724
|
default: $(() => [
|
|
3707
|
-
C(a.$slots,
|
|
3708
|
-
row:
|
|
3709
|
-
column:
|
|
3725
|
+
C(a.$slots, G.name, {
|
|
3726
|
+
row: D,
|
|
3727
|
+
column: ae,
|
|
3710
3728
|
index: de
|
|
3711
3729
|
}, () => [
|
|
3712
|
-
|
|
3730
|
+
G.label ? (p(), O(H(Fe), L({
|
|
3713
3731
|
key: 0,
|
|
3714
|
-
title:
|
|
3715
|
-
}, { ref_for: !0 },
|
|
3716
|
-
onClick: (
|
|
3732
|
+
title: G.label
|
|
3733
|
+
}, { ref_for: !0 }, G.attr, {
|
|
3734
|
+
onClick: (wt) => G.func(D, ae, de, e.value)
|
|
3717
3735
|
}), {
|
|
3718
3736
|
default: $(() => [
|
|
3719
|
-
Le(
|
|
3737
|
+
Le(Se(G.label), 1)
|
|
3720
3738
|
]),
|
|
3721
3739
|
_: 2
|
|
3722
|
-
}, 1040, ["title", "onClick"])) : (p(), O(
|
|
3740
|
+
}, 1040, ["title", "onClick"])) : (p(), O(H(Fe), L({
|
|
3723
3741
|
key: 1,
|
|
3724
|
-
title:
|
|
3725
|
-
}, { ref_for: !0 },
|
|
3726
|
-
onClick: (
|
|
3742
|
+
title: G.label
|
|
3743
|
+
}, { ref_for: !0 }, G.attr, {
|
|
3744
|
+
onClick: (wt) => G.func(D, ae, de, e.value)
|
|
3727
3745
|
}), null, 16, ["title", "onClick"]))
|
|
3728
3746
|
], !0)
|
|
3729
3747
|
]),
|
|
3730
3748
|
_: 2
|
|
3731
3749
|
}, 1040)) : be("", !0),
|
|
3732
|
-
a.$slots[
|
|
3750
|
+
a.$slots[G.name + "-right"] ? C(a.$slots, G.name + "-right", {
|
|
3733
3751
|
key: 2,
|
|
3734
|
-
row:
|
|
3735
|
-
column:
|
|
3752
|
+
row: D,
|
|
3753
|
+
column: ae,
|
|
3736
3754
|
index: de
|
|
3737
3755
|
}, void 0, !0) : be("", !0)
|
|
3738
3756
|
], 64);
|
|
@@ -3742,46 +3760,46 @@ const Ra = /* @__PURE__ */ nl(Ya), Ha = { class: "g-table-container" }, Ba = {
|
|
|
3742
3760
|
}, 1024)
|
|
3743
3761
|
]),
|
|
3744
3762
|
default: $(() => {
|
|
3745
|
-
var
|
|
3763
|
+
var G;
|
|
3746
3764
|
return [
|
|
3747
|
-
Le(
|
|
3765
|
+
Le(Se((G = ve(D, ae, de, e.value)) == null ? void 0 : G.label) + " ", 1)
|
|
3748
3766
|
];
|
|
3749
3767
|
}),
|
|
3750
3768
|
_: 2
|
|
3751
3769
|
}, 1040)) : (p(), O(m, { key: 2 }, {
|
|
3752
3770
|
default: $(() => [
|
|
3753
|
-
(p(!0),
|
|
3754
|
-
C(a.$slots,
|
|
3755
|
-
row:
|
|
3756
|
-
column:
|
|
3771
|
+
(p(!0), R(te, null, X(lt, (G) => (p(), R(te, null, [
|
|
3772
|
+
C(a.$slots, G.name + "-left", {
|
|
3773
|
+
row: D,
|
|
3774
|
+
column: ae,
|
|
3757
3775
|
index: de
|
|
3758
3776
|
}, void 0, !0),
|
|
3759
|
-
|
|
3777
|
+
G.attr.auth() ? C(a.$slots, G.name, {
|
|
3760
3778
|
key: 0,
|
|
3761
|
-
row:
|
|
3762
|
-
column:
|
|
3779
|
+
row: D,
|
|
3780
|
+
column: ae,
|
|
3763
3781
|
index: de
|
|
3764
3782
|
}, () => [
|
|
3765
|
-
|
|
3783
|
+
G.label ? (p(), O(H(Fe), L({
|
|
3766
3784
|
key: 0,
|
|
3767
|
-
title:
|
|
3768
|
-
}, { ref_for: !0 },
|
|
3769
|
-
onClick: (
|
|
3785
|
+
title: G.label
|
|
3786
|
+
}, { ref_for: !0 }, G.attr, {
|
|
3787
|
+
onClick: (rt) => G.func(D, ae, de, e.value)
|
|
3770
3788
|
}), {
|
|
3771
3789
|
default: $(() => [
|
|
3772
|
-
Le(
|
|
3790
|
+
Le(Se(G.label), 1)
|
|
3773
3791
|
]),
|
|
3774
3792
|
_: 2
|
|
3775
|
-
}, 1040, ["title", "onClick"])) : (p(), O(
|
|
3793
|
+
}, 1040, ["title", "onClick"])) : (p(), O(H(Fe), L({
|
|
3776
3794
|
key: 1,
|
|
3777
|
-
title:
|
|
3778
|
-
}, { ref_for: !0 },
|
|
3779
|
-
onClick: (
|
|
3795
|
+
title: G.label
|
|
3796
|
+
}, { ref_for: !0 }, G.attr, {
|
|
3797
|
+
onClick: (rt) => G.func(D, ae, de, e.value)
|
|
3780
3798
|
}), null, 16, ["title", "onClick"]))
|
|
3781
3799
|
], !0) : be("", !0),
|
|
3782
|
-
C(a.$slots,
|
|
3783
|
-
row:
|
|
3784
|
-
column:
|
|
3800
|
+
C(a.$slots, G.name + "-right", {
|
|
3801
|
+
row: D,
|
|
3802
|
+
column: ae,
|
|
3785
3803
|
index: de
|
|
3786
3804
|
}, void 0, !0)
|
|
3787
3805
|
], 64))), 256))
|
|
@@ -3791,8 +3809,8 @@ const Ra = /* @__PURE__ */ nl(Ya), Ha = { class: "g-table-container" }, Ba = {
|
|
|
3791
3809
|
], 64);
|
|
3792
3810
|
}), 256)),
|
|
3793
3811
|
C(a.$slots, "control-right", {
|
|
3794
|
-
row:
|
|
3795
|
-
column:
|
|
3812
|
+
row: D,
|
|
3813
|
+
column: ae,
|
|
3796
3814
|
index: de
|
|
3797
3815
|
}, void 0, !0)
|
|
3798
3816
|
], !0)
|
|
@@ -3802,32 +3820,32 @@ const Ra = /* @__PURE__ */ nl(Ya), Ha = { class: "g-table-container" }, Ba = {
|
|
|
3802
3820
|
key: "1"
|
|
3803
3821
|
} : K.type != "selection" && K.type != "index" ? {
|
|
3804
3822
|
name: "default",
|
|
3805
|
-
fn: $(({ row:
|
|
3806
|
-
|
|
3823
|
+
fn: $(({ row: D, column: ae, $index: de }) => [
|
|
3824
|
+
M(K, D, ae, de) && de != -1 ? C(a.$slots, `${me}`, {
|
|
3807
3825
|
key: 0,
|
|
3808
|
-
row:
|
|
3809
|
-
column:
|
|
3826
|
+
row: D,
|
|
3827
|
+
column: ae,
|
|
3810
3828
|
index: de
|
|
3811
3829
|
}, () => {
|
|
3812
|
-
var
|
|
3830
|
+
var tt;
|
|
3813
3831
|
return [
|
|
3814
|
-
(p(), O(
|
|
3815
|
-
modelValue:
|
|
3816
|
-
"onUpdate:modelValue": (
|
|
3817
|
-
item: K == null ? void 0 : K.table(
|
|
3832
|
+
(p(), O(Mt, {
|
|
3833
|
+
modelValue: D[me],
|
|
3834
|
+
"onUpdate:modelValue": (ut) => D[me] = ut,
|
|
3835
|
+
item: K == null ? void 0 : K.table(D, ae, de),
|
|
3818
3836
|
ctrlKey: me,
|
|
3819
3837
|
key: `${me}-${de} -${U.value}`,
|
|
3820
|
-
ctrlType: (
|
|
3838
|
+
ctrlType: (tt = K.table(D, ae, de)) != null && tt.type ? K.table(D, ae, de).type : K.type,
|
|
3821
3839
|
model: e.value,
|
|
3822
3840
|
class: "g-ctrl-container",
|
|
3823
3841
|
t: "t",
|
|
3824
|
-
formInfo:
|
|
3842
|
+
formInfo: D
|
|
3825
3843
|
}, ge({ _: 2 }, [
|
|
3826
|
-
|
|
3827
|
-
name:
|
|
3828
|
-
fn: $((
|
|
3829
|
-
C(a.$slots,
|
|
3830
|
-
data:
|
|
3844
|
+
X(a.$slots, (ut, lt) => ({
|
|
3845
|
+
name: lt,
|
|
3846
|
+
fn: $((at) => [
|
|
3847
|
+
C(a.$slots, lt, {
|
|
3848
|
+
data: at,
|
|
3831
3849
|
item: K,
|
|
3832
3850
|
model: e.value
|
|
3833
3851
|
}, void 0, !0)
|
|
@@ -3837,15 +3855,15 @@ const Ra = /* @__PURE__ */ nl(Ya), Ha = { class: "g-table-container" }, Ba = {
|
|
|
3837
3855
|
];
|
|
3838
3856
|
}, !0) : C(a.$slots, `${me}`, {
|
|
3839
3857
|
key: 1,
|
|
3840
|
-
row:
|
|
3841
|
-
column:
|
|
3858
|
+
row: D,
|
|
3859
|
+
column: ae,
|
|
3842
3860
|
index: de
|
|
3843
3861
|
}, () => [
|
|
3844
3862
|
Z("div", {
|
|
3845
|
-
style:
|
|
3846
|
-
innerHTML:
|
|
3863
|
+
style: Ye([{ width: "100%", "text-overflow": "ellipsis", overflow: "hidden" }, K == null ? void 0 : K.style]),
|
|
3864
|
+
innerHTML: ee(
|
|
3847
3865
|
K,
|
|
3848
|
-
|
|
3866
|
+
ae.formatter(D, ae, D[me], de)
|
|
3849
3867
|
)
|
|
3850
3868
|
}, null, 12, Na)
|
|
3851
3869
|
], !0)
|
|
@@ -3857,7 +3875,7 @@ const Ra = /* @__PURE__ */ nl(Ya), Ha = { class: "g-table-container" }, Ba = {
|
|
|
3857
3875
|
]),
|
|
3858
3876
|
_: 3
|
|
3859
3877
|
}, 16, ["summary-method"]),
|
|
3860
|
-
(
|
|
3878
|
+
($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 }, () => [
|
|
3861
3879
|
se(qe, L({
|
|
3862
3880
|
"page-size": e.value.table.page.pageSize,
|
|
3863
3881
|
"onUpdate:pageSize": u[6] || (u[6] = (K) => e.value.table.page.pageSize = K),
|
|
@@ -3875,7 +3893,7 @@ const Ra = /* @__PURE__ */ nl(Ya), Ha = { class: "g-table-container" }, Ba = {
|
|
|
3875
3893
|
], 64);
|
|
3876
3894
|
};
|
|
3877
3895
|
}
|
|
3878
|
-
}), Wa = /* @__PURE__ */
|
|
3896
|
+
}), Wa = /* @__PURE__ */ et(ja, [["__scopeId", "data-v-e41cbf6f"]]), Ga = { class: "g-tree-table" }, Xa = { class: "g-tree-container" }, Qa = { class: "g-tree-table-container" }, Za = /* @__PURE__ */ Object.assign({
|
|
3879
3897
|
name: "g-tree-table",
|
|
3880
3898
|
inheritAttrs: !1
|
|
3881
3899
|
}, {
|
|
@@ -3884,40 +3902,40 @@ const Ra = /* @__PURE__ */ nl(Ya), Ha = { class: "g-table-container" }, Ba = {
|
|
|
3884
3902
|
modelValue: { required: !0 },
|
|
3885
3903
|
modelModifiers: {}
|
|
3886
3904
|
},
|
|
3887
|
-
emits: /* @__PURE__ */
|
|
3905
|
+
emits: /* @__PURE__ */ ot(["load"], ["update:modelValue"]),
|
|
3888
3906
|
setup(r, { emit: s }) {
|
|
3889
3907
|
var g, J, x, U;
|
|
3890
|
-
const t = s, l =
|
|
3908
|
+
const t = s, l = Ke(r, "modelValue"), n = Tt(), e = re(
|
|
3891
3909
|
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
|
|
3910
|
+
), 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, W) => {
|
|
3911
|
+
var le, ne;
|
|
3894
3912
|
if (!z) return !0;
|
|
3895
|
-
const
|
|
3896
|
-
return
|
|
3897
|
-
}, o = (z,
|
|
3898
|
-
t("load", f.value, z,
|
|
3913
|
+
const ie = ((ne = (le = n.tree) == null ? void 0 : le.props) == null ? void 0 : ne.label) || "label";
|
|
3914
|
+
return W[ie].includes(z);
|
|
3915
|
+
}, o = (z, W) => {
|
|
3916
|
+
t("load", f.value, z, W);
|
|
3899
3917
|
}, d = (z) => {
|
|
3900
3918
|
f.value = z, l.value.table.load();
|
|
3901
3919
|
};
|
|
3902
|
-
return
|
|
3920
|
+
return Zt(S, (z) => {
|
|
3903
3921
|
c.value.filter(z);
|
|
3904
|
-
}), (z,
|
|
3905
|
-
const
|
|
3906
|
-
return p(),
|
|
3922
|
+
}), (z, W) => {
|
|
3923
|
+
const ie = N("el-input"), le = N("el-tree"), ne = N("g-table");
|
|
3924
|
+
return p(), R("div", Ga, [
|
|
3907
3925
|
Z("div", {
|
|
3908
3926
|
class: "g-tree-left",
|
|
3909
|
-
style:
|
|
3927
|
+
style: Ye({ width: e.value })
|
|
3910
3928
|
}, [
|
|
3911
|
-
h.value ? (p(), O(
|
|
3929
|
+
h.value ? (p(), O(ie, {
|
|
3912
3930
|
key: 0,
|
|
3913
3931
|
modelValue: S.value,
|
|
3914
|
-
"onUpdate:modelValue":
|
|
3932
|
+
"onUpdate:modelValue": W[0] || (W[0] = (ve) => S.value = ve),
|
|
3915
3933
|
style: { width: "100%", "box-sizing": "border-box", "margin-bottom": "10px" },
|
|
3916
3934
|
placeholder: "输入节点查询",
|
|
3917
3935
|
clearable: ""
|
|
3918
3936
|
}, null, 8, ["modelValue"])) : be("", !0),
|
|
3919
3937
|
Z("div", Xa, [
|
|
3920
|
-
se(
|
|
3938
|
+
se(le, L({
|
|
3921
3939
|
style: { width: e.value },
|
|
3922
3940
|
"filter-node-method": v,
|
|
3923
3941
|
"expand-on-click-node": !1,
|
|
@@ -3925,34 +3943,34 @@ const Ra = /* @__PURE__ */ nl(Ya), Ha = { class: "g-table-container" }, Ba = {
|
|
|
3925
3943
|
ref: c,
|
|
3926
3944
|
onNodeClick: d
|
|
3927
3945
|
}, z.$attrs.tree), ge({
|
|
3928
|
-
default: $(({ node:
|
|
3946
|
+
default: $(({ node: ve, data: ke }) => [
|
|
3929
3947
|
C(z.$slots, "tree", {
|
|
3930
|
-
node:
|
|
3931
|
-
data:
|
|
3948
|
+
node: ve,
|
|
3949
|
+
data: ke
|
|
3932
3950
|
}, () => [
|
|
3933
|
-
Z("span", null,
|
|
3951
|
+
Z("span", null, Se(ve.label), 1)
|
|
3934
3952
|
], !0)
|
|
3935
3953
|
]),
|
|
3936
3954
|
_: 2
|
|
3937
3955
|
}, [
|
|
3938
|
-
|
|
3939
|
-
name:
|
|
3956
|
+
X(z.$slots, (ve, ke, Ve) => ({
|
|
3957
|
+
name: ke,
|
|
3940
3958
|
fn: $((xe) => [
|
|
3941
|
-
C(z.$slots,
|
|
3959
|
+
C(z.$slots, ke, { data: xe }, void 0, !0)
|
|
3942
3960
|
])
|
|
3943
3961
|
}))
|
|
3944
3962
|
]), 1040, ["style"])
|
|
3945
3963
|
])
|
|
3946
3964
|
], 4),
|
|
3947
3965
|
Z("div", Qa, [
|
|
3948
|
-
se(
|
|
3966
|
+
se(ne, L({
|
|
3949
3967
|
modelValue: l.value,
|
|
3950
|
-
"onUpdate:modelValue":
|
|
3968
|
+
"onUpdate:modelValue": W[1] || (W[1] = (ve) => l.value = ve)
|
|
3951
3969
|
}, z.$attrs, { onLoad: o }), ge({ _: 2 }, [
|
|
3952
|
-
|
|
3953
|
-
name:
|
|
3970
|
+
X(z.$slots, (ve, ke, Ve) => ({
|
|
3971
|
+
name: ke,
|
|
3954
3972
|
fn: $((xe) => [
|
|
3955
|
-
C(z.$slots,
|
|
3973
|
+
C(z.$slots, ke, { data: xe }, void 0, !0)
|
|
3956
3974
|
])
|
|
3957
3975
|
}))
|
|
3958
3976
|
]), 1040, ["modelValue"])
|
|
@@ -3960,14 +3978,14 @@ const Ra = /* @__PURE__ */ nl(Ya), Ha = { class: "g-table-container" }, Ba = {
|
|
|
3960
3978
|
]);
|
|
3961
3979
|
};
|
|
3962
3980
|
}
|
|
3963
|
-
}), Ja = /* @__PURE__ */
|
|
3981
|
+
}), Ja = /* @__PURE__ */ et(Za, [["__scopeId", "data-v-c888e4fc"]]), Ka = {
|
|
3964
3982
|
key: 0,
|
|
3965
3983
|
class: "op-group"
|
|
3966
3984
|
}, er = {
|
|
3967
3985
|
key: 1,
|
|
3968
3986
|
class: "op-items",
|
|
3969
3987
|
style: { width: "100%", height: "100%" }
|
|
3970
|
-
}, tr = ["title"],
|
|
3988
|
+
}, tr = ["title"], jt = "100px", lr = /* @__PURE__ */ Object.assign({ name: "g-select-option" }, {
|
|
3971
3989
|
__name: "g-select-option",
|
|
3972
3990
|
props: {
|
|
3973
3991
|
columns: {
|
|
@@ -3989,36 +4007,36 @@ const Ra = /* @__PURE__ */ nl(Ya), Ha = { class: "g-table-container" }, Ba = {
|
|
|
3989
4007
|
},
|
|
3990
4008
|
setup(r) {
|
|
3991
4009
|
const s = r;
|
|
3992
|
-
return (t, l) => s.title ? (p(),
|
|
3993
|
-
(p(!0),
|
|
3994
|
-
style:
|
|
4010
|
+
return (t, l) => s.title ? (p(), R("div", Ka, [
|
|
4011
|
+
(p(!0), R(te, null, X(s.columns, (n) => (p(), R("span", {
|
|
4012
|
+
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
4013
|
key: n.key
|
|
3996
4014
|
}, [
|
|
3997
4015
|
C(t.$slots, `${r.t}-title-${n.key}`, { col: n }, () => [
|
|
3998
|
-
Le(
|
|
4016
|
+
Le(Se(n.label), 1)
|
|
3999
4017
|
], !0)
|
|
4000
4018
|
], 4))), 128))
|
|
4001
|
-
])) : (p(),
|
|
4002
|
-
(p(!0),
|
|
4003
|
-
style:
|
|
4019
|
+
])) : (p(), R("div", er, [
|
|
4020
|
+
(p(!0), R(te, null, X(s.columns, (n) => (p(), R("span", {
|
|
4021
|
+
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
4022
|
key: n.key,
|
|
4005
4023
|
title: r.data[n.key]
|
|
4006
4024
|
}, [
|
|
4007
4025
|
C(t.$slots, `${r.t}-option-${n.key}`, { col: n }, () => [
|
|
4008
|
-
Le(
|
|
4026
|
+
Le(Se(r.data[n.key] ?? "-"), 1)
|
|
4009
4027
|
], !0)
|
|
4010
4028
|
], 12, tr))), 128))
|
|
4011
4029
|
]));
|
|
4012
4030
|
}
|
|
4013
|
-
}), ar = /* @__PURE__ */
|
|
4014
|
-
let
|
|
4031
|
+
}), ar = /* @__PURE__ */ et(lr, [["__scopeId", "data-v-c0ac6b77"]]), rr = Object.freeze({}), Rt = [Wa, sl, Ja, ar, Ut];
|
|
4032
|
+
let xt = {};
|
|
4015
4033
|
const br = {
|
|
4016
4034
|
install: (r, s = {}) => {
|
|
4017
|
-
|
|
4035
|
+
xt = Object.freeze({ ...rr, ...s }), Rt.forEach((t) => {
|
|
4018
4036
|
r.component(t.name, t);
|
|
4019
|
-
}), r.provide("options",
|
|
4037
|
+
}), r.provide("options", xt), r.config.globalProperties.$openModal = At, r.config.globalProperties.$open = or;
|
|
4020
4038
|
}
|
|
4021
|
-
}, nr = (r) => ({ dialog: pl, drawer: vl })[r] || null,
|
|
4039
|
+
}, nr = (r) => ({ dialog: pl, drawer: vl })[r] || null, At = (r = {}, s = "dialog") => {
|
|
4022
4040
|
if (typeof document > "u") return () => {
|
|
4023
4041
|
};
|
|
4024
4042
|
const t = document.createElement("div");
|
|
@@ -4027,7 +4045,7 @@ const br = {
|
|
|
4027
4045
|
const n = nr(s);
|
|
4028
4046
|
if (!n) return () => {
|
|
4029
4047
|
};
|
|
4030
|
-
const e = re(!0), h =
|
|
4048
|
+
const e = re(!0), h = Jt({
|
|
4031
4049
|
setup() {
|
|
4032
4050
|
return l = () => {
|
|
4033
4051
|
e.value = !1, setTimeout(() => {
|
|
@@ -4035,7 +4053,7 @@ const br = {
|
|
|
4035
4053
|
}, 300);
|
|
4036
4054
|
}, () => {
|
|
4037
4055
|
var f, S, c;
|
|
4038
|
-
return
|
|
4056
|
+
return we(n, {
|
|
4039
4057
|
modelValue: e.value,
|
|
4040
4058
|
"onUpdate:modelValue": (v) => e.value = v,
|
|
4041
4059
|
appendToBody: !0,
|
|
@@ -4056,22 +4074,22 @@ const br = {
|
|
|
4056
4074
|
mt();
|
|
4057
4075
|
}
|
|
4058
4076
|
});
|
|
4059
|
-
return
|
|
4077
|
+
return Rt.forEach((f) => {
|
|
4060
4078
|
h.component(f.name, f);
|
|
4061
|
-
}), h.provide("options",
|
|
4079
|
+
}), h.provide("options", xt), h.use(Wt, { locale: rl }), document.body.appendChild(t), h.mount(t), l;
|
|
4062
4080
|
}, or = (r = {}) => {
|
|
4063
4081
|
if (typeof document > "u") return () => {
|
|
4064
4082
|
};
|
|
4065
4083
|
const s = document.createElement("div");
|
|
4066
4084
|
let t = () => {
|
|
4067
4085
|
};
|
|
4068
|
-
const l = re(!0), n =
|
|
4086
|
+
const l = re(!0), n = Jt({
|
|
4069
4087
|
setup() {
|
|
4070
4088
|
t = () => {
|
|
4071
4089
|
l.value = !1, setTimeout(() => {
|
|
4072
4090
|
n.unmount(), s.remove();
|
|
4073
4091
|
}, 300);
|
|
4074
|
-
},
|
|
4092
|
+
}, Zt(l, (S) => {
|
|
4075
4093
|
S || setTimeout(() => {
|
|
4076
4094
|
n.unmount(), s.remove();
|
|
4077
4095
|
}, 300);
|
|
@@ -4082,15 +4100,15 @@ const br = {
|
|
|
4082
4100
|
"close-on-click-modal": !1,
|
|
4083
4101
|
...h
|
|
4084
4102
|
};
|
|
4085
|
-
return e && (f.onClose = e), () =>
|
|
4103
|
+
return e && (f.onClose = e), () => we(Ut, f, r.slots);
|
|
4086
4104
|
},
|
|
4087
4105
|
mounted: () => {
|
|
4088
4106
|
mt();
|
|
4089
4107
|
}
|
|
4090
4108
|
});
|
|
4091
|
-
return
|
|
4109
|
+
return Rt.forEach((e) => {
|
|
4092
4110
|
n.component(e.name, e);
|
|
4093
|
-
}), n.provide("options",
|
|
4111
|
+
}), n.provide("options", xt), n.use(Wt, { locale: rl }), document.body.appendChild(s), n.mount(s), t;
|
|
4094
4112
|
};
|
|
4095
4113
|
function ur(r, s = window.innerWidth) {
|
|
4096
4114
|
if (typeof r == "number")
|
|
@@ -4124,7 +4142,7 @@ const ze = (...r) => {
|
|
|
4124
4142
|
}), l);
|
|
4125
4143
|
return r.forEach((l = {}) => t(s, l)), s;
|
|
4126
4144
|
};
|
|
4127
|
-
function
|
|
4145
|
+
function Je(r, s = (t, l) => l != null) {
|
|
4128
4146
|
const t = {};
|
|
4129
4147
|
for (const l in r)
|
|
4130
4148
|
r.hasOwnProperty(l) && s(l, r[l]) && (t[l] = r[l]);
|
|
@@ -4142,7 +4160,7 @@ function sr(r, s, t = "value", l = "label", n = "children") {
|
|
|
4142
4160
|
}
|
|
4143
4161
|
return null;
|
|
4144
4162
|
}
|
|
4145
|
-
function
|
|
4163
|
+
function zt(r) {
|
|
4146
4164
|
if (!r || isNaN(r)) return "零";
|
|
4147
4165
|
const s = ["角", "分"], t = ["零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖"], l = [
|
|
4148
4166
|
["元", "万", "亿"],
|
|
@@ -4188,7 +4206,7 @@ function $r(r, s) {
|
|
|
4188
4206
|
}, s));
|
|
4189
4207
|
};
|
|
4190
4208
|
}
|
|
4191
|
-
const
|
|
4209
|
+
const Ce = {
|
|
4192
4210
|
RADIO: "radio",
|
|
4193
4211
|
RADIOBUTTON: "radio-button",
|
|
4194
4212
|
CHECKBOX: "checkbox",
|
|
@@ -4259,17 +4277,17 @@ const _e = {
|
|
|
4259
4277
|
s.addEventListener("mousedown", f);
|
|
4260
4278
|
};
|
|
4261
4279
|
export {
|
|
4262
|
-
|
|
4280
|
+
Ce as CT,
|
|
4263
4281
|
mt as bindResize,
|
|
4264
4282
|
ur as convertToPx,
|
|
4265
4283
|
dr as debounce,
|
|
4266
4284
|
br as default,
|
|
4267
|
-
|
|
4285
|
+
Je as filterObject,
|
|
4268
4286
|
sr as findTreeLabelByValue,
|
|
4269
4287
|
ir as formatAmount,
|
|
4270
4288
|
ze as mergeObjects,
|
|
4271
|
-
|
|
4289
|
+
zt as moneyToChinese,
|
|
4272
4290
|
or as open,
|
|
4273
|
-
|
|
4291
|
+
At as openModal,
|
|
4274
4292
|
$r as throttle
|
|
4275
4293
|
};
|