fixup! Separated tab-switcher into a reusable component. This depends on JSX addition
This commit is contained in:
parent
da362b2b88
commit
66a22762c2
3 changed files with 7 additions and 7 deletions
|
@ -23,7 +23,7 @@ export default Vue.component('tab-switcher', {
|
|||
if (index === this.active) {
|
||||
classes.push('active')
|
||||
}
|
||||
return (<button onClick={this.activateTab(index)} class={ classes.join(' ') }>{slot.data.attrs.title}</button>)
|
||||
return (<button onClick={this.activateTab(index)} class={ classes.join(' ') }>{slot.data.attrs.label}</button>)
|
||||
});
|
||||
const contents = (
|
||||
<div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue