Files
element-plus/packages/components/checkbox/src/constants.ts
btea 2d64179491 refactor!: the disabled value of component has the highest priority (#18739)
* refactor!: the disabled value of component has the highest priority

* fix: update

* fix: compatible with switch loading

* feat: apply to cascader, select, select-v2

* fix: update

* fix: update selectv2

* fix: update autocomplete

* fix: date-picker-panel

* fix: update rate/slider/upload

* fix: slider error

* fix: update checkbox

* fix: checkbox error
2025-12-01 21:20:57 +08:00

22 lines
523 B
TypeScript

import type {
ComputedRef,
InjectionKey,
ToRefs,
WritableComputedRef,
} from 'vue'
import type { CheckboxGroupProps } from './checkbox-group'
type CheckboxGroupContext = {
modelValue?: WritableComputedRef<any>
changeEvent?: (...args: any) => any
disabled?: ComputedRef<boolean>
} & ToRefs<
Pick<
CheckboxGroupProps,
'size' | 'min' | 'max' | 'validateEvent' | 'fill' | 'textColor'
>
>
export const checkboxGroupContextKey: InjectionKey<CheckboxGroupContext> =
Symbol('checkboxGroupContextKey')