mirror of https://github.com/ElemeFE/element
Added 'change' events to ColorPicker
parent
93ae4f34b0
commit
9d8fb8e0e3
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue