feat(tabbar): 自定义 tabbar 时,高亮颜色优先使用 var(--wot-color-theme)
This commit is contained in:
@@ -50,7 +50,7 @@ onLoad(() => {
|
||||
},
|
||||
})
|
||||
})
|
||||
const activeColor = '#1890ff'
|
||||
const activeColor = 'var(--wot-color-theme, #1890ff)'
|
||||
const inactiveColor = '#666'
|
||||
function getColorByIndex(index: number) {
|
||||
return tabbarStore.curIdx === index ? activeColor : inactiveColor
|
||||
|
||||
Reference in New Issue
Block a user