elementui中el-table-column里显示两个后台
2019-12-05 本文已影响0人
Marissa_z
使用elementui组件库中的table表格组件<el-table></el-table>标签时,<el-table-column></el-table-column>要展示的数据来自后台返回的两个字段,用法如下:
<el-table-column prop="specs,quantityUnit" label="规格">
<template slot-scope="scope">
{{scope.row.specs}}/{{scope.row.quantityUnit}}
</template>
</el-table-column>