Browse Source

Add __upProperties in Composite

up-style-manager
Artur Arseniev 5 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 = {}) { __upProperties(prop, opts = {}) {
if (!this.__hasCustom()) return; 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() { __getFullValue() {
@ -46,9 +50,6 @@ export default Property.extend({
.join(this.get('separator')); .join(this.get('separator'));
}, },
// TODO
// in Property -> __upTargetsStyle({ [name]: value }, opt);
/** /**
* Clear the value * Clear the value
* @return {this} * @return {this}

Loading…
Cancel
Save