Skip to content

Commit

Permalink
chore: optimize picture display
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangmo8 committed May 23, 2022
1 parent eb9a019 commit f36f38c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/varlet-cli/site/pc/components/LogoAnimation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,16 @@ export default defineComponent({
</script>

<template>
<Teleport :to="animationEl" v-if="animationEl">
<Teleport :to="animationEl || 'body'">
<img
v-show="!floatingState"
v-bind="animationBoxData.attrs"
:style="styles"
:src="logo"
alt="logo"
v-if="logo && animationEl"
v-if="logo"
class="varlet-cli-logo-animation"
:class="{ 'varlet-cli-logo-position': !animationEl }"
/>
</Teleport>
<div v-show="floatingState">
Expand All @@ -93,7 +94,7 @@ export default defineComponent({
:style="styles"
:src="logo"
alt="logo"
v-if="logo && animationEl"
v-if="logo"
class="varlet-cli-logo-animation varlet-cli-logo-position varlet-cli-logo-transition"
/>
</div>
Expand Down

0 comments on commit f36f38c

Please sign in to comment.