为什么不hover呢?点击的话你参考下面代码:
{{ scope.row.date }}
{{ scope.row.name }}
编辑
删除
export default {
name: "app",
data() {
return {
showBtn: -1,
tableData: [{
id: 1,
date: "2016-05-02",
name: "王小虎",
address: "上海市普陀区金沙江路 1518 弄"
},
{
id: 2,
date: "2016-05-04",
name: "王小虎",
address: "上海市普陀区金沙江路 1517 弄"
},
{
id: 3,
date: "2016-05-01",
name: "王小虎",
address: "上海市普陀区金沙江路 1519 弄"
},
{
id: 4,
date: "2016-05-03",
name: "王小虎",
address: "上海市普陀区金沙江路 1516 弄"
}
]
};
},
methods: {
rowClick(row, column, event) {
this.showBtn = row.id;
}
}
};