-
-
Notifications
You must be signed in to change notification settings - Fork 46.7k
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
fix: Added bgColor attribute to fix the problem that the background c… #42214
Conversation
改到 feature branch 吧,另外加个测试用例 |
|
rebase 一下,你把 master 的改动带过来了,master 的 commit 不应该出现在这里 |
…olor of the QR code is displayed incorrectly when downloading
好了。。 |
不会有这个问题 那个容器是用户自己写的div,下载的只是二维码的真实图片内容 |
同步一下上游分支 |
lint 挂了 |
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## feature #42214 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 619 619
Lines 10568 10569 +1
Branches 2885 2886 +1
=========================================
+ Hits 10568 10569 +1
☔ View full report in Codecov by Sentry. |
CI 挂了,需要更新一下 snap |
color of the QR code is displayed incorrectly when downloading
[中文版模板 / Chinese template]
🤔 This is a ...
🔗 Related issue link
close #42213
💡 Background and solution
📝 Changelog
☑️ Self-Check before Merge
🚀 Summary
🤖 Generated by Copilot at 5a2bffc
Added a new
bgColor
prop to the QRCode component to enable customizing the background color of the QR code. Updated the component examples, interface, and documentation accordingly.🔍 Walkthrough
🤖 Generated by Copilot at 5a2bffc
bgColor
prop to QRCode component to customize the background color of the QRCode (link, link)bgColor
prop to QRCodeGenerator options and useMemo dependency array incomponents/qrcode/index.tsx
to render the QRCode with the correct background color (link)bgColor
prop in English and Chinese API sections ofcomponents/qrcode/index.en-US.md
andcomponents/qrcode/index.zh-CN.md
with default value oftransparent
(link, link)style
prop bybgColor
prop in QRCode component examples incomponents/qrcode/demo/customColor.tsx
andcomponents/qrcode/demo/customColor.md
to demonstrate how to use the new prop (link, link)components/qrcode/demo/customColor.tsx
to follow convention of importing React first (link)