vue-2024-ui 0.2.45 → 0.2.46
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 +1162 -1140
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { h as
|
|
3
|
-
import { CircleCheck as
|
|
4
|
-
import
|
|
5
|
-
import { Dexie as
|
|
6
|
-
var
|
|
1
|
+
import nl, { ElForm as wt, ElButtonGroup as Et, ElButton as Ye, ElPopover as xt, ElMessage as rt, ElMessageBox as Lt, ElDialog as ol, ElDrawer as ul } from "element-plus";
|
|
2
|
+
import { h as Ee, mergeModels as nt, ref as ne, useModel as ot, nextTick as ft, onMounted as mt, computed as dt, resolveComponent as z, openBlock as m, createElementBlock as U, Fragment as ae, createElementVNode as Z, createBlock as B, createCommentVNode as be, unref as N, mergeProps as O, withCtx as E, renderSlot as k, renderList as X, createTextVNode as Ie, toDisplayString as Ce, createSlots as $e, createVNode as le, normalizeStyle as Ue, normalizeProps as Tt, useSlots as Ht, inject as Ot, useAttrs as It, onUnmounted as sl, withModifiers as kt, resolveDynamicComponent as at, guardReactiveProps as il, Transition as dl, withDirectives as cl, vShow as fl, onBeforeUnmount as vl, normalizeClass as zt, watchEffect as pl, onBeforeMount as ml, watch as hl, createApp as yl } from "vue";
|
|
3
|
+
import { CircleCheck as Nt, CircleCheckFilled as gl, Refresh as Pt, Plus as bl, ZoomIn as $l, Delete as jt, More as wl, Search as El, InfoFilled as Wt, Download as Gt, DocumentCopy as _l, View as kl, Edit as Cl, CirclePlus as Dl, Setting as Sl, FullScreen as xl, CopyDocument as Ml } from "@element-plus/icons-vue";
|
|
4
|
+
import Xt from "sortablejs";
|
|
5
|
+
import { Dexie as Tl } from "dexie";
|
|
6
|
+
var Fl = {
|
|
7
7
|
name: "zh-cn",
|
|
8
8
|
el: {
|
|
9
9
|
breadcrumb: {
|
|
@@ -180,116 +180,116 @@ var Tl = {
|
|
|
180
180
|
indicator: "幻灯片切换至索引 {index}"
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
|
-
},
|
|
184
|
-
function
|
|
183
|
+
}, Vl = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
184
|
+
function Qt(o) {
|
|
185
185
|
return o && o.__esModule && Object.prototype.hasOwnProperty.call(o, "default") ? o.default : o;
|
|
186
186
|
}
|
|
187
|
-
var
|
|
188
|
-
(function(o,
|
|
187
|
+
var Zt = { exports: {} };
|
|
188
|
+
(function(o, d) {
|
|
189
189
|
(function(t, l) {
|
|
190
190
|
o.exports = l();
|
|
191
|
-
})(
|
|
192
|
-
var t = 1e3, l = 6e4, n = 36e5, e = "millisecond", h = "second", f = "minute", D = "hour", c = "day", v = "week", u = "month",
|
|
193
|
-
var
|
|
194
|
-
return "[" + w + (
|
|
195
|
-
} },
|
|
191
|
+
})(Vl, function() {
|
|
192
|
+
var t = 1e3, l = 6e4, n = 36e5, e = "millisecond", h = "second", f = "minute", D = "hour", c = "day", v = "week", u = "month", i = "quarter", g = "year", te = "date", Y = "Invalid Date", R = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, V = /\[([^\]]+)]|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, Q = { 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(w) {
|
|
193
|
+
var b = ["th", "st", "nd", "rd"], s = w % 100;
|
|
194
|
+
return "[" + w + (b[(s - 20) % 10] || b[s] || b[0]) + "]";
|
|
195
|
+
} }, ce = function(w, b, s) {
|
|
196
196
|
var F = String(w);
|
|
197
|
-
return !F || F.length >=
|
|
198
|
-
},
|
|
199
|
-
var
|
|
200
|
-
return (
|
|
201
|
-
}, m: function w(
|
|
202
|
-
if (
|
|
203
|
-
var F = 12 * (s.year() -
|
|
204
|
-
return +(-(F + (s - _) / (
|
|
197
|
+
return !F || F.length >= b ? w : "" + Array(b + 1 - F.length).join(s) + w;
|
|
198
|
+
}, me = { s: ce, z: function(w) {
|
|
199
|
+
var b = -w.utcOffset(), s = Math.abs(b), F = Math.floor(s / 60), _ = s % 60;
|
|
200
|
+
return (b <= 0 ? "+" : "-") + ce(F, 2, "0") + ":" + ce(_, 2, "0");
|
|
201
|
+
}, m: function w(b, s) {
|
|
202
|
+
if (b.date() < s.date()) return -w(s, b);
|
|
203
|
+
var F = 12 * (s.year() - b.year()) + (s.month() - b.month()), _ = b.clone().add(F, u), A = s - _ < 0, T = b.clone().add(F + (A ? -1 : 1), u);
|
|
204
|
+
return +(-(F + (s - _) / (A ? _ - T : T - _)) || 0);
|
|
205
205
|
}, a: function(w) {
|
|
206
206
|
return w < 0 ? Math.ceil(w) || 0 : Math.floor(w);
|
|
207
207
|
}, p: function(w) {
|
|
208
|
-
return { M: u, y:
|
|
208
|
+
return { M: u, y: g, w: v, d: c, D: te, h: D, m: f, s: h, ms: e, Q: i }[w] || String(w || "").toLowerCase().replace(/s$/, "");
|
|
209
209
|
}, u: function(w) {
|
|
210
210
|
return w === void 0;
|
|
211
|
-
} }, ie = "en",
|
|
212
|
-
|
|
213
|
-
var
|
|
214
|
-
return w instanceof Me || !(!w || !w[
|
|
215
|
-
}, Se = function w(
|
|
211
|
+
} }, ie = "en", fe = {};
|
|
212
|
+
fe[ie] = Q;
|
|
213
|
+
var we = "$isDayjsObject", Fe = function(w) {
|
|
214
|
+
return w instanceof Me || !(!w || !w[we]);
|
|
215
|
+
}, Se = function w(b, s, F) {
|
|
216
216
|
var _;
|
|
217
|
-
if (!
|
|
218
|
-
if (typeof
|
|
219
|
-
var
|
|
220
|
-
|
|
221
|
-
var T =
|
|
217
|
+
if (!b) return ie;
|
|
218
|
+
if (typeof b == "string") {
|
|
219
|
+
var A = b.toLowerCase();
|
|
220
|
+
fe[A] && (_ = A), s && (fe[A] = s, _ = A);
|
|
221
|
+
var T = b.split("-");
|
|
222
222
|
if (!_ && T.length > 1) return w(T[0]);
|
|
223
223
|
} else {
|
|
224
|
-
var
|
|
225
|
-
|
|
224
|
+
var J = b.name;
|
|
225
|
+
fe[J] = b, _ = J;
|
|
226
226
|
}
|
|
227
227
|
return !F && _ && (ie = _), _ || !F && ie;
|
|
228
|
-
}, ee = function(w,
|
|
228
|
+
}, ee = function(w, b) {
|
|
229
229
|
if (Fe(w)) return w.clone();
|
|
230
|
-
var s = typeof
|
|
230
|
+
var s = typeof b == "object" ? b : {};
|
|
231
231
|
return s.date = w, s.args = arguments, new Me(s);
|
|
232
|
-
}, oe =
|
|
233
|
-
oe.l = Se, oe.i = Fe, oe.w = function(w,
|
|
234
|
-
return ee(w, { locale:
|
|
232
|
+
}, oe = me;
|
|
233
|
+
oe.l = Se, oe.i = Fe, oe.w = function(w, b) {
|
|
234
|
+
return ee(w, { locale: b.$L, utc: b.$u, x: b.$x, $offset: b.$offset });
|
|
235
235
|
};
|
|
236
236
|
var Me = function() {
|
|
237
237
|
function w(s) {
|
|
238
|
-
this.$L = Se(s.locale, null, !0), this.parse(s), this.$x = this.$x || s.x || {}, this[
|
|
238
|
+
this.$L = Se(s.locale, null, !0), this.parse(s), this.$x = this.$x || s.x || {}, this[we] = !0;
|
|
239
239
|
}
|
|
240
|
-
var
|
|
241
|
-
return
|
|
240
|
+
var b = w.prototype;
|
|
241
|
+
return b.parse = function(s) {
|
|
242
242
|
this.$d = function(F) {
|
|
243
|
-
var _ = F.date,
|
|
243
|
+
var _ = F.date, A = F.utc;
|
|
244
244
|
if (_ === null) return /* @__PURE__ */ new Date(NaN);
|
|
245
245
|
if (oe.u(_)) return /* @__PURE__ */ new Date();
|
|
246
246
|
if (_ instanceof Date) return new Date(_);
|
|
247
247
|
if (typeof _ == "string" && !/Z$/i.test(_)) {
|
|
248
248
|
var T = _.match(R);
|
|
249
249
|
if (T) {
|
|
250
|
-
var
|
|
251
|
-
return
|
|
250
|
+
var J = T[2] - 1 || 0, ue = (T[7] || "0").substring(0, 3);
|
|
251
|
+
return A ? new Date(Date.UTC(T[1], J, T[3] || 1, T[4] || 0, T[5] || 0, T[6] || 0, ue)) : new Date(T[1], J, T[3] || 1, T[4] || 0, T[5] || 0, T[6] || 0, ue);
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
254
|
return new Date(_);
|
|
255
255
|
}(s), this.init();
|
|
256
|
-
},
|
|
256
|
+
}, b.init = function() {
|
|
257
257
|
var s = this.$d;
|
|
258
258
|
this.$y = s.getFullYear(), this.$M = s.getMonth(), this.$D = s.getDate(), this.$W = s.getDay(), this.$H = s.getHours(), this.$m = s.getMinutes(), this.$s = s.getSeconds(), this.$ms = s.getMilliseconds();
|
|
259
|
-
},
|
|
259
|
+
}, b.$utils = function() {
|
|
260
260
|
return oe;
|
|
261
|
-
},
|
|
261
|
+
}, b.isValid = function() {
|
|
262
262
|
return this.$d.toString() !== Y;
|
|
263
|
-
},
|
|
263
|
+
}, b.isSame = function(s, F) {
|
|
264
264
|
var _ = ee(s);
|
|
265
265
|
return this.startOf(F) <= _ && _ <= this.endOf(F);
|
|
266
|
-
},
|
|
266
|
+
}, b.isAfter = function(s, F) {
|
|
267
267
|
return ee(s) < this.startOf(F);
|
|
268
|
-
},
|
|
268
|
+
}, b.isBefore = function(s, F) {
|
|
269
269
|
return this.endOf(F) < ee(s);
|
|
270
|
-
},
|
|
270
|
+
}, b.$g = function(s, F, _) {
|
|
271
271
|
return oe.u(s) ? this[F] : this.set(_, s);
|
|
272
|
-
},
|
|
272
|
+
}, b.unix = function() {
|
|
273
273
|
return Math.floor(this.valueOf() / 1e3);
|
|
274
|
-
},
|
|
274
|
+
}, b.valueOf = function() {
|
|
275
275
|
return this.$d.getTime();
|
|
276
|
-
},
|
|
277
|
-
var _ = this,
|
|
278
|
-
var
|
|
279
|
-
return
|
|
280
|
-
}, ue = function(
|
|
281
|
-
return oe.w(_.toDate()[
|
|
276
|
+
}, b.startOf = function(s, F) {
|
|
277
|
+
var _ = this, A = !!oe.u(F) || F, T = oe.p(s), J = function(Be, De) {
|
|
278
|
+
var q = oe.w(_.$u ? Date.UTC(_.$y, De, Be) : new Date(_.$y, De, Be), _);
|
|
279
|
+
return A ? q : q.endOf(c);
|
|
280
|
+
}, ue = function(Be, De) {
|
|
281
|
+
return oe.w(_.toDate()[Be].apply(_.toDate("s"), (A ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(De)), _);
|
|
282
282
|
}, re = this.$W, j = this.$M, W = this.$D, Te = "set" + (this.$u ? "UTC" : "");
|
|
283
283
|
switch (T) {
|
|
284
|
-
case
|
|
285
|
-
return
|
|
284
|
+
case g:
|
|
285
|
+
return A ? J(1, 0) : J(31, 11);
|
|
286
286
|
case u:
|
|
287
|
-
return
|
|
287
|
+
return A ? J(1, j) : J(0, j + 1);
|
|
288
288
|
case v:
|
|
289
|
-
var
|
|
290
|
-
return
|
|
289
|
+
var ye = this.$locale().weekStart || 0, Ve = (re < ye ? re + 7 : re) - ye;
|
|
290
|
+
return J(A ? W - Ve : W + (6 - Ve), j);
|
|
291
291
|
case c:
|
|
292
|
-
case
|
|
292
|
+
case te:
|
|
293
293
|
return ue(Te + "Hours", 0);
|
|
294
294
|
case D:
|
|
295
295
|
return ue(Te + "Minutes", 1);
|
|
@@ -300,47 +300,47 @@ var Qt = { exports: {} };
|
|
|
300
300
|
default:
|
|
301
301
|
return this.clone();
|
|
302
302
|
}
|
|
303
|
-
},
|
|
303
|
+
}, b.endOf = function(s) {
|
|
304
304
|
return this.startOf(s, !1);
|
|
305
|
-
},
|
|
306
|
-
var _,
|
|
307
|
-
if (
|
|
308
|
-
var re = this.clone().set(
|
|
309
|
-
re.$d[
|
|
310
|
-
} else
|
|
305
|
+
}, b.$set = function(s, F) {
|
|
306
|
+
var _, A = oe.p(s), T = "set" + (this.$u ? "UTC" : ""), J = (_ = {}, _[c] = T + "Date", _[te] = T + "Date", _[u] = T + "Month", _[g] = T + "FullYear", _[D] = T + "Hours", _[f] = T + "Minutes", _[h] = T + "Seconds", _[e] = T + "Milliseconds", _)[A], ue = A === c ? this.$D + (F - this.$W) : F;
|
|
307
|
+
if (A === u || A === g) {
|
|
308
|
+
var re = this.clone().set(te, 1);
|
|
309
|
+
re.$d[J](ue), re.init(), this.$d = re.set(te, Math.min(this.$D, re.daysInMonth())).$d;
|
|
310
|
+
} else J && this.$d[J](ue);
|
|
311
311
|
return this.init(), this;
|
|
312
|
-
},
|
|
312
|
+
}, b.set = function(s, F) {
|
|
313
313
|
return this.clone().$set(s, F);
|
|
314
|
-
},
|
|
314
|
+
}, b.get = function(s) {
|
|
315
315
|
return this[oe.p(s)]();
|
|
316
|
-
},
|
|
317
|
-
var _,
|
|
316
|
+
}, b.add = function(s, F) {
|
|
317
|
+
var _, A = this;
|
|
318
318
|
s = Number(s);
|
|
319
|
-
var T = oe.p(F),
|
|
320
|
-
var W = ee(
|
|
321
|
-
return oe.w(W.date(W.date() + Math.round(j * s)),
|
|
319
|
+
var T = oe.p(F), J = function(j) {
|
|
320
|
+
var W = ee(A);
|
|
321
|
+
return oe.w(W.date(W.date() + Math.round(j * s)), A);
|
|
322
322
|
};
|
|
323
323
|
if (T === u) return this.set(u, this.$M + s);
|
|
324
|
-
if (T ===
|
|
325
|
-
if (T === c) return
|
|
326
|
-
if (T === v) return
|
|
324
|
+
if (T === g) return this.set(g, this.$y + s);
|
|
325
|
+
if (T === c) return J(1);
|
|
326
|
+
if (T === v) return J(7);
|
|
327
327
|
var ue = (_ = {}, _[f] = l, _[D] = n, _[h] = t, _)[T] || 1, re = this.$d.getTime() + s * ue;
|
|
328
328
|
return oe.w(re, this);
|
|
329
|
-
},
|
|
329
|
+
}, b.subtract = function(s, F) {
|
|
330
330
|
return this.add(-1 * s, F);
|
|
331
|
-
},
|
|
331
|
+
}, b.format = function(s) {
|
|
332
332
|
var F = this, _ = this.$locale();
|
|
333
333
|
if (!this.isValid()) return _.invalidDate || Y;
|
|
334
|
-
var
|
|
335
|
-
return De && (De[
|
|
334
|
+
var A = s || "YYYY-MM-DDTHH:mm:ssZ", T = oe.z(this), J = this.$H, ue = this.$m, re = this.$M, j = _.weekdays, W = _.months, Te = _.meridiem, ye = function(De, q, C, P) {
|
|
335
|
+
return De && (De[q] || De(F, A)) || C[q].slice(0, P);
|
|
336
336
|
}, Ve = function(De) {
|
|
337
|
-
return oe.s(
|
|
338
|
-
},
|
|
339
|
-
var
|
|
340
|
-
return C ?
|
|
337
|
+
return oe.s(J % 12 || 12, De, "0");
|
|
338
|
+
}, Be = Te || function(De, q, C) {
|
|
339
|
+
var P = De < 12 ? "AM" : "PM";
|
|
340
|
+
return C ? P.toLowerCase() : P;
|
|
341
341
|
};
|
|
342
|
-
return
|
|
343
|
-
return
|
|
342
|
+
return A.replace(V, function(De, q) {
|
|
343
|
+
return q || function(C) {
|
|
344
344
|
switch (C) {
|
|
345
345
|
case "YY":
|
|
346
346
|
return String(F.$y).slice(-2);
|
|
@@ -351,9 +351,9 @@ var Qt = { exports: {} };
|
|
|
351
351
|
case "MM":
|
|
352
352
|
return oe.s(re + 1, 2, "0");
|
|
353
353
|
case "MMM":
|
|
354
|
-
return
|
|
354
|
+
return ye(_.monthsShort, re, W, 3);
|
|
355
355
|
case "MMMM":
|
|
356
|
-
return
|
|
356
|
+
return ye(W, re);
|
|
357
357
|
case "D":
|
|
358
358
|
return F.$D;
|
|
359
359
|
case "DD":
|
|
@@ -361,23 +361,23 @@ var Qt = { exports: {} };
|
|
|
361
361
|
case "d":
|
|
362
362
|
return String(F.$W);
|
|
363
363
|
case "dd":
|
|
364
|
-
return
|
|
364
|
+
return ye(_.weekdaysMin, F.$W, j, 2);
|
|
365
365
|
case "ddd":
|
|
366
|
-
return
|
|
366
|
+
return ye(_.weekdaysShort, F.$W, j, 3);
|
|
367
367
|
case "dddd":
|
|
368
368
|
return j[F.$W];
|
|
369
369
|
case "H":
|
|
370
|
-
return String(
|
|
370
|
+
return String(J);
|
|
371
371
|
case "HH":
|
|
372
|
-
return oe.s(
|
|
372
|
+
return oe.s(J, 2, "0");
|
|
373
373
|
case "h":
|
|
374
374
|
return Ve(1);
|
|
375
375
|
case "hh":
|
|
376
376
|
return Ve(2);
|
|
377
377
|
case "a":
|
|
378
|
-
return
|
|
378
|
+
return Be(J, ue, !0);
|
|
379
379
|
case "A":
|
|
380
|
-
return
|
|
380
|
+
return Be(J, ue, !1);
|
|
381
381
|
case "m":
|
|
382
382
|
return String(ue);
|
|
383
383
|
case "mm":
|
|
@@ -394,74 +394,74 @@ var Qt = { exports: {} };
|
|
|
394
394
|
return null;
|
|
395
395
|
}(De) || T.replace(":", "");
|
|
396
396
|
});
|
|
397
|
-
},
|
|
397
|
+
}, b.utcOffset = function() {
|
|
398
398
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
399
|
-
},
|
|
400
|
-
var
|
|
399
|
+
}, b.diff = function(s, F, _) {
|
|
400
|
+
var A, T = this, J = oe.p(F), ue = ee(s), re = (ue.utcOffset() - this.utcOffset()) * l, j = this - ue, W = function() {
|
|
401
401
|
return oe.m(T, ue);
|
|
402
402
|
};
|
|
403
|
-
switch (
|
|
404
|
-
case
|
|
405
|
-
|
|
403
|
+
switch (J) {
|
|
404
|
+
case g:
|
|
405
|
+
A = W() / 12;
|
|
406
406
|
break;
|
|
407
407
|
case u:
|
|
408
|
-
|
|
408
|
+
A = W();
|
|
409
409
|
break;
|
|
410
|
-
case
|
|
411
|
-
|
|
410
|
+
case i:
|
|
411
|
+
A = W() / 3;
|
|
412
412
|
break;
|
|
413
413
|
case v:
|
|
414
|
-
|
|
414
|
+
A = (j - re) / 6048e5;
|
|
415
415
|
break;
|
|
416
416
|
case c:
|
|
417
|
-
|
|
417
|
+
A = (j - re) / 864e5;
|
|
418
418
|
break;
|
|
419
419
|
case D:
|
|
420
|
-
|
|
420
|
+
A = j / n;
|
|
421
421
|
break;
|
|
422
422
|
case f:
|
|
423
|
-
|
|
423
|
+
A = j / l;
|
|
424
424
|
break;
|
|
425
425
|
case h:
|
|
426
|
-
|
|
426
|
+
A = j / t;
|
|
427
427
|
break;
|
|
428
428
|
default:
|
|
429
|
-
|
|
429
|
+
A = j;
|
|
430
430
|
}
|
|
431
|
-
return _ ?
|
|
432
|
-
},
|
|
431
|
+
return _ ? A : oe.a(A);
|
|
432
|
+
}, b.daysInMonth = function() {
|
|
433
433
|
return this.endOf(u).$D;
|
|
434
|
-
},
|
|
435
|
-
return
|
|
436
|
-
},
|
|
434
|
+
}, b.$locale = function() {
|
|
435
|
+
return fe[this.$L];
|
|
436
|
+
}, b.locale = function(s, F) {
|
|
437
437
|
if (!s) return this.$L;
|
|
438
|
-
var _ = this.clone(),
|
|
439
|
-
return
|
|
440
|
-
},
|
|
438
|
+
var _ = this.clone(), A = Se(s, F, !0);
|
|
439
|
+
return A && (_.$L = A), _;
|
|
440
|
+
}, b.clone = function() {
|
|
441
441
|
return oe.w(this.$d, this);
|
|
442
|
-
},
|
|
442
|
+
}, b.toDate = function() {
|
|
443
443
|
return new Date(this.valueOf());
|
|
444
|
-
},
|
|
444
|
+
}, b.toJSON = function() {
|
|
445
445
|
return this.isValid() ? this.toISOString() : null;
|
|
446
|
-
},
|
|
446
|
+
}, b.toISOString = function() {
|
|
447
447
|
return this.$d.toISOString();
|
|
448
|
-
},
|
|
448
|
+
}, b.toString = function() {
|
|
449
449
|
return this.$d.toUTCString();
|
|
450
450
|
}, w;
|
|
451
451
|
}(), M = Me.prototype;
|
|
452
|
-
return ee.prototype = M, [["$ms", e], ["$s", h], ["$m", f], ["$H", D], ["$W", c], ["$M", u], ["$y",
|
|
453
|
-
M[w[1]] = function(
|
|
454
|
-
return this.$g(
|
|
452
|
+
return ee.prototype = M, [["$ms", e], ["$s", h], ["$m", f], ["$H", D], ["$W", c], ["$M", u], ["$y", g], ["$D", te]].forEach(function(w) {
|
|
453
|
+
M[w[1]] = function(b) {
|
|
454
|
+
return this.$g(b, w[0], w[1]);
|
|
455
455
|
};
|
|
456
|
-
}), ee.extend = function(w,
|
|
457
|
-
return w.$i || (w(
|
|
456
|
+
}), ee.extend = function(w, b) {
|
|
457
|
+
return w.$i || (w(b, Me, ee), w.$i = !0), ee;
|
|
458
458
|
}, ee.locale = Se, ee.isDayjs = Fe, ee.unix = function(w) {
|
|
459
459
|
return ee(1e3 * w);
|
|
460
|
-
}, ee.en =
|
|
460
|
+
}, ee.en = fe[ie], ee.Ls = fe, ee.p = {}, ee;
|
|
461
461
|
});
|
|
462
|
-
})(
|
|
463
|
-
var
|
|
464
|
-
const
|
|
462
|
+
})(Zt);
|
|
463
|
+
var Al = Zt.exports;
|
|
464
|
+
const Mt = /* @__PURE__ */ Qt(Al), Jt = {
|
|
465
465
|
inline: !0,
|
|
466
466
|
type: "hidden",
|
|
467
467
|
"scroll-to-error": !0,
|
|
@@ -492,7 +492,7 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
492
492
|
label: "提交",
|
|
493
493
|
plain: !0,
|
|
494
494
|
hidden: !1,
|
|
495
|
-
icon: () =>
|
|
495
|
+
icon: () => Ee(Nt)
|
|
496
496
|
},
|
|
497
497
|
//保存并提交按钮属性
|
|
498
498
|
saveSubmit: {
|
|
@@ -501,7 +501,7 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
501
501
|
label: "保存提交",
|
|
502
502
|
plain: !0,
|
|
503
503
|
hidden: !0,
|
|
504
|
-
icon: () =>
|
|
504
|
+
icon: () => Ee(gl)
|
|
505
505
|
},
|
|
506
506
|
//表单重置按钮属性
|
|
507
507
|
reset: {
|
|
@@ -509,43 +509,43 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
509
509
|
label: "重置",
|
|
510
510
|
hidden: !0,
|
|
511
511
|
plain: !0,
|
|
512
|
-
icon: () =>
|
|
512
|
+
icon: () => Ee(Pt)
|
|
513
513
|
},
|
|
514
514
|
slots: {},
|
|
515
515
|
tabs: {
|
|
516
516
|
type: "card",
|
|
517
517
|
editable: !1
|
|
518
518
|
}
|
|
519
|
-
},
|
|
519
|
+
}, ut = (o, d) => {
|
|
520
520
|
const t = o.__vccOpts || o;
|
|
521
|
-
for (const [l, n] of
|
|
521
|
+
for (const [l, n] of d)
|
|
522
522
|
t[l] = n;
|
|
523
523
|
return t;
|
|
524
524
|
}, ql = {
|
|
525
525
|
style: { display: "flex", width: "100%" },
|
|
526
526
|
class: "g-ctrl-container"
|
|
527
|
-
},
|
|
527
|
+
}, Bl = { style: { width: "var(--up-width)", height: "var(--up-height)", position: "relative", "box-sizing": "border-box" } }, Ol = ["title"], Il = ["innerHTML"], Ul = ["innerHTML"], Rl = ["innerHTML"], Yl = ["innerHTML"], Ll = ["innerHTML"], Hl = ["innerHTML"], zl = ["innerHTML"], Nl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
528
528
|
__name: "g-ctrl",
|
|
529
|
-
props: /* @__PURE__ */
|
|
529
|
+
props: /* @__PURE__ */ nt(["t", "ctrlKey", "item", "model", "ctrlType", "formInfo"], {
|
|
530
530
|
modelValue: { required: !0 },
|
|
531
531
|
modelModifiers: {}
|
|
532
532
|
}),
|
|
533
533
|
emits: ["update:modelValue"],
|
|
534
534
|
setup(o) {
|
|
535
|
-
var
|
|
536
|
-
const
|
|
537
|
-
!((
|
|
538
|
-
const
|
|
539
|
-
|
|
535
|
+
var b, s, F, _, A, T, J, ue, re, j, W, Te, ye, Ve, Be, De;
|
|
536
|
+
const d = o, t = ne(d.item || {}), l = ot(o, "modelValue"), n = ne(d.ctrlKey), e = ne(d.ctrlType), h = ne(d.model), f = ne([]), D = ne([]), c = ne(!1), v = ne(!1), u = ne(0), i = ne((s = (b = h == null ? void 0 : h.value) == null ? void 0 : b.form) != null && s["default-placeholder"] ? (_ = (F = h == null ? void 0 : h.value) == null ? void 0 : F[n == null ? void 0 : n.value]) == null ? void 0 : _.label : "");
|
|
537
|
+
!((A = e.value) != null && A.startsWith("text")) && !((T = e.value) != null && T.startsWith("link")) && !((J = e.value) != null && J.startsWith("tag")) && !((ue = e.value) != null && ue.startsWith("div")) && !((re = e.value) != null && re.startsWith("span")) && !((j = e.value) != null && j.startsWith("avatar")) && ((W = t.value) != null && W.style || (t.value.style = { width: ((ye = (Te = t.value) == null ? void 0 : Te.style) == null ? void 0 : ye.width) || "100%" }));
|
|
538
|
+
const g = ne({ display: "flex", flex: 1 }), te = d.t === "t" ? "center" : "flex-start", Y = ((Ve = t.value) == null ? void 0 : Ve.style) || {};
|
|
539
|
+
g.value = { ...g.value, justifyContent: te, ...Y };
|
|
540
540
|
const R = () => {
|
|
541
|
-
const
|
|
542
|
-
return C.filter((
|
|
541
|
+
const q = Ht(), C = Object.keys(q), P = `${d.t}-${n.value}-`;
|
|
542
|
+
return C.filter((qe) => qe.startsWith(P)).map((qe) => qe.replace(P, ""));
|
|
543
543
|
}, V = ne({
|
|
544
544
|
multiple: !1,
|
|
545
545
|
"show-file-list": !1,
|
|
546
546
|
"file-list": [],
|
|
547
|
-
showDel: (
|
|
548
|
-
}),
|
|
547
|
+
showDel: (Be = t.value) != null && Be.showDel ? (De = t.value) == null ? void 0 : De.showDel : d.t !== "t"
|
|
548
|
+
}), Q = ne(t.value.innerHtml), ce = (q) => [
|
|
549
549
|
"year",
|
|
550
550
|
"years",
|
|
551
551
|
"month",
|
|
@@ -558,7 +558,7 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
558
558
|
"daterange",
|
|
559
559
|
"monthrange",
|
|
560
560
|
"yearrange"
|
|
561
|
-
].includes(
|
|
561
|
+
].includes(q), me = (q) => ({
|
|
562
562
|
year: "YYYY",
|
|
563
563
|
years: "YYYY",
|
|
564
564
|
month: "YYYY-MM",
|
|
@@ -572,97 +572,97 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
572
572
|
daterange: "YYYY-MM-DD",
|
|
573
573
|
monthrange: "YYYY-MM",
|
|
574
574
|
yearrange: "YYYY"
|
|
575
|
-
})[
|
|
575
|
+
})[q] || "YYYY-MM-DD", ie = ne({
|
|
576
576
|
filterable: !0,
|
|
577
577
|
remote: !!(t.value && t.value["remote-method"]),
|
|
578
578
|
...t.value
|
|
579
|
-
}),
|
|
580
|
-
t.value["remote-method"](
|
|
581
|
-
|
|
579
|
+
}), fe = ne((q) => {
|
|
580
|
+
t.value["remote-method"](q, (C) => {
|
|
581
|
+
ft(() => {
|
|
582
582
|
D.value = C;
|
|
583
583
|
});
|
|
584
584
|
});
|
|
585
|
-
}),
|
|
585
|
+
}), we = async (q = "options") => {
|
|
586
586
|
var C;
|
|
587
587
|
try {
|
|
588
|
-
const
|
|
589
|
-
if (typeof
|
|
590
|
-
D.value = [{ label:
|
|
588
|
+
const P = await ((C = t.value) == null ? void 0 : C.getDicts(d.formInfo));
|
|
589
|
+
if (typeof P == "string")
|
|
590
|
+
D.value = [{ label: P, value: l.value }];
|
|
591
591
|
else {
|
|
592
|
-
const xe =
|
|
593
|
-
...
|
|
594
|
-
value:
|
|
595
|
-
label:
|
|
592
|
+
const xe = P == null ? void 0 : P.map((Ae, qe) => ({
|
|
593
|
+
...Ae,
|
|
594
|
+
value: Ae.value ?? Ae.label ?? qe,
|
|
595
|
+
label: Ae.label || "未知选项"
|
|
596
596
|
}));
|
|
597
597
|
D.value = xe || [];
|
|
598
598
|
}
|
|
599
|
-
} catch (
|
|
600
|
-
throw console.error("获取选项失败:",
|
|
599
|
+
} catch (P) {
|
|
600
|
+
throw console.error("获取选项失败:", P), P;
|
|
601
601
|
}
|
|
602
602
|
}, Fe = () => {
|
|
603
|
-
var
|
|
604
|
-
t.value.noSearch !== !0 &&
|
|
605
|
-
}, Se = (
|
|
606
|
-
|
|
607
|
-
}, ee = (
|
|
603
|
+
var q, C;
|
|
604
|
+
t.value.noSearch !== !0 && d.t === "q" && ((C = (q = h.value) == null ? void 0 : q.table) == null || C.load());
|
|
605
|
+
}, Se = (q) => {
|
|
606
|
+
q.preventDefault(), q.stopPropagation(), l.value = "";
|
|
607
|
+
}, ee = (q) => {
|
|
608
608
|
var C;
|
|
609
609
|
if (t.value["file-list"] && t.value["file-list"].length > 0) {
|
|
610
|
-
const
|
|
611
|
-
(xe) => xe.url ===
|
|
610
|
+
const P = t.value["file-list"].findIndex(
|
|
611
|
+
(xe) => xe.url === q.url || xe.uid === q.uid || q.raw && xe.raw && xe.raw.uid === q.raw.uid
|
|
612
612
|
);
|
|
613
|
-
u.value =
|
|
613
|
+
u.value = P >= 0 ? P : 0;
|
|
614
614
|
} else {
|
|
615
|
-
const
|
|
615
|
+
const P = q.url || ((C = q.raw) == null ? void 0 : C.url), xe = w.value.indexOf(P);
|
|
616
616
|
u.value = xe >= 0 ? xe : 0;
|
|
617
617
|
}
|
|
618
618
|
c.value = !0;
|
|
619
|
-
}, oe = (
|
|
620
|
-
if (
|
|
621
|
-
const C = l.value,
|
|
619
|
+
}, oe = (q) => {
|
|
620
|
+
if (q.preventDefault(), q.stopPropagation(), t.value["file-list"] && t.value["file-list"].length > 0) {
|
|
621
|
+
const C = l.value, P = t.value["file-list"].findIndex(
|
|
622
622
|
(xe) => {
|
|
623
|
-
var
|
|
624
|
-
return xe.url === C || ((
|
|
623
|
+
var Ae;
|
|
624
|
+
return xe.url === C || ((Ae = xe.raw) == null ? void 0 : Ae.url) === C;
|
|
625
625
|
}
|
|
626
626
|
);
|
|
627
|
-
u.value =
|
|
627
|
+
u.value = P >= 0 ? P : 0;
|
|
628
628
|
} else
|
|
629
629
|
u.value = 0;
|
|
630
630
|
c.value = !0;
|
|
631
|
-
}, Me = ne(null), M = (
|
|
632
|
-
if (
|
|
631
|
+
}, Me = ne(null), M = (q, C = 2) => {
|
|
632
|
+
if (q === "") {
|
|
633
633
|
l.value = "";
|
|
634
634
|
return;
|
|
635
635
|
}
|
|
636
|
-
let
|
|
637
|
-
if (
|
|
638
|
-
const
|
|
639
|
-
|
|
636
|
+
let P = q.replace(/[^-\d.]/g, "");
|
|
637
|
+
if (P.includes("-") && (P.startsWith("-") ? P = "-" + P.substring(1).replace(/-/g, "") : P = P.replace(/-/g, "")), (P.match(/\./g) || []).length > 1) {
|
|
638
|
+
const qe = P.indexOf(".");
|
|
639
|
+
P = P.substring(0, qe + 1) + P.substring(qe + 1).replace(/\./g, "");
|
|
640
640
|
}
|
|
641
|
-
if (
|
|
642
|
-
const [
|
|
643
|
-
Je.length > C && (
|
|
641
|
+
if (P = P.replace(/^-\./, "-0."), P = P.replace(/^\./, "0."), P = P.replace(/^-0+(\d)/, "-$1"), P = P.replace(/^0+(\d)/, "$1"), (P === "-" || P === "" || P === ".") && (P = "0"), C >= 0 && P.includes(".")) {
|
|
642
|
+
const [qe, Je] = P.split(".");
|
|
643
|
+
Je.length > C && (P = qe + "." + Je.substring(0, C));
|
|
644
644
|
}
|
|
645
|
-
l.value =
|
|
645
|
+
l.value = P;
|
|
646
646
|
};
|
|
647
647
|
mt(async () => {
|
|
648
|
-
var
|
|
649
|
-
t.value && t.value["remote-method"] && (ie.value["remote-method"] =
|
|
650
|
-
const
|
|
651
|
-
typeof t.value.getDicts == "function" &&
|
|
652
|
-
console.error(`Failed to load ${
|
|
648
|
+
var P, xe, Ae, qe, Je;
|
|
649
|
+
t.value && t.value["remote-method"] && (ie.value["remote-method"] = fe), (xe = (P = h.value[n.value]) == null ? void 0 : P.options) != null && xe.length && (D.value = h.value[n.value].options);
|
|
650
|
+
const q = (Le, Pe = "options", je = h.value[n.value]) => {
|
|
651
|
+
typeof t.value.getDicts == "function" && we(Pe).catch((We) => {
|
|
652
|
+
console.error(`Failed to load ${Pe} for ${Le}:`, We);
|
|
653
653
|
});
|
|
654
654
|
};
|
|
655
|
-
if (["radio", "radio-button", "checkbox-group", "checkbox-group-button", "select", "cascader"].includes(e.value) &&
|
|
655
|
+
if (["radio", "radio-button", "checkbox-group", "checkbox-group-button", "select", "cascader"].includes(e.value) && q(e.value), e.value === ke.TREESELECT && await (async () => {
|
|
656
656
|
try {
|
|
657
|
-
typeof t.value.getDicts == "function" ? f.value = await t.value.getDicts(
|
|
658
|
-
} catch (
|
|
659
|
-
console.error("Failed to load data for tree-select:",
|
|
657
|
+
typeof t.value.getDicts == "function" ? f.value = await t.value.getDicts(d.formInfo) : f.value = D.value;
|
|
658
|
+
} catch (Pe) {
|
|
659
|
+
console.error("Failed to load data for tree-select:", Pe);
|
|
660
660
|
}
|
|
661
|
-
})(),
|
|
661
|
+
})(), d.t == "q") {
|
|
662
662
|
let Le = t.value.type || e.value;
|
|
663
|
-
(Le === void 0 || e.value === "input" || Le == ke.NUMBER || Le == ke.EMAIL || Le == "url" || Le == "text") && t.value.onKeyup == null && (t.value.onKeyup = (
|
|
663
|
+
(Le === void 0 || e.value === "input" || Le == ke.NUMBER || Le == ke.EMAIL || Le == "url" || Le == "text") && t.value.onKeyup == null && (t.value.onKeyup = (Pe) => {
|
|
664
664
|
var je, We;
|
|
665
|
-
(
|
|
665
|
+
(Pe.keyCode === 13 || Pe.key === "Enter") && ((We = (je = h.value) == null ? void 0 : je.table) == null || We.load());
|
|
666
666
|
}), [
|
|
667
667
|
"radio",
|
|
668
668
|
"switch",
|
|
@@ -679,23 +679,23 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
679
679
|
"datetime",
|
|
680
680
|
"datetimerange",
|
|
681
681
|
"week"
|
|
682
|
-
].includes(Le) && t.value.onChange === void 0 && (t.value.onChange = (
|
|
682
|
+
].includes(Le) && t.value.onChange === void 0 && (t.value.onChange = (Pe) => {
|
|
683
683
|
var je, We;
|
|
684
684
|
(We = (je = h.value) == null ? void 0 : je.table) == null || We.load();
|
|
685
685
|
});
|
|
686
686
|
}
|
|
687
|
-
e.value == "image" && (t.value.width && ((
|
|
687
|
+
e.value == "image" && (t.value.width && ((Ae = Me.value) != null && Ae.$el) && Me.value.$el.style.setProperty("--up-width", typeof t.value.width == "number" ? t.value.width + "px" : t.value.width), t.value.height && ((qe = Me.value) != null && qe.$el) && Me.value.$el.style.setProperty("--up-height", typeof t.value.height == "number" ? t.value.height + "px" : t.value.height), t.value.fontSize && ((Je = Me.value) != null && Je.$el) && Me.value.$el.style.setProperty("--up-font-size", typeof t.value.fontSize == "number" ? t.value.fontSize + "px" : t.value.fontSize));
|
|
688
688
|
});
|
|
689
|
-
const w =
|
|
690
|
-
var
|
|
691
|
-
return t.value["file-list"] && t.value["file-list"].length ? (
|
|
689
|
+
const w = dt(() => {
|
|
690
|
+
var q;
|
|
691
|
+
return t.value["file-list"] && t.value["file-list"].length ? (q = t.value["file-list"]) == null ? void 0 : q.map((C) => C == null ? void 0 : C.url) : [l.value];
|
|
692
692
|
});
|
|
693
|
-
return (
|
|
694
|
-
var Ke, et, Qe, Ze,
|
|
695
|
-
const
|
|
696
|
-
return m(), U(
|
|
697
|
-
|
|
698
|
-
c.value ? (m(),
|
|
693
|
+
return (q, C) => {
|
|
694
|
+
var Ke, et, Qe, Ze, it, L, ze, tt, vt, bt;
|
|
695
|
+
const P = z("el-image-viewer"), xe = z("el-radio"), Ae = z("el-radio-group"), qe = z("el-radio-button"), Je = z("el-checkbox"), Le = z("el-checkbox-group"), Pe = z("el-checkbox-button"), je = z("g-select-option"), We = z("el-option"), a = z("el-select"), r = z("el-tree-select"), p = z("el-time-picker"), $ = z("el-time-select"), S = z("el-date-picker"), I = z("el-color-picker"), G = z("el-rate"), ge = z("el-slider"), _e = z("el-switch"), Re = z("el-transfer"), He = z("el-cascader"), Ne = z("el-icon"), Xe = z("el-image"), st = z("el-tooltip"), ht = z("el-upload"), yt = z("el-autocomplete"), gt = z("el-input-number"), H = z("el-input"), de = z("el-link"), x = z("el-text"), K = z("el-avatar"), se = z("el-tag");
|
|
696
|
+
return m(), U(ae, null, [
|
|
697
|
+
Z("div", null, [
|
|
698
|
+
c.value ? (m(), B(P, {
|
|
699
699
|
key: 0,
|
|
700
700
|
teleported: !0,
|
|
701
701
|
"initial-index": u.value,
|
|
@@ -703,64 +703,64 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
703
703
|
onClose: C[0] || (C[0] = (y) => c.value = !1)
|
|
704
704
|
}, null, 8, ["initial-index", "url-list"])) : be("", !0)
|
|
705
705
|
]),
|
|
706
|
-
|
|
707
|
-
e.value ==
|
|
706
|
+
Z("div", ql, [
|
|
707
|
+
e.value == N(ke).RADIO ? (m(), B(Ae, O({
|
|
708
708
|
key: 0,
|
|
709
709
|
modelValue: l.value,
|
|
710
710
|
"onUpdate:modelValue": C[1] || (C[1] = (y) => l.value = y),
|
|
711
711
|
disabled: h.value[n.value].disabled
|
|
712
712
|
}, t.value), {
|
|
713
713
|
default: E(() => [
|
|
714
|
-
k(
|
|
715
|
-
(m(!0), U(
|
|
714
|
+
k(q.$slots, `${d.t}-${n.value}`, { data: t.value }, () => [
|
|
715
|
+
(m(!0), U(ae, null, X(D.value, (y) => (m(), B(xe, O({ ref_for: !0 }, y), {
|
|
716
716
|
default: E(() => [
|
|
717
|
-
k(
|
|
717
|
+
k(q.$slots, `${d.t}-${n.value}-options`, { option: y }, void 0, !0)
|
|
718
718
|
]),
|
|
719
719
|
_: 2
|
|
720
720
|
}, 1040))), 256))
|
|
721
721
|
], !0)
|
|
722
722
|
]),
|
|
723
723
|
_: 3
|
|
724
|
-
}, 16, ["modelValue", "disabled"])) : e.value ==
|
|
724
|
+
}, 16, ["modelValue", "disabled"])) : e.value == N(ke).RADIOBUTTON ? (m(), B(Ae, O({
|
|
725
725
|
key: 1,
|
|
726
726
|
modelValue: l.value,
|
|
727
727
|
"onUpdate:modelValue": C[2] || (C[2] = (y) => l.value = y),
|
|
728
728
|
disabled: h.value[n.value].disabled
|
|
729
729
|
}, t.value), {
|
|
730
730
|
default: E(() => [
|
|
731
|
-
k(
|
|
732
|
-
(m(!0), U(
|
|
731
|
+
k(q.$slots, `${d.t}-${n.value}`, { data: t.value }, () => [
|
|
732
|
+
(m(!0), U(ae, null, X(D.value, (y) => (m(), B(qe, O({ ref_for: !0 }, y), {
|
|
733
733
|
default: E(() => [
|
|
734
|
-
k(
|
|
734
|
+
k(q.$slots, `${d.t}-${n.value}-options`, { option: y }, void 0, !0)
|
|
735
735
|
]),
|
|
736
736
|
_: 2
|
|
737
737
|
}, 1040))), 256))
|
|
738
738
|
], !0)
|
|
739
739
|
]),
|
|
740
740
|
_: 3
|
|
741
|
-
}, 16, ["modelValue", "disabled"])) : e.value ==
|
|
741
|
+
}, 16, ["modelValue", "disabled"])) : e.value == N(ke).CHECKBOX ? (m(), B(Je, O({
|
|
742
742
|
key: 2,
|
|
743
743
|
modelValue: l.value,
|
|
744
744
|
"onUpdate:modelValue": C[3] || (C[3] = (y) => l.value = y),
|
|
745
745
|
disabled: h.value[n.value].disabled
|
|
746
746
|
}, t.value), {
|
|
747
747
|
default: E(() => [
|
|
748
|
-
k(
|
|
748
|
+
k(q.$slots, `${d.t}-${n.value}`, { data: t.value }, () => [
|
|
749
749
|
C[29] || (C[29] = Ie(Ce(" ")))
|
|
750
750
|
], !0)
|
|
751
751
|
]),
|
|
752
752
|
_: 3
|
|
753
|
-
}, 16, ["modelValue", "disabled"])) : e.value ==
|
|
753
|
+
}, 16, ["modelValue", "disabled"])) : e.value == N(ke).CHECKBOXGROUP ? (m(), B(Le, O({
|
|
754
754
|
key: 3,
|
|
755
755
|
modelValue: l.value,
|
|
756
756
|
"onUpdate:modelValue": C[4] || (C[4] = (y) => l.value = y),
|
|
757
757
|
disabled: h.value[n.value].disabled
|
|
758
758
|
}, t.value), {
|
|
759
759
|
default: E(() => [
|
|
760
|
-
k(
|
|
761
|
-
(m(!0), U(
|
|
760
|
+
k(q.$slots, `${d.t}-${n.value}`, { data: t.value }, () => [
|
|
761
|
+
(m(!0), U(ae, null, X(D.value, (y) => (m(), B(Je, O({ ref_for: !0 }, y), {
|
|
762
762
|
default: E(() => [
|
|
763
|
-
k(
|
|
763
|
+
k(q.$slots, `${d.t}-${n.value}-options`, { option: y }, () => [
|
|
764
764
|
Ie(Ce(y.label), 1)
|
|
765
765
|
], !0)
|
|
766
766
|
]),
|
|
@@ -769,118 +769,124 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
769
769
|
], !0)
|
|
770
770
|
]),
|
|
771
771
|
_: 3
|
|
772
|
-
}, 16, ["modelValue", "disabled"])) : e.value ==
|
|
772
|
+
}, 16, ["modelValue", "disabled"])) : e.value == N(ke).CHECKBOXGROUPBUTTON ? (m(), B(Le, O({
|
|
773
773
|
key: 4,
|
|
774
774
|
modelValue: l.value,
|
|
775
775
|
"onUpdate:modelValue": C[5] || (C[5] = (y) => l.value = y),
|
|
776
776
|
disabled: h.value[n.value].disabled
|
|
777
777
|
}, t.value), {
|
|
778
778
|
default: E(() => [
|
|
779
|
-
k(
|
|
780
|
-
(m(!0), U(
|
|
779
|
+
k(q.$slots, `${d.t}-${n.value}`, { data: t.value }, () => [
|
|
780
|
+
(m(!0), U(ae, null, X(D.value, (y) => (m(), B(Pe, O({ ref_for: !0 }, y), {
|
|
781
781
|
default: E(() => [
|
|
782
|
-
k(
|
|
782
|
+
k(q.$slots, `${d.t}-${n.value}-options`, { option: y }, void 0, !0)
|
|
783
783
|
]),
|
|
784
784
|
_: 2
|
|
785
785
|
}, 1040))), 256))
|
|
786
786
|
], !0)
|
|
787
787
|
]),
|
|
788
788
|
_: 3
|
|
789
|
-
}, 16, ["modelValue", "disabled"])) : e.value ===
|
|
789
|
+
}, 16, ["modelValue", "disabled"])) : e.value === N(ke).SELECT ? (m(), B(a, O({
|
|
790
790
|
key: 5,
|
|
791
791
|
modelValue: l.value,
|
|
792
792
|
"onUpdate:modelValue": C[6] || (C[6] = (y) => l.value = y),
|
|
793
|
-
placeholder:
|
|
793
|
+
placeholder: i.value,
|
|
794
794
|
clearable: !0,
|
|
795
795
|
onClear: C[7] || (C[7] = () => {
|
|
796
|
-
|
|
796
|
+
d.t == "q" && h.value.table.load();
|
|
797
797
|
}),
|
|
798
798
|
disabled: h.value[n.value].disabled
|
|
799
|
-
}, ie.value),
|
|
800
|
-
default: E(() =>
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
}
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
799
|
+
}, ie.value), $e({
|
|
800
|
+
default: E(() => {
|
|
801
|
+
var y;
|
|
802
|
+
return [
|
|
803
|
+
((y = D.value) == null ? void 0 : y.length) > 0 ? k(q.$slots, `${d.t}-${n.value}`, {
|
|
804
|
+
key: 0,
|
|
805
|
+
options: D.value
|
|
806
|
+
}, () => [
|
|
807
|
+
(m(!0), U(ae, null, X(D.value, (ve) => (m(), U(ae, {
|
|
808
|
+
key: ve.value
|
|
809
|
+
}, [
|
|
810
|
+
le(We, O({ ref_for: !0 }, N(Ge)(ve, (pe) => pe != "children"), {
|
|
811
|
+
onClick: (pe) => {
|
|
812
|
+
ie.value.change && ie.value.change(ve), Fe();
|
|
813
|
+
}
|
|
814
|
+
}), {
|
|
815
|
+
default: E(() => {
|
|
816
|
+
var pe;
|
|
817
|
+
return [
|
|
818
|
+
(pe = t.value) != null && pe.columns ? k(q.$slots, `${d.t}-${n.value}-options`, {
|
|
819
|
+
key: 0,
|
|
820
|
+
option: ve
|
|
821
|
+
}, () => {
|
|
822
|
+
var lt;
|
|
823
|
+
return [
|
|
824
|
+
le(je, {
|
|
825
|
+
columns: (lt = t.value) == null ? void 0 : lt.columns,
|
|
826
|
+
data: ve,
|
|
827
|
+
t: d.t
|
|
828
|
+
}, $e({ _: 2 }, [
|
|
829
|
+
X(q.$slots, (pt, St) => ({
|
|
830
|
+
name: St,
|
|
831
|
+
fn: E(($t) => [
|
|
832
|
+
k(q.$slots, St, {
|
|
833
|
+
option: ve,
|
|
834
|
+
data: $t,
|
|
835
|
+
form: o.formInfo
|
|
836
|
+
}, void 0, !0)
|
|
837
|
+
])
|
|
838
|
+
}))
|
|
839
|
+
]), 1032, ["columns", "data", "t"])
|
|
840
|
+
];
|
|
841
|
+
}, !0) : be("", !0)
|
|
842
|
+
];
|
|
843
|
+
}),
|
|
844
|
+
_: 2
|
|
845
|
+
}, 1040, ["onClick"]),
|
|
846
|
+
ve.children && ve.children.length ? (m(!0), U(ae, { key: 0 }, X(ve.children, (pe) => (m(), B(We, O({
|
|
847
|
+
style: { "margin-left": "20px" },
|
|
848
|
+
key: pe.value,
|
|
849
|
+
ref_for: !0
|
|
850
|
+
}, N(Ge)(pe, (lt) => lt != "children"), {
|
|
851
|
+
onClick: (lt) => {
|
|
852
|
+
ie.value.change && ie.value.change(pe), Fe();
|
|
853
|
+
}
|
|
854
|
+
}), {
|
|
855
|
+
default: E(() => {
|
|
856
|
+
var lt;
|
|
857
|
+
return [
|
|
858
|
+
(lt = t.value) != null && lt.columns ? k(q.$slots, `${d.t}-${n.value}-options`, {
|
|
859
|
+
key: 0,
|
|
860
|
+
option: pe
|
|
861
|
+
}, () => {
|
|
862
|
+
var pt;
|
|
863
|
+
return [
|
|
864
|
+
le(je, {
|
|
865
|
+
columns: (pt = t.value) == null ? void 0 : pt.columns,
|
|
866
|
+
data: pe,
|
|
867
|
+
t: d.t
|
|
868
|
+
}, $e({ _: 2 }, [
|
|
869
|
+
X(q.$slots, (St, $t) => ({
|
|
870
|
+
name: $t,
|
|
871
|
+
fn: E((rl) => [
|
|
872
|
+
k(q.$slots, $t, {
|
|
873
|
+
option: pe,
|
|
874
|
+
data: rl,
|
|
875
|
+
form: o.formInfo
|
|
876
|
+
}, void 0, !0)
|
|
877
|
+
])
|
|
878
|
+
}))
|
|
879
|
+
]), 1032, ["columns", "data", "t"])
|
|
880
|
+
];
|
|
881
|
+
}, !0) : be("", !0)
|
|
882
|
+
];
|
|
883
|
+
}),
|
|
884
|
+
_: 2
|
|
885
|
+
}, 1040, ["onClick"]))), 128)) : be("", !0)
|
|
886
|
+
], 64))), 128))
|
|
887
|
+
], !0) : be("", !0)
|
|
888
|
+
];
|
|
889
|
+
}),
|
|
884
890
|
_: 2
|
|
885
891
|
}, [
|
|
886
892
|
(Ke = t.value) != null && Ke.columns ? {
|
|
@@ -888,15 +894,15 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
888
894
|
fn: E(() => {
|
|
889
895
|
var y;
|
|
890
896
|
return [
|
|
891
|
-
|
|
897
|
+
le(je, {
|
|
892
898
|
columns: (y = t.value) == null ? void 0 : y.columns,
|
|
893
899
|
title: !0,
|
|
894
|
-
t:
|
|
895
|
-
},
|
|
896
|
-
X(
|
|
897
|
-
name:
|
|
898
|
-
fn: E((
|
|
899
|
-
k(
|
|
900
|
+
t: d.t
|
|
901
|
+
}, $e({ _: 2 }, [
|
|
902
|
+
X(q.$slots, (ve, pe) => ({
|
|
903
|
+
name: pe,
|
|
904
|
+
fn: E((lt) => [
|
|
905
|
+
k(q.$slots, pe, { data: lt }, void 0, !0)
|
|
900
906
|
])
|
|
901
907
|
}))
|
|
902
908
|
]), 1032, ["columns", "t"])
|
|
@@ -906,103 +912,103 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
906
912
|
} : void 0,
|
|
907
913
|
X(R(), (y) => ({
|
|
908
914
|
name: y,
|
|
909
|
-
fn: E((
|
|
910
|
-
k(
|
|
915
|
+
fn: E((ve) => [
|
|
916
|
+
k(q.$slots, `${d.t}-${n.value}-${y}`, { form: o.formInfo }, void 0, !0)
|
|
911
917
|
])
|
|
912
918
|
}))
|
|
913
|
-
]), 1040, ["modelValue", "placeholder", "disabled"])) : e.value ==
|
|
919
|
+
]), 1040, ["modelValue", "placeholder", "disabled"])) : e.value == N(ke).TREESELECT ? (m(), B(r, O({
|
|
914
920
|
key: 6,
|
|
915
921
|
modelValue: l.value,
|
|
916
922
|
"onUpdate:modelValue": C[8] || (C[8] = (y) => l.value = y),
|
|
917
|
-
placeholder:
|
|
923
|
+
placeholder: i.value,
|
|
918
924
|
disabled: h.value[n.value].disabled
|
|
919
|
-
}, t.value, { data: f.value }),
|
|
925
|
+
}, t.value, { data: f.value }), $e({ _: 2 }, [
|
|
920
926
|
X(R(), (y) => ({
|
|
921
927
|
name: y,
|
|
922
|
-
fn: E((
|
|
923
|
-
k(
|
|
928
|
+
fn: E((ve) => [
|
|
929
|
+
k(q.$slots, `${d.t}-${n.value}-${y}`, { data: ve }, void 0, !0)
|
|
924
930
|
])
|
|
925
931
|
}))
|
|
926
|
-
]), 1040, ["modelValue", "placeholder", "disabled", "data"])) : e.value ==
|
|
932
|
+
]), 1040, ["modelValue", "placeholder", "disabled", "data"])) : e.value == N(ke).TIME ? (m(), B(p, O({
|
|
927
933
|
key: 7,
|
|
928
934
|
modelValue: l.value,
|
|
929
935
|
"onUpdate:modelValue": C[9] || (C[9] = (y) => l.value = y),
|
|
930
936
|
"arrow-control": "",
|
|
931
937
|
disabled: h.value[n.value].disabled
|
|
932
|
-
}, t.value, { placeholder:
|
|
938
|
+
}, t.value, { placeholder: i.value }), null, 16, ["modelValue", "disabled", "placeholder"])) : e.value == N(ke).TIMESELECT ? (m(), B($, O({
|
|
933
939
|
key: 8,
|
|
934
940
|
modelValue: l.value,
|
|
935
941
|
"onUpdate:modelValue": C[10] || (C[10] = (y) => l.value = y),
|
|
936
942
|
start: "06:30",
|
|
937
943
|
step: "00:15",
|
|
938
944
|
end: "23:30",
|
|
939
|
-
placeholder:
|
|
945
|
+
placeholder: i.value,
|
|
940
946
|
disabled: h.value[n.value].disabled
|
|
941
|
-
}, t.value), null, 16, ["modelValue", "placeholder", "disabled"])) :
|
|
947
|
+
}, t.value), null, 16, ["modelValue", "placeholder", "disabled"])) : ce(e.value) ? (m(), B(S, O({
|
|
942
948
|
key: 9,
|
|
943
949
|
modelValue: l.value,
|
|
944
950
|
"onUpdate:modelValue": C[11] || (C[11] = (y) => l.value = y),
|
|
945
951
|
type: e.value,
|
|
946
|
-
placeholder:
|
|
947
|
-
"value-format":
|
|
952
|
+
placeholder: i.value,
|
|
953
|
+
"value-format": me(e.value),
|
|
948
954
|
disabled: h.value[n.value].disabled
|
|
949
|
-
}, t.value),
|
|
955
|
+
}, t.value), $e({ _: 2 }, [
|
|
950
956
|
X(R(), (y) => ({
|
|
951
957
|
name: y,
|
|
952
|
-
fn: E((
|
|
953
|
-
k(
|
|
958
|
+
fn: E((ve) => [
|
|
959
|
+
k(q.$slots, `${d.t}-${n.value}-${y}`, { data: ve }, void 0, !0)
|
|
954
960
|
])
|
|
955
961
|
}))
|
|
956
|
-
]), 1040, ["modelValue", "type", "placeholder", "value-format", "disabled"])) : e.value ==
|
|
962
|
+
]), 1040, ["modelValue", "type", "placeholder", "value-format", "disabled"])) : e.value == N(ke).COLOR ? (m(), B(I, O({
|
|
957
963
|
key: 10,
|
|
958
964
|
modelValue: l.value,
|
|
959
965
|
"onUpdate:modelValue": C[12] || (C[12] = (y) => l.value = y)
|
|
960
|
-
}, t.value), null, 16, ["modelValue"])) : e.value ==
|
|
966
|
+
}, t.value), null, 16, ["modelValue"])) : e.value == N(ke).RATE ? (m(), B(G, O({
|
|
961
967
|
key: 11,
|
|
962
968
|
modelValue: l.value,
|
|
963
969
|
"onUpdate:modelValue": C[13] || (C[13] = (y) => l.value = y),
|
|
964
970
|
disabled: h.value[n.value].disabled
|
|
965
|
-
}, t.value), null, 16, ["modelValue", "disabled"])) : e.value ==
|
|
971
|
+
}, t.value), null, 16, ["modelValue", "disabled"])) : e.value == N(ke).SLIDER ? (m(), B(ge, O({
|
|
966
972
|
key: 12,
|
|
967
973
|
modelValue: l.value,
|
|
968
974
|
"onUpdate:modelValue": C[14] || (C[14] = (y) => l.value = y),
|
|
969
975
|
disabled: h.value[n.value].disabled
|
|
970
|
-
}, t.value), null, 16, ["modelValue", "disabled"])) : e.value ==
|
|
976
|
+
}, t.value), null, 16, ["modelValue", "disabled"])) : e.value == N(ke).SWITCH ? (m(), B(_e, O({
|
|
971
977
|
key: 13,
|
|
972
978
|
modelValue: l.value,
|
|
973
979
|
"onUpdate:modelValue": C[15] || (C[15] = (y) => l.value = y),
|
|
974
980
|
inlinePrompt: !0,
|
|
975
981
|
disabled: h.value[n.value].disabled
|
|
976
|
-
}, t.value),
|
|
982
|
+
}, t.value), $e({ _: 2 }, [
|
|
977
983
|
X(R(), (y) => ({
|
|
978
984
|
name: y,
|
|
979
|
-
fn: E((
|
|
980
|
-
k(
|
|
985
|
+
fn: E((ve) => [
|
|
986
|
+
k(q.$slots, `${d.t}-${n.value}-${y}`, { data: ve }, void 0, !0)
|
|
981
987
|
])
|
|
982
988
|
}))
|
|
983
|
-
]), 1040, ["modelValue", "disabled"])) : e.value ==
|
|
989
|
+
]), 1040, ["modelValue", "disabled"])) : e.value == N(ke).TRANSFER ? (m(), B(Re, O({
|
|
984
990
|
key: 14,
|
|
985
991
|
modelValue: l.value,
|
|
986
992
|
"onUpdate:modelValue": C[16] || (C[16] = (y) => l.value = y)
|
|
987
|
-
}, t.value),
|
|
993
|
+
}, t.value), $e({ _: 2 }, [
|
|
988
994
|
X(R(), (y) => ({
|
|
989
995
|
name: y,
|
|
990
|
-
fn: E((
|
|
991
|
-
k(
|
|
996
|
+
fn: E((ve) => [
|
|
997
|
+
k(q.$slots, `${d.t}-${n.value}-${y}`, { data: ve }, void 0, !0)
|
|
992
998
|
])
|
|
993
999
|
}))
|
|
994
|
-
]), 1040, ["modelValue"])) : e.value ==
|
|
1000
|
+
]), 1040, ["modelValue"])) : e.value == N(ke).CASCADER ? (m(), B(He, O({
|
|
995
1001
|
key: 15,
|
|
996
1002
|
modelValue: l.value,
|
|
997
1003
|
"onUpdate:modelValue": C[17] || (C[17] = (y) => l.value = y)
|
|
998
|
-
}, t.value, { options: D.value }),
|
|
1004
|
+
}, t.value, { options: D.value }), $e({ _: 2 }, [
|
|
999
1005
|
X(R(), (y) => ({
|
|
1000
1006
|
name: y,
|
|
1001
|
-
fn: E((
|
|
1002
|
-
k(
|
|
1007
|
+
fn: E((ve) => [
|
|
1008
|
+
k(q.$slots, `${d.t}-${n.value}-${y}`, { data: ve }, void 0, !0)
|
|
1003
1009
|
])
|
|
1004
1010
|
}))
|
|
1005
|
-
]), 1040, ["modelValue", "options"])) : e.value ==
|
|
1011
|
+
]), 1040, ["modelValue", "options"])) : e.value == N(ke).IMAGE ? (m(), B(ht, O({
|
|
1006
1012
|
key: 16,
|
|
1007
1013
|
"file-list": t.value["file-list"],
|
|
1008
1014
|
"onUpdate:fileList": C[21] || (C[21] = (y) => t.value["file-list"] = y),
|
|
@@ -1012,46 +1018,46 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
1012
1018
|
}, { ...V.value, ...t.value }, {
|
|
1013
1019
|
ref_key: "uploadRef",
|
|
1014
1020
|
ref: Me
|
|
1015
|
-
}),
|
|
1021
|
+
}), $e({
|
|
1016
1022
|
default: E(() => {
|
|
1017
|
-
var y,
|
|
1023
|
+
var y, ve;
|
|
1018
1024
|
return [
|
|
1019
|
-
!l.value || ((y = t.value) == null ? void 0 : y.multiple) === !0 ? (m(),
|
|
1025
|
+
!l.value || ((y = t.value) == null ? void 0 : y.multiple) === !0 ? (m(), B(Ne, { key: 0 }, {
|
|
1020
1026
|
default: E(() => [
|
|
1021
|
-
|
|
1027
|
+
le(N(bl))
|
|
1022
1028
|
]),
|
|
1023
1029
|
_: 1
|
|
1024
1030
|
})) : (m(), U("div", {
|
|
1025
1031
|
key: 1,
|
|
1026
|
-
onClick: C[20] || (C[20] = (
|
|
1032
|
+
onClick: C[20] || (C[20] = (pe) => pe.stopPropagation()),
|
|
1027
1033
|
style: { display: "flex", width: "var(--up-width)", height: "var(--up-height)", position: "relative", "align-items": "center", "justify-content": "center", "box-sizing": "border-box" }
|
|
1028
1034
|
}, [
|
|
1029
|
-
|
|
1030
|
-
|
|
1035
|
+
Z("div", Bl, [
|
|
1036
|
+
le(Xe, O({
|
|
1031
1037
|
style: { width: "var(--up-width)", height: "var(--up-height)" },
|
|
1032
1038
|
src: l.value
|
|
1033
|
-
}, { fit: "cover", lazy: !0, ...(
|
|
1034
|
-
X(R(), (
|
|
1035
|
-
name:
|
|
1039
|
+
}, { fit: "cover", lazy: !0, ...(ve = t.value) == null ? void 0 : ve.img }), $e({ _: 2 }, [
|
|
1040
|
+
X(R(), (pe, lt) => ({
|
|
1041
|
+
name: pe,
|
|
1036
1042
|
fn: E((pt) => [
|
|
1037
|
-
k(
|
|
1043
|
+
k(q.$slots, `${d.t}-${n.value}-${pe}`, { data: pt }, void 0, !0)
|
|
1038
1044
|
])
|
|
1039
1045
|
}))
|
|
1040
1046
|
]), 1040, ["src"])
|
|
1041
1047
|
]),
|
|
1042
|
-
|
|
1048
|
+
Z("div", {
|
|
1043
1049
|
style: { display: "flex", width: "var(--up-width)", height: "var(--up-height)", position: "absolute", "align-items": "center", "justify-content": "center" },
|
|
1044
|
-
onMouseenter: C[18] || (C[18] = (
|
|
1045
|
-
onMouseleave: C[19] || (C[19] = (
|
|
1050
|
+
onMouseenter: C[18] || (C[18] = (pe) => v.value = !0),
|
|
1051
|
+
onMouseleave: C[19] || (C[19] = (pe) => v.value = !1),
|
|
1046
1052
|
class: "up-view"
|
|
1047
1053
|
}, [
|
|
1048
|
-
v.value ? (m(),
|
|
1054
|
+
v.value ? (m(), B(st, {
|
|
1049
1055
|
key: 0,
|
|
1050
1056
|
content: "查看大图",
|
|
1051
1057
|
placement: "top"
|
|
1052
1058
|
}, {
|
|
1053
1059
|
default: E(() => [
|
|
1054
|
-
|
|
1060
|
+
le(N($l), {
|
|
1055
1061
|
style: { width: "1.5em", height: "1.5em", "margin-right": "12px" },
|
|
1056
1062
|
color: "white",
|
|
1057
1063
|
onClick: oe
|
|
@@ -1059,13 +1065,13 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
1059
1065
|
]),
|
|
1060
1066
|
_: 1
|
|
1061
1067
|
})) : be("", !0),
|
|
1062
|
-
V.value.showDel && v.value ? (m(),
|
|
1068
|
+
V.value.showDel && v.value ? (m(), B(st, {
|
|
1063
1069
|
key: 1,
|
|
1064
1070
|
content: "删除",
|
|
1065
1071
|
placement: "top"
|
|
1066
1072
|
}, {
|
|
1067
1073
|
default: E(() => [
|
|
1068
|
-
|
|
1074
|
+
le(N(jt), {
|
|
1069
1075
|
style: { width: "1.5em", height: "1.5em" },
|
|
1070
1076
|
color: "white",
|
|
1071
1077
|
onClick: Se
|
|
@@ -1079,104 +1085,104 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
1079
1085
|
}),
|
|
1080
1086
|
_: 2
|
|
1081
1087
|
}, [
|
|
1082
|
-
X(R(), (y,
|
|
1088
|
+
X(R(), (y, ve) => ({
|
|
1083
1089
|
name: y,
|
|
1084
|
-
fn: E((
|
|
1085
|
-
k(
|
|
1090
|
+
fn: E((pe) => [
|
|
1091
|
+
k(q.$slots, `${d.t}-${n.value}-${y}`, { data: pe }, void 0, !0)
|
|
1086
1092
|
])
|
|
1087
1093
|
}))
|
|
1088
|
-
]), 1040, ["file-list"])) : e.value ==
|
|
1094
|
+
]), 1040, ["file-list"])) : e.value == N(ke).AUTOCOMPLETE ? (m(), B(yt, O({
|
|
1089
1095
|
key: 17,
|
|
1090
1096
|
modelValue: l.value,
|
|
1091
1097
|
"onUpdate:modelValue": C[22] || (C[22] = (y) => l.value = y)
|
|
1092
|
-
}, t.value, { placeholder:
|
|
1093
|
-
X(R(), (y,
|
|
1098
|
+
}, t.value, { placeholder: i.value }), $e({ _: 2 }, [
|
|
1099
|
+
X(R(), (y, ve) => ({
|
|
1094
1100
|
name: y,
|
|
1095
|
-
fn: E((
|
|
1096
|
-
k(
|
|
1101
|
+
fn: E((pe) => [
|
|
1102
|
+
k(q.$slots, `${d.t}-${n.value}-${y}`, { data: pe }, void 0, !0)
|
|
1097
1103
|
])
|
|
1098
1104
|
}))
|
|
1099
|
-
]), 1040, ["modelValue", "placeholder"])) : e.value ==
|
|
1105
|
+
]), 1040, ["modelValue", "placeholder"])) : e.value == N(ke).INPUTNUMBER ? (m(), B(gt, O({
|
|
1100
1106
|
key: 18,
|
|
1101
1107
|
modelValue: l.value,
|
|
1102
1108
|
"onUpdate:modelValue": C[23] || (C[23] = (y) => l.value = y),
|
|
1103
1109
|
min: 0,
|
|
1104
1110
|
max: 1e8,
|
|
1105
|
-
placeholder:
|
|
1111
|
+
placeholder: i.value,
|
|
1106
1112
|
disabled: h.value[n.value].disabled
|
|
1107
|
-
}, t.value),
|
|
1108
|
-
X(R(), (y,
|
|
1113
|
+
}, t.value), $e({ _: 2 }, [
|
|
1114
|
+
X(R(), (y, ve) => ({
|
|
1109
1115
|
name: y,
|
|
1110
|
-
fn: E((
|
|
1111
|
-
k(
|
|
1116
|
+
fn: E((pe) => [
|
|
1117
|
+
k(q.$slots, `${d.t}-${n.value}-${y}`, { data: pe }, void 0, !0)
|
|
1112
1118
|
])
|
|
1113
1119
|
}))
|
|
1114
|
-
]), 1040, ["modelValue", "placeholder", "disabled"])) : e.value ==
|
|
1120
|
+
]), 1040, ["modelValue", "placeholder", "disabled"])) : e.value == N(ke).MONEY ? (m(), U("div", {
|
|
1115
1121
|
key: 19,
|
|
1116
|
-
style: Ue([{ position: "relative" },
|
|
1122
|
+
style: Ue([{ position: "relative" }, g.value])
|
|
1117
1123
|
}, [
|
|
1118
|
-
|
|
1124
|
+
le(H, O({
|
|
1119
1125
|
modelValue: l.value,
|
|
1120
1126
|
"onUpdate:modelValue": C[24] || (C[24] = (y) => l.value = y),
|
|
1121
|
-
placeholder:
|
|
1127
|
+
placeholder: i.value,
|
|
1122
1128
|
type: "number",
|
|
1123
1129
|
onInput: C[25] || (C[25] = (y) => M(y, 2)),
|
|
1124
1130
|
maxlength: ((et = t.value) == null ? void 0 : et.max) || 25
|
|
1125
|
-
}, { ...t.value, type: e.value }),
|
|
1131
|
+
}, { ...t.value, type: e.value }), $e({
|
|
1126
1132
|
suffix: E(() => [
|
|
1127
|
-
|
|
1128
|
-
title:
|
|
1133
|
+
Z("div", {
|
|
1134
|
+
title: N(Bt)(l.value),
|
|
1129
1135
|
style: { "font-size": "10px", display: "block", width: "80px", "text-align": "right", overflow: "hidden", "text-overflow": "ellipsis" }
|
|
1130
|
-
}, Ce(
|
|
1136
|
+
}, Ce(N(Bt)(l.value)), 9, Ol)
|
|
1131
1137
|
]),
|
|
1132
1138
|
_: 2
|
|
1133
1139
|
}, [
|
|
1134
|
-
X(R(), (y,
|
|
1140
|
+
X(R(), (y, ve) => ({
|
|
1135
1141
|
name: y,
|
|
1136
|
-
fn: E((
|
|
1137
|
-
k(
|
|
1142
|
+
fn: E((pe) => [
|
|
1143
|
+
k(q.$slots, `${d.t}-${n.value}-${y}`, { data: pe }, void 0, !0)
|
|
1138
1144
|
])
|
|
1139
1145
|
}))
|
|
1140
1146
|
]), 1040, ["modelValue", "placeholder", "maxlength"])
|
|
1141
1147
|
], 4)) : (Qe = e.value) != null && Qe.startsWith("link") ? (m(), U("div", {
|
|
1142
1148
|
key: 20,
|
|
1143
|
-
style: Ue(
|
|
1149
|
+
style: Ue(g.value)
|
|
1144
1150
|
}, [
|
|
1145
|
-
|
|
1151
|
+
le(de, O(t.value, {
|
|
1146
1152
|
type: e.value.replace("link-", ""),
|
|
1147
|
-
innerHTML:
|
|
1153
|
+
innerHTML: Q.value || l.value
|
|
1148
1154
|
}), null, 16, ["type", "innerHTML"])
|
|
1149
1155
|
], 4)) : e.value != "textarea" && ((Ze = e.value) != null && Ze.startsWith("text")) ? (m(), U("div", {
|
|
1150
1156
|
key: 21,
|
|
1151
|
-
style: Ue(
|
|
1157
|
+
style: Ue(g.value)
|
|
1152
1158
|
}, [
|
|
1153
|
-
|
|
1159
|
+
le(x, O(t.value, {
|
|
1154
1160
|
type: e.value.replace("text-", ""),
|
|
1155
|
-
innerHTML:
|
|
1161
|
+
innerHTML: Q.value || l.value
|
|
1156
1162
|
}), null, 16, ["type", "innerHTML"])
|
|
1157
1163
|
], 4)) : e.value == "avatar" ? (m(), U("div", {
|
|
1158
1164
|
key: 22,
|
|
1159
|
-
style: Ue(
|
|
1165
|
+
style: Ue(g.value)
|
|
1160
1166
|
}, [
|
|
1161
|
-
|
|
1167
|
+
Q.value ? (m(), B(K, Tt(O({ key: 0 }, t.value)), {
|
|
1162
1168
|
default: E(() => [
|
|
1163
|
-
|
|
1169
|
+
Z("div", { innerHTML: Q.value }, null, 8, Il)
|
|
1164
1170
|
]),
|
|
1165
1171
|
_: 1
|
|
1166
|
-
}, 16)) : (m(),
|
|
1167
|
-
], 4)) : (
|
|
1172
|
+
}, 16)) : (m(), B(K, Tt(O({ key: 1 }, t.value)), null, 16))
|
|
1173
|
+
], 4)) : (it = e.value) != null && it.startsWith("tag") ? (m(), U("div", {
|
|
1168
1174
|
key: 23,
|
|
1169
|
-
style: Ue(
|
|
1175
|
+
style: Ue(g.value)
|
|
1170
1176
|
}, [
|
|
1171
|
-
Array.isArray(
|
|
1172
|
-
typeof y == "object" ? (m(),
|
|
1177
|
+
Array.isArray(Q.value) && Q.value.length > 0 ? (m(!0), U(ae, { key: 0 }, X(Q.value, (y, ve) => (m(), U(ae, { key: ve }, [
|
|
1178
|
+
typeof y == "object" ? (m(), B(se, O({
|
|
1173
1179
|
key: 0,
|
|
1174
1180
|
"disable-transitions": "",
|
|
1175
1181
|
ref_for: !0
|
|
1176
1182
|
}, y, {
|
|
1177
1183
|
innerHTML: y == null ? void 0 : y.value,
|
|
1178
1184
|
style: { "margin-right": "3px" }
|
|
1179
|
-
}), null, 16, ["innerHTML"])) : (m(),
|
|
1185
|
+
}), null, 16, ["innerHTML"])) : (m(), B(se, O({
|
|
1180
1186
|
key: 1,
|
|
1181
1187
|
"disable-transitions": "",
|
|
1182
1188
|
ref_for: !0
|
|
@@ -1185,43 +1191,43 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
1185
1191
|
innerHTML: y,
|
|
1186
1192
|
style: { "margin-right": "3px" }
|
|
1187
1193
|
}), null, 16, ["type", "innerHTML"]))
|
|
1188
|
-
], 64))), 128)) : (m(),
|
|
1194
|
+
], 64))), 128)) : (m(), B(se, O({
|
|
1189
1195
|
key: 1,
|
|
1190
1196
|
"disable-transitions": ""
|
|
1191
1197
|
}, t.value, {
|
|
1192
1198
|
type: e.value.replace("tag-", ""),
|
|
1193
|
-
innerHTML:
|
|
1199
|
+
innerHTML: Q.value || l.value
|
|
1194
1200
|
}), null, 16, ["type", "innerHTML"]))
|
|
1195
|
-
], 4)) : e.value == "div" ? (m(), U("div",
|
|
1196
|
-
innerHTML:
|
|
1197
|
-
style:
|
|
1198
|
-
}), null, 16,
|
|
1199
|
-
innerHTML:
|
|
1200
|
-
style:
|
|
1201
|
-
}), null, 16,
|
|
1201
|
+
], 4)) : e.value == "div" ? (m(), U("div", O({ key: 24 }, t.value, {
|
|
1202
|
+
innerHTML: Q.value || l.value,
|
|
1203
|
+
style: g.value
|
|
1204
|
+
}), null, 16, Ul)) : e.value == "span" ? (m(), U("span", O({ key: 25 }, t.value, {
|
|
1205
|
+
innerHTML: Q.value || l.value,
|
|
1206
|
+
style: g.value
|
|
1207
|
+
}), null, 16, Rl)) : (m(), B(H, O({
|
|
1202
1208
|
key: 26,
|
|
1203
1209
|
modelValue: l.value,
|
|
1204
1210
|
"onUpdate:modelValue": C[26] || (C[26] = (y) => l.value = y),
|
|
1205
|
-
placeholder:
|
|
1211
|
+
placeholder: i.value,
|
|
1206
1212
|
maxlength: ((L = t.value) == null ? void 0 : L.max) || 25,
|
|
1207
1213
|
clearable: !0,
|
|
1208
1214
|
onInput: C[27] || (C[27] = (y) => {
|
|
1209
|
-
var
|
|
1210
|
-
return e.value ==
|
|
1215
|
+
var ve;
|
|
1216
|
+
return e.value == N(ke).NUMBER ? M(y, ((ve = t.value) == null ? void 0 : ve.precision) || 2) : y;
|
|
1211
1217
|
}),
|
|
1212
1218
|
onClear: C[28] || (C[28] = () => {
|
|
1213
|
-
|
|
1219
|
+
d.t == "q" && h.value.table.load();
|
|
1214
1220
|
}),
|
|
1215
1221
|
disabled: h.value[n.value].disabled
|
|
1216
|
-
}, { ...
|
|
1222
|
+
}, { ...N(Ge)(t.value, (y) => !["suffix", "prefix", "append", "prepend"].includes(y)), type: e.value }), $e({ _: 2 }, [
|
|
1217
1223
|
(ze = t.value) != null && ze.suffix ? {
|
|
1218
1224
|
name: "suffix",
|
|
1219
1225
|
fn: E(() => {
|
|
1220
1226
|
var y;
|
|
1221
1227
|
return [
|
|
1222
|
-
|
|
1228
|
+
Z("div", {
|
|
1223
1229
|
innerHTML: ((y = t.value) == null ? void 0 : y.suffix) || ""
|
|
1224
|
-
}, null, 8,
|
|
1230
|
+
}, null, 8, Yl)
|
|
1225
1231
|
];
|
|
1226
1232
|
}),
|
|
1227
1233
|
key: "0"
|
|
@@ -1231,9 +1237,9 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
1231
1237
|
fn: E(() => {
|
|
1232
1238
|
var y;
|
|
1233
1239
|
return [
|
|
1234
|
-
|
|
1240
|
+
Z("div", {
|
|
1235
1241
|
innerHTML: ((y = t.value) == null ? void 0 : y.prefix) || ""
|
|
1236
|
-
}, null, 8,
|
|
1242
|
+
}, null, 8, Ll)
|
|
1237
1243
|
];
|
|
1238
1244
|
}),
|
|
1239
1245
|
key: "1"
|
|
@@ -1243,9 +1249,9 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
1243
1249
|
fn: E(() => {
|
|
1244
1250
|
var y;
|
|
1245
1251
|
return [
|
|
1246
|
-
|
|
1252
|
+
Z("div", {
|
|
1247
1253
|
innerHTML: ((y = t.value) == null ? void 0 : y.append) || ""
|
|
1248
|
-
}, null, 8,
|
|
1254
|
+
}, null, 8, Hl)
|
|
1249
1255
|
];
|
|
1250
1256
|
}),
|
|
1251
1257
|
key: "2"
|
|
@@ -1255,18 +1261,18 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
1255
1261
|
fn: E(() => {
|
|
1256
1262
|
var y;
|
|
1257
1263
|
return [
|
|
1258
|
-
|
|
1264
|
+
Z("div", {
|
|
1259
1265
|
innerHTML: ((y = t.value) == null ? void 0 : y.prepend) || ""
|
|
1260
|
-
}, null, 8,
|
|
1266
|
+
}, null, 8, zl)
|
|
1261
1267
|
];
|
|
1262
1268
|
}),
|
|
1263
1269
|
key: "3"
|
|
1264
1270
|
} : void 0,
|
|
1265
|
-
X(R(), (y,
|
|
1271
|
+
X(R(), (y, ve) => ({
|
|
1266
1272
|
name: y,
|
|
1267
|
-
fn: E((
|
|
1268
|
-
k(
|
|
1269
|
-
data:
|
|
1273
|
+
fn: E((pe) => [
|
|
1274
|
+
k(q.$slots, `${d.t}-${n.value}-${y}`, {
|
|
1275
|
+
data: pe,
|
|
1270
1276
|
form: o.formInfo
|
|
1271
1277
|
}, void 0, !0)
|
|
1272
1278
|
])
|
|
@@ -1276,33 +1282,33 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
1276
1282
|
], 64);
|
|
1277
1283
|
};
|
|
1278
1284
|
}
|
|
1279
|
-
}), Dt = /* @__PURE__ */
|
|
1285
|
+
}), Dt = /* @__PURE__ */ ut(Nl, [["__scopeId", "data-v-5a3e415f"]]), Pl = { class: "g-form-container" }, jl = /* @__PURE__ */ Object.assign({
|
|
1280
1286
|
name: "g-form",
|
|
1281
1287
|
inheritAttrs: !1
|
|
1282
1288
|
}, {
|
|
1283
1289
|
__name: "g-form",
|
|
1284
|
-
props: /* @__PURE__ */
|
|
1290
|
+
props: /* @__PURE__ */ nt(["editForm", "flag"], {
|
|
1285
1291
|
modelValue: { required: !0 },
|
|
1286
1292
|
modelModifiers: {}
|
|
1287
1293
|
}),
|
|
1288
|
-
emits: /* @__PURE__ */
|
|
1289
|
-
setup(o, { expose:
|
|
1290
|
-
var
|
|
1291
|
-
const l =
|
|
1292
|
-
l.value.form =
|
|
1293
|
-
|
|
1294
|
+
emits: /* @__PURE__ */ nt(["submit", "reset"], ["update:modelValue"]),
|
|
1295
|
+
setup(o, { expose: d, emit: t }) {
|
|
1296
|
+
var we, Fe, Se, ee, oe, Me;
|
|
1297
|
+
const l = ot(o, "modelValue"), n = t, e = ne(null), h = Ot("options"), f = ne({}), D = ne(""), c = o;
|
|
1298
|
+
l.value.form = Oe(
|
|
1299
|
+
Jt,
|
|
1294
1300
|
h == null ? void 0 : h.form,
|
|
1295
|
-
(
|
|
1296
|
-
), l.value.form.style =
|
|
1301
|
+
(we = l.value) == null ? void 0 : we.form
|
|
1302
|
+
), l.value.form.style = Oe(
|
|
1297
1303
|
(Se = (Fe = l.value) == null ? void 0 : Fe.form) == null ? void 0 : Se.style,
|
|
1298
|
-
{ ...(ee =
|
|
1304
|
+
{ ...(ee = It()) == null ? void 0 : ee.style }
|
|
1299
1305
|
);
|
|
1300
|
-
const v = async (M, w,
|
|
1306
|
+
const v = async (M, w, b) => {
|
|
1301
1307
|
let s = 5;
|
|
1302
1308
|
for (; s > 0; ) {
|
|
1303
|
-
if (await
|
|
1309
|
+
if (await ft(), e.value) {
|
|
1304
1310
|
e.value.validate((F, _) => {
|
|
1305
|
-
F ? n("submit", M, w,
|
|
1311
|
+
F ? n("submit", M, w, b) : console.error("表单验证不通过!", _);
|
|
1306
1312
|
});
|
|
1307
1313
|
return;
|
|
1308
1314
|
}
|
|
@@ -1310,9 +1316,9 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
1310
1316
|
}
|
|
1311
1317
|
console.error("表单实例获取失败,请检查组件状态");
|
|
1312
1318
|
}, u = async (M, w) => {
|
|
1313
|
-
let
|
|
1314
|
-
for (;
|
|
1315
|
-
if (await
|
|
1319
|
+
let b = 5;
|
|
1320
|
+
for (; b > 0; ) {
|
|
1321
|
+
if (await ft(), e.value)
|
|
1316
1322
|
try {
|
|
1317
1323
|
e.value.resetFields(), n("reset", M, w);
|
|
1318
1324
|
return;
|
|
@@ -1320,33 +1326,33 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
1320
1326
|
console.error("表单重置失败:", s);
|
|
1321
1327
|
return;
|
|
1322
1328
|
}
|
|
1323
|
-
|
|
1329
|
+
b--, b > 0 && await new Promise((s) => setTimeout(s, 50));
|
|
1324
1330
|
}
|
|
1325
1331
|
console.error("表单实例获取失败,无法重置表单");
|
|
1326
1332
|
};
|
|
1327
1333
|
l.value.form.submit.click = v, l.value.form.saveSubmit.click = v, l.value.form.reset.click = u;
|
|
1328
|
-
const
|
|
1334
|
+
const i = {
|
|
1329
1335
|
type: "hidden",
|
|
1330
1336
|
labelPosition: "right",
|
|
1331
1337
|
style: {
|
|
1332
1338
|
width: "100%"
|
|
1333
1339
|
}
|
|
1334
1340
|
};
|
|
1335
|
-
l.value.formItems =
|
|
1336
|
-
|
|
1341
|
+
l.value.formItems = Oe(
|
|
1342
|
+
i,
|
|
1337
1343
|
h == null ? void 0 : h.formItems,
|
|
1338
1344
|
(oe = l == null ? void 0 : l.value) == null ? void 0 : oe.formItems
|
|
1339
1345
|
);
|
|
1340
|
-
const
|
|
1346
|
+
const g = {
|
|
1341
1347
|
span: 12,
|
|
1342
1348
|
offset: 0
|
|
1343
1349
|
};
|
|
1344
|
-
l.value.form.cols =
|
|
1345
|
-
|
|
1350
|
+
l.value.form.cols = Oe(
|
|
1351
|
+
g,
|
|
1346
1352
|
(Me = h == null ? void 0 : h.form) == null ? void 0 : Me.cols,
|
|
1347
1353
|
l.value.form.cols
|
|
1348
1354
|
);
|
|
1349
|
-
const
|
|
1355
|
+
const te = (M) => {
|
|
1350
1356
|
let w = [];
|
|
1351
1357
|
if (M.rules)
|
|
1352
1358
|
w = M.rules;
|
|
@@ -1365,72 +1371,72 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
1365
1371
|
message: `${s.label}不能为空!`,
|
|
1366
1372
|
trigger: "blur"
|
|
1367
1373
|
}), s.max !== void 0 && s.max !== null && s.max !== "" && (s.min === void 0 || s.min === null || s.min === "") && w.push({
|
|
1368
|
-
validator: (F, _,
|
|
1369
|
-
if (_ == null || _ === "") return
|
|
1370
|
-
s.type !== "number" && s.type !== "input-number" ? ((_ == null ? void 0 : _.toString()) || "").length > Number(s.max) ?
|
|
1374
|
+
validator: (F, _, A) => {
|
|
1375
|
+
if (_ == null || _ === "") return A();
|
|
1376
|
+
s.type !== "number" && s.type !== "input-number" ? ((_ == null ? void 0 : _.toString()) || "").length > Number(s.max) ? A(
|
|
1371
1377
|
new Error(`${s.label}长度不能超过${s.max}个字符!`)
|
|
1372
|
-
) :
|
|
1378
|
+
) : A() : Number(_) > Number(s.max) ? A(new Error(`${s.label}不能大于${s.max}!`)) : A();
|
|
1373
1379
|
}
|
|
1374
1380
|
}), s.min !== void 0 && s.min !== null && s.min !== "" && (s.max === void 0 || s.max === null || s.max === "") && w.push({
|
|
1375
|
-
validator: (F, _,
|
|
1376
|
-
if (_ == null || _ === "") return
|
|
1377
|
-
s.type !== "number" && s.type !== "input-number" ? Number(s.min) < 1 ?
|
|
1381
|
+
validator: (F, _, A) => {
|
|
1382
|
+
if (_ == null || _ === "") return A();
|
|
1383
|
+
s.type !== "number" && s.type !== "input-number" ? Number(s.min) < 1 ? A(
|
|
1378
1384
|
new Error(
|
|
1379
1385
|
`${s.label}长度最小值${s.min}设置错误!`
|
|
1380
1386
|
)
|
|
1381
|
-
) : _.toString().length < Number(s.min) ?
|
|
1387
|
+
) : _.toString().length < Number(s.min) ? A(
|
|
1382
1388
|
new Error(
|
|
1383
1389
|
`${s.label}长度不能少于${s.min}个字符!`
|
|
1384
1390
|
)
|
|
1385
|
-
) :
|
|
1391
|
+
) : A() : Number(_) < Number(s.min) ? A(new Error(`${s.label}不能小于${s.min}!`)) : A();
|
|
1386
1392
|
}
|
|
1387
1393
|
}), s.min !== void 0 && s.min !== null && s.min !== "" && s.max !== void 0 && s.max !== null && s.max !== "" && w.push({
|
|
1388
|
-
validator: (F, _,
|
|
1389
|
-
if (_ == null || _ === "") return
|
|
1390
|
-
const T = Number(s.min),
|
|
1391
|
-
s.type !== "number" && s.type !== "input-number" ? Number(s.min) < 1 ?
|
|
1394
|
+
validator: (F, _, A) => {
|
|
1395
|
+
if (_ == null || _ === "") return A();
|
|
1396
|
+
const T = Number(s.min), J = Number(s.max);
|
|
1397
|
+
s.type !== "number" && s.type !== "input-number" ? Number(s.min) < 1 ? A(
|
|
1392
1398
|
new Error(
|
|
1393
1399
|
`${s.label}长度最小值${s.min}设置错误!`
|
|
1394
1400
|
)
|
|
1395
|
-
) : _.toString().length < T || _.toString().length >
|
|
1401
|
+
) : _.toString().length < T || _.toString().length > J ? A(
|
|
1396
1402
|
new Error(
|
|
1397
|
-
`${s.label}长度必须在${T}-${
|
|
1403
|
+
`${s.label}长度必须在${T}-${J}个字符之间!`
|
|
1398
1404
|
)
|
|
1399
|
-
) :
|
|
1405
|
+
) : A() : Number(_) < T || _ > J ? A(new Error(`${s.label}必须在${T}-${J}之间!`)) : A();
|
|
1400
1406
|
}
|
|
1401
1407
|
}), s.type == "email" && w.push({ type: "email", message: "不是一个正确的邮箱地址!" }), s.type == "url" && w.push({ type: "url", message: "不是一个合正确的URL!" }), s.pattern && w.push({
|
|
1402
1408
|
pattern: s == null ? void 0 : s.pattern,
|
|
1403
1409
|
message: (s == null ? void 0 : s.message) || "格式不正确!"
|
|
1404
1410
|
}), s.validate && w.push({
|
|
1405
|
-
validator: (F, _,
|
|
1411
|
+
validator: (F, _, A) => s.validate(F, _, A)
|
|
1406
1412
|
});
|
|
1407
1413
|
}
|
|
1408
1414
|
return w;
|
|
1409
1415
|
}, Y = (M, w = !1) => {
|
|
1410
|
-
var F, _,
|
|
1411
|
-
const
|
|
1416
|
+
var F, _, A, T, J;
|
|
1417
|
+
const b = w ? M : M == null ? void 0 : M.item, s = typeof (b == null ? void 0 : b.editor) == "function" ? b.editor(f.value, (F = l.value.form) == null ? void 0 : F.modalState) : (b == null ? void 0 : b.editor) || {};
|
|
1412
1418
|
if (((_ = l.value.form) == null ? void 0 : _.modalState) === "edit") {
|
|
1413
|
-
const ue = typeof (
|
|
1419
|
+
const ue = typeof (b == null ? void 0 : b.editor) == "object" ? (A = b.editor) == null ? void 0 : A.ep : typeof (b == null ? void 0 : b.editor) == "function" ? s == null ? void 0 : s.ep : {};
|
|
1414
1420
|
return { ...s, ...ue };
|
|
1415
1421
|
}
|
|
1416
1422
|
if (((T = l.value.form) == null ? void 0 : T.modalState) === "add") {
|
|
1417
|
-
const ue = typeof (
|
|
1423
|
+
const ue = typeof (b == null ? void 0 : b.editor) == "object" ? (J = b.editor) == null ? void 0 : J.ap : typeof (b == null ? void 0 : b.editor) == "function" ? s == null ? void 0 : s.ap : {};
|
|
1418
1424
|
return { ...s, ...ue };
|
|
1419
1425
|
}
|
|
1420
1426
|
return s;
|
|
1421
1427
|
}, R = (M) => {
|
|
1422
|
-
var
|
|
1423
|
-
const w = typeof M.editor == "function" ? M.editor(f.value, (
|
|
1424
|
-
return ((s = l.value.form) == null ? void 0 : s.modalState) === "edit" ? ((F = w == null ? void 0 : w.ep) == null ? void 0 : F.type) ?? (w == null ? void 0 : w.type) ?? M.type : ((_ = l.value.form) == null ? void 0 : _.modalState) === "add" ? ((
|
|
1428
|
+
var b, s, F, _, A;
|
|
1429
|
+
const w = typeof M.editor == "function" ? M.editor(f.value, (b = l.value.form) == null ? void 0 : b.modalState) : M.editor;
|
|
1430
|
+
return ((s = l.value.form) == null ? void 0 : s.modalState) === "edit" ? ((F = w == null ? void 0 : w.ep) == null ? void 0 : F.type) ?? (w == null ? void 0 : w.type) ?? M.type : ((_ = l.value.form) == null ? void 0 : _.modalState) === "add" ? ((A = w == null ? void 0 : w.ap) == null ? void 0 : A.type) ?? (w == null ? void 0 : w.type) ?? M.type : (w == null ? void 0 : w.type) ?? M.type;
|
|
1425
1431
|
};
|
|
1426
1432
|
mt(() => {
|
|
1427
|
-
V(), c != null && c.editForm ? f.value = c.editForm : f.value =
|
|
1428
|
-
}),
|
|
1433
|
+
V(), c != null && c.editForm ? f.value = c.editForm : f.value = ce.value;
|
|
1434
|
+
}), sl(() => {
|
|
1429
1435
|
e.value = null;
|
|
1430
1436
|
});
|
|
1431
1437
|
const V = () => {
|
|
1432
1438
|
D.value = Math.random().toString(36).substring(2);
|
|
1433
|
-
for (const [M, w] of Object.entries(
|
|
1439
|
+
for (const [M, w] of Object.entries(Q.value))
|
|
1434
1440
|
l.value[M].formItem = {
|
|
1435
1441
|
...l.value[M].formItem,
|
|
1436
1442
|
...w.formItem
|
|
@@ -1438,31 +1444,31 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
1438
1444
|
...l.value[M].formItem.style,
|
|
1439
1445
|
...w.formItem.style
|
|
1440
1446
|
};
|
|
1441
|
-
},
|
|
1447
|
+
}, Q = dt(
|
|
1442
1448
|
() => Object.fromEntries(
|
|
1443
1449
|
Object.entries(l.value).filter((M) => M[1].type != "hidden").filter((M) => M[1].hidden !== !0).filter((M) => M[1].edit !== !1).filter((M) => M[1].editor !== !1).filter((M) => M[1].type !== "control").filter((M) => !["table", "tableColumns", "query", "queryItems", "form", "formItems", "control", "dialog"].includes(M[0])).filter((M) => {
|
|
1444
|
-
var
|
|
1445
|
-
const w = typeof M[1].editor == "function" ? M[1].editor(f.value, (
|
|
1450
|
+
var b, s, F;
|
|
1451
|
+
const w = typeof M[1].editor == "function" ? M[1].editor(f.value, (b = l.value.form) == null ? void 0 : b.modalState) : M[1].editor;
|
|
1446
1452
|
return l.value.form.modalState === "edit" ? ((s = w == null ? void 0 : w.ep) == null ? void 0 : s.editor) !== !1 : l.value.form.modalState === "add" ? ((F = w == null ? void 0 : w.ap) == null ? void 0 : F.editor) !== !1 : !0;
|
|
1447
1453
|
}).map((M) => [M[0], M[1]])
|
|
1448
1454
|
)
|
|
1449
|
-
),
|
|
1455
|
+
), ce = dt(
|
|
1450
1456
|
() => Object.fromEntries(
|
|
1451
1457
|
Object.entries(l.value).filter((M) => M[1].type != "hidden").filter((M) => M[1].type != "control").map((M) => [M[0], M[1].value])
|
|
1452
1458
|
)
|
|
1453
|
-
),
|
|
1459
|
+
), me = dt(() => {
|
|
1454
1460
|
const M = /* @__PURE__ */ new Map();
|
|
1455
|
-
return Object.entries(
|
|
1456
|
-
if (
|
|
1457
|
-
const s =
|
|
1461
|
+
return Object.entries(Q.value).forEach(([w, b]) => {
|
|
1462
|
+
if (b.groupName) {
|
|
1463
|
+
const s = b.groupName;
|
|
1458
1464
|
M.has(s) || M.set(s, {
|
|
1459
1465
|
groupName: s,
|
|
1460
1466
|
items: []
|
|
1461
|
-
}), M.get(s).items.push({ key: w, item:
|
|
1467
|
+
}), M.get(s).items.push({ key: w, item: b });
|
|
1462
1468
|
}
|
|
1463
1469
|
}), M.forEach((w) => {
|
|
1464
|
-
w.tabPane =
|
|
1465
|
-
...w.items.map(({ item:
|
|
1470
|
+
w.tabPane = Oe(
|
|
1471
|
+
...w.items.map(({ item: b }) => b.tabPane || {})
|
|
1466
1472
|
);
|
|
1467
1473
|
}), Array.from(M.values());
|
|
1468
1474
|
}), ie = ne([
|
|
@@ -1504,17 +1510,17 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
1504
1510
|
originalOrder: 1
|
|
1505
1511
|
// 添加原始顺序标识
|
|
1506
1512
|
}
|
|
1507
|
-
]),
|
|
1508
|
-
return
|
|
1513
|
+
]), fe = dt(() => ie.value.filter((M) => !M.hidden).sort((M, w) => M.sort - w.sort || M.originalOrder - w.originalOrder));
|
|
1514
|
+
return d({
|
|
1509
1515
|
submit: v,
|
|
1510
1516
|
saveSubmit: v,
|
|
1511
1517
|
reset: u,
|
|
1512
1518
|
formData: f
|
|
1513
1519
|
}), (M, w) => {
|
|
1514
|
-
var
|
|
1515
|
-
const
|
|
1520
|
+
var J, ue, re;
|
|
1521
|
+
const b = z("el-form-item"), s = z("el-col"), F = z("el-tab-pane"), _ = z("el-tabs"), A = z("el-form"), T = z("el-button");
|
|
1516
1522
|
return m(), U("div", Pl, [
|
|
1517
|
-
|
|
1523
|
+
le(A, O(
|
|
1518
1524
|
{
|
|
1519
1525
|
ref_key: "gform",
|
|
1520
1526
|
ref: e,
|
|
@@ -1526,21 +1532,21 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
1526
1532
|
"box-sizing": "border-box"
|
|
1527
1533
|
}
|
|
1528
1534
|
},
|
|
1529
|
-
|
|
1535
|
+
N(Ge)(
|
|
1530
1536
|
l.value.form,
|
|
1531
1537
|
(j) => !["footer", "submit", "reset", "slots", "type", "sort"].includes(j)
|
|
1532
1538
|
)
|
|
1533
1539
|
), {
|
|
1534
1540
|
default: E(() => [
|
|
1535
|
-
|
|
1536
|
-
|
|
1541
|
+
me.value.length > 0 ? k(M.$slots, "default", { key: 0 }, () => [
|
|
1542
|
+
le(_, O({
|
|
1537
1543
|
class: "demo-tabs",
|
|
1538
|
-
modelValue:
|
|
1539
|
-
"onUpdate:modelValue": w[0] || (w[0] = (j) =>
|
|
1544
|
+
modelValue: me.value[0].groupName,
|
|
1545
|
+
"onUpdate:modelValue": w[0] || (w[0] = (j) => me.value[0].groupName = j),
|
|
1540
1546
|
style: { width: "100%" }
|
|
1541
1547
|
}, l.value.form.tabs), {
|
|
1542
1548
|
default: E(() => [
|
|
1543
|
-
(m(!0), U(
|
|
1549
|
+
(m(!0), U(ae, null, X(me.value, (j) => (m(), B(F, O({
|
|
1544
1550
|
key: j.groupName,
|
|
1545
1551
|
label: j.groupName,
|
|
1546
1552
|
name: j.groupName,
|
|
@@ -1548,19 +1554,19 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
1548
1554
|
ref_for: !0
|
|
1549
1555
|
}, j.tabPane), {
|
|
1550
1556
|
default: E(() => [
|
|
1551
|
-
(m(!0), U(
|
|
1557
|
+
(m(!0), U(ae, null, X(j.items, (W, Te) => (m(), B(s, O({ ref_for: !0 }, { ...l.value.form.cols, ...W == null ? void 0 : W.item.col }, {
|
|
1552
1558
|
key: W.key,
|
|
1553
1559
|
style: { width: "100%" }
|
|
1554
1560
|
}), {
|
|
1555
1561
|
default: E(() => {
|
|
1556
|
-
var
|
|
1562
|
+
var ye, Ve;
|
|
1557
1563
|
return [
|
|
1558
|
-
|
|
1564
|
+
le(b, O({
|
|
1559
1565
|
label: W == null ? void 0 : W.item.label,
|
|
1560
1566
|
prop: W.key,
|
|
1561
|
-
rules:
|
|
1567
|
+
rules: te(W == null ? void 0 : W.item),
|
|
1562
1568
|
ref_for: !0
|
|
1563
|
-
}, { ...(
|
|
1569
|
+
}, { ...(ye = l.value) == null ? void 0 : ye.formItems, ...(Ve = W == null ? void 0 : W.item) == null ? void 0 : Ve.formItem }, { style: { width: "100%" } }), {
|
|
1564
1570
|
default: E(() => [
|
|
1565
1571
|
k(M.$slots, "f-" + W.key, {
|
|
1566
1572
|
item: W == null ? void 0 : W.item,
|
|
@@ -1568,9 +1574,9 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
1568
1574
|
model: l.value,
|
|
1569
1575
|
form: f.value
|
|
1570
1576
|
}, () => [
|
|
1571
|
-
(m(),
|
|
1577
|
+
(m(), B(Dt, {
|
|
1572
1578
|
modelValue: f.value[W.key],
|
|
1573
|
-
"onUpdate:modelValue": (
|
|
1579
|
+
"onUpdate:modelValue": (Be) => f.value[W.key] = Be,
|
|
1574
1580
|
item: Y(W),
|
|
1575
1581
|
ctrlKey: W.key,
|
|
1576
1582
|
ctrlType: R(W == null ? void 0 : W.item),
|
|
@@ -1579,12 +1585,12 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
1579
1585
|
class: "g-ctrl-container",
|
|
1580
1586
|
t: "f",
|
|
1581
1587
|
formInfo: f.value
|
|
1582
|
-
},
|
|
1583
|
-
X(M.$slots, (
|
|
1588
|
+
}, $e({ _: 2 }, [
|
|
1589
|
+
X(M.$slots, (Be, De) => ({
|
|
1584
1590
|
name: De,
|
|
1585
|
-
fn: E((
|
|
1591
|
+
fn: E((q) => [
|
|
1586
1592
|
k(M.$slots, De, {
|
|
1587
|
-
data:
|
|
1593
|
+
data: q,
|
|
1588
1594
|
item: W.item,
|
|
1589
1595
|
model: l.value
|
|
1590
1596
|
}, void 0, !0)
|
|
@@ -1606,22 +1612,22 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
1606
1612
|
_: 3
|
|
1607
1613
|
}, 16, ["modelValue"])
|
|
1608
1614
|
], !0) : k(M.$slots, "default", { key: 1 }, () => [
|
|
1609
|
-
(m(!0), U(
|
|
1615
|
+
(m(!0), U(ae, null, X(Q.value, (j, W) => (m(), B(s, O({ ref_for: !0 }, { ...l.value.form.cols, ...j.col }, {
|
|
1610
1616
|
key: W,
|
|
1611
1617
|
style: { width: "100%" }
|
|
1612
1618
|
}), {
|
|
1613
1619
|
default: E(() => {
|
|
1614
1620
|
var Te;
|
|
1615
1621
|
return [
|
|
1616
|
-
|
|
1622
|
+
le(b, O({
|
|
1617
1623
|
label: j.label,
|
|
1618
1624
|
prop: W,
|
|
1619
|
-
rules:
|
|
1625
|
+
rules: te(j),
|
|
1620
1626
|
ref_for: !0
|
|
1621
1627
|
}, { ...(Te = l.value) == null ? void 0 : Te.formItems, ...j == null ? void 0 : j.formItem }, { style: { width: "100%" } }), {
|
|
1622
|
-
label: E((
|
|
1628
|
+
label: E((ye) => [
|
|
1623
1629
|
k(M.$slots, `f-${W}-label`, {
|
|
1624
|
-
data:
|
|
1630
|
+
data: ye,
|
|
1625
1631
|
item: j,
|
|
1626
1632
|
model: l.value
|
|
1627
1633
|
}, () => [
|
|
@@ -1635,9 +1641,9 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
1635
1641
|
model: l.value,
|
|
1636
1642
|
form: f.value
|
|
1637
1643
|
}, () => [
|
|
1638
|
-
(m(),
|
|
1644
|
+
(m(), B(Dt, {
|
|
1639
1645
|
modelValue: f.value[W],
|
|
1640
|
-
"onUpdate:modelValue": (
|
|
1646
|
+
"onUpdate:modelValue": (ye) => f.value[W] = ye,
|
|
1641
1647
|
item: Y(j, !0),
|
|
1642
1648
|
ctrlKey: W,
|
|
1643
1649
|
ctrlType: R(j),
|
|
@@ -1646,12 +1652,12 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
1646
1652
|
class: "g-ctrl-container",
|
|
1647
1653
|
t: "f",
|
|
1648
1654
|
formInfo: f.value
|
|
1649
|
-
},
|
|
1650
|
-
X(M.$slots, (
|
|
1655
|
+
}, $e({ _: 2 }, [
|
|
1656
|
+
X(M.$slots, (ye, Ve) => ({
|
|
1651
1657
|
name: Ve,
|
|
1652
|
-
fn: E((
|
|
1658
|
+
fn: E((Be) => [
|
|
1653
1659
|
k(M.$slots, Ve, {
|
|
1654
|
-
data:
|
|
1660
|
+
data: Be,
|
|
1655
1661
|
item: j,
|
|
1656
1662
|
model: l.value
|
|
1657
1663
|
}, void 0, !0)
|
|
@@ -1670,17 +1676,17 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
1670
1676
|
]),
|
|
1671
1677
|
_: 3
|
|
1672
1678
|
}, 16, ["model"]),
|
|
1673
|
-
(re = (ue = (
|
|
1674
|
-
|
|
1679
|
+
(re = (ue = (J = l.value) == null ? void 0 : J.form) == null ? void 0 : ue.footer) != null && re.hidden ? be("", !0) : k(M.$slots, "f-footer", { key: 0 }, () => [
|
|
1680
|
+
Z("div", {
|
|
1675
1681
|
style: Ue(l.value.form.footer.style)
|
|
1676
1682
|
}, [
|
|
1677
1683
|
k(M.$slots, "f-footer-left", {}, void 0, !0),
|
|
1678
|
-
(m(!0), U(
|
|
1684
|
+
(m(!0), U(ae, null, X(fe.value, (j) => (m(), U(ae, null, [
|
|
1679
1685
|
k(M.$slots, j.name + "-left", {}, void 0, !0),
|
|
1680
1686
|
k(M.$slots, j.name, {}, () => {
|
|
1681
1687
|
var W;
|
|
1682
1688
|
return [
|
|
1683
|
-
(W = j == null ? void 0 : j.info) != null && W.hidden ? be("", !0) : (m(),
|
|
1689
|
+
(W = j == null ? void 0 : j.info) != null && W.hidden ? be("", !0) : (m(), B(T, O({
|
|
1684
1690
|
key: 0,
|
|
1685
1691
|
ref_for: !0
|
|
1686
1692
|
}, j.info, {
|
|
@@ -1701,9 +1707,9 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
1701
1707
|
]);
|
|
1702
1708
|
};
|
|
1703
1709
|
}
|
|
1704
|
-
}),
|
|
1710
|
+
}), Ft = /* @__PURE__ */ ut(jl, [["__scopeId", "data-v-3b3ffd4d"]]), Ut = {
|
|
1705
1711
|
__name: "g-query-item",
|
|
1706
|
-
props: /* @__PURE__ */
|
|
1712
|
+
props: /* @__PURE__ */ nt(["more"], {
|
|
1707
1713
|
modelValue: { required: !0 },
|
|
1708
1714
|
modelModifiers: {},
|
|
1709
1715
|
info: { required: !0 },
|
|
@@ -1711,58 +1717,74 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
1711
1717
|
}),
|
|
1712
1718
|
emits: ["update:modelValue", "update:info"],
|
|
1713
1719
|
setup(o) {
|
|
1714
|
-
const
|
|
1715
|
-
let c = Object.entries(
|
|
1716
|
-
var
|
|
1717
|
-
return typeof u[1].search == "function" ? u[1].search && ((
|
|
1718
|
-
}).map((u) => [u[0], u[1]])
|
|
1719
|
-
|
|
1720
|
-
|
|
1720
|
+
const d = ot(o, "modelValue"), t = o, l = ot(o, "info"), n = (D) => {
|
|
1721
|
+
let c = Object.entries(d.value).filter((u) => {
|
|
1722
|
+
var i;
|
|
1723
|
+
return typeof u[1].search == "function" ? u[1].search && ((i = u[1].search(l.value, d.value.table)) == null ? void 0 : i.more) === D : u[1].search && u[1].search.more === D;
|
|
1724
|
+
}).map((u) => [u[0], u[1]]);
|
|
1725
|
+
c.sort((u, i) => {
|
|
1726
|
+
const g = (Q) => {
|
|
1727
|
+
var ce;
|
|
1728
|
+
try {
|
|
1729
|
+
if (typeof Q[1].search == "function") {
|
|
1730
|
+
const me = Q[1].search(l.value, d.value.table);
|
|
1731
|
+
return (me == null ? void 0 : me.sort) ?? 0;
|
|
1732
|
+
} else
|
|
1733
|
+
return ((ce = Q[1].search) == null ? void 0 : ce.sort) ?? 0;
|
|
1734
|
+
} catch (me) {
|
|
1735
|
+
return console.warn(`获取 ${Q[0]} 的sort值时出错:`, me), 0;
|
|
1736
|
+
}
|
|
1737
|
+
}, te = g(u), Y = g(i), R = Number(te) || 0, V = Number(Y) || 0;
|
|
1738
|
+
return R - V;
|
|
1739
|
+
});
|
|
1740
|
+
let v = Object.fromEntries(c);
|
|
1741
|
+
return dt(() => v).value;
|
|
1742
|
+
}, e = (D) => typeof D.search == "function" ? D.search(l.value, d.value.table) : D.search || {}, h = (D) => {
|
|
1721
1743
|
const c = e(D);
|
|
1722
1744
|
return (c == null ? void 0 : c.type) || D.type;
|
|
1723
1745
|
}, f = (D) => {
|
|
1724
1746
|
var u;
|
|
1725
1747
|
const c = e(D);
|
|
1726
|
-
let v = (c == null ? void 0 : c.width) || ((u =
|
|
1748
|
+
let v = (c == null ? void 0 : c.width) || ((u = d.value.queryItems) == null ? void 0 : u.width) || "100%";
|
|
1727
1749
|
return isNaN(v) || (v += "px"), v;
|
|
1728
1750
|
};
|
|
1729
1751
|
return (D, c) => {
|
|
1730
1752
|
const v = z("el-form-item");
|
|
1731
|
-
return m(!0), U(
|
|
1732
|
-
key:
|
|
1753
|
+
return m(!0), U(ae, null, X(n(t.more), (u, i) => k(D.$slots, `q-${i}`, {
|
|
1754
|
+
key: i,
|
|
1733
1755
|
item: u,
|
|
1734
1756
|
queryModel: l.value,
|
|
1735
|
-
model:
|
|
1757
|
+
model: d.value
|
|
1736
1758
|
}, () => [
|
|
1737
|
-
|
|
1759
|
+
le(v, O({
|
|
1738
1760
|
label: u.label,
|
|
1739
1761
|
style: { width: f(u) },
|
|
1740
1762
|
ref_for: !0
|
|
1741
|
-
}, { ...
|
|
1763
|
+
}, { ...d.value.queryItems, ...e(u) }), {
|
|
1742
1764
|
label: E(() => [
|
|
1743
|
-
k(D.$slots, `q-${
|
|
1765
|
+
k(D.$slots, `q-${i}-label`, {
|
|
1744
1766
|
item: u,
|
|
1745
|
-
model:
|
|
1767
|
+
model: d.value
|
|
1746
1768
|
})
|
|
1747
1769
|
]),
|
|
1748
1770
|
default: E(() => [
|
|
1749
|
-
|
|
1750
|
-
modelValue: l.value[
|
|
1751
|
-
"onUpdate:modelValue": (
|
|
1771
|
+
le(Dt, {
|
|
1772
|
+
modelValue: l.value[i],
|
|
1773
|
+
"onUpdate:modelValue": (g) => l.value[i] = g,
|
|
1752
1774
|
item: { ...u == null ? void 0 : u.editor, ...e(u) },
|
|
1753
|
-
ctrlKey:
|
|
1775
|
+
ctrlKey: i,
|
|
1754
1776
|
ctrlType: h(u),
|
|
1755
|
-
model:
|
|
1777
|
+
model: d.value,
|
|
1756
1778
|
t: "q",
|
|
1757
1779
|
formInfo: l.value
|
|
1758
|
-
},
|
|
1759
|
-
X(Object.keys(D.$slots), (
|
|
1760
|
-
name:
|
|
1761
|
-
fn: E((
|
|
1762
|
-
k(D.$slots,
|
|
1763
|
-
data:
|
|
1780
|
+
}, $e({ _: 2 }, [
|
|
1781
|
+
X(Object.keys(D.$slots), (g) => ({
|
|
1782
|
+
name: g,
|
|
1783
|
+
fn: E((te) => [
|
|
1784
|
+
k(D.$slots, g, {
|
|
1785
|
+
data: te,
|
|
1764
1786
|
item: u,
|
|
1765
|
-
model:
|
|
1787
|
+
model: d.value
|
|
1766
1788
|
})
|
|
1767
1789
|
])
|
|
1768
1790
|
}))
|
|
@@ -1773,10 +1795,10 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
1773
1795
|
])), 128);
|
|
1774
1796
|
};
|
|
1775
1797
|
}
|
|
1776
|
-
},
|
|
1798
|
+
}, Wl = {
|
|
1777
1799
|
key: 0,
|
|
1778
1800
|
class: "outer"
|
|
1779
|
-
},
|
|
1801
|
+
}, Gl = { class: "inner" }, Xl = {
|
|
1780
1802
|
__name: "g-query",
|
|
1781
1803
|
props: {
|
|
1782
1804
|
modelValue: { required: !0 },
|
|
@@ -1784,9 +1806,9 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
1784
1806
|
info: { required: !0 },
|
|
1785
1807
|
infoModifiers: {}
|
|
1786
1808
|
},
|
|
1787
|
-
emits: /* @__PURE__ */
|
|
1788
|
-
setup(o, { emit:
|
|
1789
|
-
const t =
|
|
1809
|
+
emits: /* @__PURE__ */ nt(["query", "reset"], ["update:modelValue", "update:info"]),
|
|
1810
|
+
setup(o, { emit: d }) {
|
|
1811
|
+
const t = ot(o, "modelValue"), l = d, n = Ot("options"), e = ne(!1), h = ot(o, "info"), f = {
|
|
1790
1812
|
hidden: !1,
|
|
1791
1813
|
type: "hidden",
|
|
1792
1814
|
labelWidth: 100,
|
|
@@ -1803,7 +1825,7 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
1803
1825
|
hidden: !0,
|
|
1804
1826
|
type: "primary",
|
|
1805
1827
|
label: "更多",
|
|
1806
|
-
icon: () =>
|
|
1828
|
+
icon: () => Ee(wl),
|
|
1807
1829
|
click: () => {
|
|
1808
1830
|
e.value = !e.value;
|
|
1809
1831
|
}
|
|
@@ -1813,7 +1835,7 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
1813
1835
|
type: "primary",
|
|
1814
1836
|
hidden: !1,
|
|
1815
1837
|
plain: !1,
|
|
1816
|
-
icon: () =>
|
|
1838
|
+
icon: () => Ee(Pt),
|
|
1817
1839
|
click: () => {
|
|
1818
1840
|
l("reset", h.value);
|
|
1819
1841
|
}
|
|
@@ -1822,7 +1844,7 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
1822
1844
|
hidden: !1,
|
|
1823
1845
|
type: "primary",
|
|
1824
1846
|
label: "查询",
|
|
1825
|
-
icon: () =>
|
|
1847
|
+
icon: () => Ee(El),
|
|
1826
1848
|
click: () => {
|
|
1827
1849
|
l("query", h.value), e.value = !1;
|
|
1828
1850
|
}
|
|
@@ -1838,7 +1860,7 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
1838
1860
|
}
|
|
1839
1861
|
}
|
|
1840
1862
|
};
|
|
1841
|
-
t.value.query =
|
|
1863
|
+
t.value.query = Oe(f, n == null ? void 0 : n.query, t.value.query);
|
|
1842
1864
|
const D = {
|
|
1843
1865
|
2: {
|
|
1844
1866
|
title: "更多查询",
|
|
@@ -1856,7 +1878,7 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
1856
1878
|
trigger: "click"
|
|
1857
1879
|
}
|
|
1858
1880
|
};
|
|
1859
|
-
t.value.query.more.dialog =
|
|
1881
|
+
t.value.query.more.dialog = Oe(
|
|
1860
1882
|
D[t.value.query.more.mode] || {},
|
|
1861
1883
|
t.value.query.more.dialog
|
|
1862
1884
|
);
|
|
@@ -1869,25 +1891,25 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
1869
1891
|
// width: "280px"
|
|
1870
1892
|
}
|
|
1871
1893
|
};
|
|
1872
|
-
t.value.queryItems =
|
|
1894
|
+
t.value.queryItems = Oe(c, n == null ? void 0 : n.queryItems, t.value.queryItems);
|
|
1873
1895
|
const v = (Y, R) => {
|
|
1874
|
-
const V = Object.keys(Y.slots).filter((
|
|
1896
|
+
const V = Object.keys(Y.slots).filter((Q) => Q !== "default").reduce((Q, ce) => (Q[ce] = (me) => Y.slots[ce]({
|
|
1875
1897
|
model: t.value
|
|
1876
1898
|
// 传递当前模型数据
|
|
1877
|
-
}),
|
|
1878
|
-
return
|
|
1899
|
+
}), Q), {});
|
|
1900
|
+
return Ee(Ut, {
|
|
1879
1901
|
modelValue: t.value,
|
|
1880
|
-
"onUpdate:modelValue": (
|
|
1902
|
+
"onUpdate:modelValue": (Q) => t.value = Q,
|
|
1881
1903
|
info: h.value,
|
|
1882
|
-
"onUpdate:info": (
|
|
1904
|
+
"onUpdate:info": (Q) => h.value = Q,
|
|
1883
1905
|
more: R
|
|
1884
1906
|
}, V);
|
|
1885
|
-
}, u =
|
|
1886
|
-
var V,
|
|
1907
|
+
}, u = Ht(), i = () => {
|
|
1908
|
+
var V, Q, ce, me, ie, fe, we, Fe, Se;
|
|
1887
1909
|
const Y = [
|
|
1888
1910
|
{
|
|
1889
1911
|
key: "query",
|
|
1890
|
-
hidden: (
|
|
1912
|
+
hidden: (ce = (Q = (V = t.value) == null ? void 0 : V.query) == null ? void 0 : Q.query) == null ? void 0 : ce.hidden,
|
|
1891
1913
|
component: Ye,
|
|
1892
1914
|
props: {
|
|
1893
1915
|
...t.value.query.query,
|
|
@@ -1898,7 +1920,7 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
1898
1920
|
},
|
|
1899
1921
|
{
|
|
1900
1922
|
key: "reset",
|
|
1901
|
-
hidden: (
|
|
1923
|
+
hidden: (fe = (ie = (me = t.value) == null ? void 0 : me.query) == null ? void 0 : ie.reset) == null ? void 0 : fe.hidden,
|
|
1902
1924
|
component: Ye,
|
|
1903
1925
|
props: {
|
|
1904
1926
|
...t.value.query.reset,
|
|
@@ -1909,72 +1931,72 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
1909
1931
|
},
|
|
1910
1932
|
{
|
|
1911
1933
|
key: "more",
|
|
1912
|
-
hidden: (Se = (Fe = (
|
|
1913
|
-
component: t.value.query.more.mode === 3 ?
|
|
1934
|
+
hidden: (Se = (Fe = (we = t.value) == null ? void 0 : we.query) == null ? void 0 : Fe.more) == null ? void 0 : Se.hidden,
|
|
1935
|
+
component: t.value.query.more.mode === 3 ? xt : Ye,
|
|
1914
1936
|
props: t.value.query.more.mode === 3 ? { ...t.value.query.more.dialog } : {
|
|
1915
1937
|
...t.value.query.more,
|
|
1916
1938
|
onClick: t.value.query.more.click
|
|
1917
1939
|
},
|
|
1918
1940
|
label: t.value.query.more.label,
|
|
1919
1941
|
sort: t.value.query.more.sort || 0,
|
|
1920
|
-
content: t.value.query.more.mode === 3 ? () =>
|
|
1942
|
+
content: t.value.query.more.mode === 3 ? () => Ee(wt, {
|
|
1921
1943
|
class: "query-form",
|
|
1922
1944
|
...Ge(t.value.query, (ee) => !["query", "more", "reset"].includes(ee))
|
|
1923
1945
|
}, () => v({ slots: u }, !0)) : null
|
|
1924
1946
|
}
|
|
1925
1947
|
];
|
|
1926
|
-
return Y.sort((ee, oe) => ee.sort - oe.sort), Y.filter((ee) => !ee.hidden).map((ee) => ee.key === "more" && ee.component ===
|
|
1927
|
-
reference: () =>
|
|
1948
|
+
return Y.sort((ee, oe) => ee.sort - oe.sort), Y.filter((ee) => !ee.hidden).map((ee) => ee.key === "more" && ee.component === xt ? Ee(xt, ee.props, {
|
|
1949
|
+
reference: () => Ee(Ye, t.value.query.more, () => ee.label),
|
|
1928
1950
|
default: ee.content
|
|
1929
|
-
}) : (ee.props.slot = "query-" + ee.key, ee.label ?
|
|
1930
|
-
},
|
|
1951
|
+
}) : (ee.props.slot = "query-" + ee.key, ee.label ? Ee(ee.component, ee.props, () => ee.label) : Ee(ee.component, ee.props)));
|
|
1952
|
+
}, g = dt(() => ({
|
|
1931
1953
|
diplay: "flex",
|
|
1932
1954
|
flexDirection: t.value.query.container.mode === "row" ? "row" : "column"
|
|
1933
|
-
})),
|
|
1955
|
+
})), te = () => {
|
|
1934
1956
|
alert("查询设置,正在开发中......");
|
|
1935
1957
|
};
|
|
1936
1958
|
return (Y, R) => {
|
|
1937
|
-
var
|
|
1938
|
-
const V = z("el-form-item"),
|
|
1939
|
-
return m(), U(
|
|
1940
|
-
|
|
1959
|
+
var ce, me, ie, fe, we, Fe, Se, ee, oe, Me, M, w, b, s, F, _, A;
|
|
1960
|
+
const V = z("el-form-item"), Q = z("el-drawer");
|
|
1961
|
+
return m(), U(ae, null, [
|
|
1962
|
+
Z("div", {
|
|
1941
1963
|
class: "g-query-container",
|
|
1942
|
-
style: Ue({ ...
|
|
1943
|
-
onDblclick:
|
|
1964
|
+
style: Ue({ ...g.value, ...((me = (ce = t.value.query) == null ? void 0 : ce.container) == null ? void 0 : me.style) || {} }),
|
|
1965
|
+
onDblclick: te
|
|
1944
1966
|
}, [
|
|
1945
|
-
|
|
1967
|
+
le(N(wt), O({
|
|
1946
1968
|
onSubmit: R[0] || (R[0] = kt(() => {
|
|
1947
1969
|
}, ["prevent"]))
|
|
1948
|
-
},
|
|
1970
|
+
}, N(Ge)(t.value.query, (T) => !["query", "more", "reset", "btns"].includes(T))), {
|
|
1949
1971
|
default: E(() => {
|
|
1950
|
-
var T,
|
|
1972
|
+
var T, J;
|
|
1951
1973
|
return [
|
|
1952
|
-
(m(),
|
|
1953
|
-
((
|
|
1974
|
+
(m(), B(at(v({ slots: Y.$slots }, void 0)))),
|
|
1975
|
+
((J = (T = t.value.query) == null ? void 0 : T.container) == null ? void 0 : J.inline) === !0 ? (m(), B(V, { key: 0 }, {
|
|
1954
1976
|
default: E(() => {
|
|
1955
1977
|
var ue, re, j, W, Te;
|
|
1956
1978
|
return [
|
|
1957
|
-
|
|
1979
|
+
Z("div", {
|
|
1958
1980
|
style: Ue((re = (ue = t.value.query) == null ? void 0 : ue.btns) == null ? void 0 : re.style)
|
|
1959
1981
|
}, [
|
|
1960
|
-
t.value.query.group ? (m(),
|
|
1982
|
+
t.value.query.group ? (m(), B(N(Et), { key: 0 }, {
|
|
1961
1983
|
default: E(() => [
|
|
1962
|
-
(m(!0), U(
|
|
1963
|
-
(m(),
|
|
1984
|
+
(m(!0), U(ae, null, X(i(), (ye) => k(Y.$slots, ye.props.slot, {}, () => [
|
|
1985
|
+
(m(), B(at(ye)))
|
|
1964
1986
|
], !0)), 256)),
|
|
1965
1987
|
k(Y.$slots, "q-btns", {}, void 0, !0)
|
|
1966
1988
|
]),
|
|
1967
1989
|
_: 3
|
|
1968
|
-
})) : (m(), U(
|
|
1969
|
-
(Te = (W = (j = t.value) == null ? void 0 : j.query) == null ? void 0 : W.btns) != null && Te.group ? (m(),
|
|
1990
|
+
})) : (m(), U(ae, { key: 1 }, [
|
|
1991
|
+
(Te = (W = (j = t.value) == null ? void 0 : j.query) == null ? void 0 : W.btns) != null && Te.group ? (m(), B(N(Et), { key: 0 }, {
|
|
1970
1992
|
default: E(() => [
|
|
1971
|
-
(m(!0), U(
|
|
1972
|
-
(m(),
|
|
1993
|
+
(m(!0), U(ae, null, X(i(), (ye) => k(Y.$slots, ye.props.slot, {}, () => [
|
|
1994
|
+
(m(), B(at(ye)))
|
|
1973
1995
|
], !0)), 256))
|
|
1974
1996
|
]),
|
|
1975
1997
|
_: 3
|
|
1976
|
-
})) : (m(!0), U(
|
|
1977
|
-
(m(),
|
|
1998
|
+
})) : (m(!0), U(ae, { key: 1 }, X(i(), (ye) => k(Y.$slots, ye.props.slot, {}, () => [
|
|
1999
|
+
(m(), B(at(ye)))
|
|
1978
2000
|
], !0)), 256)),
|
|
1979
2001
|
k(Y.$slots, "q-btns", {}, void 0, !0)
|
|
1980
2002
|
], 64))
|
|
@@ -1987,57 +2009,57 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
1987
2009
|
}),
|
|
1988
2010
|
_: 3
|
|
1989
2011
|
}, 16),
|
|
1990
|
-
((
|
|
2012
|
+
((we = (fe = (ie = t.value) == null ? void 0 : ie.query) == null ? void 0 : fe.container) == null ? void 0 : we.inline) === !1 ? (m(), U("div", {
|
|
1991
2013
|
key: 0,
|
|
1992
2014
|
style: Ue((Se = (Fe = t.value.query) == null ? void 0 : Fe.btns) == null ? void 0 : Se.style)
|
|
1993
2015
|
}, [
|
|
1994
|
-
t.value.query.group ? (m(),
|
|
2016
|
+
t.value.query.group ? (m(), B(N(Et), { key: 0 }, {
|
|
1995
2017
|
default: E(() => [
|
|
1996
|
-
(m(!0), U(
|
|
1997
|
-
(m(),
|
|
2018
|
+
(m(!0), U(ae, null, X(i(), (T) => k(Y.$slots, T.props.slot, {}, () => [
|
|
2019
|
+
(m(), B(at(T)))
|
|
1998
2020
|
], !0)), 256)),
|
|
1999
2021
|
k(Y.$slots, "q-btns", {}, void 0, !0)
|
|
2000
2022
|
]),
|
|
2001
2023
|
_: 3
|
|
2002
|
-
})) : (m(), U(
|
|
2003
|
-
(oe = (ee = t.value.query) == null ? void 0 : ee.btns) != null && oe.group ? (m(),
|
|
2024
|
+
})) : (m(), U(ae, { key: 1 }, [
|
|
2025
|
+
(oe = (ee = t.value.query) == null ? void 0 : ee.btns) != null && oe.group ? (m(), B(N(Et), { key: 0 }, {
|
|
2004
2026
|
default: E(() => [
|
|
2005
|
-
(m(!0), U(
|
|
2006
|
-
(m(),
|
|
2027
|
+
(m(!0), U(ae, null, X(i(), (T) => k(Y.$slots, T.props.slot, {}, () => [
|
|
2028
|
+
(m(), B(at(T)))
|
|
2007
2029
|
], !0)), 256))
|
|
2008
2030
|
]),
|
|
2009
2031
|
_: 3
|
|
2010
|
-
})) : (m(!0), U(
|
|
2011
|
-
(m(),
|
|
2032
|
+
})) : (m(!0), U(ae, { key: 1 }, X(i(), (T) => k(Y.$slots, T.props.slot, {}, () => [
|
|
2033
|
+
(m(), B(at(T)))
|
|
2012
2034
|
], !0)), 256)),
|
|
2013
2035
|
k(Y.$slots, "q-btns", {}, void 0, !0)
|
|
2014
2036
|
], 64))
|
|
2015
2037
|
], 4)) : be("", !0)
|
|
2016
2038
|
], 36),
|
|
2017
|
-
e.value && !((w = (M = (Me = t.value) == null ? void 0 : Me.query) == null ? void 0 : M.more) != null && w.hidden) && t.value.query.more.mode == 2 ? (m(),
|
|
2039
|
+
e.value && !((w = (M = (Me = t.value) == null ? void 0 : Me.query) == null ? void 0 : M.more) != null && w.hidden) && t.value.query.more.mode == 2 ? (m(), B(Q, O({
|
|
2018
2040
|
key: 0,
|
|
2019
2041
|
modelValue: e.value,
|
|
2020
2042
|
"onUpdate:modelValue": R[6] || (R[6] = (T) => e.value = T),
|
|
2021
2043
|
title: "更多查询",
|
|
2022
2044
|
"show-close": !1
|
|
2023
|
-
}, t.value.query.more.dialog),
|
|
2045
|
+
}, t.value.query.more.dialog), $e({
|
|
2024
2046
|
default: E(() => [
|
|
2025
|
-
|
|
2047
|
+
le(N(wt), O({
|
|
2026
2048
|
onSubmit: R[3] || (R[3] = kt(() => {
|
|
2027
2049
|
}, ["prevent"]))
|
|
2028
|
-
},
|
|
2050
|
+
}, N(Ge)(t.value.query, (T) => !["query", "more", "reset"].includes(T)), { style: { width: "98%" } }), {
|
|
2029
2051
|
default: E(() => [
|
|
2030
|
-
|
|
2052
|
+
le(Ut, {
|
|
2031
2053
|
modelValue: t.value,
|
|
2032
2054
|
"onUpdate:modelValue": R[1] || (R[1] = (T) => t.value = T),
|
|
2033
2055
|
info: h.value,
|
|
2034
2056
|
"onUpdate:info": R[2] || (R[2] = (T) => h.value = T),
|
|
2035
2057
|
more: !0
|
|
2036
|
-
},
|
|
2037
|
-
X(Y.$slots, (T,
|
|
2038
|
-
name:
|
|
2058
|
+
}, $e({ _: 2 }, [
|
|
2059
|
+
X(Y.$slots, (T, J, ue) => ({
|
|
2060
|
+
name: J,
|
|
2039
2061
|
fn: E((re) => [
|
|
2040
|
-
k(Y.$slots,
|
|
2062
|
+
k(Y.$slots, J, { model: t.value }, void 0, !0)
|
|
2041
2063
|
])
|
|
2042
2064
|
}))
|
|
2043
2065
|
]), 1032, ["modelValue", "info"])
|
|
@@ -2047,11 +2069,11 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
2047
2069
|
]),
|
|
2048
2070
|
_: 2
|
|
2049
2071
|
}, [
|
|
2050
|
-
(
|
|
2072
|
+
(A = (_ = (F = (s = (b = t.value) == null ? void 0 : b.query) == null ? void 0 : s.more) == null ? void 0 : F.dialog) == null ? void 0 : _.footer) != null && A.hidden ? void 0 : {
|
|
2051
2073
|
name: "footer",
|
|
2052
2074
|
fn: E(() => [
|
|
2053
|
-
|
|
2054
|
-
|
|
2075
|
+
Z("div", Tt(il(t.value.query.more.dialog.footer)), [
|
|
2076
|
+
le(N(Ye), O(t.value.query.query, {
|
|
2055
2077
|
onClick: R[4] || (R[4] = (T) => t.value.query.query.click())
|
|
2056
2078
|
}), {
|
|
2057
2079
|
default: E(() => [
|
|
@@ -2059,7 +2081,7 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
2059
2081
|
]),
|
|
2060
2082
|
_: 1
|
|
2061
2083
|
}, 16),
|
|
2062
|
-
|
|
2084
|
+
le(N(Ye), O(t.value.query.reset, {
|
|
2063
2085
|
onClick: R[5] || (R[5] = (T) => t.value.query.reset.click())
|
|
2064
2086
|
}), {
|
|
2065
2087
|
default: E(() => [
|
|
@@ -2072,23 +2094,23 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
2072
2094
|
key: "0"
|
|
2073
2095
|
}
|
|
2074
2096
|
]), 1040, ["modelValue"])) : be("", !0),
|
|
2075
|
-
|
|
2097
|
+
le(dl, {
|
|
2076
2098
|
duration: 300,
|
|
2077
2099
|
name: "nested",
|
|
2078
2100
|
style: { padding: "10px" }
|
|
2079
2101
|
}, {
|
|
2080
2102
|
default: E(() => {
|
|
2081
|
-
var T,
|
|
2103
|
+
var T, J, ue;
|
|
2082
2104
|
return [
|
|
2083
|
-
e.value && !((ue = (
|
|
2084
|
-
|
|
2085
|
-
t.value.query.more.mode == 1 ?
|
|
2105
|
+
e.value && !((ue = (J = (T = t.value) == null ? void 0 : T.query) == null ? void 0 : J.more) != null && ue.hidden) && t.value.query.more.mode == 1 ? (m(), U("div", Wl, [
|
|
2106
|
+
Z("div", Gl, [
|
|
2107
|
+
t.value.query.more.mode == 1 ? cl((m(), B(N(wt), O({
|
|
2086
2108
|
key: 0,
|
|
2087
2109
|
onSubmit: R[7] || (R[7] = kt(() => {
|
|
2088
2110
|
}, ["prevent"]))
|
|
2089
|
-
},
|
|
2111
|
+
}, N(Ge)(t.value.query, (re) => !["query", "more", "reset"].includes(re))), {
|
|
2090
2112
|
default: E(() => [
|
|
2091
|
-
(m(),
|
|
2113
|
+
(m(), B(at(v({ slots: Y.$slots }, !0))))
|
|
2092
2114
|
]),
|
|
2093
2115
|
_: 1
|
|
2094
2116
|
}, 16)), [
|
|
@@ -2103,18 +2125,18 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
2103
2125
|
], 64);
|
|
2104
2126
|
};
|
|
2105
2127
|
}
|
|
2106
|
-
},
|
|
2128
|
+
}, Ql = /* @__PURE__ */ ut(Xl, [["__scopeId", "data-v-fbc339ad"]]), Zl = { style: { padding: "15px", "box-sizing": "border-box" } }, Jl = { style: { display: "flex", flex: "1", "align-items": "center", height: "30px" } }, Kl = { style: { display: "flex", flex: "1", "align-items": "center" } }, ea = {
|
|
2107
2129
|
style: { display: "flex", "flex-wrap": "wrap" },
|
|
2108
2130
|
id: "excelSortEl"
|
|
2109
|
-
},
|
|
2131
|
+
}, ta = ["textContent"], la = { style: { width: "100%", display: "flex", padding: "10px", "box-sizing": "border-box", "justify-content": "center", "border-top": "1px solid #dcdfe6" } }, aa = {
|
|
2110
2132
|
__name: "check-excel-item",
|
|
2111
2133
|
props: {
|
|
2112
2134
|
items: Array,
|
|
2113
2135
|
commitText: String
|
|
2114
2136
|
},
|
|
2115
2137
|
emits: ["excel"],
|
|
2116
|
-
setup(o, { emit:
|
|
2117
|
-
const t = o, l =
|
|
2138
|
+
setup(o, { emit: d }) {
|
|
2139
|
+
const t = o, l = d, n = ne(t.items), e = () => {
|
|
2118
2140
|
n.value.forEach((D) => {
|
|
2119
2141
|
D.value = !0;
|
|
2120
2142
|
});
|
|
@@ -2137,40 +2159,40 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
2137
2159
|
});
|
|
2138
2160
|
};
|
|
2139
2161
|
return mt(() => {
|
|
2140
|
-
const D = new
|
|
2162
|
+
const D = new Xt(document.getElementById("excelSortEl"), {
|
|
2141
2163
|
animation: 150,
|
|
2142
2164
|
onEnd: () => {
|
|
2143
2165
|
D.toArray();
|
|
2144
2166
|
}
|
|
2145
2167
|
}), c = D;
|
|
2146
|
-
|
|
2168
|
+
vl(() => {
|
|
2147
2169
|
c && c.destroy();
|
|
2148
2170
|
});
|
|
2149
2171
|
}), (D, c) => {
|
|
2150
|
-
const v = z("el-divider"), u = z("el-icon"),
|
|
2151
|
-
return m(), U("div",
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2172
|
+
const v = z("el-divider"), u = z("el-icon"), i = z("el-text"), g = z("el-checkbox"), te = z("el-button");
|
|
2173
|
+
return m(), U("div", Zl, [
|
|
2174
|
+
Z("div", null, [
|
|
2175
|
+
Z("div", Jl, [
|
|
2176
|
+
Z("div", Kl, [
|
|
2177
|
+
Z("a", {
|
|
2156
2178
|
onClick: e,
|
|
2157
2179
|
style: { cursor: "pointer" }
|
|
2158
2180
|
}, "全选"),
|
|
2159
|
-
|
|
2160
|
-
|
|
2181
|
+
le(v, { direction: "vertical" }),
|
|
2182
|
+
Z("a", {
|
|
2161
2183
|
onClick: h,
|
|
2162
2184
|
style: { cursor: "pointer" }
|
|
2163
2185
|
}, "全不选")
|
|
2164
2186
|
]),
|
|
2165
|
-
|
|
2166
|
-
|
|
2187
|
+
Z("div", null, [
|
|
2188
|
+
le(i, {
|
|
2167
2189
|
title: "拖动列标题可以改变表格列的生成顺序 !",
|
|
2168
2190
|
type: "warning"
|
|
2169
2191
|
}, {
|
|
2170
2192
|
default: E(() => [
|
|
2171
|
-
|
|
2193
|
+
le(u, { size: "16" }, {
|
|
2172
2194
|
default: E(() => [
|
|
2173
|
-
|
|
2195
|
+
le(N(Wt))
|
|
2174
2196
|
]),
|
|
2175
2197
|
_: 1
|
|
2176
2198
|
}),
|
|
@@ -2180,9 +2202,9 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
2180
2202
|
})
|
|
2181
2203
|
])
|
|
2182
2204
|
]),
|
|
2183
|
-
c[1] || (c[1] =
|
|
2184
|
-
|
|
2185
|
-
(m(!0), U(
|
|
2205
|
+
c[1] || (c[1] = Z("div", { style: { margin: "1px 0" } }, null, -1)),
|
|
2206
|
+
Z("div", ea, [
|
|
2207
|
+
(m(!0), U(ae, null, X(n.value, (Y) => (m(), B(g, {
|
|
2186
2208
|
class: "check-box-hover",
|
|
2187
2209
|
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" },
|
|
2188
2210
|
"data-id": Y.key,
|
|
@@ -2192,20 +2214,20 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
2192
2214
|
title: Y.label
|
|
2193
2215
|
}, {
|
|
2194
2216
|
default: E(() => [
|
|
2195
|
-
|
|
2217
|
+
Z("span", {
|
|
2196
2218
|
textContent: Ce(Y.label),
|
|
2197
2219
|
style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
|
|
2198
|
-
}, null, 8,
|
|
2220
|
+
}, null, 8, ta)
|
|
2199
2221
|
]),
|
|
2200
2222
|
_: 2
|
|
2201
2223
|
}, 1032, ["data-id", "modelValue", "onUpdate:modelValue", "title"]))), 128))
|
|
2202
2224
|
])
|
|
2203
2225
|
]),
|
|
2204
|
-
|
|
2205
|
-
te
|
|
2226
|
+
Z("div", la, [
|
|
2227
|
+
le(te, {
|
|
2206
2228
|
type: "primary",
|
|
2207
2229
|
onClick: f,
|
|
2208
|
-
icon:
|
|
2230
|
+
icon: N(Gt),
|
|
2209
2231
|
disabled: n.value.filter((Y) => Y.value).length < 1
|
|
2210
2232
|
}, {
|
|
2211
2233
|
default: E(() => [
|
|
@@ -2217,8 +2239,8 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
2217
2239
|
]);
|
|
2218
2240
|
};
|
|
2219
2241
|
}
|
|
2220
|
-
},
|
|
2221
|
-
|
|
2242
|
+
}, ra = /* @__PURE__ */ ut(aa, [["__scopeId", "data-v-13575747"]]), na = "vue-gyc-ui", oa = 1, he = new Tl(na);
|
|
2243
|
+
he.version(oa).stores({
|
|
2222
2244
|
// 记录表格项设置信息
|
|
2223
2245
|
tableWidths: "++id, [page+key], page, key,width",
|
|
2224
2246
|
// 记录表格分页条数
|
|
@@ -2228,104 +2250,104 @@ pe.version(na).stores({
|
|
|
2228
2250
|
// 记录表格列显示状态
|
|
2229
2251
|
tableColsState: "++id,[page+key], page, key"
|
|
2230
2252
|
});
|
|
2231
|
-
const
|
|
2253
|
+
const ct = (o, d) => {
|
|
2232
2254
|
if (!o || typeof o != "string")
|
|
2233
2255
|
throw new Error("page参数必须是非空字符串");
|
|
2234
2256
|
};
|
|
2235
|
-
async function _t(o,
|
|
2257
|
+
async function _t(o, d, t) {
|
|
2236
2258
|
try {
|
|
2237
|
-
const l = await
|
|
2238
|
-
l ? t === "add" ? l.keys.includes(
|
|
2259
|
+
const l = await he.tableColsState.where({ page: o }).first();
|
|
2260
|
+
l ? t === "add" ? l.keys.includes(d) || (l.keys.push(d), await he.tableColsState.put(l)) : t === "del" ? (l.keys = l.keys.filter((n) => n !== d), await he.tableColsState.put(l)) : t === "delAll" ? (l.keys = d, await he.tableColsState.put(l)) : t === "selectAll" && await he.tableColsState.where({ page: o }).delete() : t === "add" ? await he.tableColsState.add({ page: o, keys: [d] }) : t === "delAll" && await he.tableColsState.add({ page: o, keys: d });
|
|
2239
2261
|
} catch (l) {
|
|
2240
|
-
throw console.error(`处理表格列状态时出错 (page: ${o}, key: ${
|
|
2262
|
+
throw console.error(`处理表格列状态时出错 (page: ${o}, key: ${d}, state: ${t}):`, l), l;
|
|
2241
2263
|
}
|
|
2242
2264
|
}
|
|
2243
|
-
async function
|
|
2244
|
-
|
|
2265
|
+
async function ua(o, d, t) {
|
|
2266
|
+
ct(o);
|
|
2245
2267
|
try {
|
|
2246
|
-
const l = await
|
|
2247
|
-
return l ? (await
|
|
2268
|
+
const l = await he.tableWidths.where({ page: o, key: d }).first();
|
|
2269
|
+
return l ? (await he.tableWidths.put({ ...l, width: t }), "update success") : (await he.tableWidths.add({ page: o, key: d, width: t }), "add success");
|
|
2248
2270
|
} catch (l) {
|
|
2249
|
-
throw console.error(`保存表格项设置信息时出错 (page: ${o}, key: ${
|
|
2271
|
+
throw console.error(`保存表格项设置信息时出错 (page: ${o}, key: ${d}):`, l), l;
|
|
2250
2272
|
}
|
|
2251
2273
|
}
|
|
2252
|
-
async function
|
|
2253
|
-
|
|
2274
|
+
async function sa(o) {
|
|
2275
|
+
ct(o);
|
|
2254
2276
|
try {
|
|
2255
|
-
return await
|
|
2256
|
-
} catch (
|
|
2257
|
-
throw console.error(`获取表格项设置信息时出错 (page: ${o}):`,
|
|
2277
|
+
return await he.tableWidths.where({ page: o }).toArray();
|
|
2278
|
+
} catch (d) {
|
|
2279
|
+
throw console.error(`获取表格项设置信息时出错 (page: ${o}):`, d), d;
|
|
2258
2280
|
}
|
|
2259
2281
|
}
|
|
2260
|
-
async function
|
|
2261
|
-
|
|
2282
|
+
async function ia(o) {
|
|
2283
|
+
ct(o);
|
|
2262
2284
|
try {
|
|
2263
|
-
const
|
|
2264
|
-
return !
|
|
2265
|
-
} catch (
|
|
2266
|
-
throw console.error(`获取表格列状态时出错 (page: ${o}):`,
|
|
2285
|
+
const d = await he.tableColsState.where({ page: o }).toArray();
|
|
2286
|
+
return !d || d.length === 0 ? [] : d[0].keys;
|
|
2287
|
+
} catch (d) {
|
|
2288
|
+
throw console.error(`获取表格列状态时出错 (page: ${o}):`, d), d;
|
|
2267
2289
|
}
|
|
2268
2290
|
}
|
|
2269
|
-
async function
|
|
2270
|
-
|
|
2291
|
+
async function da(o) {
|
|
2292
|
+
ct(o);
|
|
2271
2293
|
try {
|
|
2272
|
-
return await
|
|
2294
|
+
return await he.transaction("rw", he.tableWidths, he.pageInfo, he.sorts, he.tableColsState, async () => {
|
|
2273
2295
|
await Promise.all([
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2296
|
+
he.tableWidths.where({ page: o }).delete(),
|
|
2297
|
+
he.pageInfo.where({ page: o }).delete(),
|
|
2298
|
+
he.sorts.where({ page: o }).delete(),
|
|
2299
|
+
he.tableColsState.where({ page: o }).delete()
|
|
2278
2300
|
]);
|
|
2279
2301
|
});
|
|
2280
|
-
} catch (
|
|
2281
|
-
throw console.error(`删除页面"${o}"的表格设置信息时出错:`,
|
|
2302
|
+
} catch (d) {
|
|
2303
|
+
throw console.error(`删除页面"${o}"的表格设置信息时出错:`, d), d;
|
|
2282
2304
|
}
|
|
2283
2305
|
}
|
|
2284
|
-
async function
|
|
2285
|
-
|
|
2306
|
+
async function ca({ page: o, size: d }) {
|
|
2307
|
+
ct(o);
|
|
2286
2308
|
try {
|
|
2287
|
-
const t = await
|
|
2288
|
-
return t ? (await
|
|
2309
|
+
const t = await he.pageInfo.where({ page: o }).first();
|
|
2310
|
+
return t ? (await he.pageInfo.put({ ...t, size: d }), "update success") : (await he.pageInfo.add({ page: o, size: d }), "add success");
|
|
2289
2311
|
} catch (t) {
|
|
2290
2312
|
throw console.error(`保存分页条数时出错 (page: ${o}):`, t), t;
|
|
2291
2313
|
}
|
|
2292
2314
|
}
|
|
2293
2315
|
async function fa(o) {
|
|
2294
|
-
|
|
2316
|
+
ct(o);
|
|
2295
2317
|
try {
|
|
2296
|
-
const
|
|
2297
|
-
return (
|
|
2298
|
-
} catch (
|
|
2299
|
-
throw console.error(`获取分页条数时出错 (page: ${o}):`,
|
|
2318
|
+
const d = await he.pageInfo.where({ page: o }).first();
|
|
2319
|
+
return (d == null ? void 0 : d.size) || 20;
|
|
2320
|
+
} catch (d) {
|
|
2321
|
+
throw console.error(`获取分页条数时出错 (page: ${o}):`, d), d;
|
|
2300
2322
|
}
|
|
2301
2323
|
}
|
|
2302
|
-
async function
|
|
2303
|
-
|
|
2324
|
+
async function va(o, d) {
|
|
2325
|
+
ct(o);
|
|
2304
2326
|
try {
|
|
2305
|
-
const t = await
|
|
2306
|
-
return t ? (await
|
|
2327
|
+
const t = await he.sorts.where({ page: o }).first();
|
|
2328
|
+
return t ? (await he.sorts.put({ ...t, keys: d }), "update success") : (await he.sorts.add({ page: o, keys: d }), "add success");
|
|
2307
2329
|
} catch (t) {
|
|
2308
2330
|
throw console.error(`保存表格字段顺序时出错 (page: ${o}):`, t), t;
|
|
2309
2331
|
}
|
|
2310
2332
|
}
|
|
2311
|
-
async function
|
|
2312
|
-
|
|
2333
|
+
async function pa(o) {
|
|
2334
|
+
ct(o);
|
|
2313
2335
|
try {
|
|
2314
|
-
const
|
|
2315
|
-
return (
|
|
2316
|
-
} catch (
|
|
2317
|
-
throw console.error(`获取表格字段顺序时出错 (page: ${o}):`,
|
|
2336
|
+
const d = await he.sorts.where({ page: o }).first();
|
|
2337
|
+
return (d == null ? void 0 : d.keys) || [];
|
|
2338
|
+
} catch (d) {
|
|
2339
|
+
throw console.error(`获取表格字段顺序时出错 (page: ${o}):`, d), d;
|
|
2318
2340
|
}
|
|
2319
2341
|
}
|
|
2320
|
-
const
|
|
2342
|
+
const ma = { style: { padding: "15px", "box-sizing": "border-box" } }, ha = { style: { display: "flex", "align-items": "center", height: "30px" } }, ya = {
|
|
2321
2343
|
style: { display: "flex", flex: "1", "align-items": "center" },
|
|
2322
2344
|
class: "allcheck"
|
|
2323
|
-
},
|
|
2345
|
+
}, ga = {
|
|
2324
2346
|
id: "cols",
|
|
2325
2347
|
style: { display: "flex", "flex-wrap": "wrap", margin: "0 !important", padding: "0 !important" }
|
|
2326
|
-
},
|
|
2348
|
+
}, ba = ["textContent"], $a = {
|
|
2327
2349
|
__name: "columns-setting",
|
|
2328
|
-
props: /* @__PURE__ */
|
|
2350
|
+
props: /* @__PURE__ */ nt({
|
|
2329
2351
|
tuid: {
|
|
2330
2352
|
type: String,
|
|
2331
2353
|
required: !0
|
|
@@ -2334,25 +2356,25 @@ const pa = { style: { padding: "15px", "box-sizing": "border-box" } }, ma = { st
|
|
|
2334
2356
|
modelValue: { required: !0 },
|
|
2335
2357
|
modelModifiers: {}
|
|
2336
2358
|
}),
|
|
2337
|
-
emits: /* @__PURE__ */
|
|
2338
|
-
setup(o, { emit:
|
|
2339
|
-
const t = o, l =
|
|
2340
|
-
u ? (e.value[
|
|
2359
|
+
emits: /* @__PURE__ */ nt(["setting-drag-end", "select-all"], ["update:modelValue"]),
|
|
2360
|
+
setup(o, { emit: d }) {
|
|
2361
|
+
const t = o, l = d, n = ne([]), e = ot(o, "modelValue"), h = async (u, i) => {
|
|
2362
|
+
u ? (e.value[i].showCol = !0, await _t(t.tuid, i, "del")) : (e.value[i].showCol = !1, await _t(t.tuid, i, "add"));
|
|
2341
2363
|
}, f = () => {
|
|
2342
2364
|
const u = document.getElementById("cols");
|
|
2343
2365
|
if (u) {
|
|
2344
|
-
let
|
|
2366
|
+
let i = Xt.create(u, {
|
|
2345
2367
|
animation: 150,
|
|
2346
2368
|
filter: ".filtered",
|
|
2347
2369
|
sort: !0,
|
|
2348
2370
|
onEnd: async () => {
|
|
2349
|
-
let
|
|
2371
|
+
let g = i.toArray();
|
|
2350
2372
|
try {
|
|
2351
|
-
|
|
2373
|
+
va(t.tuid, g).then((te) => {
|
|
2352
2374
|
l("setting-drag-end");
|
|
2353
2375
|
});
|
|
2354
|
-
} catch (
|
|
2355
|
-
console.error("列排序保存信息时出错:",
|
|
2376
|
+
} catch (te) {
|
|
2377
|
+
console.error("列排序保存信息时出错:", te), rt({
|
|
2356
2378
|
type: "error",
|
|
2357
2379
|
message: "列排序保存信息失败!"
|
|
2358
2380
|
});
|
|
@@ -2368,35 +2390,35 @@ const pa = { style: { padding: "15px", "box-sizing": "border-box" } }, ma = { st
|
|
|
2368
2390
|
l("select-all");
|
|
2369
2391
|
});
|
|
2370
2392
|
} catch (u) {
|
|
2371
|
-
console.error("全选列保存信息时出错:", u),
|
|
2393
|
+
console.error("全选列保存信息时出错:", u), rt({
|
|
2372
2394
|
type: "error",
|
|
2373
2395
|
message: "全选列保存信息失败!"
|
|
2374
2396
|
});
|
|
2375
2397
|
}
|
|
2376
2398
|
}, c = async () => {
|
|
2377
2399
|
try {
|
|
2378
|
-
let u = n.value.filter((
|
|
2379
|
-
u.forEach((
|
|
2380
|
-
|
|
2381
|
-
}), _t(t.tuid, u.map((
|
|
2400
|
+
let u = n.value.filter((i) => !i.alwaysShow && i.value != "control" && i.value != "hidden");
|
|
2401
|
+
u.forEach((i) => {
|
|
2402
|
+
i.showCol = !1;
|
|
2403
|
+
}), _t(t.tuid, u.map((i) => i.value), "delAll").then((i) => {
|
|
2382
2404
|
l("select-all");
|
|
2383
2405
|
});
|
|
2384
2406
|
} catch (u) {
|
|
2385
|
-
console.error("清除列保存信息时出错:", u),
|
|
2407
|
+
console.error("清除列保存信息时出错:", u), rt({
|
|
2386
2408
|
type: "error",
|
|
2387
2409
|
message: "清除列保存信息失败!"
|
|
2388
2410
|
});
|
|
2389
2411
|
}
|
|
2390
2412
|
}, v = () => {
|
|
2391
|
-
|
|
2413
|
+
Lt.confirm("确定要复位吗?", "提示", {
|
|
2392
2414
|
confirmButtonText: "确定",
|
|
2393
2415
|
cancelButtonText: "取消",
|
|
2394
2416
|
type: "warning"
|
|
2395
2417
|
}).then(() => {
|
|
2396
|
-
|
|
2418
|
+
da(t.tuid).then((u) => {
|
|
2397
2419
|
window.location.reload();
|
|
2398
2420
|
}).catch((u) => {
|
|
2399
|
-
console.error("复位操作出错:", u),
|
|
2421
|
+
console.error("复位操作出错:", u), rt({
|
|
2400
2422
|
type: "info",
|
|
2401
2423
|
message: "复位失败!"
|
|
2402
2424
|
});
|
|
@@ -2404,46 +2426,46 @@ const pa = { style: { padding: "15px", "box-sizing": "border-box" } }, ma = { st
|
|
|
2404
2426
|
});
|
|
2405
2427
|
};
|
|
2406
2428
|
return mt(async () => {
|
|
2407
|
-
n.value = Object.entries(e.value).filter(([, u]) => u.visible !== !1).filter(([, u]) => u.type != "hidden").map(([u,
|
|
2408
|
-
label:
|
|
2429
|
+
n.value = Object.entries(e.value).filter(([, u]) => u.visible !== !1).filter(([, u]) => u.type != "hidden").map(([u, i]) => ({
|
|
2430
|
+
label: i.label,
|
|
2409
2431
|
value: u,
|
|
2410
|
-
alwaysShow:
|
|
2411
|
-
showCol:
|
|
2412
|
-
sort:
|
|
2413
|
-
width:
|
|
2414
|
-
})).sort((u,
|
|
2415
|
-
}), (u,
|
|
2416
|
-
const
|
|
2417
|
-
return m(), U("div",
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2432
|
+
alwaysShow: i.alwaysShow,
|
|
2433
|
+
showCol: i.showCol !== !1,
|
|
2434
|
+
sort: i.sort || 0,
|
|
2435
|
+
width: i == null ? void 0 : i.width
|
|
2436
|
+
})).sort((u, i) => u.sort - i.sort), f();
|
|
2437
|
+
}), (u, i) => {
|
|
2438
|
+
const g = z("el-divider"), te = z("el-icon"), Y = z("el-text"), R = z("el-checkbox");
|
|
2439
|
+
return m(), U("div", ma, [
|
|
2440
|
+
Z("div", ha, [
|
|
2441
|
+
Z("div", ya, [
|
|
2442
|
+
Z("a", { onClick: D }, "全选"),
|
|
2443
|
+
le(g, { direction: "vertical" }),
|
|
2444
|
+
Z("a", { onClick: c }, "全不选"),
|
|
2445
|
+
le(g, { direction: "vertical" }),
|
|
2446
|
+
Z("a", { onClick: v }, "复位")
|
|
2425
2447
|
]),
|
|
2426
|
-
|
|
2448
|
+
le(Y, { type: "warning" }, {
|
|
2427
2449
|
default: E(() => [
|
|
2428
|
-
te
|
|
2450
|
+
le(te, { size: "16" }, {
|
|
2429
2451
|
default: E(() => [
|
|
2430
|
-
|
|
2452
|
+
le(N(Wt))
|
|
2431
2453
|
]),
|
|
2432
2454
|
_: 1
|
|
2433
2455
|
}),
|
|
2434
|
-
|
|
2456
|
+
i[0] || (i[0] = Ie(" 拖动表格列标题可以改变表格列显示顺序 !"))
|
|
2435
2457
|
]),
|
|
2436
2458
|
_: 1
|
|
2437
2459
|
})
|
|
2438
2460
|
]),
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
(m(!0), U(
|
|
2461
|
+
Z("div", null, [
|
|
2462
|
+
Z("div", ga, [
|
|
2463
|
+
(m(!0), U(ae, null, X(n.value, (V) => (m(), B(R, {
|
|
2442
2464
|
modelValue: V.showCol,
|
|
2443
|
-
"onUpdate:modelValue": (
|
|
2465
|
+
"onUpdate:modelValue": (Q) => V.showCol = Q,
|
|
2444
2466
|
"data-id": V.value,
|
|
2445
|
-
class:
|
|
2446
|
-
onChange: (
|
|
2467
|
+
class: zt(["check-box-hover", V.value == "control" ? "filtered" : ""]),
|
|
2468
|
+
onChange: (Q) => h(Q, V.value),
|
|
2447
2469
|
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" },
|
|
2448
2470
|
value: V.value,
|
|
2449
2471
|
title: V.label,
|
|
@@ -2451,10 +2473,10 @@ const pa = { style: { padding: "15px", "box-sizing": "border-box" } }, ma = { st
|
|
|
2451
2473
|
key: V.value
|
|
2452
2474
|
}, {
|
|
2453
2475
|
default: E(() => [
|
|
2454
|
-
|
|
2476
|
+
Z("span", {
|
|
2455
2477
|
textContent: Ce(V.label),
|
|
2456
2478
|
style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
|
|
2457
|
-
}, null, 8,
|
|
2479
|
+
}, null, 8, ba)
|
|
2458
2480
|
]),
|
|
2459
2481
|
_: 2
|
|
2460
2482
|
}, 1032, ["modelValue", "onUpdate:modelValue", "data-id", "class", "onChange", "value", "title", "disabled"]))), 128))
|
|
@@ -2463,7 +2485,7 @@ const pa = { style: { padding: "15px", "box-sizing": "border-box" } }, ma = { st
|
|
|
2463
2485
|
]);
|
|
2464
2486
|
};
|
|
2465
2487
|
}
|
|
2466
|
-
},
|
|
2488
|
+
}, wa = /* @__PURE__ */ ut($a, [["__scopeId", "data-v-428381ae"]]), Ea = { class: "title" }, _a = { class: "content" }, ka = {
|
|
2467
2489
|
__name: "g-cell-toopTip",
|
|
2468
2490
|
props: {
|
|
2469
2491
|
content: {
|
|
@@ -2476,30 +2498,30 @@ const pa = { style: { padding: "15px", "box-sizing": "border-box" } }, ma = { st
|
|
|
2476
2498
|
}
|
|
2477
2499
|
},
|
|
2478
2500
|
setup(o) {
|
|
2479
|
-
const
|
|
2480
|
-
|
|
2501
|
+
const d = o, t = () => {
|
|
2502
|
+
d.content ? (navigator.clipboard.writeText(d.content), rt.success("复制成功")) : rt.warning("没有内容可复制");
|
|
2481
2503
|
};
|
|
2482
2504
|
return (l, n) => (m(), U("div", {
|
|
2483
2505
|
class: "g-cell-toopTip",
|
|
2484
|
-
style: Ue({ width:
|
|
2506
|
+
style: Ue({ width: d.column.width + "px" })
|
|
2485
2507
|
}, [
|
|
2486
|
-
|
|
2487
|
-
n[0] || (n[0] =
|
|
2488
|
-
|
|
2508
|
+
Z("div", Ea, [
|
|
2509
|
+
n[0] || (n[0] = Z("span", { class: "title-text" }, "内容", -1)),
|
|
2510
|
+
Z("span", {
|
|
2489
2511
|
class: "copy-btn",
|
|
2490
2512
|
onClick: t,
|
|
2491
2513
|
title: "复制内容"
|
|
2492
2514
|
}, [
|
|
2493
|
-
|
|
2515
|
+
le(N(_l))
|
|
2494
2516
|
])
|
|
2495
2517
|
]),
|
|
2496
|
-
|
|
2518
|
+
Z("div", _a, Ce(d.content), 1)
|
|
2497
2519
|
], 4));
|
|
2498
2520
|
}
|
|
2499
|
-
},
|
|
2500
|
-
var
|
|
2521
|
+
}, Ca = /* @__PURE__ */ ut(ka, [["__scopeId", "data-v-f28912da"]]);
|
|
2522
|
+
var Kt = { exports: {} }, el = { exports: {} };
|
|
2501
2523
|
(function() {
|
|
2502
|
-
var o = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",
|
|
2524
|
+
var o = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", d = {
|
|
2503
2525
|
// Bit-wise rotation left
|
|
2504
2526
|
rotl: function(t, l) {
|
|
2505
2527
|
return t << l | t >>> 32 - l;
|
|
@@ -2511,9 +2533,9 @@ var Jt = { exports: {} }, Kt = { exports: {} };
|
|
|
2511
2533
|
// Swap big-endian to little-endian and vice versa
|
|
2512
2534
|
endian: function(t) {
|
|
2513
2535
|
if (t.constructor == Number)
|
|
2514
|
-
return
|
|
2536
|
+
return d.rotl(t, 8) & 16711935 | d.rotl(t, 24) & 4278255360;
|
|
2515
2537
|
for (var l = 0; l < t.length; l++)
|
|
2516
|
-
t[l] =
|
|
2538
|
+
t[l] = d.endian(t[l]);
|
|
2517
2539
|
return t;
|
|
2518
2540
|
},
|
|
2519
2541
|
// Generate an array of any length of random bytes
|
|
@@ -2561,90 +2583,90 @@ var Jt = { exports: {} }, Kt = { exports: {} };
|
|
|
2561
2583
|
return l;
|
|
2562
2584
|
}
|
|
2563
2585
|
};
|
|
2564
|
-
|
|
2586
|
+
el.exports = d;
|
|
2565
2587
|
})();
|
|
2566
|
-
var
|
|
2588
|
+
var Da = el.exports, Vt = {
|
|
2567
2589
|
// UTF-8 encoding
|
|
2568
2590
|
utf8: {
|
|
2569
2591
|
// Convert a string to a byte array
|
|
2570
2592
|
stringToBytes: function(o) {
|
|
2571
|
-
return
|
|
2593
|
+
return Vt.bin.stringToBytes(unescape(encodeURIComponent(o)));
|
|
2572
2594
|
},
|
|
2573
2595
|
// Convert a byte array to a string
|
|
2574
2596
|
bytesToString: function(o) {
|
|
2575
|
-
return decodeURIComponent(escape(
|
|
2597
|
+
return decodeURIComponent(escape(Vt.bin.bytesToString(o)));
|
|
2576
2598
|
}
|
|
2577
2599
|
},
|
|
2578
2600
|
// Binary encoding
|
|
2579
2601
|
bin: {
|
|
2580
2602
|
// Convert a string to a byte array
|
|
2581
2603
|
stringToBytes: function(o) {
|
|
2582
|
-
for (var
|
|
2583
|
-
|
|
2584
|
-
return
|
|
2604
|
+
for (var d = [], t = 0; t < o.length; t++)
|
|
2605
|
+
d.push(o.charCodeAt(t) & 255);
|
|
2606
|
+
return d;
|
|
2585
2607
|
},
|
|
2586
2608
|
// Convert a byte array to a string
|
|
2587
2609
|
bytesToString: function(o) {
|
|
2588
|
-
for (var
|
|
2589
|
-
|
|
2590
|
-
return
|
|
2610
|
+
for (var d = [], t = 0; t < o.length; t++)
|
|
2611
|
+
d.push(String.fromCharCode(o[t]));
|
|
2612
|
+
return d.join("");
|
|
2591
2613
|
}
|
|
2592
2614
|
}
|
|
2593
|
-
},
|
|
2615
|
+
}, Rt = Vt;
|
|
2594
2616
|
/*!
|
|
2595
2617
|
* Determine if an object is a Buffer
|
|
2596
2618
|
*
|
|
2597
2619
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
2598
2620
|
* @license MIT
|
|
2599
2621
|
*/
|
|
2600
|
-
var
|
|
2601
|
-
return o != null && (
|
|
2622
|
+
var Sa = function(o) {
|
|
2623
|
+
return o != null && (tl(o) || xa(o) || !!o._isBuffer);
|
|
2602
2624
|
};
|
|
2603
|
-
function
|
|
2625
|
+
function tl(o) {
|
|
2604
2626
|
return !!o.constructor && typeof o.constructor.isBuffer == "function" && o.constructor.isBuffer(o);
|
|
2605
2627
|
}
|
|
2606
|
-
function
|
|
2607
|
-
return typeof o.readFloatLE == "function" && typeof o.slice == "function" &&
|
|
2628
|
+
function xa(o) {
|
|
2629
|
+
return typeof o.readFloatLE == "function" && typeof o.slice == "function" && tl(o.slice(0, 0));
|
|
2608
2630
|
}
|
|
2609
2631
|
(function() {
|
|
2610
|
-
var o =
|
|
2611
|
-
e.constructor == String ? h && h.encoding === "binary" ? e = l.stringToBytes(e) : e =
|
|
2612
|
-
for (var f = o.bytesToWords(e), D = e.length * 8, c = 1732584193, v = -271733879, u = -1732584194,
|
|
2613
|
-
f[
|
|
2632
|
+
var o = Da, d = Rt.utf8, t = Sa, l = Rt.bin, n = function(e, h) {
|
|
2633
|
+
e.constructor == String ? h && h.encoding === "binary" ? e = l.stringToBytes(e) : e = d.stringToBytes(e) : t(e) ? e = Array.prototype.slice.call(e, 0) : !Array.isArray(e) && e.constructor !== Uint8Array && (e = e.toString());
|
|
2634
|
+
for (var f = o.bytesToWords(e), D = e.length * 8, c = 1732584193, v = -271733879, u = -1732584194, i = 271733878, g = 0; g < f.length; g++)
|
|
2635
|
+
f[g] = (f[g] << 8 | f[g] >>> 24) & 16711935 | (f[g] << 24 | f[g] >>> 8) & 4278255360;
|
|
2614
2636
|
f[D >>> 5] |= 128 << D % 32, f[(D + 64 >>> 9 << 4) + 14] = D;
|
|
2615
|
-
for (var
|
|
2616
|
-
var
|
|
2617
|
-
c =
|
|
2637
|
+
for (var te = n._ff, Y = n._gg, R = n._hh, V = n._ii, g = 0; g < f.length; g += 16) {
|
|
2638
|
+
var Q = c, ce = v, me = u, ie = i;
|
|
2639
|
+
c = te(c, v, u, i, f[g + 0], 7, -680876936), i = te(i, c, v, u, f[g + 1], 12, -389564586), u = te(u, i, c, v, f[g + 2], 17, 606105819), v = te(v, u, i, c, f[g + 3], 22, -1044525330), c = te(c, v, u, i, f[g + 4], 7, -176418897), i = te(i, c, v, u, f[g + 5], 12, 1200080426), u = te(u, i, c, v, f[g + 6], 17, -1473231341), v = te(v, u, i, c, f[g + 7], 22, -45705983), c = te(c, v, u, i, f[g + 8], 7, 1770035416), i = te(i, c, v, u, f[g + 9], 12, -1958414417), u = te(u, i, c, v, f[g + 10], 17, -42063), v = te(v, u, i, c, f[g + 11], 22, -1990404162), c = te(c, v, u, i, f[g + 12], 7, 1804603682), i = te(i, c, v, u, f[g + 13], 12, -40341101), u = te(u, i, c, v, f[g + 14], 17, -1502002290), v = te(v, u, i, c, f[g + 15], 22, 1236535329), c = Y(c, v, u, i, f[g + 1], 5, -165796510), i = Y(i, c, v, u, f[g + 6], 9, -1069501632), u = Y(u, i, c, v, f[g + 11], 14, 643717713), v = Y(v, u, i, c, f[g + 0], 20, -373897302), c = Y(c, v, u, i, f[g + 5], 5, -701558691), i = Y(i, c, v, u, f[g + 10], 9, 38016083), u = Y(u, i, c, v, f[g + 15], 14, -660478335), v = Y(v, u, i, c, f[g + 4], 20, -405537848), c = Y(c, v, u, i, f[g + 9], 5, 568446438), i = Y(i, c, v, u, f[g + 14], 9, -1019803690), u = Y(u, i, c, v, f[g + 3], 14, -187363961), v = Y(v, u, i, c, f[g + 8], 20, 1163531501), c = Y(c, v, u, i, f[g + 13], 5, -1444681467), i = Y(i, c, v, u, f[g + 2], 9, -51403784), u = Y(u, i, c, v, f[g + 7], 14, 1735328473), v = Y(v, u, i, c, f[g + 12], 20, -1926607734), c = R(c, v, u, i, f[g + 5], 4, -378558), i = R(i, c, v, u, f[g + 8], 11, -2022574463), u = R(u, i, c, v, f[g + 11], 16, 1839030562), v = R(v, u, i, c, f[g + 14], 23, -35309556), c = R(c, v, u, i, f[g + 1], 4, -1530992060), i = R(i, c, v, u, f[g + 4], 11, 1272893353), u = R(u, i, c, v, f[g + 7], 16, -155497632), v = R(v, u, i, c, f[g + 10], 23, -1094730640), c = R(c, v, u, i, f[g + 13], 4, 681279174), i = R(i, c, v, u, f[g + 0], 11, -358537222), u = R(u, i, c, v, f[g + 3], 16, -722521979), v = R(v, u, i, c, f[g + 6], 23, 76029189), c = R(c, v, u, i, f[g + 9], 4, -640364487), i = R(i, c, v, u, f[g + 12], 11, -421815835), u = R(u, i, c, v, f[g + 15], 16, 530742520), v = R(v, u, i, c, f[g + 2], 23, -995338651), c = V(c, v, u, i, f[g + 0], 6, -198630844), i = V(i, c, v, u, f[g + 7], 10, 1126891415), u = V(u, i, c, v, f[g + 14], 15, -1416354905), v = V(v, u, i, c, f[g + 5], 21, -57434055), c = V(c, v, u, i, f[g + 12], 6, 1700485571), i = V(i, c, v, u, f[g + 3], 10, -1894986606), u = V(u, i, c, v, f[g + 10], 15, -1051523), v = V(v, u, i, c, f[g + 1], 21, -2054922799), c = V(c, v, u, i, f[g + 8], 6, 1873313359), i = V(i, c, v, u, f[g + 15], 10, -30611744), u = V(u, i, c, v, f[g + 6], 15, -1560198380), v = V(v, u, i, c, f[g + 13], 21, 1309151649), c = V(c, v, u, i, f[g + 4], 6, -145523070), i = V(i, c, v, u, f[g + 11], 10, -1120210379), u = V(u, i, c, v, f[g + 2], 15, 718787259), v = V(v, u, i, c, f[g + 9], 21, -343485551), c = c + Q >>> 0, v = v + ce >>> 0, u = u + me >>> 0, i = i + ie >>> 0;
|
|
2618
2640
|
}
|
|
2619
|
-
return o.endian([c, v, u,
|
|
2641
|
+
return o.endian([c, v, u, i]);
|
|
2620
2642
|
};
|
|
2621
2643
|
n._ff = function(e, h, f, D, c, v, u) {
|
|
2622
|
-
var
|
|
2623
|
-
return (
|
|
2644
|
+
var i = e + (h & f | ~h & D) + (c >>> 0) + u;
|
|
2645
|
+
return (i << v | i >>> 32 - v) + h;
|
|
2624
2646
|
}, n._gg = function(e, h, f, D, c, v, u) {
|
|
2625
|
-
var
|
|
2626
|
-
return (
|
|
2647
|
+
var i = e + (h & D | f & ~D) + (c >>> 0) + u;
|
|
2648
|
+
return (i << v | i >>> 32 - v) + h;
|
|
2627
2649
|
}, n._hh = function(e, h, f, D, c, v, u) {
|
|
2628
|
-
var
|
|
2629
|
-
return (
|
|
2650
|
+
var i = e + (h ^ f ^ D) + (c >>> 0) + u;
|
|
2651
|
+
return (i << v | i >>> 32 - v) + h;
|
|
2630
2652
|
}, n._ii = function(e, h, f, D, c, v, u) {
|
|
2631
|
-
var
|
|
2632
|
-
return (
|
|
2633
|
-
}, n._blocksize = 16, n._digestsize = 16,
|
|
2653
|
+
var i = e + (f ^ (h | ~D)) + (c >>> 0) + u;
|
|
2654
|
+
return (i << v | i >>> 32 - v) + h;
|
|
2655
|
+
}, n._blocksize = 16, n._digestsize = 16, Kt.exports = function(e, h) {
|
|
2634
2656
|
if (e == null)
|
|
2635
2657
|
throw new Error("Illegal argument " + e);
|
|
2636
2658
|
var f = o.wordsToBytes(n(e, h));
|
|
2637
2659
|
return h && h.asBytes ? f : h && h.asString ? l.bytesToString(f) : o.bytesToHex(f);
|
|
2638
2660
|
};
|
|
2639
2661
|
})();
|
|
2640
|
-
var
|
|
2641
|
-
const
|
|
2662
|
+
var Ma = Kt.exports;
|
|
2663
|
+
const Ta = /* @__PURE__ */ Qt(Ma), Fa = { key: 0 }, Va = { style: { display: "flex", "margin-top": "-2px" } }, Aa = { style: { display: "flex", flex: "1" } }, qa = { class: "el-dialog__title" }, Ba = {
|
|
2642
2664
|
style: { display: "flex", "justify-content": "center", width: "100%", height: "100%" },
|
|
2643
2665
|
id: "table-form"
|
|
2644
|
-
}, Oa = { key: 1 },
|
|
2666
|
+
}, Oa = { key: 1 }, Ia = { style: { display: "flex" } }, Ua = { style: { display: "flex", flex: "1" } }, Ra = { class: "el-dialog__title" }, Ya = { class: "g-table-container" }, La = {
|
|
2645
2667
|
key: 0,
|
|
2646
2668
|
class: "table-query-container"
|
|
2647
|
-
},
|
|
2669
|
+
}, Ha = { class: "table-container" }, za = ["innerHTML"], Na = /* @__PURE__ */ Object.assign({
|
|
2648
2670
|
name: "g-table",
|
|
2649
2671
|
inheritAttrs: !1
|
|
2650
2672
|
}, {
|
|
@@ -2653,7 +2675,7 @@ const Ma = /* @__PURE__ */ Xt(xa), Ta = { key: 0 }, Fa = { style: { display: "fl
|
|
|
2653
2675
|
modelValue: { required: !0 },
|
|
2654
2676
|
modelModifiers: {}
|
|
2655
2677
|
},
|
|
2656
|
-
emits: /* @__PURE__ */
|
|
2678
|
+
emits: /* @__PURE__ */ nt([
|
|
2657
2679
|
"load",
|
|
2658
2680
|
"open",
|
|
2659
2681
|
"delete",
|
|
@@ -2662,9 +2684,9 @@ const Ma = /* @__PURE__ */ Xt(xa), Ta = { key: 0 }, Fa = { style: { display: "fl
|
|
|
2662
2684
|
"download",
|
|
2663
2685
|
"row-save"
|
|
2664
2686
|
], ["update:modelValue"]),
|
|
2665
|
-
setup(o, { expose:
|
|
2666
|
-
var
|
|
2667
|
-
const l = ne(""), n = t, e =
|
|
2687
|
+
setup(o, { expose: d, emit: t }) {
|
|
2688
|
+
var Ae, qe, Je, Le, Pe, je, We;
|
|
2689
|
+
const l = ne(""), n = t, e = ot(o, "modelValue"), h = Ot("options"), f = ne({}), D = ne(null), c = ne(null), v = Object.entries(e.value).filter(([a, r]) => (r == null ? void 0 : r.search) !== void 0).map(([a, r]) => {
|
|
2668
2690
|
var $;
|
|
2669
2691
|
let p;
|
|
2670
2692
|
if (typeof r.search == "function") {
|
|
@@ -2675,7 +2697,7 @@ const Ma = /* @__PURE__ */ Xt(xa), Ta = { key: 0 }, Fa = { style: { display: "fl
|
|
|
2675
2697
|
return [a, p];
|
|
2676
2698
|
});
|
|
2677
2699
|
f.value = Object.fromEntries(v);
|
|
2678
|
-
const u = ne(!1),
|
|
2700
|
+
const u = ne(!1), i = [
|
|
2679
2701
|
"type",
|
|
2680
2702
|
"index",
|
|
2681
2703
|
"label",
|
|
@@ -2704,7 +2726,7 @@ const Ma = /* @__PURE__ */ Xt(xa), Ta = { key: 0 }, Fa = { style: { display: "fl
|
|
|
2704
2726
|
"filter-multiple",
|
|
2705
2727
|
"filter-method",
|
|
2706
2728
|
"filtered-value"
|
|
2707
|
-
],
|
|
2729
|
+
], g = ne([]), te = It(), Y = ne({}), R = ne([]), V = ne(null), Q = ne(""), ce = ne("/"), me = ne({
|
|
2708
2730
|
autoWatch: !1,
|
|
2709
2731
|
data: [],
|
|
2710
2732
|
border: !0,
|
|
@@ -2713,7 +2735,7 @@ const Ma = /* @__PURE__ */ Xt(xa), Ta = { key: 0 }, Fa = { style: { display: "fl
|
|
|
2713
2735
|
fit: !1,
|
|
2714
2736
|
type: "hidden",
|
|
2715
2737
|
load: async () => {
|
|
2716
|
-
e.value.table.page.pageSize = await fa(
|
|
2738
|
+
e.value.table.page.pageSize = await fa(ce.value);
|
|
2717
2739
|
let { currentPage: a, pageSize: r } = e.value.table.page;
|
|
2718
2740
|
try {
|
|
2719
2741
|
n(
|
|
@@ -2722,26 +2744,26 @@ const Ma = /* @__PURE__ */ Xt(xa), Ta = { key: 0 }, Fa = { style: { display: "fl
|
|
|
2722
2744
|
(p = [], $ = 0, { fields: S = [], sums: I = {} } = {}) => {
|
|
2723
2745
|
var G;
|
|
2724
2746
|
if (!Array.isArray(p)) {
|
|
2725
|
-
console.error("从 load 事件回调中接收到的数据不是数组格式。"),
|
|
2747
|
+
console.error("从 load 事件回调中接收到的数据不是数组格式。"), rt.error("数据加载失败,请检查数据格式。");
|
|
2726
2748
|
return;
|
|
2727
2749
|
}
|
|
2728
2750
|
if (typeof $ != "number") {
|
|
2729
|
-
console.error("从 load 事件回调中接收到的 total 不是数字格式。"),
|
|
2751
|
+
console.error("从 load 事件回调中接收到的 total 不是数字格式。"), rt.error("数据加载失败,请检查数据格式。");
|
|
2730
2752
|
return;
|
|
2731
2753
|
}
|
|
2732
|
-
e.value.table.data = p, ((G = e.value.control) == null ? void 0 : G.add(V.value, e).inline) === !0 && e.value.table.data.unshift(V.value), e.value.table.page.total = $, R.value = S, Y.value = I, De(),
|
|
2754
|
+
e.value.table.data = p, ((G = e.value.control) == null ? void 0 : G.add(V.value, e).inline) === !0 && e.value.table.data.unshift(V.value), e.value.table.page.total = $, R.value = S, Y.value = I, De(), Q.value = Math.random().toString(36).substring(2);
|
|
2733
2755
|
},
|
|
2734
2756
|
V.value
|
|
2735
2757
|
);
|
|
2736
2758
|
} catch (p) {
|
|
2737
|
-
console.error("触发 load 事件时出现错误:", p),
|
|
2759
|
+
console.error("触发 load 事件时出现错误:", p), rt.error("数据加载时出现错误,请稍后重试。");
|
|
2738
2760
|
}
|
|
2739
2761
|
},
|
|
2740
2762
|
onHeaderDragend: (a, r, p) => {
|
|
2741
|
-
|
|
2763
|
+
ua(ce.value, p.property, a);
|
|
2742
2764
|
},
|
|
2743
2765
|
onRowDblclick: (a, r, p) => {
|
|
2744
|
-
e.value.table.dblclickType == "edit" ?
|
|
2766
|
+
e.value.table.dblclickType == "edit" ? b(a, r, p, e) : e.value.table.dblclickType == "view" ? F(a, r, p, e) : e.value.table.dblclickType == "delete" ? s(a, r, p, e) : e.value.table.dblclickType(a, r, p, e);
|
|
2745
2767
|
},
|
|
2746
2768
|
style: { "min-height": "100px", backgroundColor: "var(--el-bg-color)" },
|
|
2747
2769
|
page: {
|
|
@@ -2761,7 +2783,7 @@ const Ma = /* @__PURE__ */ Xt(xa), Ta = { key: 0 }, Fa = { style: { display: "fl
|
|
|
2761
2783
|
e.value.table.page.currentPage = a, e.value.table.load();
|
|
2762
2784
|
},
|
|
2763
2785
|
onSizeChange: (a) => {
|
|
2764
|
-
|
|
2786
|
+
ca({ page: ce.value, size: a }).then(() => {
|
|
2765
2787
|
e.value.table.page.pageSize = a, e.value.table.load();
|
|
2766
2788
|
});
|
|
2767
2789
|
}
|
|
@@ -2771,11 +2793,11 @@ const Ma = /* @__PURE__ */ Xt(xa), Ta = { key: 0 }, Fa = { style: { display: "fl
|
|
|
2771
2793
|
onSortChange: ({ column: a, prop: r, order: p }, $) => {
|
|
2772
2794
|
}
|
|
2773
2795
|
});
|
|
2774
|
-
e.value.table =
|
|
2775
|
-
|
|
2796
|
+
e.value.table = Oe(
|
|
2797
|
+
me.value,
|
|
2776
2798
|
h == null ? void 0 : h.table,
|
|
2777
2799
|
e.value.table,
|
|
2778
|
-
|
|
2800
|
+
te
|
|
2779
2801
|
// 继承父组件的属性
|
|
2780
2802
|
);
|
|
2781
2803
|
const ie = {
|
|
@@ -2785,14 +2807,14 @@ const Ma = /* @__PURE__ */ Xt(xa), Ta = { key: 0 }, Fa = { style: { display: "fl
|
|
|
2785
2807
|
"min-width": 100,
|
|
2786
2808
|
width: 160,
|
|
2787
2809
|
fixed: "right",
|
|
2788
|
-
style: { ...(
|
|
2810
|
+
style: { ...(qe = (Ae = e.value) == null ? void 0 : Ae.control) == null ? void 0 : qe.style },
|
|
2789
2811
|
validate: async (a) => await !0,
|
|
2790
2812
|
view: (a, r, p, $) => ({
|
|
2791
2813
|
label: "查看",
|
|
2792
2814
|
text: !0,
|
|
2793
2815
|
type: "success",
|
|
2794
2816
|
mode: "dialog",
|
|
2795
|
-
icon: () =>
|
|
2817
|
+
icon: () => Ee(kl),
|
|
2796
2818
|
auth: () => {
|
|
2797
2819
|
var S;
|
|
2798
2820
|
return !(((S = $ == null ? void 0 : $.control) == null ? void 0 : S.add(a, $).inline) === !0 && p === 0);
|
|
@@ -2803,7 +2825,7 @@ const Ma = /* @__PURE__ */ Xt(xa), Ta = { key: 0 }, Fa = { style: { display: "fl
|
|
|
2803
2825
|
text: !0,
|
|
2804
2826
|
type: "primary",
|
|
2805
2827
|
mode: "dialog",
|
|
2806
|
-
icon: () =>
|
|
2828
|
+
icon: () => Ee(Cl),
|
|
2807
2829
|
auth: () => {
|
|
2808
2830
|
var S;
|
|
2809
2831
|
return ((S = $ == null ? void 0 : $.control) == null ? void 0 : S.add(a, $).inline) !== !0;
|
|
@@ -2813,7 +2835,7 @@ const Ma = /* @__PURE__ */ Xt(xa), Ta = { key: 0 }, Fa = { style: { display: "fl
|
|
|
2813
2835
|
text: !0,
|
|
2814
2836
|
label: "删除",
|
|
2815
2837
|
type: "danger",
|
|
2816
|
-
icon: () =>
|
|
2838
|
+
icon: () => Ee(jt),
|
|
2817
2839
|
auth: () => {
|
|
2818
2840
|
var S;
|
|
2819
2841
|
return !(((S = $.control) == null ? void 0 : S.add(a, $).inline) === !0 && p === 0);
|
|
@@ -2833,7 +2855,7 @@ const Ma = /* @__PURE__ */ Xt(xa), Ta = { key: 0 }, Fa = { style: { display: "fl
|
|
|
2833
2855
|
return {
|
|
2834
2856
|
label: ((S = $.control) == null ? void 0 : S.add(a, $).inline) !== !0 ? "保存" : p === 0 ? "新增" : "保存",
|
|
2835
2857
|
text: !0,
|
|
2836
|
-
icon: () =>
|
|
2858
|
+
icon: () => Ee(Nt),
|
|
2837
2859
|
type: ((I = $.control) == null ? void 0 : I.add(a, $).inline) !== !0 || p === 0 ? "primary" : "success",
|
|
2838
2860
|
sort: -1,
|
|
2839
2861
|
auth: () => {
|
|
@@ -2848,7 +2870,7 @@ const Ma = /* @__PURE__ */ Xt(xa), Ta = { key: 0 }, Fa = { style: { display: "fl
|
|
|
2848
2870
|
type: "primary",
|
|
2849
2871
|
mode: "dialog",
|
|
2850
2872
|
inline: !1,
|
|
2851
|
-
icon: () =>
|
|
2873
|
+
icon: () => Ee(Dl),
|
|
2852
2874
|
auth: () => !0
|
|
2853
2875
|
}),
|
|
2854
2876
|
download: (a, r) => ({
|
|
@@ -2856,7 +2878,7 @@ const Ma = /* @__PURE__ */ Xt(xa), Ta = { key: 0 }, Fa = { style: { display: "fl
|
|
|
2856
2878
|
text: !1,
|
|
2857
2879
|
type: "primary",
|
|
2858
2880
|
mode: "dialog",
|
|
2859
|
-
icon: () =>
|
|
2881
|
+
icon: () => Ee(Gt),
|
|
2860
2882
|
excelLabel: "下载EXCEL",
|
|
2861
2883
|
auth: () => !0
|
|
2862
2884
|
}),
|
|
@@ -2865,7 +2887,7 @@ const Ma = /* @__PURE__ */ Xt(xa), Ta = { key: 0 }, Fa = { style: { display: "fl
|
|
|
2865
2887
|
text: !1,
|
|
2866
2888
|
type: "primary",
|
|
2867
2889
|
mode: "dialog",
|
|
2868
|
-
icon: () =>
|
|
2890
|
+
icon: () => Ee(Sl),
|
|
2869
2891
|
auth: () => !0
|
|
2870
2892
|
}),
|
|
2871
2893
|
dropdown: (a, r, p, $) => ({
|
|
@@ -2877,53 +2899,53 @@ const Ma = /* @__PURE__ */ Xt(xa), Ta = { key: 0 }, Fa = { style: { display: "fl
|
|
|
2877
2899
|
auth: () => !($.control.add(a, $).inline === !0 && p == 0),
|
|
2878
2900
|
onClick: () => {
|
|
2879
2901
|
var I;
|
|
2880
|
-
let S = (I =
|
|
2881
|
-
S === "edit" ?
|
|
2902
|
+
let S = (I = we(a, r, p, $)) == null ? void 0 : I.operate;
|
|
2903
|
+
S === "edit" ? b(a, r, p, $) : S === "delete" ? s(a, r, p, $) : S === "view" && F(a, r, p, $);
|
|
2882
2904
|
},
|
|
2883
2905
|
"button-props": { round: !0, plain: !0 }
|
|
2884
2906
|
})
|
|
2885
2907
|
};
|
|
2886
|
-
e.value.control =
|
|
2908
|
+
e.value.control = Oe(
|
|
2887
2909
|
ie,
|
|
2888
2910
|
h == null ? void 0 : h.control,
|
|
2889
2911
|
(Je = e.value) == null ? void 0 : Je.control
|
|
2890
2912
|
);
|
|
2891
|
-
const
|
|
2892
|
-
const p = e.value.control[a], $ = r ? (S, I, G,
|
|
2893
|
-
var
|
|
2913
|
+
const fe = (a, r = !0) => {
|
|
2914
|
+
const p = e.value.control[a], $ = r ? (S, I, G, ge) => {
|
|
2915
|
+
var Ne, Xe, st;
|
|
2894
2916
|
if (!S || !I || G == null)
|
|
2895
2917
|
return console.warn(`merge${a.charAt(0).toUpperCase() + a.slice(1)}: 缺少必要的参数(row, column或index)`), {};
|
|
2896
|
-
const _e = ((
|
|
2897
|
-
return
|
|
2918
|
+
const _e = ((Ne = ie[a]) == null ? void 0 : Ne.call(ie, S, I, G, ge)) || {}, Re = ((st = (Xe = h == null ? void 0 : h.control) == null ? void 0 : Xe[a]) == null ? void 0 : st.call(Xe, S, I, G, ge)) || {}, He = (p == null ? void 0 : p(S, I, G, ge)) || {};
|
|
2919
|
+
return Oe(_e, Re, He) || {};
|
|
2898
2920
|
} : (S, I) => {
|
|
2899
|
-
var Re, He,
|
|
2900
|
-
const G = ((Re = ie[a]) == null ? void 0 : Re.call(ie, S, I)) || {},
|
|
2901
|
-
return
|
|
2921
|
+
var Re, He, Ne;
|
|
2922
|
+
const G = ((Re = ie[a]) == null ? void 0 : Re.call(ie, S, I)) || {}, ge = ((Ne = (He = h == null ? void 0 : h.control) == null ? void 0 : He[a]) == null ? void 0 : Ne.call(He, S, I)) || {}, _e = (p == null ? void 0 : p(S, I)) || {};
|
|
2923
|
+
return Oe(G, ge, _e) || {};
|
|
2902
2924
|
};
|
|
2903
2925
|
e.value.control[a] = $;
|
|
2904
2926
|
};
|
|
2905
|
-
|
|
2906
|
-
const
|
|
2907
|
-
var
|
|
2927
|
+
fe("edit"), fe("delete"), fe("view"), fe("save"), fe("add", !1), fe("download", !1), fe("setting", !1);
|
|
2928
|
+
const we = (a, r, p, $) => {
|
|
2929
|
+
var ge, _e, Re, He, Ne, Xe;
|
|
2908
2930
|
if (!a || !r || p == null)
|
|
2909
2931
|
return console.warn("mergeDropdown: 缺少必要的参数(row, column或index)"), {};
|
|
2910
|
-
const S = ((
|
|
2911
|
-
return
|
|
2932
|
+
const S = ((ge = ie.dropdown) == null ? void 0 : ge.call(ie, a, r, p, $)) || {}, I = ((Re = (_e = h == null ? void 0 : h.control) == null ? void 0 : _e.dropdown) == null ? void 0 : Re.call(_e, a, r, p, $)) || {}, G = ((Xe = (Ne = (He = e.value) == null ? void 0 : He.control) == null ? void 0 : Ne.dropdown) == null ? void 0 : Xe.call(Ne, a, r, p, $)) || {};
|
|
2933
|
+
return Oe(S, I, G) || {};
|
|
2912
2934
|
}, Fe = {
|
|
2913
2935
|
type: "hidden",
|
|
2914
2936
|
"min-width": 100,
|
|
2915
2937
|
align: "center",
|
|
2916
2938
|
formatter: (a, r, p, $) => p,
|
|
2917
|
-
"tooltip-formatter": ({ row: a, column: r, cellValue: p }) =>
|
|
2939
|
+
"tooltip-formatter": ({ row: a, column: r, cellValue: p }) => Ee(Ca, { content: p, column: r })
|
|
2918
2940
|
};
|
|
2919
|
-
e.value.tableColumns =
|
|
2941
|
+
e.value.tableColumns = Oe(
|
|
2920
2942
|
Fe,
|
|
2921
2943
|
h == null ? void 0 : h.tableColumns,
|
|
2922
2944
|
(Le = e.value) == null ? void 0 : Le.tableColumns
|
|
2923
|
-
), e.value.form =
|
|
2924
|
-
|
|
2945
|
+
), e.value.form = Oe(
|
|
2946
|
+
Jt,
|
|
2925
2947
|
h == null ? void 0 : h.form,
|
|
2926
|
-
(
|
|
2948
|
+
(Pe = e.value) == null ? void 0 : Pe.form
|
|
2927
2949
|
);
|
|
2928
2950
|
const Se = {
|
|
2929
2951
|
type: "hidden",
|
|
@@ -2932,7 +2954,7 @@ const Ma = /* @__PURE__ */ Xt(xa), Ta = { key: 0 }, Fa = { style: { display: "fl
|
|
|
2932
2954
|
width: "100%"
|
|
2933
2955
|
}
|
|
2934
2956
|
};
|
|
2935
|
-
e.value.formItems =
|
|
2957
|
+
e.value.formItems = Oe(
|
|
2936
2958
|
Se,
|
|
2937
2959
|
h == null ? void 0 : h.formItems,
|
|
2938
2960
|
(je = e == null ? void 0 : e.value) == null ? void 0 : je.formItems
|
|
@@ -2950,15 +2972,15 @@ const Ma = /* @__PURE__ */ Xt(xa), Ta = { key: 0 }, Fa = { style: { display: "fl
|
|
|
2950
2972
|
overflow: !0,
|
|
2951
2973
|
max: {
|
|
2952
2974
|
style: {},
|
|
2953
|
-
icon: () =>
|
|
2975
|
+
icon: () => Ee(xl)
|
|
2954
2976
|
},
|
|
2955
2977
|
min: {
|
|
2956
2978
|
style: {},
|
|
2957
|
-
icon: () =>
|
|
2979
|
+
icon: () => Ee(Ml)
|
|
2958
2980
|
// 最小化图标
|
|
2959
2981
|
}
|
|
2960
2982
|
};
|
|
2961
|
-
e.value.dialog =
|
|
2983
|
+
e.value.dialog = Oe(
|
|
2962
2984
|
ee,
|
|
2963
2985
|
h == null ? void 0 : h.dialog,
|
|
2964
2986
|
(We = e.value) == null ? void 0 : We.dialog
|
|
@@ -2967,17 +2989,17 @@ const Ma = /* @__PURE__ */ Xt(xa), Ta = { key: 0 }, Fa = { style: { display: "fl
|
|
|
2967
2989
|
let p = r;
|
|
2968
2990
|
if (a.precision && !isNaN(parseFloat(r)) && (typeof a.precision == "number" ? p = parseFloat(p).toFixed(a.precision) : typeof a.precision == "object" && a.precision.num && (a.precision.pad ? p = parseFloat(p).toFixed(a.precision.num) : p = parseFloat(
|
|
2969
2991
|
parseFloat(p).toFixed(a.precision.num)
|
|
2970
|
-
).toString())), ["date", "datetime", "time", "time-select"].includes(a.type) &&
|
|
2992
|
+
).toString())), ["date", "datetime", "time", "time-select"].includes(a.type) && Mt(r).isValid()) {
|
|
2971
2993
|
const S = {
|
|
2972
2994
|
date: "YYYY-MM-DD",
|
|
2973
2995
|
datetime: "YYYY-MM-DD HH:mm:ss",
|
|
2974
2996
|
time: "HH:mm:ss"
|
|
2975
2997
|
};
|
|
2976
|
-
p = a.format ?
|
|
2998
|
+
p = a.format ? Mt(p).format(a.format) : Mt(p).format(S[a.type]);
|
|
2977
2999
|
}
|
|
2978
|
-
return a.type === "money" && (a.align = a.align || "right", a.width = a.width || 130, p = `<span title="${
|
|
3000
|
+
return a.type === "money" && (a.align = a.align || "right", a.width = a.width || 130, p = `<span title="${Bt(
|
|
2979
3001
|
parseFloat(p)
|
|
2980
|
-
)}">${
|
|
3002
|
+
)}">${nr(parseFloat(p), (a == null ? void 0 : a.precision) || 2, (a == null ? void 0 : a.removeZero) || !1)}</span>`), a.prefix && p && (p = `<span>${a.prefix}${p}</span>`), a.suffix && p && (p = `${p}<span>${a.suffix}</span>`), p;
|
|
2981
3003
|
}, Me = (a) => {
|
|
2982
3004
|
f.value = Object.fromEntries(v), e.value.table.load();
|
|
2983
3005
|
}, M = (a) => {
|
|
@@ -2994,7 +3016,7 @@ const Ma = /* @__PURE__ */ Xt(xa), Ta = { key: 0 }, Fa = { style: { display: "fl
|
|
|
2994
3016
|
($ = e.value.control.add(a, r)) != null && $.click ? e.value.control.add(a, r).click(V.value, r) : e.value.control.add(a, r).inline === !0 ? (e.value.table.data.unshift(V.value), n("open", "row-add", { row: V.value })) : (e.value.form.disabled = !1, e.value.dialog.mode = e.value.control.add(a, r).mode, e.value.dialog.title = e.value.control.add(a, r).title || e.value.control.add(a, r).label || "新增", Object.keys(V.value).forEach((S) => {
|
|
2995
3017
|
e.value[S] && (e.value[S].value = V.value[S]);
|
|
2996
3018
|
}), u.value = !0, n("open", "add", { row: V.value, m: r }), Ct());
|
|
2997
|
-
},
|
|
3019
|
+
}, b = async (a, r, p, $) => {
|
|
2998
3020
|
var S, I;
|
|
2999
3021
|
e.value.form.modalState = "edit", l.value = "edit";
|
|
3000
3022
|
try {
|
|
@@ -3017,8 +3039,8 @@ const Ma = /* @__PURE__ */ Xt(xa), Ta = { key: 0 }, Fa = { style: { display: "fl
|
|
|
3017
3039
|
if ((I = e.value.control.delete(a, r, p, $)) != null && I.click)
|
|
3018
3040
|
e.value.control.delete(a, r, p, $).click(a, r, p, $);
|
|
3019
3041
|
else {
|
|
3020
|
-
let { message: G, title:
|
|
3021
|
-
|
|
3042
|
+
let { message: G, title: ge, options: _e } = e.value.control.delete(a, r, p, $).dialog;
|
|
3043
|
+
Lt.confirm(G, ge, _e).then(() => {
|
|
3022
3044
|
n(
|
|
3023
3045
|
"delete",
|
|
3024
3046
|
{ row: a, column: r, index: p, m: $ },
|
|
@@ -3047,19 +3069,19 @@ const Ma = /* @__PURE__ */ Xt(xa), Ta = { key: 0 }, Fa = { style: { display: "fl
|
|
|
3047
3069
|
"row-save",
|
|
3048
3070
|
{ row: a, column: r, index: p, data: e.value.table.data },
|
|
3049
3071
|
(I = !0, G = !0) => {
|
|
3050
|
-
I && e.value.table.load(), G &&
|
|
3072
|
+
I && e.value.table.load(), G && ft(() => {
|
|
3051
3073
|
V.value = Object.assign(
|
|
3052
3074
|
{},
|
|
3053
3075
|
Object.fromEntries(
|
|
3054
3076
|
Object.entries(
|
|
3055
|
-
Ge(e.value, (
|
|
3056
|
-
).map(([
|
|
3077
|
+
Ge(e.value, (ge, _e) => _e.type != "control" && _e.editor !== !1 && _e.type != "hidden")
|
|
3078
|
+
).map(([ge, _e]) => [ge, _e.value])
|
|
3057
3079
|
)
|
|
3058
3080
|
);
|
|
3059
3081
|
});
|
|
3060
3082
|
}
|
|
3061
3083
|
);
|
|
3062
|
-
},
|
|
3084
|
+
}, A = or((a, r, p) => {
|
|
3063
3085
|
n("submit", e.value.form.modalState, a, r, ($) => {
|
|
3064
3086
|
$ && (p === 1 && (u.value = !1), Object.keys(V.value).forEach((S) => {
|
|
3065
3087
|
a[S] = V.value[S];
|
|
@@ -3069,7 +3091,7 @@ const Ma = /* @__PURE__ */ Xt(xa), Ta = { key: 0 }, Fa = { style: { display: "fl
|
|
|
3069
3091
|
Object.keys(V.value).forEach((p) => {
|
|
3070
3092
|
a[p] = V.value[p];
|
|
3071
3093
|
}), n("reset", a, r);
|
|
3072
|
-
},
|
|
3094
|
+
}, J = (a, r, p) => {
|
|
3073
3095
|
var $;
|
|
3074
3096
|
if (($ = r.control.download(a, r)) != null && $.click)
|
|
3075
3097
|
r.control.download(a, r).click(a, r, p);
|
|
@@ -3080,7 +3102,7 @@ const Ma = /* @__PURE__ */ Xt(xa), Ta = { key: 0 }, Fa = { style: { display: "fl
|
|
|
3080
3102
|
size: r.control.download(a, r).size || 480,
|
|
3081
3103
|
width: r.control.download(a, r).width || 600,
|
|
3082
3104
|
slots: {
|
|
3083
|
-
default: () =>
|
|
3105
|
+
default: () => Ee(ra, {
|
|
3084
3106
|
items: p,
|
|
3085
3107
|
commitText: r.control.download(a, r).excelLabel,
|
|
3086
3108
|
onExcel: (I, G) => {
|
|
@@ -3100,14 +3122,14 @@ const Ma = /* @__PURE__ */ Xt(xa), Ta = { key: 0 }, Fa = { style: { display: "fl
|
|
|
3100
3122
|
size: r.control.setting(a, r).size || 470,
|
|
3101
3123
|
width: r.control.setting(a, r).width || 600,
|
|
3102
3124
|
slots: {
|
|
3103
|
-
default: () =>
|
|
3125
|
+
default: () => Ee(wa, {
|
|
3104
3126
|
modelValue: r,
|
|
3105
|
-
tuid:
|
|
3127
|
+
tuid: ce.value,
|
|
3106
3128
|
onSettingDragEnd: async () => {
|
|
3107
|
-
await
|
|
3129
|
+
await P(ce.value);
|
|
3108
3130
|
},
|
|
3109
3131
|
onSelectAll: async ($) => {
|
|
3110
|
-
await
|
|
3132
|
+
await P(ce.value);
|
|
3111
3133
|
}
|
|
3112
3134
|
})
|
|
3113
3135
|
}
|
|
@@ -3116,30 +3138,30 @@ const Ma = /* @__PURE__ */ Xt(xa), Ta = { key: 0 }, Fa = { style: { display: "fl
|
|
|
3116
3138
|
);
|
|
3117
3139
|
}, re = e.value.control, j = [
|
|
3118
3140
|
{ type: "add", func: w },
|
|
3119
|
-
{ type: "download", func:
|
|
3141
|
+
{ type: "download", func: J },
|
|
3120
3142
|
{ type: "setting", func: ue },
|
|
3121
3143
|
{ type: "view", func: F },
|
|
3122
|
-
{ type: "edit", func:
|
|
3144
|
+
{ type: "edit", func: b },
|
|
3123
3145
|
{ type: "delete", func: s },
|
|
3124
3146
|
{ type: "save", func: _ }
|
|
3125
3147
|
], W = (a, r, p, $, S) => j.filter((I) => a.includes(I.type)).map(({ type: I, func: G }) => {
|
|
3126
|
-
var
|
|
3148
|
+
var ge, _e, Re;
|
|
3127
3149
|
return {
|
|
3128
3150
|
name: `control-${I}`,
|
|
3129
3151
|
attr: re == null ? void 0 : re[I](r, p, $, S),
|
|
3130
3152
|
func: G,
|
|
3131
|
-
label: (
|
|
3153
|
+
label: (ge = re == null ? void 0 : re[I](r, p, $, S)) == null ? void 0 : ge.label,
|
|
3132
3154
|
sort: ((_e = re == null ? void 0 : re[I](r, p, $, S)) == null ? void 0 : _e.sort) || 0,
|
|
3133
3155
|
groupName: ((Re = re == null ? void 0 : re[I](r, p, $, S)) == null ? void 0 : Re.groupName) || "default"
|
|
3134
3156
|
};
|
|
3135
3157
|
}).sort((I, G) => I.sort - G.sort), Te = (a, r, p, $, S) => W(a, r, p, $, S).reduce((I, G) => {
|
|
3136
|
-
const
|
|
3137
|
-
return I[
|
|
3138
|
-
}, {}),
|
|
3158
|
+
const ge = G.groupName || "default";
|
|
3159
|
+
return I[ge] || (I[ge] = []), I[ge].push(G), I;
|
|
3160
|
+
}, {}), ye = dt(
|
|
3139
3161
|
() => Object.fromEntries(
|
|
3140
3162
|
Object.entries(e.value).filter(([a, r]) => r.type !== "hidden").filter(([a, r]) => r.hidden !== !0).filter(([a, r]) => r.visible !== !1).filter(([a, r]) => r.showCol !== !1).map(([a, r]) => (r.sort = typeof r.sort == "number" ? r.sort : 0, [a, r])).sort((a, r) => a[1].sort - r[1].sort)
|
|
3141
3163
|
)
|
|
3142
|
-
), Ve = ne({}),
|
|
3164
|
+
), Ve = ne({}), Be = (a, r) => {
|
|
3143
3165
|
const p = ($, S) => {
|
|
3144
3166
|
for (const I of $) {
|
|
3145
3167
|
if (I.value == S) return I.label;
|
|
@@ -3152,8 +3174,8 @@ const Ma = /* @__PURE__ */ Xt(xa), Ta = { key: 0 }, Fa = { style: { display: "fl
|
|
|
3152
3174
|
};
|
|
3153
3175
|
if (a.getDicts) {
|
|
3154
3176
|
const $ = r.toString();
|
|
3155
|
-
return Ve.value[$] ? (a.options = Ve.value[$], a.formatter || (a.formatter = (S, I, G,
|
|
3156
|
-
Ve.value[$] = S, a.options = S, a.formatter || (a.formatter = (I, G,
|
|
3177
|
+
return Ve.value[$] ? (a.options = Ve.value[$], a.formatter || (a.formatter = (S, I, G, ge) => a.options && p(a.options, G) || G), Promise.resolve()) : a.getDicts(e.value.table.data).then((S) => {
|
|
3178
|
+
Ve.value[$] = S, a.options = S, a.formatter || (a.formatter = (I, G, ge, _e) => a.options && p(a.options, ge) || ge);
|
|
3157
3179
|
});
|
|
3158
3180
|
}
|
|
3159
3181
|
return Promise.resolve();
|
|
@@ -3161,7 +3183,7 @@ const Ma = /* @__PURE__ */ Xt(xa), Ta = { key: 0 }, Fa = { style: { display: "fl
|
|
|
3161
3183
|
const a = [];
|
|
3162
3184
|
Object.keys(e.value).forEach((r) => {
|
|
3163
3185
|
if (e.value[r].getDicts) {
|
|
3164
|
-
const p =
|
|
3186
|
+
const p = Be(e.value[r], r).then(() => {
|
|
3165
3187
|
e.value.table.data.forEach(($) => {
|
|
3166
3188
|
var S;
|
|
3167
3189
|
if (e.value[r].getDicts && ((S = e.value[r]) == null ? void 0 : S.forceString) !== !1) {
|
|
@@ -3177,7 +3199,7 @@ const Ma = /* @__PURE__ */ Xt(xa), Ta = { key: 0 }, Fa = { style: { display: "fl
|
|
|
3177
3199
|
}), Promise.all(a).catch((r) => {
|
|
3178
3200
|
console.error("字典加载过程中发生错误:", r);
|
|
3179
3201
|
});
|
|
3180
|
-
},
|
|
3202
|
+
}, q = (a, r, p, $) => {
|
|
3181
3203
|
var S, I;
|
|
3182
3204
|
return a.table ? (S = a.table(r, p, $)) != null && S.auth ? (I = a.table(r, p, $)) == null ? void 0 : I.auth(r, p, $) : !0 : !1;
|
|
3183
3205
|
}, C = () => {
|
|
@@ -3192,15 +3214,15 @@ const Ma = /* @__PURE__ */ Xt(xa), Ta = { key: 0 }, Fa = { style: { display: "fl
|
|
|
3192
3214
|
else
|
|
3193
3215
|
u.value = !1;
|
|
3194
3216
|
};
|
|
3195
|
-
|
|
3217
|
+
pl(() => {
|
|
3196
3218
|
e.value.table.autoWatch && e.value.table.load();
|
|
3197
3219
|
});
|
|
3198
|
-
const
|
|
3220
|
+
const P = async () => {
|
|
3199
3221
|
try {
|
|
3200
3222
|
const [a, r, p] = await Promise.all([
|
|
3201
|
-
|
|
3202
|
-
|
|
3203
|
-
|
|
3223
|
+
sa(ce.value),
|
|
3224
|
+
pa(ce.value),
|
|
3225
|
+
ia(ce.value)
|
|
3204
3226
|
]);
|
|
3205
3227
|
a && Array.isArray(a) && a.forEach(($) => {
|
|
3206
3228
|
const S = e.value[$.key];
|
|
@@ -3217,11 +3239,11 @@ const Ma = /* @__PURE__ */ Xt(xa), Ta = { key: 0 }, Fa = { style: { display: "fl
|
|
|
3217
3239
|
} catch (a) {
|
|
3218
3240
|
console.error("加载表格信息时出错:", a);
|
|
3219
3241
|
}
|
|
3220
|
-
}, xe = () =>
|
|
3221
|
-
return
|
|
3222
|
-
|
|
3242
|
+
}, xe = () => Ta(Object.keys(e.value).toString()).toUpperCase().substring(8, 24);
|
|
3243
|
+
return ml(() => {
|
|
3244
|
+
ce.value = xe();
|
|
3223
3245
|
}), mt(async () => {
|
|
3224
|
-
|
|
3246
|
+
g.value = Object.entries(e.value).filter(
|
|
3225
3247
|
([a, r]) => r.type !== "hidden" && r.type !== "control" && r.visible !== !1
|
|
3226
3248
|
).map(([a, r]) => ({
|
|
3227
3249
|
key: a || "",
|
|
@@ -3229,23 +3251,23 @@ const Ma = /* @__PURE__ */ Xt(xa), Ta = { key: 0 }, Fa = { style: { display: "fl
|
|
|
3229
3251
|
value: !0
|
|
3230
3252
|
}));
|
|
3231
3253
|
try {
|
|
3232
|
-
await
|
|
3254
|
+
await ft();
|
|
3233
3255
|
const a = Object.entries(e.value).filter(
|
|
3234
3256
|
([r, p]) => p.type !== "control" && p.editor !== !1 && p.type !== "hidden"
|
|
3235
3257
|
);
|
|
3236
3258
|
V.value = Object.fromEntries(
|
|
3237
3259
|
a.map(([r, p]) => [r, p.value])
|
|
3238
|
-
), await
|
|
3260
|
+
), await P();
|
|
3239
3261
|
} catch (a) {
|
|
3240
3262
|
console.error("Error during component initialization:", a);
|
|
3241
3263
|
}
|
|
3242
3264
|
e.value.table.autoWatch || e.value.table.load();
|
|
3243
|
-
}),
|
|
3244
|
-
var Xe,
|
|
3245
|
-
const p = z("el-icon"), $ = z("el-dialog"), S = z("el-drawer"), I = z("el-button-group"), G = z("el-dropdown-item"),
|
|
3246
|
-
return m(), U(
|
|
3247
|
-
e.value.dialog.mode == "dialog" && u.value ? (m(), U("div",
|
|
3248
|
-
|
|
3265
|
+
}), d({ addRow: w, editRow: b, deleteRow: s, readForm: F, saveRowData: _, closeDialog: C, formData: V }), (a, r) => {
|
|
3266
|
+
var Xe, st, ht, yt, gt;
|
|
3267
|
+
const p = z("el-icon"), $ = z("el-dialog"), S = z("el-drawer"), I = z("el-button-group"), G = z("el-dropdown-item"), ge = z("el-dropdown-menu"), _e = z("el-dropdown"), Re = z("el-table-column"), He = z("el-table"), Ne = z("el-pagination");
|
|
3268
|
+
return m(), U(ae, null, [
|
|
3269
|
+
e.value.dialog.mode == "dialog" && u.value ? (m(), U("div", Fa, [
|
|
3270
|
+
le($, O(
|
|
3249
3271
|
{
|
|
3250
3272
|
ref_key: "dialogRef",
|
|
3251
3273
|
ref: D,
|
|
@@ -3254,31 +3276,31 @@ const Ma = /* @__PURE__ */ Xt(xa), Ta = { key: 0 }, Fa = { style: { display: "fl
|
|
|
3254
3276
|
"onUpdate:modelValue": r[4] || (r[4] = (H) => u.value = H),
|
|
3255
3277
|
fullscreen: e.value.dialog.fullScreen
|
|
3256
3278
|
},
|
|
3257
|
-
|
|
3279
|
+
N(Ge)(e.value.dialog, (H) => !["size", "max", "min"].includes(H)),
|
|
3258
3280
|
{
|
|
3259
|
-
width:
|
|
3281
|
+
width: N(al)(e.value.dialog.width) + 35
|
|
3260
3282
|
}
|
|
3261
3283
|
), {
|
|
3262
3284
|
header: E(() => {
|
|
3263
|
-
var H, de, x,
|
|
3285
|
+
var H, de, x, K, se, Ke, et, Qe, Ze, it;
|
|
3264
3286
|
return [
|
|
3265
|
-
|
|
3266
|
-
|
|
3287
|
+
Z("div", Va, [
|
|
3288
|
+
Z("div", Aa, [
|
|
3267
3289
|
k(a.$slots, "f-header", {}, () => [
|
|
3268
|
-
|
|
3290
|
+
Z("div", qa, Ce(e.value.dialog.title), 1)
|
|
3269
3291
|
], !0)
|
|
3270
3292
|
]),
|
|
3271
3293
|
((de = (H = e.value) == null ? void 0 : H.dialog) == null ? void 0 : de.fullScreen) === !1 ? (m(), U("div", {
|
|
3272
3294
|
key: 0,
|
|
3273
|
-
style: Ue((se = (
|
|
3295
|
+
style: Ue((se = (K = (x = e.value) == null ? void 0 : x.dialog) == null ? void 0 : K.max) == null ? void 0 : se.style),
|
|
3274
3296
|
onClick: r[0] || (r[0] = (L) => e.value.dialog.fullScreen = !0),
|
|
3275
3297
|
class: "max"
|
|
3276
3298
|
}, [
|
|
3277
|
-
|
|
3299
|
+
le(p, null, {
|
|
3278
3300
|
default: E(() => {
|
|
3279
3301
|
var L, ze, tt;
|
|
3280
3302
|
return [
|
|
3281
|
-
(m(),
|
|
3303
|
+
(m(), B(at((tt = (ze = (L = e.value) == null ? void 0 : L.dialog) == null ? void 0 : ze.max) == null ? void 0 : tt.icon)))
|
|
3282
3304
|
];
|
|
3283
3305
|
}),
|
|
3284
3306
|
_: 1
|
|
@@ -3286,15 +3308,15 @@ const Ma = /* @__PURE__ */ Xt(xa), Ta = { key: 0 }, Fa = { style: { display: "fl
|
|
|
3286
3308
|
], 4)) : be("", !0),
|
|
3287
3309
|
((et = (Ke = e.value) == null ? void 0 : Ke.dialog) == null ? void 0 : et.fullScreen) === !0 ? (m(), U("div", {
|
|
3288
3310
|
key: 1,
|
|
3289
|
-
style: Ue((
|
|
3311
|
+
style: Ue((it = (Ze = (Qe = e.value) == null ? void 0 : Qe.dialog) == null ? void 0 : Ze.min) == null ? void 0 : it.style),
|
|
3290
3312
|
onClick: r[1] || (r[1] = (L) => e.value.dialog.fullScreen = !1),
|
|
3291
3313
|
class: "max"
|
|
3292
3314
|
}, [
|
|
3293
|
-
|
|
3315
|
+
le(p, null, {
|
|
3294
3316
|
default: E(() => {
|
|
3295
3317
|
var L, ze, tt;
|
|
3296
3318
|
return [
|
|
3297
|
-
(m(),
|
|
3319
|
+
(m(), B(at((tt = (ze = (L = e.value) == null ? void 0 : L.dialog) == null ? void 0 : ze.min) == null ? void 0 : tt.icon)))
|
|
3298
3320
|
];
|
|
3299
3321
|
}),
|
|
3300
3322
|
_: 1
|
|
@@ -3304,19 +3326,19 @@ const Ma = /* @__PURE__ */ Xt(xa), Ta = { key: 0 }, Fa = { style: { display: "fl
|
|
|
3304
3326
|
];
|
|
3305
3327
|
}),
|
|
3306
3328
|
default: E(() => [
|
|
3307
|
-
|
|
3329
|
+
Z("div", Ba, [
|
|
3308
3330
|
k(a.$slots, "table-dialog-form", { model: e.value }, () => [
|
|
3309
|
-
|
|
3331
|
+
le(Ft, {
|
|
3310
3332
|
modelValue: e.value,
|
|
3311
3333
|
"onUpdate:modelValue": r[2] || (r[2] = (H) => e.value = H),
|
|
3312
|
-
onSubmit: r[3] || (r[3] = (H, de, x) =>
|
|
3334
|
+
onSubmit: r[3] || (r[3] = (H, de, x) => N(A)(H, de, x)),
|
|
3313
3335
|
onReset: T,
|
|
3314
3336
|
flag: l.value
|
|
3315
|
-
},
|
|
3337
|
+
}, $e({ _: 2 }, [
|
|
3316
3338
|
X(a.$slots, (H, de, x) => ({
|
|
3317
3339
|
name: de,
|
|
3318
|
-
fn: E((
|
|
3319
|
-
k(a.$slots, de, { model:
|
|
3340
|
+
fn: E((K) => [
|
|
3341
|
+
k(a.$slots, de, { model: K }, void 0, !0)
|
|
3320
3342
|
])
|
|
3321
3343
|
}))
|
|
3322
3344
|
]), 1032, ["modelValue", "flag"])
|
|
@@ -3327,34 +3349,34 @@ const Ma = /* @__PURE__ */ Xt(xa), Ta = { key: 0 }, Fa = { style: { display: "fl
|
|
|
3327
3349
|
}, 16, ["modelValue", "fullscreen", "width"])
|
|
3328
3350
|
])) : be("", !0),
|
|
3329
3351
|
e.value.dialog.mode == "drawer" && u.value ? (m(), U("div", Oa, [
|
|
3330
|
-
|
|
3352
|
+
le(S, O({
|
|
3331
3353
|
ref_key: "drawerRef",
|
|
3332
3354
|
ref: c,
|
|
3333
3355
|
modelValue: u.value,
|
|
3334
3356
|
"onUpdate:modelValue": r[7] || (r[7] = (H) => u.value = H)
|
|
3335
|
-
},
|
|
3357
|
+
}, N(Ge)(e.value.dialog, (H) => !["width"].includes(H))), {
|
|
3336
3358
|
header: E(() => [
|
|
3337
|
-
|
|
3338
|
-
|
|
3359
|
+
Z("div", Ia, [
|
|
3360
|
+
Z("div", Ua, [
|
|
3339
3361
|
k(a.$slots, "f-header", {}, () => [
|
|
3340
|
-
|
|
3362
|
+
Z("div", Ra, Ce(e.value.dialog.title), 1)
|
|
3341
3363
|
], !0)
|
|
3342
3364
|
])
|
|
3343
3365
|
])
|
|
3344
3366
|
]),
|
|
3345
3367
|
default: E(() => [
|
|
3346
3368
|
k(a.$slots, "table-drawer-form", { model: e.value }, () => [
|
|
3347
|
-
|
|
3369
|
+
le(Ft, {
|
|
3348
3370
|
modelValue: e.value,
|
|
3349
3371
|
"onUpdate:modelValue": r[5] || (r[5] = (H) => e.value = H),
|
|
3350
|
-
onSubmit: r[6] || (r[6] = (H, de, x) =>
|
|
3372
|
+
onSubmit: r[6] || (r[6] = (H, de, x) => N(A)(H, de, x)),
|
|
3351
3373
|
onReset: T,
|
|
3352
3374
|
flag: l.value
|
|
3353
|
-
},
|
|
3375
|
+
}, $e({ _: 2 }, [
|
|
3354
3376
|
X(a.$slots, (H, de, x) => ({
|
|
3355
3377
|
name: de,
|
|
3356
|
-
fn: E((
|
|
3357
|
-
k(a.$slots, de, { model:
|
|
3378
|
+
fn: E((K) => [
|
|
3379
|
+
k(a.$slots, de, { model: K }, void 0, !0)
|
|
3358
3380
|
])
|
|
3359
3381
|
}))
|
|
3360
3382
|
]), 1032, ["modelValue", "flag"])
|
|
@@ -3363,65 +3385,65 @@ const Ma = /* @__PURE__ */ Xt(xa), Ta = { key: 0 }, Fa = { style: { display: "fl
|
|
|
3363
3385
|
_: 3
|
|
3364
3386
|
}, 16, ["modelValue"])
|
|
3365
3387
|
])) : be("", !0),
|
|
3366
|
-
|
|
3367
|
-
((
|
|
3388
|
+
Z("div", Ya, [
|
|
3389
|
+
((st = (Xe = e.value) == null ? void 0 : Xe.query) == null ? void 0 : st.hidden) != !0 ? (m(), U("div", La, [
|
|
3368
3390
|
k(a.$slots, "query", {}, () => [
|
|
3369
|
-
|
|
3391
|
+
le(Ql, {
|
|
3370
3392
|
modelValue: e.value,
|
|
3371
3393
|
"onUpdate:modelValue": r[8] || (r[8] = (H) => e.value = H),
|
|
3372
3394
|
info: f.value,
|
|
3373
3395
|
"onUpdate:info": r[9] || (r[9] = (H) => f.value = H),
|
|
3374
3396
|
onQuery: M,
|
|
3375
3397
|
onReset: Me
|
|
3376
|
-
},
|
|
3398
|
+
}, $e({
|
|
3377
3399
|
"q-btns": E(() => [
|
|
3378
3400
|
k(a.$slots, "q-btns", {}, () => [
|
|
3379
|
-
(m(!0), U(
|
|
3380
|
-
de == "default" ? (m(!0), U(
|
|
3401
|
+
(m(!0), U(ae, null, X(Te(["add", "download", "setting"], V.value, e.value), (H, de) => (m(), U(ae, null, [
|
|
3402
|
+
de == "default" ? (m(!0), U(ae, { key: 0 }, X(H, (x) => (m(), U(ae, null, [
|
|
3381
3403
|
k(a.$slots, x.name + "-left", {}, void 0, !0),
|
|
3382
3404
|
(x.name === "control-add" ? x.attr.auth() && x.attr.inline === !1 : x.attr.auth()) ? k(a.$slots, x.name, { key: 0 }, () => [
|
|
3383
|
-
x.label ? (m(),
|
|
3405
|
+
x.label ? (m(), B(N(Ye), O({
|
|
3384
3406
|
key: 0,
|
|
3385
3407
|
title: x.label,
|
|
3386
3408
|
ref_for: !0
|
|
3387
3409
|
}, x.attr, {
|
|
3388
|
-
onClick: (
|
|
3410
|
+
onClick: (K) => x.func(V.value, e.value, g.value)
|
|
3389
3411
|
}), {
|
|
3390
3412
|
default: E(() => [
|
|
3391
3413
|
Ie(Ce(x.label), 1)
|
|
3392
3414
|
]),
|
|
3393
3415
|
_: 2
|
|
3394
|
-
}, 1040, ["title", "onClick"])) : (m(),
|
|
3416
|
+
}, 1040, ["title", "onClick"])) : (m(), B(N(Ye), O({
|
|
3395
3417
|
key: 1,
|
|
3396
3418
|
title: x.label,
|
|
3397
3419
|
ref_for: !0
|
|
3398
3420
|
}, x.attr, {
|
|
3399
|
-
onClick: (
|
|
3421
|
+
onClick: (K) => x.func(V.value, e.value, g.value)
|
|
3400
3422
|
}), null, 16, ["title", "onClick"]))
|
|
3401
3423
|
], !0) : be("", !0),
|
|
3402
3424
|
k(a.$slots, x.name + "-right", {}, void 0, !0)
|
|
3403
|
-
], 64))), 256)) : (m(),
|
|
3425
|
+
], 64))), 256)) : (m(), B(I, { key: 1 }, {
|
|
3404
3426
|
default: E(() => [
|
|
3405
|
-
(m(!0), U(
|
|
3427
|
+
(m(!0), U(ae, null, X(H, (x) => (m(), U(ae, null, [
|
|
3406
3428
|
k(a.$slots, x.name + "-left", {}, void 0, !0),
|
|
3407
3429
|
(x.name === "control-add" ? x.attr.auth() && x.attr.inline === !1 : x.attr.auth()) ? k(a.$slots, x.name, { key: 0 }, () => [
|
|
3408
|
-
x.label ? (m(),
|
|
3430
|
+
x.label ? (m(), B(N(Ye), O({
|
|
3409
3431
|
key: 0,
|
|
3410
3432
|
title: x.label,
|
|
3411
3433
|
ref_for: !0
|
|
3412
3434
|
}, x.attr, {
|
|
3413
|
-
onClick: (
|
|
3435
|
+
onClick: (K) => x.func(V.value, e.value, g.value)
|
|
3414
3436
|
}), {
|
|
3415
3437
|
default: E(() => [
|
|
3416
3438
|
Ie(Ce(x.label), 1)
|
|
3417
3439
|
]),
|
|
3418
3440
|
_: 2
|
|
3419
|
-
}, 1040, ["title", "onClick"])) : (m(),
|
|
3441
|
+
}, 1040, ["title", "onClick"])) : (m(), B(N(Ye), O({
|
|
3420
3442
|
key: 1,
|
|
3421
3443
|
title: x.label,
|
|
3422
3444
|
ref_for: !0
|
|
3423
3445
|
}, x.attr, {
|
|
3424
|
-
onClick: (
|
|
3446
|
+
onClick: (K) => x.func(V.value, e.value, g.value)
|
|
3425
3447
|
}), null, 16, ["title", "onClick"]))
|
|
3426
3448
|
], !0) : be("", !0),
|
|
3427
3449
|
k(a.$slots, x.name + "-right", {}, void 0, !0)
|
|
@@ -3436,7 +3458,7 @@ const Ma = /* @__PURE__ */ Xt(xa), Ta = { key: 0 }, Fa = { style: { display: "fl
|
|
|
3436
3458
|
}, [
|
|
3437
3459
|
X(a.$slots, (H, de, x) => ({
|
|
3438
3460
|
name: de,
|
|
3439
|
-
fn: E((
|
|
3461
|
+
fn: E((K) => [
|
|
3440
3462
|
k(a.$slots, de, { model: e.value }, void 0, !0)
|
|
3441
3463
|
])
|
|
3442
3464
|
}))
|
|
@@ -3447,10 +3469,10 @@ const Ma = /* @__PURE__ */ Xt(xa), Ta = { key: 0 }, Fa = { style: { display: "fl
|
|
|
3447
3469
|
model: e.value,
|
|
3448
3470
|
queryInfo: f.value
|
|
3449
3471
|
}, void 0, !0),
|
|
3450
|
-
|
|
3451
|
-
|
|
3472
|
+
Z("div", Ha, [
|
|
3473
|
+
le(He, O({
|
|
3452
3474
|
...a.$attrs,
|
|
3453
|
-
...
|
|
3475
|
+
...N(Ge)(
|
|
3454
3476
|
e.value.table,
|
|
3455
3477
|
(H) => !["dblclickType", "page"].includes(H)
|
|
3456
3478
|
)
|
|
@@ -3469,25 +3491,25 @@ const Ma = /* @__PURE__ */ Xt(xa), Ta = { key: 0 }, Fa = { style: { display: "fl
|
|
|
3469
3491
|
]),
|
|
3470
3492
|
default: E(() => [
|
|
3471
3493
|
k(a.$slots, "default", {}, () => [
|
|
3472
|
-
(m(!0), U(
|
|
3494
|
+
(m(!0), U(ae, null, X(ye.value, (H, de) => (m(), B(Re, O({
|
|
3473
3495
|
prop: de,
|
|
3474
3496
|
key: de,
|
|
3475
3497
|
ref_for: !0
|
|
3476
3498
|
}, {
|
|
3477
3499
|
...e.value.tableColumns,
|
|
3478
|
-
...
|
|
3479
|
-
}),
|
|
3480
|
-
header: E(({ column: x, $index:
|
|
3500
|
+
...N(Ge)(H, (x) => i.includes(x))
|
|
3501
|
+
}), $e({
|
|
3502
|
+
header: E(({ column: x, $index: K }) => [
|
|
3481
3503
|
de == "control" ? k(a.$slots, `${de}-header`, {
|
|
3482
3504
|
key: 0,
|
|
3483
3505
|
column: x,
|
|
3484
|
-
index:
|
|
3506
|
+
index: K
|
|
3485
3507
|
}, () => [
|
|
3486
|
-
|
|
3508
|
+
Z("span", null, Ce(x.label), 1)
|
|
3487
3509
|
], !0) : k(a.$slots, `${de}-header`, {
|
|
3488
3510
|
key: 1,
|
|
3489
3511
|
column: x,
|
|
3490
|
-
index:
|
|
3512
|
+
index: K
|
|
3491
3513
|
}, void 0, !0)
|
|
3492
3514
|
]),
|
|
3493
3515
|
"filter-icon": E((x) => [
|
|
@@ -3497,85 +3519,85 @@ const Ma = /* @__PURE__ */ Xt(xa), Ta = { key: 0 }, Fa = { style: { display: "fl
|
|
|
3497
3519
|
}, [
|
|
3498
3520
|
H.type === "expand" ? {
|
|
3499
3521
|
name: "default",
|
|
3500
|
-
fn: E(({ row: x, column:
|
|
3522
|
+
fn: E(({ row: x, column: K, $index: se }) => [
|
|
3501
3523
|
k(a.$slots, `${de}`, {
|
|
3502
3524
|
row: x,
|
|
3503
|
-
column:
|
|
3525
|
+
column: K,
|
|
3504
3526
|
index: se
|
|
3505
3527
|
}, void 0, !0)
|
|
3506
3528
|
]),
|
|
3507
3529
|
key: "0"
|
|
3508
3530
|
} : H.type == "control" ? {
|
|
3509
3531
|
name: "default",
|
|
3510
|
-
fn: E(({ row: x, column:
|
|
3532
|
+
fn: E(({ row: x, column: K, $index: se }) => {
|
|
3511
3533
|
var Ke, et;
|
|
3512
3534
|
return [
|
|
3513
|
-
|
|
3514
|
-
class:
|
|
3535
|
+
Z("div", {
|
|
3536
|
+
class: zt(["control", (Ke = e.value.control) == null ? void 0 : Ke.class]),
|
|
3515
3537
|
style: Ue((et = e.value.control) == null ? void 0 : et.style)
|
|
3516
3538
|
}, [
|
|
3517
3539
|
k(a.$slots, "control", {}, () => [
|
|
3518
3540
|
k(a.$slots, "control-left", {
|
|
3519
3541
|
row: x,
|
|
3520
|
-
column:
|
|
3542
|
+
column: K,
|
|
3521
3543
|
index: se
|
|
3522
3544
|
}, void 0, !0),
|
|
3523
|
-
(m(!0), U(
|
|
3524
|
-
var
|
|
3525
|
-
return m(), U(
|
|
3526
|
-
Ze == "default" ? (m(!0), U(
|
|
3545
|
+
(m(!0), U(ae, null, X(Te(["view", "edit", "delete", "save"], x, K, se, e.value), (Qe, Ze) => {
|
|
3546
|
+
var it;
|
|
3547
|
+
return m(), U(ae, null, [
|
|
3548
|
+
Ze == "default" ? (m(!0), U(ae, { key: 0 }, X(Qe, (L) => (m(), U(ae, null, [
|
|
3527
3549
|
k(a.$slots, L.name + "-left", {
|
|
3528
3550
|
row: x,
|
|
3529
|
-
column:
|
|
3551
|
+
column: K,
|
|
3530
3552
|
index: se
|
|
3531
3553
|
}, void 0, !0),
|
|
3532
3554
|
L.attr.auth() ? k(a.$slots, L.name, {
|
|
3533
3555
|
key: 0,
|
|
3534
3556
|
row: x,
|
|
3535
|
-
column:
|
|
3557
|
+
column: K,
|
|
3536
3558
|
index: se
|
|
3537
3559
|
}, () => [
|
|
3538
|
-
L.label ? (m(),
|
|
3560
|
+
L.label ? (m(), B(N(Ye), O({
|
|
3539
3561
|
key: 0,
|
|
3540
3562
|
title: L.label,
|
|
3541
3563
|
ref_for: !0
|
|
3542
3564
|
}, L.attr, {
|
|
3543
|
-
onClick: (ze) => L.func(x,
|
|
3565
|
+
onClick: (ze) => L.func(x, K, se, e.value)
|
|
3544
3566
|
}), {
|
|
3545
3567
|
default: E(() => [
|
|
3546
3568
|
Ie(Ce(L.label), 1)
|
|
3547
3569
|
]),
|
|
3548
3570
|
_: 2
|
|
3549
|
-
}, 1040, ["title", "onClick"])) : (m(),
|
|
3571
|
+
}, 1040, ["title", "onClick"])) : (m(), B(N(Ye), O({
|
|
3550
3572
|
key: 1,
|
|
3551
3573
|
title: L.label,
|
|
3552
3574
|
ref_for: !0
|
|
3553
3575
|
}, L.attr, {
|
|
3554
|
-
onClick: (ze) => L.func(x,
|
|
3576
|
+
onClick: (ze) => L.func(x, K, se, e.value)
|
|
3555
3577
|
}), null, 16, ["title", "onClick"]))
|
|
3556
3578
|
], !0) : be("", !0),
|
|
3557
3579
|
k(a.$slots, L.name + "-right", {
|
|
3558
3580
|
row: x,
|
|
3559
|
-
column:
|
|
3581
|
+
column: K,
|
|
3560
3582
|
index: se
|
|
3561
3583
|
}, void 0, !0)
|
|
3562
|
-
], 64))), 256)) : Ze != null && Ze.startsWith("dropdown") && ((
|
|
3584
|
+
], 64))), 256)) : Ze != null && Ze.startsWith("dropdown") && ((it = we(x, K, se, e.value)) != null && it.auth()) ? (m(), B(_e, O({
|
|
3563
3585
|
key: 1,
|
|
3564
3586
|
ref_for: !0
|
|
3565
|
-
},
|
|
3587
|
+
}, we(x, K, se, e.value)), {
|
|
3566
3588
|
dropdown: E(() => [
|
|
3567
|
-
|
|
3589
|
+
le(ge, null, {
|
|
3568
3590
|
default: E(() => [
|
|
3569
|
-
(m(!0), U(
|
|
3591
|
+
(m(!0), U(ae, null, X(Qe, (L) => {
|
|
3570
3592
|
var ze, tt, vt;
|
|
3571
|
-
return m(), U(
|
|
3593
|
+
return m(), U(ae, null, [
|
|
3572
3594
|
a.$slots[L.name + "-left"] ? k(a.$slots, L.name + "-left", {
|
|
3573
3595
|
key: 0,
|
|
3574
3596
|
row: x,
|
|
3575
|
-
column:
|
|
3597
|
+
column: K,
|
|
3576
3598
|
index: se
|
|
3577
3599
|
}, void 0, !0) : be("", !0),
|
|
3578
|
-
L.attr.auth() ? (m(),
|
|
3600
|
+
L.attr.auth() ? (m(), B(G, O({
|
|
3579
3601
|
key: 1,
|
|
3580
3602
|
ref_for: !0
|
|
3581
3603
|
}, {
|
|
@@ -3586,26 +3608,26 @@ const Ma = /* @__PURE__ */ Xt(xa), Ta = { key: 0 }, Fa = { style: { display: "fl
|
|
|
3586
3608
|
default: E(() => [
|
|
3587
3609
|
k(a.$slots, L.name, {
|
|
3588
3610
|
row: x,
|
|
3589
|
-
column:
|
|
3611
|
+
column: K,
|
|
3590
3612
|
index: se
|
|
3591
3613
|
}, () => [
|
|
3592
|
-
L.label ? (m(),
|
|
3614
|
+
L.label ? (m(), B(N(Ye), O({
|
|
3593
3615
|
key: 0,
|
|
3594
3616
|
title: L.label,
|
|
3595
3617
|
ref_for: !0
|
|
3596
3618
|
}, L.attr, {
|
|
3597
|
-
onClick: (bt) => L.func(x,
|
|
3619
|
+
onClick: (bt) => L.func(x, K, se, e.value)
|
|
3598
3620
|
}), {
|
|
3599
3621
|
default: E(() => [
|
|
3600
3622
|
Ie(Ce(L.label), 1)
|
|
3601
3623
|
]),
|
|
3602
3624
|
_: 2
|
|
3603
|
-
}, 1040, ["title", "onClick"])) : (m(),
|
|
3625
|
+
}, 1040, ["title", "onClick"])) : (m(), B(N(Ye), O({
|
|
3604
3626
|
key: 1,
|
|
3605
3627
|
title: L.label,
|
|
3606
3628
|
ref_for: !0
|
|
3607
3629
|
}, L.attr, {
|
|
3608
|
-
onClick: (bt) => L.func(x,
|
|
3630
|
+
onClick: (bt) => L.func(x, K, se, e.value)
|
|
3609
3631
|
}), null, 16, ["title", "onClick"]))
|
|
3610
3632
|
], !0)
|
|
3611
3633
|
]),
|
|
@@ -3614,7 +3636,7 @@ const Ma = /* @__PURE__ */ Xt(xa), Ta = { key: 0 }, Fa = { style: { display: "fl
|
|
|
3614
3636
|
a.$slots[L.name + "-right"] ? k(a.$slots, L.name + "-right", {
|
|
3615
3637
|
key: 2,
|
|
3616
3638
|
row: x,
|
|
3617
|
-
column:
|
|
3639
|
+
column: K,
|
|
3618
3640
|
index: se
|
|
3619
3641
|
}, void 0, !0) : be("", !0)
|
|
3620
3642
|
], 64);
|
|
@@ -3626,46 +3648,46 @@ const Ma = /* @__PURE__ */ Xt(xa), Ta = { key: 0 }, Fa = { style: { display: "fl
|
|
|
3626
3648
|
default: E(() => {
|
|
3627
3649
|
var L;
|
|
3628
3650
|
return [
|
|
3629
|
-
Ie(Ce((L =
|
|
3651
|
+
Ie(Ce((L = we(x, K, se, e.value)) == null ? void 0 : L.label) + " ", 1)
|
|
3630
3652
|
];
|
|
3631
3653
|
}),
|
|
3632
3654
|
_: 2
|
|
3633
|
-
}, 1040)) : (m(),
|
|
3655
|
+
}, 1040)) : (m(), B(I, { key: 2 }, {
|
|
3634
3656
|
default: E(() => [
|
|
3635
|
-
(m(!0), U(
|
|
3657
|
+
(m(!0), U(ae, null, X(Qe, (L) => (m(), U(ae, null, [
|
|
3636
3658
|
k(a.$slots, L.name + "-left", {
|
|
3637
3659
|
row: x,
|
|
3638
|
-
column:
|
|
3660
|
+
column: K,
|
|
3639
3661
|
index: se
|
|
3640
3662
|
}, void 0, !0),
|
|
3641
3663
|
L.attr.auth() ? k(a.$slots, L.name, {
|
|
3642
3664
|
key: 0,
|
|
3643
3665
|
row: x,
|
|
3644
|
-
column:
|
|
3666
|
+
column: K,
|
|
3645
3667
|
index: se
|
|
3646
3668
|
}, () => [
|
|
3647
|
-
L.label ? (m(),
|
|
3669
|
+
L.label ? (m(), B(N(Ye), O({
|
|
3648
3670
|
key: 0,
|
|
3649
3671
|
title: L.label,
|
|
3650
3672
|
ref_for: !0
|
|
3651
3673
|
}, L.attr, {
|
|
3652
|
-
onClick: (ze) => L.func(x,
|
|
3674
|
+
onClick: (ze) => L.func(x, K, se, e.value)
|
|
3653
3675
|
}), {
|
|
3654
3676
|
default: E(() => [
|
|
3655
3677
|
Ie(Ce(L.label), 1)
|
|
3656
3678
|
]),
|
|
3657
3679
|
_: 2
|
|
3658
|
-
}, 1040, ["title", "onClick"])) : (m(),
|
|
3680
|
+
}, 1040, ["title", "onClick"])) : (m(), B(N(Ye), O({
|
|
3659
3681
|
key: 1,
|
|
3660
3682
|
title: L.label,
|
|
3661
3683
|
ref_for: !0
|
|
3662
3684
|
}, L.attr, {
|
|
3663
|
-
onClick: (ze) => L.func(x,
|
|
3685
|
+
onClick: (ze) => L.func(x, K, se, e.value)
|
|
3664
3686
|
}), null, 16, ["title", "onClick"]))
|
|
3665
3687
|
], !0) : be("", !0),
|
|
3666
3688
|
k(a.$slots, L.name + "-right", {
|
|
3667
3689
|
row: x,
|
|
3668
|
-
column:
|
|
3690
|
+
column: K,
|
|
3669
3691
|
index: se
|
|
3670
3692
|
}, void 0, !0)
|
|
3671
3693
|
], 64))), 256))
|
|
@@ -3676,7 +3698,7 @@ const Ma = /* @__PURE__ */ Xt(xa), Ta = { key: 0 }, Fa = { style: { display: "fl
|
|
|
3676
3698
|
}), 256)),
|
|
3677
3699
|
k(a.$slots, "control-right", {
|
|
3678
3700
|
row: x,
|
|
3679
|
-
column:
|
|
3701
|
+
column: K,
|
|
3680
3702
|
index: se
|
|
3681
3703
|
}, void 0, !0)
|
|
3682
3704
|
], !0)
|
|
@@ -3686,27 +3708,27 @@ const Ma = /* @__PURE__ */ Xt(xa), Ta = { key: 0 }, Fa = { style: { display: "fl
|
|
|
3686
3708
|
key: "1"
|
|
3687
3709
|
} : H.type != "selection" && H.type != "index" ? {
|
|
3688
3710
|
name: "default",
|
|
3689
|
-
fn: E(({ row: x, column:
|
|
3690
|
-
|
|
3711
|
+
fn: E(({ row: x, column: K, $index: se }) => [
|
|
3712
|
+
q(H, x, K, se) && se != -1 ? k(a.$slots, `${de}`, {
|
|
3691
3713
|
key: 0,
|
|
3692
3714
|
row: x,
|
|
3693
|
-
column:
|
|
3715
|
+
column: K,
|
|
3694
3716
|
index: se
|
|
3695
3717
|
}, () => {
|
|
3696
3718
|
var Ke;
|
|
3697
3719
|
return [
|
|
3698
|
-
(m(),
|
|
3720
|
+
(m(), B(Dt, {
|
|
3699
3721
|
modelValue: x[de],
|
|
3700
3722
|
"onUpdate:modelValue": (et) => x[de] = et,
|
|
3701
|
-
item: H == null ? void 0 : H.table(x,
|
|
3723
|
+
item: H == null ? void 0 : H.table(x, K, se),
|
|
3702
3724
|
ctrlKey: de,
|
|
3703
|
-
key: `${de}-${se} -${
|
|
3704
|
-
ctrlType: (Ke = H.table(x,
|
|
3725
|
+
key: `${de}-${se} -${Q.value}`,
|
|
3726
|
+
ctrlType: (Ke = H.table(x, K, se)) != null && Ke.type ? H.table(x, K, se).type : H.type,
|
|
3705
3727
|
model: e.value,
|
|
3706
3728
|
class: "g-ctrl-container",
|
|
3707
3729
|
t: "t",
|
|
3708
3730
|
formInfo: x
|
|
3709
|
-
},
|
|
3731
|
+
}, $e({ _: 2 }, [
|
|
3710
3732
|
X(a.$slots, (et, Qe) => ({
|
|
3711
3733
|
name: Qe,
|
|
3712
3734
|
fn: E((Ze) => [
|
|
@@ -3722,16 +3744,16 @@ const Ma = /* @__PURE__ */ Xt(xa), Ta = { key: 0 }, Fa = { style: { display: "fl
|
|
|
3722
3744
|
}, !0) : k(a.$slots, `${de}`, {
|
|
3723
3745
|
key: 1,
|
|
3724
3746
|
row: x,
|
|
3725
|
-
column:
|
|
3747
|
+
column: K,
|
|
3726
3748
|
index: se
|
|
3727
3749
|
}, () => [
|
|
3728
|
-
|
|
3750
|
+
Z("div", {
|
|
3729
3751
|
style: Ue([{ width: "100%", "text-overflow": "ellipsis", overflow: "hidden" }, H == null ? void 0 : H.style]),
|
|
3730
3752
|
innerHTML: oe(
|
|
3731
3753
|
H,
|
|
3732
|
-
|
|
3754
|
+
K.formatter(x, K, x[de], se)
|
|
3733
3755
|
)
|
|
3734
|
-
}, null, 12,
|
|
3756
|
+
}, null, 12, za)
|
|
3735
3757
|
], !0)
|
|
3736
3758
|
]),
|
|
3737
3759
|
key: "2"
|
|
@@ -3742,7 +3764,7 @@ const Ma = /* @__PURE__ */ Xt(xa), Ta = { key: 0 }, Fa = { style: { display: "fl
|
|
|
3742
3764
|
_: 3
|
|
3743
3765
|
}, 16, ["summary-method"]),
|
|
3744
3766
|
(gt = (yt = (ht = e.value) == null ? void 0 : ht.table) == null ? void 0 : yt.page) != null && gt.hidden ? be("", !0) : k(a.$slots, "page", { key: 0 }, () => [
|
|
3745
|
-
|
|
3767
|
+
le(Ne, O({
|
|
3746
3768
|
"page-size": e.value.table.page.pageSize,
|
|
3747
3769
|
"onUpdate:pageSize": r[11] || (r[11] = (H) => e.value.table.page.pageSize = H),
|
|
3748
3770
|
"current-page": e.value.table.page.currentPage,
|
|
@@ -3759,7 +3781,7 @@ const Ma = /* @__PURE__ */ Xt(xa), Ta = { key: 0 }, Fa = { style: { display: "fl
|
|
|
3759
3781
|
], 64);
|
|
3760
3782
|
};
|
|
3761
3783
|
}
|
|
3762
|
-
}), Pa = /* @__PURE__ */
|
|
3784
|
+
}), Pa = /* @__PURE__ */ ut(Na, [["__scopeId", "data-v-0b837d7b"]]), ja = { class: "g-tree-table" }, Wa = { class: "g-tree-container" }, Ga = { class: "g-tree-table-container" }, Xa = /* @__PURE__ */ Object.assign({
|
|
3763
3785
|
name: "g-tree-table",
|
|
3764
3786
|
inheritAttrs: !1
|
|
3765
3787
|
}, {
|
|
@@ -3768,75 +3790,75 @@ const Ma = /* @__PURE__ */ Xt(xa), Ta = { key: 0 }, Fa = { style: { display: "fl
|
|
|
3768
3790
|
modelValue: { required: !0 },
|
|
3769
3791
|
modelModifiers: {}
|
|
3770
3792
|
},
|
|
3771
|
-
emits: /* @__PURE__ */
|
|
3772
|
-
setup(o, { emit:
|
|
3773
|
-
var
|
|
3774
|
-
const t =
|
|
3775
|
-
typeof ((
|
|
3776
|
-
), h = ne(((Y = n == null ? void 0 : n.tree) == null ? void 0 : Y.search) === void 0 ? !0 : (R = n == null ? void 0 : n.tree) == null ? void 0 : R.search), f = ne({}), D = ne(""), c = ne(null), v = (V,
|
|
3777
|
-
var
|
|
3793
|
+
emits: /* @__PURE__ */ nt(["load"], ["update:modelValue"]),
|
|
3794
|
+
setup(o, { emit: d }) {
|
|
3795
|
+
var g, te, Y, R;
|
|
3796
|
+
const t = d, l = ot(o, "modelValue"), n = It(), e = ne(
|
|
3797
|
+
typeof ((g = n == null ? void 0 : n.tree) == null ? void 0 : g.width) == "number" ? `${n.tree.width}px` : ((te = n == null ? void 0 : n.tree) == null ? void 0 : te.width) || "180px"
|
|
3798
|
+
), h = ne(((Y = n == null ? void 0 : n.tree) == null ? void 0 : Y.search) === void 0 ? !0 : (R = n == null ? void 0 : n.tree) == null ? void 0 : R.search), f = ne({}), D = ne(""), c = ne(null), v = (V, Q) => {
|
|
3799
|
+
var me, ie;
|
|
3778
3800
|
if (!V) return !0;
|
|
3779
|
-
const
|
|
3780
|
-
return
|
|
3781
|
-
}, u = (V,
|
|
3782
|
-
t("load", f.value, V,
|
|
3783
|
-
},
|
|
3801
|
+
const ce = ((ie = (me = n.tree) == null ? void 0 : me.props) == null ? void 0 : ie.label) || "label";
|
|
3802
|
+
return Q[ce].includes(V);
|
|
3803
|
+
}, u = (V, Q) => {
|
|
3804
|
+
t("load", f.value, V, Q);
|
|
3805
|
+
}, i = (V) => {
|
|
3784
3806
|
f.value = V, l.value.table.load();
|
|
3785
3807
|
};
|
|
3786
|
-
return
|
|
3808
|
+
return hl(D, (V) => {
|
|
3787
3809
|
c.value.filter(V);
|
|
3788
|
-
}), (V,
|
|
3789
|
-
const
|
|
3790
|
-
return m(), U("div",
|
|
3791
|
-
|
|
3810
|
+
}), (V, Q) => {
|
|
3811
|
+
const ce = z("el-input"), me = z("el-tree"), ie = z("g-table");
|
|
3812
|
+
return m(), U("div", ja, [
|
|
3813
|
+
Z("div", {
|
|
3792
3814
|
class: "g-tree-left",
|
|
3793
3815
|
style: Ue({ width: e.value })
|
|
3794
3816
|
}, [
|
|
3795
|
-
h.value ? (m(),
|
|
3817
|
+
h.value ? (m(), B(ce, {
|
|
3796
3818
|
key: 0,
|
|
3797
3819
|
modelValue: D.value,
|
|
3798
|
-
"onUpdate:modelValue":
|
|
3820
|
+
"onUpdate:modelValue": Q[0] || (Q[0] = (fe) => D.value = fe),
|
|
3799
3821
|
style: { width: "100%", "box-sizing": "border-box", "margin-bottom": "10px" },
|
|
3800
3822
|
placeholder: "输入节点查询",
|
|
3801
3823
|
clearable: ""
|
|
3802
3824
|
}, null, 8, ["modelValue"])) : be("", !0),
|
|
3803
|
-
|
|
3804
|
-
|
|
3825
|
+
Z("div", Wa, [
|
|
3826
|
+
le(me, O({
|
|
3805
3827
|
style: { width: e.value },
|
|
3806
3828
|
"filter-node-method": v,
|
|
3807
3829
|
"expand-on-click-node": !1,
|
|
3808
3830
|
ref_key: "treeRef",
|
|
3809
3831
|
ref: c,
|
|
3810
|
-
onNodeClick:
|
|
3811
|
-
}, V.$attrs.tree),
|
|
3812
|
-
default: E(({ node:
|
|
3832
|
+
onNodeClick: i
|
|
3833
|
+
}, V.$attrs.tree), $e({
|
|
3834
|
+
default: E(({ node: fe, data: we }) => [
|
|
3813
3835
|
k(V.$slots, "tree", {
|
|
3814
|
-
node:
|
|
3815
|
-
data:
|
|
3836
|
+
node: fe,
|
|
3837
|
+
data: we
|
|
3816
3838
|
}, () => [
|
|
3817
|
-
|
|
3839
|
+
Z("span", null, Ce(fe.label), 1)
|
|
3818
3840
|
], !0)
|
|
3819
3841
|
]),
|
|
3820
3842
|
_: 2
|
|
3821
3843
|
}, [
|
|
3822
|
-
X(V.$slots, (
|
|
3823
|
-
name:
|
|
3844
|
+
X(V.$slots, (fe, we, Fe) => ({
|
|
3845
|
+
name: we,
|
|
3824
3846
|
fn: E((Se) => [
|
|
3825
|
-
k(V.$slots,
|
|
3847
|
+
k(V.$slots, we, { data: Se }, void 0, !0)
|
|
3826
3848
|
])
|
|
3827
3849
|
}))
|
|
3828
3850
|
]), 1040, ["style"])
|
|
3829
3851
|
])
|
|
3830
3852
|
], 4),
|
|
3831
|
-
|
|
3832
|
-
|
|
3853
|
+
Z("div", Ga, [
|
|
3854
|
+
le(ie, O({
|
|
3833
3855
|
modelValue: l.value,
|
|
3834
|
-
"onUpdate:modelValue":
|
|
3835
|
-
}, V.$attrs, { onLoad: u }),
|
|
3836
|
-
X(V.$slots, (
|
|
3837
|
-
name:
|
|
3856
|
+
"onUpdate:modelValue": Q[1] || (Q[1] = (fe) => l.value = fe)
|
|
3857
|
+
}, V.$attrs, { onLoad: u }), $e({ _: 2 }, [
|
|
3858
|
+
X(V.$slots, (fe, we, Fe) => ({
|
|
3859
|
+
name: we,
|
|
3838
3860
|
fn: E((Se) => [
|
|
3839
|
-
k(V.$slots,
|
|
3861
|
+
k(V.$slots, we, { data: Se }, void 0, !0)
|
|
3840
3862
|
])
|
|
3841
3863
|
}))
|
|
3842
3864
|
]), 1040, ["modelValue"])
|
|
@@ -3844,14 +3866,14 @@ const Ma = /* @__PURE__ */ Xt(xa), Ta = { key: 0 }, Fa = { style: { display: "fl
|
|
|
3844
3866
|
]);
|
|
3845
3867
|
};
|
|
3846
3868
|
}
|
|
3847
|
-
}),
|
|
3869
|
+
}), Qa = /* @__PURE__ */ ut(Xa, [["__scopeId", "data-v-c888e4fc"]]), Za = {
|
|
3848
3870
|
key: 0,
|
|
3849
3871
|
class: "op-group"
|
|
3850
|
-
},
|
|
3872
|
+
}, Ja = {
|
|
3851
3873
|
key: 1,
|
|
3852
3874
|
class: "op-items",
|
|
3853
3875
|
style: { width: "100%", height: "100%" }
|
|
3854
|
-
},
|
|
3876
|
+
}, Ka = ["title"], Yt = "100px", er = /* @__PURE__ */ Object.assign({ name: "g-select-option" }, {
|
|
3855
3877
|
__name: "g-select-option",
|
|
3856
3878
|
props: {
|
|
3857
3879
|
columns: {
|
|
@@ -3872,46 +3894,46 @@ const Ma = /* @__PURE__ */ Xt(xa), Ta = { key: 0 }, Fa = { style: { display: "fl
|
|
|
3872
3894
|
}
|
|
3873
3895
|
},
|
|
3874
3896
|
setup(o) {
|
|
3875
|
-
const
|
|
3876
|
-
return (t, l) =>
|
|
3877
|
-
(m(!0), U(
|
|
3878
|
-
style: Ue({ width: (n == null ? void 0 : n.width) ||
|
|
3897
|
+
const d = o;
|
|
3898
|
+
return (t, l) => d.title ? (m(), U("div", Za, [
|
|
3899
|
+
(m(!0), U(ae, null, X(d.columns, (n) => (m(), U("span", {
|
|
3900
|
+
style: Ue({ width: (n == null ? void 0 : n.width) || Yt, ...n == null ? void 0 : n.titleStyle, textAlign: (n == null ? void 0 : n.align) || "center" }),
|
|
3879
3901
|
key: n.key
|
|
3880
3902
|
}, [
|
|
3881
3903
|
k(t.$slots, `${o.t}-title-${n.key}`, { col: n }, () => [
|
|
3882
3904
|
Ie(Ce(n.label), 1)
|
|
3883
3905
|
], !0)
|
|
3884
3906
|
], 4))), 128))
|
|
3885
|
-
])) : (m(), U("div",
|
|
3886
|
-
(m(!0), U(
|
|
3887
|
-
style: Ue({ width: (n == null ? void 0 : n.width) ||
|
|
3907
|
+
])) : (m(), U("div", Ja, [
|
|
3908
|
+
(m(!0), U(ae, null, X(d.columns, (n) => (m(), U("span", {
|
|
3909
|
+
style: Ue({ width: (n == null ? void 0 : n.width) || Yt, textAlign: (n == null ? void 0 : n.align) || "center", ...n == null ? void 0 : n.style }),
|
|
3888
3910
|
key: n.key,
|
|
3889
3911
|
title: o.data[n.key]
|
|
3890
3912
|
}, [
|
|
3891
3913
|
k(t.$slots, `${o.t}-option-${n.key}`, { col: n }, () => [
|
|
3892
3914
|
Ie(Ce(o.data[n.key] ?? "-"), 1)
|
|
3893
3915
|
], !0)
|
|
3894
|
-
], 12,
|
|
3916
|
+
], 12, Ka))), 128))
|
|
3895
3917
|
]));
|
|
3896
3918
|
}
|
|
3897
|
-
}),
|
|
3898
|
-
let
|
|
3899
|
-
const
|
|
3900
|
-
install: (o,
|
|
3901
|
-
|
|
3919
|
+
}), tr = /* @__PURE__ */ ut(er, [["__scopeId", "data-v-c0ac6b77"]]), lr = Object.freeze({}), ll = [Pa, Ft, Qa, tr];
|
|
3920
|
+
let At = {};
|
|
3921
|
+
const mr = {
|
|
3922
|
+
install: (o, d = {}) => {
|
|
3923
|
+
At = Object.freeze({ ...lr, ...d }), ll.forEach((t) => {
|
|
3902
3924
|
o.component(t.name, t);
|
|
3903
|
-
}), o.provide("options",
|
|
3925
|
+
}), o.provide("options", At), o.config.globalProperties.$openModal = qt;
|
|
3904
3926
|
}
|
|
3905
|
-
},
|
|
3927
|
+
}, ar = (o) => ({ dialog: ol, drawer: ul })[o] || null, qt = (o = {}, d = "dialog") => {
|
|
3906
3928
|
if (typeof document > "u") return () => {
|
|
3907
3929
|
};
|
|
3908
3930
|
const t = document.createElement("div");
|
|
3909
3931
|
let l = () => {
|
|
3910
3932
|
};
|
|
3911
|
-
const n =
|
|
3933
|
+
const n = ar(d);
|
|
3912
3934
|
if (!n) return () => {
|
|
3913
3935
|
};
|
|
3914
|
-
const e = ne(!0), h =
|
|
3936
|
+
const e = ne(!0), h = yl({
|
|
3915
3937
|
setup() {
|
|
3916
3938
|
return l = () => {
|
|
3917
3939
|
e.value = !1, setTimeout(() => {
|
|
@@ -3919,7 +3941,7 @@ const pr = {
|
|
|
3919
3941
|
}, 300);
|
|
3920
3942
|
}, () => {
|
|
3921
3943
|
var f, D, c;
|
|
3922
|
-
return
|
|
3944
|
+
return Ee(n, {
|
|
3923
3945
|
modelValue: e.value,
|
|
3924
3946
|
"onUpdate:modelValue": (v) => e.value = v,
|
|
3925
3947
|
appendToBody: !0,
|
|
@@ -3940,11 +3962,11 @@ const pr = {
|
|
|
3940
3962
|
Ct();
|
|
3941
3963
|
}
|
|
3942
3964
|
});
|
|
3943
|
-
return
|
|
3965
|
+
return ll.forEach((f) => {
|
|
3944
3966
|
h.component(f.name, f);
|
|
3945
|
-
}), h.provide("options",
|
|
3967
|
+
}), h.provide("options", At), h.use(nl, { locale: Fl }), document.body.appendChild(t), h.mount(t), l;
|
|
3946
3968
|
};
|
|
3947
|
-
function
|
|
3969
|
+
function al(o, d = window.innerWidth) {
|
|
3948
3970
|
if (typeof o == "number")
|
|
3949
3971
|
return o;
|
|
3950
3972
|
if (o.endsWith("px"))
|
|
@@ -3955,9 +3977,9 @@ function ll(o, i = window.innerWidth) {
|
|
|
3955
3977
|
if (o.endsWith("vw"))
|
|
3956
3978
|
return l * parseFloat(o) / 100;
|
|
3957
3979
|
if (o.endsWith("%")) {
|
|
3958
|
-
if (typeof
|
|
3980
|
+
if (typeof d != "number")
|
|
3959
3981
|
throw new Error("Reference size is required to convert % to px");
|
|
3960
|
-
return
|
|
3982
|
+
return d * parseFloat(o) / 100;
|
|
3961
3983
|
}
|
|
3962
3984
|
if (o.startsWith("calc(") && o.endsWith(")")) {
|
|
3963
3985
|
let e = function(f) {
|
|
@@ -3966,44 +3988,44 @@ function ll(o, i = window.innerWidth) {
|
|
|
3966
3988
|
throw new Error("Invalid calc expression");
|
|
3967
3989
|
};
|
|
3968
3990
|
const n = o.slice(5, -1).trim();
|
|
3969
|
-
return e(n.replace(/([0-9.]+)([a-z%]+)/g, (f, D, c) =>
|
|
3991
|
+
return e(n.replace(/([0-9.]+)([a-z%]+)/g, (f, D, c) => al(D + c, d)));
|
|
3970
3992
|
}
|
|
3971
3993
|
throw new Error("Unsupported unit in value: " + o);
|
|
3972
3994
|
}
|
|
3973
|
-
const
|
|
3974
|
-
const
|
|
3995
|
+
const Oe = (...o) => {
|
|
3996
|
+
const d = {}, t = (l, n) => (Object.keys(n).forEach((e) => {
|
|
3975
3997
|
l[e] = typeof n[e] == "object" && !Array.isArray(n[e]) ? t(l[e] || {}, n[e]) : n[e];
|
|
3976
3998
|
}), l);
|
|
3977
|
-
return o.forEach((l = {}) => t(
|
|
3999
|
+
return o.forEach((l = {}) => t(d, l)), d;
|
|
3978
4000
|
};
|
|
3979
|
-
function Ge(o,
|
|
4001
|
+
function Ge(o, d = (t, l) => d(t, l)) {
|
|
3980
4002
|
const t = {};
|
|
3981
4003
|
for (const l in o)
|
|
3982
|
-
o.hasOwnProperty(l) &&
|
|
4004
|
+
o.hasOwnProperty(l) && d(l, o[l]) && (t[l] = o[l]);
|
|
3983
4005
|
return t;
|
|
3984
4006
|
}
|
|
3985
|
-
function
|
|
4007
|
+
function rr(o, d, t = "value", l = "label", n = "children") {
|
|
3986
4008
|
for (const e of o) {
|
|
3987
|
-
if (e[t] ===
|
|
4009
|
+
if (e[t] === d)
|
|
3988
4010
|
return e[l];
|
|
3989
4011
|
if (e[n] && e[n].length > 0) {
|
|
3990
|
-
const h =
|
|
4012
|
+
const h = rr(e[n], d, t, l, n);
|
|
3991
4013
|
if (h)
|
|
3992
4014
|
return h;
|
|
3993
4015
|
}
|
|
3994
4016
|
}
|
|
3995
4017
|
return null;
|
|
3996
4018
|
}
|
|
3997
|
-
function
|
|
4019
|
+
function Bt(o) {
|
|
3998
4020
|
if (!o || isNaN(o)) return "零";
|
|
3999
|
-
const
|
|
4021
|
+
const d = ["角", "分"], t = ["零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖"], l = [
|
|
4000
4022
|
["元", "万", "亿"],
|
|
4001
4023
|
["", "拾", "佰", "仟"]
|
|
4002
4024
|
], n = o < 0 ? "欠" : "";
|
|
4003
4025
|
o = Math.abs(o);
|
|
4004
4026
|
let e = "";
|
|
4005
|
-
for (let h = 0; h <
|
|
4006
|
-
e += (t[Math.floor(o * 10 * Math.pow(10, h)) % 10] +
|
|
4027
|
+
for (let h = 0; h < d.length; h++)
|
|
4028
|
+
e += (t[Math.floor(o * 10 * Math.pow(10, h)) % 10] + d[h]).replace(/零./, "");
|
|
4007
4029
|
e = e || "整", o = Math.floor(o);
|
|
4008
4030
|
for (let h = 0; h < l[0].length && o > 0; h++) {
|
|
4009
4031
|
let f = "";
|
|
@@ -4013,31 +4035,31 @@ function At(o) {
|
|
|
4013
4035
|
}
|
|
4014
4036
|
return n + e.replace(/(零.)*零元/, "元").replace(/(零.)+/g, "零").replace(/^整$/, "零元整");
|
|
4015
4037
|
}
|
|
4016
|
-
function
|
|
4038
|
+
function nr(o, d = 2, t = !1) {
|
|
4017
4039
|
let l = Number(o);
|
|
4018
4040
|
if (isNaN(l) || !isFinite(l))
|
|
4019
4041
|
return "0.00";
|
|
4020
4042
|
const n = l < 0;
|
|
4021
4043
|
l = Math.abs(l);
|
|
4022
|
-
let e = l.toFixed(
|
|
4044
|
+
let e = l.toFixed(d);
|
|
4023
4045
|
t && (e = e.replace(/\.?0+$/, ""));
|
|
4024
4046
|
const [h, f] = e.split("."), D = h.replace(/\B(?=(\d{3})+(?!\d))/g, ","), c = f ? `${D}.${f}` : D;
|
|
4025
4047
|
return n ? `-${c}` : c;
|
|
4026
4048
|
}
|
|
4027
|
-
function
|
|
4049
|
+
function or(o, d) {
|
|
4028
4050
|
let t = null;
|
|
4029
4051
|
return function(...l) {
|
|
4030
4052
|
t && clearTimeout(t), t = setTimeout(() => {
|
|
4031
4053
|
o.apply(this, l);
|
|
4032
|
-
},
|
|
4054
|
+
}, d);
|
|
4033
4055
|
};
|
|
4034
4056
|
}
|
|
4035
|
-
function
|
|
4057
|
+
function hr(o, d) {
|
|
4036
4058
|
let t = null;
|
|
4037
4059
|
return function(...l) {
|
|
4038
4060
|
t || (t = setTimeout(() => {
|
|
4039
4061
|
o.apply(this, l), t = null;
|
|
4040
|
-
},
|
|
4062
|
+
}, d));
|
|
4041
4063
|
};
|
|
4042
4064
|
}
|
|
4043
4065
|
const ke = {
|
|
@@ -4069,14 +4091,14 @@ const ke = {
|
|
|
4069
4091
|
TEXTAREA: "textarea",
|
|
4070
4092
|
TEL: "tel"
|
|
4071
4093
|
}, Ct = () => {
|
|
4072
|
-
|
|
4094
|
+
ft(() => {
|
|
4073
4095
|
const o = document.querySelector(".el-dialog");
|
|
4074
4096
|
if (!o || o.querySelector(".dialog-resize-handle"))
|
|
4075
4097
|
return;
|
|
4076
|
-
const
|
|
4077
|
-
o.appendChild(
|
|
4098
|
+
const d = ur();
|
|
4099
|
+
o.appendChild(d), sr(o), ir(o, d);
|
|
4078
4100
|
});
|
|
4079
|
-
},
|
|
4101
|
+
}, ur = () => {
|
|
4080
4102
|
const o = document.createElement("div");
|
|
4081
4103
|
return Object.assign(o.style, {
|
|
4082
4104
|
position: "absolute",
|
|
@@ -4088,7 +4110,7 @@ const ke = {
|
|
|
4088
4110
|
cursor: "nwse-resize",
|
|
4089
4111
|
zIndex: "999999999999"
|
|
4090
4112
|
}), o.className = "dialog-resize-handle", o;
|
|
4091
|
-
},
|
|
4113
|
+
}, sr = (o) => {
|
|
4092
4114
|
Object.assign(o.style, {
|
|
4093
4115
|
transition: "none",
|
|
4094
4116
|
minWidth: "300px",
|
|
@@ -4096,30 +4118,30 @@ const ke = {
|
|
|
4096
4118
|
resize: "none"
|
|
4097
4119
|
// 防止与原生resize冲突
|
|
4098
4120
|
});
|
|
4099
|
-
},
|
|
4121
|
+
}, ir = (o, d) => {
|
|
4100
4122
|
let t = !1, l, n, e, h;
|
|
4101
4123
|
const f = (v) => {
|
|
4102
4124
|
v.preventDefault(), t = !0, l = v.clientX, n = v.clientY, e = parseInt(document.defaultView.getComputedStyle(o).width), h = parseInt(document.defaultView.getComputedStyle(o).height), document.addEventListener("mousemove", D), document.addEventListener("mouseup", c);
|
|
4103
4125
|
}, D = (v) => {
|
|
4104
4126
|
if (!t) return;
|
|
4105
|
-
const u = Math.max(300, e + v.clientX - l),
|
|
4106
|
-
o.style.width = `${u}px`, o.style.height = `${
|
|
4127
|
+
const u = Math.max(300, e + v.clientX - l), i = Math.max(200, h + v.clientY - n);
|
|
4128
|
+
o.style.width = `${u}px`, o.style.height = `${i}px`;
|
|
4107
4129
|
}, c = () => {
|
|
4108
4130
|
t = !1, document.removeEventListener("mousemove", D), document.removeEventListener("mouseup", c);
|
|
4109
4131
|
};
|
|
4110
|
-
|
|
4132
|
+
d.addEventListener("mousedown", f);
|
|
4111
4133
|
};
|
|
4112
4134
|
export {
|
|
4113
4135
|
ke as CT,
|
|
4114
4136
|
Ct as bindResize,
|
|
4115
|
-
|
|
4116
|
-
|
|
4117
|
-
|
|
4137
|
+
al as convertToPx,
|
|
4138
|
+
or as debounce,
|
|
4139
|
+
mr as default,
|
|
4118
4140
|
Ge as filterObject,
|
|
4119
|
-
|
|
4120
|
-
|
|
4121
|
-
|
|
4122
|
-
|
|
4141
|
+
rr as findTreeLabelByValue,
|
|
4142
|
+
nr as formatAmount,
|
|
4143
|
+
Oe as mergeObjects,
|
|
4144
|
+
Bt as moneyToChinese,
|
|
4123
4145
|
qt as openModal,
|
|
4124
|
-
|
|
4146
|
+
hr as throttle
|
|
4125
4147
|
};
|