Skip to content

Commit

Permalink
style(注释): 删除注释代码
Browse files Browse the repository at this point in the history
  • Loading branch information
nihaojob committed Apr 24, 2024
1 parent 8773fc2 commit a1caafa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 22 deletions.
15 changes: 1 addition & 14 deletions src/components/dragMode.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @Author: 秦少卫
* @Date: 2023-04-18 08:06:56
* @LastEditors: 秦少卫
* @LastEditTime: 2023-07-16 12:23:40
* @LastEditTime: 2024-04-24 12:07:49
* @Description: 拖拽模式
-->

Expand All @@ -28,19 +28,6 @@ const switchMode = (val) => {
canvasEditor.endDring();
}
};
// const handleKeyDown = (e) => {
// if (status.value) return;
// if (e.code === 'Space') {
// status.value = true;
// canvas.editor.editorWorkspace.startDring();
// }
// };
// const handleKeyUp = (e) => {
// if (e.code === 'Space') {
// status.value = false;
// canvas.editor.editorWorkspace.endDring();
// }
// };
onMounted(() => {
canvasEditor.on('startDring', () => (status.value = true));
Expand Down
9 changes: 1 addition & 8 deletions src/components/setSize.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @Author: 秦少卫
* @Date: 2022-09-03 19:16:55
* @LastEditors: 秦少卫
* @LastEditTime: 2024-04-11 13:01:36
* @LastEditTime: 2024-04-24 12:16:05
* @Description: 尺寸设置
-->

Expand Down Expand Up @@ -104,12 +104,6 @@ onMounted(() => {
width.value = w;
height.value = h;
});
// canvas.editor.editorWorkspace.setSize(width.value, height.value);
// canvas.editor.editorWorkspace = new EditorWorkspace(canvas.c, {
// width: width.value,
// height: height.value,
// });
});
const setSizeBy = (w, h) => {
Expand All @@ -118,7 +112,6 @@ const setSizeBy = (w, h) => {
};
const setSize = () => {
canvasEditor.setSize(width.value, height.value);
// canvas.editor.editorWorkspace.setSize(width.value, height.value);
};
const handleClose = () => {
Expand Down

0 comments on commit a1caafa

Please sign in to comment.