# table行点击事件(行双击事件)


//代码写在[表.js]文件中,与onInint同级别,或者放onInit方法后面

//行点击事件
rowClick ({ row, column, event }) { 
      //table点击行时同时选中当前行
      // this.$refs.table.$refs.table.toggleRowSelection(row);
},
//双击行事件
rowDbClick ({ row, column, event }) { 
      //table点击行时同时选中当前行
      // this.$refs.table.$refs.table.toggleRowSelection(row);
}

1
2
3
4
5
6
7
8
9
10
11
12
13
14