vue element表格怎么在secondPrice第二件价格为0时不显示,但是不等于0时就和sellingPrice价格一起显示呢?

vue element表格怎么同时显示两条数据
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-
1条回答 默认 最新
- jianghiahia 2022-05-25 15:18关注
<el-table-column> <template slot-scope="scope"> <span v-if="scope.row.secondPrice!==0"> {{scope.row.secondPrice}},{{scope.row.sellingPrice}} </span> </template> </el-table-column>
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 2无用 1