[new feature] Tab : support custom color (#1622)

This commit is contained in:
fenghou
2018-08-13 19:41:31 +08:00
committed by neverland
parent e9a440d33c
commit 299c5d26dd
3 changed files with 5 additions and 1 deletions

View File

@@ -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() {