// template
<el-table :data="tableData" stripe @row-click="handdle">
<el-table-column prop="date" label="日期" width="180">
</el-table-column>
</el-table>
// script
export default {
data () {
return {
tableData: []
}
},
methods: {
handle (row, event, column) {
console.log(row, event, column)
}
}
}
网友评论