fix eslint

This commit is contained in:
afc163 2016-07-09 16:15:08 +08:00
parent 4ac775212f
commit fc9eacbd7e
2 changed files with 3 additions and 2 deletions

View File

@ -34,6 +34,7 @@ const eslintrc = {
'no-return-assign': 0,
'max-len': 0,
'consistent-return': 0,
'no-redeclare': 0,
}
};

View File

@ -46,7 +46,7 @@ export default class Tag extends React.Component {
render() {
const { prefixCls, closable, color, className, children, ...otherProps } = this.props;
const close = closable ? <Icon type="cross" onClick={this.close} /> : '';
const closeIcon = closable ? <Icon type="cross" onClick={this.close} /> : '';
const classString = classNames({
[prefixCls]: true,
[`${prefixCls}-${color}`]: !!color,
@ -68,7 +68,7 @@ export default class Tag extends React.Component {
{this.state.closed ? null : (
<div data-show={!this.state.closing} {...divProps} className={classString}>
<span className={`${prefixCls}-text`}>{children}</span>
{close}
{closeIcon}
</div>
)}
</Animate>