在Vue 2.6 以前 ,在el-table的操作中想要获取这一行的数据需要写上作用域插槽
在Vue2.6以后这种写法就过时了,Vue2.6以后提供了v-slot 他们的作用是一致的
<template slot-scope="scope">
<div @click="getDetail(scope.row)">1</div>
</template>
// Vue2.6以后
<template v-slot="scope">
<div @click="getDetail(scope.row)">1</div>
</template>