提交 62dbc54e 编写于 作者: A afc163

improve tag code style

上级 d010b795
......@@ -43,15 +43,17 @@ class AntTag extends React.Component {
[prefixCls + '-' + color]: !!color,
[prefixCls + '-close']: this.state.closing,
});
return this.state.closed ? null : (
return (
<Animate component=""
showProp="data-show"
transitionName={prefixCls + '-zoom'}
onEnd={this.animationEnd.bind(this)}>
{this.state.closed ? null : (
<div data-show={!this.state.closing} className={className}>
<span className={prefixCls + '-text'} {...restProps} />
{close}
</div>
)}
</Animate>
);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册