Fix some style

This commit is contained in:
afc163 2016-02-28 00:16:32 +08:00
parent 4953653947
commit 86b5c6eecc
2 changed files with 6 additions and 7 deletions

View File

@ -1,4 +1,5 @@
import React from 'react'; import React from 'react';
import classNames from 'classnames';
function getCheckedValue(children) { function getCheckedValue(children) {
let value = null; let value = null;
@ -17,7 +18,6 @@ export default React.createClass({
return { return {
prefixCls: 'ant-radio-group', prefixCls: 'ant-radio-group',
disabled: false, disabled: false,
size: 'default',
onChange() { onChange() {
}, },
}; };
@ -77,10 +77,10 @@ export default React.createClass({
} }
return radio; return radio;
}); });
return ( const classString = classNames({
<div className={`${props.prefixCls} ${props.prefixCls}-${props.size}`}> [props.prefixCls]: true,
{children} [`${props.prefixCls}-${props.size}`]: props.size,
</div> });
); return <div className={classString}>{children}</div>;
}, },
}); });

View File

@ -110,7 +110,6 @@
input { input {
height: 32px; height: 32px;
line-height: 32px; line-height: 32px;
font-size: 14px;
} }
.@{input-number-prefix-cls}-handler-up-inner { .@{input-number-prefix-cls}-handler-up-inner {