Skip to content

Conversation

@QdabuliuQ
Copy link
Contributor

@QdabuliuQ QdabuliuQ commented Aug 11, 2025

๐Ÿค” This is a ...

  • ๐Ÿ†• New feature
  • ๐Ÿž Bug fix
  • ๐Ÿ“ Site / documentation improvement
  • ๐Ÿ“ฝ๏ธ Demo improvement
  • ๐Ÿ’„ Component style improvement
  • ๐Ÿค– TypeScript definition improvement
  • ๐Ÿ“ฆ Bundle size optimization
  • โšก๏ธ Performance optimization
  • โญ๏ธ Feature enhancement
  • ๐ŸŒ Internationalization
  • ๐Ÿ›  Refactoring
  • ๐ŸŽจ Code style optimization
  • โœ… Test Case
  • ๐Ÿ”€ Branch merge
  • โฉ Workflow
  • โŒจ๏ธ Accessibility improvement
  • โ“ Other (about what?)

๐Ÿ”— Related Issues

feat: ant-design/ant-design#54597

๐Ÿ’ก Background and Solution

add resizable feature to Drawer component
add ResizableLine component to control the size of drawer

๐Ÿ“ Change Log

Language Changelog
๐Ÿ‡บ๐Ÿ‡ธ English add resizable feature to Drawer component
๐Ÿ‡จ๐Ÿ‡ณ Chinese Drawer ็ป„ไปถๆทปๅŠ  resizable ๅฑžๆ€ง

@coderabbitai
Copy link

coderabbitai bot commented Aug 11, 2025

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

โœจ Finishing Touches
๐Ÿงช Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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.

โค๏ธ Share
๐Ÿชง Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@vercel
Copy link

vercel bot commented Aug 11, 2025

@QdabuliuQ is attempting to deploy a commit to the React Component Team on Vercel.

A member of the Team first needs to authorize it.

mask?: React.CSSProperties;
wrapper?: React.CSSProperties;
content?: React.CSSProperties;
resizableLine?: React.CSSProperties;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ๅพ…่ฎจ่ฎบ - -

@zombieJ, ่ฟ™ไธชไฝ ๆ€Žไนˆ็œ‹๏ผŒๅซ dragger ๅ—?

image

Comment on lines +31 to +33
onResize?: (size: number) => void;
onResizeStart?: () => void;
onResizeEnd?: () => void;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ไธ็กฎๅฎšๆ˜ฏๅฆ้œ€่ฆไธ€ๅผ€ๅง‹ๆšด้œฒ่ฟ™ไนˆๅคšๅ›ž่ฐƒ๏ผŒ็œ‹็œ‹ๅคงไฝฌไปฌๆ€Žไนˆ่ฏด~ ไนŸๅฏไปฅ่ฏด่ฏดไฝ ็š„ๆƒณๆณ•

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ๅ‚่€ƒไบ† splitter ็š„่ฎพ่ฎกๆ˜ฏๅง๏ผŒๅŠŸ่ƒฝๆ˜ฏๅฅฝๅŠŸ่ƒฝ~

image

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ๆ˜ฏ็š„ๅ˜ž๏ผŒๆˆ‘่ง‰ๅพ—ๆœ‰ๅฟ…่ฆๆšด้œฒๅ‡บๅŽป๏ผŒๅ› ไธบ antd/drawer ็ป„ไปถไฝฟ็”จ็š„ๆ—ถๅ€™้œ€่ฆ็›‘ๅฌๅˆฐ start / end ไบ‹ไปถ๏ผŒๅ–ๆถˆ / ๆขๅค transition ่ฟ‡ๆธก antd/drawer ๅฎฝๅบฆ็š„ๆ ทๅผ๏ผŒ่ฟ™ๆ ทๅœจๆ‹–ๆ‹ฝ็š„ๆ—ถๅ€™ๅฏไปฅๅŠจๆ€ๅผ€ๅฏๅ’Œๅ…ณ้—ญ transition ๅฝฑๅ“ใ€‚

@QdabuliuQ
Copy link
Contributor Author

ไธŠ้ข็š„้—ฎ้ข˜้ƒฝ่ฐƒๆ•ดไบ†๏ผŒ้บป็ƒฆๅคงไฝฌไปฌๅ†็œ‹็œ‹๏ฝž

