@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,98 @@
|
|
|
1
|
+
const props = defineProps();
|
|
2
|
+
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
3
|
+
const __VLS_ctx = {
|
|
4
|
+
...{},
|
|
5
|
+
...{},
|
|
6
|
+
...{},
|
|
7
|
+
...{},
|
|
8
|
+
};
|
|
9
|
+
let __VLS_components;
|
|
10
|
+
let __VLS_directives;
|
|
11
|
+
/** @type {__VLS_StyleScopedClasses['dot']} */ ;
|
|
12
|
+
/** @type {__VLS_StyleScopedClasses['dot']} */ ;
|
|
13
|
+
/** @type {__VLS_StyleScopedClasses['is-past']} */ ;
|
|
14
|
+
/** @type {__VLS_StyleScopedClasses['dot-inner']} */ ;
|
|
15
|
+
/** @type {__VLS_StyleScopedClasses['dot']} */ ;
|
|
16
|
+
/** @type {__VLS_StyleScopedClasses['dot']} */ ;
|
|
17
|
+
/** @type {__VLS_StyleScopedClasses['is-current']} */ ;
|
|
18
|
+
/** @type {__VLS_StyleScopedClasses['dot-inner']} */ ;
|
|
19
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
20
|
+
...{ class: "step-visualizer-container" },
|
|
21
|
+
});
|
|
22
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
23
|
+
...{ class: "step-labels" },
|
|
24
|
+
});
|
|
25
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.span, __VLS_intrinsics.span)({
|
|
26
|
+
...{ class: "label start" },
|
|
27
|
+
});
|
|
28
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.span, __VLS_intrinsics.span)({
|
|
29
|
+
...{ class: "label end" },
|
|
30
|
+
});
|
|
31
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
32
|
+
...{ class: "dots-wrapper" },
|
|
33
|
+
});
|
|
34
|
+
for (const [number] of __VLS_getVForSourceType((props.operationMaxRecord))) {
|
|
35
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
36
|
+
...{ onClick: (...[$event]) => {
|
|
37
|
+
__VLS_ctx.jumpToStep(number - 1);
|
|
38
|
+
// @ts-ignore
|
|
39
|
+
[jumpToStep,];
|
|
40
|
+
} },
|
|
41
|
+
key: (number),
|
|
42
|
+
...{ class: "dot" },
|
|
43
|
+
...{ class: ({
|
|
44
|
+
'is-past': number < props.operationRecordLength + 1,
|
|
45
|
+
'is-current': number === __VLS_ctx.currentIndex + 1
|
|
46
|
+
}) },
|
|
47
|
+
});
|
|
48
|
+
// @ts-ignore
|
|
49
|
+
[currentIndex,];
|
|
50
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
51
|
+
...{ class: "dot-inner" },
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
55
|
+
...{ class: "status-text" },
|
|
56
|
+
});
|
|
57
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.span, __VLS_intrinsics.span)({
|
|
58
|
+
...{ class: "status" },
|
|
59
|
+
});
|
|
60
|
+
(__VLS_ctx.currentIndex + 1);
|
|
61
|
+
(props.operationMaxRecord);
|
|
62
|
+
// @ts-ignore
|
|
63
|
+
[currentIndex,];
|
|
64
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.span, __VLS_intrinsics.span)({
|
|
65
|
+
...{ class: "hint" },
|
|
66
|
+
...{ class: ({ 'hint-show': __VLS_ctx.canUndo }) },
|
|
67
|
+
...{ style: "left: 0" },
|
|
68
|
+
});
|
|
69
|
+
// @ts-ignore
|
|
70
|
+
[canUndo,];
|
|
71
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.span, __VLS_intrinsics.span)({
|
|
72
|
+
...{ class: "hint" },
|
|
73
|
+
...{ class: ({ 'hint-show': __VLS_ctx.canRedo }) },
|
|
74
|
+
...{ style: "right: 0" },
|
|
75
|
+
});
|
|
76
|
+
// @ts-ignore
|
|
77
|
+
[canRedo,];
|
|
78
|
+
/** @type {__VLS_StyleScopedClasses['step-visualizer-container']} */ ;
|
|
79
|
+
/** @type {__VLS_StyleScopedClasses['step-labels']} */ ;
|
|
80
|
+
/** @type {__VLS_StyleScopedClasses['label']} */ ;
|
|
81
|
+
/** @type {__VLS_StyleScopedClasses['start']} */ ;
|
|
82
|
+
/** @type {__VLS_StyleScopedClasses['label']} */ ;
|
|
83
|
+
/** @type {__VLS_StyleScopedClasses['end']} */ ;
|
|
84
|
+
/** @type {__VLS_StyleScopedClasses['dots-wrapper']} */ ;
|
|
85
|
+
/** @type {__VLS_StyleScopedClasses['dot']} */ ;
|
|
86
|
+
/** @type {__VLS_StyleScopedClasses['is-past']} */ ;
|
|
87
|
+
/** @type {__VLS_StyleScopedClasses['is-current']} */ ;
|
|
88
|
+
/** @type {__VLS_StyleScopedClasses['dot-inner']} */ ;
|
|
89
|
+
/** @type {__VLS_StyleScopedClasses['status-text']} */ ;
|
|
90
|
+
/** @type {__VLS_StyleScopedClasses['status']} */ ;
|
|
91
|
+
/** @type {__VLS_StyleScopedClasses['hint']} */ ;
|
|
92
|
+
/** @type {__VLS_StyleScopedClasses['hint-show']} */ ;
|
|
93
|
+
/** @type {__VLS_StyleScopedClasses['hint']} */ ;
|
|
94
|
+
/** @type {__VLS_StyleScopedClasses['hint-show']} */ ;
|
|
95
|
+
const __VLS_export = (await import('vue')).defineComponent({
|
|
96
|
+
__typeProps: {},
|
|
97
|
+
});
|
|
98
|
+
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,31 @@
|
|
|
1
|
+
import { onMounted, onUnmounted } from 'vue';
|
|
2
|
+
import { debounce } from '@jnrs/shared/lodash';
|
|
3
|
+
import { useEditorStore } from '@/stores/useEditorStore';
|
|
4
|
+
const { initContainer, resizeContainer, destroyContainer } = useEditorStore();
|
|
5
|
+
// 重置窗口大小
|
|
6
|
+
const resize = debounce(() => {
|
|
7
|
+
resizeContainer();
|
|
8
|
+
}, 500);
|
|
9
|
+
onMounted(() => {
|
|
10
|
+
initContainer({
|
|
11
|
+
appDomId: 'lingshu-smart-editorApp',
|
|
12
|
+
appEditable: true
|
|
13
|
+
});
|
|
14
|
+
window.addEventListener('resize', resize);
|
|
15
|
+
});
|
|
16
|
+
onUnmounted(() => {
|
|
17
|
+
destroyContainer();
|
|
18
|
+
window.removeEventListener('resize', resize);
|
|
19
|
+
});
|
|
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.canvas, __VLS_intrinsics.canvas)({
|
|
28
|
+
id: "lingshu-smart-editorApp",
|
|
29
|
+
});
|
|
30
|
+
const __VLS_export = (await import('vue')).defineComponent({});
|
|
31
|
+
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,129 @@
|
|
|
1
|
+
import { ref } from 'vue';
|
|
2
|
+
import { storeToRefs } from 'pinia';
|
|
3
|
+
import { useDataStore, useEditorStore } from '@/stores';
|
|
4
|
+
import { ElIcon, ElMessage } from 'element-plus';
|
|
5
|
+
import { WarnTriangleFilled, Search } from '@element-plus/icons-vue';
|
|
6
|
+
const sharedStore = useDataStore();
|
|
7
|
+
const editorStore = useEditorStore();
|
|
8
|
+
const { equipmentsMenu } = sharedStore;
|
|
9
|
+
const { currentCase } = storeToRefs(editorStore);
|
|
10
|
+
const { addLayer } = editorStore;
|
|
11
|
+
const menuSearch = ref('');
|
|
12
|
+
const handleAddLayer = (layer) => {
|
|
13
|
+
if (!currentCase.value) {
|
|
14
|
+
ElMessage({
|
|
15
|
+
message: '请先选择一个方案',
|
|
16
|
+
type: 'warning',
|
|
17
|
+
grouping: true,
|
|
18
|
+
showClose: true
|
|
19
|
+
});
|
|
20
|
+
return false;
|
|
21
|
+
}
|
|
22
|
+
addLayer(layer);
|
|
23
|
+
};
|
|
24
|
+
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
25
|
+
const __VLS_ctx = {
|
|
26
|
+
...{},
|
|
27
|
+
...{},
|
|
28
|
+
};
|
|
29
|
+
let __VLS_components;
|
|
30
|
+
let __VLS_directives;
|
|
31
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
32
|
+
...{ class: "menu" },
|
|
33
|
+
});
|
|
34
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
35
|
+
...{ class: "menu_input" },
|
|
36
|
+
});
|
|
37
|
+
const __VLS_0 = {}.ElIcon;
|
|
38
|
+
/** @type {[typeof __VLS_components.ElIcon, typeof __VLS_components.elIcon, typeof __VLS_components.ElIcon, typeof __VLS_components.elIcon, ]} */ ;
|
|
39
|
+
// @ts-ignore
|
|
40
|
+
ElIcon;
|
|
41
|
+
// @ts-ignore
|
|
42
|
+
const __VLS_1 = __VLS_asFunctionalComponent(__VLS_0, new __VLS_0({}));
|
|
43
|
+
const __VLS_2 = __VLS_1({}, ...__VLS_functionalComponentArgsRest(__VLS_1));
|
|
44
|
+
const { default: __VLS_5 } = __VLS_3.slots;
|
|
45
|
+
const __VLS_6 = {}.Search;
|
|
46
|
+
/** @type {[typeof __VLS_components.Search, ]} */ ;
|
|
47
|
+
// @ts-ignore
|
|
48
|
+
Search;
|
|
49
|
+
// @ts-ignore
|
|
50
|
+
const __VLS_7 = __VLS_asFunctionalComponent(__VLS_6, new __VLS_6({}));
|
|
51
|
+
const __VLS_8 = __VLS_7({}, ...__VLS_functionalComponentArgsRest(__VLS_7));
|
|
52
|
+
var __VLS_3;
|
|
53
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.input)({
|
|
54
|
+
type: "text",
|
|
55
|
+
value: (__VLS_ctx.menuSearch),
|
|
56
|
+
placeholder: "搜索设备",
|
|
57
|
+
});
|
|
58
|
+
// @ts-ignore
|
|
59
|
+
[menuSearch,];
|
|
60
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
61
|
+
...{ class: "menu_container tinyScrollbar" },
|
|
62
|
+
});
|
|
63
|
+
for (const [menu, index] of __VLS_getVForSourceType((__VLS_ctx.equipmentsMenu))) {
|
|
64
|
+
// @ts-ignore
|
|
65
|
+
[equipmentsMenu,];
|
|
66
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
67
|
+
...{ class: "menu_group" },
|
|
68
|
+
key: (index),
|
|
69
|
+
});
|
|
70
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
71
|
+
...{ class: "menu_group_title" },
|
|
72
|
+
});
|
|
73
|
+
(menu.title);
|
|
74
|
+
for (const [layer, i] of __VLS_getVForSourceType((menu.children))) {
|
|
75
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
76
|
+
...{ onClick: (...[$event]) => {
|
|
77
|
+
__VLS_ctx.handleAddLayer(layer);
|
|
78
|
+
// @ts-ignore
|
|
79
|
+
[handleAddLayer,];
|
|
80
|
+
} },
|
|
81
|
+
...{ class: "menu_group_item" },
|
|
82
|
+
key: (i),
|
|
83
|
+
});
|
|
84
|
+
(layer.equipmentName);
|
|
85
|
+
}
|
|
86
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
87
|
+
...{ class: "menu_group_noItem" },
|
|
88
|
+
});
|
|
89
|
+
__VLS_asFunctionalDirective(__VLS_directives.vShow)(null, { ...__VLS_directiveBindingRestFields, value: (!menu.children || menu.children.length === 0) }, null, null);
|
|
90
|
+
}
|
|
91
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
92
|
+
...{ class: "noData" },
|
|
93
|
+
});
|
|
94
|
+
__VLS_asFunctionalDirective(__VLS_directives.vShow)(null, { ...__VLS_directiveBindingRestFields, value: (__VLS_ctx.equipmentsMenu?.length === 0) }, null, null);
|
|
95
|
+
// @ts-ignore
|
|
96
|
+
[equipmentsMenu,];
|
|
97
|
+
const __VLS_12 = {}.ElIcon;
|
|
98
|
+
/** @type {[typeof __VLS_components.ElIcon, typeof __VLS_components.elIcon, typeof __VLS_components.ElIcon, typeof __VLS_components.elIcon, ]} */ ;
|
|
99
|
+
// @ts-ignore
|
|
100
|
+
ElIcon;
|
|
101
|
+
// @ts-ignore
|
|
102
|
+
const __VLS_13 = __VLS_asFunctionalComponent(__VLS_12, new __VLS_12({
|
|
103
|
+
...{ class: "noData_icon" },
|
|
104
|
+
}));
|
|
105
|
+
const __VLS_14 = __VLS_13({
|
|
106
|
+
...{ class: "noData_icon" },
|
|
107
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_13));
|
|
108
|
+
const { default: __VLS_17 } = __VLS_15.slots;
|
|
109
|
+
const __VLS_18 = {}.WarnTriangleFilled;
|
|
110
|
+
/** @type {[typeof __VLS_components.WarnTriangleFilled, ]} */ ;
|
|
111
|
+
// @ts-ignore
|
|
112
|
+
WarnTriangleFilled;
|
|
113
|
+
// @ts-ignore
|
|
114
|
+
const __VLS_19 = __VLS_asFunctionalComponent(__VLS_18, new __VLS_18({}));
|
|
115
|
+
const __VLS_20 = __VLS_19({}, ...__VLS_functionalComponentArgsRest(__VLS_19));
|
|
116
|
+
var __VLS_15;
|
|
117
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.p, __VLS_intrinsics.p)({});
|
|
118
|
+
/** @type {__VLS_StyleScopedClasses['menu']} */ ;
|
|
119
|
+
/** @type {__VLS_StyleScopedClasses['menu_input']} */ ;
|
|
120
|
+
/** @type {__VLS_StyleScopedClasses['menu_container']} */ ;
|
|
121
|
+
/** @type {__VLS_StyleScopedClasses['tinyScrollbar']} */ ;
|
|
122
|
+
/** @type {__VLS_StyleScopedClasses['menu_group']} */ ;
|
|
123
|
+
/** @type {__VLS_StyleScopedClasses['menu_group_title']} */ ;
|
|
124
|
+
/** @type {__VLS_StyleScopedClasses['menu_group_item']} */ ;
|
|
125
|
+
/** @type {__VLS_StyleScopedClasses['menu_group_noItem']} */ ;
|
|
126
|
+
/** @type {__VLS_StyleScopedClasses['noData']} */ ;
|
|
127
|
+
/** @type {__VLS_StyleScopedClasses['noData_icon']} */ ;
|
|
128
|
+
const __VLS_export = (await import('vue')).defineComponent({});
|
|
129
|
+
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,201 @@
|
|
|
1
|
+
import { ref } from 'vue';
|
|
2
|
+
import { storeToRefs } from 'pinia';
|
|
3
|
+
import { ElIcon } from 'element-plus';
|
|
4
|
+
import { WarnTriangleFilled, View, Hide, Delete } from '@element-plus/icons-vue';
|
|
5
|
+
import { useEditorStore } from '@/stores/useEditorStore';
|
|
6
|
+
const editorStore = useEditorStore();
|
|
7
|
+
const { currentCase, layers } = storeToRefs(editorStore);
|
|
8
|
+
const { selectLayer, renderLayers, updateLayer } = editorStore;
|
|
9
|
+
const targetIndex = ref(-1);
|
|
10
|
+
// 图层是否显示(可操作非当前激活的图层)
|
|
11
|
+
const handleVisible = (item) => {
|
|
12
|
+
item.visible = !item.visible;
|
|
13
|
+
updateLayer(item);
|
|
14
|
+
};
|
|
15
|
+
// 删除图层(可操作非当前激活的图层)
|
|
16
|
+
const handleRemove = (index) => {
|
|
17
|
+
layers.value.splice(index, 1);
|
|
18
|
+
renderLayers();
|
|
19
|
+
};
|
|
20
|
+
// 拖动中
|
|
21
|
+
const onDragOver = (dragIndex) => {
|
|
22
|
+
targetIndex.value = dragIndex;
|
|
23
|
+
};
|
|
24
|
+
// 拖动结束
|
|
25
|
+
const onDragEnd = (endIndex) => {
|
|
26
|
+
const movedItem = layers.value.splice(endIndex, 1)[0];
|
|
27
|
+
if (targetIndex.value > endIndex) {
|
|
28
|
+
targetIndex.value -= 1;
|
|
29
|
+
}
|
|
30
|
+
layers.value.splice(targetIndex.value, 0, movedItem);
|
|
31
|
+
targetIndex.value = -1;
|
|
32
|
+
renderLayers();
|
|
33
|
+
};
|
|
34
|
+
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
35
|
+
const __VLS_ctx = {
|
|
36
|
+
...{},
|
|
37
|
+
...{},
|
|
38
|
+
};
|
|
39
|
+
let __VLS_components;
|
|
40
|
+
let __VLS_directives;
|
|
41
|
+
/** @type {__VLS_StyleScopedClasses['layer_item_icon']} */ ;
|
|
42
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
43
|
+
...{ class: "layer tinyScrollbar" },
|
|
44
|
+
});
|
|
45
|
+
for (const [item, index] of __VLS_getVForSourceType((__VLS_ctx.layers))) {
|
|
46
|
+
// @ts-ignore
|
|
47
|
+
[layers,];
|
|
48
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
49
|
+
...{ onDragover: (...[$event]) => {
|
|
50
|
+
__VLS_ctx.onDragOver(index);
|
|
51
|
+
// @ts-ignore
|
|
52
|
+
[onDragOver,];
|
|
53
|
+
} },
|
|
54
|
+
...{ onDragend: (...[$event]) => {
|
|
55
|
+
__VLS_ctx.onDragEnd(index);
|
|
56
|
+
// @ts-ignore
|
|
57
|
+
[onDragEnd,];
|
|
58
|
+
} },
|
|
59
|
+
...{ onClick: (...[$event]) => {
|
|
60
|
+
__VLS_ctx.selectLayer(item.uuid);
|
|
61
|
+
// @ts-ignore
|
|
62
|
+
[selectLayer,];
|
|
63
|
+
} },
|
|
64
|
+
...{ class: ({
|
|
65
|
+
layer_item: true,
|
|
66
|
+
layer_item_selected: item.selected,
|
|
67
|
+
layer_item_hide: !item.visible,
|
|
68
|
+
layer_item_sort: index === __VLS_ctx.targetIndex
|
|
69
|
+
}) },
|
|
70
|
+
key: (item.uuid),
|
|
71
|
+
draggable: "false",
|
|
72
|
+
});
|
|
73
|
+
// @ts-ignore
|
|
74
|
+
[targetIndex,];
|
|
75
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.span, __VLS_intrinsics.span)({
|
|
76
|
+
...{ class: "layer_item_index" },
|
|
77
|
+
});
|
|
78
|
+
(index + 1);
|
|
79
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
80
|
+
...{ class: "layer_item_title" },
|
|
81
|
+
});
|
|
82
|
+
(item.nameplate || item.equipmentName);
|
|
83
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
84
|
+
...{ class: "layer_item_right" },
|
|
85
|
+
});
|
|
86
|
+
const __VLS_0 = {}.ElIcon;
|
|
87
|
+
/** @type {[typeof __VLS_components.ElIcon, typeof __VLS_components.elIcon, typeof __VLS_components.ElIcon, typeof __VLS_components.elIcon, ]} */ ;
|
|
88
|
+
// @ts-ignore
|
|
89
|
+
ElIcon;
|
|
90
|
+
// @ts-ignore
|
|
91
|
+
const __VLS_1 = __VLS_asFunctionalComponent(__VLS_0, new __VLS_0({
|
|
92
|
+
...{ 'onClick': {} },
|
|
93
|
+
...{ class: ({ layer_item_icon: true, layer_item_icon_active: !item.visible }) },
|
|
94
|
+
}));
|
|
95
|
+
const __VLS_2 = __VLS_1({
|
|
96
|
+
...{ 'onClick': {} },
|
|
97
|
+
...{ class: ({ layer_item_icon: true, layer_item_icon_active: !item.visible }) },
|
|
98
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_1));
|
|
99
|
+
let __VLS_5;
|
|
100
|
+
const __VLS_6 = ({ click: {} },
|
|
101
|
+
{ onClick: (...[$event]) => {
|
|
102
|
+
__VLS_ctx.handleVisible(item);
|
|
103
|
+
// @ts-ignore
|
|
104
|
+
[handleVisible,];
|
|
105
|
+
} });
|
|
106
|
+
const { default: __VLS_7 } = __VLS_3.slots;
|
|
107
|
+
const __VLS_8 = {}.View;
|
|
108
|
+
/** @type {[typeof __VLS_components.View, ]} */ ;
|
|
109
|
+
// @ts-ignore
|
|
110
|
+
View;
|
|
111
|
+
// @ts-ignore
|
|
112
|
+
const __VLS_9 = __VLS_asFunctionalComponent(__VLS_8, new __VLS_8({}));
|
|
113
|
+
const __VLS_10 = __VLS_9({}, ...__VLS_functionalComponentArgsRest(__VLS_9));
|
|
114
|
+
__VLS_asFunctionalDirective(__VLS_directives.vShow)(null, { ...__VLS_directiveBindingRestFields, value: (item.visible) }, null, null);
|
|
115
|
+
const __VLS_14 = {}.Hide;
|
|
116
|
+
/** @type {[typeof __VLS_components.Hide, ]} */ ;
|
|
117
|
+
// @ts-ignore
|
|
118
|
+
Hide;
|
|
119
|
+
// @ts-ignore
|
|
120
|
+
const __VLS_15 = __VLS_asFunctionalComponent(__VLS_14, new __VLS_14({}));
|
|
121
|
+
const __VLS_16 = __VLS_15({}, ...__VLS_functionalComponentArgsRest(__VLS_15));
|
|
122
|
+
__VLS_asFunctionalDirective(__VLS_directives.vShow)(null, { ...__VLS_directiveBindingRestFields, value: (!item.visible) }, null, null);
|
|
123
|
+
var __VLS_3;
|
|
124
|
+
var __VLS_4;
|
|
125
|
+
const __VLS_20 = {}.ElIcon;
|
|
126
|
+
/** @type {[typeof __VLS_components.ElIcon, typeof __VLS_components.elIcon, typeof __VLS_components.ElIcon, typeof __VLS_components.elIcon, ]} */ ;
|
|
127
|
+
// @ts-ignore
|
|
128
|
+
ElIcon;
|
|
129
|
+
// @ts-ignore
|
|
130
|
+
const __VLS_21 = __VLS_asFunctionalComponent(__VLS_20, new __VLS_20({
|
|
131
|
+
...{ 'onClick': {} },
|
|
132
|
+
...{ class: "layer_item_icon" },
|
|
133
|
+
}));
|
|
134
|
+
const __VLS_22 = __VLS_21({
|
|
135
|
+
...{ 'onClick': {} },
|
|
136
|
+
...{ class: "layer_item_icon" },
|
|
137
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_21));
|
|
138
|
+
let __VLS_25;
|
|
139
|
+
const __VLS_26 = ({ click: {} },
|
|
140
|
+
{ onClick: (...[$event]) => {
|
|
141
|
+
__VLS_ctx.handleRemove(index);
|
|
142
|
+
// @ts-ignore
|
|
143
|
+
[handleRemove,];
|
|
144
|
+
} });
|
|
145
|
+
const { default: __VLS_27 } = __VLS_23.slots;
|
|
146
|
+
const __VLS_28 = {}.Delete;
|
|
147
|
+
/** @type {[typeof __VLS_components.Delete, ]} */ ;
|
|
148
|
+
// @ts-ignore
|
|
149
|
+
Delete;
|
|
150
|
+
// @ts-ignore
|
|
151
|
+
const __VLS_29 = __VLS_asFunctionalComponent(__VLS_28, new __VLS_28({}));
|
|
152
|
+
const __VLS_30 = __VLS_29({}, ...__VLS_functionalComponentArgsRest(__VLS_29));
|
|
153
|
+
var __VLS_23;
|
|
154
|
+
var __VLS_24;
|
|
155
|
+
}
|
|
156
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
157
|
+
...{ class: "noData" },
|
|
158
|
+
});
|
|
159
|
+
__VLS_asFunctionalDirective(__VLS_directives.vShow)(null, { ...__VLS_directiveBindingRestFields, value: (!__VLS_ctx.currentCase || __VLS_ctx.layers.length === 0) }, null, null);
|
|
160
|
+
// @ts-ignore
|
|
161
|
+
[layers, currentCase,];
|
|
162
|
+
const __VLS_34 = {}.ElIcon;
|
|
163
|
+
/** @type {[typeof __VLS_components.ElIcon, typeof __VLS_components.elIcon, typeof __VLS_components.ElIcon, typeof __VLS_components.elIcon, ]} */ ;
|
|
164
|
+
// @ts-ignore
|
|
165
|
+
ElIcon;
|
|
166
|
+
// @ts-ignore
|
|
167
|
+
const __VLS_35 = __VLS_asFunctionalComponent(__VLS_34, new __VLS_34({
|
|
168
|
+
...{ class: "noData_icon" },
|
|
169
|
+
}));
|
|
170
|
+
const __VLS_36 = __VLS_35({
|
|
171
|
+
...{ class: "noData_icon" },
|
|
172
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_35));
|
|
173
|
+
const { default: __VLS_39 } = __VLS_37.slots;
|
|
174
|
+
const __VLS_40 = {}.WarnTriangleFilled;
|
|
175
|
+
/** @type {[typeof __VLS_components.WarnTriangleFilled, ]} */ ;
|
|
176
|
+
// @ts-ignore
|
|
177
|
+
WarnTriangleFilled;
|
|
178
|
+
// @ts-ignore
|
|
179
|
+
const __VLS_41 = __VLS_asFunctionalComponent(__VLS_40, new __VLS_40({}));
|
|
180
|
+
const __VLS_42 = __VLS_41({}, ...__VLS_functionalComponentArgsRest(__VLS_41));
|
|
181
|
+
var __VLS_37;
|
|
182
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.p, __VLS_intrinsics.p)({});
|
|
183
|
+
(!__VLS_ctx.currentCase ? '请选择方案' : '请添加设备');
|
|
184
|
+
// @ts-ignore
|
|
185
|
+
[currentCase,];
|
|
186
|
+
/** @type {__VLS_StyleScopedClasses['layer']} */ ;
|
|
187
|
+
/** @type {__VLS_StyleScopedClasses['tinyScrollbar']} */ ;
|
|
188
|
+
/** @type {__VLS_StyleScopedClasses['layer_item']} */ ;
|
|
189
|
+
/** @type {__VLS_StyleScopedClasses['layer_item_selected']} */ ;
|
|
190
|
+
/** @type {__VLS_StyleScopedClasses['layer_item_hide']} */ ;
|
|
191
|
+
/** @type {__VLS_StyleScopedClasses['layer_item_sort']} */ ;
|
|
192
|
+
/** @type {__VLS_StyleScopedClasses['layer_item_index']} */ ;
|
|
193
|
+
/** @type {__VLS_StyleScopedClasses['layer_item_title']} */ ;
|
|
194
|
+
/** @type {__VLS_StyleScopedClasses['layer_item_right']} */ ;
|
|
195
|
+
/** @type {__VLS_StyleScopedClasses['layer_item_icon']} */ ;
|
|
196
|
+
/** @type {__VLS_StyleScopedClasses['layer_item_icon_active']} */ ;
|
|
197
|
+
/** @type {__VLS_StyleScopedClasses['layer_item_icon']} */ ;
|
|
198
|
+
/** @type {__VLS_StyleScopedClasses['noData']} */ ;
|
|
199
|
+
/** @type {__VLS_StyleScopedClasses['noData_icon']} */ ;
|
|
200
|
+
const __VLS_export = (await import('vue')).defineComponent({});
|
|
201
|
+
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,84 @@
|
|
|
1
|
+
import { ref, watch } from 'vue';
|
|
2
|
+
import { storeToRefs } from 'pinia';
|
|
3
|
+
import Equipments from './Equipments.vue';
|
|
4
|
+
import Layers from './Layers.vue';
|
|
5
|
+
import { useEditorStore } from '@/stores';
|
|
6
|
+
const { layers, currentLayer } = storeToRefs(useEditorStore());
|
|
7
|
+
const activeTab = ref(1);
|
|
8
|
+
/**
|
|
9
|
+
* 监听当前选中的图层
|
|
10
|
+
*/
|
|
11
|
+
watch(currentLayer, (nv) => {
|
|
12
|
+
if (nv) {
|
|
13
|
+
activeTab.value = 2;
|
|
14
|
+
}
|
|
15
|
+
}, { immediate: true });
|
|
16
|
+
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
17
|
+
const __VLS_ctx = {
|
|
18
|
+
...{},
|
|
19
|
+
...{},
|
|
20
|
+
};
|
|
21
|
+
let __VLS_components;
|
|
22
|
+
let __VLS_directives;
|
|
23
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
24
|
+
...{ class: "equipmentCard" },
|
|
25
|
+
});
|
|
26
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
27
|
+
...{ class: "tab" },
|
|
28
|
+
});
|
|
29
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
30
|
+
...{ onClick: (...[$event]) => {
|
|
31
|
+
__VLS_ctx.activeTab = 1;
|
|
32
|
+
// @ts-ignore
|
|
33
|
+
[activeTab,];
|
|
34
|
+
} },
|
|
35
|
+
...{ class: "tab_item" },
|
|
36
|
+
...{ class: ({ tab_item_active: __VLS_ctx.activeTab === 1 }) },
|
|
37
|
+
});
|
|
38
|
+
// @ts-ignore
|
|
39
|
+
[activeTab,];
|
|
40
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.span, __VLS_intrinsics.span)({});
|
|
41
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
42
|
+
...{ onClick: (...[$event]) => {
|
|
43
|
+
__VLS_ctx.activeTab = 2;
|
|
44
|
+
// @ts-ignore
|
|
45
|
+
[activeTab,];
|
|
46
|
+
} },
|
|
47
|
+
...{ class: "tab_item" },
|
|
48
|
+
...{ class: ({ tab_item_active: __VLS_ctx.activeTab === 2 }) },
|
|
49
|
+
});
|
|
50
|
+
// @ts-ignore
|
|
51
|
+
[activeTab,];
|
|
52
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.span, __VLS_intrinsics.span)({});
|
|
53
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.span, __VLS_intrinsics.span)({
|
|
54
|
+
...{ style: "font-size: 14px" },
|
|
55
|
+
});
|
|
56
|
+
(__VLS_ctx.layers.length);
|
|
57
|
+
// @ts-ignore
|
|
58
|
+
[layers,];
|
|
59
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
60
|
+
...{ class: "container" },
|
|
61
|
+
});
|
|
62
|
+
/** @type {[typeof Equipments, ]} */ ;
|
|
63
|
+
// @ts-ignore
|
|
64
|
+
const __VLS_0 = __VLS_asFunctionalComponent(Equipments, new Equipments({}));
|
|
65
|
+
const __VLS_1 = __VLS_0({}, ...__VLS_functionalComponentArgsRest(__VLS_0));
|
|
66
|
+
__VLS_asFunctionalDirective(__VLS_directives.vShow)(null, { ...__VLS_directiveBindingRestFields, value: (__VLS_ctx.activeTab === 1) }, null, null);
|
|
67
|
+
// @ts-ignore
|
|
68
|
+
[activeTab,];
|
|
69
|
+
/** @type {[typeof Layers, ]} */ ;
|
|
70
|
+
// @ts-ignore
|
|
71
|
+
const __VLS_5 = __VLS_asFunctionalComponent(Layers, new Layers({}));
|
|
72
|
+
const __VLS_6 = __VLS_5({}, ...__VLS_functionalComponentArgsRest(__VLS_5));
|
|
73
|
+
__VLS_asFunctionalDirective(__VLS_directives.vShow)(null, { ...__VLS_directiveBindingRestFields, value: (__VLS_ctx.activeTab === 2) }, null, null);
|
|
74
|
+
// @ts-ignore
|
|
75
|
+
[activeTab,];
|
|
76
|
+
/** @type {__VLS_StyleScopedClasses['equipmentCard']} */ ;
|
|
77
|
+
/** @type {__VLS_StyleScopedClasses['tab']} */ ;
|
|
78
|
+
/** @type {__VLS_StyleScopedClasses['tab_item']} */ ;
|
|
79
|
+
/** @type {__VLS_StyleScopedClasses['tab_item_active']} */ ;
|
|
80
|
+
/** @type {__VLS_StyleScopedClasses['tab_item']} */ ;
|
|
81
|
+
/** @type {__VLS_StyleScopedClasses['tab_item_active']} */ ;
|
|
82
|
+
/** @type {__VLS_StyleScopedClasses['container']} */ ;
|
|
83
|
+
const __VLS_export = (await import('vue')).defineComponent({});
|
|
84
|
+
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,96 @@
|
|
|
1
|
+
import { storeToRefs } from 'pinia';
|
|
2
|
+
import { ElInput } from 'element-plus';
|
|
3
|
+
import { useEditorStore } from '@/stores';
|
|
4
|
+
const editorStore = useEditorStore();
|
|
5
|
+
const { currentLayer } = storeToRefs(editorStore);
|
|
6
|
+
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
7
|
+
const __VLS_ctx = {
|
|
8
|
+
...{},
|
|
9
|
+
...{},
|
|
10
|
+
};
|
|
11
|
+
let __VLS_components;
|
|
12
|
+
let __VLS_directives;
|
|
13
|
+
if (__VLS_ctx.currentLayer) {
|
|
14
|
+
// @ts-ignore
|
|
15
|
+
[currentLayer,];
|
|
16
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
17
|
+
...{ class: "form_group" },
|
|
18
|
+
});
|
|
19
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
20
|
+
...{ class: "form_group_title" },
|
|
21
|
+
});
|
|
22
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
23
|
+
...{ class: "keyVal" },
|
|
24
|
+
});
|
|
25
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
26
|
+
...{ class: "key" },
|
|
27
|
+
});
|
|
28
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
29
|
+
...{ class: "val" },
|
|
30
|
+
});
|
|
31
|
+
const __VLS_0 = {}.ElInput;
|
|
32
|
+
/** @type {[typeof __VLS_components.ElInput, typeof __VLS_components.elInput, ]} */ ;
|
|
33
|
+
// @ts-ignore
|
|
34
|
+
ElInput;
|
|
35
|
+
// @ts-ignore
|
|
36
|
+
const __VLS_1 = __VLS_asFunctionalComponent(__VLS_0, new __VLS_0({
|
|
37
|
+
modelValue: (__VLS_ctx.currentLayer.equipmentName),
|
|
38
|
+
maxlength: "10",
|
|
39
|
+
placeholder: "请输入",
|
|
40
|
+
type: "text",
|
|
41
|
+
size: "default",
|
|
42
|
+
...{ style: "width: 100%" },
|
|
43
|
+
disabled: (true),
|
|
44
|
+
}));
|
|
45
|
+
const __VLS_2 = __VLS_1({
|
|
46
|
+
modelValue: (__VLS_ctx.currentLayer.equipmentName),
|
|
47
|
+
maxlength: "10",
|
|
48
|
+
placeholder: "请输入",
|
|
49
|
+
type: "text",
|
|
50
|
+
size: "default",
|
|
51
|
+
...{ style: "width: 100%" },
|
|
52
|
+
disabled: (true),
|
|
53
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_1));
|
|
54
|
+
// @ts-ignore
|
|
55
|
+
[currentLayer,];
|
|
56
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
57
|
+
...{ class: "keyVal" },
|
|
58
|
+
});
|
|
59
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
60
|
+
...{ class: "key" },
|
|
61
|
+
});
|
|
62
|
+
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
63
|
+
...{ class: "val" },
|
|
64
|
+
});
|
|
65
|
+
const __VLS_6 = {}.ElInput;
|
|
66
|
+
/** @type {[typeof __VLS_components.ElInput, typeof __VLS_components.elInput, ]} */ ;
|
|
67
|
+
// @ts-ignore
|
|
68
|
+
ElInput;
|
|
69
|
+
// @ts-ignore
|
|
70
|
+
const __VLS_7 = __VLS_asFunctionalComponent(__VLS_6, new __VLS_6({
|
|
71
|
+
modelValue: (__VLS_ctx.currentLayer.nameplate),
|
|
72
|
+
maxlength: "10",
|
|
73
|
+
type: "text",
|
|
74
|
+
size: "default",
|
|
75
|
+
...{ style: "width: 100%" },
|
|
76
|
+
}));
|
|
77
|
+
const __VLS_8 = __VLS_7({
|
|
78
|
+
modelValue: (__VLS_ctx.currentLayer.nameplate),
|
|
79
|
+
maxlength: "10",
|
|
80
|
+
type: "text",
|
|
81
|
+
size: "default",
|
|
82
|
+
...{ style: "width: 100%" },
|
|
83
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_7));
|
|
84
|
+
// @ts-ignore
|
|
85
|
+
[currentLayer,];
|
|
86
|
+
}
|
|
87
|
+
/** @type {__VLS_StyleScopedClasses['form_group']} */ ;
|
|
88
|
+
/** @type {__VLS_StyleScopedClasses['form_group_title']} */ ;
|
|
89
|
+
/** @type {__VLS_StyleScopedClasses['keyVal']} */ ;
|
|
90
|
+
/** @type {__VLS_StyleScopedClasses['key']} */ ;
|
|
91
|
+
/** @type {__VLS_StyleScopedClasses['val']} */ ;
|
|
92
|
+
/** @type {__VLS_StyleScopedClasses['keyVal']} */ ;
|
|
93
|
+
/** @type {__VLS_StyleScopedClasses['key']} */ ;
|
|
94
|
+
/** @type {__VLS_StyleScopedClasses['val']} */ ;
|
|
95
|
+
const __VLS_export = (await import('vue')).defineComponent({});
|
|
96
|
+
export default {};
|