gaoluyang
2026-06-29 27cd042df9aca0383a49f3514bc21958dd890912
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<script lang="ts" setup>
import type { MusicSong } from '../types';
 
import { inject, ref } from 'vue';
 
import { Button, Card, Image } from 'ant-design-vue';
 
import { currentSongKey } from '../types';
 
defineOptions({ name: 'AiMusicSongInfoIndex' });
 
const currentSong = inject(currentSongKey, ref<MusicSong>({}));
</script>
 
<template>
  <Card class="!mb-0 w-40 leading-6">
    <Image :src="currentSong.imageUrl" class="h-full w-full" />
 
    <div class="">{{ currentSong.title }}</div>
    <div class="line-clamp-1 text-xs">
      {{ currentSong.desc }}
    </div>
    <div class="text-xs">
      {{ currentSong.date }}
    </div>
    <Button size="small" shape="round" class="my-2">信息复用</Button>
    <!-- eslint-disable-next-line vue/no-v-html -->
    <div class="text-xs" v-html="currentSong.lyric"></div>
  </Card>
</template>