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

"actionType": "show", 能否支持消抖效果 #11430

Closed
yanquer opened this issue Dec 25, 2024 · 2 comments
Closed

"actionType": "show", 能否支持消抖效果 #11430

yanquer opened this issue Dec 25, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@yanquer
Copy link

yanquer commented Dec 25, 2024

比如我分别给三个 container 设置鼠标移入时候显示设置按钮, 每个容器的事件定义大致为

const _mouseEnterShow = {
        "mouseenter": {
            "actions": [
                {
                    "actionType": "show",
                    "componentId": "contanierId"
                }
            ]
        },
    }
    const _mouseLeaveHidden = {
        "mouseleave": {
            "actions": [
                {
                    "actionType": "hidden",
                    "componentId": "contanierId"
                }
            ]
        }
    }

当从 第一个控件 移动到 第三个控件 的时候, 第二个控件 会有按钮显示/隐藏的闪烁.
实际想要的效果是 鼠标在第二个控件上移动非常快速, 就取消掉这一次的显示/隐藏

在当前的文档暂时没有找到实现方式.

@yanquer yanquer added the enhancement New feature or request label Dec 25, 2024
@lhtuling
Copy link

lhtuling commented Dec 27, 2024

问问题可以把完整代码或者模拟一份类似情况,粘贴出来好帮你处理,你这样还要回答的人去模拟以下你的情况再去处理。。。。

Amis低代码前端框架交流群【QQ1群】:717791727
Amis低代码前端框架交流群【QQ2群】:721182449

@yanquer
Copy link
Author

yanquer commented Dec 30, 2024

此问题仅出现于组件非常多的情况, 所以就没有贴代码, 另外某些方面来说, 属于业务自己的问题.

目前暂时用CSS的hover解决, 可以关闭了

@yanquer yanquer closed this as completed Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants