diff --git a/src/components/DebugEditor.vue b/src/components/DebugEditor.vue index 34a62f7..41f4916 100644 --- a/src/components/DebugEditor.vue +++ b/src/components/DebugEditor.vue @@ -19,13 +19,11 @@ interface Props { nextLine?: number currentLineText?: string nextLineText?: string - height?: number } const props = withDefaults(defineProps(), { language: "python", fontSize: 24, - height: 600, }) const code = ref(props.modelValue) @@ -260,7 +258,7 @@ watch( :tabSize="4" :style="{ fontSize: props.fontSize + 'px', - height: props.height + 'px', + maxHeight: '600px', }" @change="onChange" @ready="onReady" diff --git a/src/components/DebugPanel.vue b/src/components/DebugPanel.vue index bae7fc7..62de488 100644 --- a/src/components/DebugPanel.vue +++ b/src/components/DebugPanel.vue @@ -12,9 +12,8 @@ import { useIntervalFn } from "@vueuse/core" import DebugEditor from "./DebugEditor.vue" // 组合式函数和类型 -import { code, input, reset, size, output, status } from "../composables/code" +import { code, size, output, status } from "../composables/code" import { Status } from "../types" -import { debug } from "../api" // ==================== Props 和 Emits ==================== const props = defineProps<{