feat: 优化歌曲组件事件处理,使用展开运算符简化事件传递

This commit is contained in:
alger
2025-05-23 22:43:01 +08:00
parent 2bcae85419
commit 589540be29
5 changed files with 69 additions and 32 deletions
+3 -3
View File
@@ -8,9 +8,9 @@
:can-remove="canRemove"
:is-next="isNext"
:index="index"
@play="$emit('play', $event)"
@select="$emit('select', $event)"
@remove-song="$emit('remove-song', $event)"
@play="(...args) => $emit('play', ...args)"
@select="(...args) => $emit('select', ...args)"
@remove-song="(...args) => $emit('remove-song', ...args)"
/>
</template>