Added 'change' events to ColorPicker

pull/3143/head
Nicolaj Egelund 2017-02-24 20:32:39 +01:00 committed by 杨奕
parent 93ae4f34b0
commit 9d8fb8e0e3
1 changed files with 2 additions and 0 deletions

View File

@ -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();