feat: add apply function on Ref
This commit is contained in:
@@ -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;
|
||||
|
@@ -151,6 +151,11 @@ class Ref {
|
||||
}
|
||||
return this.view;
|
||||
}
|
||||
apply(config) {
|
||||
if (this.view) {
|
||||
this.view.apply(config);
|
||||
}
|
||||
}
|
||||
}
|
||||
function createRef() {
|
||||
return new Ref;
|
||||
@@ -3093,6 +3098,7 @@ function animate(context) {
|
||||
for (let v of map.values()) {
|
||||
if (v.isDirty()) {
|
||||
const model_1 = v.toModel();
|
||||
model_1.duration = args.duration;
|
||||
const ret_1 = context.callNative('animate', 'animateRender', model_1);
|
||||
v.clean();
|
||||
return ret_1;
|
||||
|
@@ -1679,6 +1679,11 @@ class Ref {
|
||||
}
|
||||
return this.view;
|
||||
}
|
||||
apply(config) {
|
||||
if (this.view) {
|
||||
this.view.apply(config);
|
||||
}
|
||||
}
|
||||
}
|
||||
function createRef() {
|
||||
return new Ref;
|
||||
@@ -4621,6 +4626,7 @@ function animate(context) {
|
||||
for (let v of map.values()) {
|
||||
if (v.isDirty()) {
|
||||
const model_1 = v.toModel();
|
||||
model_1.duration = args.duration;
|
||||
const ret_1 = context.callNative('animate', 'animateRender', model_1);
|
||||
v.clean();
|
||||
return ret_1;
|
||||
|
Reference in New Issue
Block a user