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

feat(Balloon): add mouseEnterDelay and mouseLeaveDelay, with higher p… #4867

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

eamonzym
Copy link
Collaborator

close #3730

components/overlay/popup.jsx Outdated Show resolved Hide resolved
components/overlay/popup.jsx Outdated Show resolved Hide resolved
@@ -99,4 +101,24 @@ describe('Tooltip', () => {
done();
}, 300);
});

it('add mouseEnterDelay and mouseLeaveDelay, with higher priority than delay.', async () => {
const wrapper = mount(<Tooltip trigger={<div>trigger1111111</div>} mouseEnterDelay={4000} mouseLeaveDelay={4000}>test</Tooltip>);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

时间可以短一点,这样 tc 可以快一点结束。尽量控制在 1s 以内。

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

另外这里没有测试 mouseEnterDelay 和 delay 的优先级关系

@eternalsky eternalsky self-requested a review June 21, 2024 06:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Balloon]Tooltip以及Balloon能够支持mouseEnterDelay和mouseLeaveDelay
2 participants