@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.
Files changed (176) hide show
  1. package/dist/App.vue.d.ts +1 -2
  2. package/dist/assets/data/editor_default_setting.d.ts +1 -8
  3. package/dist/assets/data/editor_preset_menu.d.ts +1 -8
  4. package/dist/components/editor/ControlBar/CaseManger.vue.d.ts +15 -3
  5. package/dist/components/editor/ControlBar/CaseTitleEdit.vue.d.ts +411 -2
  6. package/dist/components/editor/ControlBar/ExportImportDialog.vue.d.ts +2 -3
  7. package/dist/components/editor/ControlBar/MainButton.vue.d.ts +2 -3
  8. package/dist/components/editor/ControlBar/StepButton.vue.d.ts +1 -2
  9. package/dist/components/editor/ControlBar/StepRecordVisualizer.vue.d.ts +1 -2
  10. package/dist/components/editor/DrawingBoard.vue.d.ts +1 -2
  11. package/dist/components/editor/MenuCard/Equipments.vue.d.ts +1 -2
  12. package/dist/components/editor/MenuCard/Layers.vue.d.ts +1 -2
  13. package/dist/components/editor/MenuCard/index.vue.d.ts +1 -2
  14. package/dist/components/editor/OptionCard/Equipment/Base.vue.d.ts +1 -2
  15. package/dist/components/editor/OptionCard/Equipment/DataSets.vue.d.ts +1 -2
  16. package/dist/components/editor/OptionCard/Equipment/Interaction.vue.d.ts +1 -2
  17. package/dist/components/editor/OptionCard/Equipment/Position.vue.d.ts +1 -2
  18. package/dist/components/editor/OptionCard/Equipment/StationSlotGroup.vue.d.ts +1 -2
  19. package/dist/components/editor/OptionCard/Equipment/index.vue.d.ts +1 -2
  20. package/dist/components/editor/OptionCard/Equipment/models/MachineTool.vue.d.ts +1 -2
  21. package/dist/components/editor/OptionCard/Equipment/models/Rail.vue.d.ts +1 -2
  22. package/dist/components/editor/OptionCard/Equipment/models/SingleJointRobot.vue.d.ts +2 -0
  23. package/dist/components/editor/OptionCard/Scene/Background.vue.d.ts +1 -2
  24. package/dist/components/editor/OptionCard/Scene/index.vue.d.ts +1 -2
  25. package/dist/components/editor/OptionCard/index.vue.d.ts +1 -2
  26. package/dist/components/editor/index.vue.d.ts +13 -4
  27. package/dist/components/index.d.ts +2 -2
  28. package/dist/components/index.js +27281 -4
  29. package/dist/components/preview/index.vue.d.ts +5 -6
  30. package/dist/composables/useStepRecord.d.ts +4 -12
  31. package/dist/constants/options.d.ts +1 -8
  32. package/dist/controller/AppController.d.ts +3 -10
  33. package/dist/controller/EditorController.d.ts +2 -9
  34. package/dist/index.js +1 -1
  35. package/dist/json/cases.json +577 -20
  36. package/dist/locales/i18next.d.ts +1 -1
  37. package/dist/locales/index.d.ts +2 -2
  38. package/dist/locales/index.js +13 -3
  39. package/dist/main.d.ts +0 -3
  40. package/dist/playground/EditPageDemo.vue.d.ts +1 -2
  41. package/dist/playground/ViewPageDemo.vue.d.ts +27 -2
  42. package/dist/stores/useAppStore.d.ts +5 -12
  43. package/dist/stores/useDataStore.d.ts +11 -18
  44. package/dist/stores/useEditorStore.d.ts +20 -27
  45. package/dist/types/app.types.d.ts +1 -1
  46. package/dist/types/base.types.d.ts +1 -1
  47. package/dist/types/components/config.types.d.ts +1 -1
  48. package/dist/types/components/operating.types.d.ts +1 -1
  49. package/dist/types/enums.d.ts +1 -1
  50. package/dist/types/guards.d.ts +5 -12
  51. package/dist/types/index.d.ts +2 -2
  52. package/dist/types/models/config.types.d.ts +49 -47
  53. package/dist/types/models/operating.types.d.ts +53 -53
  54. package/dist/ui/abstract/ComponentAbs.d.ts +2 -9
  55. package/dist/ui/abstract/ModelAbs.d.ts +2 -10
  56. package/dist/ui/components/Entrance.d.ts +1 -8
  57. package/dist/ui/components/Light.d.ts +1 -8
  58. package/dist/ui/components/Progress.d.ts +1 -8
  59. package/dist/ui/components/Resource.d.ts +1 -8
  60. package/dist/ui/components/StationSlot.d.ts +1 -23
  61. package/dist/ui/components/StationSlotGroup.d.ts +1 -8
  62. package/dist/ui/factories/createGlass.d.ts +0 -6
  63. package/dist/ui/factories/createModel.d.ts +2 -9
  64. package/dist/ui/factories/createShadow.d.ts +1 -9
  65. package/dist/ui/factories/createText.d.ts +0 -7
  66. package/dist/ui/models/CleaningMachine.d.ts +1 -1
  67. package/dist/ui/models/DoubleJointRobot.d.ts +19 -20
  68. package/dist/ui/models/LoadingStation.d.ts +1 -1
  69. package/dist/ui/models/MachineTool.d.ts +1 -1
  70. package/dist/ui/models/MarkingMachine.d.ts +1 -1
  71. package/dist/ui/models/Rail.d.ts +1 -1
  72. package/dist/ui/models/ResourceStore.d.ts +1 -1
  73. package/dist/ui/models/SingleJointRobot.d.ts +3 -3
  74. package/dist/ui/shapes/NamePlate.d.ts +0 -7
  75. package/dist/ui/shapes/ScrewHole.d.ts +0 -7
  76. package/dist/ui/shapes/Texture.d.ts +1 -8
  77. package/dist/ui/utils/attr.d.ts +2 -9
  78. package/dist/utils/type-guards.d.ts +1 -1
  79. package/package.json +3 -3
  80. package/dist/App.vue.js +0 -30
  81. package/dist/assets/data/editor_default.d.ts +0 -16
  82. package/dist/assets/data/editor_default.js +0 -59
  83. package/dist/assets/data/editor_default_setting.js +0 -58
  84. package/dist/assets/data/editor_preset.d.ts +0 -9
  85. package/dist/assets/data/editor_preset.js +0 -51
  86. package/dist/assets/data/editor_preset_menu.js +0 -290
  87. package/dist/components/editor/ControlBar/CaseManger.vue.js +0 -465
  88. package/dist/components/editor/ControlBar/CaseTitleEdit.vue.js +0 -108
  89. package/dist/components/editor/ControlBar/ExportImportDialog.vue.js +0 -280
  90. package/dist/components/editor/ControlBar/MainButton.vue.js +0 -183
  91. package/dist/components/editor/ControlBar/StepButton.vue.js +0 -147
  92. package/dist/components/editor/ControlBar/StepRecordVisualizer.vue.js +0 -98
  93. package/dist/components/editor/DrawingBoard.vue.js +0 -31
  94. package/dist/components/editor/MenuCard/Equipments.vue.js +0 -129
  95. package/dist/components/editor/MenuCard/Layers.vue.js +0 -201
  96. package/dist/components/editor/MenuCard/index.vue.js +0 -84
  97. package/dist/components/editor/OptionCard/Equipment/Base.vue.js +0 -96
  98. package/dist/components/editor/OptionCard/Equipment/Binds.vue.d.ts +0 -3
  99. package/dist/components/editor/OptionCard/Equipment/Binds.vue.js +0 -443
  100. package/dist/components/editor/OptionCard/Equipment/Bot.vue.d.ts +0 -3
  101. package/dist/components/editor/OptionCard/Equipment/Bot.vue.js +0 -81
  102. package/dist/components/editor/OptionCard/Equipment/DataSets.vue.js +0 -304
  103. package/dist/components/editor/OptionCard/Equipment/DockStore.vue.d.ts +0 -3
  104. package/dist/components/editor/OptionCard/Equipment/DockStore.vue.js +0 -597
  105. package/dist/components/editor/OptionCard/Equipment/Interaction.vue.js +0 -287
  106. package/dist/components/editor/OptionCard/Equipment/Position.backup.vue.d.ts +0 -3
  107. package/dist/components/editor/OptionCard/Equipment/Position.backup.vue.js +0 -440
  108. package/dist/components/editor/OptionCard/Equipment/Position.vue.js +0 -436
  109. package/dist/components/editor/OptionCard/Equipment/StationSlotGroup.vue.js +0 -1131
  110. package/dist/components/editor/OptionCard/Equipment/Store.vue.d.ts +0 -3
  111. package/dist/components/editor/OptionCard/Equipment/Store.vue.js +0 -453
  112. package/dist/components/editor/OptionCard/Equipment/Trailer.vue.d.ts +0 -3
  113. package/dist/components/editor/OptionCard/Equipment/Trailer.vue.js +0 -1109
  114. package/dist/components/editor/OptionCard/Equipment/index.vue.js +0 -100
  115. package/dist/components/editor/OptionCard/Equipment/models/MachineTool.vue.js +0 -99
  116. package/dist/components/editor/OptionCard/Equipment/models/Rail.vue.js +0 -225
  117. package/dist/components/editor/OptionCard/Equipment/models/SingleGripperRobot.vue.d.ts +0 -3
  118. package/dist/components/editor/OptionCard/Equipment/models/SingleGripperRobot.vue.js +0 -99
  119. package/dist/components/editor/OptionCard/Scene/Background.vue.js +0 -543
  120. package/dist/components/editor/OptionCard/Scene/index.vue.js +0 -200
  121. package/dist/components/editor/OptionCard/index.vue.js +0 -73
  122. package/dist/components/editor/index.vue.js +0 -156
  123. package/dist/components/preview/index.vue.js +0 -104
  124. package/dist/composables/useStepRecord.js +0 -135
  125. package/dist/constants/options.js +0 -55
  126. package/dist/controller/AppController.js +0 -168
  127. package/dist/controller/EditorController.js +0 -173
  128. package/dist/locales/en.js +0 -5
  129. package/dist/locales/i18next.js +0 -6
  130. package/dist/locales/zhCn.js +0 -5
  131. package/dist/main.js +0 -13
  132. package/dist/playground/EditPageDemo.vue.js +0 -57
  133. package/dist/playground/ViewPageDemo.vue.js +0 -277
  134. package/dist/stores/index.js +0 -3
  135. package/dist/stores/useAppStore.js +0 -78
  136. package/dist/stores/useDataStore.js +0 -116
  137. package/dist/stores/useEditorStore.js +0 -263
  138. package/dist/types/app.types.js +0 -2
  139. package/dist/types/base.types.js +0 -1
  140. package/dist/types/components/config.types.js +0 -1
  141. package/dist/types/components/operating.types.js +0 -1
  142. package/dist/types/enums.js +0 -46
  143. package/dist/types/guards.js +0 -28
  144. package/dist/types/index.js +0 -8
  145. package/dist/types/models/config.types.js +0 -1
  146. package/dist/types/models/operating.types.js +0 -1
  147. package/dist/ui/abstract/ComponentAbs.js +0 -64
  148. package/dist/ui/abstract/ModelAbs.js +0 -119
  149. package/dist/ui/components/Entrance.js +0 -83
  150. package/dist/ui/components/Light.js +0 -167
  151. package/dist/ui/components/Progress.js +0 -84
  152. package/dist/ui/components/Resource.js +0 -70
  153. package/dist/ui/components/StationSlot.js +0 -207
  154. package/dist/ui/components/StationSlotGroup.js +0 -110
  155. package/dist/ui/factories/createGlass.js +0 -51
  156. package/dist/ui/factories/createModel.js +0 -35
  157. package/dist/ui/factories/createShadow.js +0 -52
  158. package/dist/ui/factories/createText.js +0 -46
  159. package/dist/ui/models/CleaningMachine.js +0 -141
  160. package/dist/ui/models/DoubleJointRobot.js +0 -545
  161. package/dist/ui/models/LoadingStation.js +0 -167
  162. package/dist/ui/models/MachineTool.js +0 -184
  163. package/dist/ui/models/MarkingMachine.js +0 -148
  164. package/dist/ui/models/Rail.js +0 -117
  165. package/dist/ui/models/ResourceStore.js +0 -101
  166. package/dist/ui/models/SingleBot.d.ts +0 -20
  167. package/dist/ui/models/SingleBot.js +0 -202
  168. package/dist/ui/models/SingleGripperRobot.d.ts +0 -19
  169. package/dist/ui/models/SingleGripperRobot.js +0 -272
  170. package/dist/ui/models/SingleJointRobot.js +0 -346
  171. package/dist/ui/shapes/NamePlate.js +0 -85
  172. package/dist/ui/shapes/ScrewHole.js +0 -57
  173. package/dist/ui/shapes/Texture.js +0 -51
  174. package/dist/ui/utils/attr.js +0 -50
  175. package/dist/utils/index.js +0 -92
  176. package/dist/utils/type-guards.js +0 -105
@@ -1,98 +0,0 @@
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,31 +0,0 @@
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,129 +0,0 @@
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,201 +0,0 @@
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,84 +0,0 @@
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,96 +0,0 @@
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 {};
@@ -1,3 +0,0 @@
1
- declare const _default: typeof __VLS_export;
2
- export default _default;
3
- 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>;