Преглед изворни кода

feat: 允许点击Step进行跳转

Jinyao пре 5 година
родитељ
комит
eb0870bf5a
1 измењених фајлова са 5 додато и 2 уклоњено
  1. 5 2
      src/views/Project/Pipeline.vue

+ 5 - 2
src/views/Project/Pipeline.vue

@@ -131,8 +131,8 @@
           <ElStep
             v-for="(config, index) in pipelineConfig"
             :key="index"
-            :title="getStage(config.name).title"
-            :description="getStage(config.name).description"
+            class="step"
+            @click="() => activeStep = index"
           >
           </ElStep>
         </ElSteps>
@@ -418,4 +418,7 @@ export default {
 .button-group {
   margin-left: 40px;
 }
+.step {
+  cursor: pointer;
+}
 </style>