total cleanups

This commit is contained in:
Peter Olu 2022-04-25 18:59:07 +01:00
parent d71808d036
commit cf2fb2f958
3 changed files with 4 additions and 13616 deletions

View File

@ -75,18 +75,16 @@ export default defineComponent({
document.querySelectorAll(".item").forEach((element) => {
observer.observe(element);
});
}
}
function initScroller() {
scrollWrapRef?.value?.addEventListener("scroll", (e: Event) => {
const isBottom =
scrollWrapRef?.value?.offsetHeight +
scrollWrapRef?.value?.scrollTop +
40 >
scrollWrapRef?.value?.offsetHeight + scrollWrapRef?.value?.scrollTop + 40 >
scrollWrapRef?.value?.scrollHeight;
if (isBottom) {
scrollWrapRef?.value.scroll(0, 0);
}
}
});
}
onMounted(() => {

View File

@ -182,7 +182,6 @@ export default defineComponent({
const tabRef = ref<any>("");
const tabObserveContainer = ref<any>(null);
const currentItem = ref("");
const l = dashboardStore.layout.findIndex((d: LayoutConfig) => d.i === props.data.i);
if (dashboardStore.layout[l].children.length) {
@ -286,7 +285,7 @@ export default defineComponent({
dashboardStore.layout[l].children[activeTabIndex.value].children
);
}
function initScrollWatcher() {
tabObserveContainer?.value?.addEventListener("scroll", (e: Event) => {
const isBottom =

13609
yarn.lock

File diff suppressed because it is too large Load Diff