UNPKG

vue-final-modal

Version:

The most powerful yet most light-weight modal library for Vue 3.

19 lines (18 loc) 657 B
import type { Ref } from 'vue'; import type VueFinalModal from './components/VueFinalModal/VueFinalModal.vue'; export declare function useSwipeToClose(props: InstanceType<typeof VueFinalModal>['$props'], options: { vfmContentEl: Ref<HTMLDivElement | undefined>; modelValueLocal: Ref<boolean>; }): { vfmContentEl: Ref<HTMLDivElement | undefined>; swipeBannerEl: Ref<HTMLDivElement | undefined>; bindSwipe: import("vue").ComputedRef<{ class: { 'vfm-bounce-back': boolean; }; style: { transform: string; }; } | undefined>; onTouchStartSwipeBanner: (e: TouchEvent) => void; };