vue-navigation-tab
0.1.3 • Public • Published
npm i vue-navigation-tab
import NavigationTransitionTab from 'vue-navigation-tab';
<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 |
Type |
Default |
Describe |
fixeds |
Array |
[] |
|
current |
Number |
0 |
|
Name |
Describe |
Return |
on-change |
TabChange |
currentTab |
on-remove |
TabRemove |
currentTab |
Name |
Describe |
Return |
addTab |
AddNewTab |
currentTab |
Package Sidebar
Install
Weekly Downloads