diff options
| author | Henry Jameson <me@hjkos.com> | 2020-05-25 16:10:14 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2020-05-25 16:10:43 +0300 |
| commit | a6ca923a7695477f57367bf3dd95bdf41a4b64a4 (patch) | |
| tree | d450b5f7ad1e5803b37bdd6fc6da00197daf4a43 /src/components/tab_switcher/tab_switcher.js | |
| parent | 79c03984bcf63387863f6979849c39ff5f404186 (diff) | |
icons update
Diffstat (limited to 'src/components/tab_switcher/tab_switcher.js')
| -rw-r--r-- | src/components/tab_switcher/tab_switcher.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/components/tab_switcher/tab_switcher.js b/src/components/tab_switcher/tab_switcher.js index bd1f51cb..2d04e15d 100644 --- a/src/components/tab_switcher/tab_switcher.js +++ b/src/components/tab_switcher/tab_switcher.js @@ -94,8 +94,11 @@ export default Vue.component('tab-switcher', { <button disabled={slot.data.attrs.disabled} onClick={this.activateTab(index)} - class={classesTab.join(' ')}> - {slot.data.attrs.label}</button> + class={classesTab.join(' ')} + > + {!slot.data.attrs.icon ? '' : (<i class={'tab-icon icon-' + slot.data.attrs.icon}/>)} + {slot.data.attrs.label} + </button> </div> ) }) |
