dev #1

Merged
caoxiaozhu merged 8 commits from dev into main 2026-07-14 11:26:14 +08:00
Showing only changes of commit 42f2efb449 - Show all commits

View File

@@ -194,28 +194,32 @@ onMounted(loadData)
<main v-loading="loading" class="wizard-main">
<div class="wizard-steps-container" aria-label="评测任务创建步骤">
<div class="custom-wizard-steps">
<div
v-for="(step, index) in WIZARD_STEPS"
:key="step.title"
class="step-item"
:class="{
'is-active': currentStep === index,
'is-completed': currentStep > index,
}"
:aria-current="currentStep === index ? 'step' : undefined"
>
<div v-if="index !== 0" class="step-connector"></div>
<div class="step-node">
<div class="step-icon" aria-hidden="true">
<i v-if="currentStep > index" class="fa fa-check" />
<span v-else>{{ index + 1 }}</span>
</div>
<div class="step-text">
<div class="step-title">{{ step.title }}</div>
<div class="step-description">{{ step.description }}</div>
<template v-for="(step, index) in WIZARD_STEPS" :key="step.title">
<div
v-if="index !== 0"
class="step-connector"
:class="{ 'is-active': currentStep >= index }"
></div>
<div
class="step-item"
:class="{
'is-active': currentStep === index,
'is-completed': currentStep > index,
}"
:aria-current="currentStep === index ? 'step' : undefined"
>
<div class="step-node">
<div class="step-icon" aria-hidden="true">
<i v-if="currentStep > index" class="fa fa-check" />
<span v-else>{{ index + 1 }}</span>
</div>
<div class="step-text">
<div class="step-title">{{ step.title }}</div>
<div class="step-description">{{ step.description }}</div>
</div>
</div>
</div>
</div>
</template>
</div>
</div>
@@ -308,14 +312,10 @@ onMounted(loadData)
.step-item {
display: flex;
flex: 1;
flex: none;
align-items: center;
}
.step-item:first-child {
flex: 0;
}
.step-connector {
flex: 1;
height: 2px;
@@ -324,8 +324,7 @@ onMounted(loadData)
transition: background-color 0.2s ease;
}
.step-item.is-active .step-connector,
.step-item.is-completed .step-connector {
.step-connector.is-active {
background: #5146e5;
}