From 77950e48c76f4a3b29d01831d43039caba29888a Mon Sep 17 00:00:00 2001
From: wwf <1971391498@qq.com>
Date: 星期二, 18 十一月 2025 14:12:42 +0800
Subject: [PATCH] 修改
---
app/components/base/radio/component/radio/index.tsx | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/app/components/base/radio/component/radio/index.tsx b/app/components/base/radio/component/radio/index.tsx
index eddc53d..a880bae 100644
--- a/app/components/base/radio/component/radio/index.tsx
+++ b/app/components/base/radio/component/radio/index.tsx
@@ -1,4 +1,4 @@
-import type { ReactNode } from 'react'
+import type { ReactElement } from 'react'
import { useId } from 'react'
import { useContext } from 'use-context-selector'
import RadioGroupContext from '../../context'
@@ -8,7 +8,7 @@
export type IRadioProps = {
className?: string
labelClassName?: string
- children?: string | ReactNode
+ children?: string | ReactElement
checked?: boolean
value?: string | number
disabled?: boolean
@@ -23,7 +23,7 @@
value,
disabled,
onChange,
-}: IRadioProps): React.JSX.Element {
+}: IRadioProps): JSX.Element {
const groupContext = useContext(RadioGroupContext)
const labelId = useId()
const handleChange = (e: IRadioProps['value']) => {
@@ -51,7 +51,7 @@
>
{children && (
<label className={
- cn(labelClassName, 'cursor-pointer text-sm')
+ cn(labelClassName, 'text-sm cursor-pointer')
}
id={labelId}
>
--
Gitblit v1.8.0