go-view-worker 0.0.1 → 0.0.2
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/chunks/{403-382550a8.js → 403-48dde732.js} +2 -2
- package/dist/chunks/{404-3d357d75.js → 404-33eb13aa.js} +2 -2
- package/dist/chunks/{500-96d14fb0.js → 500-03632c55.js} +2 -2
- package/dist/chunks/{StylesSetting-952ff564.js → StylesSetting-307bbc38.js} +3 -3
- package/dist/chunks/{chartEditStore-a725b558.js → chartEditStore-5bf68359.js} +176 -181
- package/dist/chunks/{designStore-fe92c2ba.js → designStore-196559cb.js} +732 -723
- package/dist/chunks/{index-3fd591ea.js → index-08a8f4f7.js} +12 -12
- package/dist/chunks/{index-95c5f0a0.js → index-1d427a73.js} +167 -166
- package/dist/chunks/{index-82d00e13.js → index-1f14b418.js} +89 -93
- package/dist/chunks/{index-1cb69ab6.js → index-36d9b318.js} +8 -8
- package/dist/chunks/{index-62a7855c.js → index-479e043f.js} +13 -12
- package/dist/chunks/{index-00b6339d.js → index-5dad4e02.js} +6 -6
- package/dist/chunks/{index-51458edb.js → index-632e8cd2.js} +2 -2
- package/dist/chunks/{index-f266153a.js → index-64580c85.js} +106 -104
- package/dist/chunks/{index-de0a1234.js → index-7b9408cb.js} +36 -36
- package/dist/chunks/index-7eaf2edc.js +461 -0
- package/dist/chunks/index-928e54a7.js +94 -0
- package/dist/chunks/{index-a410a1d3.js → index-9926f668.js} +8 -8
- package/dist/chunks/{index-9502bd7e.js → index-9af87347.js} +14 -13
- package/dist/chunks/{index-da8ddb02.js → index-bfd775d9.js} +1 -1
- package/dist/chunks/{index-09e62bb4.js → index-c627e7d2.js} +12 -12
- package/dist/chunks/{index-0472b3a5.js → index-d6866a98.js} +48 -47
- package/dist/chunks/{index-f97e5ffc.js → index-dd95bed0.js} +1 -1
- package/dist/chunks/{index-32d13283.js → index-e65e8cdc.js} +6 -6
- package/dist/chunks/{index-fdf7dc1e.js → index-e8a302ce.js} +13 -13
- package/dist/chunks/{index-fec9f9f8.js → index-f4bd44a9.js} +66 -65
- package/dist/chunks/{index.vue_vue_type_script_setup_true_lang-c6159a17.js → index.vue_vue_type_script_setup_true_lang-58afdf72.js} +550 -549
- package/dist/chunks/{lodash-c80b695e.js → lodash-5bba33ba.js} +1 -1
- package/dist/chunks/{router-106a6abc.js → router-443d466c.js} +15 -15
- package/dist/chunks/{useKeyboard.hook-da88451a.js → useKeyboard.hook-da57df02.js} +27 -27
- package/dist/chunks/{useSyncUpdate.hook-5517a8ad.js → useSyncUpdate.hook-dfee2f43.js} +16 -16
- package/dist/chunks/{useTargetData.hook-28a7e43b.js → useTargetData.hook-77b72165.js} +1 -1
- package/dist/chunks/{wrapper-4c15ca94.js → wrapper-54705288.js} +4 -4
- package/dist/go-view-worker.js +13 -12
- package/dist/init.js +1 -1
- package/dist/resize.js +18 -0
- package/dist/style.css +2 -2
- package/dist/types/packages/resize.d.ts +1 -0
- package/dist/types/src/hooks/useLang.hook.d.ts +1 -1
- package/package.json +5 -1
- package/dist/chunks/index-097ae4b0.js +0 -436
- package/dist/chunks/index-54f304ef.js +0 -89
|
@@ -1,59 +1,60 @@
|
|
|
1
|
-
import { onMounted as He, onUnmounted as Ve, toRaw as ot, defineComponent as J, useCssVars as _e, computed as U, openBlock as y, createElementBlock as P, normalizeClass as ne, renderSlot as Pe, Fragment as se, renderList as
|
|
2
|
-
import {
|
|
1
|
+
import { onMounted as He, onUnmounted as Ve, toRaw as ot, defineComponent as J, useCssVars as _e, computed as U, openBlock as y, createElementBlock as P, normalizeClass as ne, renderSlot as Pe, Fragment as se, renderList as le, normalizeStyle as V, unref as l, createCommentVNode as ve, createElementVNode as I, createBlock as R, withCtx as h, resolveDynamicComponent as pe, reactive as Te, watch as ae, resolveComponent as E, toRefs as be, ref as X, createVNode as x, createTextVNode as re, toDisplayString as j, watchEffect as nt, nextTick as st, withDirectives as Le, vShow as De, isRef as at, provide as rt } from "vue";
|
|
2
|
+
import { J as lt, aa as $e, ab as N, q as Me, u as ge, _ as ee, M as Q, t as qe, ac as ct, ad as Ne, g as it, ae as ut, W as B, e as K, af as dt, K as pt, ag as vt, ah as _t } from "./designStore-196559cb.js";
|
|
3
3
|
import "naive-ui";
|
|
4
4
|
import { useRoute as gt } from "vue-router";
|
|
5
|
-
import {
|
|
6
|
-
import { u as Ye, d as mt } from "./index-
|
|
7
|
-
import { u as oe,
|
|
8
|
-
import { a as wt } from "./useKeyboard.hook-
|
|
9
|
-
import { l as xe } from "./lodash-
|
|
10
|
-
import { C as Tt } from "./index-
|
|
11
|
-
import {
|
|
12
|
-
import { u as Et } from "./useSyncUpdate.hook-
|
|
5
|
+
import { n as ft, c as je, s as Re, t as ye, v as Oe, w as Je, u as ht, x as Ke, F as Ge } from "./index.vue_vue_type_script_setup_true_lang-58afdf72.js";
|
|
6
|
+
import { u as Ye, d as mt } from "./index-1f14b418.js";
|
|
7
|
+
import { u as oe, E as W, f as Ct, h as ze, l as yt, d as Xe, c as Fe, o as M, p as Ce, a as St, i as ie, S as ce, T as Se, g as xt } from "./chartEditStore-5bf68359.js";
|
|
8
|
+
import { a as wt } from "./useKeyboard.hook-da57df02.js";
|
|
9
|
+
import { l as xe } from "./lodash-5bba33ba.js";
|
|
10
|
+
import { C as Tt } from "./index-632e8cd2.js";
|
|
11
|
+
import { a as Ze, C as Qe, u as bt } from "./index-7eaf2edc.js";
|
|
12
|
+
import { u as Et } from "./useSyncUpdate.hook-dfee2f43.js";
|
|
13
13
|
import "pinia";
|
|
14
|
-
import "./router-
|
|
14
|
+
import "./router-443d466c.js";
|
|
15
|
+
import "../resize.js";
|
|
15
16
|
const kt = "scale-value", Lt = (t) => {
|
|
16
|
-
const
|
|
17
|
+
const r = oe();
|
|
17
18
|
let s = () => {
|
|
18
19
|
};
|
|
19
20
|
He(async () => {
|
|
20
|
-
|
|
21
|
+
r.setEditCanvas(
|
|
21
22
|
W.EDIT_LAYOUT_DOM,
|
|
22
23
|
document.getElementById("go-chart-edit-layout")
|
|
23
|
-
),
|
|
24
|
+
), r.setEditCanvas(
|
|
24
25
|
W.EDIT_CONTENT_DOM,
|
|
25
26
|
document.getElementById("go-chart-edit-content")
|
|
26
|
-
), await t(), s =
|
|
27
|
+
), await t(), s = r.listenerScale();
|
|
27
28
|
}), Ve(() => {
|
|
28
|
-
|
|
29
|
+
r.setEditCanvas(W.EDIT_LAYOUT_DOM, null), r.setEditCanvas(W.EDIT_CONTENT_DOM, null), s();
|
|
29
30
|
});
|
|
30
31
|
}, S = () => oe(), Dt = async (t) => {
|
|
31
32
|
t.preventDefault();
|
|
32
33
|
try {
|
|
33
34
|
Ct();
|
|
34
|
-
const
|
|
35
|
-
if (!
|
|
35
|
+
const r = t.dataTransfer.getData(lt.DRAG_KEY);
|
|
36
|
+
if (!r) {
|
|
36
37
|
ze();
|
|
37
38
|
return;
|
|
38
39
|
}
|
|
39
40
|
S().setEditCanvas(W.IS_CREATE, !1);
|
|
40
|
-
const s = $e(
|
|
41
|
+
const s = $e(r);
|
|
41
42
|
if (s.disabled)
|
|
42
43
|
return;
|
|
43
44
|
let d = await ft(s);
|
|
44
45
|
s.redirectComponent && (s.dataset && (d.option.dataset = s.dataset), d.chartConfig.title = s.title, d.chartConfig.chartFrame = s.chartFrame), N(d, t.offsetX - d.attr.w / 2, t.offsetY - d.attr.h / 2), S().addComponentList(d, !1, !0), S().setTargetSelectChart(d.id), ze();
|
|
45
|
-
} catch (
|
|
46
|
-
console.error("[go-view-worker] dragHandle error:",
|
|
46
|
+
} catch (r) {
|
|
47
|
+
console.error("[go-view-worker] dragHandle error:", r), yt(), window.$message.warning("图表正在研发中, 敬请期待...");
|
|
47
48
|
}
|
|
48
49
|
}, We = (t) => {
|
|
49
50
|
t.preventDefault(), t.stopPropagation(), t.dataTransfer && (t.dataTransfer.dropEffect = "copy");
|
|
50
|
-
}, et = (t,
|
|
51
|
-
if (
|
|
52
|
-
S().setTargetSelectChart(
|
|
51
|
+
}, et = (t, r) => {
|
|
52
|
+
if (r) {
|
|
53
|
+
S().setTargetSelectChart(r.id);
|
|
53
54
|
return;
|
|
54
55
|
}
|
|
55
56
|
S().setTargetSelectChart(void 0);
|
|
56
|
-
}, Mt = (t,
|
|
57
|
+
}, Mt = (t, r) => {
|
|
57
58
|
if (t.which == 2 || window.$KeyboardActive?.space)
|
|
58
59
|
return;
|
|
59
60
|
et();
|
|
@@ -160,33 +161,33 @@ const kt = "scale-value", Lt = (t) => {
|
|
|
160
161
|
o.preventDefault(), o.stopPropagation(), S().getEditCanvas.isSelect || S().setTargetHoverChart(f.id);
|
|
161
162
|
}, mouseleaveHandle: (o, f) => {
|
|
162
163
|
o.preventDefault(), o.stopPropagation(), S().setEditCanvas(W.IS_DRAG, !1), S().setTargetHoverChart(void 0);
|
|
163
|
-
} }), It = (t,
|
|
164
|
+
} }), It = (t, r, s) => {
|
|
164
165
|
t.stopPropagation(), t.preventDefault(), S().setEditCanvas(W.IS_DRAG, !0);
|
|
165
166
|
const d = S().getEditCanvas.scale, o = s.x, f = s.y, i = s.w, u = s.h, _ = t.screenX, a = t.screenY;
|
|
166
167
|
S().setMousePosition(_, a);
|
|
167
168
|
const C = xe.throttle((e) => {
|
|
168
169
|
S().setMousePosition(e.screenX, e.screenY);
|
|
169
170
|
let g = Math.round((e.screenX - _) / d), c = Math.round((e.screenY - a) / d);
|
|
170
|
-
const p = /t/.test(
|
|
171
|
+
const p = /t/.test(r), m = /b/.test(r), D = /l/.test(r), w = /r/.test(r), k = u + (p ? -c : m ? c : 0), T = i + (D ? -g : w ? g : 0);
|
|
171
172
|
s.h = k > 0 ? k : 0, s.w = T > 0 ? T : 0, s.x = o + (D ? g : 0), s.y = f + (p ? c : 0);
|
|
172
173
|
}, 50), n = () => {
|
|
173
174
|
S().setEditCanvas(W.IS_DRAG, !1), S().setMousePosition(0, 0, 0, 0), document.removeEventListener("mousemove", C), document.removeEventListener("mouseup", n);
|
|
174
175
|
};
|
|
175
176
|
document.addEventListener("mousemove", C), document.addEventListener("mouseup", n);
|
|
176
|
-
}, we = (t,
|
|
177
|
-
zIndex:
|
|
177
|
+
}, we = (t, r) => t ? {
|
|
178
|
+
zIndex: r + 1,
|
|
178
179
|
left: `${t.x}px`,
|
|
179
180
|
top: `${t.y}px`
|
|
180
|
-
} : {}, ue = (t,
|
|
181
|
-
width: `${
|
|
182
|
-
height: `${
|
|
183
|
-
} : {}, Ut = (t,
|
|
181
|
+
} : {}, ue = (t, r) => t ? {
|
|
182
|
+
width: `${r ? r * t.w : t.w}px`,
|
|
183
|
+
height: `${r ? r * t.h : t.h}px`
|
|
184
|
+
} : {}, Ut = (t, r, s, d) => {
|
|
184
185
|
const { w: o, h: f } = s, i = /t/.test(t), u = /b/.test(t), _ = /l/.test(t), a = /r/.test(t);
|
|
185
186
|
let C = 0, n = 0;
|
|
186
187
|
return t.length === 2 ? (C = _ ? 0 : o, n = i ? 0 : f) : ((i || u) && (C = o / 2, n = i ? 0 : f), (_ || a) && (C = _ ? 0 : o, n = Math.floor(f / 2))), {
|
|
187
188
|
left: `${C}px`,
|
|
188
189
|
top: `${n}px`,
|
|
189
|
-
cursor: d[
|
|
190
|
+
cursor: d[r] + "-resize"
|
|
190
191
|
};
|
|
191
192
|
}, $t = ["onMousedown"], Rt = /* @__PURE__ */ J({
|
|
192
193
|
__name: "index",
|
|
@@ -204,23 +205,23 @@ const kt = "scale-value", Lt = (t) => {
|
|
|
204
205
|
_e((n) => ({
|
|
205
206
|
"2707b0c4": i.value
|
|
206
207
|
}));
|
|
207
|
-
const
|
|
208
|
-
const n =
|
|
209
|
-
return
|
|
210
|
-
}), a = U(() =>
|
|
208
|
+
const r = t, s = ge(), d = oe(), o = ["t", "r", "b", "l", "lt", "rt", "lb", "rb"], f = ["n", "e", "s", "w", "nw", "ne", "sw", "se"], i = U(() => s.getAppTheme), u = U(() => d.getEditCanvas[W.IS_DRAG] || r.item.status.lock ? !1 : r.item.id === d.getTargetChart.hoverId), _ = U(() => {
|
|
209
|
+
const n = r.item.id;
|
|
210
|
+
return r.item.status.lock ? !1 : d.getTargetChart.selectId.find((e) => e === n);
|
|
211
|
+
}), a = U(() => r.item.status.lock), C = U(() => r.item.status.hide);
|
|
211
212
|
return (n, e) => (y(), P("div", {
|
|
212
213
|
class: ne(["go-shape-box", { lock: a.value, hide: C.value }])
|
|
213
214
|
}, [
|
|
214
215
|
Pe(n.$slots, "default", {}, void 0, !0),
|
|
215
|
-
t.hiddenPoint ? ve("", !0) : (y(!0), P(se, { key: 0 },
|
|
216
|
+
t.hiddenPoint ? ve("", !0) : (y(!0), P(se, { key: 0 }, le(_.value ? o : [], (g, c) => (y(), P("div", {
|
|
216
217
|
class: ne(`shape-point ${g}`),
|
|
217
218
|
key: c,
|
|
218
|
-
style: V(
|
|
219
|
-
onMousedown: (p) =>
|
|
219
|
+
style: V(l(Ut)(g, c, t.item.attr, f)),
|
|
220
|
+
onMousedown: (p) => l(It)(p, g, t.item.attr)
|
|
220
221
|
}, null, 46, $t))), 128)),
|
|
221
222
|
I("div", {
|
|
222
223
|
class: "shape-modal",
|
|
223
|
-
style: V(
|
|
224
|
+
style: V(l(ue)(t.item.attr))
|
|
224
225
|
}, [
|
|
225
226
|
I("div", {
|
|
226
227
|
class: ne(["shape-modal-select", { active: _.value }])
|
|
@@ -245,9 +246,9 @@ const Ae = /* @__PURE__ */ ee(Rt, [["__scopeId", "data-v-301ec8d2"]]), Ot = { cl
|
|
|
245
246
|
}
|
|
246
247
|
},
|
|
247
248
|
setup(t) {
|
|
248
|
-
const
|
|
249
|
+
const r = oe(), { handleContextMenu: s } = Ye(), { mouseenterHandle: d, mouseleaveHandle: o, mousedownHandle: f, mouseClickHandle: i } = tt(), u = (C, n, e) => {
|
|
249
250
|
const g = (c) => n.filter((p) => c.includes(p.key));
|
|
250
|
-
if (
|
|
251
|
+
if (r.getTargetChart.selectId.length > 1)
|
|
251
252
|
return g([Q.GROUP, Q.DELETE]);
|
|
252
253
|
{
|
|
253
254
|
const c = [];
|
|
@@ -259,49 +260,49 @@ const Ae = /* @__PURE__ */ ee(Rt, [["__scopeId", "data-v-301ec8d2"]]), Ot = { cl
|
|
|
259
260
|
...C.filter((m) => !c.includes(m.key))
|
|
260
261
|
];
|
|
261
262
|
}
|
|
262
|
-
}, _ = U(() => je(
|
|
263
|
+
}, _ = U(() => je(r.getEditCanvasConfig.chartCustomThemeColorInfo)[r.getEditCanvasConfig.chartThemeColor]), a = U(() => r.getEditCanvasConfig.chartThemeSetting);
|
|
263
264
|
return (C, n) => (y(), P("div", Ot, [
|
|
264
|
-
(y(), R(
|
|
265
|
+
(y(), R(l(Ae), {
|
|
265
266
|
key: t.groupData.id,
|
|
266
267
|
"data-id": t.groupData.id,
|
|
267
268
|
index: t.groupIndex,
|
|
268
269
|
item: t.groupData,
|
|
269
270
|
hiddenPoint: !0,
|
|
270
|
-
class: ne(
|
|
271
|
+
class: ne(l(Re)(t.groupData.styles.animations)),
|
|
271
272
|
style: V({
|
|
272
|
-
...
|
|
273
|
-
...
|
|
274
|
-
...
|
|
275
|
-
...
|
|
276
|
-
...
|
|
273
|
+
...l(we)(t.groupData.attr, t.groupIndex),
|
|
274
|
+
...l(ue)(t.groupData.attr),
|
|
275
|
+
...l(ye)(t.groupData.styles),
|
|
276
|
+
...l(Oe)(t.groupData.styles),
|
|
277
|
+
...l(Je)(t.groupData.styles)
|
|
277
278
|
}),
|
|
278
|
-
onClick: n[0] || (n[0] = (e) =>
|
|
279
|
-
onMousedown: n[1] || (n[1] = (e) =>
|
|
280
|
-
onMouseenter: n[2] || (n[2] = (e) =>
|
|
281
|
-
onMouseleave: n[3] || (n[3] = (e) =>
|
|
282
|
-
onContextmenu: n[4] || (n[4] = (e) =>
|
|
279
|
+
onClick: n[0] || (n[0] = (e) => l(i)(e, t.groupData)),
|
|
280
|
+
onMousedown: n[1] || (n[1] = (e) => l(f)(e, t.groupData)),
|
|
281
|
+
onMouseenter: n[2] || (n[2] = (e) => l(d)(e, t.groupData)),
|
|
282
|
+
onMouseleave: n[3] || (n[3] = (e) => l(o)(e, t.groupData)),
|
|
283
|
+
onContextmenu: n[4] || (n[4] = (e) => l(s)(e, t.groupData, u))
|
|
283
284
|
}, {
|
|
284
285
|
default: h(() => [
|
|
285
|
-
(y(!0), P(se, null,
|
|
286
|
+
(y(!0), P(se, null, le(t.groupData.groupList, (e) => (y(), R(l(Ae), {
|
|
286
287
|
key: e.id,
|
|
287
288
|
"data-id": e.id,
|
|
288
289
|
index: t.groupIndex,
|
|
289
290
|
item: e,
|
|
290
291
|
hiddenPoint: !0,
|
|
291
292
|
style: V({
|
|
292
|
-
...
|
|
293
|
+
...l(we)(e.attr, t.groupIndex)
|
|
293
294
|
})
|
|
294
295
|
}, {
|
|
295
296
|
default: h(() => [
|
|
296
297
|
(y(), R(pe(e.chartConfig.chartKey), {
|
|
297
|
-
class: ne(["edit-content-chart",
|
|
298
|
+
class: ne(["edit-content-chart", l(Re)(e.styles.animations)]),
|
|
298
299
|
chartConfig: e,
|
|
299
300
|
themeSetting: a.value,
|
|
300
301
|
themeColor: _.value,
|
|
301
302
|
style: V({
|
|
302
|
-
...
|
|
303
|
-
...
|
|
304
|
-
...
|
|
303
|
+
...l(ue)(e.attr),
|
|
304
|
+
...l(ye)(e.styles),
|
|
305
|
+
...l(Oe)(e.styles)
|
|
305
306
|
})
|
|
306
307
|
}, null, 8, ["class", "chartConfig", "themeSetting", "themeColor", "style"]))
|
|
307
308
|
]),
|
|
@@ -318,7 +319,7 @@ const Ae = /* @__PURE__ */ ee(Rt, [["__scopeId", "data-v-301ec8d2"]]), Ot = { cl
|
|
|
318
319
|
_e((c) => ({
|
|
319
320
|
"05d3f33b": i.value
|
|
320
321
|
}));
|
|
321
|
-
const
|
|
322
|
+
const r = ge(), s = oe(), d = Xe(), o = Te({
|
|
322
323
|
// 行横向row(上中下),列竖线col(左中右)
|
|
323
324
|
lineArr: ["rowt", "rowc", "rowb", "coll", "colc", "colr"],
|
|
324
325
|
// 展示线
|
|
@@ -331,7 +332,7 @@ const Ae = /* @__PURE__ */ ee(Rt, [["__scopeId", "data-v-301ec8d2"]]), Ot = { cl
|
|
|
331
332
|
}), f = (c) => c ? {
|
|
332
333
|
left: `${c.x ? c.x : 0}px`,
|
|
333
334
|
top: `${c.y ? c.y : 0}px`
|
|
334
|
-
} : {}, i = U(() =>
|
|
335
|
+
} : {}, i = U(() => r.getAppTheme), u = U(() => d.getChartAlignRange), _ = U(() => s.getEditCanvas[W.IS_DRAG]), a = (c, p) => Math.abs(c - p) <= u.value, C = U(() => s.getTargetChart.selectId), n = U(() => s.getComponentList[s.fetchTargetIndex()]), e = U(() => n.value?.attr || {}), g = U(() => ({
|
|
335
336
|
id: "0",
|
|
336
337
|
attr: {
|
|
337
338
|
w: Fe(s.getEditCanvasConfig.width),
|
|
@@ -376,7 +377,7 @@ const Ae = /* @__PURE__ */ ee(Rt, [["__scopeId", "data-v-301ec8d2"]]), Ot = { cl
|
|
|
376
377
|
c || (o.select.clear(), o.sorptioned.y = !1);
|
|
377
378
|
}
|
|
378
379
|
), (c, p) => (y(), P("div", Ht, [
|
|
379
|
-
(y(!0), P(se, null,
|
|
380
|
+
(y(!0), P(se, null, le(o.lineArr, (m) => (y(), P("div", {
|
|
380
381
|
class: ne(["line", [m.includes("row") ? "row" : "col", o.select.has(m) && "visible"]]),
|
|
381
382
|
key: m,
|
|
382
383
|
style: V(f(o.select.get(m)))
|
|
@@ -387,11 +388,11 @@ const Ae = /* @__PURE__ */ ee(Rt, [["__scopeId", "data-v-301ec8d2"]]), Ot = { cl
|
|
|
387
388
|
const Yt = /* @__PURE__ */ ee(Pt, [["__scopeId", "data-v-41025e73"]]), Xt = /* @__PURE__ */ J({
|
|
388
389
|
__name: "index",
|
|
389
390
|
setup(t) {
|
|
390
|
-
return (
|
|
391
|
+
return (r, s) => {
|
|
391
392
|
const d = E("n-watermark");
|
|
392
393
|
return y(), R(d, {
|
|
393
394
|
id: "go-edit-watermark",
|
|
394
|
-
content:
|
|
395
|
+
content: l(ct),
|
|
395
396
|
cross: "",
|
|
396
397
|
selectable: "",
|
|
397
398
|
"font-size": 16,
|
|
@@ -411,7 +412,7 @@ const Bt = /* @__PURE__ */ ee(Xt, [["__scopeId", "data-v-e5767c3f"]]), Nt = /* @
|
|
|
411
412
|
_e((u) => ({
|
|
412
413
|
d910e7cc: f.value
|
|
413
414
|
}));
|
|
414
|
-
const
|
|
415
|
+
const r = ge(), s = oe(), { isSelect: d, scale: o } = be(s.getEditCanvas), f = U(() => r.getAppTheme), i = X();
|
|
415
416
|
return ae(
|
|
416
417
|
() => s.getMousePosition,
|
|
417
418
|
(u) => {
|
|
@@ -439,7 +440,7 @@ const Bt = /* @__PURE__ */ ee(Xt, [["__scopeId", "data-v-e5767c3f"]]), Nt = /* @
|
|
|
439
440
|
{
|
|
440
441
|
deep: !0
|
|
441
442
|
}
|
|
442
|
-
), (u, _) =>
|
|
443
|
+
), (u, _) => l(d) ? (y(), P("div", {
|
|
443
444
|
key: 0,
|
|
444
445
|
class: "go-edit-select",
|
|
445
446
|
style: V(i.value)
|
|
@@ -452,7 +453,7 @@ const Bt = /* @__PURE__ */ ee(Xt, [["__scopeId", "data-v-e5767c3f"]]), Nt = /* @
|
|
|
452
453
|
const Kt = /* @__PURE__ */ ee(Nt, [["__scopeId", "data-v-02b12a9c"]]), Gt = /* @__PURE__ */ J({
|
|
453
454
|
__name: "index",
|
|
454
455
|
setup(t) {
|
|
455
|
-
const
|
|
456
|
+
const r = oe(), { getEditCanvasConfig: s, getEditCanvas: d } = be(r), o = U(() => ({
|
|
456
457
|
w: s.value.width,
|
|
457
458
|
h: s.value.height
|
|
458
459
|
})), f = U(() => {
|
|
@@ -467,12 +468,12 @@ const Kt = /* @__PURE__ */ ee(Nt, [["__scopeId", "data-v-02b12a9c"]]), Gt = /* @
|
|
|
467
468
|
return (u, _) => (y(), P("div", {
|
|
468
469
|
class: "go-edit-range go-transition",
|
|
469
470
|
style: V(f.value),
|
|
470
|
-
onMousedown: _[0] || (_[0] = (a) =>
|
|
471
|
+
onMousedown: _[0] || (_[0] = (a) => l(Mt)(a, void 0))
|
|
471
472
|
}, [
|
|
472
473
|
Pe(u.$slots, "default", {}, void 0, !0),
|
|
473
|
-
x(
|
|
474
|
-
x(
|
|
475
|
-
x(
|
|
474
|
+
x(l(Bt)),
|
|
475
|
+
x(l(Yt)),
|
|
476
|
+
x(l(Kt)),
|
|
476
477
|
I("div", {
|
|
477
478
|
class: "go-edit-range-model",
|
|
478
479
|
style: V(i.value)
|
|
@@ -488,9 +489,9 @@ const zt = /* @__PURE__ */ ee(Gt, [["__scopeId", "data-v-7803f120"]]), Ft = { cl
|
|
|
488
489
|
"2889ee0a": T.value,
|
|
489
490
|
f1504c06: e.value
|
|
490
491
|
}));
|
|
491
|
-
const
|
|
492
|
+
const r = oe(), s = Ze(), d = ge(), o = ht();
|
|
492
493
|
let f = [0, 0], i = [0, 0];
|
|
493
|
-
const u = X(), _ = X(!0), a = X(), C = X(), n = X(!1), e = X("auto"), { width: g, height: c } = be(
|
|
494
|
+
const u = X(), _ = X(!0), a = X(), C = X(), n = X(!1), e = X("auto"), { width: g, height: c } = be(r.getEditCanvasConfig), p = X(0), m = X(0), D = Te({ h: [], v: [] }), w = U(() => r.getEditCanvas.scale), k = U(() => `${window.innerWidth * 2}px`), T = U(() => `${c.value * 2}px`), A = U(() => o.isDarkMode ?? d.getDarkTheme ? {
|
|
494
495
|
bgColor: "#18181c",
|
|
495
496
|
longfgColor: "#4d4d4d",
|
|
496
497
|
shortfgColor: "#4d4d4d",
|
|
@@ -512,10 +513,10 @@ const zt = /* @__PURE__ */ ee(Gt, [["__scopeId", "data-v-7803f120"]]), Ft = { cl
|
|
|
512
513
|
b.preventDefault();
|
|
513
514
|
let O = w.value;
|
|
514
515
|
if (b.wheelDelta >= 0 && w.value < 2) {
|
|
515
|
-
O = w.value + 0.05,
|
|
516
|
+
O = w.value + 0.05, r.setScale(O);
|
|
516
517
|
return;
|
|
517
518
|
}
|
|
518
|
-
b.wheelDelta < 0 && w.value > 0.1 && (O = w.value - 0.05,
|
|
519
|
+
b.wheelDelta < 0 && w.value > 0.1 && (O = w.value - 0.05, r.setScale(O));
|
|
519
520
|
}
|
|
520
521
|
}, G = () => {
|
|
521
522
|
if (!u.value)
|
|
@@ -648,7 +649,7 @@ const Qt = /* @__PURE__ */ it(Zt), eo = { class: "go-flex-items-center" }, to =
|
|
|
648
649
|
__name: "index",
|
|
649
650
|
setup(t) {
|
|
650
651
|
const {
|
|
651
|
-
DesktopOutlineIcon:
|
|
652
|
+
DesktopOutlineIcon: r,
|
|
652
653
|
PencilIcon: s,
|
|
653
654
|
TrashIcon: d,
|
|
654
655
|
CopyIcon: o,
|
|
@@ -661,7 +662,7 @@ const Qt = /* @__PURE__ */ it(Zt), eo = { class: "go-flex-items-center" }, to =
|
|
|
661
662
|
EyeOutlineIcon: n
|
|
662
663
|
} = ie.ionicons5, { StackedMoveIcon: e, Carbon3DCursorIcon: g, Carbon3DSoftwareIcon: c } = ie.carbon, p = St(), m = (k) => {
|
|
663
664
|
if (k.targetType === Ce.CANVAS)
|
|
664
|
-
return
|
|
665
|
+
return r;
|
|
665
666
|
switch (k.actionType) {
|
|
666
667
|
case M.UPDATE:
|
|
667
668
|
return s;
|
|
@@ -738,7 +739,7 @@ const Qt = /* @__PURE__ */ it(Zt), eo = { class: "go-flex-items-center" }, to =
|
|
|
738
739
|
I("div", to, [
|
|
739
740
|
x(G, { style: { "max-height": "500px" } }, {
|
|
740
741
|
default: h(() => [
|
|
741
|
-
(y(!0), P(se, null,
|
|
742
|
+
(y(!0), P(se, null, le(w.value, (Y, $) => (y(), P("div", {
|
|
742
743
|
class: "list-item go-flex-items-center go-ellipsis-1",
|
|
743
744
|
key: $,
|
|
744
745
|
title: Y.label
|
|
@@ -751,7 +752,7 @@ const Qt = /* @__PURE__ */ it(Zt), eo = { class: "go-flex-items-center" }, to =
|
|
|
751
752
|
}, null, 8, ["component"]),
|
|
752
753
|
x(z, { depth: "2" }, {
|
|
753
754
|
default: h(() => [
|
|
754
|
-
|
|
755
|
+
re(j(Y.label), 1)
|
|
755
756
|
]),
|
|
756
757
|
_: 2
|
|
757
758
|
}, 1024)
|
|
@@ -771,13 +772,13 @@ const Qt = /* @__PURE__ */ it(Zt), eo = { class: "go-flex-items-center" }, to =
|
|
|
771
772
|
depth: 3
|
|
772
773
|
}, {
|
|
773
774
|
default: h(() => [
|
|
774
|
-
x(
|
|
775
|
+
x(l(u))
|
|
775
776
|
]),
|
|
776
777
|
_: 1
|
|
777
778
|
})
|
|
778
779
|
]),
|
|
779
780
|
default: h(() => [
|
|
780
|
-
I("span", null, "最多只保留" + j(
|
|
781
|
+
I("span", null, "最多只保留" + j(l(ut)) + "条记录", 1)
|
|
781
782
|
]),
|
|
782
783
|
_: 1
|
|
783
784
|
})
|
|
@@ -785,14 +786,14 @@ const Qt = /* @__PURE__ */ it(Zt), eo = { class: "go-flex-items-center" }, to =
|
|
|
785
786
|
};
|
|
786
787
|
}
|
|
787
788
|
});
|
|
788
|
-
const so = /* @__PURE__ */ ee(no, [["__scopeId", "data-v-068d7327"]]), ao = { key: 0 },
|
|
789
|
+
const so = /* @__PURE__ */ ee(no, [["__scopeId", "data-v-068d7327"]]), ao = { key: 0 }, ro = { key: 1 }, lo = /* @__PURE__ */ J({
|
|
789
790
|
__name: "ShortcutKeyModal",
|
|
790
791
|
props: {
|
|
791
792
|
modelShow: Boolean
|
|
792
793
|
},
|
|
793
794
|
emits: ["update:modelShow"],
|
|
794
|
-
setup(t, { emit:
|
|
795
|
-
const { CloseIcon: s } = ie.ionicons5, d = X(!1), o =
|
|
795
|
+
setup(t, { emit: r }) {
|
|
796
|
+
const { CloseIcon: s } = ie.ionicons5, d = X(!1), o = r, f = t;
|
|
796
797
|
ae(() => f.modelShow, (_) => {
|
|
797
798
|
d.value = _;
|
|
798
799
|
});
|
|
@@ -905,7 +906,7 @@ const so = /* @__PURE__ */ ee(no, [["__scopeId", "data-v-068d7327"]]), ao = { ke
|
|
|
905
906
|
onClick: u
|
|
906
907
|
}, {
|
|
907
908
|
default: h(() => [
|
|
908
|
-
x(
|
|
909
|
+
x(l(s))
|
|
909
910
|
]),
|
|
910
911
|
_: 1
|
|
911
912
|
})
|
|
@@ -917,17 +918,17 @@ const so = /* @__PURE__ */ ee(no, [["__scopeId", "data-v-068d7327"]]), ao = { ke
|
|
|
917
918
|
])
|
|
918
919
|
]),
|
|
919
920
|
I("tbody", null, [
|
|
920
|
-
(y(), P(se, null,
|
|
921
|
+
(y(), P(se, null, le(i, (p, m) => I("tr", { key: m }, [
|
|
921
922
|
I("td", null, j(p.label), 1),
|
|
922
923
|
I("td", null, j(p.win), 1),
|
|
923
|
-
p.macSource ? (y(), P("td", ao, j(p.mac), 1)) : (y(), P("td",
|
|
924
|
+
p.macSource ? (y(), P("td", ao, j(p.mac), 1)) : (y(), P("td", ro, [
|
|
924
925
|
x(e, { size: 22 }, {
|
|
925
926
|
default: h(() => [
|
|
926
|
-
|
|
927
|
+
re(j(p.mac.substr(0, 1)), 1)
|
|
927
928
|
]),
|
|
928
929
|
_: 2
|
|
929
930
|
}, 1024),
|
|
930
|
-
|
|
931
|
+
re(" + " + j(p.mac.substr(3)), 1)
|
|
931
932
|
]))
|
|
932
933
|
])), 64))
|
|
933
934
|
])
|
|
@@ -940,10 +941,10 @@ const so = /* @__PURE__ */ ee(no, [["__scopeId", "data-v-068d7327"]]), ao = { ke
|
|
|
940
941
|
};
|
|
941
942
|
}
|
|
942
943
|
});
|
|
943
|
-
const co = /* @__PURE__ */ ee(
|
|
944
|
+
const co = /* @__PURE__ */ ee(lo, [["__scopeId", "data-v-4a8b179f"]]), io = { class: "go-edit-shortcut" }, uo = /* @__PURE__ */ J({
|
|
944
945
|
__name: "index",
|
|
945
946
|
setup(t) {
|
|
946
|
-
const { DicomOverlayIcon:
|
|
947
|
+
const { DicomOverlayIcon: r } = ie.carbon, s = X(!1);
|
|
947
948
|
return (d, o) => {
|
|
948
949
|
const f = E("n-icon"), i = E("n-button"), u = E("n-tooltip");
|
|
949
950
|
return y(), P("div", io, [
|
|
@@ -965,7 +966,7 @@ const co = /* @__PURE__ */ ee(ro, [["__scopeId", "data-v-4a8b179f"]]), io = { cl
|
|
|
965
966
|
depth: 3
|
|
966
967
|
}, {
|
|
967
968
|
default: h(() => [
|
|
968
|
-
x(r
|
|
969
|
+
x(l(r))
|
|
969
970
|
]),
|
|
970
971
|
_: 1
|
|
971
972
|
})
|
|
@@ -989,7 +990,7 @@ const po = /* @__PURE__ */ ee(uo, [["__scopeId", "data-v-6fbf5bbb"]]), vo = { cl
|
|
|
989
990
|
_e((w) => ({
|
|
990
991
|
"3dbe566e": o.value
|
|
991
992
|
}));
|
|
992
|
-
const { LockClosedOutlineIcon:
|
|
993
|
+
const { LockClosedOutlineIcon: r, LockOpenOutlineIcon: s } = ie.ionicons5, d = ge(), o = X(d.getAppTheme), f = Ze(), i = oe(), { lockScale: u, scale: _ } = be(i.getEditCanvas), a = X(null);
|
|
993
994
|
let C = [
|
|
994
995
|
{
|
|
995
996
|
label: "200%",
|
|
@@ -1033,7 +1034,7 @@ const po = /* @__PURE__ */ ee(uo, [["__scopeId", "data-v-6fbf5bbb"]]), vo = { cl
|
|
|
1033
1034
|
return y(), P("div", vo, [
|
|
1034
1035
|
x(A, null, {
|
|
1035
1036
|
default: h(() => [
|
|
1036
|
-
x(
|
|
1037
|
+
x(l(so)),
|
|
1037
1038
|
x(T, {
|
|
1038
1039
|
id: "keyboard-dress-show",
|
|
1039
1040
|
depth: "3"
|
|
@@ -1054,8 +1055,8 @@ const po = /* @__PURE__ */ ee(uo, [["__scopeId", "data-v-6fbf5bbb"]]), vo = { cl
|
|
|
1054
1055
|
e
|
|
1055
1056
|
],
|
|
1056
1057
|
size: "mini",
|
|
1057
|
-
disabled:
|
|
1058
|
-
options:
|
|
1058
|
+
disabled: l(u),
|
|
1059
|
+
options: l(C)
|
|
1059
1060
|
}, null, 8, ["value", "disabled", "options"]),
|
|
1060
1061
|
x(v, { trigger: "hover" }, {
|
|
1061
1062
|
trigger: h(() => [
|
|
@@ -1065,12 +1066,12 @@ const po = /* @__PURE__ */ ee(uo, [["__scopeId", "data-v-6fbf5bbb"]]), vo = { cl
|
|
|
1065
1066
|
}, {
|
|
1066
1067
|
default: h(() => [
|
|
1067
1068
|
x(z, {
|
|
1068
|
-
class: ne(["lock-icon", { color:
|
|
1069
|
+
class: ne(["lock-icon", { color: l(u) }]),
|
|
1069
1070
|
size: "18",
|
|
1070
1071
|
depth: 2
|
|
1071
1072
|
}, {
|
|
1072
1073
|
default: h(() => [
|
|
1073
|
-
|
|
1074
|
+
l(u) ? (y(), R(l(r), { key: 0 })) : (y(), R(l(s), { key: 1 }))
|
|
1074
1075
|
]),
|
|
1075
1076
|
_: 1
|
|
1076
1077
|
}, 8, ["class"])
|
|
@@ -1079,7 +1080,7 @@ const po = /* @__PURE__ */ ee(uo, [["__scopeId", "data-v-6fbf5bbb"]]), vo = { cl
|
|
|
1079
1080
|
})
|
|
1080
1081
|
]),
|
|
1081
1082
|
default: h(() => [
|
|
1082
|
-
I("span", null, j(
|
|
1083
|
+
I("span", null, j(l(u) ? "解锁" : "锁定") + "当前比例", 1)
|
|
1083
1084
|
]),
|
|
1084
1085
|
_: 1
|
|
1085
1086
|
}),
|
|
@@ -1095,7 +1096,7 @@ const po = /* @__PURE__ */ ee(uo, [["__scopeId", "data-v-6fbf5bbb"]]), vo = { cl
|
|
|
1095
1096
|
max: 200,
|
|
1096
1097
|
step: 5,
|
|
1097
1098
|
"format-tooltip": p,
|
|
1098
|
-
disabled:
|
|
1099
|
+
disabled: l(u),
|
|
1099
1100
|
marks: D
|
|
1100
1101
|
}, null, 8, ["value", "disabled", "marks"])
|
|
1101
1102
|
]),
|
|
@@ -1111,8 +1112,8 @@ const go = /* @__PURE__ */ ee(_o, [["__scopeId", "data-v-a9042582"]]), fo = /* @
|
|
|
1111
1112
|
modelShow: Boolean
|
|
1112
1113
|
},
|
|
1113
1114
|
emits: ["update:modelShow"],
|
|
1114
|
-
setup(t, { emit:
|
|
1115
|
-
const s = t, d =
|
|
1115
|
+
setup(t, { emit: r }) {
|
|
1116
|
+
const s = t, d = r, { HelpOutlineIcon: o, CloseIcon: f } = ie.ionicons5, i = Xe(), u = X(!1), _ = Te([
|
|
1116
1117
|
{
|
|
1117
1118
|
key: ce.ASIDE_ALL_COLLAPSED,
|
|
1118
1119
|
value: i.getAsideAllCollapsed,
|
|
@@ -1219,7 +1220,7 @@ const go = /* @__PURE__ */ ee(_o, [["__scopeId", "data-v-a9042582"]]), fo = /* @
|
|
|
1219
1220
|
default: h(() => [
|
|
1220
1221
|
x(g, { class: "go-mb-0" }, {
|
|
1221
1222
|
default: h(() => e[1] || (e[1] = [
|
|
1222
|
-
|
|
1223
|
+
re("系统设置")
|
|
1223
1224
|
])),
|
|
1224
1225
|
_: 1,
|
|
1225
1226
|
__: [1]
|
|
@@ -1230,7 +1231,7 @@ const go = /* @__PURE__ */ ee(_o, [["__scopeId", "data-v-a9042582"]]), fo = /* @
|
|
|
1230
1231
|
onClick: a
|
|
1231
1232
|
}, {
|
|
1232
1233
|
default: h(() => [
|
|
1233
|
-
x(
|
|
1234
|
+
x(l(f))
|
|
1234
1235
|
]),
|
|
1235
1236
|
_: 1
|
|
1236
1237
|
})
|
|
@@ -1239,7 +1240,7 @@ const go = /* @__PURE__ */ ee(_o, [["__scopeId", "data-v-a9042582"]]), fo = /* @
|
|
|
1239
1240
|
})
|
|
1240
1241
|
]),
|
|
1241
1242
|
default: h(() => [
|
|
1242
|
-
(y(!0), P(se, null,
|
|
1243
|
+
(y(!0), P(se, null, le(_, (v) => (y(), R(H, {
|
|
1243
1244
|
key: v.key
|
|
1244
1245
|
}, {
|
|
1245
1246
|
default: h(() => [
|
|
@@ -1255,7 +1256,7 @@ const go = /* @__PURE__ */ ee(_o, [["__scopeId", "data-v-a9042582"]]), fo = /* @
|
|
|
1255
1256
|
default: h(() => [
|
|
1256
1257
|
x(D, { class: "item-left" }, {
|
|
1257
1258
|
default: h(() => [
|
|
1258
|
-
|
|
1259
|
+
re(j(v.name), 1)
|
|
1259
1260
|
]),
|
|
1260
1261
|
_: 2
|
|
1261
1262
|
}, 1024),
|
|
@@ -1288,7 +1289,7 @@ const go = /* @__PURE__ */ ee(_o, [["__scopeId", "data-v-a9042582"]]), fo = /* @
|
|
|
1288
1289
|
default: h(() => [
|
|
1289
1290
|
x(D, { class: "item-right" }, {
|
|
1290
1291
|
default: h(() => [
|
|
1291
|
-
|
|
1292
|
+
re(j(v.desc), 1)
|
|
1292
1293
|
]),
|
|
1293
1294
|
_: 2
|
|
1294
1295
|
}, 1024),
|
|
@@ -1299,7 +1300,7 @@ const go = /* @__PURE__ */ ee(_o, [["__scopeId", "data-v-a9042582"]]), fo = /* @
|
|
|
1299
1300
|
trigger: h(() => [
|
|
1300
1301
|
x(c, { size: "21" }, {
|
|
1301
1302
|
default: h(() => [
|
|
1302
|
-
x(
|
|
1303
|
+
x(l(o))
|
|
1303
1304
|
]),
|
|
1304
1305
|
_: 1
|
|
1305
1306
|
})
|
|
@@ -1334,19 +1335,19 @@ const ho = /* @__PURE__ */ ee(fo, [["__scopeId", "data-v-584e8b6a"]]), mo = () =
|
|
|
1334
1335
|
void 0,
|
|
1335
1336
|
"json"
|
|
1336
1337
|
);
|
|
1337
|
-
const
|
|
1338
|
-
if (!
|
|
1338
|
+
const r = document.querySelector(".go-edit-range"), s = document.getElementById("go-edit-watermark");
|
|
1339
|
+
if (!r || !s) {
|
|
1339
1340
|
window.$message.error("导出失败!");
|
|
1340
1341
|
return;
|
|
1341
1342
|
}
|
|
1342
1343
|
const d = t.getEditCanvas.scale;
|
|
1343
1344
|
t.setScale(1, !0), s.style.display = "block", setTimeout(() => {
|
|
1344
|
-
vt(
|
|
1345
|
+
vt(r, () => {
|
|
1345
1346
|
s && (s.style.display = "none"), t.setScale(d, !0);
|
|
1346
1347
|
});
|
|
1347
1348
|
}, 600);
|
|
1348
1349
|
}, Co = () => {
|
|
1349
|
-
const t = X(), { updateComponent:
|
|
1350
|
+
const t = X(), { updateComponent: r } = bt();
|
|
1350
1351
|
return {
|
|
1351
1352
|
importUploadFileListRef: t,
|
|
1352
1353
|
importBeforeUpload: ({ file: o }) => {
|
|
@@ -1366,7 +1367,7 @@ const ho = /* @__PURE__ */ ee(fo, [["__scopeId", "data-v-584e8b6a"]]), mo = () =
|
|
|
1366
1367
|
// 新增
|
|
1367
1368
|
onPositiveCallback: async () => {
|
|
1368
1369
|
try {
|
|
1369
|
-
i = $e(i), await
|
|
1370
|
+
i = $e(i), await r(i, !1, !0), window.$message.success("导入成功!");
|
|
1370
1371
|
} catch (u) {
|
|
1371
1372
|
console.log(u), window.$message.error("组件导入失败,请检查文件完整性!");
|
|
1372
1373
|
}
|
|
@@ -1374,7 +1375,7 @@ const ho = /* @__PURE__ */ ee(fo, [["__scopeId", "data-v-584e8b6a"]]), mo = () =
|
|
|
1374
1375
|
// 覆盖
|
|
1375
1376
|
onNegativeCallback: async () => {
|
|
1376
1377
|
try {
|
|
1377
|
-
i = $e(i), await
|
|
1378
|
+
i = $e(i), await r(i, !0, !0), window.$message.success("导入成功!");
|
|
1378
1379
|
} catch (u) {
|
|
1379
1380
|
console.log(u), window.$message.error("组件导入失败,请检查文件完整性!");
|
|
1380
1381
|
}
|
|
@@ -1389,7 +1390,7 @@ var de = /* @__PURE__ */ ((t) => (t.BUTTON = "button", t.IMPORTUPLOAD = "importU
|
|
|
1389
1390
|
const yo = { class: "btn-item" }, So = /* @__PURE__ */ J({
|
|
1390
1391
|
__name: "index",
|
|
1391
1392
|
setup(t) {
|
|
1392
|
-
const { DownloadIcon:
|
|
1393
|
+
const { DownloadIcon: r, ShareIcon: s, PawIcon: d, SettingsSharpIcon: o, CreateIcon: f } = ie.ionicons5, i = Xe();
|
|
1393
1394
|
oe(), gt(), Et();
|
|
1394
1395
|
let u = null;
|
|
1395
1396
|
const _ = X(!1), a = X(!0), C = X(!0), { importUploadFileListRef: n, importCustomRequest: e, importBeforeUpload: g } = Co(), c = U(() => i.getChartToolsStatus === Se.ASIDE), p = U(() => i.getChartToolsStatusHide), m = U(() => a.value && p.value), D = U(() => {
|
|
@@ -1418,7 +1419,7 @@ const yo = { class: "btn-item" }, So = /* @__PURE__ */ J({
|
|
|
1418
1419
|
key: "export",
|
|
1419
1420
|
type: de.BUTTON,
|
|
1420
1421
|
name: "导出",
|
|
1421
|
-
icon:
|
|
1422
|
+
icon: r,
|
|
1422
1423
|
handle: mo
|
|
1423
1424
|
},
|
|
1424
1425
|
// {
|
|
@@ -1442,7 +1443,7 @@ const yo = { class: "btn-item" }, So = /* @__PURE__ */ J({
|
|
|
1442
1443
|
const z = E("n-icon"), G = E("n-text"), v = E("n-button"), L = E("n-upload"), Y = E("n-tooltip");
|
|
1443
1444
|
return y(), P(se, null, [
|
|
1444
1445
|
I("div", {
|
|
1445
|
-
class: ne(["go-chart-edit-tools", [
|
|
1446
|
+
class: ne(["go-chart-edit-tools", [l(i).getChartToolsStatus, m.value ? "isMini" : "unMini"]]),
|
|
1446
1447
|
onClick: H[1] || (H[1] = ($) => a.value && (a.value = !1)),
|
|
1447
1448
|
onMouseenter: w,
|
|
1448
1449
|
onMouseleave: k
|
|
@@ -1452,13 +1453,13 @@ const yo = { class: "btn-item" }, So = /* @__PURE__ */ J({
|
|
|
1452
1453
|
size: "22"
|
|
1453
1454
|
}, {
|
|
1454
1455
|
default: h(() => [
|
|
1455
|
-
x(
|
|
1456
|
+
x(l(d))
|
|
1456
1457
|
]),
|
|
1457
1458
|
_: 1
|
|
1458
1459
|
}, 512), [
|
|
1459
|
-
[De,
|
|
1460
|
+
[De, l(i).getChartToolsStatus === l(Se).ASIDE && m.value]
|
|
1460
1461
|
]),
|
|
1461
|
-
(y(!0), P(se, null,
|
|
1462
|
+
(y(!0), P(se, null, le(D.value, ($, b) => (y(), R(Y, {
|
|
1462
1463
|
key: $.key,
|
|
1463
1464
|
disabled: !c.value || p.value && C.value,
|
|
1464
1465
|
trigger: "hover",
|
|
@@ -1466,7 +1467,7 @@ const yo = { class: "btn-item" }, So = /* @__PURE__ */ J({
|
|
|
1466
1467
|
}, {
|
|
1467
1468
|
trigger: h(() => [
|
|
1468
1469
|
I("div", yo, [
|
|
1469
|
-
$.type ===
|
|
1470
|
+
$.type === l(de).BUTTON ? (y(), R(v, {
|
|
1470
1471
|
key: 0,
|
|
1471
1472
|
circle: c.value,
|
|
1472
1473
|
secondary: "",
|
|
@@ -1486,7 +1487,7 @@ const yo = { class: "btn-item" }, So = /* @__PURE__ */ J({
|
|
|
1486
1487
|
default: h(() => [
|
|
1487
1488
|
Le(x(G, { depth: "3" }, {
|
|
1488
1489
|
default: h(() => [
|
|
1489
|
-
|
|
1490
|
+
re(j($.name), 1)
|
|
1490
1491
|
]),
|
|
1491
1492
|
_: 2
|
|
1492
1493
|
}, 1536), [
|
|
@@ -1494,13 +1495,13 @@ const yo = { class: "btn-item" }, So = /* @__PURE__ */ J({
|
|
|
1494
1495
|
])
|
|
1495
1496
|
]),
|
|
1496
1497
|
_: 2
|
|
1497
|
-
}, 1032, ["circle", "onClick"])) : $.type ===
|
|
1498
|
+
}, 1032, ["circle", "onClick"])) : $.type === l(de).IMPORTUPLOAD ? (y(), R(L, {
|
|
1498
1499
|
key: 1,
|
|
1499
|
-
"file-list":
|
|
1500
|
+
"file-list": l(n),
|
|
1500
1501
|
"onUpdate:fileList": H[0] || (H[0] = (O) => at(n) ? n.value = O : null),
|
|
1501
1502
|
"show-file-list": !1,
|
|
1502
|
-
customRequest:
|
|
1503
|
-
onBeforeUpload:
|
|
1503
|
+
customRequest: l(e),
|
|
1504
|
+
onBeforeUpload: l(g)
|
|
1504
1505
|
}, {
|
|
1505
1506
|
default: h(() => [
|
|
1506
1507
|
x(v, {
|
|
@@ -1521,7 +1522,7 @@ const yo = { class: "btn-item" }, So = /* @__PURE__ */ J({
|
|
|
1521
1522
|
default: h(() => [
|
|
1522
1523
|
Le(x(G, { depth: "3" }, {
|
|
1523
1524
|
default: h(() => [
|
|
1524
|
-
|
|
1525
|
+
re(j($.name), 1)
|
|
1525
1526
|
]),
|
|
1526
1527
|
_: 2
|
|
1527
1528
|
}, 1536), [
|
|
@@ -1541,7 +1542,7 @@ const yo = { class: "btn-item" }, So = /* @__PURE__ */ J({
|
|
|
1541
1542
|
_: 2
|
|
1542
1543
|
}, 1032, ["disabled"]))), 128))
|
|
1543
1544
|
], 34),
|
|
1544
|
-
x(
|
|
1545
|
+
x(l(ho), {
|
|
1545
1546
|
modelShow: _.value,
|
|
1546
1547
|
"onUpdate:modelShow": H[2] || (H[2] = ($) => _.value = $)
|
|
1547
1548
|
}, null, 8, ["modelShow"])
|
|
@@ -1552,27 +1553,27 @@ const yo = { class: "btn-item" }, So = /* @__PURE__ */ J({
|
|
|
1552
1553
|
const xo = /* @__PURE__ */ ee(So, [["__scopeId", "data-v-735bc734"]]), wo = /* @__PURE__ */ J({
|
|
1553
1554
|
__name: "index",
|
|
1554
1555
|
setup(t) {
|
|
1555
|
-
const
|
|
1556
|
-
|
|
1556
|
+
const r = oe(), { handleContextMenu: s } = Ye();
|
|
1557
|
+
rt(kt, null), Lt(async () => {
|
|
1557
1558
|
});
|
|
1558
1559
|
const { mouseenterHandle: d, mouseleaveHandle: o, mousedownHandle: f, mouseClickHandle: i } = tt(), u = (n, e, g) => {
|
|
1559
|
-
if (
|
|
1560
|
+
if (r.getTargetChart.selectId.length > 1)
|
|
1560
1561
|
return e.filter((p) => [Q.GROUP, Q.DELETE].includes(p.key));
|
|
1561
1562
|
const c = [];
|
|
1562
1563
|
return g.status.lock ? c.push(Q.LOCK) : c.push(Q.UNLOCK), g.status.hide ? c.push(Q.HIDE) : c.push(Q.SHOW), n.filter((p) => !c.includes(p.key));
|
|
1563
|
-
}, _ = U(() =>
|
|
1564
|
-
U(() =>
|
|
1564
|
+
}, _ = U(() => r.getEditCanvasConfig.chartThemeSetting), a = U(() => je(r.getEditCanvasConfig.chartCustomThemeColorInfo)[r.getEditCanvasConfig.chartThemeColor]);
|
|
1565
|
+
U(() => r.getEditCanvasConfig.filterShow);
|
|
1565
1566
|
const C = U(() => {
|
|
1566
|
-
const n =
|
|
1567
|
+
const n = r.getEditCanvasConfig.background, e = r.getEditCanvasConfig.backgroundImage;
|
|
1567
1568
|
return {
|
|
1568
|
-
...
|
|
1569
|
+
...r.getEditCanvasConfig.selectColor ? { background: n || void 0 } : { background: `url(${e}) no-repeat center center / cover !important` },
|
|
1569
1570
|
width: "inherit",
|
|
1570
1571
|
height: "inherit"
|
|
1571
1572
|
};
|
|
1572
1573
|
});
|
|
1573
1574
|
return He(() => {
|
|
1574
1575
|
wt();
|
|
1575
|
-
}), (n, e) => (y(), R(
|
|
1576
|
+
}), (n, e) => (y(), R(l(Tt), {
|
|
1576
1577
|
id: "go-chart-edit-layout",
|
|
1577
1578
|
flex: !0,
|
|
1578
1579
|
showTop: !1,
|
|
@@ -1580,65 +1581,65 @@ const xo = /* @__PURE__ */ ee(So, [["__scopeId", "data-v-735bc734"]]), wo = /* @
|
|
|
1580
1581
|
depth: 1,
|
|
1581
1582
|
xScroll: !0,
|
|
1582
1583
|
disabledScroll: !0,
|
|
1583
|
-
onMousedown:
|
|
1584
|
-
onDrop:
|
|
1585
|
-
onDragover:
|
|
1586
|
-
onDragenter:
|
|
1584
|
+
onMousedown: l(et),
|
|
1585
|
+
onDrop: l(Dt),
|
|
1586
|
+
onDragover: l(We),
|
|
1587
|
+
onDragenter: l(We)
|
|
1587
1588
|
}, {
|
|
1588
1589
|
aside: h(() => [
|
|
1589
|
-
x(
|
|
1590
|
+
x(l(xo))
|
|
1590
1591
|
]),
|
|
1591
1592
|
bottom: h(() => [
|
|
1592
|
-
x(
|
|
1593
|
+
x(l(go))
|
|
1593
1594
|
]),
|
|
1594
1595
|
default: h(() => [
|
|
1595
|
-
x(
|
|
1596
|
+
x(l(Vt), null, {
|
|
1596
1597
|
default: h(() => [
|
|
1597
1598
|
I("div", {
|
|
1598
1599
|
id: "go-chart-edit-content",
|
|
1599
1600
|
onContextmenu: e[0] || (e[0] = //@ts-ignore
|
|
1600
|
-
(...g) =>
|
|
1601
|
+
(...g) => l(s) && l(s)(...g))
|
|
1601
1602
|
}, [
|
|
1602
|
-
x(
|
|
1603
|
+
x(l(zt), null, {
|
|
1603
1604
|
default: h(() => [
|
|
1604
1605
|
I("div", {
|
|
1605
1606
|
style: V({
|
|
1606
|
-
...
|
|
1607
|
+
...l(ye)(l(r).getEditCanvasConfig),
|
|
1607
1608
|
...C.value
|
|
1608
1609
|
})
|
|
1609
1610
|
}, [
|
|
1610
|
-
(y(!0), P(se, null,
|
|
1611
|
+
(y(!0), P(se, null, le(l(r).getComponentList, (g, c) => (y(), P("div", {
|
|
1611
1612
|
key: g.id
|
|
1612
1613
|
}, [
|
|
1613
|
-
g.isGroup ? (y(), R(
|
|
1614
|
+
g.isGroup ? (y(), R(l(At), {
|
|
1614
1615
|
key: 0,
|
|
1615
1616
|
groupData: g,
|
|
1616
1617
|
groupIndex: c
|
|
1617
|
-
}, null, 8, ["groupData", "groupIndex"])) : (y(), R(
|
|
1618
|
+
}, null, 8, ["groupData", "groupIndex"])) : (y(), R(l(Ae), {
|
|
1618
1619
|
key: 1,
|
|
1619
1620
|
"data-id": g.id,
|
|
1620
1621
|
index: c,
|
|
1621
1622
|
style: V({
|
|
1622
|
-
...
|
|
1623
|
-
...
|
|
1623
|
+
...l(we)(g.attr, c),
|
|
1624
|
+
...l(Je)(g.styles)
|
|
1624
1625
|
}),
|
|
1625
1626
|
item: g,
|
|
1626
|
-
onClick: (p) =>
|
|
1627
|
-
onMousedown: (p) =>
|
|
1628
|
-
onMouseenter: (p) =>
|
|
1629
|
-
onMouseleave: (p) =>
|
|
1630
|
-
onContextmenu: (p) =>
|
|
1627
|
+
onClick: (p) => l(i)(p, g),
|
|
1628
|
+
onMousedown: (p) => l(f)(p, g),
|
|
1629
|
+
onMouseenter: (p) => l(d)(p, g),
|
|
1630
|
+
onMouseleave: (p) => l(o)(p, g),
|
|
1631
|
+
onContextmenu: (p) => l(s)(p, g, u)
|
|
1631
1632
|
}, {
|
|
1632
1633
|
default: h(() => [
|
|
1633
1634
|
(y(), R(pe(g.chartConfig.chartKey), {
|
|
1634
|
-
class: ne(["edit-content-chart",
|
|
1635
|
+
class: ne(["edit-content-chart", l(Re)(g.styles.animations)]),
|
|
1635
1636
|
chartConfig: g,
|
|
1636
1637
|
themeSetting: _.value,
|
|
1637
1638
|
themeColor: a.value,
|
|
1638
1639
|
style: V({
|
|
1639
|
-
...
|
|
1640
|
-
...
|
|
1641
|
-
...
|
|
1640
|
+
...l(ue)(g.attr),
|
|
1641
|
+
...l(ye)(g.styles),
|
|
1642
|
+
...l(Oe)(g.styles)
|
|
1642
1643
|
})
|
|
1643
1644
|
}, null, 8, ["class", "chartConfig", "themeSetting", "themeColor", "style"]))
|
|
1644
1645
|
]),
|
|
@@ -1658,7 +1659,7 @@ const xo = /* @__PURE__ */ ee(So, [["__scopeId", "data-v-735bc734"]]), wo = /* @
|
|
|
1658
1659
|
}, 8, ["onMousedown", "onDrop", "onDragover", "onDragenter"]));
|
|
1659
1660
|
}
|
|
1660
1661
|
});
|
|
1661
|
-
const
|
|
1662
|
+
const Yo = /* @__PURE__ */ ee(wo, [["__scopeId", "data-v-bc6c5e54"]]);
|
|
1662
1663
|
export {
|
|
1663
|
-
|
|
1664
|
+
Yo as default
|
|
1664
1665
|
};
|