element-plus
Version:
A Component Library for Vue 3
1 lines • 509 B
Source Map (JSON)
{"version":3,"file":"refs.mjs","names":[],"sources":["../../../../../packages/utils/vue/refs.ts"],"sourcesContent":["import type { ComponentPublicInstance, Ref } from 'vue'\n\nexport const composeRefs = (...refs: Ref<HTMLElement | undefined>[]) => {\n return (el: Element | ComponentPublicInstance | null) => {\n refs.forEach((ref) => {\n ref.value = el as HTMLElement | undefined\n })\n }\n}\n"],"mappings":";AAEA,MAAa,eAAe,GAAG,SAAyC;AACtE,SAAQ,OAAiD;AACvD,OAAK,SAAS,QAAQ;AACpB,OAAI,QAAQ;IACZ"}