From 4a3e5c895746c82be5ab365ad56b5ae82e8538ae Mon Sep 17 00:00:00 2001 From: Xu Zhimeng Date: Thu, 14 Sep 2023 19:43:15 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8DColorPicker=E4=B8=AD?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ColorPicker/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/ColorPicker/index.vue b/src/components/ColorPicker/index.vue index 469b187..8062b26 100644 --- a/src/components/ColorPicker/index.vue +++ b/src/components/ColorPicker/index.vue @@ -16,7 +16,7 @@ import { Chrome } from 'vue-color' export default { props: { value: { - type: Object, + type: String, required: true } }, @@ -43,7 +43,7 @@ export default { computed: { color: { set(val) { - this.$emit('input', val) + this.$emit('input', val.hex) }, get() { return this.value