From 953ca3720fe2a354f59999eee08651717db9952f Mon Sep 17 00:00:00 2001
From: yuetsh <517252939@qq.com>
Date: Wed, 22 Oct 2025 12:41:06 +0800
Subject: [PATCH] update
---
.../{FloatingPanel.vue => DebugPanel.vue} | 126 +++++++++---------
src/desktop/DebugSection.vue | 6 +-
src/main.ts | 2 +
3 files changed, 65 insertions(+), 69 deletions(-)
rename src/components/{FloatingPanel.vue => DebugPanel.vue} (54%)
diff --git a/src/components/FloatingPanel.vue b/src/components/DebugPanel.vue
similarity index 54%
rename from src/components/FloatingPanel.vue
rename to src/components/DebugPanel.vue
index 67af302..6beb273 100644
--- a/src/components/FloatingPanel.vue
+++ b/src/components/DebugPanel.vue
@@ -26,10 +26,13 @@ const formattedVariables = computed(() => {
// 处理特殊类型
let displayValue = ""
let displayType = typeof value
-
- if (Array.isArray(value) && value.length === 2 &&
- value[0] === "IMPORTED_FAUX_PRIMITIVE" &&
- value[1] === "imported object") {
+
+ if (
+ Array.isArray(value) &&
+ value.length === 2 &&
+ value[0] === "IMPORTED_FAUX_PRIMITIVE" &&
+ value[1] === "imported object"
+ ) {
displayValue = ""
displayType = "function"
} else if (typeof value === "object" && value !== null) {
@@ -84,74 +87,67 @@ function closePanel() {
-
-
-
-
-
-
-
-
- 变量
-
-
+
+
+
+
+
+
+
+
+ 变量
+
+
-
-
+ 暂无变量
+
+
+
+
+
+
{{ variable.value }}
-
-
-
-
+
+
+
+
+
-
-
-
-
-
-
-
-
- 输出 ({{ outputLines }} 行)
-
-
+
+
+
+
+
+
+
+
+ 输出({{ outputLines }}行)
+
+
-
-
+
+
+
{{ formattedOutput }}
-
-
-
+
+
+
+
@@ -170,8 +166,6 @@ function closePanel() {
font-size: 12px;
white-space: pre-wrap;
word-break: break-all;
- max-height: 400px;
- overflow-y: auto;
display: block;
}
diff --git a/src/desktop/DebugSection.vue b/src/desktop/DebugSection.vue
index f565723..0919f66 100644
--- a/src/desktop/DebugSection.vue
+++ b/src/desktop/DebugSection.vue
@@ -10,7 +10,7 @@ import { useIntervalFn } from "@vueuse/core"
// 组件
import DebugEditor from "../components/DebugEditor.vue"
-import FloatingPanel from "../components/FloatingPanel.vue"
+import DebugPanel from "../components/DebugPanel.vue"
// 组合式函数和类型
import { code, input, reset, size, output, status } from "../composables/code"
@@ -492,8 +492,8 @@ function autoRun() {
:next-line-text="nextLineText"
/>
-
-
+