Refactor on tab header
parent
b3036ec614
commit
0fc82c33bd
|
@ -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>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue