Skip to content

Commit

Permalink
fix(Tabbar): fix style error (#3436)
Browse files Browse the repository at this point in the history
  • Loading branch information
anlyyao authored Jan 8, 2025
1 parent 9987de9 commit 59978c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/tab-bar/tab-bar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,10 @@ export default class Tabbar extends SuperComponent {
const { value } = this.data;

this.$children.forEach((child) => {
child.setData({ crowded: this.$children.length > 3 });

if (child.properties.value === value) {
child.showSpread();
child.setData({ crowded: this.$children > 3 });
}
});
},
Expand Down

0 comments on commit 59978c3

Please sign in to comment.