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