Ver código fonte

医网签初始化

徐勤民 2 meses atrás
pai
commit
2a93b85895
1 arquivos alterados com 7 adições e 2 exclusões
  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() {