0
0
Fork 0

refs #6321 fix: split disabled

This commit is contained in:
Javier Segarra 2024-04-15 12:24:45 +02:00
parent 6804196dbb
commit cf0454669a
1 changed files with 7 additions and 3 deletions

View File

@ -235,8 +235,11 @@ const columns = computed(() => [
]);
const emit = defineEmits([...useDialogPluginComponent.emits, 'selection']);
function rowsHasSelected({ keys }) {
emit('selection', keys);
function rowsHasSelected(selection) {
emit(
'selection',
selection.map(({ ticketFk }) => ticketFk)
);
}
const resultSplit = ref([]);
@ -283,12 +286,13 @@ function getIcon(key, prop) {
>
<template #body="{ rows }">
<QTable
ref="tableRef"
:rows="rows"
:columns="columns"
row-key="ticketFk"
selection="multiple"
v-model:selected="selectedRows"
@selection="rowsHasSelected"
@update:selected="rowsHasSelected"
:grid="$q.screen.lt.md"
hide-bottom
>