|
@@ -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() {
|
|
|
|