feat: add bounces for list,scroller,nestedSlider,flowlayout
This commit is contained in:
@@ -72,6 +72,9 @@ export class FlowLayout extends Superview {
|
||||
@Property
|
||||
scrollable?: boolean
|
||||
|
||||
@Property
|
||||
bounces?: boolean
|
||||
|
||||
reset() {
|
||||
this.cachedViews.clear()
|
||||
this.itemCount = 0
|
||||
|
@@ -76,6 +76,9 @@ export class List extends Superview {
|
||||
@Property
|
||||
scrollable?: boolean
|
||||
|
||||
@Property
|
||||
bounces?: boolean
|
||||
|
||||
scrollToItem(context: BridgeContext, index: number, config?: { animated?: boolean, }) {
|
||||
const animated = config?.animated
|
||||
return this.nativeChannel(context, 'scrollToItem')({ index, animated, }) as Promise<any>
|
||||
|
@@ -24,6 +24,9 @@ export class NestedSlider extends Group {
|
||||
@Property
|
||||
scrollable?: boolean
|
||||
|
||||
@Property
|
||||
bounces?: boolean
|
||||
|
||||
addSlideItem(view: View) {
|
||||
this.addChild(view)
|
||||
}
|
||||
|
@@ -45,6 +45,9 @@ export class Scroller extends Superview {
|
||||
@Property
|
||||
scrollable?: boolean
|
||||
|
||||
@Property
|
||||
bounces?: boolean
|
||||
|
||||
allSubviews() {
|
||||
return [this.content]
|
||||
}
|
||||
|
Reference in New Issue
Block a user