Open
Description
if (!allowAutoAnimate.value || childCount.value <= 1) return;
// autoplay
sliderInterval.value = setInterval(() => {
// TODO: prevent if not in viewport
if (mouseOnTabs.value) return;
debouncedTab(false);
}, props.intervalDuration);
}
/**
* switch tabs
*/
const debouncedTab = _.debounce(tab);
// lifecycle
if (isBrowser) {
onMounted(() => {
loading.value = true;
launchInterval();
loading.value = false;
});
onBeforeUnmount(() => {