修复寺庙列表加载更多
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user