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