Commit 491941e4c5d90681a52403a800099912ec42b9a0

Authored by luocong2016
Committed by GitHub
1 parent f1678a7c

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

src/components/Container/src/collapse/CollapseContainer.vue
... ... @@ -73,7 +73,7 @@
73 73 {props.loading ? (
74 74 <Skeleton active={props.loading} />
75 75 ) : (
76   - show.value && <div class={`${prefixCls}__body`}>{slots.default?.()}</div>
  76 + <div class={`${prefixCls}__body`} v-show={show.value}>{slots.default?.()}</div>
77 77 )}
78 78 </CollapseTransition>
79 79 </div>
... ...