chore: fix ts lint

This commit is contained in:
Benjy Cui 2017-06-28 16:49:49 +08:00
parent 00932da89b
commit 8e9a2eae38

View File

@ -135,7 +135,7 @@ export default class ScrollNumber extends Component<ScrollNumberProps, any> {
props.style.boxShadow = `0 0 0 1px ${props.style.borderColor} inset`;
}
return createElement(
this.props.component || 'sup',
(this.props.component || 'sup') as any,
props,
this.renderNumberElement(),
);