mirror of https://github.com/ElemeFE/element
Added 'change' events to ColorPicker
parent
93ae4f34b0
commit
9d8fb8e0e3
|
@ -74,10 +74,12 @@
|
|||
methods: {
|
||||
confirmValue(value) {
|
||||
this.$emit('input', this.color.value);
|
||||
this.$emit('change', this.color.value);
|
||||
this.showPicker = false;
|
||||
},
|
||||
clearValue() {
|
||||
this.$emit('input', null);
|
||||
this.$emit('change', null);
|
||||
this.showPanelColor = false;
|
||||
this.showPicker = false;
|
||||
this.resetColor();
|
||||
|
|
Loading…
Reference in New Issue