mirror of
				https://github.com/pure-admin/vue-pure-admin.git
				synced 2025-11-03 13:44:47 +08:00 
			
		
		
		
	types: add mitt types
This commit is contained in:
		
							parent
							
								
									ea97cb20f3
								
							
						
					
					
						commit
						80328d2e20
					
				@ -1,4 +1,21 @@
 | 
			
		||||
import type { Emitter } from "mitt";
 | 
			
		||||
import mitt from "mitt";
 | 
			
		||||
 | 
			
		||||
export const emitter: Emitter = mitt();
 | 
			
		||||
type Events = {
 | 
			
		||||
  resize: {
 | 
			
		||||
    detail: {
 | 
			
		||||
      width: number;
 | 
			
		||||
      height: number;
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
  openPanel: string;
 | 
			
		||||
  tagViewsChange: string;
 | 
			
		||||
  tagViewsShowModel: string;
 | 
			
		||||
  logoChange: string;
 | 
			
		||||
  changLayoutRoute: {
 | 
			
		||||
    indexPath: string;
 | 
			
		||||
    parentPath: string;
 | 
			
		||||
  };
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
export const emitter: Emitter<Events> = mitt<Events>();
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user