You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
293 B

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