fix[BackToTop]: 数组/对象的默认值应当由一个工厂函数返回。 (#571)
This commit is contained in:
parent
afe975b3c2
commit
3cff6dcf4c
|
@ -25,14 +25,16 @@ export default {
|
||||||
},
|
},
|
||||||
customStyle: {
|
customStyle: {
|
||||||
type: Object,
|
type: Object,
|
||||||
default: {
|
default: function() {
|
||||||
right: '50px',
|
return {
|
||||||
bottom: '50px',
|
right: '50px',
|
||||||
width: '40px',
|
bottom: '50px',
|
||||||
height: '40px',
|
width: '40px',
|
||||||
'border-radius': '4px',
|
height: '40px',
|
||||||
'line-height': '45px',
|
'border-radius': '4px',
|
||||||
background: '#e7eaf1'
|
'line-height': '45px',
|
||||||
|
background: '#e7eaf1'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
transitionName: {
|
transitionName: {
|
||||||
|
|
Loading…
Reference in New Issue