fix(web): file add size

This commit is contained in:
zhaoying
2026-04-07 11:17:14 +08:00
parent 6c8d0d9d64
commit bfc98efc9d
9 changed files with 213 additions and 169 deletions

View File

@@ -281,7 +281,7 @@ const CaseList: FC<CaseListProps> = ({
options={options}
size="small"
allowClear={false}
onChange={(val) => handleLeftFieldChange(caseIndex, conditionIndex, val)}
onChange={(val) => handleLeftFieldChange(caseIndex, conditionIndex, val as string)}
variant="borderless"
className="rb:w-36!"
/>

View File

@@ -63,6 +63,7 @@ const RadioGroupBtn: FC<RadioCardProps> = ({
allowClear = true,
block = false,
type,
className,
}) => {
/** Listen to value changes and trigger side effects via onValueChange callback */
useEffect(() => {
@@ -86,7 +87,7 @@ const RadioGroupBtn: FC<RadioCardProps> = ({
}
return (
<div className={clsx(`rb:grid rb:grid-cols-${block ? 1 : options.length} rb:gap-1`)}>
<div className={clsx(`rb:grid rb:grid-cols-${block ? 1 : options.length} rb:gap-1`, className)}>
{/* Render each option as a selectable card */}
{options.map(option => (
<div key={String(option.value)} className={clsx("rb:border rb:w-full rb:leading-4.5 rb:px-2.5 rb:text-center rb:text-[12px] rb:font-medium rb:cursor-pointer", {