use reactive songlist element size to show song details selectively

This commit is contained in:
geoffrey45
2022-08-27 20:57:21 +03:00
parent f26e952703
commit a9ce08b092
4 changed files with 130 additions and 58 deletions
+17
View File
@@ -0,0 +1,17 @@
<template>
<div class="ellip" v-if="artists[0] !== ''">
<span v-for="artist in putCommas(artists)" :key="artist">{{ artist }}</span>
</div>
<div class="ellip" v-else>
<span>{{ albumartist }}</span>
</div>
</template>
<script setup lang="ts">
import { putCommas } from "@/utils";
defineProps<{
artists: string[];
albumartist: string | undefined;
}>();
</script>