This commit is contained in:
Horcrux
2017-01-15 20:17:21 +08:00
parent 4ae54df091
commit 58823495d6
4 changed files with 4 additions and 13 deletions
+2 -2
View File
@@ -105,8 +105,8 @@ export default function(props, container) {
}
} else if (Children.count(children) > 1) {
children = Children.map(children, child => {
if (typeof child === 'string') {
return <TSpan>{child}</TSpan>;
if (typeof child === 'string' || typeof child === 'number') {
return <TSpan>{child.toString()}</TSpan>;
} else {
return child;
}