Skip to content
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

Merged
merged 3 commits into from
Jun 20, 2023
Merged

feat: support id prop #421

merged 3 commits into from
Jun 20, 2023

Conversation

MuxinFeng
Copy link
Contributor

@MuxinFeng MuxinFeng commented Jun 16, 2023

支持 id prop

close ant-design/ant-design#42987

@vercel
Copy link

vercel bot commented Jun 16, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
drawer ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 20, 2023 6:34am

@yoyo837
Copy link
Member

yoyo837 commented Jun 19, 2023

添加用例?亲.

@MuxinFeng
Copy link
Contributor Author

好嘞

@codecov
Copy link

codecov bot commented Jun 19, 2023

Codecov Report

Merging #421 (2392ef2) into master (f2d8b7c) will not change coverage.
The diff coverage is n/a.

❗ Current head 2392ef2 differs from pull request most recent head 608f2a3. Consider uploading reports for the commit 608f2a3 to get more accurate results

@@            Coverage Diff            @@
##            master      #421   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            5         5           
  Lines          143       143           
  Branches        53        53           
=========================================
  Hits           143       143           
Impacted Files Coverage Δ
src/DrawerPanel.tsx 100.00% <ø> (ø)
src/DrawerPopup.tsx 100.00% <ø> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@@ -318,6 +321,7 @@ function DrawerPopup(props: DrawerPopupProps, ref: React.Ref<HTMLDivElement>) {
return (
<DrawerContext.Provider value={mergedContext}>
<div
id={id}
Copy link
Member

Choose a reason for hiding this comment

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

位置不对,idclassName 一样都是加在弹出 Panel 上的

Copy link
Contributor Author

Choose a reason for hiding this comment

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

看原 issue 里的说法,一开始好像放在最外层的,大佬要不再确认下@zombieJ

Copy link
Member

Choose a reason for hiding this comment

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

过去是不小心漏过去的

@zombieJ zombieJ merged commit 96b6aa8 into react-component:master Jun 20, 2023
7 checks passed
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.

drawer组件不支持传入id props,4.18.x版本之前支持,4.18.x版本后就不生效了?
3 participants