mirror of
https://github.com/koel/koel
synced 2024-12-29 22:13:06 +00:00
34 lines
593 B
Vue
34 lines
593 B
Vue
|
<template>
|
||
|
<section class="track-listing">
|
||
|
<h1>Track Listing</h1>
|
||
|
|
||
|
<ul class="tracks">
|
||
|
<li
|
||
|
:album="album"
|
||
|
:key="idx"
|
||
|
:index="idx"
|
||
|
:track="track"
|
||
|
is="track-list-item"
|
||
|
v-for="(track, idx) in album.info.tracks"
|
||
|
/>
|
||
|
</ul>
|
||
|
</section>
|
||
|
</template>
|
||
|
|
||
|
<script lang="ts">
|
||
|
import Vue, { PropOptions } from 'vue'
|
||
|
|
||
|
export default Vue.extend({
|
||
|
props: {
|
||
|
album: {
|
||
|
type: Object,
|
||
|
required: true
|
||
|
} as PropOptions<Album>
|
||
|
},
|
||
|
|
||
|
components: {
|
||
|
TrackListItem: () => import('./track-list-item.vue')
|
||
|
}
|
||
|
})
|
||
|
</script>
|