修复寺庙列表加载更多

This commit is contained in:
2022-04-02 10:02:37 +08:00
parent 804efb793b
commit 2857087d3c
4 changed files with 63 additions and 36 deletions
@@ -1,7 +1,7 @@
<template>
<div class="detail-content-expand">
<div class="content" :class="[contentOverflow && !show && '']" ref="wrapper" :style="{height: (show ? contentHeight : defaultContentHeight) + 'px'}">
<div ref="content">
<div ref="content" class="ref-content">
<slot></slot>
</div>
</div>
@@ -37,13 +37,15 @@ export default {
}
}
},
updated() {
watch: {
'$slots'(val){
console.log('slots val',val)
}
},
mounted(){
this.wrapperHeight = this.$refs.wrapper.offsetHeight
this.contentHeight = this.$refs.content.offsetHeight
this.$nextTick(() => {
this.contentHeight = this.$refs.content.offsetHeight
this.wrapperContainerHeight = this.wrapperHeight;
this.refresh();
})
@@ -58,7 +60,6 @@ export default {
this.defaultContentHeight = 100;
return
}
console.log('selector', selector)
this.defaultContentHeight = selector.offsetHeight / (4/1)
}
}