@jnrs/lingshu-smart 2.2.8 → 2.2.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/App.vue.d.ts +1 -2
- package/dist/assets/data/editor_default_setting.d.ts +1 -8
- package/dist/assets/data/editor_preset_menu.d.ts +1 -8
- package/dist/components/editor/ControlBar/CaseManger.vue.d.ts +15 -3
- package/dist/components/editor/ControlBar/CaseTitleEdit.vue.d.ts +411 -2
- package/dist/components/editor/ControlBar/ExportImportDialog.vue.d.ts +2 -3
- package/dist/components/editor/ControlBar/MainButton.vue.d.ts +2 -3
- package/dist/components/editor/ControlBar/StepButton.vue.d.ts +1 -2
- package/dist/components/editor/ControlBar/StepRecordVisualizer.vue.d.ts +1 -2
- package/dist/components/editor/DrawingBoard.vue.d.ts +1 -2
- package/dist/components/editor/MenuCard/Equipments.vue.d.ts +1 -2
- package/dist/components/editor/MenuCard/Layers.vue.d.ts +1 -2
- package/dist/components/editor/MenuCard/index.vue.d.ts +1 -2
- package/dist/components/editor/OptionCard/Equipment/Base.vue.d.ts +1 -2
- package/dist/components/editor/OptionCard/Equipment/DataSets.vue.d.ts +1 -2
- package/dist/components/editor/OptionCard/Equipment/Interaction.vue.d.ts +1 -2
- package/dist/components/editor/OptionCard/Equipment/Position.vue.d.ts +1 -2
- package/dist/components/editor/OptionCard/Equipment/StationSlotGroup.vue.d.ts +1 -2
- package/dist/components/editor/OptionCard/Equipment/index.vue.d.ts +1 -2
- package/dist/components/editor/OptionCard/Equipment/models/MachineTool.vue.d.ts +1 -2
- package/dist/components/editor/OptionCard/Equipment/models/Rail.vue.d.ts +1 -2
- package/dist/components/editor/OptionCard/Equipment/models/SingleJointRobot.vue.d.ts +2 -0
- package/dist/components/editor/OptionCard/Scene/Background.vue.d.ts +1 -2
- package/dist/components/editor/OptionCard/Scene/index.vue.d.ts +1 -2
- package/dist/components/editor/OptionCard/index.vue.d.ts +1 -2
- package/dist/components/editor/index.vue.d.ts +13 -4
- package/dist/components/index.d.ts +2 -2
- package/dist/components/index.js +27281 -4
- package/dist/components/preview/index.vue.d.ts +5 -6
- package/dist/composables/useStepRecord.d.ts +4 -12
- package/dist/constants/options.d.ts +1 -8
- package/dist/controller/AppController.d.ts +3 -10
- package/dist/controller/EditorController.d.ts +2 -9
- package/dist/index.js +1 -1
- package/dist/json/cases.json +577 -20
- package/dist/locales/i18next.d.ts +1 -1
- package/dist/locales/index.d.ts +2 -2
- package/dist/locales/index.js +13 -3
- package/dist/main.d.ts +0 -3
- package/dist/playground/EditPageDemo.vue.d.ts +1 -2
- package/dist/playground/ViewPageDemo.vue.d.ts +27 -2
- package/dist/stores/useAppStore.d.ts +5 -12
- package/dist/stores/useDataStore.d.ts +11 -18
- package/dist/stores/useEditorStore.d.ts +20 -27
- package/dist/types/app.types.d.ts +1 -1
- package/dist/types/base.types.d.ts +1 -1
- package/dist/types/components/config.types.d.ts +1 -1
- package/dist/types/components/operating.types.d.ts +1 -1
- package/dist/types/enums.d.ts +1 -1
- package/dist/types/guards.d.ts +5 -12
- package/dist/types/index.d.ts +2 -2
- package/dist/types/models/config.types.d.ts +49 -47
- package/dist/types/models/operating.types.d.ts +53 -53
- package/dist/ui/abstract/ComponentAbs.d.ts +2 -9
- package/dist/ui/abstract/ModelAbs.d.ts +2 -10
- package/dist/ui/components/Entrance.d.ts +1 -8
- package/dist/ui/components/Light.d.ts +1 -8
- package/dist/ui/components/Progress.d.ts +1 -8
- package/dist/ui/components/Resource.d.ts +1 -8
- package/dist/ui/components/StationSlot.d.ts +1 -23
- package/dist/ui/components/StationSlotGroup.d.ts +1 -8
- package/dist/ui/factories/createGlass.d.ts +0 -6
- package/dist/ui/factories/createModel.d.ts +2 -9
- package/dist/ui/factories/createShadow.d.ts +1 -9
- package/dist/ui/factories/createText.d.ts +0 -7
- package/dist/ui/models/CleaningMachine.d.ts +1 -1
- package/dist/ui/models/DoubleJointRobot.d.ts +19 -20
- package/dist/ui/models/LoadingStation.d.ts +1 -1
- package/dist/ui/models/MachineTool.d.ts +1 -1
- package/dist/ui/models/MarkingMachine.d.ts +1 -1
- package/dist/ui/models/Rail.d.ts +1 -1
- package/dist/ui/models/ResourceStore.d.ts +1 -1
- package/dist/ui/models/SingleJointRobot.d.ts +3 -3
- package/dist/ui/shapes/NamePlate.d.ts +0 -7
- package/dist/ui/shapes/ScrewHole.d.ts +0 -7
- package/dist/ui/shapes/Texture.d.ts +1 -8
- package/dist/ui/utils/attr.d.ts +2 -9
- package/dist/utils/type-guards.d.ts +1 -1
- package/package.json +3 -3
- package/dist/App.vue.js +0 -30
- package/dist/assets/data/editor_default.d.ts +0 -16
- package/dist/assets/data/editor_default.js +0 -59
- package/dist/assets/data/editor_default_setting.js +0 -58
- package/dist/assets/data/editor_preset.d.ts +0 -9
- package/dist/assets/data/editor_preset.js +0 -51
- package/dist/assets/data/editor_preset_menu.js +0 -290
- package/dist/components/editor/ControlBar/CaseManger.vue.js +0 -465
- package/dist/components/editor/ControlBar/CaseTitleEdit.vue.js +0 -108
- package/dist/components/editor/ControlBar/ExportImportDialog.vue.js +0 -280
- package/dist/components/editor/ControlBar/MainButton.vue.js +0 -183
- package/dist/components/editor/ControlBar/StepButton.vue.js +0 -147
- package/dist/components/editor/ControlBar/StepRecordVisualizer.vue.js +0 -98
- package/dist/components/editor/DrawingBoard.vue.js +0 -31
- package/dist/components/editor/MenuCard/Equipments.vue.js +0 -129
- package/dist/components/editor/MenuCard/Layers.vue.js +0 -201
- package/dist/components/editor/MenuCard/index.vue.js +0 -84
- package/dist/components/editor/OptionCard/Equipment/Base.vue.js +0 -96
- package/dist/components/editor/OptionCard/Equipment/Binds.vue.d.ts +0 -3
- package/dist/components/editor/OptionCard/Equipment/Binds.vue.js +0 -443
- package/dist/components/editor/OptionCard/Equipment/Bot.vue.d.ts +0 -3
- package/dist/components/editor/OptionCard/Equipment/Bot.vue.js +0 -81
- package/dist/components/editor/OptionCard/Equipment/DataSets.vue.js +0 -304
- package/dist/components/editor/OptionCard/Equipment/DockStore.vue.d.ts +0 -3
- package/dist/components/editor/OptionCard/Equipment/DockStore.vue.js +0 -597
- package/dist/components/editor/OptionCard/Equipment/Interaction.vue.js +0 -287
- package/dist/components/editor/OptionCard/Equipment/Position.backup.vue.d.ts +0 -3
- package/dist/components/editor/OptionCard/Equipment/Position.backup.vue.js +0 -440
- package/dist/components/editor/OptionCard/Equipment/Position.vue.js +0 -436
- package/dist/components/editor/OptionCard/Equipment/StationSlotGroup.vue.js +0 -1131
- package/dist/components/editor/OptionCard/Equipment/Store.vue.d.ts +0 -3
- package/dist/components/editor/OptionCard/Equipment/Store.vue.js +0 -453
- package/dist/components/editor/OptionCard/Equipment/Trailer.vue.d.ts +0 -3
- package/dist/components/editor/OptionCard/Equipment/Trailer.vue.js +0 -1109
- package/dist/components/editor/OptionCard/Equipment/index.vue.js +0 -100
- package/dist/components/editor/OptionCard/Equipment/models/MachineTool.vue.js +0 -99
- package/dist/components/editor/OptionCard/Equipment/models/Rail.vue.js +0 -225
- package/dist/components/editor/OptionCard/Equipment/models/SingleGripperRobot.vue.d.ts +0 -3
- package/dist/components/editor/OptionCard/Equipment/models/SingleGripperRobot.vue.js +0 -99
- package/dist/components/editor/OptionCard/Scene/Background.vue.js +0 -543
- package/dist/components/editor/OptionCard/Scene/index.vue.js +0 -200
- package/dist/components/editor/OptionCard/index.vue.js +0 -73
- package/dist/components/editor/index.vue.js +0 -156
- package/dist/components/preview/index.vue.js +0 -104
- package/dist/composables/useStepRecord.js +0 -135
- package/dist/constants/options.js +0 -55
- package/dist/controller/AppController.js +0 -168
- package/dist/controller/EditorController.js +0 -173
- package/dist/locales/en.js +0 -5
- package/dist/locales/i18next.js +0 -6
- package/dist/locales/zhCn.js +0 -5
- package/dist/main.js +0 -13
- package/dist/playground/EditPageDemo.vue.js +0 -57
- package/dist/playground/ViewPageDemo.vue.js +0 -277
- package/dist/stores/index.js +0 -3
- package/dist/stores/useAppStore.js +0 -78
- package/dist/stores/useDataStore.js +0 -116
- package/dist/stores/useEditorStore.js +0 -263
- package/dist/types/app.types.js +0 -2
- package/dist/types/base.types.js +0 -1
- package/dist/types/components/config.types.js +0 -1
- package/dist/types/components/operating.types.js +0 -1
- package/dist/types/enums.js +0 -46
- package/dist/types/guards.js +0 -28
- package/dist/types/index.js +0 -8
- package/dist/types/models/config.types.js +0 -1
- package/dist/types/models/operating.types.js +0 -1
- package/dist/ui/abstract/ComponentAbs.js +0 -64
- package/dist/ui/abstract/ModelAbs.js +0 -119
- package/dist/ui/components/Entrance.js +0 -83
- package/dist/ui/components/Light.js +0 -167
- package/dist/ui/components/Progress.js +0 -84
- package/dist/ui/components/Resource.js +0 -70
- package/dist/ui/components/StationSlot.js +0 -207
- package/dist/ui/components/StationSlotGroup.js +0 -110
- package/dist/ui/factories/createGlass.js +0 -51
- package/dist/ui/factories/createModel.js +0 -35
- package/dist/ui/factories/createShadow.js +0 -52
- package/dist/ui/factories/createText.js +0 -46
- package/dist/ui/models/CleaningMachine.js +0 -141
- package/dist/ui/models/DoubleJointRobot.js +0 -545
- package/dist/ui/models/LoadingStation.js +0 -167
- package/dist/ui/models/MachineTool.js +0 -184
- package/dist/ui/models/MarkingMachine.js +0 -148
- package/dist/ui/models/Rail.js +0 -117
- package/dist/ui/models/ResourceStore.js +0 -101
- package/dist/ui/models/SingleBot.d.ts +0 -20
- package/dist/ui/models/SingleBot.js +0 -202
- package/dist/ui/models/SingleGripperRobot.d.ts +0 -19
- package/dist/ui/models/SingleGripperRobot.js +0 -272
- package/dist/ui/models/SingleJointRobot.js +0 -346
- package/dist/ui/shapes/NamePlate.js +0 -85
- package/dist/ui/shapes/ScrewHole.js +0 -57
- package/dist/ui/shapes/Texture.js +0 -51
- package/dist/ui/utils/attr.js +0 -50
- package/dist/utils/index.js +0 -92
- package/dist/utils/type-guards.js +0 -105
|
@@ -1,280 +0,0 @@
|
|
|
1
|
-
import { ref } from 'vue';
|
|
2
|
-
import { formatDateTime, clipboard } from '@jnrs/shared';
|
|
3
|
-
import { ElDialog, ElRadioGroup, ElRadioButton, ElButton, ElInput, ElMessage } from 'element-plus';
|
|
4
|
-
import { storeToRefs } from 'pinia';
|
|
5
|
-
import { useDataStore, useEditorStore } from '@/stores';
|
|
6
|
-
const sharedStore = useDataStore();
|
|
7
|
-
const editorStore = useEditorStore();
|
|
8
|
-
const { cases } = storeToRefs(sharedStore);
|
|
9
|
-
const { updateCases, addCase } = sharedStore;
|
|
10
|
-
const { currentCase } = storeToRefs(editorStore);
|
|
11
|
-
const dialogVisible = ref(false);
|
|
12
|
-
const ACTIVATED_TYPE = 'cases';
|
|
13
|
-
const exportImportType = ref(ACTIVATED_TYPE);
|
|
14
|
-
const stringData = ref();
|
|
15
|
-
// 字符串化
|
|
16
|
-
const stringify = () => {
|
|
17
|
-
if (exportImportType.value === 'cases') {
|
|
18
|
-
stringData.value = JSON.stringify(cases.value, null, 2);
|
|
19
|
-
}
|
|
20
|
-
else if (exportImportType.value === 'currentCase') {
|
|
21
|
-
stringData.value = JSON.stringify(currentCase.value, null, 2);
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
// 显示弹窗
|
|
25
|
-
const showVisible = () => {
|
|
26
|
-
dialogVisible.value = true;
|
|
27
|
-
stringify();
|
|
28
|
-
};
|
|
29
|
-
// 复制数据
|
|
30
|
-
const handleCopyJson = (value) => {
|
|
31
|
-
clipboard(value);
|
|
32
|
-
ElMessage({
|
|
33
|
-
message: '数据已复制到剪贴板',
|
|
34
|
-
type: 'success',
|
|
35
|
-
grouping: true,
|
|
36
|
-
showClose: true
|
|
37
|
-
});
|
|
38
|
-
};
|
|
39
|
-
// 导出并下载数据
|
|
40
|
-
const handleDownloadJson = () => {
|
|
41
|
-
let fileName = '数据 ';
|
|
42
|
-
if (exportImportType.value === 'cases') {
|
|
43
|
-
fileName = '方案列表数据 ';
|
|
44
|
-
}
|
|
45
|
-
else if (exportImportType.value === 'currentCase' && currentCase.value) {
|
|
46
|
-
fileName = '当前方案数据-' + currentCase.value.title + ' ';
|
|
47
|
-
}
|
|
48
|
-
const blob = new Blob([stringData.value], { type: 'text/plain;charset=utf-8' });
|
|
49
|
-
const url = URL.createObjectURL(blob);
|
|
50
|
-
const a = document.createElement('a');
|
|
51
|
-
a.href = url;
|
|
52
|
-
a.download = fileName + formatDateTime() + '.json';
|
|
53
|
-
a.click();
|
|
54
|
-
URL.revokeObjectURL(url);
|
|
55
|
-
};
|
|
56
|
-
// 确认导入
|
|
57
|
-
const confirmImport = () => {
|
|
58
|
-
try {
|
|
59
|
-
const trimmedData = stringData.value.trim();
|
|
60
|
-
if (!trimmedData.startsWith('{') && !trimmedData.startsWith('[')) {
|
|
61
|
-
throw new Error(`数据格式错误:期望 JSON 对象或数组,但收到以 "${trimmedData[0]}" 开头的内容`);
|
|
62
|
-
}
|
|
63
|
-
if (exportImportType.value === 'cases') {
|
|
64
|
-
const data = JSON.parse(trimmedData);
|
|
65
|
-
updateCases(data);
|
|
66
|
-
}
|
|
67
|
-
else if (exportImportType.value === 'currentCase') {
|
|
68
|
-
const data = JSON.parse(trimmedData);
|
|
69
|
-
addCase(data);
|
|
70
|
-
}
|
|
71
|
-
dialogVisible.value = false;
|
|
72
|
-
ElMessage({
|
|
73
|
-
message: '导入成功',
|
|
74
|
-
type: 'success',
|
|
75
|
-
grouping: true,
|
|
76
|
-
showClose: true
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
|
-
catch (error) {
|
|
80
|
-
ElMessage({
|
|
81
|
-
message: error || '数据格式错误',
|
|
82
|
-
type: 'error',
|
|
83
|
-
grouping: true,
|
|
84
|
-
showClose: true
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
};
|
|
88
|
-
const __VLS_exposed = {
|
|
89
|
-
showVisible
|
|
90
|
-
};
|
|
91
|
-
defineExpose(__VLS_exposed);
|
|
92
|
-
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
93
|
-
const __VLS_ctx = {
|
|
94
|
-
...{},
|
|
95
|
-
...{},
|
|
96
|
-
};
|
|
97
|
-
let __VLS_components;
|
|
98
|
-
let __VLS_directives;
|
|
99
|
-
const __VLS_0 = {}.ElDialog;
|
|
100
|
-
/** @type {[typeof __VLS_components.ElDialog, typeof __VLS_components.elDialog, typeof __VLS_components.ElDialog, typeof __VLS_components.elDialog, ]} */ ;
|
|
101
|
-
// @ts-ignore
|
|
102
|
-
ElDialog;
|
|
103
|
-
// @ts-ignore
|
|
104
|
-
const __VLS_1 = __VLS_asFunctionalComponent(__VLS_0, new __VLS_0({
|
|
105
|
-
modelValue: (__VLS_ctx.dialogVisible),
|
|
106
|
-
title: "导入与导出",
|
|
107
|
-
width: "50%",
|
|
108
|
-
center: true,
|
|
109
|
-
appendToBody: (true),
|
|
110
|
-
closeOnClickModal: (true),
|
|
111
|
-
closeOnPressEscape: (true),
|
|
112
|
-
draggable: true,
|
|
113
|
-
overflow: true,
|
|
114
|
-
}));
|
|
115
|
-
const __VLS_2 = __VLS_1({
|
|
116
|
-
modelValue: (__VLS_ctx.dialogVisible),
|
|
117
|
-
title: "导入与导出",
|
|
118
|
-
width: "50%",
|
|
119
|
-
center: true,
|
|
120
|
-
appendToBody: (true),
|
|
121
|
-
closeOnClickModal: (true),
|
|
122
|
-
closeOnPressEscape: (true),
|
|
123
|
-
draggable: true,
|
|
124
|
-
overflow: true,
|
|
125
|
-
}, ...__VLS_functionalComponentArgsRest(__VLS_1));
|
|
126
|
-
var __VLS_5 = {};
|
|
127
|
-
const { default: __VLS_6 } = __VLS_3.slots;
|
|
128
|
-
// @ts-ignore
|
|
129
|
-
[dialogVisible,];
|
|
130
|
-
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
131
|
-
...{ class: "optionCardDialog_textarea" },
|
|
132
|
-
});
|
|
133
|
-
__VLS_asFunctionalElement(__VLS_intrinsics.p, __VLS_intrinsics.p)({
|
|
134
|
-
...{ class: "optionCardDialog_title" },
|
|
135
|
-
});
|
|
136
|
-
const __VLS_7 = {}.ElRadioGroup;
|
|
137
|
-
/** @type {[typeof __VLS_components.ElRadioGroup, typeof __VLS_components.elRadioGroup, typeof __VLS_components.ElRadioGroup, typeof __VLS_components.elRadioGroup, ]} */ ;
|
|
138
|
-
// @ts-ignore
|
|
139
|
-
ElRadioGroup;
|
|
140
|
-
// @ts-ignore
|
|
141
|
-
const __VLS_8 = __VLS_asFunctionalComponent(__VLS_7, new __VLS_7({
|
|
142
|
-
...{ 'onChange': {} },
|
|
143
|
-
modelValue: (__VLS_ctx.exportImportType),
|
|
144
|
-
fill: "rgb(242, 195, 79)",
|
|
145
|
-
textColor: "rgba(33, 33, 33, 0.85)",
|
|
146
|
-
size: "small",
|
|
147
|
-
}));
|
|
148
|
-
const __VLS_9 = __VLS_8({
|
|
149
|
-
...{ 'onChange': {} },
|
|
150
|
-
modelValue: (__VLS_ctx.exportImportType),
|
|
151
|
-
fill: "rgb(242, 195, 79)",
|
|
152
|
-
textColor: "rgba(33, 33, 33, 0.85)",
|
|
153
|
-
size: "small",
|
|
154
|
-
}, ...__VLS_functionalComponentArgsRest(__VLS_8));
|
|
155
|
-
let __VLS_12;
|
|
156
|
-
const __VLS_13 = ({ change: {} },
|
|
157
|
-
{ onChange: (...[$event]) => {
|
|
158
|
-
__VLS_ctx.stringify();
|
|
159
|
-
// @ts-ignore
|
|
160
|
-
[exportImportType, stringify,];
|
|
161
|
-
} });
|
|
162
|
-
const { default: __VLS_14 } = __VLS_10.slots;
|
|
163
|
-
const __VLS_15 = {}.ElRadioButton;
|
|
164
|
-
/** @type {[typeof __VLS_components.ElRadioButton, typeof __VLS_components.elRadioButton, typeof __VLS_components.ElRadioButton, typeof __VLS_components.elRadioButton, ]} */ ;
|
|
165
|
-
// @ts-ignore
|
|
166
|
-
ElRadioButton;
|
|
167
|
-
// @ts-ignore
|
|
168
|
-
const __VLS_16 = __VLS_asFunctionalComponent(__VLS_15, new __VLS_15({
|
|
169
|
-
value: "cases",
|
|
170
|
-
}));
|
|
171
|
-
const __VLS_17 = __VLS_16({
|
|
172
|
-
value: "cases",
|
|
173
|
-
}, ...__VLS_functionalComponentArgsRest(__VLS_16));
|
|
174
|
-
const { default: __VLS_20 } = __VLS_18.slots;
|
|
175
|
-
var __VLS_18;
|
|
176
|
-
const __VLS_21 = {}.ElRadioButton;
|
|
177
|
-
/** @type {[typeof __VLS_components.ElRadioButton, typeof __VLS_components.elRadioButton, typeof __VLS_components.ElRadioButton, typeof __VLS_components.elRadioButton, ]} */ ;
|
|
178
|
-
// @ts-ignore
|
|
179
|
-
ElRadioButton;
|
|
180
|
-
// @ts-ignore
|
|
181
|
-
const __VLS_22 = __VLS_asFunctionalComponent(__VLS_21, new __VLS_21({
|
|
182
|
-
value: "currentCase",
|
|
183
|
-
}));
|
|
184
|
-
const __VLS_23 = __VLS_22({
|
|
185
|
-
value: "currentCase",
|
|
186
|
-
}, ...__VLS_functionalComponentArgsRest(__VLS_22));
|
|
187
|
-
const { default: __VLS_26 } = __VLS_24.slots;
|
|
188
|
-
var __VLS_24;
|
|
189
|
-
var __VLS_10;
|
|
190
|
-
var __VLS_11;
|
|
191
|
-
__VLS_asFunctionalElement(__VLS_intrinsics.p, __VLS_intrinsics.p)({
|
|
192
|
-
...{ class: "optionCardDialog_title" },
|
|
193
|
-
});
|
|
194
|
-
__VLS_asFunctionalElement(__VLS_intrinsics.span, __VLS_intrinsics.span)({
|
|
195
|
-
...{ onClick: (...[$event]) => {
|
|
196
|
-
__VLS_ctx.handleDownloadJson();
|
|
197
|
-
// @ts-ignore
|
|
198
|
-
[handleDownloadJson,];
|
|
199
|
-
} },
|
|
200
|
-
...{ class: "commonBtn" },
|
|
201
|
-
});
|
|
202
|
-
__VLS_asFunctionalElement(__VLS_intrinsics.span, __VLS_intrinsics.span)({});
|
|
203
|
-
__VLS_asFunctionalElement(__VLS_intrinsics.span, __VLS_intrinsics.span)({
|
|
204
|
-
...{ onClick: (...[$event]) => {
|
|
205
|
-
__VLS_ctx.handleCopyJson(__VLS_ctx.stringData);
|
|
206
|
-
// @ts-ignore
|
|
207
|
-
[handleCopyJson, stringData,];
|
|
208
|
-
} },
|
|
209
|
-
...{ class: "commonBtn" },
|
|
210
|
-
});
|
|
211
|
-
__VLS_asFunctionalElement(__VLS_intrinsics.span, __VLS_intrinsics.span)({});
|
|
212
|
-
__VLS_asFunctionalElement(__VLS_intrinsics.p, __VLS_intrinsics.p)({
|
|
213
|
-
...{ class: "optionCardDialog_title" },
|
|
214
|
-
...{ style: "margin-top: 16px" },
|
|
215
|
-
});
|
|
216
|
-
__VLS_asFunctionalElement(__VLS_intrinsics.span, __VLS_intrinsics.span)({
|
|
217
|
-
...{ style: "color: #f30; font-weight: normal" },
|
|
218
|
-
});
|
|
219
|
-
const __VLS_27 = {}.ElInput;
|
|
220
|
-
/** @type {[typeof __VLS_components.ElInput, typeof __VLS_components.elInput, typeof __VLS_components.ElInput, typeof __VLS_components.elInput, ]} */ ;
|
|
221
|
-
// @ts-ignore
|
|
222
|
-
ElInput;
|
|
223
|
-
// @ts-ignore
|
|
224
|
-
const __VLS_28 = __VLS_asFunctionalComponent(__VLS_27, new __VLS_27({
|
|
225
|
-
modelValue: (__VLS_ctx.stringData),
|
|
226
|
-
type: "textarea",
|
|
227
|
-
autosize: ({ minRows: 10, maxRows: 20 }),
|
|
228
|
-
maxlength: "9999999",
|
|
229
|
-
showWordLimit: true,
|
|
230
|
-
}));
|
|
231
|
-
const __VLS_29 = __VLS_28({
|
|
232
|
-
modelValue: (__VLS_ctx.stringData),
|
|
233
|
-
type: "textarea",
|
|
234
|
-
autosize: ({ minRows: 10, maxRows: 20 }),
|
|
235
|
-
maxlength: "9999999",
|
|
236
|
-
showWordLimit: true,
|
|
237
|
-
}, ...__VLS_functionalComponentArgsRest(__VLS_28));
|
|
238
|
-
// @ts-ignore
|
|
239
|
-
[stringData,];
|
|
240
|
-
{
|
|
241
|
-
const { footer: __VLS_33 } = __VLS_3.slots;
|
|
242
|
-
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
243
|
-
...{ class: "optionCardDialog_footer" },
|
|
244
|
-
});
|
|
245
|
-
const __VLS_34 = {}.ElButton;
|
|
246
|
-
/** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
|
|
247
|
-
// @ts-ignore
|
|
248
|
-
ElButton;
|
|
249
|
-
// @ts-ignore
|
|
250
|
-
const __VLS_35 = __VLS_asFunctionalComponent(__VLS_34, new __VLS_34({
|
|
251
|
-
...{ 'onClick': {} },
|
|
252
|
-
type: "primary",
|
|
253
|
-
}));
|
|
254
|
-
const __VLS_36 = __VLS_35({
|
|
255
|
-
...{ 'onClick': {} },
|
|
256
|
-
type: "primary",
|
|
257
|
-
}, ...__VLS_functionalComponentArgsRest(__VLS_35));
|
|
258
|
-
let __VLS_39;
|
|
259
|
-
const __VLS_40 = ({ click: {} },
|
|
260
|
-
{ onClick: (...[$event]) => {
|
|
261
|
-
__VLS_ctx.confirmImport();
|
|
262
|
-
// @ts-ignore
|
|
263
|
-
[confirmImport,];
|
|
264
|
-
} });
|
|
265
|
-
const { default: __VLS_41 } = __VLS_37.slots;
|
|
266
|
-
var __VLS_37;
|
|
267
|
-
var __VLS_38;
|
|
268
|
-
}
|
|
269
|
-
var __VLS_3;
|
|
270
|
-
/** @type {__VLS_StyleScopedClasses['optionCardDialog_textarea']} */ ;
|
|
271
|
-
/** @type {__VLS_StyleScopedClasses['optionCardDialog_title']} */ ;
|
|
272
|
-
/** @type {__VLS_StyleScopedClasses['optionCardDialog_title']} */ ;
|
|
273
|
-
/** @type {__VLS_StyleScopedClasses['commonBtn']} */ ;
|
|
274
|
-
/** @type {__VLS_StyleScopedClasses['commonBtn']} */ ;
|
|
275
|
-
/** @type {__VLS_StyleScopedClasses['optionCardDialog_title']} */ ;
|
|
276
|
-
/** @type {__VLS_StyleScopedClasses['optionCardDialog_footer']} */ ;
|
|
277
|
-
const __VLS_export = (await import('vue')).defineComponent({
|
|
278
|
-
setup: () => (__VLS_exposed),
|
|
279
|
-
});
|
|
280
|
-
export default {};
|
|
@@ -1,183 +0,0 @@
|
|
|
1
|
-
import { ElIcon, ElDropdownMenu, ElDropdownItem, ElDropdown, ElMessageBox } from 'element-plus';
|
|
2
|
-
import { ArrowDown, SwitchButton, View } from '@element-plus/icons-vue';
|
|
3
|
-
import { cloneDeep } from '@jnrs/shared/lodash';
|
|
4
|
-
import { storeToRefs } from 'pinia';
|
|
5
|
-
import { useEditorStore } from '@/stores';
|
|
6
|
-
const props = defineProps();
|
|
7
|
-
const editorStore = useEditorStore();
|
|
8
|
-
const { currentCase } = storeToRefs(editorStore);
|
|
9
|
-
// 预览
|
|
10
|
-
const handleGoPreview = () => {
|
|
11
|
-
if (!props.handlePreview) {
|
|
12
|
-
console.warn('请先配置 handlePreview 方法');
|
|
13
|
-
return false;
|
|
14
|
-
}
|
|
15
|
-
props.handlePreview(cloneDeep(currentCase.value) || undefined);
|
|
16
|
-
};
|
|
17
|
-
// 退出
|
|
18
|
-
const handleGoExit = () => {
|
|
19
|
-
if (!props.handleExit) {
|
|
20
|
-
console.warn('请先配置 handleExit 方法');
|
|
21
|
-
return false;
|
|
22
|
-
}
|
|
23
|
-
ElMessageBox.confirm('<p style="color: #f30">请注意,您尚未保存的数据将会丢失。</p>', '确定要退出页面吗?', {
|
|
24
|
-
dangerouslyUseHTMLString: true,
|
|
25
|
-
confirmButtonType: 'danger',
|
|
26
|
-
confirmButtonText: '退出页面',
|
|
27
|
-
cancelButtonText: '取消'
|
|
28
|
-
})
|
|
29
|
-
.then(() => {
|
|
30
|
-
props.handleExit?.();
|
|
31
|
-
})
|
|
32
|
-
.catch(() => { });
|
|
33
|
-
};
|
|
34
|
-
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
35
|
-
const __VLS_ctx = {
|
|
36
|
-
...{},
|
|
37
|
-
...{},
|
|
38
|
-
...{},
|
|
39
|
-
...{},
|
|
40
|
-
};
|
|
41
|
-
let __VLS_components;
|
|
42
|
-
let __VLS_directives;
|
|
43
|
-
const __VLS_0 = {}.ElDropdown;
|
|
44
|
-
/** @type {[typeof __VLS_components.ElDropdown, typeof __VLS_components.elDropdown, typeof __VLS_components.ElDropdown, typeof __VLS_components.elDropdown, ]} */ ;
|
|
45
|
-
// @ts-ignore
|
|
46
|
-
ElDropdown;
|
|
47
|
-
// @ts-ignore
|
|
48
|
-
const __VLS_1 = __VLS_asFunctionalComponent(__VLS_0, new __VLS_0({
|
|
49
|
-
trigger: "click",
|
|
50
|
-
}));
|
|
51
|
-
const __VLS_2 = __VLS_1({
|
|
52
|
-
trigger: "click",
|
|
53
|
-
}, ...__VLS_functionalComponentArgsRest(__VLS_1));
|
|
54
|
-
var __VLS_5 = {};
|
|
55
|
-
const { default: __VLS_6 } = __VLS_3.slots;
|
|
56
|
-
__VLS_asFunctionalElement(__VLS_intrinsics.span, __VLS_intrinsics.span)({
|
|
57
|
-
...{ class: "case_change commonBtn" },
|
|
58
|
-
});
|
|
59
|
-
__VLS_asFunctionalElement(__VLS_intrinsics.span, __VLS_intrinsics.span)({});
|
|
60
|
-
const __VLS_7 = {}.ElIcon;
|
|
61
|
-
/** @type {[typeof __VLS_components.ElIcon, typeof __VLS_components.elIcon, typeof __VLS_components.ElIcon, typeof __VLS_components.elIcon, ]} */ ;
|
|
62
|
-
// @ts-ignore
|
|
63
|
-
ElIcon;
|
|
64
|
-
// @ts-ignore
|
|
65
|
-
const __VLS_8 = __VLS_asFunctionalComponent(__VLS_7, new __VLS_7({}));
|
|
66
|
-
const __VLS_9 = __VLS_8({}, ...__VLS_functionalComponentArgsRest(__VLS_8));
|
|
67
|
-
const { default: __VLS_12 } = __VLS_10.slots;
|
|
68
|
-
const __VLS_13 = {}.ArrowDown;
|
|
69
|
-
/** @type {[typeof __VLS_components.ArrowDown, typeof __VLS_components.arrowDown, ]} */ ;
|
|
70
|
-
// @ts-ignore
|
|
71
|
-
ArrowDown;
|
|
72
|
-
// @ts-ignore
|
|
73
|
-
const __VLS_14 = __VLS_asFunctionalComponent(__VLS_13, new __VLS_13({}));
|
|
74
|
-
const __VLS_15 = __VLS_14({}, ...__VLS_functionalComponentArgsRest(__VLS_14));
|
|
75
|
-
var __VLS_10;
|
|
76
|
-
{
|
|
77
|
-
const { dropdown: __VLS_19 } = __VLS_3.slots;
|
|
78
|
-
const __VLS_20 = {}.ElDropdownMenu;
|
|
79
|
-
/** @type {[typeof __VLS_components.ElDropdownMenu, typeof __VLS_components.elDropdownMenu, typeof __VLS_components.ElDropdownMenu, typeof __VLS_components.elDropdownMenu, ]} */ ;
|
|
80
|
-
// @ts-ignore
|
|
81
|
-
ElDropdownMenu;
|
|
82
|
-
// @ts-ignore
|
|
83
|
-
const __VLS_21 = __VLS_asFunctionalComponent(__VLS_20, new __VLS_20({}));
|
|
84
|
-
const __VLS_22 = __VLS_21({}, ...__VLS_functionalComponentArgsRest(__VLS_21));
|
|
85
|
-
const { default: __VLS_25 } = __VLS_23.slots;
|
|
86
|
-
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
87
|
-
...{ class: "dropdown_menu_btn" },
|
|
88
|
-
});
|
|
89
|
-
const __VLS_26 = {}.ElDropdownItem;
|
|
90
|
-
/** @type {[typeof __VLS_components.ElDropdownItem, typeof __VLS_components.elDropdownItem, typeof __VLS_components.ElDropdownItem, typeof __VLS_components.elDropdownItem, ]} */ ;
|
|
91
|
-
// @ts-ignore
|
|
92
|
-
ElDropdownItem;
|
|
93
|
-
// @ts-ignore
|
|
94
|
-
const __VLS_27 = __VLS_asFunctionalComponent(__VLS_26, new __VLS_26({
|
|
95
|
-
...{ 'onClick': {} },
|
|
96
|
-
}));
|
|
97
|
-
const __VLS_28 = __VLS_27({
|
|
98
|
-
...{ 'onClick': {} },
|
|
99
|
-
}, ...__VLS_functionalComponentArgsRest(__VLS_27));
|
|
100
|
-
let __VLS_31;
|
|
101
|
-
const __VLS_32 = ({ click: {} },
|
|
102
|
-
{ onClick: (...[$event]) => {
|
|
103
|
-
__VLS_ctx.handleGoPreview();
|
|
104
|
-
// @ts-ignore
|
|
105
|
-
[handleGoPreview,];
|
|
106
|
-
} });
|
|
107
|
-
const { default: __VLS_33 } = __VLS_29.slots;
|
|
108
|
-
__VLS_asFunctionalElement(__VLS_intrinsics.span, __VLS_intrinsics.span)({
|
|
109
|
-
...{ class: "commonBtn" },
|
|
110
|
-
});
|
|
111
|
-
const __VLS_34 = {}.ElIcon;
|
|
112
|
-
/** @type {[typeof __VLS_components.ElIcon, typeof __VLS_components.elIcon, typeof __VLS_components.ElIcon, typeof __VLS_components.elIcon, ]} */ ;
|
|
113
|
-
// @ts-ignore
|
|
114
|
-
ElIcon;
|
|
115
|
-
// @ts-ignore
|
|
116
|
-
const __VLS_35 = __VLS_asFunctionalComponent(__VLS_34, new __VLS_34({}));
|
|
117
|
-
const __VLS_36 = __VLS_35({}, ...__VLS_functionalComponentArgsRest(__VLS_35));
|
|
118
|
-
const { default: __VLS_39 } = __VLS_37.slots;
|
|
119
|
-
const __VLS_40 = {}.View;
|
|
120
|
-
/** @type {[typeof __VLS_components.View, ]} */ ;
|
|
121
|
-
// @ts-ignore
|
|
122
|
-
View;
|
|
123
|
-
// @ts-ignore
|
|
124
|
-
const __VLS_41 = __VLS_asFunctionalComponent(__VLS_40, new __VLS_40({}));
|
|
125
|
-
const __VLS_42 = __VLS_41({}, ...__VLS_functionalComponentArgsRest(__VLS_41));
|
|
126
|
-
var __VLS_37;
|
|
127
|
-
__VLS_asFunctionalElement(__VLS_intrinsics.span, __VLS_intrinsics.span)({});
|
|
128
|
-
var __VLS_29;
|
|
129
|
-
var __VLS_30;
|
|
130
|
-
const __VLS_46 = {}.ElDropdownItem;
|
|
131
|
-
/** @type {[typeof __VLS_components.ElDropdownItem, typeof __VLS_components.elDropdownItem, typeof __VLS_components.ElDropdownItem, typeof __VLS_components.elDropdownItem, ]} */ ;
|
|
132
|
-
// @ts-ignore
|
|
133
|
-
ElDropdownItem;
|
|
134
|
-
// @ts-ignore
|
|
135
|
-
const __VLS_47 = __VLS_asFunctionalComponent(__VLS_46, new __VLS_46({
|
|
136
|
-
...{ 'onClick': {} },
|
|
137
|
-
}));
|
|
138
|
-
const __VLS_48 = __VLS_47({
|
|
139
|
-
...{ 'onClick': {} },
|
|
140
|
-
}, ...__VLS_functionalComponentArgsRest(__VLS_47));
|
|
141
|
-
let __VLS_51;
|
|
142
|
-
const __VLS_52 = ({ click: {} },
|
|
143
|
-
{ onClick: (...[$event]) => {
|
|
144
|
-
__VLS_ctx.handleGoExit();
|
|
145
|
-
// @ts-ignore
|
|
146
|
-
[handleGoExit,];
|
|
147
|
-
} });
|
|
148
|
-
const { default: __VLS_53 } = __VLS_49.slots;
|
|
149
|
-
__VLS_asFunctionalElement(__VLS_intrinsics.span, __VLS_intrinsics.span)({
|
|
150
|
-
...{ class: "commonBtn red" },
|
|
151
|
-
});
|
|
152
|
-
const __VLS_54 = {}.ElIcon;
|
|
153
|
-
/** @type {[typeof __VLS_components.ElIcon, typeof __VLS_components.elIcon, typeof __VLS_components.ElIcon, typeof __VLS_components.elIcon, ]} */ ;
|
|
154
|
-
// @ts-ignore
|
|
155
|
-
ElIcon;
|
|
156
|
-
// @ts-ignore
|
|
157
|
-
const __VLS_55 = __VLS_asFunctionalComponent(__VLS_54, new __VLS_54({}));
|
|
158
|
-
const __VLS_56 = __VLS_55({}, ...__VLS_functionalComponentArgsRest(__VLS_55));
|
|
159
|
-
const { default: __VLS_59 } = __VLS_57.slots;
|
|
160
|
-
const __VLS_60 = {}.SwitchButton;
|
|
161
|
-
/** @type {[typeof __VLS_components.SwitchButton, ]} */ ;
|
|
162
|
-
// @ts-ignore
|
|
163
|
-
SwitchButton;
|
|
164
|
-
// @ts-ignore
|
|
165
|
-
const __VLS_61 = __VLS_asFunctionalComponent(__VLS_60, new __VLS_60({}));
|
|
166
|
-
const __VLS_62 = __VLS_61({}, ...__VLS_functionalComponentArgsRest(__VLS_61));
|
|
167
|
-
var __VLS_57;
|
|
168
|
-
__VLS_asFunctionalElement(__VLS_intrinsics.span, __VLS_intrinsics.span)({});
|
|
169
|
-
var __VLS_49;
|
|
170
|
-
var __VLS_50;
|
|
171
|
-
var __VLS_23;
|
|
172
|
-
}
|
|
173
|
-
var __VLS_3;
|
|
174
|
-
/** @type {__VLS_StyleScopedClasses['case_change']} */ ;
|
|
175
|
-
/** @type {__VLS_StyleScopedClasses['commonBtn']} */ ;
|
|
176
|
-
/** @type {__VLS_StyleScopedClasses['dropdown_menu_btn']} */ ;
|
|
177
|
-
/** @type {__VLS_StyleScopedClasses['commonBtn']} */ ;
|
|
178
|
-
/** @type {__VLS_StyleScopedClasses['commonBtn']} */ ;
|
|
179
|
-
/** @type {__VLS_StyleScopedClasses['red']} */ ;
|
|
180
|
-
const __VLS_export = (await import('vue')).defineComponent({
|
|
181
|
-
__typeProps: {},
|
|
182
|
-
});
|
|
183
|
-
export default {};
|
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
import { EnumStepType } from '@/types';
|
|
2
|
-
import { ElIcon, ElDropdownMenu, ElDropdown } from 'element-plus';
|
|
3
|
-
import { ArrowDown, Right, Back } from '@element-plus/icons-vue';
|
|
4
|
-
import { useStepRecord } from '@/composables/useStepRecord';
|
|
5
|
-
import StepRecordVisualizer from './StepRecordVisualizer.vue';
|
|
6
|
-
const { MAX_OPERATION_RECORD_LENGTH, operationRecord, currentOperationRecordIndex, operationRecordStatus, jumpToStep, handleOperationRecordChange } = useStepRecord();
|
|
7
|
-
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
8
|
-
const __VLS_ctx = {
|
|
9
|
-
...{},
|
|
10
|
-
...{},
|
|
11
|
-
};
|
|
12
|
-
let __VLS_components;
|
|
13
|
-
let __VLS_directives;
|
|
14
|
-
const __VLS_0 = {}.ElDropdown;
|
|
15
|
-
/** @type {[typeof __VLS_components.ElDropdown, typeof __VLS_components.elDropdown, typeof __VLS_components.ElDropdown, typeof __VLS_components.elDropdown, ]} */ ;
|
|
16
|
-
// @ts-ignore
|
|
17
|
-
ElDropdown;
|
|
18
|
-
// @ts-ignore
|
|
19
|
-
const __VLS_1 = __VLS_asFunctionalComponent(__VLS_0, new __VLS_0({
|
|
20
|
-
trigger: "click",
|
|
21
|
-
}));
|
|
22
|
-
const __VLS_2 = __VLS_1({
|
|
23
|
-
trigger: "click",
|
|
24
|
-
}, ...__VLS_functionalComponentArgsRest(__VLS_1));
|
|
25
|
-
var __VLS_5 = {};
|
|
26
|
-
const { default: __VLS_6 } = __VLS_3.slots;
|
|
27
|
-
__VLS_asFunctionalElement(__VLS_intrinsics.span, __VLS_intrinsics.span)({
|
|
28
|
-
...{ class: "case_change commonBtn" },
|
|
29
|
-
});
|
|
30
|
-
__VLS_asFunctionalElement(__VLS_intrinsics.span, __VLS_intrinsics.span)({});
|
|
31
|
-
const __VLS_7 = {}.ElIcon;
|
|
32
|
-
/** @type {[typeof __VLS_components.ElIcon, typeof __VLS_components.elIcon, typeof __VLS_components.ElIcon, typeof __VLS_components.elIcon, ]} */ ;
|
|
33
|
-
// @ts-ignore
|
|
34
|
-
ElIcon;
|
|
35
|
-
// @ts-ignore
|
|
36
|
-
const __VLS_8 = __VLS_asFunctionalComponent(__VLS_7, new __VLS_7({}));
|
|
37
|
-
const __VLS_9 = __VLS_8({}, ...__VLS_functionalComponentArgsRest(__VLS_8));
|
|
38
|
-
const { default: __VLS_12 } = __VLS_10.slots;
|
|
39
|
-
const __VLS_13 = {}.ArrowDown;
|
|
40
|
-
/** @type {[typeof __VLS_components.ArrowDown, typeof __VLS_components.arrowDown, ]} */ ;
|
|
41
|
-
// @ts-ignore
|
|
42
|
-
ArrowDown;
|
|
43
|
-
// @ts-ignore
|
|
44
|
-
const __VLS_14 = __VLS_asFunctionalComponent(__VLS_13, new __VLS_13({}));
|
|
45
|
-
const __VLS_15 = __VLS_14({}, ...__VLS_functionalComponentArgsRest(__VLS_14));
|
|
46
|
-
var __VLS_10;
|
|
47
|
-
{
|
|
48
|
-
const { dropdown: __VLS_19 } = __VLS_3.slots;
|
|
49
|
-
const __VLS_20 = {}.ElDropdownMenu;
|
|
50
|
-
/** @type {[typeof __VLS_components.ElDropdownMenu, typeof __VLS_components.elDropdownMenu, typeof __VLS_components.ElDropdownMenu, typeof __VLS_components.elDropdownMenu, ]} */ ;
|
|
51
|
-
// @ts-ignore
|
|
52
|
-
ElDropdownMenu;
|
|
53
|
-
// @ts-ignore
|
|
54
|
-
const __VLS_21 = __VLS_asFunctionalComponent(__VLS_20, new __VLS_20({}));
|
|
55
|
-
const __VLS_22 = __VLS_21({}, ...__VLS_functionalComponentArgsRest(__VLS_21));
|
|
56
|
-
const { default: __VLS_25 } = __VLS_23.slots;
|
|
57
|
-
__VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
58
|
-
...{ class: "dropdown_menu_btn" },
|
|
59
|
-
});
|
|
60
|
-
/** @type {[typeof StepRecordVisualizer, ]} */ ;
|
|
61
|
-
// @ts-ignore
|
|
62
|
-
const __VLS_26 = __VLS_asFunctionalComponent(StepRecordVisualizer, new StepRecordVisualizer({
|
|
63
|
-
operationMaxRecord: (__VLS_ctx.MAX_OPERATION_RECORD_LENGTH),
|
|
64
|
-
operationRecordLength: (__VLS_ctx.operationRecord.length),
|
|
65
|
-
currentIndex: (__VLS_ctx.currentOperationRecordIndex),
|
|
66
|
-
canUndo: (__VLS_ctx.operationRecordStatus.canUndo),
|
|
67
|
-
canRedo: (__VLS_ctx.operationRecordStatus.canRedo),
|
|
68
|
-
jumpToStep: (__VLS_ctx.jumpToStep),
|
|
69
|
-
}));
|
|
70
|
-
const __VLS_27 = __VLS_26({
|
|
71
|
-
operationMaxRecord: (__VLS_ctx.MAX_OPERATION_RECORD_LENGTH),
|
|
72
|
-
operationRecordLength: (__VLS_ctx.operationRecord.length),
|
|
73
|
-
currentIndex: (__VLS_ctx.currentOperationRecordIndex),
|
|
74
|
-
canUndo: (__VLS_ctx.operationRecordStatus.canUndo),
|
|
75
|
-
canRedo: (__VLS_ctx.operationRecordStatus.canRedo),
|
|
76
|
-
jumpToStep: (__VLS_ctx.jumpToStep),
|
|
77
|
-
}, ...__VLS_functionalComponentArgsRest(__VLS_26));
|
|
78
|
-
// @ts-ignore
|
|
79
|
-
[MAX_OPERATION_RECORD_LENGTH, operationRecord, currentOperationRecordIndex, operationRecordStatus, operationRecordStatus, jumpToStep,];
|
|
80
|
-
__VLS_asFunctionalElement(__VLS_intrinsics.span, __VLS_intrinsics.span)({
|
|
81
|
-
...{ onClick: (...[$event]) => {
|
|
82
|
-
__VLS_ctx.handleOperationRecordChange(__VLS_ctx.EnumStepType.UNDO);
|
|
83
|
-
// @ts-ignore
|
|
84
|
-
[handleOperationRecordChange, EnumStepType,];
|
|
85
|
-
} },
|
|
86
|
-
...{ class: "commonBtn" },
|
|
87
|
-
...{ class: ({ disable: !__VLS_ctx.operationRecordStatus.canUndo }) },
|
|
88
|
-
});
|
|
89
|
-
// @ts-ignore
|
|
90
|
-
[operationRecordStatus,];
|
|
91
|
-
const __VLS_31 = {}.ElIcon;
|
|
92
|
-
/** @type {[typeof __VLS_components.ElIcon, typeof __VLS_components.elIcon, typeof __VLS_components.ElIcon, typeof __VLS_components.elIcon, ]} */ ;
|
|
93
|
-
// @ts-ignore
|
|
94
|
-
ElIcon;
|
|
95
|
-
// @ts-ignore
|
|
96
|
-
const __VLS_32 = __VLS_asFunctionalComponent(__VLS_31, new __VLS_31({}));
|
|
97
|
-
const __VLS_33 = __VLS_32({}, ...__VLS_functionalComponentArgsRest(__VLS_32));
|
|
98
|
-
const { default: __VLS_36 } = __VLS_34.slots;
|
|
99
|
-
const __VLS_37 = {}.Back;
|
|
100
|
-
/** @type {[typeof __VLS_components.Back, ]} */ ;
|
|
101
|
-
// @ts-ignore
|
|
102
|
-
Back;
|
|
103
|
-
// @ts-ignore
|
|
104
|
-
const __VLS_38 = __VLS_asFunctionalComponent(__VLS_37, new __VLS_37({}));
|
|
105
|
-
const __VLS_39 = __VLS_38({}, ...__VLS_functionalComponentArgsRest(__VLS_38));
|
|
106
|
-
var __VLS_34;
|
|
107
|
-
__VLS_asFunctionalElement(__VLS_intrinsics.span, __VLS_intrinsics.span)({});
|
|
108
|
-
__VLS_asFunctionalElement(__VLS_intrinsics.span, __VLS_intrinsics.span)({
|
|
109
|
-
...{ onClick: (...[$event]) => {
|
|
110
|
-
__VLS_ctx.handleOperationRecordChange(__VLS_ctx.EnumStepType.REDO);
|
|
111
|
-
// @ts-ignore
|
|
112
|
-
[handleOperationRecordChange, EnumStepType,];
|
|
113
|
-
} },
|
|
114
|
-
...{ class: "commonBtn" },
|
|
115
|
-
...{ class: ({ disable: !__VLS_ctx.operationRecordStatus.canRedo }) },
|
|
116
|
-
});
|
|
117
|
-
// @ts-ignore
|
|
118
|
-
[operationRecordStatus,];
|
|
119
|
-
const __VLS_43 = {}.ElIcon;
|
|
120
|
-
/** @type {[typeof __VLS_components.ElIcon, typeof __VLS_components.elIcon, typeof __VLS_components.ElIcon, typeof __VLS_components.elIcon, ]} */ ;
|
|
121
|
-
// @ts-ignore
|
|
122
|
-
ElIcon;
|
|
123
|
-
// @ts-ignore
|
|
124
|
-
const __VLS_44 = __VLS_asFunctionalComponent(__VLS_43, new __VLS_43({}));
|
|
125
|
-
const __VLS_45 = __VLS_44({}, ...__VLS_functionalComponentArgsRest(__VLS_44));
|
|
126
|
-
const { default: __VLS_48 } = __VLS_46.slots;
|
|
127
|
-
const __VLS_49 = {}.Right;
|
|
128
|
-
/** @type {[typeof __VLS_components.Right, ]} */ ;
|
|
129
|
-
// @ts-ignore
|
|
130
|
-
Right;
|
|
131
|
-
// @ts-ignore
|
|
132
|
-
const __VLS_50 = __VLS_asFunctionalComponent(__VLS_49, new __VLS_49({}));
|
|
133
|
-
const __VLS_51 = __VLS_50({}, ...__VLS_functionalComponentArgsRest(__VLS_50));
|
|
134
|
-
var __VLS_46;
|
|
135
|
-
__VLS_asFunctionalElement(__VLS_intrinsics.span, __VLS_intrinsics.span)({});
|
|
136
|
-
var __VLS_23;
|
|
137
|
-
}
|
|
138
|
-
var __VLS_3;
|
|
139
|
-
/** @type {__VLS_StyleScopedClasses['case_change']} */ ;
|
|
140
|
-
/** @type {__VLS_StyleScopedClasses['commonBtn']} */ ;
|
|
141
|
-
/** @type {__VLS_StyleScopedClasses['dropdown_menu_btn']} */ ;
|
|
142
|
-
/** @type {__VLS_StyleScopedClasses['commonBtn']} */ ;
|
|
143
|
-
/** @type {__VLS_StyleScopedClasses['disable']} */ ;
|
|
144
|
-
/** @type {__VLS_StyleScopedClasses['commonBtn']} */ ;
|
|
145
|
-
/** @type {__VLS_StyleScopedClasses['disable']} */ ;
|
|
146
|
-
const __VLS_export = (await import('vue')).defineComponent({});
|
|
147
|
-
export default {};
|