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 {
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