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