2 lines
1.1 KiB
JavaScript
2 lines
1.1 KiB
JavaScript
import{bw as I,d as i,k as c,r as p,a1 as C,bl as u,b7 as f,e as x,bm as a}from"./B565zvD7.js";const r=Symbol("ContextProps"),s=Symbol("InternalContextProps"),g=function(n){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:c(()=>!0);const e=p(new Map),t=(l,v)=>{e.value.set(l,v),e.value=new Map(e.value)},F=l=>{e.value.delete(l),e.value=new Map(e.value)};C([o,e],()=>{}),a(r,n),a(s,{addFormItemField:t,removeFormItemField:F})},m={id:c(()=>{}),onFieldBlur:()=>{},onFieldChange:()=>{},clearValidate:()=>{}},d={addFormItemField:()=>{},removeFormItemField:()=>{}},w=()=>{const n=u(s,d),o=Symbol("FormItemFieldKey"),e=f();return n.addFormItemField(o,e.type),x(()=>{n.removeFormItemField(o)}),a(s,d),a(r,m),u(r,m)},S=i({compatConfig:{MODE:3},name:"AFormItemRest",setup(n,o){let{slots:e}=o;return a(s,d),a(r,m),()=>{var t;return(t=e.default)===null||t===void 0?void 0:t.call(e)}}}),b=I({}),K=i({name:"NoFormStatus",setup(n,o){let{slots:e}=o;return b.useProvide({}),()=>{var t;return(t=e.default)===null||t===void 0?void 0:t.call(e)}}});export{S as F,K as N,b as a,g as b,w as u};
|