Merge branch 'feature/dev' into 'master'
feat:any view can be used to be refreshable See merge request !29
This commit is contained in:
commit
2ec69d9651
@ -35,7 +35,7 @@ class RefreshableDemo extends Panel {
|
|||||||
refreshImage.setRotation(context, rotation)
|
refreshImage.setRotation(context, rotation)
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
content: scroller(vlayout([
|
content: (vlayout([
|
||||||
title("Refreshable Demo"),
|
title("Refreshable Demo"),
|
||||||
label('start Refresh').apply({
|
label('start Refresh').apply({
|
||||||
width: 300,
|
width: 300,
|
||||||
@ -99,9 +99,7 @@ class RefreshableDemo extends Panel {
|
|||||||
layoutConfig: layoutConfig().atmost().h(LayoutSpec.WRAP_CONTENT),
|
layoutConfig: layoutConfig().atmost().h(LayoutSpec.WRAP_CONTENT),
|
||||||
gravity: gravity().center(),
|
gravity: gravity().center(),
|
||||||
space: 10,
|
space: 10,
|
||||||
} as IVLayout)).apply({
|
} as IVLayout))
|
||||||
layoutConfig: layoutConfig().atmost(),
|
|
||||||
})
|
|
||||||
}).apply({
|
}).apply({
|
||||||
bgColor: Color.YELLOW
|
bgColor: Color.YELLOW
|
||||||
}).in(rootView)
|
}).in(rootView)
|
||||||
|
@ -5,7 +5,7 @@ import { BridgeContext } from "../runtime/global";
|
|||||||
import { layoutConfig } from "./declarative";
|
import { layoutConfig } from "./declarative";
|
||||||
|
|
||||||
export interface IRefreshable extends IView {
|
export interface IRefreshable extends IView {
|
||||||
content: List | Scroller
|
content: View
|
||||||
header?: View
|
header?: View
|
||||||
onRefresh?: () => void
|
onRefresh?: () => void
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user