element组件库中表格组件中遍历显示数组中内容


<el-table-column prop="userList" label="负责人">
        <template slot-scope="scope">
          <span v-for="(u,i) in scope.row.userList">{{u.userName}}&nbsp&nbsp</span>
        </template>
      </el-table-column>
在表格组件的el-table-column中添加要遍历的数据,组件通过内部封装的插槽进行显示
 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM