Giter Club home page Giter Club logo

Comments (2)

kakajun avatar kakajun commented on July 17, 2024

大佬,如果我的组件引用了第三方的ui库,比如Element-ui,其也有2个版本,如何使打包出来的文件同样兼容vue2和vue3呢?

不行的, demi打出来的, 其插件都能适配, 那么我直接打包了element ui 到vue3里面用就好了呀, 那为什么还要花那么多时间重新搞个element-plus呢, 注意我这个插件里面是主体代码用vue3的形式写的, 然后向下兼容的, 并不能向上兼容, 也就是插件有element-ui等vue2时的插件, 并不能在里面有

from vue3-sketch-ruler.

SilverComet7 avatar SilverComet7 commented on July 17, 2024

大佬,如果我的组件引用了第三方的ui库,比如Element-ui,其也有2个版本,如何使打包出来的文件同样兼容vue2和vue3呢?

不行的, demi打出来的, 其插件都能适配, 那么我直接打包了element ui 到vue3里面用就好了呀, 那为什么还要花那么多时间重新搞个element-plus呢, 注意我这个插件里面是主体代码用vue3的形式写的, 然后向下兼容的, 并不能向上兼容, 也就是插件有element-ui等vue2时的插件, 并不能在里面有

我想通过vue3+Element-plus构建出能在vue2项目或vue3项目中可使用的通用组件,这种方式可行吗?
这是我的仓库demo
现在只能在vue3一端使用,thanks

from vue3-sketch-ruler.

Related Issues (20)

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.