mirror of
https://github.com/koel/koel
synced 2025-01-01 15:28:43 +00:00
33 lines
593 B
Vue
33 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>
|