feat: add KAAK context menu to channel tree members

This commit is contained in:
illusia committed 2026-10-11 21:40:14 +08:00
1 parent 3459c8410c
commit 3476d4716a
14 files changed
+48 -14

No files matched your search

@@ -19,10 +19,12 @@
:avatar-style="avatarStyle"
:avatar-initial="avatarInitial"
:is-speaking="isSpeaking"
:show-member-actions="showMemberActions"
:t="t"
@toggle="toggleExpanded"
@select="selectedChannelId = $event"
@join="joinChannel"
@member-context-menu="emit('memberContextMenu', $event)"
/>
</ul>
<div
@@ -48,6 +50,7 @@ const props = defineProps<{
avatarStyle: (name: string, isSelf?: boolean, avatar?: string) => CSSProperties;
avatarInitial: (name: string) => string;
isSpeaking: (member: ChannelMember) => boolean;
showMemberActions?: boolean;
t: (key: string) => string;
}>();
@@ -102,6 +105,7 @@ function joinChannel(channel: TreeChannel): void {
const emit = defineEmits<{
join: [channel: TreeChannel];
memberContextMenu: [payload: { member: ChannelMember; event: MouseEvent }];
}>();
</script>