"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),d=require("../symbol.js"),c=require("../types.js"),i=t.defineComponent({name:"WetFormDependency",props:c.wetFormItemDependencyProps,setup(r){const l=t.useSlots(),{setFieldsValue:n,getFieldsValue:u}=t.inject(d.SymbolState),s=t.computed(()=>{if(r.relyprops.length===0)return[];const e=[];return r.relyprops.forEach(o=>{e.push(u(o))}),r.relyprops.length>1?e:e[0]}),a=t.ref({});return t.watch(s,e=>{e!==void 0&&r.dependencyChange&&(a.value=r.dependencyChange({relyValues:e,setValue:n,getValue:u}))},{immediate:!0,deep:!0}),()=>l.default&&l.default({relyValue:s.value,setValue:n,getValue:u,parames:a.value})}});exports.default=i;
