import{P as r}from"./index-32f2e5af.js";import{d,O as m,o as c,w as u,g as l,B as s,h as t,F as i}from"./index-123c6a88.js";const v=d({name:"drop-down-modal",props:{selectValues:{type:[String,Number],default:null},columns:{type:Array,default:()=>[]},open:{type:Boolean,default:!1}},emits:["dropDownClose","dropDownConfirm"],setup(e,{emit:a}){const o=m({values:[]});return c(()=>{o.values=[e.selectValues]}),u(()=>e.selectValues,()=>{o.values=[e.selectValues]}),u(()=>e.open,()=>{setTimeout(()=>{o.values=[e.selectValues]},100)}),()=>l(i,null,[l(r,{modelValue:o.values,"onUpdate:modelValue":n=>o.values=n,showToolbar:!1,visibleOptionNum:5,columns:e.columns},null),l("div",{class:["btnGroupPopup","van-hairline--top"]},[l(s,{round:!0,onClick:()=>a("dropDownClose")},{default:()=>[t("取消")]}),l(s,{type:"primary",round:!0,onClick:()=>{a("dropDownConfirm",o.values)}},{default:()=>[t("确定")]})])])}});export{v as D};
