update:更新训练的说明文案

This commit is contained in:
2026-10-12 14:57:11 +08:00
parent 21ed8066aa
commit bad336c7d4
3 changed files with 76 additions and 71 deletions
@@ -20,7 +20,8 @@ const previewLines = computed(() => {
: [{ text: line }];
const parts = rawParts
.map((part) => ({
text: String(part?.text ?? part ?? "").trim(),
text: String(part?.text ?? part ?? ""),
highlight: part?.highlight === true,
}))
.filter((part) => part.text);
@@ -48,6 +49,7 @@ const previewLines = computed(() => {
<text
v-for="(part, partIndex) in line.parts"
:key="partIndex"
:class="{ 'difficulty-preview__highlight': part.highlight }"
>{{ part.text }}</text>
</view>
</view>
@@ -89,7 +91,7 @@ const previewLines = computed(() => {
}
.difficulty-preview__copy {
width: 84%;
width: 100%;
margin: 0 auto;
display: block;
color: #ffffff;
@@ -102,4 +104,9 @@ const previewLines = computed(() => {
.difficulty-preview__line {
display: block;
}
.difficulty-preview__highlight {
color: #ffd543;
font-weight: 500;
}
</style>