elementUI表格点击行按钮传参

<el-table-column fixed="right"
label="操作"
width="80">
<template slot-scope="scope">
<el-button @click="showPatient(scope.row)" type="text" size="small">查看</el-button>
</template>
</el-table-column>

methods: {
showPatient(row) {
console.log(row)
}
}

上一篇:iview tooltip: true, 处理文字,溢出用点代替


下一篇:10大排序算法python实现