Skip to content

Commit c3bc789

Browse files
author
reco_luan
committed
fix: comment load animation
1 parent 3e10af6 commit c3bc789

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

components/Common.vue

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@
3434
<Password v-show="!isHasPageKey" :isPage="true" class="password-wrapper-in" key="in"></Password>
3535
<div :class="{ 'hide': !isHasPageKey }">
3636
<slot></slot>
37-
<Comments :isShowComments="shouldShowComments"/>
37+
<ModuleTransition delay=".48">
38+
<Comments v-show="recoShowModule" :isShowComments="shouldShowComments"/>
39+
</ModuleTransition>
3840
</div>
3941
</div>
4042
</div>
@@ -65,7 +67,9 @@
6567
<Password v-if="!isHasPageKey" :isPage="true"></Password>
6668
<div v-else>
6769
<slot></slot>
68-
<Comments :isShowComments="shouldShowComments"/>
70+
<ModuleTransition delay=".48">
71+
<Comments v-show="recoShowModule" :isShowComments="shouldShowComments"/>
72+
</ModuleTransition>
6973
</div>
7074
</div>
7175
</transition>
@@ -80,9 +84,13 @@ import Sidebar from '@theme/components/Sidebar'
8084
import { resolveSidebarItems } from '@theme/helpers/utils'
8185
import Password from '@theme/components/Password'
8286
import { setTimeout } from 'timers'
87+
import ModuleTransition from '@theme/components/ModuleTransition'
88+
import moduleTransitonMixin from '@theme/mixins/moduleTransiton'
8389
8490
export default {
85-
components: { Sidebar, Navbar, Password },
91+
mixins: [moduleTransitonMixin],
92+
93+
components: { Sidebar, Navbar, Password, ModuleTransition },
8694
8795
props: {
8896
sidebar: {

0 commit comments

Comments
 (0)