vue-navigation-tab

0.1.3 • Public • Published

navigation-boundless-tab

NPM

npm i vue-navigation-tab

ES6

import NavigationTransitionTab from 'vue-navigation-tab';

Usage

<template>
  <NavigatioTab ref="navTab" :fixed="tabs" v-model:current="current" @on-change="navChange"></NavigatioTab>
</template>
<script>
import NavigatioTab from 'vue-navigation-tab';
export default {
  name: 'App',
  components: {
    NavigatioTab,
  },
  data() {
    return {
      tabs: [{ path: '/', title: 'HomePage', fixed: true }],
      current: 0,
    };
  },
  methods: {
    navChange(e) {
      console.log('currentTab', e);
    },
  },
};
</script>

Props

Props Type Default Describe
fixeds Array []
current Number 0

Events

Name Describe Return
on-change TabChange currentTab
on-remove TabRemove currentTab

methods

Name Describe Return
addTab AddNewTab currentTab

Readme

Keywords

Package Sidebar

Install

npm i vue-navigation-tab

Weekly Downloads

4

Version

0.1.3

License

MIT

Unpacked Size

257 kB

Total Files

13

Last publish

Collaborators

  • daihao0244