Changes
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user