"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
var _slider = _interopRequireDefault(require("../../../slider"));
var _createField = _interopRequireDefault(require("../../create-field"));
var _jsxRuntime = require("react/jsx-runtime");
/**
 * 文本选择组件
 *
 * @param
 */
const ProFormSlider = ({
  fieldProps,
  min,
  max,
  step,
  marks,
  vertical,
  range
}, ref) => {
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_slider.default, {
    min: min,
    max: max,
    step: step,
    marks: marks,
    vertical: vertical,
    range: range,
    ...fieldProps,
    ref: ref
  });
};
var _default = (0, _createField.default)( /*#__PURE__*/_react.default.forwardRef(ProFormSlider), {
  lightFilterLabelFormatter: value => {
    if (Array.isArray(value)) {
      return value.join('~');
    }
    return value;
  }
});
exports.default = _default;