| 1 |
<?php |
| 2 |
/** |
| 3 |
* Tabs component |
| 4 |
*/ |
| 5 |
?> |
| 6 |
<div |
| 7 |
:class="{ |
| 8 |
'cx-vui-tabs': true, |
| 9 |
'cx-vui-tabs--invert': invert, |
| 10 |
'cx-vui-tabs--layout-vertical': 'vertical' === this.layout, |
| 11 |
'cx-vui-tabs--layout-horizontal': 'horizontal' === this.layout, |
| 12 |
'cx-vui-tabs--in-panel': inPanel, |
| 13 |
}" |
| 14 |
> |
| 15 |
<div class="cx-vui-tabs__nav"> |
| 16 |
<div |
| 17 |
v-for="item in navList" |
| 18 |
:class="{ |
| 19 |
'cx-vui-tabs__nav-item': true, |
| 20 |
'cx-vui-tabs__nav-item--active': isActive( item.name ), |
| 21 |
}" |
| 22 |
@click="onTabClick( item.name )" |
| 23 |
> |
| 24 |
{{ item.label }} |
| 25 |
</div> |
| 26 |
</div> |
| 27 |
<div class="cx-vui-tabs__content"> |
| 28 |
<slot></slot> |
| 29 |
</div> |
| 30 |
</div> |