Fix overlapping buttons in Theme settings
This commit is contained in:
parent
aa0b2e0723
commit
e58422889b
6 changed files with 57 additions and 30 deletions
|
@ -47,6 +47,12 @@ export default Vue.component('tab-switcher', {
|
|||
return this.active
|
||||
}
|
||||
},
|
||||
isActive () {
|
||||
return tabName => {
|
||||
const isWanted = slot => slot.data && slot.data.attrs['data-tab-name'] === tabName
|
||||
return this.$slots.default.findIndex(isWanted) === this.activeIndex
|
||||
}
|
||||
},
|
||||
settingsModalVisible () {
|
||||
return this.settingsModalState === 'visible'
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue