修复 disabled 样式不生效问题

This commit is contained in:
icssoa
2025-11-13 22:35:25 +08:00
parent 40b60c02df
commit b0dd9c1146

View File

@@ -42,6 +42,7 @@
item.isActive && color == '' && unColor == '',
showSlider ? 'text-white' : 'text-primary-500'
],
[item.disabled, 'opacity-30'],
pt.text?.className
])
}"
@@ -225,6 +226,7 @@ function getColor(isActive: boolean) {
} else {
color = props.unColor;
}
return isEmpty(color) ? null : color;
}