Coder Social home page Coder Social logo

[Question] Vue 3 support about mijin HOT 5 OPEN

guastallaigor avatar guastallaigor commented on June 28, 2024
[Question] Vue 3 support

from mijin.

Comments (5)

wobsoriano avatar wobsoriano commented on June 28, 2024 2

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/

from mijin.

lecoueyl avatar lecoueyl commented on June 28, 2024 1

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.

from mijin.

lecoueyl avatar lecoueyl commented on June 28, 2024

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.

from mijin.

guastallaigor avatar guastallaigor commented on June 28, 2024

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.

from mijin.

lecoueyl avatar lecoueyl commented on June 28, 2024

@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.

from mijin.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.