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

checkStrictly=false怎么设置父菜单半选中 #96

Open
pjyIsTheBest opened this issue Mar 26, 2020 · 1 comment
Open

checkStrictly=false怎么设置父菜单半选中 #96

pjyIsTheBest opened this issue Mar 26, 2020 · 1 comment

Comments

@pjyIsTheBest
Copy link

{
label:'父菜单'
id: 1,
checked:true
children: [
{
label:'子菜单1'
id: 11,
checked:true
},
{
label:'子菜单2'
id: 12,
checked:false
}
]
}
这种数据render后显示都是选中状态,如何让父菜单半选中子菜单2不选中

@hsiangleev
Copy link
Owner

@pjyIsTheBest
checkStrictly=false的话,父子节点不关联了,所以就没有半选节点了,
如果只是要父菜单半选中子菜单1选中,直接设置checkStrictly=true,给菜单1设置选中就行了,这样父节点会自动设置半选的状态

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

2 participants