From 90e678756aecddee2beb522e38017c68f616b387 Mon Sep 17 00:00:00 2001 From: zhongnan Date: Fri, 31 Jul 2020 11:28:52 +0800 Subject: [PATCH] refactor(tab): adjust padding in complete mode --- src/tabs/index.js | 2 +- src/tabs/index.less | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/tabs/index.js b/src/tabs/index.js index 476024b43..3d3b21ecf 100644 --- a/src/tabs/index.js +++ b/src/tabs/index.js @@ -86,7 +86,7 @@ export default createComponent({ }, swipeThreshold: { type: [Number, String], - default: 4, + default: 5, }, }, diff --git a/src/tabs/index.less b/src/tabs/index.less index e2e26e834..6fcc79052 100644 --- a/src/tabs/index.less +++ b/src/tabs/index.less @@ -57,10 +57,13 @@ &--complete { flex: 1 0 auto; + padding: 0 @padding-sm; } } .van-tabs__nav { + padding-right: 8px; + padding-left: 8px; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch;