import{_ as a,r as e,aa as s,z as l,a6 as t,b as r,f as o,c,g as u,h as p,l as n,w as d,e as i,u as m,j as h,t as v,i as _,ab as f}from"./index-Cd7oqaqo.js";import{h as g}from"./headImg.D8PzAUux.js";import{l as y}from"./logo.Cf3Z9Qoj.js";import{n as x}from"./navTo.DuPDTCnN.js";/* empty css                                                               */const j=a({__name:"navBar",props:{searchWord:{type:String,default:""},type:{type:String,default:"home"},navName:{type:String,default:"肝胆相照临床病例库"}},emits:["changeWord"],setup(a,{emit:j}){const b=e(""),k=e(""),w=a,W=e("输入疾病名称、标题、作者搜索");s((()=>w.type),(a=>{}),{immediate:!0}),s((()=>w.searchWord),(a=>{k.value=a}));const I=()=>{x({url:"/pages/my/my"})},S=()=>{"home"==w.type?x({url:`/pages/search/search?keyWord=${k.value}`}):"caseTalk"==w.type&&x({url:`/pages/specialList/specialList?keyWord=${k.value}`})};return l((()=>{let a=t("userInfo");a&&a.avatar?b.value=a.avatar:b.value=g})),(e,s)=>{const l=_,t=r(c("up--image"),o),g=f,x=r(c("up-icon"),u);return p(),n(l,{class:"navbox"},{default:d((()=>[i(l,{class:"bg"}),i(l,{class:"namebox"},{default:d((()=>[i(l,{class:"logo"},{default:d((()=>[i(t,{src:m(y),width:"62rpx",height:"62rpx",radius:"50%"},null,8,["src"])])),_:1}),i(l,{class:"name"},{default:d((()=>[h(v(a.navName),1)])),_:1})])),_:1}),i(l,{class:"search"},{default:d((()=>[i(l,{class:"searchwrap"},{default:d((()=>[i(g,{type:"text",class:"ipt",modelValue:k.value,"onUpdate:modelValue":s[0]||(s[0]=a=>k.value=a),placeholder:W.value},null,8,["modelValue","placeholder"]),i(x,{name:"search",size:"26",color:"#999",onClick:S})])),_:1}),i(t,{src:b.value,onClick:I,mode:"widthFix",width:"62rpx",height:"62rpx",radius:"50%"},null,8,["src"])])),_:1})])),_:1})}}},[["__scopeId","data-v-4cf160a1"]]);export{j as n};
