abstract dbm and light composable and components and upgrade light user gui for fine graining with + and -
This commit is contained in:
12
src/composables/dbm/useContextMenu.ts
Normal file
12
src/composables/dbm/useContextMenu.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { ref } from 'vue';
|
||||
import type { TreeNode } from './dbmTree';
|
||||
|
||||
export const contextMenuRef = ref();
|
||||
|
||||
export const contextMenuState = ref<TreeNode | undefined>();
|
||||
|
||||
export function openContextMenu(event: MouseEvent, node: undefined) {
|
||||
event.preventDefault();
|
||||
contextMenuState.value = node;
|
||||
contextMenuRef.value?.show(event);
|
||||
}
|
Reference in New Issue
Block a user