ss-component-new 1.1.61 → 1.1.63
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/{array-BGMpYX__.js → array-TPqQws5q.js} +296 -301
- package/dist/{index-DIVHEVZC.js → index-0YLRLE1V.js} +160 -136
- package/dist/{index-zogzyMot.js → index-BtYQ1bjb.js} +4 -7
- package/dist/{main-DqI34-Cq.js → main-D_C9ArNk.js} +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +3 -3
- package/dist/ss-component.umd.cjs +4 -4
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createElementBlock as h, openBlock as F, createElementVNode as S, renderSlot as b, defineComponent as iA, ref as O, resolveComponent as _, createVNode as D, withCtx as U, reactive as oA, watch as $, unref as G, inject as wA, toDisplayString as f, createTextVNode as AA, onMounted as SA, Fragment as nA, renderList as lA, createCommentVNode as V, createBlock as BA, resolveDynamicComponent as dA } from "vue";
|
|
2
2
|
import { _ as q, c as r } from "./_plugin-vue_export-helper-B7R8Jogt.js";
|
|
3
3
|
import { a as kA, l as FA, u as rA, s as gA } from "./menu-D6yKPqgS.js";
|
|
4
|
-
import { v as IA, d as EA, p as CA, u as mA, f as DA, i as UA, e as hA, g as xA, m as MA, a as YA, b as OA, c as zA } from "./array-
|
|
4
|
+
import { v as IA, d as EA, p as CA, u as mA, f as DA, i as UA, e as hA, g as xA, m as MA, a as YA, b as OA, c as zA } from "./array-TPqQws5q.js";
|
|
5
5
|
import { u as uA } from "./modelComp-Cr1QF6ip.js";
|
|
6
6
|
import KA from "./index-K2751gew.js";
|
|
7
7
|
const LA = {}, jA = { class: "header-wrapper" }, vA = { class: "header-horizontal" }, PA = { class: "header-logo" }, HA = { class: "header-cTitle" }, pA = { class: "header-horizontal" }, bA = { class: "header-eTitle" };
|
|
@@ -46,11 +46,11 @@ const TA = /* @__PURE__ */ q(ZA, [["render", WA], ["__scopeId", "data-v-06d813c8
|
|
|
46
46
|
setup(E, { emit: B }) {
|
|
47
47
|
const A = O("card"), I = B, g = () => {
|
|
48
48
|
I("clickLogin", A.value);
|
|
49
|
-
},
|
|
49
|
+
}, n = () => {
|
|
50
50
|
I("handleTabClick", A.value);
|
|
51
51
|
};
|
|
52
|
-
return (e,
|
|
53
|
-
const
|
|
52
|
+
return (e, c) => {
|
|
53
|
+
const s = _("el-button"), u = _("el-tab-pane"), m = _("el-tabs");
|
|
54
54
|
return F(), h("div", VA, [
|
|
55
55
|
S("div", XA, [
|
|
56
56
|
b(e.$slots, "title", {}, void 0, !0)
|
|
@@ -58,9 +58,9 @@ const TA = /* @__PURE__ */ q(ZA, [["render", WA], ["__scopeId", "data-v-06d813c8
|
|
|
58
58
|
S("div", qA, [
|
|
59
59
|
D(m, {
|
|
60
60
|
modelValue: A.value,
|
|
61
|
-
"onUpdate:modelValue":
|
|
61
|
+
"onUpdate:modelValue": c[0] || (c[0] = (p) => A.value = p),
|
|
62
62
|
class: "right-tabs",
|
|
63
|
-
onTabClick:
|
|
63
|
+
onTabClick: n
|
|
64
64
|
}, {
|
|
65
65
|
default: U(() => [
|
|
66
66
|
D(u, { name: "card" }, {
|
|
@@ -75,7 +75,7 @@ const TA = /* @__PURE__ */ q(ZA, [["render", WA], ["__scopeId", "data-v-06d813c8
|
|
|
75
75
|
class: "tab-button common",
|
|
76
76
|
onClick: g
|
|
77
77
|
}, [
|
|
78
|
-
D(
|
|
78
|
+
D(s, { loading: E.loading }, {
|
|
79
79
|
default: U(() => [
|
|
80
80
|
b(e.$slots, "tabButton1", {}, void 0, !0)
|
|
81
81
|
]),
|
|
@@ -100,7 +100,7 @@ const TA = /* @__PURE__ */ q(ZA, [["render", WA], ["__scopeId", "data-v-06d813c8
|
|
|
100
100
|
class: "tab-button special",
|
|
101
101
|
onClick: g
|
|
102
102
|
}, [
|
|
103
|
-
D(
|
|
103
|
+
D(s, { loading: E.loading }, {
|
|
104
104
|
default: U(() => [
|
|
105
105
|
b(e.$slots, "tabButton2", {}, void 0, !0)
|
|
106
106
|
]),
|
|
@@ -144,25 +144,25 @@ const TA = /* @__PURE__ */ q(ZA, [["render", WA], ["__scopeId", "data-v-06d813c8
|
|
|
144
144
|
password: [
|
|
145
145
|
{ required: !0, message: "请输入密码", trigger: "blur" }
|
|
146
146
|
]
|
|
147
|
-
}),
|
|
148
|
-
return $(() => A.isClickLogin, (
|
|
149
|
-
var
|
|
150
|
-
|
|
147
|
+
}), n = O(null), e = B;
|
|
148
|
+
return $(() => A.isClickLogin, (c) => {
|
|
149
|
+
var s;
|
|
150
|
+
c && ((s = n.value) == null || s.validate((u) => {
|
|
151
151
|
e("handleLoginFormChange", u, u ? I : null);
|
|
152
152
|
}));
|
|
153
153
|
}, {
|
|
154
154
|
immediate: !0
|
|
155
|
-
}), $(() => A.activeTabName, (
|
|
156
|
-
var
|
|
157
|
-
|
|
158
|
-
}), (
|
|
155
|
+
}), $(() => A.activeTabName, (c) => {
|
|
156
|
+
var s;
|
|
157
|
+
c && ((s = n.value) == null || s.resetFields());
|
|
158
|
+
}), (c, s) => {
|
|
159
159
|
const u = _("el-input"), m = _("el-form-item"), p = _("el-form");
|
|
160
160
|
return F(), h("div", QE, [
|
|
161
161
|
D(p, {
|
|
162
162
|
model: I,
|
|
163
163
|
rules: g,
|
|
164
164
|
ref_key: "formRef",
|
|
165
|
-
ref:
|
|
165
|
+
ref: n
|
|
166
166
|
}, {
|
|
167
167
|
default: U(() => [
|
|
168
168
|
D(m, {
|
|
@@ -172,7 +172,7 @@ const TA = /* @__PURE__ */ q(ZA, [["render", WA], ["__scopeId", "data-v-06d813c8
|
|
|
172
172
|
default: U(() => [
|
|
173
173
|
D(u, {
|
|
174
174
|
modelValue: I.account,
|
|
175
|
-
"onUpdate:modelValue":
|
|
175
|
+
"onUpdate:modelValue": s[0] || (s[0] = (J) => I.account = J),
|
|
176
176
|
placeholder: "请输入账号",
|
|
177
177
|
"prefix-icon": G(kA),
|
|
178
178
|
clearable: ""
|
|
@@ -187,7 +187,7 @@ const TA = /* @__PURE__ */ q(ZA, [["render", WA], ["__scopeId", "data-v-06d813c8
|
|
|
187
187
|
default: U(() => [
|
|
188
188
|
D(u, {
|
|
189
189
|
modelValue: I.password,
|
|
190
|
-
"onUpdate:modelValue":
|
|
190
|
+
"onUpdate:modelValue": s[1] || (s[1] = (J) => I.password = J),
|
|
191
191
|
type: "password",
|
|
192
192
|
placeholder: "请输入密码",
|
|
193
193
|
"show-password": "",
|
|
@@ -203,7 +203,7 @@ const TA = /* @__PURE__ */ q(ZA, [["render", WA], ["__scopeId", "data-v-06d813c8
|
|
|
203
203
|
]);
|
|
204
204
|
};
|
|
205
205
|
}
|
|
206
|
-
}), iE = /* @__PURE__ */ q(eE, [["__scopeId", "data-v-53a41975"]]), nE = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAgCAYAAAB6kdqOAAAAAXNSR0IArs4c6QAAAd9JREFUWEftl71OAkEQx/97QC8XEj+iiTGexo/OnvgE0ChPIIXHQwgP4amxsYZGnkCtpbAxxiyJFEqCJie1yK7ZixhUuNtZYkLUa2/+M7+ZnbnbYTB87P3bIpi1BWCt34UEzpkUF35huWjimpmIlCbp8TMGbA7RX/uus27i2xjI9rgMC+i7jpFvI5EC+XEg2+NlSKTBMKmTuS5QlB2ApgRqz66TVXGDCmmIPhh7RxGl0bXrT15pWNLjVQZkdBuwF0i3qaPAv8StMNvjDwBmdIGQwJyfd+51xn7i4GbekvE7bd8SLQUUOi3fnElR0v3GvEPvaQOpHiIDKe9SlIQlTtq7K41BwexjPosXsQNmkWCCpjYCoqRMtP0HiirY76uQBWQRS1xalhCvnW4aQDmqCmHvR6rQsB/oKIMyClDOd53KoGxTHs8IoGpSKWOgeCI29ZhfaA0EOmpMi26n+beBAIzXkanjGLemDlpkrMbepGmjNMZTFuXY9D0dSF09wE7bhaWrsKD2IV+FgNrNtilwVKCK7zo5SgDqJY0EFJPMeSos1ilAKa++ISBruhoSUNi3Z1hA2+PqyLR/uPRLvm6qJnbqkk9dg0ziEDQV8qJIcE42DRbFnkp3lSZHiRZ8WqXfAFwe+He0YFLSAAAAAElFTkSuQmCC", oE = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAx1JREFUWEfFV01oE1EQnnmpYJRGL/6gYsGLVCoUzMGLNrO1B4sYKooXQT0JWtSK4KEHEVERPCjUHgqCQlFED4raUmP3bS0UhRQKnrTorQdFBBOkBZP97AuJbNo0+2KF7GlJ3sz3zcw3M2+Z6vxwnfHJmkAqlVrT0NCwB8BepdQuAOuJaEMxgK/M/M33/UlmfpvL5cY7Ojp+2gQXSiCdTq/IZrNniOg0gM1WTplniKi/sbHxbjwe/13NpioBrXUcwB0iarUBrnBmipnPiUh6KfslCXiet9/3/af/CFxmppQ6nEgkhiv5qkhAa90N4Ob/AC/5YOZLItK30OciAlrrAwAe24Iz8yul1A0imgPQ5ft+75LpZj4qIi+D/5cRMILLZDJejTXvcRxnwDgdGxtrzufzS9abiKZisVgiKMwyAlrr8wCu2UZvzjHzgIj0mHet9fH59uyvqnrmXhG5/bc0pZehoaFYNBpN27ZaoLY/mPk1EeUAmDnRFEJgZnZ2Nt7Z2ZkpBFA6rLXeB+B5LdEXM/ARwPZa7Jg5KSJvygi4rnuFiC7aOlJKPSCiR4lEYrw4L0aIaKWl/S3HcS6XEfA8b9T3/d2WDoxORhzHmQxk0JSv2cZeKfVunnj7whJ8ALDNwkFBpMy8Q0SOBQhMA9hkYW9sv4jIzoUEvgFYbeHAEOgFcKK9vf1JUf0tAN5b2BaOMPMvETHLrEyEtgQKTmKx2NpSP7uue4GIri6XgG0JTARDInIkkP5hs6ZrILC4BLWIkJlPicigAZyYmIjOzc19twU35yqKsJY2zGazG5PJZNY4c103SUQPayFARIvb0HYQMfOoiBwMpL8PwEkiMkPMkAl9Kg4i21HMzGdF5F4JxfO8TwA+Axg33RGGzsyVR3GxnUKXETM3iUih5lrrFiK6T0TdRPQCwCoLApWXkTG0WceRSKS1ra1tugSUSqWa5397RkRbwsBD13ExqqoXEqXUYD6fvx6JRLYCOEREXQDWWYCb9q1+IQkIq35XsoC46ncpDWSiftfyEom6fpgEhVW3TzMbdS/nTOi34XKc29j+AXyzojCfNKqJAAAAAElFTkSuQmCC", tE = { class: "card-wrap" },
|
|
206
|
+
}), iE = /* @__PURE__ */ q(eE, [["__scopeId", "data-v-53a41975"]]), nE = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAgCAYAAAB6kdqOAAAAAXNSR0IArs4c6QAAAd9JREFUWEftl71OAkEQx/97QC8XEj+iiTGexo/OnvgE0ChPIIXHQwgP4amxsYZGnkCtpbAxxiyJFEqCJie1yK7ZixhUuNtZYkLUa2/+M7+ZnbnbYTB87P3bIpi1BWCt34UEzpkUF35huWjimpmIlCbp8TMGbA7RX/uus27i2xjI9rgMC+i7jpFvI5EC+XEg2+NlSKTBMKmTuS5QlB2ApgRqz66TVXGDCmmIPhh7RxGl0bXrT15pWNLjVQZkdBuwF0i3qaPAv8StMNvjDwBmdIGQwJyfd+51xn7i4GbekvE7bd8SLQUUOi3fnElR0v3GvEPvaQOpHiIDKe9SlIQlTtq7K41BwexjPosXsQNmkWCCpjYCoqRMtP0HiirY76uQBWQRS1xalhCvnW4aQDmqCmHvR6rQsB/oKIMyClDOd53KoGxTHs8IoGpSKWOgeCI29ZhfaA0EOmpMi26n+beBAIzXkanjGLemDlpkrMbepGmjNMZTFuXY9D0dSF09wE7bhaWrsKD2IV+FgNrNtilwVKCK7zo5SgDqJY0EFJPMeSos1ilAKa++ISBruhoSUNi3Z1hA2+PqyLR/uPRLvm6qJnbqkk9dg0ziEDQV8qJIcE42DRbFnkp3lSZHiRZ8WqXfAFwe+He0YFLSAAAAAElFTkSuQmCC", oE = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAx1JREFUWEfFV01oE1EQnnmpYJRGL/6gYsGLVCoUzMGLNrO1B4sYKooXQT0JWtSK4KEHEVERPCjUHgqCQlFED4raUmP3bS0UhRQKnrTorQdFBBOkBZP97AuJbNo0+2KF7GlJ3sz3zcw3M2+Z6vxwnfHJmkAqlVrT0NCwB8BepdQuAOuJaEMxgK/M/M33/UlmfpvL5cY7Ojp+2gQXSiCdTq/IZrNniOg0gM1WTplniKi/sbHxbjwe/13NpioBrXUcwB0iarUBrnBmipnPiUh6KfslCXiet9/3/af/CFxmppQ6nEgkhiv5qkhAa90N4Ob/AC/5YOZLItK30OciAlrrAwAe24Iz8yul1A0imgPQ5ft+75LpZj4qIi+D/5cRMILLZDJejTXvcRxnwDgdGxtrzufzS9abiKZisVgiKMwyAlrr8wCu2UZvzjHzgIj0mHet9fH59uyvqnrmXhG5/bc0pZehoaFYNBpN27ZaoLY/mPk1EeUAmDnRFEJgZnZ2Nt7Z2ZkpBFA6rLXeB+B5LdEXM/ARwPZa7Jg5KSJvygi4rnuFiC7aOlJKPSCiR4lEYrw4L0aIaKWl/S3HcS6XEfA8b9T3/d2WDoxORhzHmQxk0JSv2cZeKfVunnj7whJ8ALDNwkFBpMy8Q0SOBQhMA9hkYW9sv4jIzoUEvgFYbeHAEOgFcKK9vf1JUf0tAN5b2BaOMPMvETHLrEyEtgQKTmKx2NpSP7uue4GIri6XgG0JTARDInIkkP5hs6ZrILC4BLWIkJlPicigAZyYmIjOzc19twU35yqKsJY2zGazG5PJZNY4c103SUQPayFARIvb0HYQMfOoiBwMpL8PwEkiMkPMkAl9Kg4i21HMzGdF5F4JxfO8TwA+Axg33RGGzsyVR3GxnUKXETM3iUih5lrrFiK6T0TdRPQCwCoLApWXkTG0WceRSKS1ra1tugSUSqWa5397RkRbwsBD13ExqqoXEqXUYD6fvx6JRLYCOEREXQDWWYCb9q1+IQkIq35XsoC46ncpDWSiftfyEom6fpgEhVW3TzMbdS/nTOi34XKc29j+AXyzojCfNKqJAAAAAElFTkSuQmCC", tE = { class: "card-wrap" }, sE = { class: "card-icon card" }, cE = { class: "card-input" }, aE = { class: "card-icon info" }, lE = /* @__PURE__ */ iA({
|
|
207
207
|
__name: "index",
|
|
208
208
|
props: {
|
|
209
209
|
activeTabName: {
|
|
@@ -213,30 +213,30 @@ const TA = /* @__PURE__ */ q(ZA, [["render", WA], ["__scopeId", "data-v-06d813c8
|
|
|
213
213
|
},
|
|
214
214
|
emits: ["handleCardInput"],
|
|
215
215
|
setup(E, { emit: B }) {
|
|
216
|
-
const A = E, I = O(""), g = B,
|
|
216
|
+
const A = E, I = O(""), g = B, n = (e) => {
|
|
217
217
|
g("handleCardInput", e);
|
|
218
218
|
};
|
|
219
219
|
return $(() => A.activeTabName, (e) => {
|
|
220
220
|
e && (I.value = "");
|
|
221
|
-
}), (e,
|
|
222
|
-
const
|
|
221
|
+
}), (e, c) => {
|
|
222
|
+
const s = _("el-image"), u = _("el-input");
|
|
223
223
|
return F(), h("div", tE, [
|
|
224
|
-
S("div",
|
|
225
|
-
D(
|
|
224
|
+
S("div", sE, [
|
|
225
|
+
D(s, {
|
|
226
226
|
src: G(nE),
|
|
227
227
|
fit: "contain"
|
|
228
228
|
}, null, 8, ["src"])
|
|
229
229
|
]),
|
|
230
|
-
S("div",
|
|
230
|
+
S("div", cE, [
|
|
231
231
|
D(u, {
|
|
232
232
|
modelValue: I.value,
|
|
233
|
-
"onUpdate:modelValue":
|
|
234
|
-
onChange:
|
|
233
|
+
"onUpdate:modelValue": c[0] || (c[0] = (m) => I.value = m),
|
|
234
|
+
onChange: n,
|
|
235
235
|
clearable: ""
|
|
236
236
|
}, null, 8, ["modelValue"])
|
|
237
237
|
]),
|
|
238
238
|
S("div", aE, [
|
|
239
|
-
D(
|
|
239
|
+
D(s, {
|
|
240
240
|
src: G(oE),
|
|
241
241
|
fit: "contain"
|
|
242
242
|
}, null, 8, ["src"])
|
|
@@ -254,15 +254,15 @@ var tA;
|
|
|
254
254
|
(function(E) {
|
|
255
255
|
E.pop = "pop", E.push = "push";
|
|
256
256
|
})(tA || (tA = {}));
|
|
257
|
-
var
|
|
257
|
+
var sA;
|
|
258
258
|
(function(E) {
|
|
259
259
|
E.back = "back", E.forward = "forward", E.unknown = "";
|
|
260
|
-
})(
|
|
260
|
+
})(sA || (sA = {}));
|
|
261
261
|
Symbol(process.env.NODE_ENV !== "production" ? "navigation failure" : "");
|
|
262
|
-
var
|
|
262
|
+
var cA;
|
|
263
263
|
(function(E) {
|
|
264
264
|
E[E.aborted = 4] = "aborted", E[E.cancelled = 8] = "cancelled", E[E.duplicated = 16] = "duplicated";
|
|
265
|
-
})(
|
|
265
|
+
})(cA || (cA = {}));
|
|
266
266
|
Symbol(process.env.NODE_ENV !== "production" ? "router view location matched" : "");
|
|
267
267
|
Symbol(process.env.NODE_ENV !== "production" ? "router view depth" : "");
|
|
268
268
|
const uE = Symbol(process.env.NODE_ENV !== "production" ? "router" : "");
|
|
@@ -292,12 +292,12 @@ const JE = { class: "login-wrap" }, wE = { class: "login-header" }, SE = { class
|
|
|
292
292
|
tips: "温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"
|
|
293
293
|
}
|
|
294
294
|
]
|
|
295
|
-
}), g = O(""),
|
|
296
|
-
|
|
297
|
-
},
|
|
298
|
-
|
|
295
|
+
}), g = O(""), n = O(!1), e = O(!1), c = () => {
|
|
296
|
+
n.value = !0;
|
|
297
|
+
}, s = (i) => {
|
|
298
|
+
n.value = !1, p(i);
|
|
299
299
|
}, u = (i, x) => {
|
|
300
|
-
|
|
300
|
+
n.value = !1, i && p(x);
|
|
301
301
|
}, m = async () => {
|
|
302
302
|
const i = {
|
|
303
303
|
data: {
|
|
@@ -312,7 +312,7 @@ const JE = { class: "login-wrap" }, wE = { class: "login-header" }, SE = { class
|
|
|
312
312
|
x && (console.log("loginAsync", x), A("change", "/model"));
|
|
313
313
|
});
|
|
314
314
|
}, J = (i) => {
|
|
315
|
-
g.value = i,
|
|
315
|
+
g.value = i, n.value = !1, e.value = !1;
|
|
316
316
|
};
|
|
317
317
|
return (i, x) => {
|
|
318
318
|
const l = _("el-image");
|
|
@@ -346,7 +346,7 @@ const JE = { class: "login-wrap" }, wE = { class: "login-header" }, SE = { class
|
|
|
346
346
|
S("div", kE, [
|
|
347
347
|
D(gE, {
|
|
348
348
|
loading: e.value,
|
|
349
|
-
onClickLogin:
|
|
349
|
+
onClickLogin: c,
|
|
350
350
|
onHandleTabClick: J
|
|
351
351
|
}, {
|
|
352
352
|
title: U(() => [
|
|
@@ -358,7 +358,7 @@ const JE = { class: "login-wrap" }, wE = { class: "login-header" }, SE = { class
|
|
|
358
358
|
tabContent1: U(() => [
|
|
359
359
|
D(rE, {
|
|
360
360
|
activeTabName: g.value,
|
|
361
|
-
onHandleCardInput:
|
|
361
|
+
onHandleCardInput: s
|
|
362
362
|
}, null, 8, ["activeTabName"])
|
|
363
363
|
]),
|
|
364
364
|
tabButton1: U(() => [
|
|
@@ -375,7 +375,7 @@ const JE = { class: "login-wrap" }, wE = { class: "login-header" }, SE = { class
|
|
|
375
375
|
tabContent2: U(() => [
|
|
376
376
|
D(iE, {
|
|
377
377
|
activeTabName: g.value,
|
|
378
|
-
isClickLogin:
|
|
378
|
+
isClickLogin: n.value,
|
|
379
379
|
onHandleLoginFormChange: u
|
|
380
380
|
}, null, 8, ["activeTabName", "isClickLogin"])
|
|
381
381
|
]),
|
|
@@ -394,7 +394,7 @@ const JE = { class: "login-wrap" }, wE = { class: "login-header" }, SE = { class
|
|
|
394
394
|
]);
|
|
395
395
|
};
|
|
396
396
|
}
|
|
397
|
-
}), UE = /* @__PURE__ */ q(DE, [["__scopeId", "data-v-
|
|
397
|
+
}), UE = /* @__PURE__ */ q(DE, [["__scopeId", "data-v-31afa5b4"]]), hE = { class: "bread-content" }, xE = ["onClick"], ME = { key: 0 }, YE = {
|
|
398
398
|
__name: "index",
|
|
399
399
|
props: {
|
|
400
400
|
breadArray: {
|
|
@@ -408,18 +408,18 @@ const JE = { class: "login-wrap" }, wE = { class: "login-header" }, SE = { class
|
|
|
408
408
|
SA(() => {
|
|
409
409
|
I.value = A == null ? void 0 : A.breadArray;
|
|
410
410
|
});
|
|
411
|
-
const
|
|
411
|
+
const n = (e) => {
|
|
412
412
|
g("click", e);
|
|
413
413
|
};
|
|
414
|
-
return (e,
|
|
415
|
-
(F(!0), h(nA, null, lA(I.value, (
|
|
414
|
+
return (e, c) => (F(), h("div", hE, [
|
|
415
|
+
(F(!0), h(nA, null, lA(I.value, (s, u) => (F(), h("div", {
|
|
416
416
|
key: u,
|
|
417
417
|
class: "bread-item"
|
|
418
418
|
}, [
|
|
419
419
|
S("div", {
|
|
420
420
|
class: "bread-title",
|
|
421
|
-
onClick: (m) =>
|
|
422
|
-
}, f(
|
|
421
|
+
onClick: (m) => n(s)
|
|
422
|
+
}, f(s.value), 9, xE),
|
|
423
423
|
u !== I.value.length - 1 ? (F(), h("div", ME, f("/"))) : V("", !0)
|
|
424
424
|
]))), 128))
|
|
425
425
|
]));
|
|
@@ -436,16 +436,16 @@ function zE(E) {
|
|
|
436
436
|
if (A[g])
|
|
437
437
|
B.push(g);
|
|
438
438
|
else if (Object.values(A).includes(g)) {
|
|
439
|
-
const
|
|
440
|
-
if (console.log("stack", B,
|
|
439
|
+
const n = B.pop();
|
|
440
|
+
if (console.log("stack", B, n, A[n]), A[n] !== g)
|
|
441
441
|
return !1;
|
|
442
442
|
}
|
|
443
443
|
}
|
|
444
444
|
return B.length === 0;
|
|
445
445
|
}
|
|
446
446
|
function KE(E) {
|
|
447
|
-
var I, g,
|
|
448
|
-
const B = (g = (I = E[0]) == null ? void 0 : I.compData) == null ? void 0 : g.filter((
|
|
447
|
+
var I, g, n, e;
|
|
448
|
+
const B = (g = (I = E[0]) == null ? void 0 : I.compData) == null ? void 0 : g.filter((c) => c.key !== "formContent"), A = (e = (n = E[0]) == null ? void 0 : n.compData) == null ? void 0 : e.filter((c) => c.key === "formContent");
|
|
449
449
|
console.log("handleFormModel:", B, A, E);
|
|
450
450
|
}
|
|
451
451
|
const QA = O(0), LE = (E) => {
|
|
@@ -476,15 +476,15 @@ const QA = O(0), LE = (E) => {
|
|
|
476
476
|
if (eA(A) && !A.includes("$") || (A = A.replace(/"([^"]+)"\$([\w\u4e00-\u9fa5]+\([^)]*\))/g, '"$1$$$2"')), eA(A)) {
|
|
477
477
|
const I = JSON.parse(A);
|
|
478
478
|
let g = [];
|
|
479
|
-
return I == null || I.forEach((
|
|
479
|
+
return I == null || I.forEach((n) => {
|
|
480
480
|
var e;
|
|
481
|
-
(e = Object.entries(r(
|
|
481
|
+
(e = Object.entries(r(n))) == null || e.forEach((c) => {
|
|
482
482
|
QA.value++, g.push({
|
|
483
483
|
id: QA.value,
|
|
484
|
-
key: (
|
|
485
|
-
value: (
|
|
484
|
+
key: (c == null ? void 0 : c[0]) ?? "",
|
|
485
|
+
value: (c == null ? void 0 : c[1]) === "" ? "" : c == null ? void 0 : c[1],
|
|
486
486
|
// 如果值为空,则key设为空字符串,否则保留原值
|
|
487
|
-
width: Object.keys(r(
|
|
487
|
+
width: Object.keys(r(n)).length
|
|
488
488
|
});
|
|
489
489
|
});
|
|
490
490
|
}), g;
|
|
@@ -516,7 +516,7 @@ const QA = O(0), LE = (E) => {
|
|
|
516
516
|
const I = r(E).replace(/[’]|[‘]|[']/g, '"').replace(/,/g, ",");
|
|
517
517
|
if (eA(I)) {
|
|
518
518
|
const g = JSON.parse(I);
|
|
519
|
-
return Array.isArray(g) ? g.map((
|
|
519
|
+
return Array.isArray(g) ? g.map((n) => ({ label: n })) : g;
|
|
520
520
|
} else
|
|
521
521
|
return RA(r(E));
|
|
522
522
|
}
|
|
@@ -540,18 +540,18 @@ const QA = O(0), LE = (E) => {
|
|
|
540
540
|
const B = E.match(/^([^(]+)\s*\(/);
|
|
541
541
|
return B ? B[1].trim() : E;
|
|
542
542
|
}, aA = (E) => E.replace(/'/g, "").replace(/"/g, "").replace(/{|}/g, "").split(":").map((B) => B.trim()).filter((B) => B).join("/"), fE = (E) => {
|
|
543
|
-
var e,
|
|
543
|
+
var e, c;
|
|
544
544
|
let B = [], A = [];
|
|
545
|
-
const I = (e = r(E)) == null ? void 0 : e.map((
|
|
546
|
-
g == null || g.forEach((
|
|
547
|
-
let u = E == null ? void 0 : E.filter((J) => J.key.includes(
|
|
545
|
+
const I = (e = r(E)) == null ? void 0 : e.map((s) => s == null ? void 0 : s.key), g = [...new Set((c = r(I)) == null ? void 0 : c.map((s) => pE(s)))];
|
|
546
|
+
g == null || g.forEach((s) => {
|
|
547
|
+
let u = E == null ? void 0 : E.filter((J) => J.key.includes(s));
|
|
548
548
|
u == null || u.forEach((J) => {
|
|
549
549
|
J != null && J.key.includes("Menus") && (B.push({
|
|
550
550
|
key: "GroupName",
|
|
551
551
|
value: aA(J == null ? void 0 : J.value)
|
|
552
552
|
}), A.push(aA(J == null ? void 0 : J.value)));
|
|
553
553
|
});
|
|
554
|
-
let m = E == null ? void 0 : E.filter((J) => J.key.includes(
|
|
554
|
+
let m = E == null ? void 0 : E.filter((J) => J.key.includes(s) && !(J != null && J.key.includes("Menus")));
|
|
555
555
|
m = m == null ? void 0 : m.map((J) => (J.key = bE(J.key), J));
|
|
556
556
|
const p = {
|
|
557
557
|
key: "GroupContents",
|
|
@@ -559,21 +559,21 @@ const QA = O(0), LE = (E) => {
|
|
|
559
559
|
};
|
|
560
560
|
B.push(p);
|
|
561
561
|
});
|
|
562
|
-
const
|
|
562
|
+
const n = {
|
|
563
563
|
key: "Menus",
|
|
564
564
|
value: A
|
|
565
565
|
};
|
|
566
|
-
return B.unshift(
|
|
566
|
+
return B.unshift(n), B;
|
|
567
567
|
}, JA = (E) => {
|
|
568
568
|
var B, A;
|
|
569
569
|
if (Array.isArray(Object.keys(E)) && ((B = Object.keys(E)) == null ? void 0 : B.length) > 0) {
|
|
570
570
|
let I = [];
|
|
571
|
-
return (A = Object.entries(E)) == null || A.forEach(([g,
|
|
572
|
-
var
|
|
571
|
+
return (A = Object.entries(E)) == null || A.forEach(([g, n]) => {
|
|
572
|
+
var c, s;
|
|
573
573
|
let e = [];
|
|
574
|
-
if (e.push(g), ((
|
|
574
|
+
if (e.push(g), ((c = Object.keys(n)) == null ? void 0 : c.length) > 0) {
|
|
575
575
|
let u = [];
|
|
576
|
-
u.push((
|
|
576
|
+
u.push((s = JA(n)) == null ? void 0 : s[0]), e.push(u == null ? void 0 : u[0]);
|
|
577
577
|
}
|
|
578
578
|
I.push(e);
|
|
579
579
|
}), I;
|
|
@@ -581,12 +581,12 @@ const QA = O(0), LE = (E) => {
|
|
|
581
581
|
}, GE = (E, B) => {
|
|
582
582
|
var I;
|
|
583
583
|
let A = B;
|
|
584
|
-
return Array.isArray(Object.keys(E)) && ((I = Object.entries(E)) == null || I.forEach(([g,
|
|
584
|
+
return Array.isArray(Object.keys(E)) && ((I = Object.entries(E)) == null || I.forEach(([g, n]) => {
|
|
585
585
|
let e = [g];
|
|
586
|
-
if (typeof
|
|
587
|
-
let
|
|
588
|
-
|
|
589
|
-
e.push(
|
|
586
|
+
if (typeof n == "object" && n !== null) {
|
|
587
|
+
let c = JA(n);
|
|
588
|
+
c == null || c.forEach((s) => {
|
|
589
|
+
e.push(s);
|
|
590
590
|
});
|
|
591
591
|
}
|
|
592
592
|
A.push(e);
|
|
@@ -595,52 +595,52 @@ const QA = O(0), LE = (E) => {
|
|
|
595
595
|
const B = {};
|
|
596
596
|
return E.forEach((I) => {
|
|
597
597
|
const g = I.split("/");
|
|
598
|
-
let
|
|
598
|
+
let n = B;
|
|
599
599
|
g.forEach((e) => {
|
|
600
|
-
|
|
600
|
+
n[e] || (n[e] = {}), n = n[e];
|
|
601
601
|
});
|
|
602
602
|
}), GE(B, []);
|
|
603
603
|
}, NE = (E) => ZE(E), yE = (E) => {
|
|
604
|
-
var e,
|
|
605
|
-
const B = LE((
|
|
604
|
+
var e, c, s, u, m, p, J;
|
|
605
|
+
const B = LE((c = (e = r(E)) == null ? void 0 : e.replace("(", "(")) == null ? void 0 : c.replace(")", ")")), A = (u = (s = r(B)) == null ? void 0 : s.filter((i) => !i.includes("/*"))) == null ? void 0 : u.map((i) => jE(i)), I = fE(A), g = [];
|
|
606
606
|
(m = r(I)) == null || m.forEach((i) => {
|
|
607
607
|
var x, l, R, M, z, Z, N, d, C;
|
|
608
|
-
(x = IA) != null && x.find((
|
|
608
|
+
(x = IA) != null && x.find((o) => {
|
|
609
609
|
var Q, t;
|
|
610
|
-
return ((Q =
|
|
610
|
+
return ((Q = o == null ? void 0 : o.key) == null ? void 0 : Q.toUpperCase()) === ((t = i == null ? void 0 : i.key) == null ? void 0 : t.toUpperCase());
|
|
611
611
|
}) ? g.push({
|
|
612
|
-
comp: ((R = (l = IA) == null ? void 0 : l.find((
|
|
612
|
+
comp: ((R = (l = IA) == null ? void 0 : l.find((o) => {
|
|
613
613
|
var Q, t;
|
|
614
|
-
return ((Q =
|
|
614
|
+
return ((Q = o == null ? void 0 : o.key) == null ? void 0 : Q.toUpperCase()) === ((t = i == null ? void 0 : i.key) == null ? void 0 : t.toUpperCase());
|
|
615
615
|
})) == null ? void 0 : R.value) ?? "",
|
|
616
616
|
name: (M = i == null ? void 0 : i.value) == null ? void 0 : M.replace(/[’]|[‘]|[']/g, ""),
|
|
617
617
|
compData: []
|
|
618
|
-
}) : (z = EA) != null && z.find((
|
|
618
|
+
}) : (z = EA) != null && z.find((o) => {
|
|
619
619
|
var Q, t;
|
|
620
|
-
return ((Q =
|
|
620
|
+
return ((Q = o == null ? void 0 : o.key) == null ? void 0 : Q.toUpperCase()) === ((t = i == null ? void 0 : i.key) == null ? void 0 : t.toUpperCase());
|
|
621
621
|
}) && ((g == null ? void 0 : g.length) === 0 && (Z = i.key) != null && Z.includes("Menus") && g.push({
|
|
622
622
|
comp: "Menu",
|
|
623
623
|
name: "",
|
|
624
624
|
compData: []
|
|
625
625
|
}), (N = g == null ? void 0 : g[(g == null ? void 0 : g.length) - 1]) != null && N.compData && g[(g == null ? void 0 : g.length) - 1].compData.push({
|
|
626
|
-
key: (C = (d = EA) == null ? void 0 : d.find((
|
|
626
|
+
key: (C = (d = EA) == null ? void 0 : d.find((o) => {
|
|
627
627
|
var Q, t;
|
|
628
|
-
return ((Q =
|
|
628
|
+
return ((Q = o == null ? void 0 : o.key) == null ? void 0 : Q.toUpperCase()) === ((t = i == null ? void 0 : i.key) == null ? void 0 : t.toUpperCase());
|
|
629
629
|
})) == null ? void 0 : C.value,
|
|
630
630
|
contents: i == null ? void 0 : i.value
|
|
631
631
|
}));
|
|
632
632
|
});
|
|
633
|
-
let
|
|
633
|
+
let n = (p = r(g)) == null ? void 0 : p.map((i) => {
|
|
634
634
|
var x;
|
|
635
635
|
return i != null && i.compData && (i.compData = (x = i == null ? void 0 : i.compData) == null ? void 0 : x.map((l) => {
|
|
636
|
-
var R, M, z, Z, N, d, C,
|
|
636
|
+
var R, M, z, Z, N, d, C, o, Q, t, a;
|
|
637
637
|
if ((l == null ? void 0 : l.key) === "formFlex")
|
|
638
638
|
l.contents = ((M = (R = l.contents) == null ? void 0 : R.replace(/[’]|[‘]|[']/g, "")) == null ? void 0 : M.toUpperCase()) !== "Vertical".toUpperCase();
|
|
639
639
|
else if ((l == null ? void 0 : l.key) === "groupContents")
|
|
640
640
|
l.contents = (z = r(l.contents)) == null ? void 0 : z.map((w) => PE(r(w)));
|
|
641
641
|
else if (Array.isArray(l == null ? void 0 : l.contents))
|
|
642
642
|
l.contents = NE(l.contents);
|
|
643
|
-
else if (((N = (Z = l == null ? void 0 : l.contents) == null ? void 0 : Z.trim()) != null && N.startsWith("[") || (C = (d = l.contents) == null ? void 0 : d.trim()) != null && C.startsWith("【")) && ((Q = (
|
|
643
|
+
else if (((N = (Z = l == null ? void 0 : l.contents) == null ? void 0 : Z.trim()) != null && N.startsWith("[") || (C = (d = l.contents) == null ? void 0 : d.trim()) != null && C.startsWith("【")) && ((Q = (o = l.contents) == null ? void 0 : o.trim()) != null && Q.endsWith("]") || (a = (t = l.contents) == null ? void 0 : t.trim()) != null && a.endsWith("】")))
|
|
644
644
|
l.contents = HE(r(l.contents));
|
|
645
645
|
else {
|
|
646
646
|
if (!l.contents) return;
|
|
@@ -649,13 +649,13 @@ const QA = O(0), LE = (E) => {
|
|
|
649
649
|
return l;
|
|
650
650
|
})), i;
|
|
651
651
|
});
|
|
652
|
-
return
|
|
652
|
+
return n = (J = r(n)) == null ? void 0 : J.map((i) => {
|
|
653
653
|
var x;
|
|
654
654
|
return (i == null ? void 0 : i.comp) === "Group" && (i.compData = (x = i.compData) == null ? void 0 : x.map((l) => {
|
|
655
655
|
var M;
|
|
656
656
|
let R = [];
|
|
657
657
|
return (M = l.contents) == null || M.forEach((z) => {
|
|
658
|
-
var Z, N, d, C,
|
|
658
|
+
var Z, N, d, C, o, Q, t, a, w, j, K, y, k, v, W, T, X;
|
|
659
659
|
if ((Z = IA) != null && Z.find((Y) => {
|
|
660
660
|
var L, P, H;
|
|
661
661
|
return ((L = Y == null ? void 0 : Y.key) == null ? void 0 : L.toUpperCase()) === ((H = (P = Object.keys(z)) == null ? void 0 : P[0]) == null ? void 0 : H.toUpperCase());
|
|
@@ -665,7 +665,7 @@ const QA = O(0), LE = (E) => {
|
|
|
665
665
|
var L, P, H;
|
|
666
666
|
return ((L = Y == null ? void 0 : Y.key) == null ? void 0 : L.toUpperCase()) === ((H = (P = Object.keys(z)) == null ? void 0 : P[0]) == null ? void 0 : H.toUpperCase());
|
|
667
667
|
})) == null ? void 0 : d.value,
|
|
668
|
-
name: (
|
|
668
|
+
name: (o = (C = Object.values(z)) == null ? void 0 : C[0]) == null ? void 0 : o.replace(/[’]|[‘]|[']/g, ""),
|
|
669
669
|
compData: []
|
|
670
670
|
});
|
|
671
671
|
else if ((Q = EA) != null && Q.find((Y) => {
|
|
@@ -694,7 +694,7 @@ const QA = O(0), LE = (E) => {
|
|
|
694
694
|
return z;
|
|
695
695
|
}), l.contents = R, l;
|
|
696
696
|
})), i;
|
|
697
|
-
}),
|
|
697
|
+
}), n;
|
|
698
698
|
}, WE = { class: "system-wrap" }, TE = {
|
|
699
699
|
key: 0,
|
|
700
700
|
class: "show-content"
|
|
@@ -714,16 +714,16 @@ const QA = O(0), LE = (E) => {
|
|
|
714
714
|
setup(E, { emit: B }) {
|
|
715
715
|
const A = E, I = B, g = uA(CA);
|
|
716
716
|
mA(CA);
|
|
717
|
-
const
|
|
717
|
+
const n = O(!0), e = rA(), c = O(!0), { itemData: s } = gA(g), u = DA(CA), { activeMenuPath: m, activeMenuOpenPaths: p, menuTriggerType: J, menus: i } = gA(e), { selectIndex: x, selectTitle: l } = gA(u), R = O([]), M = O([]), z = (C) => {
|
|
718
718
|
var Q, t, a;
|
|
719
|
-
const
|
|
720
|
-
M.value = (a = (t =
|
|
719
|
+
const o = (Q = s.value) == null ? void 0 : Q.find((w) => w.name === m.value);
|
|
720
|
+
M.value = (a = (t = o == null ? void 0 : o.compData) == null ? void 0 : t[0]) == null ? void 0 : a.contents, c.value = !0, c.value && (c.value = !1), I("change", {
|
|
721
721
|
wholeValue: R.value,
|
|
722
722
|
editValue: C
|
|
723
723
|
});
|
|
724
724
|
}, Z = (C) => {
|
|
725
725
|
var j, K, y;
|
|
726
|
-
const
|
|
726
|
+
const o = r(R.value), Q = o == null ? void 0 : o.map((k, v) => (v === (C == null ? void 0 : C.index) && (k.compData = C == null ? void 0 : C.contents), k));
|
|
727
727
|
let t = "";
|
|
728
728
|
(K = (j = r(Q)) == null ? void 0 : j.filter((k) => (k == null ? void 0 : k.comp) === "Form")) == null || K.forEach((k) => {
|
|
729
729
|
var v;
|
|
@@ -735,18 +735,18 @@ const QA = O(0), LE = (E) => {
|
|
|
735
735
|
});
|
|
736
736
|
});
|
|
737
737
|
let a = l == null ? void 0 : l.value;
|
|
738
|
-
(a == null ? void 0 : a.length) > 0 ? a[0] = { key: "main", value: t } : (Array.isArray(a) || (a = []), a.push({ key: "main", value: t })), u.setSelectTitle(a),
|
|
739
|
-
const w = (y =
|
|
738
|
+
(a == null ? void 0 : a.length) > 0 ? a[0] = { key: "main", value: t } : (Array.isArray(a) || (a = []), a.push({ key: "main", value: t })), u.setSelectTitle(a), n.value = !1, R.value = Q;
|
|
739
|
+
const w = (y = s.value) == null ? void 0 : y.map((k, v) => {
|
|
740
740
|
var W;
|
|
741
741
|
return k.name === m.value && (k.compData = (W = k.compData) == null ? void 0 : W.map((T) => ((T == null ? void 0 : T.key) === "groupContents" && (T.contents = R.value), T))), k;
|
|
742
742
|
});
|
|
743
|
-
g.setItemData(w),
|
|
744
|
-
wholeContent:
|
|
743
|
+
g.setItemData(w), c.value && (c.value = !1), I("contentChange", {
|
|
744
|
+
wholeContent: s.value
|
|
745
745
|
});
|
|
746
746
|
}, N = (C) => {
|
|
747
|
-
var
|
|
747
|
+
var o, Q;
|
|
748
748
|
if ((C == null ? void 0 : C.key) === "main")
|
|
749
|
-
u.setSelectIndex(""), u.setSelectMenu(""), u.setSelectTitle((
|
|
749
|
+
u.setSelectIndex(""), u.setSelectMenu(""), u.setSelectTitle((o = l.value) == null ? void 0 : o[0]);
|
|
750
750
|
else {
|
|
751
751
|
const t = [];
|
|
752
752
|
let a = -1;
|
|
@@ -756,24 +756,24 @@ const QA = O(0), LE = (E) => {
|
|
|
756
756
|
}
|
|
757
757
|
};
|
|
758
758
|
$(
|
|
759
|
-
() =>
|
|
759
|
+
() => s.value,
|
|
760
760
|
() => {
|
|
761
|
-
var
|
|
762
|
-
if (!
|
|
761
|
+
var o, Q, t, a, w, j, K, y;
|
|
762
|
+
if (!s.value || ((o = s.value) == null ? void 0 : o.length) === 0 || !n.value) return;
|
|
763
763
|
let C = null;
|
|
764
764
|
if (!m.value)
|
|
765
|
-
C = (t = (Q = r(
|
|
765
|
+
C = (t = (Q = r(s.value)) == null ? void 0 : Q.filter((k) => (k == null ? void 0 : k.comp) === "Group")) == null ? void 0 : t[0], e.setActiveMenuPath(C == null ? void 0 : C.name);
|
|
766
766
|
else {
|
|
767
|
-
const k = (a = r(
|
|
767
|
+
const k = (a = r(s.value)) == null ? void 0 : a.filter((v) => (v == null ? void 0 : v.comp) === "Group");
|
|
768
768
|
C = k == null ? void 0 : k.find((v) => v.name === m.value);
|
|
769
769
|
}
|
|
770
|
-
M.value = (j = (w = C == null ? void 0 : C.compData) == null ? void 0 : w[0]) == null ? void 0 : j.contents, R.value = (y = (K = C == null ? void 0 : C.compData) == null ? void 0 : K[0]) == null ? void 0 : y.contents, console.log("itemData监听", C, m.value,
|
|
770
|
+
M.value = (j = (w = C == null ? void 0 : C.compData) == null ? void 0 : w[0]) == null ? void 0 : j.contents, R.value = (y = (K = C == null ? void 0 : C.compData) == null ? void 0 : K[0]) == null ? void 0 : y.contents, console.log("itemData监听", C, m.value, s.value);
|
|
771
771
|
},
|
|
772
772
|
{ deep: !0, immediate: !0 }
|
|
773
773
|
), $(() => m.value, (C) => {
|
|
774
|
-
var
|
|
774
|
+
var o, Q, t, a, w, j;
|
|
775
775
|
if (C) {
|
|
776
|
-
const K = (
|
|
776
|
+
const K = (o = r(s.value)) == null ? void 0 : o.find((y) => y.name === C);
|
|
777
777
|
if (C && K) {
|
|
778
778
|
M.value = (t = (Q = K == null ? void 0 : K.compData) == null ? void 0 : Q[0]) == null ? void 0 : t.contents, R.value = (w = (a = K == null ? void 0 : K.compData) == null ? void 0 : a[0]) == null ? void 0 : w.contents, console.log("点击-新-data:", C, M.value);
|
|
779
779
|
const y = (j = M.value) == null ? void 0 : j.filter((k) => k.comp === "Form");
|
|
@@ -793,14 +793,14 @@ const QA = O(0), LE = (E) => {
|
|
|
793
793
|
return;
|
|
794
794
|
}
|
|
795
795
|
if (!(A != null && A.content) || (A == null ? void 0 : A.content) === "") return;
|
|
796
|
-
|
|
796
|
+
n.value = !0;
|
|
797
797
|
let C;
|
|
798
798
|
UA(A == null ? void 0 : A.content) ? C = hA(A == null ? void 0 : A.content) : C = yE(A == null ? void 0 : A.content);
|
|
799
|
-
const
|
|
799
|
+
const o = Array.isArray(C) && (C == null ? void 0 : C.find((a) => {
|
|
800
800
|
var w;
|
|
801
801
|
return ((w = a.comp) == null ? void 0 : w.toUpperCase()) === "MENU";
|
|
802
802
|
}));
|
|
803
|
-
e.setRawMenu(
|
|
803
|
+
e.setRawMenu(o ?? {});
|
|
804
804
|
const Q = Array.isArray(C) && (C == null ? void 0 : C.find((a) => {
|
|
805
805
|
var w;
|
|
806
806
|
return ((w = a.comp) == null ? void 0 : w.toUpperCase()) === "SYSTEM";
|
|
@@ -810,7 +810,7 @@ const QA = O(0), LE = (E) => {
|
|
|
810
810
|
{ deep: !0, immediate: !0 }
|
|
811
811
|
);
|
|
812
812
|
const d = (C) => xA(C);
|
|
813
|
-
return (C,
|
|
813
|
+
return (C, o) => {
|
|
814
814
|
var Q, t;
|
|
815
815
|
return F(), h("div", WE, [
|
|
816
816
|
D(KA, { class: "sys-aside" }),
|
|
@@ -871,11 +871,11 @@ const QA = O(0), LE = (E) => {
|
|
|
871
871
|
},
|
|
872
872
|
emits: ["change", "contentChange"],
|
|
873
873
|
setup(E, { emit: B }) {
|
|
874
|
-
const A = E, I = B, g = O(""),
|
|
874
|
+
const A = E, I = B, g = O(""), n = O([]), e = O(0), c = uA(CA), s = rA(CA), { itemData: u, originalData: m } = gA(c), { activeMenuPath: p } = gA(s), J = O(null), i = O(0), x = O(""), l = (d) => {
|
|
875
875
|
I("contentChange", d);
|
|
876
876
|
}, R = (d) => {
|
|
877
|
-
var
|
|
878
|
-
const C = (
|
|
877
|
+
var o;
|
|
878
|
+
const C = (o = r(d == null ? void 0 : d.wholeValue)) == null ? void 0 : o.map((Q) => {
|
|
879
879
|
var t;
|
|
880
880
|
return (Q == null ? void 0 : Q.comp) === "Form" && (Q.compData = (t = Q.compData) == null ? void 0 : t.map((a) => ((a == null ? void 0 : a.key) === "formContent" && (a.contents = zA(a == null ? void 0 : a.contents)), a))), Q;
|
|
881
881
|
});
|
|
@@ -890,8 +890,8 @@ const QA = O(0), LE = (E) => {
|
|
|
890
890
|
}, Z = (d) => {
|
|
891
891
|
const C = d.target.files[0];
|
|
892
892
|
if (!C) return;
|
|
893
|
-
const
|
|
894
|
-
|
|
893
|
+
const o = new FileReader();
|
|
894
|
+
o.onload = (Q) => {
|
|
895
895
|
try {
|
|
896
896
|
g.value = Q.target.result;
|
|
897
897
|
const t = zE(Q.target.result);
|
|
@@ -899,21 +899,21 @@ const QA = O(0), LE = (E) => {
|
|
|
899
899
|
} catch (t) {
|
|
900
900
|
console.error("解析失败:", t);
|
|
901
901
|
}
|
|
902
|
-
},
|
|
902
|
+
}, o.onerror = (Q) => {
|
|
903
903
|
console.error("文件读取错误:", Q);
|
|
904
|
-
},
|
|
904
|
+
}, o.readAsText(C);
|
|
905
905
|
};
|
|
906
906
|
$(
|
|
907
907
|
() => [A == null ? void 0 : A.content, A == null ? void 0 : A.jsonContents],
|
|
908
908
|
() => {
|
|
909
|
-
g.value = A == null ? void 0 : A.content,
|
|
909
|
+
g.value = A == null ? void 0 : A.content, n.value = A == null ? void 0 : A.jsonContents;
|
|
910
910
|
},
|
|
911
911
|
{ deep: !0, immediate: !0 }
|
|
912
912
|
), $(
|
|
913
913
|
() => i.value,
|
|
914
914
|
() => {
|
|
915
915
|
var d;
|
|
916
|
-
((d = M.value) == null ? void 0 : d.length) !== 0 && (
|
|
916
|
+
((d = M.value) == null ? void 0 : d.length) !== 0 && (c.setOriginalData(M.value), c.setItemData(M.value));
|
|
917
917
|
},
|
|
918
918
|
{ deep: !0, immediate: !0 }
|
|
919
919
|
);
|
|
@@ -922,21 +922,21 @@ const QA = O(0), LE = (E) => {
|
|
|
922
922
|
C = C.replace(/(\w+)\s*:/g, "$1:"), C = C.replace(/\r\n/g, "").replace(/\n/g, "").replace(/\t/g, "").replace(/\s+/g, " ").trim(), C = C.replace(/,\s*([}\]])/g, "$1"), C = C.replace(/:(\s*)([^"{}\[\],\s]+)(\s*)([,}])/g, ": $2$4");
|
|
923
923
|
try {
|
|
924
924
|
return JSON.parse(C);
|
|
925
|
-
} catch (
|
|
925
|
+
} catch (o) {
|
|
926
926
|
try {
|
|
927
927
|
const t = new Function(`return ${C}`)();
|
|
928
928
|
if (Array.isArray(t) || typeof t == "object")
|
|
929
929
|
return t;
|
|
930
|
-
throw new Error(`解析结果不是有效的数组或对象: ${
|
|
930
|
+
throw new Error(`解析结果不是有效的数组或对象: ${o}`);
|
|
931
931
|
} catch (Q) {
|
|
932
932
|
throw new Error(`无法解析JSON: ${Q.message}`);
|
|
933
933
|
}
|
|
934
934
|
}
|
|
935
935
|
};
|
|
936
936
|
return (d, C) => {
|
|
937
|
-
var
|
|
937
|
+
var o;
|
|
938
938
|
return F(), h("div", $E, [
|
|
939
|
-
((
|
|
939
|
+
((o = A == null ? void 0 : A.jsonContents) == null ? void 0 : o.length) === 0 && (A != null && A.showButton) ? (F(), h("div", AI, [
|
|
940
940
|
S("div", EI, [
|
|
941
941
|
S("input", {
|
|
942
942
|
type: "file",
|
|
@@ -971,7 +971,7 @@ const QA = O(0), LE = (E) => {
|
|
|
971
971
|
(F(), BA(_E, {
|
|
972
972
|
content: g.value,
|
|
973
973
|
onChange: R,
|
|
974
|
-
jsonContents:
|
|
974
|
+
jsonContents: n.value,
|
|
975
975
|
onContentChange: l,
|
|
976
976
|
key: e.value
|
|
977
977
|
}, null, 8, ["content", "jsonContents"]))
|
|
@@ -981,19 +981,43 @@ const QA = O(0), LE = (E) => {
|
|
|
981
981
|
}
|
|
982
982
|
}, iI = /* @__PURE__ */ q(eI, [["__scopeId", "data-v-876d48c6"]]), nI = {
|
|
983
983
|
__name: "index",
|
|
984
|
+
props: {
|
|
985
|
+
mode: {
|
|
986
|
+
type: String,
|
|
987
|
+
default: "view"
|
|
988
|
+
},
|
|
989
|
+
content: {
|
|
990
|
+
type: String,
|
|
991
|
+
default: ""
|
|
992
|
+
},
|
|
993
|
+
jsonContents: {
|
|
994
|
+
type: Array,
|
|
995
|
+
default: () => []
|
|
996
|
+
},
|
|
997
|
+
showButton: {
|
|
998
|
+
type: Boolean,
|
|
999
|
+
default: !0
|
|
1000
|
+
}
|
|
1001
|
+
},
|
|
984
1002
|
setup(E) {
|
|
985
|
-
const B = O(!1),
|
|
986
|
-
|
|
1003
|
+
const B = E, A = O(!1), I = () => {
|
|
1004
|
+
A.value = !0;
|
|
987
1005
|
};
|
|
988
|
-
return (
|
|
989
|
-
|
|
1006
|
+
return (g, n) => (F(), h(nA, null, [
|
|
1007
|
+
A.value ? V("", !0) : (F(), BA(UE, {
|
|
990
1008
|
key: 0,
|
|
991
|
-
onChange:
|
|
1009
|
+
onChange: I
|
|
992
1010
|
})),
|
|
993
|
-
|
|
1011
|
+
A.value ? (F(), BA(iI, {
|
|
1012
|
+
key: 1,
|
|
1013
|
+
mode: B.mode,
|
|
1014
|
+
content: B.content,
|
|
1015
|
+
jsonContents: B.jsonContents,
|
|
1016
|
+
showButton: B.showButton
|
|
1017
|
+
}, null, 8, ["mode", "content", "jsonContents", "showButton"])) : V("", !0)
|
|
994
1018
|
], 64));
|
|
995
1019
|
}
|
|
996
|
-
}, rI = /* @__PURE__ */ q(nI, [["__scopeId", "data-v-
|
|
1020
|
+
}, rI = /* @__PURE__ */ q(nI, [["__scopeId", "data-v-d94b97bd"]]);
|
|
997
1021
|
export {
|
|
998
1022
|
rI as default
|
|
999
1023
|
};
|