import e from"../../../_util/vue-types/index.mjs";import{computed as t,createVNode as n,defineComponent as r,ref as i,watch as a}from"vue";var o=r({compatConfig:{MODE:3},name:`ATabPane`,inheritAttrs:!1,__ANT_TAB_PANE:!0,props:{tab:e.any,disabled:{type:Boolean},forceRender:{type:Boolean},closable:{type:Boolean},animated:{type:Boolean},active:{type:Boolean},destroyInactiveTabPane:{type:Boolean},prefixCls:{type:String},tabKey:{type:[String,Number]},id:{type:String}},slots:Object,setup(e,{attrs:r,slots:o}){let s=i(e.forceRender);a([()=>e.active,()=>e.destroyInactiveTabPane],()=>{e.active?s.value=!0:e.destroyInactiveTabPane&&(s.value=!1)},{immediate:!0});let c=t(()=>e.active?{}:e.animated?{visibility:`hidden`,height:0,overflowY:`hidden`}:{display:`none`});return()=>{let{prefixCls:t,forceRender:i,id:a,active:l,tabKey:u}=e;return n(`div`,{id:a&&`${a}-panel-${u}`,role:`tabpanel`,tabindex:l?0:-1,"aria-labelledby":a&&`${a}-tab-${u}`,"aria-hidden":!l,style:[c.value,r.style],class:[`${t}-tabpane`,l&&`${t}-tabpane-active`,r.class]},[(l||s.value||i)&&o.default?.()])}}});export{o as default};