修改显示逻辑处理

master
于肖磊 2025-05-23 15:09:03 +08:00
parent 20059362a3
commit 032a2b4583
1 changed files with 2 additions and 2 deletions

View File

@ -331,8 +331,8 @@
},
//
get_up_slide_style(defaultColor, customColor, opacityValue) {
const opacityStr = opacityValue > 0 ? `opacity: ${opacityValue};` : '';
const color = customColor === '' ? defaultColor : opacityValue <= 0 ? defaultColor : customColor;
const opacityStr = customColor === '' ? '' : opacityValue > 0 ? `opacity: ${opacityValue};` : '';
const color = (customColor === '' || opacityValue <= 0) ? defaultColor : customColor;
return `color: ${color};${opacityStr}`;
},
//