UNPKG

@uiw-admin/components

Version:
23 lines 800 B
import _extends from "@babel/runtime/helpers/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose"; var _excluded = ["option"]; import React from 'react'; import { Select } from 'uiw'; import { jsx as _jsx } from "react/jsx-runtime"; import { jsxs as _jsxs } from "react/jsx-runtime"; var FormSelect = _ref => { var { option } = _ref, others = _objectWithoutPropertiesLoose(_ref, _excluded); return /*#__PURE__*/_jsxs(Select, _extends({}, others, { children: [/*#__PURE__*/_jsx(Select.Option, { value: "", children: "\u8BF7\u9009\u62E9" }), option && option.map(opt => /*#__PURE__*/_jsx(Select.Option, { value: opt.value, children: opt.label }, opt.value))] })); }; export default FormSelect;