Sfoglia il codice sorgente

医网签初始化

徐勤民 2 mesi fa
parent
commit
2a93b85895
1 ha cambiato i file con 7 aggiunte e 2 eliminazioni
  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() {