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