-
Notifications
You must be signed in to change notification settings - Fork 334
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
[Card] 组件在 Console 输出错误信息 #3368
Labels
Comments
👋 @laolarou726,感谢给 TDesign 提出了 issue。 |
16 tasks
lifeiFront
added a commit
to lifeiFront/tdesign-react
that referenced
this issue
Feb 20, 2025
16 tasks
lifeiFront
added a commit
to lifeiFront/tdesign-react
that referenced
this issue
Feb 20, 2025
src/card/Card.tsx fix Tencent#3368
lifeiFront
added a commit
to lifeiFront/tdesign-react
that referenced
this issue
Feb 20, 2025
lifeiFront
added a commit
to lifeiFront/tdesign-react
that referenced
this issue
Feb 20, 2025
src/card/Card.tsx fix Tencent#3368
fixed 1.11.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
tdesign-react 版本
1.10.5
重现链接
No response
重现步骤
创建一个简单的Card组件就会报错
期望结果
控制台无报错
实际结果
Invalid prop
style
supplied toReact.Fragment
. React.Fragment can only havekey
andchildren
props. Error Component Stackat div ()
at Card (defaultProps.ts:35:7)
at div ()
at UserHome ()
at RenderedRoute (chunk-IR6S3I6Y.mjs:4368:26)
at Outlet (chunk-IR6S3I6Y.mjs:4989:26)
at div ()
at div ()
at div ()
at div ()
at UserPageBaseElement (UserPageBaseElement.tsx:20:33)
at RenderedRoute (chunk-IR6S3I6Y.mjs:4368:26)
at Outlet (chunk-IR6S3I6Y.mjs:4989:26)
at App (App.tsx:16:27)
框架版本
19.0.0
浏览器版本
Edge (133.0.3065.69)
系统版本
Windows 11 24H2
Node版本
v22.14.0
补充说明
No response
The text was updated successfully, but these errors were encountered: