element [bug report] tree set selected bug

xvw2m8pv  于 2022-10-23  发布在  其他
关注(0)|答案(3)|浏览(268)

Element UI version

2.13.0

OS/Browsers version

windows/firefox 74.0 (64 位)

Vue version

2.6.11

https://codepen.io/qiisyhx/pen/oNXyZrB

Steps to reproduce

直接显示

What is Expected?

勾选id为1,2,4,的菜单

What is actually happening?

全部勾选

h5qlskok

h5qlskok1#

Translation of this issue:

Element UI version

2.13.0

OS/Browsers version

Windows / Firefox 74.0 (64 bit)

Vue version

2.6.11

https://codepen.io/qiisyhx/pen/oNXyZrB

Steps to reproduce

Direct display

What is Expected?

Check the menu with ID 1,2,4

What is actually happening?

Check all

vyu0f0g1

vyu0f0g12#

tree组件默认情况下,选择节点是父子节点相互关联的,要达到你那样的效果需要设置属性check-strictly为true,这样可以取消父子节点的关联选择

x759pob2

x759pob23#

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.

相关问题