17 lines
		
	
	
		
			293 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			293 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| import { isFunction } from '@vue/shared';
 | |
| 
 | |
| const composeRefs = (...refs) => {
 | |
|   return (el) => {
 | |
|     refs.forEach((ref) => {
 | |
|       if (isFunction(ref)) {
 | |
|         ref(el);
 | |
|       } else {
 | |
|         ref.value = el;
 | |
|       }
 | |
|     });
 | |
|   };
 | |
| };
 | |
| 
 | |
| export { composeRefs };
 | |
| //# sourceMappingURL=refs.mjs.map
 |