MCPcopy
hub / github.com/vexip-ui/vexip-ui / createContextmenu

Function createContextmenu

components/contextmenu/tests/contextmenu.spec.tsx:9–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7import { ContextmenuManager } from '..'
8
9function createContextmenu() {
10 const Contextmenu = new ContextmenuManager()
11
12 mount({
13 setup() {
14 const instance = getCurrentInstance()
15 const app = instance?.appContext.app
16
17 app?.use(Contextmenu)
18
19 return () => <div></div>
20 },
21 })
22
23 return Contextmenu
24}
25
26describe('Contextmenu', () => {
27 it('render', () => {

Callers 1

Calls 1

mountFunction · 0.50

Tested by

no test coverage detected