ElemeFE / element

A Vue.js 2.0 UI Toolkit for Web
https://element.eleme.io/
MIT License
54.11k stars 14.64k forks source link

[bug report] tree set selected bug #18986

Open QiiSyhx opened 4 years ago

QiiSyhx commented 4 years ago

Element UI version

2.13.0

OS/Browsers version

windows/firefox 74.0 (64 位)

Vue version

2.6.11

Reproduction Link

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

Steps to reproduce

直接显示

What is Expected?

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

What is actually happening?

全部勾选

element-bot commented 4 years ago

Translation of this issue:

Element UI version

2.13.0

OS/Browsers version

Windows / Firefox 74.0 (64 bit)

Vue version

2.6.11

Reproduction Link

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

giligiliduang commented 4 years ago

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

stale[bot] commented 3 years ago

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.