mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-14 09:20:51 +08:00
19 lines
429 B
TypeScript
19 lines
429 B
TypeScript
import type { InjectionKey } from 'vue'
|
|
|
|
type IModelType = boolean | string | number
|
|
|
|
export interface RadioGroupContext {
|
|
name: 'ElRadioGroup'
|
|
modelValue: IModelType
|
|
fill: string
|
|
textColor: string
|
|
disabled: boolean
|
|
size: ComponentSize
|
|
radioGroupSize: ComponentSize
|
|
changeEvent: (val: IModelType) => void
|
|
}
|
|
|
|
const radioGroupKey: InjectionKey<RadioGroupContext> = 'RadioGroup' as any
|
|
|
|
export default radioGroupKey
|