|
|
@ -1,5 +1,4 @@
|
|
|
|
<script setup lang="ts">
|
|
|
|
<script setup lang="ts">
|
|
|
|
import { onKeyStroke } from '@vueuse/core'
|
|
|
|
|
|
|
|
import { onContentUpdated } from 'vitepress'
|
|
|
|
import { onContentUpdated } from 'vitepress'
|
|
|
|
import { nextTick, ref } from 'vue'
|
|
|
|
import { nextTick, ref } from 'vue'
|
|
|
|
import { useData } from '../composables/data'
|
|
|
|
import { useData } from '../composables/data'
|
|
|
@ -32,10 +31,6 @@ const { activate, deactivate } = useFocusTrap(items, {
|
|
|
|
|
|
|
|
|
|
|
|
const vh = ref(0)
|
|
|
|
const vh = ref(0)
|
|
|
|
|
|
|
|
|
|
|
|
onKeyStroke('Escape', () => {
|
|
|
|
|
|
|
|
deactivate()
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
onContentUpdated(deactivate)
|
|
|
|
onContentUpdated(deactivate)
|
|
|
|
|
|
|
|
|
|
|
|
function toggle() {
|
|
|
|
function toggle() {
|
|
|
|