This commit is contained in:
X1627315083
2026-01-23 16:58:03 +08:00
parent df5cb918a2
commit 972743d3b8
7 changed files with 37 additions and 30 deletions

View File

@@ -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
}