fix[BackToTop]: 数组/对象的默认值应当由一个工厂函数返回。 (#571)

This commit is contained in:
linlinjava 2018-04-06 12:40:58 +08:00 committed by 花裤衩
parent afe975b3c2
commit 3cff6dcf4c
1 changed files with 10 additions and 8 deletions

View File

@ -25,7 +25,8 @@ export default {
}, },
customStyle: { customStyle: {
type: Object, type: Object,
default: { default: function() {
return {
right: '50px', right: '50px',
bottom: '50px', bottom: '50px',
width: '40px', width: '40px',
@ -34,6 +35,7 @@ export default {
'line-height': '45px', 'line-height': '45px',
background: '#e7eaf1' background: '#e7eaf1'
} }
}
}, },
transitionName: { transitionName: {
type: String, type: String,