FurBall/uni_modules/tuniaoui-vue3/tokens/radio.ts

10 lines
306 B
TypeScript

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