feat:Scroller add scrollTo method
This commit is contained in:
@@ -2004,6 +2004,9 @@ var Scroller = /** @class */ (function (_super) {
|
||||
this.dirtyProps.content = this.content.viewId;
|
||||
return _super.prototype.toModel.call(this);
|
||||
};
|
||||
Scroller.prototype.scrollTo = function (context, offset, animated) {
|
||||
return this.nativeChannel(context, "scrollTo")({ offset: offset, animated: animated });
|
||||
};
|
||||
return Scroller;
|
||||
}(Superview));
|
||||
|
||||
|
@@ -1499,6 +1499,9 @@ class Scroller extends Superview {
|
||||
this.dirtyProps.content = this.content.viewId;
|
||||
return super.toModel();
|
||||
}
|
||||
scrollTo(context, offset, animated) {
|
||||
return this.nativeChannel(context, "scrollTo")({ offset, animated });
|
||||
}
|
||||
}
|
||||
|
||||
var __decorate$7 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
||||
|
@@ -2958,6 +2958,9 @@ class Scroller extends Superview {
|
||||
this.dirtyProps.content = this.content.viewId;
|
||||
return super.toModel();
|
||||
}
|
||||
scrollTo(context, offset, animated) {
|
||||
return this.nativeChannel(context, "scrollTo")({ offset, animated });
|
||||
}
|
||||
}
|
||||
|
||||
var __decorate$7 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
||||
|
Reference in New Issue
Block a user