mirror of
https://github.com/element-plus/element-plus.git
synced 2024-11-27 02:01:15 +08:00
49109158c8
Co-authored-by: 三咲智子 <sxzz@sxzz.moe>
16 lines
488 B
TypeScript
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')
|