🐛(component): 修复 table 销毁时未注销 onresize 事件
This commit is contained in:
		
							parent
							
								
									b650909f45
								
							
						
					
					
						commit
						820b956871
					
				@ -15,6 +15,7 @@ import {
 | 
			
		||||
  StyleValue,
 | 
			
		||||
  WritableComputedRef,
 | 
			
		||||
  computed,
 | 
			
		||||
  onBeforeUnmount,
 | 
			
		||||
} from "vue";
 | 
			
		||||
import { v4 as uuidv4 } from "../../utils/guidUtil";
 | 
			
		||||
import { Recordable } from "../../types";
 | 
			
		||||
@ -610,6 +611,10 @@ const renderTotalRowCell = (column: any) => {
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
onBeforeUnmount(() => {
 | 
			
		||||
  window.onresize = null;
 | 
			
		||||
})
 | 
			
		||||
</script>
 | 
			
		||||
 | 
			
		||||
<template>
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user