[improvement] Tab: update active style (#2120)

This commit is contained in:
neverland
2018-11-22 20:31:28 +08:00
committed by GitHub
parent 0efdd0865a
commit bef8d5eb73
5 changed files with 30 additions and 31 deletions

View File

@@ -375,7 +375,7 @@ export default create({
const isCard = this.type === 'card';
if (color) {
if (!item.disabled && isCard !== active) {
if (!item.disabled && isCard && !active) {
style.color = color;
}
if (!item.disabled && isCard && active) {