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

docs: update the tree component filter example data type #12942

Merged
merged 1 commit into from
May 26, 2023

Conversation

btea
Copy link
Collaborator

@btea btea commented May 25, 2023

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.

Description

🤖 Generated by Copilot at f5ab8e4

Simplified the Tree interface and improved its compatibility with the ElTree component. Updated the filtering example in docs/examples/tree/filtering.vue to demonstrate the new interface.

Related Issue

Fixes #12936 .

Explanation of Changes

🤖 Generated by Copilot at f5ab8e4

  • Simplify the Tree interface to allow any key-value pairs as properties (link). This makes the interface more flexible and compatible with the filterNodeMethod prop of the ElTree component, which can accept any custom attributes on the tree nodes.

@github-actions
Copy link

github-actions bot commented May 25, 2023

@github-actions github-actions bot added the CommitMessage::Qualified Qualified commit message label May 25, 2023
@github-actions
Copy link

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

@btea btea merged commit 232649a into dev May 26, 2023
13 checks passed
@btea btea deleted the docs/tree-filter-example branch May 26, 2023 03:47
consultation-applio pushed a commit to consultation-applio/element-plus that referenced this pull request Nov 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CommitMessage::Qualified Qualified commit message
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[TypeScript] [tree] Tree filter example type error
2 participants