dmx-admin-ui 1.2.205 → 1.2.206
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/{editor-D1I1YxoR.js → editor-C343_YQy.js} +1 -1
- package/dist/{group-DJMTzFfu.js → group-BzWaDA4m.js} +2 -2
- package/dist/{group-table-CuvD2HpY.js → group-table-CGUZ4SxT.js} +2 -2
- package/dist/{group-tabs-D4FsSm5L.js → group-tabs-Dg-lIXam.js} +2 -2
- package/dist/{group-tabs-plus-DikkYQG1.js → group-tabs-plus-t6MzaVS3.js} +2 -2
- package/dist/{index-Ch2BX97e.js → index-DIJ9vj5t.js} +138 -137
- package/dist/index.js +1 -1
- package/dist/input-item-DFluwZQd.js +4 -0
- package/package.json +1 -1
- package/types/global.d.ts +1 -1
- package/dist/input-item-C-KhRAnN.js +0 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { resolveComponent as xr, openBlock as Ri, createElementBlock as wl, createVNode as ye, withCtx as le, createElementVNode as ie, createTextVNode as Ve, createBlock as Bl, toDisplayString as El, normalizeClass as to } from "vue";
|
|
2
|
-
import { u as Al, m as xl, _ as Fl } from "./index-
|
|
2
|
+
import { u as Al, m as xl, _ as Fl } from "./index-DIJ9vj5t.js";
|
|
3
3
|
var eo;
|
|
4
4
|
typeof global > "u" ? ("ActiveXObject" in window && console.error(`抱歉,wangEditor V5+ 版本开始,不在支持 IE 浏览器
|
|
5
5
|
Sorry, wangEditor V5+ versions do not support IE browser.`), Hi(), zi()) : global && (!((eo = global.navigator) === null || eo === void 0) && eo.userAgent.match("QQBrowser")) && (Hi(), zi());
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { resolveComponent as k, openBlock as s, createElementBlock as n, normalizeClass as p, createBlock as h, resolveDynamicComponent as v, normalizeProps as x, guardReactiveProps as V, withCtx as z, Fragment as f, renderList as g, createElementVNode as o, createCommentVNode as d, normalizeStyle as b, toDisplayString as u, createTextVNode as C, defineAsyncComponent as T } from "vue";
|
|
2
|
-
import { _ as j } from "./index-
|
|
2
|
+
import { _ as j } from "./index-DIJ9vj5t.js";
|
|
3
3
|
const O = {
|
|
4
4
|
name: "form-group",
|
|
5
5
|
components: {
|
|
6
|
-
inputItem: T(() => import("./input-item-
|
|
6
|
+
inputItem: T(() => import("./input-item-DFluwZQd.js"))
|
|
7
7
|
},
|
|
8
8
|
emits: ["change", "update:modelValue"],
|
|
9
9
|
props: {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { resolveComponent as f, openBlock as n, createElementBlock as o, createElementVNode as l, Fragment as a, renderList as c, normalizeStyle as w, createTextVNode as C, toDisplayString as h, createBlock as p, withCtx as g, createCommentVNode as y, resolveDynamicComponent as v, mergeProps as _, normalizeClass as j, defineAsyncComponent as z } from "vue";
|
|
2
|
-
import { _ as O } from "./index-
|
|
2
|
+
import { _ as O } from "./index-DIJ9vj5t.js";
|
|
3
3
|
const T = {
|
|
4
4
|
name: "form-group",
|
|
5
5
|
components: {
|
|
6
|
-
inputItem: z(() => import("./input-item-
|
|
6
|
+
inputItem: z(() => import("./input-item-DFluwZQd.js"))
|
|
7
7
|
},
|
|
8
8
|
emits: ["change", "update:modelValue"],
|
|
9
9
|
props: {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { resolveComponent as r, openBlock as i, createElementBlock as l, createVNode as k, withCtx as f, Fragment as _, renderList as b, createBlock as h, createElementVNode as o, normalizeStyle as V, toDisplayString as y, createCommentVNode as p, createTextVNode as T, defineAsyncComponent as j } from "vue";
|
|
2
|
-
import { _ as x } from "./index-
|
|
2
|
+
import { _ as x } from "./index-DIJ9vj5t.js";
|
|
3
3
|
const w = {
|
|
4
4
|
name: "group-tabs",
|
|
5
5
|
components: {
|
|
6
|
-
inputItem: j(() => import("./input-item-
|
|
6
|
+
inputItem: j(() => import("./input-item-DFluwZQd.js"))
|
|
7
7
|
},
|
|
8
8
|
emits: ["change", "update:modelValue"],
|
|
9
9
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { resolveComponent as d, openBlock as o, createElementBlock as a, createVNode as y, withCtx as u, createElementVNode as n, createBlock as f, createTextVNode as c, createCommentVNode as r, toDisplayString as b, Fragment as g, renderList as k, normalizeStyle as V, normalizeClass as j, defineAsyncComponent as z } from "vue";
|
|
2
|
-
import { _ as A } from "./index-
|
|
2
|
+
import { _ as A } from "./index-DIJ9vj5t.js";
|
|
3
3
|
function U(e, t) {
|
|
4
4
|
if (t <= 0 || t >= e.length) return [...e];
|
|
5
5
|
const i = [...e];
|
|
@@ -13,7 +13,7 @@ function O(e, t) {
|
|
|
13
13
|
const B = {
|
|
14
14
|
name: "group-tabs-plus",
|
|
15
15
|
components: {
|
|
16
|
-
inputItem: z(() => import("./input-item-
|
|
16
|
+
inputItem: z(() => import("./input-item-DFluwZQd.js"))
|
|
17
17
|
},
|
|
18
18
|
emits: ["change", "update:modelValue"],
|
|
19
19
|
props: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { reactive as
|
|
2
|
-
import { isBoolean as
|
|
3
|
-
import { ElInput as yn, ElInputNumber as Ul, ElSlider as Rl, ElSwitch as Ll, ElDatePicker as Gt, ElTimePicker as
|
|
1
|
+
import { reactive as ji, resolveComponent as b, openBlock as d, createElementBlock as m, createElementVNode as g, renderSlot as ve, createVNode as E, createCommentVNode as N, inject as Lt, unref as M, createTextVNode as z, toDisplayString as $, withCtx as v, Fragment as R, renderList as re, createBlock as O, defineComponent as Ne, ref as L, useTemplateRef as Yn, isRef as fn, normalizeStyle as Ce, normalizeClass as oe, mergeProps as Fe, resolveDynamicComponent as Vt, markRaw as Pe, watch as et, withDirectives as Ke, vShow as dt, getCurrentInstance as Hn, onBeforeUnmount as Bi, computed as Re, provide as Il, resolveDirective as Gn, createSlots as Mi, withModifiers as vt, onMounted as pt, useId as Nl, defineAsyncComponent as sn, Teleport as zl, nextTick as at, toHandlerKey as Pl, vModelText as jl, useSlots as Bl, useAttrs as Ml } from "vue";
|
|
2
|
+
import { isBoolean as fi, flattenObject as Fl } from "es-toolkit";
|
|
3
|
+
import { ElInput as yn, ElInputNumber as Ul, ElSlider as Rl, ElSwitch as Ll, ElDatePicker as Gt, ElTimePicker as pi, ElCheckboxGroup as Wl, ElRadioGroup as hi, ElSelect as ql, ElCheckbox as Yl, ElRadioButton as Hl, ElRadio as Gl, ElOption as Xl, ElMessage as _t, ElMessageBox as Fi, ElLoading as Jl } from "element-plus";
|
|
4
4
|
import { setCache as Kl, createAlova as Ui } from "alova";
|
|
5
5
|
import Zl from "number-precision";
|
|
6
6
|
import { useElementSize as vn } from "@vueuse/core";
|
|
@@ -22,7 +22,7 @@ function Ri(t) {
|
|
|
22
22
|
return t.includes(".") || t.includes("[") || t.includes("]");
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function Xn(t) {
|
|
26
26
|
return typeof t == "string" || typeof t == "symbol" ? t : Object.is(t?.valueOf?.(), -0) ? "-0" : String(t);
|
|
27
27
|
}
|
|
28
28
|
function Li(t) {
|
|
@@ -35,9 +35,9 @@ function Li(t) {
|
|
|
35
35
|
const n = String(t);
|
|
36
36
|
return n === "0" && Object.is(Number(t), -0) ? "-0" : n;
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function Jn(t) {
|
|
39
39
|
if (Array.isArray(t))
|
|
40
|
-
return t.map(
|
|
40
|
+
return t.map(Xn);
|
|
41
41
|
if (typeof t == "symbol")
|
|
42
42
|
return [t];
|
|
43
43
|
t = Li(t);
|
|
@@ -59,11 +59,11 @@ function bt(t, n, i) {
|
|
|
59
59
|
if (Ut(n))
|
|
60
60
|
return i;
|
|
61
61
|
const o = t[n];
|
|
62
|
-
return o === void 0 ? Ri(n) ? bt(t,
|
|
62
|
+
return o === void 0 ? Ri(n) ? bt(t, Jn(n), i) : i : o;
|
|
63
63
|
}
|
|
64
64
|
case "number":
|
|
65
65
|
case "symbol": {
|
|
66
|
-
typeof n == "number" && (n =
|
|
66
|
+
typeof n == "number" && (n = Xn(n));
|
|
67
67
|
const o = t[n];
|
|
68
68
|
return o === void 0 ? i : o;
|
|
69
69
|
}
|
|
@@ -88,10 +88,10 @@ function to(t, n, i) {
|
|
|
88
88
|
}
|
|
89
89
|
return o === void 0 ? i : o;
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function mi(t) {
|
|
92
92
|
return t !== null && (typeof t == "object" || typeof t == "function");
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function Kn(t) {
|
|
95
95
|
return t == null || typeof t != "object" && typeof t != "function";
|
|
96
96
|
}
|
|
97
97
|
function no(t, n) {
|
|
@@ -100,11 +100,11 @@ function no(t, n) {
|
|
|
100
100
|
function Wi(t) {
|
|
101
101
|
return Object.getOwnPropertySymbols(t).filter((n) => Object.prototype.propertyIsEnumerable.call(t, n));
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function Zn(t) {
|
|
104
104
|
return t == null ? t === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(t);
|
|
105
105
|
}
|
|
106
106
|
const io = "[object RegExp]", qi = "[object String]", Yi = "[object Number]", Hi = "[object Boolean]", Gi = "[object Arguments]", lo = "[object Symbol]", oo = "[object Date]", so = "[object Map]", ro = "[object Set]", ao = "[object Array]", uo = "[object ArrayBuffer]", Xi = "[object Object]", co = "[object DataView]", fo = "[object Uint8Array]", po = "[object Uint8ClampedArray]", ho = "[object Uint16Array]", mo = "[object Uint32Array]", go = "[object Int8Array]", yo = "[object Int16Array]", vo = "[object Int32Array]", _o = "[object Float32Array]", bo = "[object Float64Array]";
|
|
107
|
-
function
|
|
107
|
+
function Qn(t) {
|
|
108
108
|
return ArrayBuffer.isView(t) && !(t instanceof DataView);
|
|
109
109
|
}
|
|
110
110
|
function wo(t, n) {
|
|
@@ -114,7 +114,7 @@ function Ct(t, n, i, o = /* @__PURE__ */ new Map(), l = void 0) {
|
|
|
114
114
|
const s = l?.(t, n, i, o);
|
|
115
115
|
if (s !== void 0)
|
|
116
116
|
return s;
|
|
117
|
-
if (
|
|
117
|
+
if (Kn(t))
|
|
118
118
|
return t;
|
|
119
119
|
if (o.has(t))
|
|
120
120
|
return o.get(t);
|
|
@@ -147,7 +147,7 @@ function Ct(t, n, i, o = /* @__PURE__ */ new Map(), l = void 0) {
|
|
|
147
147
|
}
|
|
148
148
|
if (typeof Buffer < "u" && Buffer.isBuffer(t))
|
|
149
149
|
return t.subarray();
|
|
150
|
-
if (
|
|
150
|
+
if (Qn(t)) {
|
|
151
151
|
const r = new (Object.getPrototypeOf(t)).constructor(t.length);
|
|
152
152
|
o.set(t, r);
|
|
153
153
|
for (let a = 0; a < t.length; a++)
|
|
@@ -200,7 +200,7 @@ function Xe(t, n, i = t, o, l) {
|
|
|
200
200
|
}
|
|
201
201
|
}
|
|
202
202
|
function xo(t) {
|
|
203
|
-
switch (
|
|
203
|
+
switch (Zn(t)) {
|
|
204
204
|
case Gi:
|
|
205
205
|
case ao:
|
|
206
206
|
case uo:
|
|
@@ -231,7 +231,7 @@ function xo(t) {
|
|
|
231
231
|
function ko(t, n) {
|
|
232
232
|
return wo(t, (i, o, l, s) => {
|
|
233
233
|
if (typeof t == "object") {
|
|
234
|
-
if (
|
|
234
|
+
if (Zn(t) === Xi && typeof t.constructor != "function") {
|
|
235
235
|
const r = {};
|
|
236
236
|
return s.set(t, r), Xe(r, t, l, s), r;
|
|
237
237
|
}
|
|
@@ -252,7 +252,7 @@ function ko(t, n) {
|
|
|
252
252
|
}
|
|
253
253
|
});
|
|
254
254
|
}
|
|
255
|
-
function
|
|
255
|
+
function gi(t) {
|
|
256
256
|
return ko(t);
|
|
257
257
|
}
|
|
258
258
|
const So = /^(?:0|[1-9]\d*)$/;
|
|
@@ -267,11 +267,11 @@ function Ji(t, n = Number.MAX_SAFE_INTEGER) {
|
|
|
267
267
|
}
|
|
268
268
|
}
|
|
269
269
|
function Nn(t) {
|
|
270
|
-
return t !== null && typeof t == "object" &&
|
|
270
|
+
return t !== null && typeof t == "object" && Zn(t) === "[object Arguments]";
|
|
271
271
|
}
|
|
272
272
|
function Co(t, n) {
|
|
273
273
|
let i;
|
|
274
|
-
if (Array.isArray(n) ? i = n : typeof n == "string" && Ri(n) && t?.[n] == null ? i =
|
|
274
|
+
if (Array.isArray(n) ? i = n : typeof n == "string" && Ri(n) && t?.[n] == null ? i = Jn(n) : i = [n], i.length === 0)
|
|
275
275
|
return !1;
|
|
276
276
|
let o = t;
|
|
277
277
|
for (let l = 0; l < i.length; l++) {
|
|
@@ -300,14 +300,14 @@ const To = (t, n, i) => {
|
|
|
300
300
|
(!(Object.hasOwn(t, n) && no(o, i)) || i === void 0 && !(n in t)) && (t[n] = i);
|
|
301
301
|
};
|
|
302
302
|
function $o(t, n, i, o) {
|
|
303
|
-
if (t == null && !
|
|
303
|
+
if (t == null && !mi(t))
|
|
304
304
|
return t;
|
|
305
305
|
let l;
|
|
306
|
-
Ao(n, t) ? l = [n] : Array.isArray(n) ? l = n : l =
|
|
306
|
+
Ao(n, t) ? l = [n] : Array.isArray(n) ? l = n : l = Jn(n);
|
|
307
307
|
const s = i(bt(t, l));
|
|
308
308
|
let r = t;
|
|
309
309
|
for (let a = 0; a < l.length && r != null; a++) {
|
|
310
|
-
const c =
|
|
310
|
+
const c = Xn(l[a]);
|
|
311
311
|
if (Ut(c))
|
|
312
312
|
continue;
|
|
313
313
|
let u;
|
|
@@ -315,7 +315,7 @@ function $o(t, n, i, o) {
|
|
|
315
315
|
u = s;
|
|
316
316
|
else {
|
|
317
317
|
const f = r[c], h = o?.(f, c, t);
|
|
318
|
-
u = h !== void 0 ? h :
|
|
318
|
+
u = h !== void 0 ? h : mi(f) ? f : Ji(l[a + 1]) ? [] : {};
|
|
319
319
|
}
|
|
320
320
|
To(r, c, u), r = r[c];
|
|
321
321
|
}
|
|
@@ -328,7 +328,7 @@ function Et(t, n, i) {
|
|
|
328
328
|
function Io() {
|
|
329
329
|
}
|
|
330
330
|
function _n(t) {
|
|
331
|
-
return
|
|
331
|
+
return Qn(t);
|
|
332
332
|
}
|
|
333
333
|
function bn(t) {
|
|
334
334
|
if (typeof t != "object" || t == null)
|
|
@@ -345,9 +345,9 @@ function bn(t) {
|
|
|
345
345
|
return Object.getPrototypeOf(t) === n;
|
|
346
346
|
}
|
|
347
347
|
function No(t) {
|
|
348
|
-
if (
|
|
348
|
+
if (Kn(t))
|
|
349
349
|
return t;
|
|
350
|
-
if (Array.isArray(t) ||
|
|
350
|
+
if (Array.isArray(t) || Qn(t) || t instanceof ArrayBuffer || typeof SharedArrayBuffer < "u" && t instanceof SharedArrayBuffer)
|
|
351
351
|
return t.slice(0);
|
|
352
352
|
const n = Object.getPrototypeOf(t);
|
|
353
353
|
if (n == null)
|
|
@@ -383,7 +383,7 @@ function zo(t, ...n) {
|
|
|
383
383
|
return l;
|
|
384
384
|
}
|
|
385
385
|
function en(t, n, i, o) {
|
|
386
|
-
if (
|
|
386
|
+
if (Kn(t) && (t = Object(t)), n == null || typeof n != "object")
|
|
387
387
|
return t;
|
|
388
388
|
if (o.has(n))
|
|
389
389
|
return No(o.get(n));
|
|
@@ -398,7 +398,7 @@ function en(t, n, i, o) {
|
|
|
398
398
|
if (Ut(r))
|
|
399
399
|
continue;
|
|
400
400
|
let a = n[r], c = t[r];
|
|
401
|
-
if (Nn(a) && (a = { ...a }), Nn(c) && (c = { ...c }), typeof Buffer < "u" && Buffer.isBuffer(a) && (a =
|
|
401
|
+
if (Nn(a) && (a = { ...a }), Nn(c) && (c = { ...c }), typeof Buffer < "u" && Buffer.isBuffer(a) && (a = gi(a)), Array.isArray(a))
|
|
402
402
|
if (Array.isArray(c)) {
|
|
403
403
|
const f = [], h = Reflect.ownKeys(c);
|
|
404
404
|
for (let y = 0; y < h.length; y++) {
|
|
@@ -414,11 +414,11 @@ function en(t, n, i, o) {
|
|
|
414
414
|
} else
|
|
415
415
|
c = [];
|
|
416
416
|
const u = i(c, a, r, t, n, o);
|
|
417
|
-
u !== void 0 ? t[r] = u : Array.isArray(a) || zn(c) && zn(a) && (bn(c) || bn(a) || _n(c) || _n(a)) ? t[r] = en(c, a, i, o) : c == null && bn(a) ? t[r] = en({}, a, i, o) : c == null && _n(a) ? t[r] =
|
|
417
|
+
u !== void 0 ? t[r] = u : Array.isArray(a) || zn(c) && zn(a) && (bn(c) || bn(a) || _n(c) || _n(a)) ? t[r] = en(c, a, i, o) : c == null && bn(a) ? t[r] = en({}, a, i, o) : c == null && _n(a) ? t[r] = gi(a) : (c === void 0 || a !== void 0) && (t[r] = a);
|
|
418
418
|
}
|
|
419
419
|
return t;
|
|
420
420
|
}
|
|
421
|
-
function
|
|
421
|
+
function ei(t, ...n) {
|
|
422
422
|
return zo(t, ...n, Io);
|
|
423
423
|
}
|
|
424
424
|
const Po = (t, n = "pid", i = "id") => {
|
|
@@ -449,8 +449,8 @@ const Po = (t, n = "pid", i = "id") => {
|
|
|
449
449
|
s[u].pid ? s[u].treePid = r(s[u].id, []) : s[u].treePid = [], s[u]._child = o[s[u].id] ?? [], s[u]._isParent = !!s[u]._child.length, s[u]._childs = a(s[u].id, []);
|
|
450
450
|
return s;
|
|
451
451
|
};
|
|
452
|
-
|
|
453
|
-
|
|
452
|
+
ji({ table: {}, limit: 10, page: 1, pageSizes: [], tree: !1 });
|
|
453
|
+
ji({ limit: 10, page: 1 });
|
|
454
454
|
function jo(t) {
|
|
455
455
|
const n = {
|
|
456
456
|
title: "数据列表",
|
|
@@ -648,7 +648,7 @@ const Wo = /* @__PURE__ */ ee(Fo, [["render", Lo]]), qo = {
|
|
|
648
648
|
}, Xo = { class: "overflow-hidden" }, Jo = { class: "dialog-footer" }, Ko = /* @__PURE__ */ Ne({
|
|
649
649
|
__name: "tableDialog",
|
|
650
650
|
setup(t, { expose: n }) {
|
|
651
|
-
const i = Lt("table"), o = L(!1), l = L({}), s = L($config?.form?.btnText ?? "提交"), r = L(0), a =
|
|
651
|
+
const i = Lt("table"), o = L(!1), l = L({}), s = L($config?.form?.btnText ?? "提交"), r = L(0), a = Yn("formRef"), c = () => {
|
|
652
652
|
i.rowsIndex = -1;
|
|
653
653
|
};
|
|
654
654
|
function u(y) {
|
|
@@ -967,8 +967,8 @@ const Ki = /* @__PURE__ */ ee(as, [["render", ms]]), gs = {
|
|
|
967
967
|
methods: {
|
|
968
968
|
calculateSwitchProps() {
|
|
969
969
|
!this.init.cols && [0, 1, !0, !1].indexOf(this.value) > -1 ? this.switchProps = {
|
|
970
|
-
inactiveValue: this.init.cols?.[0] ?? (
|
|
971
|
-
activeValue: this.init.cols?.[1] ?? (
|
|
970
|
+
inactiveValue: this.init.cols?.[0] ?? (fi(this.value) ? !1 : 0),
|
|
971
|
+
activeValue: this.init.cols?.[1] ?? (fi(this.value) ? !0 : 1),
|
|
972
972
|
inactiveText: this.init.cols?.[2] ?? "否",
|
|
973
973
|
activeText: this.init.cols?.[3] ?? "是",
|
|
974
974
|
inlinePrompt: !0,
|
|
@@ -1588,7 +1588,7 @@ const Zi = /* @__PURE__ */ ee(Us, [["render", qs]]), wn = {
|
|
|
1588
1588
|
H.indexOf(".") > -1 ? Et(T, H, W) : T[H] = W;
|
|
1589
1589
|
}
|
|
1590
1590
|
return T;
|
|
1591
|
-
}, l = i, s = t, { proxy: r } =
|
|
1591
|
+
}, l = i, s = t, { proxy: r } = Hn(), a = r.$route.path, c = Object.keys(r.$slots).filter((_) => ["title", "footer"].indexOf(_) === -1 && _.indexOf("form.") === -1), u = jo(s.init);
|
|
1592
1592
|
let {
|
|
1593
1593
|
url: f = "",
|
|
1594
1594
|
title: h,
|
|
@@ -1634,7 +1634,7 @@ const Zi = /* @__PURE__ */ ee(Us, [["render", qs]]), wn = {
|
|
|
1634
1634
|
}
|
|
1635
1635
|
I && (ae.value = I[K.value].where), p = L(p);
|
|
1636
1636
|
const qe = L(-1), we = async (_ = "init", T = !1) => {
|
|
1637
|
-
_ === "updateTable" && await
|
|
1637
|
+
_ === "updateTable" && await ai(), de.value = !0;
|
|
1638
1638
|
const H = { ...ae.value, ...me.value, ...P.value }, { data: W, count: ue, msg: ke } = await Bo({ where: H, page: V.page, limit: V.limit, sort: p.value, data: u.data, url: f, cache: D, cellFmt: El, pk: w, tree: u.tree });
|
|
1639
1639
|
if (y && y({ data: W, count: ue, msg: ke }), ke)
|
|
1640
1640
|
return de.value = !1, De.value = ke;
|
|
@@ -1681,9 +1681,9 @@ const Zi = /* @__PURE__ */ ee(Us, [["render", qs]]), wn = {
|
|
|
1681
1681
|
Ye[st] = ne.value[T][st];
|
|
1682
1682
|
}), Ye[w] = ne.value[T][w], Ye[W] = H.valueformat ? H.valueformat(_.value) : _.value, typeof ke == "function")
|
|
1683
1683
|
return ke(Ye, T);
|
|
1684
|
-
let
|
|
1684
|
+
let di = $loading("修改中");
|
|
1685
1685
|
$req.post(ke, o(Ye)).then((st) => {
|
|
1686
|
-
|
|
1686
|
+
di.close(), st.code == 0 ? (ne.value[T] = Et(ne.value[T], W, _.value), $msg.success("修改成功"), u.apiSuccess && u.apiSuccess("cellEdit", T, Ye), u.editUpdateTable && we("updateTable")) : (ne.value[T] = Et(ne.value[T], W, ue), $msg.error(st.msg));
|
|
1687
1687
|
});
|
|
1688
1688
|
}, xe = L([]), Cl = (_) => {
|
|
1689
1689
|
const T = ne.value[_].treePid, H = xe.value;
|
|
@@ -1695,7 +1695,7 @@ const Zi = /* @__PURE__ */ ee(Us, [["render", qs]]), wn = {
|
|
|
1695
1695
|
return;
|
|
1696
1696
|
const T = ne.value[_].id, H = xe.value.indexOf(T);
|
|
1697
1697
|
H > -1 ? xe.value.splice(H, 1) : xe.value.push(T);
|
|
1698
|
-
}, ot = L(),
|
|
1698
|
+
}, ot = L(), ri = L(), El = {};
|
|
1699
1699
|
if (u.cols || (u.cols = []), u.cols.forEach((_) => {
|
|
1700
1700
|
_.type == "checkbox" && !_.width && (_.width = 40);
|
|
1701
1701
|
}), A && A.map((_) => {
|
|
@@ -1729,7 +1729,7 @@ const Zi = /* @__PURE__ */ ee(Us, [["render", qs]]), wn = {
|
|
|
1729
1729
|
});
|
|
1730
1730
|
}
|
|
1731
1731
|
Vl();
|
|
1732
|
-
async function
|
|
1732
|
+
async function ai(_) {
|
|
1733
1733
|
const T = Object.keys(wt);
|
|
1734
1734
|
if (T?.length)
|
|
1735
1735
|
for (let H = 0; H < T.length; H++) {
|
|
@@ -1740,7 +1740,7 @@ const Zi = /* @__PURE__ */ ee(Us, [["render", qs]]), wn = {
|
|
|
1740
1740
|
}), _ && H === T.length - 1 && (ot.value = u.search, we());
|
|
1741
1741
|
}
|
|
1742
1742
|
}
|
|
1743
|
-
Object.keys(wt)?.length ?
|
|
1743
|
+
Object.keys(wt)?.length ? ai(!0) : (ot.value = u.search, we());
|
|
1744
1744
|
const mn = L({}), ht = (_, T, H) => {
|
|
1745
1745
|
H.cols.forEach((W) => {
|
|
1746
1746
|
if (W.slot && typeof W.slot != "function") {
|
|
@@ -1758,7 +1758,7 @@ const Zi = /* @__PURE__ */ ee(Us, [["render", qs]]), wn = {
|
|
|
1758
1758
|
const { res: T, data: H } = _;
|
|
1759
1759
|
G.value.close();
|
|
1760
1760
|
const W = mn.value, ue = ne.value;
|
|
1761
|
-
T.code == 0 && (W.form.success ? W.form.success(H, T.data) : u.apiSuccess && typeof u.apiSuccess == "function" && u.apiSuccess("dialogSubmit", H), qe.value > -1 && !u.tree && !W.form.updateTable ? ue[qe.value] =
|
|
1761
|
+
T.code == 0 && (W.form.success ? W.form.success(H, T.data) : u.apiSuccess && typeof u.apiSuccess == "function" && u.apiSuccess("dialogSubmit", H), qe.value > -1 && !u.tree && !W.form.updateTable ? ue[qe.value] = ei(ue[qe.value], H, { ROW_KEY: Math.random() }) : u.refresh !== !1 && we("updateTable"), qe.value = -1);
|
|
1762
1762
|
}, Tl = async (_) => {
|
|
1763
1763
|
if (_.confirm) {
|
|
1764
1764
|
let T = _.confirm;
|
|
@@ -1809,8 +1809,8 @@ const Zi = /* @__PURE__ */ ee(Us, [["render", qs]]), wn = {
|
|
|
1809
1809
|
return ht(ue.data, T, ue.form);
|
|
1810
1810
|
ht(W[T], T, ue);
|
|
1811
1811
|
} else typeof _.action == "object" ? ht(W[T], T, _.action) : typeof _.action == "function" && _.action(W[T], T);
|
|
1812
|
-
},
|
|
1813
|
-
|
|
1812
|
+
}, ui = L(!1), $l = (_ = !0) => {
|
|
1813
|
+
ui.value = _;
|
|
1814
1814
|
};
|
|
1815
1815
|
et(
|
|
1816
1816
|
() => r.$route.query,
|
|
@@ -1818,11 +1818,11 @@ const Zi = /* @__PURE__ */ ee(Us, [["render", qs]]), wn = {
|
|
|
1818
1818
|
const T = r.$route.path;
|
|
1819
1819
|
T != a || !ot.value || (ot.value = {
|
|
1820
1820
|
...ot.value,
|
|
1821
|
-
spread:
|
|
1821
|
+
spread: ri.value?.spread
|
|
1822
1822
|
}, P.value = $go.query(_, "where"), V.page = wn.table[T + "_page"] || 1, k.value++, we());
|
|
1823
1823
|
}
|
|
1824
1824
|
);
|
|
1825
|
-
const
|
|
1825
|
+
const ci = {
|
|
1826
1826
|
getData: be,
|
|
1827
1827
|
search: We,
|
|
1828
1828
|
init: u,
|
|
@@ -1849,8 +1849,8 @@ const Zi = /* @__PURE__ */ ee(Us, [["render", qs]]), wn = {
|
|
|
1849
1849
|
uniApi: X,
|
|
1850
1850
|
pk: w
|
|
1851
1851
|
};
|
|
1852
|
-
return Il("table",
|
|
1853
|
-
const H = b("el-empty"), W =
|
|
1852
|
+
return Il("table", ci), n(ci), (_, T) => {
|
|
1853
|
+
const H = b("el-empty"), W = Gn("loading");
|
|
1854
1854
|
return d(), m(R, null, [
|
|
1855
1855
|
E(Ko, {
|
|
1856
1856
|
ref_key: "dialogRef",
|
|
@@ -1861,7 +1861,7 @@ const Zi = /* @__PURE__ */ ee(Us, [["render", qs]]), wn = {
|
|
|
1861
1861
|
M(u).search && !M(ot) ? (d(), m("div", Hs)) : N("", !0),
|
|
1862
1862
|
M(ot) ? (d(), O(Zi, {
|
|
1863
1863
|
ref_key: "searchRef",
|
|
1864
|
-
ref:
|
|
1864
|
+
ref: ri,
|
|
1865
1865
|
key: M(k),
|
|
1866
1866
|
init: M(ot),
|
|
1867
1867
|
data: M(P),
|
|
@@ -1911,7 +1911,7 @@ const Zi = /* @__PURE__ */ ee(Us, [["render", qs]]), wn = {
|
|
|
1911
1911
|
V.page || _.$slots.footer ? (d(), O(Wo, {
|
|
1912
1912
|
key: 4,
|
|
1913
1913
|
onChange: ce,
|
|
1914
|
-
disabled: M(
|
|
1914
|
+
disabled: M(ui),
|
|
1915
1915
|
count: M(_e),
|
|
1916
1916
|
init: { page: M(u).page, limit: M(u).limit, pageSizes: M(u).pageSizes }
|
|
1917
1917
|
}, {
|
|
@@ -2167,7 +2167,7 @@ function Qi(t) {
|
|
|
2167
2167
|
function pr(t) {
|
|
2168
2168
|
return t > 1024 ? t / 1024 > 1024 ? t / (1024 * 1024) > 1024 ? (t / (1024 * 1024 * 1024)).toFixed(2) + "GB" : (t / (1024 * 1024)).toFixed(2) + "MB" : (t / 1024).toFixed(2) + "KB" : t.toFixed(2) + "B";
|
|
2169
2169
|
}
|
|
2170
|
-
const
|
|
2170
|
+
const yi = {}, hr = {
|
|
2171
2171
|
props: {
|
|
2172
2172
|
accept: "",
|
|
2173
2173
|
type: "",
|
|
@@ -2223,8 +2223,8 @@ const gi = {}, hr = {
|
|
|
2223
2223
|
onUploadProgress(t, n) {
|
|
2224
2224
|
let i = "default";
|
|
2225
2225
|
n.get && (i = n.get("uid") + "-" + n.get("chunk"));
|
|
2226
|
-
let o =
|
|
2227
|
-
this.loadedSize = this.loadedSize + t.loaded - o,
|
|
2226
|
+
let o = yi[i] || 0;
|
|
2227
|
+
this.loadedSize = this.loadedSize + t.loaded - o, yi[i] = t.loaded, this.progress = parseInt(this.loadedSize / this.totalSize * 100), this.progress = this.progress > 100 ? 100 : this.progress;
|
|
2228
2228
|
},
|
|
2229
2229
|
async singleUpload(t) {
|
|
2230
2230
|
this.totalSize = t.size, this.showProgress = !0;
|
|
@@ -2409,7 +2409,7 @@ const el = /* @__PURE__ */ ee(hr, [["render", _r]]), br = {
|
|
|
2409
2409
|
class: "tool"
|
|
2410
2410
|
}, Or = ["onClick"], Vr = ["onClick"];
|
|
2411
2411
|
function Ar(t, n, i, o, l, s) {
|
|
2412
|
-
const r = b("el-pagination"), a = b("el-tag"), c = b("el-scrollbar"), u =
|
|
2412
|
+
const r = b("el-pagination"), a = b("el-tag"), c = b("el-scrollbar"), u = Gn("loading");
|
|
2413
2413
|
return d(), m("div", wr, [
|
|
2414
2414
|
g("div", xr, [
|
|
2415
2415
|
n[2] || (n[2] = g("span", { class: "flex items-center" }, [
|
|
@@ -2912,8 +2912,8 @@ function la(t, n, i, o, l, s) {
|
|
|
2912
2912
|
}, null, 8, ["url-list"])) : N("", !0)
|
|
2913
2913
|
], 64);
|
|
2914
2914
|
}
|
|
2915
|
-
const
|
|
2916
|
-
components: { imgBox:
|
|
2915
|
+
const ti = /* @__PURE__ */ ee($r, [["render", la], ["__scopeId", "data-v-c70eef45"]]), oa = {
|
|
2916
|
+
components: { imgBox: ti },
|
|
2917
2917
|
props: {
|
|
2918
2918
|
size: {
|
|
2919
2919
|
type: [Number, String],
|
|
@@ -3067,7 +3067,7 @@ function da(t, n, i, o, l, s) {
|
|
|
3067
3067
|
])
|
|
3068
3068
|
], 64);
|
|
3069
3069
|
}
|
|
3070
|
-
const
|
|
3070
|
+
const vi = /* @__PURE__ */ ee(oa, [["render", da], ["__scopeId", "data-v-5287d6c2"]]), fa = { class: "input-button" }, ni = /* @__PURE__ */ Ne({
|
|
3071
3071
|
__name: "input-button",
|
|
3072
3072
|
props: {
|
|
3073
3073
|
btn: { default: () => ({}) },
|
|
@@ -3657,7 +3657,7 @@ function La(t, n, i, o, l, s) {
|
|
|
3657
3657
|
const Wa = /* @__PURE__ */ ee(Fa, [["render", La]]), qa = {
|
|
3658
3658
|
emits: ["update:modelValue", "change"],
|
|
3659
3659
|
components: {
|
|
3660
|
-
inputButton:
|
|
3660
|
+
inputButton: ni,
|
|
3661
3661
|
urlBox: Wa
|
|
3662
3662
|
},
|
|
3663
3663
|
props: {
|
|
@@ -3793,7 +3793,7 @@ function Xa(t, n, i, o, l, s) {
|
|
|
3793
3793
|
], 64);
|
|
3794
3794
|
}
|
|
3795
3795
|
const Ja = /* @__PURE__ */ ee(qa, [["render", Xa]]), Ka = {
|
|
3796
|
-
components: { mediaBox:
|
|
3796
|
+
components: { mediaBox: ti, BigUpload: el },
|
|
3797
3797
|
props: {
|
|
3798
3798
|
type: String,
|
|
3799
3799
|
modelValue: String,
|
|
@@ -4496,7 +4496,7 @@ function Bu(t, n, i, o, l, s) {
|
|
|
4496
4496
|
}
|
|
4497
4497
|
const tl = /* @__PURE__ */ ee(Ou, [["render", Bu]]), Mu = {
|
|
4498
4498
|
emits: ["change", "update:modelValue"],
|
|
4499
|
-
components: { imgBox:
|
|
4499
|
+
components: { imgBox: ti },
|
|
4500
4500
|
props: {
|
|
4501
4501
|
modelValue: {
|
|
4502
4502
|
type: [Array, Object],
|
|
@@ -4693,19 +4693,20 @@ const nl = /* @__PURE__ */ ee(Mu, [["render", Ku], ["__scopeId", "data-v-5ffee18
|
|
|
4693
4693
|
url: {},
|
|
4694
4694
|
disabled: { type: Boolean },
|
|
4695
4695
|
level: { default: 0 },
|
|
4696
|
+
size: {},
|
|
4696
4697
|
props: { default: () => ({}) },
|
|
4697
4698
|
placeholder: { default: "选择" }
|
|
4698
4699
|
},
|
|
4699
4700
|
emits: ["update:modelValue"],
|
|
4700
4701
|
setup(t, { emit: n }) {
|
|
4701
|
-
const i = t, o = n, l =
|
|
4702
|
+
const i = t, o = n, l = Yn("cascaderRef"), s = L([]), r = L([]), a = L({});
|
|
4702
4703
|
function c(p) {
|
|
4703
4704
|
return /^\d+(\.\d+)?$/.test(p) ? Number(p) : p;
|
|
4704
4705
|
}
|
|
4705
4706
|
function u() {
|
|
4706
4707
|
let p;
|
|
4707
4708
|
const w = i.modelValue, S = i.props || {};
|
|
4708
|
-
if ((S.emitPath || S.multiple) && w) {
|
|
4709
|
+
if ((S.emitPath || S.multiple) && !Array.isArray(w)) {
|
|
4709
4710
|
p = (w + "").split(",");
|
|
4710
4711
|
for (let A = 0; A < p.length; A++)
|
|
4711
4712
|
p[A] = c(p[A]);
|
|
@@ -4749,7 +4750,7 @@ const nl = /* @__PURE__ */ ee(Mu, [["render", Ku], ["__scopeId", "data-v-5ffee18
|
|
|
4749
4750
|
}), w;
|
|
4750
4751
|
}
|
|
4751
4752
|
function y(p) {
|
|
4752
|
-
p && p.constructor == Array ? p = Array.from(new Set([].concat(...p))) : p = p || 0, o("update:modelValue", p), a.value.checkStrictly && !a.value.multiple && l.value?.togglePopperVisible();
|
|
4753
|
+
console.log(p), p && p.constructor == Array ? p = Array.from(new Set([].concat(...p))) : p = p || 0, o("update:modelValue", p), a.value.checkStrictly && !a.value.multiple && l.value?.togglePopperVisible(!1);
|
|
4753
4754
|
}
|
|
4754
4755
|
return pt(() => {
|
|
4755
4756
|
if (i.url) {
|
|
@@ -5186,7 +5187,7 @@ const ll = /* @__PURE__ */ ee(Zu, [["render", Qu]]), ec = { class: "a-color-pick
|
|
|
5186
5187
|
},
|
|
5187
5188
|
emits: ["change", "update:modelValue", "relatedUpdate"],
|
|
5188
5189
|
setup(t, { expose: n, emit: i }) {
|
|
5189
|
-
const o = sn(() => import("./editor-
|
|
5190
|
+
const o = sn(() => import("./editor-C343_YQy.js")), l = t, s = i, r = (k) => k ? Array.isArray(k) ? typeof k[0] == "object" ? k : k.map((P, G) => ({
|
|
5190
5191
|
label: P,
|
|
5191
5192
|
value: G
|
|
5192
5193
|
})) : typeof k == "object" ? Object.keys(k).map((P) => ({
|
|
@@ -5201,7 +5202,7 @@ const ll = /* @__PURE__ */ ee(Zu, [["render", Qu]]), ec = { class: "a-color-pick
|
|
|
5201
5202
|
renderError(k, P) {
|
|
5202
5203
|
return k("pre", { style: { color: "red" } }, P.stack);
|
|
5203
5204
|
}
|
|
5204
|
-
}, c = (k) => sn(k), u = c(() => import("./group-tabs-plus-
|
|
5205
|
+
}, c = (k) => sn(k), u = c(() => import("./group-tabs-plus-t6MzaVS3.js")), f = c(() => import("./group-tabs-Dg-lIXam.js")), h = c(() => import("./group-table-CGUZ4SxT.js")), y = c(() => import("./group-BzWaDA4m.js")), p = {
|
|
5205
5206
|
media: au,
|
|
5206
5207
|
slot: a,
|
|
5207
5208
|
"input-select": rr,
|
|
@@ -5245,7 +5246,7 @@ const ll = /* @__PURE__ */ ee(Zu, [["render", Qu]]), ec = { class: "a-color-pick
|
|
|
5245
5246
|
},
|
|
5246
5247
|
// 单选框
|
|
5247
5248
|
radio: {
|
|
5248
|
-
component:
|
|
5249
|
+
component: hi,
|
|
5249
5250
|
props: () => ({}),
|
|
5250
5251
|
children: (k, P) => P.radioCols.map((G) => ({
|
|
5251
5252
|
component: Pe(Gl),
|
|
@@ -5257,7 +5258,7 @@ const ll = /* @__PURE__ */ ee(Zu, [["render", Qu]]), ec = { class: "a-color-pick
|
|
|
5257
5258
|
},
|
|
5258
5259
|
// 按钮式单选框
|
|
5259
5260
|
"radio-button": {
|
|
5260
|
-
component:
|
|
5261
|
+
component: hi,
|
|
5261
5262
|
props: () => ({}),
|
|
5262
5263
|
children: (k, P) => P.radioCols.map((G) => ({
|
|
5263
5264
|
component: Pe(Hl),
|
|
@@ -5281,7 +5282,7 @@ const ll = /* @__PURE__ */ ee(Zu, [["render", Qu]]), ec = { class: "a-color-pick
|
|
|
5281
5282
|
},
|
|
5282
5283
|
// 图片上传
|
|
5283
5284
|
imgs: {
|
|
5284
|
-
component:
|
|
5285
|
+
component: vi,
|
|
5285
5286
|
props: (k) => ({
|
|
5286
5287
|
limit: k.limit,
|
|
5287
5288
|
cateId: k.cateId,
|
|
@@ -5289,7 +5290,7 @@ const ll = /* @__PURE__ */ ee(Zu, [["render", Qu]]), ec = { class: "a-color-pick
|
|
|
5289
5290
|
})
|
|
5290
5291
|
},
|
|
5291
5292
|
images: {
|
|
5292
|
-
component:
|
|
5293
|
+
component: vi,
|
|
5293
5294
|
props: (k) => ({
|
|
5294
5295
|
limit: k.limit,
|
|
5295
5296
|
"cate-id": k.cateId,
|
|
@@ -5353,7 +5354,7 @@ const ll = /* @__PURE__ */ ee(Zu, [["render", Qu]]), ec = { class: "a-color-pick
|
|
|
5353
5354
|
},
|
|
5354
5355
|
// 时间选择器
|
|
5355
5356
|
time: {
|
|
5356
|
-
component:
|
|
5357
|
+
component: pi,
|
|
5357
5358
|
props: (k) => ({
|
|
5358
5359
|
format: k.format || "HH:mm:ss",
|
|
5359
5360
|
valueFormat: k.valueFormat || "HH:mm:ss",
|
|
@@ -5362,7 +5363,7 @@ const ll = /* @__PURE__ */ ee(Zu, [["render", Qu]]), ec = { class: "a-color-pick
|
|
|
5362
5363
|
},
|
|
5363
5364
|
// 时间范围
|
|
5364
5365
|
times: {
|
|
5365
|
-
component:
|
|
5366
|
+
component: pi,
|
|
5366
5367
|
props: () => ({
|
|
5367
5368
|
"start-placeholder": "开始时间",
|
|
5368
5369
|
"end-placeholder": "结束时间",
|
|
@@ -5473,7 +5474,7 @@ const ll = /* @__PURE__ */ ee(Zu, [["render", Qu]]), ec = { class: "a-color-pick
|
|
|
5473
5474
|
},
|
|
5474
5475
|
// 带按钮的输入框
|
|
5475
5476
|
"input-button": {
|
|
5476
|
-
component:
|
|
5477
|
+
component: ni,
|
|
5477
5478
|
props: (k) => ({
|
|
5478
5479
|
btn: k.btn,
|
|
5479
5480
|
readonly: k.readonly,
|
|
@@ -5700,7 +5701,7 @@ const ll = /* @__PURE__ */ ee(Zu, [["render", Qu]]), ec = { class: "a-color-pick
|
|
|
5700
5701
|
X.indexOf(".") > -1 ? Et(j, X, x) : j[X] = x;
|
|
5701
5702
|
}
|
|
5702
5703
|
return j;
|
|
5703
|
-
}, l = t, s = i, r =
|
|
5704
|
+
}, l = t, s = i, r = Hn(), a = L(null), c = Yn("inputItemRefs"), u = L(!1), f = L("720px"), h = L(0), y = L({}), p = L(""), w = L(!0), S = L(0), A = L([]), I = L({}), D = L({}), V = L({}), J = L({}), Y = L({}), K = L({}), ae = L({}), me = (F, j) => typeof F != "object" || typeof j != "object" ? 0 : F.filter((X) => j.some((x) => x === X))?.length, de = (F, j = null) => {
|
|
5704
5705
|
let X = {};
|
|
5705
5706
|
typeof F == "object" ? X = F : X = { [F]: j };
|
|
5706
5707
|
for (const x in K.value) {
|
|
@@ -6129,7 +6130,7 @@ const bc = /* @__PURE__ */ ee(gc, [["render", _c], ["__scopeId", "data-v-31425e8
|
|
|
6129
6130
|
});
|
|
6130
6131
|
}
|
|
6131
6132
|
return (c, u) => {
|
|
6132
|
-
const f =
|
|
6133
|
+
const f = Gn("focus");
|
|
6133
6134
|
return d(), m("div", Fe({ class: "text-edit" }, {
|
|
6134
6135
|
[Pl(t.clickType)]: vt(r, ["stop"])
|
|
6135
6136
|
}), [
|
|
@@ -6421,7 +6422,7 @@ function nt() {
|
|
|
6421
6422
|
return t;
|
|
6422
6423
|
}, nt.apply(null, arguments);
|
|
6423
6424
|
}
|
|
6424
|
-
function
|
|
6425
|
+
function _i(t, n) {
|
|
6425
6426
|
var i = Object.keys(t);
|
|
6426
6427
|
if (Object.getOwnPropertySymbols) {
|
|
6427
6428
|
var o = Object.getOwnPropertySymbols(t);
|
|
@@ -6434,9 +6435,9 @@ function vi(t, n) {
|
|
|
6434
6435
|
function Qe(t) {
|
|
6435
6436
|
for (var n = 1; n < arguments.length; n++) {
|
|
6436
6437
|
var i = arguments[n] != null ? arguments[n] : {};
|
|
6437
|
-
n % 2 ?
|
|
6438
|
+
n % 2 ? _i(Object(i), !0).forEach(function(o) {
|
|
6438
6439
|
Lc(t, o, i[o]);
|
|
6439
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(i)) :
|
|
6440
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(i)) : _i(Object(i)).forEach(function(o) {
|
|
6440
6441
|
Object.defineProperty(t, o, Object.getOwnPropertyDescriptor(i, o));
|
|
6441
6442
|
});
|
|
6442
6443
|
}
|
|
@@ -6487,7 +6488,7 @@ function tt(t) {
|
|
|
6487
6488
|
if (typeof window < "u" && window.navigator)
|
|
6488
6489
|
return !!/* @__PURE__ */ navigator.userAgent.match(t);
|
|
6489
6490
|
}
|
|
6490
|
-
var it = tt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Wt = tt(/Edge/i),
|
|
6491
|
+
var it = tt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Wt = tt(/Edge/i), bi = tt(/firefox/i), Pt = tt(/safari/i) && !tt(/chrome/i) && !tt(/android/i), ii = tt(/iP(ad|od|hone)/i), al = tt(/chrome/i) && tt(/android/i), ul = {
|
|
6491
6492
|
capture: !1,
|
|
6492
6493
|
passive: !1
|
|
6493
6494
|
};
|
|
@@ -6527,14 +6528,14 @@ function Je(t, n, i, o) {
|
|
|
6527
6528
|
}
|
|
6528
6529
|
return null;
|
|
6529
6530
|
}
|
|
6530
|
-
var
|
|
6531
|
+
var wi = /\s+/g;
|
|
6531
6532
|
function Be(t, n, i) {
|
|
6532
6533
|
if (t && n)
|
|
6533
6534
|
if (t.classList)
|
|
6534
6535
|
t.classList[i ? "add" : "remove"](n);
|
|
6535
6536
|
else {
|
|
6536
|
-
var o = (" " + t.className + " ").replace(
|
|
6537
|
-
t.className = (o + (i ? " " + n : "")).replace(
|
|
6537
|
+
var o = (" " + t.className + " ").replace(wi, " ").replace(" " + n + " ", " ");
|
|
6538
|
+
t.className = (o + (i ? " " + n : "")).replace(wi, " ");
|
|
6538
6539
|
}
|
|
6539
6540
|
}
|
|
6540
6541
|
function Z(t, n, i) {
|
|
@@ -6596,7 +6597,7 @@ function ye(t, n, i, o, l) {
|
|
|
6596
6597
|
};
|
|
6597
6598
|
}
|
|
6598
6599
|
}
|
|
6599
|
-
function
|
|
6600
|
+
function xi(t, n, i) {
|
|
6600
6601
|
for (var o = ft(t, !0), l = ye(t)[n]; o; ) {
|
|
6601
6602
|
var s = ye(o)[i], r = void 0;
|
|
6602
6603
|
if (r = l >= s, !r) return o;
|
|
@@ -6616,7 +6617,7 @@ function At(t, n, i, o) {
|
|
|
6616
6617
|
}
|
|
6617
6618
|
return null;
|
|
6618
6619
|
}
|
|
6619
|
-
function
|
|
6620
|
+
function li(t, n) {
|
|
6620
6621
|
for (var i = t.lastElementChild; i && (i === Q.ghost || Z(i, "display") === "none" || n && !rn(i, n)); )
|
|
6621
6622
|
i = i.previousElementSibling;
|
|
6622
6623
|
return i || null;
|
|
@@ -6629,7 +6630,7 @@ function Ue(t, n) {
|
|
|
6629
6630
|
t.nodeName.toUpperCase() !== "TEMPLATE" && t !== Q.clone && (!n || rn(t, n)) && i++;
|
|
6630
6631
|
return i;
|
|
6631
6632
|
}
|
|
6632
|
-
function
|
|
6633
|
+
function ki(t) {
|
|
6633
6634
|
var n = 0, i = 0, o = Ze();
|
|
6634
6635
|
if (t)
|
|
6635
6636
|
do {
|
|
@@ -6880,7 +6881,7 @@ function Ie(t) {
|
|
|
6880
6881
|
newDraggableIndex: ut
|
|
6881
6882
|
}, t));
|
|
6882
6883
|
}
|
|
6883
|
-
var B, he, te, fe, yt, tn, pe, ct, Dt, Me, Bt, ut, Xt, Se, St = !1, an = !1, un = [], mt, He, Cn, Dn,
|
|
6884
|
+
var B, he, te, fe, yt, tn, pe, ct, Dt, Me, Bt, ut, Xt, Se, St = !1, an = !1, un = [], mt, He, Cn, Dn, Si, Ci, $t, kt, Mt, Ft = !1, Jt = !1, nn, Oe, En = [], Bn = !1, cn = [], pn = typeof document < "u", Kt = ii, Di = Wt || it ? "cssFloat" : "float", id = pn && !al && !ii && "draggable" in document.createElement("div"), gl = (function() {
|
|
6884
6885
|
if (pn) {
|
|
6885
6886
|
if (it)
|
|
6886
6887
|
return !1;
|
|
@@ -6897,7 +6898,7 @@ var B, he, te, fe, yt, tn, pe, ct, Dt, Me, Bt, ut, Xt, Se, St = !1, an = !1, un
|
|
|
6897
6898
|
var h = a.float === "left" ? "left" : "right";
|
|
6898
6899
|
return r && (c.clear === "both" || c.clear === h) ? "vertical" : "horizontal";
|
|
6899
6900
|
}
|
|
6900
|
-
return s && (a.display === "block" || a.display === "flex" || a.display === "table" || a.display === "grid" || u >= l && o[
|
|
6901
|
+
return s && (a.display === "block" || a.display === "flex" || a.display === "table" || a.display === "grid" || u >= l && o[Di] === "none" || r && o[Di] === "none" && u + f > l) ? "vertical" : "horizontal";
|
|
6901
6902
|
}, ld = function(n, i, o) {
|
|
6902
6903
|
var l = o ? n.left : n.top, s = o ? n.right : n.bottom, r = o ? n.width : n.height, a = o ? i.left : i.top, c = o ? i.right : i.bottom, u = o ? i.width : i.height;
|
|
6903
6904
|
return l === a || s === c || l + r / 2 === a + u / 2;
|
|
@@ -6905,7 +6906,7 @@ var B, he, te, fe, yt, tn, pe, ct, Dt, Me, Bt, ut, Xt, Se, St = !1, an = !1, un
|
|
|
6905
6906
|
var o;
|
|
6906
6907
|
return un.some(function(l) {
|
|
6907
6908
|
var s = l[je].options.emptyInsertThreshold;
|
|
6908
|
-
if (!(!s ||
|
|
6909
|
+
if (!(!s || li(l))) {
|
|
6909
6910
|
var r = ye(l), a = n >= r.left - s && n <= r.right + s, c = i >= r.top - s && i <= r.bottom + s;
|
|
6910
6911
|
if (a && c)
|
|
6911
6912
|
return o = l;
|
|
@@ -7001,7 +7002,7 @@ function Q(t, n) {
|
|
|
7001
7002
|
y: 0
|
|
7002
7003
|
},
|
|
7003
7004
|
// Disabled on Safari: #1571; Enabled on Safari IOS: #2244
|
|
7004
|
-
supportPointer: Q.supportPointer !== !1 && "PointerEvent" in window && (!Pt ||
|
|
7005
|
+
supportPointer: Q.supportPointer !== !1 && "PointerEvent" in window && (!Pt || ii),
|
|
7005
7006
|
emptyInsertThreshold: 5
|
|
7006
7007
|
};
|
|
7007
7008
|
qt.initializePlugins(this, t, i);
|
|
@@ -7067,21 +7068,21 @@ Q.prototype = /** @lends Sortable.prototype */
|
|
|
7067
7068
|
target: B,
|
|
7068
7069
|
clientX: (i || n).clientX,
|
|
7069
7070
|
clientY: (i || n).clientY
|
|
7070
|
-
},
|
|
7071
|
+
}, Si = mt.clientX - u.left, Ci = mt.clientY - u.top, this._lastX = (i || n).clientX, this._lastY = (i || n).clientY, B.style["will-change"] = "all", c = function() {
|
|
7071
7072
|
if (ze("delayEnded", l, {
|
|
7072
7073
|
evt: n
|
|
7073
7074
|
}), Q.eventCanceled) {
|
|
7074
7075
|
l._onDrop();
|
|
7075
7076
|
return;
|
|
7076
7077
|
}
|
|
7077
|
-
l._disableDelayedDragEvents(), !
|
|
7078
|
+
l._disableDelayedDragEvents(), !bi && l.nativeDraggable && (B.draggable = !0), l._triggerDragStart(n, i), Ie({
|
|
7078
7079
|
sortable: l,
|
|
7079
7080
|
name: "choose",
|
|
7080
7081
|
originalEvent: n
|
|
7081
7082
|
}), Be(B, r.chosenClass, !0);
|
|
7082
7083
|
}, r.ignore.split(",").forEach(function(f) {
|
|
7083
7084
|
dl(B, f.trim(), On);
|
|
7084
|
-
}), se(a, "dragover", gt), se(a, "mousemove", gt), se(a, "touchmove", gt), r.supportPointer ? (se(a, "pointerup", l._onDrop), !this.nativeDraggable && se(a, "pointercancel", l._onDrop)) : (se(a, "mouseup", l._onDrop), se(a, "touchend", l._onDrop), se(a, "touchcancel", l._onDrop)),
|
|
7085
|
+
}), se(a, "dragover", gt), se(a, "mousemove", gt), se(a, "touchmove", gt), r.supportPointer ? (se(a, "pointerup", l._onDrop), !this.nativeDraggable && se(a, "pointercancel", l._onDrop)) : (se(a, "mouseup", l._onDrop), se(a, "touchend", l._onDrop), se(a, "touchcancel", l._onDrop)), bi && this.nativeDraggable && (this.options.touchStartThreshold = 4, B.draggable = !0), ze("delayStart", this, {
|
|
7085
7086
|
evt: n
|
|
7086
7087
|
}), r.delay && (!r.delayOnTouchOnly || i) && (!this.nativeDraggable || !(Wt || it))) {
|
|
7087
7088
|
if (Q.eventCanceled) {
|
|
@@ -7151,7 +7152,7 @@ Q.prototype = /** @lends Sortable.prototype */
|
|
|
7151
7152
|
},
|
|
7152
7153
|
_onTouchMove: function(n) {
|
|
7153
7154
|
if (mt) {
|
|
7154
|
-
var i = this.options, o = i.fallbackTolerance, l = i.fallbackOffset, s = n.touches ? n.touches[0] : n, r = te && Ot(te, !0), a = te && r && r.a, c = te && r && r.d, u = Kt && Oe &&
|
|
7155
|
+
var i = this.options, o = i.fallbackTolerance, l = i.fallbackOffset, s = n.touches ? n.touches[0] : n, r = te && Ot(te, !0), a = te && r && r.a, c = te && r && r.d, u = Kt && Oe && ki(Oe), f = (s.clientX - mt.clientX + l.x) / (a || 1) + (u ? u[0] - En[0] : 0) / (a || 1), h = (s.clientY - mt.clientY + l.y) / (c || 1) + (u ? u[1] - En[1] : 0) / (c || 1);
|
|
7155
7156
|
if (!Q.active && !St) {
|
|
7156
7157
|
if (o && Math.max(Math.abs(s.clientX - this._lastX), Math.abs(s.clientY - this._lastY)) < o)
|
|
7157
7158
|
return;
|
|
@@ -7178,9 +7179,9 @@ Q.prototype = /** @lends Sortable.prototype */
|
|
|
7178
7179
|
if (Kt) {
|
|
7179
7180
|
for (Oe = n; Z(Oe, "position") === "static" && Z(Oe, "transform") === "none" && Oe !== document; )
|
|
7180
7181
|
Oe = Oe.parentNode;
|
|
7181
|
-
Oe !== document.body && Oe !== document.documentElement ? (Oe === document && (Oe = Ze()), i.top += Oe.scrollTop, i.left += Oe.scrollLeft) : Oe = Ze(), En =
|
|
7182
|
+
Oe !== document.body && Oe !== document.documentElement ? (Oe === document && (Oe = Ze()), i.top += Oe.scrollTop, i.left += Oe.scrollLeft) : Oe = Ze(), En = ki(Oe);
|
|
7182
7183
|
}
|
|
7183
|
-
te = B.cloneNode(!0), Be(te, o.ghostClass, !1), Be(te, o.fallbackClass, !0), Be(te, o.dragClass, !0), Z(te, "transition", ""), Z(te, "transform", ""), Z(te, "box-sizing", "border-box"), Z(te, "margin", 0), Z(te, "top", i.top), Z(te, "left", i.left), Z(te, "width", i.width), Z(te, "height", i.height), Z(te, "opacity", "0.8"), Z(te, "position", Kt ? "absolute" : "fixed"), Z(te, "zIndex", "100000"), Z(te, "pointerEvents", "none"), Q.ghost = te, n.appendChild(te), Z(te, "transform-origin",
|
|
7184
|
+
te = B.cloneNode(!0), Be(te, o.ghostClass, !1), Be(te, o.fallbackClass, !0), Be(te, o.dragClass, !0), Z(te, "transition", ""), Z(te, "transform", ""), Z(te, "box-sizing", "border-box"), Z(te, "margin", 0), Z(te, "top", i.top), Z(te, "left", i.left), Z(te, "width", i.width), Z(te, "height", i.height), Z(te, "opacity", "0.8"), Z(te, "position", Kt ? "absolute" : "fixed"), Z(te, "zIndex", "100000"), Z(te, "pointerEvents", "none"), Q.ghost = te, n.appendChild(te), Z(te, "transform-origin", Si / parseInt(te.style.width) * 100 + "% " + Ci / parseInt(te.style.height) * 100 + "%");
|
|
7184
7185
|
}
|
|
7185
7186
|
},
|
|
7186
7187
|
_onDragStart: function(n, i) {
|
|
@@ -7247,7 +7248,7 @@ Q.prototype = /** @lends Sortable.prototype */
|
|
|
7247
7248
|
if (p = this._getDirection(n, o) === "vertical", l = ye(B), A("dragOverValid"), Q.eventCanceled) return S;
|
|
7248
7249
|
if (r)
|
|
7249
7250
|
return he = fe, I(), this._hideClone(), A("revert"), Q.eventCanceled || (yt ? fe.insertBefore(B, yt) : fe.appendChild(B)), D(!0);
|
|
7250
|
-
var J =
|
|
7251
|
+
var J = li(i, a.draggable);
|
|
7251
7252
|
if (!J || cd(n, p, this) && !J.animated) {
|
|
7252
7253
|
if (J === B)
|
|
7253
7254
|
return D(!1);
|
|
@@ -7261,7 +7262,7 @@ Q.prototype = /** @lends Sortable.prototype */
|
|
|
7261
7262
|
return I(), i.insertBefore(B, Y), he = i, V(), D(!0);
|
|
7262
7263
|
} else if (o.parentNode === i) {
|
|
7263
7264
|
s = ye(o);
|
|
7264
|
-
var K = 0, ae, me = B.parentNode !== i, de = !ld(B.animated && B.toRect || l, o.animated && o.toRect || s, p), ne = p ? "top" : "left", _e =
|
|
7265
|
+
var K = 0, ae, me = B.parentNode !== i, de = !ld(B.animated && B.toRect || l, o.animated && o.toRect || s, p), ne = p ? "top" : "left", _e = xi(o, "top", "top") || xi(B, "top", "top"), De = _e ? _e.scrollTop : void 0;
|
|
7265
7266
|
kt !== o && (ae = s[ne], Ft = !1, Jt = !de && a.invertSwap || me), K = dd(n, o, s, p, de ? 1 : a.swapThreshold, a.invertedSwapThreshold == null ? a.swapThreshold : a.invertedSwapThreshold, Jt, kt === o);
|
|
7266
7267
|
var k;
|
|
7267
7268
|
if (K !== 0) {
|
|
@@ -7467,7 +7468,7 @@ function ud(t, n, i) {
|
|
|
7467
7468
|
return n ? t.clientX < l.left - s || t.clientY < o.top && t.clientX < o.right : t.clientY < l.top - s || t.clientY < o.bottom && t.clientX < o.left;
|
|
7468
7469
|
}
|
|
7469
7470
|
function cd(t, n, i) {
|
|
7470
|
-
var o = ye(
|
|
7471
|
+
var o = ye(li(i.el, i.options.draggable)), l = ml(i.el, i.options, te), s = 10;
|
|
7471
7472
|
return n ? t.clientX > l.right + s || t.clientY > o.bottom && t.clientX > o.left : t.clientY > l.bottom + s || t.clientX > o.right && t.clientY > o.top;
|
|
7472
7473
|
}
|
|
7473
7474
|
function dd(t, n, i, o, l, s, r, a) {
|
|
@@ -7566,7 +7567,7 @@ function md() {
|
|
|
7566
7567
|
!this.options.dragOverBubble && !o.rootEl && this._handleAutoScroll(o);
|
|
7567
7568
|
},
|
|
7568
7569
|
drop: function() {
|
|
7569
|
-
this.sortable.nativeDraggable ? le(document, "dragover", this._handleAutoScroll) : (le(document, "pointermove", this._handleFallbackAutoScroll), le(document, "touchmove", this._handleFallbackAutoScroll), le(document, "mousemove", this._handleFallbackAutoScroll)),
|
|
7570
|
+
this.sortable.nativeDraggable ? le(document, "dragover", this._handleAutoScroll) : (le(document, "pointermove", this._handleFallbackAutoScroll), le(document, "touchmove", this._handleFallbackAutoScroll), le(document, "mousemove", this._handleFallbackAutoScroll)), Ei(), on(), Kc();
|
|
7570
7571
|
},
|
|
7571
7572
|
nulling: function() {
|
|
7572
7573
|
dn = Fn = It = Un = Nt = Vn = An = null, ge.length = 0;
|
|
@@ -7579,7 +7580,7 @@ function md() {
|
|
|
7579
7580
|
if (dn = i, o || this.options.forceAutoScrollFallback || Wt || it || Pt) {
|
|
7580
7581
|
Tn(i, this.options, a, o);
|
|
7581
7582
|
var c = ft(a, !0);
|
|
7582
|
-
Un && (!Nt || s !== Vn || r !== An) && (Nt &&
|
|
7583
|
+
Un && (!Nt || s !== Vn || r !== An) && (Nt && Ei(), Nt = setInterval(function() {
|
|
7583
7584
|
var u = ft(document.elementFromPoint(s, r), !0);
|
|
7584
7585
|
u !== c && (c = u, on()), Tn(i, l.options, u, o);
|
|
7585
7586
|
}, 10), Vn = s, An = r);
|
|
@@ -7601,7 +7602,7 @@ function on() {
|
|
|
7601
7602
|
clearInterval(t.pid);
|
|
7602
7603
|
}), ge = [];
|
|
7603
7604
|
}
|
|
7604
|
-
function
|
|
7605
|
+
function Ei() {
|
|
7605
7606
|
clearInterval(Nt);
|
|
7606
7607
|
}
|
|
7607
7608
|
var Tn = fl(function(t, n, i, o) {
|
|
@@ -7638,9 +7639,9 @@ var Tn = fl(function(t, n, i, o) {
|
|
|
7638
7639
|
}));
|
|
7639
7640
|
}
|
|
7640
7641
|
};
|
|
7641
|
-
function
|
|
7642
|
+
function oi() {
|
|
7642
7643
|
}
|
|
7643
|
-
|
|
7644
|
+
oi.prototype = {
|
|
7644
7645
|
startIndex: null,
|
|
7645
7646
|
dragStart: function(n) {
|
|
7646
7647
|
var i = n.oldDraggableIndex;
|
|
@@ -7654,23 +7655,23 @@ li.prototype = {
|
|
|
7654
7655
|
},
|
|
7655
7656
|
drop: wl
|
|
7656
7657
|
};
|
|
7657
|
-
nt(
|
|
7658
|
+
nt(oi, {
|
|
7658
7659
|
pluginName: "revertOnSpill"
|
|
7659
7660
|
});
|
|
7660
|
-
function
|
|
7661
|
+
function si() {
|
|
7661
7662
|
}
|
|
7662
|
-
|
|
7663
|
+
si.prototype = {
|
|
7663
7664
|
onSpill: function(n) {
|
|
7664
7665
|
var i = n.dragEl, o = n.putSortable, l = o || this.sortable;
|
|
7665
7666
|
l.captureAnimationState(), i.parentNode && i.parentNode.removeChild(i), l.animateAll();
|
|
7666
7667
|
},
|
|
7667
7668
|
drop: wl
|
|
7668
7669
|
};
|
|
7669
|
-
nt(
|
|
7670
|
+
nt(si, {
|
|
7670
7671
|
pluginName: "removeOnSpill"
|
|
7671
7672
|
});
|
|
7672
7673
|
Q.mount(new md());
|
|
7673
|
-
Q.mount(
|
|
7674
|
+
Q.mount(si, oi);
|
|
7674
7675
|
const gd = /* @__PURE__ */ Ne({
|
|
7675
7676
|
__name: "draggable",
|
|
7676
7677
|
props: {
|
|
@@ -7901,7 +7902,7 @@ const gd = /* @__PURE__ */ Ne({
|
|
|
7901
7902
|
...C,
|
|
7902
7903
|
draggable: U.draggable || ">*"
|
|
7903
7904
|
};
|
|
7904
|
-
w.value = new Q(x, ie), x.__draggable_component__ =
|
|
7905
|
+
w.value = new Q(x, ie), x.__draggable_component__ = Hn()?.proxy;
|
|
7905
7906
|
};
|
|
7906
7907
|
return pt(() => {
|
|
7907
7908
|
o.list !== null && o.modelValue !== null && console.warn("[vue-draggable] list 和 modelValue 是互斥的!请只设置其中一个。");
|
|
@@ -7940,7 +7941,7 @@ const gd = /* @__PURE__ */ Ne({
|
|
|
7940
7941
|
_: 3
|
|
7941
7942
|
}, 16));
|
|
7942
7943
|
}
|
|
7943
|
-
}), yd = sn(() => import("./chart-39v6ER0U.js")), vd = sn(() => import("./editor-
|
|
7944
|
+
}), yd = sn(() => import("./chart-39v6ER0U.js")), vd = sn(() => import("./editor-C343_YQy.js")), Oi = { AdminTable: er, AdminForm: uc, DataApi: mc, ASearch: Zi, AInputs: rl, InputButton: ni, ASearchBox: tl, ATip: bc, ATextEdit: Dc, ACateText: Ac, ACascader: il, ATags: ll, ATime: Ic, AImage: Pc, AImageText: nl, AColorPicker: ol, ARegionPicker: sl, ARegionText: jc, ARegionMap: Pn, ATextStatus: Rc, ADraggable: gd, AChart: yd, AEditor: vd }, _d = {
|
|
7944
7945
|
methods: {
|
|
7945
7946
|
$getParent(t = "", n = this, i = 0) {
|
|
7946
7947
|
if (i >= 20 || !t || !n) return null;
|
|
@@ -7952,7 +7953,7 @@ const gd = /* @__PURE__ */ Ne({
|
|
|
7952
7953
|
}
|
|
7953
7954
|
}
|
|
7954
7955
|
}, bd = function(...t) {
|
|
7955
|
-
return t.reduce((n, i) =>
|
|
7956
|
+
return t.reduce((n, i) => ei(n, i), {});
|
|
7956
7957
|
}, wd = {
|
|
7957
7958
|
default: [{
|
|
7958
7959
|
title: "推荐",
|
|
@@ -8094,7 +8095,7 @@ class Od {
|
|
|
8094
8095
|
return n?.indexOf("http") === 0 ? window.open(n) : (i && (o = "?jsonQuery=" + JSON.stringify(i)), n?.indexOf("/") !== 0 && (n = "/" + n), this.router.push(n + o));
|
|
8095
8096
|
}
|
|
8096
8097
|
}
|
|
8097
|
-
const $n = "undefined", Vd = Promise, Ad = (t) => Vd.reject(t), Rn = Object,
|
|
8098
|
+
const $n = "undefined", Vd = Promise, Ad = (t) => Vd.reject(t), Rn = Object, Vi = void 0, Td = null, Ai = !0, In = !1, $d = (t, n, i) => JSON.stringify(t, n, i), Id = (t, n = 0) => setTimeout(t, n), Ti = (t) => clearTimeout(t), Nd = (t, n) => delete t[n], zd = (t) => typeof t, Pd = (t, n) => t.includes(n);
|
|
8098
8099
|
typeof window === $n && (typeof process !== $n && process.browser);
|
|
8099
8100
|
const jd = (t) => zd(t) === "string", Bd = (t) => Rn.prototype.toString.call(t), Md = (t, n) => t instanceof n, Fd = (t) => {
|
|
8100
8101
|
const n = Bd(t);
|
|
@@ -8104,7 +8105,7 @@ function Ld(t = {}) {
|
|
|
8104
8105
|
return (n, i) => {
|
|
8105
8106
|
const o = i.config, l = o.timeout || 0, s = new AbortController(), { data: r, headers: a } = n, c = /content-type/i.test(Rn.keys(a).join()), u = r && r.toString() === "[object FormData]";
|
|
8106
8107
|
!c && !u && (a["Content-Type"] = "application/json; charset=UTF-8");
|
|
8107
|
-
const f = ["",
|
|
8108
|
+
const f = ["", Vi, Td, In];
|
|
8108
8109
|
Rn.keys(a).forEach((w) => {
|
|
8109
8110
|
Pd(f, a[w]) && Nd(a, w);
|
|
8110
8111
|
});
|
|
@@ -8116,9 +8117,9 @@ function Ld(t = {}) {
|
|
|
8116
8117
|
});
|
|
8117
8118
|
let y, p = In;
|
|
8118
8119
|
return l > 0 && (y = Id(() => {
|
|
8119
|
-
p =
|
|
8120
|
+
p = Ai, s.abort();
|
|
8120
8121
|
}, l)), {
|
|
8121
|
-
response: () => h.then((w) => (
|
|
8122
|
+
response: () => h.then((w) => (Ti(y), w.clone()), (w) => Ad(p ? Ud(Error, "fetchError: network timeout") : w)),
|
|
8122
8123
|
// The then in the Headers function needs to catch exceptions, otherwise the correct error object will not be obtained internally.
|
|
8123
8124
|
headers: () => h.then(({ headers: w }) => w, () => ({})),
|
|
8124
8125
|
// Due to limitations of the node fetch library, this code cannot be unit tested, but it has passed the test in the browser.
|
|
@@ -8126,11 +8127,11 @@ function Ld(t = {}) {
|
|
|
8126
8127
|
onDownload: async (w) => {
|
|
8127
8128
|
let S = In;
|
|
8128
8129
|
const A = await h.catch(() => {
|
|
8129
|
-
S =
|
|
8130
|
+
S = Ai;
|
|
8130
8131
|
});
|
|
8131
8132
|
if (!A)
|
|
8132
8133
|
return;
|
|
8133
|
-
const { headers: I, body: D } = A.clone(), V = D ? D.getReader() :
|
|
8134
|
+
const { headers: I, body: D } = A.clone(), V = D ? D.getReader() : Vi, J = Number(I.get("Content-Length") || I.get("content-length") || 0);
|
|
8134
8135
|
if (J <= 0)
|
|
8135
8136
|
return;
|
|
8136
8137
|
let Y = 0;
|
|
@@ -8149,7 +8150,7 @@ function Ld(t = {}) {
|
|
|
8149
8150
|
},
|
|
8150
8151
|
/* c8 ignore stop */
|
|
8151
8152
|
abort: () => {
|
|
8152
|
-
s.abort(),
|
|
8153
|
+
s.abort(), Ti(y);
|
|
8153
8154
|
}
|
|
8154
8155
|
};
|
|
8155
8156
|
};
|
|
@@ -8170,7 +8171,7 @@ function Wd(t) {
|
|
|
8170
8171
|
});
|
|
8171
8172
|
}
|
|
8172
8173
|
let Wn = !1;
|
|
8173
|
-
function
|
|
8174
|
+
function $i(t, n, i = {}) {
|
|
8174
8175
|
const o = Ln?.headers?.() || {}, l = Ln?.post?.auth();
|
|
8175
8176
|
if (!l)
|
|
8176
8177
|
return Promise.resolve(typeof l == "object" ? l : { code: 1001, msg: "请先登录" });
|
|
@@ -8191,7 +8192,7 @@ function Ti(t, n, i = {}) {
|
|
|
8191
8192
|
const u = hn.Post(t, n, c);
|
|
8192
8193
|
return t.startsWith("http") && (u.baseURL = ""), u;
|
|
8193
8194
|
}
|
|
8194
|
-
const
|
|
8195
|
+
const Ii = function(t, n = {}) {
|
|
8195
8196
|
const i = hn.Get(t, { cacheFor: null, ...n });
|
|
8196
8197
|
return i.baseURL = "", i;
|
|
8197
8198
|
};
|
|
@@ -8203,11 +8204,11 @@ class qd {
|
|
|
8203
8204
|
// removeCache(url) {
|
|
8204
8205
|
// }
|
|
8205
8206
|
noLogin(n, i = void 0) {
|
|
8206
|
-
return
|
|
8207
|
+
return $i(zt + n, i);
|
|
8207
8208
|
}
|
|
8208
8209
|
post(n, i = void 0, o = void 0, l = void 0) {
|
|
8209
8210
|
let s = {};
|
|
8210
|
-
return o && typeof o == "object" ? s = o : (typeof i == "number" ? (l = i, i = void 0) : typeof i == "string" ? (o = i, i = void 0) : typeof o == "number" && (l = o), s = { loading: o, cache: l }), n.startsWith("http") ? n = n : n = zt + n,
|
|
8211
|
+
return o && typeof o == "object" ? s = o : (typeof i == "number" ? (l = i, i = void 0) : typeof i == "string" ? (o = i, i = void 0) : typeof o == "number" && (l = o), s = { loading: o, cache: l }), n.startsWith("http") ? n = n : n = zt + n, $i(n, i, s);
|
|
8211
8212
|
}
|
|
8212
8213
|
upload(n, i, o = {}) {
|
|
8213
8214
|
let l = !1;
|
|
@@ -8236,8 +8237,8 @@ class qd {
|
|
|
8236
8237
|
}), a.open(p, n, !0), l || a.setRequestHeader("jwt", Rt.get("admin_jwt")), p === "POST" ? a.setRequestHeader("Content-Type", "application/json") : a.setRequestHeader("Content-Type", i.type || "application/octet-stream"), a.send(i);
|
|
8237
8238
|
});
|
|
8238
8239
|
}
|
|
8239
|
-
query =
|
|
8240
|
-
get =
|
|
8240
|
+
query = Ii;
|
|
8241
|
+
get = Ii;
|
|
8241
8242
|
instance = () => hn;
|
|
8242
8243
|
setCache = Kl;
|
|
8243
8244
|
/** 创建alova实例 */
|
|
@@ -8439,7 +8440,7 @@ const Qd = {
|
|
|
8439
8440
|
}, tf = function(t, n, i) {
|
|
8440
8441
|
return Et(t, n, i);
|
|
8441
8442
|
}, nf = function(...t) {
|
|
8442
|
-
return t.reduce((n, i) =>
|
|
8443
|
+
return t.reduce((n, i) => ei(n, i), {});
|
|
8443
8444
|
}, lf = function(t, n = null) {
|
|
8444
8445
|
if (!n)
|
|
8445
8446
|
return t;
|
|
@@ -8487,7 +8488,7 @@ function rf(t, n) {
|
|
|
8487
8488
|
let i = "";
|
|
8488
8489
|
return t && (t.indexOf("://") > -1 || t.startsWith("//") || t.startsWith("/assets") || t.startsWith("/static") || t.startsWith("data:") || t.startsWith("<svg") ? i = t : i = $config.fileUrl + t), i;
|
|
8489
8490
|
}
|
|
8490
|
-
const
|
|
8491
|
+
const Ni = { array: Yt, object: of, sleep: sf, codeArea: Xd, fileUrl: rf, time: { formatDate: kl, friendlyDate: Gd }, csv: Qd }, Tt = {};
|
|
8491
8492
|
function af(t) {
|
|
8492
8493
|
const { globalName: n, src: i, timeout: o = 1e4 } = t;
|
|
8493
8494
|
return n && globalThis[n] !== void 0 ? Promise.resolve() : (Tt[i] || (Tt[i] = new Promise((l, s) => {
|
|
@@ -8508,14 +8509,14 @@ function af(t) {
|
|
|
8508
8509
|
function uf(t, n = {}) {
|
|
8509
8510
|
const i = t.config.globalProperties, { store: o = null, config: l, menu: s = null } = n, r = {
|
|
8510
8511
|
$menu: s,
|
|
8511
|
-
$a:
|
|
8512
|
+
$a: Ni,
|
|
8512
8513
|
$msg: Ve,
|
|
8513
8514
|
$loading: Ve.loading,
|
|
8514
8515
|
$confirm: Ve.confirm,
|
|
8515
8516
|
$prompt: Ve.prompt,
|
|
8516
8517
|
$cache: Rt,
|
|
8517
8518
|
$copy: Yd,
|
|
8518
|
-
$fileUrl:
|
|
8519
|
+
$fileUrl: Ni.fileUrl,
|
|
8519
8520
|
$config: Sd(l),
|
|
8520
8521
|
$theme: Dd,
|
|
8521
8522
|
$number: Zl,
|
|
@@ -10116,7 +10117,7 @@ function lp(t, n, i, o, l, s) {
|
|
|
10116
10117
|
const op = /* @__PURE__ */ ee(ip, [["render", lp]]), sp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
10117
10118
|
__proto__: null,
|
|
10118
10119
|
default: op
|
|
10119
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
10120
|
+
}, Symbol.toStringTag, { value: "Module" })), zi = [
|
|
10120
10121
|
{
|
|
10121
10122
|
title: "权限管理",
|
|
10122
10123
|
path: "dev/menu"
|
|
@@ -10154,17 +10155,17 @@ const op = /* @__PURE__ */ ee(ip, [["render", lp]]), sp = /* @__PURE__ */ Object
|
|
|
10154
10155
|
// title: "系统日志",
|
|
10155
10156
|
// path: "dev/log/index"
|
|
10156
10157
|
// }
|
|
10157
|
-
],
|
|
10158
|
-
for (const t in
|
|
10158
|
+
], Pi = /* @__PURE__ */ Object.assign({ "./dev/ad/index.vue": hf, "./dev/index.vue": vf, "./dev/log/index.vue": xf, "./dev/menu.vue": Df, "./dev/msg/detail.vue": Tf, "./dev/msg/index.vue": zf, "./dev/plugins/index.vue": Mf, "./dev/redis/index.vue": Wf, "./dev/setting/cate.vue": Gf, "./dev/setting/index.vue": Zf, "./dev/setting/tablelist.vue": np, "./dev/table/index.vue": sp }), Sl = {};
|
|
10159
|
+
for (const t in Pi) {
|
|
10159
10160
|
const n = t.slice(2, -4).split("/").join("");
|
|
10160
|
-
Sl[n] =
|
|
10161
|
+
Sl[n] = Pi[t].default;
|
|
10161
10162
|
}
|
|
10162
10163
|
const rp = {
|
|
10163
10164
|
components: Sl,
|
|
10164
10165
|
data() {
|
|
10165
10166
|
return {
|
|
10166
10167
|
component: "dev/ad/index",
|
|
10167
|
-
menu:
|
|
10168
|
+
menu: zi
|
|
10168
10169
|
};
|
|
10169
10170
|
},
|
|
10170
10171
|
methods: {
|
|
@@ -10175,7 +10176,7 @@ const rp = {
|
|
|
10175
10176
|
computed: {
|
|
10176
10177
|
menuOn() {
|
|
10177
10178
|
let t = {};
|
|
10178
|
-
for (const n of
|
|
10179
|
+
for (const n of zi)
|
|
10179
10180
|
if (n.path == this.$route.path) {
|
|
10180
10181
|
t = n;
|
|
10181
10182
|
break;
|
|
@@ -10254,8 +10255,8 @@ function pp(t, n, i, o, l, s) {
|
|
|
10254
10255
|
}
|
|
10255
10256
|
const kp = /* @__PURE__ */ ee(rp, [["render", pp]]), hp = (t, n = {}) => {
|
|
10256
10257
|
cf.install(t, n);
|
|
10257
|
-
for (const i in
|
|
10258
|
-
t.component(i,
|
|
10258
|
+
for (const i in Oi)
|
|
10259
|
+
t.component(i, Oi[i]);
|
|
10259
10260
|
t.mixin(_d), t.directive("focus", {
|
|
10260
10261
|
mounted(i) {
|
|
10261
10262
|
i.focus();
|
|
@@ -10271,6 +10272,6 @@ export {
|
|
|
10271
10272
|
xp as c,
|
|
10272
10273
|
hp as d,
|
|
10273
10274
|
Sp as i,
|
|
10274
|
-
|
|
10275
|
+
ti as m,
|
|
10275
10276
|
Wa as u
|
|
10276
10277
|
};
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
package/types/global.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import setConfig from './config'
|
|
2
2
|
import theme from "./theme";
|
|
3
|
-
import { cache, layer, page, req, copy, csv, util, loadjs as load } from "
|
|
3
|
+
import { cache, layer, page, req, copy, csv, util, loadjs as load } from "./plugins"
|
|
4
4
|
import config from '../src/config/index'
|
|
5
5
|
import { ComponentCustomProperties } from 'vue'
|
|
6
6
|
import root from '../src/app.vue'
|