import{d as s,r as a,a2 as l,o as t,h as e,w as o,i as n,k as i,l as d,a as r,F as c,W as p,z as u,A as m,j as _,t as f,y as k}from"./index-DXvjTqMr.js";import{_ as w}from"./_plugin-vue_export-helper.BCo6x5W8.js";const x=w(s({__name:"dropDown",props:{listData:{default:[]},fixRight:{default:"36rpx"}},emits:["btnClick"],setup(s,{expose:w,emit:x}){const b=a(!1),g=()=>{b.value=!1},h=x;w({openDropdown:()=>{b.value=!0},closeDropdown:g});const y=s,{listData:C,fixRight:D}=l(y);return(s,a)=>{const l=u,w=k;return t(),e(l,{class:"drop-down",onClick:g,style:p({display:r(b)?"block":"none","--right":r(D)})},{default:o((()=>[n(l,{class:"modal-ang"}),n(l,{class:"drop-down-list"},{default:o((()=>[(t(!0),i(c,null,d(r(C),((s,a)=>(t(),e(l,{class:"drop-down-list-item",key:"meus"+a,onClick:a=>(s=>{h("btnClick",s)})(s)},{default:o((()=>[n(w,{class:m(["iconfont",s.icon])},null,8,["class"]),n(w,null,{default:o((()=>[_(f(s.table_name?"新建":"")+f(s.name||s.table_name),1)])),_:2},1024)])),_:2},1032,["onClick"])))),128))])),_:1})])),_:1},8,["style"])}}}),[["__scopeId","data-v-69792f0e"]]);export{x as d};
