Appearance
响应式的 Pointer Lock API。
import { usePointerLock } from '@base-web-kits/base-tools-vue'; import { ref } from 'vue'; const el = ref<HTMLElement | null>(null); const { lock, unlock, element } = usePointerLock(el);
VueUse