Skip to content

Instantly share code, notes, and snippets.

@faforty faforty/ui-tabs
Created Dec 9, 2016

Embed
What would you like to do?
<ui-tabs align="top" :active="$route.name" :percent="50" :indicator-height="6" :indicator-border="false" class="b-platform-head-tabs" @change="activeTab">
<ui-tab v-for="(tab, index) in getTabs"
:name="tab.name"
:disabled="getCountedSteps() < index"
v-show="tabPage == tab.page">
<router-link :to="{ name: getCountedSteps() < index ? false : tab.name}">
{{ tab.title }}
</router-link>
</ui-tab>
<div slot="contents">
<router-view ref="contentTab" v-bind:api="api" v-bind:product="getProduct" v-bind:numberTab="getCountedSteps()"></router-view>
</div>
</ui-tabs>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.