mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
20 lines
492 B
TypeScript
20 lines
492 B
TypeScript
import type { InjectionKey } from 'vue'
|
|
import type { ComponentSize } from '@element-plus/utils/types'
|
|
|
|
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
|