Browse Source

Add __upProperties in Composite

up-style-manager
Artur Arseniev 4 years ago
parent
commit
f8b49ae23c
  1. 11
      src/style_manager/model/PropertyComposite.js

11
src/style_manager/model/PropertyComposite.js

@ -34,8 +34,12 @@ export default Property.extend({
__upProperties(prop, opts = {}) {
if (!this.__hasCustom()) return;
// if [detached] -> sm.addStyleTargets({ [prop.getName()]: prop.__getFullValue(), __p: !!opts.avoidStore }, opts)
// else -> sm.addStyleTargets({ [this.getName()]: this.__getFullValue(), __p: !!opts.avoidStore }, opts)
if (this.get('detached')) {
this.__upTargetsStyle({ [prop.getName()]: prop.__getFullValue() }, opts);
} else {
this.upValue(this.__getFullValue(), opts);
}
},
__getFullValue() {
@ -46,9 +50,6 @@ export default Property.extend({
.join(this.get('separator'));
},
// TODO
// in Property -> __upTargetsStyle({ [name]: value }, opt);
/**
* Clear the value
* @return {this}

Loading…
Cancel
Save