import{_ as t,aS as a,a9 as e,b as s,d as l,p as o,w as n,H as d,i,o as f,f as u,k as c,e as r,y as h,F as p,P as g,Q as _,t as m,C as b}from"./index-2PZN6pGH.js";const x=t({data:()=>({title:"createSelectorQuery",top:0,left:"0px",info:[]}),onReady(){this.getNodeInfo()},methods:{setPosition(){this.left=Math.random()*a(320)+"px",this.top=Math.random()*a(320)+"px",this.getNodeInfo()},getNodeInfo(){e().select(".target").boundingClientRect().exec((t=>{const a=t[0];if(a){const t=["left","right","top","bottom","width","height"],e=[];for(let s in t){let l=t[s];e.push({key:l,val:a[l]})}this.info=e}}))}}},[["render",function(t,a,e,x,y,k){const v=s(l("page-head"),d),I=g,C=_,N=i,w=b;return f(),o(N,null,{default:n((()=>[u(v,{title:y.title},null,8,["title"]),u(N,{class:"uni-padding-wrap uni-common-mt"},{default:n((()=>[u(N,{class:"movable block"},{default:n((()=>[u(C,null,{default:n((()=>[u(I,{class:"target",direction:"all",onChange:k.getNodeInfo},{default:n((()=>[c("Drag")])),_:1},8,["onChange"])])),_:1})])),_:1}),u(N,{class:"movable"},{default:n((()=>[u(N,{class:"info"},{default:n((()=>[(f(!0),r(p,null,h(y.info,((t,a)=>(f(),o(N,{key:a},{default:n((()=>[u(w,{class:"b"},{default:n((()=>[c(m(t.key),1)])),_:2},1024),u(w,{class:"span"},{default:n((()=>[c(m(t.val),1)])),_:2},1024)])),_:2},1024)))),128))])),_:1})])),_:1})])),_:1})])),_:1})}],["__scopeId","data-v-a693e515"]]);export{x as default};
