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
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ss-component-new",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.76",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist"
|
|
@@ -15,6 +15,10 @@
|
|
|
15
15
|
"build:lib": "vite build",
|
|
16
16
|
"prepublishOnly": "npm run build:lib"
|
|
17
17
|
},
|
|
18
|
+
"exports": {
|
|
19
|
+
".": "./dist/ss-component.umd.cjs",
|
|
20
|
+
"./router": "./src/router/index.ts"
|
|
21
|
+
},
|
|
18
22
|
"dependencies": {
|
|
19
23
|
"@element-plus/icons-vue": "^2.3.1",
|
|
20
24
|
"axios": "^1.9.0",
|
|
@@ -1,318 +0,0 @@
|
|
|
1
|
-
import { F as A, G as l, H as re, I as ye, J as de, K as m, L as w, M as Te, N as I, O as P, P as v, Q as je, R as T, S as U } from "./index-TqZwOJHG.js";
|
|
2
|
-
var O = A(l, "WeakMap"), D = Object.create, $e = /* @__PURE__ */ function() {
|
|
3
|
-
function e() {
|
|
4
|
-
}
|
|
5
|
-
return function(t) {
|
|
6
|
-
if (!re(t))
|
|
7
|
-
return {};
|
|
8
|
-
if (D)
|
|
9
|
-
return D(t);
|
|
10
|
-
e.prototype = t;
|
|
11
|
-
var r = new e();
|
|
12
|
-
return e.prototype = void 0, r;
|
|
13
|
-
};
|
|
14
|
-
}(), L = function() {
|
|
15
|
-
try {
|
|
16
|
-
var e = A(Object, "defineProperty");
|
|
17
|
-
return e({}, "", {}), e;
|
|
18
|
-
} catch {
|
|
19
|
-
}
|
|
20
|
-
}();
|
|
21
|
-
function Ae(e, t) {
|
|
22
|
-
for (var r = -1, n = e == null ? 0 : e.length; ++r < n && t(e[r], r, e) !== !1; )
|
|
23
|
-
;
|
|
24
|
-
return e;
|
|
25
|
-
}
|
|
26
|
-
var me = 9007199254740991, he = /^(?:0|[1-9]\d*)$/;
|
|
27
|
-
function ve(e, t) {
|
|
28
|
-
var r = typeof e;
|
|
29
|
-
return t = t ?? me, !!t && (r == "number" || r != "symbol" && he.test(e)) && e > -1 && e % 1 == 0 && e < t;
|
|
30
|
-
}
|
|
31
|
-
function we(e, t, r) {
|
|
32
|
-
t == "__proto__" && L ? L(e, t, {
|
|
33
|
-
configurable: !0,
|
|
34
|
-
enumerable: !0,
|
|
35
|
-
value: r,
|
|
36
|
-
writable: !0
|
|
37
|
-
}) : e[t] = r;
|
|
38
|
-
}
|
|
39
|
-
var _e = Object.prototype, Oe = _e.hasOwnProperty;
|
|
40
|
-
function xe(e, t, r) {
|
|
41
|
-
var n = e[t];
|
|
42
|
-
(!(Oe.call(e, t) && ye(n, r)) || r === void 0 && !(t in e)) && we(e, t, r);
|
|
43
|
-
}
|
|
44
|
-
var Se = 9007199254740991;
|
|
45
|
-
function ne(e) {
|
|
46
|
-
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= Se;
|
|
47
|
-
}
|
|
48
|
-
function Ee(e) {
|
|
49
|
-
return e != null && ne(e.length) && !de(e);
|
|
50
|
-
}
|
|
51
|
-
var Ie = Object.prototype;
|
|
52
|
-
function ae(e) {
|
|
53
|
-
var t = e && e.constructor, r = typeof t == "function" && t.prototype || Ie;
|
|
54
|
-
return e === r;
|
|
55
|
-
}
|
|
56
|
-
function Pe(e, t) {
|
|
57
|
-
for (var r = -1, n = Array(e); ++r < e; )
|
|
58
|
-
n[r] = t(r);
|
|
59
|
-
return n;
|
|
60
|
-
}
|
|
61
|
-
var Me = "[object Arguments]";
|
|
62
|
-
function G(e) {
|
|
63
|
-
return m(e) && w(e) == Me;
|
|
64
|
-
}
|
|
65
|
-
var oe = Object.prototype, Ce = oe.hasOwnProperty, Be = oe.propertyIsEnumerable, Fe = G(/* @__PURE__ */ function() {
|
|
66
|
-
return arguments;
|
|
67
|
-
}()) ? G : function(e) {
|
|
68
|
-
return m(e) && Ce.call(e, "callee") && !Be.call(e, "callee");
|
|
69
|
-
};
|
|
70
|
-
function Ue() {
|
|
71
|
-
return !1;
|
|
72
|
-
}
|
|
73
|
-
var ie = typeof exports == "object" && exports && !exports.nodeType && exports, R = ie && typeof module == "object" && module && !module.nodeType && module, De = R && R.exports === ie, V = De ? l.Buffer : void 0, Le = V ? V.isBuffer : void 0, se = Le || Ue, Ge = "[object Arguments]", Re = "[object Array]", Ve = "[object Boolean]", Ne = "[object Date]", ze = "[object Error]", Ke = "[object Function]", We = "[object Map]", qe = "[object Number]", He = "[object Object]", Xe = "[object RegExp]", Ye = "[object Set]", Je = "[object String]", Qe = "[object WeakMap]", Ze = "[object ArrayBuffer]", ke = "[object DataView]", et = "[object Float32Array]", tt = "[object Float64Array]", rt = "[object Int8Array]", nt = "[object Int16Array]", at = "[object Int32Array]", ot = "[object Uint8Array]", it = "[object Uint8ClampedArray]", st = "[object Uint16Array]", ct = "[object Uint32Array]", o = {};
|
|
74
|
-
o[et] = o[tt] = o[rt] = o[nt] = o[at] = o[ot] = o[it] = o[st] = o[ct] = !0;
|
|
75
|
-
o[Ge] = o[Re] = o[Ze] = o[Ve] = o[ke] = o[Ne] = o[ze] = o[Ke] = o[We] = o[qe] = o[He] = o[Xe] = o[Ye] = o[Je] = o[Qe] = !1;
|
|
76
|
-
function ut(e) {
|
|
77
|
-
return m(e) && ne(e.length) && !!o[w(e)];
|
|
78
|
-
}
|
|
79
|
-
function M(e) {
|
|
80
|
-
return function(t) {
|
|
81
|
-
return e(t);
|
|
82
|
-
};
|
|
83
|
-
}
|
|
84
|
-
var ce = typeof exports == "object" && exports && !exports.nodeType && exports, $ = ce && typeof module == "object" && module && !module.nodeType && module, ft = $ && $.exports === ce, _ = ft && Te.process, d = function() {
|
|
85
|
-
try {
|
|
86
|
-
var e = $ && $.require && $.require("util").types;
|
|
87
|
-
return e || _ && _.binding && _.binding("util");
|
|
88
|
-
} catch {
|
|
89
|
-
}
|
|
90
|
-
}(), N = d && d.isTypedArray, pt = N ? M(N) : ut, bt = Object.prototype, gt = bt.hasOwnProperty;
|
|
91
|
-
function lt(e, t) {
|
|
92
|
-
var r = I(e), n = !r && Fe(e), u = !r && !n && se(e), s = !r && !n && !u && pt(e), i = r || n || u || s, y = i ? Pe(e.length, String) : [], p = y.length;
|
|
93
|
-
for (var c in e)
|
|
94
|
-
gt.call(e, c) && !(i && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
95
|
-
(c == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
96
|
-
u && (c == "offset" || c == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
97
|
-
s && (c == "buffer" || c == "byteLength" || c == "byteOffset") || // Skip index properties.
|
|
98
|
-
ve(c, p))) && y.push(c);
|
|
99
|
-
return y;
|
|
100
|
-
}
|
|
101
|
-
function ue(e, t) {
|
|
102
|
-
return function(r) {
|
|
103
|
-
return e(t(r));
|
|
104
|
-
};
|
|
105
|
-
}
|
|
106
|
-
var yt = ue(Object.keys, Object), dt = Object.prototype, Tt = dt.hasOwnProperty;
|
|
107
|
-
function jt(e) {
|
|
108
|
-
if (!ae(e))
|
|
109
|
-
return yt(e);
|
|
110
|
-
var t = [];
|
|
111
|
-
for (var r in Object(e))
|
|
112
|
-
Tt.call(e, r) && r != "constructor" && t.push(r);
|
|
113
|
-
return t;
|
|
114
|
-
}
|
|
115
|
-
function $t(e) {
|
|
116
|
-
return Ee(e) ? lt(e) : jt(e);
|
|
117
|
-
}
|
|
118
|
-
function At(e, t) {
|
|
119
|
-
for (var r = -1, n = t.length, u = e.length; ++r < n; )
|
|
120
|
-
e[u + r] = t[r];
|
|
121
|
-
return e;
|
|
122
|
-
}
|
|
123
|
-
var mt = ue(Object.getPrototypeOf, Object);
|
|
124
|
-
function ht() {
|
|
125
|
-
this.__data__ = new P(), this.size = 0;
|
|
126
|
-
}
|
|
127
|
-
function vt(e) {
|
|
128
|
-
var t = this.__data__, r = t.delete(e);
|
|
129
|
-
return this.size = t.size, r;
|
|
130
|
-
}
|
|
131
|
-
function wt(e) {
|
|
132
|
-
return this.__data__.get(e);
|
|
133
|
-
}
|
|
134
|
-
function _t(e) {
|
|
135
|
-
return this.__data__.has(e);
|
|
136
|
-
}
|
|
137
|
-
var Ot = 200;
|
|
138
|
-
function xt(e, t) {
|
|
139
|
-
var r = this.__data__;
|
|
140
|
-
if (r instanceof P) {
|
|
141
|
-
var n = r.__data__;
|
|
142
|
-
if (!v || n.length < Ot - 1)
|
|
143
|
-
return n.push([e, t]), this.size = ++r.size, this;
|
|
144
|
-
r = this.__data__ = new je(n);
|
|
145
|
-
}
|
|
146
|
-
return r.set(e, t), this.size = r.size, this;
|
|
147
|
-
}
|
|
148
|
-
function j(e) {
|
|
149
|
-
var t = this.__data__ = new P(e);
|
|
150
|
-
this.size = t.size;
|
|
151
|
-
}
|
|
152
|
-
j.prototype.clear = ht;
|
|
153
|
-
j.prototype.delete = vt;
|
|
154
|
-
j.prototype.get = wt;
|
|
155
|
-
j.prototype.has = _t;
|
|
156
|
-
j.prototype.set = xt;
|
|
157
|
-
var fe = typeof exports == "object" && exports && !exports.nodeType && exports, z = fe && typeof module == "object" && module && !module.nodeType && module, St = z && z.exports === fe, K = St ? l.Buffer : void 0;
|
|
158
|
-
K && K.allocUnsafe;
|
|
159
|
-
function Et(e, t) {
|
|
160
|
-
return e.slice();
|
|
161
|
-
}
|
|
162
|
-
function It(e, t) {
|
|
163
|
-
for (var r = -1, n = e == null ? 0 : e.length, u = 0, s = []; ++r < n; ) {
|
|
164
|
-
var i = e[r];
|
|
165
|
-
t(i, r, e) && (s[u++] = i);
|
|
166
|
-
}
|
|
167
|
-
return s;
|
|
168
|
-
}
|
|
169
|
-
function Pt() {
|
|
170
|
-
return [];
|
|
171
|
-
}
|
|
172
|
-
var Mt = Object.prototype, Ct = Mt.propertyIsEnumerable, W = Object.getOwnPropertySymbols, Bt = W ? function(e) {
|
|
173
|
-
return e == null ? [] : (e = Object(e), It(W(e), function(t) {
|
|
174
|
-
return Ct.call(e, t);
|
|
175
|
-
}));
|
|
176
|
-
} : Pt;
|
|
177
|
-
function Ft(e, t, r) {
|
|
178
|
-
var n = t(e);
|
|
179
|
-
return I(e) ? n : At(n, r(e));
|
|
180
|
-
}
|
|
181
|
-
function Ut(e) {
|
|
182
|
-
return Ft(e, $t, Bt);
|
|
183
|
-
}
|
|
184
|
-
var x = A(l, "DataView"), S = A(l, "Promise"), E = A(l, "Set"), q = "[object Map]", Dt = "[object Object]", H = "[object Promise]", X = "[object Set]", Y = "[object WeakMap]", J = "[object DataView]", Lt = T(x), Gt = T(v), Rt = T(S), Vt = T(E), Nt = T(O), f = w;
|
|
185
|
-
(x && f(new x(new ArrayBuffer(1))) != J || v && f(new v()) != q || S && f(S.resolve()) != H || E && f(new E()) != X || O && f(new O()) != Y) && (f = function(e) {
|
|
186
|
-
var t = w(e), r = t == Dt ? e.constructor : void 0, n = r ? T(r) : "";
|
|
187
|
-
if (n)
|
|
188
|
-
switch (n) {
|
|
189
|
-
case Lt:
|
|
190
|
-
return J;
|
|
191
|
-
case Gt:
|
|
192
|
-
return q;
|
|
193
|
-
case Rt:
|
|
194
|
-
return H;
|
|
195
|
-
case Vt:
|
|
196
|
-
return X;
|
|
197
|
-
case Nt:
|
|
198
|
-
return Y;
|
|
199
|
-
}
|
|
200
|
-
return t;
|
|
201
|
-
});
|
|
202
|
-
var zt = Object.prototype, Kt = zt.hasOwnProperty;
|
|
203
|
-
function Wt(e) {
|
|
204
|
-
var t = e.length, r = new e.constructor(t);
|
|
205
|
-
return t && typeof e[0] == "string" && Kt.call(e, "index") && (r.index = e.index, r.input = e.input), r;
|
|
206
|
-
}
|
|
207
|
-
var Q = l.Uint8Array;
|
|
208
|
-
function C(e) {
|
|
209
|
-
var t = new e.constructor(e.byteLength);
|
|
210
|
-
return new Q(t).set(new Q(e)), t;
|
|
211
|
-
}
|
|
212
|
-
function qt(e, t) {
|
|
213
|
-
var r = C(e.buffer);
|
|
214
|
-
return new e.constructor(r, e.byteOffset, e.byteLength);
|
|
215
|
-
}
|
|
216
|
-
var Ht = /\w*$/;
|
|
217
|
-
function Xt(e) {
|
|
218
|
-
var t = new e.constructor(e.source, Ht.exec(e));
|
|
219
|
-
return t.lastIndex = e.lastIndex, t;
|
|
220
|
-
}
|
|
221
|
-
var Z = U ? U.prototype : void 0, k = Z ? Z.valueOf : void 0;
|
|
222
|
-
function Yt(e) {
|
|
223
|
-
return k ? Object(k.call(e)) : {};
|
|
224
|
-
}
|
|
225
|
-
function Jt(e, t) {
|
|
226
|
-
var r = C(e.buffer);
|
|
227
|
-
return new e.constructor(r, e.byteOffset, e.length);
|
|
228
|
-
}
|
|
229
|
-
var Qt = "[object Boolean]", Zt = "[object Date]", kt = "[object Map]", er = "[object Number]", tr = "[object RegExp]", rr = "[object Set]", nr = "[object String]", ar = "[object Symbol]", or = "[object ArrayBuffer]", ir = "[object DataView]", sr = "[object Float32Array]", cr = "[object Float64Array]", ur = "[object Int8Array]", fr = "[object Int16Array]", pr = "[object Int32Array]", br = "[object Uint8Array]", gr = "[object Uint8ClampedArray]", lr = "[object Uint16Array]", yr = "[object Uint32Array]";
|
|
230
|
-
function dr(e, t, r) {
|
|
231
|
-
var n = e.constructor;
|
|
232
|
-
switch (t) {
|
|
233
|
-
case or:
|
|
234
|
-
return C(e);
|
|
235
|
-
case Qt:
|
|
236
|
-
case Zt:
|
|
237
|
-
return new n(+e);
|
|
238
|
-
case ir:
|
|
239
|
-
return qt(e);
|
|
240
|
-
case sr:
|
|
241
|
-
case cr:
|
|
242
|
-
case ur:
|
|
243
|
-
case fr:
|
|
244
|
-
case pr:
|
|
245
|
-
case br:
|
|
246
|
-
case gr:
|
|
247
|
-
case lr:
|
|
248
|
-
case yr:
|
|
249
|
-
return Jt(e);
|
|
250
|
-
case kt:
|
|
251
|
-
return new n();
|
|
252
|
-
case er:
|
|
253
|
-
case nr:
|
|
254
|
-
return new n(e);
|
|
255
|
-
case tr:
|
|
256
|
-
return Xt(e);
|
|
257
|
-
case rr:
|
|
258
|
-
return new n();
|
|
259
|
-
case ar:
|
|
260
|
-
return Yt(e);
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
function Tr(e) {
|
|
264
|
-
return typeof e.constructor == "function" && !ae(e) ? $e(mt(e)) : {};
|
|
265
|
-
}
|
|
266
|
-
var jr = "[object Map]";
|
|
267
|
-
function $r(e) {
|
|
268
|
-
return m(e) && f(e) == jr;
|
|
269
|
-
}
|
|
270
|
-
var ee = d && d.isMap, Ar = ee ? M(ee) : $r, mr = "[object Set]";
|
|
271
|
-
function hr(e) {
|
|
272
|
-
return m(e) && f(e) == mr;
|
|
273
|
-
}
|
|
274
|
-
var te = d && d.isSet, vr = te ? M(te) : hr, pe = "[object Arguments]", wr = "[object Array]", _r = "[object Boolean]", Or = "[object Date]", xr = "[object Error]", be = "[object Function]", Sr = "[object GeneratorFunction]", Er = "[object Map]", Ir = "[object Number]", ge = "[object Object]", Pr = "[object RegExp]", Mr = "[object Set]", Cr = "[object String]", Br = "[object Symbol]", Fr = "[object WeakMap]", Ur = "[object ArrayBuffer]", Dr = "[object DataView]", Lr = "[object Float32Array]", Gr = "[object Float64Array]", Rr = "[object Int8Array]", Vr = "[object Int16Array]", Nr = "[object Int32Array]", zr = "[object Uint8Array]", Kr = "[object Uint8ClampedArray]", Wr = "[object Uint16Array]", qr = "[object Uint32Array]", a = {};
|
|
275
|
-
a[pe] = a[wr] = a[Ur] = a[Dr] = a[_r] = a[Or] = a[Lr] = a[Gr] = a[Rr] = a[Vr] = a[Nr] = a[Er] = a[Ir] = a[ge] = a[Pr] = a[Mr] = a[Cr] = a[Br] = a[zr] = a[Kr] = a[Wr] = a[qr] = !0;
|
|
276
|
-
a[xr] = a[be] = a[Fr] = !1;
|
|
277
|
-
function h(e, t, r, n, u, s) {
|
|
278
|
-
var i;
|
|
279
|
-
if (i !== void 0)
|
|
280
|
-
return i;
|
|
281
|
-
if (!re(e))
|
|
282
|
-
return e;
|
|
283
|
-
var y = I(e);
|
|
284
|
-
if (y)
|
|
285
|
-
i = Wt(e);
|
|
286
|
-
else {
|
|
287
|
-
var p = f(e), c = p == be || p == Sr;
|
|
288
|
-
if (se(e))
|
|
289
|
-
return Et(e);
|
|
290
|
-
if (p == ge || p == pe || c && !u)
|
|
291
|
-
i = c ? {} : Tr(e);
|
|
292
|
-
else {
|
|
293
|
-
if (!a[p])
|
|
294
|
-
return u ? e : {};
|
|
295
|
-
i = dr(e, p);
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
s || (s = new j());
|
|
299
|
-
var B = s.get(e);
|
|
300
|
-
if (B)
|
|
301
|
-
return B;
|
|
302
|
-
s.set(e, i), vr(e) ? e.forEach(function(b) {
|
|
303
|
-
i.add(h(b, t, r, b, e, s));
|
|
304
|
-
}) : Ar(e) && e.forEach(function(b, g) {
|
|
305
|
-
i.set(g, h(b, t, r, g, e, s));
|
|
306
|
-
});
|
|
307
|
-
var le = Ut, F = y ? void 0 : le(e);
|
|
308
|
-
return Ae(F || e, function(b, g) {
|
|
309
|
-
F && (g = b, b = e[g]), xe(i, g, h(b, t, r, g, e, s));
|
|
310
|
-
}), i;
|
|
311
|
-
}
|
|
312
|
-
var Hr = 1, Xr = 4;
|
|
313
|
-
function Jr(e) {
|
|
314
|
-
return h(e, Hr | Xr);
|
|
315
|
-
}
|
|
316
|
-
export {
|
|
317
|
-
Jr as c
|
|
318
|
-
};
|
package/dist/index-BdGhClne.js
DELETED
|
@@ -1,351 +0,0 @@
|
|
|
1
|
-
import { ref as D, onMounted as ee, createElementBlock as m, openBlock as i, Fragment as z, renderList as H, createElementVNode as N, createCommentVNode as $, toDisplayString as U, watch as O, createVNode as R, unref as F, createBlock as Y, resolveDynamicComponent as te } from "vue";
|
|
2
|
-
import { m as ae, a as ne, b as oe } from "./index-DtuPN0eZ.js";
|
|
3
|
-
import { p as J, u as se, b as le, i as re, e as ce, g as ue, a as ie } from "./array-vzwMZhM4.js";
|
|
4
|
-
import { u as Q } from "./modelComp-B2WEXyGq.js";
|
|
5
|
-
import { u as X, s as P } from "./menu-CD2KJPvR.js";
|
|
6
|
-
import de from "./index-C3H4rMr-.js";
|
|
7
|
-
import { e as me } from "./index.vue_vue_type_style_index_0_scoped_876d48c6_lang-BY0XvD7v.js";
|
|
8
|
-
import { _ as q } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
|
-
import { c as B } from "./cloneDeep-DA0SrY7X.js";
|
|
10
|
-
const fe = { class: "bread-content" }, he = ["onClick"], ve = { key: 0 }, ge = {
|
|
11
|
-
__name: "index",
|
|
12
|
-
props: {
|
|
13
|
-
breadArray: {
|
|
14
|
-
type: Array,
|
|
15
|
-
default: () => []
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
emits: ["click"],
|
|
19
|
-
setup(p, { emit: k }) {
|
|
20
|
-
const t = p, d = D([]), u = k;
|
|
21
|
-
ee(() => {
|
|
22
|
-
d.value = t == null ? void 0 : t.breadArray;
|
|
23
|
-
});
|
|
24
|
-
const f = (y) => {
|
|
25
|
-
u("click", y);
|
|
26
|
-
};
|
|
27
|
-
return (y, v) => (i(), m("div", fe, [
|
|
28
|
-
(i(!0), m(z, null, H(d.value, (h, g) => (i(), m("div", {
|
|
29
|
-
key: g,
|
|
30
|
-
class: "bread-item"
|
|
31
|
-
}, [
|
|
32
|
-
N("div", {
|
|
33
|
-
class: "bread-title",
|
|
34
|
-
onClick: (A) => f(h)
|
|
35
|
-
}, U(h.value), 9, he),
|
|
36
|
-
g !== d.value.length - 1 ? (i(), m("div", ve, U("/"))) : $("", !0)
|
|
37
|
-
]))), 128))
|
|
38
|
-
]));
|
|
39
|
-
}
|
|
40
|
-
}, ye = /* @__PURE__ */ q(ge, [["__scopeId", "data-v-d55d3ede"]]);
|
|
41
|
-
function _e(p) {
|
|
42
|
-
const k = [], t = {
|
|
43
|
-
"(": ")",
|
|
44
|
-
"{": "}",
|
|
45
|
-
"[": "]"
|
|
46
|
-
};
|
|
47
|
-
for (let d = 0; d < p.length; d++) {
|
|
48
|
-
const u = p[d];
|
|
49
|
-
if (t[u])
|
|
50
|
-
k.push(u);
|
|
51
|
-
else if (Object.values(t).includes(u)) {
|
|
52
|
-
const f = k.pop();
|
|
53
|
-
if (console.log("stack", k, f, t[f]), t[f] !== u)
|
|
54
|
-
return !1;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
return k.length === 0;
|
|
58
|
-
}
|
|
59
|
-
function Ce(p) {
|
|
60
|
-
var d, u, f, y;
|
|
61
|
-
const k = (u = (d = p[0]) == null ? void 0 : d.compData) == null ? void 0 : u.filter((v) => v.key !== "formContent"), t = (y = (f = p[0]) == null ? void 0 : f.compData) == null ? void 0 : y.filter((v) => v.key === "formContent");
|
|
62
|
-
console.log("handleFormModel:", k, t, p);
|
|
63
|
-
}
|
|
64
|
-
const pe = { class: "system-wrap" }, ke = {
|
|
65
|
-
key: 0,
|
|
66
|
-
class: "show-content"
|
|
67
|
-
}, De = {
|
|
68
|
-
key: 0,
|
|
69
|
-
class: "item-menu-content"
|
|
70
|
-
}, Se = {
|
|
71
|
-
key: 0,
|
|
72
|
-
class: "item-view-group"
|
|
73
|
-
}, Ie = {
|
|
74
|
-
__name: "index",
|
|
75
|
-
props: {
|
|
76
|
-
content: String,
|
|
77
|
-
jsonContents: Array
|
|
78
|
-
},
|
|
79
|
-
emits: ["change", "contentChange"],
|
|
80
|
-
setup(p, { emit: k }) {
|
|
81
|
-
const t = p, d = k, u = Q(J);
|
|
82
|
-
se(J);
|
|
83
|
-
const f = D(!0), y = X(), v = D(!0), { itemData: h } = P(u), g = le(J), { activeMenuPath: A, activeMenuOpenPaths: Z, menuTriggerType: G, menus: V } = P(y), { selectIndex: w, selectTitle: M } = P(g), b = D([]), _ = D([]), K = (e) => {
|
|
84
|
-
var n, o, a;
|
|
85
|
-
const s = (n = h.value) == null ? void 0 : n.find((l) => l.name === A.value);
|
|
86
|
-
_.value = (a = (o = s == null ? void 0 : s.compData) == null ? void 0 : o[0]) == null ? void 0 : a.contents, v.value = !0, v.value && (v.value = !1), d("change", {
|
|
87
|
-
wholeValue: b.value,
|
|
88
|
-
editValue: e
|
|
89
|
-
});
|
|
90
|
-
}, L = (e) => {
|
|
91
|
-
var S, C, T;
|
|
92
|
-
const s = B(b.value), n = s == null ? void 0 : s.map((r, I) => (I === (e == null ? void 0 : e.index) && (r.compData = e == null ? void 0 : e.contents), r));
|
|
93
|
-
let o = "";
|
|
94
|
-
(C = (S = B(n)) == null ? void 0 : S.filter((r) => (r == null ? void 0 : r.comp) === "Form")) == null || C.forEach((r) => {
|
|
95
|
-
var I;
|
|
96
|
-
(I = r == null ? void 0 : r.compData) == null || I.forEach((x) => {
|
|
97
|
-
var j;
|
|
98
|
-
(x == null ? void 0 : x.key) === "formContent" && ((j = x == null ? void 0 : x.contents) == null || j.forEach((E) => {
|
|
99
|
-
E.value !== "" && (o = o === "" ? E == null ? void 0 : E.value : o + "-" + (E == null ? void 0 : E.value));
|
|
100
|
-
}));
|
|
101
|
-
});
|
|
102
|
-
});
|
|
103
|
-
let a = M == null ? void 0 : M.value;
|
|
104
|
-
(a == null ? void 0 : a.length) > 0 ? a[0] = { key: "main", value: o } : (Array.isArray(a) || (a = []), a.push({ key: "main", value: o })), g.setSelectTitle(a), f.value = !1, b.value = n;
|
|
105
|
-
const l = (T = h.value) == null ? void 0 : T.map((r, I) => {
|
|
106
|
-
var x;
|
|
107
|
-
return r.name === A.value && (r.compData = (x = r.compData) == null ? void 0 : x.map((j) => ((j == null ? void 0 : j.key) === "groupContents" && (j.contents = b.value), j))), r;
|
|
108
|
-
});
|
|
109
|
-
u.setItemData(l), v.value && (v.value = !1), d("contentChange", {
|
|
110
|
-
wholeContent: h.value
|
|
111
|
-
});
|
|
112
|
-
}, W = (e) => {
|
|
113
|
-
var s, n;
|
|
114
|
-
if ((e == null ? void 0 : e.key) === "main")
|
|
115
|
-
g.setSelectIndex(""), g.setSelectMenu(""), g.setSelectTitle((s = M.value) == null ? void 0 : s[0]);
|
|
116
|
-
else {
|
|
117
|
-
const o = [];
|
|
118
|
-
let a = -1;
|
|
119
|
-
(n = M.value) == null || n.forEach((l, S) => {
|
|
120
|
-
(l == null ? void 0 : l.key) === (e == null ? void 0 : e.key) && (a = S), (a === -1 || a >= S) && o.push(l);
|
|
121
|
-
}), g.setSelectTitle(o), g.setSelectMenu(e == null ? void 0 : e.key);
|
|
122
|
-
}
|
|
123
|
-
};
|
|
124
|
-
O(
|
|
125
|
-
() => h.value,
|
|
126
|
-
() => {
|
|
127
|
-
var s, n, o, a, l, S, C, T;
|
|
128
|
-
if (!h.value || ((s = h.value) == null ? void 0 : s.length) === 0 || !f.value) return;
|
|
129
|
-
let e = null;
|
|
130
|
-
if (!A.value)
|
|
131
|
-
e = (o = (n = B(h.value)) == null ? void 0 : n.filter((r) => (r == null ? void 0 : r.comp) === "Group")) == null ? void 0 : o[0], y.setActiveMenuPath(e == null ? void 0 : e.name);
|
|
132
|
-
else {
|
|
133
|
-
const r = (a = B(h.value)) == null ? void 0 : a.filter((I) => (I == null ? void 0 : I.comp) === "Group");
|
|
134
|
-
e = r == null ? void 0 : r.find((I) => I.name === A.value);
|
|
135
|
-
}
|
|
136
|
-
_.value = (S = (l = e == null ? void 0 : e.compData) == null ? void 0 : l[0]) == null ? void 0 : S.contents, b.value = (T = (C = e == null ? void 0 : e.compData) == null ? void 0 : C[0]) == null ? void 0 : T.contents, console.log("itemData监听", e, A.value, h.value);
|
|
137
|
-
},
|
|
138
|
-
{ deep: !0, immediate: !0 }
|
|
139
|
-
), O(() => A.value, (e) => {
|
|
140
|
-
var s, n, o, a, l, S;
|
|
141
|
-
if (e) {
|
|
142
|
-
const C = (s = B(h.value)) == null ? void 0 : s.find((T) => T.name === e);
|
|
143
|
-
if (e && C) {
|
|
144
|
-
_.value = (o = (n = C == null ? void 0 : C.compData) == null ? void 0 : n[0]) == null ? void 0 : o.contents, b.value = (l = (a = C == null ? void 0 : C.compData) == null ? void 0 : a[0]) == null ? void 0 : l.contents, console.log("点击-新-data:", e, _.value);
|
|
145
|
-
const T = (S = _.value) == null ? void 0 : S.filter((r) => r.comp === "Form");
|
|
146
|
-
Ce(T);
|
|
147
|
-
} else
|
|
148
|
-
_.value = [], b.value = [];
|
|
149
|
-
g.setSelectTitle([]), g.setSelectIndex(""), g.setSelectMenu("");
|
|
150
|
-
}
|
|
151
|
-
}, {
|
|
152
|
-
immediate: !0
|
|
153
|
-
}), O(
|
|
154
|
-
() => [t == null ? void 0 : t.content, t == null ? void 0 : t.jsonContents],
|
|
155
|
-
() => {
|
|
156
|
-
var o;
|
|
157
|
-
if (((o = t == null ? void 0 : t.jsonContents) == null ? void 0 : o.length) > 0) {
|
|
158
|
-
u.setOriginalData(t == null ? void 0 : t.jsonContents), u.setItemData(t == null ? void 0 : t.jsonContents);
|
|
159
|
-
return;
|
|
160
|
-
}
|
|
161
|
-
if (!(t != null && t.content) || (t == null ? void 0 : t.content) === "") return;
|
|
162
|
-
f.value = !0;
|
|
163
|
-
let e;
|
|
164
|
-
re(t == null ? void 0 : t.content) ? e = ce(t == null ? void 0 : t.content) : e = me(t == null ? void 0 : t.content);
|
|
165
|
-
const s = Array.isArray(e) && (e == null ? void 0 : e.find((a) => {
|
|
166
|
-
var l;
|
|
167
|
-
return ((l = a.comp) == null ? void 0 : l.toUpperCase()) === "MENU";
|
|
168
|
-
}));
|
|
169
|
-
y.setRawMenu(s ?? {});
|
|
170
|
-
const n = Array.isArray(e) && (e == null ? void 0 : e.find((a) => {
|
|
171
|
-
var l;
|
|
172
|
-
return ((l = a.comp) == null ? void 0 : l.toUpperCase()) === "SYSTEM";
|
|
173
|
-
}));
|
|
174
|
-
y.setSystemKey((n == null ? void 0 : n.name) ?? ""), u.setOriginalData(e), u.setItemData(e);
|
|
175
|
-
},
|
|
176
|
-
{ deep: !0, immediate: !0 }
|
|
177
|
-
);
|
|
178
|
-
const c = (e) => ue(e);
|
|
179
|
-
return (e, s) => {
|
|
180
|
-
var n, o;
|
|
181
|
-
return i(), m("div", pe, [
|
|
182
|
-
R(de, { class: "sys-aside" }),
|
|
183
|
-
((n = _.value) == null ? void 0 : n.length) > 0 ? (i(), m("div", ke, [
|
|
184
|
-
((o = F(M)) == null ? void 0 : o.length) > 1 ? (i(), m("div", De, [
|
|
185
|
-
(i(), Y(ye, {
|
|
186
|
-
key: F(M),
|
|
187
|
-
breadArray: F(M),
|
|
188
|
-
onClick: W
|
|
189
|
-
}, null, 8, ["breadArray"]))
|
|
190
|
-
])) : $("", !0),
|
|
191
|
-
(i(!0), m(z, null, H(_.value, (a, l) => (i(), m("div", {
|
|
192
|
-
class: "item-content",
|
|
193
|
-
key: l
|
|
194
|
-
}, [
|
|
195
|
-
F(w) === "" || l.toString() === F(w) ? (i(), m("div", Se, U(a.name), 1)) : $("", !0),
|
|
196
|
-
F(w) === "" || l.toString() === F(w) ? (i(), Y(te(c(a.comp)), {
|
|
197
|
-
itemData: a == null ? void 0 : a.compData,
|
|
198
|
-
childItemData: a == null ? void 0 : a.itemChildData,
|
|
199
|
-
key: l,
|
|
200
|
-
onChange: K,
|
|
201
|
-
index: l,
|
|
202
|
-
onContentChange: L
|
|
203
|
-
}, null, 40, ["itemData", "childItemData", "index"])) : $("", !0)
|
|
204
|
-
]))), 128))
|
|
205
|
-
])) : $("", !0)
|
|
206
|
-
]);
|
|
207
|
-
};
|
|
208
|
-
}
|
|
209
|
-
}, Me = /* @__PURE__ */ q(Ie, [["__scopeId", "data-v-38117cb6"]]), Ae = { class: "add-model-content" }, be = {
|
|
210
|
-
key: 0,
|
|
211
|
-
class: "model-import-data"
|
|
212
|
-
}, Te = { class: "import-button" }, xe = { key: 0 }, $e = {
|
|
213
|
-
key: 1,
|
|
214
|
-
class: "model-operate"
|
|
215
|
-
}, je = { class: "model-select" }, we = { class: "model-fill" }, Ee = {
|
|
216
|
-
key: 2,
|
|
217
|
-
class: "model-view"
|
|
218
|
-
}, Fe = {
|
|
219
|
-
__name: "index",
|
|
220
|
-
props: {
|
|
221
|
-
mode: {
|
|
222
|
-
type: String,
|
|
223
|
-
default: "view"
|
|
224
|
-
},
|
|
225
|
-
content: {
|
|
226
|
-
type: String,
|
|
227
|
-
default: ""
|
|
228
|
-
},
|
|
229
|
-
jsonContents: {
|
|
230
|
-
type: Array,
|
|
231
|
-
default: () => []
|
|
232
|
-
},
|
|
233
|
-
showButton: {
|
|
234
|
-
type: Boolean,
|
|
235
|
-
default: !0
|
|
236
|
-
}
|
|
237
|
-
},
|
|
238
|
-
emits: ["change", "contentChange"],
|
|
239
|
-
setup(p, { emit: k }) {
|
|
240
|
-
const t = p, d = k, u = D(""), f = D([]), y = D(0), v = Q(J), h = X(J), { itemData: g, originalData: A } = P(v), { activeMenuPath: Z } = P(h), G = D(null), V = D(0), w = D(""), M = (c) => {
|
|
241
|
-
d("contentChange", c);
|
|
242
|
-
}, b = (c) => {
|
|
243
|
-
var s;
|
|
244
|
-
const e = (s = B(c == null ? void 0 : c.wholeValue)) == null ? void 0 : s.map((n) => {
|
|
245
|
-
var o;
|
|
246
|
-
return (n == null ? void 0 : n.comp) === "Form" && (n.compData = (o = n.compData) == null ? void 0 : o.map((a) => ((a == null ? void 0 : a.key) === "formContent" && (a.contents = ie(a == null ? void 0 : a.contents)), a))), n;
|
|
247
|
-
});
|
|
248
|
-
d("change", {
|
|
249
|
-
originalContents: A.value,
|
|
250
|
-
currentContents: c == null ? void 0 : c.wholeValue,
|
|
251
|
-
editContent: c == null ? void 0 : c.editValue,
|
|
252
|
-
arrayToContents: e
|
|
253
|
-
});
|
|
254
|
-
}, _ = D([]), K = () => {
|
|
255
|
-
G.value.click();
|
|
256
|
-
}, L = (c) => {
|
|
257
|
-
const e = c.target.files[0];
|
|
258
|
-
if (!e) return;
|
|
259
|
-
const s = new FileReader();
|
|
260
|
-
s.onload = (n) => {
|
|
261
|
-
try {
|
|
262
|
-
u.value = n.target.result;
|
|
263
|
-
const o = _e(n.target.result);
|
|
264
|
-
console.log("handleFileChange-isValid", o), _.value = W(n.target.result), V.value++;
|
|
265
|
-
} catch (o) {
|
|
266
|
-
console.error("解析失败:", o);
|
|
267
|
-
}
|
|
268
|
-
}, s.onerror = (n) => {
|
|
269
|
-
console.error("文件读取错误:", n);
|
|
270
|
-
}, s.readAsText(e);
|
|
271
|
-
};
|
|
272
|
-
O(
|
|
273
|
-
() => [t == null ? void 0 : t.content, t == null ? void 0 : t.jsonContents],
|
|
274
|
-
() => {
|
|
275
|
-
u.value = t == null ? void 0 : t.content, f.value = t == null ? void 0 : t.jsonContents;
|
|
276
|
-
},
|
|
277
|
-
{ deep: !0, immediate: !0 }
|
|
278
|
-
), O(
|
|
279
|
-
() => V.value,
|
|
280
|
-
() => {
|
|
281
|
-
var c;
|
|
282
|
-
((c = _.value) == null ? void 0 : c.length) !== 0 && (v.setOriginalData(_.value), v.setItemData(_.value));
|
|
283
|
-
},
|
|
284
|
-
{ deep: !0, immediate: !0 }
|
|
285
|
-
);
|
|
286
|
-
const W = (c) => {
|
|
287
|
-
let e = c.replace(/,/g, ",").replace(/;/g, ";").replace(/:/g, ":");
|
|
288
|
-
e = e.replace(/(\w+)\s*:/g, "$1:"), e = e.replace(/\r\n/g, "").replace(/\n/g, "").replace(/\t/g, "").replace(/\s+/g, " ").trim(), e = e.replace(/,\s*([}\]])/g, "$1"), e = e.replace(/:(\s*)([^"{}\[\],\s]+)(\s*)([,}])/g, ": $2$4");
|
|
289
|
-
try {
|
|
290
|
-
return JSON.parse(e);
|
|
291
|
-
} catch (s) {
|
|
292
|
-
try {
|
|
293
|
-
const o = new Function(`return ${e}`)();
|
|
294
|
-
if (Array.isArray(o) || typeof o == "object")
|
|
295
|
-
return o;
|
|
296
|
-
throw new Error(`解析结果不是有效的数组或对象: ${s}`);
|
|
297
|
-
} catch (n) {
|
|
298
|
-
throw new Error(`无法解析JSON: ${n.message}`);
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
};
|
|
302
|
-
return (c, e) => {
|
|
303
|
-
var s;
|
|
304
|
-
return i(), m("div", Ae, [
|
|
305
|
-
((s = t == null ? void 0 : t.jsonContents) == null ? void 0 : s.length) === 0 && (t != null && t.showButton) ? (i(), m("div", be, [
|
|
306
|
-
N("div", Te, [
|
|
307
|
-
N("input", {
|
|
308
|
-
type: "file",
|
|
309
|
-
ref_key: "fileInput",
|
|
310
|
-
ref: G,
|
|
311
|
-
accept: ".txt",
|
|
312
|
-
onChange: L,
|
|
313
|
-
style: { display: "none" }
|
|
314
|
-
}, null, 544),
|
|
315
|
-
N("button", {
|
|
316
|
-
onClick: K,
|
|
317
|
-
class: "import-button-content"
|
|
318
|
-
}, "导入文件"),
|
|
319
|
-
w.value ? (i(), m("span", xe, U(w.value), 1)) : $("", !0)
|
|
320
|
-
])
|
|
321
|
-
])) : $("", !0),
|
|
322
|
-
(t == null ? void 0 : t.mode) === "edit" ? (i(), m("div", $e, [
|
|
323
|
-
N("div", je, [
|
|
324
|
-
R(ae)
|
|
325
|
-
]),
|
|
326
|
-
(i(), m("div", {
|
|
327
|
-
class: "model-show",
|
|
328
|
-
key: y.value
|
|
329
|
-
}, [
|
|
330
|
-
R(ne)
|
|
331
|
-
])),
|
|
332
|
-
N("div", we, [
|
|
333
|
-
R(oe)
|
|
334
|
-
])
|
|
335
|
-
])) : $("", !0),
|
|
336
|
-
(t == null ? void 0 : t.mode) === "view" ? (i(), m("div", Ee, [
|
|
337
|
-
(i(), Y(Me, {
|
|
338
|
-
content: u.value,
|
|
339
|
-
onChange: b,
|
|
340
|
-
jsonContents: f.value,
|
|
341
|
-
onContentChange: M,
|
|
342
|
-
key: y.value
|
|
343
|
-
}, null, 8, ["content", "jsonContents"]))
|
|
344
|
-
])) : $("", !0)
|
|
345
|
-
]);
|
|
346
|
-
};
|
|
347
|
-
}
|
|
348
|
-
}, Ke = /* @__PURE__ */ q(Fe, [["__scopeId", "data-v-876d48c6"]]);
|
|
349
|
-
export {
|
|
350
|
-
Ke as default
|
|
351
|
-
};
|