Feat(Menu): Add tool menu via drag and drop

Drag and drop a tool card to add tool menu
This commit is contained in:
2024-04-30 13:42:36 +08:00
parent 843f47346a
commit 7b61a5fdb3
30 changed files with 785 additions and 298 deletions

View File

@@ -0,0 +1,13 @@
import { DraggableSyntheticListeners } from '@dnd-kit/core'
export interface HandleContext {
attributes: Record<string, any>
listeners: DraggableSyntheticListeners
ref(node: HTMLElement | null): void
}
export const HandleContextInst = createContext<HandleContext>({
attributes: {},
listeners: undefined,
ref() {}
})