ss-component-new 1.1.74 → 1.1.76
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/_plugin-vue_export-helper-B7R8Jogt.js +524 -0
- package/dist/{array-vzwMZhM4.js → array-BejyPB_1.js} +241 -247
- package/dist/{index-Dq67q_uS.js → index-10n3uNlg.js} +3 -4
- package/dist/{index-CFk0o1Np.js → index-BT8Pkr84.js} +6 -7
- package/dist/{index-CemfYGA8.js → index-BvoThyOF.js} +2 -2
- package/dist/index-CCr_UQBn.js +3749 -0
- package/dist/{index-C3H4rMr-.js → index-ChCXzsYf.js} +2 -2
- package/dist/{index.vue_vue_type_style_index_0_scoped_dc84a8f7_lang-Bfua7ui1.js → index.vue_vue_type_style_index_0_scoped_dc84a8f7_lang-DG5vph3h.js} +38 -39
- package/dist/main-BUjoLIJC.js +404 -0
- package/dist/{index-TqZwOJHG.js → menu-oGClEGzK.js} +1788 -3818
- package/dist/{modelComp-B2WEXyGq.js → modelComp-CqA1NVfH.js} +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +31 -2
- package/dist/ss-component.umd.cjs +51 -84
- package/package.json +5 -1
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
- package/dist/cloneDeep-DA0SrY7X.js +0 -318
- package/dist/index-BdGhClne.js +0 -351
- package/dist/index-CA5c0w_z.js +0 -370
- package/dist/index-DA26Wnhj.js +0 -3133
- package/dist/index-DtuPN0eZ.js +0 -131
- package/dist/index.vue_vue_type_style_index_0_scoped_876d48c6_lang-BY0XvD7v.js +0 -254
- package/dist/main-BJbKQjwb.js +0 -288
- package/dist/menu-CD2KJPvR.js +0 -924
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { ref as B, onMounted as
|
|
2
|
-
import { s as Re, a as
|
|
3
|
-
import { g as
|
|
4
|
-
import { c as S } from "./
|
|
5
|
-
import { _ as
|
|
6
|
-
import {
|
|
7
|
-
import { u as Hn } from "./modelComp-B2WEXyGq.js";
|
|
1
|
+
import { ref as B, onMounted as _n, watch as be, createElementBlock as ye, openBlock as fe, createBlock as Dn, createVNode as ee, createSlots as Fn, withCtx as pe, Fragment as Nn, renderList as Pn, createElementVNode as H, normalizeStyle as Un, toDisplayString as te, createCommentVNode as Bn, resolveComponent as Kt, createTextVNode as Ne } from "vue";
|
|
2
|
+
import { s as Re, a as jn, b as Ie, f as $n, E as _e } from "./index-CCr_UQBn.js";
|
|
3
|
+
import { g as Ln, c as qn, d as It, s as He, u as Jn } from "./menu-oGClEGzK.js";
|
|
4
|
+
import { c as S, _ as Ge } from "./_plugin-vue_export-helper-B7R8Jogt.js";
|
|
5
|
+
import { _ as Mn } from "./index.vue_vue_type_script_setup_true_lang-DQ2k4Z7D.js";
|
|
6
|
+
import { u as zn } from "./modelComp-CqA1NVfH.js";
|
|
8
7
|
const Nt = (e, t) => {
|
|
9
8
|
const n = e.storage || sessionStorage, r = e.key || t.$id;
|
|
10
9
|
if (e.paths) {
|
|
@@ -13,7 +12,7 @@ const Nt = (e, t) => {
|
|
|
13
12
|
} else
|
|
14
13
|
n.setItem(r, JSON.stringify(t.$state));
|
|
15
14
|
};
|
|
16
|
-
var
|
|
15
|
+
var Hn = ({ options: e, store: t }) => {
|
|
17
16
|
var n, r, o, s;
|
|
18
17
|
if ((n = e.persist) != null && n.enabled) {
|
|
19
18
|
const a = [{
|
|
@@ -30,8 +29,8 @@ var Vn = ({ options: e, store: t }) => {
|
|
|
30
29
|
});
|
|
31
30
|
}
|
|
32
31
|
};
|
|
33
|
-
const Oe =
|
|
34
|
-
Oe.use(
|
|
32
|
+
const Oe = Ln() || qn();
|
|
33
|
+
Oe.use(Hn);
|
|
35
34
|
const Gt = It("formToTableComp", {
|
|
36
35
|
state: () => ({
|
|
37
36
|
selectArray: [],
|
|
@@ -45,7 +44,7 @@ const Gt = It("formToTableComp", {
|
|
|
45
44
|
this.selectString = e;
|
|
46
45
|
}
|
|
47
46
|
}
|
|
48
|
-
}),
|
|
47
|
+
}), Vn = It("unit", {
|
|
49
48
|
state: () => ({
|
|
50
49
|
selectIndex: "",
|
|
51
50
|
selectMenu: "",
|
|
@@ -62,7 +61,7 @@ const Gt = It("formToTableComp", {
|
|
|
62
61
|
this.selectTitle = e;
|
|
63
62
|
}
|
|
64
63
|
}
|
|
65
|
-
}),
|
|
64
|
+
}), Wn = (e, t) => {
|
|
66
65
|
const n = t == null ? void 0 : t.split("-");
|
|
67
66
|
return Xt(e, n);
|
|
68
67
|
}, Xt = (e, t) => {
|
|
@@ -81,38 +80,38 @@ const Gt = It("formToTableComp", {
|
|
|
81
80
|
} else
|
|
82
81
|
return o;
|
|
83
82
|
})), n;
|
|
84
|
-
},
|
|
83
|
+
}, Kn = (e, t, n) => {
|
|
85
84
|
if (t === "")
|
|
86
85
|
return e == null ? void 0 : e.filter((r) => (r == null ? void 0 : r.id) === n);
|
|
87
86
|
{
|
|
88
87
|
const r = t.split("-");
|
|
89
|
-
return
|
|
88
|
+
return In(e, r, n);
|
|
90
89
|
}
|
|
91
|
-
},
|
|
90
|
+
}, In = (e, t, n) => {
|
|
92
91
|
let r = e, o = t;
|
|
93
92
|
return (o == null ? void 0 : o.length) === 0 ? r = r == null ? void 0 : r.filter((s) => s.id !== n) : r = r == null ? void 0 : r.map((s) => (s.id.toString() === (o == null ? void 0 : o[0]) && (o == null || o.shift(), s = Qt(s, o, n)), s)), r;
|
|
94
93
|
}, Qt = (e, t, n) => {
|
|
95
94
|
var s, a;
|
|
96
95
|
let r = e, o = t;
|
|
97
96
|
return (o == null ? void 0 : o.length) === 0 ? r.children = (s = r.children) == null ? void 0 : s.filter((i) => i.id !== n) : r.children = (a = r.children) == null ? void 0 : a.map((i) => (i.id.toString() === (o == null ? void 0 : o[0]) && (o == null || o.shift(), i = Qt(i, o, n)), i)), r;
|
|
98
|
-
},
|
|
97
|
+
}, Gn = (e, t, n) => {
|
|
99
98
|
if (t === "")
|
|
100
99
|
return n;
|
|
101
100
|
{
|
|
102
101
|
const r = t.split("-");
|
|
103
|
-
return
|
|
102
|
+
return Xn(e, r, n);
|
|
104
103
|
}
|
|
105
|
-
},
|
|
104
|
+
}, Xn = (e, t, n) => {
|
|
106
105
|
let r = e, o = t;
|
|
107
106
|
return (o == null ? void 0 : o.length) === 0 ? r = n : r = r == null ? void 0 : r.map((s) => (s.id.toString() === (o == null ? void 0 : o[0]) && (o == null || o.shift(), s = Yt(s, o, n)), s)), r;
|
|
108
107
|
}, Yt = (e, t, n) => {
|
|
109
108
|
var s;
|
|
110
109
|
let r = e, o = t;
|
|
111
110
|
return (o == null ? void 0 : o.length) === 0 ? r.children = n : r.children = (s = r.children) == null ? void 0 : s.map((a) => (a.id.toString() === (o == null ? void 0 : o[0]) && (o == null || o.shift(), a = Yt(a, o, n)), a)), r;
|
|
112
|
-
},
|
|
111
|
+
}, Zn = { class: "table-content" }, Qn = ["onClick"], Yn = {
|
|
113
112
|
key: 0,
|
|
114
113
|
class: "dialog-footer"
|
|
115
|
-
},
|
|
114
|
+
}, er = {
|
|
116
115
|
__name: "index",
|
|
117
116
|
props: {
|
|
118
117
|
itemData: {
|
|
@@ -127,20 +126,20 @@ const Gt = It("formToTableComp", {
|
|
|
127
126
|
},
|
|
128
127
|
emits: ["change", "contentChange"],
|
|
129
128
|
setup(e, { emit: t }) {
|
|
130
|
-
const n = e, r = t, o = B([]), s = B([]), a = B(""), i = B(), b = B(!0), f = B(0), m = B(!1), u = B(""), C = B(!1), O = B([]), g = B(!1), x = B([]), p = B([]), d = B(), l = B(), R = Gt(Oe), y = B(), h =
|
|
129
|
+
const n = e, r = t, o = B([]), s = B([]), a = B(""), i = B(), b = B(!0), f = B(0), m = B(!1), u = B(""), C = B(!1), O = B([]), g = B(!1), x = B([]), p = B([]), d = B(), l = B(), R = Gt(Oe), y = B(), h = Vn(Oe), { selectIndex: E, selectMenu: v, selectTitle: D } = He(h), { selectString: N } = He(R), w = B(720), I = () => {
|
|
131
130
|
C.value = !1;
|
|
132
|
-
}, F = (
|
|
131
|
+
}, F = (T) => {
|
|
133
132
|
var j, $, _, L, K;
|
|
134
|
-
if (J(
|
|
133
|
+
if (J(T), T != null && T.children && Array.isArray(T == null ? void 0 : T.children)) {
|
|
135
134
|
const q = D.value;
|
|
136
|
-
q.push({ key: v.value === "" ? (j =
|
|
135
|
+
q.push({ key: v.value === "" ? (j = T == null ? void 0 : T.id) == null ? void 0 : j.toString() : v.value + "-" + (($ = T == null ? void 0 : T.id) == null ? void 0 : $.toString()), value: T[(_ = Object.keys(T)) == null ? void 0 : _.filter((W) => W !== "index" && W !== "id")[0]] }), h.setSelectMenu(v.value === "" ? (L = T == null ? void 0 : T.id) == null ? void 0 : L.toString() : v.value + "-" + ((K = T == null ? void 0 : T.id) == null ? void 0 : K.toString())), h.setSelectTitle(q), h.setSelectIndex(n != null && n.index ? n == null ? void 0 : n.index.toString() : "");
|
|
137
136
|
}
|
|
138
|
-
}, J = (
|
|
137
|
+
}, J = (T) => {
|
|
139
138
|
var j, $, _;
|
|
140
|
-
if (
|
|
139
|
+
if (T != null && T.children && Array.isArray(T == null ? void 0 : T.children)) {
|
|
141
140
|
let L = [];
|
|
142
141
|
const K = (j = S(d.value)) == null ? void 0 : j.filter((q) => (q == null ? void 0 : q.prop) !== "index");
|
|
143
|
-
($ =
|
|
142
|
+
($ = T == null ? void 0 : T.children) == null || $.forEach((q, W) => {
|
|
144
143
|
if (!Array.isArray(q))
|
|
145
144
|
L.push(q);
|
|
146
145
|
else {
|
|
@@ -152,18 +151,18 @@ const Gt = It("formToTableComp", {
|
|
|
152
151
|
}
|
|
153
152
|
}), o.value = (_ = S(o.value)) == null ? void 0 : _.filter((q) => (q == null ? void 0 : q.prop) !== "index"), s.value = L;
|
|
154
153
|
}
|
|
155
|
-
}, M = (
|
|
154
|
+
}, M = (T, j) => {
|
|
156
155
|
var $;
|
|
157
|
-
if (a.value = "", g.value = !0, b.value = !0,
|
|
156
|
+
if (a.value = "", g.value = !0, b.value = !0, T === "删除") {
|
|
158
157
|
s.value = ($ = S(s.value)) == null ? void 0 : $.filter((L) => (L == null ? void 0 : L.id) !== (j == null ? void 0 : j.id));
|
|
159
|
-
const _ =
|
|
158
|
+
const _ = Kn(y.value, v.value, j == null ? void 0 : j.id);
|
|
160
159
|
k(_), r("change", {
|
|
161
160
|
content: _,
|
|
162
161
|
index: n == null ? void 0 : n.index,
|
|
163
|
-
buttonName:
|
|
162
|
+
buttonName: T
|
|
164
163
|
});
|
|
165
|
-
} else
|
|
166
|
-
}, z = (
|
|
164
|
+
} else T === "新增" ? (u.value = "新增", z(""), C.value = !0) : T === "编辑" ? (u.value = "编辑", z(j), C.value = !0) : T === "详情" && (u.value = "详情", z(j), g.value = !1, b.value = !1, C.value = !0);
|
|
165
|
+
}, z = (T) => {
|
|
167
166
|
var $;
|
|
168
167
|
const j = [];
|
|
169
168
|
($ = S(o.value)) == null || $.forEach((_, L) => {
|
|
@@ -171,42 +170,42 @@ const Gt = It("formToTableComp", {
|
|
|
171
170
|
label: (_ == null ? void 0 : _.label) ?? "",
|
|
172
171
|
name: (_ == null ? void 0 : _.prop) ?? "t" + L,
|
|
173
172
|
type: !(_ != null && _.type) || (_ == null ? void 0 : _.type) === "" ? "Input" : _ == null ? void 0 : _.type,
|
|
174
|
-
value: (
|
|
173
|
+
value: (T == null ? void 0 : T[_ == null ? void 0 : _.prop]) ?? "",
|
|
175
174
|
id: (_ == null ? void 0 : _.id) ?? L,
|
|
176
175
|
contents: (_ == null ? void 0 : _.options) ?? [],
|
|
177
176
|
width: 1
|
|
178
177
|
});
|
|
179
|
-
}),
|
|
178
|
+
}), T === "" || !T || (a.value = T == null ? void 0 : T.id), p.value = j;
|
|
180
179
|
};
|
|
181
|
-
|
|
180
|
+
_n(() => {
|
|
182
181
|
});
|
|
183
182
|
const V = () => {
|
|
184
|
-
let
|
|
185
|
-
a.value === "" ? (f.value++,
|
|
186
|
-
const j =
|
|
183
|
+
let T = S(s.value);
|
|
184
|
+
a.value === "" ? (f.value++, T.push(Object.assign(l.value, { id: f.value }))) : T = T == null ? void 0 : T.map(($) => (($ == null ? void 0 : $.id) === a.value && ($ = Object.assign($, l.value)), $)), s.value = T;
|
|
185
|
+
const j = Gn(y.value, v.value, T);
|
|
187
186
|
k(j), C.value = !1, r("change", {
|
|
188
187
|
content: j,
|
|
189
188
|
index: n == null ? void 0 : n.index,
|
|
190
189
|
buttonName: u.value
|
|
191
190
|
});
|
|
192
|
-
}, k = (
|
|
191
|
+
}, k = (T) => {
|
|
193
192
|
var $;
|
|
194
|
-
const j = ($ = S(n.itemData)) == null ? void 0 : $.map((_) => ((_ == null ? void 0 : _.key) === "tableContents" && (_.contents =
|
|
193
|
+
const j = ($ = S(n.itemData)) == null ? void 0 : $.map((_) => ((_ == null ? void 0 : _.key) === "tableContents" && (_.contents = T), _));
|
|
195
194
|
r("contentChange", {
|
|
196
195
|
contents: j,
|
|
197
196
|
index: n.index
|
|
198
197
|
});
|
|
199
|
-
}, X = (
|
|
200
|
-
l.value =
|
|
198
|
+
}, X = (T) => {
|
|
199
|
+
l.value = T;
|
|
201
200
|
};
|
|
202
201
|
return be(
|
|
203
202
|
() => [n.itemData, N.value, E.value, v.value],
|
|
204
203
|
() => {
|
|
205
|
-
var oe, se, Ae, Ce, kt, Et, vt, St, Rt, Ot,
|
|
206
|
-
const
|
|
204
|
+
var oe, se, Ae, Ce, kt, Et, vt, St, Rt, Ot, wt, Tt, At, Ct, xt, _t, Dt, Ft;
|
|
205
|
+
const T = (oe = S(n.itemData)) == null ? void 0 : oe.filter((P) => (P == null ? void 0 : P.key) === "header"), j = (se = S(n.itemData)) == null ? void 0 : se.find((P) => (P == null ? void 0 : P.key) === "page"), $ = (Ae = S(n.itemData)) == null ? void 0 : Ae.find((P) => (P == null ? void 0 : P.key) === "rowButton"), _ = (Ce = S(n.itemData)) == null ? void 0 : Ce.find((P) => (P == null ? void 0 : P.key) === "extraButton"), L = (kt = S(n.itemData)) == null ? void 0 : kt.filter((P) => (P == null ? void 0 : P.key) === "tableContents"), K = (Et = S(n.itemData)) == null ? void 0 : Et.filter((P) => (P == null ? void 0 : P.key) === "tableIndex");
|
|
207
206
|
m.value = (j == null ? void 0 : j.contents) ?? !0;
|
|
208
207
|
let q = [];
|
|
209
|
-
N.value === "" ? q =
|
|
208
|
+
N.value === "" ? q = T == null ? void 0 : T[0] : q = (T == null ? void 0 : T.find((P) => (P == null ? void 0 : P.selectLabel) === "(" + N.value + ")")) ?? (T == null ? void 0 : T.find((P) => !(P != null && P.selectLabel)));
|
|
210
209
|
let W = [];
|
|
211
210
|
if (N.value === "" ? W = K == null ? void 0 : K[0] : W = (K == null ? void 0 : K.find((P) => (P == null ? void 0 : P.selectLabel) === "(" + N.value + ")")) ?? (K == null ? void 0 : K.find((P) => !(P != null && P.selectLabel))), ((vt = q == null ? void 0 : q.contents) == null ? void 0 : vt.length) > 0) {
|
|
212
211
|
const P = [];
|
|
@@ -230,12 +229,12 @@ const Gt = It("formToTableComp", {
|
|
|
230
229
|
type: (A == null ? void 0 : A.label) === "操作" ? "operate" : void 0
|
|
231
230
|
});
|
|
232
231
|
}), o.value = P;
|
|
233
|
-
let de = (
|
|
232
|
+
let de = (wt = (Ot = S(o.value)) == null ? void 0 : Ot.filter((A) => (A == null ? void 0 : A.type) !== "operate")) == null ? void 0 : wt.map((A, le) => ({
|
|
234
233
|
prop: (A == null ? void 0 : A.prop) ?? "a" + le
|
|
235
234
|
}));
|
|
236
235
|
d.value = de;
|
|
237
236
|
let ue = [];
|
|
238
|
-
if (N.value === "" ? ue = L == null ? void 0 : L[0] : ue = (L == null ? void 0 : L.find((A) => (A == null ? void 0 : A.selectLabel) === "(" + N.value + ")")) ?? (L == null ? void 0 : L.find((A) => !(A != null && A.selectLabel))), ((
|
|
237
|
+
if (N.value === "" ? ue = L == null ? void 0 : L[0] : ue = (L == null ? void 0 : L.find((A) => (A == null ? void 0 : A.selectLabel) === "(" + N.value + ")")) ?? (L == null ? void 0 : L.find((A) => !(A != null && A.selectLabel))), ((Tt = ue == null ? void 0 : ue.contents) == null ? void 0 : Tt.length) !== 0) {
|
|
239
238
|
let A = S(ue == null ? void 0 : ue.contents);
|
|
240
239
|
W != null && W.contents && ((At = W == null ? void 0 : W.contents) == null ? void 0 : At.length) !== 0 && (A = (Ct = S(A)) == null ? void 0 : Ct.map((ae, rt) => {
|
|
241
240
|
var ve, Se;
|
|
@@ -262,15 +261,15 @@ const Gt = It("formToTableComp", {
|
|
|
262
261
|
} else
|
|
263
262
|
o.value = [], s.value = [];
|
|
264
263
|
if (((_t = $ == null ? void 0 : $.contents) == null ? void 0 : _t.length) > 0 ? O.value = $ == null ? void 0 : $.contents : O.value = [], ((Dt = _ == null ? void 0 : _.contents) == null ? void 0 : Dt.length) > 0 ? x.value = _ == null ? void 0 : _.contents : x.value = [], f.value = ((Ft = s == null ? void 0 : s.value) == null ? void 0 : Ft.length) ?? 0, E.value !== "") {
|
|
265
|
-
const P =
|
|
264
|
+
const P = Wn(S(s.value), v.value);
|
|
266
265
|
y.value = s.value, J(P);
|
|
267
266
|
}
|
|
268
267
|
},
|
|
269
268
|
{ deep: !0, immediate: !0 }
|
|
270
|
-
), (
|
|
269
|
+
), (T, j) => {
|
|
271
270
|
var $;
|
|
272
|
-
return fe(), ye("div",
|
|
273
|
-
(fe(),
|
|
271
|
+
return fe(), ye("div", Zn, [
|
|
272
|
+
(fe(), Dn(Re, {
|
|
274
273
|
columns: o.value,
|
|
275
274
|
key: o.value,
|
|
276
275
|
tableData: s.value,
|
|
@@ -280,25 +279,25 @@ const Gt = It("formToTableComp", {
|
|
|
280
279
|
onDbClickRow: F,
|
|
281
280
|
extraButton: x.value,
|
|
282
281
|
onButtonClick: j[0] || (j[0] = (_) => M(_, ""))
|
|
283
|
-
},
|
|
282
|
+
}, Fn({ _: 2 }, [
|
|
284
283
|
(($ = O.value) == null ? void 0 : $.length) > 0 ? {
|
|
285
284
|
name: "actions",
|
|
286
285
|
fn: pe(({ item: _ }) => [
|
|
287
|
-
(fe(!0), ye(
|
|
286
|
+
(fe(!0), ye(Nn, null, Pn(O.value, (L, K) => (fe(), ye("div", { key: K }, [
|
|
288
287
|
H("div", {
|
|
289
|
-
style:
|
|
288
|
+
style: Un({ color: L == null ? void 0 : L.textColor }),
|
|
290
289
|
class: "extra-button-label",
|
|
291
290
|
onClick: (q) => M(L == null ? void 0 : L.label, _)
|
|
292
|
-
}, te(L == null ? void 0 : L.label), 13,
|
|
291
|
+
}, te(L == null ? void 0 : L.label), 13, Qn)
|
|
293
292
|
]))), 128))
|
|
294
293
|
]),
|
|
295
294
|
key: "0"
|
|
296
295
|
} : void 0
|
|
297
296
|
]), 1032, ["columns", "tableData", "isShowPagination", "extraButton"])),
|
|
298
|
-
ee(
|
|
297
|
+
ee(jn, {
|
|
299
298
|
title: u.value,
|
|
300
299
|
visible: C.value,
|
|
301
|
-
width:
|
|
300
|
+
width: w.value,
|
|
302
301
|
onBeforeDestroy: I
|
|
303
302
|
}, {
|
|
304
303
|
default: pe(() => [
|
|
@@ -310,7 +309,7 @@ const Gt = It("formToTableComp", {
|
|
|
310
309
|
}, null, 8, ["rowContents", "isEdit"])
|
|
311
310
|
]),
|
|
312
311
|
footer: pe(() => [
|
|
313
|
-
g.value ? (fe(), ye("div",
|
|
312
|
+
g.value ? (fe(), ye("div", Yn, [
|
|
314
313
|
H("div", {
|
|
315
314
|
onClick: j[1] || (j[1] = (_) => C.value = !1),
|
|
316
315
|
class: "cancel-button"
|
|
@@ -319,14 +318,14 @@ const Gt = It("formToTableComp", {
|
|
|
319
318
|
class: "ok-button",
|
|
320
319
|
onClick: V
|
|
321
320
|
}, te("确认"))
|
|
322
|
-
])) :
|
|
321
|
+
])) : Bn("", !0)
|
|
323
322
|
]),
|
|
324
323
|
_: 1
|
|
325
324
|
}, 8, ["title", "visible", "width"])
|
|
326
325
|
]);
|
|
327
326
|
};
|
|
328
327
|
}
|
|
329
|
-
},
|
|
328
|
+
}, tr = /* @__PURE__ */ Ge(er, [["__scopeId", "data-v-781eace3"]]), je = [
|
|
330
329
|
{
|
|
331
330
|
key: "单选",
|
|
332
331
|
value: "Select"
|
|
@@ -343,7 +342,7 @@ const Gt = It("formToTableComp", {
|
|
|
343
342
|
key: "上传",
|
|
344
343
|
value: "Upload"
|
|
345
344
|
}
|
|
346
|
-
],
|
|
345
|
+
], nr = { class: "form-content" }, rr = {
|
|
347
346
|
__name: "index",
|
|
348
347
|
props: {
|
|
349
348
|
itemData: {
|
|
@@ -384,11 +383,11 @@ const Gt = It("formToTableComp", {
|
|
|
384
383
|
const C = S(n.itemData), O = C == null ? void 0 : C.map((p) => {
|
|
385
384
|
var d;
|
|
386
385
|
return (p == null ? void 0 : p.key) === "formContent" && ((d = p.contents) == null || d.map((l, R) => {
|
|
387
|
-
var y, h, E, v, D, N,
|
|
386
|
+
var y, h, E, v, D, N, w, I, F, J, M, z, V, k;
|
|
388
387
|
return l.type = l != null && l.type ? l.type : (E = (h = (y = l == null ? void 0 : l.key.split("$")) == null ? void 0 : y[1]) == null ? void 0 : h.split("(")) != null && E[0] ? (v = je == null ? void 0 : je.find((X) => {
|
|
389
|
-
var
|
|
390
|
-
return (X == null ? void 0 : X.key) === (($ = (j = (
|
|
391
|
-
})) == null ? void 0 : v.value : "Input", l.options = l != null && l.options ? l.options : ((N = (D = l == null ? void 0 : l.key.split("$")) == null ? void 0 : D[1]) == null ? void 0 : N.length) > 0 ? (F = (I =
|
|
388
|
+
var T, j, $;
|
|
389
|
+
return (X == null ? void 0 : X.key) === (($ = (j = (T = l == null ? void 0 : l.key.split("$")) == null ? void 0 : T[1]) == null ? void 0 : j.split("(")) == null ? void 0 : $[0]);
|
|
390
|
+
})) == null ? void 0 : v.value : "Input", l.options = l != null && l.options ? l.options : ((N = (D = l == null ? void 0 : l.key.split("$")) == null ? void 0 : D[1]) == null ? void 0 : N.length) > 0 ? (F = (I = $n((w = l == null ? void 0 : l.key.split("$")) == null ? void 0 : w[1])) == null ? void 0 : I.split(",")) == null ? void 0 : F.map((X) => ({
|
|
392
391
|
label: X,
|
|
393
392
|
value: X
|
|
394
393
|
})) : [], l != null && l.key.includes("$") && (l.key = (J = l == null ? void 0 : l.key.split("$")) == null ? void 0 : J[0]), l.value = l != null && l.value ? l.value : Array.isArray((M = Object.values(u)) == null ? void 0 : M[R]) ? (V = (z = Object.values(u)) == null ? void 0 : z[R]) == null ? void 0 : V[0] : (k = Object.values(u)) == null ? void 0 : k[R], l;
|
|
@@ -407,12 +406,12 @@ const Gt = It("formToTableComp", {
|
|
|
407
406
|
if ((g == null ? void 0 : g.contents) === "纵向" ? s.value = !1 : s.value = !0, b.value = typeof (O == null ? void 0 : O.contents) != "boolean" ? !(!(O != null && O.contents) === "" || ((R = O == null ? void 0 : O.contents) == null ? void 0 : R.toUpperCase()) === "VERTICAL") : O == null ? void 0 : O.contents, ((y = u == null ? void 0 : u.contents) == null ? void 0 : y.length) > 0 && Array.isArray(u == null ? void 0 : u.contents)) {
|
|
408
407
|
const N = [];
|
|
409
408
|
(h = u == null ? void 0 : u.contents) == null || h.forEach((F, J) => {
|
|
410
|
-
var M, z, V, k, X,
|
|
409
|
+
var M, z, V, k, X, T, j, $, _;
|
|
411
410
|
if ((F == null ? void 0 : F.label) !== "") {
|
|
412
411
|
let L = (F == null ? void 0 : F.key) ?? "", K = (F == null ? void 0 : F.type) ?? "", q = (F == null ? void 0 : F.options) ?? [];
|
|
413
412
|
if (F != null && F.key.includes("$") && (L = (M = S(F == null ? void 0 : F.key).split("$")) == null ? void 0 : M[0], ((V = (z = S(F == null ? void 0 : F.key).split("$")) == null ? void 0 : z[1]) == null ? void 0 : V.length) > 0)) {
|
|
414
413
|
const [W, oe] = (X = (k = S(F == null ? void 0 : F.key).split("$")) == null ? void 0 : k[1]) == null ? void 0 : X.split(/[()]/);
|
|
415
|
-
K = ((
|
|
414
|
+
K = ((T = je.find((se) => (se == null ? void 0 : se.key) === W)) == null ? void 0 : T.value) ?? "", ((j = oe == null ? void 0 : oe.split(",")) == null ? void 0 : j.length) > 0 && (q = ($ = oe == null ? void 0 : oe.split(",")) == null ? void 0 : $.map((se) => ({
|
|
416
415
|
label: se,
|
|
417
416
|
value: se
|
|
418
417
|
})));
|
|
@@ -428,28 +427,28 @@ const Gt = It("formToTableComp", {
|
|
|
428
427
|
});
|
|
429
428
|
}
|
|
430
429
|
});
|
|
431
|
-
const
|
|
430
|
+
const w = (E = S(N)) == null ? void 0 : E.map((F) => F.value);
|
|
432
431
|
let I = "";
|
|
433
|
-
|
|
432
|
+
w == null || w.forEach((F) => {
|
|
434
433
|
F !== "" && F !== void 0 && (I = I === "" ? F : I + "/" + F);
|
|
435
|
-
}), i.setSelectArray(
|
|
434
|
+
}), i.setSelectArray(w), i.setSelectString(I), o.value = N;
|
|
436
435
|
} else
|
|
437
436
|
o.value = [];
|
|
438
437
|
if (((v = C == null ? void 0 : C.contents) == null ? void 0 : v.length) > 0) {
|
|
439
438
|
const N = [];
|
|
440
|
-
(D = C == null ? void 0 : C.contents) == null || D.forEach((
|
|
441
|
-
(
|
|
442
|
-
label: (
|
|
443
|
-
id: (
|
|
444
|
-
type: (
|
|
445
|
-
background:
|
|
439
|
+
(D = C == null ? void 0 : C.contents) == null || D.forEach((w, I) => {
|
|
440
|
+
(w == null ? void 0 : w.label) !== "" && N.push({
|
|
441
|
+
label: (w == null ? void 0 : w.label) ?? "",
|
|
442
|
+
id: (w == null ? void 0 : w.id) ?? I,
|
|
443
|
+
type: (w == null ? void 0 : w.type) ?? "",
|
|
444
|
+
background: w == null ? void 0 : w.background
|
|
446
445
|
});
|
|
447
446
|
}), a.value = N;
|
|
448
447
|
} else
|
|
449
448
|
a.value = [];
|
|
450
449
|
},
|
|
451
450
|
{ deep: !0, immediate: !0 }
|
|
452
|
-
), (u, C) => (fe(), ye("div",
|
|
451
|
+
), (u, C) => (fe(), ye("div", nr, [
|
|
453
452
|
ee(Ie, {
|
|
454
453
|
rowContents: o.value,
|
|
455
454
|
buttonValue: a.value,
|
|
@@ -461,7 +460,7 @@ const Gt = It("formToTableComp", {
|
|
|
461
460
|
}, null, 8, ["rowContents", "buttonValue", "isRowFlex", "isButtonRow"])
|
|
462
461
|
]));
|
|
463
462
|
}
|
|
464
|
-
},
|
|
463
|
+
}, or = /* @__PURE__ */ Ge(rr, [["__scopeId", "data-v-156885e4"]]), sr = { class: "table-operate-content" }, ar = { class: "table-operate-item" }, ir = { class: "operate-title" }, lr = { class: "operate-content" }, cr = { class: "operate-title" }, ur = { class: "operate-content" }, fr = { class: "operate-title" }, pr = { class: "operate-content" }, dr = { class: "operate-content" }, hr = {
|
|
465
464
|
__name: "operate",
|
|
466
465
|
props: {
|
|
467
466
|
itemContents: {
|
|
@@ -599,8 +598,8 @@ const Gt = It("formToTableComp", {
|
|
|
599
598
|
be(
|
|
600
599
|
() => n.originalItemContents,
|
|
601
600
|
() => {
|
|
602
|
-
var y, h, E, v, D, N,
|
|
603
|
-
!n.originalItemContents || n.originalItemContents.length === 0 || (o.value = S(n.originalItemContents), s.value = (h = (y = o.value) == null ? void 0 : y.find((k) => (k == null ? void 0 : k.key) === "header")) == null ? void 0 : h.contents, a.value = (v = (E = o.value) == null ? void 0 : E.find((k) => (k == null ? void 0 : k.key) === "rowButton")) == null ? void 0 : v.contents, i.value = (N = (D = o.value) == null ? void 0 : D.find((k) => (k == null ? void 0 : k.key) === "extraButton")) == null ? void 0 : N.contents, u.value = (I = (
|
|
601
|
+
var y, h, E, v, D, N, w, I, F, J, M, z, V;
|
|
602
|
+
!n.originalItemContents || n.originalItemContents.length === 0 || (o.value = S(n.originalItemContents), s.value = (h = (y = o.value) == null ? void 0 : y.find((k) => (k == null ? void 0 : k.key) === "header")) == null ? void 0 : h.contents, a.value = (v = (E = o.value) == null ? void 0 : E.find((k) => (k == null ? void 0 : k.key) === "rowButton")) == null ? void 0 : v.contents, i.value = (N = (D = o.value) == null ? void 0 : D.find((k) => (k == null ? void 0 : k.key) === "extraButton")) == null ? void 0 : N.contents, u.value = (I = (w = o.value) == null ? void 0 : w.find((k) => (k == null ? void 0 : k.key) === "page")) != null && I.contents ? [{
|
|
604
603
|
name: "isPagination",
|
|
605
604
|
label: "是否显示分页",
|
|
606
605
|
type: "Switch",
|
|
@@ -732,9 +731,9 @@ const Gt = It("formToTableComp", {
|
|
|
732
731
|
{ deep: !0, immediate: !0 }
|
|
733
732
|
), (y, h) => {
|
|
734
733
|
const E = Kt("el-button");
|
|
735
|
-
return fe(), ye("div",
|
|
736
|
-
H("div",
|
|
737
|
-
H("div",
|
|
734
|
+
return fe(), ye("div", sr, [
|
|
735
|
+
H("div", ar, [
|
|
736
|
+
H("div", ir, [
|
|
738
737
|
h[1] || (h[1] = H("div", null, te("表头"), -1)),
|
|
739
738
|
ee(E, {
|
|
740
739
|
class: "blue-operate-button",
|
|
@@ -748,7 +747,7 @@ const Gt = It("formToTableComp", {
|
|
|
748
747
|
__: [0]
|
|
749
748
|
})
|
|
750
749
|
]),
|
|
751
|
-
H("div",
|
|
750
|
+
H("div", lr, [
|
|
752
751
|
ee(Re, {
|
|
753
752
|
columns: C,
|
|
754
753
|
isShowPagination: !1,
|
|
@@ -758,7 +757,7 @@ const Gt = It("formToTableComp", {
|
|
|
758
757
|
onDeleteRow: R
|
|
759
758
|
}, null, 8, ["tableData"])
|
|
760
759
|
]),
|
|
761
|
-
H("div",
|
|
760
|
+
H("div", cr, [
|
|
762
761
|
h[3] || (h[3] = H("div", null, te("行内按钮"), -1)),
|
|
763
762
|
ee(E, {
|
|
764
763
|
class: "blue-operate-button",
|
|
@@ -772,7 +771,7 @@ const Gt = It("formToTableComp", {
|
|
|
772
771
|
__: [2]
|
|
773
772
|
})
|
|
774
773
|
]),
|
|
775
|
-
H("div",
|
|
774
|
+
H("div", ur, [
|
|
776
775
|
ee(Re, {
|
|
777
776
|
columns: b.value,
|
|
778
777
|
isShowPagination: !1,
|
|
@@ -782,7 +781,7 @@ const Gt = It("formToTableComp", {
|
|
|
782
781
|
onDeleteRow: d
|
|
783
782
|
}, null, 8, ["columns", "tableData"])
|
|
784
783
|
]),
|
|
785
|
-
H("div",
|
|
784
|
+
H("div", fr, [
|
|
786
785
|
h[5] || (h[5] = H("div", null, te("表格外部按钮"), -1)),
|
|
787
786
|
ee(E, {
|
|
788
787
|
class: "blue-operate-button",
|
|
@@ -796,7 +795,7 @@ const Gt = It("formToTableComp", {
|
|
|
796
795
|
__: [4]
|
|
797
796
|
})
|
|
798
797
|
]),
|
|
799
|
-
H("div",
|
|
798
|
+
H("div", pr, [
|
|
800
799
|
ee(Re, {
|
|
801
800
|
columns: i.value,
|
|
802
801
|
isShowPagination: !1,
|
|
@@ -809,7 +808,7 @@ const Gt = It("formToTableComp", {
|
|
|
809
808
|
h[6] || (h[6] = H("div", { class: "operate-title" }, [
|
|
810
809
|
H("div", null, te("分页"))
|
|
811
810
|
], -1)),
|
|
812
|
-
H("div",
|
|
811
|
+
H("div", dr, [
|
|
813
812
|
ee(Ie, {
|
|
814
813
|
rowContents: u.value,
|
|
815
814
|
onChange: O
|
|
@@ -819,7 +818,7 @@ const Gt = It("formToTableComp", {
|
|
|
819
818
|
]);
|
|
820
819
|
};
|
|
821
820
|
}
|
|
822
|
-
},
|
|
821
|
+
}, yr = /* @__PURE__ */ Ge(hr, [["__scopeId", "data-v-877911eb"]]), mr = { class: "form-operate-content" }, br = { class: "form-operate-item" }, gr = { class: "operate-title" }, kr = { class: "operate-content" }, Er = { class: "operate-title" }, vr = { class: "operate-content" }, Sr = { class: "operate-content" }, Rr = {
|
|
823
822
|
__name: "operate",
|
|
824
823
|
props: {
|
|
825
824
|
itemContents: {
|
|
@@ -882,22 +881,22 @@ const Gt = It("formToTableComp", {
|
|
|
882
881
|
() => n.originalItemContents,
|
|
883
882
|
() => {
|
|
884
883
|
var p, d, l, R, y, h, E, v, D, N;
|
|
885
|
-
!n.originalItemContents || n.originalItemContents.length === 0 || (b.value = S(n.originalItemContents), f.value = (d = (p = b.value) == null ? void 0 : p.find((
|
|
886
|
-
label: (
|
|
887
|
-
type: (
|
|
888
|
-
key: (
|
|
889
|
-
options: (
|
|
890
|
-
id: (
|
|
891
|
-
}), i.value = (h = i.value) == null ? void 0 : h.map((
|
|
892
|
-
label: (
|
|
893
|
-
type: (
|
|
894
|
-
background: (
|
|
895
|
-
id: (
|
|
896
|
-
}), o.value = (v = (E = b.value) == null ? void 0 : E.find((
|
|
884
|
+
!n.originalItemContents || n.originalItemContents.length === 0 || (b.value = S(n.originalItemContents), f.value = (d = (p = b.value) == null ? void 0 : p.find((w) => (w == null ? void 0 : w.key) === "formContent")) == null ? void 0 : d.contents, i.value = (R = (l = b.value) == null ? void 0 : l.find((w) => (w == null ? void 0 : w.key) === "formButton")) == null ? void 0 : R.contents, f.value = (y = f.value) == null ? void 0 : y.map((w, I) => w = {
|
|
885
|
+
label: (w == null ? void 0 : w.label) ?? "",
|
|
886
|
+
type: (w == null ? void 0 : w.type) ?? "",
|
|
887
|
+
key: (w == null ? void 0 : w.key) ?? "",
|
|
888
|
+
options: (w == null ? void 0 : w.options) ?? "",
|
|
889
|
+
id: (w == null ? void 0 : w.id) ?? I
|
|
890
|
+
}), i.value = (h = i.value) == null ? void 0 : h.map((w, I) => w = {
|
|
891
|
+
label: (w == null ? void 0 : w.label) ?? "",
|
|
892
|
+
type: (w == null ? void 0 : w.type) ?? "",
|
|
893
|
+
background: (w == null ? void 0 : w.background) ?? "#000000",
|
|
894
|
+
id: (w == null ? void 0 : w.id) ?? I
|
|
895
|
+
}), o.value = (v = (E = b.value) == null ? void 0 : E.find((w) => (w == null ? void 0 : w.key) === "formFlex")) != null && v.contents ? [{
|
|
897
896
|
name: "isRowFlex",
|
|
898
897
|
label: "是否横向布局",
|
|
899
898
|
type: "Switch",
|
|
900
|
-
value: (N = (D = b.value) == null ? void 0 : D.find((
|
|
899
|
+
value: (N = (D = b.value) == null ? void 0 : D.find((w) => (w == null ? void 0 : w.key) === "formFlex")) == null ? void 0 : N.contents
|
|
901
900
|
}] : [{
|
|
902
901
|
name: "isRowFlex",
|
|
903
902
|
label: "是否横向布局",
|
|
@@ -969,9 +968,9 @@ const Gt = It("formToTableComp", {
|
|
|
969
968
|
{ deep: !0, immediate: !0 }
|
|
970
969
|
), (p, d) => {
|
|
971
970
|
const l = Kt("el-button");
|
|
972
|
-
return fe(), ye("div",
|
|
973
|
-
H("div",
|
|
974
|
-
H("div",
|
|
971
|
+
return fe(), ye("div", mr, [
|
|
972
|
+
H("div", br, [
|
|
973
|
+
H("div", gr, [
|
|
975
974
|
d[1] || (d[1] = H("div", null, te("表单信息"), -1)),
|
|
976
975
|
ee(l, {
|
|
977
976
|
class: "blue-operate-button",
|
|
@@ -985,7 +984,7 @@ const Gt = It("formToTableComp", {
|
|
|
985
984
|
__: [0]
|
|
986
985
|
})
|
|
987
986
|
]),
|
|
988
|
-
H("div",
|
|
987
|
+
H("div", kr, [
|
|
989
988
|
ee(Re, {
|
|
990
989
|
columns: s.value,
|
|
991
990
|
isShowPagination: !1,
|
|
@@ -995,7 +994,7 @@ const Gt = It("formToTableComp", {
|
|
|
995
994
|
onDeleteRow: g
|
|
996
995
|
}, null, 8, ["columns", "tableData"])
|
|
997
996
|
]),
|
|
998
|
-
H("div",
|
|
997
|
+
H("div", Er, [
|
|
999
998
|
d[3] || (d[3] = H("div", null, te("表单按钮"), -1)),
|
|
1000
999
|
ee(l, {
|
|
1001
1000
|
class: "blue-operate-button",
|
|
@@ -1009,7 +1008,7 @@ const Gt = It("formToTableComp", {
|
|
|
1009
1008
|
__: [2]
|
|
1010
1009
|
})
|
|
1011
1010
|
]),
|
|
1012
|
-
H("div",
|
|
1011
|
+
H("div", vr, [
|
|
1013
1012
|
ee(Re, {
|
|
1014
1013
|
columns: a.value,
|
|
1015
1014
|
isShowPagination: !1,
|
|
@@ -1022,7 +1021,7 @@ const Gt = It("formToTableComp", {
|
|
|
1022
1021
|
d[4] || (d[4] = H("div", { class: "operate-title" }, [
|
|
1023
1022
|
H("div", null, te("表单布局"))
|
|
1024
1023
|
], -1)),
|
|
1025
|
-
H("div",
|
|
1024
|
+
H("div", Sr, [
|
|
1026
1025
|
ee(Ie, {
|
|
1027
1026
|
rowContents: o.value,
|
|
1028
1027
|
onChange: x
|
|
@@ -1032,7 +1031,7 @@ const Gt = It("formToTableComp", {
|
|
|
1032
1031
|
]);
|
|
1033
1032
|
};
|
|
1034
1033
|
}
|
|
1035
|
-
},
|
|
1034
|
+
}, Or = /* @__PURE__ */ Ge(Rr, [["__scopeId", "data-v-a36b8468"]]), Ss = B([
|
|
1036
1035
|
{
|
|
1037
1036
|
name: "表格",
|
|
1038
1037
|
type: "table",
|
|
@@ -1052,14 +1051,14 @@ const Gt = It("formToTableComp", {
|
|
|
1052
1051
|
icon: "Fold"
|
|
1053
1052
|
}
|
|
1054
1053
|
]), wr = {
|
|
1055
|
-
Table:
|
|
1056
|
-
Form:
|
|
1057
|
-
TableOperate:
|
|
1058
|
-
FormOperate:
|
|
1059
|
-
Fold:
|
|
1054
|
+
Table: tr,
|
|
1055
|
+
Form: or,
|
|
1056
|
+
TableOperate: yr,
|
|
1057
|
+
FormOperate: Or,
|
|
1058
|
+
Fold: Mn
|
|
1060
1059
|
// 添加其他组件...
|
|
1061
1060
|
};
|
|
1062
|
-
function
|
|
1061
|
+
function Rs(e) {
|
|
1063
1062
|
return wr[e] || null;
|
|
1064
1063
|
}
|
|
1065
1064
|
const Y = [
|
|
@@ -1128,7 +1127,7 @@ const Y = [
|
|
|
1128
1127
|
key: "GroupContents",
|
|
1129
1128
|
value: "groupContents"
|
|
1130
1129
|
}
|
|
1131
|
-
], $e = B(0), ot = B(0),
|
|
1130
|
+
], $e = B(0), ot = B(0), Tr = (e) => {
|
|
1132
1131
|
let t;
|
|
1133
1132
|
e.includes(`\r
|
|
1134
1133
|
`) ? t = e.split(`\r
|
|
@@ -1139,7 +1138,7 @@ const Y = [
|
|
|
1139
1138
|
for (const o of t)
|
|
1140
1139
|
o.includes("{") || r.includes("{") || o.includes("[") || r.includes("[") || o.includes("【") || r.includes("【") || o.includes("(") || r.includes("(") || o.includes("(") || r.includes("(") ? (r += o.trim(), S(r).split("{").length - 1 === S(r).split("}").length - 1 && S(r).split("【").length - 1 === S(r).split("】").length - 1 && S(r).split("[").length - 1 === S(r).split("]").length - 1 && S(r).split("(").length - 1 === S(r).split(")").length - 1 && S(r).split("(").length - 1 === S(r).split(")").length - 1 && (n.push(r), r = "")) : n.push(o.trim());
|
|
1141
1140
|
return n;
|
|
1142
|
-
},
|
|
1141
|
+
}, Ar = (e) => {
|
|
1143
1142
|
const t = e.trim().replace(/^'|'$/g, ""), n = /((?:\$?[a-zA-Z_][a-zA-Z0-9_]*\$?\([^)]*\))|[a-zA-Z_][a-zA-Z0-9_]*)\s*=\s*(.*?)(?=\s*(?:(?:\$?[a-zA-Z_][a-zA-Z0-9_]*\$?\([^)]*\))|[a-zA-Z_][a-zA-Z0-9_]*)\s*=|$)/g, r = {};
|
|
1144
1143
|
let o;
|
|
1145
1144
|
for (; (o = n.exec(t)) !== null; ) {
|
|
@@ -1151,11 +1150,11 @@ const Y = [
|
|
|
1151
1150
|
}, en = (e) => {
|
|
1152
1151
|
const [t, n] = e.split("=").map((s) => s.trim()), r = t.replace(/['"]/g, ""), o = n.replace(/^['"]|['"]$/g, "");
|
|
1153
1152
|
return { key: r, value: o };
|
|
1154
|
-
},
|
|
1153
|
+
}, Cr = (e) => {
|
|
1155
1154
|
var a;
|
|
1156
1155
|
let t = [];
|
|
1157
1156
|
const [n, r] = e.split(/=(.+)/), o = n.replace(/['"]/g, "").trim(), s = r.replace(/^['"]|['"]$/g, "");
|
|
1158
|
-
return (a = Object.values(
|
|
1157
|
+
return (a = Object.values(Ar(s))) == null || a.forEach((i) => {
|
|
1159
1158
|
t.push(en(i));
|
|
1160
1159
|
}), { key: o, value: t };
|
|
1161
1160
|
}, qe = (e) => {
|
|
@@ -1200,7 +1199,7 @@ const Y = [
|
|
|
1200
1199
|
} catch (t) {
|
|
1201
1200
|
return console.error("转换失败:", t), [];
|
|
1202
1201
|
}
|
|
1203
|
-
},
|
|
1202
|
+
}, xr = (e, t) => {
|
|
1204
1203
|
try {
|
|
1205
1204
|
if (Y != null && Y.find((n) => (n == null ? void 0 : n.key) === t))
|
|
1206
1205
|
return JSON.parse(e.replace(/[’]|[‘]|[']/g, '"'));
|
|
@@ -1218,7 +1217,7 @@ const Y = [
|
|
|
1218
1217
|
} catch (n) {
|
|
1219
1218
|
return console.error("解析失败:", n), e;
|
|
1220
1219
|
}
|
|
1221
|
-
},
|
|
1220
|
+
}, _r = (e) => ({ [e == null ? void 0 : e.key]: xr(e == null ? void 0 : e.value, e == null ? void 0 : e.key) }), Dr = (e) => {
|
|
1222
1221
|
try {
|
|
1223
1222
|
if (S(e).split("[").length - 1 > 1) {
|
|
1224
1223
|
const t = S(e).replace(/[’]|[‘]|[']/g, '"').replaceAll(/,/g, ",").replaceAll("(", "[").replaceAll(")", "]").replaceAll("],]", "]]");
|
|
@@ -1228,13 +1227,13 @@ const Y = [
|
|
|
1228
1227
|
} catch (t) {
|
|
1229
1228
|
return console.error("解析失败:", t), e;
|
|
1230
1229
|
}
|
|
1231
|
-
},
|
|
1230
|
+
}, Fr = (e) => {
|
|
1232
1231
|
var t, n, r, o, s, a;
|
|
1233
1232
|
try {
|
|
1234
|
-
const i =
|
|
1233
|
+
const i = Tr((n = (t = S(e)) == null ? void 0 : t.replace("(", "(")) == null ? void 0 : n.replace(")", ")")), b = (r = S(i)) == null ? void 0 : r.map((u) => {
|
|
1235
1234
|
var O, g;
|
|
1236
1235
|
let C = (g = (O = S(u)) == null ? void 0 : O.split("=")) == null ? void 0 : g[0];
|
|
1237
|
-
return C != null && C.includes("GroupContents") ?
|
|
1236
|
+
return C != null && C.includes("GroupContents") ? Cr(u) : en(u);
|
|
1238
1237
|
}), f = [];
|
|
1239
1238
|
(o = S(b)) == null || o.forEach((u) => {
|
|
1240
1239
|
var C, O, g, x, p;
|
|
@@ -1270,9 +1269,9 @@ const Y = [
|
|
|
1270
1269
|
if ((O == null ? void 0 : O.key) === "formFlex")
|
|
1271
1270
|
O.contents = ((x = (g = O.contents) == null ? void 0 : g.replace(/[’]|[‘]|[']/g, "")) == null ? void 0 : x.toUpperCase()) !== "Vertical".toUpperCase();
|
|
1272
1271
|
else if ((O == null ? void 0 : O.key) === "groupContents")
|
|
1273
|
-
O.contents = (p = S(O.contents)) == null ? void 0 : p.map((N) =>
|
|
1272
|
+
O.contents = (p = S(O.contents)) == null ? void 0 : p.map((N) => _r(S(N)));
|
|
1274
1273
|
else if (((l = (d = O.contents) == null ? void 0 : d.trim()) != null && l.startsWith("[") || (y = (R = O.contents) == null ? void 0 : R.trim()) != null && y.startsWith("【")) && ((E = (h = O.contents) == null ? void 0 : h.trim()) != null && E.endsWith("]") || (D = (v = O.contents) == null ? void 0 : v.trim()) != null && D.endsWith("】")))
|
|
1275
|
-
O.contents =
|
|
1274
|
+
O.contents = Dr(S(O.contents));
|
|
1276
1275
|
else {
|
|
1277
1276
|
if (!O.contents) return;
|
|
1278
1277
|
O.contents = tn(S(O.contents));
|
|
@@ -1286,7 +1285,7 @@ const Y = [
|
|
|
1286
1285
|
var x;
|
|
1287
1286
|
let g = [];
|
|
1288
1287
|
return (x = O.contents) == null || x.forEach((p) => {
|
|
1289
|
-
var d, l, R, y, h, E, v, D, N,
|
|
1288
|
+
var d, l, R, y, h, E, v, D, N, w, I, F;
|
|
1290
1289
|
if (Y != null && Y.find((J) => {
|
|
1291
1290
|
var M, z, V;
|
|
1292
1291
|
return ((M = J == null ? void 0 : J.key) == null ? void 0 : M.toUpperCase()) === ((V = (z = Object.keys(p)) == null ? void 0 : z[0]) == null ? void 0 : V.toUpperCase());
|
|
@@ -1312,7 +1311,7 @@ const Y = [
|
|
|
1312
1311
|
contents: (E = Object.values(p)) == null ? void 0 : E[0]
|
|
1313
1312
|
});
|
|
1314
1313
|
} else if ((D = (v = Object.keys(p)) == null ? void 0 : v[0]) != null && D.includes("$")) {
|
|
1315
|
-
const J = (
|
|
1314
|
+
const J = (w = (N = Object.keys(S(p))) == null ? void 0 : N[0]) == null ? void 0 : w.split("$");
|
|
1316
1315
|
g[(g == null ? void 0 : g.length) - 1].compData.push({
|
|
1317
1316
|
key: (I = Q == null ? void 0 : Q.find((M) => {
|
|
1318
1317
|
var z, V;
|
|
@@ -1329,29 +1328,29 @@ const Y = [
|
|
|
1329
1328
|
} catch {
|
|
1330
1329
|
return !1;
|
|
1331
1330
|
}
|
|
1332
|
-
},
|
|
1333
|
-
function
|
|
1331
|
+
}, Os = (e) => Fr(e);
|
|
1332
|
+
function nn(e, t) {
|
|
1334
1333
|
return function() {
|
|
1335
1334
|
return e.apply(t, arguments);
|
|
1336
1335
|
};
|
|
1337
1336
|
}
|
|
1338
|
-
const { toString: Nr } = Object.prototype, { getPrototypeOf: mt } = Object, { iterator: Xe, toStringTag:
|
|
1337
|
+
const { toString: Nr } = Object.prototype, { getPrototypeOf: mt } = Object, { iterator: Xe, toStringTag: rn } = Symbol, Ze = /* @__PURE__ */ ((e) => (t) => {
|
|
1339
1338
|
const n = Nr.call(t);
|
|
1340
1339
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
1341
|
-
})(/* @__PURE__ */ Object.create(null)), ie = (e) => (e = e.toLowerCase(), (t) => Ze(t) === e), Qe = (e) => (t) => typeof t === e, { isArray:
|
|
1340
|
+
})(/* @__PURE__ */ Object.create(null)), ie = (e) => (e = e.toLowerCase(), (t) => Ze(t) === e), Qe = (e) => (t) => typeof t === e, { isArray: we } = Array, Pe = Qe("undefined");
|
|
1342
1341
|
function Pr(e) {
|
|
1343
1342
|
return e !== null && !Pe(e) && e.constructor !== null && !Pe(e.constructor) && ne(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
1344
1343
|
}
|
|
1345
|
-
const
|
|
1344
|
+
const on = ie("ArrayBuffer");
|
|
1346
1345
|
function Ur(e) {
|
|
1347
1346
|
let t;
|
|
1348
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer &&
|
|
1347
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && on(e.buffer), t;
|
|
1349
1348
|
}
|
|
1350
|
-
const Br = Qe("string"), ne = Qe("function"),
|
|
1349
|
+
const Br = Qe("string"), ne = Qe("function"), sn = Qe("number"), Ye = (e) => e !== null && typeof e == "object", jr = (e) => e === !0 || e === !1, Je = (e) => {
|
|
1351
1350
|
if (Ze(e) !== "object")
|
|
1352
1351
|
return !1;
|
|
1353
1352
|
const t = mt(e);
|
|
1354
|
-
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(
|
|
1353
|
+
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(rn in e) && !(Xe in e);
|
|
1355
1354
|
}, $r = ie("Date"), Lr = ie("File"), qr = ie("Blob"), Jr = ie("FileList"), Mr = (e) => Ye(e) && ne(e.pipe), zr = (e) => {
|
|
1356
1355
|
let t;
|
|
1357
1356
|
return e && (typeof FormData == "function" && e instanceof FormData || ne(e.append) && ((t = Ze(e)) === "formdata" || // detect form-data instance
|
|
@@ -1361,7 +1360,7 @@ function Ue(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
|
1361
1360
|
if (e === null || typeof e > "u")
|
|
1362
1361
|
return;
|
|
1363
1362
|
let r, o;
|
|
1364
|
-
if (typeof e != "object" && (e = [e]),
|
|
1363
|
+
if (typeof e != "object" && (e = [e]), we(e))
|
|
1365
1364
|
for (r = 0, o = e.length; r < o; r++)
|
|
1366
1365
|
t.call(null, e[r], r, e);
|
|
1367
1366
|
else {
|
|
@@ -1371,7 +1370,7 @@ function Ue(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
|
1371
1370
|
i = s[r], t.call(null, e[i], i, e);
|
|
1372
1371
|
}
|
|
1373
1372
|
}
|
|
1374
|
-
function
|
|
1373
|
+
function an(e, t) {
|
|
1375
1374
|
t = t.toLowerCase();
|
|
1376
1375
|
const n = Object.keys(e);
|
|
1377
1376
|
let r = n.length, o;
|
|
@@ -1380,18 +1379,18 @@ function ln(e, t) {
|
|
|
1380
1379
|
return o;
|
|
1381
1380
|
return null;
|
|
1382
1381
|
}
|
|
1383
|
-
const me = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global,
|
|
1382
|
+
const me = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, ln = (e) => !Pe(e) && e !== me;
|
|
1384
1383
|
function lt() {
|
|
1385
|
-
const { caseless: e } =
|
|
1386
|
-
const s = e &&
|
|
1387
|
-
Je(t[s]) && Je(r) ? t[s] = lt(t[s], r) : Je(r) ? t[s] = lt({}, r) :
|
|
1384
|
+
const { caseless: e } = ln(this) && this || {}, t = {}, n = (r, o) => {
|
|
1385
|
+
const s = e && an(t, o) || o;
|
|
1386
|
+
Je(t[s]) && Je(r) ? t[s] = lt(t[s], r) : Je(r) ? t[s] = lt({}, r) : we(r) ? t[s] = r.slice() : t[s] = r;
|
|
1388
1387
|
};
|
|
1389
1388
|
for (let r = 0, o = arguments.length; r < o; r++)
|
|
1390
1389
|
arguments[r] && Ue(arguments[r], n);
|
|
1391
1390
|
return t;
|
|
1392
1391
|
}
|
|
1393
1392
|
const Xr = (e, t, n, { allOwnKeys: r } = {}) => (Ue(t, (o, s) => {
|
|
1394
|
-
n && ne(o) ? e[s] =
|
|
1393
|
+
n && ne(o) ? e[s] = nn(o, n) : e[s] = o;
|
|
1395
1394
|
}, { allOwnKeys: r }), e), Zr = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Qr = (e, t, n, r) => {
|
|
1396
1395
|
e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
1397
1396
|
value: t.prototype
|
|
@@ -1412,9 +1411,9 @@ const Xr = (e, t, n, { allOwnKeys: r } = {}) => (Ue(t, (o, s) => {
|
|
|
1412
1411
|
return r !== -1 && r === n;
|
|
1413
1412
|
}, to = (e) => {
|
|
1414
1413
|
if (!e) return null;
|
|
1415
|
-
if (
|
|
1414
|
+
if (we(e)) return e;
|
|
1416
1415
|
let t = e.length;
|
|
1417
|
-
if (!
|
|
1416
|
+
if (!sn(t)) return null;
|
|
1418
1417
|
const n = new Array(t);
|
|
1419
1418
|
for (; t-- > 0; )
|
|
1420
1419
|
n[t] = e[t];
|
|
@@ -1437,14 +1436,14 @@ const Xr = (e, t, n, { allOwnKeys: r } = {}) => (Ue(t, (o, s) => {
|
|
|
1437
1436
|
function(n, r, o) {
|
|
1438
1437
|
return r.toUpperCase() + o;
|
|
1439
1438
|
}
|
|
1440
|
-
), Pt = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), io = ie("RegExp"),
|
|
1439
|
+
), Pt = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), io = ie("RegExp"), cn = (e, t) => {
|
|
1441
1440
|
const n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
1442
1441
|
Ue(n, (o, s) => {
|
|
1443
1442
|
let a;
|
|
1444
1443
|
(a = t(o, s, e)) !== !1 && (r[s] = a || o);
|
|
1445
1444
|
}), Object.defineProperties(e, r);
|
|
1446
1445
|
}, lo = (e) => {
|
|
1447
|
-
|
|
1446
|
+
cn(e, (t, n) => {
|
|
1448
1447
|
if (ne(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
1449
1448
|
return !1;
|
|
1450
1449
|
const r = e[n];
|
|
@@ -1464,11 +1463,11 @@ const Xr = (e, t, n, { allOwnKeys: r } = {}) => (Ue(t, (o, s) => {
|
|
|
1464
1463
|
n[s] = !0;
|
|
1465
1464
|
});
|
|
1466
1465
|
};
|
|
1467
|
-
return
|
|
1466
|
+
return we(e) ? r(e) : r(String(e).split(t)), n;
|
|
1468
1467
|
}, uo = () => {
|
|
1469
1468
|
}, fo = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
1470
1469
|
function po(e) {
|
|
1471
|
-
return !!(e && ne(e.append) && e[
|
|
1470
|
+
return !!(e && ne(e.append) && e[rn] === "FormData" && e[Xe]);
|
|
1472
1471
|
}
|
|
1473
1472
|
const ho = (e) => {
|
|
1474
1473
|
const t = new Array(10), n = (r, o) => {
|
|
@@ -1477,7 +1476,7 @@ const ho = (e) => {
|
|
|
1477
1476
|
return;
|
|
1478
1477
|
if (!("toJSON" in r)) {
|
|
1479
1478
|
t[o] = r;
|
|
1480
|
-
const s =
|
|
1479
|
+
const s = we(r) ? [] : {};
|
|
1481
1480
|
return Ue(r, (a, i) => {
|
|
1482
1481
|
const b = n(a, o + 1);
|
|
1483
1482
|
!Pe(b) && (s[i] = b);
|
|
@@ -1487,21 +1486,21 @@ const ho = (e) => {
|
|
|
1487
1486
|
return r;
|
|
1488
1487
|
};
|
|
1489
1488
|
return n(e, 0);
|
|
1490
|
-
}, yo = ie("AsyncFunction"), mo = (e) => e && (Ye(e) || ne(e)) && ne(e.then) && ne(e.catch),
|
|
1489
|
+
}, yo = ie("AsyncFunction"), mo = (e) => e && (Ye(e) || ne(e)) && ne(e.then) && ne(e.catch), un = ((e, t) => e ? setImmediate : t ? ((n, r) => (me.addEventListener("message", ({ source: o, data: s }) => {
|
|
1491
1490
|
o === me && s === n && r.length && r.shift()();
|
|
1492
1491
|
}, !1), (o) => {
|
|
1493
1492
|
r.push(o), me.postMessage(n, "*");
|
|
1494
1493
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
1495
1494
|
typeof setImmediate == "function",
|
|
1496
1495
|
ne(me.postMessage)
|
|
1497
|
-
), bo = typeof queueMicrotask < "u" ? queueMicrotask.bind(me) : typeof process < "u" && process.nextTick ||
|
|
1498
|
-
isArray:
|
|
1499
|
-
isArrayBuffer:
|
|
1496
|
+
), bo = typeof queueMicrotask < "u" ? queueMicrotask.bind(me) : typeof process < "u" && process.nextTick || un, go = (e) => e != null && ne(e[Xe]), c = {
|
|
1497
|
+
isArray: we,
|
|
1498
|
+
isArrayBuffer: on,
|
|
1500
1499
|
isBuffer: Pr,
|
|
1501
1500
|
isFormData: zr,
|
|
1502
1501
|
isArrayBufferView: Ur,
|
|
1503
1502
|
isString: Br,
|
|
1504
|
-
isNumber:
|
|
1503
|
+
isNumber: sn,
|
|
1505
1504
|
isBoolean: jr,
|
|
1506
1505
|
isObject: Ye,
|
|
1507
1506
|
isPlainObject: Je,
|
|
@@ -1536,20 +1535,20 @@ const ho = (e) => {
|
|
|
1536
1535
|
hasOwnProperty: Pt,
|
|
1537
1536
|
hasOwnProp: Pt,
|
|
1538
1537
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
1539
|
-
reduceDescriptors:
|
|
1538
|
+
reduceDescriptors: cn,
|
|
1540
1539
|
freezeMethods: lo,
|
|
1541
1540
|
toObjectSet: co,
|
|
1542
1541
|
toCamelCase: ao,
|
|
1543
1542
|
noop: uo,
|
|
1544
1543
|
toFiniteNumber: fo,
|
|
1545
|
-
findKey:
|
|
1544
|
+
findKey: an,
|
|
1546
1545
|
global: me,
|
|
1547
|
-
isContextDefined:
|
|
1546
|
+
isContextDefined: ln,
|
|
1548
1547
|
isSpecCompliantForm: po,
|
|
1549
1548
|
toJSONObject: ho,
|
|
1550
1549
|
isAsyncFn: yo,
|
|
1551
1550
|
isThenable: mo,
|
|
1552
|
-
setImmediate:
|
|
1551
|
+
setImmediate: un,
|
|
1553
1552
|
asap: bo,
|
|
1554
1553
|
isIterable: go
|
|
1555
1554
|
};
|
|
@@ -1577,7 +1576,7 @@ c.inherits(U, Error, {
|
|
|
1577
1576
|
};
|
|
1578
1577
|
}
|
|
1579
1578
|
});
|
|
1580
|
-
const
|
|
1579
|
+
const fn = U.prototype, pn = {};
|
|
1581
1580
|
[
|
|
1582
1581
|
"ERR_BAD_OPTION_VALUE",
|
|
1583
1582
|
"ERR_BAD_OPTION",
|
|
@@ -1593,12 +1592,12 @@ const pn = U.prototype, dn = {};
|
|
|
1593
1592
|
"ERR_INVALID_URL"
|
|
1594
1593
|
// eslint-disable-next-line func-names
|
|
1595
1594
|
].forEach((e) => {
|
|
1596
|
-
|
|
1595
|
+
pn[e] = { value: e };
|
|
1597
1596
|
});
|
|
1598
|
-
Object.defineProperties(U,
|
|
1599
|
-
Object.defineProperty(
|
|
1597
|
+
Object.defineProperties(U, pn);
|
|
1598
|
+
Object.defineProperty(fn, "isAxiosError", { value: !0 });
|
|
1600
1599
|
U.from = (e, t, n, r, o, s) => {
|
|
1601
|
-
const a = Object.create(
|
|
1600
|
+
const a = Object.create(fn);
|
|
1602
1601
|
return c.toFlatObject(e, a, function(b) {
|
|
1603
1602
|
return b !== Error.prototype;
|
|
1604
1603
|
}, (i) => i !== "isAxiosError"), U.call(a, e.message, t, n, r, o), a.cause = e, a.name = e.name, s && Object.assign(a, s), a;
|
|
@@ -1607,12 +1606,12 @@ const ko = null;
|
|
|
1607
1606
|
function ct(e) {
|
|
1608
1607
|
return c.isPlainObject(e) || c.isArray(e);
|
|
1609
1608
|
}
|
|
1610
|
-
function
|
|
1609
|
+
function dn(e) {
|
|
1611
1610
|
return c.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
1612
1611
|
}
|
|
1613
1612
|
function Ut(e, t, n) {
|
|
1614
1613
|
return e ? e.concat(t).map(function(o, s) {
|
|
1615
|
-
return o =
|
|
1614
|
+
return o = dn(o), !n && s ? "[" + o + "]" : o;
|
|
1616
1615
|
}).join(n ? "." : "") : t;
|
|
1617
1616
|
}
|
|
1618
1617
|
function Eo(e) {
|
|
@@ -1648,7 +1647,7 @@ function et(e, t, n) {
|
|
|
1648
1647
|
if (c.endsWith(x, "{}"))
|
|
1649
1648
|
x = r ? x : x.slice(0, -2), g = JSON.stringify(g);
|
|
1650
1649
|
else if (c.isArray(g) && Eo(g) || (c.isFileList(g) || c.endsWith(x, "[]")) && (d = c.toArray(g)))
|
|
1651
|
-
return x =
|
|
1650
|
+
return x = dn(x), d.forEach(function(R, y) {
|
|
1652
1651
|
!(c.isUndefined(R) || R === null) && t.append(
|
|
1653
1652
|
// eslint-disable-next-line no-nested-ternary
|
|
1654
1653
|
a === !0 ? Ut([x], y, s) : a === null ? x : x + "[]",
|
|
@@ -1699,11 +1698,11 @@ function Bt(e) {
|
|
|
1699
1698
|
function bt(e, t) {
|
|
1700
1699
|
this._pairs = [], e && et(e, this, t);
|
|
1701
1700
|
}
|
|
1702
|
-
const
|
|
1703
|
-
|
|
1701
|
+
const hn = bt.prototype;
|
|
1702
|
+
hn.append = function(t, n) {
|
|
1704
1703
|
this._pairs.push([t, n]);
|
|
1705
1704
|
};
|
|
1706
|
-
|
|
1705
|
+
hn.toString = function(t) {
|
|
1707
1706
|
const n = t ? function(r) {
|
|
1708
1707
|
return t.call(this, r, Bt);
|
|
1709
1708
|
} : Bt;
|
|
@@ -1714,7 +1713,7 @@ yn.toString = function(t) {
|
|
|
1714
1713
|
function So(e) {
|
|
1715
1714
|
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
1716
1715
|
}
|
|
1717
|
-
function
|
|
1716
|
+
function yn(e, t, n) {
|
|
1718
1717
|
if (!t)
|
|
1719
1718
|
return e;
|
|
1720
1719
|
const r = n && n.encode || So;
|
|
@@ -1783,16 +1782,16 @@ class jt {
|
|
|
1783
1782
|
});
|
|
1784
1783
|
}
|
|
1785
1784
|
}
|
|
1786
|
-
const
|
|
1785
|
+
const mn = {
|
|
1787
1786
|
silentJSONParsing: !0,
|
|
1788
1787
|
forcedJSONParsing: !0,
|
|
1789
1788
|
clarifyTimeoutError: !1
|
|
1790
|
-
}, Ro = typeof URLSearchParams < "u" ? URLSearchParams : bt, Oo = typeof FormData < "u" ? FormData : null,
|
|
1789
|
+
}, Ro = typeof URLSearchParams < "u" ? URLSearchParams : bt, Oo = typeof FormData < "u" ? FormData : null, wo = typeof Blob < "u" ? Blob : null, To = {
|
|
1791
1790
|
isBrowser: !0,
|
|
1792
1791
|
classes: {
|
|
1793
1792
|
URLSearchParams: Ro,
|
|
1794
1793
|
FormData: Oo,
|
|
1795
|
-
Blob:
|
|
1794
|
+
Blob: wo
|
|
1796
1795
|
},
|
|
1797
1796
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
1798
1797
|
}, gt = typeof window < "u" && typeof document < "u", ut = typeof navigator == "object" && navigator || void 0, Ao = gt && (!ut || ["ReactNative", "NativeScript", "NS"].indexOf(ut.product) < 0), Co = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
@@ -1805,7 +1804,7 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", xo
|
|
|
1805
1804
|
origin: xo
|
|
1806
1805
|
}, Symbol.toStringTag, { value: "Module" })), Z = {
|
|
1807
1806
|
..._o,
|
|
1808
|
-
...
|
|
1807
|
+
...To
|
|
1809
1808
|
};
|
|
1810
1809
|
function Do(e, t) {
|
|
1811
1810
|
return et(e, new Z.classes.URLSearchParams(), Object.assign({
|
|
@@ -1826,7 +1825,7 @@ function No(e) {
|
|
|
1826
1825
|
s = n[r], t[s] = e[s];
|
|
1827
1826
|
return t;
|
|
1828
1827
|
}
|
|
1829
|
-
function
|
|
1828
|
+
function bn(e) {
|
|
1830
1829
|
function t(n, r, o, s) {
|
|
1831
1830
|
let a = n[s++];
|
|
1832
1831
|
if (a === "__proto__") return !0;
|
|
@@ -1852,12 +1851,12 @@ function Po(e, t, n) {
|
|
|
1852
1851
|
return (n || JSON.stringify)(e);
|
|
1853
1852
|
}
|
|
1854
1853
|
const Be = {
|
|
1855
|
-
transitional:
|
|
1854
|
+
transitional: mn,
|
|
1856
1855
|
adapter: ["xhr", "http", "fetch"],
|
|
1857
1856
|
transformRequest: [function(t, n) {
|
|
1858
1857
|
const r = n.getContentType() || "", o = r.indexOf("application/json") > -1, s = c.isObject(t);
|
|
1859
1858
|
if (s && c.isHTMLForm(t) && (t = new FormData(t)), c.isFormData(t))
|
|
1860
|
-
return o ? JSON.stringify(
|
|
1859
|
+
return o ? JSON.stringify(bn(t)) : t;
|
|
1861
1860
|
if (c.isArrayBuffer(t) || c.isBuffer(t) || c.isStream(t) || c.isFile(t) || c.isBlob(t) || c.isReadableStream(t))
|
|
1862
1861
|
return t;
|
|
1863
1862
|
if (c.isArrayBufferView(t))
|
|
@@ -2128,16 +2127,16 @@ function at(e, t) {
|
|
|
2128
2127
|
s = i.call(n, s, o.normalize(), t ? t.status : void 0);
|
|
2129
2128
|
}), o.normalize(), s;
|
|
2130
2129
|
}
|
|
2131
|
-
function
|
|
2130
|
+
function gn(e) {
|
|
2132
2131
|
return !!(e && e.__CANCEL__);
|
|
2133
2132
|
}
|
|
2134
|
-
function
|
|
2133
|
+
function Te(e, t, n) {
|
|
2135
2134
|
U.call(this, e ?? "canceled", U.ERR_CANCELED, t, n), this.name = "CanceledError";
|
|
2136
2135
|
}
|
|
2137
|
-
c.inherits(
|
|
2136
|
+
c.inherits(Te, U, {
|
|
2138
2137
|
__CANCEL__: !0
|
|
2139
2138
|
});
|
|
2140
|
-
function
|
|
2139
|
+
function kn(e, t, n) {
|
|
2141
2140
|
const r = n.config.validateStatus;
|
|
2142
2141
|
!n.status || !r || r(n.status) ? e(n) : t(new U(
|
|
2143
2142
|
"Request failed with status code " + n.status,
|
|
@@ -2241,7 +2240,7 @@ function Wo(e) {
|
|
|
2241
2240
|
function Ko(e, t) {
|
|
2242
2241
|
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
2243
2242
|
}
|
|
2244
|
-
function
|
|
2243
|
+
function En(e, t, n) {
|
|
2245
2244
|
let r = !Wo(t);
|
|
2246
2245
|
return e && (r || n == !1) ? Ko(e, t) : t;
|
|
2247
2246
|
}
|
|
@@ -2310,10 +2309,10 @@ function Ee(e, t) {
|
|
|
2310
2309
|
c.isUndefined(C) && u !== i || (n[m] = C);
|
|
2311
2310
|
}), n;
|
|
2312
2311
|
}
|
|
2313
|
-
const
|
|
2312
|
+
const vn = (e) => {
|
|
2314
2313
|
const t = Ee({}, e);
|
|
2315
2314
|
let { data: n, withXSRFToken: r, xsrfHeaderName: o, xsrfCookieName: s, headers: a, auth: i } = t;
|
|
2316
|
-
t.headers = a = re.from(a), t.url =
|
|
2315
|
+
t.headers = a = re.from(a), t.url = yn(En(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), i && a.set(
|
|
2317
2316
|
"Authorization",
|
|
2318
2317
|
"Basic " + btoa((i.username || "") + ":" + (i.password ? unescape(encodeURIComponent(i.password)) : ""))
|
|
2319
2318
|
);
|
|
@@ -2333,7 +2332,7 @@ const Sn = (e) => {
|
|
|
2333
2332
|
return t;
|
|
2334
2333
|
}, Io = typeof XMLHttpRequest < "u", Go = Io && function(e) {
|
|
2335
2334
|
return new Promise(function(n, r) {
|
|
2336
|
-
const o =
|
|
2335
|
+
const o = vn(e);
|
|
2337
2336
|
let s = o.data;
|
|
2338
2337
|
const a = re.from(o.headers).normalize();
|
|
2339
2338
|
let { responseType: i, onUploadProgress: b, onDownloadProgress: f } = o, m, u, C, O, g;
|
|
@@ -2355,7 +2354,7 @@ const Sn = (e) => {
|
|
|
2355
2354
|
config: e,
|
|
2356
2355
|
request: p
|
|
2357
2356
|
};
|
|
2358
|
-
|
|
2357
|
+
kn(function(v) {
|
|
2359
2358
|
n(v), x();
|
|
2360
2359
|
}, function(v) {
|
|
2361
2360
|
r(v), x();
|
|
@@ -2369,7 +2368,7 @@ const Sn = (e) => {
|
|
|
2369
2368
|
r(new U("Network Error", U.ERR_NETWORK, e, p)), p = null;
|
|
2370
2369
|
}, p.ontimeout = function() {
|
|
2371
2370
|
let y = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
|
|
2372
|
-
const h = o.transitional ||
|
|
2371
|
+
const h = o.transitional || mn;
|
|
2373
2372
|
o.timeoutErrorMessage && (y = o.timeoutErrorMessage), r(new U(
|
|
2374
2373
|
y,
|
|
2375
2374
|
h.clarifyTimeoutError ? U.ETIMEDOUT : U.ECONNABORTED,
|
|
@@ -2379,7 +2378,7 @@ const Sn = (e) => {
|
|
|
2379
2378
|
}, s === void 0 && a.setContentType(null), "setRequestHeader" in p && c.forEach(a.toJSON(), function(y, h) {
|
|
2380
2379
|
p.setRequestHeader(h, y);
|
|
2381
2380
|
}), c.isUndefined(o.withCredentials) || (p.withCredentials = !!o.withCredentials), i && i !== "json" && (p.responseType = o.responseType), f && ([C, g] = Ve(f, !0), p.addEventListener("progress", C)), b && p.upload && ([u, O] = Ve(b), p.upload.addEventListener("progress", u), p.upload.addEventListener("loadend", O)), (o.cancelToken || o.signal) && (m = (R) => {
|
|
2382
|
-
p && (r(!R || R.type ? new
|
|
2381
|
+
p && (r(!R || R.type ? new Te(null, e, p) : R), p.abort(), p = null);
|
|
2383
2382
|
}, o.cancelToken && o.cancelToken.subscribe(m), o.signal && (o.signal.aborted ? m() : o.signal.addEventListener("abort", m)));
|
|
2384
2383
|
const l = Jo(o.url);
|
|
2385
2384
|
if (l && Z.protocols.indexOf(l) === -1) {
|
|
@@ -2396,7 +2395,7 @@ const Sn = (e) => {
|
|
|
2396
2395
|
if (!o) {
|
|
2397
2396
|
o = !0, i();
|
|
2398
2397
|
const m = f instanceof Error ? f : this.reason;
|
|
2399
|
-
r.abort(m instanceof U ? m : new
|
|
2398
|
+
r.abort(m instanceof U ? m : new Te(m instanceof Error ? m.message : m));
|
|
2400
2399
|
}
|
|
2401
2400
|
};
|
|
2402
2401
|
let a = t && setTimeout(() => {
|
|
@@ -2468,13 +2467,13 @@ const Sn = (e) => {
|
|
|
2468
2467
|
}, {
|
|
2469
2468
|
highWaterMark: 2
|
|
2470
2469
|
});
|
|
2471
|
-
}, tt = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function",
|
|
2470
|
+
}, tt = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", Sn = tt && typeof ReadableStream == "function", es = tt && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), Rn = (e, ...t) => {
|
|
2472
2471
|
try {
|
|
2473
2472
|
return !!e(...t);
|
|
2474
2473
|
} catch {
|
|
2475
2474
|
return !1;
|
|
2476
2475
|
}
|
|
2477
|
-
}, ts =
|
|
2476
|
+
}, ts = Sn && Rn(() => {
|
|
2478
2477
|
let e = !1;
|
|
2479
2478
|
const t = new Request(Z.origin, {
|
|
2480
2479
|
body: new ReadableStream(),
|
|
@@ -2484,7 +2483,7 @@ const Sn = (e) => {
|
|
|
2484
2483
|
}
|
|
2485
2484
|
}).headers.has("Content-Type");
|
|
2486
2485
|
return e && !t;
|
|
2487
|
-
}), zt = 64 * 1024, ft =
|
|
2486
|
+
}), zt = 64 * 1024, ft = Sn && Rn(() => c.isReadableStream(new Response("").body)), We = {
|
|
2488
2487
|
stream: ft && ((e) => e.body)
|
|
2489
2488
|
};
|
|
2490
2489
|
tt && ((e) => {
|
|
@@ -2525,7 +2524,7 @@ const ns = async (e) => {
|
|
|
2525
2524
|
headers: m,
|
|
2526
2525
|
withCredentials: u = "same-origin",
|
|
2527
2526
|
fetchOptions: C
|
|
2528
|
-
} =
|
|
2527
|
+
} = vn(e);
|
|
2529
2528
|
f = f ? (f + "").toLowerCase() : "text";
|
|
2530
2529
|
let O = Xo([o, s && s.toAbortSignal()], a), g;
|
|
2531
2530
|
const x = O && O.unsubscribe && (() => {
|
|
@@ -2579,7 +2578,7 @@ const ns = async (e) => {
|
|
|
2579
2578
|
f = f || "text";
|
|
2580
2579
|
let y = await We[c.findKey(We, f) || "text"](l, e);
|
|
2581
2580
|
return !R && x && x(), await new Promise((h, E) => {
|
|
2582
|
-
|
|
2581
|
+
kn(h, E, {
|
|
2583
2582
|
data: y,
|
|
2584
2583
|
headers: re.from(l.headers),
|
|
2585
2584
|
status: l.status,
|
|
@@ -2610,7 +2609,7 @@ c.forEach(pt, (e, t) => {
|
|
|
2610
2609
|
Object.defineProperty(e, "adapterName", { value: t });
|
|
2611
2610
|
}
|
|
2612
2611
|
});
|
|
2613
|
-
const Ht = (e) => `- ${e}`, ss = (e) => c.isFunction(e) || e === null || e === !1,
|
|
2612
|
+
const Ht = (e) => `- ${e}`, ss = (e) => c.isFunction(e) || e === null || e === !1, On = {
|
|
2614
2613
|
getAdapter: (e) => {
|
|
2615
2614
|
e = c.isArray(e) ? e : [e];
|
|
2616
2615
|
const { length: t } = e;
|
|
@@ -2643,20 +2642,20 @@ const Ht = (e) => `- ${e}`, ss = (e) => c.isFunction(e) || e === null || e === !
|
|
|
2643
2642
|
};
|
|
2644
2643
|
function it(e) {
|
|
2645
2644
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
2646
|
-
throw new
|
|
2645
|
+
throw new Te(null, e);
|
|
2647
2646
|
}
|
|
2648
2647
|
function Vt(e) {
|
|
2649
2648
|
return it(e), e.headers = re.from(e.headers), e.data = at.call(
|
|
2650
2649
|
e,
|
|
2651
2650
|
e.transformRequest
|
|
2652
|
-
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1),
|
|
2651
|
+
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), On.getAdapter(e.adapter || Be.adapter)(e).then(function(r) {
|
|
2653
2652
|
return it(e), r.data = at.call(
|
|
2654
2653
|
e,
|
|
2655
2654
|
e.transformResponse,
|
|
2656
2655
|
r
|
|
2657
2656
|
), r.headers = re.from(r.headers), r;
|
|
2658
2657
|
}, function(r) {
|
|
2659
|
-
return
|
|
2658
|
+
return gn(r) || (it(e), r && r.response && (r.response.data = at.call(
|
|
2660
2659
|
e,
|
|
2661
2660
|
e.transformResponse,
|
|
2662
2661
|
r.response
|
|
@@ -2808,8 +2807,8 @@ let ge = class {
|
|
|
2808
2807
|
}
|
|
2809
2808
|
getUri(t) {
|
|
2810
2809
|
t = Ee(this.defaults, t);
|
|
2811
|
-
const n =
|
|
2812
|
-
return
|
|
2810
|
+
const n = En(t.baseURL, t.url, t.allowAbsoluteUrls);
|
|
2811
|
+
return yn(n, t.params, t.paramsSerializer);
|
|
2813
2812
|
}
|
|
2814
2813
|
};
|
|
2815
2814
|
c.forEach(["delete", "get", "head", "options"], function(t) {
|
|
@@ -2836,7 +2835,7 @@ c.forEach(["post", "put", "patch"], function(t) {
|
|
|
2836
2835
|
}
|
|
2837
2836
|
ge.prototype[t] = n(), ge.prototype[t + "Form"] = n(!0);
|
|
2838
2837
|
});
|
|
2839
|
-
let is = class
|
|
2838
|
+
let is = class Tn {
|
|
2840
2839
|
constructor(t) {
|
|
2841
2840
|
if (typeof t != "function")
|
|
2842
2841
|
throw new TypeError("executor must be a function.");
|
|
@@ -2860,7 +2859,7 @@ let is = class An {
|
|
|
2860
2859
|
r.unsubscribe(s);
|
|
2861
2860
|
}, a;
|
|
2862
2861
|
}, t(function(s, a, i) {
|
|
2863
|
-
r.reason || (r.reason = new
|
|
2862
|
+
r.reason || (r.reason = new Te(s, a, i), n(r.reason));
|
|
2864
2863
|
});
|
|
2865
2864
|
}
|
|
2866
2865
|
/**
|
|
@@ -2902,7 +2901,7 @@ let is = class An {
|
|
|
2902
2901
|
static source() {
|
|
2903
2902
|
let t;
|
|
2904
2903
|
return {
|
|
2905
|
-
token: new
|
|
2904
|
+
token: new Tn(function(o) {
|
|
2906
2905
|
t = o;
|
|
2907
2906
|
}),
|
|
2908
2907
|
cancel: t
|
|
@@ -2985,17 +2984,17 @@ const dt = {
|
|
|
2985
2984
|
Object.entries(dt).forEach(([e, t]) => {
|
|
2986
2985
|
dt[t] = e;
|
|
2987
2986
|
});
|
|
2988
|
-
function
|
|
2989
|
-
const t = new ge(e), n =
|
|
2987
|
+
function An(e) {
|
|
2988
|
+
const t = new ge(e), n = nn(ge.prototype.request, t);
|
|
2990
2989
|
return c.extend(n, ge.prototype, t, { allOwnKeys: !0 }), c.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(o) {
|
|
2991
|
-
return
|
|
2990
|
+
return An(Ee(e, o));
|
|
2992
2991
|
}, n;
|
|
2993
2992
|
}
|
|
2994
|
-
const G =
|
|
2993
|
+
const G = An(Be);
|
|
2995
2994
|
G.Axios = ge;
|
|
2996
|
-
G.CanceledError =
|
|
2995
|
+
G.CanceledError = Te;
|
|
2997
2996
|
G.CancelToken = is;
|
|
2998
|
-
G.isCancel =
|
|
2997
|
+
G.isCancel = gn;
|
|
2999
2998
|
G.VERSION = wn;
|
|
3000
2999
|
G.toFormData = et;
|
|
3001
3000
|
G.AxiosError = U;
|
|
@@ -3007,27 +3006,27 @@ G.spread = ls;
|
|
|
3007
3006
|
G.isAxiosError = cs;
|
|
3008
3007
|
G.mergeConfig = Ee;
|
|
3009
3008
|
G.AxiosHeaders = re;
|
|
3010
|
-
G.formToJSON = (e) =>
|
|
3011
|
-
G.getAdapter =
|
|
3009
|
+
G.formToJSON = (e) => bn(c.isHTMLForm(e) ? new FormData(e) : e);
|
|
3010
|
+
G.getAdapter = On.getAdapter;
|
|
3012
3011
|
G.HttpStatusCode = dt;
|
|
3013
3012
|
G.default = G;
|
|
3014
3013
|
const {
|
|
3015
|
-
Axios:
|
|
3016
|
-
AxiosError:
|
|
3017
|
-
CanceledError:
|
|
3018
|
-
isCancel:
|
|
3019
|
-
CancelToken:
|
|
3020
|
-
VERSION:
|
|
3021
|
-
all:
|
|
3022
|
-
Cancel:
|
|
3023
|
-
isAxiosError:
|
|
3024
|
-
spread:
|
|
3025
|
-
toFormData:
|
|
3026
|
-
AxiosHeaders:
|
|
3027
|
-
HttpStatusCode:
|
|
3028
|
-
formToJSON:
|
|
3029
|
-
getAdapter:
|
|
3030
|
-
mergeConfig:
|
|
3014
|
+
Axios: As,
|
|
3015
|
+
AxiosError: Cs,
|
|
3016
|
+
CanceledError: xs,
|
|
3017
|
+
isCancel: _s,
|
|
3018
|
+
CancelToken: Ds,
|
|
3019
|
+
VERSION: Fs,
|
|
3020
|
+
all: Ns,
|
|
3021
|
+
Cancel: Ps,
|
|
3022
|
+
isAxiosError: Us,
|
|
3023
|
+
spread: Bs,
|
|
3024
|
+
toFormData: js,
|
|
3025
|
+
AxiosHeaders: $s,
|
|
3026
|
+
HttpStatusCode: Ls,
|
|
3027
|
+
formToJSON: qs,
|
|
3028
|
+
getAdapter: Js,
|
|
3029
|
+
mergeConfig: Ms
|
|
3031
3030
|
} = G;
|
|
3032
3031
|
/*! js-cookie v3.0.5 | MIT */
|
|
3033
3032
|
function Le(e) {
|
|
@@ -3122,20 +3121,20 @@ const ke = {
|
|
|
3122
3121
|
clear() {
|
|
3123
3122
|
window.localStorage.clear();
|
|
3124
3123
|
}
|
|
3125
|
-
},
|
|
3124
|
+
}, Cn = /* @__PURE__ */ new Map();
|
|
3126
3125
|
console.log("import.meta.env.VITE_API_URL", "http://139.196.154.85:20013");
|
|
3127
|
-
const
|
|
3126
|
+
const xn = G.create({
|
|
3128
3127
|
baseURL: "http://139.196.154.85:20013",
|
|
3129
3128
|
timeout: 5e4
|
|
3130
3129
|
//headers: { 'Content-Type': 'application/json' }, 这个会导致生成代码的上传文件 file为空
|
|
3131
3130
|
}), Ke = "access-token", yt = `x-${Ke}`;
|
|
3132
|
-
|
|
3131
|
+
xn.interceptors.request.use(
|
|
3133
3132
|
(e) => {
|
|
3134
3133
|
var o;
|
|
3135
3134
|
const t = new AbortController();
|
|
3136
3135
|
e.signal = t.signal;
|
|
3137
3136
|
const n = e.url || "";
|
|
3138
|
-
|
|
3137
|
+
Cn.set(n, t);
|
|
3139
3138
|
const r = ke.get(Ke);
|
|
3140
3139
|
if (r) {
|
|
3141
3140
|
e.headers.Authorization = `Bearer ${r}`;
|
|
@@ -3153,10 +3152,10 @@ _n.interceptors.request.use(
|
|
|
3153
3152
|
},
|
|
3154
3153
|
(e) => Promise.reject(e)
|
|
3155
3154
|
);
|
|
3156
|
-
|
|
3155
|
+
xn.interceptors.response.use(
|
|
3157
3156
|
(e) => {
|
|
3158
3157
|
const t = e.config.url || "";
|
|
3159
|
-
|
|
3158
|
+
Cn.delete(t);
|
|
3160
3159
|
var n = e.status, r = e.data;
|
|
3161
3160
|
if (n === 401)
|
|
3162
3161
|
throw new Error(e.statusText || "Request Error.");
|
|
@@ -3214,20 +3213,15 @@ function ps(e) {
|
|
|
3214
3213
|
function ds(e) {
|
|
3215
3214
|
return new Date(e * 1e3);
|
|
3216
3215
|
}
|
|
3217
|
-
const hs =
|
|
3216
|
+
const hs = zn(Oe), { itemData: zs } = He(hs), ys = Jn(Oe), { systemKey: Hs, activeMenuPath: Vs } = He(ys), Fe = B(0), Ws = (e) => e.reduce((n, r) => {
|
|
3218
3217
|
var s, a;
|
|
3219
3218
|
const o = Object.values(n);
|
|
3220
3219
|
return (((s = Object.keys(n)) == null ? void 0 : s.length) === 0 || o[o.length - 1].length >= (r == null ? void 0 : r.width)) && (n[Fe.value] = [], Fe.value++), n[Fe.value - 1].push(r), ((a = Object.keys(n)) == null ? void 0 : a.length) === (r == null ? void 0 : r.width) && (n[Fe.value] = [], Fe.value++), n;
|
|
3221
3220
|
}, {});
|
|
3222
3221
|
export {
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
|
|
3226
|
-
Ts as e,
|
|
3227
|
-
Os as g,
|
|
3228
|
-
ws as i,
|
|
3222
|
+
Ws as a,
|
|
3223
|
+
Os as e,
|
|
3224
|
+
Rs as g,
|
|
3229
3225
|
Oe as p,
|
|
3230
|
-
|
|
3231
|
-
Gt as u,
|
|
3232
|
-
Y as v
|
|
3226
|
+
Ss as s
|
|
3233
3227
|
};
|