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

feat(components): [tree] node checkable by clicking leaf node #19494

Open
wants to merge 4 commits into
base: dev
Choose a base branch
from

Conversation

Dsaquel
Copy link
Contributor

@Dsaquel Dsaquel commented Jan 3, 2025

Enhancing the behavior of <el-tree show-checkbox> and <el-tree-select show-checkbox> by check a node if its a leaf node(not a parent one) on click.

<el-tree> before
<el-tree-select> before

<el-tree> after
<el-tree-select> after

Step to see the effect:

  1. click 一级 1
  2. click 二级 1-1
  3. click 三级 1-1 without click checkbox
  4. see 三级 1-1 is checked

enhancement request

Please make sure these boxes are checked before submitting your PR, thank you!

  • Make sure you follow contributing guide English | (中文 | Español | Français).
  • Make sure you are merging your commits to dev branch.
  • Add some descriptions and refer to relative issues for your PR.

Copy link

👋 @Dsaquel, thank you for contributing element-plus.

  • You can comment with /label Components:[component_name] to add a label for which component you are working on.
  • You may join our Discord for staying tuned.

Copy link

github-actions bot commented Jan 3, 2025

Copy link

github-actions bot commented Jan 3, 2025

Hello @Dsaquel, thank you for contributing to element-plus, please see our guideline to see how to make contribution

Copy link

pkg-pr-new bot commented Jan 3, 2025

Open in Stackblitz

npm i https://pkg.pr.new/element-plus/element-plus@19494

commit: 38b1577

Copy link

github-actions bot commented Jan 3, 2025

🧪 Playground Preview: https://element-plus.run/?pr=19494
Please comment the example via this playground if needed.

@btea btea changed the title chore(components): [tree] node checkable by clicking leaf node feat(components): [tree] node checkable by clicking leaf node Jan 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant