UNPKG

@egjs/vue-conveyer

Version:

Vue 3 Conveyer adds Drag gestures to your Native Scroll.

32 lines (28 loc) 609 B
/* Copyright (c) NAVER Corp. name: @egjs/vue-conveyer license: MIT author: NAVER Corp. repository: https://github.com/naver/egjs-conveyer version: 1.8.0 */ import { REACTIVE_CONVEYER } from '@egjs/conveyer'; import { ref } from 'vue'; import { useReactive } from '@cfcs/vue3'; function useConveyer(props = {}) { const containerRef = ref(); return { ref: containerRef, ...useReactive({ data() { return { container: containerRef, props }; }, ...REACTIVE_CONVEYER }) }; } export { useConveyer }; //# sourceMappingURL=conveyer.esm.js.map