diff --git a/src/components/Table/src/Table.vue b/src/components/Table/src/Table.vue index 4d9308544..e3499a988 100644 --- a/src/components/Table/src/Table.vue +++ b/src/components/Table/src/Table.vue @@ -123,7 +123,6 @@ export default defineComponent({ const sortRef = ref() // 选中某行 const selectRow = (selection,row)=>{ - emit('getSelectionRows', currentPageRef.value,elTableRef.value?.getSelectionRows()) nextTick(()=>{ const selected = elTableRef.value?.getSelectionRows().some((item) => item.id === row.id) @@ -133,6 +132,7 @@ export default defineComponent({ }); } }) + emit('getSelectionRows', currentPageRef.value,elTableRef.value?.getSelectionRows()) } //全选回调 const selectAll = ()=>{