start migration to <script setup>

This commit is contained in:
geoffrey45
2022-01-26 10:01:35 +03:00
parent d6204946c2
commit 13ee2ed1d6
14 changed files with 91 additions and 73 deletions
+10 -4
View File
@@ -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>