chore: align motion follow popup point #42225
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.
[中文版模板 / Chinese template]
🤔 This is a ...
🔗 Related issue link
💡 Background and solution
📝 Changelog
☑️ Self-Check before Merge
🚀 Summary
🤖 Generated by Copilot at 37dd603
Improved tooltip component alignment, animation, and demo using
rc-trigger
dependency. Removed unused code and fixed import order intooltip
files.🔍 Walkthrough
🤖 Generated by Copilot at 37dd603
@rc-component/trigger
dependency to 1.12.0 inpackage.json
to improveTooltip
functionality and animation (link)onPopupAlign
function and prop fromTooltip
andRcTooltip
components incomponents/tooltip/index.tsx
as they are no longer needed (link, link)transformOrigin
style togenTooltipStyle
function incomponents/tooltip/style/index.ts
to use CSS variables set byrc-trigger
for smoother tooltip animation (link)mergeToken
andgenPresetColor
functions incomponents/tooltip/style/index.ts
to follow alphabetical order (link)AlignType
type from import statement incomponents/tooltip/index.tsx
(link)Tooltip
component inshift.tsx
demo to usetrigger="click"
anddefaultOpen
props instead ofopen
prop for better interactivity and consistency (link)