fix(card):Prevent the skeleton from unmounting the card sub-component.

pull/7972/head
liruixaing 2024-12-09 09:35:21 +08:00
parent 4a37016f4e
commit 64a81f86ed
1 changed files with 2 additions and 1 deletions

View File

@ -174,7 +174,8 @@ const Card = defineComponent({
const coverDom = cover ? <div class={`${pre}-cover`}>{cover}</div> : null;
const body = (
<div class={`${pre}-body`} style={bodyStyle}>
{loading ? loadingBlock : children}
<div v-show={loading}>{loadingBlock}</div>
<div v-show={!loading}>{children}</div>
</div>
);
const actionDom =