vue-2024-ui 0.1.11 → 0.1.13
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 +1502 -1495
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/src/components/db.d.ts +0 -43
package/dist/index.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { mergeModels as
|
|
1
|
+
import Bt, { ElForm as ct, ElButtonGroup as mt, ElButton as De, ElPopover as ht, ElMessage as Oe, ElMessageBox as Vt, ElDialog as It, ElDrawer as Yt } from "element-plus";
|
|
2
|
+
import { mergeModels as ze, useModel as Pe, ref as le, nextTick as et, onMounted as ut, computed as Ze, resolveComponent as I, openBlock as n, createElementBlock as x, Fragment as W, createElementVNode as Q, createBlock as D, createCommentVNode as pe, unref as L, mergeProps as S, withCtx as y, renderSlot as h, renderList as U, createTextVNode as Me, toDisplayString as ye, createSlots as me, createVNode as Z, normalizeProps as gt, useSlots as St, inject as kt, useAttrs as _t, onUnmounted as Ut, normalizeStyle as Be, withModifiers as ot, resolveDynamicComponent as Ue, guardReactiveProps as Rt, Transition as Lt, withDirectives as jt, vShow as Ht, h as Ae, onBeforeUnmount as Nt, normalizeClass as Ft, watchEffect as zt, watch as Pt, createApp as Wt } from "vue";
|
|
3
3
|
import { Plus as Xt, ZoomOut as Gt, Delete as Qt, FullScreen as Zt, CopyDocument as Jt } from "@element-plus/icons-vue";
|
|
4
|
-
import
|
|
4
|
+
import Tt from "sortablejs";
|
|
5
5
|
import { Dexie as Kt } from "dexie";
|
|
6
6
|
var el = {
|
|
7
7
|
name: "zh-cn",
|
|
@@ -181,179 +181,179 @@ var el = {
|
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
183
|
}, tl = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
184
|
-
function ll(
|
|
185
|
-
return
|
|
184
|
+
function ll(d) {
|
|
185
|
+
return d && d.__esModule && Object.prototype.hasOwnProperty.call(d, "default") ? d.default : d;
|
|
186
186
|
}
|
|
187
|
-
var
|
|
188
|
-
(function(
|
|
189
|
-
(function(
|
|
190
|
-
|
|
187
|
+
var xt = { exports: {} };
|
|
188
|
+
(function(d, f) {
|
|
189
|
+
(function(o, t) {
|
|
190
|
+
d.exports = t();
|
|
191
191
|
})(tl, function() {
|
|
192
|
-
var
|
|
193
|
-
var a = ["th", "st", "nd", "rd"],
|
|
194
|
-
return "[" +
|
|
195
|
-
} },
|
|
196
|
-
var g = String(
|
|
197
|
-
return !g || g.length >= a ?
|
|
198
|
-
},
|
|
199
|
-
var a = -
|
|
200
|
-
return (a <= 0 ? "+" : "-") +
|
|
201
|
-
}, m: function
|
|
202
|
-
if (a.date() <
|
|
203
|
-
var g = 12 * (
|
|
204
|
-
return +(-(g + (
|
|
205
|
-
}, a: function(
|
|
206
|
-
return
|
|
207
|
-
}, p: function(
|
|
208
|
-
return { M:
|
|
209
|
-
}, u: function(
|
|
210
|
-
return
|
|
211
|
-
} },
|
|
212
|
-
de
|
|
213
|
-
var ne = "$isDayjsObject",
|
|
214
|
-
return
|
|
215
|
-
},
|
|
192
|
+
var o = 1e3, t = 6e4, e = 36e5, i = "millisecond", E = "second", F = "minute", T = "hour", k = "day", w = "week", H = "month", ee = "quarter", O = "year", Y = "date", ie = "Invalid Date", re = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, J = /\[([^\]]+)]|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, ve = { 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(p) {
|
|
193
|
+
var a = ["th", "st", "nd", "rd"], v = p % 100;
|
|
194
|
+
return "[" + p + (a[(v - 20) % 10] || a[v] || a[0]) + "]";
|
|
195
|
+
} }, ge = function(p, a, v) {
|
|
196
|
+
var g = String(p);
|
|
197
|
+
return !g || g.length >= a ? p : "" + Array(a + 1 - g.length).join(v) + p;
|
|
198
|
+
}, be = { s: ge, z: function(p) {
|
|
199
|
+
var a = -p.utcOffset(), v = Math.abs(a), g = Math.floor(v / 60), s = v % 60;
|
|
200
|
+
return (a <= 0 ? "+" : "-") + ge(g, 2, "0") + ":" + ge(s, 2, "0");
|
|
201
|
+
}, m: function p(a, v) {
|
|
202
|
+
if (a.date() < v.date()) return -p(v, a);
|
|
203
|
+
var g = 12 * (v.year() - a.year()) + (v.month() - a.month()), s = a.clone().add(g, H), M = v - s < 0, C = a.clone().add(g + (M ? -1 : 1), H);
|
|
204
|
+
return +(-(g + (v - s) / (M ? s - C : C - s)) || 0);
|
|
205
|
+
}, a: function(p) {
|
|
206
|
+
return p < 0 ? Math.ceil(p) || 0 : Math.floor(p);
|
|
207
|
+
}, p: function(p) {
|
|
208
|
+
return { M: H, y: O, w, d: k, D: Y, h: T, m: F, s: E, ms: i, Q: ee }[p] || String(p || "").toLowerCase().replace(/s$/, "");
|
|
209
|
+
}, u: function(p) {
|
|
210
|
+
return p === void 0;
|
|
211
|
+
} }, de = "en", fe = {};
|
|
212
|
+
fe[de] = ve;
|
|
213
|
+
var ne = "$isDayjsObject", ae = function(p) {
|
|
214
|
+
return p instanceof r || !(!p || !p[ne]);
|
|
215
|
+
}, $e = function p(a, v, g) {
|
|
216
216
|
var s;
|
|
217
|
-
if (!a) return
|
|
217
|
+
if (!a) return de;
|
|
218
218
|
if (typeof a == "string") {
|
|
219
|
-
var
|
|
220
|
-
|
|
219
|
+
var M = a.toLowerCase();
|
|
220
|
+
fe[M] && (s = M), v && (fe[M] = v, s = M);
|
|
221
221
|
var C = a.split("-");
|
|
222
|
-
if (!s && C.length > 1) return
|
|
222
|
+
if (!s && C.length > 1) return p(C[0]);
|
|
223
223
|
} else {
|
|
224
|
-
var
|
|
225
|
-
|
|
224
|
+
var R = a.name;
|
|
225
|
+
fe[R] = a, s = R;
|
|
226
226
|
}
|
|
227
|
-
return !g && s && (
|
|
228
|
-
}, se = function(
|
|
229
|
-
if (
|
|
230
|
-
var
|
|
231
|
-
return
|
|
232
|
-
}, b =
|
|
233
|
-
b.l =
|
|
234
|
-
return se(
|
|
227
|
+
return !g && s && (de = s), s || !g && de;
|
|
228
|
+
}, se = function(p, a) {
|
|
229
|
+
if (ae(p)) return p.clone();
|
|
230
|
+
var v = typeof a == "object" ? a : {};
|
|
231
|
+
return v.date = p, v.args = arguments, new r(v);
|
|
232
|
+
}, b = be;
|
|
233
|
+
b.l = $e, b.i = ae, b.w = function(p, a) {
|
|
234
|
+
return se(p, { locale: a.$L, utc: a.$u, x: a.$x, $offset: a.$offset });
|
|
235
235
|
};
|
|
236
|
-
var
|
|
237
|
-
function v
|
|
238
|
-
this.$L =
|
|
236
|
+
var r = function() {
|
|
237
|
+
function p(v) {
|
|
238
|
+
this.$L = $e(v.locale, null, !0), this.parse(v), this.$x = this.$x || v.x || {}, this[ne] = !0;
|
|
239
239
|
}
|
|
240
|
-
var a =
|
|
241
|
-
return a.parse = function(
|
|
240
|
+
var a = p.prototype;
|
|
241
|
+
return a.parse = function(v) {
|
|
242
242
|
this.$d = function(g) {
|
|
243
|
-
var s = g.date,
|
|
243
|
+
var s = g.date, M = g.utc;
|
|
244
244
|
if (s === null) return /* @__PURE__ */ new Date(NaN);
|
|
245
245
|
if (b.u(s)) return /* @__PURE__ */ new Date();
|
|
246
246
|
if (s instanceof Date) return new Date(s);
|
|
247
247
|
if (typeof s == "string" && !/Z$/i.test(s)) {
|
|
248
|
-
var C = s.match(
|
|
248
|
+
var C = s.match(re);
|
|
249
249
|
if (C) {
|
|
250
|
-
var
|
|
251
|
-
return
|
|
250
|
+
var R = C[2] - 1 || 0, G = (C[7] || "0").substring(0, 3);
|
|
251
|
+
return M ? new Date(Date.UTC(C[1], R, C[3] || 1, C[4] || 0, C[5] || 0, C[6] || 0, G)) : new Date(C[1], R, C[3] || 1, C[4] || 0, C[5] || 0, C[6] || 0, G);
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
254
|
return new Date(s);
|
|
255
|
-
}(
|
|
255
|
+
}(v), this.init();
|
|
256
256
|
}, a.init = function() {
|
|
257
|
-
var
|
|
258
|
-
this.$y =
|
|
257
|
+
var v = this.$d;
|
|
258
|
+
this.$y = v.getFullYear(), this.$M = v.getMonth(), this.$D = v.getDate(), this.$W = v.getDay(), this.$H = v.getHours(), this.$m = v.getMinutes(), this.$s = v.getSeconds(), this.$ms = v.getMilliseconds();
|
|
259
259
|
}, a.$utils = function() {
|
|
260
260
|
return b;
|
|
261
261
|
}, a.isValid = function() {
|
|
262
|
-
return this.$d.toString() !==
|
|
263
|
-
}, a.isSame = function(
|
|
264
|
-
var s = se(
|
|
262
|
+
return this.$d.toString() !== ie;
|
|
263
|
+
}, a.isSame = function(v, g) {
|
|
264
|
+
var s = se(v);
|
|
265
265
|
return this.startOf(g) <= s && s <= this.endOf(g);
|
|
266
|
-
}, a.isAfter = function(
|
|
267
|
-
return se(
|
|
268
|
-
}, a.isBefore = function(
|
|
269
|
-
return this.endOf(g) < se(
|
|
270
|
-
}, a.$g = function(
|
|
271
|
-
return b.u(
|
|
266
|
+
}, a.isAfter = function(v, g) {
|
|
267
|
+
return se(v) < this.startOf(g);
|
|
268
|
+
}, a.isBefore = function(v, g) {
|
|
269
|
+
return this.endOf(g) < se(v);
|
|
270
|
+
}, a.$g = function(v, g, s) {
|
|
271
|
+
return b.u(v) ? this[g] : this.set(s, v);
|
|
272
272
|
}, a.unix = function() {
|
|
273
273
|
return Math.floor(this.valueOf() / 1e3);
|
|
274
274
|
}, a.valueOf = function() {
|
|
275
275
|
return this.$d.getTime();
|
|
276
|
-
}, a.startOf = function(
|
|
277
|
-
var s = this,
|
|
278
|
-
var
|
|
279
|
-
return
|
|
280
|
-
},
|
|
281
|
-
return b.w(s.toDate()[
|
|
282
|
-
},
|
|
276
|
+
}, a.startOf = function(v, g) {
|
|
277
|
+
var s = this, M = !!b.u(g) || g, C = b.p(v), R = function(Fe, we) {
|
|
278
|
+
var Te = b.w(s.$u ? Date.UTC(s.$y, we, Fe) : new Date(s.$y, we, Fe), s);
|
|
279
|
+
return M ? Te : Te.endOf(k);
|
|
280
|
+
}, G = function(Fe, we) {
|
|
281
|
+
return b.w(s.toDate()[Fe].apply(s.toDate("s"), (M ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(we)), s);
|
|
282
|
+
}, q = this.$W, A = this.$M, ue = this.$D, _e = "set" + (this.$u ? "UTC" : "");
|
|
283
283
|
switch (C) {
|
|
284
|
-
case
|
|
285
|
-
return
|
|
286
|
-
case
|
|
287
|
-
return
|
|
288
|
-
case
|
|
289
|
-
var
|
|
290
|
-
return
|
|
284
|
+
case O:
|
|
285
|
+
return M ? R(1, 0) : R(31, 11);
|
|
286
|
+
case H:
|
|
287
|
+
return M ? R(1, A) : R(0, A + 1);
|
|
288
|
+
case w:
|
|
289
|
+
var ke = this.$locale().weekStart || 0, Se = (q < ke ? q + 7 : q) - ke;
|
|
290
|
+
return R(M ? ue - Se : ue + (6 - Se), A);
|
|
291
291
|
case k:
|
|
292
|
-
case
|
|
293
|
-
return
|
|
292
|
+
case Y:
|
|
293
|
+
return G(_e + "Hours", 0);
|
|
294
294
|
case T:
|
|
295
|
-
return
|
|
295
|
+
return G(_e + "Minutes", 1);
|
|
296
296
|
case F:
|
|
297
|
-
return
|
|
297
|
+
return G(_e + "Seconds", 2);
|
|
298
298
|
case E:
|
|
299
|
-
return
|
|
299
|
+
return G(_e + "Milliseconds", 3);
|
|
300
300
|
default:
|
|
301
301
|
return this.clone();
|
|
302
302
|
}
|
|
303
|
-
}, a.endOf = function(
|
|
304
|
-
return this.startOf(
|
|
305
|
-
}, a.$set = function(
|
|
306
|
-
var s,
|
|
307
|
-
if (
|
|
308
|
-
var
|
|
309
|
-
|
|
310
|
-
} else
|
|
303
|
+
}, a.endOf = function(v) {
|
|
304
|
+
return this.startOf(v, !1);
|
|
305
|
+
}, a.$set = function(v, g) {
|
|
306
|
+
var s, M = b.p(v), C = "set" + (this.$u ? "UTC" : ""), R = (s = {}, s[k] = C + "Date", s[Y] = C + "Date", s[H] = C + "Month", s[O] = C + "FullYear", s[T] = C + "Hours", s[F] = C + "Minutes", s[E] = C + "Seconds", s[i] = C + "Milliseconds", s)[M], G = M === k ? this.$D + (g - this.$W) : g;
|
|
307
|
+
if (M === H || M === O) {
|
|
308
|
+
var q = this.clone().set(Y, 1);
|
|
309
|
+
q.$d[R](G), q.init(), this.$d = q.set(Y, Math.min(this.$D, q.daysInMonth())).$d;
|
|
310
|
+
} else R && this.$d[R](G);
|
|
311
311
|
return this.init(), this;
|
|
312
|
-
}, a.set = function(
|
|
313
|
-
return this.clone().$set(
|
|
314
|
-
}, a.get = function(
|
|
315
|
-
return this[b.p(
|
|
316
|
-
}, a.add = function(
|
|
317
|
-
var s,
|
|
318
|
-
|
|
319
|
-
var C = b.p(g),
|
|
320
|
-
var ue = se(
|
|
321
|
-
return b.w(ue.date(ue.date() + Math.round(A *
|
|
312
|
+
}, a.set = function(v, g) {
|
|
313
|
+
return this.clone().$set(v, g);
|
|
314
|
+
}, a.get = function(v) {
|
|
315
|
+
return this[b.p(v)]();
|
|
316
|
+
}, a.add = function(v, g) {
|
|
317
|
+
var s, M = this;
|
|
318
|
+
v = Number(v);
|
|
319
|
+
var C = b.p(g), R = function(A) {
|
|
320
|
+
var ue = se(M);
|
|
321
|
+
return b.w(ue.date(ue.date() + Math.round(A * v)), M);
|
|
322
322
|
};
|
|
323
|
-
if (C ===
|
|
324
|
-
if (C ===
|
|
325
|
-
if (C === k) return
|
|
326
|
-
if (C ===
|
|
327
|
-
var
|
|
328
|
-
return b.w(
|
|
329
|
-
}, a.subtract = function(
|
|
330
|
-
return this.add(-1 *
|
|
331
|
-
}, a.format = function(
|
|
323
|
+
if (C === H) return this.set(H, this.$M + v);
|
|
324
|
+
if (C === O) return this.set(O, this.$y + v);
|
|
325
|
+
if (C === k) return R(1);
|
|
326
|
+
if (C === w) return R(7);
|
|
327
|
+
var G = (s = {}, s[F] = t, s[T] = e, s[E] = o, s)[C] || 1, q = this.$d.getTime() + v * G;
|
|
328
|
+
return b.w(q, this);
|
|
329
|
+
}, a.subtract = function(v, g) {
|
|
330
|
+
return this.add(-1 * v, g);
|
|
331
|
+
}, a.format = function(v) {
|
|
332
332
|
var g = this, s = this.$locale();
|
|
333
|
-
if (!this.isValid()) return s.invalidDate ||
|
|
334
|
-
var
|
|
335
|
-
return
|
|
336
|
-
},
|
|
337
|
-
return b.s(
|
|
338
|
-
},
|
|
339
|
-
var
|
|
340
|
-
return
|
|
333
|
+
if (!this.isValid()) return s.invalidDate || ie;
|
|
334
|
+
var M = v || "YYYY-MM-DDTHH:mm:ssZ", C = b.z(this), R = this.$H, G = this.$m, q = this.$M, A = s.weekdays, ue = s.months, _e = s.meridiem, ke = function(we, Te, Re, Le) {
|
|
335
|
+
return we && (we[Te] || we(g, M)) || Re[Te].slice(0, Le);
|
|
336
|
+
}, Se = function(we) {
|
|
337
|
+
return b.s(R % 12 || 12, we, "0");
|
|
338
|
+
}, Fe = _e || function(we, Te, Re) {
|
|
339
|
+
var Le = we < 12 ? "AM" : "PM";
|
|
340
|
+
return Re ? Le.toLowerCase() : Le;
|
|
341
341
|
};
|
|
342
|
-
return
|
|
343
|
-
return
|
|
344
|
-
switch (
|
|
342
|
+
return M.replace(J, function(we, Te) {
|
|
343
|
+
return Te || function(Re) {
|
|
344
|
+
switch (Re) {
|
|
345
345
|
case "YY":
|
|
346
346
|
return String(g.$y).slice(-2);
|
|
347
347
|
case "YYYY":
|
|
348
348
|
return b.s(g.$y, 4, "0");
|
|
349
349
|
case "M":
|
|
350
|
-
return
|
|
350
|
+
return q + 1;
|
|
351
351
|
case "MM":
|
|
352
|
-
return b.s(
|
|
352
|
+
return b.s(q + 1, 2, "0");
|
|
353
353
|
case "MMM":
|
|
354
|
-
return
|
|
354
|
+
return ke(s.monthsShort, q, ue, 3);
|
|
355
355
|
case "MMMM":
|
|
356
|
-
return
|
|
356
|
+
return ke(ue, q);
|
|
357
357
|
case "D":
|
|
358
358
|
return g.$D;
|
|
359
359
|
case "DD":
|
|
@@ -361,27 +361,27 @@ var Tt = { exports: {} };
|
|
|
361
361
|
case "d":
|
|
362
362
|
return String(g.$W);
|
|
363
363
|
case "dd":
|
|
364
|
-
return
|
|
364
|
+
return ke(s.weekdaysMin, g.$W, A, 2);
|
|
365
365
|
case "ddd":
|
|
366
|
-
return
|
|
366
|
+
return ke(s.weekdaysShort, g.$W, A, 3);
|
|
367
367
|
case "dddd":
|
|
368
368
|
return A[g.$W];
|
|
369
369
|
case "H":
|
|
370
|
-
return String(
|
|
370
|
+
return String(R);
|
|
371
371
|
case "HH":
|
|
372
|
-
return b.s(
|
|
372
|
+
return b.s(R, 2, "0");
|
|
373
373
|
case "h":
|
|
374
|
-
return
|
|
374
|
+
return Se(1);
|
|
375
375
|
case "hh":
|
|
376
|
-
return
|
|
376
|
+
return Se(2);
|
|
377
377
|
case "a":
|
|
378
|
-
return
|
|
378
|
+
return Fe(R, G, !0);
|
|
379
379
|
case "A":
|
|
380
|
-
return
|
|
380
|
+
return Fe(R, G, !1);
|
|
381
381
|
case "m":
|
|
382
|
-
return String(
|
|
382
|
+
return String(G);
|
|
383
383
|
case "mm":
|
|
384
|
-
return b.s(
|
|
384
|
+
return b.s(G, 2, "0");
|
|
385
385
|
case "s":
|
|
386
386
|
return String(g.$s);
|
|
387
387
|
case "ss":
|
|
@@ -392,51 +392,51 @@ var Tt = { exports: {} };
|
|
|
392
392
|
return C;
|
|
393
393
|
}
|
|
394
394
|
return null;
|
|
395
|
-
}(
|
|
395
|
+
}(we) || C.replace(":", "");
|
|
396
396
|
});
|
|
397
397
|
}, a.utcOffset = function() {
|
|
398
398
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
399
|
-
}, a.diff = function(
|
|
400
|
-
var
|
|
401
|
-
return b.m(C,
|
|
399
|
+
}, a.diff = function(v, g, s) {
|
|
400
|
+
var M, C = this, R = b.p(g), G = se(v), q = (G.utcOffset() - this.utcOffset()) * t, A = this - G, ue = function() {
|
|
401
|
+
return b.m(C, G);
|
|
402
402
|
};
|
|
403
|
-
switch (
|
|
404
|
-
case
|
|
405
|
-
|
|
403
|
+
switch (R) {
|
|
404
|
+
case O:
|
|
405
|
+
M = ue() / 12;
|
|
406
406
|
break;
|
|
407
|
-
case
|
|
408
|
-
|
|
407
|
+
case H:
|
|
408
|
+
M = ue();
|
|
409
409
|
break;
|
|
410
410
|
case ee:
|
|
411
|
-
|
|
411
|
+
M = ue() / 3;
|
|
412
412
|
break;
|
|
413
|
-
case
|
|
414
|
-
|
|
413
|
+
case w:
|
|
414
|
+
M = (A - q) / 6048e5;
|
|
415
415
|
break;
|
|
416
416
|
case k:
|
|
417
|
-
|
|
417
|
+
M = (A - q) / 864e5;
|
|
418
418
|
break;
|
|
419
419
|
case T:
|
|
420
|
-
|
|
420
|
+
M = A / e;
|
|
421
421
|
break;
|
|
422
422
|
case F:
|
|
423
|
-
|
|
423
|
+
M = A / t;
|
|
424
424
|
break;
|
|
425
425
|
case E:
|
|
426
|
-
|
|
426
|
+
M = A / o;
|
|
427
427
|
break;
|
|
428
428
|
default:
|
|
429
|
-
|
|
429
|
+
M = A;
|
|
430
430
|
}
|
|
431
|
-
return s ?
|
|
431
|
+
return s ? M : b.a(M);
|
|
432
432
|
}, a.daysInMonth = function() {
|
|
433
|
-
return this.endOf(
|
|
433
|
+
return this.endOf(H).$D;
|
|
434
434
|
}, a.$locale = function() {
|
|
435
|
-
return
|
|
436
|
-
}, a.locale = function(
|
|
437
|
-
if (!
|
|
438
|
-
var s = this.clone(),
|
|
439
|
-
return
|
|
435
|
+
return fe[this.$L];
|
|
436
|
+
}, a.locale = function(v, g) {
|
|
437
|
+
if (!v) return this.$L;
|
|
438
|
+
var s = this.clone(), M = $e(v, g, !0);
|
|
439
|
+
return M && (s.$L = M), s;
|
|
440
440
|
}, a.clone = function() {
|
|
441
441
|
return b.w(this.$d, this);
|
|
442
442
|
}, a.toDate = function() {
|
|
@@ -447,46 +447,46 @@ var Tt = { exports: {} };
|
|
|
447
447
|
return this.$d.toISOString();
|
|
448
448
|
}, a.toString = function() {
|
|
449
449
|
return this.$d.toUTCString();
|
|
450
|
-
},
|
|
451
|
-
}(), _ =
|
|
452
|
-
return se.prototype = _, [["$ms",
|
|
453
|
-
_[
|
|
454
|
-
return this.$g(a,
|
|
450
|
+
}, p;
|
|
451
|
+
}(), _ = r.prototype;
|
|
452
|
+
return se.prototype = _, [["$ms", i], ["$s", E], ["$m", F], ["$H", T], ["$W", k], ["$M", H], ["$y", O], ["$D", Y]].forEach(function(p) {
|
|
453
|
+
_[p[1]] = function(a) {
|
|
454
|
+
return this.$g(a, p[0], p[1]);
|
|
455
455
|
};
|
|
456
|
-
}), se.extend = function(
|
|
457
|
-
return
|
|
458
|
-
}, se.locale =
|
|
459
|
-
return se(1e3 *
|
|
460
|
-
}, se.en = de
|
|
456
|
+
}), se.extend = function(p, a) {
|
|
457
|
+
return p.$i || (p(a, r, se), p.$i = !0), se;
|
|
458
|
+
}, se.locale = $e, se.isDayjs = ae, se.unix = function(p) {
|
|
459
|
+
return se(1e3 * p);
|
|
460
|
+
}, se.en = fe[de], se.Ls = fe, se.p = {}, se;
|
|
461
461
|
});
|
|
462
|
-
})(
|
|
463
|
-
var al =
|
|
464
|
-
const
|
|
465
|
-
const
|
|
466
|
-
for (const [t, e] of
|
|
467
|
-
|
|
468
|
-
return
|
|
469
|
-
},
|
|
462
|
+
})(xt);
|
|
463
|
+
var al = xt.exports;
|
|
464
|
+
const yt = /* @__PURE__ */ ll(al), Je = (d, f) => {
|
|
465
|
+
const o = d.__vccOpts || d;
|
|
466
|
+
for (const [t, e] of f)
|
|
467
|
+
o[t] = e;
|
|
468
|
+
return o;
|
|
469
|
+
}, rl = {
|
|
470
470
|
style: { display: "flex", width: "100%" },
|
|
471
471
|
class: "g-ctrl-container"
|
|
472
|
-
},
|
|
472
|
+
}, ol = { style: { width: "var(--up-width)", height: "var(--up-height)", position: "relative", "box-sizing": "border-box" } }, ul = {
|
|
473
473
|
key: 19,
|
|
474
474
|
style: { position: "relative" }
|
|
475
|
-
}, nl = ["title"], sl = { key: 20 }, il = { key: 21 }, dl = ["innerHTML"],
|
|
475
|
+
}, nl = ["title"], sl = { key: 20 }, il = { key: 21 }, dl = { key: 22 }, fl = ["innerHTML"], cl = { key: 23 }, ml = ["innerHTML"], pl = ["innerHTML"], vl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
476
476
|
__name: "g-ctrl",
|
|
477
|
-
props: /* @__PURE__ */
|
|
477
|
+
props: /* @__PURE__ */ ze(["t", "ctrlKey", "item", "model", "ctrlType", "formInfo"], {
|
|
478
478
|
modelValue: { required: !0 },
|
|
479
479
|
modelModifiers: {}
|
|
480
480
|
}),
|
|
481
481
|
emits: ["update:modelValue"],
|
|
482
|
-
setup(
|
|
483
|
-
var
|
|
484
|
-
const
|
|
482
|
+
setup(d) {
|
|
483
|
+
var $e, se;
|
|
484
|
+
const f = Pe(d, "modelValue"), o = d, t = le(o.item || {}), e = le(o.ctrlKey), i = le(o.ctrlType), E = le(o.model), F = le([]), T = le([]), k = le(!1), w = le(!1), H = () => Object.keys(St()).filter((b) => b.startsWith(`${o.t}-${e}-`)).map((b) => b.replace(`${o.t}-${e}-`, "")), ee = le({
|
|
485
485
|
multiple: !1,
|
|
486
486
|
"show-file-list": !1,
|
|
487
487
|
"file-list": [],
|
|
488
|
-
showDel: (
|
|
489
|
-
}),
|
|
488
|
+
showDel: ($e = t.value) != null && $e.showDel ? (se = t.value) == null ? void 0 : se.showDel : o.t !== "t"
|
|
489
|
+
}), O = le(t.value.innerHtml), Y = (b) => [
|
|
490
490
|
"year",
|
|
491
491
|
"years",
|
|
492
492
|
"month",
|
|
@@ -499,7 +499,7 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
499
499
|
"daterange",
|
|
500
500
|
"monthrange",
|
|
501
501
|
"yearrange"
|
|
502
|
-
].includes(b),
|
|
502
|
+
].includes(b), ie = (b) => ({
|
|
503
503
|
year: "YYYY",
|
|
504
504
|
years: "YYYY",
|
|
505
505
|
month: "YYYY-MM",
|
|
@@ -513,62 +513,62 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
513
513
|
daterange: "YYYY-MM-DD",
|
|
514
514
|
monthrange: "YYYY-MM",
|
|
515
515
|
yearrange: "YYYY"
|
|
516
|
-
})[b] || "YYYY-MM-DD",
|
|
516
|
+
})[b] || "YYYY-MM-DD", re = le({
|
|
517
517
|
filterable: !0,
|
|
518
518
|
remote: !!(t.value && t.value["remote-method"]),
|
|
519
519
|
...t.value
|
|
520
|
-
}),
|
|
521
|
-
t.value["remote-method"](b, (
|
|
522
|
-
|
|
523
|
-
T.value =
|
|
520
|
+
}), J = le((b) => {
|
|
521
|
+
t.value["remote-method"](b, (r) => {
|
|
522
|
+
et(() => {
|
|
523
|
+
T.value = r;
|
|
524
524
|
});
|
|
525
525
|
});
|
|
526
|
-
}),
|
|
527
|
-
var
|
|
526
|
+
}), ve = async (b = "options") => {
|
|
527
|
+
var r;
|
|
528
528
|
try {
|
|
529
|
-
const _ = await ((
|
|
529
|
+
const _ = await ((r = t.value) == null ? void 0 : r.getDicts(o.formInfo));
|
|
530
530
|
if (typeof _ == "string")
|
|
531
|
-
T.value = [{ label: _, value:
|
|
531
|
+
T.value = [{ label: _, value: f.value }];
|
|
532
532
|
else {
|
|
533
|
-
const
|
|
533
|
+
const p = _ == null ? void 0 : _.map((a, v) => ({
|
|
534
534
|
...a,
|
|
535
|
-
value: a.value ?? a.label ??
|
|
535
|
+
value: a.value ?? a.label ?? v,
|
|
536
536
|
label: a.label || "未知选项"
|
|
537
537
|
}));
|
|
538
|
-
T.value =
|
|
538
|
+
T.value = p || [];
|
|
539
539
|
}
|
|
540
540
|
} catch (_) {
|
|
541
541
|
throw console.error("获取选项失败:", _), _;
|
|
542
542
|
}
|
|
543
|
-
},
|
|
544
|
-
var b,
|
|
545
|
-
t.value.noSearch !== !0 &&
|
|
546
|
-
},
|
|
547
|
-
b.preventDefault(), b.stopPropagation(),
|
|
548
|
-
}, ie = (b) => {
|
|
549
|
-
k.value = !0;
|
|
543
|
+
}, ge = () => {
|
|
544
|
+
var b, r;
|
|
545
|
+
t.value.noSearch !== !0 && o.t === "q" && ((r = (b = E.value) == null ? void 0 : b.table) == null || r.load());
|
|
546
|
+
}, be = (b) => {
|
|
547
|
+
b.preventDefault(), b.stopPropagation(), f.value = "";
|
|
550
548
|
}, de = (b) => {
|
|
549
|
+
k.value = !0;
|
|
550
|
+
}, fe = (b) => {
|
|
551
551
|
b.preventDefault(), b.stopPropagation(), k.value = !0;
|
|
552
|
-
}, ne =
|
|
553
|
-
|
|
554
|
-
var _,
|
|
555
|
-
t.value && t.value["remote-method"] && (
|
|
556
|
-
const b = (s,
|
|
557
|
-
typeof t.value.getDicts == "function" &&
|
|
558
|
-
console.error(`Failed to load ${
|
|
552
|
+
}, ne = le(null);
|
|
553
|
+
ut(async () => {
|
|
554
|
+
var _, p, a, v, g;
|
|
555
|
+
t.value && t.value["remote-method"] && (re.value["remote-method"] = J), (p = (_ = E.value[e.value]) == null ? void 0 : _.options) != null && p.length && (T.value = E.value[e.value].options);
|
|
556
|
+
const b = (s, M = "options", C = E.value[e.value]) => {
|
|
557
|
+
typeof t.value.getDicts == "function" && ve(M).catch((R) => {
|
|
558
|
+
console.error(`Failed to load ${M} for ${s}:`, R);
|
|
559
559
|
});
|
|
560
560
|
};
|
|
561
|
-
if (["radio", "radio-button", "checkbox-group", "checkbox-group-button", "select", "cascader"].includes(
|
|
561
|
+
if (["radio", "radio-button", "checkbox-group", "checkbox-group-button", "select", "cascader"].includes(i.value) && b(i.value), i.value === he.TREESELECT && await (async () => {
|
|
562
562
|
try {
|
|
563
|
-
typeof t.value.getDicts == "function" ? F.value = await t.value.getDicts(
|
|
564
|
-
} catch (
|
|
565
|
-
console.error("Failed to load data for tree-select:",
|
|
563
|
+
typeof t.value.getDicts == "function" ? F.value = await t.value.getDicts(o.formInfo) : F.value = T.value;
|
|
564
|
+
} catch (M) {
|
|
565
|
+
console.error("Failed to load data for tree-select:", M);
|
|
566
566
|
}
|
|
567
|
-
})(),
|
|
568
|
-
let s = t.value.type ||
|
|
569
|
-
(s === void 0 ||
|
|
570
|
-
var C,
|
|
571
|
-
|
|
567
|
+
})(), o.t == "q") {
|
|
568
|
+
let s = t.value.type || i.value;
|
|
569
|
+
(s === void 0 || i.value === "input" || s == he.NUMBER || s == he.EMAIL || s == "url" || s == "text") && t.value.onKeyup == null && (t.value.onKeyup = (M) => {
|
|
570
|
+
var C, R;
|
|
571
|
+
(M.keyCode === 13 || M.key === "Enter") && ((R = (C = E.value) == null ? void 0 : C.table) == null || R.load());
|
|
572
572
|
}), [
|
|
573
573
|
"radio",
|
|
574
574
|
"switch",
|
|
@@ -585,84 +585,84 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
585
585
|
"datetime",
|
|
586
586
|
"datetimerange",
|
|
587
587
|
"week"
|
|
588
|
-
].includes(s) && t.value.onChange === void 0 && (t.value.onChange = (
|
|
589
|
-
var C,
|
|
590
|
-
(
|
|
588
|
+
].includes(s) && t.value.onChange === void 0 && (t.value.onChange = (M) => {
|
|
589
|
+
var C, R;
|
|
590
|
+
(R = (C = E.value) == null ? void 0 : C.table) == null || R.load();
|
|
591
591
|
});
|
|
592
592
|
}
|
|
593
|
-
|
|
593
|
+
i.value == "image" && (t.value.width && ((a = ne.value) != null && a.$el) && ne.value.$el.style.setProperty("--up-width", typeof t.value.width == "number" ? t.value.width + "px" : t.value.width), t.value.height && ((v = ne.value) != null && v.$el) && ne.value.$el.style.setProperty("--up-height", typeof t.value.height == "number" ? t.value.height + "px" : t.value.height), t.value.fontSize && ((g = ne.value) != null && g.$el) && ne.value.$el.style.setProperty("--up-font-size", typeof t.value.fontSize == "number" ? t.value.fontSize + "px" : t.value.fontSize));
|
|
594
594
|
});
|
|
595
|
-
const
|
|
595
|
+
const ae = Ze(() => {
|
|
596
596
|
var b;
|
|
597
|
-
return t.value["file-list"] && t.value["file-list"].length ? (b = t.value["file-list"]) == null ? void 0 : b.map((
|
|
597
|
+
return t.value["file-list"] && t.value["file-list"].length ? (b = t.value["file-list"]) == null ? void 0 : b.map((r) => r == null ? void 0 : r.url) : [f.value];
|
|
598
598
|
});
|
|
599
|
-
return (b,
|
|
600
|
-
var
|
|
601
|
-
const _ =
|
|
602
|
-
return
|
|
603
|
-
|
|
604
|
-
k.value ? (
|
|
599
|
+
return (b, r) => {
|
|
600
|
+
var N, P, te, Ee, Ce, Ie;
|
|
601
|
+
const _ = I("el-image-viewer"), p = I("el-radio"), a = I("el-radio-group"), v = I("el-radio-button"), g = I("el-checkbox"), s = I("el-checkbox-group"), M = I("el-checkbox-button"), C = I("g-select-option"), R = I("el-option"), G = I("el-select"), q = I("el-tree-select"), A = I("el-time-picker"), ue = I("el-time-select"), _e = I("el-date-picker"), ke = I("el-color-picker"), Se = I("el-rate"), Fe = I("el-slider"), we = I("el-switch"), Te = I("el-transfer"), Re = I("el-cascader"), Le = I("el-icon"), nt = I("el-image"), tt = I("el-tooltip"), st = I("el-upload"), it = I("el-autocomplete"), dt = I("el-input-number"), lt = I("el-input"), l = I("el-link"), u = I("el-text"), m = I("el-avatar"), V = I("el-tag");
|
|
602
|
+
return n(), x(W, null, [
|
|
603
|
+
Q("div", null, [
|
|
604
|
+
k.value ? (n(), D(_, {
|
|
605
605
|
key: 0,
|
|
606
606
|
teleported: !0,
|
|
607
|
-
"url-list":
|
|
608
|
-
onClose:
|
|
609
|
-
}, null, 8, ["url-list"])) :
|
|
607
|
+
"url-list": ae.value,
|
|
608
|
+
onClose: r[0] || (r[0] = (c) => k.value = !1)
|
|
609
|
+
}, null, 8, ["url-list"])) : pe("", !0)
|
|
610
610
|
]),
|
|
611
|
-
|
|
612
|
-
|
|
611
|
+
Q("div", rl, [
|
|
612
|
+
i.value == L(he).RADIO ? (n(), D(a, S({
|
|
613
613
|
key: 0,
|
|
614
|
-
modelValue:
|
|
615
|
-
"onUpdate:modelValue":
|
|
614
|
+
modelValue: f.value,
|
|
615
|
+
"onUpdate:modelValue": r[1] || (r[1] = (c) => f.value = c)
|
|
616
616
|
}, t.value), {
|
|
617
617
|
default: y(() => [
|
|
618
|
-
h(b.$slots, `${
|
|
619
|
-
(
|
|
618
|
+
h(b.$slots, `${o.t}-${e.value}`, { data: t.value }, () => [
|
|
619
|
+
(n(!0), x(W, null, U(T.value, (c) => (n(), D(p, S({ ref_for: !0 }, c), {
|
|
620
620
|
default: y(() => [
|
|
621
|
-
h(b.$slots, `${
|
|
621
|
+
h(b.$slots, `${o.t}-${e.value}-options`, { option: c }, void 0, !0)
|
|
622
622
|
]),
|
|
623
623
|
_: 2
|
|
624
624
|
}, 1040))), 256))
|
|
625
625
|
], !0)
|
|
626
626
|
]),
|
|
627
627
|
_: 3
|
|
628
|
-
}, 16, ["modelValue"])) :
|
|
628
|
+
}, 16, ["modelValue"])) : i.value == L(he).RADIOBUTTON ? (n(), D(a, S({
|
|
629
629
|
key: 1,
|
|
630
|
-
modelValue:
|
|
631
|
-
"onUpdate:modelValue":
|
|
630
|
+
modelValue: f.value,
|
|
631
|
+
"onUpdate:modelValue": r[2] || (r[2] = (c) => f.value = c)
|
|
632
632
|
}, t.value), {
|
|
633
633
|
default: y(() => [
|
|
634
|
-
h(b.$slots, `${
|
|
635
|
-
(
|
|
634
|
+
h(b.$slots, `${o.t}-${e.value}`, { data: t.value }, () => [
|
|
635
|
+
(n(!0), x(W, null, U(T.value, (c) => (n(), D(v, S({ ref_for: !0 }, c), {
|
|
636
636
|
default: y(() => [
|
|
637
|
-
h(b.$slots, `${
|
|
637
|
+
h(b.$slots, `${o.t}-${e.value}-options`, { option: c }, void 0, !0)
|
|
638
638
|
]),
|
|
639
639
|
_: 2
|
|
640
640
|
}, 1040))), 256))
|
|
641
641
|
], !0)
|
|
642
642
|
]),
|
|
643
643
|
_: 3
|
|
644
|
-
}, 16, ["modelValue"])) :
|
|
644
|
+
}, 16, ["modelValue"])) : i.value == L(he).CHECKBOX ? (n(), D(g, S({
|
|
645
645
|
key: 2,
|
|
646
|
-
modelValue:
|
|
647
|
-
"onUpdate:modelValue":
|
|
646
|
+
modelValue: f.value,
|
|
647
|
+
"onUpdate:modelValue": r[3] || (r[3] = (c) => f.value = c)
|
|
648
648
|
}, t.value), {
|
|
649
649
|
default: y(() => [
|
|
650
|
-
h(b.$slots, `${
|
|
651
|
-
|
|
650
|
+
h(b.$slots, `${o.t}-${e.value}`, { data: t.value }, () => [
|
|
651
|
+
r[27] || (r[27] = Me(ye(" ")))
|
|
652
652
|
], !0)
|
|
653
653
|
]),
|
|
654
654
|
_: 3
|
|
655
|
-
}, 16, ["modelValue"])) :
|
|
655
|
+
}, 16, ["modelValue"])) : i.value == L(he).CHECKBOXGROUP ? (n(), D(s, S({
|
|
656
656
|
key: 3,
|
|
657
|
-
modelValue:
|
|
658
|
-
"onUpdate:modelValue":
|
|
657
|
+
modelValue: f.value,
|
|
658
|
+
"onUpdate:modelValue": r[4] || (r[4] = (c) => f.value = c)
|
|
659
659
|
}, t.value), {
|
|
660
660
|
default: y(() => [
|
|
661
|
-
h(b.$slots, `${
|
|
662
|
-
(
|
|
661
|
+
h(b.$slots, `${o.t}-${e.value}`, { data: t.value }, () => [
|
|
662
|
+
(n(!0), x(W, null, U(T.value, (c) => (n(), D(g, S({ ref_for: !0 }, c), {
|
|
663
663
|
default: y(() => [
|
|
664
|
-
h(b.$slots, `${
|
|
665
|
-
|
|
664
|
+
h(b.$slots, `${o.t}-${e.value}-options`, { option: c }, () => [
|
|
665
|
+
Me(ye(c.label), 1)
|
|
666
666
|
], !0)
|
|
667
667
|
]),
|
|
668
668
|
_: 2
|
|
@@ -670,130 +670,130 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
670
670
|
], !0)
|
|
671
671
|
]),
|
|
672
672
|
_: 3
|
|
673
|
-
}, 16, ["modelValue"])) :
|
|
673
|
+
}, 16, ["modelValue"])) : i.value == L(he).CHECKBOXGROUPBUTTON ? (n(), D(s, S({
|
|
674
674
|
key: 4,
|
|
675
|
-
modelValue:
|
|
676
|
-
"onUpdate:modelValue":
|
|
675
|
+
modelValue: f.value,
|
|
676
|
+
"onUpdate:modelValue": r[5] || (r[5] = (c) => f.value = c)
|
|
677
677
|
}, t.value), {
|
|
678
678
|
default: y(() => [
|
|
679
|
-
h(b.$slots, `${
|
|
680
|
-
(
|
|
679
|
+
h(b.$slots, `${o.t}-${e.value}`, { data: t.value }, () => [
|
|
680
|
+
(n(!0), x(W, null, U(T.value, (c) => (n(), D(M, S({ ref_for: !0 }, c), {
|
|
681
681
|
default: y(() => [
|
|
682
|
-
h(b.$slots, `${
|
|
682
|
+
h(b.$slots, `${o.t}-${e.value}-options`, { option: c }, void 0, !0)
|
|
683
683
|
]),
|
|
684
684
|
_: 2
|
|
685
685
|
}, 1040))), 256))
|
|
686
686
|
], !0)
|
|
687
687
|
]),
|
|
688
688
|
_: 3
|
|
689
|
-
}, 16, ["modelValue"])) :
|
|
689
|
+
}, 16, ["modelValue"])) : i.value === L(he).SELECT ? (n(), D(G, S({
|
|
690
690
|
key: 5,
|
|
691
|
-
modelValue:
|
|
692
|
-
"onUpdate:modelValue":
|
|
691
|
+
modelValue: f.value,
|
|
692
|
+
"onUpdate:modelValue": r[6] || (r[6] = (c) => f.value = c),
|
|
693
693
|
placeholder: E.value[e.value].label,
|
|
694
694
|
clearable: !0,
|
|
695
|
-
onClear:
|
|
696
|
-
|
|
695
|
+
onClear: r[7] || (r[7] = () => {
|
|
696
|
+
o.t == "q" && E.value.table.load();
|
|
697
697
|
})
|
|
698
|
-
},
|
|
698
|
+
}, re.value), me({
|
|
699
699
|
default: y(() => [
|
|
700
|
-
h(b.$slots, `${
|
|
701
|
-
(
|
|
702
|
-
key:
|
|
700
|
+
h(b.$slots, `${o.t}-${e.value}`, { options: T.value }, () => [
|
|
701
|
+
(n(!0), x(W, null, U(T.value, (c) => (n(), x(W, {
|
|
702
|
+
key: c.value
|
|
703
703
|
}, [
|
|
704
|
-
|
|
705
|
-
onClick: (
|
|
706
|
-
|
|
704
|
+
Z(R, S({ ref_for: !0 }, L(Ve)(c, (X) => X != "children"), {
|
|
705
|
+
onClick: (X) => {
|
|
706
|
+
re.value.change && re.value.change(c), ge();
|
|
707
707
|
}
|
|
708
708
|
}), {
|
|
709
709
|
default: y(() => {
|
|
710
|
-
var
|
|
710
|
+
var X;
|
|
711
711
|
return [
|
|
712
|
-
(
|
|
712
|
+
(X = t.value) != null && X.columns ? h(b.$slots, `${o.t}-${e.value}-options`, {
|
|
713
713
|
key: 0,
|
|
714
|
-
option:
|
|
714
|
+
option: c
|
|
715
715
|
}, () => {
|
|
716
|
-
var
|
|
716
|
+
var ce;
|
|
717
717
|
return [
|
|
718
|
-
|
|
719
|
-
columns: (
|
|
720
|
-
data:
|
|
721
|
-
t:
|
|
722
|
-
},
|
|
723
|
-
|
|
724
|
-
name:
|
|
725
|
-
fn: y((
|
|
726
|
-
h(b.$slots,
|
|
727
|
-
option:
|
|
728
|
-
data:
|
|
718
|
+
Z(C, {
|
|
719
|
+
columns: (ce = t.value) == null ? void 0 : ce.columns,
|
|
720
|
+
data: c,
|
|
721
|
+
t: o.t
|
|
722
|
+
}, me({ _: 2 }, [
|
|
723
|
+
U(b.$slots, (Ye, Ke) => ({
|
|
724
|
+
name: Ke,
|
|
725
|
+
fn: y((Qe) => [
|
|
726
|
+
h(b.$slots, Ke, {
|
|
727
|
+
option: c,
|
|
728
|
+
data: Qe
|
|
729
729
|
}, void 0, !0)
|
|
730
730
|
])
|
|
731
731
|
}))
|
|
732
732
|
]), 1032, ["columns", "data", "t"])
|
|
733
733
|
];
|
|
734
|
-
}, !0) :
|
|
734
|
+
}, !0) : pe("", !0)
|
|
735
735
|
];
|
|
736
736
|
}),
|
|
737
737
|
_: 2
|
|
738
738
|
}, 1040, ["onClick"]),
|
|
739
|
-
|
|
739
|
+
c.children && c.children.length ? (n(!0), x(W, { key: 0 }, U(c.children, (X) => (n(), D(R, S({
|
|
740
740
|
style: { "margin-left": "20px" },
|
|
741
|
-
key:
|
|
741
|
+
key: X.value,
|
|
742
742
|
ref_for: !0
|
|
743
|
-
}, L(
|
|
744
|
-
onClick: (
|
|
745
|
-
|
|
743
|
+
}, L(Ve)(X, (ce) => ce != "children"), {
|
|
744
|
+
onClick: (ce) => {
|
|
745
|
+
re.value.change && re.value.change(X), ge();
|
|
746
746
|
}
|
|
747
747
|
}), {
|
|
748
748
|
default: y(() => {
|
|
749
|
-
var
|
|
749
|
+
var ce;
|
|
750
750
|
return [
|
|
751
|
-
(
|
|
751
|
+
(ce = t.value) != null && ce.columns ? h(b.$slots, `${o.t}-${e.value}-options`, {
|
|
752
752
|
key: 0,
|
|
753
|
-
option:
|
|
753
|
+
option: X
|
|
754
754
|
}, () => {
|
|
755
|
-
var
|
|
755
|
+
var Ye;
|
|
756
756
|
return [
|
|
757
|
-
|
|
758
|
-
columns: (
|
|
759
|
-
data:
|
|
760
|
-
t:
|
|
761
|
-
},
|
|
762
|
-
|
|
763
|
-
name:
|
|
764
|
-
fn: y((
|
|
765
|
-
h(b.$slots,
|
|
766
|
-
option:
|
|
767
|
-
data:
|
|
757
|
+
Z(C, {
|
|
758
|
+
columns: (Ye = t.value) == null ? void 0 : Ye.columns,
|
|
759
|
+
data: X,
|
|
760
|
+
t: o.t
|
|
761
|
+
}, me({ _: 2 }, [
|
|
762
|
+
U(b.$slots, (Ke, Qe) => ({
|
|
763
|
+
name: Qe,
|
|
764
|
+
fn: y((ft) => [
|
|
765
|
+
h(b.$slots, Qe, {
|
|
766
|
+
option: X,
|
|
767
|
+
data: ft
|
|
768
768
|
}, void 0, !0)
|
|
769
769
|
])
|
|
770
770
|
}))
|
|
771
771
|
]), 1032, ["columns", "data", "t"])
|
|
772
772
|
];
|
|
773
|
-
}, !0) :
|
|
773
|
+
}, !0) : pe("", !0)
|
|
774
774
|
];
|
|
775
775
|
}),
|
|
776
776
|
_: 2
|
|
777
|
-
}, 1040, ["onClick"]))), 128)) :
|
|
777
|
+
}, 1040, ["onClick"]))), 128)) : pe("", !0)
|
|
778
778
|
], 64))), 128))
|
|
779
779
|
], !0)
|
|
780
780
|
]),
|
|
781
781
|
_: 2
|
|
782
782
|
}, [
|
|
783
|
-
(
|
|
783
|
+
(N = t.value) != null && N.columns ? {
|
|
784
784
|
name: "header",
|
|
785
785
|
fn: y(() => {
|
|
786
|
-
var
|
|
786
|
+
var c;
|
|
787
787
|
return [
|
|
788
|
-
|
|
789
|
-
columns: (
|
|
788
|
+
Z(C, {
|
|
789
|
+
columns: (c = t.value) == null ? void 0 : c.columns,
|
|
790
790
|
title: !0,
|
|
791
|
-
t:
|
|
792
|
-
},
|
|
793
|
-
|
|
794
|
-
name:
|
|
795
|
-
fn: y((
|
|
796
|
-
h(b.$slots,
|
|
791
|
+
t: o.t
|
|
792
|
+
}, me({ _: 2 }, [
|
|
793
|
+
U(b.$slots, (X, ce) => ({
|
|
794
|
+
name: ce,
|
|
795
|
+
fn: y((Ye) => [
|
|
796
|
+
h(b.$slots, ce, { data: Ye }, void 0, !0)
|
|
797
797
|
])
|
|
798
798
|
}))
|
|
799
799
|
]), 1032, ["columns", "t"])
|
|
@@ -801,168 +801,168 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
801
801
|
}),
|
|
802
802
|
key: "0"
|
|
803
803
|
} : void 0,
|
|
804
|
-
|
|
805
|
-
name:
|
|
806
|
-
fn: y((
|
|
807
|
-
h(b.$slots, `${
|
|
804
|
+
U(H(), (c) => ({
|
|
805
|
+
name: c,
|
|
806
|
+
fn: y((X) => [
|
|
807
|
+
h(b.$slots, `${o.t}-${e.value}-${c}`, { data: X }, void 0, !0)
|
|
808
808
|
])
|
|
809
809
|
}))
|
|
810
|
-
]), 1040, ["modelValue", "placeholder"])) :
|
|
810
|
+
]), 1040, ["modelValue", "placeholder"])) : i.value == L(he).TREESELECT ? (n(), D(q, S({
|
|
811
811
|
key: 6,
|
|
812
|
-
modelValue:
|
|
813
|
-
"onUpdate:modelValue":
|
|
812
|
+
modelValue: f.value,
|
|
813
|
+
"onUpdate:modelValue": r[8] || (r[8] = (c) => f.value = c),
|
|
814
814
|
placeholder: E.value[e.value].label
|
|
815
|
-
}, t.value, { data: F.value }),
|
|
816
|
-
|
|
817
|
-
name:
|
|
818
|
-
fn: y((
|
|
819
|
-
h(b.$slots, `${
|
|
815
|
+
}, t.value, { data: F.value }), me({ _: 2 }, [
|
|
816
|
+
U(H(), (c) => ({
|
|
817
|
+
name: c,
|
|
818
|
+
fn: y((X) => [
|
|
819
|
+
h(b.$slots, `${o.t}-${e.value}-${c}`, { data: X }, void 0, !0)
|
|
820
820
|
])
|
|
821
821
|
}))
|
|
822
|
-
]), 1040, ["modelValue", "placeholder", "data"])) :
|
|
822
|
+
]), 1040, ["modelValue", "placeholder", "data"])) : i.value == L(he).TIME ? (n(), D(A, S({
|
|
823
823
|
key: 7,
|
|
824
|
-
modelValue:
|
|
825
|
-
"onUpdate:modelValue":
|
|
824
|
+
modelValue: f.value,
|
|
825
|
+
"onUpdate:modelValue": r[9] || (r[9] = (c) => f.value = c),
|
|
826
826
|
"arrow-control": ""
|
|
827
827
|
}, t.value, {
|
|
828
828
|
placeholder: E.value[e.value].label
|
|
829
|
-
}), null, 16, ["modelValue", "placeholder"])) :
|
|
829
|
+
}), null, 16, ["modelValue", "placeholder"])) : i.value == L(he).TIMESELECT ? (n(), D(ue, S({
|
|
830
830
|
key: 8,
|
|
831
|
-
modelValue:
|
|
832
|
-
"onUpdate:modelValue":
|
|
831
|
+
modelValue: f.value,
|
|
832
|
+
"onUpdate:modelValue": r[10] || (r[10] = (c) => f.value = c),
|
|
833
833
|
start: "06:30",
|
|
834
834
|
step: "00:15",
|
|
835
835
|
end: "23:30",
|
|
836
836
|
placeholder: E.value[e.value].label
|
|
837
|
-
}, t.value), null, 16, ["modelValue", "placeholder"])) :
|
|
837
|
+
}, t.value), null, 16, ["modelValue", "placeholder"])) : Y(i.value) ? (n(), D(_e, S({
|
|
838
838
|
key: 9,
|
|
839
|
-
modelValue:
|
|
840
|
-
"onUpdate:modelValue":
|
|
841
|
-
type:
|
|
839
|
+
modelValue: f.value,
|
|
840
|
+
"onUpdate:modelValue": r[11] || (r[11] = (c) => f.value = c),
|
|
841
|
+
type: i.value,
|
|
842
842
|
placeholder: E.value[e.value].label,
|
|
843
|
-
"value-format":
|
|
844
|
-
}, t.value),
|
|
845
|
-
|
|
846
|
-
name:
|
|
847
|
-
fn: y((
|
|
848
|
-
h(b.$slots, `${
|
|
843
|
+
"value-format": ie(i.value)
|
|
844
|
+
}, t.value), me({ _: 2 }, [
|
|
845
|
+
U(H(), (c) => ({
|
|
846
|
+
name: c,
|
|
847
|
+
fn: y((X) => [
|
|
848
|
+
h(b.$slots, `${o.t}-${e.value}-${c}`, { data: X }, void 0, !0)
|
|
849
849
|
])
|
|
850
850
|
}))
|
|
851
|
-
]), 1040, ["modelValue", "type", "placeholder", "value-format"])) :
|
|
851
|
+
]), 1040, ["modelValue", "type", "placeholder", "value-format"])) : i.value == L(he).COLOR ? (n(), D(ke, S({
|
|
852
852
|
key: 10,
|
|
853
|
-
modelValue:
|
|
854
|
-
"onUpdate:modelValue":
|
|
855
|
-
}, t.value), null, 16, ["modelValue"])) :
|
|
853
|
+
modelValue: f.value,
|
|
854
|
+
"onUpdate:modelValue": r[12] || (r[12] = (c) => f.value = c)
|
|
855
|
+
}, t.value), null, 16, ["modelValue"])) : i.value == L(he).RATE ? (n(), D(Se, S({
|
|
856
856
|
key: 11,
|
|
857
|
-
modelValue:
|
|
858
|
-
"onUpdate:modelValue":
|
|
859
|
-
}, t.value), null, 16, ["modelValue"])) :
|
|
857
|
+
modelValue: f.value,
|
|
858
|
+
"onUpdate:modelValue": r[13] || (r[13] = (c) => f.value = c)
|
|
859
|
+
}, t.value), null, 16, ["modelValue"])) : i.value == L(he).SLIDER ? (n(), D(Fe, S({
|
|
860
860
|
key: 12,
|
|
861
|
-
modelValue:
|
|
862
|
-
"onUpdate:modelValue":
|
|
863
|
-
}, t.value), null, 16, ["modelValue"])) :
|
|
861
|
+
modelValue: f.value,
|
|
862
|
+
"onUpdate:modelValue": r[14] || (r[14] = (c) => f.value = c)
|
|
863
|
+
}, t.value), null, 16, ["modelValue"])) : i.value == L(he).SWITCH ? (n(), D(we, S({
|
|
864
864
|
key: 13,
|
|
865
|
-
modelValue:
|
|
866
|
-
"onUpdate:modelValue":
|
|
867
|
-
}, t.value),
|
|
868
|
-
|
|
869
|
-
name:
|
|
870
|
-
fn: y((
|
|
871
|
-
h(b.$slots, `${
|
|
865
|
+
modelValue: f.value,
|
|
866
|
+
"onUpdate:modelValue": r[15] || (r[15] = (c) => f.value = c)
|
|
867
|
+
}, t.value), me({ _: 2 }, [
|
|
868
|
+
U(H(), (c) => ({
|
|
869
|
+
name: c,
|
|
870
|
+
fn: y((X) => [
|
|
871
|
+
h(b.$slots, `${o.t}-${e.value}-${c}`, { data: X }, void 0, !0)
|
|
872
872
|
])
|
|
873
873
|
}))
|
|
874
|
-
]), 1040, ["modelValue"])) :
|
|
874
|
+
]), 1040, ["modelValue"])) : i.value == L(he).TRANSFER ? (n(), D(Te, S({
|
|
875
875
|
key: 14,
|
|
876
|
-
modelValue:
|
|
877
|
-
"onUpdate:modelValue":
|
|
878
|
-
}, t.value),
|
|
879
|
-
|
|
880
|
-
name:
|
|
881
|
-
fn: y((
|
|
882
|
-
h(b.$slots, `${
|
|
876
|
+
modelValue: f.value,
|
|
877
|
+
"onUpdate:modelValue": r[16] || (r[16] = (c) => f.value = c)
|
|
878
|
+
}, t.value), me({ _: 2 }, [
|
|
879
|
+
U(H(), (c) => ({
|
|
880
|
+
name: c,
|
|
881
|
+
fn: y((X) => [
|
|
882
|
+
h(b.$slots, `${o.t}-${e.value}-${c}`, { data: X }, void 0, !0)
|
|
883
883
|
])
|
|
884
884
|
}))
|
|
885
|
-
]), 1040, ["modelValue"])) :
|
|
885
|
+
]), 1040, ["modelValue"])) : i.value == L(he).CASCADER ? (n(), D(Re, S({
|
|
886
886
|
key: 15,
|
|
887
|
-
modelValue:
|
|
888
|
-
"onUpdate:modelValue":
|
|
889
|
-
}, t.value, { options: T.value }),
|
|
890
|
-
|
|
891
|
-
name:
|
|
892
|
-
fn: y((
|
|
893
|
-
h(b.$slots, `${
|
|
887
|
+
modelValue: f.value,
|
|
888
|
+
"onUpdate:modelValue": r[17] || (r[17] = (c) => f.value = c)
|
|
889
|
+
}, t.value, { options: T.value }), me({ _: 2 }, [
|
|
890
|
+
U(H(), (c) => ({
|
|
891
|
+
name: c,
|
|
892
|
+
fn: y((X) => [
|
|
893
|
+
h(b.$slots, `${o.t}-${e.value}-${c}`, { data: X }, void 0, !0)
|
|
894
894
|
])
|
|
895
895
|
}))
|
|
896
|
-
]), 1040, ["modelValue", "options"])) :
|
|
896
|
+
]), 1040, ["modelValue", "options"])) : i.value == L(he).IMAGE ? (n(), D(st, S({
|
|
897
897
|
key: 16,
|
|
898
898
|
"file-list": t.value["file-list"],
|
|
899
|
-
"onUpdate:fileList":
|
|
899
|
+
"onUpdate:fileList": r[21] || (r[21] = (c) => t.value["file-list"] = c),
|
|
900
900
|
"list-type": "picture-card",
|
|
901
901
|
class: "custom-upload",
|
|
902
|
-
"on-preview":
|
|
902
|
+
"on-preview": de
|
|
903
903
|
}, { ...ee.value, ...t.value }, {
|
|
904
904
|
ref_key: "uploadRef",
|
|
905
905
|
ref: ne
|
|
906
|
-
}),
|
|
906
|
+
}), me({
|
|
907
907
|
default: y(() => {
|
|
908
|
-
var
|
|
908
|
+
var c;
|
|
909
909
|
return [
|
|
910
|
-
|
|
910
|
+
f.value ? (n(), x("div", {
|
|
911
911
|
key: 1,
|
|
912
|
-
onClick:
|
|
912
|
+
onClick: r[20] || (r[20] = (X) => X.stopPropagation()),
|
|
913
913
|
style: { display: "flex", width: "var(--up-width)", height: "var(--up-height)", position: "relative", "align-items": "center", "justify-content": "center", "box-sizing": "border-box" }
|
|
914
914
|
}, [
|
|
915
|
-
|
|
916
|
-
|
|
915
|
+
Q("div", ol, [
|
|
916
|
+
Z(nt, S({
|
|
917
917
|
style: { width: "var(--up-width)", height: "var(--up-height)" },
|
|
918
|
-
src:
|
|
919
|
-
}, { fit: "cover", lazy: !0, ...(
|
|
920
|
-
|
|
921
|
-
name:
|
|
922
|
-
fn: y((
|
|
923
|
-
h(b.$slots, `${
|
|
918
|
+
src: f.value
|
|
919
|
+
}, { fit: "cover", lazy: !0, ...(c = t.value) == null ? void 0 : c.img }), me({ _: 2 }, [
|
|
920
|
+
U(H(), (X, ce) => ({
|
|
921
|
+
name: X,
|
|
922
|
+
fn: y((Ye) => [
|
|
923
|
+
h(b.$slots, `${o.t}-${e.value}-${X}`, { data: Ye }, void 0, !0)
|
|
924
924
|
])
|
|
925
925
|
}))
|
|
926
926
|
]), 1040, ["src"])
|
|
927
927
|
]),
|
|
928
|
-
|
|
928
|
+
Q("div", {
|
|
929
929
|
style: { display: "flex", width: "var(--up-width)", height: "var(--up-height)", position: "absolute", "align-items": "center", "justify-content": "center" },
|
|
930
|
-
onMouseenter:
|
|
931
|
-
onMouseleave:
|
|
930
|
+
onMouseenter: r[18] || (r[18] = (X) => w.value = !0),
|
|
931
|
+
onMouseleave: r[19] || (r[19] = (X) => w.value = !1),
|
|
932
932
|
class: "up-view"
|
|
933
933
|
}, [
|
|
934
|
-
|
|
934
|
+
w.value ? (n(), D(tt, {
|
|
935
935
|
key: 0,
|
|
936
936
|
content: "查看大图",
|
|
937
937
|
placement: "top"
|
|
938
938
|
}, {
|
|
939
939
|
default: y(() => [
|
|
940
|
-
|
|
940
|
+
Z(L(Gt), {
|
|
941
941
|
style: { width: "1.5em", height: "1.5em", "margin-right": "12px" },
|
|
942
942
|
color: "white",
|
|
943
|
-
onClick:
|
|
943
|
+
onClick: fe
|
|
944
944
|
})
|
|
945
945
|
]),
|
|
946
946
|
_: 1
|
|
947
|
-
})) :
|
|
948
|
-
ee.value.showDel &&
|
|
947
|
+
})) : pe("", !0),
|
|
948
|
+
ee.value.showDel && w.value ? (n(), D(tt, {
|
|
949
949
|
key: 1,
|
|
950
950
|
content: "删除",
|
|
951
951
|
placement: "top"
|
|
952
952
|
}, {
|
|
953
953
|
default: y(() => [
|
|
954
|
-
|
|
954
|
+
Z(L(Qt), {
|
|
955
955
|
style: { width: "1.5em", height: "1.5em" },
|
|
956
956
|
color: "white",
|
|
957
|
-
onClick:
|
|
957
|
+
onClick: be
|
|
958
958
|
})
|
|
959
959
|
]),
|
|
960
960
|
_: 1
|
|
961
|
-
})) :
|
|
961
|
+
})) : pe("", !0)
|
|
962
962
|
], 32)
|
|
963
|
-
])) : (
|
|
963
|
+
])) : (n(), D(Le, { key: 0 }, {
|
|
964
964
|
default: y(() => [
|
|
965
|
-
|
|
965
|
+
Z(L(Xt))
|
|
966
966
|
]),
|
|
967
967
|
_: 1
|
|
968
968
|
}))
|
|
@@ -970,103 +970,118 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
970
970
|
}),
|
|
971
971
|
_: 2
|
|
972
972
|
}, [
|
|
973
|
-
|
|
974
|
-
name:
|
|
975
|
-
fn: y((
|
|
976
|
-
h(b.$slots, `${
|
|
973
|
+
U(H(), (c, X) => ({
|
|
974
|
+
name: c,
|
|
975
|
+
fn: y((ce) => [
|
|
976
|
+
h(b.$slots, `${o.t}-${e.value}-${c}`, { data: ce }, void 0, !0)
|
|
977
977
|
])
|
|
978
978
|
}))
|
|
979
|
-
]), 1040, ["file-list"])) :
|
|
979
|
+
]), 1040, ["file-list"])) : i.value == L(he).AUTOCOMPLETE ? (n(), D(it, S({
|
|
980
980
|
key: 17,
|
|
981
|
-
modelValue:
|
|
982
|
-
"onUpdate:modelValue":
|
|
981
|
+
modelValue: f.value,
|
|
982
|
+
"onUpdate:modelValue": r[22] || (r[22] = (c) => f.value = c)
|
|
983
983
|
}, t.value, {
|
|
984
984
|
placeholder: E.value[e.value].label
|
|
985
|
-
}),
|
|
986
|
-
|
|
987
|
-
name:
|
|
988
|
-
fn: y((
|
|
989
|
-
h(b.$slots, `${
|
|
985
|
+
}), me({ _: 2 }, [
|
|
986
|
+
U(H(), (c, X) => ({
|
|
987
|
+
name: c,
|
|
988
|
+
fn: y((ce) => [
|
|
989
|
+
h(b.$slots, `${o.t}-${e.value}-${c}`, { data: ce }, void 0, !0)
|
|
990
990
|
])
|
|
991
991
|
}))
|
|
992
|
-
]), 1040, ["modelValue", "placeholder"])) :
|
|
992
|
+
]), 1040, ["modelValue", "placeholder"])) : i.value == L(he).INPUTNUMBER ? (n(), D(dt, S({
|
|
993
993
|
key: 18,
|
|
994
|
-
modelValue:
|
|
995
|
-
"onUpdate:modelValue":
|
|
994
|
+
modelValue: f.value,
|
|
995
|
+
"onUpdate:modelValue": r[23] || (r[23] = (c) => f.value = c),
|
|
996
996
|
min: 0,
|
|
997
997
|
max: 1e8,
|
|
998
998
|
placeholder: E.value[e.value].label
|
|
999
|
-
}, t.value),
|
|
1000
|
-
|
|
1001
|
-
name:
|
|
1002
|
-
fn: y((
|
|
1003
|
-
h(b.$slots, `${
|
|
999
|
+
}, t.value), me({ _: 2 }, [
|
|
1000
|
+
U(H(), (c, X) => ({
|
|
1001
|
+
name: c,
|
|
1002
|
+
fn: y((ce) => [
|
|
1003
|
+
h(b.$slots, `${o.t}-${e.value}-${c}`, { data: ce }, void 0, !0)
|
|
1004
1004
|
])
|
|
1005
1005
|
}))
|
|
1006
|
-
]), 1040, ["modelValue", "placeholder"])) :
|
|
1007
|
-
|
|
1008
|
-
modelValue:
|
|
1009
|
-
"onUpdate:modelValue":
|
|
1006
|
+
]), 1040, ["modelValue", "placeholder"])) : i.value == L(he).MONEY ? (n(), x("div", ul, [
|
|
1007
|
+
Z(lt, S({
|
|
1008
|
+
modelValue: f.value,
|
|
1009
|
+
"onUpdate:modelValue": r[24] || (r[24] = (c) => f.value = c),
|
|
1010
1010
|
placeholder: E.value[e.value].label,
|
|
1011
|
-
type: L(
|
|
1012
|
-
maxlength: ((
|
|
1013
|
-
}, { ...t.value, type:
|
|
1011
|
+
type: L(he).NUMBER,
|
|
1012
|
+
maxlength: ((P = t.value) == null ? void 0 : P.max) || 25
|
|
1013
|
+
}, { ...t.value, type: i.value }), me({
|
|
1014
1014
|
suffix: y(() => [
|
|
1015
|
-
|
|
1016
|
-
title: L(
|
|
1015
|
+
Q("div", {
|
|
1016
|
+
title: L(Et)(f.value),
|
|
1017
1017
|
style: { "font-size": "10px", display: "block", width: "80px", "text-align": "right", overflow: "hidden", "text-overflow": "ellipsis" }
|
|
1018
|
-
},
|
|
1018
|
+
}, ye(L(Et)(f.value)), 9, nl)
|
|
1019
1019
|
]),
|
|
1020
1020
|
_: 2
|
|
1021
1021
|
}, [
|
|
1022
|
-
|
|
1023
|
-
name:
|
|
1024
|
-
fn: y((
|
|
1025
|
-
h(b.$slots, `${
|
|
1022
|
+
U(H(), (c, X) => ({
|
|
1023
|
+
name: c,
|
|
1024
|
+
fn: y((ce) => [
|
|
1025
|
+
h(b.$slots, `${o.t}-${e.value}-${c}`, { data: ce }, void 0, !0)
|
|
1026
1026
|
])
|
|
1027
1027
|
}))
|
|
1028
1028
|
]), 1040, ["modelValue", "placeholder", "type", "maxlength"])
|
|
1029
|
-
])) : (
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1029
|
+
])) : (te = i.value) != null && te.startsWith("link") ? (n(), x("div", sl, [
|
|
1030
|
+
Z(l, S(t.value, {
|
|
1031
|
+
type: i.value.replace("link-", ""),
|
|
1032
|
+
innerHTML: O.value || f.value
|
|
1033
|
+
}), null, 16, ["type", "innerHTML"])
|
|
1034
|
+
])) : (Ee = i.value) != null && Ee.startsWith("text") ? (n(), x("div", il, [
|
|
1035
|
+
Z(u, S(t.value, {
|
|
1036
|
+
type: i.value.replace("text-", ""),
|
|
1037
|
+
innerHTML: O.value || f.value
|
|
1038
|
+
}), null, 16, ["type", "innerHTML"])
|
|
1039
|
+
])) : i.value == "avatar" ? (n(), x("div", dl, [
|
|
1040
|
+
O.value ? (n(), D(m, gt(S({ key: 0 }, t.value)), {
|
|
1041
|
+
default: y(() => [
|
|
1042
|
+
Q("div", { innerHTML: O.value }, null, 8, fl)
|
|
1043
|
+
]),
|
|
1044
|
+
_: 1
|
|
1045
|
+
}, 16)) : (n(), D(m, gt(S({ key: 1 }, t.value)), null, 16))
|
|
1046
|
+
])) : (Ce = i.value) != null && Ce.startsWith("tag") ? (n(), x("div", cl, [
|
|
1047
|
+
Array.isArray(O.value) && O.value.length > 0 ? (n(!0), x(W, { key: 0 }, U(O.value, (c, X) => (n(), x(W, { key: X }, [
|
|
1048
|
+
typeof c == "object" ? (n(), D(V, S({
|
|
1036
1049
|
key: 0,
|
|
1037
1050
|
ref_for: !0
|
|
1038
|
-
},
|
|
1039
|
-
innerHTML:
|
|
1051
|
+
}, c, {
|
|
1052
|
+
innerHTML: c == null ? void 0 : c.value,
|
|
1040
1053
|
style: { "margin-right": "3px" }
|
|
1041
|
-
}), null, 16, ["innerHTML"])) : (
|
|
1054
|
+
}), null, 16, ["innerHTML"])) : (n(), D(V, S({
|
|
1042
1055
|
key: 1,
|
|
1043
1056
|
ref_for: !0
|
|
1044
1057
|
}, t.value, {
|
|
1045
|
-
|
|
1058
|
+
type: i.value.replace("tag-", ""),
|
|
1059
|
+
innerHTML: c,
|
|
1046
1060
|
style: { "margin-right": "3px" }
|
|
1047
|
-
}), null, 16, ["innerHTML"]))
|
|
1048
|
-
], 64))), 128)) : (
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1061
|
+
}), null, 16, ["type", "innerHTML"]))
|
|
1062
|
+
], 64))), 128)) : (n(), D(V, S({ key: 1 }, t.value, {
|
|
1063
|
+
type: i.value.replace("tag-", ""),
|
|
1064
|
+
innerHTML: O.value || f.value
|
|
1065
|
+
}), null, 16, ["type", "innerHTML"]))
|
|
1066
|
+
])) : i.value == "div" ? (n(), x("div", S({ key: 24 }, t.value, {
|
|
1067
|
+
innerHTML: O.value || f.value
|
|
1068
|
+
}), null, 16, ml)) : i.value == "span" ? (n(), x("span", S({ key: 25 }, t.value, {
|
|
1069
|
+
innerHTML: O.value || f.value
|
|
1070
|
+
}), null, 16, pl)) : (n(), D(lt, S({
|
|
1071
|
+
key: 26,
|
|
1072
|
+
modelValue: f.value,
|
|
1073
|
+
"onUpdate:modelValue": r[25] || (r[25] = (c) => f.value = c),
|
|
1059
1074
|
placeholder: E.value[e.value].label,
|
|
1060
|
-
maxlength: ((
|
|
1075
|
+
maxlength: ((Ie = t.value) == null ? void 0 : Ie.max) || 25,
|
|
1061
1076
|
clearable: !0,
|
|
1062
|
-
onClear:
|
|
1063
|
-
|
|
1077
|
+
onClear: r[26] || (r[26] = () => {
|
|
1078
|
+
o.t == "q" && E.value.table.load();
|
|
1064
1079
|
})
|
|
1065
|
-
}, { ...t.value, type:
|
|
1066
|
-
|
|
1067
|
-
name:
|
|
1068
|
-
fn: y((
|
|
1069
|
-
h(b.$slots, `${
|
|
1080
|
+
}, { ...t.value, type: i.value }), me({ _: 2 }, [
|
|
1081
|
+
U(H(), (c, X) => ({
|
|
1082
|
+
name: c,
|
|
1083
|
+
fn: y((ce) => [
|
|
1084
|
+
h(b.$slots, `${o.t}-${e.value}-${c}`, { data: ce }, void 0, !0)
|
|
1070
1085
|
])
|
|
1071
1086
|
}))
|
|
1072
1087
|
]), 1040, ["modelValue", "placeholder", "maxlength"]))
|
|
@@ -1074,19 +1089,19 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
1074
1089
|
], 64);
|
|
1075
1090
|
};
|
|
1076
1091
|
}
|
|
1077
|
-
}),
|
|
1092
|
+
}), vt = /* @__PURE__ */ Je(vl, [["__scopeId", "data-v-064d63ff"]]), bt = /* @__PURE__ */ Object.assign({
|
|
1078
1093
|
name: "g-form",
|
|
1079
1094
|
inheritAttrs: !1
|
|
1080
1095
|
}, {
|
|
1081
1096
|
__name: "g-form",
|
|
1082
|
-
props: /* @__PURE__ */
|
|
1097
|
+
props: /* @__PURE__ */ ze(["editForm"], {
|
|
1083
1098
|
modelValue: { required: !0 },
|
|
1084
1099
|
modelModifiers: {}
|
|
1085
1100
|
}),
|
|
1086
|
-
emits: /* @__PURE__ */
|
|
1087
|
-
setup(
|
|
1088
|
-
var
|
|
1089
|
-
const t =
|
|
1101
|
+
emits: /* @__PURE__ */ ze(["submit", "reset"], ["update:modelValue"]),
|
|
1102
|
+
setup(d, { expose: f, emit: o }) {
|
|
1103
|
+
var ae, $e, se, b;
|
|
1104
|
+
const t = Pe(d, "modelValue"), e = o, i = le(null), E = kt("options"), F = le({}), T = le(""), k = d, w = {
|
|
1090
1105
|
inline: !0,
|
|
1091
1106
|
type: "hidden",
|
|
1092
1107
|
"scroll-to-error": !0,
|
|
@@ -1096,7 +1111,7 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
1096
1111
|
style: {
|
|
1097
1112
|
display: "flex",
|
|
1098
1113
|
flexWrap: "wrap",
|
|
1099
|
-
...(
|
|
1114
|
+
...(ae = _t()) == null ? void 0 : ae.style
|
|
1100
1115
|
},
|
|
1101
1116
|
// 表单底部属性
|
|
1102
1117
|
footer: {
|
|
@@ -1130,67 +1145,67 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
1130
1145
|
editable: !1
|
|
1131
1146
|
}
|
|
1132
1147
|
};
|
|
1133
|
-
t.value.form =
|
|
1134
|
-
|
|
1148
|
+
t.value.form = xe(
|
|
1149
|
+
w,
|
|
1135
1150
|
E == null ? void 0 : E.form,
|
|
1136
|
-
(
|
|
1151
|
+
($e = t.value) == null ? void 0 : $e.form
|
|
1137
1152
|
);
|
|
1138
|
-
const
|
|
1139
|
-
let
|
|
1140
|
-
for (;
|
|
1141
|
-
if (await
|
|
1142
|
-
|
|
1143
|
-
a ? e("submit",
|
|
1153
|
+
const H = async (r, _) => {
|
|
1154
|
+
let p = 5;
|
|
1155
|
+
for (; p > 0; ) {
|
|
1156
|
+
if (await et(), i.value) {
|
|
1157
|
+
i.value.validate((a, v) => {
|
|
1158
|
+
a ? e("submit", r, _) : console.log("表单验证不通过!", v);
|
|
1144
1159
|
});
|
|
1145
1160
|
return;
|
|
1146
1161
|
}
|
|
1147
|
-
|
|
1162
|
+
p--, await new Promise((a) => setTimeout(a, 50));
|
|
1148
1163
|
}
|
|
1149
1164
|
console.error("表单实例获取失败,请检查组件状态");
|
|
1150
1165
|
}, ee = async () => {
|
|
1151
|
-
let
|
|
1152
|
-
for (;
|
|
1153
|
-
if (await
|
|
1154
|
-
|
|
1166
|
+
let r = 5;
|
|
1167
|
+
for (; r > 0; ) {
|
|
1168
|
+
if (await et(), !i.value) {
|
|
1169
|
+
r--, await new Promise((p) => setTimeout(p, 50));
|
|
1155
1170
|
continue;
|
|
1156
1171
|
}
|
|
1157
1172
|
let _ = !0;
|
|
1158
|
-
if (e("reset", (
|
|
1159
|
-
_ =
|
|
1173
|
+
if (e("reset", (p) => {
|
|
1174
|
+
_ = p;
|
|
1160
1175
|
}), _) {
|
|
1161
|
-
|
|
1176
|
+
i.value.resetFields();
|
|
1162
1177
|
return;
|
|
1163
1178
|
}
|
|
1164
|
-
|
|
1179
|
+
r--, await new Promise((p) => setTimeout(p, 50));
|
|
1165
1180
|
}
|
|
1166
1181
|
console.error("表单实例获取失败,请检查组件状态");
|
|
1167
1182
|
};
|
|
1168
|
-
t.value.form.submit.click =
|
|
1169
|
-
const
|
|
1183
|
+
t.value.form.submit.click = H, t.value.form.reset.click = ee;
|
|
1184
|
+
const O = {
|
|
1170
1185
|
type: "hidden",
|
|
1171
1186
|
labelPosition: "right",
|
|
1172
1187
|
style: {
|
|
1173
1188
|
width: "100%"
|
|
1174
1189
|
}
|
|
1175
1190
|
};
|
|
1176
|
-
t.value.formItems =
|
|
1177
|
-
|
|
1191
|
+
t.value.formItems = xe(
|
|
1192
|
+
O,
|
|
1178
1193
|
E == null ? void 0 : E.formItems,
|
|
1179
1194
|
(se = t == null ? void 0 : t.value) == null ? void 0 : se.formItems
|
|
1180
1195
|
);
|
|
1181
|
-
const
|
|
1196
|
+
const Y = {
|
|
1182
1197
|
span: 12,
|
|
1183
1198
|
offset: 0
|
|
1184
1199
|
};
|
|
1185
|
-
t.value.form.cols =
|
|
1186
|
-
|
|
1200
|
+
t.value.form.cols = xe(
|
|
1201
|
+
Y,
|
|
1187
1202
|
(b = E == null ? void 0 : E.form) == null ? void 0 : b.cols,
|
|
1188
1203
|
t.value.form.cols
|
|
1189
1204
|
);
|
|
1190
|
-
const
|
|
1205
|
+
const ie = (r) => {
|
|
1191
1206
|
let _ = [];
|
|
1192
|
-
if (
|
|
1193
|
-
_ =
|
|
1207
|
+
if (r.rules)
|
|
1208
|
+
_ = r.rules;
|
|
1194
1209
|
else {
|
|
1195
1210
|
const a = { ...{
|
|
1196
1211
|
required: void 0,
|
|
@@ -1200,78 +1215,78 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
1200
1215
|
url: void 0,
|
|
1201
1216
|
pattern: void 0,
|
|
1202
1217
|
validate: void 0
|
|
1203
|
-
}, ...
|
|
1218
|
+
}, ...r };
|
|
1204
1219
|
a.required && _.push({ required: !0, message: `${a.label}不能为空!`, trigger: "blur" }), a.max !== void 0 && a.max !== null && a.max !== "" && (a.min === void 0 || a.min === null || a.min === "") && _.push({
|
|
1205
|
-
validator: (
|
|
1220
|
+
validator: (v, g, s) => {
|
|
1206
1221
|
if (g == null || g === "") return s();
|
|
1207
1222
|
a.type !== "number" && a.type !== "input-number" ? ((g == null ? void 0 : g.toString()) || "").length > Number(a.max) ? s(new Error(`${a.label}长度不能超过${a.max}个字符!`)) : s() : Number(g) > Number(a.max) ? s(new Error(`${a.label}不能大于${a.max}!`)) : s();
|
|
1208
1223
|
}
|
|
1209
1224
|
}), a.min !== void 0 && a.min !== null && a.min !== "" && (a.max === void 0 || a.max === null || a.max === "") && _.push({
|
|
1210
|
-
validator: (
|
|
1225
|
+
validator: (v, g, s) => {
|
|
1211
1226
|
if (g == null || g === "") return s();
|
|
1212
1227
|
a.type !== "number" && a.type !== "input-number" ? Number(a.min) < 1 ? s(new Error(`${a.label}长度最小值${a.min}设置错误!`)) : g.toString().length < Number(a.min) ? s(new Error(`${a.label}长度不能少于${a.min}个字符!`)) : s() : Number(g) < Number(a.min) ? s(new Error(`${a.label}不能小于${a.min}!`)) : s();
|
|
1213
1228
|
}
|
|
1214
1229
|
}), a.min !== void 0 && a.min !== null && a.min !== "" && a.max !== void 0 && a.max !== null && a.max !== "" && _.push({
|
|
1215
|
-
validator: (
|
|
1230
|
+
validator: (v, g, s) => {
|
|
1216
1231
|
if (g == null || g === "") return s();
|
|
1217
|
-
const
|
|
1218
|
-
a.type !== "number" && a.type !== "input-number" ? Number(a.min) < 1 ? s(new Error(`${a.label}长度最小值${a.min}设置错误!`)) : g.toString().length <
|
|
1232
|
+
const M = Number(a.min), C = Number(a.max);
|
|
1233
|
+
a.type !== "number" && a.type !== "input-number" ? Number(a.min) < 1 ? s(new Error(`${a.label}长度最小值${a.min}设置错误!`)) : g.toString().length < M || g.toString().length > C ? s(new Error(`${a.label}长度必须在${M}-${C}个字符之间!`)) : s() : Number(g) < M || g > C ? s(new Error(`${a.label}必须在${M}-${C}之间!`)) : s();
|
|
1219
1234
|
}
|
|
1220
1235
|
}), a.type == "email" && _.push({ type: "email", message: "不是一个正确的邮箱地址!" }), a.type == "url" && _.push({ type: "url", message: "不是一个合正确的URL!" }), a.pattern && _.push({ pattern: a == null ? void 0 : a.pattern, message: (a == null ? void 0 : a.message) || "格式不正确!" }), a.validate && _.push({
|
|
1221
|
-
validator: (
|
|
1236
|
+
validator: (v, g, s) => a.validate(v, g, s)
|
|
1222
1237
|
});
|
|
1223
1238
|
}
|
|
1224
1239
|
return _;
|
|
1225
|
-
},
|
|
1226
|
-
var
|
|
1227
|
-
const
|
|
1240
|
+
}, re = (r, _ = !1) => {
|
|
1241
|
+
var v, g, s, M, C;
|
|
1242
|
+
const p = _ ? r : r == null ? void 0 : r.item, a = typeof (p == null ? void 0 : p.editor) == "function" ? p.editor(F.value, (v = t.value.form) == null ? void 0 : v.modalState) : (p == null ? void 0 : p.editor) || {};
|
|
1228
1243
|
if (((g = t.value.form) == null ? void 0 : g.modalState) === "edit") {
|
|
1229
|
-
const
|
|
1230
|
-
return { ...a, ...
|
|
1244
|
+
const R = typeof (p == null ? void 0 : p.editor) == "object" ? (s = p.editor) == null ? void 0 : s.ep : typeof (p == null ? void 0 : p.editor) == "function" ? a == null ? void 0 : a.ep : {};
|
|
1245
|
+
return { ...a, ...R };
|
|
1231
1246
|
}
|
|
1232
|
-
if (((
|
|
1233
|
-
const
|
|
1234
|
-
return { ...a, ...
|
|
1247
|
+
if (((M = t.value.form) == null ? void 0 : M.modalState) === "add") {
|
|
1248
|
+
const R = typeof (p == null ? void 0 : p.editor) == "object" ? (C = p.editor) == null ? void 0 : C.ap : typeof (p == null ? void 0 : p.editor) == "function" ? a == null ? void 0 : a.ap : {};
|
|
1249
|
+
return { ...a, ...R };
|
|
1235
1250
|
}
|
|
1236
1251
|
return a;
|
|
1237
|
-
},
|
|
1238
|
-
var
|
|
1239
|
-
const _ = typeof
|
|
1240
|
-
return ((a = t.value.form) == null ? void 0 : a.modalState) === "edit" ? ((
|
|
1252
|
+
}, J = (r) => {
|
|
1253
|
+
var p, a, v, g, s;
|
|
1254
|
+
const _ = typeof r.editor == "function" ? r.editor(F.value, (p = t.value.form) == null ? void 0 : p.modalState) : r.editor;
|
|
1255
|
+
return ((a = t.value.form) == null ? void 0 : a.modalState) === "edit" ? ((v = _ == null ? void 0 : _.ep) == null ? void 0 : v.type) ?? (_ == null ? void 0 : _.type) ?? r.type : ((g = t.value.form) == null ? void 0 : g.modalState) === "add" ? ((s = _ == null ? void 0 : _.ap) == null ? void 0 : s.type) ?? (_ == null ? void 0 : _.type) ?? r.type : (_ == null ? void 0 : _.type) ?? r.type;
|
|
1241
1256
|
};
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
}),
|
|
1245
|
-
|
|
1257
|
+
ut(() => {
|
|
1258
|
+
ve(), k != null && k.editForm ? F.value = k.editForm : F.value = be.value;
|
|
1259
|
+
}), Ut(() => {
|
|
1260
|
+
i.value = null;
|
|
1246
1261
|
});
|
|
1247
|
-
const
|
|
1262
|
+
const ve = () => {
|
|
1248
1263
|
T.value = Math.random().toString(36).substring(2);
|
|
1249
|
-
for (const [
|
|
1250
|
-
t.value[
|
|
1251
|
-
},
|
|
1252
|
-
var
|
|
1253
|
-
const _ = typeof
|
|
1254
|
-
return t.value.form.modalState === "edit" ? ((a = _ == null ? void 0 : _.ep) == null ? void 0 : a.editor) !== !1 : t.value.form.modalState === "add" ? ((
|
|
1255
|
-
}).map((
|
|
1256
|
-
const
|
|
1257
|
-
return Object.entries(
|
|
1258
|
-
if (
|
|
1259
|
-
const a =
|
|
1260
|
-
|
|
1264
|
+
for (const [r, _] of Object.entries(ge.value))
|
|
1265
|
+
t.value[r].formItem = { ...t.value[r].formItem, ..._.formItem }, t.value[r].formItem.style = { ...t.value[r].formItem.style, ..._.formItem.style };
|
|
1266
|
+
}, ge = Ze(() => Object.fromEntries(Object.entries(t.value).filter((r) => r[1].type != "hidden").filter((r) => r[1].edit !== !1).filter((r) => !["table", "tableColumns", "query", "queryItems"].includes(r[0])).filter((r) => r[1].editor !== !1).filter((r) => r[1].type !== "control").filter((r) => {
|
|
1267
|
+
var p, a, v;
|
|
1268
|
+
const _ = typeof r[1].editor == "function" ? r[1].editor(F.value, (p = t.value.form) == null ? void 0 : p.modalState) : r[1].editor;
|
|
1269
|
+
return t.value.form.modalState === "edit" ? ((a = _ == null ? void 0 : _.ep) == null ? void 0 : a.editor) !== !1 : t.value.form.modalState === "add" ? ((v = _ == null ? void 0 : _.ap) == null ? void 0 : v.editor) !== !1 : !0;
|
|
1270
|
+
}).map((r) => [r[0], r[1]]))), be = Ze(() => Object.fromEntries(Object.entries(t.value).filter((r) => r[1].type != "hidden").filter((r) => r[1].type != "control").map((r) => [r[0], r[1].value]))), de = Ze(() => {
|
|
1271
|
+
const r = /* @__PURE__ */ new Map();
|
|
1272
|
+
return Object.entries(ge.value).forEach(([_, p]) => {
|
|
1273
|
+
if (p.groupName) {
|
|
1274
|
+
const a = p.groupName;
|
|
1275
|
+
r.has(a) || r.set(a, {
|
|
1261
1276
|
groupName: a,
|
|
1262
1277
|
items: []
|
|
1263
|
-
}),
|
|
1278
|
+
}), r.get(a).items.push({ key: _, item: p });
|
|
1264
1279
|
}
|
|
1265
|
-
}),
|
|
1266
|
-
_.tabPane =
|
|
1267
|
-
}), Array.from(
|
|
1268
|
-
}),
|
|
1280
|
+
}), r.forEach((_) => {
|
|
1281
|
+
_.tabPane = xe(..._.items.map(({ item: p }) => p.tabPane || {}));
|
|
1282
|
+
}), Array.from(r.values());
|
|
1283
|
+
}), fe = [
|
|
1269
1284
|
{
|
|
1270
1285
|
name: "f-submit",
|
|
1271
1286
|
label: t.value.form.submit.label,
|
|
1272
1287
|
click: t.value.form.submit.click,
|
|
1273
1288
|
hidden: t.value.form.submit.hidden,
|
|
1274
|
-
info:
|
|
1289
|
+
info: Ve(t.value.form.submit, (r) => !["click"].includes(r)),
|
|
1275
1290
|
sort: t.value.form.submit.sort ?? 1,
|
|
1276
1291
|
// 使用空值合并运算符
|
|
1277
1292
|
originalOrder: 0
|
|
@@ -1281,81 +1296,81 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
1281
1296
|
name: "f-reset",
|
|
1282
1297
|
label: t.value.form.reset.label,
|
|
1283
1298
|
click: t.value.form.reset.click,
|
|
1284
|
-
info:
|
|
1299
|
+
info: Ve(t.value.form.reset, (r) => !["click"].includes(r)),
|
|
1285
1300
|
hidden: t.value.form.reset.hidden,
|
|
1286
1301
|
sort: t.value.form.reset.sort ?? 2,
|
|
1287
1302
|
// 使用空值合并运算符
|
|
1288
1303
|
originalOrder: 1
|
|
1289
1304
|
// 添加原始顺序标识
|
|
1290
1305
|
}
|
|
1291
|
-
], ne =
|
|
1292
|
-
return
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
}), (
|
|
1297
|
-
const
|
|
1298
|
-
return
|
|
1306
|
+
], ne = Ze(() => fe.filter((r) => !r.hidden).sort((r, _) => r.sort - _.sort || r.originalOrder - _.originalOrder));
|
|
1307
|
+
return f({
|
|
1308
|
+
submit: H,
|
|
1309
|
+
reset: ee,
|
|
1310
|
+
formData: F
|
|
1311
|
+
}), (r, _) => {
|
|
1312
|
+
const p = I("el-form-item"), a = I("el-col"), v = I("el-tab-pane"), g = I("el-tabs"), s = I("el-button"), M = I("el-form");
|
|
1313
|
+
return n(), D(M, S({
|
|
1299
1314
|
ref_key: "gform",
|
|
1300
|
-
ref:
|
|
1315
|
+
ref: i,
|
|
1301
1316
|
model: F.value,
|
|
1302
1317
|
style: { width: "98%", padding: 0, margin: 0, "box-sizing": "border-box" }
|
|
1303
|
-
}, L(
|
|
1318
|
+
}, L(Ve)(t.value.form, (C) => !["footer", "submit", "reset", "slots", "type", "sort"].includes(C)), { class: "g-form-container" }), {
|
|
1304
1319
|
default: y(() => [
|
|
1305
|
-
|
|
1306
|
-
var C,
|
|
1320
|
+
de.value.length > 0 ? h(r.$slots, "default", { key: 0 }, () => {
|
|
1321
|
+
var C, R, G;
|
|
1307
1322
|
return [
|
|
1308
|
-
|
|
1323
|
+
Z(g, S({
|
|
1309
1324
|
class: "demo-tabs",
|
|
1310
|
-
modelValue:
|
|
1311
|
-
"onUpdate:modelValue": _[0] || (_[0] = (
|
|
1325
|
+
modelValue: de.value[0].groupName,
|
|
1326
|
+
"onUpdate:modelValue": _[0] || (_[0] = (q) => de.value[0].groupName = q),
|
|
1312
1327
|
style: { width: "100%" }
|
|
1313
1328
|
}, t.value.form.tabs), {
|
|
1314
1329
|
default: y(() => [
|
|
1315
|
-
(
|
|
1316
|
-
key:
|
|
1317
|
-
label:
|
|
1318
|
-
name:
|
|
1330
|
+
(n(!0), x(W, null, U(de.value, (q) => (n(), D(v, S({
|
|
1331
|
+
key: q.groupName,
|
|
1332
|
+
label: q.groupName,
|
|
1333
|
+
name: q.groupName,
|
|
1319
1334
|
style: { width: "100%", display: "flex", "flex-wrap": "wrap" },
|
|
1320
1335
|
ref_for: !0
|
|
1321
|
-
},
|
|
1336
|
+
}, q.tabPane), {
|
|
1322
1337
|
default: y(() => [
|
|
1323
|
-
(
|
|
1338
|
+
(n(!0), x(W, null, U(q.items, (A, ue) => (n(), D(a, S({ ref_for: !0 }, { ...t.value.form.cols, ...A == null ? void 0 : A.item.col }, {
|
|
1324
1339
|
key: A.key,
|
|
1325
1340
|
style: { width: "100%" }
|
|
1326
1341
|
}), {
|
|
1327
1342
|
default: y(() => {
|
|
1328
|
-
var
|
|
1343
|
+
var _e, ke;
|
|
1329
1344
|
return [
|
|
1330
|
-
|
|
1345
|
+
Z(p, S({
|
|
1331
1346
|
label: A == null ? void 0 : A.item.label,
|
|
1332
1347
|
prop: A.key,
|
|
1333
|
-
rules:
|
|
1348
|
+
rules: ie(A == null ? void 0 : A.item),
|
|
1334
1349
|
ref_for: !0
|
|
1335
|
-
}, { ...(
|
|
1350
|
+
}, { ...(_e = t.value) == null ? void 0 : _e.formItems, ...(ke = A == null ? void 0 : A.item) == null ? void 0 : ke.formItem }, { style: { width: "100%" } }), {
|
|
1336
1351
|
default: y(() => [
|
|
1337
|
-
h(
|
|
1352
|
+
h(r.$slots, "f-" + A.key, {
|
|
1338
1353
|
item: A == null ? void 0 : A.item,
|
|
1339
1354
|
formInfo: F.value,
|
|
1340
1355
|
model: t.value
|
|
1341
1356
|
}, () => [
|
|
1342
|
-
(
|
|
1357
|
+
(n(), D(vt, {
|
|
1343
1358
|
modelValue: F.value[A.key],
|
|
1344
|
-
"onUpdate:modelValue": (
|
|
1345
|
-
item:
|
|
1359
|
+
"onUpdate:modelValue": (Se) => F.value[A.key] = Se,
|
|
1360
|
+
item: re(A),
|
|
1346
1361
|
ctrlKey: A.key,
|
|
1347
|
-
ctrlType:
|
|
1362
|
+
ctrlType: J(A == null ? void 0 : A.item),
|
|
1348
1363
|
model: t.value,
|
|
1349
1364
|
key: `${A.key}-${T.value}`,
|
|
1350
1365
|
class: "g-ctrl-container",
|
|
1351
1366
|
t: "f",
|
|
1352
1367
|
formInfo: F.value
|
|
1353
|
-
},
|
|
1354
|
-
|
|
1355
|
-
name:
|
|
1356
|
-
fn: y((
|
|
1357
|
-
h(
|
|
1358
|
-
data:
|
|
1368
|
+
}, me({ _: 2 }, [
|
|
1369
|
+
U(r.$slots, (Se, Fe) => ({
|
|
1370
|
+
name: Fe,
|
|
1371
|
+
fn: y((we) => [
|
|
1372
|
+
h(r.$slots, Fe, {
|
|
1373
|
+
data: we,
|
|
1359
1374
|
item: A.item,
|
|
1360
1375
|
model: t.value
|
|
1361
1376
|
})
|
|
@@ -1376,78 +1391,78 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
1376
1391
|
]),
|
|
1377
1392
|
_: 3
|
|
1378
1393
|
}, 16, ["modelValue"]),
|
|
1379
|
-
(
|
|
1380
|
-
|
|
1381
|
-
style:
|
|
1394
|
+
(G = (R = (C = t.value) == null ? void 0 : C.form) == null ? void 0 : R.footer) != null && G.hidden ? pe("", !0) : h(r.$slots, "f-footer", { key: 0 }, () => [
|
|
1395
|
+
Q("div", {
|
|
1396
|
+
style: Be(t.value.form.footer.style)
|
|
1382
1397
|
}, [
|
|
1383
|
-
h(
|
|
1384
|
-
(
|
|
1385
|
-
h(
|
|
1386
|
-
h(
|
|
1387
|
-
|
|
1388
|
-
onClick:
|
|
1398
|
+
h(r.$slots, "f-footer-left"),
|
|
1399
|
+
(n(!0), x(W, null, U(ne.value, (q) => (n(), x(W, null, [
|
|
1400
|
+
h(r.$slots, q.name + "-left"),
|
|
1401
|
+
h(r.$slots, q.name, {}, () => [
|
|
1402
|
+
Z(s, S({ ref_for: !0 }, q.info, {
|
|
1403
|
+
onClick: ot((A) => q.click(F.value, t.value), ["stop"])
|
|
1389
1404
|
}), {
|
|
1390
1405
|
default: y(() => [
|
|
1391
|
-
|
|
1406
|
+
Me(ye(q == null ? void 0 : q.label), 1)
|
|
1392
1407
|
]),
|
|
1393
1408
|
_: 2
|
|
1394
1409
|
}, 1040, ["onClick"])
|
|
1395
1410
|
]),
|
|
1396
|
-
h(
|
|
1411
|
+
h(r.$slots, q.name + "-right")
|
|
1397
1412
|
], 64))), 256)),
|
|
1398
|
-
h(
|
|
1413
|
+
h(r.$slots, "f-footer-right")
|
|
1399
1414
|
], 4)
|
|
1400
1415
|
])
|
|
1401
1416
|
];
|
|
1402
|
-
}) : h(
|
|
1403
|
-
var C,
|
|
1417
|
+
}) : h(r.$slots, "default", { key: 1 }, () => {
|
|
1418
|
+
var C, R, G;
|
|
1404
1419
|
return [
|
|
1405
|
-
(
|
|
1420
|
+
(n(!0), x(W, null, U(ge.value, (q, A) => (n(), D(a, S({ ref_for: !0 }, { ...t.value.form.cols, ...q.col }, {
|
|
1406
1421
|
key: A,
|
|
1407
1422
|
style: { width: "100%" }
|
|
1408
1423
|
}), {
|
|
1409
1424
|
default: y(() => {
|
|
1410
1425
|
var ue;
|
|
1411
1426
|
return [
|
|
1412
|
-
|
|
1413
|
-
label:
|
|
1427
|
+
Z(p, S({
|
|
1428
|
+
label: q.label,
|
|
1414
1429
|
prop: A,
|
|
1415
|
-
rules:
|
|
1430
|
+
rules: ie(q),
|
|
1416
1431
|
ref_for: !0
|
|
1417
|
-
}, { ...(ue = t.value) == null ? void 0 : ue.formItems, ...
|
|
1418
|
-
label: y((
|
|
1419
|
-
h(
|
|
1420
|
-
data:
|
|
1421
|
-
item:
|
|
1432
|
+
}, { ...(ue = t.value) == null ? void 0 : ue.formItems, ...q == null ? void 0 : q.formItem }, { style: { width: "100%" } }), {
|
|
1433
|
+
label: y((_e) => [
|
|
1434
|
+
h(r.$slots, `f-${A}-label`, {
|
|
1435
|
+
data: _e,
|
|
1436
|
+
item: q,
|
|
1422
1437
|
model: t.value
|
|
1423
1438
|
}, () => [
|
|
1424
|
-
|
|
1439
|
+
Me(ye(q.label), 1)
|
|
1425
1440
|
])
|
|
1426
1441
|
]),
|
|
1427
1442
|
default: y(() => [
|
|
1428
|
-
h(
|
|
1429
|
-
item:
|
|
1443
|
+
h(r.$slots, "f-" + A, {
|
|
1444
|
+
item: q,
|
|
1430
1445
|
formInfo: F.value,
|
|
1431
1446
|
model: t.value
|
|
1432
1447
|
}, () => [
|
|
1433
|
-
(
|
|
1448
|
+
(n(), D(vt, {
|
|
1434
1449
|
modelValue: F.value[A],
|
|
1435
|
-
"onUpdate:modelValue": (
|
|
1436
|
-
item:
|
|
1450
|
+
"onUpdate:modelValue": (_e) => F.value[A] = _e,
|
|
1451
|
+
item: re(q, !0),
|
|
1437
1452
|
ctrlKey: A,
|
|
1438
|
-
ctrlType:
|
|
1453
|
+
ctrlType: J(q),
|
|
1439
1454
|
key: `${A}-${T.value}`,
|
|
1440
1455
|
model: t.value,
|
|
1441
1456
|
class: "g-ctrl-container",
|
|
1442
1457
|
t: "f",
|
|
1443
1458
|
formInfo: F.value
|
|
1444
|
-
},
|
|
1445
|
-
|
|
1446
|
-
name:
|
|
1447
|
-
fn: y((
|
|
1448
|
-
h(
|
|
1449
|
-
data:
|
|
1450
|
-
item:
|
|
1459
|
+
}, me({ _: 2 }, [
|
|
1460
|
+
U(r.$slots, (_e, ke) => ({
|
|
1461
|
+
name: ke,
|
|
1462
|
+
fn: y((Se) => [
|
|
1463
|
+
h(r.$slots, ke, {
|
|
1464
|
+
data: Se,
|
|
1465
|
+
item: q,
|
|
1451
1466
|
model: t.value
|
|
1452
1467
|
})
|
|
1453
1468
|
])
|
|
@@ -1461,26 +1476,26 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
1461
1476
|
}),
|
|
1462
1477
|
_: 2
|
|
1463
1478
|
}, 1040))), 128)),
|
|
1464
|
-
(
|
|
1465
|
-
|
|
1466
|
-
style:
|
|
1479
|
+
(G = (R = (C = t.value) == null ? void 0 : C.form) == null ? void 0 : R.footer) != null && G.hidden ? pe("", !0) : h(r.$slots, "f-footer", { key: 0 }, () => [
|
|
1480
|
+
Q("div", {
|
|
1481
|
+
style: Be(t.value.form.footer.style)
|
|
1467
1482
|
}, [
|
|
1468
|
-
h(
|
|
1469
|
-
(
|
|
1470
|
-
h(
|
|
1471
|
-
h(
|
|
1472
|
-
|
|
1473
|
-
onClick:
|
|
1483
|
+
h(r.$slots, "f-footer-left"),
|
|
1484
|
+
(n(!0), x(W, null, U(ne.value, (q) => (n(), x(W, null, [
|
|
1485
|
+
h(r.$slots, q.name + "-left"),
|
|
1486
|
+
h(r.$slots, q.name, {}, () => [
|
|
1487
|
+
Z(s, S({ ref_for: !0 }, q.info, {
|
|
1488
|
+
onClick: ot((A) => q.click(F.value, t.value), ["stop"])
|
|
1474
1489
|
}), {
|
|
1475
1490
|
default: y(() => [
|
|
1476
|
-
|
|
1491
|
+
Me(ye(q == null ? void 0 : q.label), 1)
|
|
1477
1492
|
]),
|
|
1478
1493
|
_: 2
|
|
1479
1494
|
}, 1040, ["onClick"])
|
|
1480
1495
|
]),
|
|
1481
|
-
h(
|
|
1496
|
+
h(r.$slots, q.name + "-right")
|
|
1482
1497
|
], 64))), 256)),
|
|
1483
|
-
h(
|
|
1498
|
+
h(r.$slots, "f-footer-right")
|
|
1484
1499
|
], 4)
|
|
1485
1500
|
])
|
|
1486
1501
|
];
|
|
@@ -1490,59 +1505,59 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
1490
1505
|
}, 16, ["model"]);
|
|
1491
1506
|
};
|
|
1492
1507
|
}
|
|
1493
|
-
}),
|
|
1508
|
+
}), Dt = {
|
|
1494
1509
|
__name: "g-query-item",
|
|
1495
|
-
props: /* @__PURE__ */
|
|
1510
|
+
props: /* @__PURE__ */ ze(["more"], {
|
|
1496
1511
|
modelValue: { required: !0 },
|
|
1497
1512
|
modelModifiers: {},
|
|
1498
1513
|
info: { required: !0 },
|
|
1499
1514
|
infoModifiers: {}
|
|
1500
1515
|
}),
|
|
1501
1516
|
emits: ["update:modelValue", "update:info"],
|
|
1502
|
-
setup(
|
|
1503
|
-
const
|
|
1517
|
+
setup(d) {
|
|
1518
|
+
const f = Pe(d, "modelValue"), o = d, t = Pe(d, "info"), e = (F) => Ze(() => Object.fromEntries(Object.entries(f.value).filter((T) => {
|
|
1504
1519
|
var k;
|
|
1505
|
-
return typeof T[1].search == "function" ? T[1].search && ((k = T[1].search(t.value,
|
|
1506
|
-
}).map((T) => [T[0], T[1]]))).value,
|
|
1507
|
-
const T =
|
|
1520
|
+
return typeof T[1].search == "function" ? T[1].search && ((k = T[1].search(t.value, f.value.table)) == null ? void 0 : k.more) === F : T[1].search && T[1].search.more === F;
|
|
1521
|
+
}).map((T) => [T[0], T[1]]))).value, i = (F) => typeof F.search == "function" ? F.search(t.value, f.value.table) : F.search || {}, E = (F) => {
|
|
1522
|
+
const T = i(F);
|
|
1508
1523
|
return (T == null ? void 0 : T.type) || F.type;
|
|
1509
1524
|
};
|
|
1510
1525
|
return (F, T) => {
|
|
1511
|
-
const k =
|
|
1512
|
-
return
|
|
1513
|
-
key:
|
|
1514
|
-
item:
|
|
1526
|
+
const k = I("el-form-item");
|
|
1527
|
+
return n(!0), x(W, null, U(e(o.more), (w, H) => h(F.$slots, `q-${H}`, {
|
|
1528
|
+
key: H,
|
|
1529
|
+
item: w,
|
|
1515
1530
|
queryModel: t.value,
|
|
1516
|
-
model:
|
|
1531
|
+
model: f.value
|
|
1517
1532
|
}, () => [
|
|
1518
|
-
|
|
1519
|
-
label:
|
|
1533
|
+
Z(k, S({
|
|
1534
|
+
label: w.label,
|
|
1520
1535
|
ref_for: !0
|
|
1521
|
-
}, { ...
|
|
1536
|
+
}, { ...f.value.queryItems, ...i(w) }), {
|
|
1522
1537
|
label: y(() => [
|
|
1523
|
-
h(F.$slots, `q-${
|
|
1524
|
-
item:
|
|
1525
|
-
model:
|
|
1538
|
+
h(F.$slots, `q-${H}-label`, {
|
|
1539
|
+
item: w,
|
|
1540
|
+
model: f.value
|
|
1526
1541
|
})
|
|
1527
1542
|
]),
|
|
1528
1543
|
default: y(() => [
|
|
1529
|
-
|
|
1530
|
-
modelValue: t.value[
|
|
1531
|
-
"onUpdate:modelValue": (ee) => t.value[
|
|
1532
|
-
item: {
|
|
1533
|
-
ctrlKey:
|
|
1534
|
-
ctrlType: E(
|
|
1535
|
-
model:
|
|
1544
|
+
Z(vt, {
|
|
1545
|
+
modelValue: t.value[H],
|
|
1546
|
+
"onUpdate:modelValue": (ee) => t.value[H] = ee,
|
|
1547
|
+
item: { ...w == null ? void 0 : w.editor, ...i(w) },
|
|
1548
|
+
ctrlKey: H,
|
|
1549
|
+
ctrlType: E(w),
|
|
1550
|
+
model: f.value,
|
|
1536
1551
|
t: "q",
|
|
1537
1552
|
formInfo: t.value
|
|
1538
|
-
},
|
|
1539
|
-
|
|
1553
|
+
}, me({ _: 2 }, [
|
|
1554
|
+
U(Object.keys(F.$slots), (ee) => ({
|
|
1540
1555
|
name: ee,
|
|
1541
|
-
fn: y((
|
|
1556
|
+
fn: y((O) => [
|
|
1542
1557
|
h(F.$slots, ee, {
|
|
1543
|
-
data:
|
|
1544
|
-
item:
|
|
1545
|
-
model:
|
|
1558
|
+
data: O,
|
|
1559
|
+
item: w,
|
|
1560
|
+
model: f.value
|
|
1546
1561
|
})
|
|
1547
1562
|
])
|
|
1548
1563
|
}))
|
|
@@ -1553,10 +1568,10 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
1553
1568
|
])), 128);
|
|
1554
1569
|
};
|
|
1555
1570
|
}
|
|
1556
|
-
},
|
|
1571
|
+
}, hl = {
|
|
1557
1572
|
key: 0,
|
|
1558
1573
|
class: "outer"
|
|
1559
|
-
},
|
|
1574
|
+
}, yl = { class: "inner" }, gl = {
|
|
1560
1575
|
__name: "g-query",
|
|
1561
1576
|
props: {
|
|
1562
1577
|
modelValue: { required: !0 },
|
|
@@ -1564,9 +1579,9 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
1564
1579
|
info: { required: !0 },
|
|
1565
1580
|
infoModifiers: {}
|
|
1566
1581
|
},
|
|
1567
|
-
emits: /* @__PURE__ */
|
|
1568
|
-
setup(
|
|
1569
|
-
const
|
|
1582
|
+
emits: /* @__PURE__ */ ze(["query", "reset"], ["update:modelValue", "update:info"]),
|
|
1583
|
+
setup(d, { emit: f }) {
|
|
1584
|
+
const o = Pe(d, "modelValue"), t = f, e = kt("options"), i = le(!1), E = Pe(d, "info"), F = {
|
|
1570
1585
|
hidden: !1,
|
|
1571
1586
|
type: "hidden",
|
|
1572
1587
|
labelWidth: 100,
|
|
@@ -1583,7 +1598,7 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
1583
1598
|
type: "primary",
|
|
1584
1599
|
label: "更多",
|
|
1585
1600
|
click: () => {
|
|
1586
|
-
|
|
1601
|
+
i.value = !i.value;
|
|
1587
1602
|
}
|
|
1588
1603
|
},
|
|
1589
1604
|
reset: {
|
|
@@ -1600,7 +1615,7 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
1600
1615
|
type: "primary",
|
|
1601
1616
|
label: "查询",
|
|
1602
1617
|
click: () => {
|
|
1603
|
-
t("query", E.value),
|
|
1618
|
+
t("query", E.value), i.value = !1;
|
|
1604
1619
|
}
|
|
1605
1620
|
},
|
|
1606
1621
|
btns: {
|
|
@@ -1614,7 +1629,7 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
1614
1629
|
}
|
|
1615
1630
|
}
|
|
1616
1631
|
};
|
|
1617
|
-
|
|
1632
|
+
o.value.query = xe(F, e == null ? void 0 : e.query, o.value.query);
|
|
1618
1633
|
const T = {
|
|
1619
1634
|
2: {
|
|
1620
1635
|
title: "更多查询",
|
|
@@ -1632,9 +1647,9 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
1632
1647
|
trigger: "click"
|
|
1633
1648
|
}
|
|
1634
1649
|
};
|
|
1635
|
-
|
|
1636
|
-
T[
|
|
1637
|
-
|
|
1650
|
+
o.value.query.more.dialog = xe(
|
|
1651
|
+
T[o.value.query.more.mode] || {},
|
|
1652
|
+
o.value.query.more.dialog
|
|
1638
1653
|
);
|
|
1639
1654
|
const k = {
|
|
1640
1655
|
type: "hidden",
|
|
@@ -1643,169 +1658,169 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
1643
1658
|
width: "280px"
|
|
1644
1659
|
}
|
|
1645
1660
|
};
|
|
1646
|
-
|
|
1647
|
-
const
|
|
1648
|
-
const
|
|
1649
|
-
model:
|
|
1661
|
+
o.value.queryItems = xe(k, e == null ? void 0 : e.queryItems, o.value.queryItems);
|
|
1662
|
+
const w = (O, Y) => {
|
|
1663
|
+
const ie = Object.keys(O.slots).filter((re) => re !== "default").reduce((re, J) => (re[J] = (ve) => O.slots[J]({
|
|
1664
|
+
model: o.value
|
|
1650
1665
|
// 传递当前模型数据
|
|
1651
|
-
}),
|
|
1652
|
-
return
|
|
1653
|
-
modelValue:
|
|
1654
|
-
"onUpdate:modelValue": (
|
|
1666
|
+
}), re), {});
|
|
1667
|
+
return Ae(Dt, {
|
|
1668
|
+
modelValue: o.value,
|
|
1669
|
+
"onUpdate:modelValue": (re) => o.value = re,
|
|
1655
1670
|
info: E.value,
|
|
1656
|
-
"onUpdate:info": (
|
|
1657
|
-
more:
|
|
1658
|
-
},
|
|
1659
|
-
},
|
|
1660
|
-
var
|
|
1661
|
-
const
|
|
1671
|
+
"onUpdate:info": (re) => E.value = re,
|
|
1672
|
+
more: Y
|
|
1673
|
+
}, ie);
|
|
1674
|
+
}, H = St(), ee = () => {
|
|
1675
|
+
var ie, re, J, ve, ge, be, de, fe, ne;
|
|
1676
|
+
const O = [
|
|
1662
1677
|
{
|
|
1663
1678
|
key: "query",
|
|
1664
|
-
hidden: (
|
|
1665
|
-
component:
|
|
1679
|
+
hidden: (J = (re = (ie = o.value) == null ? void 0 : ie.query) == null ? void 0 : re.query) == null ? void 0 : J.hidden,
|
|
1680
|
+
component: De,
|
|
1666
1681
|
props: {
|
|
1667
|
-
...
|
|
1668
|
-
onClick:
|
|
1682
|
+
...o.value.query.query,
|
|
1683
|
+
onClick: o.value.query.query.click
|
|
1669
1684
|
},
|
|
1670
|
-
label:
|
|
1671
|
-
sort:
|
|
1685
|
+
label: o.value.query.query.label,
|
|
1686
|
+
sort: o.value.query.query.sort || 0
|
|
1672
1687
|
},
|
|
1673
1688
|
{
|
|
1674
1689
|
key: "reset",
|
|
1675
|
-
hidden: (
|
|
1676
|
-
component:
|
|
1690
|
+
hidden: (be = (ge = (ve = o.value) == null ? void 0 : ve.query) == null ? void 0 : ge.reset) == null ? void 0 : be.hidden,
|
|
1691
|
+
component: De,
|
|
1677
1692
|
props: {
|
|
1678
|
-
...
|
|
1679
|
-
onClick:
|
|
1693
|
+
...o.value.query.reset,
|
|
1694
|
+
onClick: o.value.query.reset.click
|
|
1680
1695
|
},
|
|
1681
|
-
label:
|
|
1682
|
-
sort:
|
|
1696
|
+
label: o.value.query.reset.label,
|
|
1697
|
+
sort: o.value.query.reset.sort || 0
|
|
1683
1698
|
},
|
|
1684
1699
|
{
|
|
1685
1700
|
key: "more",
|
|
1686
|
-
hidden: (ne = (
|
|
1687
|
-
component:
|
|
1688
|
-
props:
|
|
1689
|
-
...
|
|
1690
|
-
onClick:
|
|
1701
|
+
hidden: (ne = (fe = (de = o.value) == null ? void 0 : de.query) == null ? void 0 : fe.more) == null ? void 0 : ne.hidden,
|
|
1702
|
+
component: o.value.query.more.mode === 3 ? ht : De,
|
|
1703
|
+
props: o.value.query.more.mode === 3 ? { ...o.value.query.more.dialog } : {
|
|
1704
|
+
...o.value.query.more,
|
|
1705
|
+
onClick: o.value.query.more.click
|
|
1691
1706
|
},
|
|
1692
|
-
label:
|
|
1693
|
-
sort:
|
|
1694
|
-
content:
|
|
1707
|
+
label: o.value.query.more.label,
|
|
1708
|
+
sort: o.value.query.more.sort || 0,
|
|
1709
|
+
content: o.value.query.more.mode === 3 ? () => Ae(ct, {
|
|
1695
1710
|
class: "query-form",
|
|
1696
|
-
...
|
|
1697
|
-
}, () =>
|
|
1711
|
+
...Ve(o.value.query, (ae) => !["query", "more", "reset"].includes(ae))
|
|
1712
|
+
}, () => w({ slots: H }, !0)) : null
|
|
1698
1713
|
}
|
|
1699
1714
|
];
|
|
1700
|
-
return
|
|
1701
|
-
reference: () =>
|
|
1702
|
-
default:
|
|
1703
|
-
}) : (
|
|
1715
|
+
return O.sort((ae, $e) => ae.sort - $e.sort), O.filter((ae) => !ae.hidden).map((ae) => ae.key === "more" && ae.component === ht ? Ae(ht, ae.props, {
|
|
1716
|
+
reference: () => Ae(De, o.value.query.more, () => ae.label),
|
|
1717
|
+
default: ae.content
|
|
1718
|
+
}) : (ae.props.slot = "query-" + ae.key, ae.label ? Ae(ae.component, ae.props, () => ae.label) : Ae(ae.component, ae.props)));
|
|
1704
1719
|
};
|
|
1705
|
-
return (
|
|
1706
|
-
var
|
|
1707
|
-
const
|
|
1708
|
-
return
|
|
1709
|
-
|
|
1720
|
+
return (O, Y) => {
|
|
1721
|
+
var J, ve, ge, be, de, fe, ne, ae, $e, se, b, r, _, p, a, v, g;
|
|
1722
|
+
const ie = I("el-form-item"), re = I("el-drawer");
|
|
1723
|
+
return n(), x(W, null, [
|
|
1724
|
+
Q("div", {
|
|
1710
1725
|
class: "g-query-container",
|
|
1711
|
-
style:
|
|
1726
|
+
style: Be((ve = (J = o.value.query) == null ? void 0 : J.container) == null ? void 0 : ve.style)
|
|
1712
1727
|
}, [
|
|
1713
|
-
|
|
1714
|
-
onSubmit:
|
|
1728
|
+
Z(L(ct), S({
|
|
1729
|
+
onSubmit: Y[0] || (Y[0] = ot(() => {
|
|
1715
1730
|
}, ["prevent"]))
|
|
1716
|
-
}, L(
|
|
1731
|
+
}, L(Ve)(o.value.query, (s) => !["query", "more", "reset", "btns"].includes(s))), {
|
|
1717
1732
|
default: y(() => {
|
|
1718
|
-
var s,
|
|
1733
|
+
var s, M;
|
|
1719
1734
|
return [
|
|
1720
|
-
(
|
|
1721
|
-
((
|
|
1735
|
+
(n(), D(Ue(w({ slots: O.$slots }, void 0)))),
|
|
1736
|
+
((M = (s = o.value.query) == null ? void 0 : s.container) == null ? void 0 : M.inline) === !0 ? (n(), D(ie, { key: 0 }, {
|
|
1722
1737
|
default: y(() => {
|
|
1723
|
-
var C,
|
|
1738
|
+
var C, R, G, q, A;
|
|
1724
1739
|
return [
|
|
1725
|
-
|
|
1726
|
-
style:
|
|
1740
|
+
Q("div", {
|
|
1741
|
+
style: Be((R = (C = o.value.query) == null ? void 0 : C.btns) == null ? void 0 : R.style)
|
|
1727
1742
|
}, [
|
|
1728
|
-
|
|
1743
|
+
o.value.query.group ? (n(), D(L(mt), { key: 0 }, {
|
|
1729
1744
|
default: y(() => [
|
|
1730
|
-
(
|
|
1731
|
-
(
|
|
1745
|
+
(n(!0), x(W, null, U(ee(), (ue) => h(O.$slots, ue.props.slot, {}, () => [
|
|
1746
|
+
(n(), D(Ue(ue)))
|
|
1732
1747
|
], !0)), 256)),
|
|
1733
|
-
h(
|
|
1748
|
+
h(O.$slots, "q-btns", {}, void 0, !0)
|
|
1734
1749
|
]),
|
|
1735
1750
|
_: 3
|
|
1736
|
-
})) : (
|
|
1737
|
-
(A = (
|
|
1751
|
+
})) : (n(), x(W, { key: 1 }, [
|
|
1752
|
+
(A = (q = (G = o.value) == null ? void 0 : G.query) == null ? void 0 : q.btns) != null && A.group ? (n(), D(L(mt), { key: 0 }, {
|
|
1738
1753
|
default: y(() => [
|
|
1739
|
-
(
|
|
1740
|
-
(
|
|
1754
|
+
(n(!0), x(W, null, U(ee(), (ue) => h(O.$slots, ue.props.slot, {}, () => [
|
|
1755
|
+
(n(), D(Ue(ue)))
|
|
1741
1756
|
], !0)), 256))
|
|
1742
1757
|
]),
|
|
1743
1758
|
_: 3
|
|
1744
|
-
})) : (
|
|
1745
|
-
(
|
|
1759
|
+
})) : (n(!0), x(W, { key: 1 }, U(ee(), (ue) => h(O.$slots, ue.props.slot, {}, () => [
|
|
1760
|
+
(n(), D(Ue(ue)))
|
|
1746
1761
|
], !0)), 256)),
|
|
1747
|
-
h(
|
|
1762
|
+
h(O.$slots, "q-btns", {}, void 0, !0)
|
|
1748
1763
|
], 64))
|
|
1749
1764
|
], 4)
|
|
1750
1765
|
];
|
|
1751
1766
|
}),
|
|
1752
1767
|
_: 3
|
|
1753
|
-
})) :
|
|
1768
|
+
})) : pe("", !0)
|
|
1754
1769
|
];
|
|
1755
1770
|
}),
|
|
1756
1771
|
_: 3
|
|
1757
1772
|
}, 16),
|
|
1758
|
-
((
|
|
1773
|
+
((de = (be = (ge = o.value) == null ? void 0 : ge.query) == null ? void 0 : be.container) == null ? void 0 : de.inline) === !1 ? (n(), x("div", {
|
|
1759
1774
|
key: 0,
|
|
1760
|
-
style:
|
|
1775
|
+
style: Be((ne = (fe = o.value.query) == null ? void 0 : fe.btns) == null ? void 0 : ne.style)
|
|
1761
1776
|
}, [
|
|
1762
|
-
|
|
1777
|
+
o.value.query.group ? (n(), D(L(mt), { key: 0 }, {
|
|
1763
1778
|
default: y(() => [
|
|
1764
|
-
(
|
|
1765
|
-
(
|
|
1779
|
+
(n(!0), x(W, null, U(ee(), (s) => h(O.$slots, s.props.slot, {}, () => [
|
|
1780
|
+
(n(), D(Ue(s)))
|
|
1766
1781
|
], !0)), 256)),
|
|
1767
|
-
h(
|
|
1782
|
+
h(O.$slots, "q-btns", {}, void 0, !0)
|
|
1768
1783
|
]),
|
|
1769
1784
|
_: 3
|
|
1770
|
-
})) : (
|
|
1771
|
-
(
|
|
1785
|
+
})) : (n(), x(W, { key: 1 }, [
|
|
1786
|
+
($e = (ae = o.value.query) == null ? void 0 : ae.btns) != null && $e.group ? (n(), D(L(mt), { key: 0 }, {
|
|
1772
1787
|
default: y(() => [
|
|
1773
|
-
(
|
|
1774
|
-
(
|
|
1788
|
+
(n(!0), x(W, null, U(ee(), (s) => h(O.$slots, s.props.slot, {}, () => [
|
|
1789
|
+
(n(), D(Ue(s)))
|
|
1775
1790
|
], !0)), 256))
|
|
1776
1791
|
]),
|
|
1777
1792
|
_: 3
|
|
1778
|
-
})) : (
|
|
1779
|
-
(
|
|
1793
|
+
})) : (n(!0), x(W, { key: 1 }, U(ee(), (s) => h(O.$slots, s.props.slot, {}, () => [
|
|
1794
|
+
(n(), D(Ue(s)))
|
|
1780
1795
|
], !0)), 256)),
|
|
1781
|
-
h(
|
|
1796
|
+
h(O.$slots, "q-btns", {}, void 0, !0)
|
|
1782
1797
|
], 64))
|
|
1783
|
-
], 4)) :
|
|
1798
|
+
], 4)) : pe("", !0)
|
|
1784
1799
|
], 4),
|
|
1785
|
-
|
|
1800
|
+
i.value && !((r = (b = (se = o.value) == null ? void 0 : se.query) == null ? void 0 : b.more) != null && r.hidden) && o.value.query.more.mode == 2 ? (n(), D(re, S({
|
|
1786
1801
|
key: 0,
|
|
1787
|
-
modelValue:
|
|
1788
|
-
"onUpdate:modelValue":
|
|
1802
|
+
modelValue: i.value,
|
|
1803
|
+
"onUpdate:modelValue": Y[6] || (Y[6] = (s) => i.value = s),
|
|
1789
1804
|
title: "更多查询",
|
|
1790
1805
|
"show-close": !1
|
|
1791
|
-
},
|
|
1806
|
+
}, o.value.query.more.dialog), me({
|
|
1792
1807
|
default: y(() => [
|
|
1793
|
-
|
|
1794
|
-
onSubmit:
|
|
1808
|
+
Z(L(ct), S({
|
|
1809
|
+
onSubmit: Y[3] || (Y[3] = ot(() => {
|
|
1795
1810
|
}, ["prevent"]))
|
|
1796
|
-
}, L(
|
|
1811
|
+
}, L(Ve)(o.value.query, (s) => !["query", "more", "reset"].includes(s)), { style: { width: "98%" } }), {
|
|
1797
1812
|
default: y(() => [
|
|
1798
|
-
|
|
1799
|
-
modelValue:
|
|
1800
|
-
"onUpdate:modelValue":
|
|
1813
|
+
Z(Dt, {
|
|
1814
|
+
modelValue: o.value,
|
|
1815
|
+
"onUpdate:modelValue": Y[1] || (Y[1] = (s) => o.value = s),
|
|
1801
1816
|
info: E.value,
|
|
1802
|
-
"onUpdate:info":
|
|
1817
|
+
"onUpdate:info": Y[2] || (Y[2] = (s) => E.value = s),
|
|
1803
1818
|
more: !0
|
|
1804
|
-
},
|
|
1805
|
-
|
|
1806
|
-
name:
|
|
1807
|
-
fn: y((
|
|
1808
|
-
h(
|
|
1819
|
+
}, me({ _: 2 }, [
|
|
1820
|
+
U(O.$slots, (s, M, C) => ({
|
|
1821
|
+
name: M,
|
|
1822
|
+
fn: y((R) => [
|
|
1823
|
+
h(O.$slots, M, { model: o.value }, void 0, !0)
|
|
1809
1824
|
])
|
|
1810
1825
|
}))
|
|
1811
1826
|
]), 1032, ["modelValue", "info"])
|
|
@@ -1815,23 +1830,23 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
1815
1830
|
]),
|
|
1816
1831
|
_: 2
|
|
1817
1832
|
}, [
|
|
1818
|
-
(g = (
|
|
1833
|
+
(g = (v = (a = (p = (_ = o.value) == null ? void 0 : _.query) == null ? void 0 : p.more) == null ? void 0 : a.dialog) == null ? void 0 : v.footer) != null && g.hidden ? void 0 : {
|
|
1819
1834
|
name: "footer",
|
|
1820
1835
|
fn: y(() => [
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
onClick:
|
|
1836
|
+
Q("div", gt(Rt(o.value.query.more.dialog.footer)), [
|
|
1837
|
+
Z(L(De), S(o.value.query.query, {
|
|
1838
|
+
onClick: Y[4] || (Y[4] = (s) => o.value.query.query.click())
|
|
1824
1839
|
}), {
|
|
1825
1840
|
default: y(() => [
|
|
1826
|
-
|
|
1841
|
+
Me(ye(o.value.query.query.label), 1)
|
|
1827
1842
|
]),
|
|
1828
1843
|
_: 1
|
|
1829
1844
|
}, 16),
|
|
1830
|
-
|
|
1831
|
-
onClick:
|
|
1845
|
+
Z(L(De), S(o.value.query.reset, {
|
|
1846
|
+
onClick: Y[5] || (Y[5] = (s) => o.value.query.reset.click())
|
|
1832
1847
|
}), {
|
|
1833
1848
|
default: y(() => [
|
|
1834
|
-
|
|
1849
|
+
Me(ye(o.value.query.reset.label), 1)
|
|
1835
1850
|
]),
|
|
1836
1851
|
_: 1
|
|
1837
1852
|
}, 16)
|
|
@@ -1839,31 +1854,31 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
1839
1854
|
]),
|
|
1840
1855
|
key: "0"
|
|
1841
1856
|
}
|
|
1842
|
-
]), 1040, ["modelValue"])) :
|
|
1843
|
-
|
|
1857
|
+
]), 1040, ["modelValue"])) : pe("", !0),
|
|
1858
|
+
Z(Lt, {
|
|
1844
1859
|
duration: 300,
|
|
1845
1860
|
name: "nested",
|
|
1846
1861
|
style: { padding: "10px" }
|
|
1847
1862
|
}, {
|
|
1848
1863
|
default: y(() => {
|
|
1849
|
-
var s,
|
|
1864
|
+
var s, M, C;
|
|
1850
1865
|
return [
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1866
|
+
i.value && !((C = (M = (s = o.value) == null ? void 0 : s.query) == null ? void 0 : M.more) != null && C.hidden) && o.value.query.more.mode == 1 ? (n(), x("div", hl, [
|
|
1867
|
+
Q("div", yl, [
|
|
1868
|
+
o.value.query.more.mode == 1 ? jt((n(), D(L(ct), S({
|
|
1854
1869
|
key: 0,
|
|
1855
|
-
onSubmit:
|
|
1870
|
+
onSubmit: Y[7] || (Y[7] = ot(() => {
|
|
1856
1871
|
}, ["prevent"]))
|
|
1857
|
-
}, L(
|
|
1872
|
+
}, L(Ve)(o.value.query, (R) => !["query", "more", "reset"].includes(R))), {
|
|
1858
1873
|
default: y(() => [
|
|
1859
|
-
(
|
|
1874
|
+
(n(), D(Ue(w({ slots: O.$slots }, !0))))
|
|
1860
1875
|
]),
|
|
1861
1876
|
_: 1
|
|
1862
1877
|
}, 16)), [
|
|
1863
|
-
[
|
|
1864
|
-
]) :
|
|
1878
|
+
[Ht, i.value]
|
|
1879
|
+
]) : pe("", !0)
|
|
1865
1880
|
])
|
|
1866
|
-
])) :
|
|
1881
|
+
])) : pe("", !0)
|
|
1867
1882
|
];
|
|
1868
1883
|
}),
|
|
1869
1884
|
_: 1
|
|
@@ -1871,18 +1886,18 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
1871
1886
|
], 64);
|
|
1872
1887
|
};
|
|
1873
1888
|
}
|
|
1874
|
-
},
|
|
1889
|
+
}, bl = /* @__PURE__ */ Je(gl, [["__scopeId", "data-v-46ed95d5"]]), $l = { style: { padding: "0", margin: "0", "box-sizing": "border-box" } }, wl = { style: { padding: "10px", "box-sizing": "border-box" } }, El = { style: { margin: "10px" } }, kl = {
|
|
1875
1890
|
style: { display: "flex", "flex-wrap": "wrap" },
|
|
1876
1891
|
id: "excelSortEl"
|
|
1877
|
-
},
|
|
1892
|
+
}, _l = ["textContent"], Cl = { style: { width: "100%", display: "flex", padding: "10px", "box-sizing": "border-box", "justify-content": "center", "border-top": "1px solid #dcdfe6" } }, Dl = {
|
|
1878
1893
|
__name: "check-excel-item",
|
|
1879
1894
|
props: {
|
|
1880
1895
|
items: Array,
|
|
1881
1896
|
commitText: String
|
|
1882
1897
|
},
|
|
1883
1898
|
emits: ["excel"],
|
|
1884
|
-
setup(
|
|
1885
|
-
const
|
|
1899
|
+
setup(d, { emit: f }) {
|
|
1900
|
+
const o = d, t = f, e = le(o.items), i = () => {
|
|
1886
1901
|
e.value.forEach((T) => {
|
|
1887
1902
|
T.value = !0;
|
|
1888
1903
|
});
|
|
@@ -1897,75 +1912,74 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
1897
1912
|
return;
|
|
1898
1913
|
}
|
|
1899
1914
|
try {
|
|
1900
|
-
const
|
|
1901
|
-
|
|
1902
|
-
} catch (
|
|
1903
|
-
console.error("下载文件时出现错误:",
|
|
1915
|
+
const w = document.createElement("a");
|
|
1916
|
+
w.href = T, w.download = k, w.style.display = "none", document.body.appendChild(w), w.click(), document.body.removeChild(w);
|
|
1917
|
+
} catch (w) {
|
|
1918
|
+
console.error("下载文件时出现错误:", w);
|
|
1904
1919
|
}
|
|
1905
1920
|
});
|
|
1906
1921
|
};
|
|
1907
|
-
return
|
|
1908
|
-
const T = new
|
|
1922
|
+
return ut(() => {
|
|
1923
|
+
const T = new Tt(document.getElementById("excelSortEl"), {
|
|
1909
1924
|
animation: 150,
|
|
1910
1925
|
onEnd: () => {
|
|
1911
|
-
|
|
1912
|
-
console.log($);
|
|
1926
|
+
T.toArray();
|
|
1913
1927
|
}
|
|
1914
1928
|
}), k = T;
|
|
1915
|
-
|
|
1929
|
+
Nt(() => {
|
|
1916
1930
|
k && k.destroy();
|
|
1917
1931
|
});
|
|
1918
1932
|
}), (T, k) => {
|
|
1919
|
-
const
|
|
1920
|
-
return
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
onClick:
|
|
1933
|
+
const w = I("el-divider"), H = I("el-alert"), ee = I("el-checkbox"), O = I("el-button");
|
|
1934
|
+
return n(), x("div", $l, [
|
|
1935
|
+
Q("div", wl, [
|
|
1936
|
+
Q("div", El, [
|
|
1937
|
+
Q("a", {
|
|
1938
|
+
onClick: i,
|
|
1925
1939
|
style: { cursor: "pointer" }
|
|
1926
1940
|
}, "全选"),
|
|
1927
|
-
|
|
1928
|
-
|
|
1941
|
+
Z(w, { direction: "vertical" }),
|
|
1942
|
+
Q("a", {
|
|
1929
1943
|
onClick: E,
|
|
1930
1944
|
style: { cursor: "pointer" }
|
|
1931
1945
|
}, "全不选")
|
|
1932
1946
|
]),
|
|
1933
|
-
|
|
1947
|
+
Z(H, {
|
|
1934
1948
|
title: "拖动列标题可以改变表格列的生成顺序 !",
|
|
1935
1949
|
type: "warning",
|
|
1936
1950
|
"show-icon": "",
|
|
1937
1951
|
closable: !1,
|
|
1938
1952
|
style: { "margin-bottom": "10px" }
|
|
1939
1953
|
}),
|
|
1940
|
-
k[0] || (k[0] =
|
|
1941
|
-
|
|
1942
|
-
(
|
|
1954
|
+
k[0] || (k[0] = Q("div", { style: { margin: "1px 0" } }, null, -1)),
|
|
1955
|
+
Q("div", kl, [
|
|
1956
|
+
(n(!0), x(W, null, U(e.value, (Y) => (n(), D(ee, {
|
|
1943
1957
|
class: "check-box-hover",
|
|
1944
1958
|
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" },
|
|
1945
|
-
"data-id":
|
|
1946
|
-
modelValue:
|
|
1947
|
-
"onUpdate:modelValue": (
|
|
1948
|
-
key:
|
|
1949
|
-
title:
|
|
1959
|
+
"data-id": Y.key,
|
|
1960
|
+
modelValue: Y.value,
|
|
1961
|
+
"onUpdate:modelValue": (ie) => Y.value = ie,
|
|
1962
|
+
key: Y.key,
|
|
1963
|
+
title: Y.label
|
|
1950
1964
|
}, {
|
|
1951
1965
|
default: y(() => [
|
|
1952
|
-
|
|
1953
|
-
textContent:
|
|
1966
|
+
Q("span", {
|
|
1967
|
+
textContent: ye(Y.label),
|
|
1954
1968
|
style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
|
|
1955
|
-
}, null, 8,
|
|
1969
|
+
}, null, 8, _l)
|
|
1956
1970
|
]),
|
|
1957
1971
|
_: 2
|
|
1958
1972
|
}, 1032, ["data-id", "modelValue", "onUpdate:modelValue", "title"]))), 128))
|
|
1959
1973
|
])
|
|
1960
1974
|
]),
|
|
1961
|
-
|
|
1962
|
-
|
|
1975
|
+
Q("div", Cl, [
|
|
1976
|
+
Z(O, {
|
|
1963
1977
|
type: "primary",
|
|
1964
1978
|
onClick: F,
|
|
1965
|
-
disabled: e.value.filter((
|
|
1979
|
+
disabled: e.value.filter((Y) => Y.value).length < 1
|
|
1966
1980
|
}, {
|
|
1967
1981
|
default: y(() => [
|
|
1968
|
-
|
|
1982
|
+
Me(ye(o.commitText), 1)
|
|
1969
1983
|
]),
|
|
1970
1984
|
_: 1
|
|
1971
1985
|
}, 8, ["disabled"])
|
|
@@ -1973,46 +1987,46 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
1973
1987
|
]);
|
|
1974
1988
|
};
|
|
1975
1989
|
}
|
|
1976
|
-
},
|
|
1977
|
-
|
|
1990
|
+
}, Ml = /* @__PURE__ */ Je(Dl, [["__scopeId", "data-v-04791df1"]]), Ne = new Kt("gyc");
|
|
1991
|
+
Ne.version(1).stores({
|
|
1978
1992
|
tableInfo: "++id,[user+page+key],user,page,key,showCol,width,sort",
|
|
1979
1993
|
tableList: "++id,name"
|
|
1980
1994
|
});
|
|
1981
|
-
async function
|
|
1982
|
-
if (await
|
|
1983
|
-
let
|
|
1984
|
-
return await
|
|
1995
|
+
async function rt(d, f, o, t = {}) {
|
|
1996
|
+
if (await Ne.tableInfo.where({ user: d, page: f, key: o }).count() > 0) {
|
|
1997
|
+
let i = await Ne.tableInfo.where({ user: d, page: f, key: o }).first();
|
|
1998
|
+
return await Ne.tableInfo.put({ ...i, ...t }), "update success";
|
|
1985
1999
|
} else {
|
|
1986
|
-
let
|
|
1987
|
-
return await
|
|
2000
|
+
let i = { showCol: !0, width: "auto", sort: 0, ...t };
|
|
2001
|
+
return await Ne.tableInfo.add({ user: d, page: f, key: o, ...i }), "add success";
|
|
1988
2002
|
}
|
|
1989
2003
|
}
|
|
1990
|
-
async function
|
|
1991
|
-
return await
|
|
2004
|
+
async function Vl(d, f) {
|
|
2005
|
+
return await Ne.tableInfo.where({ user: d, page: f }).toArray();
|
|
1992
2006
|
}
|
|
1993
|
-
async function
|
|
2007
|
+
async function Sl(d, f) {
|
|
1994
2008
|
try {
|
|
1995
|
-
const
|
|
1996
|
-
return console.log("删除了" +
|
|
1997
|
-
} catch (
|
|
1998
|
-
throw console.error("删除表格项设置信息时出错:",
|
|
2009
|
+
const o = await Ne.tableInfo.where({ user: d, page: f }).delete();
|
|
2010
|
+
return console.log("删除了" + o + "条数据"), o;
|
|
2011
|
+
} catch (o) {
|
|
2012
|
+
throw console.error("删除表格项设置信息时出错:", o), o;
|
|
1999
2013
|
}
|
|
2000
2014
|
}
|
|
2001
|
-
async function
|
|
2002
|
-
return await
|
|
2015
|
+
async function Fl(d) {
|
|
2016
|
+
return await Ne.tableList.where({ name: d }).first();
|
|
2003
2017
|
}
|
|
2004
|
-
async function
|
|
2005
|
-
return typeof
|
|
2018
|
+
async function Tl(d) {
|
|
2019
|
+
return typeof d == "string" && (d = { name: d }), await Ne.tableList.add(d), "add success";
|
|
2006
2020
|
}
|
|
2007
|
-
const
|
|
2021
|
+
const xl = {
|
|
2008
2022
|
style: { margin: "10px" },
|
|
2009
2023
|
class: "allcheck"
|
|
2010
|
-
},
|
|
2024
|
+
}, ql = {
|
|
2011
2025
|
id: "cols",
|
|
2012
2026
|
style: { display: "flex", "flex-wrap": "wrap", margin: "0 !important", padding: "0 !important" }
|
|
2013
|
-
},
|
|
2027
|
+
}, Ol = ["textContent"], Al = {
|
|
2014
2028
|
__name: "columns-setting",
|
|
2015
|
-
props: /* @__PURE__ */
|
|
2029
|
+
props: /* @__PURE__ */ ze({
|
|
2016
2030
|
name: {
|
|
2017
2031
|
type: String,
|
|
2018
2032
|
required: !0
|
|
@@ -2022,35 +2036,33 @@ const Sl = {
|
|
|
2022
2036
|
modelModifiers: {}
|
|
2023
2037
|
}),
|
|
2024
2038
|
emits: ["update:modelValue"],
|
|
2025
|
-
setup(
|
|
2026
|
-
const
|
|
2027
|
-
k ? t.value[
|
|
2039
|
+
setup(d) {
|
|
2040
|
+
const f = d, o = le([]), t = Pe(d, "modelValue"), e = async (k, w) => {
|
|
2041
|
+
k ? t.value[w].showCol = !0 : t.value[w].showCol = !1;
|
|
2028
2042
|
try {
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
console.error("列显示状态保存信息时出错:", N), Te({
|
|
2043
|
+
await rt(t.value.table.user, f.name, w, { showCol: k });
|
|
2044
|
+
} catch (H) {
|
|
2045
|
+
console.error("列显示状态保存信息时出错:", H), Oe({
|
|
2033
2046
|
type: "error",
|
|
2034
2047
|
message: "列显示状态保存信息失败!"
|
|
2035
2048
|
});
|
|
2036
2049
|
}
|
|
2037
|
-
},
|
|
2050
|
+
}, i = () => {
|
|
2038
2051
|
const k = document.getElementById("cols");
|
|
2039
2052
|
if (k) {
|
|
2040
|
-
let
|
|
2053
|
+
let w = Tt.create(k, {
|
|
2041
2054
|
animation: 150,
|
|
2042
2055
|
filter: ".filtered",
|
|
2043
2056
|
//
|
|
2044
2057
|
sort: !0,
|
|
2045
2058
|
onEnd: () => {
|
|
2046
|
-
|
|
2047
|
-
t.value[ee].sort =
|
|
2048
|
-
let
|
|
2059
|
+
w.toArray().forEach(async (ee, O) => {
|
|
2060
|
+
t.value[ee].sort = O;
|
|
2061
|
+
let Y = t.value[ee].width || "auto";
|
|
2049
2062
|
try {
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
console.error("列排序和宽度保存信息时出错:", re), Te({
|
|
2063
|
+
await rt(t.value.table.user, f.name, ee, { sort: O, width: Y });
|
|
2064
|
+
} catch (ie) {
|
|
2065
|
+
console.error("列排序和宽度保存信息时出错:", ie), Oe({
|
|
2054
2066
|
type: "error",
|
|
2055
2067
|
message: "列排序和宽度保存信息失败!"
|
|
2056
2068
|
});
|
|
@@ -2061,35 +2073,29 @@ const Sl = {
|
|
|
2061
2073
|
}
|
|
2062
2074
|
}, E = async () => {
|
|
2063
2075
|
try {
|
|
2064
|
-
for (const k of
|
|
2065
|
-
k.showCol = !0, t.value[k.value].showCol = !0
|
|
2066
|
-
const $ = await tt(t.value.table.user, c.name, k.value, {
|
|
2076
|
+
for (const k of o.value)
|
|
2077
|
+
k.showCol = !0, t.value[k.value].showCol = !0, await rt(t.value.table.user, f.name, k.value, {
|
|
2067
2078
|
showCol: !0,
|
|
2068
2079
|
width: k.width,
|
|
2069
2080
|
sort: k.sort
|
|
2070
2081
|
});
|
|
2071
|
-
console.log($);
|
|
2072
|
-
}
|
|
2073
2082
|
} catch (k) {
|
|
2074
|
-
console.error("全选列保存信息时出错:", k),
|
|
2083
|
+
console.error("全选列保存信息时出错:", k), Oe({
|
|
2075
2084
|
type: "error",
|
|
2076
2085
|
message: "全选列保存信息失败!"
|
|
2077
2086
|
});
|
|
2078
2087
|
}
|
|
2079
2088
|
}, F = async () => {
|
|
2080
2089
|
try {
|
|
2081
|
-
const k =
|
|
2082
|
-
for (const
|
|
2083
|
-
|
|
2084
|
-
const N = await tt(t.value.table.user, c.name, $.value, {
|
|
2090
|
+
const k = o.value.filter((w) => !w.alwaysShow);
|
|
2091
|
+
for (const w of k)
|
|
2092
|
+
w.showCol = !1, t.value[w.value].showCol = !1, await rt(t.value.table.user, f.name, w.value, {
|
|
2085
2093
|
showCol: !1,
|
|
2086
|
-
width:
|
|
2087
|
-
sort:
|
|
2094
|
+
width: w.width,
|
|
2095
|
+
sort: w.sort
|
|
2088
2096
|
});
|
|
2089
|
-
console.log(N);
|
|
2090
|
-
}
|
|
2091
2097
|
} catch (k) {
|
|
2092
|
-
console.error("清除列保存信息时出错:", k),
|
|
2098
|
+
console.error("清除列保存信息时出错:", k), Oe({
|
|
2093
2099
|
type: "error",
|
|
2094
2100
|
message: "清除列保存信息失败!"
|
|
2095
2101
|
});
|
|
@@ -2100,61 +2106,61 @@ const Sl = {
|
|
|
2100
2106
|
cancelButtonText: "取消",
|
|
2101
2107
|
type: "warning"
|
|
2102
2108
|
}).then(() => {
|
|
2103
|
-
|
|
2104
|
-
|
|
2109
|
+
Sl(t.value.table.user, f.name).then((k) => {
|
|
2110
|
+
window.location.reload();
|
|
2105
2111
|
}).catch((k) => {
|
|
2106
|
-
console.error("复位操作出错:", k),
|
|
2112
|
+
console.error("复位操作出错:", k), Oe({
|
|
2107
2113
|
type: "info",
|
|
2108
2114
|
message: "复位失败!"
|
|
2109
2115
|
});
|
|
2110
2116
|
});
|
|
2111
2117
|
});
|
|
2112
2118
|
};
|
|
2113
|
-
return
|
|
2114
|
-
|
|
2115
|
-
label:
|
|
2119
|
+
return ut(async () => {
|
|
2120
|
+
o.value = Object.entries(t.value).filter(([, k]) => k.visible !== !1).filter(([, k]) => k.type != "hidden").map(([k, w]) => ({
|
|
2121
|
+
label: w.label,
|
|
2116
2122
|
value: k,
|
|
2117
|
-
alwaysShow:
|
|
2118
|
-
showCol:
|
|
2119
|
-
sort:
|
|
2120
|
-
width:
|
|
2121
|
-
})).sort((k,
|
|
2122
|
-
}), (k,
|
|
2123
|
-
const
|
|
2124
|
-
return
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2123
|
+
alwaysShow: w.alwaysShow,
|
|
2124
|
+
showCol: w.showCol !== !1,
|
|
2125
|
+
sort: w.sort || 0,
|
|
2126
|
+
width: w.width || "auto"
|
|
2127
|
+
})).sort((k, w) => k.sort - w.sort), i();
|
|
2128
|
+
}), (k, w) => {
|
|
2129
|
+
const H = I("el-divider"), ee = I("el-alert"), O = I("el-checkbox");
|
|
2130
|
+
return n(), x("div", null, [
|
|
2131
|
+
Q("div", xl, [
|
|
2132
|
+
Q("a", { onClick: E }, "全选"),
|
|
2133
|
+
Z(H, { direction: "vertical" }),
|
|
2134
|
+
Q("a", { onClick: F }, "全不选"),
|
|
2135
|
+
Z(H, { direction: "vertical" }),
|
|
2136
|
+
Q("a", { onClick: T }, "复位")
|
|
2131
2137
|
]),
|
|
2132
|
-
|
|
2138
|
+
Z(ee, {
|
|
2133
2139
|
title: "拖动表格列标题可以改变表格列显示顺序 !",
|
|
2134
2140
|
type: "warning",
|
|
2135
2141
|
"show-icon": "",
|
|
2136
2142
|
closable: !1,
|
|
2137
2143
|
style: { "margin-bottom": "10px" }
|
|
2138
2144
|
}),
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
(
|
|
2142
|
-
modelValue:
|
|
2143
|
-
"onUpdate:modelValue": (
|
|
2144
|
-
"data-id":
|
|
2145
|
-
class:
|
|
2146
|
-
onChange: (
|
|
2145
|
+
Q("div", null, [
|
|
2146
|
+
Q("div", ql, [
|
|
2147
|
+
(n(!0), x(W, null, U(o.value, (Y) => (n(), D(O, {
|
|
2148
|
+
modelValue: Y.showCol,
|
|
2149
|
+
"onUpdate:modelValue": (ie) => Y.showCol = ie,
|
|
2150
|
+
"data-id": Y.value,
|
|
2151
|
+
class: Ft(["check-box-hover", Y.value == "control" ? "filtered" : ""]),
|
|
2152
|
+
onChange: (ie) => e(ie, Y.value),
|
|
2147
2153
|
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" },
|
|
2148
|
-
value:
|
|
2149
|
-
title:
|
|
2150
|
-
disabled:
|
|
2151
|
-
key:
|
|
2154
|
+
value: Y.value,
|
|
2155
|
+
title: Y.label,
|
|
2156
|
+
disabled: Y.alwaysShow,
|
|
2157
|
+
key: Y.value
|
|
2152
2158
|
}, {
|
|
2153
2159
|
default: y(() => [
|
|
2154
|
-
|
|
2155
|
-
textContent:
|
|
2160
|
+
Q("span", {
|
|
2161
|
+
textContent: ye(Y.label),
|
|
2156
2162
|
style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
|
|
2157
|
-
}, null, 8,
|
|
2163
|
+
}, null, 8, Ol)
|
|
2158
2164
|
]),
|
|
2159
2165
|
_: 2
|
|
2160
2166
|
}, 1032, ["modelValue", "onUpdate:modelValue", "data-id", "class", "onChange", "value", "title", "disabled"]))), 128))
|
|
@@ -2163,30 +2169,30 @@ const Sl = {
|
|
|
2163
2169
|
]);
|
|
2164
2170
|
};
|
|
2165
2171
|
}
|
|
2166
|
-
},
|
|
2172
|
+
}, Bl = /* @__PURE__ */ Je(Al, [["__scopeId", "data-v-51f730d2"]]), Il = { class: "g-table-container" }, Yl = {
|
|
2167
2173
|
key: 0,
|
|
2168
2174
|
class: "table-query-container"
|
|
2169
|
-
},
|
|
2175
|
+
}, Ul = { class: "table-container" }, Rl = ["innerHTML"], Ll = { key: 0 }, jl = { style: { display: "flex", "margin-top": "-2px" } }, Hl = { style: { display: "flex", flex: "1" } }, Nl = {
|
|
2170
2176
|
style: { display: "flex", "justify-content": "center", width: "100%", height: "100%" },
|
|
2171
2177
|
id: "table-form"
|
|
2172
|
-
},
|
|
2178
|
+
}, zl = { key: 1 }, Pl = { style: { display: "flex" } }, Wl = { style: { display: "flex", flex: "1" } }, Xl = /* @__PURE__ */ Object.assign({
|
|
2173
2179
|
name: "g-table",
|
|
2174
2180
|
inheritAttrs: !1
|
|
2175
2181
|
}, {
|
|
2176
2182
|
__name: "g-table",
|
|
2177
|
-
props: /* @__PURE__ */
|
|
2183
|
+
props: /* @__PURE__ */ ze({
|
|
2178
2184
|
name: String,
|
|
2179
2185
|
require: !0
|
|
2180
2186
|
}, {
|
|
2181
2187
|
modelValue: { required: !0 },
|
|
2182
2188
|
modelModifiers: {}
|
|
2183
2189
|
}),
|
|
2184
|
-
emits: /* @__PURE__ */
|
|
2185
|
-
setup(
|
|
2186
|
-
var
|
|
2187
|
-
const t =
|
|
2190
|
+
emits: /* @__PURE__ */ ze(["load", "open", "delete", "submit", "reset", "download", "row-save"], ["update:modelValue"]),
|
|
2191
|
+
setup(d, { expose: f, emit: o }) {
|
|
2192
|
+
var Le, nt, tt, st, it, dt, lt;
|
|
2193
|
+
const t = o, e = Pe(d, "modelValue"), i = kt("options"), E = le({}), F = le(null), T = le(null), k = Object.entries(e.value).filter(([l, u]) => (u == null ? void 0 : u.search) !== void 0).map(([l, u]) => [l, u.value]);
|
|
2188
2194
|
E.value = Object.fromEntries(k);
|
|
2189
|
-
const
|
|
2195
|
+
const w = le(!1), H = ["type", "index", "label", "column-key", "prop", "width", "min-width", "fixed", "render-header", "sortable", "sort-method", "sort-by", "sort-orders", "resizable", "formatter", "show-overflow-tooltip", "align", "header-align", "class-name", "label-class-name", "selectable", "reserve-selection", "filters", "filter-placement", "filter-class-name", "filter-multiple", "filter-method", "filtered-value"], ee = le([]), O = d, Y = _t(), ie = le({}), re = le([]), J = le(null), ve = le(""), ge = le({
|
|
2190
2196
|
autoWatch: !1,
|
|
2191
2197
|
data: [],
|
|
2192
2198
|
border: !0,
|
|
@@ -2197,28 +2203,28 @@ const Sl = {
|
|
|
2197
2203
|
load: () => {
|
|
2198
2204
|
let { currentPage: l, pageSize: u } = e.value.table.page;
|
|
2199
2205
|
try {
|
|
2200
|
-
t("load", { currentPage: l, pageSize: u, ...E.value }, (m,
|
|
2201
|
-
var
|
|
2206
|
+
t("load", { currentPage: l, pageSize: u, ...E.value }, (m, V, { fields: N = [], sums: P = {} } = {}) => {
|
|
2207
|
+
var te, Ee;
|
|
2202
2208
|
if (!Array.isArray(m)) {
|
|
2203
|
-
console.error("从 load 事件回调中接收到的数据不是数组格式。"),
|
|
2209
|
+
console.error("从 load 事件回调中接收到的数据不是数组格式。"), Oe.error("数据加载失败,请检查数据格式。");
|
|
2204
2210
|
return;
|
|
2205
2211
|
}
|
|
2206
|
-
if (typeof
|
|
2207
|
-
console.error("从 load 事件回调中接收到的 total 不是数字格式。"),
|
|
2212
|
+
if (typeof V != "number") {
|
|
2213
|
+
console.error("从 load 事件回调中接收到的 total 不是数字格式。"), Oe.error("数据加载失败,请检查数据格式。");
|
|
2208
2214
|
return;
|
|
2209
2215
|
}
|
|
2210
|
-
e.value.table.data = m, ((
|
|
2211
|
-
},
|
|
2216
|
+
e.value.table.data = m, ((Ee = (te = e.value.control) == null ? void 0 : te.add) == null ? void 0 : Ee.inline) === !0 && e.value.table.data.unshift(J.value), e.value.table.page.total = V, re.value = N, ie.value = P, Fe(), ve.value = Math.random().toString(36).substring(2);
|
|
2217
|
+
}, J.value);
|
|
2212
2218
|
} catch (m) {
|
|
2213
|
-
console.error("触发 load 事件时出现错误:", m),
|
|
2219
|
+
console.error("触发 load 事件时出现错误:", m), Oe.error("数据加载时出现错误,请稍后重试。");
|
|
2214
2220
|
}
|
|
2215
2221
|
},
|
|
2216
2222
|
onHeaderDragend: (l, u, m) => {
|
|
2217
|
-
var
|
|
2218
|
-
|
|
2223
|
+
var V;
|
|
2224
|
+
rt((V = e.value.table) == null ? void 0 : V.user, O.name, m.property, { width: l });
|
|
2219
2225
|
},
|
|
2220
2226
|
onRowDblclick: (l, u, m) => {
|
|
2221
|
-
e.value.table.dblclickType == "edit" ?
|
|
2227
|
+
e.value.table.dblclickType == "edit" ? p(l, u, m, e) : e.value.table.dblclickType == "view" && v(l, u, m, e);
|
|
2222
2228
|
},
|
|
2223
2229
|
style: { "min-height": "100px", backgroundColor: "var(--el-bg-color)" },
|
|
2224
2230
|
page: {
|
|
@@ -2243,22 +2249,23 @@ const Sl = {
|
|
|
2243
2249
|
},
|
|
2244
2250
|
dblclickType: "edit",
|
|
2245
2251
|
"summary-method": ({ columns: l, data: u }, m) => m,
|
|
2246
|
-
onSortChange: ({ column: l, prop: u, order: m },
|
|
2252
|
+
onSortChange: ({ column: l, prop: u, order: m }, V) => {
|
|
2247
2253
|
}
|
|
2248
2254
|
});
|
|
2249
|
-
e.value.table =
|
|
2250
|
-
|
|
2251
|
-
|
|
2255
|
+
e.value.table = xe(
|
|
2256
|
+
ge.value,
|
|
2257
|
+
i == null ? void 0 : i.table,
|
|
2252
2258
|
e.value.table,
|
|
2253
|
-
|
|
2259
|
+
Y
|
|
2254
2260
|
// 继承父组件的属性
|
|
2255
2261
|
);
|
|
2256
|
-
const
|
|
2262
|
+
const be = {
|
|
2257
2263
|
type: "control",
|
|
2258
2264
|
label: "操作",
|
|
2259
|
-
|
|
2265
|
+
align: "center",
|
|
2266
|
+
"min-width": 100,
|
|
2260
2267
|
fixed: "right",
|
|
2261
|
-
style: { ...(
|
|
2268
|
+
style: { ...(nt = (Le = e.value) == null ? void 0 : Le.control) == null ? void 0 : nt.style },
|
|
2262
2269
|
validate: async (l) => await !0,
|
|
2263
2270
|
add: {
|
|
2264
2271
|
label: "新增",
|
|
@@ -2281,8 +2288,8 @@ const Sl = {
|
|
|
2281
2288
|
type: "primary",
|
|
2282
2289
|
mode: "dialog",
|
|
2283
2290
|
auth: (l, u, m) => {
|
|
2284
|
-
var
|
|
2285
|
-
return ((
|
|
2291
|
+
var V, N, P;
|
|
2292
|
+
return ((P = (N = (V = e.value) == null ? void 0 : V.control) == null ? void 0 : N.add) == null ? void 0 : P.inline) === !1;
|
|
2286
2293
|
}
|
|
2287
2294
|
},
|
|
2288
2295
|
delete: {
|
|
@@ -2290,8 +2297,8 @@ const Sl = {
|
|
|
2290
2297
|
label: "删除",
|
|
2291
2298
|
type: "danger",
|
|
2292
2299
|
auth: (l, u, m) => {
|
|
2293
|
-
var
|
|
2294
|
-
return !(((
|
|
2300
|
+
var V, N, P;
|
|
2301
|
+
return !(((P = (N = (V = e.value) == null ? void 0 : V.control) == null ? void 0 : N.add) == null ? void 0 : P.inline) === !0 && m === 0);
|
|
2295
2302
|
},
|
|
2296
2303
|
dialog: {
|
|
2297
2304
|
message: "此操作将永久删除该文件, 是否继续?",
|
|
@@ -2325,42 +2332,42 @@ const Sl = {
|
|
|
2325
2332
|
return ((m = (u = (l = e.value) == null ? void 0 : l.control) == null ? void 0 : u.add) == null ? void 0 : m.inline) === !0;
|
|
2326
2333
|
}
|
|
2327
2334
|
},
|
|
2328
|
-
dropdown: (l, u, m,
|
|
2335
|
+
dropdown: (l, u, m, V) => ({
|
|
2329
2336
|
label: "编辑",
|
|
2330
2337
|
operate: "edit",
|
|
2331
2338
|
"split-button": !0,
|
|
2332
2339
|
type: "primary",
|
|
2333
2340
|
size: "small",
|
|
2334
|
-
auth: () => !(
|
|
2341
|
+
auth: () => !(V.control.add.inline === !0 && m == 0),
|
|
2335
2342
|
onClick: () => {
|
|
2336
|
-
var
|
|
2337
|
-
let
|
|
2338
|
-
|
|
2343
|
+
var P;
|
|
2344
|
+
let N = (P = de(l, u, m, V)) == null ? void 0 : P.operate;
|
|
2345
|
+
N === "edit" ? p(l, u, m, V) : N === "delete" ? a(l, u, m, V) : N === "view" && v(l, u, m, V);
|
|
2339
2346
|
},
|
|
2340
2347
|
"button-props": { round: !0, plain: !0 }
|
|
2341
2348
|
})
|
|
2342
2349
|
};
|
|
2343
|
-
e.value.control =
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
(
|
|
2350
|
+
e.value.control = xe(
|
|
2351
|
+
be,
|
|
2352
|
+
i == null ? void 0 : i.control,
|
|
2353
|
+
(tt = e.value) == null ? void 0 : tt.control
|
|
2347
2354
|
);
|
|
2348
|
-
const
|
|
2349
|
-
var
|
|
2355
|
+
const de = (l, u, m, V) => {
|
|
2356
|
+
var Ee, Ce, Ie, c, X, ce;
|
|
2350
2357
|
if (!l || !u || m == null)
|
|
2351
2358
|
return console.warn("mergeDropdown: 缺少必要的参数(row, column或index)"), {};
|
|
2352
|
-
const
|
|
2353
|
-
return
|
|
2354
|
-
},
|
|
2359
|
+
const N = ((Ee = be.dropdown) == null ? void 0 : Ee.call(be, l, u, m, V)) || {}, P = ((Ie = (Ce = i == null ? void 0 : i.control) == null ? void 0 : Ce.dropdown) == null ? void 0 : Ie.call(Ce, l, u, m, V)) || {}, te = ((ce = (X = (c = e.value) == null ? void 0 : c.control) == null ? void 0 : X.dropdown) == null ? void 0 : ce.call(X, l, u, m, V)) || {};
|
|
2360
|
+
return xe(N, P, te) || {};
|
|
2361
|
+
}, fe = {
|
|
2355
2362
|
type: "hidden",
|
|
2356
|
-
|
|
2363
|
+
"min-width": 100,
|
|
2357
2364
|
align: "center",
|
|
2358
|
-
formatter: (l, u, m,
|
|
2365
|
+
formatter: (l, u, m, V) => m
|
|
2359
2366
|
};
|
|
2360
|
-
e.value.tableColumns =
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
(
|
|
2367
|
+
e.value.tableColumns = xe(
|
|
2368
|
+
fe,
|
|
2369
|
+
i == null ? void 0 : i.tableColumns,
|
|
2370
|
+
(st = e.value) == null ? void 0 : st.tableColumns
|
|
2364
2371
|
);
|
|
2365
2372
|
const ne = {
|
|
2366
2373
|
type: "hidden",
|
|
@@ -2368,24 +2375,24 @@ const Sl = {
|
|
|
2368
2375
|
footer: { hidden: !1 },
|
|
2369
2376
|
modalState: void 0
|
|
2370
2377
|
};
|
|
2371
|
-
e.value.form =
|
|
2378
|
+
e.value.form = xe(
|
|
2372
2379
|
ne,
|
|
2373
|
-
|
|
2374
|
-
(
|
|
2380
|
+
i == null ? void 0 : i.form,
|
|
2381
|
+
(it = e.value) == null ? void 0 : it.form
|
|
2375
2382
|
);
|
|
2376
|
-
const
|
|
2383
|
+
const ae = {
|
|
2377
2384
|
type: "hidden",
|
|
2378
2385
|
labelPosition: "right",
|
|
2379
2386
|
style: {
|
|
2380
2387
|
width: "100%"
|
|
2381
2388
|
}
|
|
2382
2389
|
};
|
|
2383
|
-
e.value.formItems =
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
(
|
|
2390
|
+
e.value.formItems = xe(
|
|
2391
|
+
ae,
|
|
2392
|
+
i == null ? void 0 : i.formItems,
|
|
2393
|
+
(dt = e == null ? void 0 : e.value) == null ? void 0 : dt.formItems
|
|
2387
2394
|
);
|
|
2388
|
-
const
|
|
2395
|
+
const $e = {
|
|
2389
2396
|
title: "编辑",
|
|
2390
2397
|
mode: "drawer",
|
|
2391
2398
|
type: "hidden",
|
|
@@ -2397,241 +2404,241 @@ const Sl = {
|
|
|
2397
2404
|
overflow: !0,
|
|
2398
2405
|
max: {
|
|
2399
2406
|
style: {},
|
|
2400
|
-
icon: () =>
|
|
2407
|
+
icon: () => Ae(Zt)
|
|
2401
2408
|
},
|
|
2402
2409
|
min: {
|
|
2403
2410
|
style: {},
|
|
2404
|
-
icon: () =>
|
|
2411
|
+
icon: () => Ae(Jt)
|
|
2405
2412
|
// 最小化图标
|
|
2406
2413
|
}
|
|
2407
2414
|
};
|
|
2408
|
-
e.value.dialog =
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
(
|
|
2415
|
+
e.value.dialog = xe(
|
|
2416
|
+
$e,
|
|
2417
|
+
i == null ? void 0 : i.dialog,
|
|
2418
|
+
(lt = e.value) == null ? void 0 : lt.dialog
|
|
2412
2419
|
);
|
|
2413
2420
|
const se = (l, u) => {
|
|
2414
2421
|
let m = u;
|
|
2415
|
-
if (l.decimals && !isNaN(parseFloat(u)) && (typeof l.decimals == "number" ? m = parseFloat(m).toFixed(l.decimals) : typeof l.decimals == "object" && l.decimals.num && (l.decimals.pad ? m = parseFloat(m).toFixed(l.decimals.num) : m = parseFloat(parseFloat(m).toFixed(l.decimals.num)).toString())), ["date", "datetime", "time", "time-select"].includes(l.type) &&
|
|
2416
|
-
const
|
|
2422
|
+
if (l.decimals && !isNaN(parseFloat(u)) && (typeof l.decimals == "number" ? m = parseFloat(m).toFixed(l.decimals) : typeof l.decimals == "object" && l.decimals.num && (l.decimals.pad ? m = parseFloat(m).toFixed(l.decimals.num) : m = parseFloat(parseFloat(m).toFixed(l.decimals.num)).toString())), ["date", "datetime", "time", "time-select"].includes(l.type) && yt(u).isValid()) {
|
|
2423
|
+
const N = {
|
|
2417
2424
|
date: "YYYY-MM-DD",
|
|
2418
2425
|
datetime: "YYYY-MM-DD HH:mm:ss",
|
|
2419
2426
|
time: "HH:mm:ss"
|
|
2420
2427
|
};
|
|
2421
|
-
m = l.format ?
|
|
2428
|
+
m = l.format ? yt(m).format(l.format) : yt(m).format(N[l.type]);
|
|
2422
2429
|
}
|
|
2423
|
-
return l.type === "money" && (l.align = l.align || "right", l.width = l.width || 130, m = `<span title="${
|
|
2430
|
+
return l.type === "money" && (l.align = l.align || "right", l.width = l.width || 130, m = `<span title="${Et(parseFloat(m))}">${ia(parseFloat(m))}</span>`), l.prefix && m && (m = `<span>${l.prefix}${m}</span>`), l.suffix && m && (m = `${m}<span>${l.suffix}</span>`), m;
|
|
2424
2431
|
}, b = (l) => {
|
|
2425
2432
|
E.value = Object.fromEntries(k), e.value.table.load();
|
|
2426
|
-
},
|
|
2433
|
+
}, r = (l) => {
|
|
2427
2434
|
E.value = l, e.value.table.load();
|
|
2428
2435
|
}, _ = async (l) => {
|
|
2429
2436
|
var u, m;
|
|
2430
2437
|
e.value.form.modalState = "add";
|
|
2431
2438
|
try {
|
|
2432
2439
|
if (!await ((u = e.value.control) == null ? void 0 : u.validate("add", { m: l }))) return;
|
|
2433
|
-
} catch (
|
|
2434
|
-
console.error("验证失败:",
|
|
2440
|
+
} catch (V) {
|
|
2441
|
+
console.error("验证失败:", V);
|
|
2435
2442
|
return;
|
|
2436
2443
|
}
|
|
2437
|
-
(m = e.value.control.add) != null && m.click ? e.value.control.add.click(l) : e.value.control.add.inline === !0 ? (e.value.table.data.unshift(
|
|
2438
|
-
e.value[
|
|
2439
|
-
}),
|
|
2440
|
-
},
|
|
2441
|
-
var
|
|
2444
|
+
(m = e.value.control.add) != null && m.click ? e.value.control.add.click(l) : e.value.control.add.inline === !0 ? (e.value.table.data.unshift(J.value), t("open", "row-add", { initFormData: J.value })) : (e.value.form.disabled = !1, e.value.dialog.mode = e.value.control.add.mode, e.value.dialog.title = e.value.control.add.label, Object.keys(J.value).forEach((V) => {
|
|
2445
|
+
e.value[V] && (e.value[V].value = J.value[V]);
|
|
2446
|
+
}), w.value = !0, t("open", "add", { m: l }), pt());
|
|
2447
|
+
}, p = async (l, u, m, V) => {
|
|
2448
|
+
var N, P;
|
|
2442
2449
|
e.value.form.modalState = "edit";
|
|
2443
2450
|
try {
|
|
2444
|
-
if (!await ((
|
|
2445
|
-
} catch (
|
|
2446
|
-
console.error("验证失败:",
|
|
2451
|
+
if (!await ((N = e.value.control) == null ? void 0 : N.validate("edit", { row: l, column: u, $index: m, m: V }))) return;
|
|
2452
|
+
} catch (te) {
|
|
2453
|
+
console.error("验证失败:", te);
|
|
2447
2454
|
return;
|
|
2448
2455
|
}
|
|
2449
|
-
(
|
|
2450
|
-
e.value[
|
|
2451
|
-
}),
|
|
2452
|
-
}, a = async (l, u, m,
|
|
2453
|
-
var
|
|
2456
|
+
(P = e.value.control.edit) != null && P.click ? e.value.control.edit.click(l, u, m, V) : (e.value.form.disabled = !1, e.value.dialog.mode = e.value.control.edit.mode, e.value.dialog.title = e.value.control.edit.label, Object.keys(l).forEach((te) => {
|
|
2457
|
+
e.value[te] && (e.value[te].value = l[te]);
|
|
2458
|
+
}), w.value = !0, t("open", "edit", { m: V, row: l, column: u, $index: m }), pt());
|
|
2459
|
+
}, a = async (l, u, m, V) => {
|
|
2460
|
+
var N, P;
|
|
2454
2461
|
try {
|
|
2455
|
-
if (!await ((
|
|
2456
|
-
} catch (
|
|
2457
|
-
console.error("验证失败:",
|
|
2462
|
+
if (!await ((N = e.value.control) == null ? void 0 : N.validate("delete", { row: l, column: u, $index: m, m: V }))) return;
|
|
2463
|
+
} catch (te) {
|
|
2464
|
+
console.error("验证失败:", te);
|
|
2458
2465
|
return;
|
|
2459
2466
|
}
|
|
2460
|
-
if ((
|
|
2461
|
-
e.value.control.delete.click(l, u, m,
|
|
2467
|
+
if ((P = e.value.control.delete) != null && P.click)
|
|
2468
|
+
e.value.control.delete.click(l, u, m, V);
|
|
2462
2469
|
else {
|
|
2463
|
-
let { message:
|
|
2464
|
-
Vt.confirm(
|
|
2465
|
-
t("delete", { row: l, column: u, $index: m }, (
|
|
2466
|
-
|
|
2470
|
+
let { message: te, title: Ee, options: Ce } = e.value.control.delete.dialog;
|
|
2471
|
+
Vt.confirm(te, Ee, Ce).then(() => {
|
|
2472
|
+
t("delete", { row: l, column: u, $index: m }, (Ie = !0, c = !1) => {
|
|
2473
|
+
Ie && (e.value.table.data.splice(m, 1), e.value.table.page.total--), c && e.value.table.load();
|
|
2467
2474
|
});
|
|
2468
2475
|
}).catch(() => {
|
|
2469
2476
|
});
|
|
2470
2477
|
}
|
|
2471
|
-
},
|
|
2472
|
-
var
|
|
2478
|
+
}, v = async (l, u, m, V) => {
|
|
2479
|
+
var N, P;
|
|
2473
2480
|
e.value.form.modalState = void 0;
|
|
2474
2481
|
try {
|
|
2475
|
-
if (!await ((
|
|
2476
|
-
} catch (
|
|
2477
|
-
console.error("验证失败:",
|
|
2482
|
+
if (!await ((N = e.value.control) == null ? void 0 : N.validate("view", { row: l, column: u, $index: m, m: V }))) return;
|
|
2483
|
+
} catch (te) {
|
|
2484
|
+
console.error("验证失败:", te);
|
|
2478
2485
|
return;
|
|
2479
2486
|
}
|
|
2480
|
-
(
|
|
2481
|
-
e.value[
|
|
2482
|
-
}),
|
|
2483
|
-
}, g = (l, u, m,
|
|
2484
|
-
var
|
|
2485
|
-
(
|
|
2486
|
-
|
|
2487
|
-
|
|
2487
|
+
(P = e.value.control.view) != null && P.click ? e.value.control.view.click(l, u, m, V) : (e.value.form.disabled = !0, e.value.dialog.mode = e.value.control.view.mode, e.value.dialog.title = e.value.control.view.label, Object.keys(l).forEach((te) => {
|
|
2488
|
+
e.value[te] && (e.value[te].value = l[te]);
|
|
2489
|
+
}), w.value = !0, t("open", "view", { m: V, row: l, column: u, $index: m }), pt());
|
|
2490
|
+
}, g = (l, u, m, V) => {
|
|
2491
|
+
var N;
|
|
2492
|
+
(N = e.value.control.save) != null && N.click ? e.value.control.save.click(l, u, m, V) : t("row-save", { row: l, column: u, $index: m, data: e.value.table.data }, (P = !0, te = !0) => {
|
|
2493
|
+
P && e.value.table.load(), te && et(() => {
|
|
2494
|
+
J.value = Object.assign({}, Object.fromEntries(Object.entries(Ve(e.value, (Ee, Ce) => Ce.type != "control" && Ce.editor !== !1 && Ce.type != "hidden")).map(([Ee, Ce]) => [Ee, Ce.value])));
|
|
2488
2495
|
});
|
|
2489
2496
|
});
|
|
2490
2497
|
}, s = (l, u) => {
|
|
2491
2498
|
t("submit", e.value.form.modalState, l, u, (m) => {
|
|
2492
|
-
m && (
|
|
2499
|
+
m && (w.value = !1, u.table.load());
|
|
2493
2500
|
});
|
|
2494
|
-
},
|
|
2501
|
+
}, M = (l) => {
|
|
2495
2502
|
t("reset", l);
|
|
2496
2503
|
}, C = (l, u) => {
|
|
2497
2504
|
var m;
|
|
2498
2505
|
if ((m = l.control.download) != null && m.click)
|
|
2499
2506
|
l.control.download.click(l, u);
|
|
2500
2507
|
else {
|
|
2501
|
-
let
|
|
2508
|
+
let V = wt({
|
|
2502
2509
|
title: l.control.download.label,
|
|
2503
2510
|
size: 480,
|
|
2504
2511
|
width: 600,
|
|
2505
2512
|
slots: {
|
|
2506
|
-
default: () =>
|
|
2513
|
+
default: () => Ae(Ml, {
|
|
2507
2514
|
items: u,
|
|
2508
2515
|
commitText: l.control.download.excelLabel,
|
|
2509
|
-
onExcel: (
|
|
2510
|
-
t("download",
|
|
2516
|
+
onExcel: (N, P) => {
|
|
2517
|
+
t("download", N, P), V();
|
|
2511
2518
|
}
|
|
2512
2519
|
})
|
|
2513
2520
|
}
|
|
2514
2521
|
}, l.control.download.mode);
|
|
2515
2522
|
}
|
|
2516
|
-
},
|
|
2523
|
+
}, R = (l) => {
|
|
2517
2524
|
var u;
|
|
2518
|
-
(u = l.control.setting) != null && u.click ? l.control.setting.click(l) :
|
|
2525
|
+
(u = l.control.setting) != null && u.click ? l.control.setting.click(l) : wt({
|
|
2519
2526
|
title: l.control.setting.label,
|
|
2520
2527
|
size: 470,
|
|
2521
2528
|
width: 600,
|
|
2522
2529
|
slots: {
|
|
2523
|
-
default: () =>
|
|
2530
|
+
default: () => Ae(Bl, {
|
|
2524
2531
|
modelValue: l,
|
|
2525
|
-
name:
|
|
2532
|
+
name: O.name
|
|
2526
2533
|
})
|
|
2527
2534
|
}
|
|
2528
2535
|
}, l.control.setting.mode);
|
|
2529
|
-
},
|
|
2536
|
+
}, G = e.value.control, q = [
|
|
2530
2537
|
{ type: "add", func: _ },
|
|
2531
2538
|
{ type: "download", func: C },
|
|
2532
|
-
{ type: "setting", func:
|
|
2533
|
-
{ type: "view", func:
|
|
2534
|
-
{ type: "edit", func:
|
|
2539
|
+
{ type: "setting", func: R },
|
|
2540
|
+
{ type: "view", func: v },
|
|
2541
|
+
{ type: "edit", func: p },
|
|
2535
2542
|
{ type: "delete", func: a },
|
|
2536
2543
|
{ type: "save", func: g }
|
|
2537
|
-
], A = (l) =>
|
|
2538
|
-
var
|
|
2544
|
+
], A = (l) => q.filter((u) => l.includes(u.type)).map(({ type: u, func: m }) => {
|
|
2545
|
+
var V, N, P;
|
|
2539
2546
|
return {
|
|
2540
2547
|
name: `control-${u}`,
|
|
2541
|
-
attr:
|
|
2548
|
+
attr: G == null ? void 0 : G[u],
|
|
2542
2549
|
func: m,
|
|
2543
|
-
label: (
|
|
2544
|
-
sort: ((
|
|
2545
|
-
groupName: ((
|
|
2550
|
+
label: (V = G == null ? void 0 : G[u]) == null ? void 0 : V.label,
|
|
2551
|
+
sort: ((N = G == null ? void 0 : G[u]) == null ? void 0 : N.sort) || 0,
|
|
2552
|
+
groupName: ((P = G == null ? void 0 : G[u]) == null ? void 0 : P.groupName) || "default"
|
|
2546
2553
|
};
|
|
2547
2554
|
}).sort((u, m) => u.sort - m.sort), ue = (l) => A(l).reduce((u, m) => {
|
|
2548
|
-
const
|
|
2549
|
-
return u[
|
|
2550
|
-
}, {}),
|
|
2555
|
+
const V = m.groupName || "default";
|
|
2556
|
+
return u[V] || (u[V] = []), u[V].push(m), u;
|
|
2557
|
+
}, {}), _e = Ze(() => Object.fromEntries(
|
|
2551
2558
|
Object.entries(e.value).filter(([l, u]) => u.type !== "hidden").filter(([l, u]) => u.visible !== !1).filter(([l, u]) => u.showCol !== !1).map(([l, u]) => (u.sort = typeof u.sort == "number" ? u.sort : 0, [l, u])).sort((l, u) => l[1].sort - u[1].sort)
|
|
2552
|
-
)),
|
|
2553
|
-
const m = (
|
|
2554
|
-
for (const
|
|
2555
|
-
if (
|
|
2556
|
-
if (
|
|
2557
|
-
const
|
|
2558
|
-
if (
|
|
2559
|
+
)), ke = le({}), Se = (l, u) => {
|
|
2560
|
+
const m = (V, N) => {
|
|
2561
|
+
for (const P of V) {
|
|
2562
|
+
if (P.value == N) return P.label;
|
|
2563
|
+
if (P.children) {
|
|
2564
|
+
const te = m(P.children, N);
|
|
2565
|
+
if (te) return te;
|
|
2559
2566
|
}
|
|
2560
2567
|
}
|
|
2561
2568
|
return null;
|
|
2562
2569
|
};
|
|
2563
2570
|
if (l.getDicts) {
|
|
2564
|
-
const
|
|
2565
|
-
return
|
|
2566
|
-
|
|
2571
|
+
const V = u.toString();
|
|
2572
|
+
return ke.value[V] ? (l.options = ke.value[V], l.formatter || (l.formatter = (N, P, te, Ee) => l.options && m(l.options, te) || te), Promise.resolve()) : l.getDicts(e.value.table.data).then((N) => {
|
|
2573
|
+
ke.value[V] = N, l.options = N, l.formatter || (l.formatter = (P, te, Ee, Ce) => l.options && m(l.options, Ee) || Ee);
|
|
2567
2574
|
});
|
|
2568
2575
|
}
|
|
2569
2576
|
return Promise.resolve();
|
|
2570
|
-
},
|
|
2577
|
+
}, Fe = () => {
|
|
2571
2578
|
const l = [];
|
|
2572
2579
|
Object.keys(e.value).forEach((u) => {
|
|
2573
2580
|
if (e.value[u].getDicts) {
|
|
2574
|
-
const m =
|
|
2575
|
-
e.value.table.data.forEach((
|
|
2576
|
-
var
|
|
2577
|
-
if (e.value[u].getDicts && ((
|
|
2578
|
-
const
|
|
2579
|
-
|
|
2581
|
+
const m = Se(e.value[u], u).then(() => {
|
|
2582
|
+
e.value.table.data.forEach((V) => {
|
|
2583
|
+
var N;
|
|
2584
|
+
if (e.value[u].getDicts && ((N = e.value[u]) == null ? void 0 : N.forceString) !== !1) {
|
|
2585
|
+
const P = V[u];
|
|
2586
|
+
V[u] = P != null ? P.toString() : P;
|
|
2580
2587
|
}
|
|
2581
2588
|
});
|
|
2582
|
-
}).catch((
|
|
2583
|
-
console.error(`加载字典${u}出错:`,
|
|
2589
|
+
}).catch((V) => {
|
|
2590
|
+
console.error(`加载字典${u}出错:`, V);
|
|
2584
2591
|
});
|
|
2585
2592
|
l.push(m);
|
|
2586
2593
|
}
|
|
2587
2594
|
}), Promise.all(l).catch((u) => {
|
|
2588
2595
|
console.error("字典加载过程中发生错误:", u);
|
|
2589
2596
|
});
|
|
2590
|
-
},
|
|
2591
|
-
var
|
|
2592
|
-
return l.table ? (
|
|
2593
|
-
},
|
|
2597
|
+
}, we = (l, u, m, V) => {
|
|
2598
|
+
var N, P;
|
|
2599
|
+
return l.table ? (N = l.table(u, m, V)) != null && N.auth ? (P = l.table(u, m, V)) == null ? void 0 : P.auth(u, m, V) : !0 : !1;
|
|
2600
|
+
}, Te = (l, u) => l.name === "control-save" && u === 0 && e.value.control.add.inline === !0 ? l.attr.addLabel : l.label, Re = () => {
|
|
2594
2601
|
if (e.value.dialog.mode == "drawer")
|
|
2595
2602
|
T.value.handleClose();
|
|
2596
2603
|
else if (e.value.dialog.mode == "dialog")
|
|
2597
2604
|
try {
|
|
2598
2605
|
F.value.handleClose();
|
|
2599
2606
|
} catch {
|
|
2600
|
-
|
|
2607
|
+
w.value = !1;
|
|
2601
2608
|
}
|
|
2602
2609
|
else
|
|
2603
|
-
|
|
2610
|
+
w.value = !1;
|
|
2604
2611
|
};
|
|
2605
|
-
return
|
|
2612
|
+
return zt(() => {
|
|
2606
2613
|
e.value.table.autoWatch && e.value.table.load();
|
|
2607
|
-
}),
|
|
2614
|
+
}), ut(async () => {
|
|
2608
2615
|
var l;
|
|
2609
|
-
if (ee.value = Object.values(e.value).filter((u) => u.type !== "hidden").filter((u) => u.type !== "control").filter((u) => u.visible !== !1).map((u) => ({ key: u.key || "", label: u.label, value: !0 })),
|
|
2610
|
-
|
|
2611
|
-
Object.entries(
|
|
2616
|
+
if (ee.value = Object.values(e.value).filter((u) => u.type !== "hidden").filter((u) => u.type !== "control").filter((u) => u.visible !== !1).map((u) => ({ key: u.key || "", label: u.label, value: !0 })), et(() => {
|
|
2617
|
+
J.value = Object.assign({}, Object.fromEntries(
|
|
2618
|
+
Object.entries(Ve(e.value, (u, m) => m.type != "control" && m.editor !== !1 && m.type != "hidden")).map(([u, m]) => [u, m.value])
|
|
2612
2619
|
));
|
|
2613
2620
|
}), !((l = e.value.table) != null && l.user)) {
|
|
2614
|
-
|
|
2621
|
+
Oe.error("必须给使用此表格的用户一个名字!");
|
|
2615
2622
|
return;
|
|
2616
2623
|
}
|
|
2617
|
-
if (!
|
|
2618
|
-
|
|
2624
|
+
if (!O.name) {
|
|
2625
|
+
Oe.error("必须给表格一个唯一的name属性");
|
|
2619
2626
|
return;
|
|
2620
2627
|
}
|
|
2621
2628
|
try {
|
|
2622
|
-
let u = await
|
|
2629
|
+
let u = await Fl(O.name);
|
|
2623
2630
|
if (u) {
|
|
2624
|
-
if (
|
|
2625
|
-
|
|
2631
|
+
if (O.name !== u.name) {
|
|
2632
|
+
Oe.error("此表格已经存在,请换一个名字!");
|
|
2626
2633
|
return;
|
|
2627
2634
|
}
|
|
2628
2635
|
} else
|
|
2629
|
-
await
|
|
2636
|
+
await Tl({ name: O.name });
|
|
2630
2637
|
} catch (u) {
|
|
2631
|
-
console.error("检查表格名称时出现错误:", u),
|
|
2638
|
+
console.error("检查表格名称时出现错误:", u), Oe.error("检查表格名称时出现错误,请稍后重试。");
|
|
2632
2639
|
}
|
|
2633
2640
|
try {
|
|
2634
|
-
const u = await
|
|
2641
|
+
const u = await Vl(e.value.table.user, O.name);
|
|
2635
2642
|
u && u.forEach((m) => {
|
|
2636
2643
|
e.value[m.key] && (e.value[m.key].width = m.width, e.value[m.key].showCol = m.showCol, e.value[m.key].sort = m.sort);
|
|
2637
2644
|
});
|
|
@@ -2639,79 +2646,79 @@ const Sl = {
|
|
|
2639
2646
|
console.error("Error fetching table column settings:", u);
|
|
2640
2647
|
}
|
|
2641
2648
|
e.value.table.autoWatch || e.value.table.load();
|
|
2642
|
-
}),
|
|
2649
|
+
}), f({
|
|
2643
2650
|
addRow: _,
|
|
2644
|
-
editRow:
|
|
2651
|
+
editRow: p,
|
|
2645
2652
|
deleteRow: a,
|
|
2646
|
-
readForm:
|
|
2653
|
+
readForm: v,
|
|
2647
2654
|
saveRowData: g,
|
|
2648
|
-
closeDialog:
|
|
2655
|
+
closeDialog: Re
|
|
2649
2656
|
}), (l, u) => {
|
|
2650
|
-
var
|
|
2651
|
-
const m =
|
|
2652
|
-
return
|
|
2653
|
-
|
|
2654
|
-
((
|
|
2657
|
+
var ce, Ye, Ke, Qe, ft;
|
|
2658
|
+
const m = I("el-button-group"), V = I("el-dropdown-item"), N = I("el-dropdown-menu"), P = I("el-dropdown"), te = I("el-table-column"), Ee = I("el-table"), Ce = I("el-pagination"), Ie = I("el-icon"), c = I("el-dialog"), X = I("el-drawer");
|
|
2659
|
+
return n(), x(W, null, [
|
|
2660
|
+
Q("div", Il, [
|
|
2661
|
+
((Ye = (ce = e.value) == null ? void 0 : ce.query) == null ? void 0 : Ye.hidden) != !0 ? (n(), x("div", Yl, [
|
|
2655
2662
|
h(l.$slots, "query", {}, () => [
|
|
2656
|
-
|
|
2663
|
+
Z(bl, {
|
|
2657
2664
|
modelValue: e.value,
|
|
2658
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
2665
|
+
"onUpdate:modelValue": u[0] || (u[0] = (j) => e.value = j),
|
|
2659
2666
|
info: E.value,
|
|
2660
|
-
"onUpdate:info": u[1] || (u[1] = (
|
|
2661
|
-
onQuery:
|
|
2667
|
+
"onUpdate:info": u[1] || (u[1] = (j) => E.value = j),
|
|
2668
|
+
onQuery: r,
|
|
2662
2669
|
onReset: b
|
|
2663
|
-
},
|
|
2670
|
+
}, me({
|
|
2664
2671
|
"q-btns": y(() => [
|
|
2665
2672
|
h(l.$slots, "q-btns", {}, () => [
|
|
2666
|
-
(
|
|
2667
|
-
oe == "default" ? (
|
|
2668
|
-
h(l.$slots,
|
|
2669
|
-
(
|
|
2670
|
-
|
|
2673
|
+
(n(!0), x(W, null, U(ue(["add", "download", "setting"]), (j, oe) => (n(), x(W, null, [
|
|
2674
|
+
oe == "default" ? (n(!0), x(W, { key: 0 }, U(j, ($) => (n(), x(W, null, [
|
|
2675
|
+
h(l.$slots, $.name + "-left", {}, void 0, !0),
|
|
2676
|
+
($.name === "control-add" ? $.attr.auth() && $.attr.inline === !1 : $.attr.auth()) ? h(l.$slots, $.name, { key: 0 }, () => [
|
|
2677
|
+
$.label ? (n(), D(L(De), S({
|
|
2671
2678
|
key: 0,
|
|
2672
|
-
title:
|
|
2679
|
+
title: $.label,
|
|
2673
2680
|
ref_for: !0
|
|
2674
|
-
},
|
|
2675
|
-
onClick: (
|
|
2681
|
+
}, $.attr, {
|
|
2682
|
+
onClick: (z) => $.func(e.value, ee.value)
|
|
2676
2683
|
}), {
|
|
2677
2684
|
default: y(() => [
|
|
2678
|
-
|
|
2685
|
+
Me(ye($.label), 1)
|
|
2679
2686
|
]),
|
|
2680
2687
|
_: 2
|
|
2681
|
-
}, 1040, ["title", "onClick"])) : (
|
|
2688
|
+
}, 1040, ["title", "onClick"])) : (n(), D(L(De), S({
|
|
2682
2689
|
key: 1,
|
|
2683
|
-
title:
|
|
2690
|
+
title: $.label,
|
|
2684
2691
|
ref_for: !0
|
|
2685
|
-
},
|
|
2686
|
-
onClick: (
|
|
2692
|
+
}, $.attr, {
|
|
2693
|
+
onClick: (z) => $.func(e.value, ee.value)
|
|
2687
2694
|
}), null, 16, ["title", "onClick"]))
|
|
2688
|
-
], !0) :
|
|
2689
|
-
h(l.$slots,
|
|
2690
|
-
], 64))), 256)) : (
|
|
2695
|
+
], !0) : pe("", !0),
|
|
2696
|
+
h(l.$slots, $.name + "-right", {}, void 0, !0)
|
|
2697
|
+
], 64))), 256)) : (n(), D(m, { key: 1 }, {
|
|
2691
2698
|
default: y(() => [
|
|
2692
|
-
(
|
|
2693
|
-
h(l.$slots,
|
|
2694
|
-
(
|
|
2695
|
-
|
|
2699
|
+
(n(!0), x(W, null, U(j, ($) => (n(), x(W, null, [
|
|
2700
|
+
h(l.$slots, $.name + "-left", {}, void 0, !0),
|
|
2701
|
+
($.name === "control-add" ? $.attr.auth() && $.attr.inline === !1 : $.attr.auth()) ? h(l.$slots, $.name, { key: 0 }, () => [
|
|
2702
|
+
$.label ? (n(), D(L(De), S({
|
|
2696
2703
|
key: 0,
|
|
2697
|
-
title:
|
|
2704
|
+
title: $.label,
|
|
2698
2705
|
ref_for: !0
|
|
2699
|
-
},
|
|
2700
|
-
onClick: (
|
|
2706
|
+
}, $.attr, {
|
|
2707
|
+
onClick: (z) => $.func(e.value, ee.value)
|
|
2701
2708
|
}), {
|
|
2702
2709
|
default: y(() => [
|
|
2703
|
-
|
|
2710
|
+
Me(ye($.label), 1)
|
|
2704
2711
|
]),
|
|
2705
2712
|
_: 2
|
|
2706
|
-
}, 1040, ["title", "onClick"])) : (
|
|
2713
|
+
}, 1040, ["title", "onClick"])) : (n(), D(L(De), S({
|
|
2707
2714
|
key: 1,
|
|
2708
|
-
title:
|
|
2715
|
+
title: $.label,
|
|
2709
2716
|
ref_for: !0
|
|
2710
|
-
},
|
|
2711
|
-
onClick: (
|
|
2717
|
+
}, $.attr, {
|
|
2718
|
+
onClick: (z) => $.func(e.value, ee.value)
|
|
2712
2719
|
}), null, 16, ["title", "onClick"]))
|
|
2713
|
-
], !0) :
|
|
2714
|
-
h(l.$slots,
|
|
2720
|
+
], !0) : pe("", !0),
|
|
2721
|
+
h(l.$slots, $.name + "-right", {}, void 0, !0)
|
|
2715
2722
|
], 64))), 256))
|
|
2716
2723
|
]),
|
|
2717
2724
|
_: 2
|
|
@@ -2721,21 +2728,21 @@ const Sl = {
|
|
|
2721
2728
|
]),
|
|
2722
2729
|
_: 2
|
|
2723
2730
|
}, [
|
|
2724
|
-
|
|
2731
|
+
U(l.$slots, (j, oe, $) => ({
|
|
2725
2732
|
name: oe,
|
|
2726
|
-
fn: y((
|
|
2733
|
+
fn: y((z) => [
|
|
2727
2734
|
h(l.$slots, oe, { model: e.value }, void 0, !0)
|
|
2728
2735
|
])
|
|
2729
2736
|
}))
|
|
2730
2737
|
]), 1032, ["modelValue", "info"])
|
|
2731
2738
|
], !0)
|
|
2732
|
-
])) :
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
"summary-method": (
|
|
2736
|
-
onSortChange: u[2] || (u[2] = (
|
|
2737
|
-
var oe,
|
|
2738
|
-
e.value.table.onSortChange(
|
|
2739
|
+
])) : pe("", !0),
|
|
2740
|
+
Q("div", Ul, [
|
|
2741
|
+
Z(Ee, S({ ...l.$attrs, ...L(Ve)(e.value.table, (j) => !["dblclickType", "page"].includes(j)) }, {
|
|
2742
|
+
"summary-method": (j) => e.value.table["summary-method"](j, { fields: re.value, sums: ie.value }),
|
|
2743
|
+
onSortChange: u[2] || (u[2] = (j) => {
|
|
2744
|
+
var oe, $;
|
|
2745
|
+
e.value.table.onSortChange(j, E.value), ((oe = j == null ? void 0 : j.column) == null ? void 0 : oe.sortable) === "custom" && (($ = e.value.table) == null || $.load());
|
|
2739
2746
|
})
|
|
2740
2747
|
}), {
|
|
2741
2748
|
append: y(() => [
|
|
@@ -2746,147 +2753,147 @@ const Sl = {
|
|
|
2746
2753
|
]),
|
|
2747
2754
|
default: y(() => [
|
|
2748
2755
|
h(l.$slots, "default", {}, () => [
|
|
2749
|
-
(
|
|
2756
|
+
(n(!0), x(W, null, U(_e.value, (j, oe) => (n(), D(te, S({
|
|
2750
2757
|
prop: oe,
|
|
2751
2758
|
key: oe,
|
|
2752
2759
|
ref_for: !0
|
|
2753
|
-
}, { ...e.value.tableColumns, ...L(
|
|
2754
|
-
header: y(({ column:
|
|
2760
|
+
}, { ...e.value.tableColumns, ...L(Ve)(j, ($) => H.includes($)) }, { "header-align": "center" }), me({
|
|
2761
|
+
header: y(({ column: $, $index: z }) => [
|
|
2755
2762
|
oe == "control" ? h(l.$slots, `${oe}-header`, {
|
|
2756
2763
|
key: 0,
|
|
2757
|
-
column:
|
|
2758
|
-
$index:
|
|
2764
|
+
column: $,
|
|
2765
|
+
$index: z
|
|
2759
2766
|
}, () => [
|
|
2760
|
-
|
|
2767
|
+
Q("span", null, ye($.label), 1)
|
|
2761
2768
|
], !0) : h(l.$slots, `${oe}-header`, {
|
|
2762
2769
|
key: 1,
|
|
2763
|
-
column:
|
|
2764
|
-
$index:
|
|
2770
|
+
column: $,
|
|
2771
|
+
$index: z
|
|
2765
2772
|
}, void 0, !0)
|
|
2766
2773
|
]),
|
|
2767
|
-
"filter-icon": y((
|
|
2768
|
-
h(l.$slots, `${oe}-filter-icon`, { data:
|
|
2774
|
+
"filter-icon": y(($) => [
|
|
2775
|
+
h(l.$slots, `${oe}-filter-icon`, { data: $ }, void 0, !0)
|
|
2769
2776
|
]),
|
|
2770
2777
|
_: 2
|
|
2771
2778
|
}, [
|
|
2772
|
-
|
|
2779
|
+
j.type === "expand" ? {
|
|
2773
2780
|
name: "default",
|
|
2774
|
-
fn: y(({ row:
|
|
2781
|
+
fn: y(({ row: $, column: z, $index: K }) => [
|
|
2775
2782
|
h(l.$slots, `${oe}`, {
|
|
2776
|
-
row:
|
|
2777
|
-
column:
|
|
2778
|
-
$index:
|
|
2783
|
+
row: $,
|
|
2784
|
+
column: z,
|
|
2785
|
+
$index: K
|
|
2779
2786
|
}, void 0, !0)
|
|
2780
2787
|
]),
|
|
2781
2788
|
key: "0"
|
|
2782
|
-
} :
|
|
2789
|
+
} : j.type == "control" ? {
|
|
2783
2790
|
name: "default",
|
|
2784
|
-
fn: y(({ row:
|
|
2785
|
-
var
|
|
2791
|
+
fn: y(({ row: $, column: z, $index: K }) => {
|
|
2792
|
+
var We, Xe;
|
|
2786
2793
|
return [
|
|
2787
|
-
|
|
2788
|
-
class:
|
|
2789
|
-
style:
|
|
2794
|
+
Q("div", {
|
|
2795
|
+
class: Ft(["control", (We = e.value.control) == null ? void 0 : We.class]),
|
|
2796
|
+
style: Be((Xe = e.value.control) == null ? void 0 : Xe.style)
|
|
2790
2797
|
}, [
|
|
2791
2798
|
h(l.$slots, "control", {}, () => [
|
|
2792
2799
|
h(l.$slots, "control-left", {
|
|
2793
|
-
row:
|
|
2794
|
-
column:
|
|
2795
|
-
$index:
|
|
2800
|
+
row: $,
|
|
2801
|
+
column: z,
|
|
2802
|
+
$index: K
|
|
2796
2803
|
}, void 0, !0),
|
|
2797
|
-
(
|
|
2798
|
-
var
|
|
2799
|
-
return
|
|
2800
|
-
|
|
2804
|
+
(n(!0), x(W, null, U(ue(["view", "edit", "delete", "save"]), (je, He) => {
|
|
2805
|
+
var at;
|
|
2806
|
+
return n(), x(W, null, [
|
|
2807
|
+
He == "default" ? (n(!0), x(W, { key: 0 }, U(je, (B) => (n(), x(W, null, [
|
|
2801
2808
|
h(l.$slots, B.name + "-left", {
|
|
2802
|
-
row:
|
|
2803
|
-
column:
|
|
2804
|
-
$index:
|
|
2809
|
+
row: $,
|
|
2810
|
+
column: z,
|
|
2811
|
+
$index: K
|
|
2805
2812
|
}, void 0, !0),
|
|
2806
|
-
B.attr.auth(
|
|
2813
|
+
B.attr.auth($, z, K) ? h(l.$slots, B.name, {
|
|
2807
2814
|
key: 0,
|
|
2808
|
-
row:
|
|
2809
|
-
column:
|
|
2810
|
-
$index:
|
|
2815
|
+
row: $,
|
|
2816
|
+
column: z,
|
|
2817
|
+
$index: K
|
|
2811
2818
|
}, () => [
|
|
2812
|
-
B.label ? (
|
|
2819
|
+
B.label ? (n(), D(L(De), S({
|
|
2813
2820
|
key: 0,
|
|
2814
2821
|
title: B.label,
|
|
2815
2822
|
ref_for: !0
|
|
2816
2823
|
}, B.attr, {
|
|
2817
|
-
onClick: (
|
|
2824
|
+
onClick: (qe) => B.func($, z, K, e.value)
|
|
2818
2825
|
}), {
|
|
2819
2826
|
default: y(() => [
|
|
2820
|
-
|
|
2827
|
+
Me(ye(Te(B, K)), 1)
|
|
2821
2828
|
]),
|
|
2822
2829
|
_: 2
|
|
2823
|
-
}, 1040, ["title", "onClick"])) : (
|
|
2830
|
+
}, 1040, ["title", "onClick"])) : (n(), D(L(De), S({
|
|
2824
2831
|
key: 1,
|
|
2825
2832
|
title: B.label,
|
|
2826
2833
|
ref_for: !0
|
|
2827
2834
|
}, B.attr, {
|
|
2828
|
-
onClick: (
|
|
2835
|
+
onClick: (qe) => B.func($, z, K, e.value)
|
|
2829
2836
|
}), null, 16, ["title", "onClick"]))
|
|
2830
|
-
], !0) :
|
|
2837
|
+
], !0) : pe("", !0),
|
|
2831
2838
|
h(l.$slots, B.name + "-right", {
|
|
2832
|
-
row:
|
|
2833
|
-
column:
|
|
2834
|
-
$index:
|
|
2839
|
+
row: $,
|
|
2840
|
+
column: z,
|
|
2841
|
+
$index: K
|
|
2835
2842
|
}, void 0, !0)
|
|
2836
|
-
], 64))), 256)) :
|
|
2843
|
+
], 64))), 256)) : He != null && He.startsWith("dropdown") && ((at = de($, z, K, e.value)) != null && at.auth()) ? (n(), D(P, S({
|
|
2837
2844
|
key: 1,
|
|
2838
2845
|
ref_for: !0
|
|
2839
|
-
},
|
|
2846
|
+
}, de($, z, K, e.value)), {
|
|
2840
2847
|
dropdown: y(() => [
|
|
2841
|
-
|
|
2848
|
+
Z(N, null, {
|
|
2842
2849
|
default: y(() => [
|
|
2843
|
-
(
|
|
2844
|
-
var
|
|
2845
|
-
return
|
|
2850
|
+
(n(!0), x(W, null, U(je, (B) => {
|
|
2851
|
+
var qe, Ge, Ct;
|
|
2852
|
+
return n(), x(W, null, [
|
|
2846
2853
|
l.$slots[B.name + "-left"] ? h(l.$slots, B.name + "-left", {
|
|
2847
2854
|
key: 0,
|
|
2848
|
-
row:
|
|
2849
|
-
column:
|
|
2850
|
-
$index:
|
|
2851
|
-
}, void 0, !0) :
|
|
2852
|
-
B.attr.auth(
|
|
2855
|
+
row: $,
|
|
2856
|
+
column: z,
|
|
2857
|
+
$index: K
|
|
2858
|
+
}, void 0, !0) : pe("", !0),
|
|
2859
|
+
B.attr.auth($, z, K) ? (n(), D(V, S({
|
|
2853
2860
|
key: 1,
|
|
2854
2861
|
ref_for: !0
|
|
2855
|
-
}, { command: (
|
|
2862
|
+
}, { command: (qe = B == null ? void 0 : B.attr) == null ? void 0 : qe.command, divided: (Ge = B == null ? void 0 : B.attr) == null ? void 0 : Ge.divided, disabled: (Ct = B == null ? void 0 : B.attr) == null ? void 0 : Ct.disabled }), {
|
|
2856
2863
|
default: y(() => [
|
|
2857
2864
|
h(l.$slots, B.name, {
|
|
2858
|
-
row:
|
|
2859
|
-
column:
|
|
2860
|
-
$index:
|
|
2865
|
+
row: $,
|
|
2866
|
+
column: z,
|
|
2867
|
+
$index: K
|
|
2861
2868
|
}, () => [
|
|
2862
|
-
B.label ? (
|
|
2869
|
+
B.label ? (n(), D(L(De), S({
|
|
2863
2870
|
key: 0,
|
|
2864
2871
|
title: B.label,
|
|
2865
2872
|
ref_for: !0
|
|
2866
2873
|
}, B.attr, {
|
|
2867
|
-
onClick: (
|
|
2874
|
+
onClick: (At) => B.func($, z, K, e.value)
|
|
2868
2875
|
}), {
|
|
2869
2876
|
default: y(() => [
|
|
2870
|
-
|
|
2877
|
+
Me(ye(Te(B, K)), 1)
|
|
2871
2878
|
]),
|
|
2872
2879
|
_: 2
|
|
2873
|
-
}, 1040, ["title", "onClick"])) : (
|
|
2880
|
+
}, 1040, ["title", "onClick"])) : (n(), D(L(De), S({
|
|
2874
2881
|
key: 1,
|
|
2875
2882
|
title: B.label,
|
|
2876
2883
|
ref_for: !0
|
|
2877
2884
|
}, B.attr, {
|
|
2878
|
-
onClick: (
|
|
2885
|
+
onClick: (At) => B.func($, z, K, e.value)
|
|
2879
2886
|
}), null, 16, ["title", "onClick"]))
|
|
2880
2887
|
], !0)
|
|
2881
2888
|
]),
|
|
2882
2889
|
_: 2
|
|
2883
|
-
}, 1040)) :
|
|
2890
|
+
}, 1040)) : pe("", !0),
|
|
2884
2891
|
l.$slots[B.name + "-right"] ? h(l.$slots, B.name + "-right", {
|
|
2885
2892
|
key: 2,
|
|
2886
|
-
row:
|
|
2887
|
-
column:
|
|
2888
|
-
$index:
|
|
2889
|
-
}, void 0, !0) :
|
|
2893
|
+
row: $,
|
|
2894
|
+
column: z,
|
|
2895
|
+
$index: K
|
|
2896
|
+
}, void 0, !0) : pe("", !0)
|
|
2890
2897
|
], 64);
|
|
2891
2898
|
}), 256))
|
|
2892
2899
|
]),
|
|
@@ -2896,47 +2903,47 @@ const Sl = {
|
|
|
2896
2903
|
default: y(() => {
|
|
2897
2904
|
var B;
|
|
2898
2905
|
return [
|
|
2899
|
-
|
|
2906
|
+
Me(ye((B = de($, z, K, e.value)) == null ? void 0 : B.label) + " ", 1)
|
|
2900
2907
|
];
|
|
2901
2908
|
}),
|
|
2902
2909
|
_: 2
|
|
2903
|
-
}, 1040)) : (
|
|
2910
|
+
}, 1040)) : (n(), D(m, { key: 2 }, {
|
|
2904
2911
|
default: y(() => [
|
|
2905
|
-
(
|
|
2912
|
+
(n(!0), x(W, null, U(je, (B) => (n(), x(W, null, [
|
|
2906
2913
|
h(l.$slots, B.name + "-left", {
|
|
2907
|
-
row:
|
|
2908
|
-
column:
|
|
2909
|
-
$index:
|
|
2914
|
+
row: $,
|
|
2915
|
+
column: z,
|
|
2916
|
+
$index: K
|
|
2910
2917
|
}, void 0, !0),
|
|
2911
|
-
B.attr.auth(
|
|
2918
|
+
B.attr.auth($, z, K) ? h(l.$slots, B.name, {
|
|
2912
2919
|
key: 0,
|
|
2913
|
-
row:
|
|
2914
|
-
column:
|
|
2915
|
-
$index:
|
|
2920
|
+
row: $,
|
|
2921
|
+
column: z,
|
|
2922
|
+
$index: K
|
|
2916
2923
|
}, () => [
|
|
2917
|
-
B.label ? (
|
|
2924
|
+
B.label ? (n(), D(L(De), S({
|
|
2918
2925
|
key: 0,
|
|
2919
2926
|
title: B.label,
|
|
2920
2927
|
ref_for: !0
|
|
2921
2928
|
}, B.attr, {
|
|
2922
|
-
onClick: (
|
|
2929
|
+
onClick: (qe) => B.func($, z, K, e.value)
|
|
2923
2930
|
}), {
|
|
2924
2931
|
default: y(() => [
|
|
2925
|
-
|
|
2932
|
+
Me(ye(Te(B, K)), 1)
|
|
2926
2933
|
]),
|
|
2927
2934
|
_: 2
|
|
2928
|
-
}, 1040, ["title", "onClick"])) : (
|
|
2935
|
+
}, 1040, ["title", "onClick"])) : (n(), D(L(De), S({
|
|
2929
2936
|
key: 1,
|
|
2930
2937
|
title: B.label,
|
|
2931
2938
|
ref_for: !0
|
|
2932
2939
|
}, B.attr, {
|
|
2933
|
-
onClick: (
|
|
2940
|
+
onClick: (qe) => B.func($, z, K, e.value)
|
|
2934
2941
|
}), null, 16, ["title", "onClick"]))
|
|
2935
|
-
], !0) :
|
|
2942
|
+
], !0) : pe("", !0),
|
|
2936
2943
|
h(l.$slots, B.name + "-right", {
|
|
2937
|
-
row:
|
|
2938
|
-
column:
|
|
2939
|
-
$index:
|
|
2944
|
+
row: $,
|
|
2945
|
+
column: z,
|
|
2946
|
+
$index: K
|
|
2940
2947
|
}, void 0, !0)
|
|
2941
2948
|
], 64))), 256))
|
|
2942
2949
|
]),
|
|
@@ -2945,44 +2952,44 @@ const Sl = {
|
|
|
2945
2952
|
], 64);
|
|
2946
2953
|
}), 256)),
|
|
2947
2954
|
h(l.$slots, "control-right", {
|
|
2948
|
-
row:
|
|
2949
|
-
column:
|
|
2950
|
-
$index:
|
|
2955
|
+
row: $,
|
|
2956
|
+
column: z,
|
|
2957
|
+
$index: K
|
|
2951
2958
|
}, void 0, !0)
|
|
2952
2959
|
], !0)
|
|
2953
2960
|
], 6)
|
|
2954
2961
|
];
|
|
2955
2962
|
}),
|
|
2956
2963
|
key: "1"
|
|
2957
|
-
} :
|
|
2964
|
+
} : j.type != "selection" && j.type != "index" ? {
|
|
2958
2965
|
name: "default",
|
|
2959
|
-
fn: y(({ row:
|
|
2960
|
-
|
|
2966
|
+
fn: y(({ row: $, column: z, $index: K }) => [
|
|
2967
|
+
we(j, $, z, K) && K != -1 ? h(l.$slots, `${oe}`, {
|
|
2961
2968
|
key: 0,
|
|
2962
|
-
row:
|
|
2963
|
-
column:
|
|
2964
|
-
$index:
|
|
2969
|
+
row: $,
|
|
2970
|
+
column: z,
|
|
2971
|
+
$index: K
|
|
2965
2972
|
}, () => {
|
|
2966
|
-
var
|
|
2973
|
+
var We;
|
|
2967
2974
|
return [
|
|
2968
|
-
(
|
|
2969
|
-
modelValue:
|
|
2970
|
-
"onUpdate:modelValue": (
|
|
2971
|
-
item:
|
|
2975
|
+
(n(), D(vt, {
|
|
2976
|
+
modelValue: $[oe],
|
|
2977
|
+
"onUpdate:modelValue": (Xe) => $[oe] = Xe,
|
|
2978
|
+
item: j == null ? void 0 : j.table($, z, K),
|
|
2972
2979
|
ctrlKey: oe,
|
|
2973
|
-
key: `${oe}-${
|
|
2974
|
-
ctrlType: (
|
|
2980
|
+
key: `${oe}-${K} -${ve.value}`,
|
|
2981
|
+
ctrlType: (We = j.table($, z, K)) != null && We.type ? j.table($, z, K).type : j.type,
|
|
2975
2982
|
model: e.value,
|
|
2976
2983
|
class: "g-ctrl-container",
|
|
2977
2984
|
t: "t",
|
|
2978
|
-
formInfo:
|
|
2979
|
-
},
|
|
2980
|
-
|
|
2981
|
-
name:
|
|
2982
|
-
fn: y((
|
|
2983
|
-
h(l.$slots,
|
|
2984
|
-
data:
|
|
2985
|
-
item:
|
|
2985
|
+
formInfo: $
|
|
2986
|
+
}, me({ _: 2 }, [
|
|
2987
|
+
U(l.$slots, (Xe, je) => ({
|
|
2988
|
+
name: je,
|
|
2989
|
+
fn: y((He) => [
|
|
2990
|
+
h(l.$slots, je, {
|
|
2991
|
+
data: He,
|
|
2992
|
+
item: j,
|
|
2986
2993
|
model: e.value
|
|
2987
2994
|
}, void 0, !0)
|
|
2988
2995
|
])
|
|
@@ -2991,13 +2998,13 @@ const Sl = {
|
|
|
2991
2998
|
];
|
|
2992
2999
|
}, !0) : h(l.$slots, `${oe}`, {
|
|
2993
3000
|
key: 1,
|
|
2994
|
-
row:
|
|
2995
|
-
column:
|
|
2996
|
-
$index:
|
|
3001
|
+
row: $,
|
|
3002
|
+
column: z,
|
|
3003
|
+
$index: K
|
|
2997
3004
|
}, () => [
|
|
2998
|
-
|
|
2999
|
-
innerHTML: se(
|
|
3000
|
-
}, null, 8,
|
|
3005
|
+
Q("div", {
|
|
3006
|
+
innerHTML: se(j, z.formatter($, z, $[oe], K))
|
|
3007
|
+
}, null, 8, Rl)
|
|
3001
3008
|
], !0)
|
|
3002
3009
|
]),
|
|
3003
3010
|
key: "2"
|
|
@@ -3007,12 +3014,12 @@ const Sl = {
|
|
|
3007
3014
|
]),
|
|
3008
3015
|
_: 3
|
|
3009
3016
|
}, 16, ["summary-method"]),
|
|
3010
|
-
(
|
|
3011
|
-
|
|
3017
|
+
(ft = (Qe = (Ke = e.value) == null ? void 0 : Ke.table) == null ? void 0 : Qe.page) != null && ft.hidden ? pe("", !0) : h(l.$slots, "page", { key: 0 }, () => [
|
|
3018
|
+
Z(Ce, S({
|
|
3012
3019
|
"page-size": e.value.table.page.pageSize,
|
|
3013
|
-
"onUpdate:pageSize": u[3] || (u[3] = (
|
|
3020
|
+
"onUpdate:pageSize": u[3] || (u[3] = (j) => e.value.table.page.pageSize = j),
|
|
3014
3021
|
"current-page": e.value.table.page.currentPage,
|
|
3015
|
-
"onUpdate:currentPage": u[4] || (u[4] = (
|
|
3022
|
+
"onUpdate:currentPage": u[4] || (u[4] = (j) => e.value.table.page.currentPage = j)
|
|
3016
3023
|
}, e.value.table.page), {
|
|
3017
3024
|
default: y(() => [
|
|
3018
3025
|
h(l.$slots, "table-page", {}, void 0, !0)
|
|
@@ -3022,78 +3029,78 @@ const Sl = {
|
|
|
3022
3029
|
], !0)
|
|
3023
3030
|
])
|
|
3024
3031
|
]),
|
|
3025
|
-
e.value.dialog.mode == "dialog" &&
|
|
3026
|
-
|
|
3032
|
+
e.value.dialog.mode == "dialog" && w.value ? (n(), x("div", Ll, [
|
|
3033
|
+
Z(c, S({
|
|
3027
3034
|
ref_key: "dialogRef",
|
|
3028
3035
|
ref: F,
|
|
3029
3036
|
id: "dialogRef",
|
|
3030
|
-
modelValue:
|
|
3031
|
-
"onUpdate:modelValue": u[8] || (u[8] = (
|
|
3037
|
+
modelValue: w.value,
|
|
3038
|
+
"onUpdate:modelValue": u[8] || (u[8] = (j) => w.value = j),
|
|
3032
3039
|
fullscreen: e.value.dialog.fullScreen
|
|
3033
|
-
}, L(
|
|
3034
|
-
width: L(
|
|
3040
|
+
}, L(Ve)(e.value.dialog, (j) => !["size", "max", "min"].includes(j)), {
|
|
3041
|
+
width: L(Ot)(e.value.dialog.width) + 35
|
|
3035
3042
|
}), {
|
|
3036
3043
|
header: y(() => {
|
|
3037
|
-
var
|
|
3044
|
+
var j, oe, $, z, K, We, Xe, je, He, at;
|
|
3038
3045
|
return [
|
|
3039
|
-
|
|
3040
|
-
|
|
3046
|
+
Q("div", jl, [
|
|
3047
|
+
Q("div", Hl, [
|
|
3041
3048
|
h(l.$slots, "f-header", {}, () => [
|
|
3042
|
-
|
|
3049
|
+
Q("div", null, ye(e.value.dialog.title), 1)
|
|
3043
3050
|
], !0)
|
|
3044
3051
|
]),
|
|
3045
|
-
((oe = (
|
|
3052
|
+
((oe = (j = e.value) == null ? void 0 : j.dialog) == null ? void 0 : oe.fullScreen) === !1 ? (n(), x("div", {
|
|
3046
3053
|
key: 0,
|
|
3047
|
-
style:
|
|
3054
|
+
style: Be((K = (z = ($ = e.value) == null ? void 0 : $.dialog) == null ? void 0 : z.max) == null ? void 0 : K.style),
|
|
3048
3055
|
onClick: u[5] || (u[5] = (B) => {
|
|
3049
3056
|
e.value.dialog.fullScreen = !0;
|
|
3050
3057
|
}),
|
|
3051
3058
|
class: "max"
|
|
3052
3059
|
}, [
|
|
3053
|
-
|
|
3060
|
+
Z(Ie, null, {
|
|
3054
3061
|
default: y(() => {
|
|
3055
|
-
var B,
|
|
3062
|
+
var B, qe, Ge;
|
|
3056
3063
|
return [
|
|
3057
|
-
(
|
|
3064
|
+
(n(), D(Ue((Ge = (qe = (B = e.value) == null ? void 0 : B.dialog) == null ? void 0 : qe.max) == null ? void 0 : Ge.icon)))
|
|
3058
3065
|
];
|
|
3059
3066
|
}),
|
|
3060
3067
|
_: 1
|
|
3061
3068
|
})
|
|
3062
|
-
], 4)) :
|
|
3063
|
-
((
|
|
3069
|
+
], 4)) : pe("", !0),
|
|
3070
|
+
((Xe = (We = e.value) == null ? void 0 : We.dialog) == null ? void 0 : Xe.fullScreen) === !0 ? (n(), x("div", {
|
|
3064
3071
|
key: 1,
|
|
3065
|
-
style:
|
|
3072
|
+
style: Be((at = (He = (je = e.value) == null ? void 0 : je.dialog) == null ? void 0 : He.min) == null ? void 0 : at.style),
|
|
3066
3073
|
onClick: u[6] || (u[6] = (B) => {
|
|
3067
3074
|
e.value.dialog.fullScreen = !1;
|
|
3068
3075
|
}),
|
|
3069
3076
|
class: "max"
|
|
3070
3077
|
}, [
|
|
3071
|
-
|
|
3078
|
+
Z(Ie, null, {
|
|
3072
3079
|
default: y(() => {
|
|
3073
|
-
var B,
|
|
3080
|
+
var B, qe, Ge;
|
|
3074
3081
|
return [
|
|
3075
|
-
(
|
|
3082
|
+
(n(), D(Ue((Ge = (qe = (B = e.value) == null ? void 0 : B.dialog) == null ? void 0 : qe.min) == null ? void 0 : Ge.icon)))
|
|
3076
3083
|
];
|
|
3077
3084
|
}),
|
|
3078
3085
|
_: 1
|
|
3079
3086
|
})
|
|
3080
|
-
], 4)) :
|
|
3087
|
+
], 4)) : pe("", !0)
|
|
3081
3088
|
])
|
|
3082
3089
|
];
|
|
3083
3090
|
}),
|
|
3084
3091
|
default: y(() => [
|
|
3085
|
-
|
|
3092
|
+
Q("div", Nl, [
|
|
3086
3093
|
h(l.$slots, "table-dialog-form", { model: e.value }, () => [
|
|
3087
|
-
|
|
3094
|
+
Z(bt, {
|
|
3088
3095
|
modelValue: e.value,
|
|
3089
|
-
"onUpdate:modelValue": u[7] || (u[7] = (
|
|
3096
|
+
"onUpdate:modelValue": u[7] || (u[7] = (j) => e.value = j),
|
|
3090
3097
|
onSubmit: s,
|
|
3091
|
-
onReset:
|
|
3092
|
-
},
|
|
3093
|
-
|
|
3098
|
+
onReset: M
|
|
3099
|
+
}, me({ _: 2 }, [
|
|
3100
|
+
U(l.$slots, (j, oe, $) => ({
|
|
3094
3101
|
name: oe,
|
|
3095
|
-
fn: y((
|
|
3096
|
-
h(l.$slots, oe, { model:
|
|
3102
|
+
fn: y((z) => [
|
|
3103
|
+
h(l.$slots, oe, { model: z }, void 0, !0)
|
|
3097
3104
|
])
|
|
3098
3105
|
}))
|
|
3099
3106
|
]), 1032, ["modelValue"])
|
|
@@ -3102,35 +3109,35 @@ const Sl = {
|
|
|
3102
3109
|
]),
|
|
3103
3110
|
_: 3
|
|
3104
3111
|
}, 16, ["modelValue", "fullscreen", "width"])
|
|
3105
|
-
])) :
|
|
3106
|
-
e.value.dialog.mode == "drawer" &&
|
|
3107
|
-
|
|
3112
|
+
])) : pe("", !0),
|
|
3113
|
+
e.value.dialog.mode == "drawer" && w.value ? (n(), x("div", zl, [
|
|
3114
|
+
Z(X, S({
|
|
3108
3115
|
ref_key: "drawerRef",
|
|
3109
3116
|
ref: T,
|
|
3110
|
-
modelValue:
|
|
3111
|
-
"onUpdate:modelValue": u[10] || (u[10] = (
|
|
3112
|
-
}, L(
|
|
3117
|
+
modelValue: w.value,
|
|
3118
|
+
"onUpdate:modelValue": u[10] || (u[10] = (j) => w.value = j)
|
|
3119
|
+
}, L(Ve)(e.value.dialog, (j) => !["width"].includes(j))), {
|
|
3113
3120
|
header: y(() => [
|
|
3114
|
-
|
|
3115
|
-
|
|
3121
|
+
Q("div", Pl, [
|
|
3122
|
+
Q("div", Wl, [
|
|
3116
3123
|
h(l.$slots, "f-header", {}, () => [
|
|
3117
|
-
|
|
3124
|
+
Q("div", null, ye(e.value.dialog.title), 1)
|
|
3118
3125
|
], !0)
|
|
3119
3126
|
])
|
|
3120
3127
|
])
|
|
3121
3128
|
]),
|
|
3122
3129
|
default: y(() => [
|
|
3123
3130
|
h(l.$slots, "table-drawer-form", { model: e.value }, () => [
|
|
3124
|
-
|
|
3131
|
+
Z(bt, {
|
|
3125
3132
|
modelValue: e.value,
|
|
3126
|
-
"onUpdate:modelValue": u[9] || (u[9] = (
|
|
3133
|
+
"onUpdate:modelValue": u[9] || (u[9] = (j) => e.value = j),
|
|
3127
3134
|
onSubmit: s,
|
|
3128
|
-
onReset:
|
|
3129
|
-
},
|
|
3130
|
-
|
|
3135
|
+
onReset: M
|
|
3136
|
+
}, me({ _: 2 }, [
|
|
3137
|
+
U(l.$slots, (j, oe, $) => ({
|
|
3131
3138
|
name: oe,
|
|
3132
|
-
fn: y((
|
|
3133
|
-
h(l.$slots, oe, { model:
|
|
3139
|
+
fn: y((z) => [
|
|
3140
|
+
h(l.$slots, oe, { model: z }, void 0, !0)
|
|
3134
3141
|
])
|
|
3135
3142
|
}))
|
|
3136
3143
|
]), 1032, ["modelValue"])
|
|
@@ -3138,11 +3145,11 @@ const Sl = {
|
|
|
3138
3145
|
]),
|
|
3139
3146
|
_: 3
|
|
3140
3147
|
}, 16, ["modelValue"])
|
|
3141
|
-
])) :
|
|
3148
|
+
])) : pe("", !0)
|
|
3142
3149
|
], 64);
|
|
3143
3150
|
};
|
|
3144
3151
|
}
|
|
3145
|
-
}),
|
|
3152
|
+
}), Gl = /* @__PURE__ */ Je(Xl, [["__scopeId", "data-v-449a6397"]]), Ql = { class: "g-tree-table" }, Zl = { class: "g-tree-container" }, Jl = { class: "g-tree-table-container" }, Kl = /* @__PURE__ */ Object.assign({
|
|
3146
3153
|
name: "g-tree-table",
|
|
3147
3154
|
inheritAttrs: !1
|
|
3148
3155
|
}, {
|
|
@@ -3151,75 +3158,75 @@ const Sl = {
|
|
|
3151
3158
|
modelValue: { required: !0 },
|
|
3152
3159
|
modelModifiers: {}
|
|
3153
3160
|
},
|
|
3154
|
-
emits: /* @__PURE__ */
|
|
3155
|
-
setup(
|
|
3156
|
-
var
|
|
3157
|
-
const
|
|
3158
|
-
typeof ((
|
|
3159
|
-
), E =
|
|
3160
|
-
var
|
|
3161
|
-
if (!
|
|
3162
|
-
const
|
|
3163
|
-
return
|
|
3164
|
-
},
|
|
3165
|
-
|
|
3166
|
-
}, ee = (
|
|
3167
|
-
F.value =
|
|
3161
|
+
emits: /* @__PURE__ */ ze(["load"], ["update:modelValue"]),
|
|
3162
|
+
setup(d, { emit: f }) {
|
|
3163
|
+
var O, Y, ie, re;
|
|
3164
|
+
const o = f, t = Pe(d, "modelValue"), e = _t(), i = le(
|
|
3165
|
+
typeof ((O = e == null ? void 0 : e.tree) == null ? void 0 : O.width) == "number" ? `${e.tree.width}px` : ((Y = e == null ? void 0 : e.tree) == null ? void 0 : Y.width) || "180px"
|
|
3166
|
+
), E = le(((ie = e == null ? void 0 : e.tree) == null ? void 0 : ie.search) === void 0 ? !0 : (re = e == null ? void 0 : e.tree) == null ? void 0 : re.search), F = le({}), T = le(""), k = le(null), w = (J, ve) => {
|
|
3167
|
+
var be, de;
|
|
3168
|
+
if (!J) return !0;
|
|
3169
|
+
const ge = ((de = (be = e.tree) == null ? void 0 : be.props) == null ? void 0 : de.label) || "label";
|
|
3170
|
+
return ve[ge].includes(J);
|
|
3171
|
+
}, H = (J, ve) => {
|
|
3172
|
+
o("load", F.value, J, ve);
|
|
3173
|
+
}, ee = (J) => {
|
|
3174
|
+
F.value = J, t.value.table.load();
|
|
3168
3175
|
};
|
|
3169
|
-
return
|
|
3170
|
-
k.value.filter(
|
|
3171
|
-
}), (
|
|
3172
|
-
const
|
|
3173
|
-
return
|
|
3174
|
-
|
|
3176
|
+
return Pt(T, (J) => {
|
|
3177
|
+
k.value.filter(J);
|
|
3178
|
+
}), (J, ve) => {
|
|
3179
|
+
const ge = I("el-input"), be = I("el-tree"), de = I("g-table");
|
|
3180
|
+
return n(), x("div", Ql, [
|
|
3181
|
+
Q("div", {
|
|
3175
3182
|
class: "g-tree-left",
|
|
3176
|
-
style:
|
|
3183
|
+
style: Be({ width: i.value })
|
|
3177
3184
|
}, [
|
|
3178
|
-
E.value ? (
|
|
3185
|
+
E.value ? (n(), D(ge, {
|
|
3179
3186
|
key: 0,
|
|
3180
3187
|
modelValue: T.value,
|
|
3181
|
-
"onUpdate:modelValue":
|
|
3188
|
+
"onUpdate:modelValue": ve[0] || (ve[0] = (fe) => T.value = fe),
|
|
3182
3189
|
style: { width: "100%", padding: "0 10px", "box-sizing": "border-box" },
|
|
3183
3190
|
placeholder: "输入节点查询",
|
|
3184
3191
|
clearable: ""
|
|
3185
|
-
}, null, 8, ["modelValue"])) :
|
|
3186
|
-
|
|
3187
|
-
|
|
3188
|
-
style: { width:
|
|
3189
|
-
"filter-node-method":
|
|
3192
|
+
}, null, 8, ["modelValue"])) : pe("", !0),
|
|
3193
|
+
Q("div", Zl, [
|
|
3194
|
+
Z(be, S({
|
|
3195
|
+
style: { width: i.value },
|
|
3196
|
+
"filter-node-method": w,
|
|
3190
3197
|
"expand-on-click-node": !1,
|
|
3191
3198
|
ref_key: "treeRef",
|
|
3192
3199
|
ref: k,
|
|
3193
3200
|
onNodeClick: ee
|
|
3194
|
-
},
|
|
3195
|
-
default: y(({ node:
|
|
3196
|
-
h(
|
|
3197
|
-
node:
|
|
3201
|
+
}, J.$attrs.tree), me({
|
|
3202
|
+
default: y(({ node: fe, data: ne }) => [
|
|
3203
|
+
h(J.$slots, "tree", {
|
|
3204
|
+
node: fe,
|
|
3198
3205
|
data: ne
|
|
3199
3206
|
}, () => [
|
|
3200
|
-
|
|
3207
|
+
Q("span", null, ye(fe.label), 1)
|
|
3201
3208
|
], !0)
|
|
3202
3209
|
]),
|
|
3203
3210
|
_: 2
|
|
3204
3211
|
}, [
|
|
3205
|
-
|
|
3212
|
+
U(J.$slots, (fe, ne, ae) => ({
|
|
3206
3213
|
name: ne,
|
|
3207
|
-
fn: y((
|
|
3208
|
-
h(
|
|
3214
|
+
fn: y(($e) => [
|
|
3215
|
+
h(J.$slots, ne, { data: $e }, void 0, !0)
|
|
3209
3216
|
])
|
|
3210
3217
|
}))
|
|
3211
3218
|
]), 1040, ["style"])
|
|
3212
3219
|
])
|
|
3213
3220
|
], 4),
|
|
3214
|
-
|
|
3215
|
-
|
|
3221
|
+
Q("div", Jl, [
|
|
3222
|
+
Z(de, S({
|
|
3216
3223
|
modelValue: t.value,
|
|
3217
|
-
"onUpdate:modelValue":
|
|
3218
|
-
},
|
|
3219
|
-
|
|
3224
|
+
"onUpdate:modelValue": ve[1] || (ve[1] = (fe) => t.value = fe)
|
|
3225
|
+
}, J.$attrs, { onLoad: H }), me({ _: 2 }, [
|
|
3226
|
+
U(J.$slots, (fe, ne, ae) => ({
|
|
3220
3227
|
name: ne,
|
|
3221
|
-
fn: y((
|
|
3222
|
-
h(
|
|
3228
|
+
fn: y(($e) => [
|
|
3229
|
+
h(J.$slots, ne, { data: $e }, void 0, !0)
|
|
3223
3230
|
])
|
|
3224
3231
|
}))
|
|
3225
3232
|
]), 1040, ["modelValue"])
|
|
@@ -3227,14 +3234,14 @@ const Sl = {
|
|
|
3227
3234
|
]);
|
|
3228
3235
|
};
|
|
3229
3236
|
}
|
|
3230
|
-
}),
|
|
3237
|
+
}), ea = /* @__PURE__ */ Je(Kl, [["__scopeId", "data-v-2d8b16ed"]]), ta = {
|
|
3231
3238
|
key: 0,
|
|
3232
3239
|
class: "op-group"
|
|
3233
|
-
},
|
|
3240
|
+
}, la = {
|
|
3234
3241
|
key: 1,
|
|
3235
3242
|
class: "op-items",
|
|
3236
3243
|
style: { width: "100%", height: "100%" }
|
|
3237
|
-
},
|
|
3244
|
+
}, aa = ["title"], Mt = "100px", ra = /* @__PURE__ */ Object.assign({ name: "g-select-option" }, {
|
|
3238
3245
|
__name: "g-select-option",
|
|
3239
3246
|
props: {
|
|
3240
3247
|
columns: {
|
|
@@ -3254,154 +3261,154 @@ const Sl = {
|
|
|
3254
3261
|
default: ""
|
|
3255
3262
|
}
|
|
3256
3263
|
},
|
|
3257
|
-
setup(
|
|
3258
|
-
const
|
|
3259
|
-
return (
|
|
3260
|
-
(
|
|
3261
|
-
style:
|
|
3264
|
+
setup(d) {
|
|
3265
|
+
const f = d;
|
|
3266
|
+
return (o, t) => f.title ? (n(), x("div", ta, [
|
|
3267
|
+
(n(!0), x(W, null, U(f.columns, (e) => (n(), x("span", {
|
|
3268
|
+
style: Be({ width: (e == null ? void 0 : e.width) || Mt, ...e == null ? void 0 : e.titleStyle, textAlign: (e == null ? void 0 : e.align) || "center" }),
|
|
3262
3269
|
key: e.key
|
|
3263
3270
|
}, [
|
|
3264
|
-
h(
|
|
3265
|
-
|
|
3271
|
+
h(o.$slots, `${d.t}-title-${e.key}`, { col: e }, () => [
|
|
3272
|
+
Me(ye(e.label), 1)
|
|
3266
3273
|
], !0)
|
|
3267
3274
|
], 4))), 128))
|
|
3268
|
-
])) : (
|
|
3269
|
-
(
|
|
3270
|
-
style:
|
|
3275
|
+
])) : (n(), x("div", la, [
|
|
3276
|
+
(n(!0), x(W, null, U(f.columns, (e) => (n(), x("span", {
|
|
3277
|
+
style: Be({ width: (e == null ? void 0 : e.width) || Mt, textAlign: (e == null ? void 0 : e.align) || "center", ...e == null ? void 0 : e.style }),
|
|
3271
3278
|
key: e.key,
|
|
3272
|
-
title:
|
|
3279
|
+
title: d.data[e.key]
|
|
3273
3280
|
}, [
|
|
3274
|
-
h(
|
|
3275
|
-
|
|
3281
|
+
h(o.$slots, `${d.t}-option-${e.key}`, { col: e }, () => [
|
|
3282
|
+
Me(ye(d.data[e.key] ?? "-"), 1)
|
|
3276
3283
|
], !0)
|
|
3277
|
-
], 12,
|
|
3284
|
+
], 12, aa))), 128))
|
|
3278
3285
|
]));
|
|
3279
3286
|
}
|
|
3280
|
-
}),
|
|
3281
|
-
let
|
|
3282
|
-
const
|
|
3283
|
-
install: (
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
}),
|
|
3287
|
+
}), oa = /* @__PURE__ */ Je(ra, [["__scopeId", "data-v-c0ac6b77"]]), ua = Object.freeze({}), qt = [Gl, bt, ea, oa];
|
|
3288
|
+
let $t = {};
|
|
3289
|
+
const ga = {
|
|
3290
|
+
install: (d, f = {}) => {
|
|
3291
|
+
$t = Object.freeze({ ...ua, ...f }), qt.forEach((o) => {
|
|
3292
|
+
d.component(o.name, o);
|
|
3293
|
+
}), d.provide("options", $t), d.config.globalProperties.$openModal = wt;
|
|
3287
3294
|
}
|
|
3288
|
-
},
|
|
3295
|
+
}, na = (d) => ({ dialog: It, drawer: Yt })[d] || null, wt = (d = {}, f = "dialog") => {
|
|
3289
3296
|
if (typeof document > "u") return () => {
|
|
3290
3297
|
};
|
|
3291
|
-
const
|
|
3298
|
+
const o = document.createElement("div");
|
|
3292
3299
|
let t = () => {
|
|
3293
3300
|
};
|
|
3294
|
-
const e =
|
|
3301
|
+
const e = na(f);
|
|
3295
3302
|
if (!e) return () => {
|
|
3296
3303
|
};
|
|
3297
|
-
const
|
|
3304
|
+
const i = le(!0), E = Wt({
|
|
3298
3305
|
setup() {
|
|
3299
3306
|
return t = () => {
|
|
3300
|
-
|
|
3301
|
-
E.unmount(),
|
|
3307
|
+
i.value = !1, setTimeout(() => {
|
|
3308
|
+
E.unmount(), o.remove();
|
|
3302
3309
|
}, 300);
|
|
3303
3310
|
}, () => {
|
|
3304
3311
|
var F, T, k;
|
|
3305
|
-
return
|
|
3306
|
-
modelValue:
|
|
3307
|
-
"onUpdate:modelValue": (
|
|
3312
|
+
return Ae(e, {
|
|
3313
|
+
modelValue: i.value,
|
|
3314
|
+
"onUpdate:modelValue": (w) => i.value = w,
|
|
3308
3315
|
appendToBody: !0,
|
|
3309
3316
|
draggable: !0,
|
|
3310
3317
|
overflow: !0,
|
|
3311
3318
|
destroyOnClose: !0,
|
|
3312
3319
|
"close-on-click-modal": !1,
|
|
3313
|
-
...
|
|
3320
|
+
...d
|
|
3314
3321
|
}, {
|
|
3315
|
-
default: (F =
|
|
3316
|
-
header: (T =
|
|
3317
|
-
footer: (k =
|
|
3322
|
+
default: (F = d.slots) == null ? void 0 : F.default,
|
|
3323
|
+
header: (T = d.slots) == null ? void 0 : T.header,
|
|
3324
|
+
footer: (k = d.slots) == null ? void 0 : k.footer
|
|
3318
3325
|
});
|
|
3319
3326
|
};
|
|
3320
3327
|
},
|
|
3321
3328
|
mounted: () => {
|
|
3322
|
-
|
|
3329
|
+
pt();
|
|
3323
3330
|
}
|
|
3324
3331
|
});
|
|
3325
3332
|
return qt.forEach((F) => {
|
|
3326
3333
|
E.component(F.name, F);
|
|
3327
|
-
}), E.provide("options",
|
|
3334
|
+
}), E.provide("options", $t), E.use(Bt, { locale: el }), document.body.appendChild(o), E.mount(o), t;
|
|
3328
3335
|
};
|
|
3329
|
-
function
|
|
3330
|
-
if (typeof
|
|
3331
|
-
return
|
|
3332
|
-
if (
|
|
3333
|
-
return parseFloat(
|
|
3334
|
-
const
|
|
3335
|
-
if (
|
|
3336
|
-
return
|
|
3337
|
-
if (
|
|
3338
|
-
return t * parseFloat(
|
|
3339
|
-
if (
|
|
3340
|
-
if (typeof
|
|
3336
|
+
function Ot(d, f = window.innerWidth) {
|
|
3337
|
+
if (typeof d == "number")
|
|
3338
|
+
return d;
|
|
3339
|
+
if (d.endsWith("px"))
|
|
3340
|
+
return parseFloat(d);
|
|
3341
|
+
const o = window.innerHeight, t = window.innerWidth;
|
|
3342
|
+
if (d.endsWith("vh"))
|
|
3343
|
+
return o * parseFloat(d) / 100;
|
|
3344
|
+
if (d.endsWith("vw"))
|
|
3345
|
+
return t * parseFloat(d) / 100;
|
|
3346
|
+
if (d.endsWith("%")) {
|
|
3347
|
+
if (typeof f != "number")
|
|
3341
3348
|
throw new Error("Reference size is required to convert % to px");
|
|
3342
|
-
return
|
|
3349
|
+
return f * parseFloat(d) / 100;
|
|
3343
3350
|
}
|
|
3344
|
-
if (
|
|
3345
|
-
let
|
|
3351
|
+
if (d.startsWith("calc(") && d.endsWith(")")) {
|
|
3352
|
+
let i = function(F) {
|
|
3346
3353
|
if (/[0-9+\-*/().\s]+$/.test(F))
|
|
3347
3354
|
return new Function("return " + F)();
|
|
3348
3355
|
throw new Error("Invalid calc expression");
|
|
3349
3356
|
};
|
|
3350
|
-
const e =
|
|
3351
|
-
return
|
|
3357
|
+
const e = d.slice(5, -1).trim();
|
|
3358
|
+
return i(e.replace(/([0-9.]+)([a-z%]+)/g, (F, T, k) => Ot(T + k, f)));
|
|
3352
3359
|
}
|
|
3353
|
-
throw new Error("Unsupported unit in value: " +
|
|
3360
|
+
throw new Error("Unsupported unit in value: " + d);
|
|
3354
3361
|
}
|
|
3355
|
-
const
|
|
3356
|
-
const
|
|
3357
|
-
t[
|
|
3362
|
+
const xe = (...d) => {
|
|
3363
|
+
const f = {}, o = (t, e) => (Object.keys(e).forEach((i) => {
|
|
3364
|
+
t[i] = typeof e[i] == "object" && !Array.isArray(e[i]) ? o(t[i] || {}, e[i]) : e[i];
|
|
3358
3365
|
}), t);
|
|
3359
|
-
return
|
|
3366
|
+
return d.forEach((t = {}) => o(f, t)), f;
|
|
3360
3367
|
};
|
|
3361
|
-
function
|
|
3362
|
-
const
|
|
3363
|
-
for (const t in
|
|
3364
|
-
|
|
3365
|
-
return
|
|
3368
|
+
function Ve(d, f = (o, t) => f(o, t)) {
|
|
3369
|
+
const o = {};
|
|
3370
|
+
for (const t in d)
|
|
3371
|
+
d.hasOwnProperty(t) && f(t, d[t]) && (o[t] = d[t]);
|
|
3372
|
+
return o;
|
|
3366
3373
|
}
|
|
3367
|
-
function
|
|
3368
|
-
for (const
|
|
3369
|
-
if (
|
|
3370
|
-
return
|
|
3371
|
-
if (
|
|
3372
|
-
const E =
|
|
3374
|
+
function sa(d, f, o = "value", t = "label", e = "children") {
|
|
3375
|
+
for (const i of d) {
|
|
3376
|
+
if (i[o] === f)
|
|
3377
|
+
return i[t];
|
|
3378
|
+
if (i[e] && i[e].length > 0) {
|
|
3379
|
+
const E = sa(i[e], f, o, t, e);
|
|
3373
3380
|
if (E)
|
|
3374
3381
|
return E;
|
|
3375
3382
|
}
|
|
3376
3383
|
}
|
|
3377
3384
|
return null;
|
|
3378
3385
|
}
|
|
3379
|
-
function
|
|
3380
|
-
if (!
|
|
3381
|
-
const
|
|
3386
|
+
function Et(d) {
|
|
3387
|
+
if (!d || isNaN(d)) return "零";
|
|
3388
|
+
const f = ["角", "分"], o = ["零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖"], t = [
|
|
3382
3389
|
["元", "万", "亿"],
|
|
3383
3390
|
["", "拾", "佰", "仟"]
|
|
3384
|
-
], e =
|
|
3385
|
-
|
|
3386
|
-
let
|
|
3387
|
-
for (let E = 0; E <
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
for (let E = 0; E < t[0].length &&
|
|
3391
|
+
], e = d < 0 ? "欠" : "";
|
|
3392
|
+
d = Math.abs(d);
|
|
3393
|
+
let i = "";
|
|
3394
|
+
for (let E = 0; E < f.length; E++)
|
|
3395
|
+
i += (o[Math.floor(d * 10 * Math.pow(10, E)) % 10] + f[E]).replace(/零./, "");
|
|
3396
|
+
i = i || "整", d = Math.floor(d);
|
|
3397
|
+
for (let E = 0; E < t[0].length && d > 0; E++) {
|
|
3391
3398
|
let F = "";
|
|
3392
|
-
for (let T = 0; T < t[1].length &&
|
|
3393
|
-
F =
|
|
3394
|
-
|
|
3399
|
+
for (let T = 0; T < t[1].length && d > 0; T++)
|
|
3400
|
+
F = o[d % 10] + t[1][T] + F, d = Math.floor(d / 10);
|
|
3401
|
+
i = F.replace(/(零.)*零$/, "").replace(/^$/, "零") + t[0][E] + i;
|
|
3395
3402
|
}
|
|
3396
|
-
return e +
|
|
3403
|
+
return e + i.replace(/(零.)*零元/, "元").replace(/(零.)+/g, "零").replace(/^整$/, "零元整");
|
|
3397
3404
|
}
|
|
3398
|
-
function
|
|
3399
|
-
if (typeof
|
|
3405
|
+
function ia(d) {
|
|
3406
|
+
if (typeof d != "number" || isNaN(d) || !isFinite(d))
|
|
3400
3407
|
return "0.00";
|
|
3401
|
-
const
|
|
3402
|
-
return `${
|
|
3408
|
+
const f = d.toFixed(2), [o, t] = f.split(".");
|
|
3409
|
+
return `${o.replace(/\B(?=(\d{3})+(?!\d))/g, ",")}.${t}`;
|
|
3403
3410
|
}
|
|
3404
|
-
const
|
|
3411
|
+
const he = {
|
|
3405
3412
|
RADIO: "radio",
|
|
3406
3413
|
RADIOBUTTON: "radio-button",
|
|
3407
3414
|
CHECKBOX: "checkbox",
|
|
@@ -3429,21 +3436,21 @@ const pe = {
|
|
|
3429
3436
|
PASSWORD: "password",
|
|
3430
3437
|
TEXTAREA: "textarea",
|
|
3431
3438
|
TEL: "tel"
|
|
3432
|
-
},
|
|
3433
|
-
|
|
3434
|
-
const
|
|
3435
|
-
if (!
|
|
3439
|
+
}, pt = () => {
|
|
3440
|
+
et(() => {
|
|
3441
|
+
const d = document.querySelector(".el-dialog");
|
|
3442
|
+
if (!d) {
|
|
3436
3443
|
console.warn("未找到对话框元素");
|
|
3437
3444
|
return;
|
|
3438
3445
|
}
|
|
3439
|
-
if (
|
|
3446
|
+
if (d.querySelector(".dialog-resize-handle"))
|
|
3440
3447
|
return;
|
|
3441
|
-
const
|
|
3442
|
-
|
|
3448
|
+
const f = da();
|
|
3449
|
+
d.appendChild(f), fa(d), ca(d, f);
|
|
3443
3450
|
});
|
|
3444
|
-
},
|
|
3445
|
-
const
|
|
3446
|
-
return Object.assign(
|
|
3451
|
+
}, da = () => {
|
|
3452
|
+
const d = document.createElement("div");
|
|
3453
|
+
return Object.assign(d.style, {
|
|
3447
3454
|
position: "absolute",
|
|
3448
3455
|
right: "0",
|
|
3449
3456
|
bottom: "0",
|
|
@@ -3452,37 +3459,37 @@ const pe = {
|
|
|
3452
3459
|
background: "transparent",
|
|
3453
3460
|
cursor: "nwse-resize",
|
|
3454
3461
|
zIndex: "999999999999"
|
|
3455
|
-
}),
|
|
3456
|
-
},
|
|
3457
|
-
Object.assign(
|
|
3462
|
+
}), d.className = "dialog-resize-handle", d;
|
|
3463
|
+
}, fa = (d) => {
|
|
3464
|
+
Object.assign(d.style, {
|
|
3458
3465
|
transition: "none",
|
|
3459
3466
|
minWidth: "300px",
|
|
3460
3467
|
minHeight: "200px",
|
|
3461
3468
|
resize: "none"
|
|
3462
3469
|
// 防止与原生resize冲突
|
|
3463
3470
|
});
|
|
3464
|
-
},
|
|
3465
|
-
let
|
|
3466
|
-
const F = (
|
|
3467
|
-
|
|
3468
|
-
}, T = (
|
|
3469
|
-
if (!
|
|
3470
|
-
const
|
|
3471
|
-
|
|
3471
|
+
}, ca = (d, f) => {
|
|
3472
|
+
let o = !1, t, e, i, E;
|
|
3473
|
+
const F = (w) => {
|
|
3474
|
+
w.preventDefault(), o = !0, t = w.clientX, e = w.clientY, i = parseInt(document.defaultView.getComputedStyle(d).width), E = parseInt(document.defaultView.getComputedStyle(d).height), document.addEventListener("mousemove", T), document.addEventListener("mouseup", k);
|
|
3475
|
+
}, T = (w) => {
|
|
3476
|
+
if (!o) return;
|
|
3477
|
+
const H = Math.max(300, i + w.clientX - t), ee = Math.max(200, E + w.clientY - e);
|
|
3478
|
+
d.style.width = `${H}px`, d.style.height = `${ee}px`;
|
|
3472
3479
|
}, k = () => {
|
|
3473
|
-
|
|
3480
|
+
o = !1, document.removeEventListener("mousemove", T), document.removeEventListener("mouseup", k);
|
|
3474
3481
|
};
|
|
3475
|
-
|
|
3482
|
+
f.addEventListener("mousedown", F);
|
|
3476
3483
|
};
|
|
3477
3484
|
export {
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
|
|
3485
|
+
he as CT,
|
|
3486
|
+
pt as bindResize,
|
|
3487
|
+
Ot as convertToPx,
|
|
3488
|
+
ga as default,
|
|
3489
|
+
Ve as filterObject,
|
|
3490
|
+
sa as findTreeLabelByValue,
|
|
3491
|
+
ia as formatAmount,
|
|
3492
|
+
xe as mergeObjects,
|
|
3493
|
+
Et as moneyToChinese,
|
|
3494
|
+
wt as openModal
|
|
3488
3495
|
};
|