Browse Source

feat: 允许点击Step进行跳转

Jinyao 5 years ago
parent
commit
eb0870bf5a
1 changed files with 5 additions and 2 deletions
  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>