switcher: missing color prop update callback
This commit is contained in:
parent
b3b4f69e5b
commit
874d6f04f9
1 changed files with 16 additions and 0 deletions
|
|
@ -79,6 +79,22 @@ module.exports = class Switcher extends _switchers_base {
|
|||
|
||||
}
|
||||
|
||||
onPropChanged(propName, options, oldPropValue) {
|
||||
|
||||
if (super.onPropChanged(...arguments)) return true
|
||||
|
||||
switch (propName) {
|
||||
|
||||
case 'color':
|
||||
for (var w of [this.switch]) {
|
||||
w.onPropChanged('color')
|
||||
}
|
||||
return
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
onRemove() {
|
||||
this.switch.onRemove()
|
||||
super.onRemove()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue