import React from 'react';
/**
 * MetricValue 数值展示组件
 * 
 * 负责渲染格式化后的主数值
 * 支持自定义字号、字重、颜色等样式
 * 
 * @param props 组件属性
 */
var MetricValue = function MetricValue(_ref) {
  var value = _ref.value,
    _ref$valueSize = _ref.valueSize,
    valueSize = _ref$valueSize === void 0 ? 30 : _ref$valueSize,
    _ref$valueWeight = _ref.valueWeight,
    valueWeight = _ref$valueWeight === void 0 ? 600 : _ref$valueWeight,
    _ref$valueColor = _ref.valueColor,
    valueColor = _ref$valueColor === void 0 ? 'rgba(0, 0, 0, 0.85)' : _ref$valueColor;
  // 处理空值显示
  var displayValue = value !== null && value !== void 0 ? value : '-';
  return /*#__PURE__*/React.createElement("div", {
    className: "pisell-metric-card-value",
    style: {
      fontSize: typeof valueSize === 'number' ? "".concat(valueSize, "px") : valueSize,
      fontWeight: valueWeight,
      color: valueColor
    }
  }, displayValue);
};
export default MetricValue;