"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 _wauField = _interopRequireDefault(require("../../../wau-field"));
var _utils = require("../../../utils");
var _createField = _interopRequireDefault(require("../../create-field"));
var _jsxRuntime = require("react/jsx-runtime");
/**
 * 文本选择组件
 *
 * @param
 */
const ProFormSelect = /*#__PURE__*/_react.default.forwardRef(({
  fieldProps,
  children,
  proFieldProps,
  mode,
  valueEnum,
  request,
  showSearch,
  options
}, ref) => {
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_wauField.default, {
    mode: "edit",
    valueEnum: (0, _utils.runFunction)(valueEnum),
    request: request,
    valueType: "select",
    fieldProps: {
      options,
      mode,
      showSearch,
      ...fieldProps
    },
    ref: ref,
    ...proFieldProps,
    children: children
  });
});
var _default = (0, _createField.default)(ProFormSelect, {
  customLightMode: true
});
exports.default = _default;