fix
This commit is contained in:
@@ -283,7 +283,7 @@ export default defineComponent({
|
||||
},
|
||||
selectColor:{
|
||||
handler(newVal,oldVal){
|
||||
if(typeof newVal?.rgba?.r !== 'number' && typeof newVal?.rgba?.r !== 'string'){
|
||||
if(newVal?.rgba?.r == null){
|
||||
this.colorList[this.selectIndex] = {}
|
||||
return
|
||||
}
|
||||
@@ -400,7 +400,7 @@ export default defineComponent({
|
||||
//选择不同的色块
|
||||
selectColorItem(index,color){
|
||||
let hex
|
||||
if(color?.rgba?.r){
|
||||
if(color?.rgba?.r != null){
|
||||
hex = this.rgbaToHex([color.rgba.r,color.rgba.g,color.rgba.b,color.rgba.a?color.rgba.a:1])
|
||||
}else{
|
||||
hex = '#FFFFFF'
|
||||
@@ -414,7 +414,7 @@ export default defineComponent({
|
||||
if(this.driver__.driver){
|
||||
driverObj__.moveNext()
|
||||
}
|
||||
if(color?.rgba?.r){
|
||||
if(color?.rgba?.r != null){
|
||||
this.selectColor = color
|
||||
this.selectColor.hex = hex
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user