import{_ as a,ad as e,n as t,ay as n,aK as l,al as i,aL as o,aM as s,G as c,b as u,d,p as r,w as g,H as p,i as f,o as k,f as m,k as v,v as C,R as w}from"./index-2PZN6pGH.js";const h="/pages/extUI/calendar/calendar";const _=a({data:()=>({title:"navigate"}),computed:{...e({hasLeftWin:a=>!a.noMatchLeftWindow})},methods:{navigateTo(){t({url:"new-page/new-vue-page-1?data=Hello"})},navigateBack(){n()},redirectTo(){l({url:"new-page/new-vue-page-1"})},switchTab(){i({url:"/pages/tabBar/template/template"})},reLaunch(){this.hasLeftWin?o({url:"/pages/component/view/view"}):o({url:"/pages/tabBar/component/component"})},customAnimation(){t({url:"new-page/new-vue-page-1?data=使用自定义动画打开页面",animationType:"slide-in-bottom",animationDuration:200})},preloadPage(){s({url:h,success(){c({title:"页面预载成功"})},fail(){c({title:"页面预载失败"})}})},unPreloadPage(){uni.unPreloadPage({url:h})},navigateToPreloadPage(){t({url:h})}}},[["render",function(a,e,t,n,l,i){const o=u(d("page-head"),p),s=w,c=f;return k(),r(c,null,{default:g((()=>[m(o,{title:l.title},null,8,["title"]),m(c,{class:"uni-padding-wrap uni-common-mt"},{default:g((()=>[m(c,{class:"uni-btn-v"},{default:g((()=>[m(s,{onClick:i.navigateTo},{default:g((()=>[v("跳转新页面，并传递数据")])),_:1},8,["onClick"]),m(s,{onClick:i.navigateBack},{default:g((()=>[v("返回上一页")])),_:1},8,["onClick"]),m(s,{onClick:i.redirectTo},{default:g((()=>[v("在当前页面打开")])),_:1},8,["onClick"]),m(s,{onClick:i.switchTab},{default:g((()=>[v("切换到模板选项卡")])),_:1},8,["onClick"]),a.hasLeftWin?C("",!0):(k(),r(s,{key:0,onClick:i.reLaunch},{default:g((()=>[v("关闭所有页面，打开首页")])),_:1},8,["onClick"])),m(s,{onClick:i.preloadPage},{default:g((()=>[v("预载复杂页面")])),_:1},8,["onClick"]),m(s,{onClick:i.navigateToPreloadPage},{default:g((()=>[v("打开复杂页面")])),_:1},8,["onClick"])])),_:1})])),_:1})])),_:1})}]]);export{_ as default};
