فهرست منبع

HUE-9485 [frontend] Add a click event on the HueTable row

Johan Ahlen 5 سال پیش
والد
کامیت
eaff00fd42
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      desktop/core/src/desktop/js/components/HueTable.vue

+ 1 - 1
desktop/core/src/desktop/js/components/HueTable.vue

@@ -29,7 +29,7 @@
       </tr>
     </thead>
     <tbody>
-      <tr v-for="(row, rowIndex) in rows" :key="rowIndex">
+      <tr v-for="(row, rowIndex) in rows" :key="rowIndex" @click="$emit('row-clicked', row)">
         <td v-for="(column, colIndex) in columns" :key="colIndex">
           <component
             :is="column.cellComponent"