From 3cff6dcf4c01d1bdf3faa7d0bcae4a16c28e5d2e Mon Sep 17 00:00:00 2001
From: linlinjava <linlinjavaer@gmail.com>
Date: Fri, 6 Apr 2018 12:40:58 +0800
Subject: [PATCH] =?UTF-8?q?fix[BackToTop]:=20=E6=95=B0=E7=BB=84/=E5=AF=B9?=
 =?UTF-8?q?=E8=B1=A1=E7=9A=84=E9=BB=98=E8=AE=A4=E5=80=BC=E5=BA=94=E5=BD=93?=
 =?UTF-8?q?=E7=94=B1=E4=B8=80=E4=B8=AA=E5=B7=A5=E5=8E=82=E5=87=BD=E6=95=B0?=
 =?UTF-8?q?=E8=BF=94=E5=9B=9E=E3=80=82=20(#571)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/components/BackToTop/index.vue | 18 ++++++++++--------
 1 file changed, 10 insertions(+), 8 deletions(-)

diff --git a/src/components/BackToTop/index.vue b/src/components/BackToTop/index.vue
index cbb1f21d..de953821 100644
--- a/src/components/BackToTop/index.vue
+++ b/src/components/BackToTop/index.vue
@@ -25,14 +25,16 @@ export default {
     },
     customStyle: {
       type: Object,
-      default: {
-        right: '50px',
-        bottom: '50px',
-        width: '40px',
-        height: '40px',
-        'border-radius': '4px',
-        'line-height': '45px',
-        background: '#e7eaf1'
+      default: function() {
+        return {
+          right: '50px',
+          bottom: '50px',
+          width: '40px',
+          height: '40px',
+          'border-radius': '4px',
+          'line-height': '45px',
+          background: '#e7eaf1'
+        }
       }
     },
     transitionName: {
-- 
GitLab