mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-29 18:00:51 +01:00
fixed 配置下划线不显示的问题
This commit is contained in:
@@ -538,6 +538,16 @@ export default {
|
||||
},
|
||||
onTabClick (tab) {
|
||||
this.activeTab = tab.name
|
||||
},
|
||||
update () {
|
||||
if (this.activeTab !== 'stages') return
|
||||
|
||||
// 手动显示tab下划线
|
||||
const elBar = document.querySelector('.el-tabs__active-bar')
|
||||
const elStages = document.querySelector('#tab-stages')
|
||||
const totalWidth = Number(getComputedStyle(elStages).width.replace('px', ''))
|
||||
const paddingRight = Number(getComputedStyle(elStages).paddingRight.replace('px', ''))
|
||||
elBar.setAttribute('style', 'width:' + (totalWidth - paddingRight) + 'px')
|
||||
}
|
||||
},
|
||||
created () {
|
||||
|
||||
Reference in New Issue
Block a user