<el-table-column label="操作"> <template slot-scope="scope"> <el-button size="mini" @click="handleEdit(scope.$index, scope.row)">编辑</el-button> </template> </el-table-column> methods: { handleEdit(index, row) { console.log(index, row); } }
喜欢的小伙伴可以关注我的微信公众号“前端伪大叔”