<template>
<q-table
row-key="key"
:data="table.data"
:columns="table.columns"
:pagination.sync="table.pagination"
>
<q-tr
slot="body"
slot-scope="props"
:props="props"
@click.native="doSomething(props.row)"
class="cursor-pointer"
>
<q-td v-for="col in props.cols" :key="col.name" :props="props">{{ col.value }}</q-td>
</q-tr>
</q-table>
</template>