forked from verdnatura/salix-front
fix(VnTable): refs #6825 fix click sticky column
This commit is contained in:
parent
859cdd891a
commit
2ec4e3540f
|
@ -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
|
||||
>
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue