From 131946ec3d1ec22fa41e8165606b8a940d2de7f3 Mon Sep 17 00:00:00 2001 From: neverland Date: Fri, 23 Nov 2018 21:12:21 +0800 Subject: [PATCH] [bugfix] Tab: swipe-threshold not work when less than 4 (#941) --- packages/tabs/index.wxml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }}