feat: Make edges work

This commit is contained in:
Braks
2021-07-09 13:39:17 +02:00
parent 52e1188d04
commit b2c250ef38
10 changed files with 183 additions and 99 deletions
+1 -4
View File
@@ -10,16 +10,13 @@ export default (EdgeComponent: any): Component<EdgeProps> => {
components: { EdgeComponent },
props: WrapEdgeProps,
setup(props) {
console.log('wrap');
const pinia = store();
const updating = ref<boolean>(false);
const inactive = !props.elementsSelectable && !props.onClick;
const edgeClasses = [
'react-flow__edge',
`react-flow__edge-${props.type}`,
{ selected: props.selected, animated: props.animated, inactive, updating }
{ selected: props.selected, animated: props.animated, inactive, updating: updating.value }
];
const edgeElement = computed<Edge>(() => {