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