refactor: back to jsx 🥇

This commit is contained in:
Braks
2021-08-08 19:28:45 +02:00
parent a6f7678c0f
commit 1d542aba65
31 changed files with 666 additions and 558 deletions
+22
View File
@@ -0,0 +1,22 @@
import { FunctionalComponent } from 'vue';
interface MarkerProps {
id: string;
}
export default ((props: MarkerProps, { slots }) => {
return () => (
<marker
id={props.id}
class="revue-flow__arrowhead"
markerWidth="12.5"
markerHeight="12.5"
viewBox="-10 -10 20 20"
orient="auto"
refX="0"
refY="0"
>
{slots.default ? slots.default() : ''}
</marker>
);
}) as FunctionalComponent<MarkerProps>;