feat: frontend multi models support (#804)

Co-authored-by: StyleZhang <jasonapring2015@outlook.com>
Co-authored-by: Joel <iamjoel007@gmail.com>
This commit is contained in:
takatost
2023-08-12 00:57:13 +08:00
committed by GitHub
parent 5fa2161b05
commit d10ef17f17
259 changed files with 9105 additions and 1392 deletions

View File

@@ -7,6 +7,7 @@ import s from '../../style.module.css'
export type IRadioProps = {
className?: string
labelClassName?: string
children?: string | ReactElement
checked?: boolean
value?: string | number
@@ -16,6 +17,7 @@ export type IRadioProps = {
export default function Radio({
className = '',
labelClassName,
children = '',
checked,
value,
@@ -45,13 +47,13 @@ export default function Radio({
isChecked ? 'bg-white shadow' : '',
divClassName,
className)}
onClick={() => handleChange(value)}
onClick={() => handleChange(value)}
>
{children && (
<label className={
cn('text-sm cursor-pointer')
cn(labelClassName, 'text-sm cursor-pointer')
}
id={labelId}
id={labelId}
>
{children}
</label>