Skip to content

Commit

Permalink
fix(Tabbar): fix style error
Browse files Browse the repository at this point in the history
  • Loading branch information
anlyyao committed Jan 7, 2025
1 parent 65f38ef commit 1526a10
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/tab-bar/tab-bar-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,8 @@ export default defineComponent({
}
});

const crowded = ref(false);
watch(itemCount, () => {
if (isChecked.value) {
crowded.value = itemCount.value > 3;
isSpread.value = true;
}
});
Expand Down Expand Up @@ -179,7 +177,6 @@ export default defineComponent({
[`${tabBarItemClass.value}`]: true,
[`${tabBarItemClass.value}--split`]: split.value,
[`${tabBarItemClass.value}--text-only`]: !iconContent(),
[`${tabBarItemClass.value}--crowded`]: crowded.value,
[`${tabBarItemClass.value}--${shape.value}`]: true,
[`${context.attrs.class || ''}`]: true,
}}
Expand Down

0 comments on commit 1526a10

Please sign in to comment.