import{_ as t,ao as a,aJ as e,b as s,d as l,p as i,w as n,H as o,i as f,o as h,f as d,k as u,R as p}from"./index-2PZN6pGH.js";const r=t({data:()=>({title:"nav-default",hasSetText:!1,hasSetBg:!1}),methods:{setText(){this.hasSetText=!this.hasSetText,a({title:this.hasSetText?"Hello uni-app":"默认导航栏"})},setBg(){this.hasSetBg=!this.hasSetBg,e({frontColor:this.hasSetBg?"#ffffff":"#000000",backgroundColor:this.hasSetBg?"#007AFF":"#F8F8F8"})}}},[["render",function(t,a,e,r,c,g){const x=s(l("page-head"),o),S=f,B=p;return h(),i(S,{class:"page"},{default:n((()=>[d(x,{title:c.title},null,8,["title"]),d(S,{class:"uni-padding-wrap"},{default:n((()=>[d(S,{class:"uni-helllo-text"},{default:n((()=>[u(" 本页标题栏是uni-app的默认配置，开发者可在pages.json里配置文字内容及标题颜色，也可通过api接口将其改变。 ")])),_:1}),d(S,{class:"uni-btn-v"},{default:n((()=>[d(B,{type:"default",onClick:g.setText},{default:n((()=>[u("改变标题栏文字")])),_:1},8,["onClick"]),d(B,{type:"primary",onClick:g.setBg},{default:n((()=>[u("改变标题栏颜色")])),_:1},8,["onClick"])])),_:1})])),_:1})])),_:1})}]]);export{r as default};
