"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../confirm-button/index.js");require("../../count-down-button/index.js");require("../../ellipsis/index.js");require("../../rich-text-editor/index.js");require("../index.js");const i=require("../../pro-form/index.js");require("../../pro-table/index.js");require("../../pro-descriptions/index.js");require("../../layout/index.js");require("../../page/index.js");require("../../guide/index.js");const u=require("element-plus"),d=require("../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isPlainObject.js"),m=require("../../pro-form/src/types.js"),f=e.defineComponent({name:"WetFormSelect",__name:"select",props:{...m.wetProFormItemProps,placeholder:String,formInputProps:{type:Object}},setup(n){const r=n,a=e.computed(()=>{var t;return(t=r.formInputProps)!=null&&t.options?r.formInputProps.options.map(o=>d.default(o)?o:{label:o,value:o,disabled:!1}):[]}),s=e.computed(()=>{const t={...r};return delete t.formInputProps,t}),c=e.computed(()=>r.placeholder?r.placeholder:`请选择${r.label}`);return(t,o)=>(e.openBlock(),e.createBlock(e.unref(i.WetProFormItem),e.normalizeProps(e.guardReactiveProps(s.value)),{default:e.withCtx(({modelValue:p})=>[e.createVNode(e.unref(u.ElSelect),e.normalizeProps(e.guardReactiveProps({...p,placeholder:c.value,...r.formInputProps})),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,l=>(e.openBlock(),e.createBlock(e.unref(u.ElOption),{label:l.label,value:l.value,key:`${l.value}`},null,8,["label","value"]))),128))]),_:2},1040)]),_:1},16))}});exports.default=f;
