This commit is contained in:
wangwenzhang
2020-04-04 20:36:09 +08:00
parent 64859bb811
commit 6a3b460ac5

View File

@@ -66,6 +66,8 @@ export default {
}
},
setPlaceHolder () {
this.showPlaceHolder = true
const instanceRect = this.getInstanceRect()
this.stylePlaceHolder = {
width: instanceRect.width,
@@ -76,8 +78,6 @@ export default {
if (this.defaultInstancePosition < this.offsetTop) {
this.setFixedForInstance()
this.showPlaceHolder = true
this.setPlaceHolder()
}
@@ -96,6 +96,7 @@ export default {
if (isArrivalDefault && this.affixStyle.position === 'fixed') {
this.affixStyle = {}
this.showPlaceHolder = false
this.stylePlaceHolder = {}
}
}