0
0
Fork 0

fix(VnTable): refs #6825 fix click sticky column

This commit is contained in:
Alex Moreno 2024-05-23 10:44:41 +02:00
parent 859cdd891a
commit 2ec4e3540f
2 changed files with 5 additions and 3 deletions

View File

@ -25,11 +25,12 @@ function stopEventPropagation(event) {
<QChip
v-if="col.chip.condition(row[col.name], row)"
:title="col.label"
:class="
:class="[
col.chip.color
? col.chip.color(row)
: !col.chip.icon && 'bg-chip-secondary'
"
: !col.chip.icon && 'bg-chip-secondary',
col.chip.icon && 'q-px-none',
]"
dense
square
>

View File

@ -260,6 +260,7 @@ defineExpose({
auto-width
:class="`text-${col.align ?? 'left'}`"
class="sticky no-padding"
@click="stopEventPropagation($event)"
>
<QBtn
v-for="(btn, index) of col.actions"