fix: 修复ColorPicker中的问题
This commit is contained in:
parent
1c16157a27
commit
4a3e5c8957
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user