import _InputNumber from "antd/es/input-number";
import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
var _excluded = ["bordered", "defaultValue", "prefixSuffix", "prefixType", "prefixWord", "prefixIcon", "suffixType", "suffixWord", "suffixIcon"];
import * as React from 'react';
import "./index.less";
var antInputNumber = function antInputNumber(_ref) {
  var bordered = _ref.bordered,
    defaultValue = _ref.defaultValue,
    prefixSuffix = _ref.prefixSuffix,
    prefixType = _ref.prefixType,
    prefixWord = _ref.prefixWord,
    prefixIcon = _ref.prefixIcon,
    suffixType = _ref.suffixType,
    suffixWord = _ref.suffixWord,
    suffixIcon = _ref.suffixIcon,
    otherProps = _objectWithoutPropertiesLoose(_ref, _excluded);
  return /*#__PURE__*/React.createElement(_InputNumber, _extends({
    bordered: !bordered,
    defaultValue: defaultValue,
    value: defaultValue,
    addonBefore: prefixSuffix ? prefixType === '空' ? '' : prefixType === '文本' ? prefixWord : prefixIcon : null,
    addonAfter: prefixSuffix ? suffixType === '空' ? '' : suffixType === '文本' ? suffixWord : suffixIcon : null
  }, otherProps));
};
antInputNumber.displayName = 'antInputNumber';
export default antInputNumber;