fix<CollapseContainer>: v-show 才不会丢失目标容器 (#2584)
This commit is contained in:
parent
f1678a7cc0
commit
491941e4c5
|
|
@ -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>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue