Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork378
fix(tdesign): add QRCode component support#880
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
|
src/core/resolvers/tdesign.ts Outdated
| } | ||
| } | ||
| if(name.startsWith('TQrcode')||name.startsWith('Qrcode')){ |
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.
Why needname.startsWith('Qrcode') here?
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.
Because of the above code(name.startsWith('TTypography') || name.startsWith('Typography'))
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.
I just tested it and found that startsWith('Qrcode') is redundant.
I will remove it
ed98de3 intounplugin:mainUh oh!
There was an error while loading.Please reload this page.
Description
Fix TDesign "QRCode" component cannot be imported due to case sensitivity.
Modify the export to be "QRCode" instead of "Qrcode".
Additional context
Code reference:https://github.com/Tencent/tdesign-vue-next/blob/develop/packages/auto-import-resolver/src/resolver.ts