\rexport default {\rmethods: {\rdoAlert () {\ralert('Hi!')\r}\r},\rcreated () {\rwindow.addEventListener('scroll', () => {\rlet body = document.getElementsByTagName('body')[0]\rif (window.scrollY > body.clientHeight) {\rthis.doAlert()\r}\r})\r}\r}\r