element-plus/packages/tokens/radio.ts
2021-11-06 03:48:19 +08:00

10 lines
317 B
TypeScript

import type { RadioGroupProps } from '@element-plus/components'
import type { InjectionKey } from 'vue'
export interface RadioGroupContext extends RadioGroupProps {
changeEvent: (val: RadioGroupProps['modelValue']) => void
}
export const radioGroupKey: InjectionKey<RadioGroupContext> =
Symbol('radioGroupKey')