chore(core): cleanup export paths
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import type { FunctionalComponent } from 'vue'
|
||||
import { h } from 'vue'
|
||||
import BaseEdge from './BaseEdge'
|
||||
import BaseEdge from './BaseEdge.vue'
|
||||
import { getBezierPath } from './utils'
|
||||
import type { BezierEdgeProps } from '~/types'
|
||||
import { Position } from '~/types'
|
||||
@@ -15,7 +15,7 @@ const BezierEdge: FunctionalComponent<BezierEdgeProps> = function (
|
||||
...props,
|
||||
})
|
||||
|
||||
return h(BaseEdge, {
|
||||
return h(BaseEdge as any, {
|
||||
path,
|
||||
labelX,
|
||||
labelY,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { FunctionalComponent } from 'vue'
|
||||
import { h } from 'vue'
|
||||
import BaseEdge from './BaseEdge'
|
||||
import BaseEdge from './BaseEdge.vue'
|
||||
import { getSimpleBezierPath } from './utils'
|
||||
import type { SimpleBezierEdgeProps } from '~/types'
|
||||
import { Position } from '~/types'
|
||||
@@ -15,7 +15,7 @@ const SimpleBezierEdge: FunctionalComponent<SimpleBezierEdgeProps> = function (
|
||||
...props,
|
||||
})
|
||||
|
||||
return h(BaseEdge, {
|
||||
return h(BaseEdge as any, {
|
||||
path,
|
||||
labelX,
|
||||
labelY,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { FunctionalComponent } from 'vue'
|
||||
import { h } from 'vue'
|
||||
import BaseEdge from './BaseEdge'
|
||||
import BaseEdge from './BaseEdge.vue'
|
||||
import { getSmoothStepPath } from './utils'
|
||||
import type { SmoothStepEdgeProps } from '~/types'
|
||||
import { Position } from '~/types'
|
||||
@@ -15,7 +15,7 @@ const SmoothStepEdge: FunctionalComponent<SmoothStepEdgeProps> = function (
|
||||
...props,
|
||||
})
|
||||
|
||||
return h(BaseEdge, {
|
||||
return h(BaseEdge as any, {
|
||||
path,
|
||||
labelX,
|
||||
labelY,
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
import type { FunctionalComponent } from 'vue'
|
||||
import { h } from 'vue'
|
||||
import BaseEdge from './BaseEdge'
|
||||
import BaseEdge from './BaseEdge.vue'
|
||||
import { getStraightPath } from './utils'
|
||||
import type { StraightEdgeProps } from '~/types'
|
||||
|
||||
const StraightEdge: FunctionalComponent<StraightEdgeProps> = function (props, { attrs }) {
|
||||
const [path, labelX, labelY] = getStraightPath(props)
|
||||
|
||||
return h(BaseEdge, {
|
||||
return h(BaseEdge as any, {
|
||||
path,
|
||||
labelX,
|
||||
labelY,
|
||||
|
||||
Reference in New Issue
Block a user