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