import _extends from"babel-runtime/helpers/extends";import _defineProperty from"babel-runtime/helpers/defineProperty";import _classCallCheck from"babel-runtime/helpers/classCallCheck";import _createClass from"babel-runtime/helpers/createClass";import _possibleConstructorReturn from"babel-runtime/helpers/possibleConstructorReturn";import _inherits from"babel-runtime/helpers/inherits";var __rest=this&&this.__rest||function(e,r){var t={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&r.indexOf(s)<0&&(t[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(s=Object.getOwnPropertySymbols(e);n<s.length;n++)r.indexOf(s[n])<0&&(t[s[n]]=e[s[n]])}return t};import*as React from"react";import classNames from"classnames";import RcInputNumber from"rc-input-number";var InputNumber=function(e){function r(){return _classCallCheck(this,r),_possibleConstructorReturn(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return _inherits(r,e),_createClass(r,[{key:"render",value:function(){var e,r=this,t=this.props,s=t.className,n=t.size,o=__rest(t,["className","size"]),i=classNames((_defineProperty(e={},this.props.prefixCls+"-lg","large"===n),_defineProperty(e,this.props.prefixCls+"-sm","small"===n),e),s);return React.createElement(RcInputNumber,_extends({ref:function(e){return r.inputNumberRef=e},className:i},o))}},{key:"focus",value:function(){this.inputNumberRef.focus()}},{key:"blur",value:function(){this.inputNumberRef.blur()}}]),r}(React.Component);export default InputNumber;InputNumber.defaultProps={prefixCls:"dt-input-number",step:1};