jerosoler / Drawflow

Simple flow library 🖥️🖱️
https://jerosoler.github.io/Drawflow/
MIT License
4.7k stars 728 forks source link

Updating from vue2 to vue3. #713

Open sh1kh4r123 opened 1 year ago

sh1kh4r123 commented 1 year ago

I am updating my project from vue2 to vue3 and in that I am getting issue in Drawflow initially because importing vue as we were doing in vue2 and then i have tried making change as per the suggestion I found but getting issue related to the addNode, registerNode e.t.c. The initial target it to only make minimum changes to make it work on vue3 and once everything works fine then we can update thing in more optimized ways.

jerosoler commented 1 year ago

View example implementation with vue3

sh1kh4r123 commented 1 year ago

There is a change of structure involved, can you provide(point towards) a documentation where we have pointer on how to update drawflow when updating from vue2 to vue3.

jerosoler commented 1 year ago

In principle the only change would be the one provided in the documentation.

https://github.com/jerosoler/Drawflow#for-vue-2-example

You can look in this file, the implementation: https://github.com/jerosoler/drawflow-vue3-example/blob/master/src/components/drawflow.vue