go-view-worker 0.0.1 → 0.0.3
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-f8e7e2ce.js} +2 -2
- package/dist/chunks/{404-3d357d75.js → 404-a142c879.js} +2 -2
- package/dist/chunks/{500-96d14fb0.js → 500-bae41738.js} +2 -2
- package/dist/chunks/{StylesSetting-952ff564.js → StylesSetting-0b3e3982.js} +3 -3
- package/dist/chunks/{chartEditStore-a725b558.js → chartEditStore-f48950d9.js} +176 -181
- package/dist/chunks/{designStore-fe92c2ba.js → designStore-abf0276f.js} +732 -723
- package/dist/chunks/{index-09e62bb4.js → index-0de14166.js} +12 -12
- package/dist/chunks/{index-1cb69ab6.js → index-10239152.js} +8 -8
- package/dist/chunks/{index-82d00e13.js → index-2de9e3ea.js} +89 -93
- package/dist/chunks/{index-3fd591ea.js → index-36618d76.js} +12 -12
- package/dist/chunks/{index-51458edb.js → index-3dd569d9.js} +2 -2
- package/dist/chunks/{index-95c5f0a0.js → index-58176a0a.js} +167 -166
- package/dist/chunks/index-722c6f2c.js +461 -0
- package/dist/chunks/index-839d28d5.js +94 -0
- package/dist/chunks/{index-9502bd7e.js → index-84fa0f64.js} +14 -13
- package/dist/chunks/{index-32d13283.js → index-900fa1fe.js} +6 -6
- package/dist/chunks/{index-fdf7dc1e.js → index-90f26e37.js} +13 -13
- package/dist/chunks/{index-0472b3a5.js → index-93353748.js} +48 -47
- package/dist/chunks/{index-a410a1d3.js → index-9c2aed71.js} +8 -8
- package/dist/chunks/{index-62a7855c.js → index-ba8452e6.js} +13 -12
- package/dist/chunks/{index-f266153a.js → index-c995ea0c.js} +106 -104
- package/dist/chunks/{index-fec9f9f8.js → index-d5c768d4.js} +66 -65
- package/dist/chunks/{index-de0a1234.js → index-e0c80625.js} +36 -36
- package/dist/chunks/{index-00b6339d.js → index-f6b272ec.js} +6 -6
- package/dist/chunks/{index-da8ddb02.js → index-f7052250.js} +1 -1
- package/dist/chunks/{index-f97e5ffc.js → index-fb392034.js} +1 -1
- package/dist/chunks/{index.vue_vue_type_script_setup_true_lang-c6159a17.js → index.vue_vue_type_script_setup_true_lang-326b78df.js} +550 -549
- package/dist/chunks/{lodash-c80b695e.js → lodash-6f44772f.js} +1 -1
- package/dist/chunks/{router-106a6abc.js → router-409e60a0.js} +15 -15
- package/dist/chunks/{useKeyboard.hook-da88451a.js → useKeyboard.hook-2a34f019.js} +27 -27
- package/dist/chunks/{useSyncUpdate.hook-5517a8ad.js → useSyncUpdate.hook-c4fe3cc0.js} +16 -16
- package/dist/chunks/{useTargetData.hook-28a7e43b.js → useTargetData.hook-45598610.js} +1 -1
- package/dist/chunks/{wrapper-4c15ca94.js → wrapper-6fd9dd7e.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,13 +1,13 @@
|
|
|
1
1
|
import { defineComponent as y, resolveComponent as s, openBlock as m, createBlock as A, unref as e, withCtx as i, createVNode as n, createElementBlock as x, Fragment as I, renderList as V, resolveDynamicComponent as w, createTextVNode as _, createCommentVNode as H } from "vue";
|
|
2
|
-
import { S as v } from "./index.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { S as v } from "./index.vue_vue_type_script_setup_true_lang-326b78df.js";
|
|
3
3
|
import "naive-ui";
|
|
4
|
-
import {
|
|
4
|
+
import { b as f, _ as j } from "./designStore-abf0276f.js";
|
|
5
5
|
import "vue-router";
|
|
6
|
-
import { i as q } from "./chartEditStore-
|
|
7
|
-
import { S as D } from "./StylesSetting-
|
|
8
|
-
import { u as U } from "./useTargetData.hook-
|
|
6
|
+
import { i as q } from "./chartEditStore-f48950d9.js";
|
|
7
|
+
import { S as D } from "./StylesSetting-0b3e3982.js";
|
|
8
|
+
import { u as U } from "./useTargetData.hook-45598610.js";
|
|
9
9
|
import "pinia";
|
|
10
|
-
import "./router-
|
|
10
|
+
import "./router-409e60a0.js";
|
|
11
11
|
const $ = /* @__PURE__ */ y({
|
|
12
12
|
__name: "NameSetting",
|
|
13
13
|
props: {
|
|
@@ -100,8 +100,8 @@ const $ = /* @__PURE__ */ y({
|
|
|
100
100
|
lable: "底部",
|
|
101
101
|
icon: f(g)
|
|
102
102
|
}
|
|
103
|
-
], r = t, z = (
|
|
104
|
-
switch (
|
|
103
|
+
], r = t, z = (b) => {
|
|
104
|
+
switch (b) {
|
|
105
105
|
case l[0].key:
|
|
106
106
|
r.chartAttr.x = 0;
|
|
107
107
|
break;
|
|
@@ -122,8 +122,8 @@ const $ = /* @__PURE__ */ y({
|
|
|
122
122
|
break;
|
|
123
123
|
}
|
|
124
124
|
};
|
|
125
|
-
return (
|
|
126
|
-
const S = s("n-divider"), B = s("n-button"), G = s("n-space"),
|
|
125
|
+
return (b, c) => {
|
|
126
|
+
const S = s("n-divider"), B = s("n-button"), G = s("n-space"), C = s("n-text"), k = s("n-input-number");
|
|
127
127
|
return m(), x(I, null, [
|
|
128
128
|
n(S, { style: { margin: "10px 0" } }),
|
|
129
129
|
n(G, {
|
|
@@ -155,7 +155,7 @@ const $ = /* @__PURE__ */ y({
|
|
|
155
155
|
placeholder: "px"
|
|
156
156
|
}, {
|
|
157
157
|
prefix: i(() => [
|
|
158
|
-
n(
|
|
158
|
+
n(C, { depth: "3" }, {
|
|
159
159
|
default: i(() => c[2] || (c[2] = [
|
|
160
160
|
_("上")
|
|
161
161
|
])),
|
|
@@ -173,7 +173,7 @@ const $ = /* @__PURE__ */ y({
|
|
|
173
173
|
placeholder: "px"
|
|
174
174
|
}, {
|
|
175
175
|
prefix: i(() => [
|
|
176
|
-
n(
|
|
176
|
+
n(C, { depth: "3" }, {
|
|
177
177
|
default: i(() => c[3] || (c[3] = [
|
|
178
178
|
_("左")
|
|
179
179
|
])),
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as L, useCssVars as R, ref as B, computed as S, resolveComponent as i, unref as o, openBlock as t, createElementBlock as s, createVNode as b, withCtx as u, createTextVNode as c, Fragment as d, renderList as m, createBlock as p, normalizeClass as U, toDisplayString as z, createCommentVNode as
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent as L, useCssVars as R, ref as B, computed as S, resolveComponent as i, unref as o, openBlock as t, createElementBlock as s, createVNode as b, withCtx as u, createTextVNode as c, Fragment as d, renderList as m, createBlock as p, normalizeClass as U, toDisplayString as z, createCommentVNode as V } from "vue";
|
|
2
|
+
import { a as A } from "./index.vue_vue_type_script_setup_true_lang-326b78df.js";
|
|
3
3
|
import "naive-ui";
|
|
4
|
-
import {
|
|
4
|
+
import { u as $, _ as N } from "./designStore-abf0276f.js";
|
|
5
5
|
import "vue-router";
|
|
6
|
-
import "./chartEditStore-
|
|
7
|
-
import { u as T } from "./useTargetData.hook-
|
|
6
|
+
import "./chartEditStore-f48950d9.js";
|
|
7
|
+
import { u as T } from "./useTargetData.hook-45598610.js";
|
|
8
8
|
import "pinia";
|
|
9
|
-
import "./router-
|
|
9
|
+
import "./router-409e60a0.js";
|
|
10
10
|
const Y = [
|
|
11
11
|
{
|
|
12
12
|
label: "强调动画",
|
|
@@ -94,7 +94,7 @@ const Y = [
|
|
|
94
94
|
_: 1,
|
|
95
95
|
__: [0]
|
|
96
96
|
}, 8, ["disabled"]),
|
|
97
|
-
(t(!0), s(d, null, m(o(Y), (v, w) => (t(), p(o(
|
|
97
|
+
(t(!0), s(d, null, m(o(Y), (v, w) => (t(), p(o(A), {
|
|
98
98
|
key: w,
|
|
99
99
|
name: v.label,
|
|
100
100
|
expanded: !0
|
|
@@ -126,7 +126,7 @@ const Y = [
|
|
|
126
126
|
]),
|
|
127
127
|
_: 2
|
|
128
128
|
}, 1032, ["name"]))), 128))
|
|
129
|
-
])) :
|
|
129
|
+
])) : V("", !0);
|
|
130
130
|
};
|
|
131
131
|
}
|
|
132
132
|
});
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
1
|
+
import { defineAsyncComponent as N, defineComponent as g, computed as G, resolveComponent as v, openBlock as k, createBlock as w, withCtx as u, createElementVNode as h, normalizeClass as j, createVNode as i, renderSlot as _, unref as a, ref as z, toRaw as O, nextTick as K, createElementBlock as V, Fragment as W } from "vue";
|
|
2
2
|
import "naive-ui";
|
|
3
|
-
import {
|
|
4
|
-
import { useRoute as
|
|
5
|
-
import { u as M, i as P, c as
|
|
6
|
-
const
|
|
3
|
+
import { A as Y, P as F, _ as I, M as o, b as r } from "./designStore-abf0276f.js";
|
|
4
|
+
import { useRoute as X } from "vue-router";
|
|
5
|
+
import { u as M, i as P, c as q, l as J, a as Q } from "./chartEditStore-f48950d9.js";
|
|
6
|
+
const $e = (t, e) => {
|
|
7
7
|
console.log("key", t), console.log("node", typeof e), !window.$vue.component(t) && e && window.$vue.component(t, e);
|
|
8
|
-
}, p = (t) =>
|
|
8
|
+
}, p = (t) => N({
|
|
9
9
|
loader: t,
|
|
10
|
-
loadingComponent:
|
|
10
|
+
loadingComponent: Y,
|
|
11
11
|
delay: 20
|
|
12
|
-
}),
|
|
12
|
+
}), Z = { class: "header-item left" }, ee = { class: "header-item center" }, te = { class: "header-item right" }, ne = /* @__PURE__ */ g({
|
|
13
13
|
__name: "index",
|
|
14
14
|
setup(t) {
|
|
15
|
-
const e =
|
|
16
|
-
return (s,
|
|
15
|
+
const e = X(), l = G(() => e.fullPath === F.BASE_HOME_ITEMS);
|
|
16
|
+
return (s, c) => {
|
|
17
17
|
const f = v("n-space"), C = v("n-layout-header");
|
|
18
18
|
return k(), w(C, {
|
|
19
19
|
bordered: "",
|
|
@@ -21,21 +21,21 @@ const Le = (t, e) => {
|
|
|
21
21
|
}, {
|
|
22
22
|
default: u(() => [
|
|
23
23
|
h("header", {
|
|
24
|
-
class:
|
|
24
|
+
class: j(["go-header-box", { "is-project": l.value }])
|
|
25
25
|
}, [
|
|
26
|
-
h("div",
|
|
27
|
-
|
|
26
|
+
h("div", Z, [
|
|
27
|
+
i(f, null, {
|
|
28
28
|
default: u(() => [
|
|
29
29
|
_(s.$slots, "left", {}, void 0, !0)
|
|
30
30
|
]),
|
|
31
31
|
_: 3
|
|
32
32
|
})
|
|
33
33
|
]),
|
|
34
|
-
h("div",
|
|
34
|
+
h("div", ee, [
|
|
35
35
|
_(s.$slots, "center", {}, void 0, !0)
|
|
36
36
|
]),
|
|
37
|
-
h("div",
|
|
38
|
-
|
|
37
|
+
h("div", te, [
|
|
38
|
+
i(f, null, {
|
|
39
39
|
default: u(() => [
|
|
40
40
|
_(s.$slots, "ri-left", {}, void 0, !0),
|
|
41
41
|
_(s.$slots, "ri-right", {}, void 0, !0)
|
|
@@ -50,10 +50,10 @@ const Le = (t, e) => {
|
|
|
50
50
|
};
|
|
51
51
|
}
|
|
52
52
|
});
|
|
53
|
-
const
|
|
53
|
+
const oe = /* @__PURE__ */ I(ne, [["__scopeId", "data-v-2b2ae272"]]), le = /* @__PURE__ */ g({
|
|
54
54
|
__name: "index",
|
|
55
55
|
setup(t) {
|
|
56
|
-
return (e, l) => (k(), w(a(
|
|
56
|
+
return (e, l) => (k(), w(a(oe), null, {
|
|
57
57
|
left: u(() => [
|
|
58
58
|
_(e.$slots, "left")
|
|
59
59
|
]),
|
|
@@ -70,42 +70,42 @@ const ae = /* @__PURE__ */ I(se, [["__scopeId", "data-v-2b2ae272"]]), ce = /* @_
|
|
|
70
70
|
}));
|
|
71
71
|
}
|
|
72
72
|
}), {
|
|
73
|
-
CopyIcon:
|
|
74
|
-
CutIcon:
|
|
75
|
-
ClipboardOutlineIcon:
|
|
76
|
-
TrashIcon:
|
|
77
|
-
ChevronDownIcon:
|
|
78
|
-
ChevronUpIcon:
|
|
79
|
-
LockOpenOutlineIcon:
|
|
80
|
-
LockClosedOutlineIcon:
|
|
81
|
-
EyeOutlineIcon:
|
|
82
|
-
EyeOffOutlineIcon:
|
|
83
|
-
} = P.ionicons5, { UpToTopIcon:
|
|
73
|
+
CopyIcon: se,
|
|
74
|
+
CutIcon: ae,
|
|
75
|
+
ClipboardOutlineIcon: re,
|
|
76
|
+
TrashIcon: ce,
|
|
77
|
+
ChevronDownIcon: ie,
|
|
78
|
+
ChevronUpIcon: de,
|
|
79
|
+
LockOpenOutlineIcon: ue,
|
|
80
|
+
LockClosedOutlineIcon: fe,
|
|
81
|
+
EyeOutlineIcon: _e,
|
|
82
|
+
EyeOffOutlineIcon: pe
|
|
83
|
+
} = P.ionicons5, { UpToTopIcon: he, DownToBottomIcon: me, PaintBrushIcon: ye, Carbon3DSoftwareIcon: ve, Carbon3DCursorIcon: Ce } = P.carbon, n = () => M(), H = (t = 3) => ({
|
|
84
84
|
type: "divider",
|
|
85
85
|
key: `d${t}`
|
|
86
86
|
}), m = [
|
|
87
87
|
{
|
|
88
88
|
label: "锁定",
|
|
89
89
|
key: o.LOCK,
|
|
90
|
-
icon:
|
|
90
|
+
icon: r(fe),
|
|
91
91
|
fnHandle: n().setLock
|
|
92
92
|
},
|
|
93
93
|
{
|
|
94
94
|
label: "解锁",
|
|
95
95
|
key: o.UNLOCK,
|
|
96
|
-
icon:
|
|
96
|
+
icon: r(ue),
|
|
97
97
|
fnHandle: n().setUnLock
|
|
98
98
|
},
|
|
99
99
|
{
|
|
100
100
|
label: "隐藏",
|
|
101
101
|
key: o.HIDE,
|
|
102
|
-
icon:
|
|
102
|
+
icon: r(pe),
|
|
103
103
|
fnHandle: n().setHide
|
|
104
104
|
},
|
|
105
105
|
{
|
|
106
106
|
label: "显示",
|
|
107
107
|
key: o.SHOW,
|
|
108
|
-
icon:
|
|
108
|
+
icon: r(_e),
|
|
109
109
|
fnHandle: n().setShow
|
|
110
110
|
},
|
|
111
111
|
{
|
|
@@ -115,19 +115,19 @@ const ae = /* @__PURE__ */ I(se, [["__scopeId", "data-v-2b2ae272"]]), ce = /* @_
|
|
|
115
115
|
{
|
|
116
116
|
label: "复制",
|
|
117
117
|
key: o.COPY,
|
|
118
|
-
icon:
|
|
118
|
+
icon: r(se),
|
|
119
119
|
fnHandle: n().setCopy
|
|
120
120
|
},
|
|
121
121
|
{
|
|
122
122
|
label: "剪切",
|
|
123
123
|
key: o.CUT,
|
|
124
|
-
icon:
|
|
124
|
+
icon: r(ae),
|
|
125
125
|
fnHandle: n().setCut
|
|
126
126
|
},
|
|
127
127
|
{
|
|
128
128
|
label: "粘贴",
|
|
129
129
|
key: o.PARSE,
|
|
130
|
-
icon:
|
|
130
|
+
icon: r(re),
|
|
131
131
|
fnHandle: n().setParse
|
|
132
132
|
},
|
|
133
133
|
{
|
|
@@ -137,25 +137,25 @@ const ae = /* @__PURE__ */ I(se, [["__scopeId", "data-v-2b2ae272"]]), ce = /* @_
|
|
|
137
137
|
{
|
|
138
138
|
label: "置顶",
|
|
139
139
|
key: o.TOP,
|
|
140
|
-
icon:
|
|
140
|
+
icon: r(he),
|
|
141
141
|
fnHandle: n().setTop
|
|
142
142
|
},
|
|
143
143
|
{
|
|
144
144
|
label: "置底",
|
|
145
145
|
key: o.BOTTOM,
|
|
146
|
-
icon:
|
|
146
|
+
icon: r(me),
|
|
147
147
|
fnHandle: n().setBottom
|
|
148
148
|
},
|
|
149
149
|
{
|
|
150
150
|
label: "上移",
|
|
151
151
|
key: o.UP,
|
|
152
|
-
icon:
|
|
152
|
+
icon: r(de),
|
|
153
153
|
fnHandle: n().setUp
|
|
154
154
|
},
|
|
155
155
|
{
|
|
156
156
|
label: "下移",
|
|
157
157
|
key: o.DOWN,
|
|
158
|
-
icon:
|
|
158
|
+
icon: r(ie),
|
|
159
159
|
fnHandle: n().setDown
|
|
160
160
|
},
|
|
161
161
|
{
|
|
@@ -165,104 +165,100 @@ const ae = /* @__PURE__ */ I(se, [["__scopeId", "data-v-2b2ae272"]]), ce = /* @_
|
|
|
165
165
|
{
|
|
166
166
|
label: "清空剪贴板",
|
|
167
167
|
key: o.CLEAR,
|
|
168
|
-
icon:
|
|
168
|
+
icon: r(ye),
|
|
169
169
|
fnHandle: n().setRecordChart
|
|
170
170
|
},
|
|
171
171
|
{
|
|
172
172
|
label: "删除",
|
|
173
173
|
key: o.DELETE,
|
|
174
|
-
icon:
|
|
174
|
+
icon: r(ce),
|
|
175
175
|
fnHandle: n().removeComponentList
|
|
176
176
|
}
|
|
177
177
|
], y = [
|
|
178
178
|
{
|
|
179
179
|
label: "创建分组",
|
|
180
180
|
key: o.GROUP,
|
|
181
|
-
icon:
|
|
181
|
+
icon: r(ve),
|
|
182
182
|
fnHandle: n().setGroup
|
|
183
183
|
},
|
|
184
184
|
{
|
|
185
185
|
label: "解除分组",
|
|
186
186
|
key: o.UN_GROUP,
|
|
187
|
-
icon:
|
|
187
|
+
icon: r(Ce),
|
|
188
188
|
fnHandle: n().setUnGroup
|
|
189
189
|
}
|
|
190
|
-
],
|
|
190
|
+
], ge = [o.PARSE, o.CLEAR], E = (t, e) => {
|
|
191
191
|
if (!e)
|
|
192
192
|
return t;
|
|
193
193
|
const l = [];
|
|
194
194
|
return e.forEach((s) => {
|
|
195
|
-
l.push(...t.filter((
|
|
195
|
+
l.push(...t.filter((c) => c.key === s));
|
|
196
196
|
}), l;
|
|
197
|
-
},
|
|
197
|
+
}, ke = (t, e) => e ? t.filter((l) => e.findIndex((s) => s !== l.key) !== -1) : t, d = z([]), Se = (t, e, l, s, c) => {
|
|
198
198
|
t.stopPropagation(), t.preventDefault();
|
|
199
199
|
let f = t.target;
|
|
200
200
|
for (; f instanceof SVGElement; )
|
|
201
201
|
f = f.parentNode;
|
|
202
|
-
n().setTargetSelectChart(e && e.id), n().setRightMenuShow(!1), n().getTargetChart.selectId.length > 1 ? d.value = y : d.value = m, e || (d.value = E(O(d.value),
|
|
203
|
-
|
|
202
|
+
n().setTargetSelectChart(e && e.id), n().setRightMenuShow(!1), n().getTargetChart.selectId.length > 1 ? d.value = y : d.value = m, e || (d.value = E(O(d.value), ge)), s && (d.value = ke([...y, H(), ...m], s)), c && (d.value = E([...y, H(), ...m], c)), l && (d.value = l(
|
|
203
|
+
q(O(d.value)),
|
|
204
204
|
[...y, ...m],
|
|
205
205
|
e
|
|
206
|
-
)),
|
|
206
|
+
)), K().then(() => {
|
|
207
207
|
n().setMousePosition(t.clientX, t.clientY), n().setRightMenuShow(!0);
|
|
208
208
|
});
|
|
209
|
-
},
|
|
209
|
+
}, be = () => (d.value = m, {
|
|
210
210
|
menuOptions: d,
|
|
211
211
|
defaultOptions: m,
|
|
212
212
|
defaultMultiSelectOptions: y,
|
|
213
|
-
handleContextMenu:
|
|
213
|
+
handleContextMenu: Se,
|
|
214
214
|
onClickOutSide: () => {
|
|
215
215
|
n().setRightMenuShow(!1);
|
|
216
216
|
},
|
|
217
217
|
handleMenuSelect: (l) => {
|
|
218
218
|
n().setRightMenuShow(!1);
|
|
219
|
-
const s = d.value.filter((
|
|
220
|
-
d.value.forEach((
|
|
221
|
-
if (
|
|
222
|
-
if (
|
|
223
|
-
|
|
219
|
+
const s = d.value.filter((c) => c.key === l);
|
|
220
|
+
d.value.forEach((c) => {
|
|
221
|
+
if (c.key === l) {
|
|
222
|
+
if (c.fnHandle) {
|
|
223
|
+
c.fnHandle();
|
|
224
224
|
return;
|
|
225
225
|
}
|
|
226
|
-
s ||
|
|
226
|
+
s || J();
|
|
227
227
|
}
|
|
228
228
|
});
|
|
229
229
|
},
|
|
230
230
|
mousePosition: n().getMousePosition
|
|
231
|
-
}),
|
|
231
|
+
}), Oe = { class: "go-chart" }, He = { style: { overflow: "hidden", display: "flex" } }, Ee = /* @__PURE__ */ g({
|
|
232
232
|
__name: "index",
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
s.
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
const N = v("n-layout-content"), G = v("n-layout"), j = v("n-dropdown");
|
|
243
|
-
return k(), F(X, null, [
|
|
244
|
-
h("div", we, [
|
|
245
|
-
r(G, null, {
|
|
233
|
+
setup(t) {
|
|
234
|
+
const e = Q(), l = M();
|
|
235
|
+
e.canvasInit(l.getEditCanvas);
|
|
236
|
+
const s = p(() => import("./index-84fa0f64.js")), c = p(() => import("./index-839d28d5.js")), f = p(() => import("./index-36618d76.js")), C = p(() => import("./index-c995ea0c.js")), x = p(() => import("./index-e0c80625.js").then((b) => b.i)), T = p(() => import("./index-93353748.js")), R = p(() => import("./index-ba8452e6.js")), { menuOptions: $, onClickOutSide: D, mousePosition: S, handleMenuSelect: L } = be();
|
|
237
|
+
return (b, Ie) => {
|
|
238
|
+
const U = v("n-layout-content"), B = v("n-layout"), A = v("n-dropdown");
|
|
239
|
+
return k(), V(W, null, [
|
|
240
|
+
h("div", Oe, [
|
|
241
|
+
i(B, null, {
|
|
246
242
|
default: u(() => [
|
|
247
|
-
|
|
243
|
+
i(a(le), null, {
|
|
248
244
|
left: u(() => [
|
|
249
|
-
|
|
245
|
+
i(a(s))
|
|
250
246
|
]),
|
|
251
247
|
center: u(() => [
|
|
252
|
-
|
|
248
|
+
i(a(f))
|
|
253
249
|
]),
|
|
254
250
|
"ri-left": u(() => [
|
|
255
|
-
|
|
251
|
+
i(a(c))
|
|
256
252
|
]),
|
|
257
253
|
_: 1
|
|
258
254
|
}),
|
|
259
|
-
|
|
255
|
+
i(U, { "content-style": "overflow:hidden; display: flex" }, {
|
|
260
256
|
default: u(() => [
|
|
261
|
-
h("div",
|
|
262
|
-
|
|
263
|
-
|
|
257
|
+
h("div", He, [
|
|
258
|
+
i(a(x)),
|
|
259
|
+
i(a(C))
|
|
264
260
|
]),
|
|
265
|
-
|
|
261
|
+
i(a(T))
|
|
266
262
|
]),
|
|
267
263
|
_: 1
|
|
268
264
|
})
|
|
@@ -270,31 +266,31 @@ const ae = /* @__PURE__ */ I(se, [["__scopeId", "data-v-2b2ae272"]]), ce = /* @_
|
|
|
270
266
|
_: 1
|
|
271
267
|
})
|
|
272
268
|
]),
|
|
273
|
-
|
|
269
|
+
i(A, {
|
|
274
270
|
placement: "bottom-start",
|
|
275
271
|
trigger: "manual",
|
|
276
272
|
size: "small",
|
|
277
273
|
x: a(S).x,
|
|
278
274
|
y: a(S).y,
|
|
279
|
-
options: a(
|
|
280
|
-
show: a(
|
|
281
|
-
"on-clickoutside": a(
|
|
282
|
-
onSelect: a(
|
|
275
|
+
options: a($),
|
|
276
|
+
show: a(l).getRightMenuShow,
|
|
277
|
+
"on-clickoutside": a(D),
|
|
278
|
+
onSelect: a(L)
|
|
283
279
|
}, null, 8, ["x", "y", "options", "show", "on-clickoutside", "onSelect"]),
|
|
284
|
-
|
|
280
|
+
i(a(R))
|
|
285
281
|
], 64);
|
|
286
282
|
};
|
|
287
283
|
}
|
|
288
284
|
});
|
|
289
|
-
const
|
|
285
|
+
const we = /* @__PURE__ */ I(Ee, [["__scopeId", "data-v-3a10c4cf"]]), De = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
290
286
|
__proto__: null,
|
|
291
|
-
default:
|
|
287
|
+
default: we
|
|
292
288
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
293
289
|
export {
|
|
294
|
-
|
|
295
|
-
|
|
290
|
+
we as D,
|
|
291
|
+
$e as c,
|
|
296
292
|
H as d,
|
|
297
|
-
|
|
293
|
+
De as i,
|
|
298
294
|
p as l,
|
|
299
|
-
|
|
295
|
+
be as u
|
|
300
296
|
};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { defineComponent as E, ref as i, computed as I, resolveComponent as n, openBlock as w, createBlock as B, withCtx as c, createVNode as o, unref as T, createTextVNode as k, withDirectives as r, createElementVNode as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { defineComponent as E, ref as i, computed as I, resolveComponent as n, openBlock as w, createBlock as B, withCtx as c, createVNode as o, unref as T, createTextVNode as k, withDirectives as r, createElementVNode as N, toDisplayString as P, vShow as _, withKeys as R, nextTick as S } from "vue";
|
|
2
|
+
import { d as b, _ as z } from "./designStore-abf0276f.js";
|
|
3
|
+
import { f as V } from "./router-409e60a0.js";
|
|
4
4
|
import "naive-ui";
|
|
5
|
-
import { u as
|
|
5
|
+
import { u as D, b as F, i as K } from "./chartEditStore-f48950d9.js";
|
|
6
6
|
import "pinia";
|
|
7
7
|
import "vue-router";
|
|
8
|
-
const
|
|
8
|
+
const M = { class: "title" }, A = /* @__PURE__ */ E({
|
|
9
9
|
__name: "index",
|
|
10
|
-
setup(
|
|
11
|
-
const { FishIcon: p } =
|
|
10
|
+
setup(J) {
|
|
11
|
+
const { FishIcon: p } = K.ionicons5, d = D(), s = i(!1), l = i(null), t = i((() => {
|
|
12
12
|
const e = V();
|
|
13
13
|
return e.length ? e[0] : "";
|
|
14
14
|
})() || ""), f = I(() => {
|
|
15
15
|
t.value = t.value.replace(/\s/g, "");
|
|
16
16
|
const e = t.value.length ? t.value : "新项目";
|
|
17
|
-
return
|
|
17
|
+
return b(`工作空间-${e}`), d.setEditCanvasConfig(F.PROJECT_NAME, e), e;
|
|
18
18
|
}), m = () => {
|
|
19
|
-
s.value = !0,
|
|
19
|
+
s.value = !0, S(() => {
|
|
20
20
|
l.value && l.value.focus();
|
|
21
21
|
});
|
|
22
22
|
}, u = () => {
|
|
@@ -43,7 +43,7 @@ const K = { class: "title" }, M = /* @__PURE__ */ E({
|
|
|
43
43
|
size: "tiny"
|
|
44
44
|
}, {
|
|
45
45
|
default: c(() => [
|
|
46
|
-
|
|
46
|
+
N("span", M, P(f.value), 1)
|
|
47
47
|
]),
|
|
48
48
|
_: 1
|
|
49
49
|
}, 512), [
|
|
@@ -64,7 +64,7 @@ const K = { class: "title" }, M = /* @__PURE__ */ E({
|
|
|
64
64
|
value: t.value,
|
|
65
65
|
"onUpdate:value": a[0] || (a[0] = (g) => t.value = g),
|
|
66
66
|
valueModifiers: { trim: !0 },
|
|
67
|
-
onKeyup:
|
|
67
|
+
onKeyup: R(u, ["enter"]),
|
|
68
68
|
onBlur: u
|
|
69
69
|
}, null, 8, ["value"]), [
|
|
70
70
|
[_, s.value]
|
|
@@ -75,7 +75,7 @@ const K = { class: "title" }, M = /* @__PURE__ */ E({
|
|
|
75
75
|
};
|
|
76
76
|
}
|
|
77
77
|
});
|
|
78
|
-
const Q = /* @__PURE__ */ z(
|
|
78
|
+
const Q = /* @__PURE__ */ z(A, [["__scopeId", "data-v-8780344c"]]);
|
|
79
79
|
export {
|
|
80
80
|
Q as default
|
|
81
81
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as w, resolveComponent as s, openBlock as a, createElementBlock as i, normalizeClass as u, createVNode as l, withCtx as o, createTextVNode as y, toDisplayString as x, createElementVNode as d, renderSlot as n, withDirectives as B, unref as C, vShow as S, createCommentVNode as m, createBlock as f } from "vue";
|
|
2
2
|
import "naive-ui";
|
|
3
|
-
import {
|
|
3
|
+
import { _ as $ } from "./designStore-abf0276f.js";
|
|
4
4
|
import "vue-router";
|
|
5
|
-
import { i as N } from "./chartEditStore-
|
|
5
|
+
import { i as N } from "./chartEditStore-f48950d9.js";
|
|
6
6
|
const T = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "top go-mt-0 go-flex-no-wrap"
|