美文网首页Web前端之路vue踩坑让前端飞
element-ui - table表格中怎么循环数据做特殊处理

element-ui - table表格中怎么循环数据做特殊处理

作者: 月中眠_d56d | 来源:发表于2019-08-16 18:51 被阅读0次

想要实现效果:


image.png

实现方法:

      <el-table v-loading="loadingFlag" :data="tabledata" border class="f12">
        <el-table-column prop="agentName" label="已完成kpi">
            <template slot-scope="scope">
                <span >签约:</span>
                <span>{{scope.row.doneQDKpi}}</span>
                <br>
                <span >结单:</span>
                <span>{{scope.row.doneJDKpi}}</span>
            </template>
        </el-table-column>
      </el-table>

在el-table-column 标签中添加 slot-scope属性 scope是每次循环出的对象

相关文章

网友评论

    本文标题:element-ui - table表格中怎么循环数据做特殊处理

    本文链接:https://www.haomeiwen.com/subject/svoqsctx.html