import{_ as t,ay as e,G as l,aQ as a,b as i,d as o,p as s,w as n,i as c,h as f,o as u,f as r,k as d,t as b,C as p,Y as h}from"./index-2PZN6pGH.js";import{_ as g}from"./uni-nav-bar.Cm2pcZXB.js";import{_ as x}from"./uni-card.CpdfOoXJ.js";import{_}from"./uni-section.BISPxi99.js";const m=t({components:{},data:()=>({city:"北京"}),methods:{back(){e({delta:1})},showMenu(){l({title:"菜单"})},clickLeft(){l({title:"左侧按钮"})},search(){l({title:"搜索"})},showCity(){l({title:"选择城市"})},scan(){l({title:"扫码"})},confirm(){l({title:"搜索"})}},onPullDownRefresh(){console.log("onPullDownRefresh"),setTimeout((function(){a(),console.log("stopPullDownRefresh")}),1e3)}},[["render",function(t,e,l,a,m,y){const k=i(o("uni-nav-bar"),g),w=p,T=i(o("uni-card"),x),C=c,v=i(o("uni-section"),_),L=i(o("uni-icons"),f),j=h;return u(),s(C,{class:"container"},{default:n((()=>[r(k,{dark:"",fixed:!0,shadow:"","background-color":"#007AFF","status-bar":"","left-icon":"left","left-text":"返回",title:"自定义导航栏",onClickLeft:y.back},null,8,["onClickLeft"]),r(T,{"is-full":"",isShadow:!1},{default:n((()=>[r(w,{class:"uni-h6"},{default:n((()=>[d("本导航栏为自定义组件，并非原生导航栏。除非原生导航栏无法满足需求，否则不推荐使用自定义导航栏组件。具体参考https://ask.dcloud.net.cn/article/34921")])),_:1})])),_:1}),r(v,{title:"基本用法",subTitle:"使用 title 属性设置导航栏标题",type:"line",style:{"margin-bottom":"3px"}},{default:n((()=>[r(C,{class:"box-bg"},{default:n((()=>[r(k,{title:"标题"})])),_:1})])),_:1}),r(v,{title:"开启阴影",subTitle:"使用 shadow 属性启用阴影",type:"line",style:{"margin-bottom":"3px"}},{default:n((()=>[r(C,{class:"box-bg"},{default:n((()=>[r(k,{shadow:"","left-icon":"left",title:"开启阴影",onClickLeft:y.back},null,8,["onClickLeft"])])),_:1})])),_:1}),r(v,{title:"开启暗黑模式",subTitle:"使用 dark 属性设置暗黑模式",type:"line",style:{"margin-bottom":"3px"}},{default:n((()=>[r(C,{class:"box-bg"},{default:n((()=>[r(k,{shadow:"","left-icon":"left",dark:"",title:"暗黑模式",onClickLeft:y.back},null,8,["onClickLeft"])])),_:1})])),_:1}),r(v,{title:"带返回箭头+右侧图标",subTitle:"使用 left-icon/right-icon 设置左右图标",type:"line",style:{"margin-bottom":"3px"}},{default:n((()=>[r(C,{class:"box-bg"},{default:n((()=>[r(k,{shadow:"","left-icon":"left","right-icon":"cart",title:"标题"})])),_:1})])),_:1}),r(v,{title:"左侧文字+右侧文字",subTitle:"使用 left-text/right-text 设置左右文字",type:"line",style:{"margin-bottom":"3px"}},{default:n((()=>[r(C,{class:"box-bg"},{default:n((()=>[r(k,{shadow:"","left-icon":"left",leftText:"返回",rightText:"设置",title:"标题"})])),_:1})])),_:1}),r(v,{title:"自定义颜色",subTitle:"使用 color/background-color 属性设置前景背景色",type:"line",style:{"margin-bottom":"3px"}},{default:n((()=>[r(C,{class:"box-bg"},{default:n((()=>[r(C,{class:"box-bg"},{default:n((()=>[r(k,{dark:"",color:"#999",backgroundColor:"#f5f5f5",shadow:"","left-icon":"left",leftText:"返回",rightText:"设置",title:"自定义颜色"})])),_:1})])),_:1})])),_:1}),r(v,{title:"自定义高度",subTitle:"使用 height 修改组件高度",type:"line",style:{"margin-bottom":"3px"}},{default:n((()=>[r(C,{class:"box-bg"},{default:n((()=>[r(C,{class:"box-bg"},{default:n((()=>[r(k,{height:"65px",dark:"",shadow:"","left-icon":"left",leftText:"返回",rightText:"设置",title:"自定义高度"})])),_:1})])),_:1})])),_:1}),r(v,{title:"自定义内容",subTitle:"使用 left/right/default 插槽自定义内容",type:"line",style:{"margin-bottom":"3px"}},{default:n((()=>[r(C,{class:"box-bg"},{default:n((()=>[r(k,null,{left:n((()=>[r(C,{class:"city"},{default:n((()=>[r(C,null,{default:n((()=>[r(w,{class:"uni-nav-bar-text"},{default:n((()=>[d(b(m.city),1)])),_:1})])),_:1}),r(L,{type:"arrowdown",color:"#666",size:"18"})])),_:1})])),right:n((()=>[r(C,{class:"city"},{default:n((()=>[d(" 搜索 ")])),_:1})])),default:n((()=>[r(C,{class:"input-view"},{default:n((()=>[r(L,{class:"input-uni-icon",type:"search",size:"18",color:"#999"}),r(j,{"confirm-type":"search",class:"nav-bar-input",type:"text",placeholder:"输入搜索关键词",onConfirm:y.confirm},null,8,["onConfirm"])])),_:1})])),_:1})])),_:1})])),_:1})])),_:1})}],["__scopeId","data-v-bef1ddae"]]);export{m as default};
