feat: select弹框长度&nestSelect的弹框长度&文本优化 #6623
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What
🤖 Generated by Copilot at 36d78a4
This pull request enhances the nested select and select components in the form module by improving their styles and functionality. It adds tooltips, adjusts widths, and refactors some code in
NestedSelect.tsx
and_nested-select.scss
. It also sets a minimum width for the select control in_select.scss
.🤖 Generated by Copilot at 36d78a4
Why
How
🤖 Generated by Copilot at 36d78a4
NestedSelect.tsx
to calculate the menu width based on the tree depth (link)NestedSelect.tsx
(link, link)NestedSelect.tsx
to show the full path of the selected option as a tooltip (link, link)NestedSelect.tsx
to return a style object that sets the width of each menu based on the control width and the tree depth (link)NestedSelect.tsx
to apply the getMenuSelectMenuStyle method result as the inline style (link, link)NestedSelect.tsx
to show the full option label as a tooltip (link, link)NestedSelect.tsx
to assign the outTarget property as the reference to the element (link)