Skip to content

Commit 59978c3

Browse files
authored
fix(Tabbar): fix style error (#3436)
1 parent 9987de9 commit 59978c3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/tab-bar/tab-bar.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,10 @@ export default class Tabbar extends SuperComponent {
4848
const { value } = this.data;
4949

5050
this.$children.forEach((child) => {
51+
child.setData({ crowded: this.$children.length > 3 });
52+
5153
if (child.properties.value === value) {
5254
child.showSpread();
53-
child.setData({ crowded: this.$children > 3 });
5455
}
5556
});
5657
},

0 commit comments

Comments
 (0)