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

Tree 组件单独设置的 selectable #1893

Closed
Flcwl opened this issue Aug 25, 2021 · 0 comments · Fixed by #1904
Closed

Tree 组件单独设置的 selectable #1893

Flcwl opened this issue Aug 25, 2021 · 0 comments · Fixed by #1904
Labels
3.x comp:tree enhancement New feature or request

Comments

@Flcwl
Copy link
Collaborator

Flcwl commented Aug 25, 2021

场景是父级支持展开、但是不可以点击、子级可点击

可以先让 selectedId 受控,对于不可点击的项目在 onSelect 回调里拦截掉

缺点是样式让没有区分
对于这个单独设置的 selectable 的功能我们可以支持,作为新 feature

@Flcwl Flcwl added the enhancement New feature or request label Aug 25, 2021
solarjoker added a commit that referenced this issue Sep 3, 2021
feat: add selectable for tree node
@Flcwl Flcwl mentioned this issue Sep 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.x comp:tree enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants