open-index/open-npm huggingface dataset:
npm package: @onaug6th/vue3-context-menu
Description: vue3 context-menu
Author: onaug6th
Latest version: 0.0.4

# vue3-context-menu
vue3 context-menu

##  example

```html
<div @contextmenu.prevent="contextMenu($event, yourData)">
</div>
```

```js
import ContextMenu from 'contextMenu';

export default {
    methods: {
        contextMenu(event, yourData) {
            ContextMenu({
                event,
                list: [
                {
                    text: "open",
                    handler() {
                        console.info("open", yourData);
                    },
                },
                {
                    text: "delete",
                    handler() {
                        console.info("delete", yourData);
                    },
                },
                ],
            });
        }
    }
}
```