Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] Vue 3 support #8

Open
guastallaigor opened this issue Feb 28, 2021 · 5 comments
Open

[Question] Vue 3 support #8

guastallaigor opened this issue Feb 28, 2021 · 5 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@guastallaigor
Copy link

Is your feature request related to a problem? Please describe.

Hello. First of all, great component library 👏!

My question is, it's possible to I use mijin right now with Vue 3 or Vite? I tried with both in a few different ways, but I had no success.
If not, do you plan to support them on a near future?

Describe the solution you'd like
Use Mijin with Vue 3.

Describe alternatives you've considered
Use Mijin with Vue 2.

Additional context

Console error

image

@lecoueyl
Copy link
Owner

lecoueyl commented Mar 1, 2021

Hi there,

Thank you for your message.
Currently, this library is only compatible with Vue 2.0.
As Vue 3.0 is now available, I would like to focus on supporting it for the next feature.

It would be relatively simple to migrate (remove functional templates, use composition API, etc) but I can not provide a release date yet.

Meanwhile, the README can be updated to clarify that only Vue 2.0 is currently supported.

@lecoueyl lecoueyl added enhancement New feature or request question Further information is requested labels Mar 1, 2021
@guastallaigor
Copy link
Author

Hello, thank you for your quick response.

If you know a way to support Vue 3 without dropping the Vue 2 support, let me know and I can help you with that.

@lecoueyl
Copy link
Owner

lecoueyl commented Mar 2, 2021

README has been updated to specify the currently supported version

Unfortunately, Vue 3 $listeners doesn't exist anymore (merged with $attrs). Form components like input or select rely on $listeners to operate and I could not find yet a way to make it work on both Vue 2 and 3.

If it can't be done, a solution is to create a next branch dedicated to supporting Vue 3 in parallel.

Regardless, most of the components work directly on Vue 2 and Vue 3 by dropping the functional component attribute.

@wobsoriano
Copy link

FYI there's https://github.com/vueuse/vue-demi.

You can support both vue 2 and 3 using that. Renderless components.

Example implementation https://github.com/wobsoriano/vue-winbox/

@lecoueyl
Copy link
Owner

lecoueyl commented Aug 16, 2021

@wobsoriano Thank you for your suggestion, along with an implementation example 👍
Using vue-demi will add a dependency to the project that I would like to avoid.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants