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