import{a2 as a,e,T as s,o as t,h as n,w as i,i as l,k as m,F as d,l as r,a as _,A as c,j as x,t as u,z as o}from"./index-WeUkftbp.js";import"./examineTab.vue_vue_type_style_index_0_scoped_b90844f4_lang.U5wAgJ5F.js";import{_ as p}from"./_plugin-vue_export-helper.BCo6x5W8.js";const b=p({__name:"examineTab",props:{examineTabData:{type:Array,default:()=>[]},index:{type:Number,default:-1}},emits:["change"],setup(p,{emit:b}){const f=p,{examineTabData:h,index:v}=a(f),y=e({tabIndex:0}),I=b;return s((()=>v),((a,e)=>{a.value>-1&&(y.tabIndex=a.value)}),{immediate:!0}),(a,e)=>{const s=o;return t(),n(s,{class:"examine-search plr10"},{default:i((()=>[l(s,{class:"examine-search-list"},{default:i((()=>[(t(!0),m(d,null,r(_(h),((a,e)=>(t(),n(s,{class:c(["examine-search-list-item",e===y.tabIndex?"active":""]),key:"tab"+a.id,onClick:s=>((a,e)=>{y.tabIndex=e,a.index=e,I("change",a)})(a,e)},{default:i((()=>[l(s,{class:"name"},{default:i((()=>[x(u(a.name),1)])),_:2},1024)])),_:2},1032,["class","onClick"])))),128))])),_:1})])),_:1})}}},[["__scopeId","data-v-b90844f4"]]);export{b as e};
