Skip to content

Commit

Permalink
fix(tracklist): TrackListItem 序号问题 (qier222#2011)
Browse files Browse the repository at this point in the history
  • Loading branch information
pingProg committed Apr 14, 2023
1 parent 063a505 commit 9f34ec9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/components/TrackList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
v-for="(track, index) in tracks"
:key="itemKey === 'id' ? track.id : `${track.id}${index}`"
:track-prop="track"
:track-no="index + 1"
:highlight-playing-track="highlightPlayingTrack"
@dblclick.native="playThisList(track.id || track.songId)"
@click.right.native="openMenu($event, track, index)"
Expand Down
3 changes: 2 additions & 1 deletion src/components/TrackListItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
style="height: 14px; width: 14px"
></svg-icon>
</button>
<span v-show="(!focus || !playable) && !isPlaying">{{ track.no }}</span>
<span v-show="(!focus || !playable) && !isPlaying">{{ trackNo }}</span>
<button v-show="isPlaying">
<svg-icon
icon-class="volume"
Expand Down Expand Up @@ -126,6 +126,7 @@ export default {
props: {
trackProp: Object,
trackNo: Number,
highlightPlayingTrack: {
type: Boolean,
default: true,
Expand Down
4 changes: 1 addition & 3 deletions src/views/album.vue
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,7 @@
{{ $t('album.released') }}
{{ album.publishTime | formatDate('MMMM D, YYYY') }}
</div>
<div v-if="album.company !== null" class="copyright">
© {{ album.company }}
</div>
<div v-if="album.company" class="copyright"> © {{ album.company }} </div>
</div>
<div v-if="filteredMoreAlbums.length !== 0" class="more-by">
<div class="section-title">
Expand Down

0 comments on commit 9f34ec9

Please sign in to comment.