@jnrs/lingshu-smart 2.2.6 → 2.2.8
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/App.vue.d.ts +2 -1
- package/dist/App.vue.js +30 -0
- package/dist/assets/data/editor_default.d.ts +8 -1
- package/dist/assets/data/editor_default.js +59 -0
- package/dist/assets/data/editor_default_setting.d.ts +16 -0
- package/dist/assets/data/editor_default_setting.js +58 -0
- package/dist/assets/data/editor_preset.d.ts +8 -1
- package/dist/assets/data/editor_preset.js +51 -0
- package/dist/assets/data/editor_preset_menu.d.ts +9 -0
- package/dist/assets/data/editor_preset_menu.js +290 -0
- package/dist/components/editor/ControlBar/CaseManger.vue.d.ts +3 -15
- package/dist/components/editor/ControlBar/CaseManger.vue.js +465 -0
- package/dist/components/editor/ControlBar/CaseTitleEdit.vue.d.ts +2 -411
- package/dist/components/editor/ControlBar/CaseTitleEdit.vue.js +108 -0
- package/dist/components/editor/ControlBar/ExportImportDialog.vue.d.ts +3 -2
- package/dist/components/editor/ControlBar/ExportImportDialog.vue.js +280 -0
- package/dist/components/editor/ControlBar/MainButton.vue.d.ts +3 -2
- package/dist/components/editor/ControlBar/MainButton.vue.js +183 -0
- package/dist/components/editor/ControlBar/StepButton.vue.d.ts +2 -1
- package/dist/components/editor/ControlBar/StepButton.vue.js +147 -0
- package/dist/components/editor/ControlBar/StepRecordVisualizer.vue.d.ts +2 -1
- package/dist/components/editor/ControlBar/StepRecordVisualizer.vue.js +98 -0
- package/dist/components/editor/DrawingBoard.vue.d.ts +2 -1
- package/dist/components/editor/DrawingBoard.vue.js +31 -0
- package/dist/components/editor/MenuCard/Equipments.vue.d.ts +2 -1
- package/dist/components/editor/MenuCard/Equipments.vue.js +129 -0
- package/dist/components/editor/MenuCard/Layers.vue.d.ts +2 -1
- package/dist/components/editor/MenuCard/Layers.vue.js +201 -0
- package/dist/components/editor/MenuCard/index.vue.d.ts +2 -1
- package/dist/components/editor/MenuCard/index.vue.js +84 -0
- package/dist/components/editor/OptionCard/Equipment/Base.vue.d.ts +2 -1
- package/dist/components/editor/OptionCard/Equipment/Base.vue.js +96 -0
- package/dist/components/editor/OptionCard/Equipment/Binds.vue.d.ts +3 -0
- package/dist/components/editor/OptionCard/Equipment/Binds.vue.js +443 -0
- package/dist/components/editor/OptionCard/Equipment/Bot.vue.d.ts +3 -0
- package/dist/components/editor/OptionCard/Equipment/Bot.vue.js +81 -0
- package/dist/components/editor/OptionCard/Equipment/DataSets.vue.d.ts +2 -1
- package/dist/components/editor/OptionCard/Equipment/DataSets.vue.js +304 -0
- package/dist/components/editor/OptionCard/Equipment/DockStore.vue.d.ts +3 -0
- package/dist/components/editor/OptionCard/Equipment/DockStore.vue.js +597 -0
- package/dist/components/editor/OptionCard/Equipment/Interaction.vue.d.ts +2 -1
- package/dist/components/editor/OptionCard/Equipment/Interaction.vue.js +287 -0
- package/dist/components/editor/OptionCard/Equipment/Position.backup.vue.d.ts +3 -0
- package/dist/components/editor/OptionCard/Equipment/Position.backup.vue.js +440 -0
- package/dist/components/editor/OptionCard/Equipment/Position.vue.d.ts +2 -1
- package/dist/components/editor/OptionCard/Equipment/Position.vue.js +436 -0
- package/dist/components/editor/OptionCard/Equipment/StationSlotGroup.vue.d.ts +2 -1
- package/dist/components/editor/OptionCard/Equipment/StationSlotGroup.vue.js +1131 -0
- package/dist/components/editor/OptionCard/Equipment/Store.vue.d.ts +3 -0
- package/dist/components/editor/OptionCard/Equipment/Store.vue.js +453 -0
- package/dist/components/editor/OptionCard/Equipment/Trailer.vue.d.ts +3 -0
- package/dist/components/editor/OptionCard/Equipment/Trailer.vue.js +1109 -0
- package/dist/components/editor/OptionCard/Equipment/index.vue.d.ts +2 -1
- package/dist/components/editor/OptionCard/Equipment/index.vue.js +100 -0
- package/dist/components/editor/OptionCard/Equipment/models/MachineTool.vue.d.ts +3 -0
- package/dist/components/editor/OptionCard/Equipment/models/MachineTool.vue.js +99 -0
- package/dist/components/editor/OptionCard/Equipment/models/Rail.vue.d.ts +3 -0
- package/dist/components/editor/OptionCard/Equipment/models/Rail.vue.js +225 -0
- package/dist/components/editor/OptionCard/Equipment/models/SingleGripperRobot.vue.d.ts +3 -0
- package/dist/components/editor/OptionCard/Equipment/models/SingleGripperRobot.vue.js +99 -0
- package/dist/components/editor/OptionCard/Scene/Background.vue.d.ts +2 -1
- package/dist/components/editor/OptionCard/Scene/Background.vue.js +543 -0
- package/dist/components/editor/OptionCard/Scene/index.vue.d.ts +2 -1
- package/dist/components/editor/OptionCard/Scene/index.vue.js +200 -0
- package/dist/components/editor/OptionCard/index.vue.d.ts +2 -1
- package/dist/components/editor/OptionCard/index.vue.js +73 -0
- package/dist/components/editor/index.vue.d.ts +4 -13
- package/dist/components/editor/index.vue.js +156 -0
- package/dist/components/index.d.ts +2 -2
- package/dist/components/index.js +4 -25440
- package/dist/components/preview/index.vue.d.ts +6 -5
- package/dist/components/preview/index.vue.js +104 -0
- package/dist/composables/useStepRecord.d.ts +12 -4
- package/dist/composables/useStepRecord.js +135 -0
- package/dist/constants/options.d.ts +8 -1
- package/dist/constants/options.js +55 -0
- package/dist/controller/AppController.d.ts +10 -3
- package/dist/controller/AppController.js +168 -0
- package/dist/controller/EditorController.d.ts +9 -2
- package/dist/controller/EditorController.js +173 -0
- package/dist/index.js +1 -1
- package/dist/locales/en.js +5 -0
- package/dist/locales/i18next.d.ts +1 -1
- package/dist/locales/i18next.js +6 -0
- package/dist/locales/index.d.ts +2 -2
- package/dist/locales/index.js +3 -13
- package/dist/locales/zhCn.js +5 -0
- package/dist/main.d.ts +3 -0
- package/dist/main.js +13 -0
- package/dist/playground/EditPageDemo.vue.d.ts +2 -1
- package/dist/playground/EditPageDemo.vue.js +57 -0
- package/dist/playground/ViewPageDemo.vue.d.ts +2 -27
- package/dist/playground/ViewPageDemo.vue.js +277 -0
- package/dist/stores/index.js +3 -0
- package/dist/stores/useAppStore.d.ts +13 -6
- package/dist/stores/useAppStore.js +78 -0
- package/dist/stores/useDataStore.d.ts +18 -11
- package/dist/stores/useDataStore.js +116 -0
- package/dist/stores/useEditorStore.d.ts +27 -20
- package/dist/stores/useEditorStore.js +263 -0
- package/dist/types/app.types.d.ts +1 -1
- package/dist/types/app.types.js +2 -0
- package/dist/types/base.types.d.ts +4 -2
- package/dist/types/base.types.js +1 -0
- package/dist/types/components/config.types.d.ts +11 -3
- package/dist/types/components/config.types.js +1 -0
- package/dist/types/components/operating.types.d.ts +1 -1
- package/dist/types/components/operating.types.js +1 -0
- package/dist/types/enums.d.ts +5 -2
- package/dist/types/enums.js +46 -0
- package/dist/types/guards.d.ts +12 -2
- package/dist/types/guards.js +28 -0
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.js +8 -0
- package/dist/types/models/config.types.d.ts +74 -29
- package/dist/types/models/config.types.js +1 -0
- package/dist/types/models/operating.types.d.ts +83 -17
- package/dist/types/models/operating.types.js +1 -0
- package/dist/ui/abstract/ComponentAbs.d.ts +9 -2
- package/dist/ui/abstract/ComponentAbs.js +64 -0
- package/dist/ui/abstract/ModelAbs.d.ts +12 -2
- package/dist/ui/abstract/ModelAbs.js +119 -0
- package/dist/ui/components/Entrance.d.ts +8 -1
- package/dist/ui/components/Entrance.js +83 -0
- package/dist/ui/components/Light.d.ts +26 -3
- package/dist/ui/components/Light.js +167 -0
- package/dist/ui/components/Progress.d.ts +8 -1
- package/dist/ui/components/Progress.js +84 -0
- package/dist/ui/components/Resource.d.ts +8 -1
- package/dist/ui/components/Resource.js +70 -0
- package/dist/ui/components/StationSlot.d.ts +24 -2
- package/dist/ui/components/StationSlot.js +207 -0
- package/dist/ui/components/StationSlotGroup.d.ts +8 -1
- package/dist/ui/components/StationSlotGroup.js +110 -0
- package/dist/ui/factories/createGlass.d.ts +9 -1
- package/dist/ui/factories/createGlass.js +51 -0
- package/dist/ui/factories/createModel.d.ts +9 -2
- package/dist/ui/factories/createModel.js +35 -0
- package/dist/ui/factories/createShadow.d.ts +12 -4
- package/dist/ui/factories/createShadow.js +52 -0
- package/dist/ui/factories/createText.d.ts +7 -0
- package/dist/ui/factories/createText.js +46 -0
- package/dist/ui/models/CleaningMachine.d.ts +14 -0
- package/dist/ui/models/CleaningMachine.js +141 -0
- package/dist/ui/models/DoubleJointRobot.d.ts +23 -0
- package/dist/ui/models/DoubleJointRobot.js +545 -0
- package/dist/ui/models/LoadingStation.d.ts +16 -0
- package/dist/ui/models/LoadingStation.js +167 -0
- package/dist/ui/models/MachineTool.d.ts +5 -4
- package/dist/ui/models/MachineTool.js +184 -0
- package/dist/ui/models/MarkingMachine.d.ts +16 -0
- package/dist/ui/models/MarkingMachine.js +148 -0
- package/dist/ui/models/Rail.d.ts +15 -0
- package/dist/ui/models/Rail.js +117 -0
- package/dist/ui/models/ResourceStore.d.ts +12 -0
- package/dist/ui/models/ResourceStore.js +101 -0
- package/dist/ui/models/SingleBot.d.ts +20 -0
- package/dist/ui/models/SingleBot.js +202 -0
- package/dist/ui/models/SingleGripperRobot.d.ts +19 -0
- package/dist/ui/models/SingleGripperRobot.js +272 -0
- package/dist/ui/models/SingleJointRobot.d.ts +22 -0
- package/dist/ui/models/SingleJointRobot.js +346 -0
- package/dist/ui/shapes/NamePlate.d.ts +10 -1
- package/dist/ui/shapes/NamePlate.js +85 -0
- package/dist/ui/shapes/ScrewHole.d.ts +8 -1
- package/dist/ui/shapes/ScrewHole.js +57 -0
- package/dist/ui/shapes/Texture.d.ts +12 -3
- package/dist/ui/shapes/Texture.js +51 -0
- package/dist/ui/utils/attr.d.ts +10 -3
- package/dist/ui/utils/attr.js +50 -0
- package/dist/utils/index.js +92 -0
- package/dist/utils/type-guards.d.ts +1 -1
- package/dist/utils/type-guards.js +105 -0
- package/package.json +2 -2
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
import { storeToRefs } from 'pinia';
|
|
2
|
+
import { ElIcon, vLoading, ElInputNumber, ElSelect, ElOption } from 'element-plus';
|
|
3
|
+
import { WarnTriangleFilled } from '@element-plus/icons-vue';
|
|
4
|
+
import { useEditorStore } from '@/stores';
|
|
5
|
+
import Background from './Background.vue';
|
|
6
|
+
const editorStore = useEditorStore();
|
|
7
|
+
const { scene } = storeToRefs(editorStore);
|
|
8
|
+
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
9
|
+
const __VLS_ctx = {
|
|
10
|
+
...{},
|
|
11
|
+
...{},
|
|
12
|
+
};
|
|
13
|
+
let __VLS_components;
|
|
14
|
+
let __VLS_directives;
|
|
15
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
16
|
+
...{ class: "formContainer" },
|
|
17
|
+
});
|
|
18
|
+
if (__VLS_ctx.scene) {
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
[scene,];
|
|
21
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
22
|
+
...{ class: "form_group" },
|
|
23
|
+
});
|
|
24
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
25
|
+
...{ class: "form_group_title" },
|
|
26
|
+
});
|
|
27
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
28
|
+
...{ class: "keyVal" },
|
|
29
|
+
});
|
|
30
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
31
|
+
...{ class: "key" },
|
|
32
|
+
});
|
|
33
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.span, __VLS_intrinsics.span)({
|
|
34
|
+
...{ class: "unit" },
|
|
35
|
+
});
|
|
36
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
37
|
+
...{ class: "val" },
|
|
38
|
+
});
|
|
39
|
+
const __VLS_0 = {}.ElInputNumber;
|
|
40
|
+
/** @type {[typeof __VLS_components.ElInputNumber, typeof __VLS_components.elInputNumber, ]} */ ;
|
|
41
|
+
// @ts-ignore
|
|
42
|
+
ElInputNumber;
|
|
43
|
+
// @ts-ignore
|
|
44
|
+
const __VLS_1 = __VLS_asFunctionalComponent(__VLS_0, new __VLS_0({
|
|
45
|
+
modelValue: (__VLS_ctx.scene.width),
|
|
46
|
+
step: (1),
|
|
47
|
+
precision: (0),
|
|
48
|
+
min: (500),
|
|
49
|
+
max: (10000),
|
|
50
|
+
size: "default",
|
|
51
|
+
...{ style: "width: 100%" },
|
|
52
|
+
}));
|
|
53
|
+
const __VLS_2 = __VLS_1({
|
|
54
|
+
modelValue: (__VLS_ctx.scene.width),
|
|
55
|
+
step: (1),
|
|
56
|
+
precision: (0),
|
|
57
|
+
min: (500),
|
|
58
|
+
max: (10000),
|
|
59
|
+
size: "default",
|
|
60
|
+
...{ style: "width: 100%" },
|
|
61
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_1));
|
|
62
|
+
// @ts-ignore
|
|
63
|
+
[scene,];
|
|
64
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
65
|
+
...{ class: "keyVal" },
|
|
66
|
+
});
|
|
67
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
68
|
+
...{ class: "key" },
|
|
69
|
+
});
|
|
70
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.span, __VLS_intrinsics.span)({
|
|
71
|
+
...{ class: "unit" },
|
|
72
|
+
});
|
|
73
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
74
|
+
...{ class: "val" },
|
|
75
|
+
});
|
|
76
|
+
const __VLS_6 = {}.ElInputNumber;
|
|
77
|
+
/** @type {[typeof __VLS_components.ElInputNumber, typeof __VLS_components.elInputNumber, ]} */ ;
|
|
78
|
+
// @ts-ignore
|
|
79
|
+
ElInputNumber;
|
|
80
|
+
// @ts-ignore
|
|
81
|
+
const __VLS_7 = __VLS_asFunctionalComponent(__VLS_6, new __VLS_6({
|
|
82
|
+
modelValue: (__VLS_ctx.scene.height),
|
|
83
|
+
step: (1),
|
|
84
|
+
precision: (0),
|
|
85
|
+
min: (500),
|
|
86
|
+
max: (10000),
|
|
87
|
+
size: "default",
|
|
88
|
+
...{ style: "width: 100%" },
|
|
89
|
+
}));
|
|
90
|
+
const __VLS_8 = __VLS_7({
|
|
91
|
+
modelValue: (__VLS_ctx.scene.height),
|
|
92
|
+
step: (1),
|
|
93
|
+
precision: (0),
|
|
94
|
+
min: (500),
|
|
95
|
+
max: (10000),
|
|
96
|
+
size: "default",
|
|
97
|
+
...{ style: "width: 100%" },
|
|
98
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_7));
|
|
99
|
+
// @ts-ignore
|
|
100
|
+
[scene,];
|
|
101
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
102
|
+
...{ class: "keyVal" },
|
|
103
|
+
});
|
|
104
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
105
|
+
...{ class: "key" },
|
|
106
|
+
});
|
|
107
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.br)({});
|
|
108
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
109
|
+
...{ class: "val" },
|
|
110
|
+
});
|
|
111
|
+
const __VLS_12 = {}.ElSelect;
|
|
112
|
+
/** @type {[typeof __VLS_components.ElSelect, typeof __VLS_components.elSelect, typeof __VLS_components.ElSelect, typeof __VLS_components.elSelect, ]} */ ;
|
|
113
|
+
// @ts-ignore
|
|
114
|
+
ElSelect;
|
|
115
|
+
// @ts-ignore
|
|
116
|
+
const __VLS_13 = __VLS_asFunctionalComponent(__VLS_12, new __VLS_12({
|
|
117
|
+
modelValue: (__VLS_ctx.scene.zoomType),
|
|
118
|
+
}));
|
|
119
|
+
const __VLS_14 = __VLS_13({
|
|
120
|
+
modelValue: (__VLS_ctx.scene.zoomType),
|
|
121
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_13));
|
|
122
|
+
const { default: __VLS_17 } = __VLS_15.slots;
|
|
123
|
+
// @ts-ignore
|
|
124
|
+
[scene,];
|
|
125
|
+
const __VLS_18 = {}.ElOption;
|
|
126
|
+
/** @type {[typeof __VLS_components.ElOption, typeof __VLS_components.elOption, ]} */ ;
|
|
127
|
+
// @ts-ignore
|
|
128
|
+
ElOption;
|
|
129
|
+
// @ts-ignore
|
|
130
|
+
const __VLS_19 = __VLS_asFunctionalComponent(__VLS_18, new __VLS_18({
|
|
131
|
+
label: "自适应",
|
|
132
|
+
value: "fit",
|
|
133
|
+
}));
|
|
134
|
+
const __VLS_20 = __VLS_19({
|
|
135
|
+
label: "自适应",
|
|
136
|
+
value: "fit",
|
|
137
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_19));
|
|
138
|
+
const __VLS_24 = {}.ElOption;
|
|
139
|
+
/** @type {[typeof __VLS_components.ElOption, typeof __VLS_components.elOption, ]} */ ;
|
|
140
|
+
// @ts-ignore
|
|
141
|
+
ElOption;
|
|
142
|
+
// @ts-ignore
|
|
143
|
+
const __VLS_25 = __VLS_asFunctionalComponent(__VLS_24, new __VLS_24({
|
|
144
|
+
label: "固定比例",
|
|
145
|
+
value: (1),
|
|
146
|
+
}));
|
|
147
|
+
const __VLS_26 = __VLS_25({
|
|
148
|
+
label: "固定比例",
|
|
149
|
+
value: (1),
|
|
150
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_25));
|
|
151
|
+
var __VLS_15;
|
|
152
|
+
/** @type {[typeof Background, ]} */ ;
|
|
153
|
+
// @ts-ignore
|
|
154
|
+
const __VLS_30 = __VLS_asFunctionalComponent(Background, new Background({}));
|
|
155
|
+
const __VLS_31 = __VLS_30({}, ...__VLS_functionalComponentArgsRest(__VLS_30));
|
|
156
|
+
}
|
|
157
|
+
else {
|
|
158
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
159
|
+
...{ class: "noData" },
|
|
160
|
+
});
|
|
161
|
+
const __VLS_35 = {}.ElIcon;
|
|
162
|
+
/** @type {[typeof __VLS_components.ElIcon, typeof __VLS_components.elIcon, typeof __VLS_components.ElIcon, typeof __VLS_components.elIcon, ]} */ ;
|
|
163
|
+
// @ts-ignore
|
|
164
|
+
ElIcon;
|
|
165
|
+
// @ts-ignore
|
|
166
|
+
const __VLS_36 = __VLS_asFunctionalComponent(__VLS_35, new __VLS_35({
|
|
167
|
+
...{ class: "noData_icon" },
|
|
168
|
+
}));
|
|
169
|
+
const __VLS_37 = __VLS_36({
|
|
170
|
+
...{ class: "noData_icon" },
|
|
171
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_36));
|
|
172
|
+
const { default: __VLS_40 } = __VLS_38.slots;
|
|
173
|
+
const __VLS_41 = {}.WarnTriangleFilled;
|
|
174
|
+
/** @type {[typeof __VLS_components.WarnTriangleFilled, ]} */ ;
|
|
175
|
+
// @ts-ignore
|
|
176
|
+
WarnTriangleFilled;
|
|
177
|
+
// @ts-ignore
|
|
178
|
+
const __VLS_42 = __VLS_asFunctionalComponent(__VLS_41, new __VLS_41({}));
|
|
179
|
+
const __VLS_43 = __VLS_42({}, ...__VLS_functionalComponentArgsRest(__VLS_42));
|
|
180
|
+
var __VLS_38;
|
|
181
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.p, __VLS_intrinsics.p)({});
|
|
182
|
+
}
|
|
183
|
+
/** @type {__VLS_StyleScopedClasses['formContainer']} */ ;
|
|
184
|
+
/** @type {__VLS_StyleScopedClasses['form_group']} */ ;
|
|
185
|
+
/** @type {__VLS_StyleScopedClasses['form_group_title']} */ ;
|
|
186
|
+
/** @type {__VLS_StyleScopedClasses['keyVal']} */ ;
|
|
187
|
+
/** @type {__VLS_StyleScopedClasses['key']} */ ;
|
|
188
|
+
/** @type {__VLS_StyleScopedClasses['unit']} */ ;
|
|
189
|
+
/** @type {__VLS_StyleScopedClasses['val']} */ ;
|
|
190
|
+
/** @type {__VLS_StyleScopedClasses['keyVal']} */ ;
|
|
191
|
+
/** @type {__VLS_StyleScopedClasses['key']} */ ;
|
|
192
|
+
/** @type {__VLS_StyleScopedClasses['unit']} */ ;
|
|
193
|
+
/** @type {__VLS_StyleScopedClasses['val']} */ ;
|
|
194
|
+
/** @type {__VLS_StyleScopedClasses['keyVal']} */ ;
|
|
195
|
+
/** @type {__VLS_StyleScopedClasses['key']} */ ;
|
|
196
|
+
/** @type {__VLS_StyleScopedClasses['val']} */ ;
|
|
197
|
+
/** @type {__VLS_StyleScopedClasses['noData']} */ ;
|
|
198
|
+
/** @type {__VLS_StyleScopedClasses['noData_icon']} */ ;
|
|
199
|
+
const __VLS_export = (await import('vue')).defineComponent({});
|
|
200
|
+
export default {};
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
2
3
|
export default _default;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { ref, watch } from 'vue';
|
|
2
|
+
import { storeToRefs } from 'pinia';
|
|
3
|
+
import Scene from './Scene/index.vue';
|
|
4
|
+
import Equipment from './Equipment/index.vue';
|
|
5
|
+
import { useEditorStore } from '@/stores';
|
|
6
|
+
const { currentLayer } = storeToRefs(useEditorStore());
|
|
7
|
+
const activeTab = ref(0);
|
|
8
|
+
watch(currentLayer, (nv) => {
|
|
9
|
+
if (nv) {
|
|
10
|
+
activeTab.value = 1;
|
|
11
|
+
}
|
|
12
|
+
}, { immediate: true });
|
|
13
|
+
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
14
|
+
const __VLS_ctx = {
|
|
15
|
+
...{},
|
|
16
|
+
...{},
|
|
17
|
+
};
|
|
18
|
+
let __VLS_components;
|
|
19
|
+
let __VLS_directives;
|
|
20
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
21
|
+
...{ class: "editParamsForm" },
|
|
22
|
+
});
|
|
23
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
24
|
+
...{ class: "tab" },
|
|
25
|
+
});
|
|
26
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
27
|
+
...{ onClick: (...[$event]) => {
|
|
28
|
+
__VLS_ctx.activeTab = 0;
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
[activeTab,];
|
|
31
|
+
} },
|
|
32
|
+
...{ class: "tab_item" },
|
|
33
|
+
...{ class: ({ tab_item_active: __VLS_ctx.activeTab === 0 }) },
|
|
34
|
+
});
|
|
35
|
+
// @ts-ignore
|
|
36
|
+
[activeTab,];
|
|
37
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
38
|
+
...{ onClick: (...[$event]) => {
|
|
39
|
+
__VLS_ctx.activeTab = 1;
|
|
40
|
+
// @ts-ignore
|
|
41
|
+
[activeTab,];
|
|
42
|
+
} },
|
|
43
|
+
...{ class: "tab_item" },
|
|
44
|
+
...{ class: ({ tab_item_active: __VLS_ctx.activeTab === 1 }) },
|
|
45
|
+
});
|
|
46
|
+
// @ts-ignore
|
|
47
|
+
[activeTab,];
|
|
48
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
49
|
+
...{ class: "container" },
|
|
50
|
+
});
|
|
51
|
+
/** @type {[typeof Scene, ]} */ ;
|
|
52
|
+
// @ts-ignore
|
|
53
|
+
const __VLS_0 = __VLS_asFunctionalComponent(Scene, new Scene({}));
|
|
54
|
+
const __VLS_1 = __VLS_0({}, ...__VLS_functionalComponentArgsRest(__VLS_0));
|
|
55
|
+
__VLS_asFunctionalDirective(__VLS_directives.vShow)(null, { ...__VLS_directiveBindingRestFields, value: (__VLS_ctx.activeTab === 0) }, null, null);
|
|
56
|
+
// @ts-ignore
|
|
57
|
+
[activeTab,];
|
|
58
|
+
/** @type {[typeof Equipment, ]} */ ;
|
|
59
|
+
// @ts-ignore
|
|
60
|
+
const __VLS_5 = __VLS_asFunctionalComponent(Equipment, new Equipment({}));
|
|
61
|
+
const __VLS_6 = __VLS_5({}, ...__VLS_functionalComponentArgsRest(__VLS_5));
|
|
62
|
+
__VLS_asFunctionalDirective(__VLS_directives.vShow)(null, { ...__VLS_directiveBindingRestFields, value: (__VLS_ctx.activeTab === 1) }, null, null);
|
|
63
|
+
// @ts-ignore
|
|
64
|
+
[activeTab,];
|
|
65
|
+
/** @type {__VLS_StyleScopedClasses['editParamsForm']} */ ;
|
|
66
|
+
/** @type {__VLS_StyleScopedClasses['tab']} */ ;
|
|
67
|
+
/** @type {__VLS_StyleScopedClasses['tab_item']} */ ;
|
|
68
|
+
/** @type {__VLS_StyleScopedClasses['tab_item_active']} */ ;
|
|
69
|
+
/** @type {__VLS_StyleScopedClasses['tab_item']} */ ;
|
|
70
|
+
/** @type {__VLS_StyleScopedClasses['tab_item_active']} */ ;
|
|
71
|
+
/** @type {__VLS_StyleScopedClasses['container']} */ ;
|
|
72
|
+
const __VLS_export = (await import('vue')).defineComponent({});
|
|
73
|
+
export default {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ICase } from '
|
|
1
|
+
import type { ICase } from '@/types';
|
|
2
2
|
interface EditorActions {
|
|
3
3
|
/**
|
|
4
4
|
* 加载案例列表
|
|
@@ -21,17 +21,8 @@ interface EditorActions {
|
|
|
21
21
|
type __VLS_Props = {
|
|
22
22
|
actions?: EditorActions;
|
|
23
23
|
};
|
|
24
|
-
declare const
|
|
24
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
25
25
|
actions: EditorActions;
|
|
26
|
-
}, {}, {}, {}, string, import(
|
|
27
|
-
|
|
28
|
-
drawingBoardRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLCanvasElement, import('vue').ComponentProvideOptions, {
|
|
29
|
-
P: {};
|
|
30
|
-
B: {};
|
|
31
|
-
D: {};
|
|
32
|
-
C: {};
|
|
33
|
-
M: {};
|
|
34
|
-
Defaults: {};
|
|
35
|
-
}, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}> | null;
|
|
36
|
-
}, HTMLDivElement>;
|
|
26
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
27
|
+
declare const _default: typeof __VLS_export;
|
|
37
28
|
export default _default;
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import { vLoading } from 'element-plus';
|
|
2
|
+
import { storeToRefs } from 'pinia';
|
|
3
|
+
import { useDataStore } from '@/stores';
|
|
4
|
+
import MenuCard from './MenuCard/index.vue';
|
|
5
|
+
import OptionCard from './OptionCard/index.vue';
|
|
6
|
+
import DrawingBoard from './DrawingBoard.vue';
|
|
7
|
+
import CaseTitleEdit from './ControlBar/CaseTitleEdit.vue';
|
|
8
|
+
import CaseManger from './ControlBar/CaseManger.vue';
|
|
9
|
+
import StepButton from './ControlBar/StepButton.vue';
|
|
10
|
+
import MainButton from './ControlBar/MainButton.vue';
|
|
11
|
+
const props = withDefaults(defineProps(), {
|
|
12
|
+
actions: () => ({})
|
|
13
|
+
});
|
|
14
|
+
const sharedStore = useDataStore();
|
|
15
|
+
const { casesLoading } = storeToRefs(sharedStore);
|
|
16
|
+
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
17
|
+
const __VLS_defaults = {
|
|
18
|
+
actions: () => ({})
|
|
19
|
+
};
|
|
20
|
+
const __VLS_ctx = {
|
|
21
|
+
...{},
|
|
22
|
+
...{},
|
|
23
|
+
...{},
|
|
24
|
+
...{},
|
|
25
|
+
};
|
|
26
|
+
let __VLS_components;
|
|
27
|
+
let __VLS_directives;
|
|
28
|
+
/** @type {__VLS_StyleScopedClasses['main_left']} */ ;
|
|
29
|
+
/** @type {__VLS_StyleScopedClasses['main_right']} */ ;
|
|
30
|
+
/** @type {__VLS_StyleScopedClasses['main_left']} */ ;
|
|
31
|
+
/** @type {__VLS_StyleScopedClasses['main_right']} */ ;
|
|
32
|
+
/** @type {__VLS_StyleScopedClasses['control_bar']} */ ;
|
|
33
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
34
|
+
...{ class: "main" },
|
|
35
|
+
ref: "visualRef",
|
|
36
|
+
'element-loading-background': "rgba(0, 0, 0, 0.5)",
|
|
37
|
+
'element-loading-text': "方案加载中",
|
|
38
|
+
});
|
|
39
|
+
__VLS_asFunctionalDirective(__VLS_directives.vLoading)(null, { ...__VLS_directiveBindingRestFields, value: (__VLS_ctx.casesLoading) }, null, null);
|
|
40
|
+
/** @type {typeof __VLS_ctx.visualRef} */ ;
|
|
41
|
+
// @ts-ignore
|
|
42
|
+
[vLoading, casesLoading, visualRef,];
|
|
43
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
44
|
+
...{ class: "main_left" },
|
|
45
|
+
});
|
|
46
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
47
|
+
...{ class: "main_logo" },
|
|
48
|
+
});
|
|
49
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
50
|
+
...{ class: "main_logo_title" },
|
|
51
|
+
});
|
|
52
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.span, __VLS_intrinsics.span)({
|
|
53
|
+
...{ class: "main_logo_icon" },
|
|
54
|
+
});
|
|
55
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.span, __VLS_intrinsics.span)({});
|
|
56
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.span, __VLS_intrinsics.span)({});
|
|
57
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({});
|
|
58
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.span, __VLS_intrinsics.span)({
|
|
59
|
+
...{ class: "main_logo_title_text" },
|
|
60
|
+
});
|
|
61
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.i, __VLS_intrinsics.i)({
|
|
62
|
+
...{ class: "main_logo_title_version" },
|
|
63
|
+
});
|
|
64
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
65
|
+
...{ class: "main_logo_intro" },
|
|
66
|
+
});
|
|
67
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.p, __VLS_intrinsics.p)({});
|
|
68
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.p, __VLS_intrinsics.p)({});
|
|
69
|
+
/** @type {[typeof MenuCard, ]} */ ;
|
|
70
|
+
// @ts-ignore
|
|
71
|
+
const __VLS_0 = __VLS_asFunctionalComponent(MenuCard, new MenuCard({}));
|
|
72
|
+
const __VLS_1 = __VLS_0({}, ...__VLS_functionalComponentArgsRest(__VLS_0));
|
|
73
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
74
|
+
...{ class: "main_mid" },
|
|
75
|
+
});
|
|
76
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
77
|
+
...{ class: "control_bar" },
|
|
78
|
+
});
|
|
79
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
80
|
+
...{ class: "control_bar_left" },
|
|
81
|
+
});
|
|
82
|
+
/** @type {[typeof CaseTitleEdit, ]} */ ;
|
|
83
|
+
// @ts-ignore
|
|
84
|
+
const __VLS_5 = __VLS_asFunctionalComponent(CaseTitleEdit, new CaseTitleEdit({}));
|
|
85
|
+
const __VLS_6 = __VLS_5({}, ...__VLS_functionalComponentArgsRest(__VLS_5));
|
|
86
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
87
|
+
...{ class: "control_bar_right" },
|
|
88
|
+
});
|
|
89
|
+
/** @type {[typeof CaseManger, ]} */ ;
|
|
90
|
+
// @ts-ignore
|
|
91
|
+
const __VLS_10 = __VLS_asFunctionalComponent(CaseManger, new CaseManger({
|
|
92
|
+
loadCases: (props.actions.loadCases),
|
|
93
|
+
saveCases: (props.actions.saveCases),
|
|
94
|
+
}));
|
|
95
|
+
const __VLS_11 = __VLS_10({
|
|
96
|
+
loadCases: (props.actions.loadCases),
|
|
97
|
+
saveCases: (props.actions.saveCases),
|
|
98
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_10));
|
|
99
|
+
/** @type {[typeof StepButton, ]} */ ;
|
|
100
|
+
// @ts-ignore
|
|
101
|
+
const __VLS_15 = __VLS_asFunctionalComponent(StepButton, new StepButton({}));
|
|
102
|
+
const __VLS_16 = __VLS_15({}, ...__VLS_functionalComponentArgsRest(__VLS_15));
|
|
103
|
+
/** @type {[typeof MainButton, ]} */ ;
|
|
104
|
+
// @ts-ignore
|
|
105
|
+
const __VLS_20 = __VLS_asFunctionalComponent(MainButton, new MainButton({
|
|
106
|
+
handlePreview: (props.actions.handlePreview),
|
|
107
|
+
handleExit: (props.actions.handleExit),
|
|
108
|
+
}));
|
|
109
|
+
const __VLS_21 = __VLS_20({
|
|
110
|
+
handlePreview: (props.actions.handlePreview),
|
|
111
|
+
handleExit: (props.actions.handleExit),
|
|
112
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_20));
|
|
113
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
114
|
+
...{ class: "main_mid_content" },
|
|
115
|
+
});
|
|
116
|
+
/** @type {[typeof DrawingBoard, ]} */ ;
|
|
117
|
+
// @ts-ignore
|
|
118
|
+
const __VLS_25 = __VLS_asFunctionalComponent(DrawingBoard, new DrawingBoard({
|
|
119
|
+
ref: "drawingBoardRef",
|
|
120
|
+
}));
|
|
121
|
+
const __VLS_26 = __VLS_25({
|
|
122
|
+
ref: "drawingBoardRef",
|
|
123
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_25));
|
|
124
|
+
/** @type {typeof __VLS_ctx.drawingBoardRef} */ ;
|
|
125
|
+
var __VLS_29 = {};
|
|
126
|
+
// @ts-ignore
|
|
127
|
+
[drawingBoardRef,];
|
|
128
|
+
var __VLS_27;
|
|
129
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
130
|
+
...{ class: "main_right" },
|
|
131
|
+
});
|
|
132
|
+
/** @type {[typeof OptionCard, ]} */ ;
|
|
133
|
+
// @ts-ignore
|
|
134
|
+
const __VLS_32 = __VLS_asFunctionalComponent(OptionCard, new OptionCard({}));
|
|
135
|
+
const __VLS_33 = __VLS_32({}, ...__VLS_functionalComponentArgsRest(__VLS_32));
|
|
136
|
+
/** @type {__VLS_StyleScopedClasses['main']} */ ;
|
|
137
|
+
/** @type {__VLS_StyleScopedClasses['main_left']} */ ;
|
|
138
|
+
/** @type {__VLS_StyleScopedClasses['main_logo']} */ ;
|
|
139
|
+
/** @type {__VLS_StyleScopedClasses['main_logo_title']} */ ;
|
|
140
|
+
/** @type {__VLS_StyleScopedClasses['main_logo_icon']} */ ;
|
|
141
|
+
/** @type {__VLS_StyleScopedClasses['main_logo_title_text']} */ ;
|
|
142
|
+
/** @type {__VLS_StyleScopedClasses['main_logo_title_version']} */ ;
|
|
143
|
+
/** @type {__VLS_StyleScopedClasses['main_logo_intro']} */ ;
|
|
144
|
+
/** @type {__VLS_StyleScopedClasses['main_mid']} */ ;
|
|
145
|
+
/** @type {__VLS_StyleScopedClasses['control_bar']} */ ;
|
|
146
|
+
/** @type {__VLS_StyleScopedClasses['control_bar_left']} */ ;
|
|
147
|
+
/** @type {__VLS_StyleScopedClasses['control_bar_right']} */ ;
|
|
148
|
+
/** @type {__VLS_StyleScopedClasses['main_mid_content']} */ ;
|
|
149
|
+
/** @type {__VLS_StyleScopedClasses['main_right']} */ ;
|
|
150
|
+
// @ts-ignore
|
|
151
|
+
var __VLS_30 = __VLS_29;
|
|
152
|
+
const __VLS_export = (await import('vue')).defineComponent({
|
|
153
|
+
__typeProps: {},
|
|
154
|
+
props: {},
|
|
155
|
+
});
|
|
156
|
+
export default {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import LingshuSmartEditor from './editor/index.vue';
|
|
2
|
+
import LingshuSmartPreview from './preview/index.vue';
|
|
3
3
|
export { LingshuSmartEditor, LingshuSmartPreview };
|