-
-
Notifications
You must be signed in to change notification settings - Fork 100
fix: Mask from true to false without animation #490
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Walkthrough本次更改调整了 Drawer 组件中遮罩动画的渲染逻辑。现在无论 mask 属性是否为 true,CSSMotion 组件始终渲染,但其 visible 属性由 mask 和 open 的与运算共同控制,从而保证 mask 关闭时也有渐变动画。 Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant DrawerPopup
participant CSSMotion
User->>DrawerPopup: 设置 mask 属性(true/false)
User->>DrawerPopup: 切换 open 状态
DrawerPopup->>CSSMotion: 传递 visible = mask && open
CSSMotion-->>DrawerPopup: 渲染遮罩并处理渐变动画
Assessment against linked issues
Poem
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
src/DrawerPopup.tsxOops! Something went wrong! :( ESLint: 8.57.1 Error: Cannot read config file: /.eslintrc.js
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🔇 Additional comments (1)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #490 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 5 5
Lines 145 144 -1
Branches 54 53 -1
=========================================
- Hits 145 144 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Co-authored-by: 刘欢 <lh01217311@antgroup.com>
fix ant-design/ant-design#53917
Summary by CodeRabbit