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