
这个属性为什么用不了啊,怎么点击一个按钮获得表格当前行的数据我好传到后台去
这样,使用scope.row可以获取当前行数据
<template slot-scope="scope">
<el-button @click="handleClick(scope.row)" type="text" size="small">查看</el-button>
<el-button type="text" size="small">编辑</el-button>
</template>