Commit 8e5e71c0 authored by nick zheng's avatar nick zheng

chore: 应用分享页消息列表滚动置底调整

parent 8c09d74f
...@@ -83,12 +83,28 @@ function handleScrollToBottom() { ...@@ -83,12 +83,28 @@ function handleScrollToBottom() {
<ContinueQuestion :continuous-question-list="continuousQuestionList" /> <ContinueQuestion :continuous-question-list="continuousQuestionList" />
</div> </div>
<div <Transition name="back-bottom-btn" mode="out-in">
v-show="visible" <div
class="flex-center hover:text-theme-color absolute bottom-5 right-5 h-6 w-6 cursor-pointer rounded-full bg-white shadow-[0_0_0_1px_#ededed]" v-show="visible"
@click.stop="clickBackBottom" class="flex-center hover:text-theme-color absolute bottom-5 right-5 h-6 w-6 cursor-pointer rounded-full bg-white shadow-[0_0_0_1px_#ededed]"
> @click.stop="clickBackBottom"
<i class="iconfont icon-left rotate-270 text-sm" /> >
</div> <i class="iconfont icon-huidaodibu text-sm" />
</div>
</Transition>
</main> </main>
</template> </template>
<style lang="scss" scoped>
.back-bottom-btn-enter-active,
.back-bottom-btn-leave-active {
transition-timing-function: ease-in-out;
transition-duration: 0.2s;
transition-property: opacity;
}
.back-bottom-btn-enter-from,
.back-bottom-btn-leave-to {
opacity: 0;
}
</style>
...@@ -81,9 +81,11 @@ function handleScrollToBottom() { ...@@ -81,9 +81,11 @@ function handleScrollToBottom() {
<ContinueQuestion v-model:continuous-question-list="continuousQuestionList" :type="'continuous'" /> <ContinueQuestion v-model:continuous-question-list="continuousQuestionList" :type="'continuous'" />
</div> </div>
<div v-show="visible" class="back-bottom-btn" @click.stop="clickBackBottom"> <Transition name="back-bottom-btn" mode="out-in">
<i class="iconfont icon-left back-bottom-btn-icon" /> <div v-show="visible" class="back-bottom-btn" @click.stop="clickBackBottom">
</div> <i class="iconfont icon-huidaodibu back-bottom-btn-icon" />
</div>
</Transition>
</main> </main>
</template> </template>
...@@ -99,8 +101,20 @@ function handleScrollToBottom() { ...@@ -99,8 +101,20 @@ function handleScrollToBottom() {
@apply flex-center hover:text-theme-color absolute bottom-[20px] right-[20px] h-[24px] w-[24px] cursor-pointer rounded-full bg-white shadow-[0_0_0_1px_#ededed]; @apply flex-center hover:text-theme-color absolute bottom-[20px] right-[20px] h-[24px] w-[24px] cursor-pointer rounded-full bg-white shadow-[0_0_0_1px_#ededed];
&-icon { &-icon {
@apply rotate-270 text-[14px]; @apply text-[14px];
} }
} }
} }
.back-bottom-btn-enter-active,
.back-bottom-btn-leave-active {
transition-timing-function: ease-in-out;
transition-duration: 0.2s;
transition-property: opacity;
}
.back-bottom-btn-enter-from,
.back-bottom-btn-leave-to {
opacity: 0;
}
</style> </style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment