Skip to content

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

@Lian1998

Description

@Lian1998
  • 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来, 而不要将类列表重新赋值

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions