Skip to content

Commit 6e50565

Browse files
committed
fixed graphics selected row
1 parent 850abb7 commit 6e50565

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/TVTable.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,13 @@
6969
<tr
7070
:id="`TVTABLE_row_${index}_${item.id}`"
7171
class="divide-x divide-y last:border-b-0 px-2 py-1.5 text-left text-xs font-medium border hover:bg-gray-400/50"
72-
:class="`${index % 2 ? 'bg-gray-300/50' : 'bg-gray-100/50'} ${checkSelectedForRow(item) ? 'bg-gray-500/50' : ''}`"
72+
:class="`${index % 2 ? 'bg-gray-300/50' : 'bg-gray-100/50'}`"
7373
@click="rowClicked(item)"
7474
>
7575
<td
7676
v-if="enableCheck"
7777
:key="`check_${item.label}`"
78-
class="px-2 py-1.5 align-top table-cell last:border-b-0"
78+
:class="`px-2 py-1.5 align-top table-cell last:border-b-0 ${checkSelectedForRow(item) ? 'bg-gray-500/50' : ''}`"
7979
>
8080
<input id="checkbox" v-model="selectedRows" :value="item" type="checkbox" @click.stop="emit('checkRow', item)" />
8181
</td>
@@ -84,7 +84,7 @@
8484
v-for="field in fields"
8585
:key="field.key"
8686
class="px-2 py-1.5 align-top table-cell last:border-b-0"
87-
:class="field.tdClass"
87+
:class="`${field.tdClass} ${checkSelectedForRow(item) ? 'bg-gray-500/50' : ''}`"
8888
:style="field.tdStyle"
8989
>
9090
<slot

0 commit comments

Comments
 (0)