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)
}
}

posted @ 2022-01-17 14:24  奇迹之耀  阅读(631)  评论(0编辑  收藏  举报