fix:修改 bottom panel 懒加载失效的问题

This commit is contained in:
zhangyu
2021-12-31 14:06:02 +08:00
parent faad3c5c7b
commit 2530b45430

View File

@@ -96,9 +96,9 @@
</div> </div>
</template> </template>
<!--图表--> <!--图表-->
<div id="tableList" class="table-list" style="padding-top: 0"> <div id="tableList" class="table-list" style="padding-top: 0;overflow: hidden">
<div id="dashboardScrollbar" ref="dashboardScrollbar" class="table-list-box"> <div id="dashboardScrollbar" class="table-list-box">
<div class="box-content" v-loading="chartListLoading"> <div class="box-content" ref="dashboardScrollbar" v-loading="chartListLoading" style="overflow-y: auto">
<chart-list <chart-list
ref="chartList" ref="chartList"
name="panel" name="panel"
@@ -617,7 +617,9 @@ export default {
const _self = this const _self = this
this.scrollbarWrap.addEventListener('scroll', bus.debounce(function () { this.scrollbarWrap.addEventListener('scroll', bus.debounce(function () {
_self.showTopBtn = _self.scrollbarWrap.scrollTop > 50 _self.showTopBtn = _self.scrollbarWrap.scrollTop > 50
_self.$refs.chartList.loadChartData(_self.scrollbarWrap.scrollTop) console.log(_self.scrollbarWrap.scrollTop)
// _self.$refs.chartList.loadChartData(_self.scrollbarWrap.scrollTop)
_self.$refs.chartList.onScroll(_self.scrollbarWrap.scrollTop)
}, 300)) }, 300))
}, },
focusInput () { focusInput () {