diff --git a/src/components/setting-panel/KUNGalgameSettingPanel.vue b/src/components/setting-panel/KUNGalgameSettingPanel.vue index c18c8b0c..41c90793 100644 --- a/src/components/setting-panel/KUNGalgameSettingPanel.vue +++ b/src/components/setting-panel/KUNGalgameSettingPanel.vue @@ -146,9 +146,6 @@ const handleClose = () => { span { display: flex; align-items: center; - &:nth-child(2) { - cursor: pointer; - } } } // 使设置按钮保持旋转 diff --git a/src/views/Home/content/aside/components/Aside.vue b/src/views/Home/content/aside/components/Aside.vue index e1be66db..51e1d8c2 100644 --- a/src/views/Home/content/aside/components/Aside.vue +++ b/src/views/Home/content/aside/components/Aside.vue @@ -18,6 +18,7 @@ import asideItem from '../aside-item' flex-direction: column; justify-content: space-around; align-items: center; + border: 1px solid @kungalgame-blue-4; span { width: 100%; height: 100%; @@ -28,6 +29,10 @@ import asideItem from '../aside-item' /* 文字竖直显示 */ writing-mode: vertical-rl; text-orientation: upright; + border-top: 1px solid @kungalgame-blue-4; + &:first-child { + border-top: none; + } a { width: 100%; height: 100%; @@ -36,6 +41,7 @@ import asideItem from '../aside-item' align-items: center; color: @kungalgame-blue-5; &:hover { + transition: 0.2s; background-color: @kungalgame-trans-blue-2; } } diff --git a/src/views/Home/content/aside/topic/Topic.vue b/src/views/Home/content/aside/topic/Topic.vue index e60f3357..62932ee0 100644 --- a/src/views/Home/content/aside/topic/Topic.vue +++ b/src/views/Home/content/aside/topic/Topic.vue @@ -1,5 +1,5 @@ @@ -11,7 +11,7 @@ import singleTopic from './topic'
今日热门话题
- + diff --git a/src/views/Home/content/aside/topic/components/SingleHotTopic.vue b/src/views/Home/content/aside/topic/components/SingleHotTopic.vue new file mode 100644 index 00000000..6c5bd27f --- /dev/null +++ b/src/views/Home/content/aside/topic/components/SingleHotTopic.vue @@ -0,0 +1,73 @@ + + + + + diff --git a/src/views/Home/content/aside/topic/components/SingleTopic.vue b/src/views/Home/content/aside/topic/components/SingleNewTopic.vue similarity index 83% rename from src/views/Home/content/aside/topic/components/SingleTopic.vue rename to src/views/Home/content/aside/topic/components/SingleNewTopic.vue index 6469a92f..83f0f724 100644 --- a/src/views/Home/content/aside/topic/components/SingleTopic.vue +++ b/src/views/Home/content/aside/topic/components/SingleNewTopic.vue @@ -2,19 +2,21 @@ import { Icon } from '@iconify/vue' const props = defineProps(['data']) -console.log(props) +const { title, isHotTopic, value, time } = props.data diff --git a/src/views/Home/content/aside/topic/topic.ts b/src/views/Home/content/aside/topic/topic.ts index 63367879..b7a53109 100644 --- a/src/views/Home/content/aside/topic/topic.ts +++ b/src/views/Home/content/aside/topic/topic.ts @@ -3,8 +3,9 @@ interface topic { router: string data: { title: string - icon: boolean - value: number + isHotTopic: boolean + value?: number + time?: string } } @@ -15,8 +16,9 @@ const singleTopic: topic[] = [ data: { title: '啊这可海星啊这可海星啊这可海星啊这可海星啊这可海星啊这可海星啊这可海星啊这可海星啊这可海星啊这可海星啊这可海星啊这可海星啊这可海星啊这可海星啊这可海星啊这可海星啊这可海星啊这可海星', - icon: true, + isHotTopic: true, value: 1007, + time: '1小时前', }, }, { @@ -24,8 +26,9 @@ const singleTopic: topic[] = [ router: '/topic', data: { title: '啊这可海星', - icon: true, + isHotTopic: true, value: 1007, + time: '10小时前', }, }, { @@ -33,8 +36,9 @@ const singleTopic: topic[] = [ router: '/topic', data: { title: '啊这可海星', - icon: true, + isHotTopic: true, value: 1007, + time: '1天前', }, }, { @@ -42,8 +46,9 @@ const singleTopic: topic[] = [ router: '/topic', data: { title: '啊这可海星', - icon: true, + isHotTopic: true, value: 1007, + time: '1小时前', }, }, { @@ -51,8 +56,9 @@ const singleTopic: topic[] = [ router: '/topic', data: { title: '啊这可海星', - icon: true, + isHotTopic: true, value: 1007, + time: '1小时前', }, }, { @@ -60,8 +66,9 @@ const singleTopic: topic[] = [ router: '/topic', data: { title: '啊这可海星', - icon: true, + isHotTopic: true, value: 1007, + time: '1小时前', }, }, { @@ -69,8 +76,9 @@ const singleTopic: topic[] = [ router: '/topic', data: { title: '啊这可海星', - icon: true, + isHotTopic: true, value: 1007, + time: '1小时前', }, }, { @@ -78,8 +86,9 @@ const singleTopic: topic[] = [ router: '/topic', data: { title: '啊这可海星', - icon: true, + isHotTopic: true, value: 1007, + time: '1小时前', }, }, { @@ -87,8 +96,9 @@ const singleTopic: topic[] = [ router: '/topic', data: { title: '啊这可海星', - icon: true, + isHotTopic: true, value: 1007, + time: '1小时前', }, }, { @@ -96,8 +106,9 @@ const singleTopic: topic[] = [ router: '/topic', data: { title: '啊这可海星', - icon: true, + isHotTopic: true, value: 1007, + time: '1小时前', }, }, ]