|
@@ -113,7 +113,8 @@ export struct RefreshView {
|
|
|
|
|
|
// 使用父组件@Builder装饰的方法初始化子组件@BuilderParam
|
|
|
@BuilderParam customBuilderParam: (item: ESObject, index: number) => void
|
|
|
- @BuilderParam headBuilderParam: () => void = this.doNothingBuilder;
|
|
|
+ @BuilderParam headerBuilderParam: () => void = this.doNothingBuilder;
|
|
|
+ @BuilderParam footerBuilderParam: () => void = this.doNothingBuilder;
|
|
|
|
|
|
build() {
|
|
|
|
|
@@ -123,7 +124,7 @@ export struct RefreshView {
|
|
|
scroller: this._scroller,
|
|
|
}) {
|
|
|
ListItem() {
|
|
|
- this.headBuilderParam()
|
|
|
+ this.headerBuilderParam()
|
|
|
}
|
|
|
|
|
|
ForEach(this.data ?? [], (item: ESObject, index: number) => {
|
|
@@ -131,6 +132,10 @@ export struct RefreshView {
|
|
|
this.customBuilderParam(item, index)
|
|
|
}
|
|
|
}, (item: ESObject, index: number) => this.keyGenerator!(item, index))
|
|
|
+
|
|
|
+ ListItem() {
|
|
|
+ this.footerBuilderParam()
|
|
|
+ }
|
|
|
}
|
|
|
.onTouch((event: TouchEvent) => {
|
|
|
const e1 = event.touches[0]
|