fix<CollapseContainer>: v-show 才不会丢失目标容器 (#2584)

This commit is contained in:
luocong2016 2023-02-27 12:51:13 +08:00 committed by GitHub
parent f1678a7cc0
commit 491941e4c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@
{props.loading ? ( {props.loading ? (
<Skeleton active={props.loading} /> <Skeleton active={props.loading} />
) : ( ) : (
show.value && <div class={`${prefixCls}__body`}>{slots.default?.()}</div> <div class={`${prefixCls}__body`} v-show={show.value}>{slots.default?.()}</div>
)} )}
</CollapseTransition> </CollapseTransition>
</div> </div>