Skip to content

Commit

Permalink
refactor(example): update tabs logic
Browse files Browse the repository at this point in the history
  • Loading branch information
johnleider committed Oct 24, 2018
1 parent 772118c commit a6e8988
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/helpers/Example.vue
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
v-tab(
v-for="tab in tabs"
:key="tab"
:href="`#${tab}`"
v-show="parsed[tab]"
active-class=""
class="body-2"
Expand All @@ -92,8 +93,8 @@
)
v-tab-item(
v-for="tab in tabs"
:id="null"
:key="tab"
:value="tab"
)
helpers-markup(lang="html" v-if="parsed[tab]").ma-0
| {{ parsed[tab] }}
Expand Down Expand Up @@ -188,7 +189,7 @@
watch: {
panel () {
this.$nextTick(this.$refs.tabs.callSlider)
requestAnimationFrame(this.$refs.tabs.callSlider)
}
},
Expand Down

0 comments on commit a6e8988

Please sign in to comment.