usePageLeave 
マウスがページから離れたかどうかを示すリアクティブな状態。
デモ 
{
  "isLeft": false
}使用方法 
JavaScript
import { usePageLeave } from '@vueuse/core'
const isLeft = usePageLeave()コンポーネントでの使用方法 
この関数は、
@vueuse/componentsパッケージを介してレンダーレスコンポーネントバージョンも提供します。使用方法の詳細はこちら。
Vue
<template>
  <UsePageLeave v-slot="{ isLeft }">
    Has Left Page: {{ isLeft }}
  </UsePageLeave>
</template>型定義 
TypeScript
/**
 * Reactive state to show whether mouse leaves the page.
 *
 * @see https://vueuse.dokyumento.jp/usePageLeave
 * @param options
 */
export declare function usePageLeave(
  options?: ConfigurableWindow,
): Ref<boolean, boolean>