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