fix
Some checks failed
Deploy / build-and-deploy (push) Has been cancelled

This commit is contained in:
2025-10-22 13:21:58 +08:00
parent 953ca3720f
commit 9b1abd7a25

View File

@@ -70,7 +70,7 @@ function closePanel() {
<n-card v-if="visible" class="floating-panel" :bordered="true" size="small"> <n-card v-if="visible" class="floating-panel" :bordered="true" size="small">
<template #header> <template #header>
<n-flex justify="space-between" align="center"> <n-flex justify="space-between" align="center">
<n-flex align="center" :gap="8"> <n-flex align="center">
<n-icon> <n-icon>
<Icon icon="mdi:bug" :width="16" :height="16" /> <Icon icon="mdi:bug" :width="16" :height="16" />
</n-icon> </n-icon>
@@ -90,19 +90,19 @@ function closePanel() {
<!-- 变量部分 --> <!-- 变量部分 -->
<n-collapse :default-expanded-names="['variables']"> <n-collapse :default-expanded-names="['variables']">
<n-collapse-item title="变量" name="variables"> <n-collapse-item title="变量" name="variables">
<n-scrollbar style="max-height: 200px">
<template #header> <template #header>
<n-flex align="center" :gap="8"> <n-flex align="center">
<n-icon> <n-icon>
<Icon icon="mdi:variable" :width="14" :height="14" /> <Icon icon="mdi:variable" :width="14" :height="14" />
</n-icon> </n-icon>
<n-text>变量</n-text> <n-text>变量</n-text>
</n-flex> </n-flex>
</template> </template>
<div v-if="formattedVariables.length === 0"> <div v-if="formattedVariables.length === 0">
<n-text type="info" class="no-variables-text"> 暂无变量 </n-text> <n-text type="info" class="no-variables-text">暂无变量</n-text>
</div> </div>
<n-space v-else vertical :size="12"> <n-space v-else vertical>
<n-card <n-card
v-for="variable in formattedVariables" v-for="variable in formattedVariables"
:key="variable.name" :key="variable.name"
@@ -117,13 +117,12 @@ function closePanel() {
<n-text strong :type="'primary'">{{ variable.name }}</n-text> <n-text strong :type="'primary'">{{ variable.name }}</n-text>
<n-tag size="small" type="info">{{ variable.type }}</n-tag> <n-tag size="small" type="info">{{ variable.type }}</n-tag>
</n-flex> </n-flex>
<n-scrollbar style="max-height: 200px">
<n-text code class="variable-value"> <n-text code class="variable-value">
{{ variable.value }} {{ variable.value }}
</n-text> </n-text>
</n-scrollbar>
</n-card> </n-card>
</n-space> </n-space>
</n-scrollbar>
</n-collapse-item> </n-collapse-item>
</n-collapse> </n-collapse>
@@ -138,9 +137,8 @@ function closePanel() {
<n-text>输出({{ outputLines }})</n-text> <n-text>输出({{ outputLines }})</n-text>
</n-flex> </n-flex>
</template> </template>
<n-card size="small" :bordered="true"> <n-card size="small" :bordered="true">
<n-scrollbar style="max-height: 400px"> <n-scrollbar style="max-height: 300px">
<n-text code class="output-text"> <n-text code class="output-text">
{{ formattedOutput }} {{ formattedOutput }}
</n-text> </n-text>