feat(Tab): add info prop (#5274)

This commit is contained in:
neverland
2019-12-15 22:06:24 +08:00
committed by GitHub
parent ebd69714a1
commit d25ddc1914
8 changed files with 35 additions and 3 deletions
+2 -1
View File
@@ -7,6 +7,7 @@ export default createComponent({
props: {
dot: Boolean,
type: String,
info: [Number, String],
color: String,
title: String,
isActive: Boolean,
@@ -76,7 +77,7 @@ export default createComponent({
>
<span class={bem('text')}>
{this.slots() || this.title}
<Info dot={this.dot} />
<Info dot={this.dot} info={this.info} />
</span>
</div>
);
+2 -1
View File
@@ -268,8 +268,9 @@ export default createComponent({
<Title
ref="titles"
refInFor
dot={item.dot}
type={type}
dot={item.dot}
info={item.info}
title={item.title}
color={this.color}
style={item.titleStyle}