fix
This commit is contained in:
@@ -271,7 +271,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
|
||||
}
|
||||
@@ -388,7 +388,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'
|
||||
@@ -402,7 +402,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