Commit 9d8fb8e0 authored by Nicolaj Egelund's avatar Nicolaj Egelund Committed by 杨奕

Added 'change' events to ColorPicker

parent 93ae4f34
...@@ -74,10 +74,12 @@ ...@@ -74,10 +74,12 @@
methods: { methods: {
confirmValue(value) { confirmValue(value) {
this.$emit('input', this.color.value); this.$emit('input', this.color.value);
this.$emit('change', this.color.value);
this.showPicker = false; this.showPicker = false;
}, },
clearValue() { clearValue() {
this.$emit('input', null); this.$emit('input', null);
this.$emit('change', null);
this.showPanelColor = false; this.showPanelColor = false;
this.showPicker = false; this.showPicker = false;
this.resetColor(); this.resetColor();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment