Skip to content
Snippets Groups Projects
Commit 3cff6dcf authored by linlinjava's avatar linlinjava Committed by 花裤衩
Browse files

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

parent afe975b3
No related branches found
No related tags found
No related merge requests found
......@@ -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: {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment