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

fix(components): [tree-v2] modify the condition for when the value of currentKey is 0 #13935

Merged
merged 7 commits into from
Aug 14, 2023

Conversation

yj-liuzepeng
Copy link
Contributor

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.

Related Issue

Fixes #13933

@pull-request-triage
Copy link

👋 @yj-liuzepeng, 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.

@github-actions
Copy link

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

@github-actions
Copy link

github-actions bot commented Aug 10, 2023

@github-actions
Copy link

github-actions bot commented Aug 10, 2023

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

@btea
Copy link
Collaborator

btea commented Aug 11, 2023

@yj-liuzepeng Could you add a test case?

@yj-liuzepeng
Copy link
Contributor Author

@yj-liuzepeng Could you add a test case?

I'm not familiar with unit testing, but I added a test case. Can you review it, please? @btea

yj-liuzepeng and others added 3 commits August 14, 2023 12:24
Co-authored-by: btea <2356281422@qq.com>
Co-authored-by: btea <2356281422@qq.com>
Co-authored-by: btea <2356281422@qq.com>
@btea btea merged commit 665cc59 into element-plus:dev Aug 14, 2023
10 checks passed
@yj-liuzepeng yj-liuzepeng deleted the fix/tree-v2 branch August 16, 2023 15:19
@element-bot element-bot mentioned this pull request Aug 25, 2023
3 tasks
laizuan pushed a commit to laizuan/element-plus that referenced this pull request Sep 5, 2023
… currentKey is 0 (element-plus#13935)

* modify the condition for when the value of currentKey is 0

* add a test case

* add a test case

* add a test case

* Update packages/components/tree-v2/__tests__/tree.test.ts

Co-authored-by: btea <2356281422@qq.com>

* Update packages/components/tree-v2/__tests__/tree.test.ts

Co-authored-by: btea <2356281422@qq.com>

* Update packages/components/tree-v2/__tests__/tree.test.ts

Co-authored-by: btea <2356281422@qq.com>

---------

Co-authored-by: btea <2356281422@qq.com>
consultation-applio pushed a commit to consultation-applio/element-plus that referenced this pull request Nov 10, 2023
… currentKey is 0 (element-plus#13935)

* modify the condition for when the value of currentKey is 0

* add a test case

* add a test case

* add a test case

* Update packages/components/tree-v2/__tests__/tree.test.ts

Co-authored-by: btea <2356281422@qq.com>

* Update packages/components/tree-v2/__tests__/tree.test.ts

Co-authored-by: btea <2356281422@qq.com>

* Update packages/components/tree-v2/__tests__/tree.test.ts

Co-authored-by: btea <2356281422@qq.com>

---------

Co-authored-by: btea <2356281422@qq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants