import e from"../../vc-select/hooks/useBaseProps.mjs";import t from"../../_util/hooks/useState.mjs";import{useInjectCascader as n}from"../context.mjs";import{watch as r}from"vue";var i=()=>{let i=e(),{values:a}=n(),[o,s]=t([]);return r(()=>i.open,()=>{if(i.open&&!i.multiple){let e=a.value[0];s(e||[])}},{immediate:!0}),[o,s]};export{i as default};