Skip to content

Commit dc00222

Browse files
committed
Fixed object chain
1 parent 630378a commit dc00222

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ const VirtualList = Vue.component('virtual-list', {
258258
const { padFront, padBehind } = this.range
259259
const { isHorizontal, rootTag, wrapTag, wrapClass, wrapStyle, headerTag, headerClass, headerStyle, footerTag, footerClass, footerStyle } = this
260260
const paddingStyle = { padding: isHorizontal ? `0px ${padBehind}px 0px ${padFront}px` : `${padFront}px 0px ${padBehind}px` }
261-
const wrapperStyle = wrapStyle ? Object.assign(wrapStyle, paddingStyle) : paddingStyle
261+
const wrapperStyle = wrapStyle ? Object.assign({}, wrapStyle, paddingStyle) : paddingStyle
262262

263263
return h(rootTag, {
264264
ref: 'root',

0 commit comments

Comments
 (0)