element-plus/packages/tokens/radio.ts

10 lines
317 B
TypeScript
Raw Normal View History

2021-11-06 03:41:04 +08:00
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')