diff --git a/examples/routers/color-picker.vue b/examples/routers/color-picker.vue
index 194d75f..a602b54 100644
--- a/examples/routers/color-picker.vue
+++ b/examples/routers/color-picker.vue
@@ -2,7 +2,7 @@
{{ color }}
-
+
@@ -25,6 +25,12 @@
methods: {
setColor () {
this.color = '#26bc77';
+ },
+ c1 (d) {
+ console.log(d);
+ },
+ c2 (d) {
+ console.log(d);
}
}
};
diff --git a/src/components/color-picker/color-picker.vue b/src/components/color-picker/color-picker.vue
index 2bfa555..47f69f6 100644
--- a/src/components/color-picker/color-picker.vue
+++ b/src/components/color-picker/color-picker.vue
@@ -215,6 +215,7 @@
},
set (newVal) {
this.val = newVal;
+ this.$emit('on-active-change', this.formatColor);
}
},
classes () {
@@ -347,6 +348,7 @@
},
handleClear () {
this.$emit('input', '');
+ this.$emit('on-change', '');
this.handleClose();
},
handleSelectColor (color) {
--
libgit2 0.21.4