mirror of https://github.com/ElemeFE/element
ColorPicker: add immediate watcher for currentColor (#13278)
parent
bdc9363635
commit
f8a27565b0
|
@ -109,9 +109,12 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
currentColor(val) {
|
currentColor: {
|
||||||
|
immediate: true,
|
||||||
|
handler(val) {
|
||||||
this.customInput = val;
|
this.customInput = val;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -165,6 +165,7 @@
|
||||||
enableAlpha: this.showAlpha,
|
enableAlpha: this.showAlpha,
|
||||||
format: this.colorFormat
|
format: this.colorFormat
|
||||||
});
|
});
|
||||||
|
|
||||||
return {
|
return {
|
||||||
color,
|
color,
|
||||||
showPicker: false,
|
showPicker: false,
|
||||||
|
|
Loading…
Reference in New Issue