fix(checkbox): apply 'checked-color' when 'checkbox' is indeterminate (#13553)

This commit is contained in:
keeplearning66
2025-07-12 15:46:59 +08:00
committed by GitHub
parent bb9377ab9c
commit ae466fc1b8

View File

@@ -86,7 +86,11 @@ export default defineComponent({
const iconStyle = computed(() => {
const checkedColor = props.checkedColor || getParentProp('checkedColor');
if (checkedColor && props.checked && !disabled.value) {
if (
checkedColor &&
(props.checked || props.indeterminate) &&
!disabled.value
) {
return {
borderColor: checkedColor,
backgroundColor: checkedColor,