import{g}from"./eventListApi-caa95bfe-1782729249161v=1.0.0.js";import{E as l}from"./eleVendor-5008d1ec-1782729249161v=1.0.0.js";import{y as d,c as f,r as _,al as E,z as B,I as h,u as C,k as D}from"./vendor-1e24e3ad-1782729249161v=1.0.0.js";const y=d({__name:"EventSelect",props:{value:{default:()=>""}},emits:["update:value"],setup(r,{emit:c}){const p=r,m=c,n=f({get(){return p.value},set(t){m("update:value",t)}}),v=t=>{},s=_([]),i=async(t,a,o)=>{try{const e=await g({page:a.page,size:10,name:t,eventId:o});if(e.code==0)return s.value=e.data.listData.map(u=>({label:u.name,value:u.eventId})),[s.value,e.data.total];s.value=[],l.warning(e.msg)}catch{l.warning("\u83B7\u53D6\u8D5B\u4E8B\u5217\u8868\u5931\u8D25")}};return(t,a)=>{const o=E("PageSelect");return B(),h(o,{ref:"pageSelectRef",onChange:v,value:C(n),"onUpdate:value":a[0]||(a[0]=e=>D(n)?n.value=e:null),"remote-method":i},null,8,["value"])}}});export{y as _};
