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