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