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

change badge text types #15264

Merged
merged 1 commit into from
Mar 7, 2019
Merged

change badge text types #15264

merged 1 commit into from
Mar 7, 2019

Conversation

xiaohuoni
Copy link
Member

<Badge status="default" text={<span style={{ color: 'rgba(0, 0, 0, 0.45)' }}>未响应</span>} />

这里允许text使用JSX.Element,在ts中,会报错。

```jsx
<Badge status="default" text={<span style={{ color: 'rgba(0, 0, 0, 0.45)' }}>未响应</span>} />
```
@afc163 afc163 merged commit bd76dc6 into master Mar 7, 2019
@delete-merged-branch delete-merged-branch bot deleted the xiaohuoni-patch-1 branch March 7, 2019 16:30
@netlify
Copy link

netlify bot commented Mar 7, 2019

Deploy preview for ant-design ready!

Built with commit 85a293e

https://deploy-preview-15264--ant-design.netlify.com

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.

None yet

2 participants