Browse Source

选择当页

master_hella_20240701
wangyufei 5 months ago
parent
commit
b03223e8cf
  1. 8
      src/components/Table/src/Table.vue

8
src/components/Table/src/Table.vue

@ -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) })
})
}
} }
} }

Loading…
Cancel
Save