Vue中el-table-column获取当行中的数据
temple中有一个slot-scope属性可以获取当前行{{scope.row.value}}获取当前行中的数据值。
·
1、el-table-column中prop只能确定属性名不能查看其中的值?
解决方法:
temple中有一个slot-scope属性可以获取当前行{{scope.row.value}}获取当前行中的数据值
<template slot-scope="scope">
<el-popover
placement="bottom"
width="200"
trigger="click">
<!--value属性值-->
<span>{{scope.row.value}}</span>
<el-button slot="reference" size="mini" type="success">查看说明</el-button>
</el-popover>
</template>
更多推荐
已为社区贡献1条内容
所有评论(0)