Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] 预览图片问题 #451

Closed
tyc0125 opened this issue Feb 3, 2024 · 4 comments
Closed

[BUG] 预览图片问题 #451

tyc0125 opened this issue Feb 3, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@tyc0125
Copy link

tyc0125 commented Feb 3, 2024

描述这个Bug

20240203135154_rec_

1gif

在模态框组件中使用,image预览有问题,点击预览会生成两组遮罩层和image,点击一次只能取消一组
复现步骤:

截图,将图片上传,点击小眼睛图标,预览会生成两组遮罩层和image,点击一次只能取消一组

版本号

4.11.1

问题重现链接

No response

@imzbf
Copy link
Owner

imzbf commented Feb 3, 2024

这个页面存在多个MdEditorMdPreview的话,需要区别一下editorId这个属性

@imzbf imzbf closed this as completed Feb 3, 2024
@tyc0125
Copy link
Author

tyc0125 commented Feb 4, 2024

上述页面只用了一个MdEditor。

<MdEditor
              :preview="false"
            />

如上代码,将默认打开的预览模式关闭,去截图,上传图片,然后在编辑器中打开预览模式,点击图片后,会出现上述问题

@imzbf imzbf reopened this Feb 4, 2024
@imzbf imzbf self-assigned this Feb 4, 2024
@imzbf imzbf added the bug Something isn't working label Feb 4, 2024
@imzbf
Copy link
Owner

imzbf commented Feb 4, 2024

4.11.2修复了这个问题~

@imzbf imzbf closed this as completed Feb 4, 2024
@Mrkk1
Copy link

Mrkk1 commented Feb 21, 2024

好像没有完全修复,npm下的版本为最新的4.11.2,依然存在双层遮罩层的问题好像

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants