Update scroll.vue

This commit is contained in:
Aresn 2020-10-15 09:56:03 +08:00 committed by GitHub
parent 0285837c09
commit cd3f1a1fe7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -55,7 +55,11 @@
loadingText: {
type: String
},
distanceToEdge: [Number, Array]
distanceToEdge: [Number, Array],
stopSlide: {
type: Boolean,
default: false
}
},
data() {
const distanceToEdge = this.calculateProximityThreshold();
@ -89,7 +93,7 @@
return [
`${prefixCls}-container`,
{
[`${prefixCls}-container-loading`]: this.showBodyLoader
[`${prefixCls}-container-loading`]: this.showBodyLoader && this.stopSlide
}
];
},