feat(Splitter): Support onDraggerDoubleClick#56579
feat(Splitter): Support onDraggerDoubleClick#56579zombieJ merged 12 commits intoant-design:featurefrom
Conversation
|
|
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Note Other AI code review bot(s) detectedCodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review. ✨ Finishing touches🧪 Generate unit tests (beta)
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. Comment |
👁 Visual Regression Report for PR #56579 Failed ❌
Important There are 5 diffs found in this PR: 🔄
|
Summary of ChangesHello @ug-hero, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request introduces a new feature to the Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request introduces a new onDraggerDoubleClick feature to the Splitter component, which is a valuable addition. The implementation for mouse double-clicks is straightforward and includes comprehensive tests. My main feedback is that the feature should also support touch devices via a double-tap gesture for a consistent user experience. Currently, the logic is only implemented for onMouseDown. I recommend adding similar logic to the onTouchStart handler. Additionally, I've left a minor comment about improving code clarity by replacing a magic number with a named constant.
More templates
commit: |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## feature #56579 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 807 807
Lines 14884 14934 +50
Branches 3934 3937 +3
=========================================
+ Hits 14884 14934 +50 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Bundle ReportChanges will decrease total bundle size by 8.13MB (-67.83%) ⬇️. This is within the configured threshold ✅ Detailed changes
Affected Assets, Files, and Routes:view changes for bundle: antd.min-array-pushAssets Changed:
|
Co-authored-by: lijianan <574980606@qq.com> Signed-off-by: thinkasany <480968828@qq.com>
Co-authored-by: lijianan <574980606@qq.com> Signed-off-by: thinkasany <480968828@qq.com>
Co-authored-by: thinkasany <480968828@qq.com> Signed-off-by: ug <62086147+ug-hero@users.noreply.github.com>
Co-authored-by: thinkasany <480968828@qq.com> Signed-off-by: ug <62086147+ug-hero@users.noreply.github.com>
* feat(Splitter): Support onDraggerDoubleClick * update * update * update * update * Update components/splitter/index.en-US.md Co-authored-by: lijianan <574980606@qq.com> Signed-off-by: thinkasany <480968828@qq.com> * Update components/splitter/index.zh-CN.md Co-authored-by: lijianan <574980606@qq.com> Signed-off-by: thinkasany <480968828@qq.com> * Update components/splitter/index.en-US.md Co-authored-by: thinkasany <480968828@qq.com> Signed-off-by: ug <62086147+ug-hero@users.noreply.github.com> * Update components/splitter/index.zh-CN.md Co-authored-by: thinkasany <480968828@qq.com> Signed-off-by: ug <62086147+ug-hero@users.noreply.github.com> --------- Signed-off-by: thinkasany <480968828@qq.com> Signed-off-by: ug <62086147+ug-hero@users.noreply.github.com> Co-authored-by: liuqiang <qiang.liu@xinjifamily.com> Co-authored-by: thinkasany <480968828@qq.com> Co-authored-by: lijianan <574980606@qq.com>










中文版模板 / Chinese template
🤔 This is a ...
🔗 Related Issues
💡 Background and Solution
看了一下,vscode也有双击重置默认大小的功能,所以加了一下
📝 Change Log