mirror of
https://github.com/algerkong/AlgerMusicPlayer.git
synced 2026-07-14 06:17:31 +08:00
feat: 优化歌曲组件事件处理,使用展开运算符简化事件传递
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user