feat: add apply function on Ref

This commit is contained in:
pengfei.zhou
2021-12-03 15:37:42 +08:00
committed by osborn
parent 1c1ca76782
commit 5aa20dbd6a
11 changed files with 53 additions and 1 deletions

View File

@@ -221,6 +221,11 @@ var Ref = /** @class */ (function () {
enumerable: false,
configurable: true
});
Ref.prototype.apply = function (config) {
if (this.view) {
this.view.apply(config);
}
};
return Ref;
}());
function createRef() {
@@ -4044,6 +4049,7 @@ function animate(context) {
var v = _f.value;
if (v.isDirty()) {
var model_1 = v.toModel();
model_1.duration = args.duration;
var ret_1 = context.callNative('animate', 'animateRender', model_1);
v.clean();
return ret_1;