Skip to content

Instantly share code, notes, and snippets.

@faforty
Created December 9, 2016 13:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save faforty/ea61b174a857fd7dd6ca43ae2b823f07 to your computer and use it in GitHub Desktop.
Save faforty/ea61b174a857fd7dd6ca43ae2b823f07 to your computer and use it in GitHub Desktop.
<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