mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 12:33:03 +00:00
start migration to <script setup>
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="index"></th>
|
||||
<th class="track-header">Track</th>
|
||||
<th class="artists-header">Artist</th>
|
||||
<th class="album-header">Album</th>
|
||||
@@ -12,9 +13,10 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
<SongItem
|
||||
v-for="song in props.songs"
|
||||
v-for="(song, index) in props.songs"
|
||||
:key="song"
|
||||
:song="song"
|
||||
:index="index + 1"
|
||||
@updateQueue="updateQueue"
|
||||
@loadAlbum="loadAlbum"
|
||||
/>
|
||||
@@ -34,12 +36,13 @@
|
||||
<script setup>
|
||||
import { ref } from "@vue/reactivity";
|
||||
import { onMounted } from "@vue/runtime-core";
|
||||
// import { defineProps } from 'vue';
|
||||
import { useRoute } from "vue-router";
|
||||
|
||||
import SongItem from "../shared/SongItem.vue";
|
||||
|
||||
import routeLoader from "@/composables/routeLoader.js";
|
||||
import perks from "@/composables/perks.js";
|
||||
import state from "@/composables/state.js";
|
||||
import { useRoute } from "vue-router";
|
||||
|
||||
const props = defineProps({
|
||||
songs: {
|
||||
@@ -48,7 +51,6 @@ const props = defineProps({
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
let route;
|
||||
|
||||
const search_query = ref(state.search_query);
|
||||
@@ -144,6 +146,10 @@ table {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
th.index {
|
||||
width: 2rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user