fix: 修复ColorPicker中的问题

This commit is contained in:
Xu Zhimeng 2023-09-14 19:43:15 +08:00
parent 1c16157a27
commit 4a3e5c8957

View File

@ -16,7 +16,7 @@ import { Chrome } from 'vue-color'
export default { export default {
props: { props: {
value: { value: {
type: Object, type: String,
required: true required: true
} }
}, },
@ -43,7 +43,7 @@ export default {
computed: { computed: {
color: { color: {
set(val) { set(val) {
this.$emit('input', val) this.$emit('input', val.hex)
}, },
get() { get() {
return this.value return this.value