<template>
<div>
x: {{ x }}, y: {{ y }}
</div>
</template>
<script>
import { defineComponent } from '@vue/composition-api'
import { useMouse } from '@vueuse/core'
export default defineComponent({
setup() {
const { x, y } = useMouse()
return { x, y }
}
})
</script>