element-plus/packages/tokens/checkbox.ts
MonsterPi 49109158c8
refactor(components): [checkbox] refactor (#9594)
Co-authored-by: 三咲智子 <sxzz@sxzz.moe>
2022-09-16 20:53:11 +08:00

16 lines
488 B
TypeScript

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