// Add global mouse event listeners during drag
document.addEventListener('mousemove', handleMouseMove);
document.addEventListener('mouseup', handleMouseUp);
document.body.style.cursor = isHorizontal ? 'col-resize' : 'row-resize';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ไธบๅ•ฅๆ˜ฏ body๏ผŒๅฆ‚ๆžœ dom ไธๅœจ body ไธŠๅ‘ข

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

่ฟ™้‡Œๆ˜ฏ้ผ ๆ ‡ๆŒ‰ไฝresizable ็ป„ไปถ็š„ๅŽ่ฟ›ๅ…ฅisDragging ็Šถๆ€๏ผŒๅฐฑ็ป™ body ็›‘ๅฌ้ผ ๆ ‡็งปๅŠจๅ’ŒๆŠฌ่ตทไบ‹ไปถ๏ผŒ่ฎก็ฎ— drawer ็š„ๅฎฝๅบฆ็š„ๅ‘€๏ผ›dom ไธๅœจ body ไนŸๆ˜ฏๅฏไปฅๆญฃๅธธ่ฎก็ฎ—็š„ๅ“ฉ

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ๆˆ‘่ฏด็š„ๆ˜ฏ style.cursor๏ผŒไธ่ฟ‡ๅฅฝๅƒ้—ฎ้ข˜ไนŸไธๅคง(ไบคไบ’ไธŠ็œ‹่ตทๆฅๆฒกๅ•ฅ้—ฎ้ข˜)๏ผŒisDragging false ็š„ๆ—ถๅ€™ไนŸๅธ่ฝฝไบ†ใ€‚
ๆˆ‘ๆ˜ฏ็œ‹ naive๏ผŒไป–ๆ˜ฏ style ๆ ทๅผๆ”พๅœจ drawer ้‡Œ้ข็š„

image

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

get

@thinkasany
Copy link
Contributor

็Žฐๅœจ่ฟ™ไธช็ปดๆŠคๆˆๆœฌไผšๆฏ”่พƒๅคง๏ผˆๅœจantdไพงไผšๆœ‰ๅพˆๅคš็š„ๅ†ฒ็ช๏ผ‰๏ผŒๆ–นไพฟๅˆฐrc-drawer master ไธŠๆฅไธ€ไธชไนˆ๏ผŒๅฏไปฅ็”จ git cherry-pick๏ผŒ่ฟ™่พนไธ€่ˆฌๆฅ่ฏด่ฟ˜ๆ˜ฏๅธŒๆœ›ๅผ„ๅˆฐ next ๅˆ†ๆ”ฏไธŠใ€‚
image

@QdabuliuQ
Copy link
Contributor Author

็Žฐๅœจ่ฟ™ไธช็ปดๆŠคๆˆๆœฌไผšๆฏ”่พƒๅคง๏ผˆๅœจantdไพงไผšๆœ‰ๅพˆๅคš็š„ๅ†ฒ็ช๏ผ‰๏ผŒๆ–นไพฟๅˆฐrc-drawer master ไธŠๆฅไธ€ไธชไนˆ๏ผŒๅฏไปฅ็”จ git cherry-pick๏ผŒ่ฟ™่พนไธ€่ˆฌๆฅ่ฏด่ฟ˜ๆ˜ฏๅธŒๆœ›ๅผ„ๅˆฐ next ๅˆ†ๆ”ฏไธŠใ€‚ image

ๅฅฝ็š„ ๆˆ‘้‡ๆ–ฐๅผ„ๅˆฐ master ้‡Œ้ข

@thinkasany
Copy link
Contributor

่พ›่‹ฆไบ†~ ๆ„Ÿ่ฐขไฝ ็š„่ดก็Œฎ๏ผŒๅคชๆ„Ÿ่ฐขไบ†ใ€‚

@QdabuliuQ
Copy link
Contributor Author

#528 @thinkasany ๆ–ฐ็š„ pr ๅˆๅนถๅˆฐ master็š„๏ฝž

@thinkasany
Copy link
Contributor

#528 @thinkasany ๆ–ฐ็š„ pr ๅˆๅนถๅˆฐ master็š„๏ฝž

ๅ‚่€ƒไธ€ไธ‹ bot ็š„ cr ๅปบ่ฎฎ๏ผŒๆœ‰็š„ๅฅฝๅƒๆ˜ฏๅฏไปฅ่€ƒ่™‘็š„๏ผŒ็„ถๅŽๆ˜Žๅคฉๅธฎไฝ ้—ฎ้—ฎ่ฑ†้…ฑ๏ฝž

@QdabuliuQ QdabuliuQ closed this Aug 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants