"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),m=require("element-plus"),i=new WeakMap,v=(...o)=>{var n;const r=o[0],l=(n=e.getCurrentInstance())==null?void 0:n.proxy;if(l==null)throw new Error("injectLocal must be called in setup");return i.has(l)&&r in i.get(l)?i.get(l)[r]:e.inject(...o)};typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const b=Symbol("FORM_PROVIDER_CONTEXT"),C=()=>v(b),h=e.defineComponent({name:"FsFormItem",inheritAttrs:!0,__name:"FsFormItem",props:{prop:{},label:{},labelWidth:{},required:{type:Boolean},rules:{},error:{},validateStatus:{},for:{},inlineMessage:{},showMessage:{type:Boolean},size:{}},setup(o){const n=o,r=e.useSlots(),l=C(),u=t=>({props:{validateEvent:!1,error:t.errors[0]}}),[a,d]=l.defineField(n.prop,u);function c(){return r.default?r.default():null}const f=(()=>{let t=c();return t?(Array.isArray(t)||(t=[t]),t[0]):void 0})();return(t,s)=>(e.openBlock(),e.createBlock(e.unref(m.ElFormItem),e.mergeProps({label:t.label,"label-width":t.labelWidth,size:t.size,"validate-status":t.validateStatus,required:t.required},e.unref(d)),{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(f)),{modelValue:e.unref(a),"onUpdate:modelValue":s[0]||(s[0]=p=>e.isRef(a)?a.value=p:null)},null,8,["modelValue"]))]),_:1},16,["label","label-width","size","validate-status","required"]))}});exports.default=h;
//# sourceMappingURL=FsFormItem.js.map
