@jnrs/lingshu-smart 2.2.8 → 2.2.9

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,465 +0,0 @@
1
- import { ElIcon, ElDropdownItem, ElDropdownMenu, ElDropdown, ElMessageBox, ElMessage } from 'element-plus';
2
- import { Plus, Refresh, ArrowDown, Delete, Finished, Connection } from '@element-plus/icons-vue';
3
- import { cloneDeep } from '@jnrs/shared/lodash';
4
- import { ref, onMounted } from 'vue';
5
- import { storeToRefs } from 'pinia';
6
- import { useDataStore } from '@/stores';
7
- import ExportImportDialog from './ExportImportDialog.vue';
8
- const props = defineProps();
9
- const sharedStore = useDataStore();
10
- const { casesLoading, cases } = storeToRefs(sharedStore);
11
- const { updateCases, selectCase, addCase, removeCase, clearCases } = sharedStore;
12
- const exportImportDialogRef = ref();
13
- // 清空方案列表
14
- const handleClearCases = () => {
15
- ElMessageBox.confirm('<p style="color: #f30">请注意,您尚未保存的数据将会丢失。</p>', '确定要清空方案列表吗?', {
16
- dangerouslyUseHTMLString: true,
17
- confirmButtonType: 'danger',
18
- confirmButtonText: '清空方案列表',
19
- cancelButtonText: '取消'
20
- })
21
- .then(() => {
22
- clearCases();
23
- })
24
- .catch(() => { });
25
- };
26
- // 删除方案
27
- const handleRemoveCase = (caseData) => {
28
- ElMessageBox.confirm(`<p>名称:${caseData.title}</p><p>ID号:${caseData.uuid}</p>`, '确定要删除该方案数据吗?', {
29
- dangerouslyUseHTMLString: true,
30
- confirmButtonType: 'danger',
31
- confirmButtonText: '删除方案',
32
- cancelButtonText: '取消'
33
- })
34
- .then(() => {
35
- removeCase(caseData.uuid);
36
- })
37
- .catch(() => { });
38
- };
39
- // 导入&导出
40
- const handleShowExportImportDialog = () => {
41
- exportImportDialogRef.value.showVisible();
42
- };
43
- // 加载 cases 数据
44
- const handleLoadCases = async (prompt) => {
45
- if (!props.loadCases) {
46
- console.warn('加载 cases 数据失败,请先配置 loadCases 方法');
47
- if (prompt) {
48
- ElMessage.warning('加载 cases 数据失败,请先配置 loadCases 方法');
49
- }
50
- return false;
51
- }
52
- const doLoad = async (value) => {
53
- casesLoading.value = true;
54
- try {
55
- const res = await props.loadCases?.(value);
56
- updateCases(res);
57
- }
58
- catch (error) {
59
- console.error('loadCases:', error);
60
- }
61
- finally {
62
- casesLoading.value = false;
63
- }
64
- };
65
- if (prompt) {
66
- ElMessageBox.prompt('<p style="color: #f30">请注意,您尚未保存的数据将会丢失。</p><p>请求数据ID:(选填)</p>', '确定要加载方案数据吗?', {
67
- dangerouslyUseHTMLString: true,
68
- confirmButtonText: '加载方案',
69
- cancelButtonText: '取消'
70
- })
71
- .then(({ value }) => {
72
- doLoad(value?.trim() || undefined);
73
- })
74
- .catch(() => { });
75
- }
76
- else {
77
- await doLoad();
78
- }
79
- };
80
- // 保存方案列表数据
81
- const handleSaveCases = () => {
82
- if (!props.saveCases) {
83
- console.warn('请先配置 saveCases 方法');
84
- return false;
85
- }
86
- props.saveCases(cloneDeep(cases.value));
87
- };
88
- onMounted(() => {
89
- if (!cases.value || cases.value.length === 0) {
90
- handleLoadCases(false);
91
- }
92
- });
93
- debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
94
- const __VLS_ctx = {
95
- ...{},
96
- ...{},
97
- ...{},
98
- ...{},
99
- };
100
- let __VLS_components;
101
- let __VLS_directives;
102
- const __VLS_0 = {}.ElDropdown;
103
- /** @type {[typeof __VLS_components.ElDropdown, typeof __VLS_components.elDropdown, typeof __VLS_components.ElDropdown, typeof __VLS_components.elDropdown, ]} */ ;
104
- // @ts-ignore
105
- ElDropdown;
106
- // @ts-ignore
107
- const __VLS_1 = __VLS_asFunctionalComponent(__VLS_0, new __VLS_0({
108
- trigger: "click",
109
- }));
110
- const __VLS_2 = __VLS_1({
111
- trigger: "click",
112
- }, ...__VLS_functionalComponentArgsRest(__VLS_1));
113
- const { default: __VLS_5 } = __VLS_3.slots;
114
- __VLS_asFunctionalElement(__VLS_intrinsics.span, __VLS_intrinsics.span)({
115
- ...{ class: "commonBtn" },
116
- });
117
- __VLS_asFunctionalElement(__VLS_intrinsics.span, __VLS_intrinsics.span)({});
118
- __VLS_asFunctionalElement(__VLS_intrinsics.span, __VLS_intrinsics.span)({
119
- ...{ style: "font-size: 12px" },
120
- });
121
- (__VLS_ctx.cases?.length || 0);
122
- // @ts-ignore
123
- [cases,];
124
- const __VLS_6 = {}.ElIcon;
125
- /** @type {[typeof __VLS_components.ElIcon, typeof __VLS_components.elIcon, typeof __VLS_components.ElIcon, typeof __VLS_components.elIcon, ]} */ ;
126
- // @ts-ignore
127
- ElIcon;
128
- // @ts-ignore
129
- const __VLS_7 = __VLS_asFunctionalComponent(__VLS_6, new __VLS_6({}));
130
- const __VLS_8 = __VLS_7({}, ...__VLS_functionalComponentArgsRest(__VLS_7));
131
- const { default: __VLS_11 } = __VLS_9.slots;
132
- const __VLS_12 = {}.ArrowDown;
133
- /** @type {[typeof __VLS_components.ArrowDown, typeof __VLS_components.arrowDown, ]} */ ;
134
- // @ts-ignore
135
- ArrowDown;
136
- // @ts-ignore
137
- const __VLS_13 = __VLS_asFunctionalComponent(__VLS_12, new __VLS_12({}));
138
- const __VLS_14 = __VLS_13({}, ...__VLS_functionalComponentArgsRest(__VLS_13));
139
- var __VLS_9;
140
- {
141
- const { dropdown: __VLS_18 } = __VLS_3.slots;
142
- const __VLS_19 = {}.ElDropdownMenu;
143
- /** @type {[typeof __VLS_components.ElDropdownMenu, typeof __VLS_components.elDropdownMenu, typeof __VLS_components.ElDropdownMenu, typeof __VLS_components.elDropdownMenu, ]} */ ;
144
- // @ts-ignore
145
- ElDropdownMenu;
146
- // @ts-ignore
147
- const __VLS_20 = __VLS_asFunctionalComponent(__VLS_19, new __VLS_19({
148
- popperClass: "dropdown_menu",
149
- }));
150
- const __VLS_21 = __VLS_20({
151
- popperClass: "dropdown_menu",
152
- }, ...__VLS_functionalComponentArgsRest(__VLS_20));
153
- const { default: __VLS_24 } = __VLS_22.slots;
154
- for (const [item, index] of __VLS_getVForSourceType((__VLS_ctx.cases))) {
155
- // @ts-ignore
156
- [cases,];
157
- const __VLS_25 = {}.ElDropdownItem;
158
- /** @type {[typeof __VLS_components.ElDropdownItem, typeof __VLS_components.elDropdownItem, typeof __VLS_components.ElDropdownItem, typeof __VLS_components.elDropdownItem, ]} */ ;
159
- // @ts-ignore
160
- ElDropdownItem;
161
- // @ts-ignore
162
- const __VLS_26 = __VLS_asFunctionalComponent(__VLS_25, new __VLS_25({
163
- ...{ 'onClick': {} },
164
- key: (index),
165
- }));
166
- const __VLS_27 = __VLS_26({
167
- ...{ 'onClick': {} },
168
- key: (index),
169
- }, ...__VLS_functionalComponentArgsRest(__VLS_26));
170
- let __VLS_30;
171
- const __VLS_31 = ({ click: {} },
172
- { onClick: (...[$event]) => {
173
- __VLS_ctx.selectCase(item.uuid);
174
- // @ts-ignore
175
- [selectCase,];
176
- } });
177
- const { default: __VLS_32 } = __VLS_28.slots;
178
- __VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
179
- ...{ class: "dropdown_menu_item" },
180
- ...{ class: ({ dropdown_menu_item_active: item.isActive }) },
181
- });
182
- __VLS_asFunctionalElement(__VLS_intrinsics.span, __VLS_intrinsics.span)({
183
- ...{ class: "dropdown_menu_item_title" },
184
- });
185
- (item.title);
186
- const __VLS_33 = {}.ElIcon;
187
- /** @type {[typeof __VLS_components.ElIcon, typeof __VLS_components.elIcon, typeof __VLS_components.ElIcon, typeof __VLS_components.elIcon, ]} */ ;
188
- // @ts-ignore
189
- ElIcon;
190
- // @ts-ignore
191
- const __VLS_34 = __VLS_asFunctionalComponent(__VLS_33, new __VLS_33({
192
- ...{ 'onClick': {} },
193
- ...{ style: "color: #f30; margin: 0 0 0 10px" },
194
- }));
195
- const __VLS_35 = __VLS_34({
196
- ...{ 'onClick': {} },
197
- ...{ style: "color: #f30; margin: 0 0 0 10px" },
198
- }, ...__VLS_functionalComponentArgsRest(__VLS_34));
199
- let __VLS_38;
200
- const __VLS_39 = ({ click: {} },
201
- { onClick: (...[$event]) => {
202
- __VLS_ctx.handleRemoveCase(item);
203
- // @ts-ignore
204
- [handleRemoveCase,];
205
- } });
206
- const { default: __VLS_40 } = __VLS_36.slots;
207
- const __VLS_41 = {}.Delete;
208
- /** @type {[typeof __VLS_components.Delete, ]} */ ;
209
- // @ts-ignore
210
- Delete;
211
- // @ts-ignore
212
- const __VLS_42 = __VLS_asFunctionalComponent(__VLS_41, new __VLS_41({}));
213
- const __VLS_43 = __VLS_42({}, ...__VLS_functionalComponentArgsRest(__VLS_42));
214
- var __VLS_36;
215
- var __VLS_37;
216
- var __VLS_28;
217
- var __VLS_29;
218
- }
219
- __VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
220
- ...{ class: "dropdown_menu_noData" },
221
- });
222
- __VLS_asFunctionalDirective(__VLS_directives.vShow)(null, { ...__VLS_directiveBindingRestFields, value: (!__VLS_ctx.cases || __VLS_ctx.cases.length === 0) }, null, null);
223
- // @ts-ignore
224
- [cases, cases,];
225
- __VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
226
- ...{ class: "dropdown_menu_btn" },
227
- });
228
- const __VLS_47 = {}.ElDropdownItem;
229
- /** @type {[typeof __VLS_components.ElDropdownItem, typeof __VLS_components.elDropdownItem, typeof __VLS_components.ElDropdownItem, typeof __VLS_components.elDropdownItem, ]} */ ;
230
- // @ts-ignore
231
- ElDropdownItem;
232
- // @ts-ignore
233
- const __VLS_48 = __VLS_asFunctionalComponent(__VLS_47, new __VLS_47({
234
- ...{ 'onClick': {} },
235
- }));
236
- const __VLS_49 = __VLS_48({
237
- ...{ 'onClick': {} },
238
- }, ...__VLS_functionalComponentArgsRest(__VLS_48));
239
- let __VLS_52;
240
- const __VLS_53 = ({ click: {} },
241
- { onClick: (...[$event]) => {
242
- __VLS_ctx.addCase();
243
- // @ts-ignore
244
- [addCase,];
245
- } });
246
- const { default: __VLS_54 } = __VLS_50.slots;
247
- __VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
248
- ...{ class: "commonBtn" },
249
- });
250
- const __VLS_55 = {}.ElIcon;
251
- /** @type {[typeof __VLS_components.ElIcon, typeof __VLS_components.elIcon, typeof __VLS_components.ElIcon, typeof __VLS_components.elIcon, ]} */ ;
252
- // @ts-ignore
253
- ElIcon;
254
- // @ts-ignore
255
- const __VLS_56 = __VLS_asFunctionalComponent(__VLS_55, new __VLS_55({}));
256
- const __VLS_57 = __VLS_56({}, ...__VLS_functionalComponentArgsRest(__VLS_56));
257
- const { default: __VLS_60 } = __VLS_58.slots;
258
- const __VLS_61 = {}.Plus;
259
- /** @type {[typeof __VLS_components.Plus, ]} */ ;
260
- // @ts-ignore
261
- Plus;
262
- // @ts-ignore
263
- const __VLS_62 = __VLS_asFunctionalComponent(__VLS_61, new __VLS_61({}));
264
- const __VLS_63 = __VLS_62({}, ...__VLS_functionalComponentArgsRest(__VLS_62));
265
- var __VLS_58;
266
- __VLS_asFunctionalElement(__VLS_intrinsics.span, __VLS_intrinsics.span)({});
267
- var __VLS_50;
268
- var __VLS_51;
269
- const __VLS_67 = {}.ElDropdownItem;
270
- /** @type {[typeof __VLS_components.ElDropdownItem, typeof __VLS_components.elDropdownItem, typeof __VLS_components.ElDropdownItem, typeof __VLS_components.elDropdownItem, ]} */ ;
271
- // @ts-ignore
272
- ElDropdownItem;
273
- // @ts-ignore
274
- const __VLS_68 = __VLS_asFunctionalComponent(__VLS_67, new __VLS_67({
275
- ...{ 'onClick': {} },
276
- }));
277
- const __VLS_69 = __VLS_68({
278
- ...{ 'onClick': {} },
279
- }, ...__VLS_functionalComponentArgsRest(__VLS_68));
280
- let __VLS_72;
281
- const __VLS_73 = ({ click: {} },
282
- { onClick: (...[$event]) => {
283
- __VLS_ctx.handleShowExportImportDialog();
284
- // @ts-ignore
285
- [handleShowExportImportDialog,];
286
- } });
287
- const { default: __VLS_74 } = __VLS_70.slots;
288
- __VLS_asFunctionalElement(__VLS_intrinsics.span, __VLS_intrinsics.span)({
289
- ...{ class: "commonBtn" },
290
- });
291
- const __VLS_75 = {}.ElIcon;
292
- /** @type {[typeof __VLS_components.ElIcon, typeof __VLS_components.elIcon, typeof __VLS_components.ElIcon, typeof __VLS_components.elIcon, ]} */ ;
293
- // @ts-ignore
294
- ElIcon;
295
- // @ts-ignore
296
- const __VLS_76 = __VLS_asFunctionalComponent(__VLS_75, new __VLS_75({}));
297
- const __VLS_77 = __VLS_76({}, ...__VLS_functionalComponentArgsRest(__VLS_76));
298
- const { default: __VLS_80 } = __VLS_78.slots;
299
- const __VLS_81 = {}.Connection;
300
- /** @type {[typeof __VLS_components.Connection, ]} */ ;
301
- // @ts-ignore
302
- Connection;
303
- // @ts-ignore
304
- const __VLS_82 = __VLS_asFunctionalComponent(__VLS_81, new __VLS_81({}));
305
- const __VLS_83 = __VLS_82({}, ...__VLS_functionalComponentArgsRest(__VLS_82));
306
- var __VLS_78;
307
- __VLS_asFunctionalElement(__VLS_intrinsics.span, __VLS_intrinsics.span)({});
308
- var __VLS_70;
309
- var __VLS_71;
310
- const __VLS_87 = {}.ElDropdownItem;
311
- /** @type {[typeof __VLS_components.ElDropdownItem, typeof __VLS_components.elDropdownItem, typeof __VLS_components.ElDropdownItem, typeof __VLS_components.elDropdownItem, ]} */ ;
312
- // @ts-ignore
313
- ElDropdownItem;
314
- // @ts-ignore
315
- const __VLS_88 = __VLS_asFunctionalComponent(__VLS_87, new __VLS_87({
316
- ...{ 'onClick': {} },
317
- }));
318
- const __VLS_89 = __VLS_88({
319
- ...{ 'onClick': {} },
320
- }, ...__VLS_functionalComponentArgsRest(__VLS_88));
321
- let __VLS_92;
322
- const __VLS_93 = ({ click: {} },
323
- { onClick: (...[$event]) => {
324
- __VLS_ctx.handleClearCases();
325
- // @ts-ignore
326
- [handleClearCases,];
327
- } });
328
- const { default: __VLS_94 } = __VLS_90.slots;
329
- __VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
330
- ...{ class: "commonBtn" },
331
- });
332
- const __VLS_95 = {}.ElIcon;
333
- /** @type {[typeof __VLS_components.ElIcon, typeof __VLS_components.elIcon, typeof __VLS_components.ElIcon, typeof __VLS_components.elIcon, ]} */ ;
334
- // @ts-ignore
335
- ElIcon;
336
- // @ts-ignore
337
- const __VLS_96 = __VLS_asFunctionalComponent(__VLS_95, new __VLS_95({}));
338
- const __VLS_97 = __VLS_96({}, ...__VLS_functionalComponentArgsRest(__VLS_96));
339
- const { default: __VLS_100 } = __VLS_98.slots;
340
- const __VLS_101 = {}.Delete;
341
- /** @type {[typeof __VLS_components.Delete, ]} */ ;
342
- // @ts-ignore
343
- Delete;
344
- // @ts-ignore
345
- const __VLS_102 = __VLS_asFunctionalComponent(__VLS_101, new __VLS_101({}));
346
- const __VLS_103 = __VLS_102({}, ...__VLS_functionalComponentArgsRest(__VLS_102));
347
- var __VLS_98;
348
- __VLS_asFunctionalElement(__VLS_intrinsics.span, __VLS_intrinsics.span)({});
349
- var __VLS_90;
350
- var __VLS_91;
351
- const __VLS_107 = {}.ElDropdownItem;
352
- /** @type {[typeof __VLS_components.ElDropdownItem, typeof __VLS_components.elDropdownItem, typeof __VLS_components.ElDropdownItem, typeof __VLS_components.elDropdownItem, ]} */ ;
353
- // @ts-ignore
354
- ElDropdownItem;
355
- // @ts-ignore
356
- const __VLS_108 = __VLS_asFunctionalComponent(__VLS_107, new __VLS_107({
357
- ...{ 'onClick': {} },
358
- }));
359
- const __VLS_109 = __VLS_108({
360
- ...{ 'onClick': {} },
361
- }, ...__VLS_functionalComponentArgsRest(__VLS_108));
362
- let __VLS_112;
363
- const __VLS_113 = ({ click: {} },
364
- { onClick: (...[$event]) => {
365
- __VLS_ctx.handleLoadCases(true);
366
- // @ts-ignore
367
- [handleLoadCases,];
368
- } });
369
- const { default: __VLS_114 } = __VLS_110.slots;
370
- __VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
371
- ...{ class: "commonBtn" },
372
- });
373
- const __VLS_115 = {}.ElIcon;
374
- /** @type {[typeof __VLS_components.ElIcon, typeof __VLS_components.elIcon, typeof __VLS_components.ElIcon, typeof __VLS_components.elIcon, ]} */ ;
375
- // @ts-ignore
376
- ElIcon;
377
- // @ts-ignore
378
- const __VLS_116 = __VLS_asFunctionalComponent(__VLS_115, new __VLS_115({}));
379
- const __VLS_117 = __VLS_116({}, ...__VLS_functionalComponentArgsRest(__VLS_116));
380
- const { default: __VLS_120 } = __VLS_118.slots;
381
- const __VLS_121 = {}.Refresh;
382
- /** @type {[typeof __VLS_components.Refresh, ]} */ ;
383
- // @ts-ignore
384
- Refresh;
385
- // @ts-ignore
386
- const __VLS_122 = __VLS_asFunctionalComponent(__VLS_121, new __VLS_121({}));
387
- const __VLS_123 = __VLS_122({}, ...__VLS_functionalComponentArgsRest(__VLS_122));
388
- var __VLS_118;
389
- __VLS_asFunctionalElement(__VLS_intrinsics.span, __VLS_intrinsics.span)({});
390
- var __VLS_110;
391
- var __VLS_111;
392
- const __VLS_127 = {}.ElDropdownItem;
393
- /** @type {[typeof __VLS_components.ElDropdownItem, typeof __VLS_components.elDropdownItem, typeof __VLS_components.ElDropdownItem, typeof __VLS_components.elDropdownItem, ]} */ ;
394
- // @ts-ignore
395
- ElDropdownItem;
396
- // @ts-ignore
397
- const __VLS_128 = __VLS_asFunctionalComponent(__VLS_127, new __VLS_127({
398
- ...{ 'onClick': {} },
399
- }));
400
- const __VLS_129 = __VLS_128({
401
- ...{ 'onClick': {} },
402
- }, ...__VLS_functionalComponentArgsRest(__VLS_128));
403
- let __VLS_132;
404
- const __VLS_133 = ({ click: {} },
405
- { onClick: (...[$event]) => {
406
- __VLS_ctx.handleSaveCases();
407
- // @ts-ignore
408
- [handleSaveCases,];
409
- } });
410
- const { default: __VLS_134 } = __VLS_130.slots;
411
- __VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
412
- ...{ class: "commonBtn" },
413
- });
414
- const __VLS_135 = {}.ElIcon;
415
- /** @type {[typeof __VLS_components.ElIcon, typeof __VLS_components.elIcon, typeof __VLS_components.ElIcon, typeof __VLS_components.elIcon, ]} */ ;
416
- // @ts-ignore
417
- ElIcon;
418
- // @ts-ignore
419
- const __VLS_136 = __VLS_asFunctionalComponent(__VLS_135, new __VLS_135({}));
420
- const __VLS_137 = __VLS_136({}, ...__VLS_functionalComponentArgsRest(__VLS_136));
421
- const { default: __VLS_140 } = __VLS_138.slots;
422
- const __VLS_141 = {}.Finished;
423
- /** @type {[typeof __VLS_components.Finished, ]} */ ;
424
- // @ts-ignore
425
- Finished;
426
- // @ts-ignore
427
- const __VLS_142 = __VLS_asFunctionalComponent(__VLS_141, new __VLS_141({}));
428
- const __VLS_143 = __VLS_142({}, ...__VLS_functionalComponentArgsRest(__VLS_142));
429
- var __VLS_138;
430
- __VLS_asFunctionalElement(__VLS_intrinsics.span, __VLS_intrinsics.span)({});
431
- var __VLS_130;
432
- var __VLS_131;
433
- var __VLS_22;
434
- }
435
- var __VLS_3;
436
- /** @type {[typeof ExportImportDialog, ]} */ ;
437
- // @ts-ignore
438
- const __VLS_147 = __VLS_asFunctionalComponent(ExportImportDialog, new ExportImportDialog({
439
- ref: "exportImportDialogRef",
440
- }));
441
- const __VLS_148 = __VLS_147({
442
- ref: "exportImportDialogRef",
443
- }, ...__VLS_functionalComponentArgsRest(__VLS_147));
444
- /** @type {typeof __VLS_ctx.exportImportDialogRef} */ ;
445
- var __VLS_151 = {};
446
- // @ts-ignore
447
- [exportImportDialogRef,];
448
- var __VLS_149;
449
- /** @type {__VLS_StyleScopedClasses['commonBtn']} */ ;
450
- /** @type {__VLS_StyleScopedClasses['dropdown_menu_item']} */ ;
451
- /** @type {__VLS_StyleScopedClasses['dropdown_menu_item_active']} */ ;
452
- /** @type {__VLS_StyleScopedClasses['dropdown_menu_item_title']} */ ;
453
- /** @type {__VLS_StyleScopedClasses['dropdown_menu_noData']} */ ;
454
- /** @type {__VLS_StyleScopedClasses['dropdown_menu_btn']} */ ;
455
- /** @type {__VLS_StyleScopedClasses['commonBtn']} */ ;
456
- /** @type {__VLS_StyleScopedClasses['commonBtn']} */ ;
457
- /** @type {__VLS_StyleScopedClasses['commonBtn']} */ ;
458
- /** @type {__VLS_StyleScopedClasses['commonBtn']} */ ;
459
- /** @type {__VLS_StyleScopedClasses['commonBtn']} */ ;
460
- // @ts-ignore
461
- var __VLS_152 = __VLS_151;
462
- const __VLS_export = (await import('vue')).defineComponent({
463
- __typeProps: {},
464
- });
465
- export default {};
@@ -1,108 +0,0 @@
1
- import { ref } from 'vue';
2
- import { storeToRefs } from 'pinia';
3
- import { useEditorStore } from '@/stores';
4
- import { ElButton, ElInput } from 'element-plus';
5
- import { Select } from '@element-plus/icons-vue';
6
- const editorStore = useEditorStore();
7
- const { currentCase } = storeToRefs(editorStore);
8
- const caseInputRef = ref();
9
- const focusTitle = ref(false);
10
- const handleTitleEdit = () => {
11
- focusTitle.value = true;
12
- requestAnimationFrame(() => {
13
- caseInputRef.value.focus();
14
- });
15
- };
16
- const handleTitleChange = () => {
17
- focusTitle.value = false;
18
- };
19
- debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
20
- const __VLS_ctx = {
21
- ...{},
22
- ...{},
23
- };
24
- let __VLS_components;
25
- let __VLS_directives;
26
- if (__VLS_ctx.currentCase && __VLS_ctx.focusTitle) {
27
- // @ts-ignore
28
- [currentCase, focusTitle,];
29
- const __VLS_0 = {}.ElInput;
30
- /** @type {[typeof __VLS_components.ElInput, typeof __VLS_components.elInput, typeof __VLS_components.ElInput, typeof __VLS_components.elInput, ]} */ ;
31
- // @ts-ignore
32
- ElInput;
33
- // @ts-ignore
34
- const __VLS_1 = __VLS_asFunctionalComponent(__VLS_0, new __VLS_0({
35
- ...{ 'onBlur': {} },
36
- ref: "caseInputRef",
37
- modelValue: (__VLS_ctx.currentCase.title),
38
- maxlength: "20",
39
- placeholder: "请输入方案名称",
40
- showWordLimit: true,
41
- type: "text",
42
- size: "default",
43
- ...{ style: "width: 300px" },
44
- }));
45
- const __VLS_2 = __VLS_1({
46
- ...{ 'onBlur': {} },
47
- ref: "caseInputRef",
48
- modelValue: (__VLS_ctx.currentCase.title),
49
- maxlength: "20",
50
- placeholder: "请输入方案名称",
51
- showWordLimit: true,
52
- type: "text",
53
- size: "default",
54
- ...{ style: "width: 300px" },
55
- }, ...__VLS_functionalComponentArgsRest(__VLS_1));
56
- let __VLS_5;
57
- const __VLS_6 = ({ blur: {} },
58
- { onBlur: (__VLS_ctx.handleTitleChange) });
59
- /** @type {typeof __VLS_ctx.caseInputRef} */ ;
60
- var __VLS_7 = {};
61
- const { default: __VLS_9 } = __VLS_3.slots;
62
- // @ts-ignore
63
- [currentCase, handleTitleChange, caseInputRef,];
64
- {
65
- const { append: __VLS_10 } = __VLS_3.slots;
66
- const __VLS_11 = {}.ElButton;
67
- /** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
68
- // @ts-ignore
69
- ElButton;
70
- // @ts-ignore
71
- const __VLS_12 = __VLS_asFunctionalComponent(__VLS_11, new __VLS_11({
72
- icon: (__VLS_ctx.Select),
73
- }));
74
- const __VLS_13 = __VLS_12({
75
- icon: (__VLS_ctx.Select),
76
- }, ...__VLS_functionalComponentArgsRest(__VLS_12));
77
- // @ts-ignore
78
- [Select,];
79
- }
80
- var __VLS_3;
81
- var __VLS_4;
82
- }
83
- else {
84
- if (__VLS_ctx.currentCase) {
85
- // @ts-ignore
86
- [currentCase,];
87
- __VLS_asFunctionalElement(__VLS_intrinsics.h1, __VLS_intrinsics.h1)({
88
- ...{ onClick: (__VLS_ctx.handleTitleEdit) },
89
- ...{ class: "case_title" },
90
- });
91
- // @ts-ignore
92
- [handleTitleEdit,];
93
- (__VLS_ctx.currentCase.title);
94
- // @ts-ignore
95
- [currentCase,];
96
- }
97
- else {
98
- __VLS_asFunctionalElement(__VLS_intrinsics.span, __VLS_intrinsics.span)({
99
- ...{ class: "noData" },
100
- });
101
- }
102
- }
103
- /** @type {__VLS_StyleScopedClasses['case_title']} */ ;
104
- /** @type {__VLS_StyleScopedClasses['noData']} */ ;
105
- // @ts-ignore
106
- var __VLS_8 = __VLS_7;
107
- const __VLS_export = (await import('vue')).defineComponent({});
108
- export default {};