@jnrs/lingshu-smart 2.2.8 → 2.2.10
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 +1 -2
- package/dist/assets/data/editor_default_setting.d.ts +1 -8
- package/dist/assets/data/editor_preset_menu.d.ts +1 -8
- package/dist/components/editor/ControlBar/CaseManger.vue.d.ts +15 -3
- package/dist/components/editor/ControlBar/CaseTitleEdit.vue.d.ts +411 -2
- package/dist/components/editor/ControlBar/ExportImportDialog.vue.d.ts +2 -3
- package/dist/components/editor/ControlBar/MainButton.vue.d.ts +2 -3
- package/dist/components/editor/ControlBar/StepButton.vue.d.ts +1 -2
- package/dist/components/editor/ControlBar/StepRecordVisualizer.vue.d.ts +1 -2
- package/dist/components/editor/DrawingBoard.vue.d.ts +1 -2
- package/dist/components/editor/MenuCard/Equipments.vue.d.ts +1 -2
- package/dist/components/editor/MenuCard/Layers.vue.d.ts +1 -2
- package/dist/components/editor/MenuCard/index.vue.d.ts +1 -2
- package/dist/components/editor/OptionCard/Equipment/Base.vue.d.ts +1 -2
- package/dist/components/editor/OptionCard/Equipment/DataSets.vue.d.ts +1 -2
- package/dist/components/editor/OptionCard/Equipment/Interaction.vue.d.ts +1 -2
- package/dist/components/editor/OptionCard/Equipment/Position.vue.d.ts +1 -2
- package/dist/components/editor/OptionCard/Equipment/StationSlotGroup.vue.d.ts +1 -2
- package/dist/components/editor/OptionCard/Equipment/index.vue.d.ts +1 -2
- package/dist/components/editor/OptionCard/Equipment/models/MachineTool.vue.d.ts +1 -2
- package/dist/components/editor/OptionCard/Equipment/models/Rail.vue.d.ts +1 -2
- package/dist/components/editor/OptionCard/Equipment/models/SingleJointRobot.vue.d.ts +2 -0
- package/dist/components/editor/OptionCard/Scene/Background.vue.d.ts +1 -2
- package/dist/components/editor/OptionCard/Scene/index.vue.d.ts +1 -2
- package/dist/components/editor/OptionCard/index.vue.d.ts +1 -2
- package/dist/components/editor/index.vue.d.ts +13 -4
- package/dist/components/index.d.ts +2 -2
- package/dist/components/index.js +27281 -4
- package/dist/components/preview/index.vue.d.ts +5 -6
- package/dist/composables/useStepRecord.d.ts +4 -12
- package/dist/constants/options.d.ts +1 -8
- package/dist/controller/AppController.d.ts +3 -10
- package/dist/controller/EditorController.d.ts +2 -9
- package/dist/index.js +1 -1
- package/dist/json/cases.json +577 -20
- package/dist/locales/i18next.d.ts +1 -1
- package/dist/locales/index.d.ts +2 -2
- package/dist/locales/index.js +13 -3
- package/dist/main.d.ts +0 -3
- package/dist/playground/EditPageDemo.vue.d.ts +1 -2
- package/dist/playground/ViewPageDemo.vue.d.ts +27 -2
- package/dist/stores/useAppStore.d.ts +5 -12
- package/dist/stores/useDataStore.d.ts +11 -18
- package/dist/stores/useEditorStore.d.ts +20 -27
- package/dist/types/app.types.d.ts +1 -1
- package/dist/types/base.types.d.ts +1 -1
- package/dist/types/components/config.types.d.ts +1 -1
- package/dist/types/components/operating.types.d.ts +1 -1
- package/dist/types/enums.d.ts +1 -1
- package/dist/types/guards.d.ts +5 -12
- package/dist/types/index.d.ts +2 -2
- package/dist/types/models/config.types.d.ts +49 -47
- package/dist/types/models/operating.types.d.ts +53 -53
- package/dist/ui/abstract/ComponentAbs.d.ts +2 -9
- package/dist/ui/abstract/ModelAbs.d.ts +2 -10
- package/dist/ui/components/Entrance.d.ts +1 -8
- package/dist/ui/components/Light.d.ts +1 -8
- package/dist/ui/components/Progress.d.ts +1 -8
- package/dist/ui/components/Resource.d.ts +1 -8
- package/dist/ui/components/StationSlot.d.ts +1 -23
- package/dist/ui/components/StationSlotGroup.d.ts +1 -8
- package/dist/ui/factories/createGlass.d.ts +0 -6
- package/dist/ui/factories/createModel.d.ts +2 -9
- package/dist/ui/factories/createShadow.d.ts +1 -9
- package/dist/ui/factories/createText.d.ts +0 -7
- package/dist/ui/models/CleaningMachine.d.ts +1 -1
- package/dist/ui/models/DoubleJointRobot.d.ts +19 -20
- package/dist/ui/models/LoadingStation.d.ts +1 -1
- package/dist/ui/models/MachineTool.d.ts +1 -1
- package/dist/ui/models/MarkingMachine.d.ts +1 -1
- package/dist/ui/models/Rail.d.ts +1 -1
- package/dist/ui/models/ResourceStore.d.ts +1 -1
- package/dist/ui/models/SingleJointRobot.d.ts +3 -3
- package/dist/ui/shapes/NamePlate.d.ts +0 -7
- package/dist/ui/shapes/ScrewHole.d.ts +0 -7
- package/dist/ui/shapes/Texture.d.ts +1 -8
- package/dist/ui/utils/attr.d.ts +2 -9
- package/dist/utils/type-guards.d.ts +1 -1
- package/package.json +3 -3
- package/dist/App.vue.js +0 -30
- package/dist/assets/data/editor_default.d.ts +0 -16
- package/dist/assets/data/editor_default.js +0 -59
- package/dist/assets/data/editor_default_setting.js +0 -58
- package/dist/assets/data/editor_preset.d.ts +0 -9
- package/dist/assets/data/editor_preset.js +0 -51
- package/dist/assets/data/editor_preset_menu.js +0 -290
- package/dist/components/editor/ControlBar/CaseManger.vue.js +0 -465
- package/dist/components/editor/ControlBar/CaseTitleEdit.vue.js +0 -108
- package/dist/components/editor/ControlBar/ExportImportDialog.vue.js +0 -280
- package/dist/components/editor/ControlBar/MainButton.vue.js +0 -183
- package/dist/components/editor/ControlBar/StepButton.vue.js +0 -147
- package/dist/components/editor/ControlBar/StepRecordVisualizer.vue.js +0 -98
- package/dist/components/editor/DrawingBoard.vue.js +0 -31
- package/dist/components/editor/MenuCard/Equipments.vue.js +0 -129
- package/dist/components/editor/MenuCard/Layers.vue.js +0 -201
- package/dist/components/editor/MenuCard/index.vue.js +0 -84
- package/dist/components/editor/OptionCard/Equipment/Base.vue.js +0 -96
- package/dist/components/editor/OptionCard/Equipment/Binds.vue.d.ts +0 -3
- package/dist/components/editor/OptionCard/Equipment/Binds.vue.js +0 -443
- package/dist/components/editor/OptionCard/Equipment/Bot.vue.d.ts +0 -3
- package/dist/components/editor/OptionCard/Equipment/Bot.vue.js +0 -81
- package/dist/components/editor/OptionCard/Equipment/DataSets.vue.js +0 -304
- package/dist/components/editor/OptionCard/Equipment/DockStore.vue.d.ts +0 -3
- package/dist/components/editor/OptionCard/Equipment/DockStore.vue.js +0 -597
- package/dist/components/editor/OptionCard/Equipment/Interaction.vue.js +0 -287
- package/dist/components/editor/OptionCard/Equipment/Position.backup.vue.d.ts +0 -3
- package/dist/components/editor/OptionCard/Equipment/Position.backup.vue.js +0 -440
- package/dist/components/editor/OptionCard/Equipment/Position.vue.js +0 -436
- package/dist/components/editor/OptionCard/Equipment/StationSlotGroup.vue.js +0 -1131
- package/dist/components/editor/OptionCard/Equipment/Store.vue.d.ts +0 -3
- package/dist/components/editor/OptionCard/Equipment/Store.vue.js +0 -453
- package/dist/components/editor/OptionCard/Equipment/Trailer.vue.d.ts +0 -3
- package/dist/components/editor/OptionCard/Equipment/Trailer.vue.js +0 -1109
- package/dist/components/editor/OptionCard/Equipment/index.vue.js +0 -100
- package/dist/components/editor/OptionCard/Equipment/models/MachineTool.vue.js +0 -99
- package/dist/components/editor/OptionCard/Equipment/models/Rail.vue.js +0 -225
- package/dist/components/editor/OptionCard/Equipment/models/SingleGripperRobot.vue.d.ts +0 -3
- package/dist/components/editor/OptionCard/Equipment/models/SingleGripperRobot.vue.js +0 -99
- package/dist/components/editor/OptionCard/Scene/Background.vue.js +0 -543
- package/dist/components/editor/OptionCard/Scene/index.vue.js +0 -200
- package/dist/components/editor/OptionCard/index.vue.js +0 -73
- package/dist/components/editor/index.vue.js +0 -156
- package/dist/components/preview/index.vue.js +0 -104
- package/dist/composables/useStepRecord.js +0 -135
- package/dist/constants/options.js +0 -55
- package/dist/controller/AppController.js +0 -168
- package/dist/controller/EditorController.js +0 -173
- package/dist/locales/en.js +0 -5
- package/dist/locales/i18next.js +0 -6
- package/dist/locales/zhCn.js +0 -5
- package/dist/main.js +0 -13
- package/dist/playground/EditPageDemo.vue.js +0 -57
- package/dist/playground/ViewPageDemo.vue.js +0 -277
- package/dist/stores/index.js +0 -3
- package/dist/stores/useAppStore.js +0 -78
- package/dist/stores/useDataStore.js +0 -116
- package/dist/stores/useEditorStore.js +0 -263
- package/dist/types/app.types.js +0 -2
- package/dist/types/base.types.js +0 -1
- package/dist/types/components/config.types.js +0 -1
- package/dist/types/components/operating.types.js +0 -1
- package/dist/types/enums.js +0 -46
- package/dist/types/guards.js +0 -28
- package/dist/types/index.js +0 -8
- package/dist/types/models/config.types.js +0 -1
- package/dist/types/models/operating.types.js +0 -1
- package/dist/ui/abstract/ComponentAbs.js +0 -64
- package/dist/ui/abstract/ModelAbs.js +0 -119
- package/dist/ui/components/Entrance.js +0 -83
- package/dist/ui/components/Light.js +0 -167
- package/dist/ui/components/Progress.js +0 -84
- package/dist/ui/components/Resource.js +0 -70
- package/dist/ui/components/StationSlot.js +0 -207
- package/dist/ui/components/StationSlotGroup.js +0 -110
- package/dist/ui/factories/createGlass.js +0 -51
- package/dist/ui/factories/createModel.js +0 -35
- package/dist/ui/factories/createShadow.js +0 -52
- package/dist/ui/factories/createText.js +0 -46
- package/dist/ui/models/CleaningMachine.js +0 -141
- package/dist/ui/models/DoubleJointRobot.js +0 -545
- package/dist/ui/models/LoadingStation.js +0 -167
- package/dist/ui/models/MachineTool.js +0 -184
- package/dist/ui/models/MarkingMachine.js +0 -148
- package/dist/ui/models/Rail.js +0 -117
- package/dist/ui/models/ResourceStore.js +0 -101
- package/dist/ui/models/SingleBot.d.ts +0 -20
- package/dist/ui/models/SingleBot.js +0 -202
- package/dist/ui/models/SingleGripperRobot.d.ts +0 -19
- package/dist/ui/models/SingleGripperRobot.js +0 -272
- package/dist/ui/models/SingleJointRobot.js +0 -346
- package/dist/ui/shapes/NamePlate.js +0 -85
- package/dist/ui/shapes/ScrewHole.js +0 -57
- package/dist/ui/shapes/Texture.js +0 -51
- package/dist/ui/utils/attr.js +0 -50
- package/dist/utils/index.js +0 -92
- package/dist/utils/type-guards.js +0 -105
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import { ElIcon, vLoading, ElInputNumber, ElSelect, ElOption } from 'element-plus';
|
|
2
|
-
import { isRail } from '@/types';
|
|
3
|
-
import { WarnTriangleFilled } from '@element-plus/icons-vue';
|
|
4
|
-
import { useEditorStore } from '@/stores';
|
|
5
|
-
import Base from './Base.vue';
|
|
6
|
-
import Position from './Position.vue';
|
|
7
|
-
import DataSets from './DataSets.vue';
|
|
8
|
-
import Interaction from './Interaction.vue';
|
|
9
|
-
import StationSlotGroup from './StationSlotGroup.vue';
|
|
10
|
-
import MachineTool from './models/MachineTool.vue';
|
|
11
|
-
import SingleJointRobot from './models/SingleJointRobot.vue';
|
|
12
|
-
import Rail from './models/Rail.vue';
|
|
13
|
-
// import Binds from './Binds.vue'
|
|
14
|
-
// import Bot from './Bot.vue'
|
|
15
|
-
// import Store from './Store.vue'
|
|
16
|
-
// import DockStore from './DockStore.vue'
|
|
17
|
-
// import Trailer from './Trailer.vue'
|
|
18
|
-
//// import { useFmsVisualEditStore } from '@/stores'
|
|
19
|
-
const editorStore = useEditorStore();
|
|
20
|
-
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
21
|
-
const __VLS_ctx = {
|
|
22
|
-
...{},
|
|
23
|
-
...{},
|
|
24
|
-
};
|
|
25
|
-
let __VLS_components;
|
|
26
|
-
let __VLS_directives;
|
|
27
|
-
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
28
|
-
...{ class: "formContainer" },
|
|
29
|
-
});
|
|
30
|
-
if (__VLS_ctx.editorStore.currentLayer) {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
[editorStore,];
|
|
33
|
-
/** @type {[typeof Base, ]} */ ;
|
|
34
|
-
// @ts-ignore
|
|
35
|
-
const __VLS_0 = __VLS_asFunctionalComponent(Base, new Base({}));
|
|
36
|
-
const __VLS_1 = __VLS_0({}, ...__VLS_functionalComponentArgsRest(__VLS_0));
|
|
37
|
-
/** @type {[typeof Position, ]} */ ;
|
|
38
|
-
// @ts-ignore
|
|
39
|
-
const __VLS_5 = __VLS_asFunctionalComponent(Position, new Position({}));
|
|
40
|
-
const __VLS_6 = __VLS_5({}, ...__VLS_functionalComponentArgsRest(__VLS_5));
|
|
41
|
-
/** @type {[typeof DataSets, ]} */ ;
|
|
42
|
-
// @ts-ignore
|
|
43
|
-
const __VLS_10 = __VLS_asFunctionalComponent(DataSets, new DataSets({}));
|
|
44
|
-
const __VLS_11 = __VLS_10({}, ...__VLS_functionalComponentArgsRest(__VLS_10));
|
|
45
|
-
/** @type {[typeof Interaction, ]} */ ;
|
|
46
|
-
// @ts-ignore
|
|
47
|
-
const __VLS_15 = __VLS_asFunctionalComponent(Interaction, new Interaction({}));
|
|
48
|
-
const __VLS_16 = __VLS_15({}, ...__VLS_functionalComponentArgsRest(__VLS_15));
|
|
49
|
-
/** @type {[typeof MachineTool, ]} */ ;
|
|
50
|
-
// @ts-ignore
|
|
51
|
-
const __VLS_20 = __VLS_asFunctionalComponent(MachineTool, new MachineTool({}));
|
|
52
|
-
const __VLS_21 = __VLS_20({}, ...__VLS_functionalComponentArgsRest(__VLS_20));
|
|
53
|
-
/** @type {[typeof SingleJointRobot, ]} */ ;
|
|
54
|
-
// @ts-ignore
|
|
55
|
-
const __VLS_25 = __VLS_asFunctionalComponent(SingleJointRobot, new SingleJointRobot({}));
|
|
56
|
-
const __VLS_26 = __VLS_25({}, ...__VLS_functionalComponentArgsRest(__VLS_25));
|
|
57
|
-
if (__VLS_ctx.isRail(__VLS_ctx.editorStore.currentLayer)) {
|
|
58
|
-
// @ts-ignore
|
|
59
|
-
[editorStore, isRail,];
|
|
60
|
-
/** @type {[typeof Rail, ]} */ ;
|
|
61
|
-
// @ts-ignore
|
|
62
|
-
const __VLS_30 = __VLS_asFunctionalComponent(Rail, new Rail({}));
|
|
63
|
-
const __VLS_31 = __VLS_30({}, ...__VLS_functionalComponentArgsRest(__VLS_30));
|
|
64
|
-
}
|
|
65
|
-
/** @type {[typeof StationSlotGroup, ]} */ ;
|
|
66
|
-
// @ts-ignore
|
|
67
|
-
const __VLS_35 = __VLS_asFunctionalComponent(StationSlotGroup, new StationSlotGroup({}));
|
|
68
|
-
const __VLS_36 = __VLS_35({}, ...__VLS_functionalComponentArgsRest(__VLS_35));
|
|
69
|
-
}
|
|
70
|
-
else {
|
|
71
|
-
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
72
|
-
...{ class: "noData" },
|
|
73
|
-
});
|
|
74
|
-
const __VLS_40 = {}.ElIcon;
|
|
75
|
-
/** @type {[typeof __VLS_components.ElIcon, typeof __VLS_components.elIcon, typeof __VLS_components.ElIcon, typeof __VLS_components.elIcon, ]} */ ;
|
|
76
|
-
// @ts-ignore
|
|
77
|
-
ElIcon;
|
|
78
|
-
// @ts-ignore
|
|
79
|
-
const __VLS_41 = __VLS_asFunctionalComponent(__VLS_40, new __VLS_40({
|
|
80
|
-
...{ class: "noData_icon" },
|
|
81
|
-
}));
|
|
82
|
-
const __VLS_42 = __VLS_41({
|
|
83
|
-
...{ class: "noData_icon" },
|
|
84
|
-
}, ...__VLS_functionalComponentArgsRest(__VLS_41));
|
|
85
|
-
const { default: __VLS_45 } = __VLS_43.slots;
|
|
86
|
-
const __VLS_46 = {}.WarnTriangleFilled;
|
|
87
|
-
/** @type {[typeof __VLS_components.WarnTriangleFilled, ]} */ ;
|
|
88
|
-
// @ts-ignore
|
|
89
|
-
WarnTriangleFilled;
|
|
90
|
-
// @ts-ignore
|
|
91
|
-
const __VLS_47 = __VLS_asFunctionalComponent(__VLS_46, new __VLS_46({}));
|
|
92
|
-
const __VLS_48 = __VLS_47({}, ...__VLS_functionalComponentArgsRest(__VLS_47));
|
|
93
|
-
var __VLS_43;
|
|
94
|
-
__VLS_asFunctionalElement(__VLS_intrinsics.p, __VLS_intrinsics.p)({});
|
|
95
|
-
}
|
|
96
|
-
/** @type {__VLS_StyleScopedClasses['formContainer']} */ ;
|
|
97
|
-
/** @type {__VLS_StyleScopedClasses['noData']} */ ;
|
|
98
|
-
/** @type {__VLS_StyleScopedClasses['noData_icon']} */ ;
|
|
99
|
-
const __VLS_export = (await import('vue')).defineComponent({});
|
|
100
|
-
export default {};
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { computed } from 'vue';
|
|
2
|
-
import { storeToRefs } from 'pinia';
|
|
3
|
-
import { ElSelect, ElOption } from 'element-plus';
|
|
4
|
-
import { isMachineTool } from '@/types';
|
|
5
|
-
import { useEditorStore } from '@/stores';
|
|
6
|
-
const editorStore = useEditorStore();
|
|
7
|
-
const { currentLayer } = storeToRefs(editorStore);
|
|
8
|
-
const stationContainerDirection = computed({
|
|
9
|
-
get() {
|
|
10
|
-
if (!isMachineTool(currentLayer.value))
|
|
11
|
-
return 'horizontal';
|
|
12
|
-
return currentLayer.value.stationContainerDirection ?? 'horizontal';
|
|
13
|
-
},
|
|
14
|
-
set(value) {
|
|
15
|
-
if (!isMachineTool(currentLayer.value))
|
|
16
|
-
return;
|
|
17
|
-
currentLayer.value.stationContainerDirection = value;
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
21
|
-
const __VLS_ctx = {
|
|
22
|
-
...{},
|
|
23
|
-
...{},
|
|
24
|
-
};
|
|
25
|
-
let __VLS_components;
|
|
26
|
-
let __VLS_directives;
|
|
27
|
-
if (__VLS_ctx.isMachineTool(__VLS_ctx.currentLayer)) {
|
|
28
|
-
// @ts-ignore
|
|
29
|
-
[isMachineTool, currentLayer,];
|
|
30
|
-
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
31
|
-
...{ class: "form_group" },
|
|
32
|
-
});
|
|
33
|
-
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
34
|
-
...{ class: "form_group_title" },
|
|
35
|
-
});
|
|
36
|
-
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
37
|
-
...{ class: "keyVal" },
|
|
38
|
-
});
|
|
39
|
-
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
40
|
-
...{ class: "key" },
|
|
41
|
-
});
|
|
42
|
-
__VLS_asFunctionalElement(__VLS_intrinsics.span, __VLS_intrinsics.span)({
|
|
43
|
-
...{ class: "unit" },
|
|
44
|
-
});
|
|
45
|
-
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
46
|
-
...{ class: "val" },
|
|
47
|
-
});
|
|
48
|
-
const __VLS_0 = {}.ElSelect;
|
|
49
|
-
/** @type {[typeof __VLS_components.ElSelect, typeof __VLS_components.elSelect, typeof __VLS_components.ElSelect, typeof __VLS_components.elSelect, ]} */ ;
|
|
50
|
-
// @ts-ignore
|
|
51
|
-
ElSelect;
|
|
52
|
-
// @ts-ignore
|
|
53
|
-
const __VLS_1 = __VLS_asFunctionalComponent(__VLS_0, new __VLS_0({
|
|
54
|
-
modelValue: (__VLS_ctx.stationContainerDirection),
|
|
55
|
-
...{ style: "width: 100%" },
|
|
56
|
-
}));
|
|
57
|
-
const __VLS_2 = __VLS_1({
|
|
58
|
-
modelValue: (__VLS_ctx.stationContainerDirection),
|
|
59
|
-
...{ style: "width: 100%" },
|
|
60
|
-
}, ...__VLS_functionalComponentArgsRest(__VLS_1));
|
|
61
|
-
const { default: __VLS_5 } = __VLS_3.slots;
|
|
62
|
-
// @ts-ignore
|
|
63
|
-
[stationContainerDirection,];
|
|
64
|
-
const __VLS_6 = {}.ElOption;
|
|
65
|
-
/** @type {[typeof __VLS_components.ElOption, typeof __VLS_components.elOption, ]} */ ;
|
|
66
|
-
// @ts-ignore
|
|
67
|
-
ElOption;
|
|
68
|
-
// @ts-ignore
|
|
69
|
-
const __VLS_7 = __VLS_asFunctionalComponent(__VLS_6, new __VLS_6({
|
|
70
|
-
label: "横向",
|
|
71
|
-
value: "horizontal",
|
|
72
|
-
}));
|
|
73
|
-
const __VLS_8 = __VLS_7({
|
|
74
|
-
label: "横向",
|
|
75
|
-
value: "horizontal",
|
|
76
|
-
}, ...__VLS_functionalComponentArgsRest(__VLS_7));
|
|
77
|
-
const __VLS_12 = {}.ElOption;
|
|
78
|
-
/** @type {[typeof __VLS_components.ElOption, typeof __VLS_components.elOption, ]} */ ;
|
|
79
|
-
// @ts-ignore
|
|
80
|
-
ElOption;
|
|
81
|
-
// @ts-ignore
|
|
82
|
-
const __VLS_13 = __VLS_asFunctionalComponent(__VLS_12, new __VLS_12({
|
|
83
|
-
label: "纵向",
|
|
84
|
-
value: "vertical",
|
|
85
|
-
}));
|
|
86
|
-
const __VLS_14 = __VLS_13({
|
|
87
|
-
label: "纵向",
|
|
88
|
-
value: "vertical",
|
|
89
|
-
}, ...__VLS_functionalComponentArgsRest(__VLS_13));
|
|
90
|
-
var __VLS_3;
|
|
91
|
-
}
|
|
92
|
-
/** @type {__VLS_StyleScopedClasses['form_group']} */ ;
|
|
93
|
-
/** @type {__VLS_StyleScopedClasses['form_group_title']} */ ;
|
|
94
|
-
/** @type {__VLS_StyleScopedClasses['keyVal']} */ ;
|
|
95
|
-
/** @type {__VLS_StyleScopedClasses['key']} */ ;
|
|
96
|
-
/** @type {__VLS_StyleScopedClasses['unit']} */ ;
|
|
97
|
-
/** @type {__VLS_StyleScopedClasses['val']} */ ;
|
|
98
|
-
const __VLS_export = (await import('vue')).defineComponent({});
|
|
99
|
-
export default {};
|
|
@@ -1,225 +0,0 @@
|
|
|
1
|
-
import { computed } from 'vue';
|
|
2
|
-
import { storeToRefs } from 'pinia';
|
|
3
|
-
import { ElSelect, ElOption, ElTag } from 'element-plus';
|
|
4
|
-
import { isRail, EnumTag } from '@/types';
|
|
5
|
-
import { useEditorStore } from '@/stores';
|
|
6
|
-
import { transPercentAndPixel } from '@/utils';
|
|
7
|
-
const editorStore = useEditorStore();
|
|
8
|
-
const { currentLayer, layers, scene } = storeToRefs(editorStore);
|
|
9
|
-
const { updateLayer } = editorStore;
|
|
10
|
-
// 获取所有运输设备(tags 包含 TRANSPORT 的设备)
|
|
11
|
-
const transportEquipments = computed(() => {
|
|
12
|
-
return layers.value.filter((layer) => {
|
|
13
|
-
// 排除当前轨道本身
|
|
14
|
-
if (layer.uuid === currentLayer.value?.uuid)
|
|
15
|
-
return false;
|
|
16
|
-
// 检查 tags 是否包含 TRANSPORT
|
|
17
|
-
return layer.tags?.includes(EnumTag.TRANSPORT);
|
|
18
|
-
});
|
|
19
|
-
});
|
|
20
|
-
const chainDirection = computed({
|
|
21
|
-
get() {
|
|
22
|
-
if (!isRail(currentLayer.value))
|
|
23
|
-
return 'left';
|
|
24
|
-
return currentLayer.value.chainDirection ?? 'left';
|
|
25
|
-
},
|
|
26
|
-
set(value) {
|
|
27
|
-
if (!isRail(currentLayer.value))
|
|
28
|
-
return;
|
|
29
|
-
currentLayer.value.chainDirection = value;
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
const linkEquipIdArray = computed({
|
|
33
|
-
get() {
|
|
34
|
-
if (!isRail(currentLayer.value))
|
|
35
|
-
return [];
|
|
36
|
-
return currentLayer.value.linkEquipIdArray ?? [];
|
|
37
|
-
},
|
|
38
|
-
set(value) {
|
|
39
|
-
if (!isRail(currentLayer.value))
|
|
40
|
-
return;
|
|
41
|
-
currentLayer.value.linkEquipIdArray = value;
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
// 处理多选变化
|
|
45
|
-
const handleEquipChange = (values) => {
|
|
46
|
-
linkEquipIdArray.value = values;
|
|
47
|
-
const rail = currentLayer.value;
|
|
48
|
-
if (!isRail(rail))
|
|
49
|
-
return;
|
|
50
|
-
const sw = scene.value?.width;
|
|
51
|
-
const sh = scene.value?.height;
|
|
52
|
-
for (const uuid of values) {
|
|
53
|
-
const layer = layers.value.find((l) => l.uuid === uuid);
|
|
54
|
-
if (!layer)
|
|
55
|
-
continue;
|
|
56
|
-
layer.x = rail.x;
|
|
57
|
-
layer.y = rail.y;
|
|
58
|
-
layer.percentX = transPercentAndPixel(rail.x, sw, 3, true);
|
|
59
|
-
layer.percentY = transPercentAndPixel(rail.y, sh, 3, true);
|
|
60
|
-
updateLayer(layer);
|
|
61
|
-
}
|
|
62
|
-
};
|
|
63
|
-
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
64
|
-
const __VLS_ctx = {
|
|
65
|
-
...{},
|
|
66
|
-
...{},
|
|
67
|
-
};
|
|
68
|
-
let __VLS_components;
|
|
69
|
-
let __VLS_directives;
|
|
70
|
-
if (__VLS_ctx.isRail(__VLS_ctx.currentLayer)) {
|
|
71
|
-
// @ts-ignore
|
|
72
|
-
[isRail, currentLayer,];
|
|
73
|
-
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
74
|
-
...{ class: "form_group" },
|
|
75
|
-
});
|
|
76
|
-
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
77
|
-
...{ class: "form_group_title" },
|
|
78
|
-
});
|
|
79
|
-
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
80
|
-
...{ class: "keyVal" },
|
|
81
|
-
});
|
|
82
|
-
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
83
|
-
...{ class: "key" },
|
|
84
|
-
});
|
|
85
|
-
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
86
|
-
...{ class: "val" },
|
|
87
|
-
});
|
|
88
|
-
const __VLS_0 = {}.ElSelect;
|
|
89
|
-
/** @type {[typeof __VLS_components.ElSelect, typeof __VLS_components.elSelect, typeof __VLS_components.ElSelect, typeof __VLS_components.elSelect, ]} */ ;
|
|
90
|
-
// @ts-ignore
|
|
91
|
-
ElSelect;
|
|
92
|
-
// @ts-ignore
|
|
93
|
-
const __VLS_1 = __VLS_asFunctionalComponent(__VLS_0, new __VLS_0({
|
|
94
|
-
modelValue: (__VLS_ctx.chainDirection),
|
|
95
|
-
...{ style: "width: 100%" },
|
|
96
|
-
}));
|
|
97
|
-
const __VLS_2 = __VLS_1({
|
|
98
|
-
modelValue: (__VLS_ctx.chainDirection),
|
|
99
|
-
...{ style: "width: 100%" },
|
|
100
|
-
}, ...__VLS_functionalComponentArgsRest(__VLS_1));
|
|
101
|
-
const { default: __VLS_5 } = __VLS_3.slots;
|
|
102
|
-
// @ts-ignore
|
|
103
|
-
[chainDirection,];
|
|
104
|
-
const __VLS_6 = {}.ElOption;
|
|
105
|
-
/** @type {[typeof __VLS_components.ElOption, typeof __VLS_components.elOption, ]} */ ;
|
|
106
|
-
// @ts-ignore
|
|
107
|
-
ElOption;
|
|
108
|
-
// @ts-ignore
|
|
109
|
-
const __VLS_7 = __VLS_asFunctionalComponent(__VLS_6, new __VLS_6({
|
|
110
|
-
label: "从左向右",
|
|
111
|
-
value: "left",
|
|
112
|
-
}));
|
|
113
|
-
const __VLS_8 = __VLS_7({
|
|
114
|
-
label: "从左向右",
|
|
115
|
-
value: "left",
|
|
116
|
-
}, ...__VLS_functionalComponentArgsRest(__VLS_7));
|
|
117
|
-
const __VLS_12 = {}.ElOption;
|
|
118
|
-
/** @type {[typeof __VLS_components.ElOption, typeof __VLS_components.elOption, ]} */ ;
|
|
119
|
-
// @ts-ignore
|
|
120
|
-
ElOption;
|
|
121
|
-
// @ts-ignore
|
|
122
|
-
const __VLS_13 = __VLS_asFunctionalComponent(__VLS_12, new __VLS_12({
|
|
123
|
-
label: "从右向左",
|
|
124
|
-
value: "right",
|
|
125
|
-
}));
|
|
126
|
-
const __VLS_14 = __VLS_13({
|
|
127
|
-
label: "从右向左",
|
|
128
|
-
value: "right",
|
|
129
|
-
}, ...__VLS_functionalComponentArgsRest(__VLS_13));
|
|
130
|
-
var __VLS_3;
|
|
131
|
-
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
132
|
-
...{ class: "keyVal" },
|
|
133
|
-
});
|
|
134
|
-
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
135
|
-
...{ class: "key" },
|
|
136
|
-
});
|
|
137
|
-
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
138
|
-
...{ class: "val" },
|
|
139
|
-
});
|
|
140
|
-
const __VLS_18 = {}.ElSelect;
|
|
141
|
-
/** @type {[typeof __VLS_components.ElSelect, typeof __VLS_components.elSelect, typeof __VLS_components.ElSelect, typeof __VLS_components.elSelect, ]} */ ;
|
|
142
|
-
// @ts-ignore
|
|
143
|
-
ElSelect;
|
|
144
|
-
// @ts-ignore
|
|
145
|
-
const __VLS_19 = __VLS_asFunctionalComponent(__VLS_18, new __VLS_18({
|
|
146
|
-
...{ 'onChange': {} },
|
|
147
|
-
modelValue: (__VLS_ctx.linkEquipIdArray),
|
|
148
|
-
multiple: true,
|
|
149
|
-
collapseTags: true,
|
|
150
|
-
collapseTagsTooltip: true,
|
|
151
|
-
placeholder: "",
|
|
152
|
-
...{ style: "width: 100%" },
|
|
153
|
-
}));
|
|
154
|
-
const __VLS_20 = __VLS_19({
|
|
155
|
-
...{ 'onChange': {} },
|
|
156
|
-
modelValue: (__VLS_ctx.linkEquipIdArray),
|
|
157
|
-
multiple: true,
|
|
158
|
-
collapseTags: true,
|
|
159
|
-
collapseTagsTooltip: true,
|
|
160
|
-
placeholder: "",
|
|
161
|
-
...{ style: "width: 100%" },
|
|
162
|
-
}, ...__VLS_functionalComponentArgsRest(__VLS_19));
|
|
163
|
-
let __VLS_23;
|
|
164
|
-
const __VLS_24 = ({ change: {} },
|
|
165
|
-
{ onChange: (__VLS_ctx.handleEquipChange) });
|
|
166
|
-
const { default: __VLS_25 } = __VLS_21.slots;
|
|
167
|
-
// @ts-ignore
|
|
168
|
-
[linkEquipIdArray, handleEquipChange,];
|
|
169
|
-
for (const [equip] of __VLS_getVForSourceType((__VLS_ctx.transportEquipments))) {
|
|
170
|
-
// @ts-ignore
|
|
171
|
-
[transportEquipments,];
|
|
172
|
-
const __VLS_26 = {}.ElOption;
|
|
173
|
-
/** @type {[typeof __VLS_components.ElOption, typeof __VLS_components.elOption, typeof __VLS_components.ElOption, typeof __VLS_components.elOption, ]} */ ;
|
|
174
|
-
// @ts-ignore
|
|
175
|
-
ElOption;
|
|
176
|
-
// @ts-ignore
|
|
177
|
-
const __VLS_27 = __VLS_asFunctionalComponent(__VLS_26, new __VLS_26({
|
|
178
|
-
key: (equip.uuid),
|
|
179
|
-
label: (equip.equipmentName || equip.nameplate || equip.uuid),
|
|
180
|
-
value: (equip.uuid),
|
|
181
|
-
}));
|
|
182
|
-
const __VLS_28 = __VLS_27({
|
|
183
|
-
key: (equip.uuid),
|
|
184
|
-
label: (equip.equipmentName || equip.nameplate || equip.uuid),
|
|
185
|
-
value: (equip.uuid),
|
|
186
|
-
}, ...__VLS_functionalComponentArgsRest(__VLS_27));
|
|
187
|
-
const { default: __VLS_31 } = __VLS_29.slots;
|
|
188
|
-
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
189
|
-
...{ style: "display: flex; justify-content: space-between; align-items: center" },
|
|
190
|
-
});
|
|
191
|
-
__VLS_asFunctionalElement(__VLS_intrinsics.span, __VLS_intrinsics.span)({
|
|
192
|
-
...{ style: "display: inline-block; margin-right: 8px" },
|
|
193
|
-
});
|
|
194
|
-
(equip.equipmentName || equip.nameplate);
|
|
195
|
-
const __VLS_32 = {}.ElTag;
|
|
196
|
-
/** @type {[typeof __VLS_components.ElTag, typeof __VLS_components.elTag, typeof __VLS_components.ElTag, typeof __VLS_components.elTag, ]} */ ;
|
|
197
|
-
// @ts-ignore
|
|
198
|
-
ElTag;
|
|
199
|
-
// @ts-ignore
|
|
200
|
-
const __VLS_33 = __VLS_asFunctionalComponent(__VLS_32, new __VLS_32({
|
|
201
|
-
size: "small",
|
|
202
|
-
type: "info",
|
|
203
|
-
}));
|
|
204
|
-
const __VLS_34 = __VLS_33({
|
|
205
|
-
size: "small",
|
|
206
|
-
type: "info",
|
|
207
|
-
}, ...__VLS_functionalComponentArgsRest(__VLS_33));
|
|
208
|
-
const { default: __VLS_37 } = __VLS_35.slots;
|
|
209
|
-
(equip.className);
|
|
210
|
-
var __VLS_35;
|
|
211
|
-
var __VLS_29;
|
|
212
|
-
}
|
|
213
|
-
var __VLS_21;
|
|
214
|
-
var __VLS_22;
|
|
215
|
-
}
|
|
216
|
-
/** @type {__VLS_StyleScopedClasses['form_group']} */ ;
|
|
217
|
-
/** @type {__VLS_StyleScopedClasses['form_group_title']} */ ;
|
|
218
|
-
/** @type {__VLS_StyleScopedClasses['keyVal']} */ ;
|
|
219
|
-
/** @type {__VLS_StyleScopedClasses['key']} */ ;
|
|
220
|
-
/** @type {__VLS_StyleScopedClasses['val']} */ ;
|
|
221
|
-
/** @type {__VLS_StyleScopedClasses['keyVal']} */ ;
|
|
222
|
-
/** @type {__VLS_StyleScopedClasses['key']} */ ;
|
|
223
|
-
/** @type {__VLS_StyleScopedClasses['val']} */ ;
|
|
224
|
-
const __VLS_export = (await import('vue')).defineComponent({});
|
|
225
|
-
export default {};
|
|
@@ -1,3 +0,0 @@
|
|
|
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;
|
|
3
|
-
export default _default;
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { computed } from 'vue';
|
|
2
|
-
import { storeToRefs } from 'pinia';
|
|
3
|
-
import { ElSelect, ElOption } from 'element-plus';
|
|
4
|
-
import { EnumResourceType, EnumModel, hasFixtureChange } from '@/types';
|
|
5
|
-
import { useEditorStore } from '@/stores';
|
|
6
|
-
const editorStore = useEditorStore();
|
|
7
|
-
const { currentLayer } = storeToRefs(editorStore);
|
|
8
|
-
const currentFixture = computed({
|
|
9
|
-
get() {
|
|
10
|
-
if (!hasFixtureChange(currentLayer.value))
|
|
11
|
-
return EnumResourceType.PALLET;
|
|
12
|
-
return currentLayer.value.currentFixture ?? EnumResourceType.PALLET;
|
|
13
|
-
},
|
|
14
|
-
set(value) {
|
|
15
|
-
if (!hasFixtureChange(currentLayer.value))
|
|
16
|
-
return;
|
|
17
|
-
currentLayer.value.currentFixture = value;
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
21
|
-
const __VLS_ctx = {
|
|
22
|
-
...{},
|
|
23
|
-
...{},
|
|
24
|
-
};
|
|
25
|
-
let __VLS_components;
|
|
26
|
-
let __VLS_directives;
|
|
27
|
-
if (__VLS_ctx.hasFixtureChange(__VLS_ctx.currentLayer)) {
|
|
28
|
-
// @ts-ignore
|
|
29
|
-
[hasFixtureChange, currentLayer,];
|
|
30
|
-
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
31
|
-
...{ class: "form_group" },
|
|
32
|
-
});
|
|
33
|
-
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
34
|
-
...{ class: "form_group_title" },
|
|
35
|
-
});
|
|
36
|
-
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
37
|
-
...{ class: "keyVal" },
|
|
38
|
-
});
|
|
39
|
-
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
40
|
-
...{ class: "key" },
|
|
41
|
-
});
|
|
42
|
-
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
43
|
-
...{ class: "val" },
|
|
44
|
-
});
|
|
45
|
-
const __VLS_0 = {}.ElSelect;
|
|
46
|
-
/** @type {[typeof __VLS_components.ElSelect, typeof __VLS_components.elSelect, typeof __VLS_components.ElSelect, typeof __VLS_components.elSelect, ]} */ ;
|
|
47
|
-
// @ts-ignore
|
|
48
|
-
ElSelect;
|
|
49
|
-
// @ts-ignore
|
|
50
|
-
const __VLS_1 = __VLS_asFunctionalComponent(__VLS_0, new __VLS_0({
|
|
51
|
-
modelValue: (__VLS_ctx.currentFixture),
|
|
52
|
-
...{ style: "width: 100%" },
|
|
53
|
-
}));
|
|
54
|
-
const __VLS_2 = __VLS_1({
|
|
55
|
-
modelValue: (__VLS_ctx.currentFixture),
|
|
56
|
-
...{ style: "width: 100%" },
|
|
57
|
-
}, ...__VLS_functionalComponentArgsRest(__VLS_1));
|
|
58
|
-
const { default: __VLS_5 } = __VLS_3.slots;
|
|
59
|
-
// @ts-ignore
|
|
60
|
-
[currentFixture,];
|
|
61
|
-
const __VLS_6 = {}.ElOption;
|
|
62
|
-
/** @type {[typeof __VLS_components.ElOption, typeof __VLS_components.elOption, ]} */ ;
|
|
63
|
-
// @ts-ignore
|
|
64
|
-
ElOption;
|
|
65
|
-
// @ts-ignore
|
|
66
|
-
const __VLS_7 = __VLS_asFunctionalComponent(__VLS_6, new __VLS_6({
|
|
67
|
-
label: "托盘夹具",
|
|
68
|
-
value: (__VLS_ctx.EnumResourceType.PALLET),
|
|
69
|
-
}));
|
|
70
|
-
const __VLS_8 = __VLS_7({
|
|
71
|
-
label: "托盘夹具",
|
|
72
|
-
value: (__VLS_ctx.EnumResourceType.PALLET),
|
|
73
|
-
}, ...__VLS_functionalComponentArgsRest(__VLS_7));
|
|
74
|
-
// @ts-ignore
|
|
75
|
-
[EnumResourceType,];
|
|
76
|
-
const __VLS_12 = {}.ElOption;
|
|
77
|
-
/** @type {[typeof __VLS_components.ElOption, typeof __VLS_components.elOption, ]} */ ;
|
|
78
|
-
// @ts-ignore
|
|
79
|
-
ElOption;
|
|
80
|
-
// @ts-ignore
|
|
81
|
-
const __VLS_13 = __VLS_asFunctionalComponent(__VLS_12, new __VLS_12({
|
|
82
|
-
label: "刀具夹具",
|
|
83
|
-
value: (__VLS_ctx.EnumResourceType.TOOL),
|
|
84
|
-
}));
|
|
85
|
-
const __VLS_14 = __VLS_13({
|
|
86
|
-
label: "刀具夹具",
|
|
87
|
-
value: (__VLS_ctx.EnumResourceType.TOOL),
|
|
88
|
-
}, ...__VLS_functionalComponentArgsRest(__VLS_13));
|
|
89
|
-
// @ts-ignore
|
|
90
|
-
[EnumResourceType,];
|
|
91
|
-
var __VLS_3;
|
|
92
|
-
}
|
|
93
|
-
/** @type {__VLS_StyleScopedClasses['form_group']} */ ;
|
|
94
|
-
/** @type {__VLS_StyleScopedClasses['form_group_title']} */ ;
|
|
95
|
-
/** @type {__VLS_StyleScopedClasses['keyVal']} */ ;
|
|
96
|
-
/** @type {__VLS_StyleScopedClasses['key']} */ ;
|
|
97
|
-
/** @type {__VLS_StyleScopedClasses['val']} */ ;
|
|
98
|
-
const __VLS_export = (await import('vue')).defineComponent({});
|
|
99
|
-
export default {};
|