mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Change menu-legend to click, bit more complex
This commit is contained in:
parent
c22ac19645
commit
57d246d4b3
@ -7,10 +7,13 @@
|
||||
icon="question-circle"
|
||||
circle
|
||||
ghost
|
||||
:onClick="() => { openMenu() }"
|
||||
:onClick="
|
||||
() => {
|
||||
isDropdownOpen ? closeMenu() : openMenu()
|
||||
isDropdownOpen = !isDropdownOpen
|
||||
}
|
||||
"
|
||||
/>
|
||||
<!-- @mouseover.native="openMenu()"
|
||||
@mouseleave.native="closeMenu()" -->
|
||||
</slot>
|
||||
</template>
|
||||
<template #popover="" class="legend">
|
||||
@ -61,6 +64,7 @@ export default {
|
||||
{ iconName: 'quote-right', name: `editor.legend.quote`, shortcut: '> + space' },
|
||||
{ iconName: 'minus', name: `editor.legend.ruler`, shortcut: '---' },
|
||||
],
|
||||
isDropdownOpen: false,
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user