UNPKG

@ant-design-vue/use

Version:

Vue 3 Composition Api Library.

5 lines (4 loc) 277 B
import { Ref } from 'vue'; declare type EventType = MouseEvent | TouchEvent; export default function useClickAway(ele: Ref<HTMLElement>, onClickAway: (event: EventType) => void, eventName?: string, container?: Document | HTMLElement | Ref<HTMLElement>): () => void; export {};