💄 Fix one tslint problem

This commit is contained in:
afc163 2018-12-20 17:34:30 +08:00
parent 0929a8b2c5
commit ecf83c0438
No known key found for this signature in database
GPG Key ID: 738F973FCE5C6B48

View File

@ -207,7 +207,7 @@ export default class Button extends React.Component<ButtonProps, any> {
[`${prefixCls}-${type}`]: type, [`${prefixCls}-${type}`]: type,
[`${prefixCls}-${shape}`]: shape, [`${prefixCls}-${shape}`]: shape,
[`${prefixCls}-${sizeCls}`]: sizeCls, [`${prefixCls}-${sizeCls}`]: sizeCls,
[`${prefixCls}-icon-only`]: (!children && children!==0) && icon, [`${prefixCls}-icon-only`]: !children && children !== 0 && icon,
[`${prefixCls}-loading`]: loading, [`${prefixCls}-loading`]: loading,
[`${prefixCls}-background-ghost`]: ghost, [`${prefixCls}-background-ghost`]: ghost,
[`${prefixCls}-two-chinese-chars`]: hasTwoCNChar, [`${prefixCls}-two-chinese-chars`]: hasTwoCNChar,