10 lines
349 B
TypeScript
Raw Permalink Normal View History

2024-11-05 10:09:18 +08:00
import type { InjectionKey } from 'vue'
import type { CheckboxGroupProps, CheckboxGroupValueType } from '../components'
export interface CheckboxGroupContext extends CheckboxGroupProps {
changeEvent: (val: CheckboxGroupValueType[number]) => void
}
export const checkboxGroupKey: InjectionKey<CheckboxGroupContext> =
Symbol('checkboxGroupKey')