import{_ as a,aZ as e,a_ as t,b as l,d as s,p as n,w as c,H as o,i,o as u,f as d,k as r,R as p,E as m}from"./index-2PZN6pGH.js";const f=a({data:()=>({title:"onAccelerometerChange",value:""}),onUnload(){e()},methods:{watchAcce(){t((a=>{this.value="监听设备的加速度变化:\nX轴："+a.x.toFixed(2)+"\nY轴："+a.y.toFixed(2)+"\nZ轴："+a.z.toFixed(2)}))},stopAcce(){e()}}},[["render",function(a,e,t,f,_,h){const v=l(s("page-head"),o),x=p,k=i,w=m;return u(),n(k,null,{default:c((()=>[d(v,{title:_.title},null,8,["title"]),d(k,{class:"uni-padding-wrap uni-common-mt"},{default:c((()=>[d(k,{class:"uni-btn-v"},{default:c((()=>[d(x,{type:"primary",onClick:h.watchAcce},{default:c((()=>[r("监听设备的加速度变化")])),_:1},8,["onClick"]),d(x,{type:"primary",onClick:h.stopAcce},{default:c((()=>[r("停止监听设备的加速度变化")])),_:1},8,["onClick"])])),_:1}),d(k,{class:"uni-textarea uni-common-mt"},{default:c((()=>[d(w,{class:"acc-show",value:_.value},null,8,["value"])])),_:1})])),_:1})])),_:1})}],["__scopeId","data-v-31e3c7e6"]]);export{f as default};
