Element UI version
2.6.3
OS/Browsers version
win10/edge或者chrome
Vue version
2.6.10
Reproduction Link
https://elementui.github.io/issue-generator/#/zh-CN
Steps to reproduce
在生产环境下, 点击树中不同节点, 设置高亮之后, 调用setCurrentKey(null)进行当前选中移除,移除后重新点击清除前的同一级或者下一级节点, 清除前的节点会被重新加上'is-current' 类名,而在开发环境不会;
What is Expected?
setCurrentKey(null)清除当前选中之后 再次点击同一级节点或者下级节点,原先的选中节点不再添加'is-current' 类名
What is actually happening?
setCurrentKey(null)清除当前选中之后 再次点击同一级节点或者下级节点,原先的选中节点重复添加'is-current' 类名
2条答案
按热度按时间pu82cl6c1#
Translation of this issue:
Element UI version
2.6.3
OS/Browsers version
Win10 / edge or chrome
Vue version
2.6.10
Reproduction Link
https://elementui.github.io/issue-generator/#/zh -CN
Steps to reproduce
In the production environment, click different nodes in the tree. After setting the highlight, call setcurrentkey (null) to remove the current selection. After removal, click the same or next level node before clearing again. The node before clearing will be added with the class name of 'is current', but not in the development environment;
What is Expected?
Set current key (null) after clearing the current selection, click the same level node or lower level node again. The previously selected node will no longer add the 'is current' class name
What is actually happening?
Set current key (null) after clearing the current selection, click the same level node or lower level node again, and the previously selected node repeatedly adds the 'is current' class name
r7s23pms2#
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.