feat:slider and flowlayout add reload api
This commit is contained in:
@@ -3419,13 +3419,18 @@ class List extends Superview {
|
||||
findCompletelyVisibleItems(context) {
|
||||
return this.nativeChannel(context, 'findCompletelyVisibleItems')();
|
||||
}
|
||||
/**
|
||||
* Reload all list items.
|
||||
* @param context
|
||||
* @returns
|
||||
*/
|
||||
reload(context) {
|
||||
return this.nativeChannel(context, 'reload')();
|
||||
}
|
||||
reset() {
|
||||
this.cachedViews.clear();
|
||||
this.itemCount = 0;
|
||||
}
|
||||
reload(context) {
|
||||
return this.nativeChannel(context, 'reload')();
|
||||
}
|
||||
getItem(itemIdx) {
|
||||
let view = this.renderItem(itemIdx);
|
||||
view.superview = this;
|
||||
@@ -3552,6 +3557,18 @@ class Slider extends Superview {
|
||||
allSubviews() {
|
||||
return this.cachedViews.values();
|
||||
}
|
||||
/**
|
||||
* Reload all list items.
|
||||
* @param context
|
||||
* @returns
|
||||
*/
|
||||
reload(context) {
|
||||
return this.nativeChannel(context, 'reload')();
|
||||
}
|
||||
reset() {
|
||||
this.cachedViews.clear();
|
||||
this.itemCount = 0;
|
||||
}
|
||||
getItem(itemIdx) {
|
||||
let view = this.renderPage(itemIdx);
|
||||
view.superview = this;
|
||||
@@ -3927,6 +3944,14 @@ class FlowLayout extends Superview {
|
||||
findCompletelyVisibleItems(context) {
|
||||
return this.nativeChannel(context, 'findCompletelyVisibleItems')();
|
||||
}
|
||||
/**
|
||||
* Reload all list items.
|
||||
* @param context
|
||||
* @returns
|
||||
*/
|
||||
reload(context) {
|
||||
return this.nativeChannel(context, 'reload')();
|
||||
}
|
||||
reset() {
|
||||
this.cachedViews.clear();
|
||||
this.itemCount = 0;
|
||||
|
||||
Reference in New Issue
Block a user