|
@ -136,13 +136,11 @@ 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) |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//清空选择 |
|
|
//清空选择 |
|
|
const clearSelection = ()=>{ |
|
|
const clearSelection = ()=>{ |
|
|