@xtctwins/tctwins-bimx-engine 0.2.21 → 0.2.22
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-wlMzfke3.mjs → AnnotationTool-BAqnoElU.mjs} +32 -32
- package/dist/BIMX_Viewer_Lib.es.js +2 -2
- package/dist/BIMX_Viewer_Lib.umd.js +151 -153
- package/dist/{CommentTool-BFWKjEwL.mjs → CommentTool-QAQnEThT.mjs} +44 -44
- package/dist/{HiddenTool-B39qHPG4.mjs → HiddenTool-YmKJlgqE.mjs} +12 -12
- package/dist/{InspectorTool-DuZMt6ck.mjs → InspectorTool-BrLjImHZ.mjs} +25 -25
- package/dist/{MeasureTool-CAtJhHvn.mjs → MeasureTool-CUZy5ML9.mjs} +36 -36
- package/dist/{NavigateTool-DUJbcOu8.mjs → NavigateTool-DviiOK_a.mjs} +1 -1
- package/dist/{RoamTool-VJukLQbx.mjs → RoamTool-CIkux4Y-.mjs} +19 -19
- package/dist/ScreenShotTool-Bu0M6ur_.mjs +357 -0
- package/dist/{SectionTool-wG-g4bYz.mjs → SectionTool-BJ19Wgfm.mjs} +55 -55
- package/dist/{SettingTool-BJIcCCIF.mjs → SettingTool-CUaDVp_g.mjs} +136 -136
- package/dist/{StructureTree-ArZXIpjJ.mjs → StructureTree-DIW023ER.mjs} +232 -241
- package/dist/{alert-BKbDGve8.mjs → alert-Dv1dFs7z.mjs} +3 -3
- package/dist/el-input-number-C1xkBmQ4.mjs +818 -0
- package/dist/{index-DLOOTr_z.mjs → index-Db6oz6CK.mjs} +44717 -46965
- package/dist/index.html +17 -17
- package/dist/{panel.vue_vue_type_style_index_0_lang-BHeUPt0m.mjs → panel.vue_vue_type_style_index_0_lang-DF0tLFJ-.mjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/{tallPanel-C7-DJpng.mjs → tallPanel-CqAU492j.mjs} +16 -16
- package/package.json +65 -66
- package/types/components/BCFComponents/BCFAddPanel.vue.d.ts +10 -38
- package/types/components/BCFComponents/BCFCommentNew.vue.d.ts +22 -0
- package/types/components/BCFComponents/BCFDetailPanel.vue.d.ts +9 -37
- package/types/components/BCFComponents/BCFDisplayList.vue.d.ts +7 -5
- package/types/components/BCFComponents/BCFFilter.vue.d.ts +7 -5
- package/types/components/BCFComponents/BCFTool.vue.d.ts +7 -4
- package/types/components/BCFComponents/addObjectOrAnno.vue.d.ts +7 -5
- package/types/components/BCFComponents/checkObjectPanel.vue.d.ts +6 -5
- package/types/components/BCFComponents/commentInput.vue.d.ts +9 -38
- package/types/components/BCFComponents/commentsView.vue.d.ts +7 -38
- package/types/components/BCFComponents/dialogPanel.vue.d.ts +8 -5
- package/types/components/BCFComponents/imageView.vue.d.ts +7 -5
- package/types/components/BCFComponents/imageZoomIn.vue.d.ts +6 -5
- 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 +6 -4
- package/types/components/BimViewerComponents/StructureTree.vue.d.ts +1 -3042
- package/types/components/BimViewerComponents/Toolbar.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/emptyPage.vue.d.ts +8 -0
- package/types/components/bimxViewer.vue.d.ts +12 -7
- package/types/components/utilsComponents/alert.vue.d.ts +1 -1
- package/types/components/utilsComponents/closeButton.vue.d.ts +1 -1
- 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 +2 -8
- package/types/components/utilsComponents/rectangleButton.vue.d.ts +1 -3
- package/types/components/utilsComponents/tallPanel.vue.d.ts +3 -13
- package/types/components/utilsComponents/tallPanel_noPos.vue.d.ts +3 -13
- package/types/pages/viewerEntry.vue.d.ts +54 -4
- package/types/store/bcfReflect.d.ts +0 -2
- package/types/store/initConfigs.d.ts +1 -1
- package/dist/ScreenShotTool-DoeDZA0a.mjs +0 -357
- package/dist/el-input-number-BXp6cJeD.mjs +0 -858
- package/types/components/MobileBCFComponents/MobileBCFAdd.vue.d.ts +0 -56
- package/types/components/MobileBCFComponents/MobileBCFDetail.vue.d.ts +0 -55
- package/types/components/MobileBCFComponents/MobileBCFDisplayList.vue.d.ts +0 -278
- package/types/components/MobileBCFComponents/MobileBCFFilter.vue.d.ts +0 -255
- package/types/components/MobileBCFComponents/MobileBCFTool.vue.d.ts +0 -17
- package/types/components/MobileBCFComponents/MobileCommentInput.vue.d.ts +0 -54
- package/types/components/MobileBCFComponents/MobileCommentsView.vue.d.ts +0 -17
- package/types/components/MobileBCFComponents/selectPanel.vue.d.ts +0 -12
- package/types/components/utilsComponents/closeButton_dark.vue.d.ts +0 -32
- package/types/services/request/api.d.ts +0 -3
- package/types/services/request/index.d.ts +0 -14
- package/types/services/request/types.d.ts +0 -12
- package/types/tests/bcf.d.ts +0 -8
|
@@ -6,5 +6,5 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
6
6
|
visibleTools?: any;
|
|
7
7
|
}> & Readonly<{
|
|
8
8
|
onEmitHandler?: ((...args: any[]) => any) | undefined;
|
|
9
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {},
|
|
9
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
10
10
|
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{
|
|
2
|
+
title: StringConstructor;
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
5
|
+
title: StringConstructor;
|
|
6
|
+
type: StringConstructor;
|
|
7
|
+
}>>, {}, {}>;
|
|
8
|
+
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { InstructionContent } from '../utils/eventBus';
|
|
2
|
-
|
|
2
|
+
declare const _default: import('vue').DefineComponent<{
|
|
3
3
|
instruction?: InstructionContent | undefined;
|
|
4
4
|
fileId?: string;
|
|
5
5
|
fileName?: string;
|
|
@@ -7,12 +7,17 @@ type __VLS_Props = {
|
|
|
7
7
|
modelType?: string;
|
|
8
8
|
modelBuffer?: ArrayBuffer;
|
|
9
9
|
metaBuffer?: ArrayBuffer;
|
|
10
|
-
}
|
|
11
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
10
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
12
11
|
emitHandler: (...args: any[]) => void;
|
|
13
|
-
}, string, import('vue').PublicProps, Readonly<
|
|
12
|
+
}, string, import('vue').PublicProps, Readonly<{
|
|
13
|
+
instruction?: InstructionContent | undefined;
|
|
14
|
+
fileId?: string;
|
|
15
|
+
fileName?: string;
|
|
16
|
+
filePath?: string;
|
|
17
|
+
modelType?: string;
|
|
18
|
+
modelBuffer?: ArrayBuffer;
|
|
19
|
+
metaBuffer?: ArrayBuffer;
|
|
20
|
+
}> & Readonly<{
|
|
14
21
|
onEmitHandler?: ((...args: any[]) => any) | undefined;
|
|
15
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
16
|
-
canvas: HTMLCanvasElement;
|
|
17
|
-
}, HTMLDivElement>;
|
|
22
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
18
23
|
export default _default;
|
|
@@ -28,5 +28,5 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
28
28
|
width: number;
|
|
29
29
|
panelTitle: string;
|
|
30
30
|
clickHandle: Function;
|
|
31
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {},
|
|
31
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
32
32
|
export default _default;
|
|
@@ -46,5 +46,5 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
46
46
|
sizeType: string;
|
|
47
47
|
light: boolean;
|
|
48
48
|
dark: boolean;
|
|
49
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {},
|
|
49
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
50
50
|
export default _default;
|
|
@@ -2,5 +2,5 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
2
2
|
title: StringConstructor;
|
|
3
3
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
4
4
|
title: StringConstructor;
|
|
5
|
-
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {},
|
|
5
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
6
6
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {},
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
2
|
export default _default;
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
declare function __VLS_template(): {
|
|
2
|
-
|
|
3
|
-
slots: {
|
|
4
|
-
default?(_: {}): any;
|
|
5
|
-
};
|
|
6
|
-
refs: {};
|
|
7
|
-
rootEl: any;
|
|
2
|
+
default?(_: {}): any;
|
|
8
3
|
};
|
|
9
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
4
|
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
11
5
|
panelTitle: {
|
|
12
6
|
type: StringConstructor;
|
|
@@ -38,7 +32,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
38
32
|
panelTitle: string;
|
|
39
33
|
clickHandle: Function;
|
|
40
34
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
41
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
35
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
42
36
|
export default _default;
|
|
43
37
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
44
38
|
new (): {
|
|
@@ -100,7 +100,5 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
100
100
|
imgHeight: number;
|
|
101
101
|
imgUrl: string;
|
|
102
102
|
imgActiveUrl: string;
|
|
103
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
104
|
-
buttonRef: HTMLDivElement;
|
|
105
|
-
}, HTMLDivElement>;
|
|
103
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
106
104
|
export default _default;
|
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
declare function __VLS_template(): {
|
|
2
|
-
|
|
3
|
-
slots: {
|
|
4
|
-
default?(_: {}): any;
|
|
5
|
-
};
|
|
6
|
-
refs: {
|
|
7
|
-
tallPanelWrapper: HTMLDivElement;
|
|
8
|
-
};
|
|
9
|
-
rootEl: HTMLDivElement;
|
|
2
|
+
default?(_: {}): any;
|
|
10
3
|
};
|
|
11
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
4
|
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
13
5
|
panelTitle: {
|
|
14
6
|
type: StringConstructor;
|
|
@@ -57,10 +49,8 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
57
49
|
clickHandle: Function;
|
|
58
50
|
pos: string;
|
|
59
51
|
setWidth: boolean;
|
|
60
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
61
|
-
|
|
62
|
-
}, HTMLDivElement>;
|
|
63
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
52
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
53
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
64
54
|
export default _default;
|
|
65
55
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
66
56
|
new (): {
|
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
declare function __VLS_template(): {
|
|
2
|
-
|
|
3
|
-
slots: {
|
|
4
|
-
default?(_: {}): any;
|
|
5
|
-
};
|
|
6
|
-
refs: {
|
|
7
|
-
tallPanelWrapper: HTMLDivElement;
|
|
8
|
-
};
|
|
9
|
-
rootEl: HTMLDivElement;
|
|
2
|
+
default?(_: {}): any;
|
|
10
3
|
};
|
|
11
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
4
|
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
13
5
|
panelTitle: {
|
|
14
6
|
type: StringConstructor;
|
|
@@ -70,10 +62,8 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
70
62
|
head: boolean;
|
|
71
63
|
pos: string;
|
|
72
64
|
setWidth: boolean;
|
|
73
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
74
|
-
|
|
75
|
-
}, HTMLDivElement>;
|
|
76
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
65
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
66
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
77
67
|
export default _default;
|
|
78
68
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
79
69
|
new (): {
|
|
@@ -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
|
+
declare const _default: import('vue').DefineComponent<{
|
|
5
5
|
instruction?: InstructionContent | undefined;
|
|
6
6
|
fileId?: string;
|
|
7
7
|
fileName?: string;
|
|
@@ -28,6 +28,7 @@ type __VLS_Props = {
|
|
|
28
28
|
isPc?: boolean;
|
|
29
29
|
phone?: boolean;
|
|
30
30
|
loadMeta?: boolean;
|
|
31
|
+
outliersDetect?: boolean;
|
|
31
32
|
backButton?: boolean;
|
|
32
33
|
backgroundColor?: string;
|
|
33
34
|
tree?: boolean;
|
|
@@ -50,10 +51,59 @@ type __VLS_Props = {
|
|
|
50
51
|
bcf?: boolean;
|
|
51
52
|
bcfb?: boolean;
|
|
52
53
|
bcfContent?: BcfContent;
|
|
53
|
-
}
|
|
54
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
54
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
55
55
|
emitHandler: (...args: any[]) => void;
|
|
56
|
-
}, string, import('vue').PublicProps, Readonly<
|
|
56
|
+
}, string, import('vue').PublicProps, Readonly<{
|
|
57
|
+
instruction?: InstructionContent | undefined;
|
|
58
|
+
fileId?: string;
|
|
59
|
+
fileName?: string;
|
|
60
|
+
filePath?: string;
|
|
61
|
+
modelBuffer?: ArrayBuffer;
|
|
62
|
+
metaBuffer?: ArrayBuffer;
|
|
63
|
+
modelType?: string;
|
|
64
|
+
themeColor?: ThemeColor;
|
|
65
|
+
topHeight?: number;
|
|
66
|
+
bottomHeight?: number;
|
|
67
|
+
leftWidth?: number;
|
|
68
|
+
rightWidth?: number;
|
|
69
|
+
treePos?: TallPanelPos;
|
|
70
|
+
inspectorPos?: TallPanelPos;
|
|
71
|
+
commentPos?: ToolPos;
|
|
72
|
+
annotationPos?: ToolPos;
|
|
73
|
+
roamPos?: ToolPos;
|
|
74
|
+
navCubePos?: NavCubePos;
|
|
75
|
+
navCubeSize?: number;
|
|
76
|
+
skyboxImg?: HTMLImageElement;
|
|
77
|
+
commentOffset?: Offset;
|
|
78
|
+
measureOffset?: Offset;
|
|
79
|
+
hideTool?: boolean;
|
|
80
|
+
isPc?: boolean;
|
|
81
|
+
phone?: boolean;
|
|
82
|
+
loadMeta?: boolean;
|
|
83
|
+
outliersDetect?: boolean;
|
|
84
|
+
backButton?: boolean;
|
|
85
|
+
backgroundColor?: string;
|
|
86
|
+
tree?: boolean;
|
|
87
|
+
reseta?: boolean;
|
|
88
|
+
roam?: boolean;
|
|
89
|
+
measure?: boolean;
|
|
90
|
+
section?: boolean;
|
|
91
|
+
comment?: boolean;
|
|
92
|
+
anno?: boolean;
|
|
93
|
+
screenshot?: boolean;
|
|
94
|
+
inspector?: boolean;
|
|
95
|
+
setting?: boolean;
|
|
96
|
+
fullscreena?: boolean;
|
|
97
|
+
resetb?: boolean;
|
|
98
|
+
navigate?: boolean;
|
|
99
|
+
fullscreenb?: boolean;
|
|
100
|
+
shareb?: boolean;
|
|
101
|
+
cooperateb?: boolean;
|
|
102
|
+
hidden?: boolean;
|
|
103
|
+
bcf?: boolean;
|
|
104
|
+
bcfb?: boolean;
|
|
105
|
+
bcfContent?: BcfContent;
|
|
106
|
+
}> & Readonly<{
|
|
57
107
|
onEmitHandler?: ((...args: any[]) => any) | undefined;
|
|
58
108
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
59
109
|
export default _default;
|
|
@@ -24,7 +24,6 @@ export type InputComment = {
|
|
|
24
24
|
userId?: number;
|
|
25
25
|
author: string | number;
|
|
26
26
|
comment: string;
|
|
27
|
-
snapshotList?: any[];
|
|
28
27
|
modified_author?: string;
|
|
29
28
|
modified_date?: string;
|
|
30
29
|
viewPoint?: string;
|
|
@@ -79,7 +78,6 @@ export type BcfTopic = {
|
|
|
79
78
|
export declare const getPriority: (priority: string) => string;
|
|
80
79
|
export declare const getPriorityCh: (priority: string) => string;
|
|
81
80
|
export declare const getPriorityColor: (priority: string) => "#F54D4D" | "#86B6FF" | "#D5D5D5";
|
|
82
|
-
export declare const getPriorityColorMobile: (priority: string) => "#F54D4D" | "#86B6FF" | "#333333";
|
|
83
81
|
export declare const getPriorityTextColor: (priority: string) => "#F54D4D" | "#86B6FF" | "#262626";
|
|
84
82
|
export declare const getStageColor: (stage: string) => "#F54D4D" | "#00AF50" | "#959595";
|
|
85
83
|
export declare const BCFTYPE: string[];
|
|
@@ -39,7 +39,7 @@ export type ConfigsParams = {
|
|
|
39
39
|
callback?: Function;
|
|
40
40
|
};
|
|
41
41
|
/**基础配置 */
|
|
42
|
-
export type BasicConfig = "showTree" | "showRoam" | "annoLimit" | "userInfo" | "isMobile" | "isPc" | "loadMeta" | "themeColor" | "hideTool" | "backButton" | "backgroundColor";
|
|
42
|
+
export type BasicConfig = "showTree" | "showRoam" | "annoLimit" | "userInfo" | "isMobile" | "isPc" | "loadMeta" | "outliersDetect" | "themeColor" | "hideTool" | "backButton" | "backgroundColor";
|
|
43
43
|
/**边距配置 */
|
|
44
44
|
export type MarginConfig = "topHeight" | "rightWidth" | "bottomHeight" | "leftWidth";
|
|
45
45
|
/**界面配置 */
|
|
@@ -1,357 +0,0 @@
|
|
|
1
|
-
import { _ as me } from "./panel.vue_vue_type_style_index_0_lang-BHeUPt0m.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-DLOOTr_z.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
|
-
};
|