import{useInjectTable as e}from"../context/TableContext.mjs";import t from"../Cell/index.mjs";import{useInjectExpandedRow as n}from"../context/ExpandedRowContext.mjs";import{createVNode as r,defineComponent as i}from"vue";var a=i({name:`ExpandedRow`,inheritAttrs:!1,props:[`prefixCls`,`component`,`cellComponent`,`expanded`,`colSpan`,`isEmpty`],setup(i,{slots:a,attrs:o}){let s=e(),{fixHeader:c,fixColumn:l,componentWidth:u,horizonScroll:d}=n();return()=>{let{prefixCls:e,component:n,cellComponent:f,expanded:p,colSpan:m,isEmpty:h}=i;return r(n,{class:o.class,style:{display:p?null:`none`}},{default:()=>[r(t,{component:f,prefixCls:e,colSpan:m},{default:()=>{let t=a.default?.();return(h?d.value:l.value)&&(t=r(`div`,{style:{width:`${u.value-(c.value?s.scrollbarSize:0)}px`,position:`sticky`,left:0,overflow:`hidden`},class:`${e}-expanded-row-fixed`},[t])),t}})]})}}});export{a as default};