修复 disabled 样式不生效问题
This commit is contained in:
@@ -42,6 +42,7 @@
|
|||||||
item.isActive && color == '' && unColor == '',
|
item.isActive && color == '' && unColor == '',
|
||||||
showSlider ? 'text-white' : 'text-primary-500'
|
showSlider ? 'text-white' : 'text-primary-500'
|
||||||
],
|
],
|
||||||
|
[item.disabled, 'opacity-30'],
|
||||||
pt.text?.className
|
pt.text?.className
|
||||||
])
|
])
|
||||||
}"
|
}"
|
||||||
@@ -225,6 +226,7 @@ function getColor(isActive: boolean) {
|
|||||||
} else {
|
} else {
|
||||||
color = props.unColor;
|
color = props.unColor;
|
||||||
}
|
}
|
||||||
|
|
||||||
return isEmpty(color) ? null : color;
|
return isEmpty(color) ? null : color;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user