fix: Marker arrowheads not displayed

This commit is contained in:
Braks
2021-08-08 19:28:45 +02:00
parent 9e397e6817
commit adb5ec544d
+11 -3
View File
@@ -1,10 +1,17 @@
import { FunctionalComponent } from 'vue'; import { defineComponent } from 'vue';
interface MarkerProps { interface MarkerProps {
id: string; id: string;
} }
export default ((props: MarkerProps, { slots }) => { export default defineComponent({
props: {
id: {
type: String,
required: true
}
},
setup(props: MarkerProps, { slots }) {
return () => ( return () => (
<marker <marker
id={props.id} id={props.id}
@@ -19,4 +26,5 @@ export default ((props: MarkerProps, { slots }) => {
{slots.default ? slots.default() : ''} {slots.default ? slots.default() : ''}
</marker> </marker>
); );
}) as FunctionalComponent<MarkerProps>; }
});