-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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): [cascader] add max-collpase-tags prop #13386
Conversation
show more than one tag in cascade when multiple enable and use collapse-tags true
👋 @chenweiyi, seems like this is your first time contribution to element-plus.
|
Hello @chenweiyi, thank you for contributing to element-plus, please see our guideline to see how to make contribution |
🧪 Playground Preview: https://element-plus.run/?pr=13386 |
Co-authored-by: btea <2356281422@qq.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
happy, thank you! |
Thank for your contribution |
…#13386) * feat(components): add max-collapse-tags prop show more than one tag in cascade when multiple enable and use collapse-tags true * test(test-utils): add unit test for cascader prop 'max-collapse-tags' * Update packages/components/cascader/src/cascader.vue Co-authored-by: btea <2356281422@qq.com> * Update cascader.vue * refactor(components): [cascader] style lint --------- Co-authored-by: chenweiyi01 <chenweiyi01@zuoyebang.com> Co-authored-by: btea <2356281422@qq.com>
…#13386) * feat(components): add max-collapse-tags prop show more than one tag in cascade when multiple enable and use collapse-tags true * test(test-utils): add unit test for cascader prop 'max-collapse-tags' * Update packages/components/cascader/src/cascader.vue Co-authored-by: btea <2356281422@qq.com> * Update cascader.vue * refactor(components): [cascader] style lint --------- Co-authored-by: chenweiyi01 <chenweiyi01@zuoyebang.com> Co-authored-by: btea <2356281422@qq.com>
Please make sure these boxes are checked before submitting your PR, thank you!
dev
branch.Description
Show more than one tag when multiple and collapse-tags prop use.
🤖 Generated by Copilot at c58d594
Added a new
max-collapse-tags
attribute to the cascader component, allowing users to limit the number of tags displayed in multiple selection mode. Updated the documentation, the component code and the example to reflect this feature.Related Issue
Explanation of Changes
max-collapse-tags
propmax-collapse-tags
,presentTags
will change tomax-collapse-tags
's value.collapse-tag
number will change to total tags subtract max-collapse-tags。🤖 Generated by Copilot at c58d594
maxCollapseTags
prop to cascader component to control the number of tags displayed whencollapse-tags
is true (link, link, link)maxCollapseTags
set to 3 indocs/examples/cascader/multiple-selection.vue
(link)