mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
* 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
22 lines
523 B
TypeScript
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')
|