CristalT
6/13/2019 - 2:14 AM

QTable con Row Click

<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>