Skip to content
This repository has been archived by the owner on Oct 24, 2018. It is now read-only.

Commit

Permalink
CS
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastiandedeyne committed Dec 6, 2017
1 parent 78511c6 commit 5303c2b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/components/Tab.vue
Expand Up @@ -33,6 +33,7 @@
if (this.isDisabled) {
return '#';
}
return this.id ?
'#' + this.id :
'#' + this.name.toLowerCase().replace(/ /g, '-');
Expand Down
8 changes: 6 additions & 2 deletions src/components/Tabs.vue
@@ -1,7 +1,9 @@
<template>
<div class="tabs-component">
<ul role="tablist" class="tabs-component-tabs">
<li v-for="tab in tabs"
<li
v-for="(tab, i) in tabs"
:key="i"
:class="{ 'is-active': tab.isActive, 'is-disabled': tab.isDisabled }"
class="tabs-component-tab"
role="presentation"
Expand All @@ -28,7 +30,9 @@
export default {
props: {
cacheLifetime: { default: 5 },
cacheLifetime: {
default: 5,
},
options: {
type: Object,
required: false,
Expand Down

0 comments on commit 5303c2b

Please sign in to comment.