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