import React from 'react';
import ProField from '../../../wau-field';
import { runFunction } from '../../../utils';
import createField from '../../create-field';
import { jsx as _jsx } from "react/jsx-runtime";
/**
 * 文本选择组件
 *
 * @param
 */
const ProFormSelect = /*#__PURE__*/React.forwardRef(({
  fieldProps,
  children,
  proFieldProps,
  mode,
  valueEnum,
  request,
  showSearch,
  options
}, ref) => {
  return /*#__PURE__*/_jsx(ProField, {
    mode: "edit",
    valueEnum: runFunction(valueEnum),
    request: request,
    valueType: "select",
    fieldProps: {
      options,
      mode,
      showSearch,
      ...fieldProps
    },
    ref: ref,
    ...proFieldProps,
    children: children
  });
});
export default createField(ProFormSelect, {
  customLightMode: true
});