|
|
@ -53,10 +53,17 @@ export default class Trait extends Model { |
|
|
|
|
|
|
|
|
setValue(value, opts = {}) { |
|
|
setValue(value, opts = {}) { |
|
|
const valueOpts = {}; |
|
|
const valueOpts = {}; |
|
|
|
|
|
|
|
|
if (opts.partial) { |
|
|
if (opts.partial) { |
|
|
valueOpts.avoidStore = true; |
|
|
valueOpts.avoidStore = true; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
this.setTargetValue(value, valueOpts); |
|
|
this.setTargetValue(value, valueOpts); |
|
|
|
|
|
|
|
|
|
|
|
if (opts.partial === false) { |
|
|
|
|
|
this.setTargetValue(''); |
|
|
|
|
|
this.setTargetValue(value); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
props() { |
|
|
props() { |
|
|
|