mirror of
https://github.com/youzan/vant.git
synced 2026-01-13 07:03:44 +08:00
fix(checkbox): apply 'checked-color' when 'checkbox' is indeterminate (#13553)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user