1 |
- import{u as y}from"./use-response-handle.a7e28e5a.js";import{q as a,n as g,v,x as T,w as h,j as w}from"./index.6ca3d92f.js";function R(s){const e=a({}),i=y(),o=a(null),c=a(!1),u=g().emit,p=()=>w(o).$el.getBoundingClientRect().y;async function l(){const{api:t,prop:r,value:n}=s,{code:f,message:d,data:m}=await t({[r]:Array.isArray(n)?n[0]:n});i({code:f,message:d,handler:()=>e.value=m})}return v(()=>l()),T(()=>e.value,()=>setTimeout(()=>{const t={top:p()-134,title:s.title};h(()=>u("map-offset-top",t))},100)),{defaultRef:o,hidden:c,data:e}}const S={api:{type:Function},prop:{type:String},value:{type:[String,Array]},title:{type:String}};export{S as d,R as u};
|