UNPKG

tav-ui

Version:
22 lines (19 loc) 471 B
import { nextTick, unref } from 'vue'; function useSortable(el, options) { function initSortable() { nextTick(async () => { if (!el) return; const Sortable = (await import('sortablejs')).default; Sortable.create(unref(el), { animation: 300, delay: 200, delayOnTouchOnly: true, ...options }); }); } return { initSortable }; } export { useSortable }; //# sourceMappingURL=useSortable2.mjs.map