npm install vue-router-tab
yarn (推荐)
yarn add vue-router-tab
如果你想使用最新的开发版,就得从 GitHub 上直接 clone,然后自己 build 一个 vue-router-tab
。
git clone https://github.com/bhuh12/vue-router-tab.git node_modules/vue-router-tab
cd node_modules/vue-router-tab
yarn
yarn lib:build
Vue Router Tab 使用 Vue CLI 3 来构建库,没有内置 Polyfills。
如果您的项目有兼容旧版本浏览器的需求,可以参考以下链接,自行 Polyfill: