Browse Source

选择当页

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

2
src/components/Table/src/Table.vue

@ -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 = ()=>{

Loading…
Cancel
Save