vue-2024-ui 0.1.28 → 0.1.29
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 +875 -872
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import Yt, { ElForm as dt, ElButtonGroup as ft, ElButton as Me, ElPopover as ht, ElMessage as
|
|
2
|
-
import { mergeModels as Ne, useModel as We, ref as
|
|
3
|
-
import { Plus as
|
|
1
|
+
import Yt, { ElForm as dt, ElButtonGroup as ft, ElButton as Me, ElPopover as ht, ElMessage as Ie, ElMessageBox as xt, ElDialog as Ut, ElDrawer as Rt } from "element-plus";
|
|
2
|
+
import { mergeModels as Ne, useModel as We, ref as le, nextTick as tt, onMounted as rt, computed as Ke, resolveComponent as I, openBlock as u, createElementBlock as F, Fragment as X, createElementVNode as W, createBlock as C, createCommentVNode as me, unref as j, mergeProps as x, withCtx as h, renderSlot as y, renderList as L, createTextVNode as Te, toDisplayString as be, createSlots as fe, createVNode as G, normalizeStyle as Se, normalizeProps as gt, useSlots as Tt, inject as _t, useAttrs as kt, onUnmounted as jt, withModifiers as ct, resolveDynamicComponent as Ue, guardReactiveProps as Lt, Transition as zt, withDirectives as Ht, vShow as Pt, h as Ae, onBeforeUnmount as Nt, normalizeClass as St, watchEffect as Wt, onActivated as Xt, watch as Gt, createApp as Qt } from "vue";
|
|
3
|
+
import { Plus as Zt, ZoomIn as Jt, Delete as Kt, DocumentCopy as el, FullScreen as tl, CopyDocument as ll } from "@element-plus/icons-vue";
|
|
4
4
|
import Ft from "sortablejs";
|
|
5
|
-
import { Dexie as
|
|
6
|
-
var
|
|
5
|
+
import { Dexie as al } from "dexie";
|
|
6
|
+
var ol = {
|
|
7
7
|
name: "zh-cn",
|
|
8
8
|
el: {
|
|
9
9
|
breadcrumb: {
|
|
@@ -181,64 +181,64 @@ var rl = {
|
|
|
181
181
|
indicator: "幻灯片切换至索引 {index}"
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
|
-
},
|
|
185
|
-
function
|
|
184
|
+
}, rl = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
185
|
+
function ul(f) {
|
|
186
186
|
return f && f.__esModule && Object.prototype.hasOwnProperty.call(f, "default") ? f.default : f;
|
|
187
187
|
}
|
|
188
188
|
var qt = { exports: {} };
|
|
189
189
|
(function(f, i) {
|
|
190
190
|
(function(o, t) {
|
|
191
191
|
f.exports = t();
|
|
192
|
-
})(
|
|
193
|
-
var o = 1e3, t = 6e4, e = 36e5, d = "millisecond", k = "second",
|
|
194
|
-
var s = ["th", "st", "nd", "rd"], a =
|
|
195
|
-
return "[" +
|
|
196
|
-
} }, we = function(
|
|
197
|
-
var _ = String(
|
|
198
|
-
return !_ || _.length >= s ?
|
|
199
|
-
}, he = { s: we, z: function(
|
|
200
|
-
var s = -
|
|
192
|
+
})(rl, function() {
|
|
193
|
+
var o = 1e3, t = 6e4, e = 36e5, d = "millisecond", k = "second", T = "minute", V = "hour", D = "day", w = "week", z = "month", ee = "quarter", B = "year", U = "date", se = "Invalid Date", re = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, K = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, ce = { 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(m) {
|
|
194
|
+
var s = ["th", "st", "nd", "rd"], a = m % 100;
|
|
195
|
+
return "[" + m + (s[(a - 20) % 10] || s[a] || s[0]) + "]";
|
|
196
|
+
} }, we = function(m, s, a) {
|
|
197
|
+
var _ = String(m);
|
|
198
|
+
return !_ || _.length >= s ? m : "" + Array(s + 1 - _.length).join(a) + m;
|
|
199
|
+
}, he = { s: we, z: function(m) {
|
|
200
|
+
var s = -m.utcOffset(), a = Math.abs(s), _ = Math.floor(a / 60), n = a % 60;
|
|
201
201
|
return (s <= 0 ? "+" : "-") + we(_, 2, "0") + ":" + we(n, 2, "0");
|
|
202
|
-
}, m: function
|
|
203
|
-
if (s.date() < a.date()) return -
|
|
204
|
-
var _ = 12 * (a.year() - s.year()) + (a.month() - s.month()), n = s.clone().add(_, z), b = a - n < 0,
|
|
205
|
-
return +(-(_ + (a - n) / (b ? n -
|
|
206
|
-
}, a: function(
|
|
207
|
-
return
|
|
208
|
-
}, p: function(
|
|
209
|
-
return { M: z, y:
|
|
210
|
-
}, u: function(
|
|
211
|
-
return
|
|
212
|
-
} }, pe = "en",
|
|
213
|
-
|
|
214
|
-
var
|
|
215
|
-
return
|
|
216
|
-
}, $e = function
|
|
202
|
+
}, m: function m(s, a) {
|
|
203
|
+
if (s.date() < a.date()) return -m(a, s);
|
|
204
|
+
var _ = 12 * (a.year() - s.year()) + (a.month() - s.month()), n = s.clone().add(_, z), b = a - n < 0, M = s.clone().add(_ + (b ? -1 : 1), z);
|
|
205
|
+
return +(-(_ + (a - n) / (b ? n - M : M - n)) || 0);
|
|
206
|
+
}, a: function(m) {
|
|
207
|
+
return m < 0 ? Math.ceil(m) || 0 : Math.floor(m);
|
|
208
|
+
}, p: function(m) {
|
|
209
|
+
return { M: z, y: B, w, d: D, D: U, h: V, m: T, s: k, ms: d, Q: ee }[m] || String(m || "").toLowerCase().replace(/s$/, "");
|
|
210
|
+
}, u: function(m) {
|
|
211
|
+
return m === void 0;
|
|
212
|
+
} }, pe = "en", ie = {};
|
|
213
|
+
ie[pe] = ce;
|
|
214
|
+
var ue = "$isDayjsObject", ae = function(m) {
|
|
215
|
+
return m instanceof E || !(!m || !m[ue]);
|
|
216
|
+
}, $e = function m(s, a, _) {
|
|
217
217
|
var n;
|
|
218
218
|
if (!s) return pe;
|
|
219
219
|
if (typeof s == "string") {
|
|
220
220
|
var b = s.toLowerCase();
|
|
221
|
-
|
|
222
|
-
var
|
|
223
|
-
if (!n &&
|
|
221
|
+
ie[b] && (n = b), a && (ie[b] = a, n = b);
|
|
222
|
+
var M = s.split("-");
|
|
223
|
+
if (!n && M.length > 1) return m(M[0]);
|
|
224
224
|
} else {
|
|
225
225
|
var q = s.name;
|
|
226
|
-
|
|
226
|
+
ie[q] = s, n = q;
|
|
227
227
|
}
|
|
228
228
|
return !_ && n && (pe = n), n || !_ && pe;
|
|
229
|
-
},
|
|
230
|
-
if (ae(
|
|
229
|
+
}, ne = function(m, s) {
|
|
230
|
+
if (ae(m)) return m.clone();
|
|
231
231
|
var a = typeof s == "object" ? s : {};
|
|
232
|
-
return a.date =
|
|
232
|
+
return a.date = m, a.args = arguments, new E(a);
|
|
233
233
|
}, g = he;
|
|
234
|
-
g.l = $e, g.i = ae, g.w = function(
|
|
235
|
-
return
|
|
234
|
+
g.l = $e, g.i = ae, g.w = function(m, s) {
|
|
235
|
+
return ne(m, { locale: s.$L, utc: s.$u, x: s.$x, $offset: s.$offset });
|
|
236
236
|
};
|
|
237
237
|
var E = function() {
|
|
238
|
-
function
|
|
239
|
-
this.$L = $e(a.locale, null, !0), this.parse(a), this.$x = this.$x || a.x || {}, this[
|
|
238
|
+
function m(a) {
|
|
239
|
+
this.$L = $e(a.locale, null, !0), this.parse(a), this.$x = this.$x || a.x || {}, this[ue] = !0;
|
|
240
240
|
}
|
|
241
|
-
var s =
|
|
241
|
+
var s = m.prototype;
|
|
242
242
|
return s.parse = function(a) {
|
|
243
243
|
this.$d = function(_) {
|
|
244
244
|
var n = _.date, b = _.utc;
|
|
@@ -246,10 +246,10 @@ var qt = { exports: {} };
|
|
|
246
246
|
if (g.u(n)) return /* @__PURE__ */ new Date();
|
|
247
247
|
if (n instanceof Date) return new Date(n);
|
|
248
248
|
if (typeof n == "string" && !/Z$/i.test(n)) {
|
|
249
|
-
var
|
|
250
|
-
if (
|
|
251
|
-
var q =
|
|
252
|
-
return b ? new Date(Date.UTC(
|
|
249
|
+
var M = n.match(re);
|
|
250
|
+
if (M) {
|
|
251
|
+
var q = M[2] - 1 || 0, oe = (M[7] || "0").substring(0, 3);
|
|
252
|
+
return b ? new Date(Date.UTC(M[1], q, M[3] || 1, M[4] || 0, M[5] || 0, M[6] || 0, oe)) : new Date(M[1], q, M[3] || 1, M[4] || 0, M[5] || 0, M[6] || 0, oe);
|
|
253
253
|
}
|
|
254
254
|
}
|
|
255
255
|
return new Date(n);
|
|
@@ -260,14 +260,14 @@ var qt = { exports: {} };
|
|
|
260
260
|
}, s.$utils = function() {
|
|
261
261
|
return g;
|
|
262
262
|
}, s.isValid = function() {
|
|
263
|
-
return this.$d.toString() !==
|
|
263
|
+
return this.$d.toString() !== se;
|
|
264
264
|
}, s.isSame = function(a, _) {
|
|
265
|
-
var n =
|
|
265
|
+
var n = ne(a);
|
|
266
266
|
return this.startOf(_) <= n && n <= this.endOf(_);
|
|
267
267
|
}, s.isAfter = function(a, _) {
|
|
268
|
-
return
|
|
268
|
+
return ne(a) < this.startOf(_);
|
|
269
269
|
}, s.isBefore = function(a, _) {
|
|
270
|
-
return this.endOf(_) <
|
|
270
|
+
return this.endOf(_) < ne(a);
|
|
271
271
|
}, s.$g = function(a, _, n) {
|
|
272
272
|
return g.u(a) ? this[_] : this.set(n, a);
|
|
273
273
|
}, s.unix = function() {
|
|
@@ -275,26 +275,26 @@ var qt = { exports: {} };
|
|
|
275
275
|
}, s.valueOf = function() {
|
|
276
276
|
return this.$d.getTime();
|
|
277
277
|
}, s.startOf = function(a, _) {
|
|
278
|
-
var n = this, b = !!g.u(_) || _,
|
|
278
|
+
var n = this, b = !!g.u(_) || _, M = g.p(a), q = function(De, ye) {
|
|
279
279
|
var Fe = g.w(n.$u ? Date.UTC(n.$y, ye, De) : new Date(n.$y, ye, De), n);
|
|
280
|
-
return b ? Fe : Fe.endOf(
|
|
280
|
+
return b ? Fe : Fe.endOf(D);
|
|
281
281
|
}, oe = function(De, ye) {
|
|
282
282
|
return g.w(n.toDate()[De].apply(n.toDate("s"), (b ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ye)), n);
|
|
283
|
-
},
|
|
284
|
-
switch (
|
|
285
|
-
case
|
|
283
|
+
}, de = this.$W, R = this.$M, O = this.$D, Ce = "set" + (this.$u ? "UTC" : "");
|
|
284
|
+
switch (M) {
|
|
285
|
+
case B:
|
|
286
286
|
return b ? q(1, 0) : q(31, 11);
|
|
287
287
|
case z:
|
|
288
288
|
return b ? q(1, R) : q(0, R + 1);
|
|
289
289
|
case w:
|
|
290
|
-
var _e = this.$locale().weekStart || 0, Ve = (
|
|
290
|
+
var _e = this.$locale().weekStart || 0, Ve = (de < _e ? de + 7 : de) - _e;
|
|
291
291
|
return q(b ? O - Ve : O + (6 - Ve), R);
|
|
292
|
-
case
|
|
293
|
-
case
|
|
292
|
+
case D:
|
|
293
|
+
case U:
|
|
294
294
|
return oe(Ce + "Hours", 0);
|
|
295
|
-
case
|
|
295
|
+
case V:
|
|
296
296
|
return oe(Ce + "Minutes", 1);
|
|
297
|
-
case
|
|
297
|
+
case T:
|
|
298
298
|
return oe(Ce + "Seconds", 2);
|
|
299
299
|
case k:
|
|
300
300
|
return oe(Ce + "Milliseconds", 3);
|
|
@@ -304,10 +304,10 @@ var qt = { exports: {} };
|
|
|
304
304
|
}, s.endOf = function(a) {
|
|
305
305
|
return this.startOf(a, !1);
|
|
306
306
|
}, s.$set = function(a, _) {
|
|
307
|
-
var n, b = g.p(a),
|
|
308
|
-
if (b === z || b ===
|
|
309
|
-
var
|
|
310
|
-
|
|
307
|
+
var n, b = g.p(a), M = "set" + (this.$u ? "UTC" : ""), q = (n = {}, n[D] = M + "Date", n[U] = M + "Date", n[z] = M + "Month", n[B] = M + "FullYear", n[V] = M + "Hours", n[T] = M + "Minutes", n[k] = M + "Seconds", n[d] = M + "Milliseconds", n)[b], oe = b === D ? this.$D + (_ - this.$W) : _;
|
|
308
|
+
if (b === z || b === B) {
|
|
309
|
+
var de = this.clone().set(U, 1);
|
|
310
|
+
de.$d[q](oe), de.init(), this.$d = de.set(U, Math.min(this.$D, de.daysInMonth())).$d;
|
|
311
311
|
} else q && this.$d[q](oe);
|
|
312
312
|
return this.init(), this;
|
|
313
313
|
}, s.set = function(a, _) {
|
|
@@ -317,44 +317,44 @@ var qt = { exports: {} };
|
|
|
317
317
|
}, s.add = function(a, _) {
|
|
318
318
|
var n, b = this;
|
|
319
319
|
a = Number(a);
|
|
320
|
-
var
|
|
321
|
-
var O =
|
|
320
|
+
var M = g.p(_), q = function(R) {
|
|
321
|
+
var O = ne(b);
|
|
322
322
|
return g.w(O.date(O.date() + Math.round(R * a)), b);
|
|
323
323
|
};
|
|
324
|
-
if (
|
|
325
|
-
if (
|
|
326
|
-
if (
|
|
327
|
-
if (
|
|
328
|
-
var oe = (n = {}, n[
|
|
329
|
-
return g.w(
|
|
324
|
+
if (M === z) return this.set(z, this.$M + a);
|
|
325
|
+
if (M === B) return this.set(B, this.$y + a);
|
|
326
|
+
if (M === D) return q(1);
|
|
327
|
+
if (M === w) return q(7);
|
|
328
|
+
var oe = (n = {}, n[T] = t, n[V] = e, n[k] = o, n)[M] || 1, de = this.$d.getTime() + a * oe;
|
|
329
|
+
return g.w(de, this);
|
|
330
330
|
}, s.subtract = function(a, _) {
|
|
331
331
|
return this.add(-1 * a, _);
|
|
332
332
|
}, s.format = function(a) {
|
|
333
333
|
var _ = this, n = this.$locale();
|
|
334
|
-
if (!this.isValid()) return n.invalidDate ||
|
|
335
|
-
var b = a || "YYYY-MM-DDTHH:mm:ssZ",
|
|
336
|
-
return ye && (ye[Fe] || ye(_, b)) ||
|
|
334
|
+
if (!this.isValid()) return n.invalidDate || se;
|
|
335
|
+
var b = a || "YYYY-MM-DDTHH:mm:ssZ", M = g.z(this), q = this.$H, oe = this.$m, de = this.$M, R = n.weekdays, O = n.months, Ce = n.meridiem, _e = function(ye, Fe, Be, Re) {
|
|
336
|
+
return ye && (ye[Fe] || ye(_, b)) || Be[Fe].slice(0, Re);
|
|
337
337
|
}, Ve = function(ye) {
|
|
338
338
|
return g.s(q % 12 || 12, ye, "0");
|
|
339
|
-
}, De = Ce || function(ye, Fe,
|
|
339
|
+
}, De = Ce || function(ye, Fe, Be) {
|
|
340
340
|
var Re = ye < 12 ? "AM" : "PM";
|
|
341
|
-
return
|
|
341
|
+
return Be ? Re.toLowerCase() : Re;
|
|
342
342
|
};
|
|
343
|
-
return b.replace(
|
|
344
|
-
return Fe || function(
|
|
345
|
-
switch (
|
|
343
|
+
return b.replace(K, function(ye, Fe) {
|
|
344
|
+
return Fe || function(Be) {
|
|
345
|
+
switch (Be) {
|
|
346
346
|
case "YY":
|
|
347
347
|
return String(_.$y).slice(-2);
|
|
348
348
|
case "YYYY":
|
|
349
349
|
return g.s(_.$y, 4, "0");
|
|
350
350
|
case "M":
|
|
351
|
-
return
|
|
351
|
+
return de + 1;
|
|
352
352
|
case "MM":
|
|
353
|
-
return g.s(
|
|
353
|
+
return g.s(de + 1, 2, "0");
|
|
354
354
|
case "MMM":
|
|
355
|
-
return _e(n.monthsShort,
|
|
355
|
+
return _e(n.monthsShort, de, O, 3);
|
|
356
356
|
case "MMMM":
|
|
357
|
-
return _e(O,
|
|
357
|
+
return _e(O, de);
|
|
358
358
|
case "D":
|
|
359
359
|
return _.$D;
|
|
360
360
|
case "DD":
|
|
@@ -390,37 +390,37 @@ var qt = { exports: {} };
|
|
|
390
390
|
case "SSS":
|
|
391
391
|
return g.s(_.$ms, 3, "0");
|
|
392
392
|
case "Z":
|
|
393
|
-
return
|
|
393
|
+
return M;
|
|
394
394
|
}
|
|
395
395
|
return null;
|
|
396
|
-
}(ye) ||
|
|
396
|
+
}(ye) || M.replace(":", "");
|
|
397
397
|
});
|
|
398
398
|
}, s.utcOffset = function() {
|
|
399
399
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
400
400
|
}, s.diff = function(a, _, n) {
|
|
401
|
-
var b,
|
|
402
|
-
return g.m(
|
|
401
|
+
var b, M = this, q = g.p(_), oe = ne(a), de = (oe.utcOffset() - this.utcOffset()) * t, R = this - oe, O = function() {
|
|
402
|
+
return g.m(M, oe);
|
|
403
403
|
};
|
|
404
404
|
switch (q) {
|
|
405
|
-
case
|
|
405
|
+
case B:
|
|
406
406
|
b = O() / 12;
|
|
407
407
|
break;
|
|
408
408
|
case z:
|
|
409
409
|
b = O();
|
|
410
410
|
break;
|
|
411
|
-
case
|
|
411
|
+
case ee:
|
|
412
412
|
b = O() / 3;
|
|
413
413
|
break;
|
|
414
414
|
case w:
|
|
415
|
-
b = (R -
|
|
415
|
+
b = (R - de) / 6048e5;
|
|
416
416
|
break;
|
|
417
|
-
case
|
|
418
|
-
b = (R -
|
|
417
|
+
case D:
|
|
418
|
+
b = (R - de) / 864e5;
|
|
419
419
|
break;
|
|
420
|
-
case
|
|
420
|
+
case V:
|
|
421
421
|
b = R / e;
|
|
422
422
|
break;
|
|
423
|
-
case
|
|
423
|
+
case T:
|
|
424
424
|
b = R / t;
|
|
425
425
|
break;
|
|
426
426
|
case k:
|
|
@@ -433,7 +433,7 @@ var qt = { exports: {} };
|
|
|
433
433
|
}, s.daysInMonth = function() {
|
|
434
434
|
return this.endOf(z).$D;
|
|
435
435
|
}, s.$locale = function() {
|
|
436
|
-
return
|
|
436
|
+
return ie[this.$L];
|
|
437
437
|
}, s.locale = function(a, _) {
|
|
438
438
|
if (!a) return this.$L;
|
|
439
439
|
var n = this.clone(), b = $e(a, _, !0);
|
|
@@ -448,21 +448,21 @@ var qt = { exports: {} };
|
|
|
448
448
|
return this.$d.toISOString();
|
|
449
449
|
}, s.toString = function() {
|
|
450
450
|
return this.$d.toUTCString();
|
|
451
|
-
},
|
|
451
|
+
}, m;
|
|
452
452
|
}(), v = E.prototype;
|
|
453
|
-
return
|
|
454
|
-
v[
|
|
455
|
-
return this.$g(s,
|
|
453
|
+
return ne.prototype = v, [["$ms", d], ["$s", k], ["$m", T], ["$H", V], ["$W", D], ["$M", z], ["$y", B], ["$D", U]].forEach(function(m) {
|
|
454
|
+
v[m[1]] = function(s) {
|
|
455
|
+
return this.$g(s, m[0], m[1]);
|
|
456
456
|
};
|
|
457
|
-
}),
|
|
458
|
-
return
|
|
459
|
-
},
|
|
460
|
-
return
|
|
461
|
-
},
|
|
457
|
+
}), ne.extend = function(m, s) {
|
|
458
|
+
return m.$i || (m(s, E, ne), m.$i = !0), ne;
|
|
459
|
+
}, ne.locale = $e, ne.isDayjs = ae, ne.unix = function(m) {
|
|
460
|
+
return ne(1e3 * m);
|
|
461
|
+
}, ne.en = ie[pe], ne.Ls = ie, ne.p = {}, ne;
|
|
462
462
|
});
|
|
463
463
|
})(qt);
|
|
464
|
-
var
|
|
465
|
-
const yt = /* @__PURE__ */ nl
|
|
464
|
+
var nl = qt.exports;
|
|
465
|
+
const yt = /* @__PURE__ */ ul(nl), Ot = {
|
|
466
466
|
inline: !0,
|
|
467
467
|
type: "hidden",
|
|
468
468
|
"scroll-to-error": !0,
|
|
@@ -509,13 +509,13 @@ const yt = /* @__PURE__ */ nl(sl), Ot = {
|
|
|
509
509
|
for (const [t, e] of i)
|
|
510
510
|
o[t] = e;
|
|
511
511
|
return o;
|
|
512
|
-
},
|
|
512
|
+
}, sl = {
|
|
513
513
|
style: { display: "flex", width: "100%" },
|
|
514
514
|
class: "g-ctrl-container"
|
|
515
|
-
},
|
|
515
|
+
}, il = { style: { width: "var(--up-width)", height: "var(--up-height)", position: "relative", "box-sizing": "border-box" } }, dl = {
|
|
516
516
|
key: 19,
|
|
517
517
|
style: { position: "relative" }
|
|
518
|
-
},
|
|
518
|
+
}, fl = ["title"], cl = { key: 22 }, ml = ["innerHTML"], pl = ["innerHTML"], vl = ["innerHTML"], hl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
519
519
|
__name: "g-ctrl",
|
|
520
520
|
props: /* @__PURE__ */ Ne(["t", "ctrlKey", "item", "model", "ctrlType", "formInfo"], {
|
|
521
521
|
modelValue: { required: !0 },
|
|
@@ -523,13 +523,13 @@ const yt = /* @__PURE__ */ nl(sl), Ot = {
|
|
|
523
523
|
}),
|
|
524
524
|
emits: ["update:modelValue"],
|
|
525
525
|
setup(f) {
|
|
526
|
-
var $e,
|
|
527
|
-
const i = We(f, "modelValue"), o = f, t =
|
|
526
|
+
var $e, ne;
|
|
527
|
+
const i = We(f, "modelValue"), o = f, t = le(o.item || {}), e = le(o.ctrlKey), d = le(o.ctrlType), k = le(o.model), T = le([]), V = le([]), D = le(!1), w = le(!1), z = () => Object.keys(Tt()).filter((g) => g.startsWith(`${o.t}-${e}-`)).map((g) => g.replace(`${o.t}-${e}-`, "")), ee = le({
|
|
528
528
|
multiple: !1,
|
|
529
529
|
"show-file-list": !1,
|
|
530
530
|
"file-list": [],
|
|
531
|
-
showDel: ($e = t.value) != null && $e.showDel ? (
|
|
532
|
-
}),
|
|
531
|
+
showDel: ($e = t.value) != null && $e.showDel ? (ne = t.value) == null ? void 0 : ne.showDel : o.t !== "t"
|
|
532
|
+
}), B = le(t.value.innerHtml), U = (g) => [
|
|
533
533
|
"year",
|
|
534
534
|
"years",
|
|
535
535
|
"month",
|
|
@@ -542,7 +542,7 @@ const yt = /* @__PURE__ */ nl(sl), Ot = {
|
|
|
542
542
|
"daterange",
|
|
543
543
|
"monthrange",
|
|
544
544
|
"yearrange"
|
|
545
|
-
].includes(g),
|
|
545
|
+
].includes(g), se = (g) => ({
|
|
546
546
|
year: "YYYY",
|
|
547
547
|
years: "YYYY",
|
|
548
548
|
month: "YYYY-MM",
|
|
@@ -556,29 +556,29 @@ const yt = /* @__PURE__ */ nl(sl), Ot = {
|
|
|
556
556
|
daterange: "YYYY-MM-DD",
|
|
557
557
|
monthrange: "YYYY-MM",
|
|
558
558
|
yearrange: "YYYY"
|
|
559
|
-
})[g] || "YYYY-MM-DD",
|
|
559
|
+
})[g] || "YYYY-MM-DD", re = le({
|
|
560
560
|
filterable: !0,
|
|
561
561
|
remote: !!(t.value && t.value["remote-method"]),
|
|
562
562
|
...t.value
|
|
563
|
-
}),
|
|
563
|
+
}), K = le((g) => {
|
|
564
564
|
t.value["remote-method"](g, (E) => {
|
|
565
565
|
tt(() => {
|
|
566
|
-
|
|
566
|
+
V.value = E;
|
|
567
567
|
});
|
|
568
568
|
});
|
|
569
|
-
}),
|
|
569
|
+
}), ce = async (g = "options") => {
|
|
570
570
|
var E;
|
|
571
571
|
try {
|
|
572
572
|
const v = await ((E = t.value) == null ? void 0 : E.getDicts(o.formInfo));
|
|
573
573
|
if (typeof v == "string")
|
|
574
|
-
|
|
574
|
+
V.value = [{ label: v, value: i.value }];
|
|
575
575
|
else {
|
|
576
|
-
const
|
|
576
|
+
const m = v == null ? void 0 : v.map((s, a) => ({
|
|
577
577
|
...s,
|
|
578
578
|
value: s.value ?? s.label ?? a,
|
|
579
579
|
label: s.label || "未知选项"
|
|
580
580
|
}));
|
|
581
|
-
|
|
581
|
+
V.value = m || [];
|
|
582
582
|
}
|
|
583
583
|
} catch (v) {
|
|
584
584
|
throw console.error("获取选项失败:", v), v;
|
|
@@ -589,29 +589,29 @@ const yt = /* @__PURE__ */ nl(sl), Ot = {
|
|
|
589
589
|
}, he = (g) => {
|
|
590
590
|
g.preventDefault(), g.stopPropagation(), i.value = "";
|
|
591
591
|
}, pe = (g) => {
|
|
592
|
-
|
|
593
|
-
},
|
|
594
|
-
g.preventDefault(), g.stopPropagation(),
|
|
595
|
-
},
|
|
592
|
+
D.value = !0;
|
|
593
|
+
}, ie = (g) => {
|
|
594
|
+
g.preventDefault(), g.stopPropagation(), D.value = !0;
|
|
595
|
+
}, ue = le(null);
|
|
596
596
|
rt(async () => {
|
|
597
|
-
var v,
|
|
598
|
-
t.value && t.value["remote-method"] && (
|
|
599
|
-
const g = (n, b = "options",
|
|
600
|
-
typeof t.value.getDicts == "function" &&
|
|
597
|
+
var v, m, s, a, _;
|
|
598
|
+
t.value && t.value["remote-method"] && (re.value["remote-method"] = K), (m = (v = k.value[e.value]) == null ? void 0 : v.options) != null && m.length && (V.value = k.value[e.value].options);
|
|
599
|
+
const g = (n, b = "options", M = k.value[e.value]) => {
|
|
600
|
+
typeof t.value.getDicts == "function" && ce(b).catch((q) => {
|
|
601
601
|
console.error(`Failed to load ${b} for ${n}:`, q);
|
|
602
602
|
});
|
|
603
603
|
};
|
|
604
604
|
if (["radio", "radio-button", "checkbox-group", "checkbox-group-button", "select", "cascader"].includes(d.value) && g(d.value), d.value === ge.TREESELECT && await (async () => {
|
|
605
605
|
try {
|
|
606
|
-
typeof t.value.getDicts == "function" ?
|
|
606
|
+
typeof t.value.getDicts == "function" ? T.value = await t.value.getDicts(o.formInfo) : T.value = V.value;
|
|
607
607
|
} catch (b) {
|
|
608
608
|
console.error("Failed to load data for tree-select:", b);
|
|
609
609
|
}
|
|
610
610
|
})(), o.t == "q") {
|
|
611
611
|
let n = t.value.type || d.value;
|
|
612
612
|
(n === void 0 || d.value === "input" || n == ge.NUMBER || n == ge.EMAIL || n == "url" || n == "text") && t.value.onKeyup == null && (t.value.onKeyup = (b) => {
|
|
613
|
-
var
|
|
614
|
-
(b.keyCode === 13 || b.key === "Enter") && ((q = (
|
|
613
|
+
var M, q;
|
|
614
|
+
(b.keyCode === 13 || b.key === "Enter") && ((q = (M = k.value) == null ? void 0 : M.table) == null || q.load());
|
|
615
615
|
}), [
|
|
616
616
|
"radio",
|
|
617
617
|
"switch",
|
|
@@ -629,11 +629,11 @@ const yt = /* @__PURE__ */ nl(sl), Ot = {
|
|
|
629
629
|
"datetimerange",
|
|
630
630
|
"week"
|
|
631
631
|
].includes(n) && t.value.onChange === void 0 && (t.value.onChange = (b) => {
|
|
632
|
-
var
|
|
633
|
-
(q = (
|
|
632
|
+
var M, q;
|
|
633
|
+
(q = (M = k.value) == null ? void 0 : M.table) == null || q.load();
|
|
634
634
|
});
|
|
635
635
|
}
|
|
636
|
-
d.value == "image" && (t.value.width && ((s =
|
|
636
|
+
d.value == "image" && (t.value.width && ((s = ue.value) != null && s.$el) && ue.value.$el.style.setProperty("--up-width", typeof t.value.width == "number" ? t.value.width + "px" : t.value.width), t.value.height && ((a = ue.value) != null && a.$el) && ue.value.$el.style.setProperty("--up-height", typeof t.value.height == "number" ? t.value.height + "px" : t.value.height), t.value.fontSize && ((_ = ue.value) != null && _.$el) && ue.value.$el.style.setProperty("--up-font-size", typeof t.value.fontSize == "number" ? t.value.fontSize + "px" : t.value.fontSize));
|
|
637
637
|
});
|
|
638
638
|
const ae = Ke(() => {
|
|
639
639
|
var g;
|
|
@@ -641,53 +641,53 @@ const yt = /* @__PURE__ */ nl(sl), Ot = {
|
|
|
641
641
|
});
|
|
642
642
|
return (g, E) => {
|
|
643
643
|
var P, N, Z, Ee, ke, je, Le, ze, Ge;
|
|
644
|
-
const v = I("el-image-viewer"),
|
|
644
|
+
const v = I("el-image-viewer"), m = I("el-radio"), s = I("el-radio-group"), a = I("el-radio-button"), _ = I("el-checkbox"), n = I("el-checkbox-group"), b = I("el-checkbox-button"), M = I("g-select-option"), q = I("el-option"), oe = I("el-select"), de = I("el-tree-select"), R = I("el-time-picker"), O = I("el-time-select"), Ce = I("el-date-picker"), _e = I("el-color-picker"), Ve = I("el-rate"), De = I("el-slider"), ye = I("el-switch"), Fe = I("el-transfer"), Be = I("el-cascader"), Re = I("el-icon"), ut = I("el-image"), lt = I("el-tooltip"), nt = I("el-upload"), st = I("el-autocomplete"), it = I("el-input-number"), at = I("el-input"), l = I("el-link"), r = I("el-text"), p = I("el-avatar"), S = I("el-tag");
|
|
645
645
|
return u(), F(X, null, [
|
|
646
646
|
W("div", null, [
|
|
647
|
-
|
|
647
|
+
D.value ? (u(), C(v, {
|
|
648
648
|
key: 0,
|
|
649
649
|
teleported: !0,
|
|
650
650
|
"url-list": ae.value,
|
|
651
|
-
onClose: E[0] || (E[0] = (
|
|
651
|
+
onClose: E[0] || (E[0] = (c) => D.value = !1)
|
|
652
652
|
}, null, 8, ["url-list"])) : me("", !0)
|
|
653
653
|
]),
|
|
654
|
-
W("div",
|
|
655
|
-
d.value == j(ge).RADIO ? (u(),
|
|
654
|
+
W("div", sl, [
|
|
655
|
+
d.value == j(ge).RADIO ? (u(), C(s, x({
|
|
656
656
|
key: 0,
|
|
657
657
|
modelValue: i.value,
|
|
658
|
-
"onUpdate:modelValue": E[1] || (E[1] = (
|
|
658
|
+
"onUpdate:modelValue": E[1] || (E[1] = (c) => i.value = c)
|
|
659
659
|
}, t.value), {
|
|
660
660
|
default: h(() => [
|
|
661
661
|
y(g.$slots, `${o.t}-${e.value}`, { data: t.value }, () => [
|
|
662
|
-
(u(!0), F(X, null, L(
|
|
662
|
+
(u(!0), F(X, null, L(V.value, (c) => (u(), C(m, x({ ref_for: !0 }, c), {
|
|
663
663
|
default: h(() => [
|
|
664
|
-
y(g.$slots, `${o.t}-${e.value}-options`, { option:
|
|
664
|
+
y(g.$slots, `${o.t}-${e.value}-options`, { option: c }, void 0, !0)
|
|
665
665
|
]),
|
|
666
666
|
_: 2
|
|
667
667
|
}, 1040))), 256))
|
|
668
668
|
], !0)
|
|
669
669
|
]),
|
|
670
670
|
_: 3
|
|
671
|
-
}, 16, ["modelValue"])) : d.value == j(ge).RADIOBUTTON ? (u(),
|
|
671
|
+
}, 16, ["modelValue"])) : d.value == j(ge).RADIOBUTTON ? (u(), C(s, x({
|
|
672
672
|
key: 1,
|
|
673
673
|
modelValue: i.value,
|
|
674
|
-
"onUpdate:modelValue": E[2] || (E[2] = (
|
|
674
|
+
"onUpdate:modelValue": E[2] || (E[2] = (c) => i.value = c)
|
|
675
675
|
}, t.value), {
|
|
676
676
|
default: h(() => [
|
|
677
677
|
y(g.$slots, `${o.t}-${e.value}`, { data: t.value }, () => [
|
|
678
|
-
(u(!0), F(X, null, L(
|
|
678
|
+
(u(!0), F(X, null, L(V.value, (c) => (u(), C(a, x({ ref_for: !0 }, c), {
|
|
679
679
|
default: h(() => [
|
|
680
|
-
y(g.$slots, `${o.t}-${e.value}-options`, { option:
|
|
680
|
+
y(g.$slots, `${o.t}-${e.value}-options`, { option: c }, void 0, !0)
|
|
681
681
|
]),
|
|
682
682
|
_: 2
|
|
683
683
|
}, 1040))), 256))
|
|
684
684
|
], !0)
|
|
685
685
|
]),
|
|
686
686
|
_: 3
|
|
687
|
-
}, 16, ["modelValue"])) : d.value == j(ge).CHECKBOX ? (u(),
|
|
687
|
+
}, 16, ["modelValue"])) : d.value == j(ge).CHECKBOX ? (u(), C(_, x({
|
|
688
688
|
key: 2,
|
|
689
689
|
modelValue: i.value,
|
|
690
|
-
"onUpdate:modelValue": E[3] || (E[3] = (
|
|
690
|
+
"onUpdate:modelValue": E[3] || (E[3] = (c) => i.value = c)
|
|
691
691
|
}, t.value), {
|
|
692
692
|
default: h(() => [
|
|
693
693
|
y(g.$slots, `${o.t}-${e.value}`, { data: t.value }, () => [
|
|
@@ -695,17 +695,17 @@ const yt = /* @__PURE__ */ nl(sl), Ot = {
|
|
|
695
695
|
], !0)
|
|
696
696
|
]),
|
|
697
697
|
_: 3
|
|
698
|
-
}, 16, ["modelValue"])) : d.value == j(ge).CHECKBOXGROUP ? (u(),
|
|
698
|
+
}, 16, ["modelValue"])) : d.value == j(ge).CHECKBOXGROUP ? (u(), C(n, x({
|
|
699
699
|
key: 3,
|
|
700
700
|
modelValue: i.value,
|
|
701
|
-
"onUpdate:modelValue": E[4] || (E[4] = (
|
|
701
|
+
"onUpdate:modelValue": E[4] || (E[4] = (c) => i.value = c)
|
|
702
702
|
}, t.value), {
|
|
703
703
|
default: h(() => [
|
|
704
704
|
y(g.$slots, `${o.t}-${e.value}`, { data: t.value }, () => [
|
|
705
|
-
(u(!0), F(X, null, L(
|
|
705
|
+
(u(!0), F(X, null, L(V.value, (c) => (u(), C(_, x({ ref_for: !0 }, c), {
|
|
706
706
|
default: h(() => [
|
|
707
|
-
y(g.$slots, `${o.t}-${e.value}-options`, { option:
|
|
708
|
-
Te(be(
|
|
707
|
+
y(g.$slots, `${o.t}-${e.value}-options`, { option: c }, () => [
|
|
708
|
+
Te(be(c.label), 1)
|
|
709
709
|
], !0)
|
|
710
710
|
]),
|
|
711
711
|
_: 2
|
|
@@ -713,40 +713,40 @@ const yt = /* @__PURE__ */ nl(sl), Ot = {
|
|
|
713
713
|
], !0)
|
|
714
714
|
]),
|
|
715
715
|
_: 3
|
|
716
|
-
}, 16, ["modelValue"])) : d.value == j(ge).CHECKBOXGROUPBUTTON ? (u(),
|
|
716
|
+
}, 16, ["modelValue"])) : d.value == j(ge).CHECKBOXGROUPBUTTON ? (u(), C(n, x({
|
|
717
717
|
key: 4,
|
|
718
718
|
modelValue: i.value,
|
|
719
|
-
"onUpdate:modelValue": E[5] || (E[5] = (
|
|
719
|
+
"onUpdate:modelValue": E[5] || (E[5] = (c) => i.value = c)
|
|
720
720
|
}, t.value), {
|
|
721
721
|
default: h(() => [
|
|
722
722
|
y(g.$slots, `${o.t}-${e.value}`, { data: t.value }, () => [
|
|
723
|
-
(u(!0), F(X, null, L(
|
|
723
|
+
(u(!0), F(X, null, L(V.value, (c) => (u(), C(b, x({ ref_for: !0 }, c), {
|
|
724
724
|
default: h(() => [
|
|
725
|
-
y(g.$slots, `${o.t}-${e.value}-options`, { option:
|
|
725
|
+
y(g.$slots, `${o.t}-${e.value}-options`, { option: c }, void 0, !0)
|
|
726
726
|
]),
|
|
727
727
|
_: 2
|
|
728
728
|
}, 1040))), 256))
|
|
729
729
|
], !0)
|
|
730
730
|
]),
|
|
731
731
|
_: 3
|
|
732
|
-
}, 16, ["modelValue"])) : d.value === j(ge).SELECT ? (u(),
|
|
732
|
+
}, 16, ["modelValue"])) : d.value === j(ge).SELECT ? (u(), C(oe, x({
|
|
733
733
|
key: 5,
|
|
734
734
|
modelValue: i.value,
|
|
735
|
-
"onUpdate:modelValue": E[6] || (E[6] = (
|
|
735
|
+
"onUpdate:modelValue": E[6] || (E[6] = (c) => i.value = c),
|
|
736
736
|
placeholder: k.value[e.value].label,
|
|
737
737
|
clearable: !0,
|
|
738
738
|
onClear: E[7] || (E[7] = () => {
|
|
739
739
|
o.t == "q" && k.value.table.load();
|
|
740
740
|
})
|
|
741
|
-
},
|
|
741
|
+
}, re.value), fe({
|
|
742
742
|
default: h(() => [
|
|
743
|
-
y(g.$slots, `${o.t}-${e.value}`, { options:
|
|
744
|
-
(u(!0), F(X, null, L(
|
|
745
|
-
key:
|
|
743
|
+
y(g.$slots, `${o.t}-${e.value}`, { options: V.value }, () => [
|
|
744
|
+
(u(!0), F(X, null, L(V.value, (c) => (u(), F(X, {
|
|
745
|
+
key: c.value
|
|
746
746
|
}, [
|
|
747
|
-
G(q,
|
|
747
|
+
G(q, x({ ref_for: !0 }, j(qe)(c, (Q) => Q != "children"), {
|
|
748
748
|
onClick: (Q) => {
|
|
749
|
-
|
|
749
|
+
re.value.change && re.value.change(c), we();
|
|
750
750
|
}
|
|
751
751
|
}), {
|
|
752
752
|
default: h(() => {
|
|
@@ -754,21 +754,21 @@ const yt = /* @__PURE__ */ nl(sl), Ot = {
|
|
|
754
754
|
return [
|
|
755
755
|
(Q = t.value) != null && Q.columns ? y(g.$slots, `${o.t}-${e.value}-options`, {
|
|
756
756
|
key: 0,
|
|
757
|
-
option:
|
|
757
|
+
option: c
|
|
758
758
|
}, () => {
|
|
759
759
|
var ve;
|
|
760
760
|
return [
|
|
761
|
-
G(
|
|
761
|
+
G(M, {
|
|
762
762
|
columns: (ve = t.value) == null ? void 0 : ve.columns,
|
|
763
|
-
data:
|
|
763
|
+
data: c,
|
|
764
764
|
t: o.t
|
|
765
|
-
},
|
|
766
|
-
L(g.$slots, (
|
|
765
|
+
}, fe({ _: 2 }, [
|
|
766
|
+
L(g.$slots, (Ye, Y) => ({
|
|
767
767
|
name: Y,
|
|
768
|
-
fn: h((
|
|
768
|
+
fn: h((te) => [
|
|
769
769
|
y(g.$slots, Y, {
|
|
770
|
-
option:
|
|
771
|
-
data:
|
|
770
|
+
option: c,
|
|
771
|
+
data: te
|
|
772
772
|
}, void 0, !0)
|
|
773
773
|
])
|
|
774
774
|
}))
|
|
@@ -779,13 +779,13 @@ const yt = /* @__PURE__ */ nl(sl), Ot = {
|
|
|
779
779
|
}),
|
|
780
780
|
_: 2
|
|
781
781
|
}, 1040, ["onClick"]),
|
|
782
|
-
|
|
782
|
+
c.children && c.children.length ? (u(!0), F(X, { key: 0 }, L(c.children, (Q) => (u(), C(q, x({
|
|
783
783
|
style: { "margin-left": "20px" },
|
|
784
784
|
key: Q.value,
|
|
785
785
|
ref_for: !0
|
|
786
786
|
}, j(qe)(Q, (ve) => ve != "children"), {
|
|
787
787
|
onClick: (ve) => {
|
|
788
|
-
|
|
788
|
+
re.value.change && re.value.change(Q), we();
|
|
789
789
|
}
|
|
790
790
|
}), {
|
|
791
791
|
default: h(() => {
|
|
@@ -795,17 +795,17 @@ const yt = /* @__PURE__ */ nl(sl), Ot = {
|
|
|
795
795
|
key: 0,
|
|
796
796
|
option: Q
|
|
797
797
|
}, () => {
|
|
798
|
-
var
|
|
798
|
+
var Ye;
|
|
799
799
|
return [
|
|
800
|
-
G(
|
|
801
|
-
columns: (
|
|
800
|
+
G(M, {
|
|
801
|
+
columns: (Ye = t.value) == null ? void 0 : Ye.columns,
|
|
802
802
|
data: Q,
|
|
803
803
|
t: o.t
|
|
804
|
-
},
|
|
805
|
-
L(g.$slots, (Y,
|
|
806
|
-
name:
|
|
804
|
+
}, fe({ _: 2 }, [
|
|
805
|
+
L(g.$slots, (Y, te) => ({
|
|
806
|
+
name: te,
|
|
807
807
|
fn: h(($) => [
|
|
808
|
-
y(g.$slots,
|
|
808
|
+
y(g.$slots, te, {
|
|
809
809
|
option: Q,
|
|
810
810
|
data: $
|
|
811
811
|
}, void 0, !0)
|
|
@@ -826,17 +826,17 @@ const yt = /* @__PURE__ */ nl(sl), Ot = {
|
|
|
826
826
|
(P = t.value) != null && P.columns ? {
|
|
827
827
|
name: "header",
|
|
828
828
|
fn: h(() => {
|
|
829
|
-
var
|
|
829
|
+
var c;
|
|
830
830
|
return [
|
|
831
|
-
G(
|
|
832
|
-
columns: (
|
|
831
|
+
G(M, {
|
|
832
|
+
columns: (c = t.value) == null ? void 0 : c.columns,
|
|
833
833
|
title: !0,
|
|
834
834
|
t: o.t
|
|
835
|
-
},
|
|
835
|
+
}, fe({ _: 2 }, [
|
|
836
836
|
L(g.$slots, (Q, ve) => ({
|
|
837
837
|
name: ve,
|
|
838
|
-
fn: h((
|
|
839
|
-
y(g.$slots, ve, { data:
|
|
838
|
+
fn: h((Ye) => [
|
|
839
|
+
y(g.$slots, ve, { data: Ye }, void 0, !0)
|
|
840
840
|
])
|
|
841
841
|
}))
|
|
842
842
|
]), 1032, ["columns", "t"])
|
|
@@ -844,127 +844,127 @@ const yt = /* @__PURE__ */ nl(sl), Ot = {
|
|
|
844
844
|
}),
|
|
845
845
|
key: "0"
|
|
846
846
|
} : void 0,
|
|
847
|
-
L(z(), (
|
|
848
|
-
name:
|
|
847
|
+
L(z(), (c) => ({
|
|
848
|
+
name: c,
|
|
849
849
|
fn: h((Q) => [
|
|
850
|
-
y(g.$slots, `${o.t}-${e.value}-${
|
|
850
|
+
y(g.$slots, `${o.t}-${e.value}-${c}`, { data: Q }, void 0, !0)
|
|
851
851
|
])
|
|
852
852
|
}))
|
|
853
|
-
]), 1040, ["modelValue", "placeholder"])) : d.value == j(ge).TREESELECT ? (u(),
|
|
853
|
+
]), 1040, ["modelValue", "placeholder"])) : d.value == j(ge).TREESELECT ? (u(), C(de, x({
|
|
854
854
|
key: 6,
|
|
855
855
|
modelValue: i.value,
|
|
856
|
-
"onUpdate:modelValue": E[8] || (E[8] = (
|
|
856
|
+
"onUpdate:modelValue": E[8] || (E[8] = (c) => i.value = c),
|
|
857
857
|
placeholder: k.value[e.value].label
|
|
858
|
-
}, t.value, { data:
|
|
859
|
-
L(z(), (
|
|
860
|
-
name:
|
|
858
|
+
}, t.value, { data: T.value }), fe({ _: 2 }, [
|
|
859
|
+
L(z(), (c) => ({
|
|
860
|
+
name: c,
|
|
861
861
|
fn: h((Q) => [
|
|
862
|
-
y(g.$slots, `${o.t}-${e.value}-${
|
|
862
|
+
y(g.$slots, `${o.t}-${e.value}-${c}`, { data: Q }, void 0, !0)
|
|
863
863
|
])
|
|
864
864
|
}))
|
|
865
|
-
]), 1040, ["modelValue", "placeholder", "data"])) : d.value == j(ge).TIME ? (u(),
|
|
865
|
+
]), 1040, ["modelValue", "placeholder", "data"])) : d.value == j(ge).TIME ? (u(), C(R, x({
|
|
866
866
|
key: 7,
|
|
867
867
|
modelValue: i.value,
|
|
868
|
-
"onUpdate:modelValue": E[9] || (E[9] = (
|
|
868
|
+
"onUpdate:modelValue": E[9] || (E[9] = (c) => i.value = c),
|
|
869
869
|
"arrow-control": ""
|
|
870
870
|
}, t.value, {
|
|
871
871
|
placeholder: k.value[e.value].label
|
|
872
|
-
}), null, 16, ["modelValue", "placeholder"])) : d.value == j(ge).TIMESELECT ? (u(),
|
|
872
|
+
}), null, 16, ["modelValue", "placeholder"])) : d.value == j(ge).TIMESELECT ? (u(), C(O, x({
|
|
873
873
|
key: 8,
|
|
874
874
|
modelValue: i.value,
|
|
875
|
-
"onUpdate:modelValue": E[10] || (E[10] = (
|
|
875
|
+
"onUpdate:modelValue": E[10] || (E[10] = (c) => i.value = c),
|
|
876
876
|
start: "06:30",
|
|
877
877
|
step: "00:15",
|
|
878
878
|
end: "23:30",
|
|
879
879
|
placeholder: k.value[e.value].label
|
|
880
|
-
}, t.value), null, 16, ["modelValue", "placeholder"])) :
|
|
880
|
+
}, t.value), null, 16, ["modelValue", "placeholder"])) : U(d.value) ? (u(), C(Ce, x({
|
|
881
881
|
key: 9,
|
|
882
882
|
modelValue: i.value,
|
|
883
|
-
"onUpdate:modelValue": E[11] || (E[11] = (
|
|
883
|
+
"onUpdate:modelValue": E[11] || (E[11] = (c) => i.value = c),
|
|
884
884
|
type: d.value,
|
|
885
885
|
placeholder: k.value[e.value].label,
|
|
886
|
-
"value-format":
|
|
887
|
-
}, t.value),
|
|
888
|
-
L(z(), (
|
|
889
|
-
name:
|
|
886
|
+
"value-format": se(d.value)
|
|
887
|
+
}, t.value), fe({ _: 2 }, [
|
|
888
|
+
L(z(), (c) => ({
|
|
889
|
+
name: c,
|
|
890
890
|
fn: h((Q) => [
|
|
891
|
-
y(g.$slots, `${o.t}-${e.value}-${
|
|
891
|
+
y(g.$slots, `${o.t}-${e.value}-${c}`, { data: Q }, void 0, !0)
|
|
892
892
|
])
|
|
893
893
|
}))
|
|
894
|
-
]), 1040, ["modelValue", "type", "placeholder", "value-format"])) : d.value == j(ge).COLOR ? (u(),
|
|
894
|
+
]), 1040, ["modelValue", "type", "placeholder", "value-format"])) : d.value == j(ge).COLOR ? (u(), C(_e, x({
|
|
895
895
|
key: 10,
|
|
896
896
|
modelValue: i.value,
|
|
897
|
-
"onUpdate:modelValue": E[12] || (E[12] = (
|
|
898
|
-
}, t.value), null, 16, ["modelValue"])) : d.value == j(ge).RATE ? (u(),
|
|
897
|
+
"onUpdate:modelValue": E[12] || (E[12] = (c) => i.value = c)
|
|
898
|
+
}, t.value), null, 16, ["modelValue"])) : d.value == j(ge).RATE ? (u(), C(Ve, x({
|
|
899
899
|
key: 11,
|
|
900
900
|
modelValue: i.value,
|
|
901
|
-
"onUpdate:modelValue": E[13] || (E[13] = (
|
|
902
|
-
}, t.value), null, 16, ["modelValue"])) : d.value == j(ge).SLIDER ? (u(),
|
|
901
|
+
"onUpdate:modelValue": E[13] || (E[13] = (c) => i.value = c)
|
|
902
|
+
}, t.value), null, 16, ["modelValue"])) : d.value == j(ge).SLIDER ? (u(), C(De, x({
|
|
903
903
|
key: 12,
|
|
904
904
|
modelValue: i.value,
|
|
905
|
-
"onUpdate:modelValue": E[14] || (E[14] = (
|
|
906
|
-
}, t.value), null, 16, ["modelValue"])) : d.value == j(ge).SWITCH ? (u(),
|
|
905
|
+
"onUpdate:modelValue": E[14] || (E[14] = (c) => i.value = c)
|
|
906
|
+
}, t.value), null, 16, ["modelValue"])) : d.value == j(ge).SWITCH ? (u(), C(ye, x({
|
|
907
907
|
key: 13,
|
|
908
908
|
modelValue: i.value,
|
|
909
|
-
"onUpdate:modelValue": E[15] || (E[15] = (
|
|
909
|
+
"onUpdate:modelValue": E[15] || (E[15] = (c) => i.value = c),
|
|
910
910
|
inlinePrompt: !0
|
|
911
|
-
}, t.value),
|
|
912
|
-
L(z(), (
|
|
913
|
-
name:
|
|
911
|
+
}, t.value), fe({ _: 2 }, [
|
|
912
|
+
L(z(), (c) => ({
|
|
913
|
+
name: c,
|
|
914
914
|
fn: h((Q) => [
|
|
915
|
-
y(g.$slots, `${o.t}-${e.value}-${
|
|
915
|
+
y(g.$slots, `${o.t}-${e.value}-${c}`, { data: Q }, void 0, !0)
|
|
916
916
|
])
|
|
917
917
|
}))
|
|
918
|
-
]), 1040, ["modelValue"])) : d.value == j(ge).TRANSFER ? (u(),
|
|
918
|
+
]), 1040, ["modelValue"])) : d.value == j(ge).TRANSFER ? (u(), C(Fe, x({
|
|
919
919
|
key: 14,
|
|
920
920
|
modelValue: i.value,
|
|
921
|
-
"onUpdate:modelValue": E[16] || (E[16] = (
|
|
922
|
-
}, t.value),
|
|
923
|
-
L(z(), (
|
|
924
|
-
name:
|
|
921
|
+
"onUpdate:modelValue": E[16] || (E[16] = (c) => i.value = c)
|
|
922
|
+
}, t.value), fe({ _: 2 }, [
|
|
923
|
+
L(z(), (c) => ({
|
|
924
|
+
name: c,
|
|
925
925
|
fn: h((Q) => [
|
|
926
|
-
y(g.$slots, `${o.t}-${e.value}-${
|
|
926
|
+
y(g.$slots, `${o.t}-${e.value}-${c}`, { data: Q }, void 0, !0)
|
|
927
927
|
])
|
|
928
928
|
}))
|
|
929
|
-
]), 1040, ["modelValue"])) : d.value == j(ge).CASCADER ? (u(),
|
|
929
|
+
]), 1040, ["modelValue"])) : d.value == j(ge).CASCADER ? (u(), C(Be, x({
|
|
930
930
|
key: 15,
|
|
931
931
|
modelValue: i.value,
|
|
932
|
-
"onUpdate:modelValue": E[17] || (E[17] = (
|
|
933
|
-
}, t.value, { options:
|
|
934
|
-
L(z(), (
|
|
935
|
-
name:
|
|
932
|
+
"onUpdate:modelValue": E[17] || (E[17] = (c) => i.value = c)
|
|
933
|
+
}, t.value, { options: V.value }), fe({ _: 2 }, [
|
|
934
|
+
L(z(), (c) => ({
|
|
935
|
+
name: c,
|
|
936
936
|
fn: h((Q) => [
|
|
937
|
-
y(g.$slots, `${o.t}-${e.value}-${
|
|
937
|
+
y(g.$slots, `${o.t}-${e.value}-${c}`, { data: Q }, void 0, !0)
|
|
938
938
|
])
|
|
939
939
|
}))
|
|
940
|
-
]), 1040, ["modelValue", "options"])) : d.value == j(ge).IMAGE ? (u(),
|
|
940
|
+
]), 1040, ["modelValue", "options"])) : d.value == j(ge).IMAGE ? (u(), C(nt, x({
|
|
941
941
|
key: 16,
|
|
942
942
|
"file-list": t.value["file-list"],
|
|
943
|
-
"onUpdate:fileList": E[21] || (E[21] = (
|
|
943
|
+
"onUpdate:fileList": E[21] || (E[21] = (c) => t.value["file-list"] = c),
|
|
944
944
|
"list-type": "picture-card",
|
|
945
945
|
class: "custom-upload",
|
|
946
946
|
"on-preview": pe
|
|
947
|
-
}, { ...
|
|
947
|
+
}, { ...ee.value, ...t.value }, {
|
|
948
948
|
ref_key: "uploadRef",
|
|
949
|
-
ref:
|
|
950
|
-
}),
|
|
949
|
+
ref: ue
|
|
950
|
+
}), fe({
|
|
951
951
|
default: h(() => {
|
|
952
|
-
var
|
|
952
|
+
var c;
|
|
953
953
|
return [
|
|
954
954
|
i.value ? (u(), F("div", {
|
|
955
955
|
key: 1,
|
|
956
956
|
onClick: E[20] || (E[20] = (Q) => Q.stopPropagation()),
|
|
957
957
|
style: { display: "flex", width: "var(--up-width)", height: "var(--up-height)", position: "relative", "align-items": "center", "justify-content": "center", "box-sizing": "border-box" }
|
|
958
958
|
}, [
|
|
959
|
-
W("div",
|
|
960
|
-
G(ut,
|
|
959
|
+
W("div", il, [
|
|
960
|
+
G(ut, x({
|
|
961
961
|
style: { width: "var(--up-width)", height: "var(--up-height)" },
|
|
962
962
|
src: i.value
|
|
963
|
-
}, { fit: "cover", lazy: !0, ...(
|
|
963
|
+
}, { fit: "cover", lazy: !0, ...(c = t.value) == null ? void 0 : c.img }), fe({ _: 2 }, [
|
|
964
964
|
L(z(), (Q, ve) => ({
|
|
965
965
|
name: Q,
|
|
966
|
-
fn: h((
|
|
967
|
-
y(g.$slots, `${o.t}-${e.value}-${Q}`, { data:
|
|
966
|
+
fn: h((Ye) => [
|
|
967
|
+
y(g.$slots, `${o.t}-${e.value}-${Q}`, { data: Ye }, void 0, !0)
|
|
968
968
|
])
|
|
969
969
|
}))
|
|
970
970
|
]), 1040, ["src"])
|
|
@@ -975,27 +975,27 @@ const yt = /* @__PURE__ */ nl(sl), Ot = {
|
|
|
975
975
|
onMouseleave: E[19] || (E[19] = (Q) => w.value = !1),
|
|
976
976
|
class: "up-view"
|
|
977
977
|
}, [
|
|
978
|
-
w.value ? (u(),
|
|
978
|
+
w.value ? (u(), C(lt, {
|
|
979
979
|
key: 0,
|
|
980
980
|
content: "查看大图",
|
|
981
981
|
placement: "top"
|
|
982
982
|
}, {
|
|
983
983
|
default: h(() => [
|
|
984
|
-
G(j(
|
|
984
|
+
G(j(Jt), {
|
|
985
985
|
style: { width: "1.5em", height: "1.5em", "margin-right": "12px" },
|
|
986
986
|
color: "white",
|
|
987
|
-
onClick:
|
|
987
|
+
onClick: ie
|
|
988
988
|
})
|
|
989
989
|
]),
|
|
990
990
|
_: 1
|
|
991
991
|
})) : me("", !0),
|
|
992
|
-
|
|
992
|
+
ee.value.showDel && w.value ? (u(), C(lt, {
|
|
993
993
|
key: 1,
|
|
994
994
|
content: "删除",
|
|
995
995
|
placement: "top"
|
|
996
996
|
}, {
|
|
997
997
|
default: h(() => [
|
|
998
|
-
G(j(
|
|
998
|
+
G(j(Kt), {
|
|
999
999
|
style: { width: "1.5em", height: "1.5em" },
|
|
1000
1000
|
color: "white",
|
|
1001
1001
|
onClick: he
|
|
@@ -1004,9 +1004,9 @@ const yt = /* @__PURE__ */ nl(sl), Ot = {
|
|
|
1004
1004
|
_: 1
|
|
1005
1005
|
})) : me("", !0)
|
|
1006
1006
|
], 32)
|
|
1007
|
-
])) : (u(),
|
|
1007
|
+
])) : (u(), C(Re, { key: 0 }, {
|
|
1008
1008
|
default: h(() => [
|
|
1009
|
-
G(j(
|
|
1009
|
+
G(j(Zt))
|
|
1010
1010
|
]),
|
|
1011
1011
|
_: 1
|
|
1012
1012
|
}))
|
|
@@ -1014,59 +1014,59 @@ const yt = /* @__PURE__ */ nl(sl), Ot = {
|
|
|
1014
1014
|
}),
|
|
1015
1015
|
_: 2
|
|
1016
1016
|
}, [
|
|
1017
|
-
L(z(), (
|
|
1018
|
-
name:
|
|
1017
|
+
L(z(), (c, Q) => ({
|
|
1018
|
+
name: c,
|
|
1019
1019
|
fn: h((ve) => [
|
|
1020
|
-
y(g.$slots, `${o.t}-${e.value}-${
|
|
1020
|
+
y(g.$slots, `${o.t}-${e.value}-${c}`, { data: ve }, void 0, !0)
|
|
1021
1021
|
])
|
|
1022
1022
|
}))
|
|
1023
|
-
]), 1040, ["file-list"])) : d.value == j(ge).AUTOCOMPLETE ? (u(),
|
|
1023
|
+
]), 1040, ["file-list"])) : d.value == j(ge).AUTOCOMPLETE ? (u(), C(st, x({
|
|
1024
1024
|
key: 17,
|
|
1025
1025
|
modelValue: i.value,
|
|
1026
|
-
"onUpdate:modelValue": E[22] || (E[22] = (
|
|
1026
|
+
"onUpdate:modelValue": E[22] || (E[22] = (c) => i.value = c)
|
|
1027
1027
|
}, t.value, {
|
|
1028
1028
|
placeholder: k.value[e.value].label
|
|
1029
|
-
}),
|
|
1030
|
-
L(z(), (
|
|
1031
|
-
name:
|
|
1029
|
+
}), fe({ _: 2 }, [
|
|
1030
|
+
L(z(), (c, Q) => ({
|
|
1031
|
+
name: c,
|
|
1032
1032
|
fn: h((ve) => [
|
|
1033
|
-
y(g.$slots, `${o.t}-${e.value}-${
|
|
1033
|
+
y(g.$slots, `${o.t}-${e.value}-${c}`, { data: ve }, void 0, !0)
|
|
1034
1034
|
])
|
|
1035
1035
|
}))
|
|
1036
|
-
]), 1040, ["modelValue", "placeholder"])) : d.value == j(ge).INPUTNUMBER ? (u(),
|
|
1036
|
+
]), 1040, ["modelValue", "placeholder"])) : d.value == j(ge).INPUTNUMBER ? (u(), C(it, x({
|
|
1037
1037
|
key: 18,
|
|
1038
1038
|
modelValue: i.value,
|
|
1039
|
-
"onUpdate:modelValue": E[23] || (E[23] = (
|
|
1039
|
+
"onUpdate:modelValue": E[23] || (E[23] = (c) => i.value = c),
|
|
1040
1040
|
min: 0,
|
|
1041
1041
|
max: 1e8,
|
|
1042
1042
|
placeholder: k.value[e.value].label
|
|
1043
|
-
}, t.value),
|
|
1044
|
-
L(z(), (
|
|
1045
|
-
name:
|
|
1043
|
+
}, t.value), fe({ _: 2 }, [
|
|
1044
|
+
L(z(), (c, Q) => ({
|
|
1045
|
+
name: c,
|
|
1046
1046
|
fn: h((ve) => [
|
|
1047
|
-
y(g.$slots, `${o.t}-${e.value}-${
|
|
1047
|
+
y(g.$slots, `${o.t}-${e.value}-${c}`, { data: ve }, void 0, !0)
|
|
1048
1048
|
])
|
|
1049
1049
|
}))
|
|
1050
|
-
]), 1040, ["modelValue", "placeholder"])) : d.value == j(ge).MONEY ? (u(), F("div",
|
|
1051
|
-
G(at,
|
|
1050
|
+
]), 1040, ["modelValue", "placeholder"])) : d.value == j(ge).MONEY ? (u(), F("div", dl, [
|
|
1051
|
+
G(at, x({
|
|
1052
1052
|
modelValue: i.value,
|
|
1053
|
-
"onUpdate:modelValue": E[24] || (E[24] = (
|
|
1053
|
+
"onUpdate:modelValue": E[24] || (E[24] = (c) => i.value = c),
|
|
1054
1054
|
placeholder: k.value[e.value].label,
|
|
1055
1055
|
type: j(ge).NUMBER,
|
|
1056
1056
|
maxlength: ((N = t.value) == null ? void 0 : N.max) || 25
|
|
1057
|
-
}, { ...t.value, type: d.value }),
|
|
1057
|
+
}, { ...t.value, type: d.value }), fe({
|
|
1058
1058
|
suffix: h(() => [
|
|
1059
1059
|
W("div", {
|
|
1060
1060
|
title: j(Et)(i.value),
|
|
1061
1061
|
style: { "font-size": "10px", display: "block", width: "80px", "text-align": "right", overflow: "hidden", "text-overflow": "ellipsis" }
|
|
1062
|
-
}, be(j(Et)(i.value)), 9,
|
|
1062
|
+
}, be(j(Et)(i.value)), 9, fl)
|
|
1063
1063
|
]),
|
|
1064
1064
|
_: 2
|
|
1065
1065
|
}, [
|
|
1066
|
-
L(z(), (
|
|
1067
|
-
name:
|
|
1066
|
+
L(z(), (c, Q) => ({
|
|
1067
|
+
name: c,
|
|
1068
1068
|
fn: h((ve) => [
|
|
1069
|
-
y(g.$slots, `${o.t}-${e.value}-${
|
|
1069
|
+
y(g.$slots, `${o.t}-${e.value}-${c}`, { data: ve }, void 0, !0)
|
|
1070
1070
|
])
|
|
1071
1071
|
}))
|
|
1072
1072
|
]), 1040, ["modelValue", "placeholder", "type", "maxlength"])
|
|
@@ -1074,67 +1074,67 @@ const yt = /* @__PURE__ */ nl(sl), Ot = {
|
|
|
1074
1074
|
key: 20,
|
|
1075
1075
|
style: Se([{ display: "flex", flex: "1", "justify-content": "center" }, ((Ee = t.value) == null ? void 0 : Ee.style) || {}])
|
|
1076
1076
|
}, [
|
|
1077
|
-
G(l,
|
|
1077
|
+
G(l, x(t.value, {
|
|
1078
1078
|
type: d.value.replace("link-", ""),
|
|
1079
|
-
innerHTML:
|
|
1079
|
+
innerHTML: B.value || i.value
|
|
1080
1080
|
}), null, 16, ["type", "innerHTML"])
|
|
1081
1081
|
], 4)) : d.value != "textarea" && ((ke = d.value) != null && ke.startsWith("text")) ? (u(), F("div", {
|
|
1082
1082
|
key: 21,
|
|
1083
1083
|
style: Se([{ display: "flex", flex: "1", "justify-content": "center" }, ((je = t.value) == null ? void 0 : je.style) || {}])
|
|
1084
1084
|
}, [
|
|
1085
|
-
G(r,
|
|
1085
|
+
G(r, x(t.value, {
|
|
1086
1086
|
type: d.value.replace("text-", ""),
|
|
1087
|
-
innerHTML:
|
|
1087
|
+
innerHTML: B.value || i.value
|
|
1088
1088
|
}), null, 16, ["type", "innerHTML"])
|
|
1089
|
-
], 4)) : d.value == "avatar" ? (u(), F("div",
|
|
1090
|
-
|
|
1089
|
+
], 4)) : d.value == "avatar" ? (u(), F("div", cl, [
|
|
1090
|
+
B.value ? (u(), C(p, gt(x({ key: 0 }, t.value)), {
|
|
1091
1091
|
default: h(() => [
|
|
1092
|
-
W("div", { innerHTML:
|
|
1092
|
+
W("div", { innerHTML: B.value }, null, 8, ml)
|
|
1093
1093
|
]),
|
|
1094
1094
|
_: 1
|
|
1095
|
-
}, 16)) : (u(),
|
|
1095
|
+
}, 16)) : (u(), C(p, gt(x({ key: 1 }, t.value)), null, 16))
|
|
1096
1096
|
])) : (Le = d.value) != null && Le.startsWith("tag") ? (u(), F("div", {
|
|
1097
1097
|
key: 23,
|
|
1098
1098
|
style: Se([{ display: "flex", flex: "1", "justify-content": "center" }, ((ze = t.value) == null ? void 0 : ze.style) || {}])
|
|
1099
1099
|
}, [
|
|
1100
|
-
Array.isArray(
|
|
1101
|
-
typeof
|
|
1100
|
+
Array.isArray(B.value) && B.value.length > 0 ? (u(!0), F(X, { key: 0 }, L(B.value, (c, Q) => (u(), F(X, { key: Q }, [
|
|
1101
|
+
typeof c == "object" ? (u(), C(S, x({
|
|
1102
1102
|
key: 0,
|
|
1103
1103
|
ref_for: !0
|
|
1104
|
-
},
|
|
1105
|
-
innerHTML:
|
|
1104
|
+
}, c, {
|
|
1105
|
+
innerHTML: c == null ? void 0 : c.value,
|
|
1106
1106
|
style: { "margin-right": "3px" }
|
|
1107
|
-
}), null, 16, ["innerHTML"])) : (u(),
|
|
1107
|
+
}), null, 16, ["innerHTML"])) : (u(), C(S, x({
|
|
1108
1108
|
key: 1,
|
|
1109
1109
|
ref_for: !0
|
|
1110
1110
|
}, t.value, {
|
|
1111
1111
|
type: d.value.replace("tag-", ""),
|
|
1112
|
-
innerHTML:
|
|
1112
|
+
innerHTML: c,
|
|
1113
1113
|
style: { "margin-right": "3px" }
|
|
1114
1114
|
}), null, 16, ["type", "innerHTML"]))
|
|
1115
|
-
], 64))), 128)) : (u(),
|
|
1115
|
+
], 64))), 128)) : (u(), C(S, x({ key: 1 }, t.value, {
|
|
1116
1116
|
type: d.value.replace("tag-", ""),
|
|
1117
|
-
innerHTML:
|
|
1117
|
+
innerHTML: B.value || i.value
|
|
1118
1118
|
}), null, 16, ["type", "innerHTML"]))
|
|
1119
|
-
], 4)) : d.value == "div" ? (u(), F("div",
|
|
1120
|
-
innerHTML:
|
|
1121
|
-
}), null, 16,
|
|
1122
|
-
innerHTML:
|
|
1123
|
-
}), null, 16,
|
|
1119
|
+
], 4)) : d.value == "div" ? (u(), F("div", x({ key: 24 }, t.value, {
|
|
1120
|
+
innerHTML: B.value || i.value
|
|
1121
|
+
}), null, 16, pl)) : d.value == "span" ? (u(), F("span", x({ key: 25 }, t.value, {
|
|
1122
|
+
innerHTML: B.value || i.value
|
|
1123
|
+
}), null, 16, vl)) : (u(), C(at, x({
|
|
1124
1124
|
key: 26,
|
|
1125
1125
|
modelValue: i.value,
|
|
1126
|
-
"onUpdate:modelValue": E[25] || (E[25] = (
|
|
1126
|
+
"onUpdate:modelValue": E[25] || (E[25] = (c) => i.value = c),
|
|
1127
1127
|
placeholder: k.value[e.value].label,
|
|
1128
1128
|
maxlength: ((Ge = t.value) == null ? void 0 : Ge.max) || 25,
|
|
1129
1129
|
clearable: !0,
|
|
1130
1130
|
onClear: E[26] || (E[26] = () => {
|
|
1131
1131
|
o.t == "q" && k.value.table.load();
|
|
1132
1132
|
})
|
|
1133
|
-
}, { ...t.value, type: d.value }),
|
|
1134
|
-
L(z(), (
|
|
1135
|
-
name:
|
|
1133
|
+
}, { ...t.value, type: d.value }), fe({ _: 2 }, [
|
|
1134
|
+
L(z(), (c, Q) => ({
|
|
1135
|
+
name: c,
|
|
1136
1136
|
fn: h((ve) => [
|
|
1137
|
-
y(g.$slots, `${o.t}-${e.value}-${
|
|
1137
|
+
y(g.$slots, `${o.t}-${e.value}-${c}`, { data: ve }, void 0, !0)
|
|
1138
1138
|
])
|
|
1139
1139
|
}))
|
|
1140
1140
|
]), 1040, ["modelValue", "placeholder", "maxlength"]))
|
|
@@ -1142,7 +1142,7 @@ const yt = /* @__PURE__ */ nl(sl), Ot = {
|
|
|
1142
1142
|
], 64);
|
|
1143
1143
|
};
|
|
1144
1144
|
}
|
|
1145
|
-
}), pt = /* @__PURE__ */ Xe(
|
|
1145
|
+
}), pt = /* @__PURE__ */ Xe(hl, [["__scopeId", "data-v-a4d7ef5d"]]), yl = { class: "g-form-container" }, gl = /* @__PURE__ */ Object.assign({
|
|
1146
1146
|
name: "g-form",
|
|
1147
1147
|
inheritAttrs: !1
|
|
1148
1148
|
}, {
|
|
@@ -1153,22 +1153,22 @@ const yt = /* @__PURE__ */ nl(sl), Ot = {
|
|
|
1153
1153
|
}),
|
|
1154
1154
|
emits: /* @__PURE__ */ Ne(["submit", "reset"], ["update:modelValue"]),
|
|
1155
1155
|
setup(f, { expose: i, emit: o }) {
|
|
1156
|
-
var
|
|
1157
|
-
const t = We(f, "modelValue"), e = o, d =
|
|
1156
|
+
var ue, ae, $e, ne, g, E;
|
|
1157
|
+
const t = We(f, "modelValue"), e = o, d = le(null), k = _t("options"), T = le({}), V = le(""), D = f;
|
|
1158
1158
|
t.value.form = xe(
|
|
1159
1159
|
Ot,
|
|
1160
1160
|
k == null ? void 0 : k.form,
|
|
1161
|
-
(
|
|
1161
|
+
(ue = t.value) == null ? void 0 : ue.form
|
|
1162
1162
|
), t.value.form.style = xe(
|
|
1163
1163
|
($e = (ae = t.value) == null ? void 0 : ae.form) == null ? void 0 : $e.style,
|
|
1164
|
-
{ ...(
|
|
1164
|
+
{ ...(ne = kt()) == null ? void 0 : ne.style }
|
|
1165
1165
|
);
|
|
1166
|
-
const w = async (v,
|
|
1166
|
+
const w = async (v, m) => {
|
|
1167
1167
|
let s = 5;
|
|
1168
1168
|
for (; s > 0; ) {
|
|
1169
1169
|
if (await tt(), d.value) {
|
|
1170
1170
|
d.value.validate((a, _) => {
|
|
1171
|
-
a ? e("submit", v,
|
|
1171
|
+
a ? e("submit", v, m) : console.error("表单验证不通过!", _);
|
|
1172
1172
|
});
|
|
1173
1173
|
return;
|
|
1174
1174
|
}
|
|
@@ -1182,10 +1182,10 @@ const yt = /* @__PURE__ */ nl(sl), Ot = {
|
|
|
1182
1182
|
v--, await new Promise((s) => setTimeout(s, 50));
|
|
1183
1183
|
continue;
|
|
1184
1184
|
}
|
|
1185
|
-
let
|
|
1185
|
+
let m = !0;
|
|
1186
1186
|
if (e("reset", (s) => {
|
|
1187
|
-
|
|
1188
|
-
}),
|
|
1187
|
+
m = s;
|
|
1188
|
+
}), m) {
|
|
1189
1189
|
d.value.resetFields();
|
|
1190
1190
|
return;
|
|
1191
1191
|
}
|
|
@@ -1194,7 +1194,7 @@ const yt = /* @__PURE__ */ nl(sl), Ot = {
|
|
|
1194
1194
|
console.error("表单实例获取失败,请检查组件状态");
|
|
1195
1195
|
};
|
|
1196
1196
|
t.value.form.submit.click = w, t.value.form.reset.click = z;
|
|
1197
|
-
const
|
|
1197
|
+
const ee = {
|
|
1198
1198
|
type: "hidden",
|
|
1199
1199
|
labelPosition: "right",
|
|
1200
1200
|
style: {
|
|
@@ -1202,23 +1202,23 @@ const yt = /* @__PURE__ */ nl(sl), Ot = {
|
|
|
1202
1202
|
}
|
|
1203
1203
|
};
|
|
1204
1204
|
t.value.formItems = xe(
|
|
1205
|
-
|
|
1205
|
+
ee,
|
|
1206
1206
|
k == null ? void 0 : k.formItems,
|
|
1207
1207
|
(g = t == null ? void 0 : t.value) == null ? void 0 : g.formItems
|
|
1208
1208
|
);
|
|
1209
|
-
const
|
|
1209
|
+
const B = {
|
|
1210
1210
|
span: 12,
|
|
1211
1211
|
offset: 0
|
|
1212
1212
|
};
|
|
1213
1213
|
t.value.form.cols = xe(
|
|
1214
|
-
|
|
1214
|
+
B,
|
|
1215
1215
|
(E = k == null ? void 0 : k.form) == null ? void 0 : E.cols,
|
|
1216
1216
|
t.value.form.cols
|
|
1217
1217
|
);
|
|
1218
|
-
const
|
|
1219
|
-
let
|
|
1218
|
+
const U = (v) => {
|
|
1219
|
+
let m = [];
|
|
1220
1220
|
if (v.rules)
|
|
1221
|
-
|
|
1221
|
+
m = v.rules;
|
|
1222
1222
|
else {
|
|
1223
1223
|
const a = { ...{
|
|
1224
1224
|
required: void 0,
|
|
@@ -1229,18 +1229,18 @@ const yt = /* @__PURE__ */ nl(sl), Ot = {
|
|
|
1229
1229
|
pattern: void 0,
|
|
1230
1230
|
validate: void 0
|
|
1231
1231
|
}, ...v };
|
|
1232
|
-
a.required &&
|
|
1232
|
+
a.required && m.push({
|
|
1233
1233
|
required: !0,
|
|
1234
1234
|
message: `${a.label}不能为空!`,
|
|
1235
1235
|
trigger: "blur"
|
|
1236
|
-
}), a.max !== void 0 && a.max !== null && a.max !== "" && (a.min === void 0 || a.min === null || a.min === "") &&
|
|
1236
|
+
}), a.max !== void 0 && a.max !== null && a.max !== "" && (a.min === void 0 || a.min === null || a.min === "") && m.push({
|
|
1237
1237
|
validator: (_, n, b) => {
|
|
1238
1238
|
if (n == null || n === "") return b();
|
|
1239
1239
|
a.type !== "number" && a.type !== "input-number" ? ((n == null ? void 0 : n.toString()) || "").length > Number(a.max) ? b(
|
|
1240
1240
|
new Error(`${a.label}长度不能超过${a.max}个字符!`)
|
|
1241
1241
|
) : b() : Number(n) > Number(a.max) ? b(new Error(`${a.label}不能大于${a.max}!`)) : b();
|
|
1242
1242
|
}
|
|
1243
|
-
}), a.min !== void 0 && a.min !== null && a.min !== "" && (a.max === void 0 || a.max === null || a.max === "") &&
|
|
1243
|
+
}), a.min !== void 0 && a.min !== null && a.min !== "" && (a.max === void 0 || a.max === null || a.max === "") && m.push({
|
|
1244
1244
|
validator: (_, n, b) => {
|
|
1245
1245
|
if (n == null || n === "") return b();
|
|
1246
1246
|
a.type !== "number" && a.type !== "input-number" ? Number(a.min) < 1 ? b(
|
|
@@ -1253,68 +1253,68 @@ const yt = /* @__PURE__ */ nl(sl), Ot = {
|
|
|
1253
1253
|
)
|
|
1254
1254
|
) : b() : Number(n) < Number(a.min) ? b(new Error(`${a.label}不能小于${a.min}!`)) : b();
|
|
1255
1255
|
}
|
|
1256
|
-
}), a.min !== void 0 && a.min !== null && a.min !== "" && a.max !== void 0 && a.max !== null && a.max !== "" &&
|
|
1256
|
+
}), a.min !== void 0 && a.min !== null && a.min !== "" && a.max !== void 0 && a.max !== null && a.max !== "" && m.push({
|
|
1257
1257
|
validator: (_, n, b) => {
|
|
1258
1258
|
if (n == null || n === "") return b();
|
|
1259
|
-
const
|
|
1259
|
+
const M = Number(a.min), q = Number(a.max);
|
|
1260
1260
|
a.type !== "number" && a.type !== "input-number" ? Number(a.min) < 1 ? b(
|
|
1261
1261
|
new Error(
|
|
1262
1262
|
`${a.label}长度最小值${a.min}设置错误!`
|
|
1263
1263
|
)
|
|
1264
|
-
) : n.toString().length <
|
|
1264
|
+
) : n.toString().length < M || n.toString().length > q ? b(
|
|
1265
1265
|
new Error(
|
|
1266
|
-
`${a.label}长度必须在${
|
|
1266
|
+
`${a.label}长度必须在${M}-${q}个字符之间!`
|
|
1267
1267
|
)
|
|
1268
|
-
) : b() : Number(n) <
|
|
1268
|
+
) : b() : Number(n) < M || n > q ? b(new Error(`${a.label}必须在${M}-${q}之间!`)) : b();
|
|
1269
1269
|
}
|
|
1270
|
-
}), a.type == "email" &&
|
|
1270
|
+
}), a.type == "email" && m.push({ type: "email", message: "不是一个正确的邮箱地址!" }), a.type == "url" && m.push({ type: "url", message: "不是一个合正确的URL!" }), a.pattern && m.push({
|
|
1271
1271
|
pattern: a == null ? void 0 : a.pattern,
|
|
1272
1272
|
message: (a == null ? void 0 : a.message) || "格式不正确!"
|
|
1273
|
-
}), a.validate &&
|
|
1273
|
+
}), a.validate && m.push({
|
|
1274
1274
|
validator: (_, n, b) => a.validate(_, n, b)
|
|
1275
1275
|
});
|
|
1276
1276
|
}
|
|
1277
|
-
return
|
|
1278
|
-
},
|
|
1279
|
-
var _, n, b,
|
|
1280
|
-
const s =
|
|
1277
|
+
return m;
|
|
1278
|
+
}, se = (v, m = !1) => {
|
|
1279
|
+
var _, n, b, M, q;
|
|
1280
|
+
const s = m ? v : v == null ? void 0 : v.item, a = typeof (s == null ? void 0 : s.editor) == "function" ? s.editor(T.value, (_ = t.value.form) == null ? void 0 : _.modalState) : (s == null ? void 0 : s.editor) || {};
|
|
1281
1281
|
if (((n = t.value.form) == null ? void 0 : n.modalState) === "edit") {
|
|
1282
1282
|
const oe = typeof (s == null ? void 0 : s.editor) == "object" ? (b = s.editor) == null ? void 0 : b.ep : typeof (s == null ? void 0 : s.editor) == "function" ? a == null ? void 0 : a.ep : {};
|
|
1283
1283
|
return { ...a, ...oe };
|
|
1284
1284
|
}
|
|
1285
|
-
if (((
|
|
1285
|
+
if (((M = t.value.form) == null ? void 0 : M.modalState) === "add") {
|
|
1286
1286
|
const oe = typeof (s == null ? void 0 : s.editor) == "object" ? (q = s.editor) == null ? void 0 : q.ap : typeof (s == null ? void 0 : s.editor) == "function" ? a == null ? void 0 : a.ap : {};
|
|
1287
1287
|
return { ...a, ...oe };
|
|
1288
1288
|
}
|
|
1289
1289
|
return a;
|
|
1290
|
-
},
|
|
1290
|
+
}, re = (v) => {
|
|
1291
1291
|
var s, a, _, n, b;
|
|
1292
|
-
const
|
|
1293
|
-
return ((a = t.value.form) == null ? void 0 : a.modalState) === "edit" ? ((_ =
|
|
1292
|
+
const m = typeof v.editor == "function" ? v.editor(T.value, (s = t.value.form) == null ? void 0 : s.modalState) : v.editor;
|
|
1293
|
+
return ((a = t.value.form) == null ? void 0 : a.modalState) === "edit" ? ((_ = m == null ? void 0 : m.ep) == null ? void 0 : _.type) ?? (m == null ? void 0 : m.type) ?? v.type : ((n = t.value.form) == null ? void 0 : n.modalState) === "add" ? ((b = m == null ? void 0 : m.ap) == null ? void 0 : b.type) ?? (m == null ? void 0 : m.type) ?? v.type : (m == null ? void 0 : m.type) ?? v.type;
|
|
1294
1294
|
};
|
|
1295
1295
|
rt(() => {
|
|
1296
|
-
|
|
1296
|
+
K(), D != null && D.editForm ? T.value = D.editForm : T.value = we.value;
|
|
1297
1297
|
}), jt(() => {
|
|
1298
1298
|
d.value = null;
|
|
1299
1299
|
});
|
|
1300
|
-
const
|
|
1301
|
-
|
|
1302
|
-
for (const [v,
|
|
1300
|
+
const K = () => {
|
|
1301
|
+
V.value = Math.random().toString(36).substring(2);
|
|
1302
|
+
for (const [v, m] of Object.entries(ce.value))
|
|
1303
1303
|
t.value[v].formItem = {
|
|
1304
1304
|
...t.value[v].formItem,
|
|
1305
|
-
...
|
|
1305
|
+
...m.formItem
|
|
1306
1306
|
}, t.value[v].formItem.style = {
|
|
1307
1307
|
...t.value[v].formItem.style,
|
|
1308
|
-
...
|
|
1308
|
+
...m.formItem.style
|
|
1309
1309
|
};
|
|
1310
|
-
},
|
|
1310
|
+
}, ce = Ke(
|
|
1311
1311
|
() => Object.fromEntries(
|
|
1312
1312
|
Object.entries(t.value).filter((v) => v[1].type != "hidden").filter((v) => v[1].edit !== !1).filter(
|
|
1313
1313
|
(v) => !["table", "tableColumns", "query", "queryItems"].includes(v[0])
|
|
1314
1314
|
).filter((v) => v[1].editor !== !1).filter((v) => v[1].type !== "control").filter((v) => {
|
|
1315
1315
|
var s, a, _;
|
|
1316
|
-
const
|
|
1317
|
-
return t.value.form.modalState === "edit" ? ((a =
|
|
1316
|
+
const m = typeof v[1].editor == "function" ? v[1].editor(T.value, (s = t.value.form) == null ? void 0 : s.modalState) : v[1].editor;
|
|
1317
|
+
return t.value.form.modalState === "edit" ? ((a = m == null ? void 0 : m.ep) == null ? void 0 : a.editor) !== !1 : t.value.form.modalState === "add" ? ((_ = m == null ? void 0 : m.ap) == null ? void 0 : _.editor) !== !1 : !0;
|
|
1318
1318
|
}).map((v) => [v[0], v[1]])
|
|
1319
1319
|
)
|
|
1320
1320
|
), we = Ke(
|
|
@@ -1323,17 +1323,17 @@ const yt = /* @__PURE__ */ nl(sl), Ot = {
|
|
|
1323
1323
|
)
|
|
1324
1324
|
), he = Ke(() => {
|
|
1325
1325
|
const v = /* @__PURE__ */ new Map();
|
|
1326
|
-
return Object.entries(
|
|
1326
|
+
return Object.entries(ce.value).forEach(([m, s]) => {
|
|
1327
1327
|
if (s.groupName) {
|
|
1328
1328
|
const a = s.groupName;
|
|
1329
1329
|
v.has(a) || v.set(a, {
|
|
1330
1330
|
groupName: a,
|
|
1331
1331
|
items: []
|
|
1332
|
-
}), v.get(a).items.push({ key:
|
|
1332
|
+
}), v.get(a).items.push({ key: m, item: s });
|
|
1333
1333
|
}
|
|
1334
|
-
}), v.forEach((
|
|
1335
|
-
|
|
1336
|
-
...
|
|
1334
|
+
}), v.forEach((m) => {
|
|
1335
|
+
m.tabPane = xe(
|
|
1336
|
+
...m.items.map(({ item: s }) => s.tabPane || {})
|
|
1337
1337
|
);
|
|
1338
1338
|
}), Array.from(v.values());
|
|
1339
1339
|
}), pe = [
|
|
@@ -1359,20 +1359,20 @@ const yt = /* @__PURE__ */ nl(sl), Ot = {
|
|
|
1359
1359
|
originalOrder: 1
|
|
1360
1360
|
// 添加原始顺序标识
|
|
1361
1361
|
}
|
|
1362
|
-
],
|
|
1362
|
+
], ie = Ke(() => pe.filter((v) => !v.hidden).sort((v, m) => v.sort - m.sort || v.originalOrder - m.originalOrder));
|
|
1363
1363
|
return i({
|
|
1364
1364
|
submit: w,
|
|
1365
1365
|
reset: z,
|
|
1366
|
-
formData:
|
|
1367
|
-
}), (v,
|
|
1368
|
-
var q, oe,
|
|
1369
|
-
const s = I("el-form-item"), a = I("el-col"), _ = I("el-tab-pane"), n = I("el-tabs"), b = I("el-form"),
|
|
1370
|
-
return u(), F("div",
|
|
1371
|
-
G(b,
|
|
1366
|
+
formData: T
|
|
1367
|
+
}), (v, m) => {
|
|
1368
|
+
var q, oe, de;
|
|
1369
|
+
const s = I("el-form-item"), a = I("el-col"), _ = I("el-tab-pane"), n = I("el-tabs"), b = I("el-form"), M = I("el-button");
|
|
1370
|
+
return u(), F("div", yl, [
|
|
1371
|
+
G(b, x(
|
|
1372
1372
|
{
|
|
1373
1373
|
ref_key: "gform",
|
|
1374
1374
|
ref: d,
|
|
1375
|
-
model:
|
|
1375
|
+
model: T.value,
|
|
1376
1376
|
style: {
|
|
1377
1377
|
width: "98%",
|
|
1378
1378
|
padding: 0,
|
|
@@ -1387,14 +1387,14 @@ const yt = /* @__PURE__ */ nl(sl), Ot = {
|
|
|
1387
1387
|
), {
|
|
1388
1388
|
default: h(() => [
|
|
1389
1389
|
he.value.length > 0 ? y(v.$slots, "default", { key: 0 }, () => [
|
|
1390
|
-
G(n,
|
|
1390
|
+
G(n, x({
|
|
1391
1391
|
class: "demo-tabs",
|
|
1392
1392
|
modelValue: he.value[0].groupName,
|
|
1393
|
-
"onUpdate:modelValue":
|
|
1393
|
+
"onUpdate:modelValue": m[0] || (m[0] = (R) => he.value[0].groupName = R),
|
|
1394
1394
|
style: { width: "100%" }
|
|
1395
1395
|
}, t.value.form.tabs), {
|
|
1396
1396
|
default: h(() => [
|
|
1397
|
-
(u(!0), F(X, null, L(he.value, (R) => (u(),
|
|
1397
|
+
(u(!0), F(X, null, L(he.value, (R) => (u(), C(_, x({
|
|
1398
1398
|
key: R.groupName,
|
|
1399
1399
|
label: R.groupName,
|
|
1400
1400
|
name: R.groupName,
|
|
@@ -1402,37 +1402,37 @@ const yt = /* @__PURE__ */ nl(sl), Ot = {
|
|
|
1402
1402
|
ref_for: !0
|
|
1403
1403
|
}, R.tabPane), {
|
|
1404
1404
|
default: h(() => [
|
|
1405
|
-
(u(!0), F(X, null, L(R.items, (O, Ce) => (u(),
|
|
1405
|
+
(u(!0), F(X, null, L(R.items, (O, Ce) => (u(), C(a, x({ ref_for: !0 }, { ...t.value.form.cols, ...O == null ? void 0 : O.item.col }, {
|
|
1406
1406
|
key: O.key,
|
|
1407
1407
|
style: { width: "100%" }
|
|
1408
1408
|
}), {
|
|
1409
1409
|
default: h(() => {
|
|
1410
1410
|
var _e, Ve;
|
|
1411
1411
|
return [
|
|
1412
|
-
G(s,
|
|
1412
|
+
G(s, x({
|
|
1413
1413
|
label: O == null ? void 0 : O.item.label,
|
|
1414
1414
|
prop: O.key,
|
|
1415
|
-
rules:
|
|
1415
|
+
rules: U(O == null ? void 0 : O.item),
|
|
1416
1416
|
ref_for: !0
|
|
1417
1417
|
}, { ...(_e = t.value) == null ? void 0 : _e.formItems, ...(Ve = O == null ? void 0 : O.item) == null ? void 0 : Ve.formItem }, { style: { width: "100%" } }), {
|
|
1418
1418
|
default: h(() => [
|
|
1419
1419
|
y(v.$slots, "f-" + O.key, {
|
|
1420
1420
|
item: O == null ? void 0 : O.item,
|
|
1421
|
-
formInfo:
|
|
1421
|
+
formInfo: T.value,
|
|
1422
1422
|
model: t.value
|
|
1423
1423
|
}, () => [
|
|
1424
|
-
(u(),
|
|
1425
|
-
modelValue:
|
|
1426
|
-
"onUpdate:modelValue": (De) =>
|
|
1427
|
-
item:
|
|
1424
|
+
(u(), C(pt, {
|
|
1425
|
+
modelValue: T.value[O.key],
|
|
1426
|
+
"onUpdate:modelValue": (De) => T.value[O.key] = De,
|
|
1427
|
+
item: se(O),
|
|
1428
1428
|
ctrlKey: O.key,
|
|
1429
|
-
ctrlType:
|
|
1429
|
+
ctrlType: re(O == null ? void 0 : O.item),
|
|
1430
1430
|
model: t.value,
|
|
1431
|
-
key: `${O.key}-${
|
|
1431
|
+
key: `${O.key}-${V.value}`,
|
|
1432
1432
|
class: "g-ctrl-container",
|
|
1433
1433
|
t: "f",
|
|
1434
|
-
formInfo:
|
|
1435
|
-
},
|
|
1434
|
+
formInfo: T.value
|
|
1435
|
+
}, fe({ _: 2 }, [
|
|
1436
1436
|
L(v.$slots, (De, ye) => ({
|
|
1437
1437
|
name: ye,
|
|
1438
1438
|
fn: h((Fe) => [
|
|
@@ -1459,17 +1459,17 @@ const yt = /* @__PURE__ */ nl(sl), Ot = {
|
|
|
1459
1459
|
_: 3
|
|
1460
1460
|
}, 16, ["modelValue"])
|
|
1461
1461
|
], !0) : y(v.$slots, "default", { key: 1 }, () => [
|
|
1462
|
-
(u(!0), F(X, null, L(
|
|
1462
|
+
(u(!0), F(X, null, L(ce.value, (R, O) => (u(), C(a, x({ ref_for: !0 }, { ...t.value.form.cols, ...R.col }, {
|
|
1463
1463
|
key: O,
|
|
1464
1464
|
style: { width: "100%" }
|
|
1465
1465
|
}), {
|
|
1466
1466
|
default: h(() => {
|
|
1467
1467
|
var Ce;
|
|
1468
1468
|
return [
|
|
1469
|
-
G(s,
|
|
1469
|
+
G(s, x({
|
|
1470
1470
|
label: R.label,
|
|
1471
1471
|
prop: O,
|
|
1472
|
-
rules:
|
|
1472
|
+
rules: U(R),
|
|
1473
1473
|
ref_for: !0
|
|
1474
1474
|
}, { ...(Ce = t.value) == null ? void 0 : Ce.formItems, ...R == null ? void 0 : R.formItem }, { style: { width: "100%" } }), {
|
|
1475
1475
|
label: h((_e) => [
|
|
@@ -1484,21 +1484,21 @@ const yt = /* @__PURE__ */ nl(sl), Ot = {
|
|
|
1484
1484
|
default: h(() => [
|
|
1485
1485
|
y(v.$slots, "f-" + O, {
|
|
1486
1486
|
item: R,
|
|
1487
|
-
formInfo:
|
|
1487
|
+
formInfo: T.value,
|
|
1488
1488
|
model: t.value
|
|
1489
1489
|
}, () => [
|
|
1490
|
-
(u(),
|
|
1491
|
-
modelValue:
|
|
1492
|
-
"onUpdate:modelValue": (_e) =>
|
|
1493
|
-
item:
|
|
1490
|
+
(u(), C(pt, {
|
|
1491
|
+
modelValue: T.value[O],
|
|
1492
|
+
"onUpdate:modelValue": (_e) => T.value[O] = _e,
|
|
1493
|
+
item: se(R, !0),
|
|
1494
1494
|
ctrlKey: O,
|
|
1495
|
-
ctrlType:
|
|
1496
|
-
key: `${O}-${
|
|
1495
|
+
ctrlType: re(R),
|
|
1496
|
+
key: `${O}-${V.value}`,
|
|
1497
1497
|
model: t.value,
|
|
1498
1498
|
class: "g-ctrl-container",
|
|
1499
1499
|
t: "f",
|
|
1500
|
-
formInfo:
|
|
1501
|
-
},
|
|
1500
|
+
formInfo: T.value
|
|
1501
|
+
}, fe({ _: 2 }, [
|
|
1502
1502
|
L(v.$slots, (_e, Ve) => ({
|
|
1503
1503
|
name: Ve,
|
|
1504
1504
|
fn: h((De) => [
|
|
@@ -1522,16 +1522,16 @@ const yt = /* @__PURE__ */ nl(sl), Ot = {
|
|
|
1522
1522
|
]),
|
|
1523
1523
|
_: 3
|
|
1524
1524
|
}, 16, ["model"]),
|
|
1525
|
-
(
|
|
1525
|
+
(de = (oe = (q = t.value) == null ? void 0 : q.form) == null ? void 0 : oe.footer) != null && de.hidden ? me("", !0) : y(v.$slots, "f-footer", { key: 0 }, () => [
|
|
1526
1526
|
W("div", {
|
|
1527
1527
|
style: Se(t.value.form.footer.style)
|
|
1528
1528
|
}, [
|
|
1529
1529
|
y(v.$slots, "f-footer-left", {}, void 0, !0),
|
|
1530
|
-
(u(!0), F(X, null, L(
|
|
1530
|
+
(u(!0), F(X, null, L(ie.value, (R) => (u(), F(X, null, [
|
|
1531
1531
|
y(v.$slots, R.name + "-left", {}, void 0, !0),
|
|
1532
1532
|
y(v.$slots, R.name, {}, () => [
|
|
1533
|
-
G(
|
|
1534
|
-
onClick: ct((O) => R.click(
|
|
1533
|
+
G(M, x({ ref_for: !0 }, R.info, {
|
|
1534
|
+
onClick: ct((O) => R.click(T.value, t.value), ["stop"])
|
|
1535
1535
|
}), {
|
|
1536
1536
|
default: h(() => [
|
|
1537
1537
|
Te(be(R == null ? void 0 : R.label), 1)
|
|
@@ -1547,7 +1547,7 @@ const yt = /* @__PURE__ */ nl(sl), Ot = {
|
|
|
1547
1547
|
]);
|
|
1548
1548
|
};
|
|
1549
1549
|
}
|
|
1550
|
-
}), bt = /* @__PURE__ */ Xe(
|
|
1550
|
+
}), bt = /* @__PURE__ */ Xe(gl, [["__scopeId", "data-v-82750c6a"]]), Dt = {
|
|
1551
1551
|
__name: "g-query-item",
|
|
1552
1552
|
props: /* @__PURE__ */ Ne(["more"], {
|
|
1553
1553
|
modelValue: { required: !0 },
|
|
@@ -1557,27 +1557,27 @@ const yt = /* @__PURE__ */ nl(sl), Ot = {
|
|
|
1557
1557
|
}),
|
|
1558
1558
|
emits: ["update:modelValue", "update:info"],
|
|
1559
1559
|
setup(f) {
|
|
1560
|
-
const i = We(f, "modelValue"), o = f, t = We(f, "info"), e = (
|
|
1561
|
-
var
|
|
1562
|
-
return typeof
|
|
1563
|
-
}).map((
|
|
1564
|
-
const
|
|
1565
|
-
return (
|
|
1560
|
+
const i = We(f, "modelValue"), o = f, t = We(f, "info"), e = (T) => Ke(() => Object.fromEntries(Object.entries(i.value).filter((V) => {
|
|
1561
|
+
var D;
|
|
1562
|
+
return typeof V[1].search == "function" ? V[1].search && ((D = V[1].search(t.value, i.value.table)) == null ? void 0 : D.more) === T : V[1].search && V[1].search.more === T;
|
|
1563
|
+
}).map((V) => [V[0], V[1]]))).value, d = (T) => typeof T.search == "function" ? T.search(t.value, i.value.table) : T.search || {}, k = (T) => {
|
|
1564
|
+
const V = d(T);
|
|
1565
|
+
return (V == null ? void 0 : V.type) || T.type;
|
|
1566
1566
|
};
|
|
1567
|
-
return (
|
|
1568
|
-
const
|
|
1569
|
-
return u(!0), F(X, null, L(e(o.more), (w, z) => y(
|
|
1567
|
+
return (T, V) => {
|
|
1568
|
+
const D = I("el-form-item");
|
|
1569
|
+
return u(!0), F(X, null, L(e(o.more), (w, z) => y(T.$slots, `q-${z}`, {
|
|
1570
1570
|
key: z,
|
|
1571
1571
|
item: w,
|
|
1572
1572
|
queryModel: t.value,
|
|
1573
1573
|
model: i.value
|
|
1574
1574
|
}, () => [
|
|
1575
|
-
G(
|
|
1575
|
+
G(D, x({
|
|
1576
1576
|
label: w.label,
|
|
1577
1577
|
ref_for: !0
|
|
1578
1578
|
}, { ...i.value.queryItems, ...d(w) }), {
|
|
1579
1579
|
label: h(() => [
|
|
1580
|
-
y(
|
|
1580
|
+
y(T.$slots, `q-${z}-label`, {
|
|
1581
1581
|
item: w,
|
|
1582
1582
|
model: i.value
|
|
1583
1583
|
})
|
|
@@ -1585,19 +1585,19 @@ const yt = /* @__PURE__ */ nl(sl), Ot = {
|
|
|
1585
1585
|
default: h(() => [
|
|
1586
1586
|
G(pt, {
|
|
1587
1587
|
modelValue: t.value[z],
|
|
1588
|
-
"onUpdate:modelValue": (
|
|
1588
|
+
"onUpdate:modelValue": (ee) => t.value[z] = ee,
|
|
1589
1589
|
item: { ...w == null ? void 0 : w.editor, ...d(w) },
|
|
1590
1590
|
ctrlKey: z,
|
|
1591
1591
|
ctrlType: k(w),
|
|
1592
1592
|
model: i.value,
|
|
1593
1593
|
t: "q",
|
|
1594
1594
|
formInfo: t.value
|
|
1595
|
-
},
|
|
1596
|
-
L(Object.keys(
|
|
1597
|
-
name:
|
|
1598
|
-
fn: h((
|
|
1599
|
-
y(
|
|
1600
|
-
data:
|
|
1595
|
+
}, fe({ _: 2 }, [
|
|
1596
|
+
L(Object.keys(T.$slots), (ee) => ({
|
|
1597
|
+
name: ee,
|
|
1598
|
+
fn: h((B) => [
|
|
1599
|
+
y(T.$slots, ee, {
|
|
1600
|
+
data: B,
|
|
1601
1601
|
item: w,
|
|
1602
1602
|
model: i.value
|
|
1603
1603
|
})
|
|
@@ -1610,10 +1610,10 @@ const yt = /* @__PURE__ */ nl(sl), Ot = {
|
|
|
1610
1610
|
])), 128);
|
|
1611
1611
|
};
|
|
1612
1612
|
}
|
|
1613
|
-
},
|
|
1613
|
+
}, bl = {
|
|
1614
1614
|
key: 0,
|
|
1615
1615
|
class: "outer"
|
|
1616
|
-
},
|
|
1616
|
+
}, $l = { class: "inner" }, wl = {
|
|
1617
1617
|
__name: "g-query",
|
|
1618
1618
|
props: {
|
|
1619
1619
|
modelValue: { required: !0 },
|
|
@@ -1623,7 +1623,7 @@ const yt = /* @__PURE__ */ nl(sl), Ot = {
|
|
|
1623
1623
|
},
|
|
1624
1624
|
emits: /* @__PURE__ */ Ne(["query", "reset"], ["update:modelValue", "update:info"]),
|
|
1625
1625
|
setup(f, { emit: i }) {
|
|
1626
|
-
const o = We(f, "modelValue"), t = i, e = _t("options"), d =
|
|
1626
|
+
const o = We(f, "modelValue"), t = i, e = _t("options"), d = le(!1), k = We(f, "info"), T = {
|
|
1627
1627
|
hidden: !1,
|
|
1628
1628
|
type: "hidden",
|
|
1629
1629
|
labelWidth: 100,
|
|
@@ -1671,8 +1671,8 @@ const yt = /* @__PURE__ */ nl(sl), Ot = {
|
|
|
1671
1671
|
}
|
|
1672
1672
|
}
|
|
1673
1673
|
};
|
|
1674
|
-
o.value.query = xe(
|
|
1675
|
-
const
|
|
1674
|
+
o.value.query = xe(T, e == null ? void 0 : e.query, o.value.query);
|
|
1675
|
+
const V = {
|
|
1676
1676
|
2: {
|
|
1677
1677
|
title: "更多查询",
|
|
1678
1678
|
showClose: !1,
|
|
@@ -1690,35 +1690,35 @@ const yt = /* @__PURE__ */ nl(sl), Ot = {
|
|
|
1690
1690
|
}
|
|
1691
1691
|
};
|
|
1692
1692
|
o.value.query.more.dialog = xe(
|
|
1693
|
-
|
|
1693
|
+
V[o.value.query.more.mode] || {},
|
|
1694
1694
|
o.value.query.more.dialog
|
|
1695
1695
|
);
|
|
1696
|
-
const
|
|
1696
|
+
const D = {
|
|
1697
1697
|
type: "hidden",
|
|
1698
1698
|
labelPosition: "right",
|
|
1699
1699
|
style: {
|
|
1700
1700
|
width: "280px"
|
|
1701
1701
|
}
|
|
1702
1702
|
};
|
|
1703
|
-
o.value.queryItems = xe(
|
|
1704
|
-
const w = (
|
|
1705
|
-
const
|
|
1703
|
+
o.value.queryItems = xe(D, e == null ? void 0 : e.queryItems, o.value.queryItems);
|
|
1704
|
+
const w = (B, U) => {
|
|
1705
|
+
const se = Object.keys(B.slots).filter((re) => re !== "default").reduce((re, K) => (re[K] = (ce) => B.slots[K]({
|
|
1706
1706
|
model: o.value
|
|
1707
1707
|
// 传递当前模型数据
|
|
1708
|
-
}),
|
|
1708
|
+
}), re), {});
|
|
1709
1709
|
return Ae(Dt, {
|
|
1710
1710
|
modelValue: o.value,
|
|
1711
|
-
"onUpdate:modelValue": (
|
|
1711
|
+
"onUpdate:modelValue": (re) => o.value = re,
|
|
1712
1712
|
info: k.value,
|
|
1713
|
-
"onUpdate:info": (
|
|
1714
|
-
more:
|
|
1715
|
-
},
|
|
1716
|
-
}, z = Tt(),
|
|
1717
|
-
var
|
|
1718
|
-
const
|
|
1713
|
+
"onUpdate:info": (re) => k.value = re,
|
|
1714
|
+
more: U
|
|
1715
|
+
}, se);
|
|
1716
|
+
}, z = Tt(), ee = () => {
|
|
1717
|
+
var se, re, K, ce, we, he, pe, ie, ue;
|
|
1718
|
+
const B = [
|
|
1719
1719
|
{
|
|
1720
1720
|
key: "query",
|
|
1721
|
-
hidden: (
|
|
1721
|
+
hidden: (K = (re = (se = o.value) == null ? void 0 : se.query) == null ? void 0 : re.query) == null ? void 0 : K.hidden,
|
|
1722
1722
|
component: Me,
|
|
1723
1723
|
props: {
|
|
1724
1724
|
...o.value.query.query,
|
|
@@ -1729,7 +1729,7 @@ const yt = /* @__PURE__ */ nl(sl), Ot = {
|
|
|
1729
1729
|
},
|
|
1730
1730
|
{
|
|
1731
1731
|
key: "reset",
|
|
1732
|
-
hidden: (he = (we = (
|
|
1732
|
+
hidden: (he = (we = (ce = o.value) == null ? void 0 : ce.query) == null ? void 0 : we.reset) == null ? void 0 : he.hidden,
|
|
1733
1733
|
component: Me,
|
|
1734
1734
|
props: {
|
|
1735
1735
|
...o.value.query.reset,
|
|
@@ -1740,7 +1740,7 @@ const yt = /* @__PURE__ */ nl(sl), Ot = {
|
|
|
1740
1740
|
},
|
|
1741
1741
|
{
|
|
1742
1742
|
key: "more",
|
|
1743
|
-
hidden: (
|
|
1743
|
+
hidden: (ue = (ie = (pe = o.value) == null ? void 0 : pe.query) == null ? void 0 : ie.more) == null ? void 0 : ue.hidden,
|
|
1744
1744
|
component: o.value.query.more.mode === 3 ? ht : Me,
|
|
1745
1745
|
props: o.value.query.more.mode === 3 ? { ...o.value.query.more.dialog } : {
|
|
1746
1746
|
...o.value.query.more,
|
|
@@ -1754,54 +1754,54 @@ const yt = /* @__PURE__ */ nl(sl), Ot = {
|
|
|
1754
1754
|
}, () => w({ slots: z }, !0)) : null
|
|
1755
1755
|
}
|
|
1756
1756
|
];
|
|
1757
|
-
return
|
|
1757
|
+
return B.sort((ae, $e) => ae.sort - $e.sort), B.filter((ae) => !ae.hidden).map((ae) => ae.key === "more" && ae.component === ht ? Ae(ht, ae.props, {
|
|
1758
1758
|
reference: () => Ae(Me, o.value.query.more, () => ae.label),
|
|
1759
1759
|
default: ae.content
|
|
1760
1760
|
}) : (ae.props.slot = "query-" + ae.key, ae.label ? Ae(ae.component, ae.props, () => ae.label) : Ae(ae.component, ae.props)));
|
|
1761
1761
|
};
|
|
1762
|
-
return (
|
|
1763
|
-
var
|
|
1764
|
-
const
|
|
1762
|
+
return (B, U) => {
|
|
1763
|
+
var K, ce, we, he, pe, ie, ue, ae, $e, ne, g, E, v, m, s, a, _;
|
|
1764
|
+
const se = I("el-form-item"), re = I("el-drawer");
|
|
1765
1765
|
return u(), F(X, null, [
|
|
1766
1766
|
W("div", {
|
|
1767
1767
|
class: "g-query-container",
|
|
1768
|
-
style: Se((
|
|
1768
|
+
style: Se((ce = (K = o.value.query) == null ? void 0 : K.container) == null ? void 0 : ce.style)
|
|
1769
1769
|
}, [
|
|
1770
|
-
G(j(dt),
|
|
1771
|
-
onSubmit:
|
|
1770
|
+
G(j(dt), x({
|
|
1771
|
+
onSubmit: U[0] || (U[0] = ct(() => {
|
|
1772
1772
|
}, ["prevent"]))
|
|
1773
1773
|
}, j(qe)(o.value.query, (n) => !["query", "more", "reset", "btns"].includes(n))), {
|
|
1774
1774
|
default: h(() => {
|
|
1775
1775
|
var n, b;
|
|
1776
1776
|
return [
|
|
1777
|
-
(u(),
|
|
1778
|
-
((b = (n = o.value.query) == null ? void 0 : n.container) == null ? void 0 : b.inline) === !0 ? (u(),
|
|
1777
|
+
(u(), C(Ue(w({ slots: B.$slots }, void 0)))),
|
|
1778
|
+
((b = (n = o.value.query) == null ? void 0 : n.container) == null ? void 0 : b.inline) === !0 ? (u(), C(se, { key: 0 }, {
|
|
1779
1779
|
default: h(() => {
|
|
1780
|
-
var
|
|
1780
|
+
var M, q, oe, de, R;
|
|
1781
1781
|
return [
|
|
1782
1782
|
W("div", {
|
|
1783
|
-
style: Se((q = (
|
|
1783
|
+
style: Se((q = (M = o.value.query) == null ? void 0 : M.btns) == null ? void 0 : q.style)
|
|
1784
1784
|
}, [
|
|
1785
|
-
o.value.query.group ? (u(),
|
|
1785
|
+
o.value.query.group ? (u(), C(j(ft), { key: 0 }, {
|
|
1786
1786
|
default: h(() => [
|
|
1787
|
-
(u(!0), F(X, null, L(
|
|
1788
|
-
(u(),
|
|
1787
|
+
(u(!0), F(X, null, L(ee(), (O) => y(B.$slots, O.props.slot, {}, () => [
|
|
1788
|
+
(u(), C(Ue(O)))
|
|
1789
1789
|
], !0)), 256)),
|
|
1790
|
-
y(
|
|
1790
|
+
y(B.$slots, "q-btns", {}, void 0, !0)
|
|
1791
1791
|
]),
|
|
1792
1792
|
_: 3
|
|
1793
1793
|
})) : (u(), F(X, { key: 1 }, [
|
|
1794
|
-
(R = (
|
|
1794
|
+
(R = (de = (oe = o.value) == null ? void 0 : oe.query) == null ? void 0 : de.btns) != null && R.group ? (u(), C(j(ft), { key: 0 }, {
|
|
1795
1795
|
default: h(() => [
|
|
1796
|
-
(u(!0), F(X, null, L(
|
|
1797
|
-
(u(),
|
|
1796
|
+
(u(!0), F(X, null, L(ee(), (O) => y(B.$slots, O.props.slot, {}, () => [
|
|
1797
|
+
(u(), C(Ue(O)))
|
|
1798
1798
|
], !0)), 256))
|
|
1799
1799
|
]),
|
|
1800
1800
|
_: 3
|
|
1801
|
-
})) : (u(!0), F(X, { key: 1 }, L(
|
|
1802
|
-
(u(),
|
|
1801
|
+
})) : (u(!0), F(X, { key: 1 }, L(ee(), (O) => y(B.$slots, O.props.slot, {}, () => [
|
|
1802
|
+
(u(), C(Ue(O)))
|
|
1803
1803
|
], !0)), 256)),
|
|
1804
|
-
y(
|
|
1804
|
+
y(B.$slots, "q-btns", {}, void 0, !0)
|
|
1805
1805
|
], 64))
|
|
1806
1806
|
], 4)
|
|
1807
1807
|
];
|
|
@@ -1814,55 +1814,55 @@ const yt = /* @__PURE__ */ nl(sl), Ot = {
|
|
|
1814
1814
|
}, 16),
|
|
1815
1815
|
((pe = (he = (we = o.value) == null ? void 0 : we.query) == null ? void 0 : he.container) == null ? void 0 : pe.inline) === !1 ? (u(), F("div", {
|
|
1816
1816
|
key: 0,
|
|
1817
|
-
style: Se((
|
|
1817
|
+
style: Se((ue = (ie = o.value.query) == null ? void 0 : ie.btns) == null ? void 0 : ue.style)
|
|
1818
1818
|
}, [
|
|
1819
|
-
o.value.query.group ? (u(),
|
|
1819
|
+
o.value.query.group ? (u(), C(j(ft), { key: 0 }, {
|
|
1820
1820
|
default: h(() => [
|
|
1821
|
-
(u(!0), F(X, null, L(
|
|
1822
|
-
(u(),
|
|
1821
|
+
(u(!0), F(X, null, L(ee(), (n) => y(B.$slots, n.props.slot, {}, () => [
|
|
1822
|
+
(u(), C(Ue(n)))
|
|
1823
1823
|
], !0)), 256)),
|
|
1824
|
-
y(
|
|
1824
|
+
y(B.$slots, "q-btns", {}, void 0, !0)
|
|
1825
1825
|
]),
|
|
1826
1826
|
_: 3
|
|
1827
1827
|
})) : (u(), F(X, { key: 1 }, [
|
|
1828
|
-
($e = (ae = o.value.query) == null ? void 0 : ae.btns) != null && $e.group ? (u(),
|
|
1828
|
+
($e = (ae = o.value.query) == null ? void 0 : ae.btns) != null && $e.group ? (u(), C(j(ft), { key: 0 }, {
|
|
1829
1829
|
default: h(() => [
|
|
1830
|
-
(u(!0), F(X, null, L(
|
|
1831
|
-
(u(),
|
|
1830
|
+
(u(!0), F(X, null, L(ee(), (n) => y(B.$slots, n.props.slot, {}, () => [
|
|
1831
|
+
(u(), C(Ue(n)))
|
|
1832
1832
|
], !0)), 256))
|
|
1833
1833
|
]),
|
|
1834
1834
|
_: 3
|
|
1835
|
-
})) : (u(!0), F(X, { key: 1 }, L(
|
|
1836
|
-
(u(),
|
|
1835
|
+
})) : (u(!0), F(X, { key: 1 }, L(ee(), (n) => y(B.$slots, n.props.slot, {}, () => [
|
|
1836
|
+
(u(), C(Ue(n)))
|
|
1837
1837
|
], !0)), 256)),
|
|
1838
|
-
y(
|
|
1838
|
+
y(B.$slots, "q-btns", {}, void 0, !0)
|
|
1839
1839
|
], 64))
|
|
1840
1840
|
], 4)) : me("", !0)
|
|
1841
1841
|
], 4),
|
|
1842
|
-
d.value && !((E = (g = (
|
|
1842
|
+
d.value && !((E = (g = (ne = o.value) == null ? void 0 : ne.query) == null ? void 0 : g.more) != null && E.hidden) && o.value.query.more.mode == 2 ? (u(), C(re, x({
|
|
1843
1843
|
key: 0,
|
|
1844
1844
|
modelValue: d.value,
|
|
1845
|
-
"onUpdate:modelValue":
|
|
1845
|
+
"onUpdate:modelValue": U[6] || (U[6] = (n) => d.value = n),
|
|
1846
1846
|
title: "更多查询",
|
|
1847
1847
|
"show-close": !1
|
|
1848
|
-
}, o.value.query.more.dialog),
|
|
1848
|
+
}, o.value.query.more.dialog), fe({
|
|
1849
1849
|
default: h(() => [
|
|
1850
|
-
G(j(dt),
|
|
1851
|
-
onSubmit:
|
|
1850
|
+
G(j(dt), x({
|
|
1851
|
+
onSubmit: U[3] || (U[3] = ct(() => {
|
|
1852
1852
|
}, ["prevent"]))
|
|
1853
1853
|
}, j(qe)(o.value.query, (n) => !["query", "more", "reset"].includes(n)), { style: { width: "98%" } }), {
|
|
1854
1854
|
default: h(() => [
|
|
1855
1855
|
G(Dt, {
|
|
1856
1856
|
modelValue: o.value,
|
|
1857
|
-
"onUpdate:modelValue":
|
|
1857
|
+
"onUpdate:modelValue": U[1] || (U[1] = (n) => o.value = n),
|
|
1858
1858
|
info: k.value,
|
|
1859
|
-
"onUpdate:info":
|
|
1859
|
+
"onUpdate:info": U[2] || (U[2] = (n) => k.value = n),
|
|
1860
1860
|
more: !0
|
|
1861
|
-
},
|
|
1862
|
-
L(
|
|
1861
|
+
}, fe({ _: 2 }, [
|
|
1862
|
+
L(B.$slots, (n, b, M) => ({
|
|
1863
1863
|
name: b,
|
|
1864
1864
|
fn: h((q) => [
|
|
1865
|
-
y(
|
|
1865
|
+
y(B.$slots, b, { model: o.value }, void 0, !0)
|
|
1866
1866
|
])
|
|
1867
1867
|
}))
|
|
1868
1868
|
]), 1032, ["modelValue", "info"])
|
|
@@ -1872,20 +1872,20 @@ const yt = /* @__PURE__ */ nl(sl), Ot = {
|
|
|
1872
1872
|
]),
|
|
1873
1873
|
_: 2
|
|
1874
1874
|
}, [
|
|
1875
|
-
(_ = (a = (s = (
|
|
1875
|
+
(_ = (a = (s = (m = (v = o.value) == null ? void 0 : v.query) == null ? void 0 : m.more) == null ? void 0 : s.dialog) == null ? void 0 : a.footer) != null && _.hidden ? void 0 : {
|
|
1876
1876
|
name: "footer",
|
|
1877
1877
|
fn: h(() => [
|
|
1878
1878
|
W("div", gt(Lt(o.value.query.more.dialog.footer)), [
|
|
1879
|
-
G(j(Me),
|
|
1880
|
-
onClick:
|
|
1879
|
+
G(j(Me), x(o.value.query.query, {
|
|
1880
|
+
onClick: U[4] || (U[4] = (n) => o.value.query.query.click())
|
|
1881
1881
|
}), {
|
|
1882
1882
|
default: h(() => [
|
|
1883
1883
|
Te(be(o.value.query.query.label), 1)
|
|
1884
1884
|
]),
|
|
1885
1885
|
_: 1
|
|
1886
1886
|
}, 16),
|
|
1887
|
-
G(j(Me),
|
|
1888
|
-
onClick:
|
|
1887
|
+
G(j(Me), x(o.value.query.reset, {
|
|
1888
|
+
onClick: U[5] || (U[5] = (n) => o.value.query.reset.click())
|
|
1889
1889
|
}), {
|
|
1890
1890
|
default: h(() => [
|
|
1891
1891
|
Te(be(o.value.query.reset.label), 1)
|
|
@@ -1903,17 +1903,17 @@ const yt = /* @__PURE__ */ nl(sl), Ot = {
|
|
|
1903
1903
|
style: { padding: "10px" }
|
|
1904
1904
|
}, {
|
|
1905
1905
|
default: h(() => {
|
|
1906
|
-
var n, b,
|
|
1906
|
+
var n, b, M;
|
|
1907
1907
|
return [
|
|
1908
|
-
d.value && !((
|
|
1909
|
-
W("div",
|
|
1910
|
-
o.value.query.more.mode == 1 ? Ht((u(),
|
|
1908
|
+
d.value && !((M = (b = (n = o.value) == null ? void 0 : n.query) == null ? void 0 : b.more) != null && M.hidden) && o.value.query.more.mode == 1 ? (u(), F("div", bl, [
|
|
1909
|
+
W("div", $l, [
|
|
1910
|
+
o.value.query.more.mode == 1 ? Ht((u(), C(j(dt), x({
|
|
1911
1911
|
key: 0,
|
|
1912
|
-
onSubmit:
|
|
1912
|
+
onSubmit: U[7] || (U[7] = ct(() => {
|
|
1913
1913
|
}, ["prevent"]))
|
|
1914
1914
|
}, j(qe)(o.value.query, (q) => !["query", "more", "reset"].includes(q))), {
|
|
1915
1915
|
default: h(() => [
|
|
1916
|
-
(u(),
|
|
1916
|
+
(u(), C(Ue(w({ slots: B.$slots }, !0))))
|
|
1917
1917
|
]),
|
|
1918
1918
|
_: 1
|
|
1919
1919
|
}, 16)), [
|
|
@@ -1928,10 +1928,10 @@ const yt = /* @__PURE__ */ nl(sl), Ot = {
|
|
|
1928
1928
|
], 64);
|
|
1929
1929
|
};
|
|
1930
1930
|
}
|
|
1931
|
-
},
|
|
1931
|
+
}, El = /* @__PURE__ */ Xe(wl, [["__scopeId", "data-v-9adf0bb6"]]), _l = { style: { padding: "0", margin: "0", "box-sizing": "border-box" } }, kl = { style: { padding: "10px", "box-sizing": "border-box" } }, Cl = { style: { margin: "10px" } }, Dl = {
|
|
1932
1932
|
style: { display: "flex", "flex-wrap": "wrap" },
|
|
1933
1933
|
id: "excelSortEl"
|
|
1934
|
-
},
|
|
1934
|
+
}, Ml = ["textContent"], Vl = { style: { width: "100%", display: "flex", padding: "10px", "box-sizing": "border-box", "justify-content": "center", "border-top": "1px solid #dcdfe6" } }, xl = {
|
|
1935
1935
|
__name: "check-excel-item",
|
|
1936
1936
|
props: {
|
|
1937
1937
|
items: Array,
|
|
@@ -1939,43 +1939,43 @@ const yt = /* @__PURE__ */ nl(sl), Ot = {
|
|
|
1939
1939
|
},
|
|
1940
1940
|
emits: ["excel"],
|
|
1941
1941
|
setup(f, { emit: i }) {
|
|
1942
|
-
const o = f, t = i, e =
|
|
1943
|
-
e.value.forEach((
|
|
1944
|
-
|
|
1942
|
+
const o = f, t = i, e = le(o.items), d = () => {
|
|
1943
|
+
e.value.forEach((V) => {
|
|
1944
|
+
V.value = !0;
|
|
1945
1945
|
});
|
|
1946
1946
|
}, k = () => {
|
|
1947
|
-
e.value.forEach((
|
|
1948
|
-
|
|
1947
|
+
e.value.forEach((V) => {
|
|
1948
|
+
V.value = !1;
|
|
1949
1949
|
});
|
|
1950
|
-
},
|
|
1951
|
-
t("excel", e.value, (
|
|
1952
|
-
if (!
|
|
1950
|
+
}, T = () => {
|
|
1951
|
+
t("excel", e.value, (V, D = "excel.xls") => {
|
|
1952
|
+
if (!V) {
|
|
1953
1953
|
console.error("下载链接无效");
|
|
1954
1954
|
return;
|
|
1955
1955
|
}
|
|
1956
1956
|
try {
|
|
1957
1957
|
const w = document.createElement("a");
|
|
1958
|
-
w.href =
|
|
1958
|
+
w.href = V, w.download = D, w.style.display = "none", document.body.appendChild(w), w.click(), document.body.removeChild(w);
|
|
1959
1959
|
} catch (w) {
|
|
1960
1960
|
console.error("下载文件时出现错误:", w);
|
|
1961
1961
|
}
|
|
1962
1962
|
});
|
|
1963
1963
|
};
|
|
1964
1964
|
return rt(() => {
|
|
1965
|
-
const
|
|
1965
|
+
const V = new Ft(document.getElementById("excelSortEl"), {
|
|
1966
1966
|
animation: 150,
|
|
1967
1967
|
onEnd: () => {
|
|
1968
|
-
|
|
1968
|
+
V.toArray();
|
|
1969
1969
|
}
|
|
1970
|
-
}),
|
|
1970
|
+
}), D = V;
|
|
1971
1971
|
Nt(() => {
|
|
1972
|
-
|
|
1972
|
+
D && D.destroy();
|
|
1973
1973
|
});
|
|
1974
|
-
}), (
|
|
1975
|
-
const w = I("el-divider"), z = I("el-alert"),
|
|
1976
|
-
return u(), F("div",
|
|
1977
|
-
W("div",
|
|
1978
|
-
W("div",
|
|
1974
|
+
}), (V, D) => {
|
|
1975
|
+
const w = I("el-divider"), z = I("el-alert"), ee = I("el-checkbox"), B = I("el-button");
|
|
1976
|
+
return u(), F("div", _l, [
|
|
1977
|
+
W("div", kl, [
|
|
1978
|
+
W("div", Cl, [
|
|
1979
1979
|
W("a", {
|
|
1980
1980
|
onClick: d,
|
|
1981
1981
|
style: { cursor: "pointer" }
|
|
@@ -1993,32 +1993,32 @@ const yt = /* @__PURE__ */ nl(sl), Ot = {
|
|
|
1993
1993
|
closable: !1,
|
|
1994
1994
|
style: { "margin-bottom": "10px" }
|
|
1995
1995
|
}),
|
|
1996
|
-
|
|
1997
|
-
W("div",
|
|
1998
|
-
(u(!0), F(X, null, L(e.value, (
|
|
1996
|
+
D[0] || (D[0] = W("div", { style: { margin: "1px 0" } }, null, -1)),
|
|
1997
|
+
W("div", Dl, [
|
|
1998
|
+
(u(!0), F(X, null, L(e.value, (U) => (u(), C(ee, {
|
|
1999
1999
|
class: "check-box-hover",
|
|
2000
2000
|
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" },
|
|
2001
|
-
"data-id":
|
|
2002
|
-
modelValue:
|
|
2003
|
-
"onUpdate:modelValue": (
|
|
2004
|
-
key:
|
|
2005
|
-
title:
|
|
2001
|
+
"data-id": U.key,
|
|
2002
|
+
modelValue: U.value,
|
|
2003
|
+
"onUpdate:modelValue": (se) => U.value = se,
|
|
2004
|
+
key: U.key,
|
|
2005
|
+
title: U.label
|
|
2006
2006
|
}, {
|
|
2007
2007
|
default: h(() => [
|
|
2008
2008
|
W("span", {
|
|
2009
|
-
textContent: be(
|
|
2009
|
+
textContent: be(U.label),
|
|
2010
2010
|
style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
|
|
2011
|
-
}, null, 8,
|
|
2011
|
+
}, null, 8, Ml)
|
|
2012
2012
|
]),
|
|
2013
2013
|
_: 2
|
|
2014
2014
|
}, 1032, ["data-id", "modelValue", "onUpdate:modelValue", "title"]))), 128))
|
|
2015
2015
|
])
|
|
2016
2016
|
]),
|
|
2017
|
-
W("div",
|
|
2018
|
-
G(
|
|
2017
|
+
W("div", Vl, [
|
|
2018
|
+
G(B, {
|
|
2019
2019
|
type: "primary",
|
|
2020
|
-
onClick:
|
|
2021
|
-
disabled: e.value.filter((
|
|
2020
|
+
onClick: T,
|
|
2021
|
+
disabled: e.value.filter((U) => U.value).length < 1
|
|
2022
2022
|
}, {
|
|
2023
2023
|
default: h(() => [
|
|
2024
2024
|
Te(be(o.commitText), 1)
|
|
@@ -2029,7 +2029,7 @@ const yt = /* @__PURE__ */ nl(sl), Ot = {
|
|
|
2029
2029
|
]);
|
|
2030
2030
|
};
|
|
2031
2031
|
}
|
|
2032
|
-
},
|
|
2032
|
+
}, Tl = /* @__PURE__ */ Xe(xl, [["__scopeId", "data-v-04791df1"]]), et = new al("gyc");
|
|
2033
2033
|
et.version(1).stores({
|
|
2034
2034
|
tableInfo: "++id,[page+key],page,key,showCol,width,sort"
|
|
2035
2035
|
});
|
|
@@ -2048,10 +2048,10 @@ async function Mt(f, i, o = {}) {
|
|
|
2048
2048
|
);
|
|
2049
2049
|
return await Promise.all(t), "batch update success";
|
|
2050
2050
|
}
|
|
2051
|
-
async function
|
|
2051
|
+
async function Sl(f) {
|
|
2052
2052
|
return await et.tableInfo.where({ page: f }).toArray();
|
|
2053
2053
|
}
|
|
2054
|
-
async function
|
|
2054
|
+
async function Fl(f) {
|
|
2055
2055
|
try {
|
|
2056
2056
|
const i = await et.tableInfo.where({ page: f }).delete();
|
|
2057
2057
|
return console.log("删除了" + i + "条数据"), i;
|
|
@@ -2059,13 +2059,13 @@ async function ql(f) {
|
|
|
2059
2059
|
throw console.error("删除表格项设置信息时出错:", i), i;
|
|
2060
2060
|
}
|
|
2061
2061
|
}
|
|
2062
|
-
const
|
|
2062
|
+
const ql = {
|
|
2063
2063
|
style: { margin: "10px" },
|
|
2064
2064
|
class: "allcheck"
|
|
2065
|
-
},
|
|
2065
|
+
}, Ol = {
|
|
2066
2066
|
id: "cols",
|
|
2067
2067
|
style: { display: "flex", "flex-wrap": "wrap", margin: "0 !important", padding: "0 !important" }
|
|
2068
|
-
},
|
|
2068
|
+
}, Al = ["textContent"], Il = {
|
|
2069
2069
|
__name: "columns-setting",
|
|
2070
2070
|
props: /* @__PURE__ */ Ne({
|
|
2071
2071
|
tuid: {
|
|
@@ -2078,32 +2078,32 @@ const Ol = {
|
|
|
2078
2078
|
}),
|
|
2079
2079
|
emits: ["update:modelValue"],
|
|
2080
2080
|
setup(f) {
|
|
2081
|
-
const i = f, o =
|
|
2082
|
-
|
|
2081
|
+
const i = f, o = le([]), t = We(f, "modelValue"), e = async (D, w) => {
|
|
2082
|
+
D ? t.value[w].showCol = !0 : t.value[w].showCol = !1;
|
|
2083
2083
|
try {
|
|
2084
|
-
await vt(i.tuid, w, { showCol:
|
|
2084
|
+
await vt(i.tuid, w, { showCol: D });
|
|
2085
2085
|
} catch (z) {
|
|
2086
|
-
console.error("列显示状态保存信息时出错:", z),
|
|
2086
|
+
console.error("列显示状态保存信息时出错:", z), Ie({
|
|
2087
2087
|
type: "error",
|
|
2088
2088
|
message: "列显示状态保存信息失败!"
|
|
2089
2089
|
});
|
|
2090
2090
|
}
|
|
2091
2091
|
}, d = () => {
|
|
2092
|
-
const
|
|
2093
|
-
if (
|
|
2094
|
-
let w = Ft.create(
|
|
2092
|
+
const D = document.getElementById("cols");
|
|
2093
|
+
if (D) {
|
|
2094
|
+
let w = Ft.create(D, {
|
|
2095
2095
|
animation: 150,
|
|
2096
2096
|
filter: ".filtered",
|
|
2097
2097
|
//
|
|
2098
2098
|
sort: !0,
|
|
2099
2099
|
onEnd: () => {
|
|
2100
|
-
w.toArray().forEach(async (
|
|
2101
|
-
t.value[
|
|
2102
|
-
let
|
|
2100
|
+
w.toArray().forEach(async (ee, B) => {
|
|
2101
|
+
t.value[ee].sort = B;
|
|
2102
|
+
let U = t.value[ee].width || "auto";
|
|
2103
2103
|
try {
|
|
2104
|
-
await vt(i.tuid,
|
|
2105
|
-
} catch (
|
|
2106
|
-
console.error("列排序和宽度保存信息时出错:",
|
|
2104
|
+
await vt(i.tuid, ee, { sort: B, width: U });
|
|
2105
|
+
} catch (se) {
|
|
2106
|
+
console.error("列排序和宽度保存信息时出错:", se), Ie({
|
|
2107
2107
|
type: "error",
|
|
2108
2108
|
message: "列排序和宽度保存信息失败!"
|
|
2109
2109
|
});
|
|
@@ -2114,36 +2114,36 @@ const Ol = {
|
|
|
2114
2114
|
}
|
|
2115
2115
|
}, k = async () => {
|
|
2116
2116
|
try {
|
|
2117
|
-
const
|
|
2118
|
-
await Mt(i.tuid,
|
|
2119
|
-
} catch (
|
|
2120
|
-
console.error("全选列保存信息时出错:",
|
|
2117
|
+
const D = o.value.map((w) => (w.showCol = !0, t.value[w.value].showCol = !0, w));
|
|
2118
|
+
await Mt(i.tuid, D, { showCol: !0 });
|
|
2119
|
+
} catch (D) {
|
|
2120
|
+
console.error("全选列保存信息时出错:", D), Ie({
|
|
2121
2121
|
type: "error",
|
|
2122
2122
|
message: "全选列保存信息失败!"
|
|
2123
2123
|
});
|
|
2124
2124
|
}
|
|
2125
|
-
},
|
|
2125
|
+
}, T = async () => {
|
|
2126
2126
|
try {
|
|
2127
|
-
const
|
|
2128
|
-
|
|
2127
|
+
const D = o.value.filter((w) => !w.alwaysShow && w.value != "control");
|
|
2128
|
+
D.forEach((w) => {
|
|
2129
2129
|
w.showCol = !1, t.value[w.value].showCol = !1;
|
|
2130
|
-
}), await Mt(i.tuid,
|
|
2131
|
-
} catch (
|
|
2132
|
-
console.error("清除列保存信息时出错:",
|
|
2130
|
+
}), await Mt(i.tuid, D, { showCol: !1 });
|
|
2131
|
+
} catch (D) {
|
|
2132
|
+
console.error("清除列保存信息时出错:", D), Ie({
|
|
2133
2133
|
type: "error",
|
|
2134
2134
|
message: "清除列保存信息失败!"
|
|
2135
2135
|
});
|
|
2136
2136
|
}
|
|
2137
|
-
},
|
|
2137
|
+
}, V = () => {
|
|
2138
2138
|
xt.confirm("确定要复位吗?", "提示", {
|
|
2139
2139
|
confirmButtonText: "确定",
|
|
2140
2140
|
cancelButtonText: "取消",
|
|
2141
2141
|
type: "warning"
|
|
2142
2142
|
}).then(() => {
|
|
2143
|
-
|
|
2143
|
+
Fl(i.tuid).then((D) => {
|
|
2144
2144
|
window.location.reload();
|
|
2145
|
-
}).catch((
|
|
2146
|
-
console.error("复位操作出错:",
|
|
2145
|
+
}).catch((D) => {
|
|
2146
|
+
console.error("复位操作出错:", D), Ie({
|
|
2147
2147
|
type: "info",
|
|
2148
2148
|
message: "复位失败!"
|
|
2149
2149
|
});
|
|
@@ -2151,25 +2151,25 @@ const Ol = {
|
|
|
2151
2151
|
});
|
|
2152
2152
|
};
|
|
2153
2153
|
return rt(async () => {
|
|
2154
|
-
o.value = Object.entries(t.value).filter(([,
|
|
2154
|
+
o.value = Object.entries(t.value).filter(([, D]) => D.visible !== !1).filter(([, D]) => D.type != "hidden").map(([D, w]) => ({
|
|
2155
2155
|
label: w.label,
|
|
2156
|
-
value:
|
|
2156
|
+
value: D,
|
|
2157
2157
|
alwaysShow: w.alwaysShow,
|
|
2158
2158
|
showCol: w.showCol !== !1,
|
|
2159
2159
|
sort: w.sort || 0,
|
|
2160
2160
|
width: w.width || "auto"
|
|
2161
|
-
})).sort((
|
|
2162
|
-
}), (
|
|
2163
|
-
const z = I("el-divider"),
|
|
2161
|
+
})).sort((D, w) => D.sort - w.sort), d();
|
|
2162
|
+
}), (D, w) => {
|
|
2163
|
+
const z = I("el-divider"), ee = I("el-alert"), B = I("el-checkbox");
|
|
2164
2164
|
return u(), F("div", null, [
|
|
2165
|
-
W("div",
|
|
2165
|
+
W("div", ql, [
|
|
2166
2166
|
W("a", { onClick: k }, "全选"),
|
|
2167
2167
|
G(z, { direction: "vertical" }),
|
|
2168
|
-
W("a", { onClick:
|
|
2168
|
+
W("a", { onClick: T }, "全不选"),
|
|
2169
2169
|
G(z, { direction: "vertical" }),
|
|
2170
|
-
W("a", { onClick:
|
|
2170
|
+
W("a", { onClick: V }, "复位")
|
|
2171
2171
|
]),
|
|
2172
|
-
G(
|
|
2172
|
+
G(ee, {
|
|
2173
2173
|
title: "拖动表格列标题可以改变表格列显示顺序 !",
|
|
2174
2174
|
type: "warning",
|
|
2175
2175
|
"show-icon": "",
|
|
@@ -2177,24 +2177,24 @@ const Ol = {
|
|
|
2177
2177
|
style: { "margin-bottom": "10px" }
|
|
2178
2178
|
}),
|
|
2179
2179
|
W("div", null, [
|
|
2180
|
-
W("div",
|
|
2181
|
-
(u(!0), F(X, null, L(o.value, (
|
|
2182
|
-
modelValue:
|
|
2183
|
-
"onUpdate:modelValue": (
|
|
2184
|
-
"data-id":
|
|
2185
|
-
class: St(["check-box-hover",
|
|
2186
|
-
onChange: (
|
|
2180
|
+
W("div", Ol, [
|
|
2181
|
+
(u(!0), F(X, null, L(o.value, (U) => (u(), C(B, {
|
|
2182
|
+
modelValue: U.showCol,
|
|
2183
|
+
"onUpdate:modelValue": (se) => U.showCol = se,
|
|
2184
|
+
"data-id": U.value,
|
|
2185
|
+
class: St(["check-box-hover", U.value == "control" ? "filtered" : ""]),
|
|
2186
|
+
onChange: (se) => e(se, U.value),
|
|
2187
2187
|
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" },
|
|
2188
|
-
value:
|
|
2189
|
-
title:
|
|
2190
|
-
disabled:
|
|
2191
|
-
key:
|
|
2188
|
+
value: U.value,
|
|
2189
|
+
title: U.label,
|
|
2190
|
+
disabled: U.alwaysShow,
|
|
2191
|
+
key: U.value
|
|
2192
2192
|
}, {
|
|
2193
2193
|
default: h(() => [
|
|
2194
2194
|
W("span", {
|
|
2195
|
-
textContent: be(
|
|
2195
|
+
textContent: be(U.label),
|
|
2196
2196
|
style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
|
|
2197
|
-
}, null, 8,
|
|
2197
|
+
}, null, 8, Al)
|
|
2198
2198
|
]),
|
|
2199
2199
|
_: 2
|
|
2200
2200
|
}, 1032, ["modelValue", "onUpdate:modelValue", "data-id", "class", "onChange", "value", "title", "disabled"]))), 128))
|
|
@@ -2203,7 +2203,7 @@ const Ol = {
|
|
|
2203
2203
|
]);
|
|
2204
2204
|
};
|
|
2205
2205
|
}
|
|
2206
|
-
},
|
|
2206
|
+
}, Bl = /* @__PURE__ */ Xe(Il, [["__scopeId", "data-v-70fe569f"]]), Yl = { class: "title" }, Ul = { class: "content" }, Rl = {
|
|
2207
2207
|
__name: "g-cell-toopTip",
|
|
2208
2208
|
props: {
|
|
2209
2209
|
content: {
|
|
@@ -2217,32 +2217,32 @@ const Ol = {
|
|
|
2217
2217
|
},
|
|
2218
2218
|
setup(f) {
|
|
2219
2219
|
const i = f, o = () => {
|
|
2220
|
-
i.content ? (navigator.clipboard.writeText(i.content),
|
|
2220
|
+
i.content ? (navigator.clipboard.writeText(i.content), Ie.success("复制成功")) : Ie.warning("没有内容可复制");
|
|
2221
2221
|
};
|
|
2222
2222
|
return (t, e) => (u(), F("div", {
|
|
2223
2223
|
class: "g-cell-toopTip",
|
|
2224
2224
|
style: Se({ width: i.column.width + "px" })
|
|
2225
2225
|
}, [
|
|
2226
|
-
W("div",
|
|
2226
|
+
W("div", Yl, [
|
|
2227
2227
|
e[0] || (e[0] = W("span", { class: "title-text" }, "内容", -1)),
|
|
2228
2228
|
W("span", {
|
|
2229
2229
|
class: "copy-btn",
|
|
2230
2230
|
onClick: o,
|
|
2231
2231
|
title: "复制内容"
|
|
2232
2232
|
}, [
|
|
2233
|
-
G(j(
|
|
2233
|
+
G(j(el))
|
|
2234
2234
|
])
|
|
2235
2235
|
]),
|
|
2236
|
-
W("div",
|
|
2236
|
+
W("div", Ul, be(i.content), 1)
|
|
2237
2237
|
], 4));
|
|
2238
2238
|
}
|
|
2239
|
-
},
|
|
2239
|
+
}, jl = /* @__PURE__ */ Xe(Rl, [["__scopeId", "data-v-f28912da"]]), Ll = { key: 0 }, zl = { style: { display: "flex", "margin-top": "-2px" } }, Hl = { style: { display: "flex", flex: "1" } }, Pl = {
|
|
2240
2240
|
style: { display: "flex", "justify-content": "center", width: "100%", height: "100%" },
|
|
2241
2241
|
id: "table-form"
|
|
2242
|
-
},
|
|
2242
|
+
}, Nl = { key: 1 }, Wl = { style: { display: "flex" } }, Xl = { style: { display: "flex", flex: "1" } }, Gl = { class: "g-table-container" }, Ql = {
|
|
2243
2243
|
key: 0,
|
|
2244
2244
|
class: "table-query-container"
|
|
2245
|
-
},
|
|
2245
|
+
}, Zl = { class: "table-container" }, Jl = ["innerHTML"], Kl = /* @__PURE__ */ Object.assign({
|
|
2246
2246
|
name: "g-table",
|
|
2247
2247
|
inheritAttrs: !1
|
|
2248
2248
|
}, {
|
|
@@ -2265,9 +2265,9 @@ const Ol = {
|
|
|
2265
2265
|
], ["update:modelValue"]),
|
|
2266
2266
|
setup(f, { expose: i, emit: o }) {
|
|
2267
2267
|
var Re, ut, lt, nt, st, it, at;
|
|
2268
|
-
const t = o, e = We(f, "modelValue"), d = _t("options"), k =
|
|
2269
|
-
k.value = Object.fromEntries(
|
|
2270
|
-
const w =
|
|
2268
|
+
const t = o, e = We(f, "modelValue"), d = _t("options"), k = le({}), T = le(null), V = le(null), D = Object.entries(e.value).filter(([l, r]) => (r == null ? void 0 : r.search) !== void 0).map(([l, r]) => [l, r.value]);
|
|
2269
|
+
k.value = Object.fromEntries(D);
|
|
2270
|
+
const w = le(!1), z = [
|
|
2271
2271
|
"type",
|
|
2272
2272
|
"index",
|
|
2273
2273
|
"label",
|
|
@@ -2296,7 +2296,7 @@ const Ol = {
|
|
|
2296
2296
|
"filter-multiple",
|
|
2297
2297
|
"filter-method",
|
|
2298
2298
|
"filtered-value"
|
|
2299
|
-
],
|
|
2299
|
+
], ee = le([]), B = f, U = kt(), se = le({}), re = le([]), K = le(null), ce = le(""), we = le({
|
|
2300
2300
|
autoWatch: !1,
|
|
2301
2301
|
data: [],
|
|
2302
2302
|
border: !0,
|
|
@@ -2310,31 +2310,31 @@ const Ol = {
|
|
|
2310
2310
|
t(
|
|
2311
2311
|
"load",
|
|
2312
2312
|
{ currentPage: l, pageSize: r, ...k.value },
|
|
2313
|
-
(
|
|
2313
|
+
(p = [], S = 0, { fields: P = [], sums: N = {} } = {}) => {
|
|
2314
2314
|
var Z, Ee;
|
|
2315
|
-
if (!Array.isArray(
|
|
2316
|
-
console.error("从 load 事件回调中接收到的数据不是数组格式。"),
|
|
2315
|
+
if (!Array.isArray(p)) {
|
|
2316
|
+
console.error("从 load 事件回调中接收到的数据不是数组格式。"), Ie.error("数据加载失败,请检查数据格式。");
|
|
2317
2317
|
return;
|
|
2318
2318
|
}
|
|
2319
|
-
if (typeof
|
|
2320
|
-
console.error("从 load 事件回调中接收到的 total 不是数字格式。"),
|
|
2319
|
+
if (typeof S != "number") {
|
|
2320
|
+
console.error("从 load 事件回调中接收到的 total 不是数字格式。"), Ie.error("数据加载失败,请检查数据格式。");
|
|
2321
2321
|
return;
|
|
2322
2322
|
}
|
|
2323
|
-
e.value.table.data =
|
|
2323
|
+
e.value.table.data = p, ((Ee = (Z = e.value.control) == null ? void 0 : Z.add) == null ? void 0 : Ee.inline) === !0 && e.value.table.data.unshift(K.value), e.value.table.page.total = S, re.value = P, se.value = N, Ve(), ce.value = Math.random().toString(36).substring(2);
|
|
2324
2324
|
},
|
|
2325
|
-
|
|
2325
|
+
K.value
|
|
2326
2326
|
);
|
|
2327
|
-
} catch (
|
|
2328
|
-
console.error("触发 load 事件时出现错误:",
|
|
2327
|
+
} catch (p) {
|
|
2328
|
+
console.error("触发 load 事件时出现错误:", p), Ie.error("数据加载时出现错误,请稍后重试。");
|
|
2329
2329
|
}
|
|
2330
2330
|
},
|
|
2331
|
-
onHeaderDragend: (l, r,
|
|
2332
|
-
vt(
|
|
2331
|
+
onHeaderDragend: (l, r, p) => {
|
|
2332
|
+
vt(B.name, p.property, {
|
|
2333
2333
|
width: l
|
|
2334
2334
|
});
|
|
2335
2335
|
},
|
|
2336
|
-
onRowDblclick: (l, r,
|
|
2337
|
-
e.value.table.dblclickType == "edit" ? v(l, r,
|
|
2336
|
+
onRowDblclick: (l, r, p) => {
|
|
2337
|
+
e.value.table.dblclickType == "edit" ? v(l, r, p, e) : e.value.table.dblclickType == "view" && s(l, r, p, e);
|
|
2338
2338
|
},
|
|
2339
2339
|
style: { "min-height": "100px", backgroundColor: "var(--el-bg-color)" },
|
|
2340
2340
|
page: {
|
|
@@ -2358,8 +2358,8 @@ const Ol = {
|
|
|
2358
2358
|
}
|
|
2359
2359
|
},
|
|
2360
2360
|
dblclickType: "edit",
|
|
2361
|
-
"summary-method": ({ columns: l, data: r },
|
|
2362
|
-
onSortChange: ({ column: l, prop: r, order:
|
|
2361
|
+
"summary-method": ({ columns: l, data: r }, p) => p,
|
|
2362
|
+
onSortChange: ({ column: l, prop: r, order: p }, S) => {
|
|
2363
2363
|
}
|
|
2364
2364
|
});
|
|
2365
2365
|
e.value.table = xe(
|
|
@@ -2391,22 +2391,22 @@ const Ol = {
|
|
|
2391
2391
|
text: !0,
|
|
2392
2392
|
type: "success",
|
|
2393
2393
|
mode: "dialog",
|
|
2394
|
-
auth: (l, r,
|
|
2394
|
+
auth: (l, r, p, S) => !1
|
|
2395
2395
|
},
|
|
2396
2396
|
edit: {
|
|
2397
2397
|
label: "编辑",
|
|
2398
2398
|
text: !0,
|
|
2399
2399
|
type: "primary",
|
|
2400
2400
|
mode: "dialog",
|
|
2401
|
-
auth: (l, r,
|
|
2401
|
+
auth: (l, r, p, S) => !0
|
|
2402
2402
|
},
|
|
2403
2403
|
delete: {
|
|
2404
2404
|
text: !0,
|
|
2405
2405
|
label: "删除",
|
|
2406
2406
|
type: "danger",
|
|
2407
|
-
auth: (l, r,
|
|
2407
|
+
auth: (l, r, p, S) => {
|
|
2408
2408
|
var P, N, Z;
|
|
2409
|
-
return !(((Z = (N = (P =
|
|
2409
|
+
return !(((Z = (N = (P = S.value) == null ? void 0 : P.control) == null ? void 0 : N.add) == null ? void 0 : Z.inline) === !0 && p === 0);
|
|
2410
2410
|
},
|
|
2411
2411
|
dialog: {
|
|
2412
2412
|
message: "此操作将永久删除该文件, 是否继续?",
|
|
@@ -2440,21 +2440,21 @@ const Ol = {
|
|
|
2440
2440
|
sort: -1,
|
|
2441
2441
|
addLabel: "新增",
|
|
2442
2442
|
auth: () => {
|
|
2443
|
-
var l, r,
|
|
2444
|
-
return ((
|
|
2443
|
+
var l, r, p;
|
|
2444
|
+
return ((p = (r = (l = e.value) == null ? void 0 : l.control) == null ? void 0 : r.add) == null ? void 0 : p.inline) === !0;
|
|
2445
2445
|
}
|
|
2446
2446
|
},
|
|
2447
|
-
dropdown: (l, r,
|
|
2447
|
+
dropdown: (l, r, p, S) => ({
|
|
2448
2448
|
label: "编辑",
|
|
2449
2449
|
operate: "edit",
|
|
2450
2450
|
"split-button": !0,
|
|
2451
2451
|
type: "primary",
|
|
2452
2452
|
size: "small",
|
|
2453
|
-
auth: () => !(
|
|
2453
|
+
auth: () => !(S.control.add.inline === !0 && p == 0),
|
|
2454
2454
|
onClick: () => {
|
|
2455
2455
|
var N;
|
|
2456
|
-
let P = (N = pe(l, r,
|
|
2457
|
-
P === "edit" ? v(l, r,
|
|
2456
|
+
let P = (N = pe(l, r, p, S)) == null ? void 0 : N.operate;
|
|
2457
|
+
P === "edit" ? v(l, r, p, S) : P === "delete" ? m(l, r, p, S) : P === "view" && s(l, r, p, S);
|
|
2458
2458
|
},
|
|
2459
2459
|
"button-props": { round: !0, plain: !0 }
|
|
2460
2460
|
})
|
|
@@ -2464,21 +2464,21 @@ const Ol = {
|
|
|
2464
2464
|
d == null ? void 0 : d.control,
|
|
2465
2465
|
(lt = e.value) == null ? void 0 : lt.control
|
|
2466
2466
|
);
|
|
2467
|
-
const pe = (l, r,
|
|
2467
|
+
const pe = (l, r, p, S) => {
|
|
2468
2468
|
var Ee, ke, je, Le, ze, Ge;
|
|
2469
|
-
if (!l || !r ||
|
|
2469
|
+
if (!l || !r || p == null)
|
|
2470
2470
|
return console.warn("mergeDropdown: 缺少必要的参数(row, column或index)"), {};
|
|
2471
|
-
const P = ((Ee = he.dropdown) == null ? void 0 : Ee.call(he, l, r,
|
|
2471
|
+
const P = ((Ee = he.dropdown) == null ? void 0 : Ee.call(he, l, r, p, S)) || {}, N = ((je = (ke = d == null ? void 0 : d.control) == null ? void 0 : ke.dropdown) == null ? void 0 : je.call(ke, l, r, p, S)) || {}, Z = ((Ge = (ze = (Le = e.value) == null ? void 0 : Le.control) == null ? void 0 : ze.dropdown) == null ? void 0 : Ge.call(ze, l, r, p, S)) || {};
|
|
2472
2472
|
return xe(P, N, Z) || {};
|
|
2473
|
-
},
|
|
2473
|
+
}, ie = {
|
|
2474
2474
|
type: "hidden",
|
|
2475
2475
|
"min-width": 100,
|
|
2476
2476
|
align: "center",
|
|
2477
|
-
formatter: (l, r,
|
|
2478
|
-
"tooltip-formatter": ({ row: l, column: r, cellValue:
|
|
2477
|
+
formatter: (l, r, p, S) => p,
|
|
2478
|
+
"tooltip-formatter": ({ row: l, column: r, cellValue: p }) => Ae(jl, { content: p, column: r })
|
|
2479
2479
|
};
|
|
2480
2480
|
e.value.tableColumns = xe(
|
|
2481
|
-
|
|
2481
|
+
ie,
|
|
2482
2482
|
d == null ? void 0 : d.tableColumns,
|
|
2483
2483
|
(nt = e.value) == null ? void 0 : nt.tableColumns
|
|
2484
2484
|
), e.value.form = xe(
|
|
@@ -2486,7 +2486,7 @@ const Ol = {
|
|
|
2486
2486
|
d == null ? void 0 : d.form,
|
|
2487
2487
|
(st = e.value) == null ? void 0 : st.form
|
|
2488
2488
|
);
|
|
2489
|
-
const
|
|
2489
|
+
const ue = {
|
|
2490
2490
|
type: "hidden",
|
|
2491
2491
|
labelPosition: "right",
|
|
2492
2492
|
style: {
|
|
@@ -2494,7 +2494,7 @@ const Ol = {
|
|
|
2494
2494
|
}
|
|
2495
2495
|
};
|
|
2496
2496
|
e.value.formItems = xe(
|
|
2497
|
-
|
|
2497
|
+
ue,
|
|
2498
2498
|
d == null ? void 0 : d.formItems,
|
|
2499
2499
|
(it = e == null ? void 0 : e.value) == null ? void 0 : it.formItems
|
|
2500
2500
|
);
|
|
@@ -2511,11 +2511,11 @@ const Ol = {
|
|
|
2511
2511
|
overflow: !0,
|
|
2512
2512
|
max: {
|
|
2513
2513
|
style: {},
|
|
2514
|
-
icon: () => Ae(
|
|
2514
|
+
icon: () => Ae(tl)
|
|
2515
2515
|
},
|
|
2516
2516
|
min: {
|
|
2517
2517
|
style: {},
|
|
2518
|
-
icon: () => Ae(
|
|
2518
|
+
icon: () => Ae(ll)
|
|
2519
2519
|
// 最小化图标
|
|
2520
2520
|
}
|
|
2521
2521
|
};
|
|
@@ -2525,91 +2525,91 @@ const Ol = {
|
|
|
2525
2525
|
(at = e.value) == null ? void 0 : at.dialog
|
|
2526
2526
|
);
|
|
2527
2527
|
const $e = (l, r) => {
|
|
2528
|
-
let
|
|
2529
|
-
if (l.decimals && !isNaN(parseFloat(r)) && (typeof l.decimals == "number" ?
|
|
2530
|
-
parseFloat(
|
|
2528
|
+
let p = r;
|
|
2529
|
+
if (l.decimals && !isNaN(parseFloat(r)) && (typeof l.decimals == "number" ? p = parseFloat(p).toFixed(l.decimals) : typeof l.decimals == "object" && l.decimals.num && (l.decimals.pad ? p = parseFloat(p).toFixed(l.decimals.num) : p = parseFloat(
|
|
2530
|
+
parseFloat(p).toFixed(l.decimals.num)
|
|
2531
2531
|
).toString())), ["date", "datetime", "time", "time-select"].includes(l.type) && yt(r).isValid()) {
|
|
2532
2532
|
const P = {
|
|
2533
2533
|
date: "YYYY-MM-DD",
|
|
2534
2534
|
datetime: "YYYY-MM-DD HH:mm:ss",
|
|
2535
2535
|
time: "HH:mm:ss"
|
|
2536
2536
|
};
|
|
2537
|
-
|
|
2537
|
+
p = l.format ? yt(p).format(l.format) : yt(p).format(P[l.type]);
|
|
2538
2538
|
}
|
|
2539
|
-
return l.type === "money" && (l.align = l.align || "right", l.width = l.width || 130,
|
|
2540
|
-
parseFloat(
|
|
2541
|
-
)}">${
|
|
2542
|
-
},
|
|
2543
|
-
k.value = Object.fromEntries(
|
|
2539
|
+
return l.type === "money" && (l.align = l.align || "right", l.width = l.width || 130, p = `<span title="${Et(
|
|
2540
|
+
parseFloat(p)
|
|
2541
|
+
)}">${pa(parseFloat(p))}</span>`), l.prefix && p && (p = `<span>${l.prefix}${p}</span>`), l.suffix && p && (p = `${p}<span>${l.suffix}</span>`), p;
|
|
2542
|
+
}, ne = (l) => {
|
|
2543
|
+
k.value = Object.fromEntries(D), e.value.table.load();
|
|
2544
2544
|
}, g = (l) => {
|
|
2545
2545
|
k.value = l, e.value.table.load();
|
|
2546
2546
|
}, E = async (l) => {
|
|
2547
|
-
var r,
|
|
2547
|
+
var r, p;
|
|
2548
2548
|
e.value.form.modalState = "add";
|
|
2549
2549
|
try {
|
|
2550
2550
|
if (!await ((r = e.value.control) == null ? void 0 : r.validate("add", { m: l }))) return;
|
|
2551
|
-
} catch (
|
|
2552
|
-
console.error("验证失败:",
|
|
2551
|
+
} catch (S) {
|
|
2552
|
+
console.error("验证失败:", S);
|
|
2553
2553
|
return;
|
|
2554
2554
|
}
|
|
2555
|
-
(
|
|
2556
|
-
e.value[
|
|
2555
|
+
(p = e.value.control.add) != null && p.click ? e.value.control.add.click(l) : e.value.control.add.inline === !0 ? (e.value.table.data.unshift(K.value), t("open", "row-add", { initFormData: K.value })) : (e.value.form.disabled = !1, e.value.form.submit.hidden = !1, e.value.form.reset.hidden = !1, e.value.dialog.mode = e.value.control.add.mode, e.value.dialog.title = e.value.control.add.label, Object.keys(K.value).forEach((S) => {
|
|
2556
|
+
e.value[S] && (e.value[S].value = K.value[S]);
|
|
2557
2557
|
}), w.value = !0, t("open", "add", { m: l }), mt());
|
|
2558
|
-
}, v = async (l, r,
|
|
2558
|
+
}, v = async (l, r, p, S) => {
|
|
2559
2559
|
var P, N;
|
|
2560
2560
|
e.value.form.modalState = "edit";
|
|
2561
2561
|
try {
|
|
2562
|
-
if (!await ((P = e.value.control) == null ? void 0 : P.validate("edit", { row: l, column: r, $index:
|
|
2562
|
+
if (!await ((P = e.value.control) == null ? void 0 : P.validate("edit", { row: l, column: r, $index: p, m: S }))) return;
|
|
2563
2563
|
} catch (Z) {
|
|
2564
2564
|
console.error("验证失败:", Z);
|
|
2565
2565
|
return;
|
|
2566
2566
|
}
|
|
2567
|
-
(N = e.value.control.edit) != null && N.click ? e.value.control.edit.click(l, r,
|
|
2567
|
+
(N = e.value.control.edit) != null && N.click ? e.value.control.edit.click(l, r, p, S) : (e.value.form.disabled = !1, e.value.form.submit.hidden = !1, e.value.form.reset.hidden = !1, e.value.dialog.mode = e.value.control.edit.mode, e.value.dialog.title = e.value.control.edit.label, Object.keys(l).forEach((Z) => {
|
|
2568
2568
|
e.value[Z] && (e.value[Z].value = l[Z]);
|
|
2569
|
-
}), w.value = !0, t("open", "edit", { m:
|
|
2570
|
-
},
|
|
2569
|
+
}), w.value = !0, t("open", "edit", { m: S, row: l, column: r, $index: p }), mt());
|
|
2570
|
+
}, m = async (l, r, p, S) => {
|
|
2571
2571
|
var P, N;
|
|
2572
2572
|
try {
|
|
2573
|
-
if (!await ((P = e.value.control) == null ? void 0 : P.validate("delete", { row: l, column: r, $index:
|
|
2573
|
+
if (!await ((P = e.value.control) == null ? void 0 : P.validate("delete", { row: l, column: r, $index: p, m: S }))) return;
|
|
2574
2574
|
} catch (Z) {
|
|
2575
2575
|
console.error("验证失败:", Z);
|
|
2576
2576
|
return;
|
|
2577
2577
|
}
|
|
2578
2578
|
if ((N = e.value.control.delete) != null && N.click)
|
|
2579
|
-
e.value.control.delete.click(l, r,
|
|
2579
|
+
e.value.control.delete.click(l, r, p, S);
|
|
2580
2580
|
else {
|
|
2581
2581
|
let { message: Z, title: Ee, options: ke } = e.value.control.delete.dialog;
|
|
2582
2582
|
xt.confirm(Z, Ee, ke).then(() => {
|
|
2583
2583
|
t(
|
|
2584
2584
|
"delete",
|
|
2585
|
-
{ row: l, column: r, $index:
|
|
2585
|
+
{ row: l, column: r, $index: p, m: S },
|
|
2586
2586
|
(je = !0, Le = !1) => {
|
|
2587
|
-
je && (e.value.table.data.splice(
|
|
2587
|
+
je && (e.value.table.data.splice(p, 1), e.value.table.page.total--), Le && e.value.table.load();
|
|
2588
2588
|
}
|
|
2589
2589
|
);
|
|
2590
2590
|
}).catch(() => {
|
|
2591
2591
|
});
|
|
2592
2592
|
}
|
|
2593
|
-
}, s = async (l, r,
|
|
2593
|
+
}, s = async (l, r, p, S) => {
|
|
2594
2594
|
var P, N;
|
|
2595
2595
|
e.value.form.modalState = void 0;
|
|
2596
2596
|
try {
|
|
2597
|
-
if (!await ((P = e.value.control) == null ? void 0 : P.validate("view", { row: l, column: r, $index:
|
|
2597
|
+
if (!await ((P = e.value.control) == null ? void 0 : P.validate("view", { row: l, column: r, $index: p, m: S }))) return;
|
|
2598
2598
|
} catch (Z) {
|
|
2599
2599
|
console.error("验证失败:", Z);
|
|
2600
2600
|
return;
|
|
2601
2601
|
}
|
|
2602
|
-
(N = e.value.control.view) != null && N.click ? e.value.control.view.click(l, r,
|
|
2602
|
+
(N = e.value.control.view) != null && N.click ? e.value.control.view.click(l, r, p, S) : (e.value.form.disabled = !0, e.value.form.submit.hidden = !0, e.value.form.reset.hidden = !0, e.value.dialog.mode = e.value.control.view.mode, e.value.dialog.title = e.value.control.view.label, Object.keys(l).forEach((Z) => {
|
|
2603
2603
|
e.value[Z] && (e.value[Z].value = l[Z]);
|
|
2604
|
-
}), w.value = !0, t("open", "view", { m:
|
|
2605
|
-
}, a = (l, r,
|
|
2604
|
+
}), w.value = !0, t("open", "view", { m: S, row: l, column: r, $index: p }), mt());
|
|
2605
|
+
}, a = (l, r, p, S) => {
|
|
2606
2606
|
var P;
|
|
2607
|
-
(P = e.value.control.save) != null && P.click ? e.value.control.save.click(l, r,
|
|
2607
|
+
(P = e.value.control.save) != null && P.click ? e.value.control.save.click(l, r, p, S) : t(
|
|
2608
2608
|
"row-save",
|
|
2609
|
-
{ row: l, column: r, $index:
|
|
2609
|
+
{ row: l, column: r, $index: p, data: e.value.table.data },
|
|
2610
2610
|
(N = !0, Z = !0) => {
|
|
2611
2611
|
N && e.value.table.load(), Z && tt(() => {
|
|
2612
|
-
|
|
2612
|
+
K.value = Object.assign(
|
|
2613
2613
|
{},
|
|
2614
2614
|
Object.fromEntries(
|
|
2615
2615
|
Object.entries(
|
|
@@ -2621,27 +2621,27 @@ const Ol = {
|
|
|
2621
2621
|
}
|
|
2622
2622
|
);
|
|
2623
2623
|
}, _ = (l, r) => {
|
|
2624
|
-
t("submit", e.value.form.modalState, l, r, (
|
|
2625
|
-
|
|
2624
|
+
t("submit", e.value.form.modalState, l, r, (p) => {
|
|
2625
|
+
p && (w.value = !1, r.table.load());
|
|
2626
2626
|
});
|
|
2627
2627
|
}, n = (l) => {
|
|
2628
2628
|
t("reset", l);
|
|
2629
2629
|
}, b = (l, r) => {
|
|
2630
|
-
var
|
|
2631
|
-
if ((
|
|
2630
|
+
var p;
|
|
2631
|
+
if ((p = l.control.download) != null && p.click)
|
|
2632
2632
|
l.control.download.click(l, r);
|
|
2633
2633
|
else {
|
|
2634
|
-
let
|
|
2634
|
+
let S = wt(
|
|
2635
2635
|
{
|
|
2636
2636
|
title: l.control.download.label || l.control.download.title,
|
|
2637
2637
|
size: l.control.download.size || 480,
|
|
2638
2638
|
width: l.control.download.width || 600,
|
|
2639
2639
|
slots: {
|
|
2640
|
-
default: () => Ae(
|
|
2640
|
+
default: () => Ae(Tl, {
|
|
2641
2641
|
items: r,
|
|
2642
2642
|
commitText: l.control.download.excelLabel,
|
|
2643
2643
|
onExcel: (P, N) => {
|
|
2644
|
-
t("download", P, k.value, N),
|
|
2644
|
+
t("download", P, k.value, N), S();
|
|
2645
2645
|
}
|
|
2646
2646
|
})
|
|
2647
2647
|
}
|
|
@@ -2649,7 +2649,7 @@ const Ol = {
|
|
|
2649
2649
|
l.control.download.mode
|
|
2650
2650
|
);
|
|
2651
2651
|
}
|
|
2652
|
-
},
|
|
2652
|
+
}, M = (l) => {
|
|
2653
2653
|
var r;
|
|
2654
2654
|
(r = l.control.setting) != null && r.click ? l.control.setting.click(l) : wt(
|
|
2655
2655
|
{
|
|
@@ -2657,9 +2657,9 @@ const Ol = {
|
|
|
2657
2657
|
size: l.control.setting.size || 470,
|
|
2658
2658
|
width: l.control.setting.width || 600,
|
|
2659
2659
|
slots: {
|
|
2660
|
-
default: () => Ae(
|
|
2660
|
+
default: () => Ae(Bl, {
|
|
2661
2661
|
modelValue: l,
|
|
2662
|
-
tuid:
|
|
2662
|
+
tuid: B.name
|
|
2663
2663
|
})
|
|
2664
2664
|
}
|
|
2665
2665
|
},
|
|
@@ -2668,43 +2668,43 @@ const Ol = {
|
|
|
2668
2668
|
}, q = e.value.control, oe = [
|
|
2669
2669
|
{ type: "add", func: E },
|
|
2670
2670
|
{ type: "download", func: b },
|
|
2671
|
-
{ type: "setting", func:
|
|
2671
|
+
{ type: "setting", func: M },
|
|
2672
2672
|
{ type: "view", func: s },
|
|
2673
2673
|
{ type: "edit", func: v },
|
|
2674
|
-
{ type: "delete", func:
|
|
2674
|
+
{ type: "delete", func: m },
|
|
2675
2675
|
{ type: "save", func: a }
|
|
2676
|
-
],
|
|
2677
|
-
var
|
|
2676
|
+
], de = (l) => oe.filter((r) => l.includes(r.type)).map(({ type: r, func: p }) => {
|
|
2677
|
+
var S, P, N;
|
|
2678
2678
|
return {
|
|
2679
2679
|
name: `control-${r}`,
|
|
2680
2680
|
attr: q == null ? void 0 : q[r],
|
|
2681
|
-
func:
|
|
2682
|
-
label: (
|
|
2681
|
+
func: p,
|
|
2682
|
+
label: (S = q == null ? void 0 : q[r]) == null ? void 0 : S.label,
|
|
2683
2683
|
sort: ((P = q == null ? void 0 : q[r]) == null ? void 0 : P.sort) || 0,
|
|
2684
2684
|
groupName: ((N = q == null ? void 0 : q[r]) == null ? void 0 : N.groupName) || "default"
|
|
2685
2685
|
};
|
|
2686
|
-
}).sort((r,
|
|
2687
|
-
const
|
|
2688
|
-
return r[
|
|
2686
|
+
}).sort((r, p) => r.sort - p.sort), R = (l) => de(l).reduce((r, p) => {
|
|
2687
|
+
const S = p.groupName || "default";
|
|
2688
|
+
return r[S] || (r[S] = []), r[S].push(p), r;
|
|
2689
2689
|
}, {}), O = Ke(
|
|
2690
2690
|
() => Object.fromEntries(
|
|
2691
2691
|
Object.entries(e.value).filter(([l, r]) => r.type !== "hidden").filter(([l, r]) => r.visible !== !1).filter(([l, r]) => r.showCol !== !1).map(([l, r]) => (r.sort = typeof r.sort == "number" ? r.sort : 0, [l, r])).sort((l, r) => l[1].sort - r[1].sort)
|
|
2692
2692
|
)
|
|
2693
|
-
), Ce =
|
|
2694
|
-
const
|
|
2695
|
-
for (const N of
|
|
2693
|
+
), Ce = le({}), _e = (l, r) => {
|
|
2694
|
+
const p = (S, P) => {
|
|
2695
|
+
for (const N of S) {
|
|
2696
2696
|
if (N.value == P) return N.label;
|
|
2697
2697
|
if (N.children) {
|
|
2698
|
-
const Z =
|
|
2698
|
+
const Z = p(N.children, P);
|
|
2699
2699
|
if (Z) return Z;
|
|
2700
2700
|
}
|
|
2701
2701
|
}
|
|
2702
2702
|
return null;
|
|
2703
2703
|
};
|
|
2704
2704
|
if (l.getDicts) {
|
|
2705
|
-
const
|
|
2706
|
-
return Ce.value[
|
|
2707
|
-
Ce.value[
|
|
2705
|
+
const S = r.toString();
|
|
2706
|
+
return Ce.value[S] ? (l.options = Ce.value[S], l.formatter || (l.formatter = (P, N, Z, Ee) => l.options && p(l.options, Z) || Z), Promise.resolve()) : l.getDicts(e.value.table.data).then((P) => {
|
|
2707
|
+
Ce.value[S] = P, l.options = P, l.formatter || (l.formatter = (N, Z, Ee, ke) => l.options && p(l.options, Ee) || Ee);
|
|
2708
2708
|
});
|
|
2709
2709
|
}
|
|
2710
2710
|
return Promise.resolve();
|
|
@@ -2712,31 +2712,31 @@ const Ol = {
|
|
|
2712
2712
|
const l = [];
|
|
2713
2713
|
Object.keys(e.value).forEach((r) => {
|
|
2714
2714
|
if (e.value[r].getDicts) {
|
|
2715
|
-
const
|
|
2716
|
-
e.value.table.data.forEach((
|
|
2715
|
+
const p = _e(e.value[r], r).then(() => {
|
|
2716
|
+
e.value.table.data.forEach((S) => {
|
|
2717
2717
|
var P;
|
|
2718
2718
|
if (e.value[r].getDicts && ((P = e.value[r]) == null ? void 0 : P.forceString) !== !1) {
|
|
2719
|
-
const N =
|
|
2720
|
-
|
|
2719
|
+
const N = S[r];
|
|
2720
|
+
S[r] = N != null ? N.toString() : N;
|
|
2721
2721
|
}
|
|
2722
2722
|
});
|
|
2723
|
-
}).catch((
|
|
2724
|
-
console.error(`加载字典${r}出错:`,
|
|
2723
|
+
}).catch((S) => {
|
|
2724
|
+
console.error(`加载字典${r}出错:`, S);
|
|
2725
2725
|
});
|
|
2726
|
-
l.push(
|
|
2726
|
+
l.push(p);
|
|
2727
2727
|
}
|
|
2728
2728
|
}), Promise.all(l).catch((r) => {
|
|
2729
2729
|
console.error("字典加载过程中发生错误:", r);
|
|
2730
2730
|
});
|
|
2731
|
-
}, De = (l, r,
|
|
2731
|
+
}, De = (l, r, p, S) => {
|
|
2732
2732
|
var P, N;
|
|
2733
|
-
return l.table ? (P = l.table(r,
|
|
2733
|
+
return l.table ? (P = l.table(r, p, S)) != null && P.auth ? (N = l.table(r, p, S)) == null ? void 0 : N.auth(r, p, S) : !0 : !1;
|
|
2734
2734
|
}, ye = (l, r) => l.name === "control-save" && r === 0 && e.value.control.add.inline === !0 ? l.attr.addLabel : l.label, Fe = () => {
|
|
2735
2735
|
if (e.value.dialog.mode == "drawer")
|
|
2736
|
-
|
|
2736
|
+
V.value.handleClose();
|
|
2737
2737
|
else if (e.value.dialog.mode == "dialog")
|
|
2738
2738
|
try {
|
|
2739
|
-
|
|
2739
|
+
T.value.handleClose();
|
|
2740
2740
|
} catch {
|
|
2741
2741
|
w.value = !1;
|
|
2742
2742
|
}
|
|
@@ -2746,45 +2746,48 @@ const Ol = {
|
|
|
2746
2746
|
Wt(() => {
|
|
2747
2747
|
e.value.table.autoWatch && e.value.table.load();
|
|
2748
2748
|
});
|
|
2749
|
-
const
|
|
2750
|
-
|
|
2749
|
+
const Be = async () => {
|
|
2750
|
+
if (!B.name) {
|
|
2751
|
+
Ie.error("请指定表格名称");
|
|
2752
|
+
return;
|
|
2753
|
+
}
|
|
2754
|
+
const l = await Sl(B.name);
|
|
2751
2755
|
l && Array.isArray(l) && l.forEach((r) => {
|
|
2752
|
-
const
|
|
2753
|
-
|
|
2756
|
+
const p = e.value[r.key];
|
|
2757
|
+
p && (p.width = r.width, p.showCol = r.showCol, p.sort = r.sort);
|
|
2754
2758
|
});
|
|
2755
2759
|
};
|
|
2756
2760
|
return rt(async () => {
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
label: c.label,
|
|
2761
|
+
ee.value = Object.entries(e.value).filter(
|
|
2762
|
+
([l, r]) => r.type !== "hidden" && r.type !== "control" && r.visible !== !1
|
|
2763
|
+
).map(([l, r]) => ({
|
|
2764
|
+
key: l || "",
|
|
2765
|
+
label: r.label,
|
|
2763
2766
|
value: !0
|
|
2764
2767
|
}));
|
|
2765
2768
|
try {
|
|
2766
2769
|
await tt();
|
|
2767
|
-
const
|
|
2768
|
-
([
|
|
2770
|
+
const l = Object.entries(e.value).filter(
|
|
2771
|
+
([r, p]) => p.type !== "control" && p.editor !== !1 && p.type !== "hidden"
|
|
2769
2772
|
);
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
), await
|
|
2773
|
-
} catch (
|
|
2774
|
-
console.error("Error during component initialization:",
|
|
2773
|
+
K.value = Object.fromEntries(
|
|
2774
|
+
l.map(([r, p]) => [r, p.value])
|
|
2775
|
+
), await Be();
|
|
2776
|
+
} catch (l) {
|
|
2777
|
+
console.error("Error during component initialization:", l);
|
|
2775
2778
|
}
|
|
2776
2779
|
e.value.table.autoWatch || e.value.table.load();
|
|
2777
|
-
}),
|
|
2778
|
-
await
|
|
2779
|
-
}), i({ addRow: E, editRow: v, deleteRow:
|
|
2780
|
-
var Ge,
|
|
2781
|
-
const
|
|
2780
|
+
}), Xt(async () => {
|
|
2781
|
+
await Be();
|
|
2782
|
+
}), i({ addRow: E, editRow: v, deleteRow: m, readForm: s, saveRowData: a, closeDialog: Fe }), (l, r) => {
|
|
2783
|
+
var Ge, c, Q, ve, Ye;
|
|
2784
|
+
const p = I("el-icon"), S = I("el-dialog"), P = I("el-drawer"), N = I("el-button-group"), Z = I("el-dropdown-item"), Ee = I("el-dropdown-menu"), ke = I("el-dropdown"), je = I("el-table-column"), Le = I("el-table"), ze = I("el-pagination");
|
|
2782
2785
|
return u(), F(X, null, [
|
|
2783
|
-
e.value.dialog.mode == "dialog" && w.value ? (u(), F("div",
|
|
2784
|
-
G(
|
|
2786
|
+
e.value.dialog.mode == "dialog" && w.value ? (u(), F("div", Ll, [
|
|
2787
|
+
G(S, x(
|
|
2785
2788
|
{
|
|
2786
2789
|
ref_key: "dialogRef",
|
|
2787
|
-
ref:
|
|
2790
|
+
ref: T,
|
|
2788
2791
|
id: "dialogRef",
|
|
2789
2792
|
modelValue: w.value,
|
|
2790
2793
|
"onUpdate:modelValue": r[3] || (r[3] = (Y) => w.value = Y),
|
|
@@ -2796,25 +2799,25 @@ const Ol = {
|
|
|
2796
2799
|
}
|
|
2797
2800
|
), {
|
|
2798
2801
|
header: h(() => {
|
|
2799
|
-
var Y,
|
|
2802
|
+
var Y, te, $, H, J, Qe, Ze, He, Pe, ot;
|
|
2800
2803
|
return [
|
|
2801
|
-
W("div",
|
|
2802
|
-
W("div",
|
|
2804
|
+
W("div", zl, [
|
|
2805
|
+
W("div", Hl, [
|
|
2803
2806
|
y(l.$slots, "f-header", {}, () => [
|
|
2804
2807
|
W("div", null, be(e.value.dialog.title), 1)
|
|
2805
2808
|
], !0)
|
|
2806
2809
|
]),
|
|
2807
|
-
((
|
|
2810
|
+
((te = (Y = e.value) == null ? void 0 : Y.dialog) == null ? void 0 : te.fullScreen) === !1 ? (u(), F("div", {
|
|
2808
2811
|
key: 0,
|
|
2809
2812
|
style: Se((J = (H = ($ = e.value) == null ? void 0 : $.dialog) == null ? void 0 : H.max) == null ? void 0 : J.style),
|
|
2810
2813
|
onClick: r[0] || (r[0] = (A) => e.value.dialog.fullScreen = !0),
|
|
2811
2814
|
class: "max"
|
|
2812
2815
|
}, [
|
|
2813
|
-
G(
|
|
2816
|
+
G(p, null, {
|
|
2814
2817
|
default: h(() => {
|
|
2815
2818
|
var A, Oe, Je;
|
|
2816
2819
|
return [
|
|
2817
|
-
(u(),
|
|
2820
|
+
(u(), C(Ue((Je = (Oe = (A = e.value) == null ? void 0 : A.dialog) == null ? void 0 : Oe.max) == null ? void 0 : Je.icon)))
|
|
2818
2821
|
];
|
|
2819
2822
|
}),
|
|
2820
2823
|
_: 1
|
|
@@ -2826,11 +2829,11 @@ const Ol = {
|
|
|
2826
2829
|
onClick: r[1] || (r[1] = (A) => e.value.dialog.fullScreen = !1),
|
|
2827
2830
|
class: "max"
|
|
2828
2831
|
}, [
|
|
2829
|
-
G(
|
|
2832
|
+
G(p, null, {
|
|
2830
2833
|
default: h(() => {
|
|
2831
2834
|
var A, Oe, Je;
|
|
2832
2835
|
return [
|
|
2833
|
-
(u(),
|
|
2836
|
+
(u(), C(Ue((Je = (Oe = (A = e.value) == null ? void 0 : A.dialog) == null ? void 0 : Oe.min) == null ? void 0 : Je.icon)))
|
|
2834
2837
|
];
|
|
2835
2838
|
}),
|
|
2836
2839
|
_: 1
|
|
@@ -2840,18 +2843,18 @@ const Ol = {
|
|
|
2840
2843
|
];
|
|
2841
2844
|
}),
|
|
2842
2845
|
default: h(() => [
|
|
2843
|
-
W("div",
|
|
2846
|
+
W("div", Pl, [
|
|
2844
2847
|
y(l.$slots, "table-dialog-form", { model: e.value }, () => [
|
|
2845
2848
|
G(bt, {
|
|
2846
2849
|
modelValue: e.value,
|
|
2847
2850
|
"onUpdate:modelValue": r[2] || (r[2] = (Y) => e.value = Y),
|
|
2848
2851
|
onSubmit: _,
|
|
2849
2852
|
onReset: n
|
|
2850
|
-
},
|
|
2851
|
-
L(l.$slots, (Y,
|
|
2852
|
-
name:
|
|
2853
|
+
}, fe({ _: 2 }, [
|
|
2854
|
+
L(l.$slots, (Y, te, $) => ({
|
|
2855
|
+
name: te,
|
|
2853
2856
|
fn: h((H) => [
|
|
2854
|
-
y(l.$slots,
|
|
2857
|
+
y(l.$slots, te, { model: H }, void 0, !0)
|
|
2855
2858
|
])
|
|
2856
2859
|
}))
|
|
2857
2860
|
]), 1032, ["modelValue"])
|
|
@@ -2861,16 +2864,16 @@ const Ol = {
|
|
|
2861
2864
|
_: 3
|
|
2862
2865
|
}, 16, ["modelValue", "fullscreen", "width"])
|
|
2863
2866
|
])) : me("", !0),
|
|
2864
|
-
e.value.dialog.mode == "drawer" && w.value ? (u(), F("div",
|
|
2865
|
-
G(P,
|
|
2867
|
+
e.value.dialog.mode == "drawer" && w.value ? (u(), F("div", Nl, [
|
|
2868
|
+
G(P, x({
|
|
2866
2869
|
ref_key: "drawerRef",
|
|
2867
|
-
ref:
|
|
2870
|
+
ref: V,
|
|
2868
2871
|
modelValue: w.value,
|
|
2869
2872
|
"onUpdate:modelValue": r[5] || (r[5] = (Y) => w.value = Y)
|
|
2870
2873
|
}, j(qe)(e.value.dialog, (Y) => !["width"].includes(Y))), {
|
|
2871
2874
|
header: h(() => [
|
|
2872
|
-
W("div",
|
|
2873
|
-
W("div",
|
|
2875
|
+
W("div", Wl, [
|
|
2876
|
+
W("div", Xl, [
|
|
2874
2877
|
y(l.$slots, "f-header", {}, () => [
|
|
2875
2878
|
W("div", null, be(e.value.dialog.title), 1)
|
|
2876
2879
|
], !0)
|
|
@@ -2884,11 +2887,11 @@ const Ol = {
|
|
|
2884
2887
|
"onUpdate:modelValue": r[4] || (r[4] = (Y) => e.value = Y),
|
|
2885
2888
|
onSubmit: _,
|
|
2886
2889
|
onReset: n
|
|
2887
|
-
},
|
|
2888
|
-
L(l.$slots, (Y,
|
|
2889
|
-
name:
|
|
2890
|
+
}, fe({ _: 2 }, [
|
|
2891
|
+
L(l.$slots, (Y, te, $) => ({
|
|
2892
|
+
name: te,
|
|
2890
2893
|
fn: h((H) => [
|
|
2891
|
-
y(l.$slots,
|
|
2894
|
+
y(l.$slots, te, { model: H }, void 0, !0)
|
|
2892
2895
|
])
|
|
2893
2896
|
}))
|
|
2894
2897
|
]), 1032, ["modelValue"])
|
|
@@ -2897,65 +2900,65 @@ const Ol = {
|
|
|
2897
2900
|
_: 3
|
|
2898
2901
|
}, 16, ["modelValue"])
|
|
2899
2902
|
])) : me("", !0),
|
|
2900
|
-
W("div",
|
|
2901
|
-
((
|
|
2903
|
+
W("div", Gl, [
|
|
2904
|
+
((c = (Ge = e.value) == null ? void 0 : Ge.query) == null ? void 0 : c.hidden) != !0 ? (u(), F("div", Ql, [
|
|
2902
2905
|
y(l.$slots, "query", {}, () => [
|
|
2903
|
-
G(
|
|
2906
|
+
G(El, {
|
|
2904
2907
|
modelValue: e.value,
|
|
2905
2908
|
"onUpdate:modelValue": r[6] || (r[6] = (Y) => e.value = Y),
|
|
2906
2909
|
info: k.value,
|
|
2907
2910
|
"onUpdate:info": r[7] || (r[7] = (Y) => k.value = Y),
|
|
2908
2911
|
onQuery: g,
|
|
2909
|
-
onReset:
|
|
2910
|
-
},
|
|
2912
|
+
onReset: ne
|
|
2913
|
+
}, fe({
|
|
2911
2914
|
"q-btns": h(() => [
|
|
2912
2915
|
y(l.$slots, "q-btns", {}, () => [
|
|
2913
|
-
(u(!0), F(X, null, L(R(["add", "download", "setting"]), (Y,
|
|
2914
|
-
|
|
2916
|
+
(u(!0), F(X, null, L(R(["add", "download", "setting"]), (Y, te) => (u(), F(X, null, [
|
|
2917
|
+
te == "default" ? (u(!0), F(X, { key: 0 }, L(Y, ($) => (u(), F(X, null, [
|
|
2915
2918
|
y(l.$slots, $.name + "-left", {}, void 0, !0),
|
|
2916
2919
|
($.name === "control-add" ? $.attr.auth(e.value) && $.attr.inline === !1 : $.attr.auth(e.value)) ? y(l.$slots, $.name, { key: 0 }, () => [
|
|
2917
|
-
$.label ? (u(),
|
|
2920
|
+
$.label ? (u(), C(j(Me), x({
|
|
2918
2921
|
key: 0,
|
|
2919
2922
|
title: $.label,
|
|
2920
2923
|
ref_for: !0
|
|
2921
2924
|
}, $.attr, {
|
|
2922
|
-
onClick: (H) => $.func(e.value,
|
|
2925
|
+
onClick: (H) => $.func(e.value, ee.value)
|
|
2923
2926
|
}), {
|
|
2924
2927
|
default: h(() => [
|
|
2925
2928
|
Te(be($.label), 1)
|
|
2926
2929
|
]),
|
|
2927
2930
|
_: 2
|
|
2928
|
-
}, 1040, ["title", "onClick"])) : (u(),
|
|
2931
|
+
}, 1040, ["title", "onClick"])) : (u(), C(j(Me), x({
|
|
2929
2932
|
key: 1,
|
|
2930
2933
|
title: $.label,
|
|
2931
2934
|
ref_for: !0
|
|
2932
2935
|
}, $.attr, {
|
|
2933
|
-
onClick: (H) => $.func(e.value,
|
|
2936
|
+
onClick: (H) => $.func(e.value, ee.value)
|
|
2934
2937
|
}), null, 16, ["title", "onClick"]))
|
|
2935
2938
|
], !0) : me("", !0),
|
|
2936
2939
|
y(l.$slots, $.name + "-right", {}, void 0, !0)
|
|
2937
|
-
], 64))), 256)) : (u(),
|
|
2940
|
+
], 64))), 256)) : (u(), C(N, { key: 1 }, {
|
|
2938
2941
|
default: h(() => [
|
|
2939
2942
|
(u(!0), F(X, null, L(Y, ($) => (u(), F(X, null, [
|
|
2940
2943
|
y(l.$slots, $.name + "-left", {}, void 0, !0),
|
|
2941
2944
|
($.name === "control-add" ? $.attr.auth(e.value) && $.attr.inline === !1 : $.attr.auth(e.value)) ? y(l.$slots, $.name, { key: 0 }, () => [
|
|
2942
|
-
$.label ? (u(),
|
|
2945
|
+
$.label ? (u(), C(j(Me), x({
|
|
2943
2946
|
key: 0,
|
|
2944
2947
|
title: $.label,
|
|
2945
2948
|
ref_for: !0
|
|
2946
2949
|
}, $.attr, {
|
|
2947
|
-
onClick: (H) => $.func(e.value,
|
|
2950
|
+
onClick: (H) => $.func(e.value, ee.value)
|
|
2948
2951
|
}), {
|
|
2949
2952
|
default: h(() => [
|
|
2950
2953
|
Te(be($.label), 1)
|
|
2951
2954
|
]),
|
|
2952
2955
|
_: 2
|
|
2953
|
-
}, 1040, ["title", "onClick"])) : (u(),
|
|
2956
|
+
}, 1040, ["title", "onClick"])) : (u(), C(j(Me), x({
|
|
2954
2957
|
key: 1,
|
|
2955
2958
|
title: $.label,
|
|
2956
2959
|
ref_for: !0
|
|
2957
2960
|
}, $.attr, {
|
|
2958
|
-
onClick: (H) => $.func(e.value,
|
|
2961
|
+
onClick: (H) => $.func(e.value, ee.value)
|
|
2959
2962
|
}), null, 16, ["title", "onClick"]))
|
|
2960
2963
|
], !0) : me("", !0),
|
|
2961
2964
|
y(l.$slots, $.name + "-right", {}, void 0, !0)
|
|
@@ -2968,27 +2971,27 @@ const Ol = {
|
|
|
2968
2971
|
]),
|
|
2969
2972
|
_: 2
|
|
2970
2973
|
}, [
|
|
2971
|
-
L(l.$slots, (Y,
|
|
2972
|
-
name:
|
|
2974
|
+
L(l.$slots, (Y, te, $) => ({
|
|
2975
|
+
name: te,
|
|
2973
2976
|
fn: h((H) => [
|
|
2974
|
-
y(l.$slots,
|
|
2977
|
+
y(l.$slots, te, { model: e.value }, void 0, !0)
|
|
2975
2978
|
])
|
|
2976
2979
|
}))
|
|
2977
2980
|
]), 1032, ["modelValue", "info"])
|
|
2978
2981
|
], !0)
|
|
2979
2982
|
])) : me("", !0),
|
|
2980
|
-
W("div",
|
|
2981
|
-
G(Le,
|
|
2983
|
+
W("div", Zl, [
|
|
2984
|
+
G(Le, x({
|
|
2982
2985
|
...l.$attrs,
|
|
2983
2986
|
...j(qe)(
|
|
2984
2987
|
e.value.table,
|
|
2985
2988
|
(Y) => !["dblclickType", "page"].includes(Y)
|
|
2986
2989
|
)
|
|
2987
2990
|
}, {
|
|
2988
|
-
"summary-method": (Y) => e.value.table["summary-method"](Y, { fields:
|
|
2991
|
+
"summary-method": (Y) => e.value.table["summary-method"](Y, { fields: re.value, sums: se.value }),
|
|
2989
2992
|
onSortChange: r[8] || (r[8] = (Y) => {
|
|
2990
|
-
var
|
|
2991
|
-
e.value.table.onSortChange(Y, k.value), ((
|
|
2993
|
+
var te, $;
|
|
2994
|
+
e.value.table.onSortChange(Y, k.value), ((te = Y == null ? void 0 : Y.column) == null ? void 0 : te.sortable) === "custom" && (($ = e.value.table) == null || $.load());
|
|
2992
2995
|
})
|
|
2993
2996
|
}), {
|
|
2994
2997
|
append: h(() => [
|
|
@@ -2999,36 +3002,36 @@ const Ol = {
|
|
|
2999
3002
|
]),
|
|
3000
3003
|
default: h(() => [
|
|
3001
3004
|
y(l.$slots, "default", {}, () => [
|
|
3002
|
-
(u(!0), F(X, null, L(O.value, (Y,
|
|
3003
|
-
prop:
|
|
3004
|
-
key:
|
|
3005
|
+
(u(!0), F(X, null, L(O.value, (Y, te) => (u(), C(je, x({
|
|
3006
|
+
prop: te,
|
|
3007
|
+
key: te,
|
|
3005
3008
|
ref_for: !0
|
|
3006
3009
|
}, {
|
|
3007
3010
|
...e.value.tableColumns,
|
|
3008
3011
|
...j(qe)(Y, ($) => z.includes($))
|
|
3009
|
-
}),
|
|
3012
|
+
}), fe({
|
|
3010
3013
|
header: h(({ column: $, $index: H }) => [
|
|
3011
|
-
|
|
3014
|
+
te == "control" ? y(l.$slots, `${te}-header`, {
|
|
3012
3015
|
key: 0,
|
|
3013
3016
|
column: $,
|
|
3014
3017
|
$index: H
|
|
3015
3018
|
}, () => [
|
|
3016
3019
|
W("span", null, be($.label), 1)
|
|
3017
|
-
], !0) : y(l.$slots, `${
|
|
3020
|
+
], !0) : y(l.$slots, `${te}-header`, {
|
|
3018
3021
|
key: 1,
|
|
3019
3022
|
column: $,
|
|
3020
3023
|
$index: H
|
|
3021
3024
|
}, void 0, !0)
|
|
3022
3025
|
]),
|
|
3023
3026
|
"filter-icon": h(($) => [
|
|
3024
|
-
y(l.$slots, `${
|
|
3027
|
+
y(l.$slots, `${te}-filter-icon`, { data: $ }, void 0, !0)
|
|
3025
3028
|
]),
|
|
3026
3029
|
_: 2
|
|
3027
3030
|
}, [
|
|
3028
3031
|
Y.type === "expand" ? {
|
|
3029
3032
|
name: "default",
|
|
3030
3033
|
fn: h(({ row: $, column: H, $index: J }) => [
|
|
3031
|
-
y(l.$slots, `${
|
|
3034
|
+
y(l.$slots, `${te}`, {
|
|
3032
3035
|
row: $,
|
|
3033
3036
|
column: H,
|
|
3034
3037
|
$index: J
|
|
@@ -3065,7 +3068,7 @@ const Ol = {
|
|
|
3065
3068
|
column: H,
|
|
3066
3069
|
$index: J
|
|
3067
3070
|
}, () => [
|
|
3068
|
-
A.label ? (u(),
|
|
3071
|
+
A.label ? (u(), C(j(Me), x({
|
|
3069
3072
|
key: 0,
|
|
3070
3073
|
title: A.label,
|
|
3071
3074
|
ref_for: !0
|
|
@@ -3076,7 +3079,7 @@ const Ol = {
|
|
|
3076
3079
|
Te(be(ye(A, J)), 1)
|
|
3077
3080
|
]),
|
|
3078
3081
|
_: 2
|
|
3079
|
-
}, 1040, ["title", "onClick"])) : (u(),
|
|
3082
|
+
}, 1040, ["title", "onClick"])) : (u(), C(j(Me), x({
|
|
3080
3083
|
key: 1,
|
|
3081
3084
|
title: A.label,
|
|
3082
3085
|
ref_for: !0
|
|
@@ -3089,7 +3092,7 @@ const Ol = {
|
|
|
3089
3092
|
column: H,
|
|
3090
3093
|
$index: J
|
|
3091
3094
|
}, void 0, !0)
|
|
3092
|
-
], 64))), 256)) : Pe != null && Pe.startsWith("dropdown") && ((ot = pe($, H, J, e.value)) != null && ot.auth()) ? (u(),
|
|
3095
|
+
], 64))), 256)) : Pe != null && Pe.startsWith("dropdown") && ((ot = pe($, H, J, e.value)) != null && ot.auth()) ? (u(), C(ke, x({
|
|
3093
3096
|
key: 1,
|
|
3094
3097
|
ref_for: !0
|
|
3095
3098
|
}, pe($, H, J, e.value)), {
|
|
@@ -3105,7 +3108,7 @@ const Ol = {
|
|
|
3105
3108
|
column: H,
|
|
3106
3109
|
$index: J
|
|
3107
3110
|
}, void 0, !0) : me("", !0),
|
|
3108
|
-
A.attr.auth($, H, J, e.value) ? (u(),
|
|
3111
|
+
A.attr.auth($, H, J, e.value) ? (u(), C(Z, x({
|
|
3109
3112
|
key: 1,
|
|
3110
3113
|
ref_for: !0
|
|
3111
3114
|
}, {
|
|
@@ -3119,7 +3122,7 @@ const Ol = {
|
|
|
3119
3122
|
column: H,
|
|
3120
3123
|
$index: J
|
|
3121
3124
|
}, () => [
|
|
3122
|
-
A.label ? (u(),
|
|
3125
|
+
A.label ? (u(), C(j(Me), x({
|
|
3123
3126
|
key: 0,
|
|
3124
3127
|
title: A.label,
|
|
3125
3128
|
ref_for: !0
|
|
@@ -3130,7 +3133,7 @@ const Ol = {
|
|
|
3130
3133
|
Te(be(ye(A, J)), 1)
|
|
3131
3134
|
]),
|
|
3132
3135
|
_: 2
|
|
3133
|
-
}, 1040, ["title", "onClick"])) : (u(),
|
|
3136
|
+
}, 1040, ["title", "onClick"])) : (u(), C(j(Me), x({
|
|
3134
3137
|
key: 1,
|
|
3135
3138
|
title: A.label,
|
|
3136
3139
|
ref_for: !0
|
|
@@ -3160,7 +3163,7 @@ const Ol = {
|
|
|
3160
3163
|
];
|
|
3161
3164
|
}),
|
|
3162
3165
|
_: 2
|
|
3163
|
-
}, 1040)) : (u(),
|
|
3166
|
+
}, 1040)) : (u(), C(N, { key: 2 }, {
|
|
3164
3167
|
default: h(() => [
|
|
3165
3168
|
(u(!0), F(X, null, L(He, (A) => (u(), F(X, null, [
|
|
3166
3169
|
y(l.$slots, A.name + "-left", {
|
|
@@ -3174,7 +3177,7 @@ const Ol = {
|
|
|
3174
3177
|
column: H,
|
|
3175
3178
|
$index: J
|
|
3176
3179
|
}, () => [
|
|
3177
|
-
A.label ? (u(),
|
|
3180
|
+
A.label ? (u(), C(j(Me), x({
|
|
3178
3181
|
key: 0,
|
|
3179
3182
|
title: A.label,
|
|
3180
3183
|
ref_for: !0
|
|
@@ -3185,7 +3188,7 @@ const Ol = {
|
|
|
3185
3188
|
Te(be(ye(A, J)), 1)
|
|
3186
3189
|
]),
|
|
3187
3190
|
_: 2
|
|
3188
|
-
}, 1040, ["title", "onClick"])) : (u(),
|
|
3191
|
+
}, 1040, ["title", "onClick"])) : (u(), C(j(Me), x({
|
|
3189
3192
|
key: 1,
|
|
3190
3193
|
title: A.label,
|
|
3191
3194
|
ref_for: !0
|
|
@@ -3217,7 +3220,7 @@ const Ol = {
|
|
|
3217
3220
|
} : Y.type != "selection" && Y.type != "index" ? {
|
|
3218
3221
|
name: "default",
|
|
3219
3222
|
fn: h(({ row: $, column: H, $index: J }) => [
|
|
3220
|
-
De(Y, $, H, J) && J != -1 ? y(l.$slots, `${
|
|
3223
|
+
De(Y, $, H, J) && J != -1 ? y(l.$slots, `${te}`, {
|
|
3221
3224
|
key: 0,
|
|
3222
3225
|
row: $,
|
|
3223
3226
|
column: H,
|
|
@@ -3225,18 +3228,18 @@ const Ol = {
|
|
|
3225
3228
|
}, () => {
|
|
3226
3229
|
var Qe;
|
|
3227
3230
|
return [
|
|
3228
|
-
(u(),
|
|
3229
|
-
modelValue: $[
|
|
3230
|
-
"onUpdate:modelValue": (Ze) => $[
|
|
3231
|
+
(u(), C(pt, {
|
|
3232
|
+
modelValue: $[te],
|
|
3233
|
+
"onUpdate:modelValue": (Ze) => $[te] = Ze,
|
|
3231
3234
|
item: Y == null ? void 0 : Y.table($, H, J),
|
|
3232
|
-
ctrlKey:
|
|
3233
|
-
key: `${
|
|
3235
|
+
ctrlKey: te,
|
|
3236
|
+
key: `${te}-${J} -${ce.value}`,
|
|
3234
3237
|
ctrlType: (Qe = Y.table($, H, J)) != null && Qe.type ? Y.table($, H, J).type : Y.type,
|
|
3235
3238
|
model: e.value,
|
|
3236
3239
|
class: "g-ctrl-container",
|
|
3237
3240
|
t: "t",
|
|
3238
3241
|
formInfo: $
|
|
3239
|
-
},
|
|
3242
|
+
}, fe({ _: 2 }, [
|
|
3240
3243
|
L(l.$slots, (Ze, He) => ({
|
|
3241
3244
|
name: He,
|
|
3242
3245
|
fn: h((Pe) => [
|
|
@@ -3249,7 +3252,7 @@ const Ol = {
|
|
|
3249
3252
|
}))
|
|
3250
3253
|
]), 1032, ["modelValue", "onUpdate:modelValue", "item", "ctrlKey", "ctrlType", "model", "formInfo"]))
|
|
3251
3254
|
];
|
|
3252
|
-
}, !0) : y(l.$slots, `${
|
|
3255
|
+
}, !0) : y(l.$slots, `${te}`, {
|
|
3253
3256
|
key: 1,
|
|
3254
3257
|
row: $,
|
|
3255
3258
|
column: H,
|
|
@@ -3259,9 +3262,9 @@ const Ol = {
|
|
|
3259
3262
|
style: Se([{ width: "100%", "text-overflow": "ellipsis", overflow: "hidden" }, Y == null ? void 0 : Y.style]),
|
|
3260
3263
|
innerHTML: $e(
|
|
3261
3264
|
Y,
|
|
3262
|
-
H.formatter($, H, $[
|
|
3265
|
+
H.formatter($, H, $[te], J)
|
|
3263
3266
|
)
|
|
3264
|
-
}, null, 12,
|
|
3267
|
+
}, null, 12, Jl)
|
|
3265
3268
|
], !0)
|
|
3266
3269
|
]),
|
|
3267
3270
|
key: "2"
|
|
@@ -3271,8 +3274,8 @@ const Ol = {
|
|
|
3271
3274
|
]),
|
|
3272
3275
|
_: 3
|
|
3273
3276
|
}, 16, ["summary-method"]),
|
|
3274
|
-
(
|
|
3275
|
-
G(ze,
|
|
3277
|
+
(Ye = (ve = (Q = e.value) == null ? void 0 : Q.table) == null ? void 0 : ve.page) != null && Ye.hidden ? me("", !0) : y(l.$slots, "page", { key: 0 }, () => [
|
|
3278
|
+
G(ze, x({
|
|
3276
3279
|
"page-size": e.value.table.page.pageSize,
|
|
3277
3280
|
"onUpdate:pageSize": r[9] || (r[9] = (Y) => e.value.table.page.pageSize = Y),
|
|
3278
3281
|
"current-page": e.value.table.page.currentPage,
|
|
@@ -3289,7 +3292,7 @@ const Ol = {
|
|
|
3289
3292
|
], 64);
|
|
3290
3293
|
};
|
|
3291
3294
|
}
|
|
3292
|
-
}),
|
|
3295
|
+
}), ea = /* @__PURE__ */ Xe(Kl, [["__scopeId", "data-v-f987e370"]]), ta = { class: "g-tree-table" }, la = { class: "g-tree-container" }, aa = { class: "g-tree-table-container" }, oa = /* @__PURE__ */ Object.assign({
|
|
3293
3296
|
name: "g-tree-table",
|
|
3294
3297
|
inheritAttrs: !1
|
|
3295
3298
|
}, {
|
|
@@ -3300,73 +3303,73 @@ const Ol = {
|
|
|
3300
3303
|
},
|
|
3301
3304
|
emits: /* @__PURE__ */ Ne(["load"], ["update:modelValue"]),
|
|
3302
3305
|
setup(f, { emit: i }) {
|
|
3303
|
-
var
|
|
3304
|
-
const o = i, t = We(f, "modelValue"), e = kt(), d =
|
|
3305
|
-
typeof ((
|
|
3306
|
-
), k =
|
|
3306
|
+
var B, U, se, re;
|
|
3307
|
+
const o = i, t = We(f, "modelValue"), e = kt(), d = le(
|
|
3308
|
+
typeof ((B = e == null ? void 0 : e.tree) == null ? void 0 : B.width) == "number" ? `${e.tree.width}px` : ((U = e == null ? void 0 : e.tree) == null ? void 0 : U.width) || "180px"
|
|
3309
|
+
), k = le(((se = e == null ? void 0 : e.tree) == null ? void 0 : se.search) === void 0 ? !0 : (re = e == null ? void 0 : e.tree) == null ? void 0 : re.search), T = le({}), V = le(""), D = le(null), w = (K, ce) => {
|
|
3307
3310
|
var he, pe;
|
|
3308
|
-
if (!
|
|
3311
|
+
if (!K) return !0;
|
|
3309
3312
|
const we = ((pe = (he = e.tree) == null ? void 0 : he.props) == null ? void 0 : pe.label) || "label";
|
|
3310
|
-
return
|
|
3311
|
-
}, z = (
|
|
3312
|
-
o("load",
|
|
3313
|
-
},
|
|
3314
|
-
|
|
3313
|
+
return ce[we].includes(K);
|
|
3314
|
+
}, z = (K, ce) => {
|
|
3315
|
+
o("load", T.value, K, ce);
|
|
3316
|
+
}, ee = (K) => {
|
|
3317
|
+
T.value = K, t.value.table.load();
|
|
3315
3318
|
};
|
|
3316
|
-
return
|
|
3317
|
-
|
|
3318
|
-
}), (
|
|
3319
|
+
return Gt(V, (K) => {
|
|
3320
|
+
D.value.filter(K);
|
|
3321
|
+
}), (K, ce) => {
|
|
3319
3322
|
const we = I("el-input"), he = I("el-tree"), pe = I("g-table");
|
|
3320
|
-
return u(), F("div",
|
|
3323
|
+
return u(), F("div", ta, [
|
|
3321
3324
|
W("div", {
|
|
3322
3325
|
class: "g-tree-left",
|
|
3323
3326
|
style: Se({ width: d.value })
|
|
3324
3327
|
}, [
|
|
3325
|
-
k.value ? (u(),
|
|
3328
|
+
k.value ? (u(), C(we, {
|
|
3326
3329
|
key: 0,
|
|
3327
|
-
modelValue:
|
|
3328
|
-
"onUpdate:modelValue":
|
|
3330
|
+
modelValue: V.value,
|
|
3331
|
+
"onUpdate:modelValue": ce[0] || (ce[0] = (ie) => V.value = ie),
|
|
3329
3332
|
style: { width: "100%", padding: "0 10px", "box-sizing": "border-box" },
|
|
3330
3333
|
placeholder: "输入节点查询",
|
|
3331
3334
|
clearable: ""
|
|
3332
3335
|
}, null, 8, ["modelValue"])) : me("", !0),
|
|
3333
|
-
W("div",
|
|
3334
|
-
G(he,
|
|
3336
|
+
W("div", la, [
|
|
3337
|
+
G(he, x({
|
|
3335
3338
|
style: { width: d.value },
|
|
3336
3339
|
"filter-node-method": w,
|
|
3337
3340
|
"expand-on-click-node": !1,
|
|
3338
3341
|
ref_key: "treeRef",
|
|
3339
|
-
ref:
|
|
3340
|
-
onNodeClick:
|
|
3341
|
-
},
|
|
3342
|
-
default: h(({ node:
|
|
3343
|
-
y(
|
|
3344
|
-
node:
|
|
3345
|
-
data:
|
|
3342
|
+
ref: D,
|
|
3343
|
+
onNodeClick: ee
|
|
3344
|
+
}, K.$attrs.tree), fe({
|
|
3345
|
+
default: h(({ node: ie, data: ue }) => [
|
|
3346
|
+
y(K.$slots, "tree", {
|
|
3347
|
+
node: ie,
|
|
3348
|
+
data: ue
|
|
3346
3349
|
}, () => [
|
|
3347
|
-
W("span", null, be(
|
|
3350
|
+
W("span", null, be(ie.label), 1)
|
|
3348
3351
|
], !0)
|
|
3349
3352
|
]),
|
|
3350
3353
|
_: 2
|
|
3351
3354
|
}, [
|
|
3352
|
-
L(
|
|
3353
|
-
name:
|
|
3355
|
+
L(K.$slots, (ie, ue, ae) => ({
|
|
3356
|
+
name: ue,
|
|
3354
3357
|
fn: h(($e) => [
|
|
3355
|
-
y(
|
|
3358
|
+
y(K.$slots, ue, { data: $e }, void 0, !0)
|
|
3356
3359
|
])
|
|
3357
3360
|
}))
|
|
3358
3361
|
]), 1040, ["style"])
|
|
3359
3362
|
])
|
|
3360
3363
|
], 4),
|
|
3361
|
-
W("div",
|
|
3362
|
-
G(pe,
|
|
3364
|
+
W("div", aa, [
|
|
3365
|
+
G(pe, x({
|
|
3363
3366
|
modelValue: t.value,
|
|
3364
|
-
"onUpdate:modelValue":
|
|
3365
|
-
},
|
|
3366
|
-
L(
|
|
3367
|
-
name:
|
|
3367
|
+
"onUpdate:modelValue": ce[1] || (ce[1] = (ie) => t.value = ie)
|
|
3368
|
+
}, K.$attrs, { onLoad: z }), fe({ _: 2 }, [
|
|
3369
|
+
L(K.$slots, (ie, ue, ae) => ({
|
|
3370
|
+
name: ue,
|
|
3368
3371
|
fn: h(($e) => [
|
|
3369
|
-
y(
|
|
3372
|
+
y(K.$slots, ue, { data: $e }, void 0, !0)
|
|
3370
3373
|
])
|
|
3371
3374
|
}))
|
|
3372
3375
|
]), 1040, ["modelValue"])
|
|
@@ -3374,14 +3377,14 @@ const Ol = {
|
|
|
3374
3377
|
]);
|
|
3375
3378
|
};
|
|
3376
3379
|
}
|
|
3377
|
-
}),
|
|
3380
|
+
}), ra = /* @__PURE__ */ Xe(oa, [["__scopeId", "data-v-2d8b16ed"]]), ua = {
|
|
3378
3381
|
key: 0,
|
|
3379
3382
|
class: "op-group"
|
|
3380
|
-
},
|
|
3383
|
+
}, na = {
|
|
3381
3384
|
key: 1,
|
|
3382
3385
|
class: "op-items",
|
|
3383
3386
|
style: { width: "100%", height: "100%" }
|
|
3384
|
-
},
|
|
3387
|
+
}, sa = ["title"], Vt = "100px", ia = /* @__PURE__ */ Object.assign({ name: "g-select-option" }, {
|
|
3385
3388
|
__name: "g-select-option",
|
|
3386
3389
|
props: {
|
|
3387
3390
|
columns: {
|
|
@@ -3403,7 +3406,7 @@ const Ol = {
|
|
|
3403
3406
|
},
|
|
3404
3407
|
setup(f) {
|
|
3405
3408
|
const i = f;
|
|
3406
|
-
return (o, t) => i.title ? (u(), F("div",
|
|
3409
|
+
return (o, t) => i.title ? (u(), F("div", ua, [
|
|
3407
3410
|
(u(!0), F(X, null, L(i.columns, (e) => (u(), F("span", {
|
|
3408
3411
|
style: Se({ width: (e == null ? void 0 : e.width) || Vt, ...e == null ? void 0 : e.titleStyle, textAlign: (e == null ? void 0 : e.align) || "center" }),
|
|
3409
3412
|
key: e.key
|
|
@@ -3412,7 +3415,7 @@ const Ol = {
|
|
|
3412
3415
|
Te(be(e.label), 1)
|
|
3413
3416
|
], !0)
|
|
3414
3417
|
], 4))), 128))
|
|
3415
|
-
])) : (u(), F("div",
|
|
3418
|
+
])) : (u(), F("div", na, [
|
|
3416
3419
|
(u(!0), F(X, null, L(i.columns, (e) => (u(), F("span", {
|
|
3417
3420
|
style: Se({ width: (e == null ? void 0 : e.width) || Vt, textAlign: (e == null ? void 0 : e.align) || "center", ...e == null ? void 0 : e.style }),
|
|
3418
3421
|
key: e.key,
|
|
@@ -3421,34 +3424,34 @@ const Ol = {
|
|
|
3421
3424
|
y(o.$slots, `${f.t}-option-${e.key}`, { col: e }, () => [
|
|
3422
3425
|
Te(be(f.data[e.key] ?? "-"), 1)
|
|
3423
3426
|
], !0)
|
|
3424
|
-
], 12,
|
|
3427
|
+
], 12, sa))), 128))
|
|
3425
3428
|
]));
|
|
3426
3429
|
}
|
|
3427
|
-
}),
|
|
3430
|
+
}), da = /* @__PURE__ */ Xe(ia, [["__scopeId", "data-v-c0ac6b77"]]), fa = Object.freeze({}), At = [ea, bt, ra, da];
|
|
3428
3431
|
let $t = {};
|
|
3429
|
-
const
|
|
3432
|
+
const _a = {
|
|
3430
3433
|
install: (f, i = {}) => {
|
|
3431
|
-
$t = Object.freeze({ ...
|
|
3434
|
+
$t = Object.freeze({ ...fa, ...i }), At.forEach((o) => {
|
|
3432
3435
|
f.component(o.name, o);
|
|
3433
3436
|
}), f.provide("options", $t), f.config.globalProperties.$openModal = wt;
|
|
3434
3437
|
}
|
|
3435
|
-
},
|
|
3438
|
+
}, ca = (f) => ({ dialog: Ut, drawer: Rt })[f] || null, wt = (f = {}, i = "dialog") => {
|
|
3436
3439
|
if (typeof document > "u") return () => {
|
|
3437
3440
|
};
|
|
3438
3441
|
const o = document.createElement("div");
|
|
3439
3442
|
let t = () => {
|
|
3440
3443
|
};
|
|
3441
|
-
const e =
|
|
3444
|
+
const e = ca(i);
|
|
3442
3445
|
if (!e) return () => {
|
|
3443
3446
|
};
|
|
3444
|
-
const d =
|
|
3447
|
+
const d = le(!0), k = Qt({
|
|
3445
3448
|
setup() {
|
|
3446
3449
|
return t = () => {
|
|
3447
3450
|
d.value = !1, setTimeout(() => {
|
|
3448
3451
|
k.unmount(), o.remove();
|
|
3449
3452
|
}, 300);
|
|
3450
3453
|
}, () => {
|
|
3451
|
-
var
|
|
3454
|
+
var T, V, D;
|
|
3452
3455
|
return Ae(e, {
|
|
3453
3456
|
modelValue: d.value,
|
|
3454
3457
|
"onUpdate:modelValue": (w) => d.value = w,
|
|
@@ -3460,9 +3463,9 @@ const ka = {
|
|
|
3460
3463
|
"close-on-click-modal": !1,
|
|
3461
3464
|
...f
|
|
3462
3465
|
}, {
|
|
3463
|
-
default: (
|
|
3464
|
-
header: (
|
|
3465
|
-
footer: (
|
|
3466
|
+
default: (T = f.slots) == null ? void 0 : T.default,
|
|
3467
|
+
header: (V = f.slots) == null ? void 0 : V.header,
|
|
3468
|
+
footer: (D = f.slots) == null ? void 0 : D.footer
|
|
3466
3469
|
});
|
|
3467
3470
|
};
|
|
3468
3471
|
},
|
|
@@ -3470,9 +3473,9 @@ const ka = {
|
|
|
3470
3473
|
mt();
|
|
3471
3474
|
}
|
|
3472
3475
|
});
|
|
3473
|
-
return At.forEach((
|
|
3474
|
-
k.component(
|
|
3475
|
-
}), k.provide("options", $t), k.use(Yt, { locale:
|
|
3476
|
+
return At.forEach((T) => {
|
|
3477
|
+
k.component(T.name, T);
|
|
3478
|
+
}), k.provide("options", $t), k.use(Yt, { locale: ol }), document.body.appendChild(o), k.mount(o), t;
|
|
3476
3479
|
};
|
|
3477
3480
|
function It(f, i = window.innerWidth) {
|
|
3478
3481
|
if (typeof f == "number")
|
|
@@ -3490,13 +3493,13 @@ function It(f, i = window.innerWidth) {
|
|
|
3490
3493
|
return i * parseFloat(f) / 100;
|
|
3491
3494
|
}
|
|
3492
3495
|
if (f.startsWith("calc(") && f.endsWith(")")) {
|
|
3493
|
-
let d = function(
|
|
3494
|
-
if (/[0-9+\-*/().\s]+$/.test(
|
|
3495
|
-
return new Function("return " +
|
|
3496
|
+
let d = function(T) {
|
|
3497
|
+
if (/[0-9+\-*/().\s]+$/.test(T))
|
|
3498
|
+
return new Function("return " + T)();
|
|
3496
3499
|
throw new Error("Invalid calc expression");
|
|
3497
3500
|
};
|
|
3498
3501
|
const e = f.slice(5, -1).trim();
|
|
3499
|
-
return d(e.replace(/([0-9.]+)([a-z%]+)/g, (
|
|
3502
|
+
return d(e.replace(/([0-9.]+)([a-z%]+)/g, (T, V, D) => It(V + D, i)));
|
|
3500
3503
|
}
|
|
3501
3504
|
throw new Error("Unsupported unit in value: " + f);
|
|
3502
3505
|
}
|
|
@@ -3512,12 +3515,12 @@ function qe(f, i = (o, t) => i(o, t)) {
|
|
|
3512
3515
|
f.hasOwnProperty(t) && i(t, f[t]) && (o[t] = f[t]);
|
|
3513
3516
|
return o;
|
|
3514
3517
|
}
|
|
3515
|
-
function
|
|
3518
|
+
function ma(f, i, o = "value", t = "label", e = "children") {
|
|
3516
3519
|
for (const d of f) {
|
|
3517
3520
|
if (d[o] === i)
|
|
3518
3521
|
return d[t];
|
|
3519
3522
|
if (d[e] && d[e].length > 0) {
|
|
3520
|
-
const k =
|
|
3523
|
+
const k = ma(d[e], i, o, t, e);
|
|
3521
3524
|
if (k)
|
|
3522
3525
|
return k;
|
|
3523
3526
|
}
|
|
@@ -3536,14 +3539,14 @@ function Et(f) {
|
|
|
3536
3539
|
d += (o[Math.floor(f * 10 * Math.pow(10, k)) % 10] + i[k]).replace(/零./, "");
|
|
3537
3540
|
d = d || "整", f = Math.floor(f);
|
|
3538
3541
|
for (let k = 0; k < t[0].length && f > 0; k++) {
|
|
3539
|
-
let
|
|
3540
|
-
for (let
|
|
3541
|
-
|
|
3542
|
-
d =
|
|
3542
|
+
let T = "";
|
|
3543
|
+
for (let V = 0; V < t[1].length && f > 0; V++)
|
|
3544
|
+
T = o[f % 10] + t[1][V] + T, f = Math.floor(f / 10);
|
|
3545
|
+
d = T.replace(/(零.)*零$/, "").replace(/^$/, "零") + t[0][k] + d;
|
|
3543
3546
|
}
|
|
3544
3547
|
return e + d.replace(/(零.)*零元/, "元").replace(/(零.)+/g, "零").replace(/^整$/, "零元整");
|
|
3545
3548
|
}
|
|
3546
|
-
function
|
|
3549
|
+
function pa(f) {
|
|
3547
3550
|
if (typeof f != "number" || isNaN(f) || !isFinite(f))
|
|
3548
3551
|
return "0.00";
|
|
3549
3552
|
const i = f.toFixed(2), [o, t] = i.split(".");
|
|
@@ -3582,10 +3585,10 @@ const ge = {
|
|
|
3582
3585
|
const f = document.querySelector(".el-dialog");
|
|
3583
3586
|
if (!f || f.querySelector(".dialog-resize-handle"))
|
|
3584
3587
|
return;
|
|
3585
|
-
const i =
|
|
3586
|
-
f.appendChild(i),
|
|
3588
|
+
const i = va();
|
|
3589
|
+
f.appendChild(i), ha(f), ya(f, i);
|
|
3587
3590
|
});
|
|
3588
|
-
},
|
|
3591
|
+
}, va = () => {
|
|
3589
3592
|
const f = document.createElement("div");
|
|
3590
3593
|
return Object.assign(f.style, {
|
|
3591
3594
|
position: "absolute",
|
|
@@ -3597,7 +3600,7 @@ const ge = {
|
|
|
3597
3600
|
cursor: "nwse-resize",
|
|
3598
3601
|
zIndex: "999999999999"
|
|
3599
3602
|
}), f.className = "dialog-resize-handle", f;
|
|
3600
|
-
},
|
|
3603
|
+
}, ha = (f) => {
|
|
3601
3604
|
Object.assign(f.style, {
|
|
3602
3605
|
transition: "none",
|
|
3603
3606
|
minWidth: "300px",
|
|
@@ -3605,27 +3608,27 @@ const ge = {
|
|
|
3605
3608
|
resize: "none"
|
|
3606
3609
|
// 防止与原生resize冲突
|
|
3607
3610
|
});
|
|
3608
|
-
},
|
|
3611
|
+
}, ya = (f, i) => {
|
|
3609
3612
|
let o = !1, t, e, d, k;
|
|
3610
|
-
const
|
|
3611
|
-
w.preventDefault(), o = !0, t = w.clientX, e = w.clientY, d = parseInt(document.defaultView.getComputedStyle(f).width), k = parseInt(document.defaultView.getComputedStyle(f).height), document.addEventListener("mousemove",
|
|
3612
|
-
},
|
|
3613
|
+
const T = (w) => {
|
|
3614
|
+
w.preventDefault(), o = !0, t = w.clientX, e = w.clientY, d = parseInt(document.defaultView.getComputedStyle(f).width), k = parseInt(document.defaultView.getComputedStyle(f).height), document.addEventListener("mousemove", V), document.addEventListener("mouseup", D);
|
|
3615
|
+
}, V = (w) => {
|
|
3613
3616
|
if (!o) return;
|
|
3614
|
-
const z = Math.max(300, d + w.clientX - t),
|
|
3615
|
-
f.style.width = `${z}px`, f.style.height = `${
|
|
3616
|
-
},
|
|
3617
|
-
o = !1, document.removeEventListener("mousemove",
|
|
3617
|
+
const z = Math.max(300, d + w.clientX - t), ee = Math.max(200, k + w.clientY - e);
|
|
3618
|
+
f.style.width = `${z}px`, f.style.height = `${ee}px`;
|
|
3619
|
+
}, D = () => {
|
|
3620
|
+
o = !1, document.removeEventListener("mousemove", V), document.removeEventListener("mouseup", D);
|
|
3618
3621
|
};
|
|
3619
|
-
i.addEventListener("mousedown",
|
|
3622
|
+
i.addEventListener("mousedown", T);
|
|
3620
3623
|
};
|
|
3621
3624
|
export {
|
|
3622
3625
|
ge as CT,
|
|
3623
3626
|
mt as bindResize,
|
|
3624
3627
|
It as convertToPx,
|
|
3625
|
-
|
|
3628
|
+
_a as default,
|
|
3626
3629
|
qe as filterObject,
|
|
3627
|
-
|
|
3628
|
-
|
|
3630
|
+
ma as findTreeLabelByValue,
|
|
3631
|
+
pa as formatAmount,
|
|
3629
3632
|
xe as mergeObjects,
|
|
3630
3633
|
Et as moneyToChinese,
|
|
3631
3634
|
wt as openModal
|