fix: add compatConfig to all components
This commit is contained in:
@@ -71,5 +71,6 @@ BaseEdge.props = [
|
||||
]
|
||||
|
||||
BaseEdge.inheritAttrs = false
|
||||
BaseEdge.compatConfig = { MODE: 3 }
|
||||
|
||||
export default BaseEdge
|
||||
|
||||
@@ -42,5 +42,6 @@ BezierEdge.props = [
|
||||
]
|
||||
|
||||
BezierEdge.inheritAttrs = false
|
||||
BezierEdge.compatConfig = { MODE: 3 }
|
||||
|
||||
export default BezierEdge
|
||||
|
||||
@@ -46,5 +46,6 @@ const EdgeAnchor: FunctionalComponent<Props> = function ({ radius = 10, centerX
|
||||
}
|
||||
|
||||
EdgeAnchor.props = ['radius', 'centerX', 'centerY', 'position']
|
||||
EdgeAnchor.compatConfig = { MODE: 3 }
|
||||
|
||||
export default EdgeAnchor
|
||||
|
||||
@@ -7,6 +7,7 @@ const teleportTarget = computed(() => viewportRef.value?.getElementsByClassName(
|
||||
<script lang="ts">
|
||||
export default {
|
||||
name: 'EdgeLabelRenderer',
|
||||
compatConfig: { MODE: 3 },
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
@@ -38,6 +38,7 @@ function getBox() {
|
||||
<script lang="ts">
|
||||
export default {
|
||||
name: 'EdgeText',
|
||||
compatConfig: { MODE: 3 },
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
@@ -14,6 +14,7 @@ interface Props {
|
||||
|
||||
const EdgeWrapper = defineComponent({
|
||||
name: 'Edge',
|
||||
compatConfig: { MODE: 3 },
|
||||
props: ['name', 'type', 'id', 'updatable', 'selectable', 'focusable', 'edge'],
|
||||
setup(props: Props) {
|
||||
const {
|
||||
|
||||
@@ -41,5 +41,6 @@ SimpleBezierEdge.props = [
|
||||
]
|
||||
|
||||
SimpleBezierEdge.inheritAttrs = false
|
||||
SimpleBezierEdge.compatConfig = { MODE: 3 }
|
||||
|
||||
export default SimpleBezierEdge
|
||||
|
||||
@@ -43,5 +43,6 @@ SmoothStepEdge.props = [
|
||||
]
|
||||
|
||||
SmoothStepEdge.inheritAttrs = false
|
||||
SmoothStepEdge.compatConfig = { MODE: 3 }
|
||||
|
||||
export default SmoothStepEdge
|
||||
|
||||
@@ -25,5 +25,6 @@ StepEdge.props = [
|
||||
]
|
||||
|
||||
StepEdge.inheritAttrs = false
|
||||
StepEdge.compatConfig = { MODE: 3 }
|
||||
|
||||
export default StepEdge
|
||||
|
||||
@@ -31,5 +31,6 @@ StraightEdge.props = [
|
||||
]
|
||||
|
||||
StraightEdge.inheritAttrs = false
|
||||
StraightEdge.compatConfig = { MODE: 3 }
|
||||
|
||||
export default StraightEdge
|
||||
|
||||
Reference in New Issue
Block a user