-
Notifications
You must be signed in to change notification settings - Fork 91
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
feat: support id prop #421
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
添加用例?亲. |
好嘞 |
Codecov Report
@@ Coverage Diff @@
## master #421 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 5 5
Lines 143 143
Branches 53 53
=========================================
Hits 143 143
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
src/DrawerPopup.tsx
Outdated
@@ -318,6 +321,7 @@ function DrawerPopup(props: DrawerPopupProps, ref: React.Ref<HTMLDivElement>) { | |||
return ( | |||
<DrawerContext.Provider value={mergedContext}> | |||
<div | |||
id={id} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
位置不对,id
和 className
一样都是加在弹出 Panel 上的
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
看原 issue 里的说法,一开始好像放在最外层的,大佬要不再确认下@zombieJ
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
过去是不小心漏过去的
支持 id prop
close ant-design/ant-design#42987