修复前端调试与基础交互问题

This commit is contained in:
MMEXA
2026-07-04 05:24:40 +08:00
parent b86d4e1f0c
commit 242081433e
33 changed files with 525 additions and 320 deletions
@@ -24,12 +24,14 @@
<template #default>
<!-- 描述 -->
<div class="space-y-3">
<!-- eslint-disable vue/no-v-html -->
<p
v-for="(line, index) in descriptionLines"
:key="index"
:class="getLineClass(index)"
v-html="renderLine(line)"
/>
<!-- eslint-enable vue/no-v-html -->
</div>
<!-- 自定义内容插槽 -->
@@ -85,7 +85,8 @@ const props = withDefaults(defineProps<{
presetOptions?: SelectablePreset[]
presetTriggerClass?: string
}>(), {
presetOptions: () => ['today', 'yesterday', 'last7days', 'last30days', 'last90days', 'custom']
presetOptions: () => ['today', 'yesterday', 'last7days', 'last30days', 'last90days', 'custom'],
presetTriggerClass: undefined,
})
const emit = defineEmits<{
'update:modelValue': [value: DateRangeParams]
@@ -290,11 +290,13 @@
{{ selectedReleaseHelpText }}
</p>
<!-- eslint-disable vue/no-v-html -->
<div
v-if="selectedReleaseDisplayNotes"
class="max-h-[26rem] overflow-y-auto rounded-xl border border-border/60 bg-muted/25 px-4 py-3 text-sm leading-6 text-foreground/90 shadow-inner shadow-black/[0.02] max-w-none prose prose-sm dark:prose-invert prose-headings:mb-2 prose-headings:mt-4 prose-headings:font-semibold prose-headings:text-foreground prose-h3:text-sm prose-p:my-2 prose-ul:my-2 prose-ul:list-disc prose-ul:pl-5 prose-li:my-1 prose-li:marker:text-primary prose-a:text-primary prose-strong:text-foreground prose-code:rounded prose-code:bg-muted prose-code:px-1 prose-code:py-0.5"
v-html="selectedReleaseNotesHtml"
/>
<!-- eslint-enable vue/no-v-html -->
<p
v-else
class="rounded-lg bg-muted/30 px-3 py-4 text-sm text-muted-foreground"