|
@ -136,11 +136,9 @@ export default defineComponent({ |
|
|
const toggleAllSelection = (isAll)=>{ |
|
|
const toggleAllSelection = (isAll)=>{ |
|
|
if(isAll){ |
|
|
if(isAll){ |
|
|
//全选 |
|
|
//全选 |
|
|
if(elTableRef.value?.getSelectionRows().length<unref(getProps).data.length){ |
|
|
unref(getProps).data.forEach(row=>{ |
|
|
unref(getProps).data.forEach(row=>{ |
|
|
elTableRef.value!.toggleRowSelection(row,true) |
|
|
elTableRef.value!.toggleRowSelection(row,true) |
|
|
}) |
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|