Browse Source

move input-number width to css

pull/504/head
afc163 9 years ago
parent
commit
2f18d05759
  1. 2
      components/input-number/index.jsx
  2. 1
      style/components/inputNumber.less

2
components/input-number/index.jsx

@ -14,6 +14,6 @@ export default React.createClass({
} else if (this.props.size === 'small') {
sizeClass = 'ant-input-number-sm';
}
return <InputNumber className={sizeClass} style={{width: 90}} {...this.props} />;
return <InputNumber className={sizeClass} {...this.props} />;
}
});

1
style/components/inputNumber.less

@ -15,6 +15,7 @@
border: 1px solid #D9D9D9;
border-radius: @border-radius-base;
overflow: hidden;
width: 90px;
&-handler {
text-align: center;

Loading…
Cancel
Save