Parcourir la source

医网签初始化

徐勤民 il y a 2 mois
Parent
commit
2a93b85895
1 fichiers modifiés avec 7 ajouts et 2 suppressions
  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() {