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.
[中文版模板 / Chinese template]
🤔 This is a ...
🔗 Related issue link
fix #42392
💡 Background and solution
📝 Changelog
overflow: hidden
, and the second is to ensure that it is displayed within the viewport as much as possible.overflow: hidden
裁剪,其次保证尽可能在可见屏幕范围内展示。☑️ Self-Check before Merge
🚀 Summary
🤖 Generated by Copilot at 7d21be3
Added a
visibleFirst
feature to the tooltip and popover components, which makes them show the first possible placement when the preferred one is not available. Updated the@rc-component/trigger
dependency to support this feature.🔍 Walkthrough
🤖 Generated by Copilot at 7d21be3
visibleFirst
property toPlacementsConfig
interface andgetPlacements
function to control tooltip or popover placement when overflow occurs (link, link, link)visibleFirst
feature forTooltip
component by setting it to true (link)@rc-component/trigger
dependency version to^1.13.0
to use the new feature ofvisibleFirst
inrc-trigger
component (link)