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