This commit is contained in:
Simon Pocrnjič
2026-01-10 20:11:20 +01:00
parent 711438d79f
commit c4d2f6e473
21 changed files with 1744 additions and 1889 deletions
@@ -462,6 +462,17 @@ function keyOf(row) {
return row[props.rowKey];
return row?.uuid ?? row?.id ?? Math.random().toString(36).slice(2);
}
// Expose methods for parent component
defineExpose({
clearSelection: () => {
table.resetRowSelection();
rowSelection.value = {};
},
getSelectedRows: () => {
return Object.keys(rowSelection.value).filter((key) => rowSelection.value[key]);
},
});
</script>
<template>