vue2.x
<el-table-column label="测试" align="center" prop="ce">
<template slot-scope="scope">
<span>{{scope.row.ce}}</span>
</template>
vue3.x
<el-table-column prop="msgType" label="消息内容">
<template #default="scope">
<el-button link type="primary" size="small" @click="handleClick(scope.row)">修改</el-button>
</template>
</el-table-column>
<script>
methods: {
handleClick(e){
alert(e.id);
},
</script>
点击修改: