From 8edc979bbe9f664cb3da150f5b6f8c7018f120be Mon Sep 17 00:00:00 2001 From: ThatToti Date: Thu, 25 Oct 2018 15:58:45 +0800 Subject: [PATCH 1/2] =?UTF-8?q?[+]=E4=BF=AE=E6=94=B9=E4=B8=80=E4=B8=AA?= =?UTF-8?q?=E6=8A=A5=E9=94=99=E5=8F=98=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 100宽度比较适宜 --- src/example/navbar/navbar.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/example/navbar/navbar.js b/src/example/navbar/navbar.js index b7380065..f7cd2dfa 100644 --- a/src/example/navbar/navbar.js +++ b/src/example/navbar/navbar.js @@ -12,7 +12,7 @@ Page({ wx.getSystemInfo({ success: function(res) { that.setData({ - sliderLeft: (res.windowWidth / that.data.tabs.length - sliderWidth) / 2, + sliderLeft: (res.windowWidth / that.data.tabs.length - 100) / 2, sliderOffset: res.windowWidth / that.data.tabs.length * that.data.activeIndex }); } @@ -24,4 +24,4 @@ Page({ activeIndex: e.currentTarget.id }); } -}); \ No newline at end of file +}); From 0c1943b81f8f164abb29fb93d3088b1230fb9652 Mon Sep 17 00:00:00 2001 From: ThatToti Date: Thu, 25 Oct 2018 16:04:19 +0800 Subject: [PATCH 2/2] =?UTF-8?q?[!]=E4=BF=AE=E5=A4=8D=E4=B8=80=E4=B8=AA?= =?UTF-8?q?=E6=8A=A5=E9=94=99=E5=8F=98=E9=87=8F,=E4=BE=9B=20demo=20?= =?UTF-8?q?=E4=BD=BF=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dist/example/navbar/navbar.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/example/navbar/navbar.js b/dist/example/navbar/navbar.js index b7380065..f7cd2dfa 100644 --- a/dist/example/navbar/navbar.js +++ b/dist/example/navbar/navbar.js @@ -12,7 +12,7 @@ Page({ wx.getSystemInfo({ success: function(res) { that.setData({ - sliderLeft: (res.windowWidth / that.data.tabs.length - sliderWidth) / 2, + sliderLeft: (res.windowWidth / that.data.tabs.length - 100) / 2, sliderOffset: res.windowWidth / that.data.tabs.length * that.data.activeIndex }); } @@ -24,4 +24,4 @@ Page({ activeIndex: e.currentTarget.id }); } -}); \ No newline at end of file +});