Bladeren bron

医网签初始化

徐勤民 2 maanden geleden
bovenliggende
commit
2a93b85895
1 gewijzigde bestanden met toevoegingen van 7 en 2 verwijderingen
  1. 7 2
      src/main/ets/view/RefreshView.ets

+ 7 - 2
src/main/ets/view/RefreshView.ets

@@ -7,10 +7,15 @@ type ItemType = (string | number | Object)
 export struct RefreshView {
   @Prop isLoading: boolean
   @Prop data: ItemType[]
+  loadMore(){}
+  refresh(){}
+
+  aboutToAppear(): void {
+    this.refresh()
+  }
 
-  @Builder customBuilder() {}
   // 使用父组件@Builder装饰的方法初始化子组件@BuilderParam
-  @BuilderParam customBuilderParam: (item:string) => void = this.customBuilder;
+  @BuilderParam customBuilderParam: (item:string) => void
 
   build() {