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中添加要遍历的数据,组件通过内部封装的插槽进行显示
 
posted @ 2020-08-05 09:22  细雨南山  阅读(4334)  评论(0)    收藏  举报