feat: script setup style
* Replace jsx with script setup syntax
* Simplify logic and make it more "composable"
* Move Zoom functions to useZoom composable
* Update eslint config & tsconfig
This commit is contained in:
+2
-2
@@ -1,4 +1,4 @@
|
||||
import { ComponentPublicInstance } from 'vue'
|
||||
import { DefineComponent } from 'vue'
|
||||
import { XYPosition } from './types'
|
||||
import { ElementId, Position } from './index'
|
||||
|
||||
@@ -57,4 +57,4 @@ export interface NodeProps<T = any> {
|
||||
isDragging?: boolean
|
||||
}
|
||||
|
||||
export type NodeType = ComponentPublicInstance<NodeProps>
|
||||
export type NodeType = DefineComponent<NodeProps>
|
||||
|
||||
Reference in New Issue
Block a user