import{_ as a,ad as e,aN as t,aO as s,aa as o,aP as l,aG as n,n as d,b as c,d as u,p as _,w as r,H as p,i as g,o as i,f as x,k as f,t as w,B as C,C as b,R as v}from"./index-2PZN6pGH.js";const m=a({data:()=>({title:"新页面",data:""}),computed:{...e(["colorIndex","colorList"]),...t(["currentColor"])},onLoad(a){a.data&&(this.data=a.data),s("postMsg",(a=>{o({content:`收到uni.$emit消息:${a.msg}`,showCancel:!1})}))},onUnload(){l("postMsg")},methods:{...n(["setColorIndex"]),navToNvue(){d({url:"new-nvue-page-1"})},navToVue(){d({url:"new-vue-page-2"})}}},[["render",function(a,e,t,s,o,l){const n=c(u("page-head"),p),d=b,m=g,I=v;return i(),_(m,{class:"root"},{default:r((()=>[x(n,{title:o.title},null,8,["title"]),x(m,{class:"page-body"},{default:r((()=>[x(m,{class:"new-page__text-box"},{default:r((()=>[x(d,{class:"new-page__text"},{default:r((()=>[f("从上个页面接收到参数："+w(o.data),1)])),_:1})])),_:1}),x(m,{class:"new-page__color",onClick:e[0]||(e[0]=e=>a.setColorIndex(a.colorIndex>1?0:a.colorIndex+1)),style:C({backgroundColor:a.currentColor})},{default:r((()=>[x(d,{class:"new-page__color-text"},{default:r((()=>[f("点击改变颜色")])),_:1})])),_:1},8,["style"]),x(m,{class:"new-page__text-box"},{default:r((()=>[x(d,{class:"new-page__text"},{default:r((()=>[f("点击上方色块使用vuex在页面之间进行通讯")])),_:1})])),_:1}),x(m,{class:"new-page__button"},{default:r((()=>[x(I,{class:"new-page__button-item",onClick:l.navToVue},{default:r((()=>[f("跳转VUE页面")])),_:1},8,["onClick"])])),_:1})])),_:1})])),_:1})}],["__scopeId","data-v-aba0a697"]]);export{m as default};
