import{c as a,r as e,y as s,t as l,g as o,o as t,v as r,N as u,B as m,e as c,x as n,F as p,b0 as d,ak as i,al as f,ab as V,a9 as _}from"./base-lib.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";const b=a({__name:"index",props:{compData:{default:()=>({name:"",options:[],selectList:[],request:()=>Promise.resolve({})})}},setup(a,{expose:b}){const v=a,g=e(),{request:x}=s(v.compData),{name:y,options:j}=l(v.compData),k=o(()=>j.value),q=t({classValue:""}),w={classValue:[{required:!0,message:"请选择分类",trigger:"change"}]};return b({onConfirm:async a=>{await g.value.validate(),await x({id:"all"===q.classValue?0:q.classValue},a)}}),(a,e)=>{const l=i,o=f,t=V,b=_;return r(),u(b,{ref_key:"setClassFormRef",ref:g,rules:w,model:s(q),class:"px-[2rem] pt-[2rem]"},{default:m(()=>[c(t,{label:s(y),prop:"classValue"},{default:m(()=>[c(o,{modelValue:s(q).classValue,"onUpdate:modelValue":e[0]||(e[0]=a=>s(q).classValue=a),class:"!w-[22rem]",placeholder:"请选择您的分类"},{default:m(()=>[(r(!0),n(p,null,d(s(k),(a,e)=>(r(),u(l,{key:e,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["model"])}}});export{b as default};
