Open wangbo1185742894 opened 3 weeks ago
ListView({
autoShowEmptyLayout:true,
itemHeaderLayout: () => {
if (this.itemHeaderLayout) {
this.itemHeaderLayout()
}
},
isScrollSpring: false,
lazyDataSource: this.dataSource,
lazyCachedCount: 6,
itemFooterLayout: () => {
this.footerLoadLayout()
},
itemLayout: (item, index) => {
if (this.itemLayout) {
this.itemLayout(item as ECDFileObject, index)
}
}, //条目布局
controller: this.controller, //控制器,负责关闭下拉和上拉
emptyLayout: () => this.emptyPage(this.emptyTip,this.emptySubTip),
enableRefresh: this.loadNewData !== undefined && !this.disableRefresh,
enableLoadMore: this.loadMoreData !== undefined,
onRefresh: () => {
if (this.loadNewData) {
this.loadNewData(this.dataSource, this.controller);
}
},
onLoadMore: () => {
if (this.loadMoreData) {
this.loadMoreData(this.dataSource, this.controller);
}
},
listAttribute: (attr) => {
attr.height = "100%"
}
})
.backgroundColor($r('app.color.backgroundColor_fff'))
.width('100%')
}
@AbnerMing888 帮看一下这个问题哈
+1
需要看下您的相关代码,初步猜测,可能使用有问题