V Tabs Router
A vue.js mobile tabs based on vue-router Edit
Installation
npm install --save v-tabs-routeryarn add v-tabs-router
Usage in .vue template (Webpack)
Tabs properties
- color: optional - Tab icons colors
- background-color: optional - Tabs background
Tab properties
- name: required - Name of the tab. Needs be unique
- path: required - Path to go when click
- icon: required - Font icon to the tab, can be font-awesome or another font project. For example: 'fa fa-home'
- label: optional - Label appears under the icon if present
- exact: optional - Only activate tab if the current route match exactly with the tab path
Development
Build
Bundle the js and css of to the dist
folder:
yarn build# or bin/build
Dist
Bundle the js and css min of to the dist
folder:
yarn dist# or bin/dist
Release
Bundle aliases for build and dist
yarn release
Publish
bin/publish
bin/publish