|
|
@ -44,7 +44,7 @@ export function useViewData( |
|
|
|
|
|
|
|
|
|
|
|
const selectedAllRecords = computed({ |
|
|
|
const selectedAllRecords = computed({ |
|
|
|
get() { |
|
|
|
get() { |
|
|
|
return formattedData.value.every((row: Row) => row.rowMeta.selected) |
|
|
|
return !!formattedData.value.length && formattedData.value.every((row: Row) => row.rowMeta.selected) |
|
|
|
}, |
|
|
|
}, |
|
|
|
set(selected: boolean) { |
|
|
|
set(selected: boolean) { |
|
|
|
formattedData.value.forEach((row: Row) => (row.rowMeta.selected = selected)) |
|
|
|
formattedData.value.forEach((row: Row) => (row.rowMeta.selected = selected)) |
|
|
|