vuestic-ui
Version:
Vue 3 UI Framework
12 lines (11 loc) • 486 B
TypeScript
import { ComponentPublicInstance } from 'vue';
export type TemplateRef = HTMLElement | (ComponentPublicInstance & HTMLElement);
/**
* @usage use setItemRef function as :ref property on v-for construction (or without v-for)
* @link https://v3.vuejs.org/guide/migration/array-refs.html
*/
export declare const useArrayRefs: () => {
itemRefs: import("vue").ShallowRef<TemplateRef[]>;
setItemRef: (el: any) => void;
setItemRefByIndex: (index: number) => (el: any) => void;
};