mirror of
https://gitee.com/TSpecific/tuniao-ui.git
synced 2026-06-06 19:44:38 +08:00
[add] tabs 新增 inactiveItemStyle 未选中的item样式
This commit is contained in:
@@ -89,6 +89,13 @@
|
|||||||
type: String,
|
type: String,
|
||||||
default: '#080808'
|
default: '#080808'
|
||||||
},
|
},
|
||||||
|
// 未选中的item样式
|
||||||
|
inactiveItemStyle: {
|
||||||
|
type: Object,
|
||||||
|
default() {
|
||||||
|
return {}
|
||||||
|
}
|
||||||
|
},
|
||||||
// 选中的item样式
|
// 选中的item样式
|
||||||
activeItemStyle: {
|
activeItemStyle: {
|
||||||
type: Object,
|
type: Object,
|
||||||
@@ -171,6 +178,7 @@
|
|||||||
Object.assign(style, this.activeItemStyle)
|
Object.assign(style, this.activeItemStyle)
|
||||||
} else {
|
} else {
|
||||||
style.color = this.inactiveColor
|
style.color = this.inactiveColor
|
||||||
|
Object.assign(style, this.inactiveItemStyle)
|
||||||
}
|
}
|
||||||
return style
|
return style
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user