mirror of
https://github.com/youzan/vant.git
synced 2025-10-19 18:14:13 +00:00
[new feature] Tab : support custom color (#1622)
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
'van-tab--active': index === curActive,
|
||||
'van-tab--disabled': tab.disabled
|
||||
}"
|
||||
:style="{ color }"
|
||||
@click="onClick(index)"
|
||||
>
|
||||
<span class="van-ellipsis" ref="title">{{ tab.title }}</span>
|
||||
@@ -69,7 +70,8 @@ export default create({
|
||||
offsetTop: {
|
||||
type: Number,
|
||||
default: 0
|
||||
}
|
||||
},
|
||||
color: String
|
||||
},
|
||||
|
||||
data() {
|
||||
|
Reference in New Issue
Block a user