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: {