chairuosen
V2EX  ›  Vue.js

第三方库怎样处理 Vue1&2 的版本兼容性问题?

  •  
  •   chairuosen ·
    chairuosen · Oct 26, 2016 · 3764 views
    This topic created in 3496 days ago, the information mentioned may be changed or developed.
    之前写了个 vue 的工具组件,只支持 1.0 版本。现在想升级支持 2.0 ,但是写法有很多不同,不能同时兼容俩版本。

    那么现在怎么搞呢?

    1. 建一个 repo xxxxx-for-vue2.0
    2. 建一个分支 for-vue2.0
    3. 建一个文件夹 require('xxxxx/vue2')
    2 replies    2016-10-26 19:04:36 +08:00
    learnshare
        1
    learnshare  
       Oct 26, 2016
    新项目吧
    crysislinux
        2
    crysislinux  
       Oct 26, 2016
    新项目吧
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2903 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 06:33 · PVG 14:33 · LAX 23:33 · JFK 02:33
    ♥ Do have faith in what you're doing.