@xtctwins/tctwins-bimx-engine 0.2.13 → 0.2.15
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/README.md +5 -5
- package/dist/{AnnotationTool-h6kLP4-J.mjs → AnnotationTool-C7K9wUXu.mjs} +32 -32
- package/dist/BIMX_Viewer_Lib.es.js +2 -2
- package/dist/BIMX_Viewer_Lib.umd.js +153 -151
- package/dist/{CommentTool-fEkFa5a4.mjs → CommentTool-Q03T0eRh.mjs} +44 -44
- package/dist/{HiddenTool-CHEX-LN8.mjs → HiddenTool-DPhsLeVn.mjs} +12 -12
- package/dist/{InspectorTool-Dp0nln8M.mjs → InspectorTool-xpaagssU.mjs} +25 -25
- package/dist/{MeasureTool-CIPDVGJ2.mjs → MeasureTool-CC7ByKQe.mjs} +36 -36
- package/dist/{NavigateTool-BTg74q73.mjs → NavigateTool-rX2EtTJm.mjs} +1 -1
- package/dist/{RoamTool-b-iVvgOg.mjs → RoamTool-CV51Zfk8.mjs} +19 -19
- package/dist/ScreenShotTool-CaJnfAGU.mjs +357 -0
- package/dist/{SectionTool-BmaWUeLw.mjs → SectionTool-DCBKDTuD.mjs} +55 -55
- package/dist/{SettingTool-WjB-y_2N.mjs → SettingTool-ZeE9Wi9d.mjs} +136 -136
- package/dist/{StructureTree-fQGdtbdW.mjs → StructureTree-C0ciwt0x.mjs} +241 -232
- package/dist/{alert-Byx6QRux.mjs → alert-BoGlpl1a.mjs} +3 -3
- package/dist/el-input-number-DC387stR.mjs +858 -0
- package/dist/{index-DUCjdjwm.mjs → index-Dbz1Z0EN.mjs} +47804 -45619
- package/dist/index.html +17 -17
- package/dist/{panel.vue_vue_type_style_index_0_lang-DN1hWNk5.mjs → panel.vue_vue_type_style_index_0_lang-0alZxKkz.mjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/{tallPanel-CmihOwoA.mjs → tallPanel-kCOLfaS2.mjs} +16 -16
- package/package.json +66 -65
- package/types/components/BCFComponents/BCFAddPanel.vue.d.ts +38 -10
- package/types/components/BCFComponents/BCFDetailPanel.vue.d.ts +37 -9
- package/types/components/BCFComponents/BCFDisplayList.vue.d.ts +5 -7
- package/types/components/BCFComponents/BCFFilter.vue.d.ts +5 -7
- package/types/components/BCFComponents/BCFTool.vue.d.ts +4 -7
- package/types/components/BCFComponents/addObjectOrAnno.vue.d.ts +5 -7
- package/types/components/BCFComponents/checkObjectPanel.vue.d.ts +5 -6
- package/types/components/BCFComponents/commentInput.vue.d.ts +38 -9
- package/types/components/BCFComponents/commentsView.vue.d.ts +38 -7
- package/types/components/BCFComponents/dialogPanel.vue.d.ts +5 -8
- package/types/components/BCFComponents/imageView.vue.d.ts +5 -7
- package/types/components/BCFComponents/imageZoomIn.vue.d.ts +5 -6
- package/types/components/BimViewerComponents/AnnotationTool.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/CommentTool.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/HiddenTool.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/NavigateTool.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/RoamTool.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/SettingTool.vue.d.ts +4 -6
- package/types/components/BimViewerComponents/StructureTree.vue.d.ts +3042 -1
- package/types/components/BimViewerComponents/Toolbar.vue.d.ts +1 -1
- package/types/components/MobileBCFComponents/MobileBCFAdd.vue.d.ts +56 -0
- package/types/components/MobileBCFComponents/MobileBCFDetail.vue.d.ts +55 -0
- package/types/components/MobileBCFComponents/MobileBCFDisplayList.vue.d.ts +278 -0
- package/types/components/MobileBCFComponents/MobileBCFFilter.vue.d.ts +255 -0
- package/types/components/MobileBCFComponents/MobileBCFTool.vue.d.ts +17 -0
- package/types/components/MobileBCFComponents/MobileCommentInput.vue.d.ts +54 -0
- package/types/components/MobileBCFComponents/MobileCommentsView.vue.d.ts +17 -0
- package/types/components/MobileBCFComponents/selectPanel.vue.d.ts +12 -0
- package/types/components/bimxViewer.vue.d.ts +7 -12
- package/types/components/utilsComponents/alert.vue.d.ts +1 -1
- package/types/components/utilsComponents/closeButton.vue.d.ts +1 -1
- package/types/components/utilsComponents/closeButton_dark.vue.d.ts +32 -0
- package/types/components/utilsComponents/emptyPage.vue.d.ts +1 -1
- package/types/components/utilsComponents/loading.vue.d.ts +1 -1
- package/types/components/utilsComponents/panel.vue.d.ts +8 -2
- package/types/components/utilsComponents/rectangleButton.vue.d.ts +3 -1
- package/types/components/utilsComponents/tallPanel.vue.d.ts +13 -3
- package/types/components/utilsComponents/tallPanel_noPos.vue.d.ts +13 -3
- package/types/pages/viewerEntry.vue.d.ts +4 -51
- package/types/services/request/api.d.ts +3 -0
- package/types/services/request/index.d.ts +14 -0
- package/types/services/request/types.d.ts +12 -0
- package/types/store/bcfReflect.d.ts +2 -0
- package/types/tests/bcf.d.ts +8 -0
- package/dist/ScreenShotTool-Cei3hiGn.mjs +0 -357
- package/dist/el-input-number-6wp_0Clc.mjs +0 -818
- package/types/components/BCFComponents/BCFCommentNew.vue.d.ts +0 -22
- package/types/components/BimViewerComponents/emptyPage.vue.d.ts +0 -8
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as b, onMounted as w, ref as p, openBlock as i, createElementBlock as n, createElementVNode as s, Fragment as g, renderList as f, unref as a, normalizeClass as h, toDisplayString as N } from "vue";
|
|
2
2
|
import { N as S } from "./const-B1FlFgEN.mjs";
|
|
3
|
-
import {
|
|
3
|
+
import { q as T, O as k } from "./index-Dbz1Z0EN.mjs";
|
|
4
4
|
const I = { class: "best-view-box" }, V = { class: "best-view-list" }, x = ["onClick"], y = { class: "best-view-icon" }, A = ["src"], B = { class: "best-view-name" }, D = /* @__PURE__ */ b({
|
|
5
5
|
__name: "NavigateTool",
|
|
6
6
|
props: ["componentId"],
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as A, ref as u, onMounted as H, onBeforeUnmount as j, watch as q, openBlock as g, createElementBlock as p, unref as a, createElementVNode as o, createCommentVNode as B, toDisplayString as
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent as A, ref as u, onMounted as H, onBeforeUnmount as j, watch as q, openBlock as g, createElementBlock as p, unref as a, createElementVNode as o, createCommentVNode as B, toDisplayString as k } from "vue";
|
|
2
|
+
import { q as z, t as m, D as C, v as b, O as l, F as S, A as J } from "./index-Dbz1Z0EN.mjs";
|
|
3
3
|
const K = { class: "roam_container_wrapper" }, Q = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "roam_container"
|
|
@@ -24,19 +24,19 @@ const K = { class: "roam_container_wrapper" }, Q = {
|
|
|
24
24
|
}, Ie = ["src"], Le = { class: "center-center" }, ye = ["src"], Re = {
|
|
25
25
|
id: "roamMoveRight",
|
|
26
26
|
class: "center-right"
|
|
27
|
-
}, Te = ["src"],
|
|
27
|
+
}, Te = ["src"], De = {
|
|
28
28
|
id: "roamMoveDown",
|
|
29
29
|
class: "roam-right-down"
|
|
30
|
-
},
|
|
30
|
+
}, ke = ["src"], Ce = /* @__PURE__ */ A({
|
|
31
31
|
__name: "RoamTool",
|
|
32
32
|
props: ["componentId"],
|
|
33
33
|
emits: ["closePanel", "emitHandler"],
|
|
34
|
-
setup(V, { emit:
|
|
35
|
-
const I = z(), h = u("speed-up"), M = u("speed-down"), f = u("1"), _ = u(!1), c = u(!0), L = V, y =
|
|
34
|
+
setup(V, { emit: F }) {
|
|
35
|
+
const I = z(), h = u("speed-up"), M = u("speed-down"), f = u("1"), _ = u(!1), c = u(!0), L = V, y = F, r = u(!1), E = (t) => {
|
|
36
36
|
y("emitHandler", t);
|
|
37
37
|
}, s = u(m("isMobile"));
|
|
38
38
|
H(() => {
|
|
39
|
-
(m("isMobile") ||
|
|
39
|
+
(m("isMobile") || C.showRoam === !1) && (c.value = !1), setTimeout(() => {
|
|
40
40
|
x(), $(), N(), O(), X(), G();
|
|
41
41
|
}, 1e3), I.setReadyById(L.componentId);
|
|
42
42
|
});
|
|
@@ -55,7 +55,7 @@ const K = { class: "roam_container_wrapper" }, Q = {
|
|
|
55
55
|
t ? window.bimViewer.firstPersonMode.speedUp() : window.bimViewer.firstPersonMode.speedDown();
|
|
56
56
|
};
|
|
57
57
|
S.BIMX_CONFIGS.RoamTool || (b.on("BIMX_CONFIGS", () => {
|
|
58
|
-
|
|
58
|
+
C.showRoam == !1 && (c.value = !1);
|
|
59
59
|
}), S.BIMX_CONFIGS.RoamTool = !0), q(
|
|
60
60
|
() => I.isToolActive(L.componentId),
|
|
61
61
|
(t) => {
|
|
@@ -64,7 +64,7 @@ const K = { class: "roam_container_wrapper" }, Q = {
|
|
|
64
64
|
);
|
|
65
65
|
const T = (t) => {
|
|
66
66
|
m("isMobile") ? r.value = t : (m("hideTool") || b.emit("hideToolbar", t), t ? c.value && (_.value = !0) : _.value = !1);
|
|
67
|
-
},
|
|
67
|
+
}, U = () => {
|
|
68
68
|
c.value = !1, E({
|
|
69
69
|
isTool: !0,
|
|
70
70
|
event_target: "RoamTool",
|
|
@@ -72,8 +72,8 @@ const K = { class: "roam_container_wrapper" }, Q = {
|
|
|
72
72
|
content: {
|
|
73
73
|
msg: "不要再显示漫游教程"
|
|
74
74
|
}
|
|
75
|
-
}),
|
|
76
|
-
},
|
|
75
|
+
}), D();
|
|
76
|
+
}, D = () => {
|
|
77
77
|
_.value = !1;
|
|
78
78
|
}, P = () => {
|
|
79
79
|
y("closePanel");
|
|
@@ -161,11 +161,11 @@ const K = { class: "roam_container_wrapper" }, Q = {
|
|
|
161
161
|
o("div", { class: "container_footer" }, [
|
|
162
162
|
o("div", {
|
|
163
163
|
class: "btn1",
|
|
164
|
-
onClick:
|
|
164
|
+
onClick: U
|
|
165
165
|
}, " 不要再提醒我 "),
|
|
166
166
|
o("div", {
|
|
167
167
|
class: "btn2",
|
|
168
|
-
onClick:
|
|
168
|
+
onClick: D
|
|
169
169
|
}, " 好的,我知道了 ")
|
|
170
170
|
])
|
|
171
171
|
])) : B("", !0),
|
|
@@ -183,7 +183,7 @@ const K = { class: "roam_container_wrapper" }, Q = {
|
|
|
183
183
|
src: a(l) + "/bim-viewer/roam-bar/" + M.value + ".png"
|
|
184
184
|
}, null, 8, oe)
|
|
185
185
|
], 32),
|
|
186
|
-
o("div", te,
|
|
186
|
+
o("div", te, k(f.value) + "X", 1),
|
|
187
187
|
o("div", {
|
|
188
188
|
class: "up_down_button",
|
|
189
189
|
onClick: e[3] || (e[3] = (n) => w(!0)),
|
|
@@ -233,7 +233,7 @@ const K = { class: "roam_container_wrapper" }, Q = {
|
|
|
233
233
|
}, null, 8, _e)
|
|
234
234
|
]),
|
|
235
235
|
o("div", we, [
|
|
236
|
-
o("span", null,
|
|
236
|
+
o("span", null, k(f.value) + "X", 1)
|
|
237
237
|
]),
|
|
238
238
|
o("div", ge, [
|
|
239
239
|
o("img", {
|
|
@@ -271,17 +271,17 @@ const K = { class: "roam_container_wrapper" }, Q = {
|
|
|
271
271
|
}, null, 8, Te)
|
|
272
272
|
])
|
|
273
273
|
]),
|
|
274
|
-
o("div",
|
|
274
|
+
o("div", De, [
|
|
275
275
|
o("img", {
|
|
276
276
|
src: a(l) + "/bim-viewer/roam-bar/bottom.svg",
|
|
277
277
|
alt: ""
|
|
278
|
-
}, null, 8,
|
|
278
|
+
}, null, 8, ke)
|
|
279
279
|
])
|
|
280
280
|
])
|
|
281
281
|
])) : B("", !0)
|
|
282
282
|
]));
|
|
283
283
|
}
|
|
284
|
-
}),
|
|
284
|
+
}), Fe = /* @__PURE__ */ J(Ce, [["__scopeId", "data-v-ef4cfe46"]]);
|
|
285
285
|
export {
|
|
286
|
-
|
|
286
|
+
Fe as default
|
|
287
287
|
};
|
|
@@ -0,0 +1,357 @@
|
|
|
1
|
+
import { _ as me } from "./panel.vue_vue_type_style_index_0_lang-0alZxKkz.mjs";
|
|
2
|
+
import { J as U, U as $, d as M, K as j, i as O, L as pe, M as X, f as W, N as fe, P as ve, Q as be, u as x, _ as L, R as _e, S as he, W as ge, X as ye, k as Se, w as Ve, Y, q as Re, x as ke } from "./index-Dbz1Z0EN.mjs";
|
|
3
|
+
import { ref as R, inject as Ee, computed as g, defineComponent as E, openBlock as k, createElementBlock as B, normalizeClass as y, unref as e, createElementVNode as v, withDirectives as q, isRef as H, withModifiers as w, vModelRadio as J, renderSlot as P, createTextVNode as N, toDisplayString as T, nextTick as Q, normalizeStyle as Ie, onMounted as Z, provide as Be, reactive as Ce, toRefs as we, watch as ee, createBlock as Ne, withCtx as z, createVNode as C, Fragment as Ue, renderList as ze, createCommentVNode as Ge } from "vue";
|
|
4
|
+
import { a as G } from "./const-B1FlFgEN.mjs";
|
|
5
|
+
const oe = U({
|
|
6
|
+
modelValue: {
|
|
7
|
+
type: [String, Number, Boolean],
|
|
8
|
+
default: void 0
|
|
9
|
+
},
|
|
10
|
+
size: X,
|
|
11
|
+
disabled: Boolean,
|
|
12
|
+
label: {
|
|
13
|
+
type: [String, Number, Boolean],
|
|
14
|
+
default: void 0
|
|
15
|
+
},
|
|
16
|
+
value: {
|
|
17
|
+
type: [String, Number, Boolean],
|
|
18
|
+
default: void 0
|
|
19
|
+
},
|
|
20
|
+
name: {
|
|
21
|
+
type: String,
|
|
22
|
+
default: void 0
|
|
23
|
+
}
|
|
24
|
+
}), $e = U({
|
|
25
|
+
...oe,
|
|
26
|
+
border: Boolean
|
|
27
|
+
}), ae = {
|
|
28
|
+
[$]: (a) => M(a) || j(a) || O(a),
|
|
29
|
+
[pe]: (a) => M(a) || j(a) || O(a)
|
|
30
|
+
}, ne = Symbol("radioGroupKey"), le = (a, b) => {
|
|
31
|
+
const t = R(), o = Ee(ne, void 0), r = g(() => !!o), c = g(() => W(a.value) ? a.label : a.value), d = g({
|
|
32
|
+
get() {
|
|
33
|
+
return r.value ? o.modelValue : a.modelValue;
|
|
34
|
+
},
|
|
35
|
+
set(l) {
|
|
36
|
+
r.value ? o.changeEvent(l) : b && b($, l), t.value.checked = a.modelValue === c.value;
|
|
37
|
+
}
|
|
38
|
+
}), p = fe(g(() => o == null ? void 0 : o.size)), n = ve(g(() => o == null ? void 0 : o.disabled)), u = R(!1), f = g(() => n.value || r.value && d.value !== c.value ? -1 : 0);
|
|
39
|
+
return be({
|
|
40
|
+
from: "label act as value",
|
|
41
|
+
replacement: "value",
|
|
42
|
+
version: "3.0.0",
|
|
43
|
+
scope: "el-radio",
|
|
44
|
+
ref: "https://element-plus.org/en-US/component/radio.html"
|
|
45
|
+
}, g(() => r.value && W(a.value))), {
|
|
46
|
+
radioRef: t,
|
|
47
|
+
isGroup: r,
|
|
48
|
+
radioGroup: o,
|
|
49
|
+
focus: u,
|
|
50
|
+
size: p,
|
|
51
|
+
disabled: n,
|
|
52
|
+
tabIndex: f,
|
|
53
|
+
modelValue: d,
|
|
54
|
+
actualValue: c
|
|
55
|
+
};
|
|
56
|
+
}, xe = E({
|
|
57
|
+
name: "ElRadio"
|
|
58
|
+
}), Le = /* @__PURE__ */ E({
|
|
59
|
+
...xe,
|
|
60
|
+
props: $e,
|
|
61
|
+
emits: ae,
|
|
62
|
+
setup(a, { emit: b }) {
|
|
63
|
+
const t = a, o = x("radio"), { radioRef: r, radioGroup: c, focus: d, size: p, disabled: n, modelValue: u, actualValue: f } = le(t, b);
|
|
64
|
+
function l() {
|
|
65
|
+
Q(() => b("change", u.value));
|
|
66
|
+
}
|
|
67
|
+
return (_, i) => {
|
|
68
|
+
var s;
|
|
69
|
+
return k(), B("label", {
|
|
70
|
+
class: y([
|
|
71
|
+
e(o).b(),
|
|
72
|
+
e(o).is("disabled", e(n)),
|
|
73
|
+
e(o).is("focus", e(d)),
|
|
74
|
+
e(o).is("bordered", _.border),
|
|
75
|
+
e(o).is("checked", e(u) === e(f)),
|
|
76
|
+
e(o).m(e(p))
|
|
77
|
+
])
|
|
78
|
+
}, [
|
|
79
|
+
v("span", {
|
|
80
|
+
class: y([
|
|
81
|
+
e(o).e("input"),
|
|
82
|
+
e(o).is("disabled", e(n)),
|
|
83
|
+
e(o).is("checked", e(u) === e(f))
|
|
84
|
+
])
|
|
85
|
+
}, [
|
|
86
|
+
q(v("input", {
|
|
87
|
+
ref_key: "radioRef",
|
|
88
|
+
ref: r,
|
|
89
|
+
"onUpdate:modelValue": (S) => H(u) ? u.value = S : null,
|
|
90
|
+
class: y(e(o).e("original")),
|
|
91
|
+
value: e(f),
|
|
92
|
+
name: _.name || ((s = e(c)) == null ? void 0 : s.name),
|
|
93
|
+
disabled: e(n),
|
|
94
|
+
checked: e(u) === e(f),
|
|
95
|
+
type: "radio",
|
|
96
|
+
onFocus: (S) => d.value = !0,
|
|
97
|
+
onBlur: (S) => d.value = !1,
|
|
98
|
+
onChange: l,
|
|
99
|
+
onClick: w(() => {
|
|
100
|
+
}, ["stop"])
|
|
101
|
+
}, null, 42, ["onUpdate:modelValue", "value", "name", "disabled", "checked", "onFocus", "onBlur", "onClick"]), [
|
|
102
|
+
[J, e(u)]
|
|
103
|
+
]),
|
|
104
|
+
v("span", {
|
|
105
|
+
class: y(e(o).e("inner"))
|
|
106
|
+
}, null, 2)
|
|
107
|
+
], 2),
|
|
108
|
+
v("span", {
|
|
109
|
+
class: y(e(o).e("label")),
|
|
110
|
+
onKeydown: w(() => {
|
|
111
|
+
}, ["stop"])
|
|
112
|
+
}, [
|
|
113
|
+
P(_.$slots, "default", {}, () => [
|
|
114
|
+
N(T(_.label), 1)
|
|
115
|
+
])
|
|
116
|
+
], 42, ["onKeydown"])
|
|
117
|
+
], 2);
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
var Pe = /* @__PURE__ */ L(Le, [["__file", "radio.vue"]]);
|
|
122
|
+
const Te = U({
|
|
123
|
+
...oe
|
|
124
|
+
}), Fe = E({
|
|
125
|
+
name: "ElRadioButton"
|
|
126
|
+
}), Ae = /* @__PURE__ */ E({
|
|
127
|
+
...Fe,
|
|
128
|
+
props: Te,
|
|
129
|
+
setup(a) {
|
|
130
|
+
const b = a, t = x("radio"), { radioRef: o, focus: r, size: c, disabled: d, modelValue: p, radioGroup: n, actualValue: u } = le(b), f = g(() => ({
|
|
131
|
+
backgroundColor: (n == null ? void 0 : n.fill) || "",
|
|
132
|
+
borderColor: (n == null ? void 0 : n.fill) || "",
|
|
133
|
+
boxShadow: n != null && n.fill ? `-1px 0 0 0 ${n.fill}` : "",
|
|
134
|
+
color: (n == null ? void 0 : n.textColor) || ""
|
|
135
|
+
}));
|
|
136
|
+
return (l, _) => {
|
|
137
|
+
var i;
|
|
138
|
+
return k(), B("label", {
|
|
139
|
+
class: y([
|
|
140
|
+
e(t).b("button"),
|
|
141
|
+
e(t).is("active", e(p) === e(u)),
|
|
142
|
+
e(t).is("disabled", e(d)),
|
|
143
|
+
e(t).is("focus", e(r)),
|
|
144
|
+
e(t).bm("button", e(c))
|
|
145
|
+
])
|
|
146
|
+
}, [
|
|
147
|
+
q(v("input", {
|
|
148
|
+
ref_key: "radioRef",
|
|
149
|
+
ref: o,
|
|
150
|
+
"onUpdate:modelValue": (s) => H(p) ? p.value = s : null,
|
|
151
|
+
class: y(e(t).be("button", "original-radio")),
|
|
152
|
+
value: e(u),
|
|
153
|
+
type: "radio",
|
|
154
|
+
name: l.name || ((i = e(n)) == null ? void 0 : i.name),
|
|
155
|
+
disabled: e(d),
|
|
156
|
+
onFocus: (s) => r.value = !0,
|
|
157
|
+
onBlur: (s) => r.value = !1,
|
|
158
|
+
onClick: w(() => {
|
|
159
|
+
}, ["stop"])
|
|
160
|
+
}, null, 42, ["onUpdate:modelValue", "value", "name", "disabled", "onFocus", "onBlur", "onClick"]), [
|
|
161
|
+
[J, e(p)]
|
|
162
|
+
]),
|
|
163
|
+
v("span", {
|
|
164
|
+
class: y(e(t).be("button", "inner")),
|
|
165
|
+
style: Ie(e(p) === e(u) ? e(f) : {}),
|
|
166
|
+
onKeydown: w(() => {
|
|
167
|
+
}, ["stop"])
|
|
168
|
+
}, [
|
|
169
|
+
P(l.$slots, "default", {}, () => [
|
|
170
|
+
N(T(l.label), 1)
|
|
171
|
+
])
|
|
172
|
+
], 46, ["onKeydown"])
|
|
173
|
+
], 2);
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
});
|
|
177
|
+
var te = /* @__PURE__ */ L(Ae, [["__file", "radio-button.vue"]]);
|
|
178
|
+
const De = U({
|
|
179
|
+
id: {
|
|
180
|
+
type: String,
|
|
181
|
+
default: void 0
|
|
182
|
+
},
|
|
183
|
+
size: X,
|
|
184
|
+
disabled: Boolean,
|
|
185
|
+
modelValue: {
|
|
186
|
+
type: [String, Number, Boolean],
|
|
187
|
+
default: void 0
|
|
188
|
+
},
|
|
189
|
+
fill: {
|
|
190
|
+
type: String,
|
|
191
|
+
default: ""
|
|
192
|
+
},
|
|
193
|
+
textColor: {
|
|
194
|
+
type: String,
|
|
195
|
+
default: ""
|
|
196
|
+
},
|
|
197
|
+
name: {
|
|
198
|
+
type: String,
|
|
199
|
+
default: void 0
|
|
200
|
+
},
|
|
201
|
+
validateEvent: {
|
|
202
|
+
type: Boolean,
|
|
203
|
+
default: !0
|
|
204
|
+
},
|
|
205
|
+
..._e(["ariaLabel"])
|
|
206
|
+
}), Ke = ae, Me = E({
|
|
207
|
+
name: "ElRadioGroup"
|
|
208
|
+
}), je = /* @__PURE__ */ E({
|
|
209
|
+
...Me,
|
|
210
|
+
props: De,
|
|
211
|
+
emits: Ke,
|
|
212
|
+
setup(a, { emit: b }) {
|
|
213
|
+
const t = a, o = x("radio"), r = he(), c = R(), { formItem: d } = ge(), { inputId: p, isLabeledByFormItem: n } = ye(t, {
|
|
214
|
+
formItemContext: d
|
|
215
|
+
}), u = (l) => {
|
|
216
|
+
b($, l), Q(() => b("change", l));
|
|
217
|
+
};
|
|
218
|
+
Z(() => {
|
|
219
|
+
const l = c.value.querySelectorAll("[type=radio]"), _ = l[0];
|
|
220
|
+
!Array.from(l).some((i) => i.checked) && _ && (_.tabIndex = 0);
|
|
221
|
+
});
|
|
222
|
+
const f = g(() => t.name || r.value);
|
|
223
|
+
return Be(ne, Ce({
|
|
224
|
+
...we(t),
|
|
225
|
+
changeEvent: u,
|
|
226
|
+
name: f
|
|
227
|
+
})), ee(() => t.modelValue, () => {
|
|
228
|
+
t.validateEvent && (d == null || d.validate("change").catch((l) => Se(l)));
|
|
229
|
+
}), (l, _) => (k(), B("div", {
|
|
230
|
+
id: e(p),
|
|
231
|
+
ref_key: "radioGroupRef",
|
|
232
|
+
ref: c,
|
|
233
|
+
class: y(e(o).b("group")),
|
|
234
|
+
role: "radiogroup",
|
|
235
|
+
"aria-label": e(n) ? void 0 : l.ariaLabel || "radio-group",
|
|
236
|
+
"aria-labelledby": e(n) ? e(d).labelId : void 0
|
|
237
|
+
}, [
|
|
238
|
+
P(l.$slots, "default")
|
|
239
|
+
], 10, ["id", "aria-label", "aria-labelledby"]));
|
|
240
|
+
}
|
|
241
|
+
});
|
|
242
|
+
var se = /* @__PURE__ */ L(je, [["__file", "radio-group.vue"]]);
|
|
243
|
+
const Oe = Ve(Pe, {
|
|
244
|
+
RadioButton: te,
|
|
245
|
+
RadioGroup: se
|
|
246
|
+
}), We = Y(se);
|
|
247
|
+
Y(te);
|
|
248
|
+
const Xe = { class: "wrapper" }, Ye = { class: "screen_thumbnail" }, qe = ["src"], He = { class: "validity-period" }, Je = {
|
|
249
|
+
key: 0,
|
|
250
|
+
class: "custom"
|
|
251
|
+
}, ao = /* @__PURE__ */ E({
|
|
252
|
+
__name: "ScreenShotTool",
|
|
253
|
+
props: ["componentId"],
|
|
254
|
+
emits: ["closePanel"],
|
|
255
|
+
setup(a, { emit: b }) {
|
|
256
|
+
const t = Re(), o = a, r = R(0), c = R(), d = R(), p = R(), n = b;
|
|
257
|
+
Z(() => {
|
|
258
|
+
c.value = 1280, d.value = 720, t.setReadyById(o.componentId);
|
|
259
|
+
}), ee(
|
|
260
|
+
() => t.isToolActive(o.componentId),
|
|
261
|
+
(i) => {
|
|
262
|
+
i && l(220, 124, !1);
|
|
263
|
+
}
|
|
264
|
+
);
|
|
265
|
+
const u = (i) => {
|
|
266
|
+
r.value = i, i !== 3 && (c.value = G[i].width, d.value = G[i].height);
|
|
267
|
+
}, f = () => {
|
|
268
|
+
n("closePanel");
|
|
269
|
+
}, l = (i, s, S) => {
|
|
270
|
+
const h = document.getElementById("myCanvas"), I = document.createElement("a");
|
|
271
|
+
I.download = "screenshot.png";
|
|
272
|
+
const V = document.createElement("canvas"), m = V.getContext("2d");
|
|
273
|
+
if (h && m) {
|
|
274
|
+
V.width = i, V.height = s;
|
|
275
|
+
const de = i / h.width, ie = s / h.height, F = Math.max(de, ie), A = h.width * F, D = h.height * F, re = (i - A) / 2, ue = (s - D) / 2;
|
|
276
|
+
m.clearRect(0, 0, i, s), m.fillStyle = "transparent", m.fillRect(0, 0, i, s), m.drawImage(h, 0, 0, h.width, h.height, re, ue, A, D), S ? V.toBlob(function(ce) {
|
|
277
|
+
const K = URL.createObjectURL(ce);
|
|
278
|
+
I.href = K, I.click(), URL.revokeObjectURL(K);
|
|
279
|
+
}) : p.value = V.toDataURL("image/png");
|
|
280
|
+
}
|
|
281
|
+
}, _ = () => {
|
|
282
|
+
l(c.value, d.value, !0);
|
|
283
|
+
};
|
|
284
|
+
return (i, s) => {
|
|
285
|
+
const S = Oe, h = We, I = ke, V = me;
|
|
286
|
+
return k(), Ne(V, {
|
|
287
|
+
class: "screen_container",
|
|
288
|
+
width: 240,
|
|
289
|
+
panelTitle: "截图",
|
|
290
|
+
"click-handle": f
|
|
291
|
+
}, {
|
|
292
|
+
default: z(() => [
|
|
293
|
+
v("div", Xe, [
|
|
294
|
+
v("div", Ye, [
|
|
295
|
+
v("img", {
|
|
296
|
+
class: "thumbnail_img",
|
|
297
|
+
src: p.value,
|
|
298
|
+
alt: ""
|
|
299
|
+
}, null, 8, qe)
|
|
300
|
+
]),
|
|
301
|
+
C(h, {
|
|
302
|
+
modelValue: r.value,
|
|
303
|
+
"onUpdate:modelValue": s[0] || (s[0] = (m) => r.value = m),
|
|
304
|
+
onChange: u
|
|
305
|
+
}, {
|
|
306
|
+
default: z(() => [
|
|
307
|
+
v("div", He, [
|
|
308
|
+
(k(!0), B(Ue, null, ze(e(G), (m) => (k(), B("div", {
|
|
309
|
+
key: m.id,
|
|
310
|
+
class: "period_box"
|
|
311
|
+
}, [
|
|
312
|
+
C(S, {
|
|
313
|
+
label: m.id
|
|
314
|
+
}, {
|
|
315
|
+
default: z(() => [
|
|
316
|
+
N(T(m.name), 1)
|
|
317
|
+
]),
|
|
318
|
+
_: 2
|
|
319
|
+
}, 1032, ["label"])
|
|
320
|
+
]))), 128))
|
|
321
|
+
])
|
|
322
|
+
]),
|
|
323
|
+
_: 1
|
|
324
|
+
}, 8, ["modelValue"]),
|
|
325
|
+
r.value === 3 ? (k(), B("div", Je, [
|
|
326
|
+
C(I, {
|
|
327
|
+
modelValue: c.value,
|
|
328
|
+
"onUpdate:modelValue": s[1] || (s[1] = (m) => c.value = m),
|
|
329
|
+
placeholder: "请输入长度"
|
|
330
|
+
}, null, 8, ["modelValue"]),
|
|
331
|
+
s[3] || (s[3] = N(" x ")),
|
|
332
|
+
C(I, {
|
|
333
|
+
modelValue: d.value,
|
|
334
|
+
"onUpdate:modelValue": s[2] || (s[2] = (m) => d.value = m),
|
|
335
|
+
placeholder: "请输入宽度"
|
|
336
|
+
}, null, 8, ["modelValue"])
|
|
337
|
+
])) : Ge("", !0),
|
|
338
|
+
v("div", { class: "footer" }, [
|
|
339
|
+
v("div", {
|
|
340
|
+
class: "btn1",
|
|
341
|
+
onClick: f
|
|
342
|
+
}, " 取消 "),
|
|
343
|
+
v("div", {
|
|
344
|
+
class: "btn2",
|
|
345
|
+
onClick: _
|
|
346
|
+
}, " 保存 ")
|
|
347
|
+
])
|
|
348
|
+
])
|
|
349
|
+
]),
|
|
350
|
+
_: 1
|
|
351
|
+
});
|
|
352
|
+
};
|
|
353
|
+
}
|
|
354
|
+
});
|
|
355
|
+
export {
|
|
356
|
+
ao as default
|
|
357
|
+
};
|