fix: refs #8388 update handleHeaderSelection to use selection function for row selection
gitea/salix-front/pipeline/pr-dev This commit is unstable
Details
gitea/salix-front/pipeline/pr-dev This commit is unstable
Details
This commit is contained in:
parent
ff38cd7590
commit
d45d84d707
|
@ -651,7 +651,9 @@ const rowCtrlClickFunction = computed(() => {
|
|||
});
|
||||
const handleHeaderSelection = (evt, data) => {
|
||||
if (evt === 'selected' && data) {
|
||||
selected.value = tableRef.value.rows;
|
||||
const fn = $props.selectionFn;
|
||||
const rows = tableRef.value.rows;
|
||||
selected.value = fn ? fn(rows) : rows;
|
||||
} else if (evt === 'selectAll') {
|
||||
selected.value = data;
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue