0.1.3 • Published 1 year ago

vue-navigation-tab v0.1.3

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

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

PropsTypeDefaultDescribe
fixedsArray[]
currentNumber0

Events

NameDescribeReturn
on-changeTabChangecurrentTab
on-removeTabRemovecurrentTab

methods

NameDescribeReturn
addTabAddNewTabcurrentTab
0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago