refactor: update radio component to handle boolean values instead of numeric (#24956)
This commit is contained in:
parent
d6b3df8f6f
commit
2ac8f8003f
5 changed files with 15 additions and 21 deletions
|
|
@ -5,7 +5,7 @@ import cn from '@/utils/classnames'
|
|||
|
||||
export type TRadioGroupProps = {
|
||||
children?: ReactNode | ReactNode[]
|
||||
value?: string | number
|
||||
value?: string | number | boolean
|
||||
className?: string
|
||||
onChange?: (value: any) => void
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ export type IRadioProps = {
|
|||
labelClassName?: string
|
||||
children?: string | ReactNode
|
||||
checked?: boolean
|
||||
value?: string | number
|
||||
value?: string | number | boolean
|
||||
disabled?: boolean
|
||||
onChange?: (e?: IRadioProps['value']) => void
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue