import{d as k,r as C,k as h,ai as t,o as s,M as p,O as a,U as d,c as y,a8 as B,S as _,T as i,F as T,a as N,a2 as S}from"./vue.adf17aba.js";import{_ as F}from"./_plugin-vue_export-helper.c27b6911.js";const L=k({__name:"index",props:{modelValue:{},options:{}},emits:["update:modelValue","change"],setup(u,{emit:m}){const r=u,n=C(r.modelValue),c=m,w=h(()=>{const e=r.options.find(o=>o.value===n.value);return e?e.label?e.label:n.value:""}),f=e=>{if(e===n.value)return;const o=n.value;n.value=e,c("update:modelValue",e),c("change",e,o)};return(e,o)=>{const v=t("arrow-down"),b=t("el-icon"),x=t("el-dropdown-item"),V=t("el-dropdown-menu"),g=t("el-dropdown");return s(),p(g,{class:"el-dropdown-link",onCommand:f,trigger:"click",placement:"bottom-start"},{dropdown:a(()=>[d(V,{class:"dropdown-menu-scroll"},{default:a(()=>[(s(!0),y(T,null,B(e.options,l=>(s(),p(x,{command:l.value,disabled:l.disabled},{default:a(()=>[_(i(l.label),1)]),_:2},1032,["command","disabled"]))),256))]),_:1})]),default:a(()=>[N("span",{onClick:o[0]||(o[0]=S(()=>{},["stop"]))},[_(i(w.value)+" ",1),d(b,null,{default:a(()=>[d(v)]),_:1})])]),_:1})}}});const E=F(L,[["__scopeId","data-v-7ccd442a"]]);export{E as T};
