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

improve tag code style

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