diff --git a/package/component/src/component/checkbox/index.vue b/package/component/src/component/checkbox/index.vue index 13384af4..7da5b280 100644 --- a/package/component/src/component/checkbox/index.vue +++ b/package/component/src/component/checkbox/index.vue @@ -23,7 +23,7 @@ const props = withDefaults(defineProps(), { isIndeterminate: false, modelValue: false, disabled: false, - label:'' + label: "", }); const checkboxGroup: any = inject("checkboxGroup", {}); @@ -100,11 +100,14 @@ const ifDisabled = computed(() => { if (props.disabled) { return true; } - if (checkboxGroup.hasOwnProperty('disabled')&&checkboxGroup.disabled.value) { + if ( + checkboxGroup.hasOwnProperty("disabled") && + checkboxGroup.disabled.value + ) { return true; } return false; -}) +});