From 32a7dc875d4c556e373454d76832d9eb072cd8cc Mon Sep 17 00:00:00 2001 From: KUN1007 Date: Wed, 22 Nov 2023 20:14:16 +0800 Subject: [PATCH] feat: AsideBase item --- .../topic/aside/components/AsideBase.vue | 25 ++++++++++++++----- src/views/topic/components/Bar.vue | 6 ++--- 2 files changed, 21 insertions(+), 10 deletions(-) diff --git a/src/views/topic/aside/components/AsideBase.vue b/src/views/topic/aside/components/AsideBase.vue index 81e3dc19..c8fa1a09 100644 --- a/src/views/topic/aside/components/AsideBase.vue +++ b/src/views/topic/aside/components/AsideBase.vue @@ -4,8 +4,15 @@ import { Icon } from '@iconify/vue' import { useTempReplyStore } from '@/store/temp/topic/reply' import { storeToRefs } from 'pinia' +import { asideItem } from './asideItem' + const { isScrollToTop, replyRequest } = storeToRefs(useTempReplyStore()) +const handleSortReply = (sortField: string) => { + useTempReplyStore().resetPageStatus() + replyRequest.value.sortField = sortField +} + const orderAscending = () => { useTempReplyStore().resetPageStatus() replyRequest.value.sortOrder = 'asc' @@ -27,6 +34,13 @@ const handleBackToTop = () => { appear >
+ + + @@ -47,23 +61,22 @@ const handleBackToTop = () => { justify-content: center; align-items: center; color: var(--kungalgame-font-color-3); + span { margin-top: 20px; - transition: all 0.2s; + &:hover { + transition: color 0.2s; color: var(--kungalgame-blue-4); - margin-top: 25px; - } - &:active { - transition: 0.1s; - margin-top: 15px; } + &:last-child { margin-top: 50px; } } .sort { color: var(--kungalgame-blue-4); + &:hover { color: var(--kungalgame-red-4); } diff --git a/src/views/topic/components/Bar.vue b/src/views/topic/components/Bar.vue index 984109e2..463ffd89 100644 --- a/src/views/topic/components/Bar.vue +++ b/src/views/topic/components/Bar.vue @@ -10,9 +10,7 @@ const { isScrollToTop } = storeToRefs(useTempReplyStore()) @@ -26,7 +24,7 @@ const { isScrollToTop } = storeToRefs(useTempReplyStore()) display: flex; flex-direction: column; } -.sort, + .top { display: flex; flex-direction: column;