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

[Card] 组件在 Console 输出错误信息 #3368

Closed
laolarou726 opened this issue Feb 18, 2025 · 2 comments · May be fixed by #3373
Closed

[Card] 组件在 Console 输出错误信息 #3368

laolarou726 opened this issue Feb 18, 2025 · 2 comments · May be fixed by #3373
Labels
🐞 bug Something isn't working react19 to be published fixed, not be published

Comments

@laolarou726
Copy link

tdesign-react 版本

1.10.5

重现链接

No response

重现步骤

创建一个简单的Card组件就会报错

<Card bordered size="medium" theme="normal">
    仅有内容区域的卡片形式。
</Card>

期望结果

控制台无报错

实际结果

Invalid prop style supplied to React.Fragment. React.Fragment can only have key and children props. Error Component Stack
at 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)

Image

框架版本

19.0.0

浏览器版本

Edge (133.0.3065.69)

系统版本

Windows 11 24H2

Node版本

v22.14.0

补充说明

No response

Copy link
Contributor

👋 @laolarou726,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@HaixingOoO HaixingOoO added 🐞 bug Something isn't working react19 labels Feb 18, 2025
@uyarn uyarn added the to be published fixed, not be published label Feb 19, 2025
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
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
@uyarn
Copy link
Collaborator

uyarn commented Feb 20, 2025

fixed 1.11.0

@uyarn uyarn closed this as completed Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working react19 to be published fixed, not be published
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants