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

给ToolTip的default设置动态class时, 在触发时间结束后, 错误的使用props.class写回到dom #7893

Open
1 task
Lian1998 opened this issue Oct 25, 2024 · 0 comments

Comments

@Lian1998
Copy link

  • I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

完整的bug触发和情况如下:

<template #title>{{ t("2dmapv2.CommonUI.layerControls.block") }}
<template #default>

我使用handleClick来给default插槽内的div的classList动态控制是否包含active类
但是在源码中, 在hover结束后直接将props.class写入到default插槽了

What does the proposed API look like?

hover开始, hover结束的触发事件中, 应该也使用javascirpt的classList.add来, 而不要将类列表重新赋值

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

No branches or pull requests

1 participant