jarvisniu / vue-zoomer

Zoom the image or other thing with mouse or touch
MIT License
150 stars 37 forks source link

Any hope for Vue3 support? #23

Closed LarryEitel closed 3 years ago

LarryEitel commented 3 years ago

I tried it and get:

Uncaught (in promise) TypeError: selfHook.bind is not a function at callSyncHook (runtime-dom.esm-bundler-7f9000d8.js:7040) at applyOptions (runtime-dom.esm-bundler-7f9000d8.js:6805) at finishComponentSetup (runtime-dom.esm-bundler-7f9000d8.js:7649) at setupStatefulComponent (runtime-dom.esm-bundler-7f9000d8.js:7582) at setupComponent (runtime-dom.esm-bundler-7f9000d8.js:7522) at mountComponent (runtime-dom.esm-bundler-7f9000d8.js:5264) at processComponent (runtime-dom.esm-bundler-7f9000d8.js:5240) at patch (runtime-dom.esm-bundler-7f9000d8.js:4861) at mountChildren (runtime-dom.esm-bundler-7f9000d8.js:5043) at mountElement (runtime-dom.esm-bundler-7f9000d8.js:4966)

Thank you for a nice V2 component!!!

jarvisniu commented 3 years ago

Yes, absolutely!

See:

Repo: https://github.com/jarvisniu/vue-zoomer/tree/next Demo: https://unpkg.com/vue-zoomer@next/dist/index.html

But I feel the Vue 3 dev tools may not be so mature. So you may encounter some obstacles. I build this Vue 3 version in vite@2 and I hope you use it too. I haven't try other Vue 3 build tools like parcel@next. FYI, I found a bug in vite@1 that the component styles will be lost.