修复 FaImagePreview 预览时警告

This commit is contained in:
Hooray
2025-09-22 15:38:48 +08:00
parent cf41d7cc8c
commit 3b2f69d127
+6 -1
View File
@@ -1,5 +1,6 @@
<script setup lang="ts">
import { Dialog, DialogContent } from './dialog'
import { VisuallyHidden } from 'reka-ui'
import { Dialog, DialogContent, DialogDescription, DialogTitle } from './dialog'
const props = defineProps<{
src: string | string[]
@@ -122,6 +123,10 @@ function handleAnimationEnd() {
<template>
<Dialog v-model:open="isOpen">
<DialogContent class="size-full" @animation-end="handleAnimationEnd">
<VisuallyHidden>
<DialogTitle />
<DialogDescription />
</VisuallyHidden>
<div class="relative size-full flex-center" @wheel="handleWheel">
<img
:src="srcList[index]"