feat: add runCallback function to handle closing removal of context menu before running callback
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
This commit is contained in:
parent
069d3392d2
commit
292bd64ed4
1 changed files with 4 additions and 7 deletions
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<div v-for="item of menuItems" class="context-menu-item">
|
||||
<div v-for="item of props.menuItems" class="context-menu-item" @click="runCallback(item)">
|
||||
{{ item.name }}
|
||||
</div>
|
||||
</template>
|
||||
|
@ -18,12 +18,9 @@ onMounted(() => {
|
|||
});
|
||||
|
||||
|
||||
function editMessage() {
|
||||
//
|
||||
}
|
||||
|
||||
function replyMessage(id: string) {
|
||||
//
|
||||
function runCallback(item: ContextMenuItem) {
|
||||
removeContextMenu();
|
||||
item.callback();
|
||||
}
|
||||
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue