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