fix: return render function
This commit is contained in:
@@ -58,7 +58,7 @@ export default defineComponent({
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return () => (
|
||||||
<g
|
<g
|
||||||
transform={`translate(${props.x - edgeTextBox.value.width / 2} ${props.y - edgeTextBox.value.height / 2})`}
|
transform={`translate(${props.x - edgeTextBox.value.width / 2} ${props.y - edgeTextBox.value.height / 2})`}
|
||||||
class="revue-flow__edge-textwrapper"
|
class="revue-flow__edge-textwrapper"
|
||||||
|
|||||||
@@ -136,7 +136,7 @@ export default defineComponent({
|
|||||||
/>
|
/>
|
||||||
) : null;
|
) : null;
|
||||||
|
|
||||||
return (
|
return () => (
|
||||||
<>
|
<>
|
||||||
<path
|
<path
|
||||||
class="revue-flow__edge-path"
|
class="revue-flow__edge-path"
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ export default defineComponent({
|
|||||||
|
|
||||||
const markerEnd = reactify((arrowHeadType?: ArrowHeadType, markerEndId?: string) => getMarkerEnd(arrowHeadType, markerEndId));
|
const markerEnd = reactify((arrowHeadType?: ArrowHeadType, markerEndId?: string) => getMarkerEnd(arrowHeadType, markerEndId));
|
||||||
|
|
||||||
return (
|
return () => (
|
||||||
<>
|
<>
|
||||||
<path
|
<path
|
||||||
style={props.style}
|
style={props.style}
|
||||||
|
|||||||
Reference in New Issue
Block a user