import{d as e,s as a,r as l,o as t,a as o,b as r,h as s,e as p,f as c,H as u}from"./index-d052b22f-1780912037814v=1.0.0.js";import{g as d}from"./common-0c693521-1780912037814v=1.0.0.js";const n=e({name:"SportCascader"}),i=e({...n,props:{multiple:{type:Boolean,default:!0},checkStrictly:{type:Boolean,default:!1},placeholder:{type:String,required:!0},value:{type:Array,default:()=>[]}},emits:["update:value"],setup(e,{emit:n}){const i=e,m=n,h=a({get:()=>i.value,set(e){m("update:value",e?e[e.length-1]:e)}}),y={label:"name",value:"company_area_id",children:"next",multiple:i.multiple,checkStrictly:i.checkStrictly},v=l([]);return t((()=>{(async()=>{let e=await d({page:1,size:1e3});v.value=e.data})()})),(a,l)=>{const t=o("el-cascader");return r(),s("div",null,[p(t,{placeholder:e.placeholder,props:y,options:c(v),clearable:!0,modelValue:c(h),"onUpdate:modelValue":l[0]||(l[0]=e=>u(h)?h.value=e:null),style:{width:"100%"}},null,8,["placeholder","options","modelValue"])])}}});export{i as _};
