Browse Source

勾选复选框传值

linshi20240813
wangyufei 3 months ago
parent
commit
4c86293205
  1. 2
      src/components/Table/src/Table.vue

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

Loading…
Cancel
Save