版博士V2.0程序
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

18 lines
316 B

  1. import '../types.mjs';
  2. import { isFunction } from '@vue/shared';
  3. const composeRefs = (...refs) => {
  4. return (el) => {
  5. refs.forEach((ref) => {
  6. if (isFunction(ref)) {
  7. ref(el);
  8. } else {
  9. ref.value = el;
  10. }
  11. });
  12. };
  13. };
  14. export { composeRefs };
  15. //# sourceMappingURL=refs.mjs.map