import React from 'react';
import { InputNumber } from 'antd';
/**
 * PisellCurrency 禁用态视图组件
 * 
 * 负责渲染禁用态的输入框
 * 
 * @param props 组件 Props
 */
var DisabledView = function DisabledView(props) {
  var value = props.value,
    _props$currencySymbol = props.currencySymbol,
    currencySymbol = _props$currencySymbol === void 0 ? '¥' : _props$currencySymbol,
    _props$symbolPosition = props.symbolPosition,
    symbolPosition = _props$symbolPosition === void 0 ? 'before' : _props$symbolPosition,
    _props$showSymbol = props.showSymbol,
    showSymbol = _props$showSymbol === void 0 ? true : _props$showSymbol,
    _props$precision = props.precision,
    precision = _props$precision === void 0 ? 2 : _props$precision,
    min = props.min,
    max = props.max,
    step = props.step,
    placeholder = props.placeholder,
    size = props.size,
    controls = props.controls,
    className = props.className,
    style = props.style,
    id = props.id,
    name = props.name;
  var prefixNode = showSymbol && symbolPosition === 'before' ? currencySymbol : undefined;
  var addonAfterNode = showSymbol && symbolPosition === 'after' ? currencySymbol : undefined;
  return /*#__PURE__*/React.createElement("div", {
    className: "pisell-currency pisell-currency-disabled ".concat(className || '')
  }, /*#__PURE__*/React.createElement(InputNumber, {
    disabled: true,
    value: value,
    min: min,
    max: max,
    step: step,
    precision: precision,
    prefix: prefixNode,
    addonAfter: addonAfterNode,
    placeholder: placeholder,
    size: size,
    controls: controls,
    style: style,
    id: id,
    name: name
  }));
};
export default DisabledView;