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
|
<QChip
|
||||||
v-if="col.chip.condition(row[col.name], row)"
|
v-if="col.chip.condition(row[col.name], row)"
|
||||||
:title="col.label"
|
:title="col.label"
|
||||||
:class="
|
:class="[
|
||||||
col.chip.color
|
col.chip.color
|
||||||
? col.chip.color(row)
|
? col.chip.color(row)
|
||||||
: !col.chip.icon && 'bg-chip-secondary'
|
: !col.chip.icon && 'bg-chip-secondary',
|
||||||
"
|
col.chip.icon && 'q-px-none',
|
||||||
|
]"
|
||||||
dense
|
dense
|
||||||
square
|
square
|
||||||
>
|
>
|
||||||
|
|
|
@ -260,6 +260,7 @@ defineExpose({
|
||||||
auto-width
|
auto-width
|
||||||
:class="`text-${col.align ?? 'left'}`"
|
:class="`text-${col.align ?? 'left'}`"
|
||||||
class="sticky no-padding"
|
class="sticky no-padding"
|
||||||
|
@click="stopEventPropagation($event)"
|
||||||
>
|
>
|
||||||
<QBtn
|
<QBtn
|
||||||
v-for="(btn, index) of col.actions"
|
v-for="(btn, index) of col.actions"
|
||||||
|
|
Loading…
Reference in New Issue