使用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>版权声明:本文为qq_37916164原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。