diff --git a/packages/tabs/index.wxml b/packages/tabs/index.wxml index 299a0537..23f3c8f7 100644 --- a/packages/tabs/index.wxml +++ b/packages/tabs/index.wxml @@ -14,7 +14,7 @@ wx:key="index" data-index="{{ index }}" class="van-ellipsis van-tab {{ index === active ? 'van-tab--active' : '' }} {{ item.disabled ? 'van-tab--disabled' : '' }}" - style="{{ color && index !== active && type === 'card' && !item.disabled ? 'color: ' + color : '' }} {{ color && index === active && type === 'card' ? ';background-color:' + color : '' }} {{ color ? ';border-color: ' + color : '' }}" + style="{{ color && index !== active && type === 'card' && !item.disabled ? 'color: ' + color : '' }} {{ color && index === active && type === 'card' ? ';background-color:' + color : '' }} {{ color ? ';border-color: ' + color : '' }} {{ scrollable ? ';flex-basis:' + (88 / swipeThreshold) + '%' : '' }}" bind:tap="onTap" > {{ item.title }}