Poprawka ikony SUP; mniejsze poprawki

This commit is contained in:
2022-05-04 19:05:24 +02:00
parent 7cf8114d63
commit 96880575c2
3 changed files with 20 additions and 24 deletions
+14 -14
View File
@@ -225,24 +225,24 @@ export default defineComponent({
const scrollElement: Ref<HTMLElement | null> = ref(null);
const handleScroll = (e: Event) => {
if (!scrollElement.value) return;
// const handleScroll = (e: Event) => {
// if (!scrollElement.value) return;
const element = scrollElement.value;
// const element = scrollElement.value;
if (element.getBoundingClientRect().bottom * 0.9 < window.innerHeight) {
// console.log('gituwa');
// historyDataStatus.value.status = DataStatus.Loading
}
};
// if (element.getBoundingClientRect().bottom * 0.9 < window.innerHeight) {
// // console.log('gituwa');
// // historyDataStatus.value.status = DataStatus.Loading
// }
// };
onMounted(() => {
window.addEventListener('scroll', handleScroll);
});
// onMounted(() => {
// window.addEventListener('scroll', handleScroll);
// });
onUnmounted(() => {
window.removeEventListener('scroll', handleScroll);
});
// onUnmounted(() => {
// window.removeEventListener('scroll', handleScroll);
// });
return {
historyList: ref([]) as Ref<TimetableHistory[]>,