bp-aicc-editor 1.2.521 → 1.2.523
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/lib/{ScreenPreview-CV95NWOd.js → ScreenPreview-yUHo60be.js} +51 -105
- package/lib/atlas-BMjKIOwk.js +3891 -0
- package/lib/{button-base-DHNVBrQ9.js → button-base-CXl1z-_m.js} +1 -1
- package/lib/{cache-lsjsKZHu.js → cache-DbHSDjJy.js} +1 -1
- package/lib/config-provider-Bui8m4GV.js +62 -0
- package/lib/{container-group-DqAcKEBy.js → container-group-D6Extorz.js} +1 -1
- package/lib/{copy-C5Pi6nJh.js → copy-CsCmPy4J.js} +1 -1
- package/lib/{datav-BER95ty-.js → datav-BTD-HJhV.js} +27 -27
- package/lib/{delete-C2EW4JCs.js → delete-COj0ilHh.js} +1 -1
- package/lib/{divider-BazBGRgV.js → divider-B3K_URZc.js} +1 -1
- package/lib/dropdown-CWvnuJsO.js +105 -0
- package/lib/{edit-B2pfd2q1.js → edit-vdJaEine.js} +1 -1
- package/lib/{el-form-item-BDdxk5F5.js → el-form-item-BbaNohQv.js} +51 -51
- package/lib/{el-link-D2ol9BHQ.js → el-link-Dq721Q7-.js} +12 -12
- package/lib/{el-loading-Cgwgez55.js → el-loading-DOxnN3bm.js} +17 -17
- package/lib/{fullscreen-OChDsSnk.js → fullscreen-DXSogbcG.js} +1 -1
- package/lib/{image-C5ZAY3yt.js → image-Cu7JTK9-.js} +1 -1
- package/lib/{index-Ci8AbyIq.js → index-68soBnbK.js} +8 -8
- package/lib/{index-BatyRVpL.js → index-B-d8WIg1.js} +7 -7
- package/lib/{index-BfIEunKC.js → index-B4zV3cxV.js} +18 -17
- package/lib/{index-CZJriuFt.js → index-B8QqTLfg.js} +4974 -4898
- package/lib/index-BBMItxtW.js +619 -0
- package/lib/{index-CGrR_i0u.js → index-BMm0MRz5.js} +14 -15
- package/lib/index-BMn8EzMD.js +1027 -0
- package/lib/index-BNTW8F-9.js +322 -0
- package/lib/index-BTI518b1.js +69 -0
- package/lib/{index-BWPVi43E.js → index-BZxUAT4z.js} +4 -4
- package/lib/{index-Ck7uFsPE.js → index-BdYTc41r.js} +24 -24
- package/lib/index-BfI55Ioc.js +404 -0
- package/lib/{index-BhP9eBCp.js → index-BmAcetSf.js} +19 -20
- package/lib/index-C35Yp3i8.js +545 -0
- package/lib/{index-B19lEYui.js → index-C6GUNRx9.js} +2 -2
- package/lib/index-CC28_8Jl.js +567 -0
- package/lib/index-CDhmvVt8.js +338 -0
- package/lib/index-CDx0y0fp.js +144 -0
- package/lib/{el-button-DvLKp6Ga.js → index-CJjljoJG.js} +106 -106
- package/lib/index-CNCgXPiO.js +235 -0
- package/lib/{index-CWbZmzNT.js → index-CPa_MnOD.js} +30 -29
- package/lib/index-CW6ljdNf.js +1582 -0
- package/lib/index-C_WopEui.js +513 -0
- package/lib/{index-CX_Ghcb6.js → index-CejowjGd.js} +56 -53
- package/lib/{index-BwCQWH-N.js → index-CfZXOvi-.js} +42 -40
- package/lib/{index-CVsy2qTh.js → index-CgzRTmPh.js} +16 -15
- package/lib/index-CmzuNM9v.js +32 -0
- package/lib/index-CrxcAFt8.js +5343 -0
- package/lib/{index-C7k49L2T.js → index-CuHA7QXu.js} +10 -10
- package/lib/{index-qVyixI57.js → index-CyBGAB7D.js} +21 -20
- package/lib/index-D6J7coU0.js +129 -0
- package/lib/index-DDHxrdAo.js +1773 -0
- package/lib/index-DDL-yqq0.js +1401 -0
- package/lib/{index-BPcvYtHf.js → index-DOxy-bey.js} +6 -6
- package/lib/{index-CVE37oE7.js → index-DOyr0BHr.js} +7 -7
- package/lib/index-DPOanmXI.js +887 -0
- package/lib/{index-3pzVrvby.js → index-DR_husZg.js} +46 -46
- package/lib/{el-tab-pane-DD2eM9rB.js → index-DUzOCQrW.js} +125 -124
- package/lib/{index-CGFEhUh9.js → index-DVYI-g8Q.js} +53 -52
- package/lib/index-DVyjilLy.js +51 -0
- package/lib/{index-CJyYGViv.js → index-DWAJ9GyC.js} +9 -9
- package/lib/index-Dj2qCwPD.js +178 -0
- package/lib/{index-D4X0_jbv.js → index-Dx2Gld1J.js} +32 -32
- package/lib/{index-C2XeCqtq.js → index-E9T-y2Yz.js} +3 -3
- package/lib/{index-Buoc0ISP.js → index-FlmXAW0Z.js} +60 -58
- package/lib/index-NqqOvc6V.js +169 -0
- package/lib/{index-BkdiXCRY.js → index-ObKRNOmJ.js} +6 -7
- package/lib/index-bOWjoplU.js +448 -0
- package/lib/{index-CXQ258ID.js → index-buU8mDzi.js} +15 -16
- package/lib/{index-tbhuYbb0.js → index-mGKAWDJZ.js} +11 -12
- package/lib/index.es.js +4 -4
- package/lib/index.umd.js +46 -40
- package/lib/{layer-setting-panel-VvDSQ-cn.js → layer-setting-panel-BGPj32nP.js} +2 -2
- package/lib/{line-show-Bp4G-LqO.js → line-show-DUn1bu_P.js} +1 -1
- package/lib/{multi-layout-config-drSy7ezf.js → multi-layout-config-BTWxJeuc.js} +7 -8
- package/lib/{multiline-text-D89kYrA2.js → multiline-text-CPJdCWJ7.js} +1 -1
- package/lib/{navigation-YAGxZ0OT.js → navigation-ZLJaBOUj.js} +1 -1
- package/lib/page-config-CHP07Ndf.js +253 -0
- package/lib/{page-tabs-wFeNBY4c.js → page-tabs-CKLhgrip.js} +45 -41
- package/lib/{plus-3mdO6yXY.js → plus-xgpQU22I.js} +1 -1
- package/lib/raf-CJog_tcv.js +6 -0
- package/lib/refs-DZMysoBI.js +8 -0
- package/lib/{requestOld-DRcjsmRQ.js → requestOld-CaGzCXrV.js} +97 -96
- package/lib/{schema-BsnIOGBI.js → schema-BaFWGeFt.js} +1 -1
- package/lib/{schema-_APJMUW3.js → schema-CUR-UK2S.js} +44 -41
- package/lib/{schema-BavJE-SK.js → schema-WUk7XVq7.js} +58 -54
- package/lib/{schema-qKI1F8Bt.js → schema-geZfujv8.js} +1 -1
- package/lib/{schema-BflqDw-a.js → schema-iosjRxCC.js} +1 -1
- package/lib/{schema-Bo30dbBx.js → schema-tuPllxn6.js} +1 -1
- package/lib/scroll-CWfl60Tu.js +58 -0
- package/lib/{setting-panel-BgzN3BUP.js → setting-panel-0qLcwYyT.js} +154 -151
- package/lib/{show-C4AeWlKj.js → show-BCwE3hGY.js} +1 -1
- package/lib/{stepper-D5EFeJWG.js → stepper-Bud1Jppr.js} +1 -1
- package/lib/strings-BvUQWzDM.js +6 -0
- package/lib/style.css +1 -1
- package/lib/{switch-B0dR4LM_.js → switch-VlaUmSpJ.js} +1 -1
- package/lib/{unlock-Cq9PLhBA.js → unlock-B2FVPQlm.js} +1 -1
- package/lib/{use-env-url-BM9dgwx_.js → use-env-url-D1p8ib2L.js} +1 -1
- package/lib/use-global-config-D_yoqf3Q.js +90 -0
- package/lib/validator-BOXH2OMA.js +5 -0
- package/lib/{vnode-B_Dj8zxu.js → vnode-Bxs1g06p.js} +1 -1
- package/package.json +1 -1
- package/lib/atlas-DsmLq2V0.js +0 -38
- package/lib/el-overlay-BK0_UIU6.js +0 -704
- package/lib/index-B1yAU2Cb.js +0 -390
- package/lib/index-BCFXuK7k.js +0 -68
- package/lib/index-BD4Jwo8Z.js +0 -449
- package/lib/index-BMWqf88L.js +0 -356
- package/lib/index-Belsn8kt.js +0 -107
- package/lib/index-CIADz1i0.js +0 -8494
- package/lib/index-DKTrbqcA.js +0 -56
- package/lib/index-Ge_d2xqD.js +0 -127
- package/lib/page-config-Cmsi8Vpr.js +0 -582
- package/lib/strings-_mHAdgA4.js +0 -6
- package/lib/use-global-config-CflpFoxU.js +0 -115
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { F as i } from "./types-Byowp4FT.js";
|
|
2
|
-
import { defineComponent as U, computed as V, resolveComponent as L, createElementBlock as f, openBlock as u, createVNode as a, unref as l, withCtx as p, toRef as P, ref as z, watch as R, createElementVNode as c, createTextVNode as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
2
|
+
import { defineComponent as U, computed as V, resolveComponent as L, createElementBlock as f, openBlock as u, createVNode as a, unref as l, withCtx as p, toRef as P, ref as z, watch as R, createElementVNode as c, createTextVNode as E, Fragment as I, renderList as w, normalizeClass as X, createCommentVNode as Y, createBlock as S } from "vue";
|
|
3
|
+
import { E as j } from "./index-BNTW8F-9.js";
|
|
4
|
+
import { E as h, a as g } from "./index-CW6ljdNf.js";
|
|
5
|
+
import { _ as $, a as q, u as A, bB as H, d as J, bX as K, bY as M } from "./index-B8QqTLfg.js";
|
|
6
|
+
import { E as b } from "./index-CJjljoJG.js";
|
|
7
|
+
import { E as Q } from "./index-C_WopEui.js";
|
|
8
|
+
const W = { class: "indicator-config" }, Z = /* @__PURE__ */ U({
|
|
6
9
|
__name: "IndicatorConfig",
|
|
7
10
|
props: {
|
|
8
11
|
com: {}
|
|
@@ -10,9 +13,9 @@ const Y = { class: "indicator-config" }, Z = /* @__PURE__ */ U({
|
|
|
10
13
|
setup(y) {
|
|
11
14
|
const k = y, r = V(() => k.com.config.indicator);
|
|
12
15
|
return (x, s) => {
|
|
13
|
-
const
|
|
14
|
-
return u(), f("div",
|
|
15
|
-
a(l(
|
|
16
|
+
const m = L("g-color-picker");
|
|
17
|
+
return u(), f("div", W, [
|
|
18
|
+
a(l(j), {
|
|
16
19
|
modelValue: r.value.show,
|
|
17
20
|
"onUpdate:modelValue": s[0] || (s[0] = (n) => r.value.show = n),
|
|
18
21
|
size: "small"
|
|
@@ -44,7 +47,7 @@ const Y = { class: "indicator-config" }, Z = /* @__PURE__ */ U({
|
|
|
44
47
|
]),
|
|
45
48
|
_: 1
|
|
46
49
|
}, 8, ["modelValue"]),
|
|
47
|
-
a(
|
|
50
|
+
a(m, {
|
|
48
51
|
modelValue: r.value.color,
|
|
49
52
|
"onUpdate:modelValue": s[2] || (s[2] = (n) => r.value.color = n),
|
|
50
53
|
style: { width: "28px" },
|
|
@@ -64,13 +67,13 @@ const Y = { class: "indicator-config" }, Z = /* @__PURE__ */ U({
|
|
|
64
67
|
com: {}
|
|
65
68
|
},
|
|
66
69
|
setup(y) {
|
|
67
|
-
const k = y, r = P(k.com, "config"), x =
|
|
70
|
+
const k = y, r = P(k.com, "config"), x = q(), s = A(), m = z(!1), n = z(-1), d = V(() => k.com.config.options), G = V(() => x.flatComs.filter((o) => o.name === "VContainerGroup").map((o) => ({
|
|
68
71
|
label: o.config.title || o.alias,
|
|
69
72
|
value: o.id
|
|
70
|
-
}))),
|
|
73
|
+
}))), B = V(() => (s.pageConfig.allPages || []).map((o) => ({
|
|
71
74
|
label: o.name,
|
|
72
75
|
value: o.id
|
|
73
|
-
}))),
|
|
76
|
+
}))), v = V(() => n.value > -1 && d.value[n.value] ? d.value[n.value] : null);
|
|
74
77
|
R(
|
|
75
78
|
() => d.value,
|
|
76
79
|
(o) => {
|
|
@@ -83,7 +86,7 @@ const Y = { class: "indicator-config" }, Z = /* @__PURE__ */ U({
|
|
|
83
86
|
},
|
|
84
87
|
{ deep: !0, immediate: !0 }
|
|
85
88
|
);
|
|
86
|
-
function
|
|
89
|
+
function N() {
|
|
87
90
|
d.value.push({
|
|
88
91
|
label: `标签${d.value.length + 1}`,
|
|
89
92
|
value: `${d.value.length + 1}`,
|
|
@@ -93,14 +96,14 @@ const Y = { class: "indicator-config" }, Z = /* @__PURE__ */ U({
|
|
|
93
96
|
}
|
|
94
97
|
});
|
|
95
98
|
}
|
|
96
|
-
function
|
|
97
|
-
d.value.splice(o, 1), n.value === o && (
|
|
99
|
+
function O(o) {
|
|
100
|
+
d.value.splice(o, 1), n.value === o && (m.value = !1, n.value = -1);
|
|
98
101
|
}
|
|
99
102
|
function F(o) {
|
|
100
|
-
n.value = o,
|
|
103
|
+
n.value = o, m.value = !0;
|
|
101
104
|
}
|
|
102
105
|
function D() {
|
|
103
|
-
|
|
106
|
+
v.value && (v.value.interaction = {
|
|
104
107
|
containerGroup: "",
|
|
105
108
|
pageId: ""
|
|
106
109
|
});
|
|
@@ -114,25 +117,25 @@ const Y = { class: "indicator-config" }, Z = /* @__PURE__ */ U({
|
|
|
114
117
|
a(l(b), {
|
|
115
118
|
type: "primary",
|
|
116
119
|
link: "",
|
|
117
|
-
icon: l(
|
|
118
|
-
onClick:
|
|
120
|
+
icon: l(H),
|
|
121
|
+
onClick: N
|
|
119
122
|
}, {
|
|
120
123
|
default: p(() => [...e[4] || (e[4] = [
|
|
121
|
-
|
|
124
|
+
E(" 添加 ", -1)
|
|
122
125
|
])]),
|
|
123
126
|
_: 1
|
|
124
127
|
}, 8, ["icon"])
|
|
125
128
|
]),
|
|
126
|
-
(u(!0), f(
|
|
129
|
+
(u(!0), f(I, null, w(d.value, (t, _) => (u(), f("div", {
|
|
127
130
|
key: _,
|
|
128
131
|
class: "option-item"
|
|
129
132
|
}, [
|
|
130
133
|
c("div", {
|
|
131
|
-
class:
|
|
134
|
+
class: X(["default-radio", { active: y.com.config.defaultValue === t.value }]),
|
|
132
135
|
title: "设为默认值",
|
|
133
136
|
onClick: (C) => T(t)
|
|
134
137
|
}, null, 10, te),
|
|
135
|
-
a(l(
|
|
138
|
+
a(l(J), {
|
|
136
139
|
modelValue: t.label,
|
|
137
140
|
"onUpdate:modelValue": (C) => t.label = C,
|
|
138
141
|
placeholder: "请输入标签名称",
|
|
@@ -140,19 +143,19 @@ const Y = { class: "indicator-config" }, Z = /* @__PURE__ */ U({
|
|
|
140
143
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
141
144
|
a(l(b), {
|
|
142
145
|
link: "",
|
|
143
|
-
icon: l(
|
|
146
|
+
icon: l(K),
|
|
144
147
|
onClick: (C) => F(_)
|
|
145
148
|
}, null, 8, ["icon", "onClick"]),
|
|
146
149
|
a(l(b), {
|
|
147
150
|
type: "danger",
|
|
148
151
|
link: "",
|
|
149
|
-
icon: l(
|
|
150
|
-
onClick: (C) =>
|
|
152
|
+
icon: l(M),
|
|
153
|
+
onClick: (C) => O(_)
|
|
151
154
|
}, null, 8, ["icon", "onClick"])
|
|
152
155
|
]))), 128)),
|
|
153
|
-
a(l(
|
|
154
|
-
modelValue:
|
|
155
|
-
"onUpdate:modelValue": e[3] || (e[3] = (t) =>
|
|
156
|
+
a(l(Q), {
|
|
157
|
+
modelValue: m.value,
|
|
158
|
+
"onUpdate:modelValue": e[3] || (e[3] = (t) => m.value = t),
|
|
156
159
|
title: "交互设置",
|
|
157
160
|
width: "400px",
|
|
158
161
|
"destroy-on-close": ""
|
|
@@ -165,35 +168,35 @@ const Y = { class: "indicator-config" }, Z = /* @__PURE__ */ U({
|
|
|
165
168
|
onClick: D
|
|
166
169
|
}, {
|
|
167
170
|
default: p(() => [...e[8] || (e[8] = [
|
|
168
|
-
|
|
171
|
+
E(" 清空配置 ", -1)
|
|
169
172
|
])]),
|
|
170
173
|
_: 1
|
|
171
174
|
}),
|
|
172
175
|
a(l(b), {
|
|
173
176
|
type: "primary",
|
|
174
|
-
onClick: e[2] || (e[2] = (t) =>
|
|
177
|
+
onClick: e[2] || (e[2] = (t) => m.value = !1)
|
|
175
178
|
}, {
|
|
176
179
|
default: p(() => [...e[9] || (e[9] = [
|
|
177
|
-
|
|
180
|
+
E(" 确定 ", -1)
|
|
178
181
|
])]),
|
|
179
182
|
_: 1
|
|
180
183
|
})
|
|
181
184
|
])
|
|
182
185
|
]),
|
|
183
186
|
default: p(() => [
|
|
184
|
-
|
|
187
|
+
v.value ? (u(), f("div", ae, [
|
|
185
188
|
c("div", ne, [
|
|
186
189
|
e[6] || (e[6] = c("span", { class: "label" }, "容器组", -1)),
|
|
187
190
|
a(l(h), {
|
|
188
|
-
modelValue:
|
|
189
|
-
"onUpdate:modelValue": e[0] || (e[0] = (t) =>
|
|
191
|
+
modelValue: v.value.interaction.containerGroup,
|
|
192
|
+
"onUpdate:modelValue": e[0] || (e[0] = (t) => v.value.interaction.containerGroup = t),
|
|
190
193
|
placeholder: "请选择",
|
|
191
194
|
size: "small",
|
|
192
195
|
clearable: "",
|
|
193
196
|
teleported: !1
|
|
194
197
|
}, {
|
|
195
198
|
default: p(() => [
|
|
196
|
-
(u(!0), f(
|
|
199
|
+
(u(!0), f(I, null, w(G.value, (t) => (u(), S(l(g), {
|
|
197
200
|
key: t.value,
|
|
198
201
|
label: t.label,
|
|
199
202
|
value: t.value
|
|
@@ -205,15 +208,15 @@ const Y = { class: "indicator-config" }, Z = /* @__PURE__ */ U({
|
|
|
205
208
|
c("div", ie, [
|
|
206
209
|
e[7] || (e[7] = c("span", { class: "label" }, "页面", -1)),
|
|
207
210
|
a(l(h), {
|
|
208
|
-
modelValue:
|
|
209
|
-
"onUpdate:modelValue": e[1] || (e[1] = (t) =>
|
|
211
|
+
modelValue: v.value.interaction.pageId,
|
|
212
|
+
"onUpdate:modelValue": e[1] || (e[1] = (t) => v.value.interaction.pageId = t),
|
|
210
213
|
placeholder: "请选择",
|
|
211
214
|
size: "small",
|
|
212
215
|
clearable: "",
|
|
213
216
|
teleported: !1
|
|
214
217
|
}, {
|
|
215
218
|
default: p(() => [
|
|
216
|
-
(u(!0), f(
|
|
219
|
+
(u(!0), f(I, null, w(B.value, (t) => (u(), S(l(g), {
|
|
217
220
|
key: t.value,
|
|
218
221
|
label: t.label,
|
|
219
222
|
value: t.value
|
|
@@ -222,13 +225,13 @@ const Y = { class: "indicator-config" }, Z = /* @__PURE__ */ U({
|
|
|
222
225
|
_: 1
|
|
223
226
|
}, 8, ["modelValue"])
|
|
224
227
|
])
|
|
225
|
-
])) :
|
|
228
|
+
])) : Y("", !0)
|
|
226
229
|
]),
|
|
227
230
|
_: 1
|
|
228
231
|
}, 8, ["modelValue"])
|
|
229
232
|
]));
|
|
230
233
|
}
|
|
231
|
-
}), se = /* @__PURE__ */ $(re, [["__scopeId", "data-v-c6f49b3e"]]),
|
|
234
|
+
}), se = /* @__PURE__ */ $(re, [["__scopeId", "data-v-c6f49b3e"]]), be = [
|
|
232
235
|
{
|
|
233
236
|
type: i.group,
|
|
234
237
|
label: "基础属性",
|
|
@@ -295,5 +298,5 @@ const Y = { class: "indicator-config" }, Z = /* @__PURE__ */ U({
|
|
|
295
298
|
}
|
|
296
299
|
];
|
|
297
300
|
export {
|
|
298
|
-
|
|
301
|
+
be as default
|
|
299
302
|
};
|
|
@@ -1,15 +1,19 @@
|
|
|
1
|
-
import { F as
|
|
2
|
-
import { defineComponent as F, ref as f, computed as H, onMounted as $, resolveComponent as B, createElementBlock as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { _ as
|
|
1
|
+
import { F as i } from "./types-Byowp4FT.js";
|
|
2
|
+
import { defineComponent as F, ref as f, computed as H, onMounted as $, resolveComponent as B, createElementBlock as k, openBlock as w, createVNode as l, createElementVNode as v, unref as o, withCtx as n, createTextVNode as b, Fragment as L, renderList as M, createBlock as N } from "vue";
|
|
3
|
+
import { v as E, E as O, a as g, c as R } from "./atlas-BMjKIOwk.js";
|
|
4
|
+
import { E as _, a as C } from "./index-DUzOCQrW.js";
|
|
5
|
+
import { d, _ as q } from "./index-B8QqTLfg.js";
|
|
6
|
+
import { E as h } from "./index-CJjljoJG.js";
|
|
7
|
+
import { E as z, a as y } from "./index-CW6ljdNf.js";
|
|
8
|
+
import { E as D } from "./index-C35Yp3i8.js";
|
|
9
|
+
import { E as W } from "./index-bOWjoplU.js";
|
|
6
10
|
const X = { class: "switch-config-panel" }, Y = { class: "instruction-section" }, j = { style: { display: "flex", "align-items": "center", width: "100%" } }, A = { style: { "margin-top": "10px", "text-align": "right" } }, G = /* @__PURE__ */ F({
|
|
7
11
|
__name: "SwitchConfigPanel",
|
|
8
12
|
props: {
|
|
9
13
|
com: {}
|
|
10
14
|
},
|
|
11
15
|
setup(m) {
|
|
12
|
-
const
|
|
16
|
+
const u = m, V = f("open"), p = f([]), x = f(""), a = f({
|
|
13
17
|
descr: "",
|
|
14
18
|
protocol: "",
|
|
15
19
|
target: "",
|
|
@@ -18,21 +22,21 @@ const X = { class: "switch-config-panel" }, Y = { class: "instruction-section" }
|
|
|
18
22
|
command: "",
|
|
19
23
|
isHex: !1,
|
|
20
24
|
commandType: "str"
|
|
21
|
-
}), c = H(() => V.value === "open" ?
|
|
22
|
-
async function
|
|
25
|
+
}), c = H(() => V.value === "open" ? u.com.config.open.instructions : u.com.config.close.instructions);
|
|
26
|
+
async function P() {
|
|
23
27
|
try {
|
|
24
|
-
const r = await
|
|
28
|
+
const r = await R({
|
|
25
29
|
keyword: "",
|
|
26
30
|
page: 1,
|
|
27
31
|
pageSize: 9999999
|
|
28
32
|
});
|
|
29
|
-
r && r.code === 0 ? p.value = r.data?.list || [] : (p.value = [],
|
|
33
|
+
r && r.code === 0 ? p.value = r.data?.list || [] : (p.value = [], W.error(r?.Message || "Request Error"));
|
|
30
34
|
} catch (r) {
|
|
31
35
|
console.error(r);
|
|
32
36
|
}
|
|
33
37
|
}
|
|
34
38
|
function T(r) {
|
|
35
|
-
const e = p.value.find((
|
|
39
|
+
const e = p.value.find((s) => s.id === r);
|
|
36
40
|
e && (a.value.descr = e.descr, a.value.protocol = e.method);
|
|
37
41
|
}
|
|
38
42
|
function U() {
|
|
@@ -41,7 +45,7 @@ const X = { class: "switch-config-panel" }, Y = { class: "instruction-section" }
|
|
|
41
45
|
const r = {
|
|
42
46
|
...a.value,
|
|
43
47
|
target: `${a.value.target}:${a.value.remotePort}`,
|
|
44
|
-
id: `cmd-${
|
|
48
|
+
id: `cmd-${E()}`
|
|
45
49
|
};
|
|
46
50
|
delete r.remotePort, c.value.commands.push(r), a.value = {
|
|
47
51
|
descr: "",
|
|
@@ -61,27 +65,27 @@ const X = { class: "switch-config-panel" }, Y = { class: "instruction-section" }
|
|
|
61
65
|
a.value.commandType = r ? "hex" : "str";
|
|
62
66
|
}
|
|
63
67
|
return $(() => {
|
|
64
|
-
|
|
68
|
+
P(), u.com.config.open.instructions || (u.com.config.open.instructions = { id: `batch-${E()}`, commands: [] }), u.com.config.close.instructions || (u.com.config.close.instructions = { id: `batch-${E()}`, commands: [] });
|
|
65
69
|
}), (r, e) => {
|
|
66
|
-
const
|
|
67
|
-
return w(),
|
|
68
|
-
l(o(
|
|
70
|
+
const s = B("g-field");
|
|
71
|
+
return w(), k("div", X, [
|
|
72
|
+
l(o(_), {
|
|
69
73
|
modelValue: V.value,
|
|
70
74
|
"onUpdate:modelValue": e[2] || (e[2] = (t) => V.value = t),
|
|
71
75
|
type: "border-card"
|
|
72
76
|
}, {
|
|
73
77
|
default: n(() => [
|
|
74
|
-
l(o(
|
|
78
|
+
l(o(C), {
|
|
75
79
|
label: "打开状态",
|
|
76
80
|
name: "open"
|
|
77
81
|
}, {
|
|
78
82
|
default: n(() => [
|
|
79
|
-
l(
|
|
83
|
+
l(s, {
|
|
80
84
|
label: "按钮文本",
|
|
81
85
|
level: 2
|
|
82
86
|
}, {
|
|
83
87
|
default: n(() => [
|
|
84
|
-
l(o(
|
|
88
|
+
l(o(d), {
|
|
85
89
|
modelValue: m.com.config.open.text,
|
|
86
90
|
"onUpdate:modelValue": e[0] || (e[0] = (t) => m.com.config.open.text = t),
|
|
87
91
|
size: "small"
|
|
@@ -92,17 +96,17 @@ const X = { class: "switch-config-panel" }, Y = { class: "instruction-section" }
|
|
|
92
96
|
]),
|
|
93
97
|
_: 1
|
|
94
98
|
}),
|
|
95
|
-
l(o(
|
|
99
|
+
l(o(C), {
|
|
96
100
|
label: "关闭状态",
|
|
97
101
|
name: "close"
|
|
98
102
|
}, {
|
|
99
103
|
default: n(() => [
|
|
100
|
-
l(
|
|
104
|
+
l(s, {
|
|
101
105
|
label: "按钮文本",
|
|
102
106
|
level: 2
|
|
103
107
|
}, {
|
|
104
108
|
default: n(() => [
|
|
105
|
-
l(o(
|
|
109
|
+
l(o(d), {
|
|
106
110
|
modelValue: m.com.config.close.text,
|
|
107
111
|
"onUpdate:modelValue": e[1] || (e[1] = (t) => m.com.config.close.text = t),
|
|
108
112
|
size: "small"
|
|
@@ -118,7 +122,7 @@ const X = { class: "switch-config-panel" }, Y = { class: "instruction-section" }
|
|
|
118
122
|
}, 8, ["modelValue"]),
|
|
119
123
|
v("div", Y, [
|
|
120
124
|
e[15] || (e[15] = v("div", { class: "sub-title" }, " 指令 ", -1)),
|
|
121
|
-
l(o(
|
|
125
|
+
l(o(O), {
|
|
122
126
|
data: c.value?.commands || [],
|
|
123
127
|
style: { width: "100%", "margin-bottom": "10px" },
|
|
124
128
|
size: "small",
|
|
@@ -148,7 +152,7 @@ const X = { class: "switch-config-panel" }, Y = { class: "instruction-section" }
|
|
|
148
152
|
align: "center"
|
|
149
153
|
}, {
|
|
150
154
|
default: n((t) => [
|
|
151
|
-
l(o(
|
|
155
|
+
l(o(h), {
|
|
152
156
|
link: "",
|
|
153
157
|
type: "danger",
|
|
154
158
|
size: "small",
|
|
@@ -165,9 +169,9 @@ const X = { class: "switch-config-panel" }, Y = { class: "instruction-section" }
|
|
|
165
169
|
]),
|
|
166
170
|
_: 1
|
|
167
171
|
}, 8, ["data"]),
|
|
168
|
-
l(
|
|
172
|
+
l(s, { label: "指令调用" }, {
|
|
169
173
|
default: n(() => [
|
|
170
|
-
l(o(
|
|
174
|
+
l(o(z), {
|
|
171
175
|
modelValue: x.value,
|
|
172
176
|
"onUpdate:modelValue": e[3] || (e[3] = (t) => x.value = t),
|
|
173
177
|
size: "small",
|
|
@@ -176,7 +180,7 @@ const X = { class: "switch-config-panel" }, Y = { class: "instruction-section" }
|
|
|
176
180
|
onChange: T
|
|
177
181
|
}, {
|
|
178
182
|
default: n(() => [
|
|
179
|
-
(w(!0),
|
|
183
|
+
(w(!0), k(L, null, M(p.value, (t) => (w(), N(o(y), {
|
|
180
184
|
key: t.id,
|
|
181
185
|
label: t.descr,
|
|
182
186
|
value: t.id
|
|
@@ -187,9 +191,9 @@ const X = { class: "switch-config-panel" }, Y = { class: "instruction-section" }
|
|
|
187
191
|
]),
|
|
188
192
|
_: 1
|
|
189
193
|
}),
|
|
190
|
-
l(
|
|
194
|
+
l(s, { label: "指令描述" }, {
|
|
191
195
|
default: n(() => [
|
|
192
|
-
l(o(
|
|
196
|
+
l(o(d), {
|
|
193
197
|
modelValue: a.value.descr,
|
|
194
198
|
"onUpdate:modelValue": e[4] || (e[4] = (t) => a.value.descr = t),
|
|
195
199
|
size: "small"
|
|
@@ -197,9 +201,9 @@ const X = { class: "switch-config-panel" }, Y = { class: "instruction-section" }
|
|
|
197
201
|
]),
|
|
198
202
|
_: 1
|
|
199
203
|
}),
|
|
200
|
-
l(
|
|
204
|
+
l(s, { label: "通信方式" }, {
|
|
201
205
|
default: n(() => [
|
|
202
|
-
l(o(
|
|
206
|
+
l(o(z), {
|
|
203
207
|
modelValue: a.value.protocol,
|
|
204
208
|
"onUpdate:modelValue": e[5] || (e[5] = (t) => a.value.protocol = t),
|
|
205
209
|
size: "small",
|
|
@@ -225,9 +229,9 @@ const X = { class: "switch-config-panel" }, Y = { class: "instruction-section" }
|
|
|
225
229
|
]),
|
|
226
230
|
_: 1
|
|
227
231
|
}),
|
|
228
|
-
l(
|
|
232
|
+
l(s, { label: "远程IP" }, {
|
|
229
233
|
default: n(() => [
|
|
230
|
-
l(o(
|
|
234
|
+
l(o(d), {
|
|
231
235
|
modelValue: a.value.target,
|
|
232
236
|
"onUpdate:modelValue": e[6] || (e[6] = (t) => a.value.target = t),
|
|
233
237
|
size: "small"
|
|
@@ -235,9 +239,9 @@ const X = { class: "switch-config-panel" }, Y = { class: "instruction-section" }
|
|
|
235
239
|
]),
|
|
236
240
|
_: 1
|
|
237
241
|
}),
|
|
238
|
-
l(
|
|
242
|
+
l(s, { label: "远程端口" }, {
|
|
239
243
|
default: n(() => [
|
|
240
|
-
l(o(
|
|
244
|
+
l(o(d), {
|
|
241
245
|
modelValue: a.value.remotePort,
|
|
242
246
|
"onUpdate:modelValue": e[7] || (e[7] = (t) => a.value.remotePort = t),
|
|
243
247
|
size: "small"
|
|
@@ -245,9 +249,9 @@ const X = { class: "switch-config-panel" }, Y = { class: "instruction-section" }
|
|
|
245
249
|
]),
|
|
246
250
|
_: 1
|
|
247
251
|
}),
|
|
248
|
-
l(
|
|
252
|
+
l(s, { label: "延时执行" }, {
|
|
249
253
|
default: n(() => [
|
|
250
|
-
l(o(
|
|
254
|
+
l(o(d), {
|
|
251
255
|
modelValue: a.value.delay,
|
|
252
256
|
"onUpdate:modelValue": e[8] || (e[8] = (t) => a.value.delay = t),
|
|
253
257
|
size: "small"
|
|
@@ -260,17 +264,17 @@ const X = { class: "switch-config-panel" }, Y = { class: "instruction-section" }
|
|
|
260
264
|
]),
|
|
261
265
|
_: 1
|
|
262
266
|
}),
|
|
263
|
-
l(
|
|
267
|
+
l(s, { label: "指令值" }, {
|
|
264
268
|
default: n(() => [
|
|
265
269
|
v("div", j, [
|
|
266
|
-
l(o(
|
|
270
|
+
l(o(d), {
|
|
267
271
|
modelValue: a.value.command,
|
|
268
272
|
"onUpdate:modelValue": e[9] || (e[9] = (t) => a.value.command = t),
|
|
269
273
|
placeholder: "请输入",
|
|
270
274
|
size: "small",
|
|
271
275
|
style: { flex: "1" }
|
|
272
276
|
}, null, 8, ["modelValue"]),
|
|
273
|
-
l(o(
|
|
277
|
+
l(o(D), {
|
|
274
278
|
modelValue: a.value.isHex,
|
|
275
279
|
"onUpdate:modelValue": e[10] || (e[10] = (t) => a.value.isHex = t),
|
|
276
280
|
style: { "margin-left": "10px" },
|
|
@@ -286,7 +290,7 @@ const X = { class: "switch-config-panel" }, Y = { class: "instruction-section" }
|
|
|
286
290
|
_: 1
|
|
287
291
|
}),
|
|
288
292
|
v("div", A, [
|
|
289
|
-
l(o(
|
|
293
|
+
l(o(h), {
|
|
290
294
|
type: "primary",
|
|
291
295
|
size: "small",
|
|
292
296
|
onClick: U
|
|
@@ -301,13 +305,13 @@ const X = { class: "switch-config-panel" }, Y = { class: "instruction-section" }
|
|
|
301
305
|
]);
|
|
302
306
|
};
|
|
303
307
|
}
|
|
304
|
-
}), J = /* @__PURE__ */
|
|
308
|
+
}), J = /* @__PURE__ */ q(G, [["__scopeId", "data-v-3c2016bb"]]), se = [
|
|
305
309
|
{
|
|
306
|
-
type:
|
|
310
|
+
type: i.group,
|
|
307
311
|
label: "基础属性",
|
|
308
312
|
children: [
|
|
309
313
|
{
|
|
310
|
-
type:
|
|
314
|
+
type: i.switch,
|
|
311
315
|
label: "是否隐藏",
|
|
312
316
|
key: "hided",
|
|
313
317
|
props: {
|
|
@@ -316,13 +320,13 @@ const X = { class: "switch-config-panel" }, Y = { class: "instruction-section" }
|
|
|
316
320
|
}
|
|
317
321
|
},
|
|
318
322
|
{
|
|
319
|
-
type:
|
|
323
|
+
type: i.number,
|
|
320
324
|
label: "字体大小",
|
|
321
325
|
key: "config.global.fontSize",
|
|
322
326
|
props: { min: 12, max: 100 }
|
|
323
327
|
},
|
|
324
328
|
{
|
|
325
|
-
type:
|
|
329
|
+
type: i.slider,
|
|
326
330
|
label: "圆角",
|
|
327
331
|
key: "config.global.borderRadius",
|
|
328
332
|
props: { min: 0, max: 100, step: 1 }
|
|
@@ -330,11 +334,11 @@ const X = { class: "switch-config-panel" }, Y = { class: "instruction-section" }
|
|
|
330
334
|
]
|
|
331
335
|
},
|
|
332
336
|
{
|
|
333
|
-
type:
|
|
337
|
+
type: i.group,
|
|
334
338
|
label: "位置",
|
|
335
339
|
children: [
|
|
336
340
|
{
|
|
337
|
-
type:
|
|
341
|
+
type: i.number,
|
|
338
342
|
label: "X",
|
|
339
343
|
key: "attr.x",
|
|
340
344
|
isFlat: !0,
|
|
@@ -343,7 +347,7 @@ const X = { class: "switch-config-panel" }, Y = { class: "instruction-section" }
|
|
|
343
347
|
props: { inline: !0 }
|
|
344
348
|
},
|
|
345
349
|
{
|
|
346
|
-
type:
|
|
350
|
+
type: i.number,
|
|
347
351
|
label: "Y",
|
|
348
352
|
key: "attr.y",
|
|
349
353
|
isFlat: !0,
|
|
@@ -352,7 +356,7 @@ const X = { class: "switch-config-panel" }, Y = { class: "instruction-section" }
|
|
|
352
356
|
props: { inline: !0 }
|
|
353
357
|
},
|
|
354
358
|
{
|
|
355
|
-
type:
|
|
359
|
+
type: i.number,
|
|
356
360
|
label: "W",
|
|
357
361
|
key: "attr.w",
|
|
358
362
|
isFlat: !0,
|
|
@@ -361,7 +365,7 @@ const X = { class: "switch-config-panel" }, Y = { class: "instruction-section" }
|
|
|
361
365
|
props: { inline: !0, min: 10 }
|
|
362
366
|
},
|
|
363
367
|
{
|
|
364
|
-
type:
|
|
368
|
+
type: i.number,
|
|
365
369
|
label: "H",
|
|
366
370
|
key: "attr.h",
|
|
367
371
|
isFlat: !0,
|
|
@@ -372,11 +376,11 @@ const X = { class: "switch-config-panel" }, Y = { class: "instruction-section" }
|
|
|
372
376
|
]
|
|
373
377
|
},
|
|
374
378
|
{
|
|
375
|
-
type:
|
|
379
|
+
type: i.group,
|
|
376
380
|
label: "高级属性",
|
|
377
381
|
children: [
|
|
378
382
|
{
|
|
379
|
-
type:
|
|
383
|
+
type: i.custom,
|
|
380
384
|
label: "",
|
|
381
385
|
key: "config",
|
|
382
386
|
// Bind to config to ensure updates
|
|
@@ -387,5 +391,5 @@ const X = { class: "switch-config-panel" }, Y = { class: "instruction-section" }
|
|
|
387
391
|
}
|
|
388
392
|
];
|
|
389
393
|
export {
|
|
390
|
-
|
|
394
|
+
se as default
|
|
391
395
|
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { Q as i, aI as a } from "./index-B8QqTLfg.js";
|
|
2
|
+
const p = (e, o) => {
|
|
3
|
+
if (!i)
|
|
4
|
+
return !1;
|
|
5
|
+
const t = {
|
|
6
|
+
undefined: "overflow",
|
|
7
|
+
true: "overflow-y",
|
|
8
|
+
false: "overflow-x"
|
|
9
|
+
}[String(o)], l = a(e, t);
|
|
10
|
+
return ["scroll", "auto", "overlay"].some((r) => l.includes(r));
|
|
11
|
+
}, w = (e, o) => {
|
|
12
|
+
if (!i)
|
|
13
|
+
return;
|
|
14
|
+
let t = e;
|
|
15
|
+
for (; t; ) {
|
|
16
|
+
if ([window, document, document.documentElement].includes(t))
|
|
17
|
+
return window;
|
|
18
|
+
if (p(t, o))
|
|
19
|
+
return t;
|
|
20
|
+
t = t.parentNode;
|
|
21
|
+
}
|
|
22
|
+
return t;
|
|
23
|
+
};
|
|
24
|
+
let n;
|
|
25
|
+
const m = (e) => {
|
|
26
|
+
var o;
|
|
27
|
+
if (!i)
|
|
28
|
+
return 0;
|
|
29
|
+
if (n !== void 0)
|
|
30
|
+
return n;
|
|
31
|
+
const t = document.createElement("div");
|
|
32
|
+
t.className = `${e}-scrollbar__wrap`, t.style.visibility = "hidden", t.style.width = "100px", t.style.position = "absolute", t.style.top = "-9999px", document.body.appendChild(t);
|
|
33
|
+
const l = t.offsetWidth;
|
|
34
|
+
t.style.overflow = "scroll";
|
|
35
|
+
const r = document.createElement("div");
|
|
36
|
+
r.style.width = "100%", t.appendChild(r);
|
|
37
|
+
const s = r.offsetWidth;
|
|
38
|
+
return (o = t.parentNode) == null || o.removeChild(t), n = l - s, n;
|
|
39
|
+
};
|
|
40
|
+
function v(e, o) {
|
|
41
|
+
if (!i)
|
|
42
|
+
return;
|
|
43
|
+
if (!o) {
|
|
44
|
+
e.scrollTop = 0;
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
const t = [];
|
|
48
|
+
let l = o.offsetParent;
|
|
49
|
+
for (; l !== null && e !== l && e.contains(l); )
|
|
50
|
+
t.push(l), l = l.offsetParent;
|
|
51
|
+
const r = o.offsetTop + t.reduce((d, u) => d + u.offsetTop, 0), s = r + o.offsetHeight, c = e.scrollTop, f = c + e.clientHeight;
|
|
52
|
+
r < c ? e.scrollTop = r : s > f && (e.scrollTop = s - e.clientHeight);
|
|
53
|
+
}
|
|
54
|
+
export {
|
|
55
|
+
m as a,
|
|
56
|
+
w as g,
|
|
57
|
+
v as s
|
|
58
|
+
};
|