Refactor on tab header

pull/3/head
cagataycivici 2018-12-13 00:00:59 +03:00
parent b3036ec614
commit 0fc82c33bd
1 changed files with 2 additions and 1 deletions

View File

@ -57,7 +57,8 @@ export default {
return ( return (
<li role="presentation" key={tab.header} class={{'p-highlight': (this.d_activeTabIndex === i), 'p-disabled': tab.disabled}}> <li role="presentation" key={tab.header} class={{'p-highlight': (this.d_activeTabIndex === i), 'p-disabled': tab.disabled}}>
<a role="tab" on-click={event => this.onTabClick(event, tab, i)} on-keydown={event => this.onTabKeydown(event, i)} tabindex={tab.disabled ? null : '0'}> <a role="tab" on-click={event => this.onTabClick(event, tab, i)} on-keydown={event => this.onTabKeydown(event, i)} tabindex={tab.disabled ? null : '0'}>
{tab.$slots.header || tab.header} {tab.header && <span class="p-tabview-title">{tab.header}</span>}
{tab.$slots.header}
</a> </a>
</li> </li>
); );