element-plus / element-plus

🎉 A Vue.js 3 UI Library made by Element team
https://element-plus.org
MIT License
24.57k stars 16.65k forks source link

[Component] [popover] ELPopover v-model:visible + persistent=false 时BUG #12933

Open ccqgithub opened 1 year ago

ccqgithub commented 1 year ago

Bug Type: Component

Environment

Reproduction

Related Component

Reproduction Link

Element Plus Playground

Steps to reproduce

通过 visible 变量控制popper展示,同时使用 :persistent="false" 鼠标移上去,popper展示 然后鼠标移开,等popper 开始隐藏时,再次快速地移动到按钮 (可以多试几次) 这之后popper就再也不显示了,捂脸鼠标怎么动,都不展示

What is Expected?

无bug

What is actually happening?

有bug

Additional comments

(empty)

kelvin-lemon commented 6 months ago

bug 依然存在,有解决方案吗

kelvin-lemon commented 6 months ago

persistent="false" 这个功能没有考虑到 关闭的动画情况,用户快速点击时,关闭动画会残留在显示的popover上 image

参考:主题内的 Reproduction Link