update(script-setup): Refactor remaining files to script setup style

This commit is contained in:
Braks
2021-10-20 22:39:54 +02:00
parent 9b2f4b7406
commit 560bdc203b
62 changed files with 1683 additions and 1425 deletions
+10 -9
View File
@@ -1,5 +1,6 @@
import { ComponentPublicInstance } from 'vue'
import { ElementId, HandleType, Position } from './types'
import { DefineComponent } from 'vue'
import { ElementId, Position } from './types'
import { HandleType } from '~/types/handle'
export enum ConnectionLineType {
Bezier = 'default',
@@ -26,13 +27,13 @@ export type ConnectionLineComponentProps = {
connectionLineType: ConnectionLineType
}
export type ConnectionLineComponent = ComponentPublicInstance<ConnectionLineComponentProps>
export type CustomConnectionLine = DefineComponent<ConnectionLineComponentProps>
export type OnConnectFunc = (connection: Connection) => void
export type OnConnectStartParams = {
nodeId: ElementId | null
handleId: ElementId | null
handleType: HandleType | null
nodeId: ElementId | undefined
handleId: ElementId | undefined
handleType: HandleType | undefined
}
export type OnConnectStartFunc = (event: MouseEvent, params: OnConnectStartParams) => void
export type OnConnectStopFunc = (event: MouseEvent) => void
@@ -44,7 +45,7 @@ export enum ConnectionMode {
}
export type SetConnectionId = {
connectionNodeId: ElementId | null
connectionHandleId: ElementId | null
connectionHandleType: HandleType | null
connectionNodeId: ElementId | undefined
connectionHandleId: ElementId | undefined
connectionHandleType: HandleType | undefined
}