@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,7 +1,7 @@
|
|
|
1
1
|
import { InstructionContent } from '../utils/eventBus';
|
|
2
2
|
import { NavCubePos, TallPanelPos, ThemeColor, Offset, ToolPos } from '../store/initConfigs';
|
|
3
3
|
import { BcfContent } from '../store/bcfReflect';
|
|
4
|
-
|
|
4
|
+
type __VLS_Props = {
|
|
5
5
|
instruction?: InstructionContent | undefined;
|
|
6
6
|
fileId?: string;
|
|
7
7
|
fileName?: string;
|
|
@@ -49,57 +49,10 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
49
49
|
bcf?: boolean;
|
|
50
50
|
bcfb?: boolean;
|
|
51
51
|
bcfContent?: BcfContent;
|
|
52
|
-
}
|
|
52
|
+
};
|
|
53
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
53
54
|
emitHandler: (...args: any[]) => void;
|
|
54
|
-
}, string, import('vue').PublicProps, Readonly<{
|
|
55
|
-
instruction?: InstructionContent | undefined;
|
|
56
|
-
fileId?: string;
|
|
57
|
-
fileName?: string;
|
|
58
|
-
filePath?: string;
|
|
59
|
-
modelBuffer?: ArrayBuffer;
|
|
60
|
-
metaBuffer?: ArrayBuffer;
|
|
61
|
-
modelType?: string;
|
|
62
|
-
themeColor?: ThemeColor;
|
|
63
|
-
topHeight?: number;
|
|
64
|
-
bottomHeight?: number;
|
|
65
|
-
leftWidth?: number;
|
|
66
|
-
rightWidth?: number;
|
|
67
|
-
treePos?: TallPanelPos;
|
|
68
|
-
inspectorPos?: TallPanelPos;
|
|
69
|
-
commentPos?: ToolPos;
|
|
70
|
-
annotationPos?: ToolPos;
|
|
71
|
-
roamPos?: ToolPos;
|
|
72
|
-
navCubePos?: NavCubePos;
|
|
73
|
-
navCubeSize?: number;
|
|
74
|
-
skyboxImg?: HTMLImageElement;
|
|
75
|
-
commentOffset?: Offset;
|
|
76
|
-
measureOffset?: Offset;
|
|
77
|
-
hideTool?: boolean;
|
|
78
|
-
isPc?: boolean;
|
|
79
|
-
backButton?: boolean;
|
|
80
|
-
backgroundColor?: string;
|
|
81
|
-
phone?: boolean;
|
|
82
|
-
tree?: boolean;
|
|
83
|
-
reseta?: boolean;
|
|
84
|
-
roam?: boolean;
|
|
85
|
-
measure?: boolean;
|
|
86
|
-
section?: boolean;
|
|
87
|
-
comment?: boolean;
|
|
88
|
-
anno?: boolean;
|
|
89
|
-
screenshot?: boolean;
|
|
90
|
-
inspector?: boolean;
|
|
91
|
-
setting?: boolean;
|
|
92
|
-
fullscreena?: boolean;
|
|
93
|
-
resetb?: boolean;
|
|
94
|
-
navigate?: boolean;
|
|
95
|
-
fullscreenb?: boolean;
|
|
96
|
-
shareb?: boolean;
|
|
97
|
-
cooperateb?: boolean;
|
|
98
|
-
hidden?: boolean;
|
|
99
|
-
bcf?: boolean;
|
|
100
|
-
bcfb?: boolean;
|
|
101
|
-
bcfContent?: BcfContent;
|
|
102
|
-
}> & Readonly<{
|
|
55
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
103
56
|
onEmitHandler?: ((...args: any[]) => any) | undefined;
|
|
104
57
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
105
58
|
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AxiosInstance } from 'axios';
|
|
2
|
+
import { MyRequestConfig, MyRequestIntercepts } from './types';
|
|
3
|
+
declare class MyRequest {
|
|
4
|
+
instance: AxiosInstance;
|
|
5
|
+
intercepts?: MyRequestIntercepts;
|
|
6
|
+
constructor(config: any);
|
|
7
|
+
request<T>(config: MyRequestConfig<T>): Promise<T>;
|
|
8
|
+
get<T = any>(config: MyRequestConfig<T>): Promise<T>;
|
|
9
|
+
post<T = any>(config: MyRequestConfig<T>): Promise<T>;
|
|
10
|
+
put<T = any>(config: MyRequestConfig<T>): Promise<T>;
|
|
11
|
+
delete<T = any>(config: MyRequestConfig<T>): Promise<T>;
|
|
12
|
+
patch<T = any>(config: MyRequestConfig<T>): Promise<T>;
|
|
13
|
+
}
|
|
14
|
+
export default MyRequest;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
2
|
+
interface MyRequestIntercepts<T = AxiosResponse> {
|
|
3
|
+
requestHook?: (config: AxiosRequestConfig) => AxiosRequestConfig;
|
|
4
|
+
requestHookCatch?: (error: any) => any;
|
|
5
|
+
responseHook?: (config: T) => T;
|
|
6
|
+
responseHookCatch?: (error: any) => any;
|
|
7
|
+
}
|
|
8
|
+
interface MyRequestConfig<T = AxiosResponse> extends AxiosRequestConfig {
|
|
9
|
+
intercepts?: MyRequestIntercepts<T>;
|
|
10
|
+
showLoading?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export type { MyRequestConfig, MyRequestIntercepts };
|
|
@@ -24,6 +24,7 @@ export type InputComment = {
|
|
|
24
24
|
userId?: number;
|
|
25
25
|
author: string | number;
|
|
26
26
|
comment: string;
|
|
27
|
+
snapshotList?: any[];
|
|
27
28
|
modified_author?: string;
|
|
28
29
|
modified_date?: string;
|
|
29
30
|
viewPoint?: string;
|
|
@@ -78,6 +79,7 @@ export type BcfTopic = {
|
|
|
78
79
|
export declare const getPriority: (priority: string) => string;
|
|
79
80
|
export declare const getPriorityCh: (priority: string) => string;
|
|
80
81
|
export declare const getPriorityColor: (priority: string) => "#F54D4D" | "#86B6FF" | "#D5D5D5";
|
|
82
|
+
export declare const getPriorityColorMobile: (priority: string) => "#F54D4D" | "#86B6FF" | "#333333";
|
|
81
83
|
export declare const getPriorityTextColor: (priority: string) => "#F54D4D" | "#86B6FF" | "#262626";
|
|
82
84
|
export declare const getStageColor: (stage: string) => "#F54D4D" | "#00AF50" | "#959595";
|
|
83
85
|
export declare const BCFTYPE: string[];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const apiLogin: (name: any, pwd: any) => Promise<any>;
|
|
2
|
+
export declare const createBcf: (fileId: number, content: any) => Promise<any>;
|
|
3
|
+
export declare const getBCFList: (fileId?: number) => Promise<any>;
|
|
4
|
+
export declare const BCFDetail: (guid: string) => Promise<any>;
|
|
5
|
+
export declare const DeleteBCF: (guid: string) => Promise<any>;
|
|
6
|
+
export declare const ModifyBCF: (guid: any, bcf: any) => Promise<any>;
|
|
7
|
+
export declare const MemberList: (projectId: any, keword?: string) => Promise<any>;
|
|
8
|
+
export declare const getFileDetail: (fileId: number) => Promise<any>;
|
|
@@ -1,357 +0,0 @@
|
|
|
1
|
-
import { _ as me } from "./panel.vue_vue_type_style_index_0_lang-DN1hWNk5.mjs";
|
|
2
|
-
import { G, U as $, f as M, H as j, I as H, J as pe, K as W, a as O, L as ve, M as fe, N as be, u as L, _ as P, P as _e, Q as he, R as ge, S as ye, d as Se, w as Ve, W as q, n as Re, q as ke } from "./index-DUCjdjwm.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 f, withDirectives as X, isRef as Y, withModifiers as w, vModelRadio as J, renderSlot as x, 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 U, createVNode as C, Fragment as Ge, renderList as Ue, createCommentVNode as ze } from "vue";
|
|
4
|
-
import { a as z } from "./const-B1FlFgEN.mjs";
|
|
5
|
-
const oe = G({
|
|
6
|
-
modelValue: {
|
|
7
|
-
type: [String, Number, Boolean],
|
|
8
|
-
default: void 0
|
|
9
|
-
},
|
|
10
|
-
size: W,
|
|
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 = G({
|
|
25
|
-
...oe,
|
|
26
|
-
border: Boolean
|
|
27
|
-
}), ae = {
|
|
28
|
-
[$]: (a) => M(a) || j(a) || H(a),
|
|
29
|
-
[pe]: (a) => M(a) || j(a) || H(a)
|
|
30
|
-
}, le = Symbol("radioGroupKey"), te = (a, b) => {
|
|
31
|
-
const n = R(), o = Ee(le, void 0), d = g(() => !!o), c = g(() => O(a.value) ? a.label : a.value), i = g({
|
|
32
|
-
get() {
|
|
33
|
-
return d.value ? o.modelValue : a.modelValue;
|
|
34
|
-
},
|
|
35
|
-
set(t) {
|
|
36
|
-
d.value ? o.changeEvent(t) : b && b($, t), n.value.checked = a.modelValue === c.value;
|
|
37
|
-
}
|
|
38
|
-
}), p = ve(g(() => o == null ? void 0 : o.size)), l = fe(g(() => o == null ? void 0 : o.disabled)), u = R(!1), v = g(() => l.value || d.value && i.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(() => d.value && O(a.value))), {
|
|
46
|
-
radioRef: n,
|
|
47
|
-
isGroup: d,
|
|
48
|
-
radioGroup: o,
|
|
49
|
-
focus: u,
|
|
50
|
-
size: p,
|
|
51
|
-
disabled: l,
|
|
52
|
-
tabIndex: v,
|
|
53
|
-
modelValue: i,
|
|
54
|
-
actualValue: c
|
|
55
|
-
};
|
|
56
|
-
}, Le = E({
|
|
57
|
-
name: "ElRadio"
|
|
58
|
-
}), Pe = /* @__PURE__ */ E({
|
|
59
|
-
...Le,
|
|
60
|
-
props: $e,
|
|
61
|
-
emits: ae,
|
|
62
|
-
setup(a, { emit: b }) {
|
|
63
|
-
const n = a, o = L("radio"), { radioRef: d, radioGroup: c, focus: i, size: p, disabled: l, modelValue: u, actualValue: v } = te(n, b);
|
|
64
|
-
function t() {
|
|
65
|
-
Q(() => b("change", u.value));
|
|
66
|
-
}
|
|
67
|
-
return (_, r) => {
|
|
68
|
-
var s;
|
|
69
|
-
return k(), B("label", {
|
|
70
|
-
class: y([
|
|
71
|
-
e(o).b(),
|
|
72
|
-
e(o).is("disabled", e(l)),
|
|
73
|
-
e(o).is("focus", e(i)),
|
|
74
|
-
e(o).is("bordered", _.border),
|
|
75
|
-
e(o).is("checked", e(u) === e(v)),
|
|
76
|
-
e(o).m(e(p))
|
|
77
|
-
])
|
|
78
|
-
}, [
|
|
79
|
-
f("span", {
|
|
80
|
-
class: y([
|
|
81
|
-
e(o).e("input"),
|
|
82
|
-
e(o).is("disabled", e(l)),
|
|
83
|
-
e(o).is("checked", e(u) === e(v))
|
|
84
|
-
])
|
|
85
|
-
}, [
|
|
86
|
-
X(f("input", {
|
|
87
|
-
ref_key: "radioRef",
|
|
88
|
-
ref: d,
|
|
89
|
-
"onUpdate:modelValue": (S) => Y(u) ? u.value = S : null,
|
|
90
|
-
class: y(e(o).e("original")),
|
|
91
|
-
value: e(v),
|
|
92
|
-
name: _.name || ((s = e(c)) == null ? void 0 : s.name),
|
|
93
|
-
disabled: e(l),
|
|
94
|
-
checked: e(u) === e(v),
|
|
95
|
-
type: "radio",
|
|
96
|
-
onFocus: (S) => i.value = !0,
|
|
97
|
-
onBlur: (S) => i.value = !1,
|
|
98
|
-
onChange: t,
|
|
99
|
-
onClick: w(() => {
|
|
100
|
-
}, ["stop"])
|
|
101
|
-
}, null, 42, ["onUpdate:modelValue", "value", "name", "disabled", "checked", "onFocus", "onBlur", "onClick"]), [
|
|
102
|
-
[J, e(u)]
|
|
103
|
-
]),
|
|
104
|
-
f("span", {
|
|
105
|
-
class: y(e(o).e("inner"))
|
|
106
|
-
}, null, 2)
|
|
107
|
-
], 2),
|
|
108
|
-
f("span", {
|
|
109
|
-
class: y(e(o).e("label")),
|
|
110
|
-
onKeydown: w(() => {
|
|
111
|
-
}, ["stop"])
|
|
112
|
-
}, [
|
|
113
|
-
x(_.$slots, "default", {}, () => [
|
|
114
|
-
N(T(_.label), 1)
|
|
115
|
-
])
|
|
116
|
-
], 42, ["onKeydown"])
|
|
117
|
-
], 2);
|
|
118
|
-
};
|
|
119
|
-
}
|
|
120
|
-
});
|
|
121
|
-
var xe = /* @__PURE__ */ P(Pe, [["__file", "radio.vue"]]);
|
|
122
|
-
const Te = G({
|
|
123
|
-
...oe
|
|
124
|
-
}), Fe = E({
|
|
125
|
-
name: "ElRadioButton"
|
|
126
|
-
}), Ae = /* @__PURE__ */ E({
|
|
127
|
-
...Fe,
|
|
128
|
-
props: Te,
|
|
129
|
-
setup(a) {
|
|
130
|
-
const b = a, n = L("radio"), { radioRef: o, focus: d, size: c, disabled: i, modelValue: p, radioGroup: l, actualValue: u } = te(b), v = g(() => ({
|
|
131
|
-
backgroundColor: (l == null ? void 0 : l.fill) || "",
|
|
132
|
-
borderColor: (l == null ? void 0 : l.fill) || "",
|
|
133
|
-
boxShadow: l != null && l.fill ? `-1px 0 0 0 ${l.fill}` : "",
|
|
134
|
-
color: (l == null ? void 0 : l.textColor) || ""
|
|
135
|
-
}));
|
|
136
|
-
return (t, _) => {
|
|
137
|
-
var r;
|
|
138
|
-
return k(), B("label", {
|
|
139
|
-
class: y([
|
|
140
|
-
e(n).b("button"),
|
|
141
|
-
e(n).is("active", e(p) === e(u)),
|
|
142
|
-
e(n).is("disabled", e(i)),
|
|
143
|
-
e(n).is("focus", e(d)),
|
|
144
|
-
e(n).bm("button", e(c))
|
|
145
|
-
])
|
|
146
|
-
}, [
|
|
147
|
-
X(f("input", {
|
|
148
|
-
ref_key: "radioRef",
|
|
149
|
-
ref: o,
|
|
150
|
-
"onUpdate:modelValue": (s) => Y(p) ? p.value = s : null,
|
|
151
|
-
class: y(e(n).be("button", "original-radio")),
|
|
152
|
-
value: e(u),
|
|
153
|
-
type: "radio",
|
|
154
|
-
name: t.name || ((r = e(l)) == null ? void 0 : r.name),
|
|
155
|
-
disabled: e(i),
|
|
156
|
-
onFocus: (s) => d.value = !0,
|
|
157
|
-
onBlur: (s) => d.value = !1,
|
|
158
|
-
onClick: w(() => {
|
|
159
|
-
}, ["stop"])
|
|
160
|
-
}, null, 42, ["onUpdate:modelValue", "value", "name", "disabled", "onFocus", "onBlur", "onClick"]), [
|
|
161
|
-
[J, e(p)]
|
|
162
|
-
]),
|
|
163
|
-
f("span", {
|
|
164
|
-
class: y(e(n).be("button", "inner")),
|
|
165
|
-
style: Ie(e(p) === e(u) ? e(v) : {}),
|
|
166
|
-
onKeydown: w(() => {
|
|
167
|
-
}, ["stop"])
|
|
168
|
-
}, [
|
|
169
|
-
x(t.$slots, "default", {}, () => [
|
|
170
|
-
N(T(t.label), 1)
|
|
171
|
-
])
|
|
172
|
-
], 46, ["onKeydown"])
|
|
173
|
-
], 2);
|
|
174
|
-
};
|
|
175
|
-
}
|
|
176
|
-
});
|
|
177
|
-
var ne = /* @__PURE__ */ P(Ae, [["__file", "radio-button.vue"]]);
|
|
178
|
-
const De = G({
|
|
179
|
-
id: {
|
|
180
|
-
type: String,
|
|
181
|
-
default: void 0
|
|
182
|
-
},
|
|
183
|
-
size: W,
|
|
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 n = a, o = L("radio"), d = he(), c = R(), { formItem: i } = ge(), { inputId: p, isLabeledByFormItem: l } = ye(n, {
|
|
214
|
-
formItemContext: i
|
|
215
|
-
}), u = (t) => {
|
|
216
|
-
b($, t), Q(() => b("change", t));
|
|
217
|
-
};
|
|
218
|
-
Z(() => {
|
|
219
|
-
const t = c.value.querySelectorAll("[type=radio]"), _ = t[0];
|
|
220
|
-
!Array.from(t).some((r) => r.checked) && _ && (_.tabIndex = 0);
|
|
221
|
-
});
|
|
222
|
-
const v = g(() => n.name || d.value);
|
|
223
|
-
return Be(le, Ce({
|
|
224
|
-
...we(n),
|
|
225
|
-
changeEvent: u,
|
|
226
|
-
name: v
|
|
227
|
-
})), ee(() => n.modelValue, () => {
|
|
228
|
-
n.validateEvent && (i == null || i.validate("change").catch((t) => Se(t)));
|
|
229
|
-
}), (t, _) => (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(l) ? void 0 : t.ariaLabel || "radio-group",
|
|
236
|
-
"aria-labelledby": e(l) ? e(i).labelId : void 0
|
|
237
|
-
}, [
|
|
238
|
-
x(t.$slots, "default")
|
|
239
|
-
], 10, ["id", "aria-label", "aria-labelledby"]));
|
|
240
|
-
}
|
|
241
|
-
});
|
|
242
|
-
var se = /* @__PURE__ */ P(je, [["__file", "radio-group.vue"]]);
|
|
243
|
-
const He = Ve(xe, {
|
|
244
|
-
RadioButton: ne,
|
|
245
|
-
RadioGroup: se
|
|
246
|
-
}), Oe = q(se);
|
|
247
|
-
q(ne);
|
|
248
|
-
const We = { class: "wrapper" }, qe = { class: "screen_thumbnail" }, Xe = ["src"], Ye = { 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 n = Re(), o = a, d = R(0), c = R(), i = R(), p = R(), l = b;
|
|
257
|
-
Z(() => {
|
|
258
|
-
c.value = 1280, i.value = 720, n.setReadyById(o.componentId);
|
|
259
|
-
}), ee(
|
|
260
|
-
() => n.isToolActive(o.componentId),
|
|
261
|
-
(r) => {
|
|
262
|
-
r && t(220, 124, !1);
|
|
263
|
-
}
|
|
264
|
-
);
|
|
265
|
-
const u = (r) => {
|
|
266
|
-
d.value = r, r !== 3 && (c.value = z[r].width, i.value = z[r].height);
|
|
267
|
-
}, v = () => {
|
|
268
|
-
l("closePanel");
|
|
269
|
-
}, t = (r, 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 = r, V.height = s;
|
|
275
|
-
const ie = r / h.width, re = s / h.height, F = Math.max(ie, re), A = h.width * F, D = h.height * F, de = (r - A) / 2, ue = (s - D) / 2;
|
|
276
|
-
m.clearRect(0, 0, r, s), m.fillStyle = "transparent", m.fillRect(0, 0, r, s), m.drawImage(h, 0, 0, h.width, h.height, de, 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
|
-
t(c.value, i.value, !0);
|
|
283
|
-
};
|
|
284
|
-
return (r, s) => {
|
|
285
|
-
const S = He, h = Oe, I = ke, V = me;
|
|
286
|
-
return k(), Ne(V, {
|
|
287
|
-
class: "screen_container",
|
|
288
|
-
width: 240,
|
|
289
|
-
panelTitle: "截图",
|
|
290
|
-
"click-handle": v
|
|
291
|
-
}, {
|
|
292
|
-
default: U(() => [
|
|
293
|
-
f("div", We, [
|
|
294
|
-
f("div", qe, [
|
|
295
|
-
f("img", {
|
|
296
|
-
class: "thumbnail_img",
|
|
297
|
-
src: p.value,
|
|
298
|
-
alt: ""
|
|
299
|
-
}, null, 8, Xe)
|
|
300
|
-
]),
|
|
301
|
-
C(h, {
|
|
302
|
-
modelValue: d.value,
|
|
303
|
-
"onUpdate:modelValue": s[0] || (s[0] = (m) => d.value = m),
|
|
304
|
-
onChange: u
|
|
305
|
-
}, {
|
|
306
|
-
default: U(() => [
|
|
307
|
-
f("div", Ye, [
|
|
308
|
-
(k(!0), B(Ge, null, Ue(e(z), (m) => (k(), B("div", {
|
|
309
|
-
key: m.id,
|
|
310
|
-
class: "period_box"
|
|
311
|
-
}, [
|
|
312
|
-
C(S, {
|
|
313
|
-
label: m.id
|
|
314
|
-
}, {
|
|
315
|
-
default: U(() => [
|
|
316
|
-
N(T(m.name), 1)
|
|
317
|
-
]),
|
|
318
|
-
_: 2
|
|
319
|
-
}, 1032, ["label"])
|
|
320
|
-
]))), 128))
|
|
321
|
-
])
|
|
322
|
-
]),
|
|
323
|
-
_: 1
|
|
324
|
-
}, 8, ["modelValue"]),
|
|
325
|
-
d.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: i.value,
|
|
334
|
-
"onUpdate:modelValue": s[2] || (s[2] = (m) => i.value = m),
|
|
335
|
-
placeholder: "请输入宽度"
|
|
336
|
-
}, null, 8, ["modelValue"])
|
|
337
|
-
])) : ze("", !0),
|
|
338
|
-
f("div", { class: "footer" }, [
|
|
339
|
-
f("div", {
|
|
340
|
-
class: "btn1",
|
|
341
|
-
onClick: v
|
|
342
|
-
}, " 取消 "),
|
|
343
|
-
f("div", {
|
|
344
|
-
class: "btn2",
|
|
345
|
-
onClick: _
|
|
346
|
-
}, " 保存 ")
|
|
347
|
-
])
|
|
348
|
-
])
|
|
349
|
-
]),
|
|
350
|
-
_: 1
|
|
351
|
-
});
|
|
352
|
-
};
|
|
353
|
-
}
|
|
354
|
-
});
|
|
355
|
-
export {
|
|
356
|
-
ao as default
|
|
357
|
-
};
|