update:更新训练的说明文案
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user