Selaa lähdekoodia

feat: 允许点击Step进行跳转

Jinyao 5 vuotta sitten
vanhempi
commit
eb0870bf5a
1 muutettua tiedostoa jossa 5 lisäystä ja 2 poistoa
  1. 5 2
      src/views/Project/Pipeline.vue

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

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