koel/resources/assets/js/components/album/track-list.vue

34 lines
593 B
Vue
Raw Normal View History

2022-04-15 14:24:30 +00:00
<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>