enhance: allow longpress and contextmenu copy paste

This commit is contained in:
Julian Krauser 2025-07-22 07:50:26 +02:00
parent 518e05b842
commit e755a4ec37
7 changed files with 144 additions and 18 deletions

View file

@ -1,10 +1,9 @@
<template>
<div
ref="contextMenu"
class="absolute flex flex-col gap-1 border border-gray-400 bg-white rounded-md select-none text-left shadow-md z-50 p-1"
class="absolute flex flex-col gap-1 border border-gray-400 bg-white rounded-md select-none text-left shadow-md z-[100] p-1"
v-show="show"
:style="contextMenuStyle"
@contextmenu.prevent
@click="closeContextMenu"
>
<component :is="component_ref" :data="data" />