From 5ffcddd3b9b4b6600e4e51066b9410d7e852df11 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Wed, 27 May 2020 03:32:57 +0300 Subject: fixes. sorry for bad commit message i'm tired --- src/components/tab_switcher/tab_switcher.js | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) (limited to 'src/components/tab_switcher/tab_switcher.js') diff --git a/src/components/tab_switcher/tab_switcher.js b/src/components/tab_switcher/tab_switcher.js index 2d04e15d..616f1a19 100644 --- a/src/components/tab_switcher/tab_switcher.js +++ b/src/components/tab_switcher/tab_switcher.js @@ -95,9 +95,12 @@ export default Vue.component('tab-switcher', { disabled={slot.data.attrs.disabled} onClick={this.activateTab(index)} class={classesTab.join(' ')} + type="button" > {!slot.data.attrs.icon ? '' : ()} - {slot.data.attrs.label} + + {slot.data.attrs.label} + ) @@ -110,13 +113,23 @@ export default Vue.component('tab-switcher', { if (slot.data.attrs.fullHeight) { classes.push('full-height') } + const newSlot = ( +
+ { + this.sideTabBar + ?

{slot.data.attrs.label}

+ : '' + } + {slot} +
+ ) if (this.renderOnlyFocused) { return active - ?
{slot}
+ ?
{newSlot}
:
} - return
{slot}
+ return
{newSlot}
}) return ( -- cgit v1.2.3-70-g09d2