mirror of
https://gitee.com/dapppp/ruoyi-plus-vben5.git
synced 2026-03-12 22:50:53 +08:00
fix(upload): 修复图片预览时隐藏样式不生效的问题
使用 :styles 属性替代 class 来隐藏预览图片,确保预览功能正常触发
This commit is contained in:
@@ -148,7 +148,7 @@ function currentPreview(file: UploadFile) {
|
||||
|
||||
<Image
|
||||
v-if="previewImage"
|
||||
class="hidden"
|
||||
:styles="{ root: { display: 'none' } }"
|
||||
:src="previewImage"
|
||||
:preview="{
|
||||
open: previewVisible,
|
||||
|
||||
Reference in New Issue
Block a user