feat(ui): move music like/collect totals into action buttons

This commit is contained in:
root
2026-03-08 14:20:04 +08:00
parent 414d214fa9
commit e46cde6daa

View File

@@ -55,15 +55,6 @@
<span class="value">{{ music.releaseDate || '-' }}</span> <span class="value">{{ music.releaseDate || '-' }}</span>
</div> </div>
<div class="meta-item">
<span class="label">点赞数</span>
<span class="value">{{ music.likeCount ?? 0 }}</span>
</div>
<div class="meta-item">
<span class="label">收藏数</span>
<span class="value">{{ music.collectCount ?? 0 }}</span>
</div>
</div> </div>
<div class="music-actions"> <div class="music-actions">
@@ -80,7 +71,7 @@
@click="toggleCollect" @click="toggleCollect"
:icon="music.collected ? 'Star' : 'StarFilled'" :icon="music.collected ? 'Star' : 'StarFilled'"
> >
{{ music.collected ? '已收藏' : '收藏' }} {{ music.collected ? `已收藏 (${music.collectCount ?? 0})` : `收藏 (${music.collectCount ?? 0})` }}
</el-button> </el-button>
<el-button <el-button
@@ -88,7 +79,7 @@
@click="toggleLike" @click="toggleLike"
> >
<el-icon><component :is="music.liked ? 'Check' : 'Pointer'" /></el-icon> <el-icon><component :is="music.liked ? 'Check' : 'Pointer'" /></el-icon>
{{ music.liked ? '已点赞' : '点赞' }} {{ music.liked ? `已点赞 (${music.likeCount ?? 0})` : `点赞 (${music.likeCount ?? 0})` }}
</el-button> </el-button>
<el-button <el-button