ElemeFE / element-angular

Element for Angular
https://element-angular.faas.ele.me
MIT License
530 stars 121 forks source link

steps组件active动态数据支持 #96

Open jasminecjc opened 6 years ago

jasminecjc commented 6 years ago

Issue Type:

Description:

<el-steps space="40px" [el-class]="'steps'" [active]="active" direction="vertical" [finish-status]="'success'">
      <!-- <el-step *ngFor="let str of operateArr" title="{{str}}"></el-step> -->
      <el-step title="test1"></el-step>
      <el-step title="test2"></el-step>
      <el-step title="test2"></el-step>
    </el-steps>

这样的代码,如果是用的下方固定的数据,是这种效果(active=2) image

如果用的动态数据,active好像就失效了(忽略icon问题) image

unix commented 6 years ago

跟进中

unix commented 6 years ago

我用动态数据尝试了一下,不能重现你的问题,能把代码上传到 stackblitz.com (在线 IDE) 吗?