import{d,l as y,r as v,C as h,a as S,o as b,c as k,b as C,u,m as w,_ as x}from"./index-8184dd63-1780045603901v=1.0.0.js";import{b as B}from"./tagManage-1b66d64b-1780045603901v=1.0.0.js";const V=d({name:"SportCascader"}),j=d({...V,props:{multiple:{type:Boolean,default:!0},checkStrictly:{type:Boolean,default:!1},placeholder:{type:String,required:!0},type:{type:String,default:"event_activity_plan_project_kind"},value:{type:Array,default:()=>[]}},emits:["update:value"],setup(s,{emit:_}){const t=s,m=_,o=y({get(){return t.value,t.value},set(a){m("update:value",a)}}),f={multiple:t.multiple,checkStrictly:t.checkStrictly},n=v([]),g=async()=>{let a={page:1,size:1e3,type:t.type,is_show_tag_id:1},l=await B(a),r=[];l.data.list.map(e=>{let p={label:e.name,value:e.tag_group_id,leaf:!1,children:[]},c=[];e.tag_id_arr&&e.tag_id_arr.length>0&&e.tag_id_arr.map(i=>{c.push({label:i.tag_id_str,value:i.tag_id})}),p.children=c,r.push(p)}),n.value=r};return h(()=>{g()}),(a,l)=>{const r=S("el-cascader");return b(),k("div",null,[C(r,{placeholder:s.placeholder,props:f,options:u(n),filterable:!0,clearable:!0,"show-all-levels":!1,modelValue:u(o),"onUpdate:modelValue":l[0]||(l[0]=e=>w(o)?o.value=e:null),style:{width:"100%"}},null,8,["placeholder","options","modelValue"])])}}}),N=x(j,[["__file","D:/desktop/yunNan/vue-area-submit/src/components/SportCascader/index.vue"]]);export{N as S};
