Skip to content

Commit

Permalink
fix(ui/tab-item): add var-tab-item-cover attr
Browse files Browse the repository at this point in the history
affects: @varlet/ui
  • Loading branch information
haoziqaq committed Oct 22, 2021
1 parent d768db4 commit 934a833
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/varlet-ui/src/tab-item/TabItem.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<var-swipe-item class="var-tab-item" :class="[!current && 'var-tab-item--inactive']">
<var-swipe-item class="var-tab-item" var-tab-item-cover :class="[!current && 'var-tab-item--inactive']">
<slot v-if="initSlot" />
</var-swipe-item>
</template>
Expand Down
2 changes: 1 addition & 1 deletion packages/varlet-ui/src/tab-item/tabItem.less
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.var-tab-item {
&--inactive {
&--inactive[var-tab-item-cover] {
overflow: visible;
height: 0;
}
Expand Down

0 comments on commit 934a833

Please sign in to comment.