konvajs / vue-konva

Vue & Canvas - JavaScript library for drawing complex canvas graphics using Vue.
https://konvajs.github.io/docs/vue/
MIT License
1.19k stars 131 forks source link

Multiple Mount When Import #187

Closed Nunkung closed 3 months ago

Nunkung commented 2 years ago
Screen Shot 2565-03-16 at 12 57 24

This is the log i print.

Screen Shot 2565-03-16 at 12 59 03

This is the log when i just import VueKonva.

Screen Shot 2565-03-16 at 13 00 27

This is mount and then find parent

I Use Vue.js 2.6.14
konva 7.2.5 vue-konva 2.1.7 laravel-mix 6.0.43

I don't know why they call mount again and again

lavrton commented 2 years ago

Can you make a reproducible demo of the issue?

Nunkung commented 2 years ago

All i do is https://konvajs.org/docs/vue/ quick start 1 2 3 and run

Nunkung commented 2 years ago
Screen Shot 2565-03-21 at 16 12 52 Screen Shot 2565-03-21 at 16 13 13
Nunkung commented 2 years ago
Screen Shot 2565-03-21 at 16 53 19

when i use version lib in red line it's has a problem like above. but when i use green line it's work.

Screen Shot 2565-03-21 at 16 55 34

because of mix ?